| javax.media.jai.PointOpImage com.sun.media.jai.opimage.ClampOpImage
ClampOpImage | final class ClampOpImage extends PointOpImage (Code) | | An OpImage implementing the "Clamp" operation.
This OpImage maps all the pixel values of an image
that are less than a lower bound to that lower bound value, and all that
are greater than a upper bound to that upper bound value. All pixel values
fall within these boundaries remain unchanged. The mapping is done on a
per-band basis.
Each of the lower bound and upper bound arrays may have only
one value in it. If that is the case, that value is applied to all bands.
The number of elements in each array has to be consistent, i.e. either
all arrays contain one element in them or all they have the same number
of elements that matches the number of bands of the source image.
See Also: javax.media.jai.operator.ClampDescriptor See Also: ClampCRIF since: EA2 |
Constructor Summary | |
public | ClampOpImage(RenderedImage source, Map config, ImageLayout layout, double[] low, double[] high) Constructor. |
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Map the pixels inside a specified rectangle whose value is within a
range to a constant on a per-band basis. |
ClampOpImage | public ClampOpImage(RenderedImage source, Map config, ImageLayout layout, double[] low, double[] high)(Code) | | Constructor.
Parameters: source - The source image. Parameters: layout - The destination image layout. Parameters: low - The lower bound of the clamp. Parameters: high - The upper bound of the clamp. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Map the pixels inside a specified rectangle whose value is within a
range 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. |
|
|