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 UImageDimension = VImageDimension>
192 template <
typename UElementType,
unsigned int UImageDimension>
202 virtual void Allocate(
bool UseDefaultConstructor =
false) ITK_OVERRIDE;
223 ( *m_Buffer )[offset + i] = value[i];
342 virtual ~VectorImage() {}
356 #ifndef ITK_MANUAL_INSTANTIATION
357 #include "itkVectorImage.hxx"
const InternalPixelType * GetBufferPointer() const
Superclass::OffsetValueType OffsetValueType
static const unsigned int ImageDimension
virtual void Initialize() override
virtual void SetNumberOfComponentsPerPixel(unsigned int n) override
ImportImageContainer< SizeValueType, InternalPixelType > PixelContainer
Index< VImageDimension > IndexType
PixelContainer::Pointer PixelContainerPointer
virtual void Allocate(bool UseDefaultConstructor=false) override
PixelContainer * GetPixelContainer()
PixelType GetPixel(const IndexType &index)
Get a "reference" to a pixel. This result cannot be used as an lvalue because the pixel is converted ...
Superclass::IndexType IndexType
Superclass::SizeType SizeType
Templated n-dimensional vector image class.
ObjectType * GetPointer() const
SmartPointer< const Self > ConstPointer
AccessorType GetPixelAccessor(void)
Implements a weak reference to an object.
A structure which enable changing any image class' pixel type to another.
Size< VImageDimension > SizeType
Superclass::OffsetType OffsetType
Point< PointValueType, VImageDimension > PointType
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor()
Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
Superclass::DirectionType 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 &)
Superclass::PointType PointType
Represents an array whose length can be defined at run-time.
Offset< VImageDimension > OffsetType
InternalPixelType * GetBufferPointer()
DefaultVectorPixelAccessor< InternalPixelType > AccessorType
Vector< SpacingValueType, VImageDimension > SpacingType
Superclass::SpacingType SpacingType
VariableLengthVector< TPixel > PixelType
itk::VectorImage< UPixelType, UImageDimension > Type
InternalPixelType IOPixelType
OffsetType::OffsetValueType OffsetValueType
VectorImageNeighborhoodAccessorFunctor< Self > NeighborhoodAccessorFunctorType
unsigned int VectorLengthType
WeakPointer< const Self > ConstWeakPointer
Base class for templated image classes.
const AccessorType GetPixelAccessor(void) const
void PrintSelf(std::ostream &os, Indent indent) const override
void SetPixel(const IndexType &index, const PixelType &value)
Set a pixel value.
Superclass::RegionType RegionType
VectorLengthType m_VectorLength
const PixelType GetPixel(const IndexType &index) const
Get a pixel (read only version).
Control indentation during Print() invocation.
virtual unsigned int GetNumberOfComponentsPerPixel() const override
OffsetValueType ComputeOffset(const IndexType &ind) const
PixelContainerPointer m_Buffer
void FillBuffer(const PixelType &value)
ImageRegion< VImageDimension > RegionType
const PixelType operator[](const IndexType &index) const
Access a pixel.
Superclass::IndexValueType IndexValueType
DefaultVectorPixelAccessorFunctor< Self > AccessorFunctorType
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 ...
PixelContainer::ConstPointer PixelContainerConstPointer
SmartPointer< Self > Pointer
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
void SetPixelContainer(PixelContainer *container)
virtual void Graft(const DataObject *data) override
const PixelContainer * GetPixelContainer() const
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
ImageBase< VImageDimension > Superclass
Defines an itk::Image front-end to a standard C-array.