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

Image color calibration method, device, electronic device 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
color gamut
adjusted
adjustment
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)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

本申请公开了图像色准校正方法、装置、电子设备及可读存储介质,应用于图像处理技术领域,所述图像色准校正方法包括:获取显示设备对应的显示画面图像;对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;将所述校正图像映射至预设标准色域,得到映射图像;对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像。本申请解决了现有技术中显示图像色准低的技术问题。

Figure 202210311762

The present application discloses a method, device, electronic device, and readable storage medium for image color calibration, which are applied to the technical field of image processing. The image color calibration method includes: acquiring a display image corresponding to a display device; Perform nonlinear correction and saturation correction on the image to obtain a corrected image; map the corrected image to a preset standard color gamut to obtain a mapped image; perform white balance adjustment on the mapped image to obtain a first adjusted image, which is pre- The first adjusted image is adjusted in a volume color space to obtain a second adjusted image. The present application solves the technical problem of low color accuracy of displayed images in the prior art.

Figure 202210311762

Description

图像色准校正方法、装置、电子设备及可读存储介质Image color calibration method, device, electronic device and readable storage medium

技术领域technical field

本申请涉及图像处理技术领域,尤其涉及一种图像色准校正方法、装置、电子设备及可读存储介质。The present application relates to the technical field of image processing, and in particular, to an image color calibration method, device, electronic device, and readable storage medium.

背景技术Background technique

随着科技的高速发展,图像处理技术也发展地越来越成熟,目前,图像色准校正采用专业人员依据显示设备的显示图像的色差,对图像信号进行调整,由于人的局限性,无法保证每一个显示设备的显示效果一致;而肉眼的色彩敏感度有限,无法辨别较低色准之间的差异,从而导致显示图像色准低。With the rapid development of science and technology, the image processing technology has also become more and more mature. At present, the color calibration of the image adopts professionals to adjust the image signal according to the color difference of the displayed image of the display device. Due to human limitations, it is impossible to guarantee The display effect of each display device is consistent; the color sensitivity of the naked eye is limited, and the difference between the lower color standards cannot be discerned, resulting in a low color standard of the displayed image.

发明内容SUMMARY OF THE INVENTION

本申请的主要目的在于提供一种图像色准校正方法、装置、电子设备及可读存储介质,旨在解决现有技术中显示图像色准低的技术问题。The main purpose of the present application is to provide an image color level correction method, device, electronic device and readable storage medium, which aims to solve the technical problem of low color level of displayed images in the prior art.

为实现上述目的,本申请提供一种图像色准校正方法,应用于图像色准校正设备,所述图像色准校正方法包括:In order to achieve the above object, the present application provides an image color calibration method, which is applied to an image color calibration device, and the image color calibration method includes:

获取显示设备对应的显示画面图像;Obtain the display screen image corresponding to the display device;

对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;Perform nonlinear correction and saturation correction on the display 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 mapped image to obtain a first adjusted image, and adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image.

可选地,所述对所述显示画面图像进行非线性化校正,包括:Optionally, the performing nonlinear correction on the display image includes:

对所述显示画面图像进行归一化处理,得到处理结果;performing normalization processing on the display screen image to obtain a processing result;

依据所述显示设备对应的非线性化值,对所述处理结果进行预补偿计算,得到补偿结果;performing pre-compensation calculation on the processing result according to the non-linearization value corresponding to the display device to obtain a compensation result;

对所述补偿结果进行反归一化处理,得到非线性化校正图像。Perform inverse normalization processing on the compensation result to obtain a non-linear corrected image.

可选地,所述将所述校正图像映射至预设标准色域,得到映射图像的步骤包括:Optionally, the step of mapping the corrected image to a preset standard color gamut to obtain the mapped image includes:

对所述校正图像进行归一化处理,得到输入图像;normalizing the corrected image to obtain an input image;

依据输入图像对应的色域与预设标准色域确定的转换系数,将所述输入图像映射至所述预设标准色域,得到输出图像;According to the conversion coefficient determined by the color gamut corresponding to the input image and the preset standard color gamut, the input image is mapped to the preset standard color gamut to obtain an output image;

对所述输出图像进行反归一化处理,得到映射图像。De-normalize the output image to obtain a mapped image.

可选地,所述对所述映射图像进行白平衡调整得到第一调整图像的步骤包括:Optionally, the step of performing white balance adjustment on the mapped image to obtain the first adjusted image includes:

统计所述映射图像的白点和非白点;Counting the white points and non-white points of the mapped image;

计算所述白点的第一白平衡增益,并依据所述白点的第一白平衡增益确定得到非白点的第二白平衡增益;Calculate the first white balance gain of the white point, and determine and obtain the second white balance gain of the non-white point according to the first white balance gain of the white point;

依据所述第一白平衡增益与所述第二白平衡增益,对所述映射图像进行白平衡调整,得到第一调整图像。According to the first white balance gain and the second white balance gain, white balance adjustment is performed on the mapped image to obtain a first adjusted image.

可选地,所述在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤包括:Optionally, the step of adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image includes:

获取所述第一调整图像的色彩边界点;acquiring color boundary points of the first adjusted image;

依据所述预设标准色域,对所述色彩边界点进行调整,得到第二调整图像。According to the preset standard color gamut, the color boundary points are adjusted to obtain a second adjusted image.

可选地,所述在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤包括:Optionally, the step of adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image includes:

获取所述第一调整图像的图像梯度图,并依据所述图像梯度图选取颜色阶跃点;acquiring an image gradient map of the first adjusted image, and selecting a color step point according to the image gradient map;

依据所述预设标准色域,对所述颜色阶跃点进行调整,得到第二调整图像。According to the preset standard color gamut, the color step point is adjusted to obtain a second adjusted image.

可选地,在所述对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤之后,所述图像色准校正方法还包括:Optionally, after the steps of performing white balance adjustment on the mapped image to obtain a first adjusted image, and adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image, the The image color calibration method also includes:

