WO2021197213A1 - 显示器调色方法及装置、电子设备、存储介质 - Google Patents

显示器调色方法及装置、电子设备、存储介质 Download PDF

Info

Publication number
WO2021197213A1
WO2021197213A1 PCT/CN2021/083124 CN2021083124W WO2021197213A1 WO 2021197213 A1 WO2021197213 A1 WO 2021197213A1 CN 2021083124 W CN2021083124 W CN 2021083124W WO 2021197213 A1 WO2021197213 A1 WO 2021197213A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
rgb data
data
rgb
original
Prior art date
Application number
PCT/CN2021/083124
Other languages
English (en)
French (fr)
Inventor
王显
冈村政和
Original Assignee
京东方科技集团股份有限公司
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 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Priority to US17/787,106 priority Critical patent/US11967297B2/en
Publication of WO2021197213A1 publication Critical patent/WO2021197213A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control 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
    • G09G5/06Control 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 using colour palettes, e.g. look-up tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0242Compensation of deficiencies in the appearance of colours
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/06Colour space transformation

Definitions

  • the present disclosure relates to the field of data processing technology, and in particular to a color toning method of a display, a display device, electronic equipment, and a non-transitory computer-readable storage medium.
  • Ultra-high-resolution monitors have been pursuing high-quality display effects, and more and more monitors have begun to develop their own 3D LUT (display look-up table) for color adjustment.
  • 3D LUT display look-up table
  • Existing high-resolution professional monitors mostly use 3D LUT technology for image quality adjustment to map each point of the image. This takes up a lot of resources on the hardware and the cost is also very high.
  • a method for color adjustment of a display includes: obtaining original RGB data of pixels of a screen; calling a display lookup table to determine whether there is RGB mapping data corresponding to the original RGB data in the display lookup table; if If there is RGB mapping data corresponding to the original RGB data in the display look-up table, the RGB mapping data corresponding to the original RGB data is used for screen toning; if the display look-up table does not exist and the original RGB mapping data For the RGB mapping data corresponding to the RGB data, the original RGB data, the multiple sets of selected RGB data, and the RGB mapping data corresponding to each set of selected RGB data are used to calculate the original RGB data in combination with a predetermined interpolation algorithm Corresponding RGB mapping data, and use the calculated RGB mapping data for screen toning.
  • the display look-up table includes multiple sets of selected RGB data and RGB mapping data corresponding to each set of selected RGB data; the selected RGB data is within the value range of the original RGB data corresponding to the display, according to a preset method Selected part of RGB data.
  • the color toning method further includes: determining the value range N corresponding to the R value, G value, and B value contained in the original RGB data according to the data size of the signal source of the display; Value interval, take M R values from the R value range N as the selected R value, according to the second value interval, take O G values from the G value range N as the selected G value, According to the third value interval, take out P B values from the value range N of B values as the selected B value; obtain the M ⁇ O ⁇ P group of selected RGB data; calculate the RGB mapping data of each group of selected RGB data ; According to the M ⁇ O ⁇ P group of selected RGB data and the RGB mapping data corresponding to each group of selected RGB data, the display look-up table is established.
  • the size of the first value interval is 2 to the a power
  • the size of the second value interval is 2 to the b power
  • the size of the third value interval is 2 c power; where a, b, and c are all positive integers, and the first value interval, the second value interval, and the third value interval are all smaller than the value range N.
  • the values of the first value interval, the second value interval, and the third value interval are equal.
  • the RGB mapping data includes: according to the original RGB data and the multiple sets of selected RGB data, it is determined that the R value in the original RGB data is in the range of M selected R values, and the G value is in 0
  • the segment in the selected G value and the segment in which the B value is in the P selected B values; according to the smaller of the segments in which the R value, G value, and B value in the original RGB data are located Determine the first target RGB data; determine the second target RGB data according to the larger endpoint of the section in which the R value, G value, and B value in the original RGB data are located, and combine the original RGB data, RGB mapping data of the first target RGB data, and RGB mapping data of the second target RGB data, using the predetermined interpolation algorithm to calculate the RGB mapping data corresponding to the original RGB data.
  • the predetermined interpolation algorithm is a linear difference algorithm.
  • the calculation of the RGB mapping data of each set of selected RGB data includes: for each set of selected RGB data, combined with a first conversion formula to calculate the corresponding tristimulus value; and according to the calculated tristimulus Value, combined with the second conversion formula, to obtain the RGB mapping data corresponding to each group of selected RGB data.
  • the first conversion formula is: the tristimulus value is equal to the first conversion matrix multiplied by RGB data; the second conversion formula is: the tristimulus value is equal to the second conversion matrix multiplied by the RGB mapping data.
  • the calculation method of the first conversion matrix includes: obtaining the color coordinates of the three primary colors of red, green and blue specified in a preselected color space standard; The color coordinates of white; according to the color coordinates of the three primary colors of red, green and blue and the color coordinates of the white, combined with a first conversion formula, a first conversion matrix is calculated.
  • the calculation method of the second conversion matrix includes: detecting the color coordinates of red, green, blue and white when each set of selected RGB data is used to light up the screen of the display; and for each set of selected RGB data , According to the corresponding measured red, green, blue and white color coordinates, combined with the second conversion formula, the corresponding second conversion matrix is calculated.
  • the toning method further includes: outputting the toned picture from the display.
  • a color toning device for a display which includes an input component, a memory, and a processor.
  • the input component is configured to receive the original RGB data of the pixels of the screen.
  • the memory stores a display lookup table.
  • the processor is configured to call a display look-up table to determine whether there is RGB mapping data corresponding to the original RGB data in the display look-up table; there is RGB corresponding to the original RGB data in the display look-up table In the case of mapping data, use the RGB mapping data corresponding to the original RGB data for screen toning; when the display look-up table does not have the RGB mapping data corresponding to the original RGB data, use the The original RGB data, the multiple sets of selected RGB data, and the RGB mapping data corresponding to each set of selected RGB data are combined with a predetermined interpolation algorithm to calculate the RGB mapping data corresponding to the original RGB data, and use the calculated RGB Map data for screen toning.
  • the display look-up table includes multiple sets of selected RGB data and RGB mapping data corresponding to each set of selected RGB data; the selected RGB data is within the value range of the original RGB data corresponding to the display, according to a preset method The selected part of the original RGB data.
  • the processor is further configured to determine the value range N corresponding to the R value, G value, and B value contained in the original RGB data according to the data size of the signal source of the display; Value interval, take out M R values from the R value range N as the selected R value, according to the second value interval, take out O G values from the G value range N as the selected G value ,According to the third value interval, take out P B values from the value range N of B values as the selected B value; get the M ⁇ O ⁇ P group of selected RGB data; calculate the RGB mapping of each group of selected RGB data Data; According to the M ⁇ O ⁇ P group selected RGB data and its corresponding RGB mapping data, the display look-up table is established.
  • the processor is configured to determine, based on the original RGB data and the multiple sets of selected RGB data, that the R value in the original RGB data is in the region of the M selected R values. Segment, G value in the 0 selected G value segment, and B value in the P selected B value segment; according to the R value, G value, and B value in the original RGB data.
  • Two target RGB data combining the original RGB data, the RGB mapping data of the first target RGB data, and the RGB mapping data of the second target RGB data, using the predetermined interpolation algorithm to calculate the RGB mapping data corresponding to the original RGB data.
  • the processor is further configured to: obtain the color coordinates of the three primary colors of red, green and blue specified in the preselected color space standard; obtain the white color of the display when the screen is lit white Coordinates; according to the color coordinates of the three primary colors of red, green and blue and the color coordinates of the white color, the first conversion matrix is calculated.
  • the first conversion formula is: the tristimulus value is equal to the first conversion matrix multiplied by RGB data.
  • the processor is further configured to: use each group of selected RGB data in the M ⁇ O ⁇ P group of selected RGB data to light up the display; Determine the color coordinates of red, green, blue and white when the RGB data lights up the screen; for each group of selected RGB data, calculate the corresponding second conversion matrix according to the corresponding measured color coordinates of red, green, blue and white.
  • the second conversion formula is: the tristimulus value is equal to the second conversion matrix multiplied by the RGB mapping data.
  • the toning device further includes an output component configured to output the toned screen from the display.
  • an electronic device including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the program described in any of the above embodiments.
  • a non-transitory computer-readable storage medium stores computer instructions configured to perform the adjustment of the display described in any of the above embodiments. One or more steps in the color method.
  • Figure 1 is a flowchart of a color toning method according to some embodiments
  • RGB mapping data corresponding to selected RGB data according to some embodiments
  • 3A is a flowchart of calculating RGB mapping data corresponding to original RGB data by using a predetermined interpolation algorithm according to some embodiments
  • Fig. 3B is a schematic diagram of a linear interpolation algorithm according to some embodiments.
  • Figure 4 is a flowchart of establishing a display lookup table according to some embodiments.
  • FIG. 5 is a flowchart of calculating a first conversion formula according to some embodiments.
  • Fig. 6 is a flowchart of calculating a second conversion formula according to some embodiments.
  • Figure 7 is a structural diagram of a toning device according to some embodiments.
  • Fig. 8 is a hardware structure diagram of an electronic device according to some embodiments.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present disclosure, unless otherwise specified, “plurality” means two or more.
  • Some embodiments of the present disclosure provide a color toning method of a display, referring to FIG. 1, including:
  • the original RGB data is determined according to the information contained in the input signal. For each pixel of the display screen, the input signal has corresponding information of the original RGB data.
  • S104 Invoke a display look-up table, and determine whether there is RGB mapping data corresponding to the original RGB data in the display look-up table.
  • the look-up table (Look-Up-Table, abbreviated as LUT) is essentially a RAM. After it writes data into RAM in advance, every time a signal is input (for example, original RGB data), it is equivalent to inputting an address to look up the table, find out the content corresponding to the address (for example, RGB mapping data), and then output it.
  • LUT Look-Up-Table
  • the display look-up table includes multiple sets of selected RGB data and RGB mapping data corresponding to each set of selected RGB data; the selected RGB data is selected according to a preset method within the value range of the original RGB data corresponding to the display Part of RGB data. In this way, there is no need to store the RGB mapping data corresponding to all the original RGB data in the display look-up table, thereby saving storage resources.
  • Displaying that the RGB mapping data corresponding to the original RGB data exists in the look-up table means that the selected RGB data that is the same as the original RGB data exists in the display look-up table, and the RGB mapping data corresponding to the selected RGB data exists .
  • the original RGB data is toned by using the RGB mapping data corresponding to the selected RGB data.
  • the predetermined interpolation algorithm may be a linear interpolation algorithm, so that the result obtained by the interpolation can be formed into a relatively uniform distribution, thereby making the color palette more uniform and smooth.
  • the original RGB data, multiple sets of selected RGB data, and the RGB mapping data corresponding to each set of selected RGB data are used in combination with a predetermined interpolation algorithm to calculate the RGB mapping data corresponding to the original RGB data.
  • S202 According to the original RGB data and multiple sets of selected RGB data, determine the section in which the R value in the original RGB data is in the M selected R values, the section in which the G value is in the O selected G values, and B The value is in the range of P selected B values.
  • the display look-up table provided by the embodiment of the present disclosure, only part of the RGB data is selected as the selected RGB data from the value range of the original RGB data, and the RGB mapping data of each selected RGB data is calculated and stored. If there is no selected RGB data that is the same as the original RGB data in the display lookup table, that is, there is no RGB mapping data corresponding to the original RGB data in the display lookup table; a predetermined interpolation algorithm needs to be used to calculate the corresponding RGB mapping data.
  • the value range N corresponding to the R value, G value, and B value contained in the original RGB data is determined according to the data size of the signal source of the display.
  • the value ranges corresponding to the R value, G value, and B value contained in the original RGB data are all 0-255, that is, N is 0-255.
  • the first value interval take out M R values from the value range N of R values as the selected R value; according to the second value interval, take out O G values from the value range N of G values as the selected value Set the G value; according to the third value interval, take out P B values from the B value range N as the selected B value. Combine M selected R values, O selected G values, and P selected B values to obtain M ⁇ O ⁇ P set of selected RGB data.
  • the size of the first value interval is 2 to the power of a
  • the size of the second value interval is 2 to the power of b
  • the size of the third value interval is 2 to the power of c; where a, b and c are all positive integers, and the first value interval, the second value interval, and the third value interval are all smaller than the value range N.
  • M selected R values divide the range of R values contained in the original RGB data into equally spaced (M-1) segments
  • O selected G values will be the difference between the G values contained in the original RGB data
  • the value range is divided into equally spaced (0-1) segments
  • the P selected B values divide the value range of the B value contained in the original RGB data into equally spaced (P-1) segments.
  • Select RGB data for the M ⁇ O ⁇ P group calculate the RGB mapping data of each group of selected RGB data, and associate the selected RGB data of the M ⁇ O ⁇ P group with the RGB mapping data corresponding to each group of selected RGB data The stored in the display lookup table.
  • the R value contained in the original RGB data is among the M selected R values , The section where the G value is in the 0 selected G values, and the section where the B value is in the P selected B values.
  • S204 Determine the first target RGB data according to the smaller endpoint value of the segment in which the R value, G value, and B value in the original RGB data are located; according to the R value, G value, and value in the original RGB data Determine the second target RGB data, combine the original RGB data, the RGB mapping data of the first target RGB data, and the RGB mapping data of the second target RGB data, and use the predetermined
  • the interpolation algorithm calculates the RGB mapping data corresponding to the original RGB data.
  • the first target RGB data is determined according to the smaller end value of the segment in which the R value, the G value, and the B value in the original RGB data are located;
  • the R value, G value, and B value in the data are respectively located in the larger end value of the segment, determine the second target RGB data, combine the original RGB data, the RGB mapping data of the first target RGB data, and the second RGB mapping data of the target RGB data, using a predetermined interpolation algorithm to calculate the RGB mapping data corresponding to the original RGB data; including:
  • S302 Determine whether the R value, G value, and B value contained in the original RGB data have the same value corresponding to the selected R value, the selected G value, and the selected B value.
  • the data size of the signal source is 8bit, and the first value interval, the second value interval, and the third value interval are all selected as 4; then, select the R value, select the G value, and select 4
  • the value of the fixed B value includes 0, 4, 8, 12...124, 128, 131, 135...247, 251, 255, and 643 groups of selected RGB data can be obtained.
  • the original RGB data is (1, 1, 0); then, the R value contained in the original RGB data is in the section "0-4" among the 64 selected R values, and the original RGB data contains The G value of is in the “0 ⁇ 4” section of the 64 selected G values, and the B value contained in the original RGB data is the same as a selected B value “0”; that is, the R value contained in the original RGB data , G value and B value have the same value as selected R value, selected G value and selected B value. It should be noted that, among the R value, G value, and B value contained in the original RGB data, at most two values are the same as the corresponding values in the selected R value, the selected G value, and the selected B value.
  • the original RGB data is (1, 1, 1); then, the R value contained in the original RGB data is in the section "0-4" among the 64 selected R values, and the original RGB data contains The G value in the 64 selected G values is in the “0 ⁇ 4” section, and the B value contained in the original RGB data is in the “0 ⁇ 4” section of the 64 selected B values; that is, the original RGB data
  • the included R value, G value, and B value do not have the same value as the selected R value, selected G value, and selected B value.
  • the display look-up table contains RGB mapping data corresponding to the first target RGB data and the second target RGB data.
  • the original RGB data is (1, 1, 0); where the B value "0" contained in the original RGB data is the same as a selected B value, and the B value "0" contained in the original RGB data is the first Target value; the R value "1” contained in the original RGB data is different from any selected R value, and the R value "1" contained in the original RGB data is in the area "0 ⁇ 4" among the 64 selected R values Segment, the endpoint value “0” is used as the second target value, and the endpoint value “4” is used as the third target value; in the same way, for the G value “1” contained in the original RGB data, the second target value is “0”, The third target value is "4"; the first target value and the second target value are combined to obtain the first target RGB data as (0, 0, 0), and the first target value and the third target value are combined to obtain the first target value
  • the second target RGB data is (4, 4, 0).
  • the original RGB data is (1, 0, 0).
  • the predetermined interpolation algorithm is a linear difference algorithm; wherein the R value contained in the original RGB data is different from any selected R value; R1 is the selected R of the first target RGB data value, Rr is the second selected target values of RGB data R; R enantiomer R l is the value of the selected mapping value corresponding to a first target RGB RGB data included in map data; R enantiomer is the second target RGB data r map values corresponding to the selected R value RGB data contained in the map; R R value of the original raw RGB data is included, R enantiomer is the R values of the original map values interpolated RGB data contained; then,
  • mapping values of other R values in any selected R value section can be calculated.
  • the calculation method of G value and B value can be known, which will not be repeated here.
  • the signal source data can be used to indicate the offset of the original RGB data in each segment (for example, 0, 1, 2, 3), that is, the position of the inter-segment value, and the high 6bit of the signal source data can be used for Indicates the location of the section (for example, paragraph 0 to paragraph 63). In this way, when inputting data, the corresponding RGB mapping data retrieval or calculation method can be used according to the content recorded in the data.
  • Step 110 Output the toned picture from the display.
  • the RGB mapping data Since the original RGB data has been converted into RGB mapping data, the RGB mapping data is used for color correction, and then the color-graded picture is output, which completes the color correction of the display.
  • the color toning method of the display determines whether there is RGB mapping data corresponding to the original RGB data in the display look-up table; when the RGB mapping data corresponding to the original RGB data exists in the display look-up table, directly Use the RGB mapping data corresponding to the original RGB data to color the screen; if there is no RGB mapping data corresponding to the original RGB data in the display look-up table, use a predetermined interpolation algorithm to calculate the RGB mapping data of the original RGB data, and use The calculated RGB mapping data is color-graded; then the color-graded image is output. With this color correction method, less mapping data can be stored in the display look-up table, so that the display look-up table occupies less hardware resources.
  • the color toning method provided by the embodiments of the present disclosure adopts a method of combining linear and non-linear, so that the finally output RGB mapping data can not only meet the requirements of the color gamut, but also match the best color requirements, and the application of the interpolation method also enables The occupancy rate of hardware resources is reduced.
  • the toning method further includes:
  • the signal source data of professional monitors generally adopts 8bit or 10bit, and some higher-end monitors will achieve 12bit.
  • the value range N corresponding to the R value, the G value, and the B value contained in the original RGB data is 0-255.
  • S404 According to the first value interval, take out M R values from the value range N of R values as the selected R value.
  • the first value interval can be selected according to needs. Illustratively, if N is 0 to 255, the first value interval can be 2, 4, 8, and so on. Correspondingly, M is 128, 64, 32, and many more.
  • the second value interval can be selected according to needs. Illustratively, if N is 0 to 255, the second value interval can be 2, 4, 8, and so on. Correspondingly, M is 128, 64, 32, and many more.
  • the third value interval can be selected according to needs. For example, if N is 0 to 255, the third value interval can be 2, 4, 8, and so on. Correspondingly, M is 128, 64, 32, and many more.
  • first value interval, second value interval, and third value interval may be the same or different, or two of them take the same value and the other one takes a different value. Specific choices can be made according to specific needs.
  • first value interval, the second value interval, and the third value interval are equal, and are all 4, then M, O, and P are all 64, and 643 sets of selected RGB data can be obtained.
  • the first value is all 0, then the selected R value, the selected G value, and the selected B value are selected All are 0, 4, 8, 12...124, 128, 131, 135...247, 251, 255.
  • the size of the first value interval is the a-th power of 2, so that the selected R value can equally divide the value range N of the R value into multiple segments; the size of the second value interval To the b-th power of 2, so that the selected G value can equally divide the value range N of the G value into multiple segments; the size of the third value interval is the c-th power of 2, so that the B value is selected
  • the value range N of the B value can be equally divided into multiple sections.
  • a, b, and c are all positive integers, and the first value interval, the second value interval, and the third value interval are all smaller than the value range N.
  • the values of the first value interval, the second value interval, and the third value interval are equal.
  • S412 Calculate the RGB mapping data of each group of selected RGB data.
  • Calculating the RGB mapping data of each group of selected RGB data includes: for each group of selected RGB data, combined with the first conversion formula to calculate the corresponding tristimulus value; according to the calculated tristimulus value, combined with the second conversion formula to obtain RGB mapping data corresponding to each group of selected RGB data.
  • the first conversion formula is: the tristimulus value is equal to the first conversion matrix multiplied by the RGB data; the second conversion formula is: the tristimulus value is equal to the second conversion matrix multiplied by the RGB mapping data.
  • the calculation method of the first conversion formula includes:
  • S504 Obtain the white color coordinates of the display when the screen is lit white.
  • the color coordinates of white when the screen is lit white can be detected by optical instruments.
  • the first conversion formula is:
  • XYZ is the observer's spectral tristimulus value, referred to as tristimulus value;
  • RGB is the original RGB data, and the relationship between the two is: the tristimulus value is equal to the first conversion matrix multiplied by the RGB data, that is, the above-mentioned first conversion formula.
  • S506 Calculate the first conversion matrix according to the color coordinates of the three primary colors of red, green and blue and the color coordinates of white.
  • the first conversion matrix H can be calculated according to the following formula:
  • the first conversion matrix H After converting the intermediate values Sr, Sg, and Sb calculated by formula (3) into a diagonal matrix, and then multiplying it with the color coordinates of the original RGB, the first conversion matrix H can be obtained. Taking the data in Table 1 as an example, it can be calculated:
  • the first conversion matrix H in the first conversion formula (2) is calculated based on the data in Table 1.
  • the first conversion matrix H may be different, depending on what the display itself wants to achieve The value of the first conversion matrix H can be changed.
  • the calculation method of the second conversion formula includes:
  • S602 Obtain the color coordinates of red, green, blue and white when each set of selected RGB data is used to light up the screen of the display.
  • the color coordinates of red, green, blue and white when the RGB data is selected to light up the screen of the display can be detected by optical instruments.
  • the red, green, blue, and white coordinates of the display are measured by optical instruments as shown in Table 2 below.
  • the second conversion formula is:
  • XYZ is the observer's spectral tristimulus value, referred to as tristimulus value
  • R'G'B' is the RGB mapping data of the original RGB data, and the relationship between the two is: the tristimulus value is equal to the second conversion matrix multiplied by RGB
  • the mapping data is the above-mentioned second conversion formula.
  • the RGB mapping data is the product of the tristimulus value and the inverse matrix of the second conversion matrix, and the tristimulus value can be calculated according to the first conversion formula (6); that is, as long as the second conversion matrix is known RGB mapping data can be calculated.
  • the second conversion matrix I can be calculated according to the following formula:
  • the second conversion formula corresponds to the second conversion formula when the input RGB data is (255, 255, 255).
  • the corresponding second conversion matrix can be calculated by the above method, that is, each group of selected RGB data corresponds to a second conversion matrix used to calculate the corresponding RGB mapping data, so as to calculate each Set the RGB mapping data of the selected RGB data.
  • S414 Establish a display look-up table based on the selected RGB data of the M ⁇ O ⁇ P group and the RGB mapping data corresponding to each group of selected RGB data.
  • the display look-up table contains the M ⁇ O ⁇ P group of selected RGB data and the RGB mapping data corresponding to each group of selected RGB data.
  • the input original RGB data is the same as the selected RGB data
  • the corresponding RGB mapping data can be found in the display look-up table to complete the screen color adjustment.
  • the selected RGB data is only a part of the original RGB data range, the amount of data stored in the display look-up table is smaller, thereby saving hardware resources.
  • the method in the embodiments of the present disclosure may be executed by a single device, such as a computer or a server.
  • the method of the embodiment of the present disclosure can also be applied in a distributed scenario, and multiple devices cooperate with each other to complete. Among them, in the case of being applied to a distributed scenario, one of the multiple devices may only execute one or more steps of the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the display The toning method.
  • Some embodiments of the present disclosure also provide a color toning device for a display, including:
  • the input component 701 is configured to obtain the original RGB data of the pixels of the screen
  • the memory 702 stores a display lookup table.
  • the display look-up table includes multiple sets of selected RGB data and RGB mapping data corresponding to each set of selected RGB data; the selected RGB data is part of the original selected according to the preset method within the range of the original RGB data corresponding to the display RGB data.
  • the processor 703 is configured to:
  • RGB mapping data corresponding to the original RGB data in the display look-up table, use the RGB mapping data corresponding to the original RGB data to perform screen toning;
  • the original RGB data, the multiple sets of selected RGB data, and the data corresponding to each set of selected RGB data are used.
  • RGB mapping data combined with a predetermined interpolation algorithm, calculates the RGB mapping data corresponding to the original RGB data, and uses the calculated RGB mapping data to perform screen color adjustment.
  • the output component 704 is configured to output the toned screen from the display.
  • the toning device of the display determines whether there is RGB mapping data corresponding to the original RGB data in the display look-up table; when the RGB mapping data corresponding to the original RGB data exists in the display look-up table, directly Use the RGB mapping data corresponding to the original RGB data to color the screen; if there is no RGB mapping data corresponding to the original RGB data in the display look-up table, use a predetermined interpolation algorithm to calculate the RGB mapping data of the original RGB data, and use The calculated RGB mapping data is color-graded; then the color-graded image is output. With this color correction method, less mapping data can be stored in the display look-up table, so that the display look-up table occupies less hardware resources.
  • the color toning method provided by the embodiments of the present disclosure adopts a method of combining linear and non-linear, so that the finally output RGB mapping data can not only meet the requirements of the color gamut, but also match the best color requirements, and the application of the interpolation method also enables The occupancy rate of hardware resources is reduced.
  • the processor 703 is configured to:
  • Calculate the RGB mapping data of each group of selected RGB data including: for each group of selected RGB data in the M ⁇ O ⁇ P group of selected RGB data, combined with the first conversion formula, calculate the corresponding tristimulus value; according to the calculation The obtained tristimulus values are combined with the second conversion formula to obtain the RGB mapping data corresponding to each group of selected RGB data;
  • the RGB data and the corresponding RGB mapping data are selected, and the display look-up table is established.
  • the processor 703 is configured to:
  • the R value in the original RGB data is in the section of the M selected R values, and the G value is in the area of the O selected G values.
  • the processor 703 is configured to:
  • a first conversion matrix is calculated; wherein, the first conversion formula is: the tristimulus value is equal to the first conversion matrix multiplied by the RGB data .
  • the processor 703 is configured to:
  • the corresponding second conversion matrix is calculated according to the corresponding measured red, green, blue and white color coordinates; wherein, the second conversion formula is: the tristimulus value is equal to the second conversion The matrix is multiplied by the RGB mapping data.
  • the functions are divided into various modules and described separately.
  • the functions of each module can be implemented in the same or multiple software and/or hardware.
  • the color toning device for the display area provided by the embodiment of the present disclosure is used to implement the color toning method of the display area in the foregoing embodiment, and has the same beneficial effects as the color toning method of the display area, and will not be repeated here.
  • the electronic device may include: a processor 801, a memory 802, an input/output interface 803, a communication interface 804, and a bus 805.
  • the processor 801, the memory 802, the input/output interface 803, and the communication interface 804 realize the communication connection between each other in the device through the bus 805.
  • the processor 801 may be implemented by a general CPU (Central Processing Unit, central processing unit), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits for execution related Program to implement the toning method provided by the embodiments of the present disclosure.
  • CPU Central Processing Unit
  • microprocessor microprocessor
  • application specific integrated circuit Application Specific Integrated Circuit, ASIC
  • ASIC Application Specific Integrated Circuit
  • the memory 802 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc.
  • the memory 802 can store an operating system and other application programs.
  • the related program code is stored in the memory 802 and is executed by the processor 801. Call execution.
  • the input/output interface 803 is used to connect input/output components to realize information input and output.
  • the input/output/module can be configured in the device as a component (not shown in the figure), or can be connected to the device to provide corresponding functions.
  • the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and an output device may include a display, a speaker, a vibrator, an indicator light, and the like.
  • the communication interface 804 is used to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices.
  • the communication module can realize communication through wired means (such as USB, network cable, etc.), or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
  • the bus 805 includes a path for transmitting information between various components of the device (for example, the processor 801, the memory 802, the input/output interface 803, and the communication interface 804).
  • the device may also include the equipment necessary for normal operation. Other components.
  • Some embodiments of the present disclosure provide a computer-readable storage medium (for example, a non-transitory computer-readable storage medium), the computer-readable storage medium stores computer program instructions, and when the computer program instructions run on a processor , Causing the processor to execute one or more steps in the toning method described in any one of the foregoing embodiments.
  • a computer-readable storage medium for example, a non-transitory computer-readable storage medium
  • Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • CD-ROM
  • Various computer-readable storage media described in this disclosure may represent one or more devices and/or other machine-readable storage media for storing information.
  • the term "machine-readable storage medium” may include, but is not limited to, wireless channels and various other media capable of storing, containing, and/or carrying instructions and/or data.
  • Some embodiments of the present disclosure also provide a computer program product.
  • the computer program product includes computer program instructions, and when the computer program instructions are executed on a computer, the computer program instructions cause the computer to execute one or more steps in the color toning method of the display as described in the foregoing embodiment.
  • Some embodiments of the present disclosure also provide a computer program.
  • the computer program When the computer program is executed on the computer, the computer program causes the computer to execute one or more steps in the color toning method of the display as described in the above embodiments.
  • the accompanying drawings may or may not be shown in relation to integrated circuit (IC) chips and other components.
  • IC integrated circuit
  • Well-known power/ground connection IC
  • the device may be shown in the form of a block diagram in order to avoid making one or more embodiments of this specification difficult to understand, and this also takes into account the fact that the details about the implementation of these block diagram devices are highly dependent on the implementation of the present invention. Description of the platform of one or more embodiments (that is, these details should be fully within the understanding of those skilled in the art).
  • DRAM dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Image Processing (AREA)

