ITK
5.2.0
Insight Toolkit
|
#include <itkDefaultVectorPixelAccessor.h>
Public Types | |
using | ExternalType = VariableLengthVector< TType > |
using | InternalType = TType |
using | VectorLengthType = unsigned int |
Public Member Functions | |
ExternalType | Get (const InternalType &input, const SizeValueType offset) const |
void | Set (InternalType &output, const ExternalType &input, const unsigned long offset) const |
VectorLengthType | m_VectorLength { 0 } |
VectorLengthType | m_OffsetMultiplier { 0 } |
void | SetVectorLength (VectorLengthType l) |
VectorLengthType | GetVectorLength () const |
DefaultVectorPixelAccessor ()=default | |
DefaultVectorPixelAccessor (VectorLengthType l) | |
~DefaultVectorPixelAccessor ()=default | |
Give access to partial aspects of a type.
DefaultVectorPixelAccessor is specifically meant to provide VectorImage with the same DefaultPixelAccessor
interface that DefaultPixelAccessor provides to Image.
The template parameters is the type that is contained in by the elements of a vector.
The class also contains a m_VectorLength parameter, set with the SetVectorLength method to set the length of the vectors. This must be set before the accessor can be used. This is the length of each of the vector containers.
Definition at line 50 of file itkDefaultVectorPixelAccessor.h.
using itk::DefaultVectorPixelAccessor< TType >::ExternalType = VariableLengthVector<TType> |
External type alias. It defines the external aspect that this class will exhibit. Here it is an VariableLengthVector. The container does not manage the memory. In other words it is an array reference with the contents pointing to the actual data in the image.
Definition at line 59 of file itkDefaultVectorPixelAccessor.h.
using itk::DefaultVectorPixelAccessor< TType >::InternalType = TType |
Internal type alias. It defines the internal real representation of data.
Definition at line 62 of file itkDefaultVectorPixelAccessor.h.
using itk::DefaultVectorPixelAccessor< TType >::VectorLengthType = unsigned int |
Definition at line 53 of file itkDefaultVectorPixelAccessor.h.
|
default |
Set the length of each vector in the VectorImage
|
inline |
Constructor to initialize VectorLength at construction time
Definition at line 104 of file itkDefaultVectorPixelAccessor.h.
|
default |
Set the length of each vector in the VectorImage
|
inline |
Get the value from input
Definition at line 78 of file itkDefaultVectorPixelAccessor.h.
Referenced by itk::Accessor::VectorImageToImagePixelAccessor< TPixelType >::Get(), and itk::Accessor::VectorImageToImagePixelAccessor< TPixelType >::Set().
|
inline |
Get Vector lengths
Definition at line 96 of file itkDefaultVectorPixelAccessor.h.
Referenced by itk::Accessor::VectorImageToImagePixelAccessor< TPixelType >::GetVectorLength().
|
inline |
Set output using the value in input
Definition at line 66 of file itkDefaultVectorPixelAccessor.h.
|
inline |
Set the length of each vector in the VectorImage
Definition at line 87 of file itkDefaultVectorPixelAccessor.h.
Referenced by itk::Accessor::VectorImageToImagePixelAccessor< TPixelType >::SetVectorLength(), and itk::Accessor::VectorImageToImagePixelAccessor< TPixelType >::VectorImageToImagePixelAccessor().
|
private |
Set the length of each vector in the VectorImage
Definition at line 114 of file itkDefaultVectorPixelAccessor.h.
|
private |
Set the length of each vector in the VectorImage
Definition at line 113 of file itkDefaultVectorPixelAccessor.h.