摘要 |
An image processing apparatus (1c) includes a contour-candidate-edge detecting unit (16; 16a) that detects, as contour candidate edges, edges on the basis of a gradient magnitude of each pixel in a target image; a contour-edge detecting unit (17) that detect contour edges by performing thresholding on gradient magnitudes of the contour candidate edges; an interpolation-line generating unit (18; 18c) that generates a plurality of interpolation lines for connecting end points of respective end-point pairs on the basis of gradients of pixel values between the end points of the respective end-point pairs while each of the end point pairs is made up of an end point of an identical contour edge as a connection base and an end point of a different contour edge as a connection destination; and a contour-edge interpolating unit (19c) that selects one of the interpolation lines on the basis of gradients of pixel values of pixels on the interpolation lines, and interpolates a contour edge between end points, which are to be connected with the selected interpolation line, with the selected interpolation line. |