| javax.media.jai.UntiledOpImage com.sun.media.jai.opimage.DFTOpImage
DFTOpImage | public class DFTOpImage extends UntiledOpImage (Code) | | An OpImage implementing the forward and inverse discrete
Fourier transform (DFT) operations as described in
javax.media.jai.operator.DFTDescriptor and
javax.media.jai.operator.IDFTDescriptor .
The DFT operation is implemented using a one-dimensional decimation
in time fast Fourier transform (FFT) 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.DFTDescriptor See Also: javax.media.jai.operator.IDFTDescriptor |
Field Summary | |
protected boolean | complexDst Flag indicating whether the destination image is complex. | protected boolean | complexSrc Flag indicating whether the source image is complex. | FFT | fft The Fast Fourier Transform object. |
Constructor Summary | |
public | DFTOpImage(RenderedImage source, Map config, ImageLayout layout, EnumeratedParameter dataNature, FFT fft) Constructs a DFTOpImage 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) Calculate the discrete Fourier transform of the source image. | 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. |
complexDst | protected boolean complexDst(Code) | | Flag indicating whether the destination image is complex.
|
complexSrc | protected boolean complexSrc(Code) | | Flag indicating whether the source image is complex.
|
fft | FFT fft(Code) | | The Fast Fourier Transform object.
|
DFTOpImage | public DFTOpImage(RenderedImage source, Map config, ImageLayout layout, EnumeratedParameter dataNature, FFT fft)(Code) | | Constructs a DFTOpImage 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: fft - The Fast Fourier Transform object. See Also: DFTDescriptor. |
computeImage | protected void computeImage(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Calculate the discrete Fourier transform of the source image.
Parameters: source - The source Raster; should be the whole image. Parameters: dest - The destination WritableRaster; should be the whole image. Parameters: destRect - The destination Rectangle; should be the image bounds. |
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 |
|
|