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

itk::VectorImageNeighborhoodAccessorFunctor< TImage > Class Template Reference

Provides accessor interfaces to Access pixels and is meant to be used on pointers to pixels held by the Neighborhood class. More...

#include <itkVectorImageNeighborhoodAccessorFunctor.h>

List of all members.

Public Types

typedef TImage ImageType
typedef ImageType::PixelType PixelType
typedef ImageType::InternalPixelType InternalPixelType
typedef unsigned int VectorLengthType
typedef ImageType::OffsetType OffsetType
typedef Neighborhood< InternalPixelType *,
::itk::GetImageDimension<
TImage >::ImageDimension > 
NeighborhoodType
typedef ImageBoundaryCondition<
ImageType > const * 
ImageBoundaryConditionConstPointerType

Public Member Functions

 VectorImageNeighborhoodAccessorFunctor (VectorLengthType length)
 VectorImageNeighborhoodAccessorFunctor ()
PixelType Get (const InternalPixelType *pixelPointer) const
PixelType BoundaryCondition (const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data, const ImageBoundaryConditionConstPointerType boundaryCondition) const
void SetVectorLength (VectorLengthType length)
VectorLengthType GetVectorLength ()
void SetBegin (const InternalPixelType *begin)
void Set (InternalPixelType *&pixelPointer, const PixelType &p) const


Detailed Description

template<class TImage>
class itk::VectorImageNeighborhoodAccessorFunctor< TImage >

Provides accessor interfaces to Access pixels and is meant to be used on pointers to pixels held by the Neighborhood class.

A typical user should not need to use this class. The class is internally used by the neighborhood iterators.

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.

Definition at line 41 of file itkVectorImageNeighborhoodAccessorFunctor.h.


Member Typedef Documentation

template<class TImage>
typedef ImageBoundaryCondition< ImageType > const* itk::VectorImageNeighborhoodAccessorFunctor< TImage >::ImageBoundaryConditionConstPointerType
 

Definition at line 54 of file itkVectorImageNeighborhoodAccessorFunctor.h.

Referenced by itk::VectorImageNeighborhoodAccessorFunctor< TImage >::BoundaryCondition().

template<class TImage>
typedef TImage itk::VectorImageNeighborhoodAccessorFunctor< TImage >::ImageType
 

Definition at line 44 of file itkVectorImageNeighborhoodAccessorFunctor.h.

template<class TImage>
typedef ImageType::InternalPixelType itk::VectorImageNeighborhoodAccessorFunctor< TImage >::InternalPixelType
 

Definition at line 46 of file itkVectorImageNeighborhoodAccessorFunctor.h.

Referenced by itk::VectorImageNeighborhoodAccessorFunctor< TImage >::Set(), and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::SetBegin().

template<class TImage>
typedef Neighborhood< InternalPixelType *, ::itk::GetImageDimension< TImage >::ImageDimension> itk::VectorImageNeighborhoodAccessorFunctor< TImage >::NeighborhoodType
 

Definition at line 51 of file itkVectorImageNeighborhoodAccessorFunctor.h.

Referenced by itk::VectorImageNeighborhoodAccessorFunctor< TImage >::BoundaryCondition().

template<class TImage>
typedef ImageType::OffsetType itk::VectorImageNeighborhoodAccessorFunctor< TImage >::OffsetType
 

Definition at line 48 of file itkVectorImageNeighborhoodAccessorFunctor.h.

Referenced by itk::VectorImageNeighborhoodAccessorFunctor< TImage >::BoundaryCondition().

template<class TImage>
typedef ImageType::PixelType itk::VectorImageNeighborhoodAccessorFunctor< TImage >::PixelType
 

Definition at line 45 of file itkVectorImageNeighborhoodAccessorFunctor.h.

Referenced by itk::VectorImageNeighborhoodAccessorFunctor< TImage >::Get().

