DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <itkVectorImageRegionIteratorWithIndex.h>
A multi-dimensional iterator templated over image type. It provides the same interfaces for both itk::Image<T, N+1> and itk::VectorImage<T, N>
If image4d is a itk::Image<double,4>
or itk::VectorImage<double,3>
object, and k is 0,1,2,3 axis, then the iterator could loop over axises except k-axis, and obtain a vector a long k-axis
Definition at line 63 of file itkVectorImageRegionIteratorWithIndex.h.
Public Types | |
typedef Superclass::AccessorType | AccessorType |
typedef Superclass::ImageType | ImageType |
typedef Superclass::IndexType | IndexType |
typedef Superclass::InternalPixelType | InternalPixelType |
typedef ImageRegion< TImage::ImageDimension+1 > | NDImageRegionType |
typedef Superclass::OffsetType | OffsetType |
typedef Superclass::PixelContainer | PixelContainer |
typedef Superclass::PixelContainerPointer | PixelContainerPointer |
typedef Superclass::PixelType | PixelType |
typedef VariableLengthVector< InternalPixelType > | PixelVectorType |
typedef Superclass::RegionType | RegionType |
typedef VectorImageRegionIteratorWithIndex | Self |
typedef Superclass::SizeType | SizeType |
typedef ImageRegionIteratorWithIndex< TImage > | Superclass |
typedef ImageRegion< TImage::ImageDimension > | VectorImageRegionType |
Public Member Functions | |
void | GetVector (PixelVectorType &vec, const int offIndex=0) const |
Self & | operator= (const Self &it) |
void | SetVector (const PixelVectorType &value, const int offIndex=0) const |
typedef (itk::Concept::SameType< ImageType, VectorImage< InternalPixelType, ImageIteratorDimension > >) SameTypeCheck | |
typedef (itk::Concept::SameType< PixelType, PixelVectorType >) SameTypeCheck2 | |
VectorImageRegionIteratorWithIndex () | |
VectorImageRegionIteratorWithIndex (const Self &it) | |
VectorImageRegionIteratorWithIndex (TImage *ptr, const RegionType ®ionInput, int vectorAxis=-1) | |
~VectorImageRegionIteratorWithIndex () | |
Static Public Attributes | |
static const unsigned int | ImageIteratorDimension = TImage::ImageDimension |
Protected Member Functions | |
void | Initialize (TImage *ptr, const RegionType ®ionInput, int vectorAxis=-1) |
Self & | operator= (const ImageRegionIteratorWithIndex< TImage > &it) |
VectorImageRegionIteratorWithIndex (const ImageRegionIteratorWithIndex< TImage > &it) | |
Protected Attributes | |
const InternalPixelType * | m_BeginBuffer |
int | m_VectorAxis |
int | m_VectorSize |
OffsetValueType | m_VectorStride |
typedef Superclass::AccessorType itk::VectorImageRegionIteratorWithIndex< TImage >::AccessorType |
Definition at line 90 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::ImageType itk::VectorImageRegionIteratorWithIndex< TImage >::ImageType |
Definition at line 85 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::IndexType itk::VectorImageRegionIteratorWithIndex< TImage >::IndexType |
Inherit types from the superclass
Definition at line 81 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::InternalPixelType itk::VectorImageRegionIteratorWithIndex< TImage >::InternalPixelType |
Definition at line 88 of file itkVectorImageRegionIteratorWithIndex.h.
typedef ImageRegion<TImage::ImageDimension+1> itk::VectorImageRegionIteratorWithIndex< TImage >::NDImageRegionType |
Definition at line 92 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::OffsetType itk::VectorImageRegionIteratorWithIndex< TImage >::OffsetType |
Definition at line 83 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::PixelContainer itk::VectorImageRegionIteratorWithIndex< TImage >::PixelContainer |
Definition at line 86 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::PixelContainerPointer itk::VectorImageRegionIteratorWithIndex< TImage >::PixelContainerPointer |
Definition at line 87 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::PixelType itk::VectorImageRegionIteratorWithIndex< TImage >::PixelType |
Definition at line 89 of file itkVectorImageRegionIteratorWithIndex.h.
typedef VariableLengthVector< InternalPixelType > itk::VectorImageRegionIteratorWithIndex< TImage >::PixelVectorType |
Definition at line 95 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::RegionType itk::VectorImageRegionIteratorWithIndex< TImage >::RegionType |
Definition at line 84 of file itkVectorImageRegionIteratorWithIndex.h.
typedef VectorImageRegionIteratorWithIndex itk::VectorImageRegionIteratorWithIndex< TImage >::Self |
Standard class typedefs.
Definition at line 67 of file itkVectorImageRegionIteratorWithIndex.h.
typedef Superclass::SizeType itk::VectorImageRegionIteratorWithIndex< TImage >::SizeType |
Definition at line 82 of file itkVectorImageRegionIteratorWithIndex.h.
typedef ImageRegionIteratorWithIndex< TImage > itk::VectorImageRegionIteratorWithIndex< TImage >::Superclass |
Define the superclass
Definition at line 77 of file itkVectorImageRegionIteratorWithIndex.h.
typedef ImageRegion<TImage::ImageDimension> itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionType |
Definition at line 93 of file itkVectorImageRegionIteratorWithIndex.h.
|
inline |
Default Constructor. Need to provide a default constructor since we provide a copy constructor.
Definition at line 107 of file itkVectorImageRegionIteratorWithIndex.h.
References itk::VectorImageRegionIteratorWithIndex< TImage >::ImageIteratorDimension, ITK_NULLPTR, itk::VectorImageRegionIteratorWithIndex< TImage >::m_BeginBuffer, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorAxis, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorSize, and itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorStride.
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize(), and itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::Initialize().
|
inline |
Default Destructor
Definition at line 116 of file itkVectorImageRegionIteratorWithIndex.h.
|
inline |
Copy Constructor. The copy constructor is provided to make sure the handle to the image is properly reference counted.
Definition at line 120 of file itkVectorImageRegionIteratorWithIndex.h.
References itk::VectorImageRegionIteratorWithIndex< TImage >::m_BeginBuffer, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorAxis, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorSize, and itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorStride.
|
inline |
Constructor establishes an iterator to walk a particular image and a particular region of that image.
Definition at line 130 of file itkVectorImageRegionIteratorWithIndex.h.
References itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize().
|
protected |
This constructor is declared protected in order to enforce const-correctness
|
inline |
Get the pixel value. offindex is the coordinate in t-axis, it is only used when m_VectorAxis!=ImageIteratorDimension.
Definition at line 175 of file itkVectorImageRegionIteratorWithIndex.h.
References itk::VectorImageRegionIteratorWithIndex< TImage >::ImageIteratorDimension, itk::VectorImageRegionIteratorWithIndex< TImage >::m_BeginBuffer, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorAxis, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorSize, and itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorStride.
Referenced by PrintImage(), itk::MultiVariableFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::ThreadedGenerateData(), itk::FunctorFromStringImageFilter< TInputImage, TOutputImage, TMaskImage >::ThreadedGenerateData(), and itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::ThreadedGenerateData().
|
inlineprotected |
Definition at line 199 of file itkVectorImageRegionIteratorWithIndex.h.
References itk::VectorImageRegionIteratorWithIndex< TImage >::ImageIteratorDimension, itk::VectorImageRegionIteratorWithIndex< TImage >::m_BeginBuffer, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorAxis, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorSize, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorStride, itk::VectorImageRegionIteratorWithIndex< TImage >::operator=(), and itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionIteratorWithIndex().
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionIteratorWithIndex(), and itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::VectorImageRegionIteratorWithIndex().
|
inline |
operator= is provided to make sure the handle to the image is properly reference counted.
Definition at line 144 of file itkVectorImageRegionIteratorWithIndex.h.
References itk::VectorImageRegionIteratorWithIndex< TImage >::m_BeginBuffer, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorAxis, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorSize, and itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorStride.
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize(), and itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::Initialize().
|
protected |
|
inline |
Set the pixel value. offindex is the coordinate in t-axis, it is only used when m_VectorAxis!=ImageIteratorDimension.
Definition at line 155 of file itkVectorImageRegionIteratorWithIndex.h.
References itk::VectorImageRegionIteratorWithIndex< TImage >::ImageIteratorDimension, itk::VectorImageRegionIteratorWithIndex< TImage >::m_BeginBuffer, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorAxis, itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorSize, and itk::VectorImageRegionIteratorWithIndex< TImage >::m_VectorStride.
Referenced by BinaryOPImage(), itk::MultiVariableFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::ThreadedGenerateData(), itk::FunctorFromStringImageFilter< TInputImage, TOutputImage, TMaskImage >::ThreadedGenerateData(), and itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::ThreadedGenerateData().
itk::VectorImageRegionIteratorWithIndex< TImage >::typedef | ( | itk::Concept::SameType< ImageType, VectorImage< InternalPixelType, ImageIteratorDimension > > | ) |
This class requires SameTypeCheck in the form of ( itk::Concept::SameType< ImageType, VectorImage<InternalPixelType, ImageIteratorDimension> > )
itk::VectorImageRegionIteratorWithIndex< TImage >::typedef | ( | itk::Concept::SameType< PixelType, PixelVectorType > | ) |
This class requires SameTypeCheck2 in the form of ( itk::Concept::SameType< PixelType, PixelVectorType> )
|
static |
Dimension of the image the iterator walks. This constant is needed so functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks.
Definition at line 74 of file itkVectorImageRegionIteratorWithIndex.h.
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::GetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::Initialize(), itk::VectorImageRegionIteratorWithIndex< TImage >::SetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionIteratorWithIndex(), and itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::VectorImageRegionIteratorWithIndex().
|
protected |
Definition at line 338 of file itkVectorImageRegionIteratorWithIndex.h.
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::GetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize(), itk::VectorImageRegionIteratorWithIndex< TImage >::operator=(), itk::VectorImageRegionIteratorWithIndex< TImage >::SetVector(), and itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionIteratorWithIndex().
|
protected |
the axis which vector arrays need to be extract
Definition at line 345 of file itkVectorImageRegionIteratorWithIndex.h.
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::GetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::Initialize(), itk::VectorImageRegionIteratorWithIndex< TImage >::operator=(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::operator=(), itk::VectorImageRegionIteratorWithIndex< TImage >::SetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionIteratorWithIndex(), and itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::VectorImageRegionIteratorWithIndex().
|
protected |
size alone m_VectorAxis axis
Definition at line 343 of file itkVectorImageRegionIteratorWithIndex.h.
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::GetVector(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::GetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::Initialize(), itk::VectorImageRegionIteratorWithIndex< TImage >::operator=(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::operator=(), itk::VectorImageRegionIteratorWithIndex< TImage >::SetVector(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::SetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionIteratorWithIndex(), and itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::VectorImageRegionIteratorWithIndex().
|
protected |
stride in vector array
Definition at line 341 of file itkVectorImageRegionIteratorWithIndex.h.
Referenced by itk::VectorImageRegionIteratorWithIndex< TImage >::GetVector(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::GetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::Initialize(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::Initialize(), itk::VectorImageRegionIteratorWithIndex< TImage >::operator=(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::operator=(), itk::VectorImageRegionIteratorWithIndex< TImage >::SetVector(), itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::SetVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::VectorImageRegionIteratorWithIndex(), and itk::VectorImageRegionIteratorWithIndex< Image< TPixel, VImageDimension > >::VectorImageRegionIteratorWithIndex().