CN114693523A - 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
CN114693523A
CN114693523A CN202210311762.8A CN202210311762A CN114693523A CN 114693523 A CN114693523 A CN 114693523A CN 202210311762 A CN202210311762 A CN 202210311762A CN 114693523 A CN114693523 A CN 114693523A
Authority
CN
China
Prior art keywords
image
color
adjustment
color gamut
mapping
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.)
Pending
Application number
CN202210311762.8A
Other languages
Chinese (zh)
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 CN202210311762.8A priority Critical patent/CN114693523A/en
Publication of CN114693523A publication Critical patent/CN114693523A/en
Pending legal-status Critical Current

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)
  • Facsimile Image Signal Circuits (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 nonlinear correction and saturation correction on the display picture image to obtain a corrected image; mapping the corrected image to a preset standard color gamut to obtain a mapped image; and carrying out white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment image. The application solves the technical problem of low color level of the display image 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 rapid development of science and technology, image processing technology is developed more and more mature, at present, image signal is adjusted by professional staff according to the color difference of the display image of the display equipment, and due to the limitation of people, the display effect of each display equipment cannot be guaranteed to be consistent; the naked eye has limited color sensitivity and cannot distinguish the difference between lower color levels, resulting in a low color level of the displayed image.
Disclosure of Invention
The present application mainly aims to provide an image color level correction method, an image color level correction device, an electronic device, and a readable storage medium, and aims to solve the technical problem of low color level of a display image in the prior art.
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 nonlinear correction and saturation correction on the display picture image to obtain a corrected image;
mapping the corrected image to a preset standard color gamut to obtain a mapped image;
and carrying out white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment image.
Optionally, the performing nonlinear correction on the display screen image includes:
carrying out normalization processing on the display picture image to obtain a processing result;
according to the nonlinear value corresponding to the display equipment, performing precompensation calculation on the processing result to obtain a compensation result;
and performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
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 an input image;
mapping the input image to a preset standard color gamut according to a conversion coefficient determined by a color gamut corresponding to the input image and the preset standard color gamut to obtain an output image;
and performing inverse normalization processing on the output image to obtain a mapping image.
Optionally, the step of performing white balance adjustment on the mapping image to obtain a first adjustment image includes:
counting white points and non-white points of the mapping image;
calculating a first white balance gain of the white point, and determining to obtain a second white balance gain of a non-white point according to the first white balance gain of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain and the second white balance gain to obtain a first adjustment image.
Optionally, the step of adjusting the first adjusted image in a preset stereo color space to obtain a second adjusted image includes:
acquiring color boundary points of the first adjustment image;
and adjusting the color boundary points according to the preset standard color gamut to obtain a second adjusted image.
Optionally, the step of adjusting the first adjusted image in a preset stereo color space to obtain a second adjusted image includes:
acquiring an image gradient map of the first adjustment image, and selecting color step points according to the image gradient map;
and adjusting the color step points according to the preset standard color gamut to obtain a second adjusted image.
Optionally, after the step of performing white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset stereo color space to obtain a second adjustment image, the image color calibration method further includes:
judging whether the color difference value corresponding to the second adjustment 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 correction module is used for carrying out nonlinear correction and saturation correction on the display picture image to obtain a corrected image;
the mapping module is used for mapping the corrected image to a preset standard color gamut to obtain a mapped image;
and the adjusting module is used for carrying out white balance adjustment on the mapping image to obtain a first adjusting image, and adjusting the first adjusting image in a preset three-dimensional color space to obtain a second adjusting image.
Optionally, in the step of performing nonlinear correction on the display screen image, the correction module is further configured to:
carrying out normalization processing on the display picture image to obtain a processing result;
according to the nonlinear value corresponding to the display equipment, performing precompensation calculation on the processing result to obtain a compensation result;
and performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
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 an input image;
mapping the input image to a preset standard color gamut according to a conversion coefficient determined by a color gamut corresponding to the input image and the preset standard color gamut to obtain an output image;
and performing inverse normalization processing on the output image to obtain a mapping image.
Optionally, in the step of performing white balance adjustment on the mapping image, the adjusting module is further configured to:
counting white points and non-white points of the mapping image;
calculating a first white balance gain of the white point, and determining to obtain a second white balance gain of a non-white point according to the first white balance gain of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain and the second white balance gain to obtain a first adjustment image.
Optionally, in the step of adjusting the first adjustment image in the preset stereoscopic color space to obtain a second adjustment image, the adjusting module is further configured to:
acquiring color boundary points of the first adjustment image;
and adjusting the color boundary points according to the preset standard color gamut to obtain a second adjusted image.
Optionally, in the step of adjusting the first adjustment image in a preset stereo color space to obtain a second adjustment image, the adjusting module is further configured to:
acquiring an image gradient map of the first adjustment image, and selecting color step points according to the image gradient map;
and adjusting the number of the color points according to the preset standard color gamut to obtain a second adjusted image.
Optionally, after the step of performing white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset stereo color space to obtain a second adjustment image, the adjusting module is further configured to:
judging whether the color difference value corresponding to the second adjustment 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 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, which program, when executed by the processor, may implement the steps of the image color gamut correction method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing an image color gamut correction method, which program, 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 a professional adjusts an image signal 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 nonlinear correction and saturation correction on the display picture image to obtain a corrected image; mapping the corrected image to a preset standard color gamut to obtain a mapped image; performing white balance adjustment on the mapping image to obtain a first adjustment image, adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment image, by carrying out nonlinear correction and white balance adjustment on the images, the correction compensates the color and brightness display differences of the images output by different display devices, the image is adjusted to the standard color gamut by performing color gamut mapping, saturation correction and adjustment of the image in the preset stereo color space, so as to ensure the consistency of the output images of different display devices, avoid the color difference of the display images of the display devices by professional personnel, when the image signal is adjusted, the color sensitivity of naked eyes is limited, so that the difference between lower color levels cannot be distinguished, the technical defect of low color level of the displayed image is caused, and the color level of the displayed image is improved.
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 comprehensible, embodiments accompanied with 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 calibration method according to the present application, referring to fig. 1, the image color calibration method includes:
step S10, acquiring a display image corresponding to the display device;
step S20, carrying out nonlinear correction and saturation correction on the display picture image to obtain a corrected image;
exemplarily, the steps S10 to S20 include: after a display picture image corresponding to display equipment is obtained, converting the display picture image into an RGB (Red, Green, Blue, Red, Green and Blue) color space to obtain a first conversion image, performing linear tone editing on the first conversion image, detecting a deep color part and a light color part of the first conversion image, and adjusting the proportion of the deep color part and the light color part to obtain a nonlinear correction image; converting the nonlinear corrected image into HSV (Hue, Saturation, brightness) color space to obtain a second converted image, and adjusting an S channel Value of the second converted image according to a preset standard color gamut to complete the correction of the Saturation to obtain a corrected image, wherein the preset standard color gamut is a preset standard color gamut for image correction, and the nonlinear correction may be GAMMA (GAMMA, derived from a response curve of a display or a television).
Wherein, in step S20, the performing nonlinear correction on the display screen image includes:
step S21, carrying out normalization processing on the display picture image to obtain a processing result;
step S22, according to the nonlinear value corresponding to the display device, pre-compensating the processing result to obtain a compensation result;
and step S23, performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
In this embodiment, it should be noted that the non-linearization value is a linear portion in a characteristic curve corresponding to the digital brightness value at the input end and the display end, and the non-linearization value is determined by an attribute of the display device.
As one example, steps S21 to S23 include: converting the display picture image into an HSV color space to obtain a first conversion image, and converting a V channel value of the first conversion image into a real number with a range of 0-1 to perform normalization processing to obtain a processing result; according to the nonlinear value corresponding to the display equipment, performing exponential operation on the nonlinear value, and performing pre-compensation calculation on the processing result to obtain a compensation result; and performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
As one example, steps S21 to S23 include: converting the display picture image into an LAB color space to obtain a first conversion image, and converting an L channel value of the first conversion image into a real number in a range of 0-1 to perform normalization processing to obtain a processing result; according to the nonlinear value corresponding to the display equipment, performing exponential operation on the nonlinear value, and performing precompensation calculation on the processing result to obtain a compensation result; and performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
As one example, steps S21 to S23 include: converting the display picture image into a YUV color space to obtain a first converted image, and converting a Y channel value of the first converted image into a real number in a range of 0-1 for normalization processing to obtain a processing result; according to the nonlinear value corresponding to the display equipment, performing exponential operation on the nonlinear value, and performing precompensation calculation on the processing result to obtain a compensation result; and performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
Step S30, mapping the correction image to a preset standard color gamut to obtain a mapping 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 S30 includes: and adjusting the corrected image according to a preset standard color gamut to obtain a mapping image.
In step S30, the step of mapping the corrected image to a preset standard color gamut to obtain a mapped image includes:
step S31, normalizing the corrected image to obtain an input image;
step S32, mapping the input image to a preset standard color gamut according to a conversion coefficient determined by a color gamut corresponding to the input image and the preset standard color gamut to obtain an output image;
and step S33, performing inverse normalization processing on the output image to obtain a mapping image.
Exemplarily, the steps S31 to S33 include: converting the corrected image into an RGB color space to obtain a third converted image, and converting the third converted image into real numbers with the range of 0-1 to perform normalization processing to obtain an input image; extracting a color gamut boundary of the input image and a preset standard color gamut, determining a conversion coefficient between the color gamut corresponding to the input image and the preset standard color gamut according to the color gamut boundary, and calculating the product of the input image and the conversion coefficient to obtain an output image; and performing inverse normalization processing on the output image to obtain a mapping image.
Step S40, performing white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment image;
in this embodiment, it should be noted that the preset stereoscopic color space is a preset color space determined according to the image processing capability corresponding to the display device.
Exemplarily, the step S40 includes: acquiring white balance gains corresponding to pixel points of the mapping image, and adjusting the pixel points according to the white balance gains to obtain a first adjustment image; and acquiring a color boundary point or a color step point of the first adjustment image in a preset three-dimensional color space, and adjusting the color boundary point or the color step point to obtain a second adjustment image.
In step S40, the step of performing white balance adjustment on the mapping image to obtain a first adjustment image includes:
step A10, counting white points and non-white points of the mapping image;
step A20, calculating a first white balance gain of the white point, and determining a second white balance gain of a non-white point according to the first white balance gain of the white point;
step a30, performing white balance adjustment on the mapping image according to the first white balance gain and the second white balance gain to obtain a first adjusted image.
Illustratively, steps a10 through a30 include: judging whether the image corresponding to the mapping image is a mixed color temperature image or not, if so, counting white dots to be classified into one type, and counting non-white dots to be classified into one type; 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, and calculating a first white balance gain corresponding to the white point according to the RGB image pixel value corresponding to the white point on the white balance gray area; determining a second white balance gain of the non-white point according to the first white balance gain; and adjusting the white point according to the first white balance gain, and adjusting the non-white point according to the second white balance gain to obtain a first adjusted image.
In step S40, the adjusting the first adjusted image in the preset stereo color space to obtain a second adjusted image includes:
step B10, acquiring color boundary points of the first adjustment image;
exemplarily, step B10 includes: acquiring pixel points of the first adjustment image in a preset three-dimensional color space, and judging whether RGB channel values of the pixel points and adjacent pixel points are larger than a preset RGB threshold value or not; if the RGB channel values of the pixel point and the adjacent pixel point are larger than a preset RGB threshold value, judging that the pixel point is a color boundary point; and if the RGB channel values of the pixel point and the adjacent pixel point are not larger than a preset RGB threshold value, judging that the pixel point is not a color boundary point, wherein the preset RGB threshold value is a critical value of an RGB difference value between the adjacent pixel points when the preset judgment pixel point is the color boundary point.
And step B20, adjusting the color boundary points according to the preset standard color gamut to obtain a second adjusted image.
Exemplarily, step B20 includes: and adjusting the RGB channel values of the color boundary points according to the RGB channel values corresponding to the preset standard color gamut to obtain a second adjusted image.
In step S40, the adjusting the first adjusted image in the preset stereo color space to obtain a second adjusted image further includes:
step C10, obtaining an image gradient map of the first adjustment image, and selecting color jump points according to the image gradient map;
in this embodiment, it should be noted that the image gradient is a rate of change of a certain pixel of the image in both x and y directions.
Illustratively, step C10 includes: judging whether the image gradient of a pixel point of the first adjustment image in a preset three-dimensional color space is greater than a preset image gradient threshold value or not by acquiring the image gradient of the pixel point, if so, judging that the pixel point is a color step point, and selecting the color step point; and if the image gradient of the pixel point is not larger than a preset image gradient threshold value, judging that the pixel point is not a color step point.
And step C20, adjusting the color point number according to the preset standard color gamut to obtain an adjusted image.
Illustratively, step C10 includes: and adjusting the RGB channel values of the color jump points according to the RGB channel values corresponding to the preset standard color gamut to obtain a second adjusted image.
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 nonlinear correction and saturation correction on the display picture image to obtain a corrected image; mapping the corrected image to a preset standard color gamut to obtain a mapped image; performing white balance adjustment on the mapping image to obtain a first adjustment image, adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment image, by carrying out nonlinear correction and white balance adjustment on the images, the correction compensates the color and brightness display differences of the images output by different display devices, the image is adjusted to the standard color gamut by performing color gamut mapping, saturation correction and adjustment of the image in the preset stereo color space, so as to ensure the consistency of the output images of different display devices, avoid the color difference of the display images of the display devices by professional personnel, when the image signal is adjusted, the color sensitivity of naked eyes is limited, so that the difference between lower color levels cannot be distinguished, the technical defect of low color level of the displayed image is caused, and the color level of the displayed image is improved.
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 this basis, in step S40, after the step of performing white balance adjustment on the mapping image to obtain a first adjustment image, and performing adjustment on the first adjustment image in a preset stereo color space to obtain a second adjustment image, the image color gamut correction method further includes:
step S41, determining whether the color difference value corresponding to the second adjustment image is greater than a preset color difference threshold;
step S42, if yes, determining that the image tone correction has failed, and returning to the execution step: acquiring a display picture image corresponding to display equipment;
in step S43, if not, it is determined that the image tone 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 steps S41 to S43 include: judging whether the color difference value corresponding to the second adjustment 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 the preset color difference threshold value, judging that the image color level 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 level obtains the display image corresponding to the display equipment; carrying out nonlinear correction and saturation correction on the display picture image to obtain a corrected image; mapping the corrected image to a preset standard color gamut to obtain a mapped image; performing white balance adjustment on the mapping image to obtain a first adjustment image, adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment image, by carrying out nonlinear correction and white balance adjustment on the images, the correction compensates the color and brightness display differences of the images output by different display devices, the image is adjusted to the standard color gamut by performing color gamut mapping, saturation correction and adjustment of the image in the preset stereo color space, so as to ensure the consistency of the output images of different display devices, avoid the color difference of the display images of the display devices by professional personnel, when the image signal is adjusted, the color sensitivity of naked eyes is limited, so that the difference between lower color levels cannot be distinguished, the technical defect of low color level of the displayed image is caused, and the color level of the displayed image is improved.
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 correction module is used for carrying out nonlinear correction and saturation correction on the display picture image to obtain a corrected image;
the mapping module is used for mapping the corrected image to a preset standard color gamut to obtain a mapped image;
and the adjusting module is used for carrying out white balance adjustment on the mapping image to obtain a first adjusting image, and adjusting the first adjusting image in a preset three-dimensional color space to obtain a second adjusting image.
Optionally, in the step of performing nonlinear correction on the display screen image, the correction module is further configured to:
carrying out normalization processing on the display picture image to obtain a processing result;
according to the nonlinear value corresponding to the display equipment, performing precompensation calculation on the processing result to obtain a compensation result;
and performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
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 an input image;
mapping the input image to a preset standard color gamut according to a conversion coefficient determined by a color gamut corresponding to the input image and the preset standard color gamut to obtain an output image;
and performing inverse normalization processing on the output image to obtain a mapping image.
Optionally, in the step of performing white balance adjustment on the mapping image, the adjusting module is further configured to:
counting white points and non-white points of the mapping image;
calculating a first white balance gain of the white point, and determining to obtain a second white balance gain of a non-white point according to the first white balance gain of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain and the second white balance gain to obtain a first adjustment image.
Optionally, in the step of adjusting the first adjustment image in the preset stereoscopic color space to obtain a second adjustment image, the adjusting module is further configured to:
acquiring color boundary points of the first adjustment image;
and adjusting the color boundary points according to the preset standard color gamut to obtain a second adjusted image.
Optionally, in the step of adjusting the first adjustment image in a preset stereo color space to obtain a second adjustment image, the adjusting module is further configured to:
acquiring an image gradient map of the first adjustment image, and selecting color step points according to the image gradient map;
and adjusting the number of the color points according to the preset standard color gamut to obtain a second adjusted image.
Optionally, after the step of performing white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset stereo color space to obtain a second adjustment image, the adjusting module is further configured to:
judging whether the color difference value corresponding to the second adjustment 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 image color level correction device provided by the invention adopts the image color level correction method in the embodiment, and solves the technical problem of low color level of the displayed image. 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 block 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 apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus 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 by 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, etc.; 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 functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the image color level correction method in the first embodiment or the second embodiment, and solves the technical problem of low color level of the displayed image. 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 level correction 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 repeated herein.
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 appended 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.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is 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 an electronic device, cause the electronic device to: acquiring a display picture image corresponding to display equipment; carrying out nonlinear correction and saturation correction on the display picture image to obtain a corrected image; mapping the corrected image to a preset standard color gamut to obtain a mapped image; and carrying out white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment 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 case of a remote computer, 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 level correction method and solves the technical problem of low color level of a displayed image. 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 level correction method provided by the implementation, and 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 low color level 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 nonlinear correction and saturation correction on the display picture image to obtain a corrected image;
mapping the corrected image to a preset standard color gamut to obtain a mapped image;
and carrying out white balance adjustment on the mapping image to obtain a first adjustment image, and adjusting the first adjustment image in a preset three-dimensional color space to obtain a second adjustment image.
2. The image tone correction method of claim 1, wherein said non-linearly correcting said display screen image comprises:
normalizing the display picture image to obtain a processing result;
according to the nonlinear value corresponding to the display equipment, performing precompensation calculation on the processing result to obtain a compensation result;
and performing inverse normalization processing on the compensation result to obtain a nonlinear correction image.
3. 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 an input image;
mapping the input image to a preset standard color gamut according to a conversion coefficient determined by a color gamut corresponding to the input image and the preset standard color gamut to obtain an output image;
and performing inverse normalization processing on the output image to obtain a mapping image.
4. The image color gamut correction method according to claim 1, wherein said step of performing a white balance adjustment on said mapped image to obtain a first adjusted image comprises:
counting white points and non-white points of the mapping image;
calculating a first white balance gain of the white point, and determining a second white balance gain of a non-white point according to the first white balance gain of the white point;
and carrying out white balance adjustment on the mapping image according to the first white balance gain and the second white balance gain to obtain a first adjustment image.
5. The image color gamut correction method according to claim 1, wherein the step of adjusting the first adjusted image in a predetermined stereo color space to obtain a second adjusted image comprises:
acquiring color boundary points of the first adjustment image;
and adjusting the color boundary points according to the preset standard color gamut to obtain a second adjusted image.
6. The image color gamut correction method according to claim 1, wherein the step of adjusting the first adjusted image in a predetermined stereo color space to obtain a second adjusted image further comprises:
acquiring an image gradient map of the first adjustment image, and selecting color step points according to the image gradient map;
and adjusting the color step points according to the preset standard color gamut to obtain a second adjusted image.
7. The image color gamut correction method according to claim 1, wherein after the steps of performing white balance adjustment on the mapping image to obtain a first adjustment image, and performing adjustment on the first adjustment image in a preset stereo color space to obtain a second adjustment image, the image color gamut correction method further comprises:
judging whether the color difference value corresponding to the second adjustment 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.
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 correction module is used for carrying out nonlinear correction and saturation correction on the display picture image to obtain a corrected image;
the mapping module is used for mapping the corrected image to a preset standard color gamut to obtain a mapped image;
and the adjusting module is used for carrying out white balance adjustment on the mapping image to obtain a first adjusting image, and adjusting the first adjusting image in a preset three-dimensional color space to obtain a second adjusting 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 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.
CN202210311762.8A 2022-03-28 2022-03-28 Image color calibration method and device, electronic equipment and readable storage medium Pending CN114693523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210311762.8A CN114693523A (en) 2022-03-28 2022-03-28 Image color calibration method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210311762.8A CN114693523A (en) 2022-03-28 2022-03-28 Image color calibration method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114693523A true CN114693523A (en) 2022-07-01

Family

ID=82141087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210311762.8A Pending CN114693523A (en) 2022-03-28 2022-03-28 Image color calibration method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114693523A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223018A1 (en) * 2004-05-11 2007-09-27 Koninklijke Philips Electronics, N.V. Method For Processing Color Image Data
CN108024107A (en) * 2017-12-06 2018-05-11 广东欧珀移动通信有限公司 Image processing method, device, electronic equipment and computer-readable recording medium
CN109361910A (en) * 2018-10-23 2019-02-19 浙江宇视科技有限公司 Self-adapted white balance correction method and device
CN111836029A (en) * 2019-04-18 2020-10-27 福州瑞芯微电子股份有限公司 White balance adjusting method and system based on color gamut mapping and white balance terminal
CN114067003A (en) * 2020-07-31 2022-02-18 北京小米移动软件有限公司 Color gamut conversion method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223018A1 (en) * 2004-05-11 2007-09-27 Koninklijke Philips Electronics, N.V. Method For Processing Color Image Data
CN108024107A (en) * 2017-12-06 2018-05-11 广东欧珀移动通信有限公司 Image processing method, device, electronic equipment and computer-readable recording medium
CN109361910A (en) * 2018-10-23 2019-02-19 浙江宇视科技有限公司 Self-adapted white balance correction method and device
CN111836029A (en) * 2019-04-18 2020-10-27 福州瑞芯微电子股份有限公司 White balance adjusting method and system based on color gamut mapping and white balance terminal
CN114067003A (en) * 2020-07-31 2022-02-18 北京小米移动软件有限公司 Color gamut conversion method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111429827B (en) Display screen color calibration method and device, electronic equipment and readable storage medium
CN110211030B (en) Image generation method and device
US11380284B2 (en) Color space mapping method, equipment, computer readable storage medium, and device
WO2016031006A1 (en) Display device, gradation correction map generation device, method and program for generating gradation correction map
US11574607B2 (en) Display device and control method of display device
KR20190027131A (en) Apparatus and method for display visibility enhancement
JP2021006982A (en) Method and device for determining character color
WO2019004701A1 (en) Method for processing image, and display device
CN114928732B (en) Image color quasi correction method, device, electronic equipment and readable storage medium
US20130293568A1 (en) Image processing apparatus and image processing program product
CN111738950B (en) Image processing method and device
EP4040786A1 (en) Saturation enhancement method and device, and computer readable storage medium
US11763777B2 (en) Image display device, image display system, image display method, and computer program for providing a low-luminance grayscale standard display function (GSDF) display
JP6702602B2 (en) Self image diagnostic method, self image diagnostic program, display device, and self image diagnostic system
CN114220377B (en) Gamma debugging method and device of display module and electronic equipment
CN114693523A (en) Image color calibration method and device, electronic equipment and readable storage medium
CN111415393B (en) Method and device for adjusting display of multimedia blackboard, medium and electronic equipment
US10735703B2 (en) Electronic device and associated image processing method
CN113870219A (en) Projection font color selection method and device, electronic equipment and storage medium
CN115801975A (en) Video processing method, device, equipment and medium
CN108628715B (en) Display effect correction method and device of display equipment
CN115147307A (en) Color compensation method and device, electronic equipment and readable storage medium
WO2023036111A1 (en) Video processing method and apparatus, device and medium
CN114693559A (en) Image processing optimization method and device, electronic equipment and readable storage medium
CN118506712B (en) Pixel compensation method, device and storage medium

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