18#ifndef itkSpecialCoordinatesImage_h
19#define itkSpecialCoordinatesImage_h
94template <
typename TPixel,
unsigned int VImageDimension = 2>
141 static constexpr unsigned int ImageDimension = VImageDimension;
147 using typename Superclass::OffsetType;
163 using typename Superclass::SpacingType;
197 (*m_Buffer)[offset] = value;
208 return ((*m_Buffer)[offset]);
219 return ((*m_Buffer)[offset]);
239 return m_Buffer ? m_Buffer->GetBufferPointer() :
nullptr;
244 return m_Buffer ? m_Buffer->GetBufferPointer() :
nullptr;
252 return m_Buffer.GetPointer();
255 const PixelContainer *
258 return m_Buffer.GetPointer();
342#ifndef ITK_MANUAL_INSTANTIATION
343# include "itkSpecialCoordinatesImage.hxx"
Base class for all data objects in ITK.
Provides a common API for pixel accessors for Image and VectorImage.
Give access to partial aspects a type.
Base class for templated image classes.
typename OffsetType::OffsetValueType OffsetValueType
Defines an itk::Image front-end to a standard C-array.
Control indentation during Print() invocation.
Base class for most ITK classes.
Templated n-dimensional nonrectilinear-coordinate image base class.
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()
const TPixel * GetBufferPointer() const
void SetSpacing(const double[VImageDimension]) override
~SpecialCoordinatesImage() override=default
typename PixelContainer::Pointer PixelContainerPointer
void SetSpacing(const SpacingType &) override
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)
const TPixel & GetPixel(const IndexType &index) const
Get a pixel (read only version).
void SetOrigin(const PointType) override
void FillBuffer(const TPixel &value)
AccessorType GetPixelAccessor()
void SetPixel(const IndexType &index, const TPixel &value)
Set a pixel value.
TPixel * GetBufferPointer()
void Allocate(bool initialize=false) override
const TPixel & operator[](const IndexType &index) const
Access a pixel. This version can only be an rvalue.
const PixelContainer * GetPixelContainer() const
const AccessorType GetPixelAccessor() const
Implements a weak reference to an object.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....