Noise
Add random noise to image
1. imgnoise r:=5;
2. imgNoise r:=10 img:=mat(1) oimg:=mat(2) c:=green;
Please refer to the page for additional option switches when accessing the x-function from script
Input
int
Specifies the percentage of coverage for the added noise.
Image
Specifies the source image to be manipulated. The default input is the active image.
Output
Specifies the output image. By default, the output image is the same as the input image. See the syntax here.
Specifies the channel(s) to add noise
Option list
The imgNoise function adds random noise to the input image. You can add noises to all channels or only a specified color channel.
In this example, we use the imgNoise function to add noise to the red channel of the input image:
The computation uses L_AddBitmapNoise() function from LEADTOOLS Main API. Please refer to the LEADTOOLS Main API Help file, Version 14 and read the L_AddBitmapNoise topic.
LEADTOOLS Main API Help file, Version 14
imgMedian, imgAverage, imgGaussian, imgUserfilter