18 #ifndef itkSpecialCoordinatesImage_h
19 #define itkSpecialCoordinatesImage_h
94 template<
typename TPixel,
unsigned int VImageDimension = 2 >
139 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
173 virtual void Allocate(
bool initialize=
false) ITK_OVERRIDE;
177 virtual
void Initialize() ITK_OVERRIDE;
181 void FillBuffer(const TPixel & value);
188 void SetPixel(const
IndexType & index, const TPixel & value)
191 ( *m_Buffer )[offset] = value;
201 return ( ( *m_Buffer )[offset] );
211 return ( ( *m_Buffer )[offset] );
229 const TPixel *
GetBufferPointer()
const {
return m_Buffer ? m_Buffer->GetBufferPointer() : ITK_NULLPTR; }
239 void SetPixelContainer(PixelContainer *container);
253 virtual void SetSpacing(
const double[VImageDimension]) ITK_OVERRIDE {}
254 virtual void SetSpacing(
const float[VImageDimension]) ITK_OVERRIDE {}
256 virtual void SetOrigin(
const double[VImageDimension]) ITK_OVERRIDE {}
257 virtual void SetOrigin(
const float[VImageDimension]) ITK_OVERRIDE {}
286 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
298 #ifndef ITK_MANUAL_INSTANTIATION
299 #include "itkSpecialCoordinatesImage.hxx"
Superclass::IndexType IndexType
SmartPointer< Self > Pointer
TPixel * GetBufferPointer()
Superclass::SpacingType SpacingType
PixelContainerPointer m_Buffer
Superclass::SizeType SizeType
DefaultPixelAccessor< PixelType > AccessorType
SpecialCoordinatesImage Self
Superclass::PointType PointType
TPixel & GetPixel(const IndexType &index)
Get a reference to a pixel (e.g. for editing).
Superclass::RegionType RegionType
Templated n-dimensional nonrectilinear-coordinate image base class.
AccessorType GetPixelAccessor(void)
virtual ~SpecialCoordinatesImage() override
DefaultPixelAccessorFunctor< Self > AccessorFunctorType
Implements a weak reference to an object.
ImageBase< VImageDimension > Superclass
TPixel & operator[](const IndexType &index)
Access a pixel. This version can be an lvalue.
virtual void SetSpacing(const SpacingType &) override
const TPixel & operator[](const IndexType &index) const
Access a pixel. This version can only be an rvalue.
ImageBaseType::PointType PointType
const TPixel * GetBufferPointer() const
Provides a common API for pixel accessors for Image and VectorImage.
PixelContainer::ConstPointer PixelContainerConstPointer
virtual void SetSpacing(const float[VImageDimension]) override
OffsetType::OffsetValueType OffsetValueType
PixelContainer::Pointer PixelContainerPointer
PixelContainer * GetPixelContainer()
virtual void SetOrigin(const double[VImageDimension]) override
Base class for templated image classes.
Superclass::OffsetType OffsetType
virtual void SetOrigin(const float[VImageDimension]) override
const TPixel & GetPixel(const IndexType &index) const
Get a pixel (read only version).
Control indentation during Print() invocation.
const PixelContainer * GetPixelContainer() const
ImageBaseType::SizeType SizeType
SmartPointer< const Self > ConstPointer
Give access to partial aspects a type.
WeakPointer< const Self > ConstWeakPointer
virtual void SetSpacing(const double[VImageDimension]) override
virtual void SetOrigin(const PointType) override
Base class for all data objects in ITK.
const AccessorType GetPixelAccessor(void) const
ImageBaseType::IndexType IndexType
Defines an itk::Image front-end to a standard C-array.
ImportImageContainer< SizeValueType, PixelType > PixelContainer