convex
Top  Previous  Next

convex ( integer Input, integer Output )

Use this function to build convex halls of objects in a multiphase image or selection. A convex hall can be envisioned as an imaginary elastic string stretched around the object.

Parameters
 
Input  
 
An integer between 1 and 116 specifying the input image frame number. 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 binarizes a sample image and builds convex halls around interconnected groups of objects:  
 
setCurDir ("samples")  
loadIm (1,"sample4.iwd")  
threshold (1,1,M_PRESET,0.,113.,TRUE,FALSE)  
convex (1,2)