ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::MINCTransformIOTemplate< TParametersValueType > Class Template Reference

#include <itkMINCTransformIO.h>

Detailed Description

template<typename TParametersValueType>
class itk::MINCTransformIOTemplate< TParametersValueType >

Read and write transforms in MINC format (.xfm). Takes into account PositiveCoordinateOrientation RAS to PositiveCoordinateOrientation LPS conversion flag to convert from internal MINC to ITK conventions and back, if enabled.

Author
Vladimir S. FONOV Brain Imaging Center, Montreal Neurological Institute, McGill University, Montreal Canada 2012

Definition at line 45 of file itkMINCTransformIO.h.

+ Inheritance diagram for itk::MINCTransformIOTemplate< TParametersValueType >:
+ Collaboration diagram for itk::MINCTransformIOTemplate< TParametersValueType >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using ConstTransformListType
 
using MatrixOffsetTransformBaseType = MatrixOffsetTransformBase<TParametersValueType, 3, 3>
 
using MatrixType = typename MatrixOffsetTransformBaseType::MatrixType
 
using OffsetType = typename MatrixOffsetTransformBaseType::OffsetType
 
using ParametersType = typename TransformType::ParametersType
 
using Pointer = SmartPointer<Self>
 
using Self = MINCTransformIOTemplate
 
using Superclass = TransformIOBaseTemplate<TParametersValueType>
 
using TransformListType
 
using TransformPointer
 
using TransformType
 
- Public Types inherited from itk::TransformIOBaseTemplate< TParametersValueType >
using ConstTransformListType = std::list<ConstTransformPointer>
 
using ConstTransformPointer = typename TransformType::ConstPointer
 
using FixedParametersValueType = double
 
using ParametersValueType = TParametersValueType
 
using Pointer = SmartPointer<Self>
 
using ScalarType = TParametersValueType
 
using Self = TransformIOBaseTemplate
 
using Superclass = LightProcessObject
 
using TransformListType = std::list<TransformPointer>
 
using TransformPointer = typename TransformType::Pointer
 
using TransformType = TransformBaseTemplate<ParametersValueType>
 
- Public Types inherited from itk::LightProcessObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightProcessObject
 
using Superclass = Object
 
- 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

bool CanReadFile (const char *fileName) override
 
bool CanWriteFile (const char *fileName) override
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
virtual bool GetRAStoLPS () const
 
virtual void RAStoLPSOff ()
 
virtual void RAStoLPSOn ()
 
void Read () override
 
virtual void SetRAStoLPS (bool _arg)
 
void Write () override
 
- Public Member Functions inherited from itk::TransformIOBaseTemplate< TParametersValueType >
void CorrectTransformPrecisionType (std::string &inputTransformName)
 
void CorrectTransformPrecisionType (std::string &inputTransformName)
 
void SetTransformList (ConstTransformListType &transformList)
 
virtual void SetFileName (const char *_arg)
 
virtual const char * GetFileName () const
 
TransformListType & GetTransformList ()
 
TransformListType & GetReadTransformList ()
 
ConstTransformListType & GetWriteTransformList ()
 
virtual void SetAppendMode (bool _arg)
 
virtual bool GetAppendMode () const
 
virtual void AppendModeOn ()
 
virtual void AppendModeOff ()
 
virtual void SetUseCompression (bool _arg)
 
virtual bool GetUseCompression () const
 
virtual void UseCompressionOn ()
 
virtual void UseCompressionOff ()
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void UpdateOutputData ()
 
void UpdateProgress (float amount)
 
virtual void SetProgress (float _arg)
 
virtual const float & GetProgress () const
 
- 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
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () 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::TransformIOBaseTemplate< TParametersValueType >
static void CorrectTransformPrecisionType (std::string &inputTransformName)
 
- Static Public Member Functions inherited from itk::LightProcessObject
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

 MINCTransformIOTemplate ()
 
 ~MINCTransformIOTemplate () override
 