Abstract

一种显示器的调色方法及装置、电子设备及存储介质,其中调色方法包括:获取画面像素点的原始RGB数据(S102);调用显示查找表,确定显示查找表中是否存在与原始RGB数据对应的RGB映射数据(S104);若显示查找表中存在与原始RGB数据对应的RGB映射数据,则利用与原始RGB数据对应的RGB映射数据进行画面调色(S106);若显示查找表中不存在与原始RGB数据对应的RGB映射数据,则利用原始RGB数据、多组选定RGB数据和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算原始RGB数据对应的RGB映射数据,从而利用得到的RGB映射数据进行画面调色(S108)。调色方法减少了硬件占用的资源,降低了成本。

Description

显示器调色方法及装置、电子设备、存储介质
本申请要求于2020年03月31日提交的、申请号为202010240526.2的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及数据处理技术领域,尤其涉及一种显示器的调色方法、显示器的装置、电子设备、及非暂态计算机可读存储介质。
背景技术
超高分辨率的显示器一直追求高品质的显示效果,越来越多的显示器开始研发自己的3D LUT(显示查找表)进行调色。现有高分辨率的专业显示器对于画质调节多采用3D LUT技术,对图像每个点进行映射,这样做在硬件上占用资源非常大,成本也非常高。
公开内容
一方面,提供一种显示器的调色方法,包括:获取画面像素点的原始RGB数据;调用显示查找表,确定所述显示查找表中是否存在与所述原始RGB数据对应的RGB映射数据;若所述显示查找表中存在与所述原始RGB数据对应的RGB映射数据,则利用与所述原始RGB数据对应的RGB映射数据进行画面调色;若所述显示查找表中不存在与所述原始RGB数据对应的RGB映射数据,则利用所述原始RGB数据、所述多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算所述原始RGB数据对应的RGB映射数据,并利用计算得到的RGB映射数据进行画面调色。其中,所述显示查找表包括多组选定RGB数据和与每组选定RGB数据对应的RGB映射数据;选定RGB数据为在显示器对应的原始RGB数据的取值范围内,按照预设方法选取的部分RGB数据。
在一些实施例中,所述调色方法还包括:根据显示器的信号源的数据大小,确定原始RGB数据所包含的R值、G值、和B值对应的取值范围N;按照第一取值间隔,从R值的取值范围N中取出M个R值作为选定R值,按照第二取值间隔,从G值的取值范围N中取出O个G值作为选定G值,按照第三取值间隔,从B值的取值范围N中取出P个B值作为选定B值;得到M×O×P组选定RGB数据;计算每组选定RGB数据的RGB映射数据;根据M×O×P组选定RGB数据及每组选定RGB数据对应的RGB映射数据,建立所述显示查找表。
在一些实施例中,所述第一取值间隔的大小为2的a次方,所述第二取值间隔的大小为2的b次方,所述第三取值间隔的大小为2的c次方;其中,a、b、c均为正整数,且所述第一取值间隔、所述第二取值间隔和所述第三取值间隔均小于取值范围N。
在一些实施例中,所述第一取值间隔、所述第二取值间隔和所述第三取值间隔的取值相等。
在一些实施例中,所述利用所述原始RGB数据、所述多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算所述原始RGB数据对应的RGB映射数据,包括:根据所述原始RGB数据和所述多组选定RGB数据,确定所述原始RGB数据中的R值处于M个选定R值中的区段、G值处于O个选定G值中的区段、以及B值处于P个选定B值中的区段;根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较小的端点值,确定第一目标RGB数据;根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较大的端点值,确定第二目标RGB数据,结合原始RGB数据、第一目标RGB数据的RGB映射数据、和第二目标RGB数据的RGB映射数据,利用所述预定插值算法计算所述原始RGB数据对应的RGB映射数据。
在一些实施例中,所述预定插值算法为线性差值算法。
在一些实施例中,所述计算每组选定RGB数据的RGB映射数据,包括:针对每组选定RGB数据,结合第一转换公式,计算得到相应的三刺激值;根据计算得到的三刺激值,结合第二转换公式,得到每组选定RGB数据对应的RGB映射数据。其中,所述第一转换公式为:三刺激值等于所述第一转换矩阵乘以RGB数据;所述第二转换公式为:三刺激值等于所述第二转换矩阵乘以RGB映射数据。
在一些实施例中,所述第一转换矩阵的计算方法,包括:获取预先选定的色彩空间标准中指定的红绿蓝三基色的色坐标;检测所述显示器在屏幕点亮为白色时的白色的色坐标;根据所述红绿蓝三基色的色坐标和所述白色的色坐标,结合第一转换公式,计算得到第一转换矩阵。
在一些实施例中,所述第二转换矩阵的计算方法,包括:检测利用每组选定RGB数据点亮所述显示器的屏幕时的红绿蓝白的色坐标;针对每组选定RGB数据,根据其相应测得的红绿蓝白的色坐标,结合第二转换公式,计算得到相应的第二转换矩阵。
在一些实施例中,所述调色方法还包括:将调色后的画面从所述显 示器中输出。
另一方面,提供一种显示器的调色装置,包括输入部件、存储器和处理器。其中,所述输入部件被配置为接收画面像素点的原始RGB数据。所述存储器存储有显示查找表。所述处理器被配置为调用显示查找表,确定所述显示查找表中是否存在与所述原始RGB数据对应的RGB映射数据;在所述显示查找表中存在与所述原始RGB数据对应的RGB映射数据的情况下,利用与所述原始RGB数据对应的RGB映射数据进行画面调色;在所述显示查找表中不存在与所述原始RGB数据对应的RGB映射数据的情况下,利用所述原始RGB数据、所述多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算所述原始RGB数据对应的RGB映射数据,并利用计算得到的RGB映射数据进行画面调色。其中,所述显示查找表包括多组选定RGB数据和与每组选定RGB数据对应的RGB映射数据;选定RGB数据为在显示器对应的原始RGB数据的取值范围内,按照预设方法选取的部分原始RGB数据。
在一些实施例中,所述处理器还被配置为:根据显示器的信号源的数据大小,确定原始RGB数据所包含的R值、G值、和B值对应的取值范围N;按照第一取值间隔,从R值的取值范围N中取出M个R值作为选定R值,按照第二取值间隔,从G值的取值范围N中取出O个G值作为选定G值,按照第三取值间隔,从B值的取值范围N中取出P个B值作为选定B值;得到M×O×P组选定RGB数据;计算每组选定RGB数据的RGB映射数据;根据M×O×P组选定RGB数据及其对应的RGB映射数据,建立所述显示查找表。
在一些实施例中,所述处理器被配置为:根据所述原始RGB数据和所述多组选定RGB数据,确定所述原始RGB数据中的R值处于M个选定R值中的区段、G值处于O个选定G值中的区段、以及B值处于P个选定B值中的区段;根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较小的端点值,确定第一目标RGB数据;根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较大的端点值,确定第二目标RGB数据,结合原始RGB数据、第一目标RGB数据的RGB映射数据、和第二目标RGB数据的RGB映射数据,利用所述预定插值算法计算所述原始RGB数据对应的RGB映射数据。
在一些实施例中,所述处理器还被配置为:获取预先选定的色彩空 间标准中指定的红绿蓝三基色的色坐标;获取所述显示器在屏幕点亮为白色时的白色的色坐标;根据所述红绿蓝三基色的色坐标和所述白色的色坐标,计算得到第一转换矩阵。其中,所述第一转换公式为:三刺激值等于所述第一转换矩阵乘以RGB数据。
在一些实施例中,所述处理器还被配置为:利用M×O×P组选定RGB数据中的每组选定RGB数据分别点亮所述显示器;获取所述显示器在按照每组选定RGB数据点亮屏幕时的红绿蓝白的色坐标;针对每组选定RGB数据,根据其相应测得的红绿蓝白的色坐标,计算得到相应的第二转换矩阵。其中,所述第二转换公式为:三刺激值等于所述第二转换矩阵乘以RGB映射数据。
在一些实施例中,所述调色装置还包括输出部件,所述输出部件被配置为将调色后的画面从所述显示器中输出。
又一方面,提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任一实施例中所述的显示器的调色方法中的一个或多个步骤。
又一方面,提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令被配置为执行上述任一实施例中所述的显示器的调色方法中的一个或多个步骤。
附图说明
为了更清楚地说明本公开中的技术方案,下面将对本公开一些实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例的附图,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。此外,以下描述中的附图可以视作示意图,并非对本公开实施例所涉及的产品的实际尺寸、方法的实际流程、信号的实际时序等的限制。
图1为根据一些实施例的调色方法的流程图;
图2为根据一些实施例的计算选定RGB数据对应的RGB映射数据的流程图;
图3A为根据一些实施例的利用预定插值算法计算原始RGB数据对应的RGB映射数据的流程图;
图3B为根据一些实施例的线性插值算法的原理图;
图4为根据一些实施例的建立显示查找表的流程图;
图5为根据一些实施例的计算第一转换公式的流程图;
图6为根据一些实施例的计算第二转换公式的流程图;
图7为根据一些实施例的调色装置的结构图;
图8为根据一些实施例的电子设备的硬件结构图。
具体实施方式
下面将结合附图,对本公开一些实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开所提供的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本公开保护的范围。
除非上下文另有要求,否则,在整个说明书和权利要求书中,术语“包括(comprise)”及其其他形式例如第三人称单数形式“包括(comprises)”和现在分词形式“包括(comprising)”被解释为开放、包含的意思,即为“包含,但不限于”。
在说明书的描述中,术语“一些实施例(some embodiments)”、“示例性实施例(exemplary embodiments)”或“示例(example)”等旨在表明与该实施例或示例相关的特定特征、结构、材料或特性包括在本公开的至少一个实施例或示例中。上述术语的示意性表示不一定是指同一实施例或示例。此外,所述的特定特征、结构、材料或特点可以以任何适当方式包括在任何一个或多个实施例或示例中。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本公开实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本文中“被配置为”的使用意味着开放和包容性的语言,其不排除适用于或被配置为执行额外任务或步骤的设备。
本公开的一些实施例提供了一种显示器的调色方法,参阅图1,包括:
S102:获取画面像素点的原始RGB数据。
其中,原始RGB数据是根据输入信号中包含的信息所确定的。针对显示画面的每个像素点,在输入信号中均具有对应的原始RGB数据的信息。
S104:调用显示查找表,确定所述显示查找表中是否存在与所述原始RGB数据对应的RGB映射数据。
显示查找表(Look-Up-Table,英文缩写为LUT),本质上就是一个RAM。它把数据事先写入RAM后,每当输入一个信号(例如原始RGB数据)就等于输入一个地址进行查表,找出地址对应的内容(例如RGB映射数据),然 后输出。
其中,显示查找表包括多组选定RGB数据和与每组选定RGB数据对应的RGB映射数据;选定RGB数据为在显示器对应的原始RGB数据的取值范围内,按照预设方法选取的部分RGB数据。这样,显示查找表中就不用存储与全部的原始RGB数据对应的RGB映射数据,从而可以节约存储资源。
显示查找表中存在与所述原始RGB数据对应的RGB映射数据,是指:显示查找表中存在与所述原始RGB数据相同的选定RGB数据,并存在该选定RGB数据对应的RGB映射数据。
S106:若显示查找表中存在与原始RGB数据对应的RGB映射数据,则利用与原始RGB数据对应的RGB映射数据进行画面调色。
即,显示查找表中存在与原始RGB数据相同的选定RGB数据,则利用该选定RGB数据对应的RGB映射数据对原始RGB数据进行画面调色。
S108:若显示查找表中不存在与原始RGB数据对应的RGB映射数据,则利用原始RGB数据、多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算原始RGB数据对应的RGB映射数据,并利用计算得到的RGB映射数据进行画面调色。
示例性的,预定插值算法可以是线性插值算法,这样能使插值得到的结果形成较为均匀的分布,从而使得调色画面更加均匀、平滑。
在一些实施例中,参阅图2,利用原始RGB数据、多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算原始RGB数据对应的RGB映射数据,包括:
S202:根据原始RGB数据和多组选定RGB数据,确定原始RGB数据中的R值处于M个选定R值中的区段、G值处于O个选定G值中的区段、以及B值处于P个选定B值中的区段。
本公开的实施例提供的显示查找表中,只从原始RGB数据的取值范围内,选取了部分RGB数据作选定RGB数据,并计算存储每个选定RGB数据的RGB映射数据。若显示查找表中没有与原始RGB数据相同的选定RGB数据,即,显示查找表中没有与原始RGB数据对应的RGB映射数据;则需要采用预定插值算法计算相应的RGB映射数据。
在一些实施例中,根据显示器的信号源的数据大小,确定原始RGB数据所包含的R值、G值、和B值对应的取值范围N。
示例性的,以信号源的数据大小为8bit为例,原始RGB数据所包含的R值、G值、和B值对应的取值范围都是0-255,即N为0-255。
按照第一取值间隔,从R值的取值范围N中取出M个R值作为选定R值;按照第二取值间隔,从G值的取值范围N中取出O个G值作为选定G值;按照第三取值间隔,从B值的取值范围N中取出P个B值作为选定B值。将M个选定R值、O个选定G值和P个选定B值进行组合,进而得到M×O×P组选定RGB数据。
示例性的,第一取值间隔的大小为2的a次方,第二取值间隔的大小为2的b次方,第三取值间隔的大小为2的c次方;其中,a、b、c均为正整数,且第一取值间隔、第二取值间隔和第三取值间隔均小于取值范围N。以使M个选定R值将原始RGB数据所包含的R值的取值范围被分为等间隔的(M-1)段,O个选定G值将原始RGB数据所包含的G值的取值范围被分为等间隔的(O-1)段,P个选定B值将原始RGB数据所包含的B值的取值范围被分为等间隔的(P-1)段。
针对M×O×P组选定RGB数据,计算每组选定RGB数据的RGB映射数据,并且将M×O×P组选定RGB数据及每组选定RGB数据对应的RGB映射数据相关联的存储在显示查找表中。
在需要利用预定插值算法计算原始RGB数据对应的RGB映射数据时,根据原始RGB数据所包含的R值、G值和B值,确定原始RGB数据所包含的R值处于M个选定R值中的区段,G值处于O个选定G值中的区段、以及B值处于P个选定B值中的区段。
S204:根据原始RGB数据中的R值、G值、和B值各自所处的区段的较小的端点值,确定第一目标RGB数据;根据原始RGB数据中的R值、G值、和B值各自所处的区段的较大的端点值,确定第二目标RGB数据,结合原始RGB数据、第一目标RGB数据的RGB映射数据、和第二目标RGB数据的RGB映射数据,利用预定插值算法计算原始RGB数据对应的RGB映射数据。
在一些实施例中,如图3A所示,根据原始RGB数据中的R值、G值、和B值各自所处的区段的较小的端点值,确定第一目标RGB数据;根据原始RGB数据中的R值、G值、和B值各自所处的区段的较大的端点值,确定第二目标RGB数据,结合原始RGB数据、第一目标RGB数据的RGB映射数据、和第二目标RGB数据的RGB映射数据,利用预定插值算法计算原始RGB数据对应的RGB映射数据;包括:
S302:确定原始RGB数据所包含的R值、G值和B值中是否存在与选定R值、选定G值和选定B值的对应相同的值。
示例性的,以信号源的数据大小为8bit,且第一取值间隔、第二取值间隔和第三取值间隔均选取4为例;则,选定R值、选定G值和选定B值的取值均包括0、4、8、12……124、128、131、135……247、251、255,可以得到643组选定RGB数据。
示例性的,所述原始RGB数据为(1,1,0);则,原始RGB数据所包含的R值处于64个选定R值中“0~4”这个区段,原始RGB数据所包含的G值处于64个选定G值中“0~4”这个区段,而原始RGB数据所包含的B值与一个选定B值“0”相同;即,原始RGB数据所包含的R值、G值和B值中存在与选定R值、选定G值和选定B值的相同的值。需要说明的是,原始RGB数据所包含的R值、G值和B值中,最多有两个值与选定R值、选定G值和选定B值中对应的值相同。
示例性的,所述原始RGB数据为(1,1,1);则,原始RGB数据所包含的R值处于64个选定R值中“0~4”这个区段,原始RGB数据所包含的G值处于64个选定G值中“0~4”这个区段,原始RGB数据所包含的B值处于64个选定B值中“0~4”这个区段;即原始RGB数据所包含的R值、G值和B值中不存在与选定R值、选定G值和选定B值的相同的值。
S304:若原始RGB数据所包含的R值、G值和B值中不存在与选定R值、选定G值和选定B值的相同的值。则,选取原始RGB数据所包含的R值、G值和B值各自所处的区段中较小的端点值,进行组合作为第一目标RGB数据,选取原始RGB数据所包含的R值、G值和B值各自所处的区段中较大的端点值,进行组合作为第二目标RGB数据。
若原始RGB数据为(1,1,1),第一目标RGB数据为(0,0,0),第二目标RGB数据为(4,4,4)。显示查找表中存在与第一目标RGB数据和第二目标RGB数据对应的RGB映射数据。
S306:若原始RGB数据所包含的R值、G值和B值中存在与选定R值、选定G值和选定B值的对应相同的值。对于原始RGB数据所包含的R值、G值和B值中与选定R值、选定G值和选定B值对应相同的值,以该值本身作为第一目标值;对于原始RGB数据所包含的R值、G值和B值中与选定R值、选定G值和选定B值的不相同的值,将该值所处的区段的较小的端点值作为第二目标值,较大的端点值作为第三目标值;将第一目标值和第二目标值进行组合得到第一目标RGB数据,将第一目标值和第三目标值进行组合得到第二目标RGB数据。
示例性的,原始RGB数据为(1,1,0);其中,原始RGB数据所包含 的B值“0”与一个选定B值相同,原始RGB数据包含的B值“0”为第一目标值;原始RGB数据所包含的R值“1”与任一个选定R值都不同,原始RGB数据所包含的R值“1”处于64个选定R值中“0~4”这个区段,端点值“0”作为第二目标值,端点值“4”作为第三目标值;同理,对于原始RGB数据所包含的G值“1”,其第二目标值为“0”,第三目标值为“4”;将第一目标值和第二目标值进行组合得到第一目标RGB数据为(0,0,0),将第一目标值和第三目标值进行组合得到第二目标RGB数据为(4,4,0)。示例性的,原始RGB数据为(1,0,0),同理可以得到第一目标RGB数据为(0,0,0),第二目标RGB数据为(4,0,0)。
S308:根据第一目标RGB数据对应的第一RGB映射数据,和第二目标RGB数据对应的第二RGB映射数据,按照预定插值算法,计算原始RGB数据对应的RGB映射数据。
示例性的,如图3B所示,预定插值算法为线性差值算法;其中,原始RGB数据所包含的R值与任一个选定R值均不同;Rl是第一目标RGB数据的选定R值,Rr是第二目标RGB数据的选定R值;R 映l是第一目标RGB数据对应的RGB映射数据中所包含的选定R值的映射值;R 映r是第二目标RGB数据对应的RGB映射数据中所包含的选定R值的映射值;R 是原始RGB数据所包含的R值,R 是插值得到的原始RGB数据所包含的R值的映射值;则,
Figure PCTCN2021083124-appb-000001
以上述线性插值计算公式,可以计算得到任意选定R值区段内的其他R值的映射值。同理可知G值和B值的计算方法,在此不再赘述。
在一些实施例中,由于针对显示查找表中已知映射值的信号源数据存储的是显示查找表中的地址,针对需要进行插值运算的原始RGB数据,以8bit为例,其信号源数据中的低2bit则可用于表示原始RGB数据在每个区段中的偏移量(例如,0、1、2、3),即段间值的位置,而信号源数据中的高6bit则可用于表示所处区段的位置(例如,第0段至第63段)。这样,在输入数据时,根据数据中记载的内容的不同即可采用相应的RGB映射数据调取或计算方法。
步骤110:将调色后的画面从显示器中输出。
由于原始RGB数据均已转换为RGB映射数据,则利用RGB映射数据进 行调色,然后输出调色后的画面,即完成了显示器的调色。
本公开的实施例提供的显示器的调色方法,确定显示查找表中是否存在与原始RGB数据对应的RGB映射数据;在显示查找表中存在与原始RGB数据对应的RGB映射数据的情况下,直接利用与原始RGB数据对应的RGB映射数据进行画面调色;在显示查找表中不存在与原始RGB数据对应的RGB映射数据的情况下,利用预定插值算法计算出原始RGB数据的RGB映射数据,并用计算出的RGB映射数据进行画面调色;然后将调色后的画面输出。采用该调色方法,可以在显示查找表存储较少的映射数据,使得显示查找表占用较少的硬件资源。本公开实施例提供的调色方法,采用线性与非线性结合的方法,使最后输出的RGB映射数据能够既满足色域的要求,又能够匹配最佳的颜色需求,同时插值方法的运用也使硬件资源的占用率降低。
在一些实施例中,如图4所示,调色方法还包括:
S402:根据显示器的信号源的数据大小,原始RGB数据所包含的R值、G值、和B值对应的取值范围N。
专业显示器的信号源数据一般采用8bit或10bit,有些更高端的显示器会做到12bit。示例性的,以信号源的数据大小为8bit为例,原始RGB数据所包含的R值、G值、和B值对应的取值范围N为0~255。
S404:按照第一取值间隔,从R值的取值范围N中取出M个R值作为选定R值。
第一取值间隔可以根据需要进行选择,示例性的,若N为0~255,第一取值间隔可以是2、4、8,等等,相应地,M则为128、64、32,等等。
S406:按照第二取值间隔,从G值的取值范围N中取出O个G值作为选定G值。
第二取值间隔可以根据需要进行选择,示例性的,若N为0~255,第二取值间隔可以是2、4、8,等等,相应地,M则为128、64、32,等等。
S408:按照第三取值间隔,从B值的取值范围N中取出P个B值作为选定B值。
第三取值间隔可以根据需要进行选择,示例性的,若N为0~255,第三取值间隔可以是2、4、8,等等,相应地,M则为128、64、32,等等。
前述的第一取值间隔、第二取值间隔和第三取值间隔可以是相同的,也可以是各不相同的,还可以是其中两个取相同的值而另外一个取不同的值,根据具体需要可以进行具体的选择。
S410:得到M×O×P组选定RGB数据。
示例性的,第一取值间隔、第二取值间隔和第三取值间隔相等,且均为4,则M、O、P则均为64,则可得到643组选定RGB数据。
以第一取值间隔、第二取值间隔和第三取值间隔均选取为例4,第一个取值均为0,则选取的选定R值、选定G值、选定B值均为0、4、8、12……124、128、131、135……247、251、255。
在一些实施例中,第一取值间隔的大小为2的a次方,以使选定R值能够将R值的取值范围N等分为多个区段;第二取值间隔的大小为2的b次方,以使选定G值能够将G值的取值范围N等分为多个区段;第三取值间隔的大小为2的c次方,以使选定B值能够将B值的取值范围N等分为多个区段。其中,a、b、c均为正整数,且第一取值间隔、第二取值间隔和第三取值间隔均小于取值范围N。
在一些实施例中,第一取值间隔、第二取值间隔和第三取值间隔的取值相等。
S412:计算每组选定RGB数据的RGB映射数据。
计算每组选定RGB数据的RGB映射数据包括:针对每组选定RGB数据,结合第一转换公式,计算得到相应的三刺激值;根据计算得到的三刺激值,结合第二转换公式,得到每组选定RGB数据对应的RGB映射数据。其中,第一转换公式为:三刺激值等于第一转换矩阵乘以RGB数据;第二转换公式为:三刺激值等于第二转换矩阵乘以RGB映射数据。
在一些实施例中,如图5所示,第一转换公式的计算方法,包括:
S502:获取预先选定的色彩空间标准中指定的红绿蓝三基色的色坐标。
S504:获取显示器在屏幕点亮为白色时的白色的色坐标。屏幕点亮为白色时的白色的色坐标可以通过光学仪器检测获得。
示例性的,以BT.709标准为例,该标准中指定的红绿蓝三基色的CIE1931坐标,以及显示器在屏幕点亮为白色时的白色的色坐标如下表1所示。
表1
Figure PCTCN2021083124-appb-000002
第一转换公式为:
Figure PCTCN2021083124-appb-000003
其中,XYZ为观察者光谱三刺激值,简称三刺激值;RGB为原始RGB数据,二者之间的关系为:三刺激值等于第一转换矩阵乘以RGB数据,即上述第一转换公式。
S506:根据红绿蓝三基色的色坐标和白色的色坐标,计算得到第一转换矩阵。
示例性的,根据前述表1中的数据,按照以下公式计算中间矩阵:
Figure PCTCN2021083124-appb-000004
其中,
Figure PCTCN2021083124-appb-000005
为RGB的色坐标逆矩阵,x W、y W、z W为白色的色坐标。
第一转换矩阵H,可以按照以下公式计算:
Figure PCTCN2021083124-appb-000006
在将式(3)计算得到的中间值Sr、Sg、Sb转换为对角矩阵后,再与原始RGB的色坐标相乘,即可得到第一转换矩阵H。以表1中数据为例,可以计算得到:
Figure PCTCN2021083124-appb-000007
进而可以得到第一转换公式为:
Figure PCTCN2021083124-appb-000008
第一转换公式(2)中的第一转换矩阵H是根据表1的数据计算得到的,当采用不同的色彩空间标准时,第一转换矩阵H可能是不一样的,根据显示器本身所想要达到的标准,第一转换矩阵H的取值可以变化。
在一些实施例中,如图6所示,第二转换公式的计算方法,包括:
S602:获取利用每组选定RGB数据点亮显示器的屏幕时的红绿蓝白的色坐标。选定RGB数据点亮显示器的屏幕时的红绿蓝白的色坐标可以通过光学仪器检测得到。
示例性的,将显示器的屏幕点亮为白色时,利用光学仪器测得显示器的红、绿、蓝、白坐标如下表2所示。
表2
Figure PCTCN2021083124-appb-000009
其中,第二转换公式为:
Figure PCTCN2021083124-appb-000010
其中,XYZ为观察者光谱三刺激值,简称三刺激值;R'G'B'为原始RGB数据的RGB映射数据,二者之间的关系为:三刺激值等于第二转换矩阵乘以RGB映射数据,即上述第二转换公式。
由此得到:
Figure PCTCN2021083124-appb-000011
由公式(8)可知,RGB映射数据为三刺激值与第二转换矩阵的逆矩阵之积,而三刺激值可以根据第一转换公式(6)计算得到;即,只要知道第二转 换矩阵即可计算得到RGB映射数据。
S606:针对每组选定RGB数据,根据其相应测得的红绿蓝白的色坐标,计算得到相应的第二转换矩阵。
例如,根据前述表2中的数据,按照以下公式计算中间矩阵:
Figure PCTCN2021083124-appb-000012
其中,
Figure PCTCN2021083124-appb-000013
为R'G'B'的色坐标逆矩阵,x w'、y w'、z w'为白色的色坐标。
第二转换矩阵I,可以按照以下公式计算:
Figure PCTCN2021083124-appb-000014
在将式(9)计算得到的中间值Sr'、Sg'、Sb'转换为对角矩阵后,再与R'G'B'的色坐标相乘,即可得到第二转换矩阵I。以表2中数据为例,可以计算得到:
Figure PCTCN2021083124-appb-000015
于是,可以得到显示器的屏幕点亮为白色时的第二转换公式为:
Figure PCTCN2021083124-appb-000016
亦即,该第二转换公式对应的是输入RGB数据为(255,255,255)时的第二转换公式。
针对一组选定RGB数据,可以通过上述方法计算相应的第二转换矩阵,即,每组选定RGB数据都对应有一个用于计算相应的RGB映射数据的第二转换矩阵,从而计算得到每组选定RGB数据的RGB映射数据。
S414:根据M×O×P组选定RGB数据及每组选定RGB数据对应的RGB映射数据,建立显示查找表。
通过上述方法,可以完成显示查找表的建立,显示查找表中包含了M×O×P组选定RGB数据和与每组选定RGB数据对应的RGB映射数据。当输入的原始RGB数据与选定RGB数据相同时,即可在显示查找表中找到相应的RGB映射数据,以完成画面调色。此外,由于选定RGB数据仅为原始RGB数据范围内的一部分,因此,显示查找表中存储的数据量更小,进而节省了硬件资源。
需要说明的是,本公开的实施例的方法可以由单个设备执行,例如一台计算机或服务器等。本公开的实施例的方法也可以应用于分布式场景下,由多台设备相互配合来完成。其中,在应用于分布式场景下的情况下,多台设备中的一台设备可以只执行本公开的实施例的方法的一个或多个步骤,多台设备相互之间会进行交互以完成显示器的调色方法。
本公开的一些实施例还提供了一种显示器的调色装置,包括:
输入部件701,被配置为获取画面像素点的原始RGB数据;
存储器702,存储有显示查找表。
显示查找表包括多组选定RGB数据和与每组选定RGB数据对应的RGB映射数据;选定RGB数据为在显示器对应的原始RGB数据的取值范围内,按照预设方法选取的部分原始RGB数据。
处理器703,被配置为:
调用显示查找表,确定所述显示查找表中是否存在与所述原始RGB数据对应的RGB映射数据;
在所述显示查找表中存在与所述原始RGB数据对应的RGB映射数据的情况下,利用与所述原始RGB数据对应的RGB映射数据进行画面调色;
在所述显示查找表中不存在与所述原始RGB数据对应的RGB映射数据的情况下,利用所述原始RGB数据、所述多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算所述原始RGB数据对应的RGB映射数据,并利用计算得到的RGB映射数据进行画面调色。
输出部件704,被配置为:将调色后的画面从显示器中输出。
本公开的实施例提供的显示器的调色装置,确定显示查找表中是否存在与原始RGB数据对应的RGB映射数据;在显示查找表中存在与原始RGB数据对应的RGB映射数据的情况下,直接利用与原始RGB数据对应的RGB映射数据进行画面调色;在显示查找表中不存在与原始RGB数据对应的RGB 映射数据的情况下,利用预定插值算法计算出原始RGB数据的RGB映射数据,并用计算出的RGB映射数据进行画面调色;然后将调色后的画面输出。采用该调色方法,可以在显示查找表存储较少的映射数据,使得显示查找表占用较少的硬件资源。本公开实施例提供的调色方法,采用线性与非线性结合的方法,使最后输出的RGB映射数据能够既满足色域的要求,又能够匹配最佳的颜色需求,同时插值方法的运用也使硬件资源的占用率降低。
在一些实施例中,处理器703,被配置为:
根据显示器的信号源的数据大小,确定原始RGB数据所包含的R值、G值、和B值对应的取值范围N;
按照第一取值间隔,从R值的取值范围N中取出M个R值作为选定R值;
按照第二取值间隔,从G值的取值范围N中取出O个G值作为选定G值;
按照第三取值间隔,从B值的取值范围N中取出P个B值作为选定B值;
得到M×O×P组选定RGB数据;
计算每组选定RGB数据的RGB映射数据,包括:针对M×O×P组选定RGB数据中的每组选定RGB数据,结合第一转换公式,计算得到相应的三刺激值;根据计算得到的三刺激值,结合第二转换公式,得到每组选定RGB数据对应的RGB映射数据;
根据M×O×P组选定RGB数据及其对应的RGB映射数据,建立显示查找表。
在一些实施例中,处理器703被配置为:
根据所述原始RGB数据和所述多组选定RGB数据,确定所述原始RGB数据中的R值处于M个选定R值中的区段、G值处于O个选定G值中的区段、以及B值处于P个选定B值中的区段;
根据原始RGB数据中的R值、G值、和B值各自所处的区段的较小的端点值,确定第一目标RGB数据;根据原始RGB数据中的R值、G值、和B值各自所处的区段的较大的端点值,确定第二目标RGB数据,结合原始RGB数据、第一目标RGB数据的RGB映射数据、和第二目标RGB数据的RGB映射数据,利用预定插值算法计算原始RGB数据对应的RGB映射数据。
在一些实施例中,处理器703被配置为:
获取预先选定的色彩空间标准中指定的红绿蓝三基色的色坐标;
获取所述显示器在屏幕点亮为白色时的白色的色坐标;
根据所述红绿蓝三基色的色坐标和所述白色的色坐标,计算得到第一转换矩阵;其中,所述第一转换公式为:三刺激值等于所述第一转换矩阵乘以RGB数据。
在一些实施例中,处理器703被配置为:
利用M×O×P组选定RGB数据中的每组选定RGB数据分别点亮所述显示器;
获取所述显示器在按照每组选定RGB数据点亮屏幕时的红绿蓝白的色坐标;
针对每组选定RGB数据,根据其相应测得的红绿蓝白的色坐标,计算得到相应的第二转换矩阵;其中,所述第二转换公式为:三刺激值等于所述第二转换矩阵乘以RGB映射数据。
为了描述的方便,描述调色装置时以功能分为各种模块分别描述。具体实现时,可以把各模块的功能在同一个或多个软件和/或硬件中实现。
本公开实施例提供的显示区的调色装置用于实现前述实施例中,显示区的调色方法,并且具有与显示区的调色方法相同的有益效果,在此不再赘述。
本空开的一些实施例还提供了一种电子设备,参阅图8,电子设备可以包括:处理器801、存储器802、输入/输出接口803、通信接口804和总线805。其中处理器801、存储器802、输入/输出接口803和通信接口804通过总线805实现彼此之间在设备内部的通信连接。
处理器801可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本公开的实施例所提供的调色方法。
存储器802可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器802可以存储操作系统和其他应用程序,在通过软件或者固件来实现本公开的实施例所提供的显示区的调色方法时,相关的程序代码保存在存储器802中,并由处理器801来调用执行。
输入/输出接口803用于连接输入/输出部件,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。
通信接口804用于连接通信模块(图中未示出),以实现本设备与其他 设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。
总线805包括一通路,在设备的各个组件(例如处理器801、存储器802、输入/输出接口803和通信接口804)之间传输信息。
需要说明的是,尽管上述设备仅示出了处理器801、存储器802、输入/输出接口803、通信接口804以及总线805,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。
此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本公开的实施例的方案所必需的组件,而不必包含图中所示的全部组件。
本公开的一些实施例提供了一种计算机可读存储介质(例如,非暂态计算机可读存储介质),该计算机可读存储介质中存储有计算机程序指令,计算机程序指令在处理器上运行时,使得处理器执行如上述实施例中任一实施例所述的调色方法中的一个或多个步骤。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。
本公开描述的各种计算机可读存储介质可代表用于存储信息的一个或多个设备和/或其它机器可读存储介质。术语“机器可读存储介质”可包括但不限于,无线信道和能够存储、包含和/或承载指令和/或数据的各种其它介质。
本公开的一些实施例还提供了一种计算机程序产品。该计算机程序产品包括计算机程序指令,在计算机上执行该计算机程序指令时,该计算机程序指令使计算机执行如上述实施例所述的显示器的调色方法中的一个或多个步骤。
本公开的一些实施例还提供了一种计算机程序。当该计算机程序在计算机上执行时,该计算机程序使计算机执行如上述实施例所述的显示器的调色方法中的一个或多个步骤。
上述计算机可读存储介质、计算机程序产品及计算机程序的有益效果和 上述一些实施例所述的XX方法的有益效果相同,此处不再赘述。
上述对本公开特定实施例进行了描述。其他实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本公开的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上的本说明书一个或多个实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。
另外,为简化说明和讨论,并且为了不会使本说明书一个或多个实施例难以理解,在所提供的附图中可以示出或可以不示出与集成电路(IC)芯片和其它部件的公知的电源/接地连接。此外,可以以框图的形式示出装置,以便避免使本说明书一个或多个实施例难以理解,并且这也考虑了以下事实,即关于这些框图装置的实施方式的细节是高度取决于将要实施本说明书一个或多个实施例的平台的(即,这些细节应当完全处于本领域技术人员的理解范围内)。在阐述了具体细节(例如,电路)以描述本公开的示例性实施例的情况下,对本领域技术人员来说显而易见的是,可以在没有这些具体细节的情况下或者这些具体细节有变化的情况下实施本说明书一个或多个实施例。因此,这些描述应被认为是说明性的而不是限制性的。
尽管已经结合了本公开的具体实施例对本公开进行了描述,但是根据前面的描述,这些实施例的很多替换、修改和变型对本领域普通技术人员来说将是显而易见的。例如,其它存储器架构(例如,动态RAM(DRAM))可以使用所讨论的实施例。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。

