TypeToScalars¶
-
MLModule
¶ genre NonScalar
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLTypeSupport
definition MLTypeSupport.def see also TypeFromScalars
,TypeFromDimension
,InterleaveDimension
,Info
,TypeComposer
,TypeDecomposer
,TypeDecomposerN
,TypeComposerN
keywords decompose
,separate
,dissect
,disjoint
,unpack
,extended
,carrier
,datatype
,voxel
,complex
,vector
,matrix
,components
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; this means that 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; the 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, the voxel components are implicitly cast to double; this might lead to a precision loss on long double values on some platforms or to rounding problems with integer-typed values.
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 |