| javax.media.jai.UntiledOpImage com.sun.media.jai.opimage.DCTOpImage
DCTOpImage | public class DCTOpImage extends UntiledOpImage (Code) | | An OpImage implementing the forward and inverse even
discrete cosine transform (DCT) operations as described in
javax.media.jai.operator.DCTDescriptor and
javax.media.jai.operator.IDCTDescriptor .
The DCT operation is implemented using a one-dimensional fast cosine
transform (FCT) which is applied successively to the rows and the columns
of the image. All image dimensions are enlarged to the next positive power
of 2 greater than or equal to the respective dimension unless the dimension
is unity in which case it is not modified. Source image values are padded
with zeros when the dimension is smaller than the output power-of-2
dimension.
since: EA3 See Also: javax.media.jai.UntiledOpImage See Also: javax.media.jai.operator.DCTDescriptor See Also: javax.media.jai.operator.IDCTDescriptor |
Constructor Summary | |
public | DCTOpImage(RenderedImage source, Map config, ImageLayout layout, FCT fct) Constructs a DCTOpImage object.
The image dimensions are the respective next positive powers of 2
greater than or equal to the dimensions of the source image. |
Method Summary | |
protected void | computeImage(Raster[] sources, WritableRaster dest, Rectangle destRect) | public Point2D | mapDestPoint(Point2D destPt) Computes the source point corresponding to the supplied point.
Parameters: destPt - the position in destination image coordinatesto map to source image coordinates. | public Point2D | mapSourcePoint(Point2D sourcePt) Computes the destination point corresponding to the supplied point. |
DCTOpImage | public DCTOpImage(RenderedImage source, Map config, ImageLayout layout, FCT fct)(Code) | | Constructs a DCTOpImage object.
The image dimensions are the respective next positive powers of 2
greater than or equal to the dimensions of the source image. The tile
grid layout, SampleModel, and ColorModel may optionally be specified
by an ImageLayout object.
Parameters: source - A RenderedImage. Parameters: layout - An ImageLayout optionally containing the tile grid layout,SampleModel, and ColorModel, or null. Parameters: fct - The Fast Cosine Transform object. |
computeImage | protected void computeImage(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | |
mapDestPoint | public Point2D mapDestPoint(Point2D destPt)(Code) | | Computes the source point corresponding to the supplied point.
Parameters: destPt - the position in destination image coordinatesto map to source image coordinates. null . throws: IllegalArgumentException - if destPt isnull . since: JAI 1.1.2 |
|
|