SimpleITK  1.0.1
Classes | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
itk::simple::AffineTransform Class Reference

An affine transformation about a fixed center with translation for a 2D or 3D coordinate. More...

#include <sitkAffineTransform.h>

+ Inheritance diagram for itk::simple::AffineTransform:
+ Collaboration diagram for itk::simple::AffineTransform:

Classes

struct  MyVisitor
 

Public Types

typedef AffineTransform Self
 
typedef Transform Superclass
 
- Public Types inherited from itk::simple::Transform
typedef Transform Self
 

Public Member Functions

 AffineTransform (unsigned int dimensions)
 
 AffineTransform (const AffineTransform &)
 
 AffineTransform (const Transform &)
 
 AffineTransform (const std::vector< double > &matrix, const std::vector< double > &translation, const std::vector< double > &fixedCenter=std::vector< double >(3, 0.0))
 
std::vector< double > GetCenter () const
 
std::vector< double > GetMatrix () const
 
std::string GetName () const
 
std::vector< double > GetTranslation () const
 
AffineTransformoperator= (const AffineTransform &)
 
SelfRotate (int axis1, int axis2, double angle, bool pre=false)
 
SelfScale (const std::vector< double > &factor, bool pre=false)
 
SelfScale (double factor, bool pre=false)
 
SelfSetCenter (const std::vector< double > &params)
 
SelfSetMatrix (const std::vector< double > &matrix)
 
SelfSetTranslation (const std::vector< double > &translation)
 
SelfShear (int axis1, int axis2, double coef, bool pre=false)
 
SelfTranslate (const std::vector< double > &offset, bool pre=false)
 
- Public Member Functions inherited from itk::simple::Transform
SelfAddTransform (Transform t)
 
unsigned int GetDimension (void) const
 
Transform GetInverse () const
 Return a new inverse transform of the same type as this. More...
 
virtual bool IsLinear () const
 
void MakeUnique (void)
 Performs actually coping if needed to make object unique. More...
 
virtual void SetIdentity ()
 
virtual bool SetInverse ()
 Try to change the current transform to it's inverse. More...
 
std::string ToString (void) const
 
 Transform (void)
 By default a 3-d identity transform is constructed. More...
 
template<unsigned int NDimension>
 Transform (itk::CompositeTransform< double, NDimension > *compositeTransform)
 Construct a SimpleITK Transform from a pointer to an ITK composite transform. More...
 
 Transform (itk::TransformBase *transform)
 
 Transform (unsigned int dimensions, TransformEnum type)
 Construct a specific transformation. More...
 
 Transform (Image &displacement, TransformEnum type=sitkDisplacementField)
 Use an image to construct a transform. More...
 
std::vector< double > TransformPoint (const std::vector< double > &point) const
 
void WriteTransform (const std::string &filename) const
 
virtual ~Transform (void)
 
Transformoperator= (const Transform &)
 Copy constructor and assignment operator. More...
 
 Transform (const Transform &)
 Copy constructor and assignment operator. More...
 
itk::TransformBaseGetITKBase (void)
 
const itk::TransformBaseGetITKBase (void) const
 
void SetParameters (const std::vector< double > &parameters)
 
std::vector< double > GetParameters (void) const
 
void SetFixedParameters (const std::vector< double > &parameters)
 
std::vector< double > GetFixedParameters (void) const
 

Protected Member Functions

virtual void SetPimpleTransform (PimpleTransformBase *pimpleTransform)
 
- Protected Member Functions inherited from itk::simple::Transform
 Transform (PimpleTransformBase *pimpleTransform)
 

Private Member Functions

void InternalInitialization (itk::TransformBase *transform)
 
template<typename TransformType >
void InternalInitialization (TransformType *transform)
 

Private Attributes

nsstd::function< std::vector< double >)> m_pfGetCenter
 
nsstd::function< std::vector< double >)> m_pfGetMatrix
 
nsstd::function< std::vector< double >)> m_pfGetTranslation
 
nsstd::function< void(int, int, double, bool)> m_pfRotate
 
nsstd::function< void(const std::vector< double > &, bool)> m_pfScale1
 
nsstd::function< void(double, bool)> m_pfScale2
 
nsstd::function< void(const std::vector< double > &)> m_pfSetCenter
 
nsstd::function< void(const std::vector< double > &)> m_pfSetMatrix
 
nsstd::function< void(const std::vector< double > &)> m_pfSetTranslation
 
nsstd::function< void(int, int, double, bool)> m_pfShear
 
nsstd::function< void(const std::vector< double > &, bool)> m_pfTranslate
 

Detailed Description

