1. A method comprising: determining a plurality of first pixels having resemblance with a second pixel associated with an image based on a depth information of the image, the second pixel being associated with at least one image defect; and replacing the second pixel by at least one first pixel of the plurality of first pixels based on a determination that the at least one first pixel is not associated with the at least one image defect.