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 &);
303 #ifndef ITK_MANUAL_INSTANTIATION
304 #include "itkImage.hxx"