Image processor, image processing method, and imaging device
An image processor includes a first correction section that calculates a luminance average value of an image and corrects a luminance of the image on a basis of a periodic change in the luminance average value, and a second correction section that acquires color information on the image and corrects the color information on a basis of a periodic change in the color information. This configuration suppresses a flicker in imaging at a high-speed frame rate.
1. An image processor, comprising:
a first correction section configured to:
calculate a luminance average value of an image; and
correct a luminance of the image based on a periodic change in the luminance average value; and
a second correction section configured to:
acquire color information of the image;
determine accumulated values for each of a plurality of pieces of the color information of the image;
set, as a target value, a value that is obtained based on average of the accumulated values for one of the plurality of pieces of the color information in a plurality of frames of the image; and
correct each of the plurality of pieces of the color information to cause each of the accumulated values to be the target value.
2. The image processor according to claim 1 , wherein the first correction section is further configured to:
set, as the target value, a value that is obtained based on an average of respective luminance average values in the plurality of frames; and
perform correction to cause the luminance of the image to be the target value.
3. The image processor according to claim 2 , wherein the plurality of frames includes at least one period of a luminance change due to a flicker phenomenon.
4. The image processor according to claim 1 , further comprising an exposure amount control section configured to control an exposure amount of the image based on a correction value calculated by the first correction section, wherein the correction value is calculated based on the periodic change in the luminance average value.
5. The image processor according to claim 1 , wherein the second correction section is further configured to perform correction for the image subjected to the correction by the first correction section.
6. The image processor according to claim 1 , wherein the plurality of frames includes at least one period of a change in the color information due to a flicker phenomenon.
7. The image processor according to claim 1 , wherein the plurality of pieces of the color information comprises the color information of at least one of a red color, a green color, or a blue color.
8. The image processor according to claim 1 , wherein the second correction section is further configured to correct the color information uniformly throughout the image.
9. The image processor according to claim 1 , wherein the second correction section is further configured to perform correction for each line of pixel arrangement of the color information.
10. The image processor according to claim 1 , wherein the second correction section is further configured to:
perform correction based on the accumulated values for an optional line in one frame; and
perform correction based on an estimated value estimated from the accumulated values for a line different from the optional line.
11. The image processor according to claim 1 , further comprising:
an object detection section configured to detect an object in the image; and
a tracking section configured to track the object, wherein the second correction section is further configured to correct the color information in a region that includes the tracked object.
12. An image processing method, comprising:
calculating a luminance average value of an image;
correcting a luminance of the image based on a periodic change in the luminance average value;
acquiring color information of the image;
determining accumulated values for each of a plurality of pieces of the color information of the image;
setting, as a target value, a value that is obtained based on average of the accumulated values for one of the plurality of pieces of the color information in a plurality of frames of the image; and
correcting each of the plurality of pieces of the color information to cause each of the accumulated values to be the target value.
13. An imaging device, comprising:
an imaging element configured to capture an image of a subject; and
an image processor, wherein the image processor includes:
a first correction section configured to:
calculate a luminance average value of the image; and
correct a luminance of the image based on a periodic change in the luminance average value, and
a second correction section configured to:
acquire color information of the image;
determine accumulated values for each of a plurality of pieces of the color information of the image;
set, as a target value, a value that is obtained based on average of the accumulated values for one of the plurality of pieces of the color information in a plurality of frames of the image; and
correct each of the plurality of pieces of the color information to cause each of the accumulated values to be the target value.
14. The image processor according to claim 1 , further comprising:
a third correction section configured to:
calculate a new correction value for each of the plurality of pieces of the color information from a vicinity of an object in the image; and
perform, based on the new correction value, correction of the image subjected to the correction by the first correction section and the second correction section.