ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | List of all members
itk::RedPixelAccessor< T > Class Template Reference

#include <itkRedPixelAccessor.h>

Detailed Description

template<typename T>
class itk::RedPixelAccessor< T >

Give access to the red component of a RGBPixel type.

This class is intended to be used as parameter of an ImageAdaptor to make an RGBPixel image appear as being of scalar type T, showing only the Red component.

See Also
ImageAdaptor

Definition at line 38 of file itkRedPixelAccessor.h.

Public Types

using ExternalType = T
 
using InternalType = RGBPixel< T >
 
using Self = RedPixelAccessor
 

Public Member Functions

const ExternalTypeGet (const InternalType &input) const
 
bool operator!= (const Self &) const
 
bool operator== (const Self &other) const
 
void Set (InternalType &output, const ExternalType &input) const
 

Member Typedef Documentation

template<typename T >
using itk::RedPixelAccessor< T >::ExternalType = T

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

Definition at line 46 of file itkRedPixelAccessor.h.

template<typename T >
using itk::RedPixelAccessor< T >::InternalType = RGBPixel< T >

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

Definition at line 50 of file itkRedPixelAccessor.h.

template<typename T >
using itk::RedPixelAccessor< T >::Self = RedPixelAccessor

Standard class type aliases.

Definition at line 42 of file itkRedPixelAccessor.h.

Member Function Documentation

template<typename T >
const ExternalType& itk::RedPixelAccessor< T >::Get ( const InternalType input) const
inline

Read access to the Red component

Definition at line 59 of file itkRedPixelAccessor.h.

References itk::RGBPixel< TComponent >::GetRed().

template<typename T >
bool itk::RedPixelAccessor< T >::operator!= ( const Self ) const
inline

Definition at line 64 of file itkRedPixelAccessor.h.

template<typename T >
bool itk::RedPixelAccessor< T >::operator== ( const Self other) const
inline

Definition at line 69 of file itkRedPixelAccessor.h.

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

Write access to the Red component

Definition at line 53 of file itkRedPixelAccessor.h.

References itk::RGBPixel< TComponent >::SetRed().


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