Apply Gaussian filter to image
1. imgGaussian r:=20 img:=mat(1) oimg:=mat(2);
2. imgGaussian r:=10 oimg:=<new>;
Please refer to the page for additional option switches when accessing the x-function from script
Specifies the size of the neighborhood on which the Gaussian filter is applied. This value cannot be less than 1.
Specifies the source image to be manipulated. The default input is the active image.
Specifies the output image. By default, the output image is the same as the input image.
See the syntax here.
The imgGussian function applies a Gaussian filter to the input image. The filtered image is blurred and looks smoother than the input image.
User can specify the radius of the filtering neighborhood. Generally speaking, a larger radius will result in a smoother image compared to a smaller radius.
In this example, we use the imgGaussian function to blur the input image:
The computation uses L_GaussianFilterBitmap() function from LEADTOOLS Main API. Please refer to the LEADTOOLS Main API Help file, Version 14 and read the L_GaussianFilterBitmap topic.
LEADTOOLS Main API Help file, Version 14
imgMedian, imgAverage, imgNoise