判断所述第二调整图像对应的色差值是否大于预设色差阈值;judging whether the color difference value corresponding to the second adjusted image is greater than a preset color difference threshold;

若是,则判定图像色准校正失败,返回执行步骤:获取显示设备对应的显示画面图像;If so, it is determined that the color calibration of the image fails, and the execution step is returned to: acquiring the display screen image corresponding to the display device;

若否,则判定图像色准校正成功。If not, it is determined that the color calibration of the image is successful.

为实现上述目的,本申请还提供一种图像色准校正装置,所述图像色准校正装置应用于图像色准校正设备,所述图像色准校正装置包括:In order to achieve the above purpose, the present application also provides an image color alignment correction device, the image color alignment correction device is applied to an image color alignment correction device, and the image color alignment correction device includes:

获取模块,用于获取显示设备对应的显示画面图像;an acquisition module, used to acquire the display screen image corresponding to the display device;

校正模块,用于对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;a correction module, configured to perform nonlinear correction and saturation correction on the display image to obtain a corrected image;

映射模块,用于将所述校正图像映射至预设标准色域,得到映射图像;a mapping module, configured to map the corrected image to a preset standard color gamut to obtain a mapped image;

调整模块,用于对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像。An adjustment module, configured to perform white balance adjustment on the mapped image to obtain a first adjusted image, and adjust the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image.

可选地,在所述对所述显示画面图像进行非线性化校正的步骤中,所述校正模块还用于:Optionally, in the step of performing nonlinear correction on the display image, the correction module is further configured to:

对所述显示画面图像进行归一化处理,得到处理结果;performing normalization processing on the display screen image to obtain a processing result;

依据所述显示设备对应的非线性化值,对所述处理结果进行预补偿计算,得到补偿结果;performing pre-compensation calculation on the processing result according to the non-linearization value corresponding to the display device to obtain a compensation result;

对所述补偿结果进行反归一化处理,得到非线性化校正图像。Perform inverse normalization processing on the compensation result to obtain a non-linear corrected 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;

依据输入图像对应的色域与预设标准色域确定的转换系数,将所述输入图像映射至所述预设标准色域,得到输出图像;According to the conversion coefficient determined by the color gamut corresponding to the input image and the preset standard color gamut, the input image is mapped to the preset standard color gamut to obtain an output image;

对所述输出图像进行反归一化处理,得到映射图像。De-normalize the output image to obtain a mapped image.

可选地,在所述对所述映射图像进行白平衡调整的步骤中,所述调整模块还用于:Optionally, in the step of performing white balance adjustment on the mapped image, the adjustment module is further configured to:

统计所述映射图像的白点和非白点;Counting the white points and non-white points of the mapped image;

计算所述白点的第一白平衡增益,并依据所述白点的第一白平衡增益确定得到非白点的第二白平衡增益;Calculate the first white balance gain of the white point, and determine and obtain the second white balance gain of the non-white point according to the first white balance gain of the white point;

依据所述第一白平衡增益与所述第二白平衡增益,对所述映射图像进行白平衡调整,得到第一调整图像。According to the first white balance gain and the second white balance gain, white balance adjustment is performed on the mapped image to obtain a first adjusted image.

可选地,在所述在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤中,所述调整模块还用于:Optionally, in the step of adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image, the adjustment module is further configured to:

获取所述第一调整图像的色彩边界点;acquiring color boundary points of the first adjusted image;

依据所述预设标准色域,对所述色彩边界点进行调整,得到第二调整图像。According to the preset standard color gamut, the color boundary points are adjusted to obtain a second adjusted image.

可选地,在在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤中,所述调整模块还用于:Optionally, in the step of adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image, the adjustment module is further configured to:

获取所述第一调整图像的图像梯度图,并依据所述图像梯度图选取颜色阶跃点;acquiring an image gradient map of the first adjusted image, and selecting a color step point according to the image gradient map;

依据所述预设标准色域,对所述颜色点数进行调整,得到第二调整图像。According to the preset standard color gamut, the number of color points is adjusted to obtain a second adjusted image.

可选地,在所述对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤之后,所述调整模块还用于:Optionally, after the steps of performing white balance adjustment on the mapped image to obtain a first adjusted image, and adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image, the The adjustment module described above is also used to:

判断所述第二调整图像对应的色差值是否大于预设色差阈值;judging whether the color difference value corresponding to the second adjusted image is greater than a preset color difference threshold;

若是,则判定图像色准校正失败,返回执行步骤:获取显示设备对应的显示画面图像;If so, it is determined that the color calibration of the image fails, and the execution step is returned to: acquiring the display screen image corresponding to the display device;

若否,则判定图像色准校正成功。If not, it is determined that the color calibration of the image is successful.

本申请还提供一种电子设备,所述电子设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述图像色准校正方法的程序,所述图像色准校正方法的程序被处理器执行时可实现如上述的图像色准校正方法的步骤。The present application also provides an electronic device, the electronic device comprising: a memory, a processor, and a program of the image color calibration method stored on the memory and executable on the processor, the image color calibration method When the program of the quasi-calibration method is executed by the processor, the steps of the above-mentioned image chromatic calibration method can be realized.

本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有实现图像色准校正方法的程序,所述图像色准校正方法的程序被处理器执行时实现如上述的图像色准校正方法的步骤。The present application also provides a computer-readable storage medium, where a program for implementing the method for calibrating an image is stored thereon, and when the program for the method for calibrating an image is executed by a processor, the above-mentioned image is realized. The steps of the color calibration method.

本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的图像色准校正方法的步骤。The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned image color calibration method.

