| javax.media.jai.ColormapOpImage com.sun.media.jai.opimage.PiecewiseOpImage
PiecewiseOpImage | final class PiecewiseOpImage extends ColormapOpImage (Code) | | An OpImage implementing the "Piecewise" operation.
The "Piecewise" operation maps the pixel values of an image using
a piecewise linear function represented by a set of breakpoints for each
band. The abscissa of each breakpoint is the source image gray level for
the band in question and the ordinate is the destination image gray level
to which it is mapped.
See Also: javax.media.jai.operator.PiecewiseDescriptor See Also: PiecewiseCRIF since: EA4 |
Constructor Summary | |
public | PiecewiseOpImage(RenderedImage source, Map config, ImageLayout layout, float[][][] breakpoints) Constructor.
Parameters: source - The source image. Parameters: layout - The destination image layout. Parameters: breakpoints - The piecewise mapping stored by reference. |
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Piecewises to the pixel values within a specified rectangle. | protected void | transformColormap(byte[][] colormap) Transform the colormap according to the rescaling parameters. |
PiecewiseOpImage | public PiecewiseOpImage(RenderedImage source, Map config, ImageLayout layout, float[][][] breakpoints)(Code) | | Constructor.
Parameters: source - The source image. Parameters: layout - The destination image layout. Parameters: breakpoints - The piecewise mapping stored by reference. Thearrays breakpoints[b][0] and breakpoints[b][1] represent the abscissasand ordinates of the breakpoints, respectively, for band b. Thenumber of sets of breakpoints must be one or equal to the number ofimage bands. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Piecewises to the pixel values within a specified rectangle.
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)
|
|
|