fill
|
|
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.
|
|
Mode
|
|
An enumerated integer that describes the mode in which the function operates. Must be one of the following values:
|
FALSE=0 uses the algorithm optimized for binary images. Selecting this mode for multiphase images with objects of different phases enclosed into each other may result in loosing the original phase information.
|
TRUE=1 uses the algorithm optimized for multiphase images with parent-child relations between objects of different phases.
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
This set of statements binarizes a sample image and fills out the holes in objects.
|
|
setCurDir ("samples")
|
loadIm(1,"sample25.IWD")
|
threshold(1,1,M_PRESET,175.,255.,TRUE,FALSE)
|
fill(1,2)
|