ends
Top  Previous  Next

ends ( integer Input, integer Output )

Use this function to find end points of skeletons in multiphase images or end points of intensity ridges in color and grayscale images. The function works by extracting only those pixels located at the ends of thin bright structures. The
thin.operation should be performed on a multiphase image before this function is applied.

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 extracts a skeleton from a sample image and finds the end points of the skeleton:  
 
setCurDir ("samples")  
loadIm (1,"sample25.iwd")  
threshold(1,1,M_PRESET,177.,255.,TRUE,FALSE)  
fill(1,1)  
thin (1,2,0,20)  
ends (2,3)