Purpose

The module TypeToScalars unpacks an input voxel (of any scalar or non scalar data type) to a scalar image.

This is done component-wise into a given output dimension, that means each component of each voxel of the input image becomes a voxel of the output image. Hence the extent of the output dimension of the output image is n-times larger than the corresponding input dimension whereby n is the number of components of the input voxel.

All components of input voxels are cast to the type given by Output Type, default is Automatic.

Tips

Decomposing a three component vector voxel to the C-dimension directly converts a vector image to a color image.

Note:

While decomposing the input image voxels the components are implicitly cast to double; this might lead to a precision loss on long double values on some platforms or to rounding problems on integer typed values.

Windows

Default Panel

../../../Modules/ML/MLTypeSupport/mhelp/Images/Screenshots/TypeToScalars._default.png

Input Fields

input0

name: input0, type: Image

The input image of scalar or non scalar voxels.

Output Fields

output0

name: output0, type: Image

The output image has the extent of the input image except of the dimension given by Output Dimension which is n-times larger than the corresponding input dimension. n is the number of components of the input voxel.

Parameter Fields

Visible Fields

Output Type

name: outputType, type: Enum, default: Automatic

Defines the output data type.

Values:

Title Name
Automatic Automatic
int8 int8
unsigned int8 unsigned int8
int16 int16
unsigned int16 unsigned int16
int32 int32
unsigned int32 unsigned int32
float float
double double
int64 int64
unsigned int64 unsigned int64

Output Dimension

name: outputDimension, type: Enum, default: X

Defines the Dimension in which the input voxel components shall be unpacked.

Values:

Title Name
X X
Y Y
Z Z
C C
T T
U U