| genre | Scale |
| status | stable |
| author | Tobias Boskamp |
| package | MeVisLab/Standard |
| dll | MLMiscModules |
| definition | MLMiscModules.def |
| see also | DicomTagViewer, DicomTagModify, Scale, DicomLUT |
| keywords | Voxel, Value, LUT, Lookup, table, Rescale, Intercept, Slope, Center, Width, Hounsfield, Unit, Gray, CT, Dicom |
The module VoxelValueRescale converts image voxel values, image range or LUT window center and width values between their stored representation (as found in the DICOM file) and their output representation (machine independent, e.g. Hounsfield units).
If an image is connected to the image input field, the transformation parameters Intercept and Slope are read from the image's DICOM tags Rescale Intercept and Rescale Slope, and the image value range is taken from the image properties.
If no image is connected, the transformation parameters and image range values can be set manually.
Conversion takes place between the stored and the output voxel, LUT center and LUT width values in both directions. The image range values are only converted from stored to output representation.
The transformation between stored and output values is based on the linear mapping
output = stored * slope + intercept
This transformation is often used for CT images, where pixel values typically are stored with an offset of 1024 in order to obtain non-negative image data values.
The above transformation (with slope = 1 and intercept = -1024 for typical CT images) converts the stored pixel values to Hounsfield units, which start from -1024.
| Image Max (storedMax): Double | LUT Center (outputCenter): Double |
| Image Max (outputMax): Double | LUT Width (storedWidth): Double |
| Image Min (storedMin): Double | LUT Width (outputWidth): Double |
| Image Min (outputMin): Double | outputRangeNeg: Double |
| Image Range (storedRange): Double | Slope: Double |
| Image Range (outputRange): Double | storedRangeNeg: Double |
| Intercept: Double | Voxel Value (storedValue): Double |
| LUT Center (storedCenter): Double | Voxel Value (outputValue): Double |
Shows and set the stored minimum value.
Shows and set the stored maximum value.
Shows the stored image value range.
Shows and sets one voxel value.
This voxel value is converted.
Shows and sets the LUT center for the stored values.
Shows and sets the LUT width for the stored values.
Shows the minimum image value after conversion.
Shows the maximum image value after conversion.
Shows the image value range in the converted image.
Shows and sets a voxel value after the conversion.