Purpose

The module SwapFlipDimensions swaps two user defined dimensions of an input image and optionally flips the new dimension 1.

In contrast to the module Reshape, it will not only read the data in another shape, but really swap the contents of the dimensions.

Details

If the image should only flipped, set Axis 1 = Axis 2 and check the option Flip new axis 1.

Windows

Main

../../../Modules/ML/MLGeometry1/mhelp/Images/Screenshots/SwapFlipDimensions.Main.png

Input Fields

input0

name: input0, type: Image

Input image.

Output Fields

output0

name: output0, type: Image

Output image with swapped and optionally flipped dimensions.

Parameter Fields

Visible Fields

Axis 1

name: firstAxis, type: Enum, default: x

Defines the origin dimension to swap from.

Values:

Title Name
x x
y y
z z
c c
t t
u u

Axis 2

name: secondAxis, type: Enum, default: t

Defines the destination dimension to swap to.

Values:

Title Name
x x
y y
z z
c c
t t
u u

Flip new axis 1

name: flipNewDim1On, type: Bool, default: FALSE

If checked, flipping is performed after swapping.

If the image should be flipped only, set Axis 1 = Axis 2.