摘要 |
Provided are a distance measuring device and a distance measuring method which sufficiently suppress distance detection accuracy degradation caused by detection errors pertaining to a measurement subject, thereby making high-accuracy measurement of the distance to the measurement subject that is imaged. First to third region detection units (101 to 103) detect, from images taken of the measurement subject, those region images in a plurality of regions which are included in the measurement subject and whose sizes are known. A relative error comparison unit (104) uses not only those image sizes, D1 to D3, in a plurality of regions which are detected by the region detection units (101 to 103), but also information regarding sizes which are known in a plurality of regions, to select the region image size that minimizes relative errors d1/D1, d2/D2, and d3/D3, which are ratios pertaining to image sizes D1, D2, and D3, and to errors, d1, d2, and d3, included in the image sizes, respectively. A distance estimation unit (105) uses the selected region image size to calculate the distance to the measurement subject.
|