79 template<
class TPixel,
unsigned int VImageDimension = 2 >
124 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
168 template <
class UPixelType,
unsigned int UImageDimension = VImageDimension>
181 virtual void Initialize();
185 void FillBuffer(
const TPixel & value);
192 void SetPixel(
const IndexType & index,
const TPixel & value)
195 ( *m_Buffer )[offset] = value;
205 return ( ( *m_Buffer )[offset] );
215 return ( ( *m_Buffer )[offset] );
223 {
return this->GetPixel(index); }
229 const TPixel & operator[](
const IndexType & index)
const
230 {
return this->GetPixel(index); }
234 virtual TPixel * GetBufferPointer()
235 {
return m_Buffer ? m_Buffer->GetBufferPointer() : 0; }
236 virtual const TPixel * GetBufferPointer()
const
237 {
return m_Buffer ? m_Buffer->GetBufferPointer() : 0; }
242 {
return m_Buffer.GetPointer(); }
245 {
return m_Buffer.GetPointer(); }
249 void SetPixelContainer(PixelContainer *container);
279 virtual unsigned int GetNumberOfComponentsPerPixel()
const;
283 void PrintSelf(std::ostream & os,
Indent indent)
const;
292 virtual void ComputeIndexToPhysicalPointMatrices();
296 void operator=(
const Self &);
304 #define ITK_TEMPLATE_Image(_, EXPORT, TypeX, TypeY) \
307 _( 2 ( class EXPORT Image< ITK_TEMPLATE_2 TypeX > ) ) \
308 namespace Templates \
310 typedef Image< ITK_TEMPLATE_2 TypeX > Image##TypeY; \
314 #if ITK_TEMPLATE_EXPLICIT
317 #include "Templates/itkImage+-.h"
321 #include "itkImage.hxx"