CN113347401B - Color cast correction method and electronic device using same - Google Patents

Color cast correction method and electronic device using same Download PDF

Info

Publication number
CN113347401B
CN113347401B CN202010097927.7A CN202010097927A CN113347401B CN 113347401 B CN113347401 B CN 113347401B CN 202010097927 A CN202010097927 A CN 202010097927A CN 113347401 B CN113347401 B CN 113347401B
Authority
CN
China
Prior art keywords
pixel values
compensation table
red
green
blue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010097927.7A
Other languages
Chinese (zh)
Other versions
CN113347401A (en
Inventor
郑珍如
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Inc
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to CN202010097927.7A priority Critical patent/CN113347401B/en
Publication of CN113347401A publication Critical patent/CN113347401A/en
Application granted granted Critical
Publication of CN113347401B publication Critical patent/CN113347401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Image Processing (AREA)

Abstract

A color cast correction method and an electronic device using the same are provided. The color shift correction method includes the following steps. A color image is received. The color image has a plurality of red pixel values, a plurality of green pixel values and a plurality of blue pixel values. Obtaining the brightest point of the original image. According to the position of the brightest point, a red compensation table, a green compensation table and a blue compensation table are adjusted in a translation mode. And compensating the red pixel values, the green pixel values and the blue pixel values according to the adjusted red compensation table, the adjusted green compensation table and the adjusted blue compensation table.

Description

Color cast correction method and electronic device using same
Technical Field
The present invention relates to a calibration method and an electronic device using the same, and more particularly, to a color shift calibration method and an electronic device using the same.
Background
With the technology improvement of image output devices, the requirements for color images are increasing. Conventional displays use a narrow color gamut, but in order to meet the requirements of colors and vividness recognizable to human eyes, various new displays also begin to use a wide color gamut.
However, this also extends some peripheral device matching issues. In conventional displays, the colors are not as saturated, but a wide gamut display will restore or emphasize some colors to saturation. Color defects, which are not visible on conventional displays, are thus manifested in wide-gamut displays, as is the case, for example, with color cast. In this case, if the color image captured by the camera is directly displayed by the wide-gamut display, the color shift problem will be obviously perceived. Especially in case of some optical axis deviation of the camera, the color shift will be more pronounced. Therefore, how to provide a color shift correction method has become one of the efforts of researchers.
Disclosure of Invention
The invention relates to a color cast correction method and an electronic device applying the same, wherein a compensation table is adjusted in a translation or numerical value modulation mode, so that a color image captured by a camera can be correctly compensated, and the color cast condition is further improved.
The invention provides a color cast correction method. The color shift correction method includes the following steps. A color image is received. The color image has a plurality of red pixel values, a plurality of green pixel values and a plurality of blue pixel values. Obtaining the brightest point of the original image. According to the position of the brightest point, a red compensation table, a green compensation table and a blue compensation table are adjusted in a translation mode. And compensating the red pixel values, the green pixel values and the blue pixel values according to the adjusted red compensation table, the green compensation table and the blue compensation table.
The present invention provides an electronic device. The electronic device includes a camera, a processing device and a wide color gamut display (WCG display). The camera is used for capturing a color image. The color image has a plurality of red pixel values, a plurality of green pixel values and a plurality of blue pixel values. The processing device comprises a brightness analysis unit, a translation unit and a compensation unit. The brightness analysis unit is used for obtaining a brightest point of the original image. The shift unit adjusts a red compensation table, a green compensation table and a blue compensation table in a shift manner according to the position of the brightest point. The compensation unit compensates the red pixel values, the green pixel values and the blue pixel values according to the adjusted red compensation table, the green compensation table and the blue compensation table. The wide color gamut display is used for displaying the compensated color image.
In order to better appreciate the above and other aspects of the present invention, reference will now be made in detail to the embodiments illustrated in the accompanying drawings.
Drawings
Fig. 1 is a schematic diagram of an electronic device according to an embodiment.
Fig. 2 is a flow chart of a color shift correction method according to an embodiment.
FIG. 3 is a schematic diagram of the steps of FIG. 2.
FIG. 4 is a schematic diagram illustrating an adjustment process of the red compensation table, the green compensation table and the blue compensation table according to an embodiment.
FIG. 5 is a schematic diagram of an electronic device according to another embodiment.
FIG. 6 is a flow chart showing a color shift correction method according to another embodiment.
FIG. 7 is a diagram illustrating the steps of FIG. 6.
FIG. 8 is a schematic diagram illustrating an adjustment process of the red compensation table, the green compensation table and the blue compensation table according to another embodiment.
Wherein:
100. 200: an electronic device;
110: a camera;
120. 220, and (2) a step of: a processing device;
122: a luminance analyzing unit;
123: a translation unit;
126: a compensation unit;
130: a wide color gamut display;
140: a memory;
224: a modulation unit;
c1, C2: a dashed circle;
IM, IM', IM ": a color image;
pb: a blue pixel value;
pg: a green pixel value;
pr: a red pixel value;
PT: the brightest spot;
s110, S120, S130, S150, S160, S240: a step of;
t1, T1', T1"': a red compensation table;
t2, T2', T2"': a green compensation table;
t3, T3', T3"': blue compensation table.
Detailed Description
Referring to fig. 1, a schematic diagram of an electronic device 100 according to an embodiment is shown. The electronic device 100 is, for example, a notebook computer, a tablet computer, a smart phone, or a head-mounted display device. The electronic device 100 includes a camera 110, a processing device 120, a wide color gamut display 130, and a memory 140. The camera 110 is, for example, a micro camera embedded in the housing or an external camera. The processing device 120 is, for example, a circuit board, a chip, a circuit, or a storage device storing a program. The wide color gamut display 130 is, for example, a display panel, an external screen, or a projector. The memory 140 is, for example, a non-volatile memory. The processing device 120 includes a luminance analyzing unit 122, a shifting unit 123 and a compensating unit 126. The luminance analyzing unit 122, the translating unit 123 and the compensating unit 126 are, for example, a circuit board, a chip, a circuit or a storage device storing a program.
The electronic device 100 of the embodiment can compensate the color image IM captured by the camera 110 to improve the color shift. As a result, the wide color gamut display 130 can display a higher quality picture. The operation of the above elements is further described in detail through a flowchart.
Referring to fig. 2 and fig. 3, fig. 2 is a flowchart illustrating a color shift correction method according to an embodiment, and fig. 3 is a schematic diagram illustrating steps of fig. 2. In step S110, as shown in fig. 3, the camera 110 captures a color image IM. The color image IM has a plurality of red pixel values Pr spread over the entire screen, a plurality of green pixel values Pg spread over the entire screen, and a plurality of blue pixel values Pb spread over the entire screen. Because the refractive indexes of the red light, the green light and the blue light are different, the light energies of the red pixel value Pr, the green pixel value Pg and the blue pixel value Pb at the center and the edge of the picture have a certain difference, and thus, the color cast is formed.
Next, in step S120, as shown in fig. 3, the luminance analyzing unit 122 analyzes the original image IM to obtain a brightest point PT of the original image IM. In one embodiment, the brightest point PT is the highest brightness value of the whole screen. The luminance value is a function of, for example, the red pixel value Pr, the green pixel value Pg, and the blue pixel value Pb. Therefore, the brightest point PT is not necessarily the highest of the red pixel values Pr, the green pixel value Pg, and the blue pixel value Pb.
Then, in step S130, the shifting unit 123 adjusts a red compensation table T1, a green compensation table T2 and a blue compensation table T3 in a shifting manner according to the position of the brightest point PT. As shown in fig. 1, the red color compensation table T1, the green color compensation table T2, and the blue color compensation table T3 are pre-stored in the memory 140, or externally input, for example.
Referring to fig. 4, a schematic diagram of an adjustment process of the red compensation table T1, the green compensation table T2, and the blue compensation table T3 according to an embodiment is shown. As shown in fig. 4, the red compensation values of the red compensation table T1 are decreased radially outward. The red offset value is, for example, a value of 0 to 1. The red compensation values of the red compensation table T1 are radially decremented by N levels outward. N is, for example, an integer greater than or equal to 10. For example, the red compensation values are, for example, 1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, and only a part of the red compensation table T1 is illustrated in fig. 4.
As shown in fig. 4, the red compensation table T1 is shifted such that a highest one of the red compensation values (indicated by the dashed circle C1) of the red compensation table T1 is overlapped with the position of the brightest point PT (indicated by the dashed circle C2) to obtain the red compensation table T1'. The shifting unit 123 fills the blank of the red color compensation table T1' to obtain the red color compensation table T1 ″.
The red color compensation table T1, the green color compensation table T2, and the blue color compensation table T3 are not identical. In this step, the green compensation values of the green compensation table T2 are also radially outwardly decremented by N levels, and the blue compensation values of the blue compensation table T3 are also radially outwardly decremented by N levels. The shift unit 123 also adjusts the green compensation table T2 and the blue compensation table T3 in a shifting manner to obtain a green compensation table T2 "and a blue compensation table T3".
Next, in step S150, as shown in fig. 1, the red compensation table T1", the green compensation table T2", and the blue compensation table T3 "are stored in the memory 140. The red color compensation table T1", the green color compensation table T2", and the blue color compensation table T3 "correspond to the camera 110. If the camera 110 is a compact camera embedded in the housing, the red compensation table T1", the green compensation table T2", and the blue compensation table T3 "can be permanently programmed into the memory 140.
Then, in step S150, as shown in fig. 3, the compensation unit 126 compensates the red pixel value Pr, the green pixel value Pg, and the blue pixel value Pb according to the adjusted red compensation table T1", the green compensation table T2", and the blue compensation table T3 "to obtain compensated red pixel values Pr ', green pixel values Pg', and blue pixel values Pb ', and further obtain a color image IM'. In this step, the compensation unit 126 can calculate the red pixel value Pr and the red compensation value of the red compensation table T1 ″ so that the red pixel value Pr 'at the edge obtains more compensation and the red pixel value Pr' at the position of the brightest point PT obtains less compensation. Likewise, the compensation unit 126 may operate the green pixel value Pg with the green compensation value of the green compensation table T2 ″ so that the green pixel value Pg 'at the edge obtains more compensation and the green pixel value Pg' at the position of the brightest point PT obtains less compensation. Likewise, the compensation unit 126 may operate the blue pixel value Pb with the blue compensation value of the blue compensation table T3 ″ such that the blue pixel value Pb 'at the edge obtains more compensation and the blue pixel value Pb' at the position of the brightest point PT obtains less compensation.
According to the above embodiment, the red compensation table T1", the green compensation table T2", and the blue compensation table T3 "have been shifted according to the position of the brightest point PT. Even if the camera 110 is slightly shifted, the electronic device 100 can still improve the color shift to obtain a color image IM' with better quality. When the color image IM' is displayed on the wide color gamut display 130, the occurrence of color shift is greatly reduced.
In another embodiment, in addition to adjusting the red color compensation table T1, the green color compensation table T2 and the blue color compensation table T3 in a shifting manner, the red color compensation table T1, the green color compensation table T2 and the blue color compensation table T3 can be further adjusted in a numerical modulation manner. Referring to fig. 5 and 6, fig. 5 is a schematic diagram illustrating an electronic device 200 according to another embodiment. FIG. 6 is a flow chart showing a color shift correction method according to another embodiment. In this embodiment, the processing device 220 of the electronic device 200 further includes a modulation unit 224, and in the color shift correction method, after the step S130, the step S240 is further performed.
In step S240, the modulating unit 224 adjusts the red compensation table T1", the green compensation table T2", and the blue compensation table T3 "in a manner of numerical modulation. Referring to fig. 7 and 8, fig. 7 is a schematic diagram illustrating steps of fig. 6, and fig. 8 is a schematic diagram illustrating an adjusting process of a red compensation table T1, a green compensation table T2, and a blue compensation table T3 according to another embodiment. In step S240, as shown in fig. 8, the modulating unit 224 modulates the red compensation value of the red compensation table T1", the green compensation value of the green compensation table T2" and the blue compensation value of the blue compensation table T3 "to obtain the modulated red compensation table T1 '", the modulated green compensation table T2' "and the modulated blue compensation table T3 '". As shown in fig. 7, the compensation unit 126 compensates the red pixel value Pr, the green pixel value Pg, and the blue pixel value Pb according to the modulated red compensation table T1' ", the modulated green compensation table T2 '", and the modulated blue compensation table T3' "to obtain the red pixel value Pr, the green pixel value Pg", and the blue pixel value Pb ", so as to obtain the compensated color image IM". In the present embodiment, the camera 110 performs shooting on a monochrome template, for example, and the modulation unit 124 performs modulation to make the corresponding compensated red pixel value Pr, the compensated green pixel value Pg, and the compensated blue pixel value Pb "in the color image IM" equal.
As shown in fig. 8, the modulation degrees of the red compensation value of the red compensation table T1"', the green compensation value of the green compensation table T2" ', and the blue compensation value of the blue compensation table T3"' are not completely the same.
According to the above embodiment, the red compensation table T1' ", the green compensation table T2 '" and the blue compensation table T3' "have been shifted according to the position of the brightest point PT and are modulated. Even if the camera 110 is slightly shifted or has a process deviation, the electronic device 100 can still improve the color deviation to obtain a color image IM "with better quality. When the color image IM "is displayed on the wide color gamut display 130, the occurrence of color shift is greatly reduced.
In summary, although the present invention has been described with reference to the above embodiments, the present invention is not limited thereto. Various modifications and adaptations of the present invention may occur to those skilled in the art without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be defined by the appended claims.

Claims (10)

1. A color shift correction method, comprising:
receiving a color image, wherein the color image has a plurality of red pixel values, a plurality of green pixel values and a plurality of blue pixel values;
obtaining a brightest point of the original image;
adjusting a red compensation table, a green compensation table and a blue compensation table in a translation mode according to the position of the brightest point; and
and compensating the red pixel values, the green pixel values and the blue pixel values according to the adjusted red compensation table, the adjusted green compensation table and the adjusted blue compensation table.
2. The method of claim 1, wherein in the step of adjusting the red, green and blue compensation tables in a shift manner according to the position of the brightest point, the red, green and blue compensation tables are shifted such that a highest value of the red, green and blue compensation values of the red, green and blue compensation tables is overlapped with the position of the brightest point.
3. The color shift correction method according to claim 1, further comprising:
and adjusting the red compensation table, the green compensation table and the blue compensation table in a numerical value modulation mode, wherein the red pixel values of the red compensation table, the green pixel values of the green compensation table and the blue pixel values of the blue compensation table are modulated so as to enable the corresponding red pixel values after compensation, the green pixel values after compensation and the blue pixel values after compensation to be equal.
4. The method of claim 3, wherein the modulation degree of the red pixel values, the green pixel values and the blue pixel values are not completely the same.
5. The method of claim 1, wherein the red pixel values of the red compensation table are radiatively decreased by N levels, the green pixel values of the green compensation table are radiatively decreased by N levels, the blue pixel values of the blue compensation table are radiatively decreased by N levels, and N is an integer greater than or equal to 10.
6. An electronic device, comprising:
a camera for capturing a color image having a plurality of red pixel values, a plurality of green pixel values and a plurality of blue pixel values;
a processing apparatus, comprising:
a brightness analysis unit for obtaining a brightest point of the original image;
a translation unit for adjusting a red compensation table, a green compensation table and a blue compensation table in a translation manner according to the position of the brightest point; and
a compensation unit for compensating the red pixel values, the green pixel values and the blue pixel values according to the adjusted red compensation table, the green compensation table and the blue compensation table; and
a wide color gamut display for displaying the compensated color image.
7. The electronic device as claimed in claim 6, wherein the shift unit shifts the red, green and blue compensation tables such that a highest value of the plurality of red compensation values of the red compensation table, a highest value of the plurality of green compensation values of the green compensation table and a highest value of the plurality of blue compensation values of the blue compensation table are overlapped at the position of the brightest point.
8. The electronic device of claim 6, wherein the processing device further comprises:
and the modulation unit modulates the red pixel values of the red compensation table, the green pixel values of the green compensation table and the blue pixel values of the blue compensation table so as to ensure that the red pixel values, the green pixel values and the blue pixel values after compensation are equal correspondingly.
9. The electronic device of claim 6, wherein the red pixel values of the red compensation table are radially decreased by N levels, the green pixel values of the green compensation table are radially decreased by N levels, and the blue pixel values of the blue compensation table are radially decreased by N levels, where N is an integer greater than or equal to 10.
10. The electronic device of claim 6, further comprising:
and the memory is used for storing the adjusted red compensation table, the adjusted green compensation table and the adjusted blue compensation table.
CN202010097927.7A 2020-02-18 2020-02-18 Color cast correction method and electronic device using same Active CN113347401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010097927.7A CN113347401B (en) 2020-02-18 2020-02-18 Color cast correction method and electronic device using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010097927.7A CN113347401B (en) 2020-02-18 2020-02-18 Color cast correction method and electronic device using same

Publications (2)

Publication Number Publication Date
CN113347401A CN113347401A (en) 2021-09-03
CN113347401B true CN113347401B (en) 2023-01-17

Family

ID=77466898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010097927.7A Active CN113347401B (en) 2020-02-18 2020-02-18 Color cast correction method and electronic device using same

Country Status (1)

Country Link
CN (1) CN113347401B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150296193A1 (en) * 2012-05-31 2015-10-15 Apple Inc. Systems and methods for rgb image processing
CN110459176A (en) * 2019-08-16 2019-11-15 合肥工业大学 A kind of gamut conversion method of displayer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9049410B2 (en) * 2009-12-23 2015-06-02 Samsung Display Co., Ltd. Color correction to compensate for displays' luminance and chrominance transfer characteristics

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150296193A1 (en) * 2012-05-31 2015-10-15 Apple Inc. Systems and methods for rgb image processing
CN110459176A (en) * 2019-08-16 2019-11-15 合肥工业大学 A kind of gamut conversion method of displayer

Also Published As

Publication number Publication date
CN113347401A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
US7453475B2 (en) Optical display device, program for controlling the optical display device, and method of controlling the optical display device
US20160033795A1 (en) Testing device, method thereof, display device and display method thereof
US8174626B2 (en) Apparatus and method for correcting images displayed by a plurality of image apparatus
KR101697570B1 (en) Methods and systems for displays with chromatic correction with differing chromatic ranges
US20080204469A1 (en) Color Transformation Luminance Correction Method and Device
US10440337B2 (en) Projection apparatus, information processing apparatus, and control methods thereof
US20090009525A1 (en) Color Adjustment Device and Method
US20080170031A1 (en) Method for performing chromatic adaptation while displaying image, and corresponding display circuit and device
RU2446611C1 (en) Image display device, image display method and image processing device
US20080266315A1 (en) Method and apparatus for displaying images having wide color gamut
CN108737806B (en) Projector color correction method and device and computer storage medium
CN111510693A (en) Projection system and image color correction method
WO2006085274A2 (en) Method of displaying an image and correspond image-display system
CN109120859A (en) A kind of image data processing device and capture apparatus, display system
JP4333421B2 (en) Video display device
US20070076276A1 (en) Color optimization of displayed image for PC projectors
CN113347401B (en) Color cast correction method and electronic device using same
WO2008072162A2 (en) Video processing device and method of color gamut mapping
US9208749B2 (en) Electronic device and method for enhancing readability of an image thereof
US11509874B2 (en) Video projector and video display method
WO2020111164A1 (en) Display device, display system, and image display method
US10506209B2 (en) Image output control device, image output control method, image output system, and recording medium
TWI736064B (en) Color shading correction method and electronic device using same
CN105976343B (en) Picture exposure correction method and device and intelligent equipment
CN112614455A (en) Display screen color temperature drift compensation method, device and system and display control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant