#include <itkNthElementPixelAccessor.h>
Public Types | |
typedef NthElementPixelAccessor | Self |
typedef T | ExternalType |
typedef TContainer | InternalType |
Public Member Functions | |
void | Set (InternalType &output, const ExternalType &input) const |
ExternalType | Get (const InternalType &input) const |
unsigned int | GetElementNumber (void) const |
void | SetElementNumber (unsigned int nth) |
bool | operator!= (const Self &accessor) const |
NthElementPixelAccessor & | operator= (const NthElementPixelAccessor &accessor) |
NthElementPixelAccessor () |
This class is intended to be used as parameter of an ImageAdaptor to make a Container appears as being of scalar type T, showing only the N-th component.
This class is templated over the container type. Any container type that provides a method: operator[]( unsigned int ) can be used here, for example: itkPoint, itkVector, itkVectorContainer, and std::vector.
For performance, no bound checking is performed during access to the n-th element.
Definition at line 48 of file itkNthElementPixelAccessor.h.
|
that this class will exhibit Definition at line 55 of file itkNthElementPixelAccessor.h. Referenced by itk::NthElementPixelAccessor< T, TContainer >::Get(), and itk::NthElementPixelAccessor< T, TContainer >::Set(). |
|
Internal typedef. It defines the internal real representation of data Definition at line 59 of file itkNthElementPixelAccessor.h. Referenced by itk::NthElementPixelAccessor< T, TContainer >::Get(), and itk::NthElementPixelAccessor< T, TContainer >::Set(). |
|
Standard class typedefs. Definition at line 52 of file itkNthElementPixelAccessor.h. Referenced by itk::NthElementPixelAccessor< T, TContainer >::operator!=(). |
|
Constructor Definition at line 92 of file itkNthElementPixelAccessor.h. |
|
Read access to the NthElement component Definition at line 66 of file itkNthElementPixelAccessor.h. References itk::NthElementPixelAccessor< T, TContainer >::ExternalType, and itk::NthElementPixelAccessor< T, TContainer >::InternalType. |
|
Get the element number to access in the container Definition at line 70 of file itkNthElementPixelAccessor.h. |
|
operator!=. This is needed to convert a pixel accessor to a functor.
Definition at line 79 of file itkNthElementPixelAccessor.h. References itk::NthElementPixelAccessor< T, TContainer >::m_ElementNumber, and itk::NthElementPixelAccessor< T, TContainer >::Self. |
|
Assignment operator Definition at line 85 of file itkNthElementPixelAccessor.h. References itk::NthElementPixelAccessor< T, TContainer >::m_ElementNumber. |
|
Write access to the NthElement component Definition at line 62 of file itkNthElementPixelAccessor.h. References itk::NthElementPixelAccessor< T, TContainer >::ExternalType, and itk::NthElementPixelAccessor< T, TContainer >::InternalType. |
|
Set the element number to access in the container Definition at line 74 of file itkNthElementPixelAccessor.h. |