A new method for extracting and representing object contours in real images