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