Claims (18)

  1. 一种显示器的调色方法,包括:
    获取画面像素点的原始RGB数据;
    调用显示查找表,确定所述显示查找表中是否存在与所述原始RGB数据对应的RGB映射数据;其中,所述显示查找表包括多组选定RGB数据和与每组选定RGB数据对应的RGB映射数据;选定RGB数据为在显示器对应的原始RGB数据的取值范围内,按照预设方法选取的部分RGB数据;
    若所述显示查找表中存在与所述原始RGB数据对应的RGB映射数据,则利用与所述原始RGB数据对应的RGB映射数据进行画面调色;
    若所述显示查找表中不存在与所述原始RGB数据对应的RGB映射数据,则利用所述原始RGB数据、所述多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算所述原始RGB数据对应的RGB映射数据,并利用计算得到的RGB映射数据进行画面调色。
  2. 根据权利要求1所述的调色方法,还包括:
    根据显示器的信号源的数据大小,确定原始RGB数据所包含的R值、G值、和B值对应的取值范围N;
    按照第一取值间隔,从R值的取值范围N中取出M个R值作为选定R值;
    按照第二取值间隔,从G值的取值范围N中取出O个G值作为选定G值;
    按照第三取值间隔,从B值的取值范围N中取出P个B值作为选定B值;
    得到M×O×P组选定RGB数据;
    计算每组选定RGB数据的RGB映射数据;
    根据M×O×P组选定RGB数据及每组选定RGB数据对应的RGB映射数据,建立所述显示查找表。
  3. 根据权利要求2所述的调色方法,其中,所述第一取值间隔的大小为2的a次方,所述第二取值间隔的大小为2的b次方,所述第三取值间隔的大小为2的c次方;其中,a、b、c均为正整数,且所述第一取值间隔、所述第二取值间隔和所述第三取值间隔均小于取值范围N。
  4. 根据权利要求2或3所述的调色方法,其中,所述第一取值间隔、所述第二取值间隔和所述第三取值间隔的取值相等。
  5. 根据权利要求2~4中任一项所述的调色方法,其中,所述利用所述原始RGB数据、所述多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算所述原始RGB数据对应的RGB映射数 据,包括:
    根据所述原始RGB数据和所述多组选定RGB数据,确定所述原始RGB数据所包含的R值处于M个选定R值中的区段、G值处于O个选定G值中的区段、以及B值处于P个选定B值中的区段;
    根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较小的端点值,确定第一目标RGB数据;根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较大的端点值,确定第二目标RGB数据,结合原始RGB数据、第一目标RGB数据的RGB映射数据、和第二目标RGB数据的RGB映射数据,利用所述预定插值算法计算所述原始RGB数据对应的RGB映射数据。
  6. 根据权利要求5所述的调色方法,其中,所述预定插值算法为线性差值算法。
  7. 根据权利要求2~6中任一项所述的调色方法,其中,所述计算每组选定RGB数据的RGB映射数据,包括:
    针对每组选定RGB数据,结合第一转换公式,计算得到相应的三刺激值;其中,所述第一转换公式为:三刺激值等于所述第一转换矩阵乘以RGB数据;
    根据计算得到的三刺激值,结合第二转换公式,得到每组选定RGB数据对应的RGB映射数据;其中,所述第二转换公式为:三刺激值等于所述第二转换矩阵乘以RGB映射数据。
  8. 根据权利要求7所述的调色方法,其中,所述第一转换矩阵的计算方法,包括:
    获取预先选定的色彩空间标准中指定的红绿蓝三基色的色坐标;
    获取所述显示器在屏幕点亮为白色时的白色的色坐标;
    根据所述红绿蓝三基色的色坐标和所述白色的色坐标,结合第一转换公式,计算得到第一转换矩阵。
  9. 根据权利要求7或8所述的调色方法,其中,所述第二转换矩阵的计算方法,包括:
    获取利用每组选定RGB数据点亮所述显示器的屏幕时的红绿蓝白的色坐标;
    针对每组选定RGB数据,根据其相应测得的红绿蓝白的色坐标,结合第二转换公式,计算得到相应的第二转换矩阵。
  10. 根据权利要求1~9中任一项所述的调色方法,还包括:
    将调色后的画面从所述显示器中输出。
  11. 一种显示器的调色装置,包括:
    输入部件,被配置为获取画面像素点的原始RGB数据;
    存储器,存储有显示查找表,所述显示查找表包括多组选定RGB数据和与每组选定RGB数据对应的RGB映射数据;选定RGB数据为在显示器对应的原始RGB数据的取值范围内,按照预设方法选取的部分原始RGB数据;
    处理器,被配置为调用显示查找表,确定所述显示查找表中是否存在与所述原始RGB数据对应的RGB映射数据;在所述显示查找表中存在与所述原始RGB数据对应的RGB映射数据的情况下,利用与所述原始RGB数据对应的RGB映射数据进行画面调色;在所述显示查找表中不存在与所述原始RGB数据对应的RGB映射数据的情况下,利用所述原始RGB数据、所述多组选定RGB数据、和与每组选定RGB数据对应的RGB映射数据,结合预定插值算法,计算所述原始RGB数据对应的RGB映射数据,并利用计算得到的RGB映射数据进行画面调色。
  12. 根据权利要求11所述的调色装置,所述处理器被配置为:
    根据显示器的信号源的数据大小,确定原始RGB数据所包含的R值、G值、和B值对应的取值范围N;
    按照第一取值间隔,从R值的取值范围N中取出M个R值作为选定R值;
    按照第二取值间隔,从G值的取值范围N中取出O个G值作为选定G值;
    按照第三取值间隔,从B值的取值范围N中取出P个B值作为选定B值;
    得到M×O×P组选定RGB数据;
    计算每组选定RGB数据的RGB映射数据;
    根据M×O×P组选定RGB数据及其对应的RGB映射数据,建立所述显示查找表。
  13. 根据权利要求12所述的调色装置,所述处理器被配置为:
    根据所述原始RGB数据和所述多组选定RGB数据,确定所述原始RGB数据中的R值处于M个选定R值中的区段、G值处于O个选定G值中的区段、以及B值处于P个选定B值中的区段;
    根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较小的端点值,确定第一目标RGB数据;根据所述原始RGB数据中的R值、G值、和B值各自所处的区段的较大的端点值,确定第二目标RGB数据,结合原始RGB数据、第一目标RGB数据的RGB映射数据、和第二目标RGB数 据的RGB映射数据,利用所述预定插值算法计算所述原始RGB数据对应的RGB映射数据。
  14. 根据权利要求12或13所述的调色装置,其中,所述处理器还被配置为:
    获取预先选定的色彩空间标准中指定的红绿蓝三基色的色坐标;
    获取所述显示器在屏幕点亮为白色时的白色的色坐标;
    根据所述红绿蓝三基色的色坐标和所述白色的色坐标,计算得到第一转换矩阵;其中,所述第一转换公式为:三刺激值等于所述第一转换矩阵乘以RGB数据。
  15. 根据权利要求14所述的调色装置,其中,所述处理器还被配置为:
    利用M×O×P组选定RGB数据中的每组选定RGB数据分别点亮所述显示器;
    获取所述显示器在按照每组选定RGB数据点亮屏幕时的红绿蓝白的色坐标;
    针对每组选定RGB数据,根据其相应测得的红绿蓝白的色坐标,计算得到相应的第二转换矩阵;其中,所述第二转换公式为:三刺激值等于所述第二转换矩阵乘以RGB映射数据。
  16. 根据权利要求11所述的调色装置,还包括:
    输出部件,被配置为将调色后的画面从所述显示器中输出。
  17. 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如权利要求1~10中任意一项所述的显示器的调色方法中的一个或多个步骤。
  18. 一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令被配置为执行权利要求1~10中任一项所述的显示器的调色方法中的一个或多个步骤。
