Class ModelLUTHelper
java.lang.Object
gov.nih.mipav.view.renderer.flythroughview.ModelLUTHelper
A helper class to map image values to RGB colors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float[]DOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private int[]DOCUMENT ME!private ModelLUTDOCUMENT ME! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of image memory and associated objects.protected voidfinalize()Calls dispose.Get access to the associated ModelLUT instance.final intmapValue(float fInput) Return an ARGB value stored as an integer which represents the color corresponding to the input value.
-
Field Details
-
m_afLutIn
private float[] m_afLutInDOCUMENT ME! -
m_afLutOut
private float[] m_afLutOutDOCUMENT ME! -
m_afLutSlope
private float[] m_afLutSlopeDOCUMENT ME! -
m_aiColorMap
private int[] m_aiColorMapDOCUMENT ME! -
m_kModelLUT
DOCUMENT ME!
-
-
Constructor Details
-
ModelLUTHelper
Constructor.- Parameters:
kLUT- ModelLUT Contains the color map and transfer function.
-
-
Method Details
-
dispose
public void dispose()Disposes of image memory and associated objects. -
getModelLUT
Get access to the associated ModelLUT instance.- Returns:
- ModelLUT Reference to ModelLUT passed in the constructor.
-
mapValue
public final int mapValue(float fInput) Return an ARGB value stored as an integer which represents the color corresponding to the input value.- Parameters:
fInput- float Input value to map.- Returns:
- int ARGB color value where bits 24-31 store the alpha, bits 16-23 store the red, bits 8-15 store the green, and bits 0-7 store the blue.
-
finalize
Calls dispose.
-