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

#include <itkDefaultPixelAccessor.h>

Detailed Description

template<typename TType>
class itk::DefaultPixelAccessor< TType >

Give access to partial aspects a type.

DefaultPixelAccessor is templated over an internal type and an external type representation. This class encapsulates a customized conversion between the internal and external type representations.

PixelAccessor is the class responsible for pixel-to-pixel transformation during image data access. The DefaultPixelAccessor is an identity operation on the pixel value. It only exist in order to standardize the way in which pixels are accessed.

PixelAccessor are used by ImageAdaptors in order to present an Image as being of a different type. The usual application of ImageAccessors is Image casting, by avoiding the overhead of an ImageFilter that performs the complete transformation

See also
ImageAdaptor
PixelAccessor
Image

Definition at line 54 of file itkDefaultPixelAccessor.h.

Public Types

using ExternalType = TType
 
using InternalType = TType
 

Public Member Functions

const TType & Get (const TType &input) const
 
TType & Get (TType &input) const
 
void Set (TType &output, const TType &input) const
 

Member Typedef Documentation

◆ ExternalType

template<typename TType >
using itk::DefaultPixelAccessor< TType >::ExternalType = TType

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

Definition at line 59 of file itkDefaultPixelAccessor.h.

◆ InternalType

template<typename TType >
using itk::DefaultPixelAccessor< TType >::InternalType = TType

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

Definition at line 63 of file itkDefaultPixelAccessor.h.

Member Function Documentation

◆ Get() [1/2]

template<typename TType >
const TType & itk::DefaultPixelAccessor< TType >::Get ( const TType &  input) const
inline

Get a const reference to the pixel.

Definition at line 81 of file itkDefaultPixelAccessor.h.

◆ Get() [2/2]

template<typename TType >
TType & itk::DefaultPixelAccessor< TType >::Get ( TType &  input) const
inline

Get the pixel.

Definition at line 74 of file itkDefaultPixelAccessor.h.

◆ Set()

template<typename TType >
void itk::DefaultPixelAccessor< TType >::Set ( TType &  output,
const TType &  input 
) const
inline

Set the pixel.

Definition at line 67 of file itkDefaultPixelAccessor.h.


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