- Protected Member Functions inherited from itk::TransformIOBaseTemplate< TParametersValueType >
void CreateTransform (TransformPointer &ptr, const std::string &ClassName)
 
std::string GetTypeNameString ()
 
std::string GetTypeNameString ()
 
void OpenStream (std::ofstream &outputStream, bool binary)
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 TransformIOBaseTemplate ()
 
 ~TransformIOBaseTemplate () override
 
- Protected Member Functions inherited from itk::LightProcessObject
virtual void GenerateData ()
 
 LightProcessObject ()
 
 ~LightProcessObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
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 ()
 

Protected Attributes

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

Private Member Functions

void _cleanup ()
 
void ReadOneTransform (VIO_General_transform *xfm)
 
void WriteOneTransform (const int transformIndex, const TransformType *transform, std::vector< VIO_General_transform > &_xfm, const char *xfm_file_base, int &serial)
 

Private Attributes

bool m_RAStoLPS {}
 

Additional Inherited Members

- Static Protected Member Functions inherited from itk::TransformIOBaseTemplate< TParametersValueType >
static std::string GetTypeNameString ()
 

Member Typedef Documentation

◆ ConstPointer

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::ConstPointer = SmartPointer<const Self>

Definition at line 51 of file itkMINCTransformIO.h.

◆ ConstTransformListType

template<typename TParametersValueType>
using itk::TransformIOBaseTemplate< TParametersValueType >::ConstTransformListType

Definition at line 82 of file itkTransformIOBase.h.

◆ MatrixOffsetTransformBaseType

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::MatrixOffsetTransformBaseType = MatrixOffsetTransformBase<TParametersValueType, 3, 3>

Definition at line 59 of file itkMINCTransformIO.h.

◆ MatrixType

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::MatrixType = typename MatrixOffsetTransformBaseType::MatrixType

Definition at line 61 of file itkMINCTransformIO.h.

◆ OffsetType

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::OffsetType = typename MatrixOffsetTransformBaseType::OffsetType

Definition at line 62 of file itkMINCTransformIO.h.

◆ ParametersType

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::ParametersType = typename TransformType::ParametersType

Definition at line 57 of file itkMINCTransformIO.h.

◆ Pointer

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::Pointer = SmartPointer<Self>

Definition at line 50 of file itkMINCTransformIO.h.

◆ Self

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::Self = MINCTransformIOTemplate

Definition at line 48 of file itkMINCTransformIO.h.

◆ Superclass

template<typename TParametersValueType>
using itk::MINCTransformIOTemplate< TParametersValueType >::Superclass = TransformIOBaseTemplate<TParametersValueType>

Definition at line 49 of file itkMINCTransformIO.h.

◆ TransformListType

template<typename TParametersValueType>
using itk::TransformIOBaseTemplate< TParametersValueType >::TransformListType

Definition at line 80 of file itkTransformIOBase.h.

◆ TransformPointer

template<typename TParametersValueType>
using itk::TransformIOBaseTemplate< TParametersValueType >::TransformPointer

For writing, a const transform list gets passed in, for reading, a non-const transform list is created from the file.

Definition at line 79 of file itkTransformIOBase.h.

◆ TransformType

template<typename TParametersValueType>
using itk::TransformIOBaseTemplate< TParametersValueType >::TransformType

Definition at line 74 of file itkTransformIOBase.h.

Constructor & Destructor Documentation

◆ MINCTransformIOTemplate()

template<typename TParametersValueType>
itk::MINCTransformIOTemplate< TParametersValueType >::MINCTransformIOTemplate ( )
protected

◆ ~MINCTransformIOTemplate()

template<typename TParametersValueType>
itk::MINCTransformIOTemplate< TParametersValueType >::~MINCTransformIOTemplate ( )
overrideprotected

Member Function Documentation

◆ _cleanup()

