15 #ifndef __itkNDImageTemplate_h
16 #define __itkNDImageTemplate_h
19 #include "itkImageFileReader.h"
42 template <
class TPixel,
unsigned int VDimension >
111 virtual void FillBuffer (
const TPixel& value);
146 itkGetObjectMacro(Image, DataObject);
147 itkGetObjectMacro(Writer, ProcessObject);
148 itkGetObjectMacro(Reader, ProcessObject);
151 virtual void Write(
void);
154 virtual void Read(
void);
182 template <
class TIn,
class TOut>
183 class ConvertToDynamicArray
186 inline static TOut DO(
const TIn & in)
188 TOut out(VDimension);
190 for (
unsigned int i=0; i< VDimension; i++)
199 template <
class TIn,
class TOut>
200 class ConvertToStaticArray
203 inline static TOut DO(
const TIn & in)
207 for (
unsigned int i=0; i< VDimension; i++)
228 #ifndef ITK_MANUAL_INSTANTIATION
229 #include "itkNDImageTemplate.hxx"
232 #endif // end #ifndef __itkNDImageTemplate_h
Superclass::PixelContainerConstPointer PixelContainerConstPointer
ImageFileWriter< ImageType > WriterType
Superclass::PixelContainerPointer PixelContainerPointer
Superclass::OffsetType OffsetType
ImageBase< 2 >::OffsetValueType OffsetValueType
virtual void SetImageIOReader(ImageIOBase *_arg)
Image< TPixel, 2 >::InternalPixelType InternalPixelType
Image< TPixel, 2 >::ValueType ValueType
Superclass::IndexValueType IndexValueType
virtual const char * GetInputFileName(void)
ImageType::SizeType SizeTypeD
virtual void FillBuffer(const TPixel &value)
NDImageBase< TPixel > Superclass
Superclass::SizeValueType SizeValueType
Superclass::DataObjectType DataObjectType
Array< SpacingValueType > SpacingType
Array< PointValueType > PointType
void operator=(const Self &)
virtual void Allocate(void)
ImageType::PointType PointTypeD
Array< OffsetValueType > OffsetType
virtual OffsetValueType ComputeOffset(const IndexType &ind) const
virtual void SetPixelContainer(PixelContainer *container)
virtual void CreateNewImage(void)
virtual unsigned int ImageDimension(void)
Image< TPixel, VDimension > ImageType
ImageType::SpacingType SpacingTypeD
virtual IndexType ComputeIndex(OffsetValueType offset) const
Image< TPixel, 2 >::PixelContainer PixelContainer
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
virtual unsigned int GetImageDimension(void)
virtual PixelContainer * GetPixelContainer()
Image< TPixel, 2 >::PixelContainerConstPointer PixelContainerConstPointer
Superclass::OffsetValueType OffsetValueType
virtual void Initialize(void)
virtual const char * GetOutputFileName(void)
virtual void SetRequestedRegion(DataObject *data)
Superclass::InternalPixelType InternalPixelType
virtual AccessorType GetPixelAccessor(void)
ImageFileReader< ImageType > ReaderType
virtual ImageIOBase * GetImageIOReader(void)
ImageType::Pointer ImagePointer
virtual const OffsetValueType * GetOffsetTable() const
An image whose dimension can be specified at runtime.
Array< SizeValueType > SizeType
virtual void SetImageIOWriter(ImageIOBase *_arg)
virtual ~NDImageTemplate()
virtual void SetPixel(const IndexType &index, const TPixel &value)
Superclass::SpacingType SpacingType
virtual void SetOrigin(const PointType &origin)
virtual PointType GetOrigin(void)
ImageBase< 2 >::IndexValueType IndexValueType
Superclass::SpacingValueType SpacingValueType
Point2DType::ValueType PointValueType
virtual void SetInputFileName(const char *name)
virtual const TPixel & GetPixel(const IndexType &index) const
Image< TPixel, 2 >::AccessorType AccessorType
virtual void SetRegions(SizeType size)
virtual ImageIOBase * GetImageIOWriter(void)
Superclass::DataObjectPointer DataObjectPointer
Spacing2DType::ValueType SpacingValueType
Superclass::SizeType SizeType
Image< TPixel, 2 >::PixelType PixelType
WriterType::Pointer WriterPointer
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
ImageBase< 2 >::SizeValueType SizeValueType
virtual void SetSpacing(const SpacingType &spacing)
Superclass::PointValueType PointValueType
itkStaticConstMacro(Dimension, unsigned int, VDimension)
Superclass::PointType PointType
Superclass::ValueType ValueType
Image< TPixel, 2 >::PixelContainerPointer PixelContainerPointer
ImageType::IndexType IndexTypeD
Array< IndexValueType > IndexType
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)
virtual void SetOutputFileName(const char *name)
virtual TPixel * GetBufferPointer()