ITK  5.2.0
Insight Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
itk::DefaultPixelAccessorFunctor< TImageType > Class Template Reference

#include <itkDefaultPixelAccessorFunctor.h>

Classes

struct  Rebind
 

Public Types

using ExternalPixelType = typename ImageType::PixelType
 
using ImageType = TImageType
 
using InternalPixelType = typename ImageType::InternalPixelType
 
using PixelAccessorType = typename ImageType::AccessorType
 
using VectorLengthType = unsigned int
 

Public Member Functions

const ExternalPixelType Get (const InternalPixelType &input) const
 
ExternalPixelType Get (InternalPixelType &input) const
 
void Set (InternalPixelType &output, const ExternalPixelType &input) const
 
void SetBegin (const InternalPixelType *)
 
void SetPixelAccessor (const PixelAccessorType &accessor)
 

Static Public Member Functions

static VectorLengthType GetVectorLength (const ImageType *)
 
static void SetVectorLength (ImageType *, VectorLengthType)
 

Private Attributes

PixelAccessorType m_PixelAccessor
 

Detailed Description

template<typename TImageType>
class itk::DefaultPixelAccessorFunctor< TImageType >

Provides a common API for pixel accessors for Image and VectorImage.

This class makes the interface to DefaultVectorPixelAccessor and DefaultPixelAccessor appear the same.

The pixel accessor is set with the SetPixelAccessor method. This accessor is meant to be used for Image and not for VectorImage.

Note
This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149.
See also
DefaultVectorPixelAccessor
DefaultPixelAccessor
DefaultVectorPixelAccessorFunctor

Definition at line 47 of file itkDefaultPixelAccessorFunctor.h.

Member Typedef Documentation

◆ ExternalPixelType

template<typename TImageType >
using itk::DefaultPixelAccessorFunctor< TImageType >::ExternalPixelType = typename ImageType::PixelType

Definition at line 52 of file itkDefaultPixelAccessorFunctor.h.

◆ ImageType

template<typename TImageType >
using itk::DefaultPixelAccessorFunctor< TImageType >::ImageType = TImageType

Definition at line 50 of file itkDefaultPixelAccessorFunctor.h.

◆ InternalPixelType

template<typename TImageType >
using itk::DefaultPixelAccessorFunctor< TImageType >::InternalPixelType = typename ImageType::InternalPixelType

Definition at line 51 of file itkDefaultPixelAccessorFunctor.h.

◆ PixelAccessorType

template<typename TImageType >
using itk::DefaultPixelAccessorFunctor< TImageType >::PixelAccessorType = typename ImageType::AccessorType

Definition at line 53 of file itkDefaultPixelAccessorFunctor.h.

◆ VectorLengthType

template<typename TImageType >
using itk::DefaultPixelAccessorFunctor< TImageType >::VectorLengthType = unsigned int

Definition at line 54 of file itkDefaultPixelAccessorFunctor.h.

Member Function Documentation

◆ Get() [1/2]

template<typename TImageType >
const ExternalPixelType itk::DefaultPixelAccessorFunctor< TImageType >::Get ( const InternalPixelType input) const
inline

Get a const reference to the pixel.

Definition at line 111 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.

◆ Get() [2/2]

template<typename TImageType >
ExternalPixelType itk::DefaultPixelAccessorFunctor< TImageType >::Get ( InternalPixelType input) const
inline

Get the value from input

Definition at line 104 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.

◆ GetVectorLength()

template<typename TImageType >
static VectorLengthType itk::DefaultPixelAccessorFunctor< TImageType >::GetVectorLength ( const ImageType )
inlinestatic

Definition at line 73 of file itkDefaultPixelAccessorFunctor.h.

◆ Set()

template<typename TImageType >
void itk::DefaultPixelAccessorFunctor< TImageType >::Set ( InternalPixelType output,
const ExternalPixelType input 
) const
inline

Set output using the value in input

Definition at line 97 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.

◆ SetBegin()

template<typename TImageType >
void itk::DefaultPixelAccessorFunctor< TImageType >::SetBegin ( const InternalPixelType )
inline

Set the pointer index to the start of the buffer. The method exists to maintain consistency in the API of the DefaultPixelAccessorFunctor and the DefaultVectorPixelAccessorFunctor.

Definition at line 92 of file itkDefaultPixelAccessorFunctor.h.

◆ SetPixelAccessor()

template<typename TImageType >
void itk::DefaultPixelAccessorFunctor< TImageType >::SetPixelAccessor ( const PixelAccessorType accessor)
inline

Set the PixelAccessor. This is set at construction time by the image iterators. The type PixelAccessorType is obtained from the ImageType over which the iterators are templated.

Definition at line 83 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.

◆ SetVectorLength()

template<typename TImageType >
static void itk::DefaultPixelAccessorFunctor< TImageType >::SetVectorLength ( ImageType ,
VectorLengthType   
)
inlinestatic

Definition at line 69 of file itkDefaultPixelAccessorFunctor.h.

Member Data Documentation

◆ m_PixelAccessor

template<typename TImageType >
PixelAccessorType itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor
private

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