CN115880164A - Image correction method, device and storage medium - Google Patents

Image correction method, device and storage medium Download PDF

Info

Publication number
CN115880164A
CN115880164A CN202111146779.4A CN202111146779A CN115880164A CN 115880164 A CN115880164 A CN 115880164A CN 202111146779 A CN202111146779 A CN 202111146779A CN 115880164 A CN115880164 A CN 115880164A
Authority
CN
China
Prior art keywords
image
displayed
adjusting
brightness
influence parameter
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
CN202111146779.4A
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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202111146779.4A priority Critical patent/CN115880164A/en
Publication of CN115880164A publication Critical patent/CN115880164A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a method and a device for correcting an image and a storage medium. Wherein, the method comprises the following steps: acquiring a first influence parameter of an image to be displayed, wherein the first influence parameter is used for measuring the brightness of the image to be displayed; determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed; adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image; and correcting the target display image based on the correction coefficient, wherein the correction coefficient is used for correcting the display screen, the target brightness of the display screen is the average brightness of the display screen, and the target color gamut of the display screen is the maximum color gamut supportable by the lamp beads exceeding the preset proportion in the display screen. The method and the device solve the technical problems that in the related technology, the screen is directly corrected based on a group of correction coefficients, the loss of brightness and color gamut caused by processing image content is excessive, and the user experience is poor.

Description

