CPC H04N 23/959 (2023.01) [H04N 23/671 (2023.01)] | 10 Claims |
1. A ranging device comprising a capture unit, the ranging device comprising:
storage configured to store a statistical model generated by learning a bokeh that occurs in a first image affected by aberration of an optical system of the capture unit and that changes nonlinearly according to a distance to a subject in the first image;
a processor configured to:
acquire a second image captured by the capture unit and affected by aberration of the optical system of the capture unit;
acquire focus position information relating to a focus position when the second image was captured;
acquire a bokeh value indicating a bokeh of a subject in the second image, which is output from the statistical model by inputting the acquired second image to the statistical model; and
convert the acquired bokeh value into a distance to the subject based on the acquired focus position information.
|