Package com.bc.ceres.jai.opimage
Class DFTConvolveRIF
- java.lang.Object
-
- com.bc.ceres.jai.opimage.DFTConvolveRIF
-
- All Implemented Interfaces:
RenderedImageFactory
public class DFTConvolveRIF extends Object implements RenderedImageFactory
-
-
Constructor Summary
Constructors Constructor Description DFTConvolveRIF()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderedImage
create(ParameterBlock paramBlock, RenderingHints renderHints)
Create a new instance of ConvolveOpImage in the rendered layer.static javax.media.jai.TiledImage
createKernelImage(RenderedImage sourceImage, int dataType, javax.media.jai.KernelJAI kernel)
static int
getNextBase2Size(int n)
static float[]
normalizeKernelData(float[] kernelData)
static RenderedImage
toFloat(RenderedImage sourceImage, double x1, double x2, double y1, double y2, RenderingHints hints)
static RenderedImage
toFloat(RenderedImage sourceImage, RenderingHints hints)
-
-
-
Method Detail
-
create
public RenderedImage create(ParameterBlock paramBlock, RenderingHints renderHints)
Create a new instance of ConvolveOpImage in the rendered layer. This method satisfies the implementation of RIF.- Specified by:
create
in interfaceRenderedImageFactory
- Parameters:
paramBlock
- The source image and the convolution kernel.
-
createKernelImage
public static javax.media.jai.TiledImage createKernelImage(RenderedImage sourceImage, int dataType, javax.media.jai.KernelJAI kernel)
-
normalizeKernelData
public static float[] normalizeKernelData(float[] kernelData)
-
toFloat
public static RenderedImage toFloat(RenderedImage sourceImage, RenderingHints hints)
-
toFloat
public static RenderedImage toFloat(RenderedImage sourceImage, double x1, double x2, double y1, double y2, RenderingHints hints)
-
getNextBase2Size
public static int getNextBase2Size(int n)
-
-