Module: CastLattice ()

Description:

This module is now deprecated.

This is a computational module that allows you to change the primitive data type of a LDA data object. A new scalar field will be created having the same dimensions and the same coordinates as the incoming one, but the data values will be shifted, scaled, and cast to a new data type. As an additional feature, CastLattice is also able to convert a LDA data object into a Label Field, which is commonly used to store segmentation results in . For each value or label occurring in the incoming field a corresponding material will be created. Material colors may be defined via an optional colormap. Press the Apply button to start the computation.

Important note: You should be aware of the size of the LDA data object you wish to convert; the LDA data objects may exceed the size of available RAM memory, in those cases it will not be possible to perform the conversion because there will not be enough RAM memory available to store the result of the conversion.

Connections:

Data [required]
The LDA field to be converted.

Ports:

Info

Shows how the input data will be mapped during conversion. If no clipping occurs the input range covers all values between the minimum and maximum data value of the incoming scalar field. This range will be mapped as indicated. If clipping occurs, the minimum or maximum value of the output range or both will be equal to the smallest respectively biggest value which can be represented by the selected output data type. In this case, the input range shows which values correspond to these limits. Data values below the lower limit or above the upper limit will be clamped.

Output Datatype

Lets you select the primitive data type of the output field. The item Label Field is special. If this is selected the incoming scalar field is converted into a Label Field.

Scaling

Defines a linear transformation which is applied before the data values are clamped and cast to the output datatype. The transformation is performed as follows:
output = SCALE*(input+OFFSET)
If you want to convert data with a range inmin ... inmax into a range outmin ... outmax, SCALE and OFFSET are determined like this: SCALE = (outmax - outmin) / (inmax - inmin) and OFFSET = outmin / SCALE - inmin