本申请提供了一种图像色准校正方法、装置、电子设备及可读存储介质,相比于现有技术采用的专业人员依据显示设备的显示图像的色差,对图像信号进行调整的方法,本申请通过获取显示设备对应的显示画面图像;对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;将所述校正图像映射至预设标准色域,得到映射图像;对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像,通过对图像进行非线性化校正和白平衡调整,校正补偿了不同显示设备输出图像的颜色和亮度显示差异,通过对图像进行色域映射、饱和度校正以及在预设立体色彩空间中对图像进行调整,将图像调整至标准色域,以保证不同显示设备的输出图像一致性,避免了采用专业人员依据显示设备的显示图像的色差,对图像信号进行调整时,由于肉眼的色彩敏感度有限,无法辨别较低色准之间的差异,导致显示图像色准低的技术缺陷,从而提高了显示图像的色准。The present application provides an image color calibration method, device, electronic device and readable storage medium. Compared with the method used in the prior art for professionals to adjust the image signal according to the color difference of the displayed image of the display device, the present invention The application obtains a display screen image corresponding to a display device; performs nonlinear correction and saturation correction on the display screen image to obtain a corrected image; maps the corrected image to a preset standard color gamut to obtain a mapped image; performing white balance adjustment on the mapped image to obtain a first adjustment image, and adjusting the first adjustment image in a preset stereoscopic color space to obtain a second adjustment image, and performing nonlinear correction and white balance adjustment on the image, The calibration compensates for the difference in color and brightness of the output images of different display devices. By performing color gamut mapping, saturation correction on the image, and adjusting the image in the preset stereo color space, the image is adjusted to the standard color gamut to ensure different The consistency of the output image of the display device avoids the use of professionals based on the color difference of the displayed image of the display device. When adjusting the image signal, due to the limited color sensitivity of the naked eye, the difference between the lower color standards cannot be distinguished, resulting in display The technical defect of low image color accuracy, thereby improving the color accuracy of the displayed image.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.

图1为本申请图像色准校正方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of an image color calibration method of the present application;

图2为本申请图像色准校正方法第二实施例的流程示意图;FIG. 2 is a schematic flowchart of the second embodiment of the image color calibration method of the present application;

图3为本申请实施例中图像色准校正方法涉及的硬件运行环境的设备结构示意图。FIG. 3 is a schematic diagram of a device structure of a hardware operating environment involved in a method for calibrating an image in an embodiment of the present application.

本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本发明保护的范围。In order to make the above objects, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

实施例一Example 1

本申请实施例提供一种图像色准校正方法,在本申请图像色准校正方法的第一实施例中,参照图1,所述图像色准校正方法包括:An embodiment of the present application provides an image color calibration method. In the first embodiment of the image color calibration method of the present application, referring to FIG. 1 , the image color calibration method includes:

步骤S10,获取显示设备对应的显示画面图像;Step S10, acquiring a display screen image corresponding to the display device;

步骤S20,对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;Step S20, performing nonlinear correction and saturation correction on the display screen image to obtain a corrected image;

示例性地,步骤S10至步骤S20包括:在获取显示设备对应的显示画面图像后,将所述显示画面图像转换至RGB(Red,Green,Blue,红色绿色蓝色三原色)色彩空间,得到第一转换图像,通过对所述第一转换图像进行线性色调编辑,检测所述第一转换图像的深色部分和浅色部分,并调节所述深色部分与所述浅色部分的比例,得到非线性化校正图像;将所述非线性化校正图像转换至HSV(Hue,Saturation,Value,色调,饱和度,明度)色彩空间,得到第二转换图像,依据预设标准色域,对所述第二转换图像的S通道值进行调整,以完成饱和度的校正,得到校正图像,其中,所述预设标准色域为预先设置的图像校正的标准色域,所述非线性化校正可以为GAMMA(伽马,源于显示器或电视机的响应曲线)校正。Exemplarily, steps S10 to S20 include: after acquiring the display screen image corresponding to the display device, converting the display screen image to the RGB (Red, Green, Blue, red, green, and blue three primary colors) color space to obtain the first Converting the image, by performing linear tone editing on the first converted image, detecting the dark part and the light part of the first converted image, and adjusting the ratio of the dark part and the light part to obtain a non-converted image. Linearize the corrected image; convert the nonlinear corrected image to the HSV (Hue, Saturation, Value, Hue, Saturation, Lightness) color space to obtain a second converted image, and according to the preset standard color gamut, for the first Second, adjust the S channel value of the converted image to complete the correction of saturation and obtain a corrected image, wherein the preset standard color gamut is the preset standard color gamut for image correction, and the nonlinear correction can be GAMMA (Gamma, derived from the response curve of a monitor or TV) correction.

其中,在步骤S20中,所述对所述显示画面图像进行非线性化校正,包括:Wherein, in step S20, the non-linear correction of the display screen image includes:

步骤S21,对所述显示画面图像进行归一化处理,得到处理结果;Step S21, performing normalization processing on the display screen image to obtain a processing result;

步骤S22,依据所述显示设备对应的非线性化值,对所述处理结果进行预补偿计算,得到补偿结果;Step S22, performing pre-compensation calculation on the processing result according to the nonlinearization value corresponding to the display device, to obtain a compensation result;

步骤S23,对所述补偿结果进行反归一化处理,得到非线性化校正图像。Step S23, performing inverse normalization processing on the compensation result to obtain a non-linear correction image.

在本实施例中,需要说明的是,所述非线性化值为输入端的数字亮度值和显示端对应的特征曲线中的线性部分,所述非线性化值由显示设备的属性确定。In this embodiment, it should be noted that the non-linearization value is the linear part in the digital luminance value of the input terminal and the corresponding characteristic curve of the display terminal, and the non-linearization value is determined by the properties of the display device.

作为一种示例,步骤S21至步骤S23包括:将所述显示画面图像转换至HSV色彩空间,得到第一转换图像,通过将所述第一转换图像的V通道值转化为范围为0-1的实数进行归一化处理,得到处理结果;依据所述显示设备对应的非线性化值,将所述非线性化值进行指数运算后,并对所述处理结果进行预补偿计算,得到补偿结果;将所述补偿结果进行反归一化处理,得到非线性化校正图像。As an example, steps S21 to S23 include: converting the display screen image to the HSV color space to obtain a first converted image, by converting the V channel value of the first converted image to a range of 0-1 performing normalization processing on the real numbers to obtain a processing result; according to the non-linearization value corresponding to the display device, performing an exponential operation on the non-linearization value, and performing pre-compensation calculation on the processing result to obtain a compensation result; The compensation result is de-normalized to obtain a non-linear corrected image.