PCT/CN2021/083124 2020-03-31 2021-03-26 显示器调色方法及装置、电子设备、存储介质 WO2021197213A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/787,106 US11967297B2 (en) 2020-03-31 2021-03-26 Color modulation method and apparatus for display, electronic device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010240526.2A CN113470591B (zh) 2020-03-31 2020-03-31 监视器调色方法及装置、电子设备、存储介质
CN202010240526.2 2020-03-31

Publications (1)

Publication Number Publication Date
WO2021197213A1 true WO2021197213A1 (zh) 2021-10-07

Family

ID=77865347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083124 WO2021197213A1 (zh) 2020-03-31 2021-03-26 显示器调色方法及装置、电子设备、存储介质

Country Status (3)

Country Link
US (1) US11967297B2 (zh)
CN (1) CN113470591B (zh)
WO (1) WO2021197213A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070247648A1 (en) * 2006-04-25 2007-10-25 Xerox Corporation Method for tetrahedral interpolation computations using data-level parallelism
CN101123080A (zh) * 2007-09-14 2008-02-13 北京中视中科光电技术有限公司 一种色域映射实时处理方法及实时处理电路
US20120169719A1 (en) * 2010-12-31 2012-07-05 Samsung Electronics Co., Ltd. Method for compensating data, compensating apparatus for performing the method and display apparatus having the compensating apparatus
CN104795049A (zh) * 2015-04-20 2015-07-22 合肥工业大学 一种显示器色域映射的实现方法
CN109741279A (zh) * 2019-01-04 2019-05-10 Oppo广东移动通信有限公司 图像饱和度调整方法、装置、存储介质及终端
CN109859702A (zh) * 2018-12-28 2019-06-07 南京奥视威电子科技股份有限公司 一种3d查找表生成方法、显示器校色方法、显示器校色系统

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030184557A1 (en) * 2002-03-26 2003-10-02 Senfar Wen Interactive method and apparatus for managing color gamut mapping
JP2005354372A (ja) * 2004-06-10 2005-12-22 Olympus Corp 画像記録装置、画像記録方法、画像処理装置、画像処理方法、及び画像処理システム
JP4304623B2 (ja) * 2005-06-01 2009-07-29 ソニー株式会社 撮像装置及び撮像装置における撮像結果の処理方法
JP5211481B2 (ja) 2006-06-27 2013-06-12 セイコーエプソン株式会社 ディザマトリックスの生成
JP2009010532A (ja) * 2007-06-26 2009-01-15 Casio Electronics Co Ltd 色変換処理装置及び色変換方法
US8237990B2 (en) * 2007-06-28 2012-08-07 Adobe Systems Incorporated System and method for converting over-range colors
CN103955079B (zh) 2014-04-28 2017-01-18 深圳市华星光电技术有限公司 利用rgb显示装置获取rgbw显示装置白色的亮度和色度的方法
EP3016387A1 (en) 2014-10-29 2016-05-04 Thomson Licensing A method and device for estimating a color mapping between two different color-graded versions of a sequence of pictures
US20160180758A1 (en) 2014-12-23 2016-06-23 Pixtronix, Inc. Display apparatus incorporating a channel bit-depth swapping display process
CN108446089B (zh) 2018-03-22 2021-01-26 京东方科技集团股份有限公司 数据的显示方法、装置及显示器
CN108717839B (zh) * 2018-04-17 2022-03-08 京东方科技集团股份有限公司 一种rgb到rgbw的转换方法、装置及存储介质
CN110175523B (zh) * 2019-04-26 2021-05-14 南京华捷艾米软件科技有限公司 一种自移动机器人动物识别与躲避方法及其存储介质
CN110675797B (zh) * 2019-09-25 2023-10-13 深圳Tcl数字技术有限公司 一种色域映射方法、组件、显示装置及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070247648A1 (en) * 2006-04-25 2007-10-25 Xerox Corporation Method for tetrahedral interpolation computations using data-level parallelism
CN101123080A (zh) * 2007-09-14 2008-02-13 北京中视中科光电技术有限公司 一种色域映射实时处理方法及实时处理电路
US20120169719A1 (en) * 2010-12-31 2012-07-05 Samsung Electronics Co., Ltd. Method for compensating data, compensating apparatus for performing the method and display apparatus having the compensating apparatus
CN104795049A (zh) * 2015-04-20 2015-07-22 合肥工业大学 一种显示器色域映射的实现方法
CN109859702A (zh) * 2018-12-28 2019-06-07 南京奥视威电子科技股份有限公司 一种3d查找表生成方法、显示器校色方法、显示器校色系统
CN109741279A (zh) * 2019-01-04 2019-05-10 Oppo广东移动通信有限公司 图像饱和度调整方法、装置、存储介质及终端

