Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::DefaultPixelAccessorFunctor< TImageType > Class Template Reference
[Image Adaptors]

This class provides a common API for pixel accessors for Image and VectorImage. (between the DefaultVectorPixelAccessor and DefaultPixelAccessor). More...

#include <itkDefaultPixelAccessorFunctor.h>

List of all members.

Public Types

typedef TImageType ImageType
typedef ImageType::InternalPixelType InternalPixelType
typedef ImageType::PixelType ExternalPixelType
typedef ImageType::AccessorType PixelAccessorType
typedef unsigned int VectorLengthType

Public Member Functions

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

Static Public Member Functions

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


Detailed Description

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

This class provides a common API for pixel accessors for Image and VectorImage. (between the DefaultVectorPixelAccessor and DefaultPixelAccessor).

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

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 41 of file itkDefaultPixelAccessorFunctor.h.


Member Typedef Documentation

template<class TImageType>
typedef ImageType::PixelType itk::DefaultPixelAccessorFunctor< TImageType >::ExternalPixelType
 

Definition at line 46 of file itkDefaultPixelAccessorFunctor.h.

Referenced by itk::DefaultPixelAccessorFunctor< TImageType >::Get(), and itk::DefaultPixelAccessorFunctor< TImageType >::Set().

template<class TImageType>
typedef TImageType itk::DefaultPixelAccessorFunctor< TImageType >::ImageType
 

Definition at line 44 of file itkDefaultPixelAccessorFunctor.h.

Referenced by itk::DefaultPixelAccessorFunctor< TImageType >::GetVectorLength(), and itk::DefaultPixelAccessorFunctor< TImageType >::SetVectorLength().

template<class TImageType>
typedef ImageType::InternalPixelType itk::DefaultPixelAccessorFunctor< TImageType >::InternalPixelType
 

Definition at line 45 of file itkDefaultPixelAccessorFunctor.h.

Referenced by itk::DefaultPixelAccessorFunctor< TImageType >::Get(), itk::DefaultPixelAccessorFunctor< TImageType >::Set(), and itk::DefaultPixelAccessorFunctor< TImageType >::SetBegin().

template<class TImageType>
typedef ImageType::AccessorType itk::DefaultPixelAccessorFunctor< TImageType >::PixelAccessorType
 

Definition at line 47 of file itkDefaultPixelAccessorFunctor.h.

Referenced by itk::DefaultPixelAccessorFunctor< TImageType >::SetPixelAccessor().

template<class TImageType>
typedef unsigned int itk::DefaultPixelAccessorFunctor< TImageType >::VectorLengthType
 

Definition at line 48 of file itkDefaultPixelAccessorFunctor.h.

Referenced by itk::DefaultPixelAccessorFunctor< TImageType >::GetVectorLength(), and itk::DefaultPixelAccessorFunctor< TImageType >::SetVectorLength().


Member Function Documentation

template<class TImageType>
const ExternalPixelType itk::DefaultPixelAccessorFunctor< TImageType >::Get const InternalPixelType input  )  const [inline]
 

Get a const reference to the pixel.

Definition at line 86 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::ExternalPixelType, and itk::DefaultPixelAccessorFunctor< TImageType >::InternalPixelType.

template<class TImageType>
ExternalPixelType itk::DefaultPixelAccessorFunctor< TImageType >::Get InternalPixelType input  )  const [inline]
 

Get the value from input

Definition at line 80 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::ExternalPixelType, and itk::DefaultPixelAccessorFunctor< TImageType >::InternalPixelType.

template<class TImageType>
VectorLengthType itk::DefaultPixelAccessorFunctor< TImageType >::GetVectorLength const ImageType  )  [inline, static]
 

Definition at line 54 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::ImageType, and itk::DefaultPixelAccessorFunctor< TImageType >::VectorLengthType.

template<class TImageType>
void itk::DefaultPixelAccessorFunctor< TImageType >::Set InternalPixelType output,
const ExternalPixelType input
const [inline]
 

Set output using the value in input

Definition at line 74 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::ExternalPixelType, and itk::DefaultPixelAccessorFunctor< TImageType >::InternalPixelType.

template<class 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 71 of file itkDefaultPixelAccessorFunctor.h.

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

template<class TImageType>
void itk::DefaultPixelAccessorFunctor< TImageType >::SetPixelAccessor 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 63 of file itkDefaultPixelAccessorFunctor.h.

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

template<class TImageType>
void itk::DefaultPixelAccessorFunctor< TImageType >::SetVectorLength ImageType ,
VectorLengthType 
[inline, static]
 

Definition at line 50 of file itkDefaultPixelAccessorFunctor.h.

References itk::DefaultPixelAccessorFunctor< TImageType >::ImageType, and itk::DefaultPixelAccessorFunctor< TImageType >::VectorLengthType.


The documentation for this class was generated from the following file:
Generated at Thu May 25 00:45:59 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000