Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkSimilarityTransform Class Reference

mitkSimilarityTransform - a concrete transform to perform Similarity transformation. More...

#include <mitkSimilarityTransform.h>

Inherits mitkTransform.

Inheritance diagram for mitkSimilarityTransform:

Inheritance graph
[legend]
Collaboration diagram for mitkSimilarityTransform:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
 mitkSimilarityTransform ()
 mitkSimilarityTransform (unsigned int dim)
const MatrixType & GetJacobian (const VectorParameterType &inPoint)
virtual void ConvertTransformMaxtrixToVector ()
void GetAngles (ScalarParameterType &angle)
void GetAngles (ScalarParameterType &alpha, ScalarParameterType &beta, ScalarParameterType &gamma)
void GetTranslations (ScalarParameterType &tx, ScalarParameterType &ty)
void GetTranslations (ScalarParameterType &tx, ScalarParameterType &ty, ScalarParameterType &tz)
void GetScales (ScalarParameterType &scale)

Protected Member Functions

virtual void ComputeTransformMatrix ()

Detailed Description

mitkSimilarityTransform - a concrete transform to perform Similarity transformation.

This transform applies a rotation, translation and scaling to the 2D and 3D image space. User should use the constructor to specify the image dimensions, e.g. mitkSimilarityTransform(2) (default) for 2d image, mitkSimilarityTransform(3) for 3d image.

Transform Mode Number of parameters p[0] p[1] p[2] p[3] p[4] p[5] p[6]

MITK_TRANSFORM_SIMILARITY (2D) 4 angle tx ty scale - - -

MITK_TRANSFORM_SIMILARITY (3D) 7 angle_x angle_y angle_z tx ty tz scale


Constructor & Destructor Documentation

mitkSimilarityTransform::mitkSimilarityTransform  ) 
 

Constructor.

mitkSimilarityTransform::mitkSimilarityTransform unsigned int  dim  ) 
 

Constructor with specific transform mode setting.


Member Function Documentation

virtual void mitkSimilarityTransform::ComputeTransformMatrix  )  [protected, virtual]
 

Calculate the transform matrix.

Returns:
Return true if the computation is performed without error.

Reimplemented from mitkTransform.

virtual void mitkSimilarityTransform::ConvertTransformMaxtrixToVector  )  [virtual]
 

Convert transform matrix to transform parameter vector. This function operates on build-in data.

Reimplemented from mitkTransform.

void mitkSimilarityTransform::GetAngles ScalarParameterType &  alpha,
ScalarParameterType &  beta,
ScalarParameterType &  gamma
 

Get the rotation parameters from the transform parameter vector. (for 3d rotation)

Parameters:
alpha The returned angle value. (rotate around x-axis)
beta The returned angle value. (rotate around y-axis)
gamma The returned angle value. (rotate around z-axis)

void mitkSimilarityTransform::GetAngles ScalarParameterType &  angle  ) 
 

Get the rotation parameters from the transform parameter vector. (for 2d rotation)

Parameters:
angle The returned angle value.

const MatrixType& mitkSimilarityTransform::GetJacobian const VectorParameterType &  inPoint  )  [virtual]
 

Get the Jacobian matrix.

Parameters:
inPoint The index of the point in image.
Returns:
Return the pointer to the Jacobian matrix.

Reimplemented from mitkTransform.

void mitkSimilarityTransform::GetScales ScalarParameterType &  scale  ) 
 

Get the scaling parameters from the transform parameter vector.

Parameters:
scale The returned isotropic scale value.

void mitkSimilarityTransform::GetTranslations ScalarParameterType &  tx,
ScalarParameterType &  ty,
ScalarParameterType &  tz
 

Get the translation parameters from the transform parameter vector. (for 3d translation)

Parameters:
tx The returned x-translation value.
ty The returned y-translation value.
tz The returned z-translation value.

void mitkSimilarityTransform::GetTranslations ScalarParameterType &  tx,
ScalarParameterType &  ty
 

Get the translation parameters from the transform parameter vector. (for 2d translation)

Parameters:
tx The returned x-translation value.
ty The returned y-translation value.

virtual void mitkSimilarityTransform::PrintSelf ostream &  os  )  [virtual]
 

Print the necessary information about this object for the debugging purpose.

Parameters:
os The specified ostream to output information.

Reimplemented from mitkTransform.


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:05:56 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3