An automated algorithm for cleaning and ordering the boundary points of a one-dimensional curve in a segmented image

Due to variability in the assignment of gray scale values, most edge detection algorithms produce undesirable edges inside and outside the object of a gray scale image. Also, the points of the edges formed by these algorithms may not be in a linear order. In this communications, a new automated algorithm is provided which removes the undesirable edges and linearly orders the remaining boundary points.