| genre | NonScalar |
| status | stable |
| author | Wolf Spindler |
| package | MeVisLab/Standard |
| dll | MLTypeSupport |
| definition | MLTypeSupport.def |
| see also | TypeComposer, TypeDecomposer, TypeFromScalars, TypeFromDimension, InterleaveDimension, Info, TypeDecomposer8, TypeDecomposer16, TypeDecomposer32, TypeDecomposer64, TypeComposer8, TypeComposer16, TypeComposer32, TypeComposer64 |
| keywords | decompose, separate, dissect, disjoint, unpack, extended, carrier, datatype, voxel, complex, vector, matrix, components |
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.
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.
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.
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 |
| long double | long double |
| int64 | int64 |
| unsigned int64 | unsigned int64 |