SimpleITK
2.0.0
|
An affine transformation about a fixed center with translation for a 2D or 3D coordinate. More...
#include <sitkAffineTransform.h>
Classes | |
struct | MyVisitor |
Public Types | |
using | Self = AffineTransform |
using | Superclass = Transform |
Public Types inherited from itk::simple::Transform | |
using | Self = Transform |
Public Member Functions | |
AffineTransform (const AffineTransform &) | |
AffineTransform (const std::vector< double > &matrix, const std::vector< double > &translation, const std::vector< double > &fixedCenter=std::vector< double >(3, 0.0)) | |
AffineTransform (const Transform &) | |
AffineTransform (unsigned int dimensions) | |
std::vector< double > | GetCenter () const |
std::vector< double > | GetMatrix () const |
std::string | GetName () const override |
std::vector< double > | GetTranslation () const |
AffineTransform & | operator= (const AffineTransform &) |
Self & | Rotate (int axis1, int axis2, double angle, bool pre=false) |
Self & | Scale (const std::vector< double > &factor, bool pre=false) |
Self & | Scale (double factor, bool pre=false) |
Self & | SetCenter (const std::vector< double > ¶ms) |
Self & | SetMatrix (const std::vector< double > &matrix) |
Self & | SetTranslation (const std::vector< double > &translation) |
Self & | Shear (int axis1, int axis2, double coef, bool pre=false) |
Self & | Translate (const std::vector< double > &offset, bool pre=false) |
~AffineTransform () override | |
Public Member Functions inherited from itk::simple::Transform | |
unsigned int | GetDimension () const |
Transform | GetInverse () const |
Return a new inverse transform of the same type as this. More... | |
unsigned int | GetNumberOfFixedParameters () const |
unsigned int | GetNumberOfParameters () const |
TransformEnum | GetTransformEnum () const |
Get the TransformEnum of the underlying Transform. More... | |
virtual bool | IsLinear () const |
void | MakeUnique () |
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 () const |
Transform () | |
By default a 3-d identity transform is constructed. More... | |
Transform (Image &displacement, TransformEnum type=sitkDisplacementField) | |
Use an image to construct a transform. 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... | |
std::vector< double > | TransformPoint (const std::vector< double > &point) const |
std::vector< double > | TransformVector (const std::vector< double > &vector, const std::vector< double > &point) const |
void | WriteTransform (const std::string &filename) const |
virtual | ~Transform () |
Transform & | operator= (const Transform &) |
Copy constructor and assignment operator. More... | |
Transform (const Transform &) | |
Copy constructor and assignment operator. More... | |
itk::TransformBase * | GetITKBase () |
const itk::TransformBase * | GetITKBase () const |
void | SetParameters (const std::vector< double > ¶meters) |
std::vector< double > | GetParameters () const |
void | SetFixedParameters (const std::vector< double > ¶meters) |
std::vector< double > | GetFixedParameters () const |
Protected Member Functions | |
void | SetPimpleTransform (PimpleTransformBase *pimpleTransform) override |
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 | |
std::function< std::vector< double >)> | m_pfGetCenter |
std::function< std::vector< double >)> | m_pfGetMatrix |
std::function< std::vector< double >)> | m_pfGetTranslation |
std::function< void(int, int, double, bool)> | m_pfRotate |
std::function< void(const std::vector< double > &, bool)> | m_pfScale1 |
std::function< void(double, bool)> | m_pfScale2 |
std::function< void(const std::vector< double > &)> | m_pfSetCenter |
std::function< void(const std::vector< double > &)> | m_pfSetMatrix |
std::function< void(const std::vector< double > &)> | m_pfSetTranslation |
std::function< void(int, int, double, bool)> | m_pfShear |
std::function< void(const std::vector< double > &, bool)> | m_pfTranslate |
An affine transformation about a fixed center with translation for a 2D or 3D coordinate.
Definition at line 35 of file sitkAffineTransform.h.
Definition at line 39 of file sitkAffineTransform.h.
Definition at line 40 of file sitkAffineTransform.h.
|
override |
|
explicit |
itk::simple::AffineTransform::AffineTransform | ( | const AffineTransform & | ) |
|
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) |
||
) |
std::vector<double> itk::simple::AffineTransform::GetCenter | ( | ) | const |
std::vector<double> itk::simple::AffineTransform::GetMatrix | ( | ) | const |
|
inlineoverridevirtual |
Name of this class
Reimplemented from itk::simple::Transform.
Definition at line 58 of file sitkAffineTransform.h.
std::vector<double> itk::simple::AffineTransform::GetTranslation | ( | ) | const |
parameters
|
private |
Referenced by itk::simple::AffineTransform::MyVisitor::operator()().
|
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 | ) |
|
overrideprotectedvirtual |
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 |
||
) |
|
private |
Definition at line 109 of file sitkAffineTransform.h.
|
private |
Definition at line 111 of file sitkAffineTransform.h.
|
private |
Definition at line 113 of file sitkAffineTransform.h.
|
private |
Definition at line 119 of file sitkAffineTransform.h.
|
private |
Definition at line 115 of file sitkAffineTransform.h.
|
private |
Definition at line 116 of file sitkAffineTransform.h.
|
private |
Definition at line 108 of file sitkAffineTransform.h.
|
private |
Definition at line 110 of file sitkAffineTransform.h.
|
private |
Definition at line 112 of file sitkAffineTransform.h.
|
private |
Definition at line 117 of file sitkAffineTransform.h.
|
private |
Definition at line 118 of file sitkAffineTransform.h.