|
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.
|
|
Mask
|
|
An integer between 1 and 116 specifying the frame number of the grayscale image that contains the convolution kernel. The image must be one of the following types: 8-bit, 16-bit, 32-bit, and floating point.
|
|
Output
|
|
An integer between 1 and 116 specifying the output image frame number. Values in the range of 100-116 correspond to hidden frames.
|
|
Mode
|
|
An optional boolean integer specifying whether the direction of the operation. Must be one of the following values:
|
M_DIRECT the function is applied in the direct mode (convolution)
|
M_INVERSE the function is applied in the inverse mode (de-convolution).
|
Default value: M_DIRECT
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
This set of statements applies a 113x113 lowpass filter to a sample image using the FFT convolution and then converts the result back to the original image by applying de-convolution.
|
|
setCurDir ("samples")
|
loadIm (1,"sample4.iwd")
|
createIm(2,IM_GRAY,113,113,1)
|
convolveFFT(1,2,3,M_DIRECT)
|
convolveFFT(3,2,4,M_INVERSE)
|