| javax.media.jai.ColormapOpImage com.sun.media.jai.opimage.ThresholdOpImage
ThresholdOpImage | final class ThresholdOpImage extends ColormapOpImage (Code) | | An OpImage implementing the "Threshold" operation as
described in javax.media.jai.operator.ThresholdDescriptor .
This OpImage maps all the pixels of an image
whose value falls within a given range to a constant on a per-band basis.
Each of the lower bound, upper bound, and constant arrays may have only
one value in it. If that is the case, that value is used for all bands.
See Also: javax.media.jai.operator.ThresholdDescriptor See Also: ThresholdCRIF since: EA2 |
Constructor Summary | |
public | ThresholdOpImage(RenderedImage source, Map config, ImageLayout layout, double[] low, double[] high, double[] constants) Constructor. |
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Map the pixels inside a specified rectangle whose value is within a
rang to a constant on a per-band basis. | protected void | transformColormap(byte[][] colormap) Transform the colormap according to the rescaling parameters. |
ThresholdOpImage | public ThresholdOpImage(RenderedImage source, Map config, ImageLayout layout, double[] low, double[] high, double[] constants)(Code) | | Constructor.
Parameters: source - The source image. Parameters: layout - The destination image layout. Parameters: low - The lower bound of the threshold. Parameters: high - The upper bound of the threshold. Parameters: constants - The constants to be mapped within the threshold. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Map the pixels inside a specified rectangle whose value is within a
rang to a constant on a per-band basis.
Parameters: sources - Cobbled sources, guaranteed to provide all thesource data necessary for computing the rectangle. Parameters: dest - The tile containing the rectangle to be computed. Parameters: destRect - The rectangle within the tile to be computed. |
transformColormap | protected void transformColormap(byte[][] colormap)(Code) | | Transform the colormap according to the rescaling parameters.
|
Methods inherited from javax.media.jai.ColormapOpImage | final protected void initializeColormapOperation()(Code)(Java Doc) final protected boolean isColormapOperation()(Code)(Java Doc) abstract protected void transformColormap(byte[][] colormap)(Code)(Java Doc)
|
|
|