18 #ifndef itkVectorImage_h 19 #define itkVectorImage_h 80 template<
typename TPixel,
unsigned int VImageDimension = 3 >
82 public ImageBase< VImageDimension >
185 template <
typename UPixelType,
unsigned int NUImageDimension = VImageDimension>
192 template <
typename UElementType,
unsigned int NUImageDimension>
201 virtual void Allocate(
bool UseDefaultConstructor =
false) ITK_OVERRIDE;
216 void SetPixel(
const IndexType & index,
const PixelType & value)
222 ( *m_Buffer )[offset + i] = value[i];
231 const PixelType
GetPixel(
const IndexType & index)
const 328 itkSetMacro(VectorLength, VectorLengthType);
329 itkGetConstReferenceMacro(VectorLength, VectorLengthType);
345 void operator=(
const Self &) ITK_DELETE_FUNCTION;
355 #ifndef ITK_MANUAL_INSTANTIATION 356 #include "itkVectorImage.hxx" InternalPixelType IOPixelType
VectorLengthType m_VectorLength
Index< VImageDimension > IndexType
Superclass::PointType PointType
Superclass::SizeType SizeType
const PixelContainer * GetPixelContainer() const
const PixelType GetPixel(const IndexType &index) const
Get a pixel (read only version).
PixelContainer::Pointer PixelContainerPointer
Superclass::OffsetValueType OffsetValueType
AccessorType GetPixelAccessor(void)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
WeakPointer< const Self > ConstWeakPointer
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor()
Templated n-dimensional vector image class.
PixelContainer::ConstPointer PixelContainerConstPointer
ObjectType * GetPointer() const
Implements a weak reference to an object.
A structure which enable changing any image class' pixel type to another.
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void Initialize() override
virtual void Allocate(bool UseDefaultConstructor=false) override
Size< VImageDimension > SizeType
itk::VectorImage< UPixelType, NUImageDimension > Type
Point< PointValueType, VImageDimension > PointType
virtual void SetNumberOfComponentsPerPixel(unsigned int n) override
Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
Give access to partial aspects of a type.
This class provides a common API for pixel accessors for Image and VectorImage. (between the DefaultV...
void operator=(const Self &) ITK_DELETE_FUNCTION
Represents an array whose length can be defined at run-time.
void SetPixel(const IndexType &index, const PixelType &value)
Set a pixel value.
DefaultVectorPixelAccessor< InternalPixelType > AccessorType
VariableLengthVector< TPixel > PixelType
Offset< VImageDimension > OffsetType
ImportImageContainer< SizeValueType, InternalPixelType > PixelContainer
Vector< SpacingValueType, VImageDimension > SpacingType
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
OffsetValueType FastComputeOffset(const IndexType &ind) const
static const unsigned int ImageDimension
PixelContainerPointer m_Buffer
const InternalPixelType * GetBufferPointer() const
SmartPointer< Self > Pointer
InternalPixelType * GetBufferPointer()
Superclass::IndexValueType IndexValueType
void SetPixelContainer(PixelContainer *container)
Superclass::DirectionType DirectionType
const AccessorType GetPixelAccessor(void) const
void FillBuffer(const PixelType &value)
OffsetType::OffsetValueType OffsetValueType
Superclass::IndexType IndexType
Base class for templated image classes.
const PixelType operator[](const IndexType &index) const
Access a pixel.
DefaultVectorPixelAccessorFunctor< Self > AccessorFunctorType
Control indentation during Print() invocation.
ImageBase< VImageDimension > Superclass
Superclass::SpacingType SpacingType
PixelContainer * GetPixelContainer()
Superclass::OffsetType OffsetType
ImageRegion< VImageDimension > RegionType
virtual unsigned int GetNumberOfComponentsPerPixel() const override
unsigned int VectorLengthType
Superclass::RegionType RegionType
Base class for all data objects in ITK.
Provides accessor interfaces to Access pixels and is meant to be used on pointers to pixels held by t...
IndexType::IndexValueType IndexValueType
virtual void Graft(const DataObject *data) override
VectorImageNeighborhoodAccessorFunctor< Self > NeighborhoodAccessorFunctorType
PixelType operator[](const IndexType &index)
Access a pixel. This result cannot be used as an lvalue because the pixel is converted on the fly to ...
PixelType GetPixel(const IndexType &index)
Get a "reference" to a pixel. This result cannot be used as an lvalue because the pixel is converted ...
Defines an itk::Image front-end to a standard C-array.