作为一种示例,步骤S21至步骤S23包括:将所述显示画面图像转换至LAB色彩空间,得到第一转换图像,通过将所述第一转换图像的L通道值转化为范围为0-1的实数进行归一化处理,得到处理结果;依据所述显示设备对应的非线性化值,将所述非线性化值进行指数运算后,并对所述处理结果进行预补偿计算,得到补偿结果;将所述补偿结果进行反归一化处理,得到非线性化校正图像。As an example, steps S21 to S23 include: converting the display image to the LAB color space to obtain a first converted image, by converting the L channel value of the first converted image into a range of 0-1 performing normalization processing on the real numbers to obtain a processing result; according to the non-linearization value corresponding to the display device, performing an exponential operation on the non-linearization value, and performing pre-compensation calculation on the processing result to obtain a compensation result; The compensation result is de-normalized to obtain a non-linear corrected image.

作为一种示例,步骤S21至步骤S23包括:将所述显示画面图像转换至YUV色彩空间,得到第一转换图像,通过将所述第一转换图像的Y通道值转化为范围为0-1的实数进行归一化处理,得到处理结果;依据所述显示设备对应的非线性化值,将所述非线性化值进行指数运算后,并对所述处理结果进行预补偿计算,得到补偿结果;将所述补偿结果进行反归一化处理,得到非线性化校正图像。As an example, steps S21 to S23 include: converting the display screen image into the YUV color space to obtain a first converted image, by converting the Y channel value of the first converted image into a range of 0-1 performing normalization processing on the real numbers to obtain a processing result; according to the non-linearization value corresponding to the display device, performing an exponential operation on the non-linearization value, and performing pre-compensation calculation on the processing result to obtain a compensation result; The compensation result is de-normalized to obtain a non-linear corrected image.

步骤S30,将所述校正图像映射至预设标准色域,得到映射图像;Step S30, 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 the color range that can be displayed or acquired by a given color medium under given observation conditions.

示例性地,步骤S30包括:依据预设标准色域,对所述校正图像进行调整,得到映射图像。Exemplarily, step S30 includes: adjusting the corrected image according to a preset standard color gamut to obtain a mapping image.

其中,在步骤S30中,所述将所述校正图像映射至预设标准色域,得到映射图像的步骤包括:Wherein, in step S30, the step of mapping the corrected image to a preset standard color gamut to obtain the mapped image includes:

步骤S31,对所述校正图像进行归一化处理,得到输入图像;Step S31, normalizing the corrected image to obtain an input image;

步骤S32,依据输入图像对应的色域与预设标准色域确定的转换系数,将所述输入图像映射至所述预设标准色域,得到输出图像;Step S32, mapping the input image to the preset standard color gamut according to the conversion coefficient determined by the color gamut corresponding to the input image and the preset standard color gamut to obtain an output image;

步骤S33,对所述输出图像进行反归一化处理,得到映射图像。Step S33, performing inverse normalization processing on the output image to obtain a mapping image.

示例性地,步骤S31至步骤S33包括:将所述校正图像转换至RGB色彩空间,得到第三转换图像,通过将所述第三转换图像转化为范围为0-1的实数进行归一化处理,得到输入图像;提取所述输入图像与预设标准色域的色域边界,并依据所述色域边界,确定所述输入图像对应的色域与预设标准色域之间的转换系数,通过计算所述输入图像与所述转换系数的乘积,得到输出图像;将所述输出图像进行反归一化处理,得到映射图像。Exemplarily, steps S31 to S33 include: converting the corrected image into the RGB color space to obtain a third converted image, and performing normalization processing by converting the third converted image into a real number in the range of 0-1 , obtain an input image; extract the color gamut boundary between the input image and the preset standard color gamut, and determine the conversion coefficient between the color gamut corresponding to the input image and the preset standard color gamut according to the color gamut boundary, The output image is obtained by calculating the product of the input image and the conversion coefficient; the output image is denormalized to obtain a mapping image.

步骤S40,对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像;Step S40, performing white balance adjustment on the mapped image to obtain a first adjusted image, and adjusting the first adjusted image in a preset three-dimensional color space to obtain a second adjusted 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.

示例性地,步骤S40包括:获取所述映射图像的像素点对应的白平衡增益,并依据所述白平衡增益对所述像素点进行调整得到第一调整图像;获取所述第一调整图像在预设立体色彩空间中的色彩边界点或颜色阶跃点,并对所述色彩边界点或所述颜色阶跃点进行调整,得到第二调整图像。Exemplarily, step S40 includes: acquiring a white balance gain corresponding to a pixel of the mapped image, and adjusting the pixel according to the white balance gain to obtain a first adjusted image; acquiring the first adjusted image at The color boundary point or the color step point in the stereoscopic color space is preset, and the color boundary point or the color step point is adjusted to obtain a second adjusted image.

其中,在步骤S40中,所述对所述映射图像进行白平衡调整得到第一调整图像的步骤包括:Wherein, in step S40, the step of performing white balance adjustment on the mapped image to obtain a first adjusted image includes:

步骤A10,统计所述映射图像的白点和非白点;Step A10, counting the white points and non-white points of the mapped image;

步骤A20,计算所述白点的第一白平衡增益,并依据所述白点的第一白平衡增益确定得到非白点的第二白平衡增益;Step A20, calculating the first white balance gain of the white point, and determining and obtaining the second white balance gain of the non-white point according to the first white balance gain of the white point;

步骤A30,依据所述第一白平衡增益与所述第二白平衡增益,对所述映射图像进行白平衡调整,得到第一调整图像。Step A30: Perform white balance adjustment on the mapped image according to the first white balance gain and the second white balance gain to obtain a first adjusted image.

