| genre | Resample |
| status | stable |
| author | Tobias Boskamp |
| package | MeVisLab/Standard |
| dll | MLCoordUtils1 |
| definition | MLCoordUtils1.def |
| see also | OrthoReformat3, SwapDimensions, InterleaveDimension, Reshape |
| keywords | Coordinate, transform, swap, flip, transversal, sagittal, coronal |
The module OrthoSwapFlip performs an arbitrary coordinate permutation between the three spatial coordinates X, Y and Z, together with possible flips along any of these axes.
The transformation is selected in the Main tab view either by specifying a viewing direction or by selecting the coordinate permuation and the flips explicitly.
In the View menu, the viewing direction can be set to either Transversal, Coronal or Sagittal. The coordinate permutation and flips necessary to obtain this view are displayed in the lower part of the panel accordingly.
The Orientation menu selects the coordinate permutation performed by the module (in terms of the voxel coordinate system, i.e. X from left to right, Y from top to bottom, Z into the screen plane). Each selection specifies the input coordinate axes corresponding to the three output coordinate axes.
For example, the selection YZX specifies the following mapping:
| Output | Input |
|---|---|
| X | Y |
| Y | Z |
| Z | X |
The options Flip Horizontal, Flip Vertical and Flip Depth flip the output image along the corresponding axis. The flipping is performed after the coordinate permutation.
Important: In order to activate the settings in the Swap and flip group, it is necessary to click the Apply button. Before this is done, the selected transformation is not performed on the image.
The checkboxes in the View Direction and the Swap And Flip group indicate which setting is kept when the input image changes.
| Apply: Trigger | Orientation: Enum |
| Auto (autoPageSizeX): Bool | Use Global Input Image: Bool |
| Auto (autoPageSizeY): Bool | useOrientation: Bool |
| Auto (autoPageSizeZ): Bool | useViewDir: Bool |
| Flip Depth: Bool | View: Enum |
| Flip Horizontal: Bool | X: Integer |
| Flip Vertical: Bool | Y: Integer |
| Mode: Enum | Z: Integer |
If checked, the module works internally on a global image (Global Image Processing Concept).
Otherwise, it works on a Virtual Volume (VirtualVolume Concept).
Defines the module's mode, see options.
Values:
| Title | Name | Description |
|---|---|---|
| Swap Flip | UseSwapFlip | The transformation is specified using the explicit permutation and flip settings. |
| View Dir | UseViewDir | The transformation is specified using the view direction setting. |
Defines the view direction of the transformed image
Values:
| Title | Name |
|---|---|
| Other | Other |
| Transversal | Transversal |
| Coronal | Coronal |
| Sagittal | Sagittal |
Defines the coordinate permutation applied to the image
Values:
| Title | Name |
|---|---|
| XYZ | XYZ |
| YZX | YZX |
| ZXY | ZXY |
| XZY | XZY |
| ZYX | ZYX |
| YXZ | YXZ |
If pressed, changes are applied of the Swap And Flip group.
If checked, the image is flipped horizontally.
If checked, the image is flipped vertically.
If checked, the image if flipped in the depth dimension.
If checked, the output page x-extent is set automatically.
Sets the x-extent of the output page manually.
If checked, the output page y-extent is set automatically.
Sets the y-extent of the output page manually.