template<typename TParametersValueType>
void itk::MINCTransformIOTemplate< TParametersValueType >::_cleanup ( )
private

◆ CanReadFile()

template<typename TParametersValueType>
bool itk::MINCTransformIOTemplate< TParametersValueType >::CanReadFile ( const char * fileName)
overridevirtual

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements itk::TransformIOBaseTemplate< TParametersValueType >.

◆ CanWriteFile()

template<typename TParametersValueType>
bool itk::MINCTransformIOTemplate< TParametersValueType >::CanWriteFile ( const char * fileName)
overridevirtual

Determine the file type. Returns true if this ImageIO can write the file specified.

Implements itk::TransformIOBaseTemplate< TParametersValueType >.

◆ CreateAnother()

template<typename TParametersValueType>
virtual::itk::LightObject::Pointer itk::MINCTransformIOTemplate< TParametersValueType >::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::LightProcessObject.

◆ GetNameOfClass()

template<typename TParametersValueType>
virtual const char * itk::MINCTransformIOTemplate< TParametersValueType >::GetNameOfClass ( ) const
virtual

◆ GetRAStoLPS()

template<typename TParametersValueType>
virtual bool itk::MINCTransformIOTemplate< TParametersValueType >::GetRAStoLPS ( ) const
virtual

◆ New()

template<typename TParametersValueType>
static Pointer itk::MINCTransformIOTemplate< TParametersValueType >::New ( )
static

◆ RAStoLPSOff()

template<typename TParametersValueType>
virtual void itk::MINCTransformIOTemplate< TParametersValueType >::RAStoLPSOff ( )
virtual

◆ RAStoLPSOn()

template<typename TParametersValueType>
virtual void itk::MINCTransformIOTemplate< TParametersValueType >::RAStoLPSOn ( )
virtual

◆ Read()

template<typename TParametersValueType>
void itk::MINCTransformIOTemplate< TParametersValueType >::Read ( )
overridevirtual

Reads the data from disk into the memory buffer provided.

Implements itk::TransformIOBaseTemplate< TParametersValueType >.

◆ ReadOneTransform()

template<typename TParametersValueType>
void itk::MINCTransformIOTemplate< TParametersValueType >::ReadOneTransform ( VIO_General_transform * xfm)
private

◆ SetRAStoLPS()

template<typename TParametersValueType>
virtual void itk::MINCTransformIOTemplate< TParametersValueType >::SetRAStoLPS ( bool _arg)
virtual

Set to automatically convert from RAS PositiveCoordinateOrientation to LPS PositiveCoordinateOrientation. New objects start from MINCImageIO::GetDefaultRAStoLPS().

◆ Write()

template<typename TParametersValueType>
void itk::MINCTransformIOTemplate< TParametersValueType >::Write ( )
overridevirtual

Writes the transform list to disk.

Implements itk::TransformIOBaseTemplate< TParametersValueType >.

◆ WriteOneTransform()

template<typename TParametersValueType>
void itk::MINCTransformIOTemplate< TParametersValueType >::WriteOneTransform ( const int transformIndex,
const TransformType * transform,
std::vector< VIO_General_transform > & _xfm,
const char * xfm_file_base,
int & serial )
private

Member Data Documentation

◆ m_RAStoLPS

template<typename TParametersValueType>
bool itk::MINCTransformIOTemplate< TParametersValueType >::m_RAStoLPS {}
private

Definition at line 110 of file itkMINCTransformIO.h.

◆ m_XFM

template<typename TParametersValueType>
VIO_General_transform itk::MINCTransformIOTemplate< TParametersValueType >::m_XFM {}
protected

Definition at line 95 of file itkMINCTransformIO.h.

◆ m_XFM_initialized

template<typename TParametersValueType>
bool itk::MINCTransformIOTemplate< TParametersValueType >::m_XFM_initialized {}
protected

Definition at line 96 of file itkMINCTransformIO.h.


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