示例性地,步骤A10至步骤A30包括:判断所述映射图像对应的图像是否为混合色温图像,若所述映射图像对应的图像为混合色温图像,则统计白点归为一类,统计非白点归为一类;将相邻的白点两两连接为标准光源线,所述标准光源线在坐标系中包围的区域即为白平衡灰区,依据所述白点在所述白平衡灰区上对应的RGB图像像素值,计算所述白点对应的第一白平衡增益;依据所述第一白平衡增益确定非白点的第二白平衡增益;依据所述第一白平衡增益,对所述白点进行调整,依据所述第二白平衡增益,对所述非白点进行调整,得到第一调整图像。Exemplarily, steps A10 to A30 include: judging whether the image corresponding to the mapped image is a mixed color temperature image, and if the image corresponding to the mapped image is a mixed color temperature image, count the white points into one category, and count the non-white points. The points are classified into one category; the adjacent white points are connected as standard light source lines, and the area surrounded by the standard light source lines in the coordinate system is the white balance gray area. The corresponding RGB image pixel values on the area are calculated, and the first white balance gain corresponding to the white point is calculated; the second white balance gain of the non-white point is determined according to the first white balance gain; according to the first white balance gain, The white point is adjusted, and the non-white point is adjusted according to the second white balance gain to obtain a first adjusted image.

其中,在步骤S40中,所述在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤包括:Wherein, in step S40, the step of adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image includes:

步骤B10,获取所述第一调整图像的色彩边界点;Step B10, acquiring the color boundary points of the first adjusted image;

示例性地,步骤B10包括:获取所述第一调整图像在预设立体色彩空间中的像素点,判断所述像素点与相邻的像素点的RGB通道值是否大于预设RGB阈值;若所述像素点与相邻的像素点的RGB通道值大于预设RGB阈值,则判定所述像素点为色彩边界点;若所述像素点与相邻的像素点的RGB通道值不大于预设RGB阈值,则判定所述像素点不是色彩边界点,其中,所述预设RGB阈值为预先设置的判定像素点为色彩边界点时,相邻像素点之间的RGB差值的临界值。Exemplarily, step B10 includes: acquiring the pixel points of the first adjusted image in a preset stereo color space, and judging whether the RGB channel values of the pixel point and the adjacent pixel points are greater than a preset RGB threshold; If the RGB channel value of the pixel point and the adjacent pixel point is greater than the preset RGB threshold, it is determined that the pixel point is a color boundary point; if the RGB channel value of the pixel point and the adjacent pixel point is not greater than the preset RGB If the threshold value is set, it is determined that the pixel point is not a color boundary point, wherein the preset RGB threshold is a preset threshold value of the RGB difference between adjacent pixel points when it is determined that the pixel point is a color boundary point.

步骤B20,依据所述预设标准色域,对所述色彩边界点进行调整,得到第二调整图像。Step B20, adjusting the color boundary points according to the preset standard color gamut to obtain a second adjusted image.

示例性地,步骤B20包括:依据所述预设标准色域对应的RGB通道值,对所述色彩边界点的RGB通道值进行调整,得到第二调整图像。Exemplarily, step B20 includes: 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.

其中,在步骤S40中,所述在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤还包括:Wherein, in step S40, the step of adjusting the first adjusted image in the preset stereoscopic color space to obtain the second adjusted image further includes:

步骤C10,获取所述第一调整图像的图像梯度图,并依据所述图像梯度图选取颜色阶跃点;Step C10, acquiring an image gradient map of the first adjusted image, and selecting a color step point according to the image gradient map;

在本实施例中,需要说明的是,所述图像梯度为图像某像素在x和y两个方向上的变化率。In this embodiment, it should be noted that the image gradient is the rate of change of a certain pixel of the image in the x and y directions.

示例性地,步骤C10包括:通过获取所述第一调整图像在预设立体色彩空间中的像素点的图像梯度,判断所述像素点的图像梯度是否大于预设图像梯度阈值,若所述像素点的图像梯度大于预设图像梯度阈值,则判定所述像素点为颜色阶跃点,并选取所述颜色阶跃点;若所述像素点的图像梯度不大于预设图像梯度阈值,则判定所述像素点不是颜色阶跃点。Exemplarily, step C10 includes: by acquiring the image gradient of a pixel of the first adjusted image in a preset stereoscopic color space, judging whether the image gradient of the pixel is greater than a preset image gradient threshold, if the pixel is If the image gradient of the point is greater than the preset image gradient threshold, it is determined that the pixel point is a color step point, and the color step point is selected; if the image gradient of the pixel point is not greater than the preset image gradient threshold, it is determined that the pixel point is a color step point. The pixel point is not a color step point.

步骤C20,依据所述预设标准色域,对所述颜色点数进行调整,得到调整图像。Step C20: Adjust the number of color points according to the preset standard color gamut to obtain an adjusted image.

示例性地,步骤C10包括:依据所述预设标准色域对应的RGB通道值,对所述颜色阶跃点的RGB通道值进行调整,得到第二调整图像。Exemplarily, step C10 includes: adjusting the RGB channel value of the color step point according to the RGB channel value corresponding to the preset standard color gamut to obtain a second adjusted image.

本申请实施例提供了一种图像色准校正方法,相比于现有技术采用的专业人员依据显示设备的显示图像的色差,对图像信号进行调整的方法,本申请实施例通过获取显示设备对应的显示画面图像;对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;将所述校正图像映射至预设标准色域,得到映射图像;对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像,通过对图像进行非线性化校正和白平衡调整,校正补偿了不同显示设备输出图像的颜色和亮度显示差异,通过对图像进行色域映射、饱和度校正以及在预设立体色彩空间中对图像进行调整,将图像调整至标准色域,以保证不同显示设备的输出图像一致性,避免了采用专业人员依据显示设备的显示图像的色差,对图像信号进行调整时,由于肉眼的色彩敏感度有限,无法辨别较低色准之间的差异,导致显示图像色准低的技术缺陷,从而提高了显示图像的色准。The embodiment of the present application provides an image color calibration method. Compared with the method used in the prior art for professionals to adjust the image signal according to the color difference of the displayed image of the display device, the embodiment of the present application obtains the corresponding information of the display device. the display screen image; perform nonlinear correction and saturation correction on the display screen image to obtain a corrected image; map the corrected image to a preset standard color gamut to obtain a mapped image; perform white balance on the mapped image Adjusting to obtain a first adjustment image, and adjusting the first adjustment image in a preset stereo color space to obtain a second adjustment image, and performing nonlinear correction and white balance adjustment on the image to correct and compensate different display devices The color and brightness of the output image show differences. By performing color gamut mapping, saturation correction, and adjusting the image in the preset stereo color space, the image is adjusted to the standard color gamut to ensure that the output images of different display devices are consistent. It avoids the use of professionals based on the color difference of the displayed image of the display device. When adjusting the image signal, due to the limited color sensitivity of the naked eye, it is impossible to distinguish the difference between the lower color standards, resulting in the low color accuracy of the displayed image. defects, thereby improving the color accuracy of the displayed image.

