ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::Accessor::VectorToRGBPixelAccessor< T > Class Template Reference

#include <itkVectorToRGBPixelAccessor.h>

Detailed Description

template<typename T>
class itk::Accessor::VectorToRGBPixelAccessor< T >

Give access to a Vector pixel type as if it were a RGBPixel type.

This class is intended to be used as parameter of an ImageAdaptor to make an Vector image appear as being an image of RGB pixel type.

See also
ImageAdaptor

Definition at line 41 of file itkVectorToRGBPixelAccessor.h.

Public Types

using ExternalType = RGBPixel<T>
 
using InternalType = Vector<T, 3>
 
using Self = VectorToRGBPixelAccessor
 

Public Member Functions

ExternalType Get (const InternalType &input) const
 
void Set (InternalType &output, const ExternalType &input) const
 

Member Typedef Documentation

◆ ExternalType

template<typename T>
using itk::Accessor::VectorToRGBPixelAccessor< T >::ExternalType = RGBPixel<T>

External type alias. It defines the external aspect that this class will exhibit

Definition at line 49 of file itkVectorToRGBPixelAccessor.h.

◆ InternalType

template<typename T>
using itk::Accessor::VectorToRGBPixelAccessor< T >::InternalType = Vector<T, 3>

Internal type alias. It defines the internal real representation of data

Definition at line 53 of file itkVectorToRGBPixelAccessor.h.

◆ Self

template<typename T>
using itk::Accessor::VectorToRGBPixelAccessor< T >::Self = VectorToRGBPixelAccessor

Standard class type aliases.

Definition at line 45 of file itkVectorToRGBPixelAccessor.h.

Member Function Documentation

◆ Get()

template<typename T>
ExternalType itk::Accessor::VectorToRGBPixelAccessor< T >::Get ( const InternalType & input) const
inlinenodiscard

Read access to the VectorToRGB component

Definition at line 66 of file itkVectorToRGBPixelAccessor.h.

References itk::FixedArray< TValue, VLength >::GetDataPointer().

◆ Set()

template<typename T>
void itk::Accessor::VectorToRGBPixelAccessor< T >::Set ( InternalType & output,
const ExternalType & input ) const
inline

Write access to the VectorToRGB component

Definition at line 57 of file itkVectorToRGBPixelAccessor.h.


The documentation for this class was generated from the following file: