saddles
Top  Previous  Next

saddles ( integer Input, integer Output )

Use this function to find saddle points of thin bright structures in color and grayscale images. The function works by treating the image as a topographic surface and extracting the points of minimums in the intensity ridges. See
watershed for more details.

Parameters
 
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.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  

Example

This set of statements finds the saddle points in an inverted sample image.  
 
setCurDir ("samples")  
loadIm (1,"sample3.iwd")  
invert(1,1)  
saddles(1,2)