实施例二Embodiment 2

进一步地,参照图2,基于本申请第一实施例,在本申请另一实施例中,与上述实施例一相同或相似的内容,可以参考上文介绍,后续不再赘述。在此基础上,其中,在步骤S40中,在所述对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤之后,所述图像色准校正方法还包括:Further, referring to FIG. 2 , based on the first embodiment of the present application, in another embodiment of the present application, for the same or similar content as the above-mentioned first embodiment, reference may be made to the above introduction, and no further description will be given in the following. On this basis, in step S40, a first adjusted image is obtained by performing white balance adjustment on the mapped image, and the first adjusted image is adjusted in a preset stereoscopic color space to obtain a first adjusted image. After the second step of adjusting the image, the image color calibration method further includes:

步骤S41,判断所述第二调整图像对应的色差值是否大于预设色差阈值;Step S41, judging whether the color difference value corresponding to the second adjustment image is greater than a preset color difference threshold;

步骤S42,若是,则判定图像色准校正失败,返回执行步骤:获取显示设备对应的显示画面图像;Step S42, if yes, it is determined that the color calibration of the image fails, and the execution step is returned to: acquiring the display screen image corresponding to the display device;

步骤S43,若否,则判定图像色准校正成功。Step S43, if no, it is determined that the color calibration of the image is successful.

在本实施例中,需要说明的是,所述预设色差阈值为预先设置的判断图像色准校正成功的色差临界值。In this embodiment, it should be noted that the preset chromatic aberration threshold is a preset chromatic aberration threshold for judging that the image chromatic calibration is successful.

示例性地,步骤S41至步骤S43包括:判断所述第二调整图像对应的色差值是否大于预设色差阈值,若所述调整图像对应的色差值大于预设色差阈值,则判定图像色准校正失败,返回执行步骤:获取显示设备对应的显示画面图像;若所述调整图像对应的色差值不大于预设色差阈值,则判定图像色准校正成功。Exemplarily, steps S41 to S43 include: judging whether the color difference value corresponding to the second adjusted image is greater than a preset color difference threshold, and if the color difference value corresponding to the adjusted image is greater than the preset color difference threshold, determining the color of the image. If the calibration fails, return to the execution step: acquiring the display screen image corresponding to the display device; if the color difference value corresponding to the adjusted image is not greater than the preset color difference threshold, it is determined that the color calibration of the image is successful.

本申请实施例提供了一种图像色准校正方法,相比于现有技术采用的专业人员依据显示设备的显示图像的色差,对图像信号进行调整的方法,本申请实施例通过获取显示设备对应的显示画面图像;对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;将所述校正图像映射至预设标准色域,得到映射图像;对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像,通过对图像进行非线性化校正和白平衡调整,校正补偿了不同显示设备输出图像的颜色和亮度显示差异,通过对图像进行色域映射、饱和度校正以及在预设立体色彩空间中对图像进行调整,将图像调整至标准色域,以保证不同显示设备的输出图像一致性,避免了采用专业人员依据显示设备的显示图像的色差,对图像信号进行调整时,由于肉眼的色彩敏感度有限,无法辨别较低色准之间的差异,导致显示图像色准低的技术缺陷,从而提高了显示图像的色准。The embodiment of the present application provides an image color calibration method. Compared with the method used in the prior art for professionals to adjust the image signal according to the color difference of the displayed image of the display device, the embodiment of the present application obtains the corresponding information of the display device. the display screen image; perform nonlinear correction and saturation correction on the display screen image to obtain a corrected image; map the corrected image to a preset standard color gamut to obtain a mapped image; perform white balance on the mapped image Adjusting to obtain a first adjustment image, and adjusting the first adjustment image in a preset stereo color space to obtain a second adjustment image, and performing nonlinear correction and white balance adjustment on the image to correct and compensate different display devices The color and brightness of the output image show differences. By performing color gamut mapping, saturation correction, and adjusting the image in the preset stereo color space, the image is adjusted to the standard color gamut to ensure that the output images of different display devices are consistent. It avoids the use of professionals based on the color difference of the displayed image of the display device. When adjusting the image signal, due to the limited color sensitivity of the naked eye, it is impossible to distinguish the difference between the lower color standards, resulting in the low color accuracy of the displayed image. defects, thereby improving the color accuracy of the displayed image.

实施例三Embodiment 3

本申请实施例还提供一种图像色准校正装置,所述图像色准校正装置应用于图像色准校正设备,所述图像色准校正装置包括:The embodiment of the present application further provides an image color alignment correction device, the image color alignment correction device is applied to an image color alignment correction device, and the image color alignment correction device includes:

获取模块,用于获取显示设备对应的显示画面图像;an acquisition module, used to acquire the display screen image corresponding to the display device;

校正模块,用于对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;a correction module, configured to perform nonlinear correction and saturation correction on the display image to obtain a corrected image;

映射模块,用于将所述校正图像映射至预设标准色域,得到映射图像;a mapping module, configured to map the corrected image to a preset standard color gamut to obtain a mapped image;

