摘要 |
Provided is a distance measuring device with a suppressed calculation amount for a parallax image. A distance measuring device 4 that generates the parallax image to measure a distance includes image sensors 3a and 3b each capturing an image, an edge image extractor 13 that extracts an edge image in accordance with the image, the edge image including pixel values each containing identification information used to identify an edge caused by a brightness variation from light to dark or an edge caused by a brightness variation from dark to light, a binarized edge image generator 15 that generates a binarized edge image in accordance with the identification information of the edge image, a parallax image generator 17 that generates the parallax image from the binarized edge image, and a distance image calculator 19 that calculates a distance image from the parallax image. |