plastimatch
Loading...
Searching...
No Matches
Xform Class Reference

The Xform class is an abstraction that encapsulates a simple transform, either native format (B-spline or vector field), or ITK format (linear, B-spline, or vector field). More...

#include <xform.h>

Public Member Functions

 SMART_POINTER_SUPPORT (Xform)
 
 Xform ()
 
 ~Xform ()
 
 Xform (const Xform &xf)
 
void clear ()
 
void load (const char *fn)
 
void load (const std::string &fn)
 
void save (const char *fn) const
 
void save (const std::string &fn) const
 
TranslationTransformType::Pointer get_trn () const
 
VersorTransformType::Pointer get_vrs () const
 
QuaternionTransformType::Pointer get_quat () const
 
AffineTransformType::Pointer get_aff () const
 
SimilarityTransformType::Pointer get_similarity () const
 
BsplineTransformType::Pointer get_itk_bsp () const
 
TpsTransformType::Pointer get_itk_tps () const
 
DeformationFieldType::Pointer get_itk_vf () const
 
Bspline_xformget_gpuit_bsp () const
 
Volume::Pointer & get_gpuit_vf () const
 
void init_trn ()
 
void set_trn (const itk::Array< double > &trn)
 
void set_trn (TranslationTransformType::Pointer trn)
 
void set_vrs (const itk::Array< double > &vrs)
 
void set_vrs (VersorTransformType::Pointer vrs)
 
void set_quat (const itk::Array< double > &quat)
 
void set_quat (QuaternionTransformType::Pointer quat)
 
void set_aff (const itk::Array< double > &aff)
 
void set_aff (AffineTransformType::Pointer aff)
 
void set_similarity (SimilarityTransformType::Pointer sim)
 
void set_similarity (const itk::Array< double > &sim)
 
void set_itk_bsp (BsplineTransformType::Pointer bsp)
 
void set_itk_tps (TpsTransformType::Pointer tps)
 
void set_itk_vf (DeformationFieldType::Pointer vf)
 
void set_gpuit_bsp (Bspline_xform *xgb)
 
void set_gpuit_vf (const Volume::Pointer &vf)
 
void itk_bsp_set_grid (const BsplineTransformType::OriginType bsp_origin, const BsplineTransformType::SpacingType bsp_spacing, const BsplineTransformType::RegionType bsp_region, const BsplineTransformType::DirectionType bsp_direction)
 
Xform_type get_type () const
 
void get_volume_header (Volume_header *vh)
 
Plm_image_header get_plm_image_header ()
 
void get_grid_spacing (float grid_spacing[3])
 
bool is_linear ()
 Return true if the xform type is translation, rigid, similarity, or affine.
 
void print ()
 
Xformoperator= (const Xform &xf)
 

Public Attributes

Xform_private * d_ptr
 
Xform_type m_type
 
TranslationTransformType::Pointer m_trn
 
VersorTransformType::Pointer m_vrs
 
AffineTransformType::Pointer m_aff
 
QuaternionTransformType::Pointer m_quat
 
DeformationFieldType::Pointer m_itk_vf
 
BsplineTransformType::Pointer m_itk_bsp
 
TpsTransformType::Pointer m_itk_tps
 
SimilarityTransformType::Pointer m_similarity
 

Protected Member Functions

void save_gpuit_vf (const char *fn) const
 

Detailed Description

The Xform class is an abstraction that encapsulates a simple transform, either native format (B-spline or vector field), or ITK format (linear, B-spline, or vector field).

Constructor & Destructor Documentation

◆ Xform() [1/2]

Xform::Xform ( )

◆ ~Xform()

Xform::~Xform ( )

◆ Xform() [2/2]

Xform::Xform ( const Xform & xf)

Member Function Documentation

◆ clear()

void Xform::clear ( )

◆ get_aff()

AffineTransformType::Pointer Xform::get_aff ( ) const

◆ get_gpuit_bsp()

Bspline_xform * Xform::get_gpuit_bsp ( ) const

◆ get_gpuit_vf()

Volume::Pointer & Xform::get_gpuit_vf ( ) const

◆ get_grid_spacing()

void Xform::get_grid_spacing ( float grid_spacing[3])

◆ get_itk_bsp()

BsplineTransformType::Pointer Xform::get_itk_bsp ( ) const

