nodes
Top  Previous  Next

nodes ( integer Input, integer Output )

Use this funtion to find node points of skeletons in multiphase images or crossing points of intensity ridges in color and grayscale images. The function works by extracting only those pixels located at the branching points 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 node 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)  
nodes (2,3)