Image correction method, device and storage medium
Technical Field
The present application relates to the field of image processing, and in particular, to a method and an apparatus for correcting an image, and a storage medium.
Background
With the development of LED display technology, LED display screens are currently used in various fields due to their advantages of low cost, low power consumption, high visibility, freedom in assembly, etc. Meanwhile, with the popularization of the application of the LED display screen, the requirements of people on the display quality of the LED display screen are higher and higher, so how to improve the display quality of the LED display screen becomes a research hotspot in the field.
One of the more troublesome problems at present is that the LED display has a very large difference in each light point, and all the light points are selected to be achieved during correction, so that the brightness and color gamut are greatly sacrificed. As shown in fig. 1, an architecture diagram of a luminance and chrominance correction technique in the related art is shown, the luminance and chrominance correction technique can be applied to a PWM-driven LED screen, wherein each pixel (generally, including three subpixels of RGB) stores a set of correction coefficients, and since the LED screen is two-dimensional, it can be called two-dimensional correction, the main idea is to select a certain luminance layer as a correction layer, then obtain optical data (such as luminance Y or spectral tristimulus value X Y Z) of RGB by an acquisition device (an industrial camera, a digital camera, etc.), and then achieve the purpose of correction by setting a common target.
A very significant disadvantage of this bright color correction technique is that the correction can only set a target that requires the entire LED screen to be close to a target that can be achieved by all pixels (typically requiring more than 98% of the pixels), which LED screens have particularly large variations from LED to LED due to manufacturing process issues. Taking the brightness as an example: for example, the maximum brightness difference among the whole LED lamp beads can reach 30%, the target brightness required to be set for correction is 0.7, and the brightness loss is 30%. At lower LED screen brightness, a 30% loss in brightness is acceptable. However, as HDR has evolved, the brightness loss of 30% has become less acceptable the higher the brightness of LED screens. Assuming a 800nit screen, the corrected brightness is lost 30%, and the corrected brightness is 560nist, which is also acceptable to the user. However, when a screen with 3000nits loses 30% of the correction, the corrected brightness is only 2100nits, obviously, the brightness change is too large, and the user is not acceptable, that is, there is a technical problem in the related art that the brightness and color gamut loss caused by correcting the screen based on only one set of correction coefficients is too much, and the user experience is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a method and a device for correcting an image and a storage medium, which are used for at least solving the technical problems of excessive loss of brightness and color gamut and poor user experience caused by no processing of image content because a screen is directly corrected based on a group of correction coefficients in the related art.
According to an aspect of the embodiments of the present application, there is provided a method for correcting an image, including: acquiring a first influence parameter of an image to be displayed, wherein the first influence parameter is used for measuring the brightness of the image to be displayed; determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed; adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image; and acquiring a correction coefficient, and correcting the target display image based on the correction coefficient.
Optionally, the obtaining a first influence parameter of the image to be displayed includes: acquiring the gray value of each pixel point in an image to be displayed; determining a first average value corresponding to an image to be displayed according to an average value of a data set formed by the gray values of all the pixel points; the first average value is determined as the first influencing parameter.
Optionally, adjusting the image to be displayed based on at least the first adjustment ratio includes: acquiring a second influence parameter of the image to be displayed, wherein the second influence parameter is used for measuring the brightness of the image to be displayed; determining a second adjusting proportion corresponding to the second influence parameter, wherein the second adjusting proportion is used for adjusting the brightness of the image to be displayed; adjusting the image to be displayed according to the first adjustment proportion and the second adjustment proportion; or acquiring a third influence parameter of the image to be displayed, wherein the third influence parameter is used for measuring the saturation of the image to be displayed; determining a third adjusting proportion corresponding to the third influence parameter, wherein the third adjusting proportion is used for adjusting the saturation of the image to be displayed; and adjusting the image to be displayed according to the third adjustment proportion and the first adjustment proportion.
Optionally, the obtaining a second influence parameter of the image to be displayed includes: acquiring the gray value of each pixel point in an image to be displayed; and determining a first standard deviation corresponding to the image to be displayed according to the standard deviation of the data set formed by the gray values of the pixel points, and determining the first standard deviation as a second influence parameter.
Optionally, the obtaining a third influence parameter of the image to be displayed includes: acquiring the saturation of each pixel point in an image to be displayed; determining a second average value corresponding to the image to be displayed according to the average value of the data set formed by the saturation of each pixel point; the second average value is determined as the third influencing parameter.
Optionally, determining a first adjustment ratio corresponding to the first influence parameter includes: acquiring a first mapping relation between the first influence parameter and a first adjusting proportion, and determining the first adjusting proportion corresponding to the first influence parameter according to the first mapping relation; determining a second adjustment proportion corresponding to the second influence parameter, including: acquiring a second mapping relation between the second influence parameter and a second adjustment proportion, and determining the second adjustment proportion corresponding to the second influence parameter according to the second mapping relation; determining a third adjusting proportion corresponding to the third influence parameter, including: and acquiring a third mapping relation between the third influence parameter and a third adjustment proportion, and determining the third adjustment proportion corresponding to the third influence parameter according to the third mapping relation.
Optionally, the image to be displayed includes: the method for adjusting the image to be displayed in the RGB format at least based on the first adjusting proportion to obtain the adjusted target display image comprises the following steps: converting an image to be displayed in an RGB format into an HSV format; adjusting the image to be displayed in the HSV format at least based on the first adjusting proportion to obtain an adjusted target display image in the HSV format; and converting the HSV-format target display image into an RGB-format target display image.
Optionally, the correcting the target display image based on the correction coefficient includes: the target display image in the RGB format is corrected based on the correction coefficient.
Optionally, the correction coefficient is used for correcting the display screen, the target brightness achieved by the display screen is the average brightness of the display screen, and the target color gamut achieved by the display screen is the maximum color gamut supportable by the lamp beads in the display screen exceeding the predetermined ratio.
According to another aspect of the embodiments of the present application, there is also provided an image correction apparatus, including: the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first influence parameter of an image to be displayed, and the first influence parameter is used for measuring the brightness of the image to be displayed; the determining module is used for determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed; the adjusting module is used for adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image; and the correction module is used for acquiring a correction coefficient and correcting the target display image based on the correction coefficient.
Optionally, the correction coefficient is used for correcting the display screen, the target brightness achieved by the display screen is the average brightness of the display screen, and the target color gamut achieved by the display screen is the maximum color gamut supportable by the lamp beads in the display screen exceeding the predetermined ratio.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium including a stored program, wherein a device in which the non-volatile storage medium is controlled to execute any one of the image correction methods when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided a processor for executing a program, where the program executes a method for correcting any one of the images.
In the embodiment of the application, a mode of controlling the brightness and/or the saturation of the image to be displayed is adopted, and a first influence parameter of the image to be displayed is obtained; determining a first adjusting proportion corresponding to the first influence parameter, and adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image; the target display image is corrected based on the correction coefficient, the purposes of judging the display parameters to be displayed according to the content of the image to be displayed and automatically adjusting the display parameters of the image to be displayed are achieved, the technical effects of dynamically adjusting the display parameters of the image to be displayed based on the content of the image to be displayed and correcting the dynamically adjusted image to be displayed based on the correction coefficient are achieved, and the technical problems that in the related technology, a screen is directly corrected based on a group of correction coefficients, the loss of brightness and color gamut caused by the fact that the image content is not processed is too much, and the user experience is poor are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of a luminance and chrominance correction technique in the related art;
FIG. 2 is a schematic flow chart diagram illustrating an alternative method for correcting an image according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative luminance and chrominance correction architecture according to an embodiment of the present application;
FIG. 4 is a graphical illustration of an alternative first mapping relationship in accordance with an embodiment of the present application;
FIG. 5 is a graphical illustration of an alternative second mapping relationship according to an embodiment of the application;
FIG. 6 is a graphical illustration of an alternative third mapping relationship according to an embodiment of the application;
fig. 7 is a schematic diagram of an alternative image correction apparatus implemented in accordance with the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To facilitate better understanding of the embodiments related to the present application, technical terms or partial terms that may be referred to in the embodiments related to the present application are explained as follows:
LED: a Light Emitting Diode (Light Emitting Diode) with Chinese name.
PWM: duty ratio Modulation (english full Pulse Width Modulation).
CIE: international association for lighting
HSV: hue, saturation, value lightness; wherein, hue (phase): is the basic attribute of color, namely the commonly known color name, such as red, yellow, etc.; saturation degree: the color purity is higher, the color is purer, the color gradually becomes grey at low purity, and the purity can be 0-100%.
High dynamic illumination rendering images: high-Dynamic Range (HDR) images can provide more Dynamic Range and image details than ordinary images.
According to an embodiment of the present application, there is provided an embodiment of a method for correcting an image, it should be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that here.
Fig. 2 is a method for correcting an image according to an embodiment of the present application, as shown in fig. 2, the method including the steps of:
step S102, acquiring a first influence parameter of an image to be displayed, wherein the first influence parameter is used for measuring the brightness of the image to be displayed;
step S104, determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed;
step S106, adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image;
and step S108, acquiring a correction coefficient, and correcting the target display image based on the correction coefficient.
It should be noted that the correction coefficient is used for correcting the display screen, where the target brightness achieved by the display screen is the average brightness of the display screen, and the target color gamut achieved by the display screen is the maximum color gamut supportable by the lamp beads exceeding the predetermined ratio in the display screen.
In the image correction method, a first influence parameter of an image to be displayed is obtained, wherein the first influence parameter is used for measuring the brightness of the image to be displayed; determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed; adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image; the target display image is corrected based on the correction coefficient, wherein the correction coefficient is used for correcting the display screen, the target brightness achieved by the display screen is the average brightness of the display screen, the target color gamut achieved by the display screen is the maximum color gamut supportable by lamp beads exceeding the preset proportion in the display screen, the purpose of judging display parameters to be displayed according to the content of the image to be displayed is achieved, and the purpose of automatically adjusting the display parameters of the image to be displayed is achieved, so that the technical effects of dynamically adjusting the display parameters of the image to be displayed based on the content of the image to be displayed and correcting the dynamically adjusted image to be displayed based on the correction coefficient are achieved, and the technical problems that in the related technology, the brightness and the color gamut are too much lost after the screen is corrected based on one group of correction coefficients, and the user experience is poor are solved.
It should be noted that the display parameters include, but are not limited to: brightness, saturation, etc. it should be noted that the larger the color gamut, the higher the saturation.
According to the method and the device, the requirement that the brightness and the color gamut are not lost is met by setting a group of correction coefficients, then the image content is analyzed according to the image content, and then the image content is controlled, so that the purpose of uniform display is achieved.
The working principle of the application is that the LED screen is corrected by setting a correction target with no loss of brightness and color gamut, because the LED screen cannot be completely corrected uniformly, generally only under the display condition of highlight or high saturation, the problem of poor correction exists, the application makes full use of the characteristic, and then automatically analyzes according to the image content, judges whether the user pays more attention to the uniformity of the screen or the display effect (for example, highlight, and the color is more gorgeous (the color gamut is larger)) at the moment, and then automatically controls the range of the image content displayed by the image content, so that the balance of uniformity and no loss of the brightness color gamut is achieved.
The method comprises the following steps that a target is set to be free of brightness loss and free of color gamut loss, and in the image display process, by analyzing the image content, if an image is displayed as a natural image (the image is low in brightness and low in saturation, and the image information amount is large), the image content can be not controlled; if the image content is displayed with a gray scale or a color (the information amount is small) on the whole screen, the purpose of uniform display is achieved by controlling the image content in a smaller range (such as display brightness and display color gamut).
Fig. 3 is a schematic diagram of an optional luminance and chrominance correction architecture of the present application, as shown in fig. 3, it can be seen from fig. 3 that the architecture diagram is less different from the luminance and chrominance correction in the related art, and the acquired data is the same as the acquired data in the related art, so that there is no problem that the acquired data becomes more and the acquisition efficiency becomes lower, and the main improvement point is the calculation unit and the display stage in the acquisition stage. Wherein the computing unit outputs a set of correction coefficients, wherein the set of correction coefficients may be coefficients generated by a two-dimensional correction, and the calculation formula of the correction may be written as:
C(i,j)=f(R XYZ (i,j),G XYZ (i,j),B XYZ (i,j),Target);
wherein R is XYZ (i, j) represents the current red light spot optical information collected by the collecting device, which may be pure brightness Y R It may also be the bright chroma information under the CIE standard
Figure BDA0003285703080000061
G XYZ (i, j) represents the current green light spot optical information collected by the collecting device, which may be pure brightness Y G It may also be the bright chrominance information ≥ under the CIE standard>
Figure BDA0003285703080000062
B XYZ (i, j) represents the current blue light spot optical information collected by the collecting device, which may be pure brightness Y B Possibly also the bright chrominance information ≥ under the CIE standard>
Figure BDA0003285703080000063
Target represents the calibration Target, which is typically a three-dimensional matrix->
Figure BDA0003285703080000064
A general chrominance correction coefficient calculation method:
Figure BDA0003285703080000071
target is set to a Target value with no loss of brightness and no loss of color gamut. The simplest implementation is to set the target value as the average of all points.
In the display phase, the image content analysis mainly analyzes the mean and saturation of the image. Or other analytical data, which is used primarily to measure whether the human eye is more concerned with uniformity, brightness, or saturation when the image is displayed. For example, when all the screens are displayed in a certain gray scale, the human eyes can more easily perceive the non-uniformity. When the natural scene image is displayed, the perception degree of the uniformity of human eyes is weakened, and people prefer to see scenes with higher saturation and more bright colors at this time. The input is an image, and the output is a brightness adjusting parameter and a saturation adjusting parameter P.
P=f 1 (R,G,B) (3)
And an image content control section for automatically adjusting the brightness and saturation of the image to be displayed based on the image mean and the image saturation.
Figure BDA0003285703080000072
Compensation and correction:
Figure BDA0003285703080000073
wherein
Figure BDA0003285703080000074
Representing the input signal. />
Figure BDA0003285703080000075
Representing the image signal after the image content control. />
Figure BDA0003285703080000076
Representing the compensated data signal. A represents the result of image analysis. C represents the correction coefficient interpolation result.
Optionally, the obtaining a first influence parameter of the image to be displayed includes: acquiring the gray value of each pixel point in an image to be displayed; determining a first average value corresponding to an image to be displayed according to an average value of a data set consisting of gray values of all pixel points; the first average value is determined as a first influence parameter, and it should be noted that the average value of a data set composed of the gray values of the respective pixel points is used as the first average value corresponding to the image to be displayed.
In some optional embodiments of the present application, adjusting the image to be displayed based on at least the first adjustment ratio may be implemented by: acquiring a second adjusting proportion corresponding to the second influence parameter, wherein the second adjusting proportion is used for adjusting the brightness of the image to be displayed; adjusting the image to be displayed according to the first adjustment proportion and the second adjustment proportion, and specifically, determining the product of the first adjustment proportion and the second adjustment proportion; and adjusting the image to be displayed based on the product.
In other optional embodiments of the present application, adjusting the image to be displayed based on at least the first adjustment ratio includes: acquiring a third influence parameter of the image to be displayed, wherein the third influence parameter is used for measuring the saturation of the image to be displayed, determining a third adjustment proportion corresponding to the third influence parameter, and adjusting the image to be displayed according to the third adjustment proportion and the first adjustment proportion.
Optionally, the second influence parameter of the image to be displayed is obtained, and may be determined in the following manner: the method includes the steps of obtaining gray values of all pixel points in an image to be displayed, determining a first standard deviation corresponding to the image to be displayed according to a standard deviation of a data set formed by the gray values of all the pixel points, and determining the first standard deviation as a second influence parameter.
Optionally, the third influencing parameter of the image to be displayed is obtained, which may be implemented as follows: acquiring the saturation of each pixel point in the image to be displayed, and determining the saturation as a second average corresponding to the image to be displayed according to the average of a data set formed by the saturation of each pixel point; the second average value is determined as a third influence parameter, and it should be noted that the average value of a data set composed of the saturation of each pixel point may be used as the second average value of the image to be displayed.
In some optional embodiments of the present application, determining the first adjustment ratio corresponding to the first influence parameter may be implemented by: acquiring a first mapping relation between the first influence parameter and a first adjusting proportion, and determining the first adjusting proportion corresponding to the first influence parameter according to the first mapping relation; determining a second adjustment proportion corresponding to the second influence parameter can be realized by the following steps: acquiring a second mapping relation between the second influence parameter and a second adjustment proportion, and determining the second adjustment proportion corresponding to the second influence parameter according to the second mapping relation; determining a third adjustment proportion corresponding to the third influence parameter, which can be realized by the following steps: and acquiring a third mapping relation between the third influence parameter and the third adjustment proportion, and determining the third adjustment proportion corresponding to the third influence parameter according to the third mapping relation. The first mapping relationship, the second mapping relationship, and the third mapping relationship may be a functional relationship or a graph curve.
For example, assume that the luminances emitted by the four LEDs at 255 gray levels are: 67nits 80nits 100nits 125nits.
Then the conventional calibration target would be set to 67nist according to the conventional calibration method. 1.0, 0.8375, 0.67, 0.536. I.e., the correction factors are all less than 1.0, all LEDs can display the same correction target. For example, 255 gray levels, 67nist can be displayed; the 128 gray level may display 33.5nits.
If the correction target is set to 100nits, then the correction compensation factor is: 1.5, 1.25, 1.0, 0.8. Intuitively, the correction factor is considered to be larger than 1. Some LED lamps cannot achieve the correction target, for example, the first lamp has a maximum brightness of 67nits and cannot display 100nits. However, in practice, the display brightness requirement of the 128 gray scale is 50nits, all the LED lamps can reach, and the correction coefficient can still make the screen highly uniform at the 128 gray scale.
In some alternative embodiments of the present application, if the image is a natural image, the image content may not be controlled, i.e. the display parameters of the image are not adjusted, e.g. the brightness and the saturation may not be adjusted, and if the image content is a whole screen displaying a gray scale or a color, the purpose of displaying uniformity is achieved by controlling the image content within a smaller brightness range (e.g. displaying brightness less than 67), which is advantageous in that the brightness is not lost after correction. When displaying natural images, the human eye is insensitive to uniformity and therefore may lose some uniformity.
Specifically, the image luminance average value APL (i.e., the first influence parameter) may be calculated first, and then the luminance control ratio LRatio1 (i.e., the first adjustment ratio) is obtained by looking up a table, and fig. 4 is a schematic diagram of an optional first mapping relationship according to the present application, where the first mapping relationship is a graph, a horizontal axis is the image luminance average value APL (i.e., the first influence parameter), and a vertical axis is the control ratio of luminance (i.e., the first adjustment ratio), and optionally, the APL may be expressed by an equation as APL = AVG (MAX (R, G, B)).
Then, the information amount of the image may be calculated, and whether the image is a natural image or a gray-scale image may be distinguished by the information amount, where the information amount may be calculated by calculating a standard deviation STD (i.e., a second influence parameter) of the gray scale of the image, and performing normalization processing on the STD, fig. 5 is an optional second mapping relationship diagram of the present application, where the second mapping relationship is a graph, a horizontal axis in the graph is the standard deviation (i.e., the second influence parameter) of the gray scale of the image, a vertical axis is a gray scale control Ratio (i.e., a second adjustment Ratio), and the graph is as shown in fig. 5, to obtain a gray scale control Ratio Lratio2 (a second adjustment Ratio), and finally, a brightness control Ratio for the image = Lratio1 Lratio2 (i.e., to determine a product of the first adjustment Ratio and the second adjustment Ratio), and after adjustment based on the brightness control Ratio, the image after adjustment may be corrected based on a correction coefficient.
For example, some customers pay more attention to the excessive loss of the corrected color gamut, the scheme can automatically adjust the display brightness of the image and the saturation of the display content, so as to realize the best display effect, and the calculation of the correction target value can be carried out according to the loss-free brightness and the loss-free color gamut.
Figure BDA0003285703080000091
And (3) calculating a correction coefficient:
Figure BDA0003285703080000092
image content analysis, analyzing image brightness and image saturation:
the image brightness calculation process is implemented by first calculating an image brightness average value APL (i.e., a first influence parameter), and then obtaining a brightness control LRatio1 (i.e., a first adjustment ratio) by using the curve shown in fig. 4, where the APL can be expressed by the following formula:
APL=AVG(MAX(R,G,B));
then, the saturation calculation is performed, and a saturation mean value Savg (i.e., a third influence parameter) of all pixels can be calculated, fig. 6 is an optional third mapping relation schematic diagram of the present application, where the third mapping relation is a graph, in the graph, a horizontal axis is the saturation mean value Savg (i.e., the third influence parameter), and a vertical axis is the saturation control SRatio (i.e., a third adjustment ratio), and then a saturation control SRatio (i.e., a third adjustment ratio) is obtained through a curve as shown in fig. 6, where calculation formulas of Savg and Sat are respectively as follows:
Savg=AVG(Sat(R,G,B));
Figure BDA0003285703080000101
and then, adjusting the brightness and the saturation of the image to be displayed based on the first adjustment proportion and the third adjustment proportion respectively to obtain the adjusted brightness and saturation, and finally correcting the adjusted display image based on the set correction coefficient.
In some embodiments of the present application, the image to be displayed may include: the image to be displayed in the RGB format is adjusted based on at least the first adjustment ratio to obtain an adjusted target display image, including: converting an image to be displayed in an RGB format into an HSV format; adjusting the image to be displayed in the HSV format at least based on the first adjusting proportion to obtain an adjusted target display image in the HSV format; and converting the HSV-format target display image into an RGB-format target display image. As can be understood, correcting the target display image based on the correction coefficient includes: the target display image in the RGB format is corrected based on the correction coefficient.
Specifically, the RGB image signals may be converted into HSV signals, then the V signals may be adjusted by LRatio to obtain Vo, and then the S signals may be adjusted by SRatio to obtain So. And finally converting the adjusted H SoVo into RaGaBa. RGB2HSV and HSV2RGB are the interconversion between RGB and HSV, which are standard calculation formulas.
HSV=RGB2HSV(R,G,B)
Vo=V*LRatio
So=S*SRatio
R a G a B a =HSV2RGB(H,So,Vo)
And finally, correcting:
Figure BDA0003285703080000102
the automatic control of the image content can be realized through the steps. When the image mean value is large, the image brightness is too high, the LED screen cannot be corrected uniformly, and therefore the brightness coefficient needs to be reduced, and the brightness uniformity of the display screen is ensured. When the saturation of the image is higher, the image is brighter, and the eyes of people prefer to be more gorgeous for the scene, so that the saturation adjusting parameter is close to 1.0, and the image is more gorgeous.
Fig. 7 is an alternative image correction apparatus according to the present application, as shown in fig. 7, the apparatus includes:
the acquiring module 40 is configured to acquire a first influence parameter of an image to be displayed, where the first influence parameter is used to measure brightness of the image to be displayed;
the determining module 42 is configured to determine a first adjusting ratio corresponding to the first influence parameter, where the first adjusting ratio is used to adjust the brightness of the image to be displayed;
the adjusting module 44 is configured to adjust the image to be displayed based on at least the first adjusting ratio to obtain an adjusted target display image;
and a correction module 46, configured to obtain a correction coefficient, and correct the target display image based on the correction coefficient.
It should be noted that the correction coefficient is used for correcting the display screen, where the target brightness achieved by the display screen is the average brightness of the display screen, and the target color gamut achieved by the display screen is the maximum color gamut supportable by the lamp beads exceeding the predetermined ratio in the display screen.
In the image correction device, an obtaining module 40 is used for obtaining a first influence parameter of an image to be displayed, wherein the first influence parameter is used for measuring the brightness of the image to be displayed; the determining module 42 is configured to determine a first adjusting ratio corresponding to the first influence parameter, where the first adjusting ratio is used to adjust the brightness of the image to be displayed; the adjusting module 44 is configured to adjust the image to be displayed based on at least the first adjusting ratio to obtain an adjusted target display image; the correction module 46 is configured to correct a target display image based on a correction coefficient, where the correction coefficient is used after correcting the display screen, a target brightness achieved by the display screen is an average brightness of the display screen, a target color gamut achieved by the display screen is a maximum color gamut supportable by lamp beads exceeding a predetermined proportion in the display screen, a purpose of determining a display parameter to be displayed according to content of an image to be displayed is achieved, and the display parameter of the image to be displayed is automatically adjusted, so that a technical effect of dynamically adjusting the display parameter of the image to be displayed based on the content of the image to be displayed and correcting the dynamically adjusted image to be displayed based on the correction coefficient is achieved, and a technical problem that in a related technology, a screen is directly corrected based on a group of correction coefficients, so that excessive brightness and color gamut losses and poor user experience are caused by not processing image content is solved.
According to another aspect of the embodiments of the present application, there is also provided a nonvolatile storage medium including a stored program, wherein a device in which the nonvolatile storage medium is located is controlled to execute any one of the methods of correcting an image when the program is running.
Specifically, the storage medium is used for storing program instructions for executing the following functions, and the following functions are realized: acquiring a first influence parameter of an image to be displayed, wherein the first influence parameter is used for measuring the brightness of the image to be displayed; determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed; adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image; and acquiring a correction coefficient, and correcting the target display image based on the correction coefficient.
According to another aspect of the embodiments of the present application, there is also provided a processor for executing a program, where the program executes a method for correcting any one of the images.
Specifically, the processor is configured to call a program instruction in the memory, and implement the following functions: acquiring a first influence parameter of an image to be displayed, wherein the first influence parameter is used for measuring the brightness of the image to be displayed; determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed; adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image; and acquiring a correction coefficient, and correcting the target display image based on the correction coefficient.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (11)

