sigma
|
|
Input
|
|
An integer between 0 and 116 specifying the input image frame number. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.
|
|
Output
|
|
An integer between 1 and 116 specifying the output image frame number. Values in the range of 100-116 correspond to hidden frames.
|
|
Size
|
An odd integer between 1 and 2*Overscan+1 specifying the size of the square neighborhood for filtering. The Overscan setting is defined in ImageWarp Preferences.
|
|
Sigma
|
|
A floating variable or constant specifying the filter's threshold. Only those pixels which differ from the central pixel by less than this value are taken for averaging. For better results Sigma should be close to the standard deviation of the noise distribution. You can determine it by acquiring a blank image under the same noise condition and measuring the standard deviation of the image.
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
This set of statements applies a Gaussian noise to a sample image and then suppresses the noise using the Sigma filter.
|
|
sig=10
|
setCurDir("samples")
|
loadIm (1,"sample14.iwd")
|
genNoise (1, 1, sig, NS_GAUSS)
|
sigma (1, 2, 15, 2*sig)
|
|