#include <itkNDImageBase.h>
An image whose dimension can be specified at runtime.
The NDImageBase class is needed for the FullSearch optimizer. It allows run-time construction of an N-dimensional image. It has most of the functionality of a normal itk::Image.
The NewNDImage function defines the dimension of the image. CreateNewImage creates an instance of an itk::Image, with dimension as specified by NewNDImage. Note: the NewNDImage does not return an itk::Image, but an elx::NDImageTemplate.
Suggested way of using this class:
NDImageBase<short> var1 = NDImageBase::NewNDImage(3);
var1->CreateNewImage();
The result is similar as:
itk::Image<short,3>::Pointer var1 = itk::Image<short,3>::New();
except that the actual itk::Image is stored as member variable in the NDImageTemplate.
Definition at line 58 of file itkNDImageBase.h.
Public Types | |
using | AccessorType = typename Image<TPixel, 2>::AccessorType |
using | ConstPointer = SmartPointer<const Self> |
using | DataObjectPointer = DataObject::Pointer |
using | IndexType = Array<IndexValueType> |
using | InternalPixelType = typename Image<TPixel, 2>::InternalPixelType |
using | OffsetType = Array<OffsetValueType> |
using | OffsetValueType = typename ImageBase<2>::OffsetValueType |
using | PixelContainer = typename Image<TPixel, 2>::PixelContainer |
using | PixelContainerConstPointer = typename Image<TPixel, 2>::PixelContainerConstPointer |
using | PixelContainerPointer = typename Image<TPixel, 2>::PixelContainerPointer |
using | Point2DType = typename ImageBase<2>::PointType |
using | Pointer = SmartPointer<Self> |
using | PointType = Array<PointValueType> |
using | PointValueType = typename Point2DType::ValueType |
using | Self = NDImageBase |
using | SizeType = Array<SizeValueType> |
using | Spacing2DType = typename ImageBase<2>::SpacingType |
using | SpacingType = Array<SpacingValueType> |
using | SpacingValueType = typename Spacing2DType::ValueType |
using | Superclass = Object |
using | ValueType = typename Image<TPixel, 2>::ValueType |
Public Member Functions | |
virtual void | Allocate ()=0 |
virtual IndexType | ComputeIndex (OffsetValueType offset) const =0 |
virtual OffsetValueType | ComputeOffset (const IndexType &ind) const =0 |
virtual void | CopyInformation (const DataObject *data)=0 |
virtual void | CreateNewImage ()=0 |
virtual void | FillBuffer (const TPixel &value)=0 |
virtual const TPixel * | GetBufferPointer () const =0 |
virtual TPixel * | GetBufferPointer ()=0 |
virtual const char * | GetClassName () const |
virtual unsigned int | GetImageDimension ()=0 |
virtual ImageIOBase * | GetImageIOReader ()=0 |
virtual ImageIOBase * | GetImageIOWriter ()=0 |
virtual const char * | GetInputFileName ()=0 |
virtual const OffsetValueType * | GetOffsetTable () const =0 |
virtual PointType | GetOrigin ()=0 |
virtual const char * | GetOutputFileName ()=0 |
virtual const TPixel & | GetPixel (const IndexType &index) const =0 |
virtual TPixel & | GetPixel (const IndexType &index)=0 |
virtual const AccessorType | GetPixelAccessor () const =0 |
virtual AccessorType | GetPixelAccessor ()=0 |
virtual const PixelContainer * | GetPixelContainer () const =0 |
virtual PixelContainer * | GetPixelContainer ()=0 |
virtual SpacingType | GetSpacing ()=0 |
virtual unsigned int | ImageDimension ()=0 |
virtual void | Initialize ()=0 |
ITK_DISALLOW_COPY_AND_MOVE (NDImageBase) | |
TPixel & | operator[] (const IndexType &index) |
const TPixel & | operator[] (const IndexType &index) const |
virtual void | Read ()=0 |
virtual void | SetImageIOReader (ImageIOBase *_arg)=0 |
virtual void | SetImageIOWriter (ImageIOBase *_arg)=0 |
virtual void | SetInputFileName (const char *)=0 |
virtual void | SetOrigin (const PointType &origin)=0 |
virtual void | SetOutputFileName (const char *)=0 |
virtual void | SetPixel (const IndexType &index, const TPixel &value)=0 |
virtual void | SetPixelContainer (PixelContainer *container)=0 |
virtual void | SetRegions (SizeType size)=0 |
virtual void | SetRequestedRegion (DataObject *data)=0 |
virtual void | SetSpacing (const SpacingType &spacing)=0 |
virtual void | Write ()=0 |
Static Public Member Functions | |
static Pointer | NewNDImage (unsigned int dim) |
Protected Member Functions | |
NDImageBase ()=default | |
~NDImageBase () override=default | |
using itk::NDImageBase< TPixel >::AccessorType = typename Image<TPixel, 2>::AccessorType |
Definition at line 83 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::ConstPointer = SmartPointer<const Self> |
Definition at line 67 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::DataObjectPointer = DataObject::Pointer |
Definition at line 77 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::IndexType = Array<IndexValueType> |
ND versions of the index and sizetypes. Unlike in their counterparts in the itk::Image, their size can be defined at runtime. The elx::NDImageTemplate takes care of converting from/to these types to to/from the corresponding types in itk::Image.
Definition at line 100 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::InternalPixelType = typename Image<TPixel, 2>::InternalPixelType |
Definition at line 82 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::OffsetType = Array<OffsetValueType> |
Definition at line 104 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::OffsetValueType = typename ImageBase<2>::OffsetValueType |
Definition at line 93 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::PixelContainer = typename Image<TPixel, 2>::PixelContainer |
Definition at line 84 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::PixelContainerConstPointer = typename Image<TPixel, 2>::PixelContainerConstPointer |
Definition at line 86 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::PixelContainerPointer = typename Image<TPixel, 2>::PixelContainerPointer |
Definition at line 85 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::Point2DType = typename ImageBase<2>::PointType |
Definition at line 89 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::Pointer = SmartPointer<Self> |
Definition at line 66 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::PointType = Array<PointValueType> |
Definition at line 103 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::PointValueType = typename Point2DType::ValueType |
Definition at line 92 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::Self = NDImageBase |
Standard class typedefs.
Definition at line 64 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::SizeType = Array<SizeValueType> |
Definition at line 101 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::Spacing2DType = typename ImageBase<2>::SpacingType |
Definition at line 88 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::SpacingType = Array<SpacingValueType> |
Definition at line 102 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::SpacingValueType = typename Spacing2DType::ValueType |
Definition at line 91 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::Superclass = Object |
Definition at line 65 of file itkNDImageBase.h.
using itk::NDImageBase< TPixel >::ValueType = typename Image<TPixel, 2>::ValueType |
Definition at line 81 of file itkNDImageBase.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Use New method to create a new actual image
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
virtual |
Method for creation through the object factory. Run-time type information (and related methods).
Reimplemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Extra functions for NDImage. Get the Dimension.
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
itk::NDImageBase< TPixel >::ITK_DISALLOW_COPY_AND_MOVE | ( | NDImageBase< TPixel > | ) |
|
static |
Definition at line 261 of file itkNDImageBase.h.
|
inline |
Definition at line 144 of file itkNDImageBase.h.
|
inline |
Definition at line 145 of file itkNDImageBase.h.
|
pure virtual |
Read image data from file into the actual image
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Set/Get the Input/OutputFileName
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Region typedef support. A region is used to specify a subset of an image.
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
|
pure virtual |
Write the actual image to file.
Implemented in itk::NDImageTemplate< TPixel, VDimension >.
Generated on 2024-07-17 for elastix by 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) |