public class FourierConvolve extends Object implements SinglebandImageProcessor<Float,FImage>
FImage convolution performed in the fourier domain.SinglebandImageProcessor.Processable<T,S extends Image<T,S>,I extends Image<?,I>>| Constructor and Description |
|---|
FourierConvolve(FImage kernel)
Construct the convolution operator with the given kernel
|
FourierConvolve(float[][] kernel)
Construct the convolution operator with the given kernel
|
| Modifier and Type | Method and Description |
|---|---|
static FImage |
convolve(FImage image,
float[][] kernel,
boolean inplace)
Convolve an image with a kernel using an FFT.
|
static FImage |
convolvePrepared(FImage image,
FImage filter,
boolean centered)
Convolve an image with a pre-prepared frequency domain filter.
|
void |
processImage(FImage image)
Process an image.
|
public FourierConvolve(float[][] kernel)
kernel - the kernelpublic FourierConvolve(FImage kernel)
kernel - the kernelpublic void processImage(FImage image)
ImageProcessorImage.internalAssign(Image).processImage in interface ImageProcessor<FImage>image - The image to process in place.public static FImage convolve(FImage image, float[][] kernel, boolean inplace)
image - The image to convolvekernel - The kernelinplace - if true, then output overwrites the input, otherwise a new image
is created.public static FImage convolvePrepared(FImage image, FImage filter, boolean centered)
image - The image to convolvefilter - the prepared frequency domain filtercentered - true if the prepared filter has the highest frequency in the
centre.