18#ifndef __itkNDImageTemplate_h
19#define __itkNDImageTemplate_h
22#include "itkImageFileReader.h"
44template<
class TPixel,
unsigned int VDimension >
71 typedef typename Superclass::PixelType PixelType;
204 template<
class TIn,
class TOut >
205 class ConvertToDynamicArray
209 inline static TOut DO(
const TIn & in )
211 TOut out( VDimension );
213 for(
unsigned int i = 0; i < VDimension; i++ )
223 template<
class TIn,
class TOut >
224 class ConvertToStaticArray
228 inline static TOut DO(
const TIn & in )
232 for(
unsigned int i = 0; i < VDimension; i++ )
251#ifndef ITK_MANUAL_INSTANTIATION
252#include "itkNDImageTemplate.hxx"
An image whose dimension can be specified at runtime.
ImageBase< 2 >::OffsetValueType OffsetValueType
Image< TPixel, 2 >::PixelContainerPointer PixelContainerPointer
Image< TPixel, 2 >::ValueType ValueType
Point2DType::ValueType PointValueType
DataObjectType::Pointer DataObjectPointer
ImageBase< 2 >::IndexValueType IndexValueType
Array< PointValueType > PointType
Image< TPixel, 2 >::InternalPixelType InternalPixelType
Image< TPixel, 2 >::PixelContainer PixelContainer
Array< OffsetValueType > OffsetType
Array< SpacingValueType > SpacingType
DataObject DataObjectType
ImageBase< 2 >::SizeValueType SizeValueType
Array< SizeValueType > SizeType
Spacing2DType::ValueType SpacingValueType
Image< TPixel, 2 >::AccessorType AccessorType
Array< IndexValueType > IndexType
Image< TPixel, 2 >::PixelContainerConstPointer PixelContainerConstPointer
This class is a specialization of the NDImageBase, which acts as a wrap around an itk::Image.
void Initialize(void) override
const char * GetOutputFileName(void) override
IndexType ComputeIndex(OffsetValueType offset) const override
Superclass::OffsetType OffsetType
PointType GetOrigin(void) override
itkGetModifiableObjectMacro(Image, DataObject)
~NDImageTemplate() override
const TPixel * GetBufferPointer() const override
Superclass::SpacingValueType SpacingValueType
ImageType::IndexType IndexTypeD
ImageType::SpacingType SpacingTypeD
Superclass::PointValueType PointValueType
void SetImageIOWriter(ImageIOBase *_arg) override
Superclass::SizeType SizeType
void SetOrigin(const PointType &origin) override
void SetOutputFileName(const char *name) override
PixelContainer * GetPixelContainer() override
void Write(void) override
void operator=(const Self &)
Superclass::DataObjectPointer DataObjectPointer
void FillBuffer(const TPixel &value) override
itkStaticConstMacro(Dimension, unsigned int, VDimension)
ImageType::SizeType SizeTypeD
const AccessorType GetPixelAccessor(void) const override
void CreateNewImage(void) override
Superclass::SpacingType SpacingType
Superclass::SizeValueType SizeValueType
const TPixel & GetPixel(const IndexType &index) const override
TPixel & GetPixel(const IndexType &index) override
void SetRegions(SizeType size) override
void Allocate(void) override
Superclass::DataObjectType DataObjectType
Superclass::OffsetValueType OffsetValueType
const char * GetInputFileName(void) override
Superclass::AccessorType AccessorType
void SetPixel(const IndexType &index, const TPixel &value) override
SmartPointer< Self > Pointer
itkGetModifiableObjectMacro(Writer, ProcessObject)
itkGetModifiableObjectMacro(Reader, ProcessObject)
const OffsetValueType * GetOffsetTable() const override
Superclass::IndexValueType IndexValueType
ImageIOBase * GetImageIOWriter(void) override
unsigned int GetImageDimension(void) override
Superclass::PixelContainerConstPointer PixelContainerConstPointer
ImageFileReader< ImageType > ReaderType
Image< TPixel, VDimension > ImageType
Superclass::PointType PointType
Superclass::InternalPixelType InternalPixelType
Superclass::ValueType ValueType
const PixelContainer * GetPixelContainer() const override
void SetInputFileName(const char *name) override
NDImageTemplate(const Self &)
AccessorType GetPixelAccessor(void) override
ReaderType::Pointer ReaderPointer
ImageIOBase * GetImageIOReader(void) override
WriterType::Pointer WriterPointer
void SetRequestedRegion(DataObject *data) override
ImageFileWriter< ImageType > WriterType
ImageType::OffsetType OffsetTypeD
NDImageBase< TPixel > Superclass
Superclass::PixelContainer PixelContainer
Superclass::PixelContainerPointer PixelContainerPointer
void SetPixelContainer(PixelContainer *container) override
void SetImageIOReader(ImageIOBase *_arg) override
TPixel * GetBufferPointer() override
SmartPointer< const Self > ConstPointer
void SetSpacing(const SpacingType &spacing) override
Superclass::IndexType IndexType
SpacingType GetSpacing(void) override
ImageType::Pointer ImagePointer
void CopyInformation(const DataObject *data) override
unsigned int ImageDimension(void) override
OffsetValueType ComputeOffset(const IndexType &ind) const override
ImageType::PointType PointTypeD