plastimatch
Loading...
Searching...
No Matches
xform.h File Reference
#include "plmbase_config.h"
#include "itkTranslationTransform.h"
#include "itkVersorRigid3DTransform.h"
#include "itkQuaternionRigidTransform.h"
#include "itkAffineTransform.h"
#include "itkBSplineDeformableTransform.h"
#include "itkThinPlateSplineKernelTransform.h"
#include "itkSimilarity3DTransform.h"
#include "itk_image_type.h"
#include "smart_pointer.h"
#include "volume.h"

Go to the source code of this file.

Classes

class  Xform
 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...
 

Typedefs

typedef itk::TranslationTransform< double, 3 > TranslationTransformType
 
typedef itk::VersorRigid3DTransform< double > VersorTransformType
 
typedef itk::QuaternionRigidTransform< double > QuaternionTransformType
 
typedef itk::AffineTransform< double, 3 > AffineTransformType
 
typedef itk::Similarity3DTransform< double > SimilarityTransformType
 
typedef itk::BSplineDeformableTransform< double, SplineDimension, SplineOrderBsplineTransformType
 
typedef itk::ThinPlateSplineKernelTransform< float, 3 > FloatTpsTransformType
 
typedef itk::ThinPlateSplineKernelTransform< double, 3 > DoubleTpsTransformType
 
typedef DoubleTpsTransformType TpsTransformType
 

Enumerations

enum  Xform_type {
  XFORM_NONE , XFORM_ITK_TRANSLATION , XFORM_ITK_VERSOR , XFORM_ITK_QUATERNION ,
  XFORM_ITK_SIMILARITY , XFORM_ITK_AFFINE , XFORM_ITK_BSPLINE , XFORM_ITK_TPS ,
  XFORM_ITK_VECTOR_FIELD , XFORM_GPUIT_BSPLINE , XFORM_GPUIT_VECTOR_FIELD
}
 

Functions

Xform::Pointer xform_load (const std::string &fn)
 
Xform::Pointer xform_load (const char *fn)
 
void xform_load (Xform *xf, const std::string &fn)
 
void xform_load (Xform *xf, const char *fn)
 
void xform_save (Xform *xf, const std::string &fn)
 
void xform_save (Xform *xf, const char *fn)
 
void xform_itk_bsp_init_default (Xform *xf)
 
void xform_itk_bsp_set_grid (Xform *xf, const BsplineTransformType::OriginType bsp_origin, const BsplineTransformType::SpacingType bsp_spacing, const BsplineTransformType::RegionType bsp_region, const BsplineTransformType::DirectionType bsp_direction)
 
void xform_to_trn (Xform *xf_out, const Xform *xf_in, Plm_image_header *pih)
 
void xform_to_vrs (Xform *xf_out, const Xform *xf_in, Plm_image_header *pih)
 
void xform_to_quat (Xform *xf_out, const Xform *xf_in, Plm_image_header *pih)
 
void xform_to_aff (Xform *xf_out, const Xform *xf_in, Plm_image_header *pih)
 
void xform_to_similarity (Xform *xf_out, const Xform *xf_in, Plm_image_header *pih)
 
DeformationFieldType::Pointer xform_gpuit_vf_to_itk_vf (Volume *vf, const Plm_image_header *pih)
 
void xform_to_itk_bsp (Xform *xf_out, const Xform *xf_in, Plm_image_header *pih, const float *grid_spac)
 
void xform_to_itk_bsp_nobulk (Xform *xf_out, Xform *xf_in, Plm_image_header *pih, const float *grid_spac)
 
void xform_to_itk_vf (Xform *xf_out, Xform *xf_in, const Plm_image_header *pih)
 
void xform_to_itk_vf (Xform *xf_out, Xform *xf_in, FloatImageType::Pointer image)
 
void xform_to_gpuit_bsp (Xform *xf_out, Xform *xf_in, Plm_image_header *pih, const float *grid_spac)
 
void xform_to_gpuit_vf (Xform *xf_out, const Xform *xf_in, const Plm_image_header *pih)
 
Xform::Pointer xform_to_aff (const Xform::Pointer &xf_in)
 
Xform::Pointer xform_to_itk_bsp (const Xform::Pointer &xf_in, Plm_image_header *pih, const float *grid_spac)
 
Xform::Pointer xform_to_itk_bsp_nobulk (const Xform::Pointer &xf_in, Plm_image_header *pih, const float *grid_spac)
 
Xform::Pointer xform_to_itk_vf (const Xform::Pointer &xf_in, Plm_image_header *pih)
 
Xform::Pointer xform_to_gpuit_bsp (const Xform::Pointer &xf_in, Plm_image_header *pih, float *grid_spac)
 
Xform::Pointer xform_to_gpuit_vf (const Xform::Pointer &xf_in, const Plm_image_header *pih)
 

Variables

const unsigned int SplineDimension = 3
 
const unsigned int SplineOrder = 3
 

Typedef Documentation

◆ AffineTransformType

typedef itk::AffineTransform< double, 3 > AffineTransformType

◆ BsplineTransformType

typedef itk::BSplineDeformableTransform< double, SplineDimension, SplineOrder > BsplineTransformType

◆ DoubleTpsTransformType

