1. An image processing apparatus comprising: an edge direction detector for detecting an edge direction, based on image data captured from an image sensor including a plurality of pixels; a defective pixel detector for detecting a defective pixel included in the image sensor, based on the edge direction detected by the edge direction detector; and a corrector for correcting the defective pixel detected by the defective pixel detector.