AffineTransformation2D

MLModule
genre SpatialTransformation
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLTransformation
definition MLTransformation.def
keywords rotate, translate, shear, scale, image

Purpose

The module AffineTransformation2d performs a 2D affine transformation.

The transformation is applied on each image slice.

Usage

Translation, rotation, shearing and scaling can be entered and reset.

Limitations: works efficiently only with datatypes of < MLuint16.

Details

All parameters are relative in [-1, 1].

The translation is applied after the other transformations.

Tips

For more detailed information see the documentation of AffineTransformation3d.

Windows

Default Panel

../../../Modules/ML/MLTransformation/mhelp/Images/Screenshots/AffineTransformation2D._default.png

Input Fields

input0

name: input0, type: Image

Output Fields

output0

name: output0, type: Image

The transformed input image.

Parameter Fields

Field Index

Opt Parameters: String
reset: Trigger
Rotation: Double
Scaling X: Double
Scaling Y: Double
Shearing: Double
Translation X: Double
Translation Y: Double

Visible Fields

Opt Parameters

name: optParameters, type: String, default: 0 0 0 0 1 1

Optionally sets all values in one string. The order is translation x, translation y, rotation, shearing, scaling x and scaling y.

The order is just the order of the parameters on the GUI.

Translation X

name: translationX, type: Double, default: 0

Sets the relative translation in X-direction.

Translation Y

name: translationY, type: Double, default: 0

Sets the relative translation in Y-direction.

Rotation

name: rotation, type: Double, default: 0

Sets a rotation value in radians.

Shearing

name: shearing, type: Double, default: 0

Sets the X/Y ratio.

Scaling X

name: scalingX, type: Double, default: 1

Sets a reciproce value for scaling in X-direction.

E.g. 0.5 zoomes in the image by 2.

Scaling Y

name: scalingY, type: Double, default: 1

Sets a reciproce value for scaling in Y-direction.

E.g. 0.5 zoomes in the image by 2.

Hidden Fields

reset

name: reset, type: Trigger