An affine transformation about a fixed center with translation for a 2D or 3D coordinate.

See also
itk::AffineTransform
Examples:
ImageRegistrationMethodDisplacement1/ImageRegistrationMethodDisplacement1.cxx.

Definition at line 34 of file sitkAffineTransform.h.

Member Typedef Documentation

Definition at line 38 of file sitkAffineTransform.h.

Definition at line 39 of file sitkAffineTransform.h.

Constructor & Destructor Documentation

itk::simple::AffineTransform::AffineTransform ( unsigned int  dimensions)
explicit
itk::simple::AffineTransform::AffineTransform ( const AffineTransform )
itk::simple::AffineTransform::AffineTransform ( const Transform )
explicit
itk::simple::AffineTransform::AffineTransform ( const std::vector< double > &  matrix,
const std::vector< double > &  translation,
const std::vector< double > &  fixedCenter = std::vector< double >(3, 0.0) 
)

Member Function Documentation

std::vector<double> itk::simple::AffineTransform::GetCenter ( ) const
std::vector<double> itk::simple::AffineTransform::GetMatrix ( ) const
std::string itk::simple::AffineTransform::GetName ( ) const
inlinevirtual

Name of this class

Reimplemented from itk::simple::Transform.

Definition at line 54 of file sitkAffineTransform.h.

std::vector<double> itk::simple::AffineTransform::GetTranslation ( ) const

parameters

void itk::simple::AffineTransform::InternalInitialization ( itk::TransformBase transform)
private
template<typename TransformType >
void itk::simple::AffineTransform::InternalInitialization ( TransformType *  transform)
private
AffineTransform& itk::simple::AffineTransform::operator= ( const AffineTransform )
Self& itk::simple::AffineTransform::Rotate ( int  axis1,
int  axis2,
double  angle,
bool  pre = false 
)
Self& itk::simple::AffineTransform::Scale ( const std::vector< double > &  factor,
bool  pre = false 
)

additional methods

Self& itk::simple::AffineTransform::Scale ( double  factor,
bool  pre = false 
)
Self& itk::simple::AffineTransform::SetCenter ( const std::vector< double > &  params)

fixed parameter

Self& itk::simple::AffineTransform::SetMatrix ( const std::vector< double > &  matrix)
virtual void itk::simple::AffineTransform::SetPimpleTransform ( PimpleTransformBase *  pimpleTransform)
protectedvirtual

Reimplemented from itk::simple::Transform.

Self& itk::simple::AffineTransform::SetTranslation ( const std::vector< double > &  translation)
Self& itk::simple::AffineTransform::Shear ( int  axis1,
int  axis2,
double  coef,
bool  pre = false 
)
Self& itk::simple::AffineTransform::Translate ( const std::vector< double > &  offset,
bool  pre = false 
)

Member Data Documentation

nsstd::function<std::vector<double>)> itk::simple::AffineTransform::m_pfGetCenter
private

Definition at line 107 of file sitkAffineTransform.h.

nsstd::function<std::vector<double>)> itk::simple::AffineTransform::m_pfGetMatrix
private

Definition at line 109 of file sitkAffineTransform.h.

nsstd::function<std::vector<double>)> itk::simple::AffineTransform::m_pfGetTranslation
private

Definition at line 111 of file sitkAffineTransform.h.

nsstd::function<void(int, int, double, bool)> itk::simple::AffineTransform::m_pfRotate
private

Definition at line 117 of file sitkAffineTransform.h.

nsstd::function<void(const std::vector<double> &, bool)> itk::simple::AffineTransform::m_pfScale1
private

Definition at line 113 of file sitkAffineTransform.h.

nsstd::function<void(double, bool)> itk::simple::AffineTransform::m_pfScale2
private

Definition at line 114 of file sitkAffineTransform.h.

nsstd::function<void(const std::vector<double>&)> itk::simple::AffineTransform::m_pfSetCenter
private

Definition at line 106 of file sitkAffineTransform.h.

nsstd::function<void(const std::vector<double>&)> itk::simple::AffineTransform::m_pfSetMatrix
private

Definition at line 108 of file sitkAffineTransform.h.

nsstd::function<void(const std::vector<double>&)> itk::simple::AffineTransform::m_pfSetTranslation
private

Definition at line 110 of file sitkAffineTransform.h.

nsstd::function<void(int, int, double, bool)> itk::simple::AffineTransform::m_pfShear
private

Definition at line 115 of file sitkAffineTransform.h.

nsstd::function<void(const std::vector<double> &, bool)> itk::simple::AffineTransform::m_pfTranslate
private

Definition at line 116 of file sitkAffineTransform.h.


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