18#ifndef itkSpecialCoordinatesImage_h
19#define itkSpecialCoordinatesImage_h
94template <
typename TPixel,
unsigned int VImageDimension = 2>
197 (*m_Buffer)[offset] = value;
263 const PixelContainer *
350#ifndef ITK_MANUAL_INSTANTIATION
351# include "itkSpecialCoordinatesImage.hxx"
Provides a common API for pixel accessors for Image and VectorImage.
Give access to partial aspects a type.
Vector< SpacingValueType, VImageDimension > SpacingType
ImageRegion< VImageDimension > RegionType
Index< VImageDimension > IndexType
Offset< VImageDimension > OffsetType
OffsetValueType FastComputeOffset(const IndexType &ind) const
typename OffsetType::OffsetValueType OffsetValueType
Size< VImageDimension > SizeType
Point< PointValueType, VImageDimension > PointType
Defines an itk::Image front-end to a standard C-array.
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Implements transparent reference counting.
TPixel & GetPixel(const IndexType &index)
Get a reference to a pixel (e.g. for editing).
void Initialize() override
void SetOrigin(const double[VImageDimension]) override
PixelContainer * GetPixelContainer()
ImageBase< VImageDimension > Superclass
SmartPointer< Self > Pointer
const TPixel * GetBufferPointer() const
void SetSpacing(const double[VImageDimension]) override
~SpecialCoordinatesImage() override=default
typename PixelContainer::Pointer PixelContainerPointer
void SetSpacing(const SpacingType &) override
Point< PointValueType, VImageDimension > PointType
PixelContainerPointer m_Buffer
TPixel & operator[](const IndexType &index)
Access a pixel. This version can be an lvalue.
void SetOrigin(const float[VImageDimension]) override
SpecialCoordinatesImage()=default
typename PixelContainer::ConstPointer PixelContainerConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
void SetSpacing(const float[VImageDimension]) override
void SetPixelContainer(PixelContainer *container)
DefaultPixelAccessorFunctor< Self > AccessorFunctorType
DefaultPixelAccessor< PixelType > AccessorType
const TPixel & GetPixel(const IndexType &index) const
Get a pixel (read only version).
ImportImageContainer< SizeValueType, PixelType > PixelContainer
void SetOrigin(const PointType) override
void FillBuffer(const TPixel &value)
AccessorType GetPixelAccessor()
SmartPointer< const Self > ConstPointer
static constexpr unsigned int ImageDimension
void SetPixel(const IndexType &index, const TPixel &value)
Set a pixel value.
TPixel * GetBufferPointer()
SpecialCoordinatesImage Self
void Allocate(bool initialize=false) override
Vector< SpacingValueType, VImageDimension > SpacingType
const TPixel & operator[](const IndexType &index) const
Access a pixel. This version can only be an rvalue.
const PixelContainer * GetPixelContainer() const
WeakPointer< const Self > ConstWeakPointer
const AccessorType GetPixelAccessor() const
Index< VImageDimension > IndexType
Implements a weak reference to an object.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....