Image processing apparatus and image processing method
First Claim
1. An image processing apparatus configured to correct at least part of a face image, comprising:
- an image acquisition unit that acquires an input image;
a region extraction unit that extracts a pupil region, which is a region corresponding to an eye of a person, from the input image;
a pixel extraction unit that extracts a pixel from the pupil region whose brightness value is higher than a threshold value;
a determination unit that determines, based on the result of extraction performed by the pixel extraction unit, whether or not halation has occurred in the pupil region; and
a correction unit that performs, based on the result of determination performed by the determination unit, processing for correcting halation on the pupil region,wherein the pixel extraction unit sets the threshold value based on a bias of a brightness distribution of the pixels included in the pupil region,wherein the threshold value is a value according to which the brightness distribution of the pixels included in the pupil region is separated into a high brightness class and a low brightness class,wherein the determination unit calculates a degree of separation, which is a ratio between an intra-class variance and an inter-class variance in the brightness distribution of the pixels included in the pupil region and sets the threshold value to a value according to which the degree of separation is maximized, andwherein, if the degree of separation is less than or equal to a predetermined value and the average of the brightness values of the pixels included in the pupil region is greater than or equal to the predetermined value, the correction unit performs halation correction processing regardless of the result of the determination performed by the determination unit.
1 Assignment
0 Petitions
Accused Products
Abstract
An image processing apparatus configured to correct at least part of a face image has an image acquisition unit that acquires an input image, a region extraction unit that extracts a pupil region, which is a region corresponding to an eye of a person, from the input image, a pixel extraction unit that extracts a pixel from the pupil region whose brightness value is higher than a threshold value, a determination unit that determines, based on the result of extraction performed by the pixel extraction unit, whether or not halation has occurred in the pupil region, and a correction unit that performs, based on the result of determination performed by the determination unit, processing for correcting halation on the pupil region. The pixel extraction unit sets the threshold value based on a bias of a brightness distribution of the pixels included in the pupil region.
6 Citations
10 Claims
-
1. An image processing apparatus configured to correct at least part of a face image, comprising:
-
an image acquisition unit that acquires an input image; a region extraction unit that extracts a pupil region, which is a region corresponding to an eye of a person, from the input image; a pixel extraction unit that extracts a pixel from the pupil region whose brightness value is higher than a threshold value; a determination unit that determines, based on the result of extraction performed by the pixel extraction unit, whether or not halation has occurred in the pupil region; and a correction unit that performs, based on the result of determination performed by the determination unit, processing for correcting halation on the pupil region, wherein the pixel extraction unit sets the threshold value based on a bias of a brightness distribution of the pixels included in the pupil region, wherein the threshold value is a value according to which the brightness distribution of the pixels included in the pupil region is separated into a high brightness class and a low brightness class, wherein the determination unit calculates a degree of separation, which is a ratio between an intra-class variance and an inter-class variance in the brightness distribution of the pixels included in the pupil region and sets the threshold value to a value according to which the degree of separation is maximized, and wherein, if the degree of separation is less than or equal to a predetermined value and the average of the brightness values of the pixels included in the pupil region is greater than or equal to the predetermined value, the correction unit performs halation correction processing regardless of the result of the determination performed by the determination unit. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An image processing apparatus configured to correct halation that has occurred in a face image, the image processing apparatus comprising:
-
an image acquisition unit that acquires an input image; a region extraction unit that extracts a pupil region, which is a region corresponding to an eye of a person, from the input image; a determination unit that determines whether or not halation has occurred in the pupil region; and a correction unit that performs, in the case where halation has occurred in the pupil region, correction by pasting a corresponding pupil image on the target pupil region, wherein threshold value is a value according to which brightness distribution of pixels included in the pupil region is separated into a high brightness class and a low brightness class, wherein the determination unit calculates a degree of separation, which is a ratio between an intra-class variance and an inter-class variance in the brightness distribution of the pixels included in the pupil region and sets the threshold value to a value according to which the degree of separation is maximized, and wherein, if the degree of separation is less than or equal to a predetermined value and the average of the brightness values of the pixels included in the pupil region is greater than or equal to the predetermined value, the correction unit performs halation correction processing regardless of the result of the determination performed by the determination unit.
-
-
9. An image processing method that corrects at least part of a face image, comprising:
-
an image acquisition step of acquiring an input image; a region extraction step of extracting a pupil region, which is a region corresponding to an eye of a person, from the input image; a pixel extraction step of extracting a pixel from the pupil region whose brightness value is higher than a threshold value; a determination step of determining whether or not halation has occurred in the pupil region based on the result of extraction performed in the pixel extraction step; and a correction step of performing processing for correcting halation with respect to the pupil region, based on the result of determination performed in the determination step, wherein in the determination step, the threshold value is set based on a bias of a brightness distribution of the pixels included in the pupil region, wherein the threshold value is a value according to which the brightness distribution of the pixels included in the pupil region is separated into a high brightness class and a low brightness class, wherein the determination step comprises calculating a degree of separation, which is a ratio between an intra-class variance and an inter-class variance in the brightness distribution of the pixels included in the pupil region and setting the threshold value to a value according to which the degree of separation is maximized, and wherein, if the degree of separation is less than or equal to a predetermined value and the average of the brightness values of the pixels included in the pupil region is greater than or equal to the predetermined value, the correction step includes performing halation correction processing regardless of the result of the determination performed by the determination step.
-
-
10. A non-transitory computer readable storing medium recording an image processing program for causing a computer to perform a method comprising:
-
an image acquisition step of acquiring an input image; a region extraction step of extracting a pupil region, which is a region corresponding to an eye of a person, from the input image; a pixel extraction step of extracting a pixel from the pupil region whose brightness value is higher than a threshold value; a determination step of determining whether or not halation has occurred in the pupil region based on the result of extraction performed in the pixel extraction step; and a correction step of performing processing for correcting halation with respect to the pupil region, based on the result of determination performed in the determination step, wherein in the determination step, the threshold value is set based on a bias of a brightness distribution of the pixels included in the pupil region, wherein the threshold value is a value according to which the brightness distribution of the pixels included in the pupil region is separated into a high brightness class and a low brightness class, wherein determination step comprises calculating a degree of separation, which is a ratio between an intra-class variance and an inter-class variance in the brightness distribution of the pixels included in the pupil region and setting the threshold value to a value according to which the degree of separation is maximized, and wherein, if the degree of separation is less than or equal to a predetermined value and the average of the brightness values of the pixels included in the pupil region is greater than or equal to the predetermined value, the correction step includes performing halation correction processing regardless of the result of the determination performed by the determination step.
-
Specification