ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkVectorImageNeighborhoodAccessorFunctor.h>
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.
Definition at line 41 of file itkVectorImageNeighborhoodAccessorFunctor.h.
Public Types | |
template<typename TOutput = ImageType> | |
using | ImageBoundaryConditionType = ImageBoundaryCondition< ImageType, TOutput > |
using | ImageType = TImage |
using | InternalPixelType = typename ImageType::InternalPixelType |
using | NeighborhoodType = Neighborhood< InternalPixelType *, TImage::ImageDimension > |
using | OffsetType = typename ImageType::OffsetType |
using | PixelType = typename ImageType::PixelType |
using | VectorLengthType = unsigned int |
Public Member Functions | |
template<typename TOutput > | |
ImageBoundaryConditionType < TOutput >::OutputPixelType | BoundaryCondition (const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data, const ImageBoundaryConditionType< TOutput > *boundaryCondition) const |
PixelType | Get (const InternalPixelType *pixelPointer) const |
VectorLengthType | GetVectorLength () |
void | Set (InternalPixelType *const pixelPointer, const PixelType &p) const |
void | SetVectorLength (VectorLengthType length) |
VectorImageNeighborhoodAccessorFunctor (VectorLengthType length) | |
VectorImageNeighborhoodAccessorFunctor () | |
void | SetBegin (const InternalPixelType *begin) |
Private Attributes | |
InternalPixelType * | m_Begin |
VectorLengthType | m_OffsetMultiplier {0} |
VectorLengthType | m_VectorLength {0} |
using itk::VectorImageNeighborhoodAccessorFunctor< TImage >::ImageBoundaryConditionType = ImageBoundaryCondition<ImageType, TOutput> |
Definition at line 54 of file itkVectorImageNeighborhoodAccessorFunctor.h.
using itk::VectorImageNeighborhoodAccessorFunctor< TImage >::ImageType = TImage |
Definition at line 44 of file itkVectorImageNeighborhoodAccessorFunctor.h.
using itk::VectorImageNeighborhoodAccessorFunctor< TImage >::InternalPixelType = typename ImageType::InternalPixelType |
Definition at line 46 of file itkVectorImageNeighborhoodAccessorFunctor.h.
using itk::VectorImageNeighborhoodAccessorFunctor< TImage >::NeighborhoodType = Neighborhood< InternalPixelType *, TImage ::ImageDimension > |
Definition at line 51 of file itkVectorImageNeighborhoodAccessorFunctor.h.
using itk::VectorImageNeighborhoodAccessorFunctor< TImage >::OffsetType = typename ImageType::OffsetType |
Definition at line 48 of file itkVectorImageNeighborhoodAccessorFunctor.h.
using itk::VectorImageNeighborhoodAccessorFunctor< TImage >::PixelType = typename ImageType::PixelType |
Definition at line 45 of file itkVectorImageNeighborhoodAccessorFunctor.h.
using itk::VectorImageNeighborhoodAccessorFunctor< TImage >::VectorLengthType = unsigned int |
Definition at line 47 of file itkVectorImageNeighborhoodAccessorFunctor.h.
|
inline |
Definition at line 56 of file itkVectorImageNeighborhoodAccessorFunctor.h.
|
inline |
Definition at line 58 of file itkVectorImageNeighborhoodAccessorFunctor.h.
|
inline |
Definition at line 105 of file itkVectorImageNeighborhoodAccessorFunctor.h.
|
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 >::m_Begin, itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_OffsetMultiplier, and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_VectorLength.
|
inline |
Methods to Set/Get vector length. This should be the length of a block of pixels in the VectorImage.
Definition at line 124 of file itkVectorImageNeighborhoodAccessorFunctor.h.
References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_VectorLength.
|
inline |
Method to set the pixel value at a certain pixel pointer
Definition at line 91 of file itkVectorImageNeighborhoodAccessorFunctor.h.
References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_Begin, itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_OffsetMultiplier, and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_VectorLength.
|
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:
Definition at line 74 of file itkVectorImageNeighborhoodAccessorFunctor.h.
References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_Begin.
|
inline |
Methods to Set/Get vector length. This should be the length of a block of pixels in the VectorImage.
Definition at line 116 of file itkVectorImageNeighborhoodAccessorFunctor.h.
References itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_OffsetMultiplier, and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::m_VectorLength.
|
private |
|
private |
|
private |
Definition at line 130 of file itkVectorImageNeighborhoodAccessorFunctor.h.
Referenced by itk::VectorImageNeighborhoodAccessorFunctor< TImage >::Get(), itk::VectorImageNeighborhoodAccessorFunctor< TImage >::GetVectorLength(), itk::VectorImageNeighborhoodAccessorFunctor< TImage >::Set(), and itk::VectorImageNeighborhoodAccessorFunctor< TImage >::SetVectorLength().