CN114928732A - Image color calibration method and device, electronic equipment and readable storage medium - Google Patents

Image color calibration method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114928732A
CN114928732A CN202210391768.0A CN202210391768A CN114928732A CN 114928732 A CN114928732 A CN 114928732A CN 202210391768 A CN202210391768 A CN 202210391768A CN 114928732 A CN114928732 A CN 114928732A
Authority
CN
China
Prior art keywords
image
white balance
color
display
correction
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.)
Granted
Application number
CN202210391768.0A
Other languages
Chinese (zh)
Other versions
CN114928732B (en
Inventor
余鹏
张永勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202210391768.0A priority Critical patent/CN114928732B/en
Publication of CN114928732A publication Critical patent/CN114928732A/en
Application granted granted Critical
Publication of CN114928732B publication Critical patent/CN114928732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/77Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Landscapes

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

Abstract

The application discloses an image color calibration method, an image color calibration device, electronic equipment and a readable storage medium, which are applied to the technical field of image processing, wherein the image color calibration method comprises the following steps: acquiring a display picture image corresponding to display equipment; carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image; performing brightness correction on the adjusted image to obtain a corrected image; and mapping the corrected image to a preset standard color gamut to obtain a mapped image. The application solves the technical problem that the display image color accuracy expression effect is poor in the prior art.

Description

Image color calibration method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image color calibration method and apparatus, an electronic device, and a readable storage medium.
Background
With the High-speed development of science and technology, image processing technology is also developed more and more mature, HDR (High-Dynamic Range, High Dynamic Range image) videos are spread more and more widely, and requirements for displaying image color levels are higher and higher, currently, image color level correction adopts professionals to adjust image signals according to color differences of display images of display devices, when white balance adjustment is performed on images under a standard light source, color difference correction on pixel values of warmer tones is poor, and due to differences of display device performance characteristics and differences of display signal processing, the display effect of each display device cannot be guaranteed to be consistent; however, the color sensitivity of the naked eye is limited, and the difference between lower color levels cannot be distinguished, thereby causing poor color level expression effect of the displayed image.
Disclosure of Invention
The present application mainly aims to provide an image color calibration method, an image color calibration device, an electronic device, and a readable storage medium, and aims to solve the technical problem in the prior art that the display image color calibration has a poor performance.
In order to achieve the above object, the present application provides an image color gamut correction method applied to an image color gamut correction apparatus, the image color gamut correction method including:
acquiring a display picture image corresponding to display equipment;
carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image;
performing brightness correction on the adjusted image to obtain a corrected image;
and mapping the corrected image to a preset standard color gamut to obtain a mapped image.
Optionally, the white balance adjustment is performed on the display picture image in a warm color temperature environment, and the step of obtaining an adjusted image includes:
counting white points and non-white points of the nonlinear correction image in a warm color temperature environment;
under the condition of fixing the white balance gain of the first channel of the correction image, respectively obtaining the white balance gain of the second channel of the white point and the white balance gain of the third channel of the white point to obtain first white balance gain information, and determining the second white balance gain information of the non-white point according to the first white balance gain information of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain information and the second white balance gain information to obtain an adjusted image.
Optionally, the step of performing brightness correction on the adjusted image to obtain a corrected image includes:
acquiring a fitted photoelectric conversion function curve corresponding to the display equipment;
and performing brightness correction on the adjusted image according to the offset between a preset photoelectric conversion function standard curve and the fitted photoelectric conversion function curve to obtain a corrected image.
Optionally, the step of obtaining a fitted photoelectric conversion function curve corresponding to the display device includes:
and obtaining the brightness of the corresponding adjusted image when the display equipment is in different output brightness percentages, and drawing a fitted output brightness-brightness value curve of the display equipment.
Optionally, the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image includes:
normalizing the corrected image to obtain a first normalization result;
mapping the pixel value of the first normalization result to a preset standard color gamut according to a conversion coefficient determined by the color gamut corresponding to the corrected image and the preset standard color gamut to obtain a standard normalization result;
and adjusting the pixel value of the corrected image according to a first reduction normalization result corresponding to the standard normalization result to obtain a mapping image.
Optionally, before the step of performing white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image, the image color calibration method further includes:
normalizing the display picture image to obtain a second normalization result;
according to the nonlinear function index corresponding to the display equipment, performing precompensation calculation on the second normalization result to obtain a compensation normalization result;
and correcting the pixel value of the display picture image according to a second reduction normalization result corresponding to the compensation normalization result to obtain a nonlinear correction image.
Optionally, after the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image, the image color gamut correction method further includes:
judging whether the color difference value corresponding to the mapping image is larger than a preset color difference threshold value or not;
if so, judging that the image color tone correction fails, and returning to the execution step: acquiring a display picture image corresponding to display equipment;
if not, the image color level correction is judged to be successful.
To achieve the above object, the present application also provides an image color gamut correcting device applied to an image color gamut correcting apparatus, the image color gamut correcting device comprising:
the acquisition module is used for acquiring a display picture image corresponding to the display equipment;
the adjusting module is used for carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image;
the correction module is used for carrying out brightness correction on the adjusted image to obtain a corrected image;
and the mapping module is used for mapping the corrected image to a preset standard color gamut to obtain a mapped image.
Optionally, in the step of performing white balance adjustment on the display image in a warm color temperature environment to obtain an adjusted image, the adjusting module is further configured to:
counting white points and non-white points of the nonlinear correction image in a warm color temperature environment;
respectively obtaining the white balance gain of the second channel of the white point and the white balance gain of the third channel of the white point to obtain first white balance gain information under the condition of fixing the white balance gain of the first channel of the correction image, and determining the second white balance gain information of the non-white point according to the first white balance gain information of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain information and the second white balance gain information to obtain an adjusted image.
Optionally, in the step of performing brightness correction on the adjusted image to obtain a corrected image, the correction module is further configured to:
acquiring a fitted photoelectric conversion function curve corresponding to the display equipment;
and performing brightness correction on the adjusted image according to the offset between a preset photoelectric conversion function standard curve and the fitted photoelectric conversion function curve to obtain a corrected image.
Optionally, in the step of obtaining a fitted photoelectric conversion function curve corresponding to the display device, the correction module is further configured to:
and acquiring the brightness of the corresponding adjusted image when the display equipment is in different output brightness percentages, and drawing a fitted output brightness-brightness value curve of the display equipment.
Optionally, in the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image, the mapping module is further configured to:
normalizing the corrected image to obtain a first normalization result;
mapping the pixel value of the first normalization result to a preset standard color gamut according to a conversion coefficient determined by the color gamut corresponding to the corrected image and the preset standard color gamut to obtain a standard normalization result;
and adjusting the pixel value of the corrected image according to a first reduction normalization result corresponding to the standard normalization result to obtain a mapping image.
Optionally, before the step of performing white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image, the adjusting module is further configured to:
normalizing the display picture image to obtain a second normalization result;
according to the nonlinear function index corresponding to the display equipment, performing precompensation calculation on the second normalization result to obtain a compensation normalization result;
and correcting the pixel value of the display picture image according to a second reduction normalization result corresponding to the compensation normalization result to obtain a nonlinear correction image.
Optionally, after the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image, the mapping module is further configured to:
judging whether the color difference value corresponding to the mapping image is larger than a preset color difference threshold value or not;
if so, judging that the image color tone correction fails, and returning to the execution step: acquiring a display picture image corresponding to display equipment;
if not, the image color level correction is judged to be successful.
The present application further provides an electronic device, the electronic device including: a memory, a processor and a program of the image color gamut correction method stored on the memory and executable on the processor, the program of the image color gamut correction method when executed by the processor being operable to implement the steps of the image color gamut correction method as described above.
The present application further provides a computer-readable storage medium having stored thereon a program for implementing an image color gamut correction method, which when executed by a processor, implements the steps of the image color gamut correction method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the image color gamut correction method as described above.
Compared with the prior art that professionals adjust image signals according to the color difference of a display image of display equipment, the image signal correction method and device, the electronic equipment and the readable storage medium have the advantages that the display image corresponding to the display equipment is obtained; carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image; performing brightness correction on the adjusted image to obtain a corrected image; the correction image is mapped to a preset standard color gamut to obtain a mapped image, and the color display difference of images with different hues is corrected and compensated by performing white balance adjustment on the displayed image in a warm color temperature environment, so that the technical defect that the chromatic aberration correction of pixel values with slightly warm hues is poor when the white balance adjustment is performed on the image under a standard light source is overcome; through carrying out gamut mapping to the display image, will show that the image adjustment is to predetermineeing standard colour gamut to guarantee different display device's output image uniformity, avoided adopting the colour difference of professional according to display device's display image, when adjusting the image, because the color sensitivity of naked eye is limited, can't distinguish the difference between the lower color standard, lead to showing the technical defect that the image color standard expression effect is poor, thereby improved the color standard expression effect of display image.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, 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 for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flowchart illustrating a first embodiment of an image color calibration method according to the present application;
FIG. 2 is a flowchart illustrating a second embodiment of an image color calibration method according to the present application;
fig. 3 is a schematic structural diagram of a hardware operating environment related to an image color calibration method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, embodiments accompanying figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
In a first embodiment of the image color gamut correction method according to the present application, referring to fig. 1, the image color gamut correction method includes:
step S10, acquiring a display picture image corresponding to the display device;
step S20, carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image;
in this embodiment, the display image may be an HDR image or an SDR (Standard Dynamic Range) image.
Exemplarily, the steps S10 to S20 include: after a display picture image corresponding to display equipment is obtained, nonlinear correction is carried out on the display picture image to obtain a nonlinear correction image, white balance gain corresponding to a pixel point of the nonlinear correction image in a warm color temperature environment is obtained, the pixel point is adjusted according to the white balance gain to obtain an adjusted image, and white balance adjustment is directly carried out on the display picture image in the warm color temperature environment, so that the technical defect that white balance adjustment is inaccurate due to errors occurring in a shifting process when a standard color temperature environment or a cold color temperature environment is shifted to the warm color temperature environment and then white balance adjustment is carried out on the display picture image in the prior art is avoided, and the accuracy of image white balance adjustment is improved.
In step S20, before the step of performing white balance adjustment on the display screen image in the warm color temperature environment to obtain an adjusted image, the method includes:
step A10, carrying out normalization processing on the display picture image to obtain a second normalization result;
step A20, pre-compensating the second normalization result according to the nonlinear function index corresponding to the display device to obtain a compensated normalization result;
and A30, correcting the pixel value of the display picture image according to a second reduction normalization result corresponding to the compensation normalization result to obtain a nonlinear correction image.
In this embodiment, it should be noted that the non-linearization function index is a linear portion in a characteristic curve corresponding to the digital luminance value at the input end and the display end, and the non-linearization function index is determined by an attribute of the display device.
Illustratively, steps a10 through a30 include: converting the display picture image into a preset first color space to obtain a first conversion image, and converting a three-channel value corresponding to the first conversion image into a real number in a range of 0-1 for normalization processing to obtain a second normalization result; according to the nonlinear function index corresponding to the display equipment, performing index operation on the nonlinear function index, and performing precompensation calculation on the second normalization result to obtain a compensation normalization result; and performing inverse normalization processing on the compensation normalization result to obtain a second reduction normalization result, and correcting three channel values corresponding to the display picture image according to the reduction normalization result to obtain a nonlinear correction image, wherein the preset first color space can be an HSV color space, an LAB color space or a YUV color space.
In step S20, the white balance adjustment of the display image in the warm color temperature environment to obtain an adjusted image includes:
step S21, counting the white point and non-white point of the nonlinear correction image in the warm color temperature environment;
step S22, under the condition of fixing the white balance gain of the first channel of the correction image, obtaining the white balance gain of the second channel of the white point and the white balance gain of the third channel of the white point respectively to obtain first white balance gain information, and determining the second white balance gain information of the non-white point according to the first white balance gain information of the white point;
step S23, performing white balance adjustment on the mapping image according to the first white balance gain information and the second white balance gain information to obtain an adjusted image.
In this embodiment, it should be noted that the warm color temperature environment is a color temperature environment that is warmer than a color temperature of a standard color temperature environment, the warm color temperature environment may be an environment whose color temperature value of D65 is defined as 6500K, and may also be an environment whose color temperature value of D75 is defined as 7500K; the second white balance gain information includes a white balance gain of a second channel of the non-white point and a white balance gain of a third channel of the non-white point.
Exemplarily, the steps S21 to S23 include: adjusting the nonlinear correction image to a warm color temperature environment, counting white points to be classified into one class, and counting non-white points to be classified into one class; connecting every two adjacent white points into a standard light source line, wherein the area surrounded by the standard light source line in a coordinate system is a white balance gray area, fixing the white balance gain of a first channel of the white point, and calculating the white balance gain of the second channel corresponding to the white point and the white balance gain of a corresponding third channel according to the second channel value and the third channel value of the nonlinear correction image corresponding to the white point on the white balance gray area to obtain first white balance gain information; determining second white balance gain information of a non-white point according to the first white balance gain information; and adjusting the white point according to the first white balance gain information, and adjusting the non-white point according to the second white balance gain information to obtain an adjusted image.
As one example, steps S21 to S23 include: adjusting the nonlinear correction image to a warm color temperature environment, counting white points to be classified into one class, and counting non-white points to be classified into one class; connecting every two adjacent white points into a standard light source line, wherein the region surrounded by the standard light source line in a coordinate system is a white balance gray region, fixing the R channel white balance gain of the white point, and calculating the white balance gain of the G channel corresponding to the white point and the white balance gain of the B channel corresponding to the white point according to the G channel value and the B channel value of the nonlinear correction image corresponding to the white point on the white balance gray region to obtain first white balance gain information; determining second white balance gain information of a non-white point according to the first white balance gain information; and adjusting the white point according to the first white balance gain information, adjusting the non-white point according to the second white balance gain information to obtain an adjusted image, and adjusting the white balance gain of the G channel and the white balance gain of the B channel by fixing the white balance gain of the R channel, so that the technical defect that the adjusted white balance gain of the B channel exceeds an adjustment intermediate value easily under the condition of a lower color temperature environment when the white balance gain of the G channel is fixed, or the adjusted white balance gain of the G channel and the adjusted white balance gain of the R channel exceed the adjustment intermediate value easily under the condition of a higher color temperature environment when the white balance gain of the B channel is fixed is avoided, and the adjustment accuracy of the white balance adjustment in different color temperature environments is improved.
Step S30, carrying out brightness correction on the adjusted image to obtain a corrected image;
exemplarily, the step S30 includes: and acquiring standard brightness corresponding to a preset standard color gamut, and correcting the brightness of the adjusted image according to the standard brightness to obtain a corrected image.
Wherein, the step of performing brightness correction on the adjusted image to obtain a corrected image comprises:
step S31, acquiring a fitted photoelectric conversion function curve corresponding to the display device;
and step S32, performing brightness correction on the adjusted image according to the offset between a preset photoelectric conversion function standard curve and the fitted photoelectric conversion function curve to obtain a corrected image.
Exemplarily, the steps S31 to S32 include: acquiring a fitted photoelectric conversion function curve corresponding to the display equipment, and drawing a standard photoelectric conversion function curve by acquiring standard brightness corresponding to the adjusted image; and correcting the brightness of the adjusting curve according to the offset between a preset photoelectric conversion function standard curve and the fitted photoelectric conversion function curve to obtain a corrected image.
In step S31, the step of obtaining a fitted photoelectric conversion function curve corresponding to the display device includes:
and step B10, acquiring the brightness of the corresponding adjusted image when the display device is at different output brightness percentages, and drawing a fitted output brightness-brightness value curve of the display device.
Exemplarily, step B10 includes: obtaining different output brightness percentages, respectively measuring the brightness of the corresponding adjustment images when the display device is at different output brightness percentages, and drawing a fitted output brightness-brightness value curve of the display device according to the output brightness percentages and the brightness of the corresponding adjustment images, for example, respectively measuring the brightness of the corresponding adjustment images when the display device is at 0% output brightness, 25% output brightness, 50% output brightness, 75% output brightness percentages and 100% output brightness, and drawing the fitted output brightness-brightness value curve.
Step S40, mapping the corrected image to a preset standard color gamut to obtain a mapped image;
in this embodiment, it should be noted that the color gamut is a range of colors that a given color medium can display or acquire under a given observation condition.
Exemplarily, the step S40 includes: and adjusting the corrected image according to a preset standard color gamut to obtain a mapping image.
In step S40, the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image includes:
step S41, carrying out normalization processing on the corrected image to obtain a first normalization result;
step S42, mapping the pixel value of the first normalization result to a preset standard color gamut according to a conversion coefficient determined by the color gamut corresponding to the corrected image and the preset standard color gamut, to obtain a standard normalization result;
and step S43, adjusting the pixel value of the correction image according to the first reduction normalization result corresponding to the standard normalization result to obtain a mapping image.
Exemplarily, the steps S41 to S43 include: converting the corrected image into an RGB color space to obtain a second converted image, and converting the second converted image into real numbers with the range of 0-1 to perform normalization processing to obtain a first normalization result; extracting a color gamut boundary of the corrected image and a preset standard color gamut, determining a conversion coefficient between the color gamut corresponding to the corrected image and the preset standard color gamut according to the color gamut boundary, and calculating a product of the first normalization result and the conversion coefficient to obtain a standard normalization result; and performing reverse normalization processing on the standard normalization result to obtain a first reduction normalization result, and adjusting the RGB channel value of the corrected image according to the first reduction normalization result to obtain a mapping image.
As an example, the steps S41 to S43 include: acquiring channel coordinates of RGB three channels of the corrected image; and inputting the coordinates of each channel into conversion software, mapping the corrected image to a preset standard color gamut through the conversion software, and outputting mapping coordinates after mapping to the preset standard color gamut.
Compared with the method that a professional adjusts an image signal according to the color difference of a display image of display equipment in the prior art, the method for correcting the image color level obtains the display image corresponding to the display equipment; carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image; performing brightness correction on the adjusted image to obtain a corrected image; the correction image is mapped to a preset standard color gamut to obtain a mapped image, and the color display difference of images with different hues is corrected and compensated by performing white balance adjustment on the displayed image in a warm color temperature environment, so that the technical defect that the chromatic aberration correction of pixel values with slightly warm hues is poor when the white balance adjustment is performed on the image under a standard light source is overcome; through carrying out gamut mapping to the display image, will show that the image adjustment is to predetermineeing standard colour gamut to guarantee different display device's output image uniformity, avoided adopting the colour difference of professional according to the display image of display device, when adjusting the image, because the color sensitivity of naked eye is limited, can't discern the difference between the lower color standard, lead to showing the technical defect that the image color standard expression effect is poor, thereby improved the color standard expression effect of display image.
Example two
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. On the basis, in step S40, after the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image, the image color gamut correction method further includes:
step C10, judging whether the color difference value corresponding to the mapping image is larger than a preset color difference threshold value;
step C20, if yes, judging that the image color accuracy correction fails, and returning to execute the steps: acquiring a display picture image corresponding to display equipment;
and step C30, if not, judging that the image color level correction is successful.
In this embodiment, it should be noted that the preset color difference threshold is a preset color difference critical value for determining that the image color level is successfully corrected.
Exemplarily, the step C10 to the step C30 include: judging whether the color difference value corresponding to the mapping image is larger than a preset color difference threshold value, if the color difference value corresponding to the adjustment image is larger than the preset color difference threshold value, judging that the image color accuracy correction fails, and returning to the execution step: acquiring a display picture image corresponding to display equipment; and if the color difference value corresponding to the adjusted image is not larger than a preset color difference threshold value, judging that the image color accuracy is successfully corrected.
Compared with the method that a professional adjusts an image signal according to the color difference of a display image of display equipment in the prior art, the method for correcting the image color calibration obtains the display image corresponding to the display equipment; carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image; performing brightness correction on the adjusted image to obtain a corrected image; the correction image is mapped to a preset standard color gamut to obtain a mapped image, and the color display difference of images with different hues is corrected and compensated by performing white balance adjustment on the displayed image in a warm color temperature environment, so that the technical defect that the chromatic aberration correction of pixel values with slightly warm hues is poor when the white balance adjustment is performed on the image under a standard light source is overcome; through carrying out gamut mapping to the display image, will show that the image adjustment is to predetermineeing standard colour gamut to guarantee different display device's output image uniformity, avoided adopting the colour difference of professional according to display device's display image, when adjusting the image, because the color sensitivity of naked eye is limited, can't distinguish the difference between the lower color standard, lead to showing the technical defect that the image color standard expression effect is poor, thereby improved the color standard expression effect of display image.
EXAMPLE III
An embodiment of the present application further provides an image color calibration device, where the image color calibration device is applied to an image color calibration device, and the image color calibration device includes:
the acquisition module is used for acquiring a display picture image corresponding to the display equipment;
the adjusting module is used for carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image;
the correction module is used for carrying out brightness correction on the adjusted image to obtain a corrected image;
and the mapping module is used for mapping the corrected image to a preset standard color gamut to obtain a mapped image.
Optionally, in the step of performing white balance adjustment on the display image in a warm color temperature environment to obtain an adjusted image, the adjusting module is further configured to:
counting white points and non-white points of the nonlinear correction image in a warm color temperature environment;
under the condition of fixing the white balance gain of the first channel of the correction image, respectively obtaining the white balance gain of the second channel of the white point and the white balance gain of the third channel of the white point to obtain first white balance gain information, and determining the second white balance gain information of the non-white point according to the first white balance gain information of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain information and the second white balance gain information to obtain an adjusted image.
Optionally, in the step of performing brightness correction on the adjusted image to obtain a corrected image, the correction module is further configured to:
acquiring a fitted photoelectric conversion function curve corresponding to the display equipment;
and performing brightness correction on the adjusted image according to the offset between a preset photoelectric conversion function standard curve and the fitted photoelectric conversion function curve to obtain a corrected image.
Optionally, in the step of obtaining a fitted photoelectric conversion function curve corresponding to the display device, the correction module is further configured to:
and acquiring the brightness of the corresponding adjusted image when the display equipment is in different output brightness percentages, and drawing a fitted output brightness-brightness value curve of the display equipment.
Optionally, in the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image, the mapping module is further configured to:
normalizing the corrected image to obtain a first normalization result;
mapping the pixel value of the first normalization result to a preset standard color gamut according to a conversion coefficient determined by the color gamut corresponding to the corrected image and the preset standard color gamut to obtain a standard normalization result;
and adjusting the pixel value of the corrected image according to a first reduction normalization result corresponding to the standard normalization result to obtain a mapping image.
Optionally, before the step of performing white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image, the adjusting module is further configured to:
normalizing the display picture image to obtain a second normalization result;
according to the nonlinear function index corresponding to the display equipment, performing precompensation calculation on the second normalization result to obtain a compensation normalization result;
and correcting the pixel value of the display picture image according to a second reduction normalization result corresponding to the compensation normalization result to obtain a nonlinear correction image.
Optionally, after the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image, the mapping module is further configured to:
judging whether the color difference value corresponding to the mapping image is larger than a preset color difference threshold value or not;
if yes, judging that the image color calibration fails, and returning to the execution step: acquiring a display picture image corresponding to display equipment;
if not, the image color level correction is judged to be successful.
The image color calibration device provided by the invention adopts the image color calibration method in the embodiment, and solves the technical problem of poor display effect of the displayed image color calibration. Compared with the prior art, the image color calibration device provided by the embodiment of the invention has the same beneficial effects as the image color calibration method provided by the embodiment, and other technical features of the image color calibration device are the same as those disclosed by the embodiment method, which are not repeated herein.
Example four
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the image color gamut correction method according to the first embodiment.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, and the like; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the image color calibration correction method in the first embodiment or the second embodiment, and solves the technical problem of poor display effect of the image color calibration. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the image color calibration method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the first embodiment, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
EXAMPLE five
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of image color gamut correction in the first embodiment.
Embodiments of the present invention provide a computer readable storage medium, such as a USB flash drive, but are not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a display picture image corresponding to display equipment; carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image; performing brightness correction on the adjusted image to obtain a corrected image; and mapping the corrected image to a preset standard color gamut to obtain a mapped image.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The invention provides a computer readable storage medium which stores computer readable program instructions for executing the image color gamut correction method, and solves the technical problem of poor representing effect of displaying the image color gamut. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as the beneficial effects of the image color calibration method provided by the implementation, and details are not repeated herein.
EXAMPLE six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the image color gamut correction method as described above.
The computer program product provided by the application solves the technical problem of poor color accuracy expression effect of the display image. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the image color level correction method provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An image color tone correction method, comprising:
acquiring a display picture image corresponding to display equipment;
carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image;
performing brightness correction on the adjusted image to obtain a corrected image;
and mapping the corrected image to a preset standard color gamut to obtain a mapped image.
2. The image color gamut correction method according to claim 1, wherein the step of performing white balance adjustment on the display image in a warm color temperature environment to obtain an adjusted image comprises:
counting white points and non-white points of the nonlinear correction image in a warm color temperature environment;
under the condition of fixing the white balance gain of the first channel of the correction image, respectively obtaining the white balance gain of the second channel of the white point and the white balance gain of the third channel of the white point to obtain first white balance gain information, and determining the second white balance gain information of the non-white point according to the first white balance gain information of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain information and the second white balance gain information to obtain an adjusted image.
3. The image tone correction method of claim 1, wherein the step of performing luminance correction on the adjusted image to obtain a corrected image comprises:
acquiring a fitted photoelectric conversion function curve corresponding to the display equipment;
and performing brightness correction on the adjusted image according to the offset between a preset photoelectric conversion function standard curve and the fitted photoelectric conversion function curve to obtain a corrected image.
4. The image tone correction method of claim 4, wherein the step of obtaining the fitted photo-electric transfer function curve corresponding to the display device comprises:
and acquiring the brightness of the corresponding adjusted image when the display equipment is in different output brightness percentages, and drawing a fitted output brightness-brightness value curve of the display equipment.
5. The image tone correction method of claim 1, wherein the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image comprises:
normalizing the corrected image to obtain a first normalization result;
mapping the pixel value of the first normalization result to a preset standard color gamut according to a conversion coefficient determined by the color gamut corresponding to the corrected image and the preset standard color gamut to obtain a standard normalization result;
and adjusting the pixel value of the corrected image according to a first reduction normalization result corresponding to the standard normalization result to obtain a mapping image.
6. The image color gamut correction method according to claim 1, wherein before the step of performing white balance adjustment on the display screen image in a warm color temperature environment to obtain an adjusted image, the image color gamut correction method further comprises:
normalizing the display picture image to obtain a second normalization result;
according to the nonlinear function index corresponding to the display equipment, performing precompensation calculation on the second normalization result to obtain a compensation normalization result;
and correcting the pixel value of the display picture image according to a second reduction normalization result corresponding to the compensation normalization result to obtain a nonlinear correction image.
7. The image tone correction method of claim 1, wherein after the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image, the image tone correction method further comprises:
judging whether the color difference value corresponding to the mapping image is larger than a preset color difference threshold value or not;
if so, judging that the image color tone correction fails, and returning to the execution step: acquiring a display picture image corresponding to display equipment;
if not, the image color level correction is judged to be successful.
8. An image color gamut correction device, comprising:
the acquisition module is used for acquiring a display picture image corresponding to the display equipment;
the adjusting module is used for carrying out white balance adjustment on the display picture image in a warm color temperature environment to obtain an adjusted image;
the correction module is used for carrying out brightness correction on the adjusted image to obtain a corrected image;
and the mapping module is used for mapping the corrected image to a preset standard color gamut to obtain a mapped image.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the image color gamut correction method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a program for implementing an image color gamut correction method, the program being executable by a processor to implement the steps of the image color gamut correction method according to any one of claims 1 to 7.
CN202210391768.0A 2022-04-14 2022-04-14 Image color quasi correction method, device, electronic equipment and readable storage medium Active CN114928732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210391768.0A CN114928732B (en) 2022-04-14 2022-04-14 Image color quasi correction method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210391768.0A CN114928732B (en) 2022-04-14 2022-04-14 Image color quasi correction method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114928732A true CN114928732A (en) 2022-08-19
CN114928732B CN114928732B (en) 2024-01-23

Family

ID=82807179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210391768.0A Active CN114928732B (en) 2022-04-14 2022-04-14 Image color quasi correction method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114928732B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116700646A (en) * 2022-12-19 2023-09-05 荣耀终端有限公司 Image color difference processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005136854A (en) * 2003-10-31 2005-05-26 Konica Minolta Opto Inc White balance control apparatus and electronic apparatus
CN106997748A (en) * 2016-01-26 2017-08-01 索尼公司 The white balance dynamically set up based on ambient light in video display device
WO2018209984A1 (en) * 2017-05-17 2018-11-22 中兴通讯股份有限公司 Image processing method and apparatus
CN109361910A (en) * 2018-10-23 2019-02-19 浙江宇视科技有限公司 Self-adapted white balance correction method and device
CN111641819A (en) * 2020-05-19 2020-09-08 浙江大华技术股份有限公司 Method, device, system and computer device for white balance gain correction
CN113947533A (en) * 2020-07-16 2022-01-18 浙江宇视科技有限公司 Image color correction method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005136854A (en) * 2003-10-31 2005-05-26 Konica Minolta Opto Inc White balance control apparatus and electronic apparatus
CN106997748A (en) * 2016-01-26 2017-08-01 索尼公司 The white balance dynamically set up based on ambient light in video display device
WO2018209984A1 (en) * 2017-05-17 2018-11-22 中兴通讯股份有限公司 Image processing method and apparatus
CN109361910A (en) * 2018-10-23 2019-02-19 浙江宇视科技有限公司 Self-adapted white balance correction method and device
CN111641819A (en) * 2020-05-19 2020-09-08 浙江大华技术股份有限公司 Method, device, system and computer device for white balance gain correction
CN113947533A (en) * 2020-07-16 2022-01-18 浙江宇视科技有限公司 Image color correction method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116700646A (en) * 2022-12-19 2023-09-05 荣耀终端有限公司 Image color difference processing method and device
CN116700646B (en) * 2022-12-19 2024-05-28 荣耀终端有限公司 Image color difference processing method and device

Also Published As

Publication number Publication date
CN114928732B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
CN111429827B (en) Display screen color calibration method and device, electronic equipment and readable storage medium
CN109036333B (en) Display parameter correction method and device of display, terminal equipment and storage medium
EP2148515A1 (en) Image processor, and image processing method
US11257443B2 (en) Method for processing image, and display device
US10255883B2 (en) Image processing apparatus, method for controlling the same, display apparatus, and storage medium
US11380284B2 (en) Color space mapping method, equipment, computer readable storage medium, and device
WO2021223526A1 (en) Gamma debugging method and apparatus
CN114928732B (en) Image color quasi correction method, device, electronic equipment and readable storage medium
JP2015158626A (en) Calibration device, calibration method and program
WO2019165791A1 (en) Image conversion method and apparatus, terminal, and storage medium
CN112468793B (en) Color adjusting method and device of OLED screen and computer readable storage medium
US20130293568A1 (en) Image processing apparatus and image processing program product
CN111738950B (en) Image processing method and device
JP6702602B2 (en) Self image diagnostic method, self image diagnostic program, display device, and self image diagnostic system
CN113079362A (en) Video signal processing method and device and electronic equipment
US20220215814A1 (en) Image display device, image display system, image display method, and computer program
CN114220377B (en) Gamma debugging method and device of display module and electronic equipment
KR100723050B1 (en) Method of color correction for display and apparatus thereof
US9451130B2 (en) Image processing apparatus, image adjustment system, image processing method, and recording medium
CN111415393B (en) Method and device for adjusting display of multimedia blackboard, medium and electronic equipment
CN112504442B (en) Parameter determination method, device, equipment and storage medium
CN114693523A (en) Image color calibration method and device, electronic equipment and readable storage medium
CN115775541A (en) Backlight compensation method and device of display screen, chip and terminal
WO2016151944A1 (en) Image correction device, image correction method, and image correction program
CN108628715B (en) Display effect correction method and device of display equipment

Legal Events

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