19 #ifndef __itkNDImageTemplate_h 20 #define __itkNDImageTemplate_h 23 #include "itkImageFileReader.h" 45 template<
class TPixel,
unsigned int VDimension >
116 virtual void FillBuffer(
const TPixel & value );
118 virtual void SetPixel(
const IndexType & index,
const TPixel & value );
120 virtual const TPixel &
GetPixel(
const IndexType & index )
const;
122 virtual TPixel &
GetPixel(
const IndexType & index );
138 virtual void SetSpacing(
const SpacingType & spacing );
140 virtual void SetOrigin(
const PointType & origin );
152 virtual OffsetValueType
ComputeOffset(
const IndexType & ind )
const;
154 virtual IndexType
ComputeIndex( OffsetValueType offset )
const;
164 itkGetObjectMacro(
Image, DataObject );
165 itkGetObjectMacro( Writer, ProcessObject );
166 itkGetObjectMacro( Reader, ProcessObject );
169 virtual void Write(
void );
172 virtual void Read(
void );
205 template<
class TIn,
class TOut >
206 class ConvertToDynamicArray
210 inline static TOut DO(
const TIn & in )
212 TOut out( VDimension );
214 for(
unsigned int i = 0; i < VDimension; i++ )
224 template<
class TIn,
class TOut >
225 class ConvertToStaticArray
229 inline static TOut DO(
const TIn & in )
233 for(
unsigned int i = 0; i < VDimension; i++ )
252 #ifndef ITK_MANUAL_INSTANTIATION 253 #include "itkNDImageTemplate.hxx" 256 #endif // end #ifndef __itkNDImageTemplate_h Superclass::PixelContainerConstPointer PixelContainerConstPointer
Superclass::PixelContainerPointer PixelContainerPointer
Superclass::OffsetType OffsetType
virtual void SetImageIOReader(ImageIOBase *_arg)
Superclass::IndexValueType IndexValueType
virtual const char * GetInputFileName(void)
ImageType::SizeType SizeTypeD
virtual void FillBuffer(const TPixel &value)
Superclass::SizeValueType SizeValueType
Superclass::DataObjectType DataObjectType
void operator=(const Self &)
Array< PointValueType > PointType
virtual void Allocate(void)
ImageType::PointType PointTypeD
virtual OffsetValueType ComputeOffset(const IndexType &ind) const
virtual void SetPixelContainer(PixelContainer *container)
virtual void CreateNewImage(void)
virtual unsigned int ImageDimension(void)
ImageType::SpacingType SpacingTypeD
virtual IndexType ComputeIndex(OffsetValueType offset) const
DataObjectType::Pointer DataObjectPointer
This class is a specialization of the NDImageBase, which acts as a wrap around an itk::Image...
Superclass::AccessorType AccessorType
DataObject DataObjectType
ImageBase< 2 >::OffsetValueType OffsetValueType
virtual unsigned int GetImageDimension(void)
virtual PixelContainer * GetPixelContainer()
NDImageBase< TPixel > Superclass
Superclass::OffsetValueType OffsetValueType
Image< TPixel, VDimension > ImageType
virtual void Initialize(void)
virtual const char * GetOutputFileName(void)
virtual void SetRequestedRegion(DataObject *data)
Image< TPixel, 2 >::PixelContainerConstPointer PixelContainerConstPointer
Superclass::InternalPixelType InternalPixelType
SmartPointer< Self > Pointer
virtual AccessorType GetPixelAccessor(void)
Array< IndexValueType > IndexType
virtual ImageIOBase * GetImageIOReader(void)
ImageType::Pointer ImagePointer
virtual const OffsetValueType * GetOffsetTable() const
An image whose dimension can be specified at runtime.
Image< TPixel, 2 >::AccessorType AccessorType
Image< TPixel, 2 >::PixelType PixelType
ImageFileWriter< ImageType > WriterType
virtual void SetImageIOWriter(ImageIOBase *_arg)
virtual ~NDImageTemplate()
virtual void SetPixel(const IndexType &index, const TPixel &value)
ImageFileReader< ImageType > ReaderType
Superclass::SpacingType SpacingType
Array< SizeValueType > SizeType
virtual void SetOrigin(const PointType &origin)
Array< OffsetValueType > OffsetType
virtual PointType GetOrigin(void)
Array< SpacingValueType > SpacingType
Image< TPixel, 2 >::PixelContainerPointer PixelContainerPointer
Superclass::SpacingValueType SpacingValueType
Point2DType::ValueType PointValueType
virtual void SetInputFileName(const char *name)
virtual const TPixel & GetPixel(const IndexType &index) const
virtual void SetRegions(SizeType size)
virtual ImageIOBase * GetImageIOWriter(void)
Superclass::DataObjectPointer DataObjectPointer
Spacing2DType::ValueType SpacingValueType
Superclass::SizeType SizeType
ImageBase< 2 >::IndexValueType IndexValueType
SmartPointer< const Self > ConstPointer
WriterType::Pointer WriterPointer
ImageBase< 2 >::SizeValueType SizeValueType
virtual void SetSpacing(const SpacingType &spacing)
Superclass::PointValueType PointValueType
itkStaticConstMacro(Dimension, unsigned int, VDimension)
Superclass::PointType PointType
Superclass::ValueType ValueType
ImageType::IndexType IndexTypeD
ReaderType::Pointer ReaderPointer
Superclass::PixelType PixelType
Superclass::IndexType IndexType
Superclass::PixelContainer PixelContainer
ImageType::OffsetType OffsetTypeD
virtual void CopyInformation(const DataObject *data)
virtual SpacingType GetSpacing(void)
Image< TPixel, 2 >::InternalPixelType InternalPixelType
Image< TPixel, 2 >::ValueType ValueType
virtual void SetOutputFileName(const char *name)
virtual TPixel * GetBufferPointer()
Image< TPixel, 2 >::PixelContainer PixelContainer