Illumination control device, imaging device, illumination control method, and program
An illumination control device includes an image data acquirer, a control data acquirer, and a light source controller. The image data acquirer acquires target imaging-related data related to the target imaging in a case in which target imaging is performed in which an image of an inserter inserted into a hole part continuous with a target is captured by an imaging device together with the target. The control data acquirer acquires control data based on the acquired target imaging-related data. The light source controller controls an illumination state of a light source provided around an optical axis of the imaging device, based on the acquired control data.
1 . An illumination control device comprising a hardware processor configured to execute processes comprising:
a data acquisition process of acquiring target imaging-related data related to target imaging, the target imaging-related data being data obtained by performing the target imaging in such a state that an image of an inserter inserted into a hole part continuous with a target is captured by an imaging device together with the target;
a control data acquisition process of acquiring control data based on the target imaging-related data; and
an illumination control process of controlling an illumination state of a light source provided around an optical axis of the imaging device, based on the control data,
wherein:
the control data acquisition process includes acquiring, based on the target imaging-related data, a position parameter representing a positional relationship between the light source and the inserter,
the target imaging-related data is image data of a captured image acquired by the target imaging,
a cross section of the inserter orthogonal to an insertion direction into the hole part has a substantially elliptical shape, and
the control data acquisition process includes acquiring, as the position parameter, an angle of a major axis or a minor axis of the cross section of the inserter with respect to a base line extending in a direction orthogonal to the optical axis and a position of a center of the cross section of the inserter with the optical axis of the imaging device in the captured image as a reference.
2 . The illumination control device according to claim 1 , wherein the illumination control process includes controlling the illumination state of the light source based on the control data according to a control rule constructed based on a relationship between the control data and the illumination state of the light source.
3 . The illumination control device according to claim 2 , wherein:
the target imaging-related data is image data of a captured image acquired by the target imaging,
the control data acquisition process includes acquiring the control data based on the image data, and
the control rule is a trained neural network having undergone machine-learning with the control data as an input and a target state of the illumination state of the light source as an output.
4 . The illumination control device according to claim 1 , wherein the illumination control process includes controlling illumination states of a plurality of light sources, selecting a target illumination light source for illuminating the target from the plurality of light sources, and causing the selected target illumination light source to emit light.
5 . The illumination control device according to claim 1 , wherein:
the light source is configured so that an illumination direction of light of the light source is changeable, and
the illumination control process includes controlling the illumination direction of the light source as the illumination state of the light source.
6 . The illumination control device according to claim 1 , wherein:
the inserter is a vaginal speculum, and
the target is a cervix.
7 . The illumination control device according to claim 1 , wherein:
the light source is configured so that an illumination direction of light of the light source is changeable, and
the illumination control process includes controlling the illumination direction of the light source as the illumination state of the light source.
8 . An illumination control method, comprising:
acquiring target imaging-related data related to target imaging, the target imaging-related data being data obtained by performing the target imaging in such a state that an image of an inserter inserted into a hole part continuous with a target is captured by an imaging device together with the target;
acquiring control data based on the target imaging-related data; and
controlling an illumination state of a light source provided around an optical axis of the imaging device, based on the control data,
wherein:
the acquiring the control data includes acquiring, based on the target imaging-related data, a position parameter representing a positional relationship between the light source and the inserter,
the target imaging-related data is image data of a captured image acquired by the target imaging,
a cross section of the inserter orthogonal to an insertion direction into the hole part has a substantially elliptical shape, and
the acquiring the control data includes acquiring, as the position parameter, an angle of a major axis or a minor axis of the cross section of the inserter with respect to a base line extending in a direction orthogonal to the optical axis and a position of a center of the cross section of the inserter with the optical axis of the imaging device in the captured image as a reference.