CN113298726A - Image display adjusting method and device, display equipment and storage medium - Google Patents
Image display adjusting method and device, display equipment and storage medium Download PDFInfo
- Publication number
- CN113298726A CN113298726A CN202110529746.1A CN202110529746A CN113298726A CN 113298726 A CN113298726 A CN 113298726A CN 202110529746 A CN202110529746 A CN 202110529746A CN 113298726 A CN113298726 A CN 113298726A
- Authority
- CN
- China
- Prior art keywords
- value
- new
- color
- matrix
- adjusted
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 239000011159 matrix material Substances 0.000 claims description 82
- 238000004590 computer program Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 5
- 238000012937 correction Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 12
- 230000000875 corresponding effect Effects 0.000 description 17
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/77—Retouching; Inpainting; Scratch removal
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
本发明公开了一种图像显示调整方法、装置、显示设备和存储介质,方法包括:调获取输入的原始图像,并获取原始图像中每个像素点的RGBA值;对像素点的RGBA值进行参数调整,生成新的RGBA值;其中,调整的参数包括亮度、对比度、饱和度和画面色温中的一个或多个;根据新的RGBA值生成新的图像。本发明能够消除或弱化由于显示设备差异导致的对同一作品的显示效果不一致的现象,还原真实的图像。
The invention discloses an image display adjustment method, device, display device and storage medium. The method comprises: adjusting and acquiring an input original image, and acquiring the RGBA value of each pixel point in the original image; parameterizing the RGBA value of the pixel point Adjust to generate a new RGBA value; wherein, the adjusted parameters include one or more of brightness, contrast, saturation and picture color temperature; a new image is generated according to the new RGBA value. The present invention can eliminate or weaken the inconsistent display effect of the same work caused by the difference of display devices, and restore the real image.
Description
技术领域technical field
本发明涉及图像处理技术领域,具体涉及一种图像显示调整方法、装置、显示设备和存储介质。The present invention relates to the technical field of image processing, in particular to an image display adjustment method, device, display device and storage medium.
背景技术Background technique
由于生产技术和材料的差异性会导致终端屏幕显示效果存在不一致的现象(比如同一张图像在不同的显示屏上呈现的效果存在差异),以及由于显示屏的亮度、色温等参数与原片的亮度、色温存在一定的差异,这也将会导致显示的效果跟原作的色彩存在差异,这些差异将对一些使用场景影响较大。例如:美术、艺术类等行业的美术色彩教学、艺术色彩教学,其对显示屏显示图像的色彩效果要求与原作的色彩高度还原。因此,现有的显示技术无法满足通过显示设备进行美术色彩教学、艺术色彩教学、色彩沟通、在线教学、电子商务等的互动需求。Due to the differences in production technology and materials, the display effect of the terminal screen will be inconsistent (for example, the effect of the same image on different display screens is different), and because the parameters such as brightness and color temperature of the display screen are different from those of the original film. There are certain differences in brightness and color temperature, which will also cause the display effect to be different from the original color. These differences will have a greater impact on some usage scenarios. For example: art color teaching and art color teaching in the art, art and other industries, the color effect of the displayed image on the display screen is required to be highly restored to the color of the original work. Therefore, the existing display technology cannot meet the interactive needs of art color teaching, artistic color teaching, color communication, online teaching, e-commerce, etc. through display devices.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于克服现有技术中的上述缺陷,提出一种图像显示调整方法、装置、显示设备和存储介质,本发明能够消除或弱化由于显示设备差异导致的对同一作品的显示效果不一致的现象,还原真实的图像。The main purpose of the present invention is to overcome the above-mentioned defects in the prior art, and to propose an image display adjustment method, device, display device and storage medium. The present invention can eliminate or weaken the inconsistent display effect of the same work caused by the difference of the display devices. phenomenon, restore the real image.
本发明采用如下技术方案:The present invention adopts following technical scheme:
一方面,一种图像显示调整方法,包括:In one aspect, an image display adjustment method includes:
获取输入的原始图像,并获取原始图像中每个像素点的RGBA值;Get the input original image, and get the RGBA value of each pixel in the original image;
对像素点的RGBA值进行参数调整,生成新的RGBA值;其中,调整的参数包括亮度、对比度、饱和度和画面色温中的一个或多个;Parameter adjustment is performed on the RGBA value of the pixel to generate a new RGBA value; wherein, the adjusted parameters include one or more of brightness, contrast, saturation and picture color temperature;
根据新的RGBA值生成新的图像。Generate a new image based on the new RGBA values.
优选的,像素点的RGBA值的调整的方法包括矩阵运算法,具体为采用一个4*5的颜色矩阵M来对原始像素的RGBA值进行矩阵运算得到新的R1G1B1A1值,如下:Preferably, the method for adjusting the RGBA value of a pixel includes a matrix operation method, specifically, using a 4*5 color matrix M to perform a matrix operation on the RGBA value of the original pixel to obtain a new R1G1B1A1 value, as follows:
其中,第一行中a、b、c、d、e的值用来决定新的颜色值中的红色R1;第二行中f、g、h、i、j的值用来决定新的颜色值中的绿色G1;第三行中k、l、m、n、o的值用来决定新的颜色值中的蓝色B1;第四行中p、q、r、s、t的值用来决定新的颜色值中的透明度A1;第五列中e、j、o、t的值分别用来决定每个分量中的offset,即偏移量。Among them, the values of a, b, c, d, and e in the first row are used to determine the red R1 in the new color value; the values of f, g, h, i, and j in the second row are used to determine the new color. The green G1 in the value; the values of k, l, m, n, o in the third row are used to determine the blue B1 in the new color value; the values of p, q, r, s, t in the fourth row are used to determine the transparency A1 in the new color value; the values of e, j, o, and t in the fifth column are used to determine the offset in each component, that is, the offset.
优选的,所述颜色矩阵M的获取方法包括:Preferably, the acquisition method of the color matrix M includes:
获取调整后的亮度和对比度参数,基于调整后的亮度和对比度参数获得一个4*5的颜色矩阵M1;Obtain the adjusted brightness and contrast parameters, and obtain a 4*5 color matrix M1 based on the adjusted brightness and contrast parameters;
获取调整后的饱和度参数,基于调整后的饱和度参数获得一个4*5的颜色矩阵M2;Obtain the adjusted saturation parameter, and obtain a 4*5 color matrix M2 based on the adjusted saturation parameter;
获取调整后的画面色温参数,基于调整后的画面色温参数获得一个4*5的颜色矩阵M3;Obtain the adjusted picture color temperature parameters, and obtain a 4*5 color matrix M3 based on the adjusted picture color temperature parameters;
通过矩阵叠加方法将颜色矩阵M1、颜色矩阵M2和颜色矩阵M3进行矩阵混合处理得到颜色矩阵M。The color matrix M is obtained by performing matrix mixing processing on the color matrix M1 , the color matrix M2 and the color matrix M3 by the matrix superposition method.
优选的,所述颜色矩阵M1表示如下:Preferably, the color matrix M1 is represented as follows:
其中,e1=j1=o1=127.5*(1+B)-127.5*(1-B)*k1;a1=m1=g1=k1;brightness表示调整后的亮度值;contrast表示调整后的对比度值。Among them, e1=j1=o1=127.5*(1+B)-127.5*(1-B)*k1; a1=m1=g1=k1; brightness represents the adjusted brightness value; contrast represents the adjusted contrast value.
优选的,所述颜色矩阵M2表示如下:Preferably, the color matrix M2 is represented as follows:
其中,sat表示调整后的饱和度值,r2=0.213*(1-sat);g2=0.715*(1-sat);b2=0.072*(1-sat)。Wherein, sat represents the adjusted saturation value, r2=0.213*(1-sat); g2=0.715*(1-sat); b2=0.072*(1-sat).
优选的,所述颜色矩阵M3表示如下:Preferably, the color matrix M3 is represented as follows:
其中,MAX=max(r3,g3,b3);MIN=min(r3,g3,b3);画面色温参数包括r3、g3和b3,r3、g3和b3分别表示调整后的R、G、B参数值。in, MAX=max(r3, g3, b3); MIN=min(r3, g3, b3); the picture color temperature parameters include r3, g3 and b3, r3, g3 and b3 respectively represent the adjusted R, G, B parameter values.
优选的,生成新的RGBA值之后,还包括:Preferably, after generating the new RGBA value, the method further includes:
接收对Gamma的调整,获取调整后的Gamma值,对新的RGBA进行Gamma校正。Receive the adjustment to Gamma, obtain the adjusted Gamma value, and perform Gamma correction on the new RGBA.
另一方面,一种图像显示调整装置,包括:In another aspect, an image display adjustment device includes:
原始图像获取模块,用于获取输入的原始图像,并获取原始图像中每个像素点的RGBA值;The original image acquisition module is used to acquire the input original image and obtain the RGBA value of each pixel in the original image;
图像调整模块,用于对像素点的RGBA值进行参数调整,生成新的RGBA值;其中,调整的参数包括亮度、对比度、饱和度和画面色温中的一个或多个;The image adjustment module is used to adjust the parameters of the RGBA value of the pixel to generate a new RGBA value; wherein, the adjusted parameters include one or more of brightness, contrast, saturation and picture color temperature;
新图像生成模块,用于根据新的RGBA值生成新的图像。New image generation module for generating new images based on new RGBA values.
又一方面,一种显示设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现所述图像显示调整方法的步骤。In yet another aspect, a display device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the image display adjustment method when the processor executes the computer program.
再一方面,一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述图像显示调整方法的步骤。In yet another aspect, a computer-readable storage medium having a computer program stored thereon, the computer program implementing the steps of the image display adjustment method when executed by a processor.
由上述对本发明的描述可知,与现有技术相比,本发明具有如下有益效果:As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following beneficial effects:
(1)本发明通过对原始图像像素点的RGBA值进行参数调整,获得包括新的RGBA值图像,新的图像能够消除或弱化由于显示设备差异导致的对同一作品的显示效果不一致的现象,还原真实的图像,满足艺术、美术等领域中对于图像显示的色彩真实度的要求,实现色彩高度还原;(1) The present invention obtains an image including a new RGBA value by adjusting the parameters of the RGBA value of the original image pixel point. The new image can eliminate or weaken the inconsistent display effect of the same work caused by the difference of the display equipment. Real images, meet the requirements of the color authenticity of image display in the fields of art and fine arts, and achieve high color reproduction;
(2)本发明通过对亮度、对比度、饱和度和画面色温中的一个或多个的调整,实现矩阵运算法中颜色矩阵的调整,并通过矩阵叠加实现各颜色矩阵的融合,进而实现RGBA数据的调整,调整简单方便直观;(2) The present invention realizes the adjustment of the color matrix in the matrix operation method by adjusting one or more of brightness, contrast, saturation and picture color temperature, and realizes the fusion of each color matrix through matrix superposition, thereby realizing RGBA data. The adjustment is simple, convenient and intuitive;
(3)为了进一步消除由于设备显示屏不同导致的显示差异,本发明进一步进行了Gamma校正,具体通过对图像的像素RGB值进行幂运算,以达到调整gamma值进行图像中灰色值的调整。(3) In order to further eliminate the display difference caused by different display screens of the equipment, the present invention further performs Gamma correction, specifically by performing exponentiation on the pixel RGB values of the image, so as to adjust the gamma value to adjust the gray value in the image.
上述说明仅是本发明技术方案的概述,为了能够更清楚地了解本发明的技术手段,从而可依照说明书的内容予以实施,并且为了让本发明的上述和其他目的、特征和优点能够更明显易懂,以下列举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention, in order to be able to understand the technical means of the present invention more clearly, so that it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy It is understood that specific embodiments of the present invention are listed below.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述及其他目的、优点和特征。The above and other objects, advantages and features of the present invention will be more apparent to those skilled in the art from the following detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
图1为本发明实施例的图像调整方法的流程图;1 is a flowchart of an image adjustment method according to an embodiment of the present invention;
图2为本发明实施例的图像调整的界面示意图;2 is a schematic interface diagram of image adjustment according to an embodiment of the present invention;
图3为本发明实施例的图像显示调整装置的结构框图;3 is a structural block diagram of an image display adjustment apparatus according to an embodiment of the present invention;
图4为本发明实施例的显示设备的内部结构图。FIG. 4 is an internal structure diagram of a display device according to an embodiment of the present invention.
具体实施方式Detailed ways
以下通过具体实施方式对本发明作进一步的描述。The present invention will be further described below through specific embodiments.
参见图1所示,本发明一种图像显示调整方法,包括:Referring to Fig. 1, an image display adjustment method of the present invention includes:
S101,获取输入的原始图像,并获取原始图像中每个像素点的RGBA值;S101, obtain the input original image, and obtain the RGBA value of each pixel in the original image;
S102,对像素点的RGBA值进行参数调整,生成新的RGBA值;其中,调整的参数包括亮度、对比度、饱和度和画面色温中的一个或多个;S102, performing parameter adjustment on the RGBA value of the pixel to generate a new RGBA value; wherein, the adjusted parameters include one or more of brightness, contrast, saturation, and picture color temperature;
S103,根据新的RGBA值生成新的图像。S103, generate a new image according to the new RGBA value.
具体的,本发明一种图像显示调整方法,还包括:Specifically, an image display adjustment method of the present invention further includes:
S104,判断新的图像的显示效果是否满足要求,如果满足,停止参数调整;如果不满足,重复对像素点的RGBA值进行参数调整步骤。S104, determine whether the display effect of the new image meets the requirements, and if so, stop parameter adjustment; if not, repeat the parameter adjustment step for the RGBA value of the pixel.
需要说明的是,所述输入的原始图像可以是通过显示设备直接拍摄作品获得的图像,也可以是已存储在显示设备中的图像,还可以是其他方式获取的图像,本实施例不做具体限制。It should be noted that the input original image may be an image obtained by directly photographing a work through a display device, an image that has been stored in the display device, or an image obtained in other ways, which is not specifically described in this embodiment. limit.
进一步的,像素点的RGBA值的调整的方法包括矩阵运算法,具体为采用一个4*5的颜色矩阵M来对原始像素的RGBA值进行矩阵运算得到新的R1G1B1A1值,如下:Further, the method for adjusting the RGBA value of a pixel includes a matrix operation method, specifically, using a 4*5 color matrix M to perform a matrix operation on the RGBA value of the original pixel to obtain a new R1G1B1A1 value, as follows:
其中,第一行中a、b、c、d、e的值用来决定新的颜色值中的红色R1;第二行中f、g、h、i、j的值用来决定新的颜色值中的绿色G1;第三行中k、l、m、n、o的值用来决定新的颜色值中的蓝色B1;第四行中p、q、r、s、t的值用来决定新的颜色值中的透明度A1;第五列中e、j、o、t的值分别用来决定每个分量中的offset,即偏移量。因此只需要修改颜色矩阵M的数据就可以改变原始图片的显示。Among them, the values of a, b, c, d, and e in the first row are used to determine the red R1 in the new color value; the values of f, g, h, i, and j in the second row are used to determine the new color. The green G1 in the value; the values of k, l, m, n, o in the third row are used to determine the blue B1 in the new color value; the values of p, q, r, s, t in the fourth row are used to determine the transparency A1 in the new color value; the values of e, j, o, and t in the fifth column are used to determine the offset in each component, that is, the offset. Therefore, it is only necessary to modify the data of the color matrix M to change the display of the original picture.
当然,像素点的RGBA值的调整的方法还可以包括其他方法,不局限于矩阵运算法。Of course, the method for adjusting the RGBA value of the pixel point may also include other methods, and is not limited to the matrix operation method.
进一步的,上述的颜色矩阵M的获取方法包括:Further, the acquisition method of the above-mentioned color matrix M includes:
获取调整后的亮度和对比度参数,基于调整后的亮度和对比度参数获得一个4*5的颜色矩阵M1;Obtain the adjusted brightness and contrast parameters, and obtain a 4*5 color matrix M1 based on the adjusted brightness and contrast parameters;
获取调整后的饱和度参数,基于调整后的饱和度参数获得一个4*5的颜色矩阵M2;Obtain the adjusted saturation parameter, and obtain a 4*5 color matrix M2 based on the adjusted saturation parameter;
获取调整后的画面色温参数,基于调整后的画面色温参数获得一个4*5的颜色矩阵M3;Obtain the adjusted picture color temperature parameters, and obtain a 4*5 color matrix M3 based on the adjusted picture color temperature parameters;
通过矩阵叠加方法将颜色矩阵M1、颜色矩阵M2和颜色矩阵M3进行矩阵混合处理得到颜色矩阵M。The color matrix M is obtained by performing matrix mixing processing on the color matrix M1 , the color matrix M2 and the color matrix M3 by the matrix superposition method.
具体的,参数调整的方法可以通过界面输入,也可以调节滑动条来实现。本发明不做具体限制。参见图2所示,以修改滑动条为例,通过界面滑动相应滑动条来达到快速调整相应的效果。Specifically, the parameter adjustment method can be implemented through interface input or by adjusting the slider bar. The present invention is not specifically limited. Referring to FIG. 2 , taking the modification of the slider as an example, the corresponding effect of quick adjustment can be achieved by sliding the corresponding slider through the interface.
进一步的,所述颜色矩阵M1(亮度和对比度公共的颜色矩阵)表示如下:Further, the color matrix M1 (a common color matrix for brightness and contrast) is represented as follows:
通过调节亮度对应地修改该矩阵中e1、j1和o1的值,增加或者减少RGB的值即可。By adjusting the brightness, the values of e1, j1 and o1 in the matrix are correspondingly modified, and the value of RGB can be increased or decreased.
对应示例图亮度栏的滑动条,以亮度50对应原始像素的RGB值,设定调节范围为0~100为例。Corresponding to the slider of the brightness bar in the example image, take the brightness of 50 corresponding to the RGB value of the original pixel, and set the adjustment range to 0 to 100 as an example.
调节对比度则对应地修改该矩阵中a1、g1和m1,将RGB的值成倍数变化来达到调整对比度的效果。To adjust the contrast, a1, g1 and m1 in the matrix are correspondingly modified, and the RGB value is changed in multiples to achieve the effect of adjusting the contrast.
对应示例图对比度栏的滑动条,以对比度50对应原始像素的RGB值,设定调节范围为0~100为例。Corresponding to the slider in the contrast column of the example image, take the contrast of 50 corresponding to the RGB value of the original pixel, and set the adjustment range to 0 to 100 as an example.
使用如下方法传入亮度和对比度调节参数以及图像像素的RGB值得到调整过后新的RGB值:Use the following methods to pass in the brightness and contrast adjustment parameters and the RGB value of the image pixel to get the adjusted new RGB value:
其中,Vint为原始图像的RGB值,Vout为调整后的输出RGB值;brightness为示例图亮度栏对应滑动条的值,取值范围为0~100;contrast为示例图对比度栏对应滑动条的值,取值范围为0~100;Among them, V int is the RGB value of the original image, V out is the adjusted output RGB value; brightness is the value of the slider corresponding to the brightness bar of the example image, ranging from 0 to 100; contrast is the slider corresponding to the contrast bar of the example image The value of , the value range is 0~100;
转换成颜色矩阵中对应的参数即为:Converted to the corresponding parameters in the color matrix are:
e1=j1=o1=127.5*(1+B)-127.5*(1-B)*k1e1=j1=o1=127.5*(1+B)-127.5*(1-B)*k1
a1=m1=g1=k1。a1=m1=g1=k1.
进一步的,所述颜色矩阵M2(调节饱和度的矩阵)表示如下:Further, the color matrix M2 (matrix for adjusting saturation) is represented as follows:
其中,sat表示调整后的饱和度值,r2=0.213*(1-sat);g2=0.715*(1-sat);b2=0.072*(1-sat)。Wherein, sat represents the adjusted saturation value, r2=0.213*(1-sat); g2=0.715*(1-sat); b2=0.072*(1-sat).
即分别设置矩阵M1中的abc、fgh和klm位置的值,通过颜色矩阵算法改变RGB对应值的比例。That is, the values of the abc, fgh and klm positions in the matrix M1 are set respectively, and the ratio of the corresponding RGB values is changed by the color matrix algorithm.
对应示例图饱和度栏的滑动条,以饱和度100%对应原始像素的RGB值,设定调节范围为90%~110%为例,则sat取值范围为90%~110%,其值对应滑动条的具体值。Corresponding to the slider of the saturation bar in the example image, take the saturation of 100% corresponding to the RGB value of the original pixel, and set the adjustment range to 90% to 110% as an example, the value range of sat is 90% to 110%, and its value corresponds to The specific value of the slider.
进一步的,所述颜色矩阵M3表示如下:Further, the color matrix M3 is represented as follows:
该颜色矩阵通过微调R、G、B的值来达到调整画面色温的效果。The color matrix adjusts the color temperature of the picture by fine-tuning the values of R, G, and B.
其中,MAX=max(r3,g3,b3);MIN=min(r3,g3,b3);画面色温参数包括r3、g3和b3,r3、g3和b3分别表示调整后的R、G、B参数值。in, MAX=max(r3, g3, b3); MIN=min(r3, g3, b3); the picture color temperature parameters include r3, g3 and b3, r3, g3 and b3 respectively represent the adjusted R, G, B parameter values.
对应图2中青-红栏的滑动条设置r3的值,以取值范围为-5~5为例,则r3取值范围为-5~5,其值对应滑动条的具体值;Set the value of r3 corresponding to the slider in the blue-red column in Figure 2. Taking the value range of -5 to 5 as an example, the value of r3 ranges from -5 to 5, and its value corresponds to the specific value of the slider;
对应图2中品-绿栏的滑动条设置g3的值,以取值范围为-5~5为例,则g3取值范围为-5~5,其值对应滑动条的具体值;Set the value of g3 corresponding to the slider bar in the product-green column in Figure 2. Taking the value range of -5 to 5 as an example, the value range of g3 is -5 to 5, and its value corresponds to the specific value of the slider;
对应图2中黄-蓝栏的滑动条设置b3的值,以取值范围为-5~5为例,则b3取值范围为-5~5,其值对应滑动条的具体值。Set the value of b3 corresponding to the slider in the yellow-blue column in Figure 2. Taking the value range of -5 to 5 as an example, the value of b3 ranges from -5 to 5, and its value corresponds to the specific value of the slider.
具体的,可以通过矩阵叠加算法将所有需要叠加效果的矩阵混合处理得到一个新的矩阵,再通过矩阵算法得到一张新的图像,叠加流程如下:Specifically, a new matrix can be obtained by mixing all the matrices that need to be superimposed by the matrix superposition algorithm, and then a new image can be obtained by the matrix algorithm. The superposition process is as follows:
假定调整亮度和对比度后的颜色矩阵为M1,调整饱和度后的颜色矩阵为M2,调整色温后的颜色矩阵为M3,混合叠加后的颜色矩阵为M,则:Assuming that the color matrix after adjusting brightness and contrast is M1, the color matrix after adjusting saturation is M2, the color matrix after adjusting color temperature is M3, and the color matrix after mixing and superimposing is M, then:
M=setConcat(setConcat(M1,M2),M3)M=setConcat(setConcat(M1, M2), M3)
需要说明的是,也可以是M1和M3先进行地接,再和M2进行叠加。即将颜色矩阵M1、颜色矩阵M2和颜色矩阵M3种的任意两个矩阵进行矩阵叠加后获得一个新的颜色矩阵,再将新的颜色矩阵与未进行叠加的颜色矩阵进行矩阵叠加获得颜色矩阵M即可。此外,如果参数没有进行调整,则对应的颜色矩阵不需要进行叠加,如亮度和对比度没有调整,则只需要将颜色矩阵M2和颜色矩阵M3进行叠加。It should be noted that, M1 and M3 can also be grounded first, and then superimposed with M2. That is, any two matrices of the color matrix M1, the color matrix M2 and the color matrix M3 are superimposed to obtain a new color matrix, and then the new color matrix is superimposed with the color matrix that has not been superimposed to obtain the color matrix M. Can. In addition, if the parameters are not adjusted, the corresponding color matrix does not need to be superimposed. For example, if the brightness and contrast are not adjusted, only the color matrix M2 and the color matrix M3 need to be superimposed.
具体的矩阵叠加算法如下:The specific matrix superposition algorithm is as follows:
进一步的,由于设备显示屏等差异,图像显示效果达不到还原真实作品的效果,因此需要进行Gamma校正,调整Gamma不能简单通过颜色矩阵来调整,还需对图像的像素RGB值进行幂运算,以达到调整gamma值进行图像中灰色值的调整。Further, due to differences in the display screen of the device, the image display effect cannot achieve the effect of restoring the real work, so Gamma correction needs to be performed. The adjustment of Gamma cannot be simply adjusted by the color matrix, and the pixel RGB value of the image needs to be exponentiated. To adjust the gamma value to adjust the gray value in the image.
具体如下:details as follows:
Vout=Vint gamma V out = V int gamma
其中,Vout为像素RGB输出,Vint为上述通过矩阵叠加处理过后新的像素RGB输入。对应示例图Gamma栏的滑动条设置gamma的值,以取值范围为0.7~1.3为例,则Gamma的取值范围为0.7~1.3,其值对应滑动条的具体值。Among them, V out is the pixel RGB output, and V int is the new pixel RGB input after the above-mentioned matrix superposition processing. Corresponding to the slider in the Gamma column of the example image, set the value of gamma. Taking the value range of 0.7 to 1.3 as an example, the value of Gamma is in the range of 0.7 to 1.3, and its value corresponds to the specific value of the slider.
本实施例一种图像显示调整方法,能够消除或弱化由于显示设备差异导致的对同一作品的显示效果不一致的现象,还原真实的图像。This embodiment is an image display adjustment method, which can eliminate or weaken the inconsistency of the display effect of the same work caused by the difference of the display devices, and restore the real image.
另一方面,参见图3所示,一种图像显示调整装置,包括:On the other hand, as shown in FIG. 3, an image display adjustment device includes:
原始图像获取模块301,用于获取输入的原始图像,并获取原始图像中每个像素点的RGBA值;The original image acquisition module 301 is used to acquire the input original image, and acquire the RGBA value of each pixel in the original image;
图像调整模块302,用于对像素点的RGBA值进行参数调整,生成新的RGBA值;其中,调整的参数包括亮度、对比度、饱和度和画面色温中的一个或多个;The image adjustment module 302 is configured to perform parameter adjustment on the RGBA value of the pixel to generate a new RGBA value; wherein, the adjusted parameters include one or more of brightness, contrast, saturation and picture color temperature;
新图像生成模块303,用于根据新的RGBA值生成新的图像。The new image generation module 303 is configured to generate a new image according to the new RGBA value.
本实施例中,图像显示调整装置的具体实现及有益效果与所述的显示方法的具体实现及有益效果相同,不再赘述。In this embodiment, the specific implementation and beneficial effects of the image display adjustment device are the same as the specific implementation and beneficial effects of the above-described display method, and will not be repeated.
在一实施例中,一种显示设备,包括存储器和处理器,所述存储器存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a display device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取输入的原始图像,并获取原始图像中每个像素点的RGBA值;Get the input original image, and get the RGBA value of each pixel in the original image;
对像素点的RGBA值进行参数调整,生成新的RGBA值;其中,调整的参数包括亮度、对比度、饱和度和画面色温中的一个或多个;Parameter adjustment is performed on the RGBA value of the pixel to generate a new RGBA value; wherein, the adjusted parameters include one or more of brightness, contrast, saturation and picture color temperature;
根据新的RGBA值生成新的图像。Generate a new image based on the new RGBA values.
参见图4所示,所述显示设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该显示设备的处理器用于提供计算和控制能力。该显示设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该显示设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种文本相似度计算方法。Referring to FIG. 4 , the display device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the display device is used to provide computing and control capabilities. The memory of the display device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the display device is used to communicate with an external terminal through a network connection. The computer program implements a text similarity calculation method when executed by the processor.
本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的显示设备的限定,具体的显示设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 4 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the display device to which the solution of the present application is applied. The specific display device may be Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取输入的原始图像,并获取原始图像中每个像素点的RGBA值;Get the input original image, and get the RGBA value of each pixel in the original image;
对像素点的RGBA值进行参数调整,生成新的RGBA值;其中,调整的参数包括亮度、对比度、饱和度和画面色温中的一个或多个;Parameter adjustment is performed on the RGBA value of the pixel to generate a new RGBA value; wherein, the adjusted parameters include one or more of brightness, contrast, saturation and picture color temperature;
根据新的RGBA值生成新的图像。Generate a new image based on the new RGBA values.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。此外,“S101”、“S102”等关于步骤的表述仅是为了更方便地进行表述,并不代表实际执行的顺序。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. In addition, the descriptions of steps such as "S101", "S102", etc. are only for the convenience of description, and do not represent the actual execution order.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110529746.1A CN113298726A (en) | 2021-05-14 | 2021-05-14 | Image display adjusting method and device, display equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110529746.1A CN113298726A (en) | 2021-05-14 | 2021-05-14 | Image display adjusting method and device, display equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113298726A true CN113298726A (en) | 2021-08-24 |
Family
ID=77322085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110529746.1A Pending CN113298726A (en) | 2021-05-14 | 2021-05-14 | Image display adjusting method and device, display equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113298726A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116842117A (en) * | 2023-06-19 | 2023-10-03 | 重庆市规划和自然资源信息中心 | Geous image output method based on geotools for repairing self-intersecting |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5172224A (en) * | 1990-12-18 | 1992-12-15 | Eastman Kodak Company | Printer calibration method using electronically-decoupled color and tone scale adjustments |
US7154507B1 (en) * | 2000-10-02 | 2006-12-26 | Nvidia Corporation | System, method and computer program product for texture shading |
CN101046945A (en) * | 2006-03-27 | 2007-10-03 | 光宝科技股份有限公司 | How to Display Multiple Screen Color Temperatures |
US20080285851A1 (en) * | 2007-05-14 | 2008-11-20 | Realtek Semiconductor Corp. | Color correction method and apparatus of display apparatus |
CN101521001A (en) * | 2008-02-26 | 2009-09-02 | 瑞昱半导体股份有限公司 | Color correction method and device for display device |
US20100039528A1 (en) * | 2008-08-12 | 2010-02-18 | Takayuki Ogasahara | Image processing device correcting image data, image sensor and image processing method |
CN103179409A (en) * | 2013-03-21 | 2013-06-26 | 深圳市创维群欣安防科技有限公司 | Video penetrating fog processing method and device |
US20150130964A1 (en) * | 2013-11-12 | 2015-05-14 | Novatek Microelectronics Corp. | Automatic Color Correction Method and Color Correction Module thereof |
CN108377373A (en) * | 2018-05-10 | 2018-08-07 | 杭州雄迈集成电路技术有限公司 | A kind of color rendition device and method pixel-based |
CN108537782A (en) * | 2018-04-02 | 2018-09-14 | 东北大学 | A method of building images match based on contours extract with merge |
CN109523485A (en) * | 2018-11-19 | 2019-03-26 | Oppo广东移动通信有限公司 | Image color correction method, device, storage medium and mobile terminal |
CN109978968A (en) * | 2019-04-10 | 2019-07-05 | 广州虎牙信息科技有限公司 | Video rendering method, apparatus, equipment and the storage medium of Moving Objects |
CN110609722A (en) * | 2019-08-09 | 2019-12-24 | 华为技术有限公司 | Dark mode display interface processing method, electronic equipment and storage medium |
CN111127343A (en) * | 2019-12-05 | 2020-05-08 | 华侨大学 | A method for contrast enhancement of infrared images with dual histogram control |
CN111833417A (en) * | 2020-07-14 | 2020-10-27 | 广州探途网络技术有限公司 | Method and system for realizing black and white mode in Android application |
CN112529757A (en) * | 2020-12-04 | 2021-03-19 | 平安科技(深圳)有限公司 | Screen information protection method and device, computer equipment and readable storage medium |
CN112689137A (en) * | 2019-10-18 | 2021-04-20 | 华为技术有限公司 | Video signal processing method and device |
CN112752023A (en) * | 2020-12-29 | 2021-05-04 | 深圳市天视通视觉有限公司 | Image adjusting method and device, electronic equipment and storage medium |
-
2021
- 2021-05-14 CN CN202110529746.1A patent/CN113298726A/en active Pending
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5172224A (en) * | 1990-12-18 | 1992-12-15 | Eastman Kodak Company | Printer calibration method using electronically-decoupled color and tone scale adjustments |
US7154507B1 (en) * | 2000-10-02 | 2006-12-26 | Nvidia Corporation | System, method and computer program product for texture shading |
CN101046945A (en) * | 2006-03-27 | 2007-10-03 | 光宝科技股份有限公司 | How to Display Multiple Screen Color Temperatures |
US20080285851A1 (en) * | 2007-05-14 | 2008-11-20 | Realtek Semiconductor Corp. | Color correction method and apparatus of display apparatus |
CN101521001A (en) * | 2008-02-26 | 2009-09-02 | 瑞昱半导体股份有限公司 | Color correction method and device for display device |
US20100039528A1 (en) * | 2008-08-12 | 2010-02-18 | Takayuki Ogasahara | Image processing device correcting image data, image sensor and image processing method |
CN103179409A (en) * | 2013-03-21 | 2013-06-26 | 深圳市创维群欣安防科技有限公司 | Video penetrating fog processing method and device |
US20150130964A1 (en) * | 2013-11-12 | 2015-05-14 | Novatek Microelectronics Corp. | Automatic Color Correction Method and Color Correction Module thereof |
CN108537782A (en) * | 2018-04-02 | 2018-09-14 | 东北大学 | A method of building images match based on contours extract with merge |
CN108377373A (en) * | 2018-05-10 | 2018-08-07 | 杭州雄迈集成电路技术有限公司 | A kind of color rendition device and method pixel-based |
CN109523485A (en) * | 2018-11-19 | 2019-03-26 | Oppo广东移动通信有限公司 | Image color correction method, device, storage medium and mobile terminal |
CN109978968A (en) * | 2019-04-10 | 2019-07-05 | 广州虎牙信息科技有限公司 | Video rendering method, apparatus, equipment and the storage medium of Moving Objects |
CN110609722A (en) * | 2019-08-09 | 2019-12-24 | 华为技术有限公司 | Dark mode display interface processing method, electronic equipment and storage medium |
CN112689137A (en) * | 2019-10-18 | 2021-04-20 | 华为技术有限公司 | Video signal processing method and device |
CN111127343A (en) * | 2019-12-05 | 2020-05-08 | 华侨大学 | A method for contrast enhancement of infrared images with dual histogram control |
CN111833417A (en) * | 2020-07-14 | 2020-10-27 | 广州探途网络技术有限公司 | Method and system for realizing black and white mode in Android application |
CN112529757A (en) * | 2020-12-04 | 2021-03-19 | 平安科技(深圳)有限公司 | Screen information protection method and device, computer equipment and readable storage medium |
CN112752023A (en) * | 2020-12-29 | 2021-05-04 | 深圳市天视通视觉有限公司 | Image adjusting method and device, electronic equipment and storage medium |
Non-Patent Citations (9)
Title |
---|
CHIN_STYLE: "Android色彩特效处理之色调、饱和度、亮度、ColorMatrix精炼详解", Retrieved from the Internet <URL:https://blog.csdn.net/weixin_41101173/article/details/80146504> * |
HNULWT: "Android ColorMatrix 亮度矩阵 对比度矩阵 黑白矩阵", Retrieved from the Internet <URL:https://blog.csdn.net/hnulwt/article/details/44755025> * |
NOBUGEXCEPTION: "高级UI<第十八篇>:图像处理之颜色矩阵", Retrieved from the Internet <URL:https://www.jianshu.com/p/d183b4edeb56> * |
何颖秋;方子涵;谢亮天;: "基于FPGA的实时图像处理与实现", 电子设计工程, no. 07 * |
刘雨丹;张炯;戴树岭;: "CCD摄像机图像处理仿真", 北京航空航天大学学报, no. 12 * |
唐佳林;张冲;郭岩锋;苏秉华;苏清朗;: "融合多颜色空间信息的彩色图像色差校正算法", 计算机科学, no. 1 * |
王嘉辉;吴限;李丽华;冯恩临;吴丽;: "图像RGB数值衍生的欧氏距离用于手机比色法检测石油类物质", 分析测试学报, no. 07 * |
陆涛;: "基于统计特征分类耦合自适应Gamma校正的图像增强算法", 电子测量与仪器学报, no. 06 * |
马琳;王钧慧;王宽全;张大鹏;: "基于特征图规正的虹膜图像自适应Gamma校正方法", 燕山大学学报, no. 02 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116842117A (en) * | 2023-06-19 | 2023-10-03 | 重庆市规划和自然资源信息中心 | Geous image output method based on geotools for repairing self-intersecting |
CN116842117B (en) * | 2023-06-19 | 2024-03-12 | 重庆市规划和自然资源信息中心 | Geous image output method based on geotools for repairing self-intersecting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10861133B1 (en) | Super-resolution video reconstruction method, device, apparatus and computer-readable storage medium | |
TW591956B (en) | Compensation for adjacent pixel interdependence | |
JP2017527848A (en) | Method for setting gray scale value of liquid crystal panel and liquid crystal display | |
CN105376540A (en) | Projection display system and correction method of projection area | |
WO2020147195A1 (en) | Method and device for controlling brightness of display panel, storage medium, and processor | |
DE102016117265A1 (en) | Apparatus and methods for lens shading correction of an image | |
TW201937449A (en) | Application processor | |
JP2014220656A (en) | Projection type picture display unit, projection picture display method, and computer program | |
CN105280144A (en) | Overdrive technology for reducing color cast effect | |
CN104020565B (en) | There is display system and the method for displaying image thereof of optical lens and display screen | |
WO2019080286A1 (en) | Driving method for display apparatus, and display apparatus | |
CN113298726A (en) | Image display adjusting method and device, display equipment and storage medium | |
JP2002014611A (en) | Video projecting method to planetarium or spherical screen and device therefor | |
JP6155182B2 (en) | Super-resolution processing method for TV video, super-resolution processing device for TV video by the same method, first to fourteenth super-resolution processing programs, and first to fourth storage media | |
CN113299250B (en) | Image display method and device and display equipment | |
CN108921796B (en) | Infrared image non-uniformity correction method based on deep learning | |
CN114092571B (en) | Image color adjustment method and system | |
CN108377383B (en) | Multi-projection 3D system light field contrast adjusting method and system | |
KR102423602B1 (en) | Method of image processing, image processor performing the method, and display device having the image processor | |
CN112233570B (en) | Arc screen correction method and device, computer equipment and storage medium | |
KR20070119442A (en) | Signal processing device and liquid crystal display including the same | |
TWI327868B (en) | Image processing method | |
CN111901578A (en) | Multi-channel cave type projection method | |
CN112184568A (en) | Image processing method and device, electronic equipment and readable storage medium | |
TWI804850B (en) | Fusion method and fusion system for multiple depth information |
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 |
Application publication date: 20210824 |
|
RJ01 | Rejection of invention patent application after publication |