◆ get_itk_tps()

TpsTransformType::Pointer Xform::get_itk_tps ( ) const

◆ get_itk_vf()

DeformationFieldType::Pointer Xform::get_itk_vf ( ) const

◆ get_plm_image_header()

Plm_image_header Xform::get_plm_image_header ( )

◆ get_quat()

QuaternionTransformType::Pointer Xform::get_quat ( ) const

◆ get_similarity()

SimilarityTransformType::Pointer Xform::get_similarity ( ) const

◆ get_trn()

TranslationTransformType::Pointer Xform::get_trn ( ) const

◆ get_type()

Xform_type Xform::get_type ( ) const

◆ get_volume_header()

void Xform::get_volume_header ( Volume_header * vh)

◆ get_vrs()

VersorTransformType::Pointer Xform::get_vrs ( ) const

◆ init_trn()

void Xform::init_trn ( )

◆ is_linear()

bool Xform::is_linear ( )

Return true if the xform type is translation, rigid, similarity, or affine.

◆ itk_bsp_set_grid()

void Xform::itk_bsp_set_grid ( const BsplineTransformType::OriginType bsp_origin,
const BsplineTransformType::SpacingType bsp_spacing,
const BsplineTransformType::RegionType bsp_region,
const BsplineTransformType::DirectionType bsp_direction )

◆ load() [1/2]

void Xform::load ( const char * fn)

◆ load() [2/2]

void Xform::load ( const std::string & fn)

◆ operator=()

Xform & Xform::operator= ( const Xform & xf)

◆ print()

void Xform::print ( )

◆ save() [1/2]

void Xform::save ( const char * fn) const

◆ save() [2/2]

void Xform::save ( const std::string & fn) const

◆ save_gpuit_vf()

void Xform::save_gpuit_vf ( const char * fn) const
protected

◆ set_aff() [1/2]

void Xform::set_aff ( AffineTransformType::Pointer aff)

◆ set_aff() [2/2]

void Xform::set_aff ( const itk::Array< double > & aff)

◆ set_gpuit_bsp()

void Xform::set_gpuit_bsp ( Bspline_xform * xgb)

◆ set_gpuit_vf()

void Xform::set_gpuit_vf ( const Volume::Pointer & vf)

◆ set_itk_bsp()

void Xform::set_itk_bsp ( BsplineTransformType::Pointer bsp)

◆ set_itk_tps()

void Xform::set_itk_tps ( TpsTransformType::Pointer tps)

◆ set_itk_vf()

void Xform::set_itk_vf ( DeformationFieldType::Pointer vf)

◆ set_quat() [1/2]

void Xform::set_quat ( const itk::Array< double > & quat)

◆ set_quat() [2/2]

void Xform::set_quat ( QuaternionTransformType::Pointer quat)

◆ set_similarity() [1/2]

void Xform::set_similarity ( const itk::Array< double > & sim)

◆ set_similarity() [2/2]

void Xform::set_similarity ( SimilarityTransformType::Pointer sim)

◆ set_trn() [1/2]

void Xform::set_trn ( const itk::Array< double > & trn)

◆ set_trn() [2/2]

void Xform::set_trn ( TranslationTransformType::Pointer trn)

◆ set_vrs() [1/2]

void Xform::set_vrs ( const itk::Array< double > & vrs)

◆ set_vrs() [2/2]

void Xform::set_vrs ( VersorTransformType::Pointer vrs)

◆ SMART_POINTER_SUPPORT()

Xform::SMART_POINTER_SUPPORT ( Xform )

Member Data Documentation

◆ d_ptr

Xform_private* Xform::d_ptr

◆ m_aff

AffineTransformType::Pointer Xform::m_aff

◆ m_itk_bsp

BsplineTransformType::Pointer Xform::m_itk_bsp

◆ m_itk_tps

TpsTransformType::Pointer Xform::m_itk_tps

◆ m_itk_vf

DeformationFieldType::Pointer Xform::m_itk_vf

◆ m_quat

QuaternionTransformType::Pointer Xform::m_quat

◆ m_similarity

SimilarityTransformType::Pointer Xform::m_similarity

◆ m_trn

TranslationTransformType::Pointer Xform::m_trn

◆ m_type

Xform_type Xform::m_type

◆ m_vrs

VersorTransformType::Pointer Xform::m_vrs

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