ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkDefaultPixelAccessorFunctor.h>
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.
Definition at line 47 of file 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 | |
ExternalPixelType | Get (InternalPixelType &input) const |
const ExternalPixelType | Get (const 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 |
using itk::DefaultPixelAccessorFunctor< TImageType >::ExternalPixelType = typename ImageType::PixelType |
Definition at line 52 of file itkDefaultPixelAccessorFunctor.h.
using itk::DefaultPixelAccessorFunctor< TImageType >::ImageType = TImageType |
Definition at line 50 of file itkDefaultPixelAccessorFunctor.h.
using itk::DefaultPixelAccessorFunctor< TImageType >::InternalPixelType = typename ImageType::InternalPixelType |
Definition at line 51 of file itkDefaultPixelAccessorFunctor.h.
using itk::DefaultPixelAccessorFunctor< TImageType >::PixelAccessorType = typename ImageType::AccessorType |
Definition at line 53 of file itkDefaultPixelAccessorFunctor.h.
using itk::DefaultPixelAccessorFunctor< TImageType >::VectorLengthType = unsigned int |
Definition at line 54 of file itkDefaultPixelAccessorFunctor.h.
|
inline |
Get the value from input
Definition at line 97 of file itkDefaultPixelAccessorFunctor.h.
References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.
|
inline |
Get a const reference to the pixel.
Definition at line 103 of file itkDefaultPixelAccessorFunctor.h.
References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.
|
inlinestatic |
Definition at line 71 of file itkDefaultPixelAccessorFunctor.h.
|
inline |
Set output using the value in input
Definition at line 91 of file itkDefaultPixelAccessorFunctor.h.
References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.
|
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 88 of file itkDefaultPixelAccessorFunctor.h.
|
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 80 of file itkDefaultPixelAccessorFunctor.h.
References itk::DefaultPixelAccessorFunctor< TImageType >::m_PixelAccessor.
|
inlinestatic |
Definition at line 68 of file itkDefaultPixelAccessorFunctor.h.
|
private |
Definition at line 109 of file itkDefaultPixelAccessorFunctor.h.
Referenced by itk::DefaultPixelAccessorFunctor< TImageType >::Get(), itk::DefaultPixelAccessorFunctor< TImageType >::Set(), and itk::DefaultPixelAccessorFunctor< TImageType >::SetPixelAccessor().