Research Article

Semi-Automatic Integrated Segmentation Approaches and Contour Extraction Applied to Computed Tomography Scan Images

Algorithm 2

Algorithmic representation of watershed procedure.
define a slope for each pixel
for each pixel value,
    calculate topographical distance
    estimate gradient for gray-level values.
    for each image gradient threshold identification,
perform edge-preserving,
represent gradient magnitude,
generate merge tree,
access segmented image,
acquire segmentation tree.