1. A method for correcting an image, comprising:
acquiring a first influence parameter of an image to be displayed, wherein the first influence parameter is used for measuring the brightness of the image to be displayed;
determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed;
adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image;
and acquiring a correction coefficient, and correcting the target display image based on the correction coefficient.
2. The method of claim 1, wherein obtaining a first influencing parameter of an image to be displayed comprises:
acquiring the gray value of each pixel point in the image to be displayed;
determining a first average value corresponding to the image to be displayed according to the average value of the data set formed by the gray values of all the pixel points;
determining the first average value as the first influencing parameter.
3. The method of claim 1, wherein adjusting the image to be displayed based on at least the first adjustment ratio comprises:
acquiring a second influence parameter of the image to be displayed, wherein the second influence parameter is used for measuring the brightness of the image to be displayed;
determining a second adjusting proportion corresponding to the second influence parameter, wherein the second adjusting proportion is used for adjusting the brightness of the image to be displayed;
adjusting the image to be displayed according to the first adjusting proportion and the second adjusting proportion; or
Acquiring a third influence parameter of the image to be displayed, wherein the third influence parameter is used for measuring the saturation of the image to be displayed;
determining a third adjusting proportion corresponding to the third influence parameter, wherein the third adjusting proportion is used for adjusting the saturation of the image to be displayed;
and adjusting the image to be displayed according to the third adjustment proportion and the first adjustment proportion.
4. The method according to claim 3, wherein obtaining the second influencing parameter of the image to be displayed comprises:
acquiring the gray value of each pixel point in the image to be displayed;
determining a first standard deviation corresponding to the image to be displayed according to the standard deviation of a data set formed by the gray values of all the pixel points;
determining the first standard deviation as the second impact parameter.
5. The method according to claim 3, wherein obtaining a third influencing parameter of the image to be displayed comprises:
acquiring the saturation of each pixel point in the image to be displayed;
determining a second average value corresponding to the image to be displayed according to the average value of a data set consisting of the saturation of each pixel point;
determining the second average value as the third influencing parameter.
6. The method of claim 3,
determining a first adjustment proportion corresponding to the first influence parameter, including: acquiring a first mapping relation between the first influence parameter and the first adjustment proportion, and determining the first adjustment proportion corresponding to the first influence parameter according to the first mapping relation;
determining a second adjustment proportion corresponding to the second influence parameter, including: acquiring a second mapping relation between the second influence parameter and the second adjustment proportion, and determining a second adjustment proportion corresponding to the second influence parameter according to the second mapping relation;
determining a third adjustment proportion corresponding to the third influence parameter, including: and acquiring a third mapping relation between the third influence parameter and the third adjustment proportion, and determining the third adjustment proportion corresponding to the third influence parameter according to the third mapping relation.
7. The method of claim 1, wherein the image to be displayed comprises: the method comprises the following steps of adjusting an image to be displayed in an RGB format at least based on the first adjusting proportion to obtain an adjusted target display image, and comprises the following steps:
converting the image to be displayed in the RGB format into HSV format;
adjusting the image to be displayed in the HSV format at least based on the first adjusting proportion to obtain an adjusted target display image in the HSV format;
and converting the HSV format target display image into the RGB format target display image.
8. The method of claim 1, wherein the correction factor is used after correcting the display screen, the target brightness of the display screen is an average brightness of the display screen, and the target color gamut of the display screen is a maximum color gamut supportable by more than a predetermined percentage of beads in the display screen.
9. An apparatus for correcting an image, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first influence parameter of an image to be displayed, and the first influence parameter is used for measuring the brightness of the image to be displayed;
the determining module is used for determining a first adjusting proportion corresponding to the first influence parameter, wherein the first adjusting proportion is used for adjusting the brightness of the image to be displayed;
the adjusting module is used for adjusting the image to be displayed at least based on the first adjusting proportion to obtain an adjusted target display image;
and the correction module is used for acquiring a correction coefficient and correcting the target display image based on the correction coefficient.
10. The apparatus of claim 9, wherein the correction factor is configured to correct the display screen to achieve a target brightness that is an average brightness of the display screen, and a target color gamut that is a maximum color gamut that can be supported by more than a predetermined percentage of beads in the display screen.
11. A non-volatile storage medium, comprising a stored program, wherein a device in which the non-volatile storage medium is located is controlled to perform the method of correcting an image according to any one of claims 1 to 8 when the program is executed.
CN202111146779.4A 2021-09-28 2021-09-28 Image correction method, device and storage medium Pending CN115880164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111146779.4A CN115880164A (en) 2021-09-28 2021-09-28 Image correction method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111146779.4A CN115880164A (en) 2021-09-28 2021-09-28 Image correction method, device and storage medium

