摘要 |
The present invention relates to a method, terminal device, and computer-readable recording medium for setting an initial value for a graph cut. According to one aspect of the present invention, a method for setting an initial value for a graph cut, so as to divide a figure zone and a background zone in an image, comprises the following steps: (a) detecting a face zone from an input image; (b) determining, from among prestored figure zone patterns, reference figure zone patterns containing a face zone which is similar to the detected face zone, wherein the similarity is greater than a preset value; and (c) if the reference figure zone patterns are aligned on the input image on the basis of the detected face zone, providing an initial background value to a first zone which is not covered by any of the aligned reference figure zone patterns of the input image, and providing an initial figure value to a second zone which is covered by all of the aligned reference figure zone patterns of the input image. According to the present invention, image editing using a graph cut can be performed in a more accurate and effective manner on a portable terminal device. |