ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType > Class Template Reference

#include <itkMetaImageConverter.h>

Detailed Description

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
class itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >

converts between MetaObject<->SpatialObject.

See also
MetaConverterBase

Definition at line 39 of file itkMetaImageConverter.h.

+ Inheritance diagram for itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >:
+ Collaboration diagram for itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using ImageMetaObjectType = MetaImage
 
using ImageSpatialObjectConstPointer = typename ImageSpatialObjectType::ConstPointer
 
using ImageSpatialObjectPointer = typename ImageSpatialObjectType::Pointer
 
using ImageSpatialObjectType = TSpatialObjectType
 
using ImageType = Image<TPixel, VDimension>
 
using MetaObjectType
 
using Pointer = SmartPointer<Self>
 
using Self = MetaImageConverter
 
using SpatialObjectPointer = typename SpatialObjectType::Pointer
 
using SpatialObjectType
 
using Superclass = MetaConverterBase<VDimension>
 
- Public Types inherited from itk::MetaConverterBase< 3 >
using ConstPointer
 
using MetaObjectType
 
using Pointer
 
using Self
 
using SpatialObjectConstPointer
 
using SpatialObjectPointer
 
using SpatialObjectType
 
using Superclass
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

virtual::itk::LightObject::Pointer CreateAnother () const
 
const char * GetNameOfClass () const override
 
SpatialObjectPointer MetaObjectToSpatialObject (const MetaObjectType *mo) override
 
MetaObjectTypeSpatialObjectToMetaObject (const SpatialObjectType *so) override
 
- Public Member Functions inherited from itk::MetaConverterBase< 3 >
virtual unsigned int GetMetaIOVersion () const
 
void MetaObjectToSpatialObjectBase (const MetaObjectType *mo, SpatialObjectPointer rval)
 
virtual SpatialObjectPointer ReadMeta (const char *name)
 
virtual void SetMetaIOVersion (unsigned int _arg)
 
void SpatialObjectToMetaObjectBase (SpatialObjectConstPointer spatialObject, MetaObjectType *mo)
 
virtual bool WriteMeta (const SpatialObjectType *spatialObject, const char *name)
 
virtual void SetWriteImagesInSeparateFile (bool _arg)
 
virtual bool GetWriteImagesInSeparateFile () const
 
virtual void WriteImagesInSeparateFileOn ()
 
virtual void WriteImagesInSeparateFileOff ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
const char * GetNameOfClass () const override
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

ImageType::Pointer AllocateImage (const ImageMetaObjectType *image)
 
 MetaImageConverter ()=default
 
 ~MetaImageConverter () override=default
 
MetaObjectTypeCreateMetaObject () override
 
virtual const char * GetMetaObjectSubType ()
 
- Protected Member Functions inherited from itk::MetaConverterBase< 3 >
 MetaConverterBase ()=default
 
 ~MetaConverterBase () override=default
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::ConstPointer = SmartPointer<const Self>

Definition at line 48 of file itkMetaImageConverter.h.

◆ ImageMetaObjectType

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::ImageMetaObjectType = MetaImage

Definition at line 64 of file itkMetaImageConverter.h.

◆ ImageSpatialObjectConstPointer

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::ImageSpatialObjectConstPointer = typename ImageSpatialObjectType::ConstPointer

Definition at line 63 of file itkMetaImageConverter.h.

◆ ImageSpatialObjectPointer

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::ImageSpatialObjectPointer = typename ImageSpatialObjectType::Pointer

Definition at line 62 of file itkMetaImageConverter.h.

◆ ImageSpatialObjectType

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::ImageSpatialObjectType = TSpatialObjectType

Specific class types for conversion

Definition at line 61 of file itkMetaImageConverter.h.

◆ ImageType

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::ImageType = Image<TPixel, VDimension>

Definition at line 65 of file itkMetaImageConverter.h.

◆ MetaObjectType

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaConverterBase< VDimension >::MetaObjectType

Definition at line 58 of file itkMetaConverterBase.h.

◆ Pointer

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::Pointer = SmartPointer<Self>

Definition at line 47 of file itkMetaImageConverter.h.

◆ Self

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::Self = MetaImageConverter

Standard class type aliases

Definition at line 45 of file itkMetaImageConverter.h.

◆ SpatialObjectPointer

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::SpatialObjectPointer = typename SpatialObjectType::Pointer

Definition at line 57 of file itkMetaImageConverter.h.

◆ SpatialObjectType

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaConverterBase< VDimension >::SpatialObjectType

Definition at line 55 of file itkMetaConverterBase.h.

◆ Superclass

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
using itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::Superclass = MetaConverterBase<VDimension>

Definition at line 46 of file itkMetaImageConverter.h.

Constructor & Destructor Documentation

◆ MetaImageConverter()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::MetaImageConverter ( )
protecteddefault

◆ ~MetaImageConverter()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::~MetaImageConverter ( )
overrideprotecteddefault

Member Function Documentation

◆ AllocateImage()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
ImageType::Pointer itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::AllocateImage ( const ImageMetaObjectType * image)
protected

◆ CreateAnother()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
virtual::itk::LightObject::Pointer itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::CreateAnother ( ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::LightObject.

Reimplemented in itk::MetaImageMaskConverter< VDimension >.

◆ CreateMetaObject()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
MetaObjectType * itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::CreateMetaObject ( )
overrideprotectedvirtual

Create the specific MetaObject for this class

Implements itk::MetaConverterBase< 3 >.

◆ GetMetaObjectSubType()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
virtual const char * itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::GetMetaObjectSubType ( )
protectedvirtual

Create the specific MetaObject for this class

Reimplemented in itk::MetaImageMaskConverter< VDimension >.

◆ GetNameOfClass()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
const char * itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::GetNameOfClass ( ) const
overridevirtual

◆ MetaObjectToSpatialObject()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
SpatialObjectPointer itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::MetaObjectToSpatialObject ( const MetaObjectType * mo)
overridevirtual

Convert the MetaObject to Spatial Object

Implements itk::MetaConverterBase< 3 >.

◆ New()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
static Pointer itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::New ( )
static

Method for creation through the object factory.

◆ SpatialObjectToMetaObject()

template<unsigned int VDimension = 3, typename TPixel = unsigned char, typename TSpatialObjectType = ImageSpatialObject<VDimension, TPixel>>
MetaObjectType * itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >::SpatialObjectToMetaObject ( const SpatialObjectType * so)
overridevirtual

Convert the SpatialObject to MetaObject

Implements itk::MetaConverterBase< 3 >.


The documentation for this class was generated from the following file: