AffineTransformation2D¶
- MLModule¶
genre
author
package
dll
definition
keywords
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¶
Input Fields¶
input0¶
- name: input0, type: Image¶
Output Fields¶
output0¶
- name: output0, type: Image¶
The transformed input image.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
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.