org.jplot2d.element
Interface ImageMapping
-
- All Superinterfaces:
- Element
- All Known Subinterfaces:
- ImageMappingEx
- All Known Implementing Classes:
- ImageMappingImpl
public interface ImageMapping extends Element
This class defines how to transform a number array to a pseudo-color or grayscale image. The transformation take these steps:- Apply limit algorithm
- Apply intensity transform
- Apply bias/gain. method of Schlick(C. Schlick, Fast Alternatives to Perlin's Bias and Gain Functions)
- zoom to correct size for display
- Apply color map to produce a pseudo-color image
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doublegetBias()Returns the bias value.ColorMapgetColorMap()Returns the lookup table for displaying the intensity raster.doublegetGain()Returns the gain value.ImageGraph[]getGraphs()Returns all ImageGraph whose mapping are controlled by this ImageMapping.IntensityTransformgetIntensityTransform()Returns the IntensityTransform used to enhance images before applying bias/gain.LimitsAlgorithmgetLimitsAlgorithm()Returns the LimitsAlgorithmvoidsetBias(double bias)Sets the bias value.voidsetColorMap(ColorMap colorMap)Sets a ColorMap to lookup the intensity raster for display.voidsetGain(double gain)Sets the gain value.voidsetIntensityTransform(IntensityTransform it)Apply the given IntensityTransform to enhance images before applying bias/gain.voidsetLimitsAlgorithm(LimitsAlgorithm algo)Sets the LimitsAlgorithm-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment, getId, getParent
-
-
-
-
Method Detail
-
getGraphs
ImageGraph[] getGraphs()
Returns all ImageGraph whose mapping are controlled by this ImageMapping.- Returns:
- all ImageGraph whose mapping are controlled by this ImageMapping
-
getLimitsAlgorithm
LimitsAlgorithm getLimitsAlgorithm()
Returns the LimitsAlgorithm- Returns:
- the LimitsAlgorithm
-
setLimitsAlgorithm
void setLimitsAlgorithm(LimitsAlgorithm algo)
Sets the LimitsAlgorithm- Parameters:
algo- the LimitsAlgorithm
-
getIntensityTransform
IntensityTransform getIntensityTransform()
Returns the IntensityTransform used to enhance images before applying bias/gain.- Returns:
- the IntensityTransform
-
setIntensityTransform
void setIntensityTransform(IntensityTransform it)
Apply the given IntensityTransform to enhance images before applying bias/gain.- Parameters:
it- the IntensityTransform to be applied
-
getBias
double getBias()
Returns the bias value. The default value is 0.5.- Returns:
- the bias value
-
setBias
void setBias(double bias)
Sets the bias value. The valid range is [0,1] and the default value is 0.5.- Parameters:
bias- the bias value- See Also:
- C. Schlick, Fast Alternatives to Perlin's Bias and Gain Functions
-
getGain
double getGain()
Returns the gain value. The default value is 0.5.- Returns:
- the gain value
-
setGain
void setGain(double gain)
Sets the gain value. The valid range is [0,1] and the default value is 0.5.- Parameters:
gain- the gain value- See Also:
- C. Schlick, Fast Alternatives to Perlin's Bias and Gain Functions
-
getColorMap
ColorMap getColorMap()
Returns the lookup table for displaying the intensity raster.- Returns:
- the lookup table for displaying the intensity raster
-
setColorMap
void setColorMap(ColorMap colorMap)
Sets a ColorMap to lookup the intensity raster for display.- Parameters:
colorMap- the lookup table for displaying the intensity raster
-
-
DMelt 3.0 © DataMelt by jWork.ORG