SimpleITK
|
A similarity 2D transform with rotation in radians and isotropic scaling around a fixed center with translation. More...
#include <sitkSimilarity2DTransform.h>
A similarity 2D transform with rotation in radians and isotropic scaling around a fixed center with translation.
Definition at line 33 of file sitkSimilarity2DTransform.h.
Public Types | |
using | Self = Similarity2DTransform |
using | Superclass = Transform |
Public Types inherited from itk::simple::Transform | |
using | Self = Transform |
Public Member Functions | |
double | GetAngle () const |
std::vector< double > | GetCenter () const |
std::vector< double > | GetMatrix () const |
std::string | GetName () const override |
double | GetScale () const |
std::vector< double > | GetTranslation () const |
Similarity2DTransform & | operator= (const Similarity2DTransform &) |
Self & | SetAngle (double angle) |
Self & | SetCenter (const std::vector< double > ¶ms) |
Self & | SetMatrix (const std::vector< double > &matrix, double tolerance=1e-10) |
Self & | SetScale (double scale) |
Self & | SetTranslation (const std::vector< double > &translation) |
Similarity2DTransform () | |
Similarity2DTransform (const Similarity2DTransform &) | |
Similarity2DTransform (const Transform &) | |
Similarity2DTransform (double scaleFactor, double angle=0.0, const std::vector< double > &translation=std::vector< double >(2, 0.0), const std::vector< double > &fixedCenter=std::vector< double >(2, 0.0)) | |
~Similarity2DTransform () 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 (std::unique_ptr< 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< double()> | m_pfGetAngle |
std::function< std::vector< double >)> | m_pfGetCenter |
std::function< std::vector< double >)> | m_pfGetMatrix |
std::function< double()> | m_pfGetScale |
std::function< std::vector< double >)> | m_pfGetTranslation |
std::function< void(double)> | m_pfSetAngle |
std::function< void(const std::vector< double > &)> | m_pfSetCenter |
std::function< void(const std::vector< double > &, double)> | m_pfSetMatrix |
std::function< void(double)> | m_pfSetScale |
std::function< void(const std::vector< double > &)> | m_pfSetTranslation |
Definition at line 36 of file sitkSimilarity2DTransform.h.
Definition at line 37 of file sitkSimilarity2DTransform.h.
|
override |
itk::simple::Similarity2DTransform::Similarity2DTransform | ( | ) |
|
explicit |
itk::simple::Similarity2DTransform::Similarity2DTransform | ( | const Similarity2DTransform & | ) |
|
explicit |
double itk::simple::Similarity2DTransform::GetAngle | ( | ) | const |
std::vector<double> itk::simple::Similarity2DTransform::GetCenter | ( | ) | const |
std::vector<double> itk::simple::Similarity2DTransform::GetMatrix | ( | ) | const |
additional methods
|
inlineoverridevirtual |
Name of this class
Reimplemented from itk::simple::Transform.
Definition at line 58 of file sitkSimilarity2DTransform.h.
double itk::simple::Similarity2DTransform::GetScale | ( | ) | const |
std::vector<double> itk::simple::Similarity2DTransform::GetTranslation | ( | ) | const |
|
private |
|
private |
Similarity2DTransform& itk::simple::Similarity2DTransform::operator= | ( | const Similarity2DTransform & | ) |
Self& itk::simple::Similarity2DTransform::SetAngle | ( | double | angle | ) |
parameter
Self& itk::simple::Similarity2DTransform::SetCenter | ( | const std::vector< double > & | params | ) |
fixed parameter
Self& itk::simple::Similarity2DTransform::SetMatrix | ( | const std::vector< double > & | matrix, |
double | tolerance = 1e-10 |
||
) |
|
overrideprotectedvirtual |
Reimplemented from itk::simple::Transform.
Self& itk::simple::Similarity2DTransform::SetScale | ( | double | scale | ) |
Self& itk::simple::Similarity2DTransform::SetTranslation | ( | const std::vector< double > & | translation | ) |
|
private |
Definition at line 106 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 104 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 111 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 110 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 108 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 105 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 103 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 112 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 109 of file sitkSimilarity2DTransform.h.
|
private |
Definition at line 107 of file sitkSimilarity2DTransform.h.