18 #ifndef itkSpecialCoordinatesImage_h
19 #define itkSpecialCoordinatesImage_h
94 template<
typename TPixel,
unsigned int VImageDimension = 2 >
141 static constexpr
unsigned int ImageDimension = VImageDimension;
175 void Allocate(
bool initialize=
false)
override;
179 void Initialize()
override;
183 void FillBuffer(
const TPixel & value);
193 ( *m_Buffer )[offset] = value;
203 return ( ( *m_Buffer )[offset] );
213 return ( ( *m_Buffer )[offset] );
231 const TPixel *
GetBufferPointer()
const {
return m_Buffer ? m_Buffer->GetBufferPointer() :
nullptr; }
241 void SetPixelContainer(PixelContainer *container);
258 void SetOrigin(
const double[VImageDimension])
override {}
259 void SetOrigin(
const float[VImageDimension])
override {}
288 void PrintSelf(std::ostream & os,
Indent indent)
const override;
298 #ifndef ITK_MANUAL_INSTANTIATION
299 #include "itkSpecialCoordinatesImage.hxx"
TPixel * GetBufferPointer()
PixelContainerPointer m_Buffer
void SetSpacing(const float[VImageDimension]) override
void SetOrigin(const PointType) override
TPixel & GetPixel(const IndexType &index)
Get a reference to a pixel (e.g. for editing).
An image region represents a structured region of data.
Templated n-dimensional nonrectilinear-coordinate image base class.
Implements a weak reference to an object.
const AccessorType GetPixelAccessor() const
TPixel & operator[](const IndexType &index)
Access a pixel. This version can be an lvalue.
const TPixel & operator[](const IndexType &index) const
Access a pixel. This version can only be an rvalue.
ImageBaseType::SizeType SizeType
ImageBaseType::IndexType IndexType
Represent a n-dimensional size (bounds) of a n-dimensional image.
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
const TPixel * GetBufferPointer() const
void SetSpacing(const double[VImageDimension]) override
Provides a common API for pixel accessors for Image and VectorImage.
typename OffsetType::OffsetValueType OffsetValueType
AccessorType GetPixelAccessor()
PixelContainer * GetPixelContainer()
Base class for templated image classes.
const TPixel & GetPixel(const IndexType &index) const
Get a pixel (read only version).
Control indentation during Print() invocation.
const PixelContainer * GetPixelContainer() const
ImageBaseType::PointType PointType
void SetSpacing(const SpacingType &) override
Give access to partial aspects a type.
Base class for most ITK classes.
ImageBaseType::RegionType RegionType
typename PixelContainer::ConstPointer PixelContainerConstPointer
void SetOrigin(const float[VImageDimension]) override
void SetOrigin(const double[VImageDimension]) override
Base class for all data objects in ITK.
void SetPixel(const IndexType &index, const TPixel &value)
Set a pixel value.
Defines an itk::Image front-end to a standard C-array.
typename PixelContainer::Pointer PixelContainerPointer