template<class TImage>
typedef unsigned int itk::VectorImageNeighborhoodAccessorFunctor< TImage >::VectorLengthType
 

Definition at line 47 of file itkVectorImageNeighborhoodAccessorFunctor.h.

Referenced by itk::VectorImageNeighborhoodAccessorFunctor< TImage >::Set(), and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::VectorImageNeighborhoodAccessorFunctor().


Constructor & Destructor Documentation

template<class TImage>
itk::VectorImageNeighborhoodAccessorFunctor< TImage >::VectorImageNeighborhoodAccessorFunctor VectorLengthType  length  )  [inline]
 

Definition at line 56 of file itkVectorImageNeighborhoodAccessorFunctor.h.

References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::VectorLengthType.

template<class TImage>
itk::VectorImageNeighborhoodAccessorFunctor< TImage >::VectorImageNeighborhoodAccessorFunctor  )  [inline]
 

Definition at line 58 of file itkVectorImageNeighborhoodAccessorFunctor.h.


Member Function Documentation

template<class TImage>
PixelType itk::VectorImageNeighborhoodAccessorFunctor< TImage >::BoundaryCondition const OffsetType point_index,
const OffsetType boundary_offset,
const NeighborhoodType data,
const ImageBoundaryConditionConstPointerType  boundaryCondition
const [inline]
 

Definition at line 102 of file itkVectorImageNeighborhoodAccessorFunctor.h.

References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::ImageBoundaryConditionConstPointerType, itk::VectorImageNeighborhoodAccessorFunctor< TImage >::NeighborhoodType, and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::OffsetType.

template<class TImage>
PixelType itk::VectorImageNeighborhoodAccessorFunctor< TImage >::Get const InternalPixelType pixelPointer  )  const [inline]
 

Method to dereference a pixel pointer. This is used from the ConstNeighborhoodIterator as the equivalent operation to (*it). This method should be preferred over the former (*it) notation. The reason is that dereferencing a pointer to a location of VectorImage pixel involves a different operation that simply dereferencing the pointer. Here a PixelType (array of InternalPixelType s) is created on the stack and returned.

Definition at line 85 of file itkVectorImageNeighborhoodAccessorFunctor.h.

References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::PixelType.

template<class TImage>
VectorLengthType itk::VectorImageNeighborhoodAccessorFunctor< TImage >::GetVectorLength  )  [inline]
 

Methods to Set/Get vector length. This should be the length of a block of pixels in the VectorImage.

Definition at line 122 of file itkVectorImageNeighborhoodAccessorFunctor.h.

template<class TImage>
void itk::VectorImageNeighborhoodAccessorFunctor< TImage >::Set InternalPixelType *&  pixelPointer,
const PixelType p
const [inline]
 

Method to set the pixel value at a certain pixel pointer

Definition at line 91 of file itkVectorImageNeighborhoodAccessorFunctor.h.

References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::InternalPixelType, and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::VectorLengthType.

template<class TImage>
void itk::VectorImageNeighborhoodAccessorFunctor< TImage >::SetBegin const InternalPixelType begin  )  [inline]
 

Set the pointer index to the start of the buffer. This must be set by the iterators to the starting location of the buffer. Typically a neighborhood iterator iterating on a neighborhood of an Image, say image will set this in its constructor. For instance:

 ConstNeighborhoodIterator( radius, image, )
   {
   ...
   m_NeighborhoodAccessorFunctor.SetBegin( image->GetBufferPointer() );
   }

Definition at line 74 of file itkVectorImageNeighborhoodAccessorFunctor.h.

References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::InternalPixelType.

template<class TImage>
void itk::VectorImageNeighborhoodAccessorFunctor< TImage >::SetVectorLength VectorLengthType  length  )  [inline]
 

Methods to Set/Get vector length. This should be the length of a block of pixels in the VectorImage.

Definition at line 114 of file itkVectorImageNeighborhoodAccessorFunctor.h.


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