define the threshold labeling
    for to Whole_Voxel
     find the starting point
step 1     if there is an object then
         find sharp edge using the binary image (0,1) then
      define initial directions (UP and RIGHT)
        calculate contour for the region of interest
      apply contour filtering mask (Sobel filter)
      reduce the number of points
      calculate contour measures
       change starting point
       goto step 1
     } while region becomes small
Algorithm 1