CN107863060B - Method and device for correcting image color - Google Patents
Method and device for correcting image color Download PDFInfo
- Publication number
- CN107863060B CN107863060B CN201711214244.XA CN201711214244A CN107863060B CN 107863060 B CN107863060 B CN 107863060B CN 201711214244 A CN201711214244 A CN 201711214244A CN 107863060 B CN107863060 B CN 107863060B
- Authority
- CN
- China
- Prior art keywords
- brightness
- interval
- color
- range
- initial
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000012937 correction Methods 0.000 claims abstract description 91
- 238000009826 distribution Methods 0.000 claims abstract description 26
- 235000019557 luminance Nutrition 0.000 claims description 61
- 238000012935 Averaging Methods 0.000 claims description 4
- 239000003086 colorant Substances 0.000 abstract description 13
- 238000003860 storage Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/2003—Display of colours
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/36—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
- G09G3/3607—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals for displaying colours or for displaying grey scales with a specific pixel layout, e.g. using sub-pixels
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
- G09G2320/0242—Compensation of deficiencies in the appearance of colours
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Image Processing (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The embodiment of the application provides a method and a device for correcting image colors, relates to the technical field of display, and aims to solve the problem that under the condition that a hardware register memory is limited, the accuracy of image color correction is low due to insufficient dividing precision of a brightness interval. The method comprises the following steps: determining the color category of each pixel point in the input image; dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of pixel points in the brightness range of each color category in the input image; the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the density of the pixel points in the corresponding brightness interval; determining a color correction factor for each luminance interval of the luminance range for each color class; and respectively carrying out color correction on the color value of the pixel point under each brightness interval by using the color correction coefficient of each brightness interval.
Description
Technical Field
The present application relates to the field of display technologies, and in particular, to a method and an apparatus for correcting image color.
Background
With the development of optoelectronic and semiconductor technologies, displays (such as Liquid Crystal Displays (LCDs), projectors, etc.) are widely used in various aspects of production and life. In the manufacturing process of the display screen of the existing display, due to the influences of external environment, self materials, defects on the hardware circuit structure of the display screen and the like, the display parameters of each display screen are different, so that when different display screens display the same image, displayed colors are different, namely, the displayed image of the display screen has the defects of low contrast, unclear image and the like, and the colors are not uniform.
Currently, the mainstream color correction scheme: the method is to carry out color correction of different degrees on pixel points with different brightness, generally, the brightness can be divided into 4 to 5 grades, and the division is carried out according to the brightness and darkness of the brightness, and the division of the brightness interval is not fine, so that the color correction of the individual detail brightness cannot be carried out accurately. Although the problem can be solved by improving the dividing precision of the brightness, under the condition that the memory of the hardware register is limited, the improvement of the dividing precision occupies a large amount of memory of the register, so that the system runs slowly, and the icon color correction efficiency is reduced.
Disclosure of Invention
Embodiments of the present application provide a method and an apparatus for image color correction, so as to solve the problem that, under the condition that a hardware register memory is limited, the accuracy of image color correction is low due to insufficient partition precision of a brightness interval.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a method for color correction of an image is provided, including:
determining the color category of each pixel point in the input image;
dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of the pixels in the brightness range of the pixels under each color category in the input image; the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the density of the pixel points in the corresponding brightness interval;
determining a color correction factor for each luminance interval of the luminance range for each color class;
and respectively carrying out color correction on the color value of the pixel point under each brightness interval by using the color correction coefficient of each brightness interval.
In a second aspect, there is provided an apparatus for color correction of an image, comprising:
the determining module is used for determining the color category of each pixel point in the input image;
the dividing module is used for dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of the pixel points in the brightness range of the pixel points under each color category in the input image; the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the density of the pixel points in the corresponding brightness interval;
the determining module is further configured to determine a color correction coefficient for each brightness interval of the brightness range of each color category;
and the correction module is used for respectively carrying out color correction on the color value of the pixel point in each brightness interval by using the color correction coefficient of each brightness interval.
In a third aspect, an apparatus for color correction of an image is provided, comprising: a processor and a memory; wherein the memory is configured to store computer executable code for controlling the processor to perform the method of the first aspect.
In a fourth aspect, a television is provided, which comprises the apparatus for image color correction of the third aspect.
The color correction coefficients configured for the pixel points of different colors are inconsistent. Therefore, according to the scheme provided by the application, the color category to which each pixel point belongs is determined by identifying the pixel points in the input image, then the brightness range of each color category is divided into at least two brightness intervals according to the density distribution of the pixel points in the brightness range of the pixel points under each color category, the color correction coefficient of each brightness interval of the brightness range of each color category is determined, and finally, the color correction coefficient of each brightness interval of the brightness range of each color category is utilized to perform color correction on the color value of the pixel points under each brightness interval. Because the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the density of the pixel points in the corresponding brightness interval, the brightness distribution can occupy a larger area (more pixel points under unit brightness), and more precise brightness division can be carried out, namely, the corresponding brightness interval range is smaller, otherwise, the brightness distribution can occupy a smaller area (more pixel points under unit brightness), and the corresponding brightness interval range is larger, so that under the condition of not occupying a large amount of hardware register memory, the color correction of different degrees can be carried out on the pixel points with different brightness and color details of different colors.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for image color correction according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a luminance distribution histogram according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a luminance interval division according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of an image color correction apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another image color correction apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions provided by the embodiments of the present application will be described below with reference to the drawings of the specification of the embodiments of the present application. It is to be understood that only a few embodiments, but not all embodiments of the present application are described. It should be noted that some or all of the technical features of any of the technical solutions provided below may be combined and used to form a new technical solution without conflict.
The execution subject of the method for image color correction provided by the embodiment of the application can be an apparatus for image color correction or a display device for executing the method for image color correction. The image color correction device may be a Central Processing Unit (CPU) in the display device, or may be a control Unit or a functional module in the display device.
An embodiment of the present application provides an image color correction method, as shown in fig. 1, the method specifically includes the following steps:
s101, determining the color category of each pixel point in the input image.
In this application, the input image may be a region where the non-full brightness of the image is uniformly distributed, such as: the brightness of the image is distributed in a concentrated mode, and the brightness of the image is higher than that of the image, or the brightness of the image is middle or lower than that of the image.
Wherein, the color categories include: red (Red), Green (Green), Blue (Blue), Cyan (Cyan), Magenta (Magenta-violet Red), Yellow (Yellow), Dark Skin, Light Skin, etc. Of course, the above-mentioned color is only an example, and if the division is more fine, more color examples can be added. Therefore, when the color to which the pixel point belongs is identified, the color identification method can be determined according to the specific proportion of each primary color value in the three primary color values of the pixel point.
It should be noted that, because the colors of the existing pixels are composed of R, G, B with different ratios, for example, for 100% amplitude red in Full Range, the ratios of R, G, B are 255, 0, and for 75% amplitude red in Limit Range, the ratios of R, G, B are 180, 16, and 16. The image signals of the input image may be image signals of various formats (e.g., RGB format, HSV format, YCbCr format, YUV format, etc.), so that the color values of the pixels in the input image need to be converted into RGB values before performing a 1. For example, the conversion equation between the Y, U, V signal and the R, G, B signal is as follows: r ═ Y + 1.14V; G-Y-0.39U-0.58V; b ═ Y + 2.03U.
Generally, the colors of the pixels can be formed by R, G, B with different ratios, as shown in table 1 below.
R | G | B | |
Red | 180 | 16 | 16 |
Green | 16 | 180 | 16 |
Blue | 16 | 16 | 180 |
|
16 | 180 | 180 |
Magenta | 180 | 16 | 180 |
Yellow | 180 | 180 | 16 |
Dark Skin | 115 | 86 | 73 |
Light Skin | 182 | 145 | 128 |
TABLE 1
S102, dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of pixel points in the brightness range of each color category in the input image.
Where brightness refers to the relative shade of a color, typically measured in percentages from 0% (black) to 100% (white). When the brightness of the image is increased, the image will appear bright or dazzling, and when the brightness is lower, the image will appear dark. The density distribution of the pixels in the brightness interval includes: the number of the pixel points under each brightness in the brightness interval and the density distribution of the pixel points in the brightness interval can represent the density distribution of the pixel points in the brightness interval. The difference between the upper limit and the lower limit of each brightness interval in the brightness range of the pixel under one color category is inversely proportional to the density of the pixel in the corresponding brightness interval, that is, the wider the brightness interval, the smaller the number of the pixels with unit brightness, and conversely, the narrower the brightness interval, the larger the number of the pixels with unit brightness.
For example, before dividing the luminance interval, the luminance value corresponding to each pixel point needs to be calculated according to the color value of each pixel point in the input image, for example, the luminance formula of the RGB signal is: y is 0.299R +0.587G +0.114B, and is then based on the luminance values of all the pixel points in the input image.
S103, determining a color correction coefficient of each brightness interval of the brightness range of each color category.
For example, because the pixel points with similar colors have a low degree of distinction, if the pixel points are not distinguished and the same color correction coefficient is used for color correction, the color details cannot be adjusted. Therefore, according to the method and the device, color identification is carried out on the pixel points in the input image, all the pixel points in the input image are classified according to different colors, and brightness division is carried out on each type of color, so that further brightness division can be carried out on the pixel points with similar colors, different color correction coefficients are configured on the pixel points with different brightness and with similar colors, and the color correction coefficients of the pixel points with different brightness intervals under different color categories are different. Of course, in order to obtain a better final color shift effect, a color correction coefficient may be set for each pixel point under each brightness of each color type.
In one example, a color correction coefficient table may be set in advance for each color class, and the color correction coefficient table corresponding to each color contains color correction coefficients corresponding to different colors of the color. Based on these color correction coefficient tables, the color correction coefficient for each luminance interval of the luminance range for each color class can be determined.
For example, when determining the color correction coefficient table corresponding to each color, the color correction coefficient corresponding to each brightness may be calculated by extracting the color value of the color in the color category at different brightness. For example, taking red as an example, the corresponding color correction coefficients can be calculated according to R, G, and B values corresponding to red with different brightness, and as shown in table 2 below, if the adjustment is performed in HSV color space, the adjustment coefficients corresponding to H, S, V can be calculated. Here, the H-correlation adjustment is a color phase adjustment, and S, V are saturation and brightness adjustments, respectively.
TABLE 2
Exemplarily, S103 specifically includes:
s103a, obtaining a color correction factor for each brightness in the brightness range of the first color category.
S103b, respectively averaging the color correction coefficients of all the luminances in each luminance interval of the luminance range to obtain the color correction coefficient of each luminance interval in the luminance range.
The first color category is one of a plurality of color categories of the input image.
Taking red as an example, for red with different brightness, assuming a range 20-40 of a brightness interval of the brightness range of red, color correction coefficients of all brightness with brightness values of 20-40 are determined from a look-up table of red LUT established in advance, and the color correction coefficients are summed and averaged to be used as color correction coefficients of the range 20-40.
And S104, respectively carrying out color correction on the color value of the pixel point in each brightness interval by using the color correction coefficient of each brightness interval.
For example, when determining the color correction coefficient corresponding to a certain pixel point S in the input image, the luminance value corresponding to the pixel point and the corresponding color category may be used as an index, the color correction coefficient corresponding to the luminance interval where the pixel point is located is determined from the color correction coefficient of each luminance interval in the luminance range of each color category obtained in S103, and then the original color value of the pixel point is weighted by using the color correction coefficient of the pixel point, so as to obtain a new color value of the pixel point.
Optionally, at S102, the following two implementation manners may be specifically implemented:
first implementation (taking the luminance range of the first color class as an example):
specifically, S102 specifically includes the following steps:
and B1, dividing the brightness in the brightness range of the first color category into N initial brightness intervals on average.
The initial brightness interval corresponds to an initial brightness, the initial brightness is the average brightness or the central brightness of the corresponding initial brightness interval, and the range of each initial brightness interval is the same.
And B2, selecting M-1 initial brightness intervals from the N initial brightness intervals according to the sequence of the number of the pixel points in each initial brightness interval.
Wherein M-1 is less than N.
And B3, dividing the brightness range of the first color type into M brightness sections by taking the initial brightness of the M-1 initial brightness sections as the brightness section boundary.
For example, assuming that N is 16 and the luminance range is 0 to 255, 0 to 255 are equally divided into 16, the total number of pixels per luminance is determined, then, as shown in fig. 2, 16 is taken as the number of groups (as 1 to 16 in fig. 2), the total number of pixels corresponding to each group of luminance is taken as the corresponding vertical stripe, a histogram of the luminance interval is made (as shown in fig. 2), 3 groups with the maximum number of total pixels are extracted from the extracted 1 to 16 according to the luminance distribution shown in the histogram shown in fig. 2, the luminances Y0, Y1 and Y2 are recorded, and finally, Y0, Y1 and Y2 are respectively taken as 3 region boundaries, and the luminance range is divided into 4 luminance intervals, as shown in fig. 3.
Second implementation (taking the luminance range of the first color class as an example):
specifically, S102 specifically includes the following steps:
and C1, dividing the brightness in the brightness range of the first color category into M-1 initial brightness intervals according to the preset brightness interval number M.
And C2, dividing the brightness range into M brightness intervals by taking the target brightness in each initial brightness interval as a boundary, wherein the target brightness is the brightness with the largest number of pixel points in the initial brightness interval.
For example, assume that M is 4 and the luminance ranges from 0 to 255.
1) Dividing 0-255 into 4 parts, and recording the dividing nodes as: point0, point1, point2, point 3.
2) Determine 4 boundaries of the luminance interval: y0, Y1, Y2, Y3;
y0 is the brightness corresponding to the maximum value of the number of the pixel points in the range of 0 to point 0;
y1 is the brightness corresponding to the maximum value of the number of the pixel points in the range from point0 to point 1;
y2 is the brightness corresponding to the maximum value of the number of the pixel points in the range from point1 to point 2;
y3 is the brightness corresponding to the maximum value of the number of the pixel points in the range from point2 to point 3.
The sample application identifies pixel points in an input image to determine the color category to which each pixel point belongs, then divides the brightness range of each color category into at least two brightness intervals according to the density distribution of the pixel points in the brightness range of each color category, determines the color correction coefficient of each brightness interval of the brightness range of each color category, and finally performs color correction on the color value of the pixel point in each brightness interval by using the color correction coefficient of each brightness interval of the brightness range of each color category. Because the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the density of the pixel points in the corresponding brightness interval, the brightness distribution can occupy a larger area (more pixel points under unit brightness), and more precise brightness division can be carried out, namely, the corresponding brightness interval range is smaller, otherwise, the brightness distribution can occupy a smaller area (more pixel points under unit brightness), and the corresponding brightness interval range is larger, so that under the condition of not occupying a large amount of hardware register memory, the color correction of different degrees can be carried out on the pixel points with different brightness and color details of different colors.
The following describes embodiments of the apparatus provided by embodiments of the present invention that correspond to the embodiments of the method provided above. It should be noted that, for the following explanation of the related contents in the embodiments of the apparatus, reference may be made to the above-mentioned embodiments of the method.
Fig. 4 shows a schematic diagram of a possible structure of the image color correction apparatus according to the above embodiment. The device includes: a determination module 21, a division module 22 and a correction module 23, wherein:
and the determining module 21 is configured to determine a color category of each pixel point in the input image.
The dividing module 22 is configured to divide the luminance range of each color category into at least two luminance sections according to density distribution of pixels in the luminance range of each color category in the input image; and the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the pixel point density in the corresponding brightness interval.
The determining module 22 is further configured to determine a color correction factor for each luminance interval of the luminance range of each color class.
And the correcting module 23 is configured to perform color correction on the color value of the pixel point in each brightness interval respectively by using the color correction coefficient in each brightness interval.
Optionally, the density distribution of the pixels in the brightness interval includes the number of pixels under each brightness in the brightness interval;
the dividing module 22 is specifically configured to:
averagely dividing the brightness in the brightness range of the first color category into N initial brightness intervals; one initial brightness interval corresponds to one initial brightness, and the initial brightness is the average brightness or the central brightness of the corresponding initial brightness interval;
selecting M-1 initial brightness intervals from the N initial brightness intervals according to the sequence of the number of the pixel points in each initial brightness interval; wherein M-1 is less than N;
and dividing the brightness range into M brightness intervals by taking the initial brightness of the M-1 initial brightness intervals as a boundary.
Optionally, the density distribution of the pixels in the brightness interval includes the number of pixels under each brightness in the brightness interval;
the dividing module 22 is specifically configured to:
averagely dividing the brightness in the brightness range of the first color type into M-1 initial brightness intervals according to the number M of the preset brightness intervals; the number of pixel points in each initial brightness interval is the same;
dividing the brightness range into M brightness intervals by taking the target brightness in each initial brightness interval as a boundary; and the target brightness is the brightness with the largest number of pixel points in the initial brightness interval.
Optionally, the determining module 21 is further configured to:
acquiring a color correction coefficient of each brightness in a brightness range of a first color category;
and respectively averaging the color correction coefficients of all the luminances in each luminance interval of the luminance range to obtain the color correction coefficient of each luminance interval in the luminance range.
Fig. 5 shows a schematic diagram of a possible structure of the image color correction apparatus according to the above embodiment, in the case of using an integrated unit. The device includes: a processor 31, a memory 32, a system bus 33, and a communication interface 34. The memory 31 is used for storing computer executable codes, the processor 31 is connected to the memory 32 through the system bus 33, when the apparatus is running, the processor 31 is used for executing the computer executable codes stored in the memory 32 to perform any one of the image color shifting methods provided by the embodiments of the present invention, for example, the apparatus used by the processor 31 for supporting image color shifting performs all the steps in fig. 1 and/or other processes used in the technology described herein, and the specific image color shifting method may refer to the following description and the related processes in the drawings, and is not described herein again.
Embodiments of the present invention also provide a storage medium, which may include a memory 32.
The embodiment of the invention also provides a television, which comprises the device for shifting the image color shown in fig. 5.
The processor 31 may be a single processor or may be a collective term for a plurality of processing elements. For example, the processor 31 may be a Central Processing Unit (CPU). The processor 31 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components or the like, which may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the present disclosure. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor 31 may also be a dedicated processor that may include at least one of a baseband processing chip, a radio frequency processing chip, and the like. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. Further, the dedicated processor may also include chips having other dedicated processing functions of the apparatus.
The steps of the method described in connection with the present disclosure may be embodied in hardware or may be embodied in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable hard disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a terminal device. Of course, the processor and the storage medium may reside as discrete components in a terminal device.
The system bus 33 may include a data bus, a power bus, a control bus, a signal status bus, and the like. For clarity of illustration in this embodiment, the various buses are illustrated in FIG. 5 as system bus 33.
The communication interface 34 may specifically be a transceiver on the device. The transceiver may be a wireless transceiver. For example, the wireless transceiver may be an antenna of the device, or the like. The processor 31 is configured to perform data interaction with other devices through the communication interface 34, for example, if the apparatus is a module or a component in the terminal device, the apparatus is configured to perform data interaction with other modules in the terminal device, for example, the apparatus performs data interaction with a display module of the terminal device, and controls the display module to display images before and after correction.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Finally, it should be noted that: the above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.
Claims (8)
1. A method of image color correction, comprising:
determining the color category of each pixel point in the input image;
dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of the pixels in the brightness range of the pixels under each color category in the input image; the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the density of the pixel points in the corresponding brightness interval;
determining a color correction factor for each luminance interval of the luminance range for each color class;
respectively carrying out color correction on the color value of the pixel point under each brightness interval by using the color correction coefficient of each brightness interval;
the density distribution of the pixels in the brightness interval comprises the number of the pixels under each brightness in the brightness interval;
the dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of the pixels in the brightness range of the pixels under each color category in the input image comprises:
averagely dividing the brightness in the brightness range of the first color category into N initial brightness intervals; one initial brightness interval corresponds to one initial brightness, and the initial brightness is the average brightness or the central brightness of the corresponding initial brightness interval;
selecting M-1 initial brightness intervals from the N initial brightness intervals according to the sequence of the number of the pixel points in each initial brightness interval; wherein M-1 is less than N;
and dividing the brightness range into M brightness intervals by taking the initial brightness of the M-1 initial brightness intervals as a boundary.
2. The method of claim 1, wherein the density distribution of the pixels in the luminance interval comprises the number of pixels at each luminance in the luminance interval;
the dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of the pixels in the brightness range of the pixels under each color category in the input image comprises:
averagely dividing the brightness in the brightness range of the first color type into M-1 initial brightness intervals according to the number M of the preset brightness intervals; the number of pixel points in each initial brightness interval is the same;
dividing the brightness range into M brightness intervals by taking the target brightness in each initial brightness interval as a boundary; and the target brightness is the brightness with the largest number of pixel points in the initial brightness interval.
3. The method of claim 1, wherein said determining the color correction factor for each luminance interval of the luminance range for each color class comprises:
acquiring a color correction coefficient of each brightness in a brightness range of a first color category;
and respectively averaging the color correction coefficients of all the luminances in each luminance interval of the luminance range to obtain the color correction coefficient of each luminance interval in the luminance range.
4. An apparatus for color correction of an image, comprising:
the determining module is used for determining the color category of each pixel point in the input image;
the dividing module is used for dividing the brightness range of each color category into at least two brightness intervals according to the density distribution of the pixel points in the brightness range of the pixel points under each color category in the input image; the upper and lower limit difference value of each brightness interval in a brightness range is inversely proportional to the density of the pixel points in the corresponding brightness interval;
the determining module is further configured to determine a color correction coefficient for each brightness interval of the brightness range of each color category;
the correction module is used for respectively carrying out color correction on the color value of the pixel point in each brightness interval by using the color correction coefficient of each brightness interval;
the density distribution of the pixels in the brightness interval comprises the number of the pixels under each brightness in the brightness interval;
the dividing module is specifically configured to:
averagely dividing the brightness in the brightness range of the first color category into N initial brightness intervals; one initial brightness interval corresponds to one initial brightness, and the initial brightness is the average brightness or the central brightness of the corresponding initial brightness interval;
selecting M-1 initial brightness intervals from the N initial brightness intervals according to the sequence of the number of the pixel points in each initial brightness interval; wherein M-1 is less than N;
and dividing the brightness range into M brightness intervals by taking the initial brightness of the M-1 initial brightness intervals as a boundary.
5. The apparatus of claim 4, wherein the density distribution of pixels in the luminance interval comprises the number of pixels at each luminance in the luminance interval;
the dividing module is specifically configured to:
averagely dividing the brightness in the brightness range of the first color type into M-1 initial brightness intervals according to the number M of the preset brightness intervals; the number of pixel points in each initial brightness interval is the same;
dividing the brightness range into M brightness intervals by taking the target brightness in each initial brightness interval as a boundary; and the target brightness is the brightness with the largest number of pixel points in the initial brightness interval.
6. The apparatus of claim 4, wherein the determining module is further configured to:
acquiring a color correction coefficient of each brightness in a brightness range of a first color category;
and respectively averaging the color correction coefficients of all the luminances in each luminance interval of the luminance range to obtain the color correction coefficient of each luminance interval in the luminance range.
7. An apparatus for color correction of an image, comprising: a processor and a memory; wherein the memory is for storing computer executable code for controlling the processor to perform the method of any one of claims 1 to 3.
8. A television set comprising the apparatus for color correcting an image according to claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711214244.XA CN107863060B (en) | 2017-11-28 | 2017-11-28 | Method and device for correcting image color |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711214244.XA CN107863060B (en) | 2017-11-28 | 2017-11-28 | Method and device for correcting image color |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107863060A CN107863060A (en) | 2018-03-30 |
CN107863060B true CN107863060B (en) | 2021-03-05 |
Family
ID=61703604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711214244.XA Active CN107863060B (en) | 2017-11-28 | 2017-11-28 | Method and device for correcting image color |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107863060B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109360229B (en) * | 2018-10-31 | 2020-11-17 | 歌尔光学科技有限公司 | Laser projection image processing method, device and equipment |
CN109671399B (en) * | 2018-12-11 | 2020-08-18 | 惠科股份有限公司 | Driving method and driving system of display module and display device |
CN109785248A (en) * | 2018-12-19 | 2019-05-21 | 新绎健康科技有限公司 | One kind is for the corrected method and system of color of image |
CN109902587B (en) * | 2019-01-29 | 2021-10-08 | 维沃移动通信有限公司 | Image processing method and device, mobile terminal and storage medium |
CN111861893B (en) * | 2019-04-24 | 2024-04-09 | 浙江宇视科技有限公司 | Method, system, equipment and computer medium for eliminating false color edges of image |
CN113763278B (en) * | 2021-09-10 | 2024-07-16 | 昆山丘钛微电子科技股份有限公司 | Image correction method and device |
CN116033133B (en) * | 2021-10-22 | 2024-05-17 | 广州视源电子科技股份有限公司 | Color correction method, storage medium and related device |
CN116092423A (en) * | 2022-09-23 | 2023-05-09 | 昇显微电子(苏州)股份有限公司 | Color correction method and device for display panel |
CN117198220B (en) * | 2023-11-07 | 2024-01-12 | 惠科股份有限公司 | Driving method and device of display panel, display module and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622638A (en) * | 2004-12-27 | 2005-06-01 | 北京中星微电子有限公司 | Image brightness correcting method of video monitoring system |
CN1873771A (en) * | 2006-03-31 | 2006-12-06 | 深圳创维-Rgb电子有限公司 | Method of displaying color for optimizing display device |
CN101996614A (en) * | 2009-08-25 | 2011-03-30 | 康佳集团股份有限公司 | Full-screen color correction method for LED display and implementation system thereof |
CN103559862A (en) * | 2013-11-11 | 2014-02-05 | 西安诺瓦电子科技有限公司 | Partition zone correcting method for LED display screen |
CN103617792A (en) * | 2013-11-14 | 2014-03-05 | 天津三星电子有限公司 | Method for adjusting image display of display terminal and display terminal |
CN104580925A (en) * | 2014-12-31 | 2015-04-29 | 安科智慧城市技术(中国)有限公司 | Image brightness controlling method, device and camera |
CN107257454A (en) * | 2017-06-29 | 2017-10-17 | 青岛海信电器股份有限公司 | A kind of method, device and the display device of image color skew |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100289811A1 (en) * | 2009-05-12 | 2010-11-18 | Shing-Chia Chen | Dynamic Backlight Control System and Method with Color-Temperature Compensation |
-
2017
- 2017-11-28 CN CN201711214244.XA patent/CN107863060B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622638A (en) * | 2004-12-27 | 2005-06-01 | 北京中星微电子有限公司 | Image brightness correcting method of video monitoring system |
CN1873771A (en) * | 2006-03-31 | 2006-12-06 | 深圳创维-Rgb电子有限公司 | Method of displaying color for optimizing display device |
CN101996614A (en) * | 2009-08-25 | 2011-03-30 | 康佳集团股份有限公司 | Full-screen color correction method for LED display and implementation system thereof |
CN103559862A (en) * | 2013-11-11 | 2014-02-05 | 西安诺瓦电子科技有限公司 | Partition zone correcting method for LED display screen |
CN103617792A (en) * | 2013-11-14 | 2014-03-05 | 天津三星电子有限公司 | Method for adjusting image display of display terminal and display terminal |
CN104580925A (en) * | 2014-12-31 | 2015-04-29 | 安科智慧城市技术(中国)有限公司 | Image brightness controlling method, device and camera |
CN107257454A (en) * | 2017-06-29 | 2017-10-17 | 青岛海信电器股份有限公司 | A kind of method, device and the display device of image color skew |
Also Published As
Publication number | Publication date |
---|---|
CN107863060A (en) | 2018-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107863060B (en) | Method and device for correcting image color | |
CN110570380B (en) | Image processing method and device for electronic ink screen and electronic ink screen | |
US11270657B2 (en) | Driving method, driving apparatus, display device and computer readable medium | |
CN101378514B (en) | System and method for enhancing saturation of RGBW image signal | |
US7983506B2 (en) | Method, medium and system processing image signals | |
TWI689206B (en) | Image processing device and auto white balancing method | |
US11263987B2 (en) | Method of enhancing contrast and a dual-cell display apparatus | |
WO2019119794A1 (en) | Driving method and driving apparatus for display apparatus | |
CN105047145A (en) | Backlight brightness control method, backlight brightness control device and display terminal | |
CN107408367A (en) | It is a kind of to correct display screen uneven method, apparatus and system | |
CN107221306A (en) | Method, device and the display device of brightness of image in correction splicing device screen | |
US20140267826A1 (en) | Apparatus and techniques for image processing | |
WO2019119791A1 (en) | Driving method and driving apparatus for display apparatus | |
US11308901B2 (en) | Pixel driving method, pixel driving apparatus and computer device | |
US20210193063A1 (en) | Array substrate and display panel | |
CN107346653A (en) | A kind of GAMMA curves adjusting process and device based on deep learning | |
CN108337496A (en) | White balancing treatment method, processing unit, processing equipment and storage medium | |
CN107863084A (en) | Driving method and driving device of display device | |
CN107862671A (en) | A kind of processing method of image, device and television set | |
US20180366073A1 (en) | Grayscale voltage debugging method and device, and display device | |
CN107257454B (en) | A kind of method, apparatus and display equipment of image color offset | |
CN110490838B (en) | Method and device for processing boundaries of areas with different resolutions of display panel | |
CN111785224A (en) | Brightness driving method | |
US20240347021A1 (en) | Image quality adjusting method and assembly, display system and computer readable medium | |
CN107205142B (en) | A kind of method, apparatus and display equipment of image color offset |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant after: Hisense Visual Technology Co., Ltd. Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |