ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | List of all members
itk::Accessor::RGBToVectorPixelAccessor< T > Class Template Reference

#include <itkRGBToVectorPixelAccessor.h>

Detailed Description

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

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

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

See also
ImageAdaptor

Definition at line 43 of file itkRGBToVectorPixelAccessor.h.

Public Types

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

Public Member Functions

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

Member Typedef Documentation

◆ ExternalType

template<typename T>
using itk::Accessor::RGBToVectorPixelAccessor< T >::ExternalType = Vector<T, 3>

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

Definition at line 51 of file itkRGBToVectorPixelAccessor.h.

◆ InternalType

template<typename T>
using itk::Accessor::RGBToVectorPixelAccessor< T >::InternalType = RGBPixel<T>

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

Definition at line 55 of file itkRGBToVectorPixelAccessor.h.

◆ Self

Standard class type aliases.

Definition at line 47 of file itkRGBToVectorPixelAccessor.h.

Member Function Documentation

◆ Get()

template<typename T>
ExternalType itk::Accessor::RGBToVectorPixelAccessor< T >::Get ( const InternalType input) const
inline

Read access to the RGBToVector component

Definition at line 68 of file itkRGBToVectorPixelAccessor.h.

◆ Set()

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

Write access to the RGBToVector component

Definition at line 59 of file itkRGBToVectorPixelAccessor.h.


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