18 #ifndef __itkSpecialCoordinatesImage_h
19 #define __itkSpecialCoordinatesImage_h
94 template<
class TPixel,
unsigned int VImageDimension = 2 >
139 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
177 virtual void Initialize();
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() : 0; }
239 void SetPixelContainer(PixelContainer *container);
256 virtual void SetOrigin(
const double[VImageDimension]) {}
285 void PrintSelf(std::ostream & os,
Indent indent)
const;
290 void operator=(
const Self &);
298 #define ITK_TEMPLATE_SpecialCoordinatesImage(_, EXPORT, TypeX, TypeY) \
301 _( 2 ( class EXPORT SpecialCoordinatesImage< ITK_TEMPLATE_2 TypeX > ) ) \
302 namespace Templates \
304 typedef SpecialCoordinatesImage< ITK_TEMPLATE_2 TypeX > \
305 SpecialCoordinatesImage##TypeY; \
309 #if ITK_TEMPLATE_EXPLICIT
310 #include "Templates/itkSpecialCoordinatesImage+-.h"
314 #include "itkSpecialCoordinatesImage.hxx"