COLOR CORRECTION METHOD AND IMAGE CORRECTION APPARATUS
20230239444 · 2023-07-27
Assignee
Inventors
Cpc classification
H04N9/646
ELECTRICITY
International classification
Abstract
A color correction method is applied to an image correction apparatus having an image sensor, and includes searching a color deviation area within a detection image, analyzing the detection image to estimate a correction color value of the color deviation area, and calibrating the color deviation area by the correction color value to generate a calibrated detection image without color deviation.
Claims
1. A color correction method applied to an image sensor, comprising: searching a color deviation area within a detection image; analyzing the detection image to estimate a correction color value of the color deviation area; and calibrating the color deviation area by the correction color value to generate a calibrated detection image without color deviation.
2. The color correction method of claim 1, further comprising: analyzing color distribution of the detection image to estimate the correction color value.
3. The color correction method of claim 1, further comprising: identifying a specific object within the detection image via an object identification technique; determining whether the color deviation area conforms to a pattern range of the specific object; and analyzing color distribution of the specific object to estimate the correction color value when the color deviation area conforms to the pattern range.
4. The color correction method of claim 3, further comprising: analyzing color distribution of the detection image to estimate the correction color value when the color deviation area does not conform to the pattern range.
5. The color correction method of claim 1, further comprising: establishing a mask by removing pixel values of the color deviation area; and filling the mask via the correction color value to generate the calibrated detection image.
6. The color correction method of claim 1, further comprising: acquiring a plurality of coordinates of the color deviation area; and replacing initial pixel values of the plurality of coordinates by the correction color value to generate the calibrated detection image.
7. An image correction apparatus, comprising: an image sensor adapted to acquire a detection image; and an operation processor electrically connected to the image sensor, the operation processor being adapted to search a color deviation area within a detection image, analyze the detection image to estimate a correction color value of the color deviation area, and calibrate the color deviation area by the correction color value to generate a calibrated detection image without color deviation.
8. The image correction apparatus of claim 7, wherein the operation processor is further adapted to analyze color distribution of the detection image to estimate the correction color value.
9. The image correction apparatus of claim 7, wherein the operation processor is further adapted to identify a specific object within the detection image via an object identification technique, determine whether the color deviation area conforms to a pattern range of the specific object, and analyze color distribution of the specific object to estimate the correction color value when the color deviation area conforms to the pattern range.
10. The image correction apparatus of claim 9, wherein the operation processor is further adapted to analyze color distribution of the detection image for estimating the correction color value when the color deviation area does not conform to the pattern range.
11. The image correction apparatus of claim 7, wherein the operation processor is further adapted to establish a mask by removing pixel values of the color deviation area, and fill the mask via the correction color value to generate the calibrated detection image.
12. The image correction apparatus of claim 7, wherein the operation processor is further adapted to acquire a plurality of coordinates of the color deviation area, and replace initial pixel values of the plurality of coordinates by the correction color value to generate the calibrated detection image.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0012]
[0013]
[0014]
DETAILED DESCRIPTION
[0015] Please refer to
[0016] Please refer to
[0017] For example, a region of interest (which is not shown in the figures) may be set within the detection image I in a manual manner or in an automatic manner, and step S100 may search the color deviation area F only within the region of interest, for decreasing an execution period and increasing an execution efficiency. The manual manner may represent a user can utilize an input interface, such as the mouse or the keyboard, to draw the region of interest in a specific area inside the detection image I. The specific area may be any area where the color fringe is frequently appeared, or any area where the color fringe is unallowably appeared. The automatic manner may represent that the image correction apparatus 10 can analyze usual or unusual motion of objects to decide the region of interest, or analyze any place where a specific object is appeared to define the region of interest inside the detection image I.
[0018] Then, step S102 can be executed to estimate a correction color value of the color deviation area F by analysis of the detection image I. In step S102, the color correction method can analyze color distribution of the whole detection image I, such as detecting variation of lines and colors in the detection image I via edge detection technique, and then estimate the correction color value of the color deviation area F in accordance with a trend of the color variation. Further, the color correction method may identify the specific object inside the detection image I via object identification technique, and determine whether a position of the color deviation area F conforms to a pattern range of the specific object. For example, if the specific object is the red chair put on the white floor, and the color deviation area F is located on the border between the red chair and the white floor, the color correction method can decide the color deviation area F conforms to the pattern range of the specific object, and then analyze the color distribution of the specific object to acquire the correction color value of the color deviation area F. If the color deviation area F does not conform to the pattern range of the specific object, which means the color deviation area F is not on the border between the red chair and the white floor, the color correction method can analyze the color distribution of the whole detection image I to acquire the correction color value of the color deviation area F.
[0019] After that, step S104 can be optionally executed to remove pixel values of the color deviation area F inside the detection image I to establish a mask M; the mask M is drawn by plaid to indicate empty pixels, as shown in
[0020] In conclusion, the color correction method and the image correction apparatus of the present invention can automatically search the color deviation area within the detection image, and calibrate the color deviation area via the correction color value to show expected color of the detection image. The present invention may utilize a machine learning algorithm or any available color analysis algorithm with the same or similar efficiency to search the color deviation area and acquire the correction color value of the color deviation area. Therefore, the color correction method of the present invention can automatically search and calibrate the color deviation area inside the detection image to recover the expected color of the detection image, so that the image correction apparatus and the matched image capturing apparatus can provide preferred color performance.
[0021] Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.