调整模块,用于对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像。An adjustment module, configured to perform white balance adjustment on the mapped image to obtain a first adjusted image, and adjust the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image.

可选地,在所述对所述显示画面图像进行非线性化校正的步骤中,所述校正模块还用于:Optionally, in the step of performing nonlinear correction on the display image, the correction module is further configured to:

对所述显示画面图像进行归一化处理,得到处理结果;performing normalization processing on the display screen image to obtain a processing result;

依据所述显示设备对应的非线性化值,对所述处理结果进行预补偿计算,得到补偿结果;performing pre-compensation calculation on the processing result according to the non-linearization value corresponding to the display device to obtain a compensation result;

对所述补偿结果进行反归一化处理,得到非线性化校正图像。Perform inverse normalization processing on the compensation result to obtain a non-linear corrected 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;

依据输入图像对应的色域与预设标准色域确定的转换系数,将所述输入图像映射至所述预设标准色域,得到输出图像;According to the conversion coefficient determined by the color gamut corresponding to the input image and the preset standard color gamut, the input image is mapped to the preset standard color gamut to obtain an output image;

对所述输出图像进行反归一化处理,得到映射图像。De-normalize the output image to obtain a mapped image.

可选地,在所述对所述映射图像进行白平衡调整的步骤中,所述调整模块还用于:Optionally, in the step of performing white balance adjustment on the mapped image, the adjustment module is further configured to:

统计所述映射图像的白点和非白点;Counting the white points and non-white points of the mapped image;

计算所述白点的第一白平衡增益,并依据所述白点的第一白平衡增益确定得到非白点的第二白平衡增益;Calculate the first white balance gain of the white point, and determine and obtain the second white balance gain of the non-white point according to the first white balance gain of the white point;

依据所述第一白平衡增益与所述第二白平衡增益,对所述映射图像进行白平衡调整,得到第一调整图像。According to the first white balance gain and the second white balance gain, white balance adjustment is performed on the mapped image to obtain a first adjusted image.

可选地,在所述在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤中,所述调整模块还用于:Optionally, in the step of adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image, the adjustment module is further configured to:

获取所述第一调整图像的色彩边界点;acquiring color boundary points of the first adjusted image;

依据所述预设标准色域,对所述色彩边界点进行调整,得到第二调整图像。According to the preset standard color gamut, the color boundary points are adjusted to obtain a second adjusted image.

可选地,在在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤中,所述调整模块还用于:Optionally, in the step of adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image, the adjustment module is further configured to:

获取所述第一调整图像的图像梯度图,并依据所述图像梯度图选取颜色阶跃点;acquiring an image gradient map of the first adjusted image, and selecting a color step point according to the image gradient map;

依据所述预设标准色域,对所述颜色点数进行调整,得到第二调整图像。According to the preset standard color gamut, the number of color points is adjusted to obtain a second adjusted image.

可选地,在所述对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像的步骤之后,所述调整模块还用于:Optionally, after the steps of performing white balance adjustment on the mapped image to obtain a first adjusted image, and adjusting the first adjusted image in a preset stereoscopic color space to obtain a second adjusted image, the The adjustment module described above is also used to:

判断所述第二调整图像对应的色差值是否大于预设色差阈值;judging whether the color difference value corresponding to the second adjusted image is greater than a preset color difference threshold;

若是,则判定图像色准校正失败,返回执行步骤:获取显示设备对应的显示画面图像;If so, it is determined that the color calibration of the image fails, and the execution step is returned to: acquiring the display screen image corresponding to the display device;

若否,则判定图像色准校正成功。If not, it is determined that the color calibration of the image is successful.

本发明提供的图像色准校正装置,采用上述实施例中的图像色准校正方法,解决了显示图像色准低的技术问题。与现有技术相比,本发明实施例提供的图像色准校正装置的有益效果与上述实施例提供的图像色准校正方法的有益效果相同,且该图像色准校正装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The image color calibration device provided by the present invention adopts the image color calibration method in the above-mentioned embodiments to solve the technical problem of low color calibration of the displayed image. Compared with the prior art, the beneficial effects of the image color alignment correction device provided by the embodiments of the present invention are the same as those of the image color alignment correction method provided by the above-mentioned embodiments, and other technical features of the image color alignment correction device are the same. The disclosed features of the methods in the above embodiments are the same, and are not repeated here.

实施例四Embodiment 4

本发明实施例提供一种电子设备,电子设备包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述实施例一中的图像色准校正方法。An embodiment of the present invention provides an electronic device, the electronic device includes: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor. The processor executes, so that at least one processor can execute the image color level correction method in the first embodiment.

下面参考图3,其示出了适于用来实现本公开实施例的电子设备的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图3示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 3 , it shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 3 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.

如图3所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等),其可以根据存储在只读存储器(ROM)中的程序或者从存储装置加载到随机访问存储器(RAM)中的程序而执行各种适当的动作和处理。在RAM中,还存储有电子设备操作所需的各种程序和数据。处理装置、ROM以及RAM通过总线彼此相连。输入/输出(I/O)接口也连接至总线。As shown in FIG. 3, an electronic device may include processing means (eg, a central processing unit, a graphics processor, etc.), which may be loaded into a random access memory (RAM) according to a program stored in a read only memory (ROM) or from a storage device to execute various appropriate actions and processes. In the RAM, various programs and data necessary for the operation of the electronic device are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. Input/output (I/O) interfaces are also connected to the bus.

通常,以下系统可以连接至I/O接口:包括例如触摸屏、触摸板、键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置;包括例如磁带、硬盘等的存储装置;以及通信装置。通信装置可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种系统的电子设备,但是应理解的是,并不要求实施或具备所有示出的系统。可以替代地实施或具备更多或更少的系统。Typically, the following systems can be connected to the I/O interface: input devices including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCDs), speakers, vibrators output devices, etc.; storage devices including, for example, magnetic tapes, hard disks, etc.; and communication devices. Communication means may allow electronic devices to communicate wirelessly or by wire with other devices to exchange data. While the figures show electronic devices having various systems, it should be understood that not all of the systems shown are required to be implemented or available. More or fewer systems may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置从网络上被下载和安装,或者从存储装置被安装,或者从ROM被安装。在该计算机程序被处理装置执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device, or from a storage device, or from a ROM. When the computer program is executed by the processing apparatus, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