typedef itk::ThinPlateSplineKernelTransform< double, 3 > DoubleTpsTransformType

◆ FloatTpsTransformType

typedef itk::ThinPlateSplineKernelTransform< float, 3 > FloatTpsTransformType

◆ QuaternionTransformType

typedef itk::QuaternionRigidTransform< double > QuaternionTransformType

◆ SimilarityTransformType

typedef itk::Similarity3DTransform<double> SimilarityTransformType

◆ TpsTransformType

◆ TranslationTransformType

typedef itk::TranslationTransform< double, 3 > TranslationTransformType

◆ VersorTransformType

typedef itk::VersorRigid3DTransform< double > VersorTransformType

Enumeration Type Documentation

◆ Xform_type

enum Xform_type
Enumerator
XFORM_NONE 
XFORM_ITK_TRANSLATION 
XFORM_ITK_VERSOR 
XFORM_ITK_QUATERNION 
XFORM_ITK_SIMILARITY 
XFORM_ITK_AFFINE 
XFORM_ITK_BSPLINE 
XFORM_ITK_TPS 
XFORM_ITK_VECTOR_FIELD 
XFORM_GPUIT_BSPLINE 
XFORM_GPUIT_VECTOR_FIELD 

Function Documentation

◆ xform_gpuit_vf_to_itk_vf()

DeformationFieldType::Pointer xform_gpuit_vf_to_itk_vf ( Volume * vf,
const Plm_image_header * pih )

◆ xform_itk_bsp_init_default()

void xform_itk_bsp_init_default ( Xform * xf)

◆ xform_itk_bsp_set_grid()

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

◆ xform_load() [1/4]

Xform::Pointer xform_load ( const char * fn)

◆ xform_load() [2/4]

Xform::Pointer xform_load ( const std::string & fn)

◆ xform_load() [3/4]

void xform_load ( Xform * xf,
const char * fn )

◆ xform_load() [4/4]

void xform_load ( Xform * xf,
const std::string & fn )

◆ xform_save() [1/2]

void xform_save ( Xform * xf,
const char * fn )

◆ xform_save() [2/2]

void xform_save ( Xform * xf,
const std::string & fn )

◆ xform_to_aff() [1/2]

Xform::Pointer xform_to_aff ( const Xform::Pointer & xf_in)

◆ xform_to_aff() [2/2]

void xform_to_aff ( Xform * xf_out,
const Xform * xf_in,
Plm_image_header * pih )

◆ xform_to_gpuit_bsp() [1/2]

Xform::Pointer xform_to_gpuit_bsp ( const Xform::Pointer & xf_in,
Plm_image_header * pih,
float * grid_spac )

◆ xform_to_gpuit_bsp() [2/2]

void xform_to_gpuit_bsp ( Xform * xf_out,
Xform * xf_in,
Plm_image_header * pih,
const float * grid_spac )

◆ xform_to_gpuit_vf() [1/2]

Xform::Pointer xform_to_gpuit_vf ( const Xform::Pointer & xf_in,
const Plm_image_header * pih )

◆ xform_to_gpuit_vf() [2/2]

void xform_to_gpuit_vf ( Xform * xf_out,
const Xform * xf_in,
const Plm_image_header * pih )

◆ xform_to_itk_bsp() [1/2]

Xform::Pointer xform_to_itk_bsp ( const Xform::Pointer & xf_in,
Plm_image_header * pih,
const float * grid_spac )

◆ xform_to_itk_bsp() [2/2]

void xform_to_itk_bsp ( Xform * xf_out,
const Xform * xf_in,
Plm_image_header * pih,
const float * grid_spac )

◆ xform_to_itk_bsp_nobulk() [1/2]

Xform::Pointer xform_to_itk_bsp_nobulk ( const Xform::Pointer & xf_in,
Plm_image_header * pih,
const float * grid_spac )

◆ xform_to_itk_bsp_nobulk() [2/2]

void xform_to_itk_bsp_nobulk ( Xform * xf_out,
Xform * xf_in,
Plm_image_header * pih,
const float * grid_spac )

◆ xform_to_itk_vf() [1/3]

Xform::Pointer xform_to_itk_vf ( const Xform::Pointer & xf_in,
Plm_image_header * pih )

◆ xform_to_itk_vf() [2/3]

void xform_to_itk_vf ( Xform * xf_out,
Xform * xf_in,
const Plm_image_header * pih )

◆ xform_to_itk_vf() [3/3]

void xform_to_itk_vf ( Xform * xf_out,
Xform * xf_in,
FloatImageType::Pointer image )

◆ xform_to_quat()

void xform_to_quat ( Xform * xf_out,
const Xform * xf_in,
Plm_image_header * pih )

◆ xform_to_similarity()

void xform_to_similarity ( Xform * xf_out,
const Xform * xf_in,
Plm_image_header * pih )

◆ xform_to_trn()

void xform_to_trn ( Xform * xf_out,
const Xform * xf_in,
Plm_image_header * pih )

◆ xform_to_vrs()

void xform_to_vrs ( Xform * xf_out,
const Xform * xf_in,
Plm_image_header * pih )

Variable Documentation

◆ SplineDimension

const unsigned int SplineDimension = 3

◆ SplineOrder

const unsigned int SplineOrder = 3