Distance measuring device, imaging device, and distance measuring method
A distance measuring device includes a first imaging element having a first pixel having a plurality of photoelectric conversion regions, a second imaging element having a second pixel and having a first parallax in a first direction between the second imaging element and the first imaging element, and distance measuring means for generating integrated distance measuring information based on signals output from the first imaging element and the second imaging element, and the plurality of photoelectric conversion regions have a second parallax in a second direction intersecting the first direction.
1 . A distance measuring device comprising:
a first imaging element including a first pixel having a plurality of photoelectric conversion regions;
a second imaging element including a second pixel and having a first parallax in a first direction between the second imaging element and the first imaging element;
a memory storing instructions; and
a processor executing the instructions causing the distance measuring device to generate integrated distance measuring information based on signals output from the first imaging element and the second imaging element,
wherein the plurality of photoelectric conversion regions have a second parallax in a second direction intersecting the first direction,
wherein the processor generates the integrated distance measuring information based on (1) first distance measuring information generated based on the second parallax and (2) second distance measuring information generated based on the first parallax,
wherein the processor (1) generates a first image group having the second parallax based on the signal output from the first imaging element, (2) generates a second image group having the first parallax based on at least the signal output from the second imaging element, and (3) generates the integrated distance measuring information based on (a) the first distance measuring information generated based on the first image group and (b) the second distance measuring information generated based on the second image group,
wherein the distance measuring device is mounted on a moving object,
wherein the processor selects information for generating the integrated distance measuring information from a plurality of pieces of information depending on a situation of the moving object, and
wherein the processor selects information regarding one of the first image group and the second image group, and generates the integrated distance measuring information based on the selected one image group.