本发明提供的电子设备,采用上述实施例一或实施例二中的图像色准校正方法,解决了显示图像色准低的技术问题。与现有技术相比,本发明实施例提供的电子设备的有益效果与上述实施例一提供的图像色准校正方法的有益效果相同,且该电子设备中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The electronic device provided by the present invention adopts the image color calibration method in the first embodiment or the second embodiment, so as to solve the technical problem of low color accuracy 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 those of the image color calibration method provided by the first embodiment, and other technical features of the electronic device are disclosed with the method of the above embodiment. The features are the same and will not be repeated here.

应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式的描述中,具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。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 the embodiments, the particular features, structures, materials or characteristics may be combined in any suitable manner in any one or more of the embodiments or examples.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

实施例五Embodiment 5

本实施例提供一种计算机可读存储介质,具有存储在其上的计算机可读程序指令,计算机可读程序指令用于执行上述实施例一中的图像色准校正的方法。This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, where the computer-readable program instructions are used to execute the method for image color calibration in the first embodiment.

本发明实施例提供的计算机可读存储介质例如可以是U盘,但不限于电、磁、光、电磁、红外线、或半导体的系统、系统或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、系统或者器件使用或者与其结合使用。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。The computer-readable storage medium provided by the embodiment of the present invention may be, for example, a U disk, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

上述计算机可读存储介质可以是电子设备中所包含的;也可以是单独存在,而未装配入电子设备中。The above-mentioned computer-readable storage medium may be included in the electronic device; or may exist alone without being assembled into the electronic device.

上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被电子设备执行时,使得电子设备:获取显示设备对应的显示画面图像;对所述显示画面图像进行非线性化校正和饱和度校正,得到校正图像;将所述校正图像映射至预设标准色域,得到映射图像;对所述映射图像进行白平衡调整得到第一调整图像,并在预设立体色彩空间中对所述第一调整图像进行调整,得到第二调整图像。The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: acquires a display screen image corresponding to the display device; nonlinearizes the display screen image Correction and saturation correction to obtain a corrected image; map the corrected image to a preset standard color gamut to obtain a mapped image; perform white balance adjustment on the mapped image to obtain a first adjusted image, which is in a preset stereo color space The first adjusted image is adjusted to obtain a second adjusted image.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. 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 kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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 that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks 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 is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该单元本身的限定。The modules involved in the embodiments of the present disclosure may be implemented in software or hardware. Among them, the name of the module does not constitute a limitation of the unit itself under certain circumstances.

本发明提供的计算机可读存储介质,存储有用于执行上述图像色准校正方法的计算机可读程序指令,解决了显示图像色准低的技术问题。与现有技术相比,本发明实施例提供的计算机可读存储介质的有益效果与上述实施提供的图像色准校正方法的有益效果相同,在此不做赘述。The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the above-mentioned image color calibration method, and solves the technical problem of low color accuracy of displayed images. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiments of the present invention are the same as the beneficial effects of the image color calibration method provided by the above implementation, and are not repeated here.

实施例六Embodiment 6

本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的图像色准校正方法的步骤。The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned image color calibration method.

本申请提供的计算机程序产品解决了显示图像色准低的技术问题。与现有技术相比,本发明实施例提供的计算机程序产品的有益效果与上述实施例提供的图像色准校正方法的有益效果相同,在此不做赘述。The computer program product provided by the present application solves the technical problem of low color accuracy of displayed images. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of the present invention are the same as the beneficial effects of the image color calibration method provided by the above-mentioned embodiments, which will not be repeated here.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields , are similarly included within the scope of patent processing of this 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, device, electronic device 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, device, electronic device 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, device, electronic device 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, device, electronic device 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
US20200288092A1 (en) Model training method, chromatic aberration correction method, apparatus, medium and electronic device
CN111429827B (en) Display screen color calibration method and device, electronic equipment and readable storage medium
CN107957294A (en) Ambient light intensity detection method and device, storage medium and electronic equipment
KR20180050054A (en) Electronic apparatus, display apparatus and control method thereof
TWI413101B (en) Control method for improving the luminous uniformity and related luminosity calibrating controller and display device
US20100085480A1 (en) Image processor, and image processing method
CN114220377B (en) Gamma debugging method and device of display module and electronic equipment
CN107343187A (en) Method of color gamut mapping of color, display terminal and computer-readable recording medium
EP3905672B1 (en) Color space mapping method and device, computer readable storage medium and apparatus
CN114972113A (en) Image processing method, apparatus, electronic device and readable storage medium
JP6779695B2 (en) Image processing device and its control method, display device
CN114928732B (en) Image color quasi correction method, device, electronic equipment and readable storage medium
US11145274B2 (en) Color difference adjustment image data generation method, color difference adjustment image display method, color difference adjustment image data generating device, and color difference adjustment image display system
CN111738950B (en) Image processing method and device
EP4040786A1 (en) Saturation enhancement method and device, and computer readable storage medium
CN111598813B (en) Face image processing method and device, electronic equipment and computer readable medium
CN114693523A (en) Image color calibration method, device, electronic device and readable storage medium
CN114693559B (en) Image processing optimization method, device, electronic device and readable storage medium
CN111415393B (en) Method and device for adjusting display of multimedia blackboard, medium and electronic equipment
CN115802174A (en) White picture correction method and device for display equipment, storage medium and electronic equipment
CN114724528A (en) Display control method and device of display equipment, electronic equipment and storage medium
JP2019095711A (en) Correction data generation device, display device, correction data generation method, and program
EP3819900A1 (en) Measurement method, measurement system, display device, and computer program
CN115775541A (en) Backlight compensation method and device of display screen, chip and terminal
CN115147307A (en) Color compensation method, device, electronic device and readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220701