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 data types of < uint16.

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

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

Sets optionally all values in a single 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 the x-direction.

Translation Y

name: translationY, type: Double, default: 0

Sets the relative translation in the 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 reciprocal value for scaling in the x-direction.

E.g., 0.5 zooms in the image by 2.

Scaling Y

name: scalingY, type: Double, default: 1

Sets a reciprocal value for scaling in the y-direction.

E.g., 0.5 zooms in the image by 2.

Hidden Fields

reset

name: reset, type: Trigger