摘要 |
Provided is a technique for searching for a source patch for high-quality image inpainting. Furthermore, provided is a method for image inpainting. A source patch determination method for reconstructing a target patch comprises the steps of: determining, by an image processing device, a target patch, required to be reconstructed, based on priorities of pixels located in a boundary region of a reconstruction region in an image including a source region and the reconstruction region required to be reconstructed; calculating, by the image processing device, mean-squared error distortion (MSE distortion) values and side matching distortion (SMD) values between the target patch and candidate source patches in the source region; and determining, by the image processing device, a final source patch for reconstruction of the target patch among the candidate source patches based on values obtained by adding the mean-squared error distortion values and the side matching distortion values. |