Also Published As

Publication number Publication date
CN113470591A (zh) 2021-10-01
CN113470591B (zh) 2023-11-14
US11967297B2 (en) 2024-04-23
US20220392421A1 (en) 2022-12-08

Similar Documents

Publication Publication Date Title
KR102446033B1 (ko) 색역 변환 방법 및 이를 채용한 표시 장치
EP3040967B1 (en) Color adjustment method and device
JP5296889B2 (ja) 画像処理装置および画像処理方法
CN111429827B (zh) 显示屏色彩校准方法、装置、电子设备及可读存储介质
JP2009505575A (ja) ハードウェア加速されたカラー・データ処理
US10733957B2 (en) Method and system for display color calibration
KR20140064485A (ko) 색역 변환 장치 및 그 방법
JP6122716B2 (ja) 画像処理装置
KR20150112754A (ko) 색공간들 사이에 변환을 위한 방법
WO2020216085A1 (zh) 四面体插值计算方法及装置、色域转换方法及装置、介质
JP2007251709A (ja) 色補正方法、色補正装置、及び色補正プログラム
JP2015154459A (ja) 画像処理装置および画像処理方法
JP2010183232A (ja) 色域変換装置
CN110277076B (zh) 一种颜色映射方法及装置、显示设备、介质
JP6376767B2 (ja) 画像処理装置及び画像処理方法
TWI640976B (zh) 用於顯示裝置的顏色配置之技術
EP1990989B1 (en) Color processing apparatus and method
WO2021197213A1 (zh) 显示器调色方法及装置、电子设备、存储介质
CN113724644B (zh) 补偿显示装置的亮度与色度的方法及相关设备
WO2022040889A1 (zh) 一种显示方法、装置及电子设备
JP2013131921A (ja) 映像信号処理装置、ベクトルスコープ、映像信号処理方法、及びプログラム
US8630488B2 (en) Creating a duotone color effect using an ICC profile
CN109685859B (zh) 基于3d查找表的三维颜色自动调整方法
JP4793705B2 (ja) 色変換装置
JPWO2007083717A1 (ja) 色変換マトリクス作成方法及び色変換方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21781097

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21781097

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21781097

Country of ref document: EP

Kind code of ref document: A1