public class FGaussianConvolve extends Object implements SinglebandImageProcessor<Float,FImage>
SinglebandImageProcessor.Processable<T,S extends Image<T,S>,I extends Image<?,I>>
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_GAUSS_TRUNCATE
The default number of sigmas at which the Gaussian function is truncated
when building a kernel
|
protected float[] |
kernel |
Constructor and Description |
---|
FGaussianConvolve(float sigma)
Construct an
FGaussianConvolve with a Gaussian of standard
deviation sigma. |
FGaussianConvolve(float sigma,
float truncate)
Construct an
FGaussianConvolve with a Gaussian of standard
deviation sigma. |
Modifier and Type | Method and Description |
---|---|
static float[] |
makeKernel(float sigma)
Construct a zero-mean Gaussian with the specified standard deviation.
|
static float[] |
makeKernel(float sigma,
float truncate)
Construct a zero-mean Gaussian with the specified standard deviation.
|
void |
processImage(FImage image)
Process an image.
|
public static final float DEFAULT_GAUSS_TRUNCATE
protected float[] kernel
public FGaussianConvolve(float sigma)
FGaussianConvolve
with a Gaussian of standard
deviation sigma.sigma
- Gaussian kernel standard deviationpublic FGaussianConvolve(float sigma, float truncate)
FGaussianConvolve
with a Gaussian of standard
deviation sigma. The truncate parameter defines how many sigmas wide the
kernel is.sigma
- truncate
- public static float[] makeKernel(float sigma)
sigma
- the standard deviation of the Gaussianpublic static float[] makeKernel(float sigma, float truncate)
sigma
- the standard deviation of the Gaussiantruncate
- the number of sigmas from the centre at which to truncate the
Gaussianpublic void processImage(FImage image)
ImageProcessor
Image.internalAssign(Image)
.processImage
in interface ImageProcessor<FImage>
image
- The image to process in place.