74 template<
typename TPixel,
unsigned int VImageDimension = 2 >
160 template <
typename UPixelType,
unsigned int NUImageDimension = VImageDimension>
169 virtual void Allocate(
bool initializePixels =
false) ITK_OVERRIDE;
173 virtual
void Initialize() ITK_OVERRIDE;
177 void FillBuffer(const TPixel & value);
184 void SetPixel(const
IndexType & index, const TPixel & value)
187 ( *m_Buffer )[offset] = value;
197 return ( ( *m_Buffer )[offset] );
207 return ( ( *m_Buffer )[offset] );
215 {
return this->GetPixel(index); }
222 {
return this->GetPixel(index); }
227 {
return m_Buffer ? m_Buffer->GetBufferPointer() : ITK_NULLPTR; }
229 {
return m_Buffer ? m_Buffer->GetBufferPointer() : ITK_NULLPTR; }
234 {
return m_Buffer.GetPointer(); }
237 {
return m_Buffer.GetPointer(); }
241 void SetPixelContainer(PixelContainer *container);
253 virtual void Graft(
const Self *data);
271 virtual unsigned int GetNumberOfComponentsPerPixel() const ITK_OVERRIDE;
275 void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
276 virtual
void Graft(const
DataObject *data) ITK_OVERRIDE;
278 virtual ~Image() ITK_OVERRIDE {}
285 virtual void ComputeIndexToPhysicalPointMatrices() ITK_OVERRIDE;
286 using Superclass::Graft;
288 ITK_DISALLOW_COPY_AND_ASSIGN(
Image);
296 #ifndef ITK_MANUAL_INSTANTIATION
297 #include "itkImage.hxx"
itk::Image< UPixelType, NUImageDimension > Type
Superclass::RegionType RegionType
Superclass::OffsetType OffsetType
SmartPointer< Self > Pointer
const PixelContainer * GetPixelContainer() const
Superclass::SizeValueType SizeValueType
signed long OffsetValueType
Superclass::PointType PointType
signed long IndexValueType
virtual TPixel * GetBufferPointer()
TPixel & GetPixel(const IndexType &index)
Get a reference to a pixel (e.g. for editing).
const TPixel & GetPixel(const IndexType &index) const
Get a pixel (read only version).
Superclass::IndexValueType IndexValueType
Superclass::OffsetValueType OffsetValueType
Implements a weak reference to an object.
Superclass::SpacingType SpacingType
unsigned long SizeValueType
const AccessorType GetPixelAccessor(void) const
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
SmartPointer< const Self > ConstPointer
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor()
ImageBaseType::DirectionType DirectionType
NeighborhoodAccessorFunctor< Self > NeighborhoodAccessorFunctorType
PixelContainer::ConstPointer PixelContainerConstPointer
WeakPointer< const Self > ConstWeakPointer
Superclass::SpacingValueType SpacingValueType
DefaultPixelAccessorFunctor< Self > AccessorFunctorType
Provides accessor interfaces to Get pixels and is meant to be used on pointers contained within Neigh...
ImageBaseType::PointType PointType
PixelContainer::Pointer PixelContainerPointer
Superclass::IndexType IndexType
Superclass::SizeType SizeType
Superclass::DirectionType DirectionType
Provides a common API for pixel accessors for Image and VectorImage.
ImportImageContainer< SizeValueType, PixelType > PixelContainer
Superclass::ImageDimensionType ImageDimensionType
virtual const TPixel * GetBufferPointer() const
OffsetType::OffsetValueType OffsetValueType
Base class for templated image classes.
AccessorType GetPixelAccessor(void)
DefaultPixelAccessor< PixelType > AccessorType
Control indentation during Print() invocation.
PixelContainer * GetPixelContainer()
const TPixel & operator[](const IndexType &index) const
Access a pixel. This version can only be an rvalue.
ImageBaseType::SizeType SizeType
ImageBase< VImageDimension > Superclass
Give access to partial aspects a type.
TPixel & operator[](const IndexType &index)
Access a pixel. This version can be an lvalue.
Base class for all data objects in ITK.
Templated n-dimensional image class.
ImageBaseType::IndexType IndexType
Defines an itk::Image front-end to a standard C-array.