Fix the error of the region grewing method
Original code will let the points of region and the points of contour be the same