1. An image processing apparatus which corrects depth values indicating depths of pixels included in an input image, the apparatus comprising: a feature calculation unit configured to calculate feature quantities of the respective pixels; a reliability level obtaining unit configured to obtain reliability levels of the respective depth values; and a depth correction unit configured to correct the depth values using the reliability levels and the feature quantities.