public class RealWorldValueTransform
extends java.lang.Object
A transformation constructed from a DICOM attribute list that extracts those attributes which describe how stored pixel values are translated into real world values (e.g., Hounsfield Units, cm/s).
Looks first for a per-frame functional group RealWorldValueMappingSequence then looks in the shared functional groups, then the top level of the dataset, as well as trying to find the Rescale Slope and Intercept values in the top level of the dataset.
Note that multiple transformations (for each frame) may be present and are supported.
Does not currently support a LUT in the Modality LUT Sequence, only linear rescale values.
Constructor and Description |
---|
RealWorldValueTransform(AttributeList list) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
java.lang.String |
toString(int frame,
double storedValue)
Given a stored pixel value, return a string containing a description of all
known real world values that can be derived from it.
|
java.lang.String |
toString(int frame,
int storedValue)
Given a stored pixel value, return a string containing a description of all
known real world values that can be derived from it.
|
public RealWorldValueTransform(AttributeList list)
list
- the dataset of an image object to be searched for transformationspublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int frame, double storedValue)
frame
- numbered from zero; needed to select which transform if frame-specificstoredValue
- the actual stored pixel value to look uppublic java.lang.String toString(int frame, int storedValue)
frame
- numbered from zero; needed to select which transform if frame-specificstoredValue
- the actual stored pixel value to look up