A CPU includes: an original image recording function for recording a still image or a recorded image as an original image a contrast correction function for performing contrast correction on a still image or a recorded image a coordinate calculation function for calculating pixel coordinates on an original image which correspond to pixel coordinates designated on a contrast corrected image a stereo measurement function for performing stereo measurement using pixel coordinates of an original image calculated by the coordinate calculation function a measurement result reflection function for reflecting on a contrast corrected image a measurement result of stereo measurement performed by the stereo measurement function and a dynamic range expansion function for enhancing brightness of an image area which is darker than a predetermined threshold. These functions enable stereo measurement to be performed precisely using an image on which image processing has been performed.