Publications (1)

Publication Number Publication Date
CN115880164A true CN115880164A (en) 2023-03-31

Family

ID=85755840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111146779.4A Pending CN115880164A (en) 2021-09-28 2021-09-28 Image correction method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115880164A (en)

Similar Documents

Publication Publication Date Title
US20190325817A1 (en) Display unit, image processing unit, and display method for improving image quality
EP1819143A1 (en) Color adjusting device and method
EP1747665B1 (en) Method for processing color image data
EP2030191B1 (en) Optimal backlighting determination apparatus and method
TWI642049B (en) Image processing device, display device, image processing method and image processing program
US20070132680A1 (en) Image display apparatus
US8902247B2 (en) Method and apparatus for brightness-controlling image conversion
US8331665B2 (en) Method of electronic color image saturation processing
CN105282531B (en) Control the method and device of low gray level white balance
MX2011002044A (en) Image display apparatus.
CN105898252A (en) Television color adjustment method and device
KR20110083663A (en) Contrast enhancement of images
CN112752023A (en) Image adjusting method and device, electronic equipment and storage medium
US11024255B2 (en) Method and apparatus for color calibration for reduced motion-induced color breakup
CN113947539A (en) Image correction method, device and storage medium
CN106471565A (en) Image display device and for method to dimming light source
CN115880164A (en) Image correction method, device and storage medium
EP1895781B1 (en) Method of and apparatus for adjusting colour saturation
KR100463831B1 (en) Apparatus and method for optimizing image quality by using human visual characteristics
JP4542600B2 (en) Video display device
US20200251069A1 (en) Color image display adaptation to ambient light
JP2009260542A (en) Color correction device and color correction method
CN109005397A (en) A kind of method of adjustment, device, picture processing chip and the storage device of image white balance
JP2017083580A (en) Display device and control method of the same
Kang et al. Surrounding adaptive color image enhancement based on CIECAM02

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