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

mitkScaleTransform Class Reference

mitkScaleTransform - a concrete transform to perform anisotropic scaling transform More...

#include <mitkScaleTransform.h>

Inherits mitkTransform.

Inheritance diagram for mitkScaleTransform:

Inheritance graph
[legend]
Collaboration diagram for mitkScaleTransform:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
 mitkScaleTransform ()
 mitkScaleTransform (unsigned int dim)
virtual void SetTransformMode (int transformMode, unsigned int dim)
const MatrixType & GetJacobian (const VectorParameterType &inPoint)
virtual void ConvertTransformMaxtrixToVector ()
void GetScales (ScalarParameterType &sx, ScalarParameterType &sy)
void GetScales (ScalarParameterType &sx, ScalarParameterType &sy, ScalarParameterType &sz)

Protected Member Functions

virtual void ComputeTransformMatrix ()

Detailed Description

mitkScaleTransform - a concrete transform to perform anisotropic scaling transform

mitkScaleTransform is a concrete transform to perform anisotropic scaling transform to 2D and 3D image space. User should use the constructor to specify the image dimensions, e.g. mitkScaleTransform(2) (default) for 2d image, mitkScaleTransform(3) for 3d image. To improve the behavior of the scaling parameters when they are modified by optimizers, a logarithm based scaling transform was implemented.

Transform Mode Number of parameters p[0] p[1] p[2]

MITK_TRANSFORM_SCALE (2D) 2 sx sy -

MITK_TRANSFORM_SCALE (3D) 3 sx sy sz

MITK_TRANSFORM_SCALE_LOGARITHMIC (2D) 2 sx sy -

MITK_TRANSFORM_SCALE_LOGARITHMIC (3D) 3 sx sy sz


Constructor & Destructor Documentation

mitkScaleTransform::mitkScaleTransform  ) 
 

Constructor.

mitkScaleTransform::mitkScaleTransform unsigned int  dim  ) 
 

Constructor with specific transform mode setting.


Member Function Documentation

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

Calculate the transform matrix.

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

Reimplemented from mitkTransform.

virtual void mitkScaleTransform::ConvertTransformMaxtrixToVector  )  [virtual]
 

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

Reimplemented from mitkTransform.

const MatrixType& mitkScaleTransform::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 mitkScaleTransform::GetScales ScalarParameterType &  sx,
ScalarParameterType &  sy,
ScalarParameterType &  sz
 

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

Parameters:
sx The returned scale value along x-axis.
sy The returned scale value along y-axis.
sz The returned scale value along z-axis.

void mitkScaleTransform::GetScales ScalarParameterType &  sx,
ScalarParameterType &  sy
 

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

Parameters:
sx The returned scale value along x-axis.
sy The returned scale value along y-axis.

virtual void mitkScaleTransform::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.

virtual void mitkScaleTransform::SetTransformMode int  transformMode,
unsigned int  dim
[virtual]
 

Set the transform mode.Default is MITK_TRANSFORM_SCALE_LOGARITHMIC. param mode Specify the transform mode.

Reimplemented from mitkTransform.


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