1. A method for editing a digital image in an image editing device, comprising: obtaining a restoration region in the digital image; determining structure information corresponding to the restoration region; based on the structure information, generating a structure strength map corresponding to the restoration region; based on the structure strength map, determining priority levels for pixels in the restoration region; and applying an inpainting operation to the pixels in the restoration region based on the corresponding priority levels derived based on the structure information.