waterfall
|
|
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.
|
|
Depth
|
|
An integer specifying the maximum depth of "water basins" on the intensity surface. This could be also interpreted as the level of rain falling onto the surface. Increasing this parameter will result in merging of small basins into bigger ones.
|
|
Invert
|
|
A boolean integer specifying whether the input image should be inverted before the operation is applied. Must be one of the following values:
|
|
FALSE=0 no inversion is performed.
|
TRUE=1 inverts the input image before applying the waterfall algorithm.
|
Default value: FALSE
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
This set of statements applies the waterfall operation to a sample image:
|
|
setCurDir ("samples")
|
loadIm (1,"sample3.iwd")
|