80 template <
class TPixel,
unsigned int VImageDimension=2>
125 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
171 this->SetLargestPossibleRegion(region);
172 this->SetBufferedRegion(region);
173 this->SetRequestedRegion(region);
179 this->SetLargestPossibleRegion(region);
180 this->SetBufferedRegion(region);
181 this->SetRequestedRegion(region);
186 virtual void Initialize();
190 void FillBuffer (
const TPixel& value);
197 void SetPixel(
const IndexType &index,
const TPixel& value)
199 typename Superclass::OffsetValueType offset = this->ComputeOffset(index);
200 (*m_Buffer)[offset] = value;
209 typename Superclass::OffsetValueType offset = this->ComputeOffset(index);
210 return ( (*m_Buffer)[offset] );
219 typename Superclass::OffsetValueType offset = this->ComputeOffset(index);
220 return ( (*m_Buffer)[offset] );
228 {
return this->GetPixel(index); }
235 {
return this->GetPixel(index); }
239 TPixel *GetBufferPointer()
240 {
return m_Buffer ? m_Buffer->GetBufferPointer() : 0; }
241 const TPixel *GetBufferPointer()
const
242 {
return m_Buffer ? m_Buffer->GetBufferPointer() : 0; }
246 {
return m_Buffer.GetPointer(); }
249 {
return m_Buffer.GetPointer(); }
253 void SetPixelContainer( PixelContainer *container );
286 void PrintSelf(std::ostream& os,
Indent indent)
const;
294 virtual void ComputeIndexToPhysicalPointMatrices();
298 void operator=(
const Self&);
308 #define ITK_TEMPLATE_Image(_, EXPORT, x, y) namespace itk { \
309 _(2(class EXPORT Image< ITK_TEMPLATE_2 x >)) \
310 namespace Templates { typedef Image< ITK_TEMPLATE_2 x > Image##y; } \
313 #if ITK_TEMPLATE_EXPLICIT
314 # include "Templates/itkImage+-.h"