Regularization of a boundary for corner detection. (a) Segmented region boundary. (b) Regularized boundary and corners.