Back light correcting device, method of operating back light correcting device, program of operating back light correcting device, and imaging apparatus
A first determination section performs first determination to determine that an imaged scene of an image is a backlit scene, in which light is emitted from behind a subject, in a case where a difference in luminance between a representative value of an exposure value of a reference region and a representative value of an exposure value of a peripheral region of the reference region is equal to or greater than a first threshold value which is set in advance. The first determination section sets the first threshold value to a value lower than a value, which is obtained in a case where it is determined that the saturated region is not present, in a case where it is determined by the first determination that the imaged scene is the backlit scene and it is determined by the second determination that the saturated region is present.
1 . A back light correcting device comprising a processor,
wherein the processor is configured to:
perform first determination to determine that an imaged scene of an image is a backlit scene, in which light is emitted from behind a subject, in a case where a difference in luminance between a reference region serving as a reference for back light correction in the image and a peripheral region of the reference region is equal to or greater than a first threshold value which is set in advance;
perform the back light correction by performing exposure correction in a direction in which a luminance of the entire image increases in a case where it is determined by the first determination that the imaged scene is the backlit scene;
perform second determination to determine whether or not a saturated region is present in the image; and
set the first threshold value to a value lower than a value, which is obtained in a case where it is determined that the saturated region is not present, in a case where it is determined by the first determination that the imaged scene is the backlit scene and it is determined by the second determination that the saturated region is present.
2 . The back light correcting device according to claim 1 ,
wherein the processor is configured to:
set the peripheral region as a target of the second determination.
3 . The back light correcting device according to claim 2 ,
wherein the processor is configured to:
perform the second determination on the basis of a result of comparison between a second threshold value, which is set in advance, and a difference in luminance between the entire image and each peripheral region among a plurality of peripheral regions obtained by dividing the image.
4 . The back light correcting device according to claim 3 ,
wherein the processor is configured to:
determine that the saturated region is present in a case where a specified number or more of the peripheral regions, in which the differences in luminance between the entire image and the peripheral regions are equal to or greater than the second threshold value, are present.
5 . The back light correcting device according to claim 1 ,
wherein the reference region is any one of a central region of the image, a region in which the subject is detected, or a region which is designated by a user.
6 . An imaging apparatus comprising:
the back light correcting device according to claim 1 .
7 . The imaging apparatus according to claim 6 ,
wherein the imaging apparatus is a surveillance camera.
8 . A method of operating a back light correcting device, the method comprising:
performing first determination to determine that an imaged scene of an image is a backlit scene, in which light is emitted from behind a subject, wherein a difference in luminance between a reference region serving as a reference for back light correction in the image and a peripheral region of the reference region is equal to or greater than a threshold value which is set in advance;
performing the back light correction by performing exposure correction in a direction in which a luminance of the entire image increases, wherein it is determined by the first determination that the imaged scene is the backlit scene;
performing second determination to determine whether or not a saturated region is present in the image; and
setting the threshold value to a value lower than a value, which is obtained when the saturated region is not previously present, wherein it is determined by the first determination that the imaged scene is the backlit scene and it is determined by the second determination that the saturated region is present.
9 . A non-transitory computer-readable storage medium storing a program of operating a back light correcting device, the program causing a computer to execute processing comprising:
performing first determination to determine that an imaged scene of an image is a backlit scene, in which light is emitted from behind a subject, in a case where a difference in luminance between a reference region serving as a reference for back light correction in the image and a peripheral region of the reference region is equal to or greater than a threshold value which is set in advance;
performing the back light correction by performing exposure correction in a direction in which a luminance of the entire image increases in a case where it is determined by the first determination that the imaged scene is the backlit scene;
performing second determination to determine whether or not a saturated region is present in the image; and
setting the threshold value to a value lower than a value, which is obtained in a case where it is determined that the saturated region is not present, in a case where it is determined by the first determination that the imaged scene is the backlit scene and it is determined by the second determination that the saturated region is present.