Reshape

MLModule
genre Resample
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLGeometry1
definition MLGeometry1.def
keywords convert, change, image, size, extend, reorder

Purpose

The module Reshape changes the format of the input image (x, y, z, c, t, u) to the parameters (X, Y, Z, C, T, U) specified by the GUI.

For this, the complete size of the input image and the specified new image size must be the same: x * y * z * c * t * u = X * Y * Z * C * T * U.

Usage

Note that the product of the input image’s extents must be the same as the product of the target image’s extents.

Windows

Default Panel

../../../Modules/ML/MLGeometry1/mhelp/Images/Screenshots/Reshape._default.png

Input Fields

input0

name: input0, type: Image

Input image.

Output Fields

output0

name: output0, type: Image

Output image with the specified size.

Parameter Fields

Field Index

Apply: Trigger X: Integer
Auto Update: Bool Y: Integer
C: Integer Z: Integer
Clear: Trigger  
Get current input size: Trigger  
T: Integer  
U: Integer  
Used size: String  

Visible Fields

X

name: x, type: Integer, default: 1, minimum: 1

Sets the target extent in x-dimension.

Y

name: y, type: Integer, default: 1, minimum: 1

Sets the target extent in y-dimension.

Z

name: z, type: Integer, default: 1, minimum: 1

Sets the target extent in z-dimension.

C

name: c, type: Integer, default: 1, minimum: 1

Sets the target extent in c-dimension.

T

name: t, type: Integer, default: 1, minimum: 1

Sets the target extent in t-dimension.

U

name: u, type: Integer, default: 1, minimum: 1

Sets the target extent in u-dimension.

Used size

name: currentSize, type: String, persistent: no

Shows information about the used size for the target image.

Auto Update

name: autoUpdate, type: Bool, default: TRUE

If this flag is set, changes to the input image will automatically update the output image. In case of a size mismatch the output size will automatically be reset to the input size.

If this flag is off, the output image will simply be set to invalid when the input image changes, and the user must press Apply to update the output image. The output image size will never be modified in this mode: If the sizes don’t match, the output image is set to invalid and an error message is printed.

Apply

name: apply, type: Trigger

If pressed, the current size settings are applied to the output image.

If Auto Update is set and the product of the input image’s extents differ from the product of the output image’s extent, the input image extent is used for the output image.

Clear

name: clear, type: Trigger

Sets the output image to invalid.

Get current input size

name: getCurrentProps, type: Trigger

If pressed, all extent fields are filled with the input image’s values.