[go: up one dir, main page]

CN118588038A - Image display method for improving contrast and grayscale of liquid crystal screen - Google Patents

Image display method for improving contrast and grayscale of liquid crystal screen Download PDF

Info

Publication number
CN118588038A
CN118588038A CN202411060161.XA CN202411060161A CN118588038A CN 118588038 A CN118588038 A CN 118588038A CN 202411060161 A CN202411060161 A CN 202411060161A CN 118588038 A CN118588038 A CN 118588038A
Authority
CN
China
Prior art keywords
contrast
image
optimized
region
liquid crystal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411060161.XA
Other languages
Chinese (zh)
Other versions
CN118588038B (en
Inventor
李东林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Wangpai Display Technology Co ltd
Original Assignee
Guangzhou Wangpai Display 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 Guangzhou Wangpai Display Technology Co ltd filed Critical Guangzhou Wangpai Display Technology Co ltd
Priority to CN202411060161.XA priority Critical patent/CN118588038B/en
Publication of CN118588038A publication Critical patent/CN118588038A/en
Application granted granted Critical
Publication of CN118588038B publication Critical patent/CN118588038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

本申请涉及图像处理技术领域,公开了一种用于提高液晶屏对比度和灰度的图像显示方法,该方法包括获取灰度数据并计算第一对比度和第二对比度、获取亮度数据并得到优化对比度、捕捉待优化区域并进行对比度重建、进行图像重建和进行对比度检测。本申请,通过获取灰度数据为计算整体的第一对比度和各区域的第二对比度提供数据基础;通过获取亮度数据为获取优化对比度提供数据参考;通过捕捉待优化区域实现对比度重建,提升对比度和灰度;通过图像重建实现图像整体优化;通过对比度检测保障重建图像不因对比度重建导致显示效果降低。最后实现了提高液晶屏对比度和灰度的图像显示。

The present application relates to the field of image processing technology, and discloses an image display method for improving the contrast and grayscale of a liquid crystal screen. The method includes obtaining grayscale data and calculating a first contrast and a second contrast, obtaining brightness data and obtaining an optimized contrast, capturing an area to be optimized and performing contrast reconstruction, performing image reconstruction, and performing contrast detection. In the present application, grayscale data is obtained to provide a data basis for calculating the overall first contrast and the second contrast of each area; brightness data is obtained to provide a data reference for obtaining the optimized contrast; contrast reconstruction is achieved by capturing the area to be optimized to improve the contrast and grayscale; overall image optimization is achieved by image reconstruction; and contrast detection is used to ensure that the reconstructed image does not reduce the display effect due to contrast reconstruction. Finally, image display with improved contrast and grayscale of the liquid crystal screen is achieved.

Description

一种用于提高液晶屏对比度和灰度的图像显示方法Image display method for improving contrast and grayscale of liquid crystal screen

技术领域Technical Field

本申请涉及图像处理技术领域,具体是一种用于提高液晶屏对比度和灰度的图像显示方法。The present application relates to the field of image processing technology, and in particular to an image display method for improving the contrast and grayscale of a liquid crystal screen.

背景技术Background Art

液晶屏对比度和灰度通常指液晶屏液晶屏在不同亮度层次和色彩深度方面的显示性能。因此,研究用于提高液晶显示屏对比度和灰度的图像显示方法是必要的。LCD contrast and grayscale usually refer to the display performance of LCD in different brightness levels and color depths. Therefore, it is necessary to study the image display method for improving the contrast and grayscale of LCD screens.

中国专利号CN202211309799.3公开了一种提高液晶显示画面对比度的方法及装置,其方法包括步骤:S1.分配器接收外部高清视频信号,将高清视频信号同步复制成两组信号数据,并由两个高清端口输出;S2.液晶屏幕模组接收一组高清视频信号,并将高清视频信号经解码处理后,通过液晶显示屏幕进行图像显示;S3.背光模组接收另一组高清视频信号,并转换成控制LED亮度变化的控制信号,进行背光的开关及亮度变化的调节;S4.将背光的亮度显示投射到液晶屏幕的图像显示上形成高对比度显示画面。将外部的视频信号经过同步复制处理,分别输入液晶屏幕和背光模组并分别进行显示的控制,以此实现背光LED亮度随画面变化进行动态亮度调整,来提高画面的超高对比度。该发明实现了提高对比度,但其对在何种环境下以及提高多少对比度上的表现一般。Chinese patent number CN202211309799.3 discloses a method and device for improving the contrast of a liquid crystal display screen, the method comprising the following steps: S1. The distributor receives an external high-definition video signal, synchronously copies the high-definition video signal into two groups of signal data, and outputs them from two high-definition ports; S2. The liquid crystal screen module receives a group of high-definition video signals, and after decoding and processing the high-definition video signals, displays the image through the liquid crystal display screen; S3. The backlight module receives another group of high-definition video signals, and converts them into control signals for controlling the brightness change of LEDs, and adjusts the backlight switch and brightness change; S4. The backlight brightness display is projected onto the image display of the liquid crystal screen to form a high-contrast display screen. The external video signal is synchronously copied and processed, respectively input into the liquid crystal screen and the backlight module, and the display is controlled separately, so as to realize dynamic brightness adjustment of the backlight LED brightness as the picture changes, so as to improve the ultra-high contrast of the picture. The invention achieves the improvement of contrast, but its performance in terms of what environment and how much contrast is improved is general.

综上,现有技术缺少一个用于提高液晶屏对比度和灰度的图像显示的技术方案。In summary, the prior art lacks a technical solution for improving the contrast and grayscale image display of a liquid crystal screen.

发明内容Summary of the invention

本申请的目的在于提供一种用于提高液晶屏对比度和灰度的图像显示方法,以解决上述背景技术中提出的技术问题。The purpose of the present application is to provide an image display method for improving the contrast and grayscale of a liquid crystal screen, so as to solve the technical problems raised in the above-mentioned background technology.

为实现上述目的,本申请公开了以下技术方案:To achieve the above objectives, this application discloses the following technical solutions:

一种用于提高液晶屏对比度和灰度的图像显示方法,包括:An image display method for improving the contrast and grayscale of a liquid crystal screen, comprising:

S1:获取待显示图像的灰度数据,计算所述待显示图像整体的第一对比度;分割所述待显示图像得到若干区域,并计算各所述区域的第二对比度;S1: Acquire grayscale data of an image to be displayed, calculate a first contrast ratio of the entire image to be displayed; segment the image to be displayed to obtain a plurality of regions, and calculate a second contrast ratio of each of the regions;

S2:获取液晶屏所在环境的亮度数据,并基于所述亮度数据的变化得到对应的优化对比度;S2: Acquire brightness data of the environment where the LCD screen is located, and obtain a corresponding optimized contrast ratio based on a change in the brightness data;

S3:基于所述优化对比度,在所述区域中捕捉待优化区域,并对所述待优化区域进行对比度重建,得到对应的重建区域;S3: Based on the optimized contrast, capturing a region to be optimized in the region, and reconstructing the contrast of the region to be optimized to obtain a corresponding reconstructed region;

S4:利用所述重建区域替换所述待优化区域,并对所述待显示图像进行图像重建,得到重建图像;S4: replacing the area to be optimized with the reconstructed area, and reconstructing the image to be displayed to obtain a reconstructed image;

S5:对所述重建图像进行对比度检测,并显示通过所述对比度检测的所述重建图像。S5: Perform contrast detection on the reconstructed image, and display the reconstructed image after the contrast detection.

作为优选,所述的计算所述待显示图像整体的第一对比度,具体包括:Preferably, the calculating of the first contrast ratio of the entire image to be displayed specifically includes:

利用第一对比度计算公式计算所述第一对比度,所述第一对比度用于表征待显示图像整体的对比度,并用于修正所述重建图像;Calculating the first contrast using a first contrast calculation formula, where the first contrast is used to characterize the overall contrast of the image to be displayed and is used to correct the reconstructed image;

所述第一对比度计算公式具体为:The first contrast calculation formula is specifically:

;

其中,为所述待显示图像的灰度数据中的最小值,为所述待显示图像的灰度数据中的最大值,为所述第一对比度。in, is the minimum value in the grayscale data of the image to be displayed, is the maximum value of the grayscale data of the image to be displayed, is the first contrast.

作为优选,所述的计算各所述区域的第二对比度,具体包括:Preferably, the calculating the second contrast of each of the regions specifically includes:

计算各所述区域对应的平均灰度,其中,为分割所述待显示图像得到若干区域对应的编号;Calculate the average grayscale corresponding to each of the regions ,in, Obtaining numbers corresponding to a plurality of regions for segmenting the image to be displayed;

将各所述区域中大于或等于该区域对应的平均灰度的像素定义为亮像素,都则定义为暗像素;The pixels in each of the regions whose grayscale is greater than or equal to the average grayscale corresponding to the region are defined as bright pixels, and the pixels whose grayscale is less than or equal to the average grayscale corresponding to the region are defined as dark pixels;

计算所述亮像素对应的亮平均灰度和所述暗像素对应的暗平均灰度Calculate the bright average grayscale corresponding to the bright pixel The dark average grayscale corresponding to the dark pixel ;

利用第二对比度计算公式计算所述第二对比度,所述第二对比度用于表征各所述区域的对比度;Calculating the second contrast using a second contrast calculation formula, where the second contrast is used to characterize the contrast of each of the regions;

所述第二对比度计算公式具体为:The second contrast calculation formula is specifically:

;

其中,为编号为的所述区域的所述第二对比度。in, For the number The second contrast of the area.

作为优选,所述的获取液晶屏所在环境的亮度数据,具体包括:Preferably, the step of obtaining brightness data of the environment where the LCD screen is located specifically includes:

基于时间序列获取液晶屏所在环境的亮度数据,得到环境亮度时间对应关系。The brightness data of the environment where the LCD screen is located is obtained based on the time series to obtain the corresponding relationship between the environment brightness and time.

作为优选,所述的基于所述亮度数据的变化得到对应的优化对比度,具体包括:Preferably, obtaining the corresponding optimized contrast based on the change of the brightness data specifically includes:

预设对比度调整周期;Preset contrast adjustment cycle;

利用所述环境亮度时间对应关系,计算在一个所述对比度调整周期前后的亮度变化量The brightness change before and after a contrast adjustment cycle is calculated by using the ambient brightness time correspondence relationship. ;

利用优化对比度计算公式计算与所述亮度变化量对应的优化对比度修正值,所述优化对比度计算公式具体为:The optimized contrast calculation formula is used to calculate the optimized contrast correction value corresponding to the brightness change, and the optimized contrast calculation formula is specifically:

;

其中,为优化对比度修正值的控制参数,为所述优化对比度修正值。in, To optimize the control parameters of the contrast correction value, The optimized contrast correction value.

作为优选,所述的基于所述优化对比度,在所述区域中捕捉待优化区域,具体包括:Preferably, capturing the area to be optimized in the area based on the optimized contrast specifically includes:

预设区域优化阈值,当时输出当前编号,并将该编号对应的所述区域捕捉确定为所述待优化区域,否则不进行捕捉。Preset region optimization threshold ,when Output the current number , and the area corresponding to the number is captured and determined as the area to be optimized, otherwise it is not captured.

作为优选,所述的对所述待优化区域进行对比度重建,具体包括:Preferably, the contrast reconstruction of the area to be optimized specifically includes:

利用对比度重建计算公式计算各所述区域的重建后的第三对比度,所述对比度重建计算公式具体为:The reconstructed third contrast of each of the regions is calculated using a contrast reconstruction calculation formula, wherein the contrast reconstruction calculation formula is specifically:

;

其中,为所述第三对比度,所述第三对比度为进行对比度重建的目标值;in, is the third contrast, and the third contrast is a target value for contrast reconstruction;

基于所述第三对比度,对应调整各所述待优化区域中的所述亮像素和所述暗像素中的任意一种或多种,使调整后的该所述优化区域的所述第二对比度等于所述第三对比度,得到所述重建区域。Based on the third contrast, any one or more of the bright pixels and the dark pixels in each of the regions to be optimized are correspondingly adjusted so that the adjusted second contrast of the optimized region is equal to the third contrast, thereby obtaining the reconstructed region.

作为优选,所述的利用所述重建区域替换所述待优化区域,具体包括:Preferably, the replacing the area to be optimized with the reconstructed area specifically includes:

基于编号,利用所述重建区域对应的替换所述待优化区域。Based on number , using the reconstructed area to replace the area to be optimized.

作为优选,所述的对所述待显示图像进行图像重建,得到重建图像,具体包括:Preferably, reconstructing the image to be displayed to obtain a reconstructed image specifically includes:

获取完成替换的所述待显示图像中发生替换的各所述区域的边缘;Acquire edges of each of the regions where replacement has occurred in the image to be displayed after replacement;

对所述边缘进行图像拼接边缘融合,将融合得到的所述待显示图像定义为所述重建图像。Image splicing and edge fusion are performed on the edges, and the image to be displayed obtained by fusion is defined as the reconstructed image.

作为优选,所述的对所述重建图像进行对比度检测,并显示通过所述对比度检测的所述重建图像,具体包括:Preferably, the performing contrast detection on the reconstructed image and displaying the reconstructed image after the contrast detection specifically comprises:

预设整体优化阈值Preset overall optimization threshold ;

利用所述第一对比度计算公式计算所述重建图像的所述第一对比度The first contrast of the reconstructed image is calculated using the first contrast calculation formula ;

所述的对所述重建图像进行对比度检测配置为:The configuration for performing contrast detection on the reconstructed image is:

计算并判断是否成立,是则表示通过所述对比度检测,并输出显示该所述重建图像,否则修改所述优化对比度修正值的控制参数,并再次执行步骤S2-S5,直至通过所述对比度检测。Calculate and judge Is it true? If it is true, it means that the contrast detection is passed and the reconstructed image is output and displayed. Otherwise, the control parameter of the optimized contrast correction value is modified. , and execute steps S2-S5 again until the contrast detection is passed.

有益效果:本申请的用于提高液晶屏对比度和灰度的图像显示方法,通过获取灰度数据为计算整体的第一对比度和各区域的第二对比度提供数据基础;通过获取亮度数据为获取优化对比度提供数据参考;通过捕捉待优化区域实现对比度重建,提升对比度和灰度;通过图像重建实现图像整体优化;通过对比度检测保障重建图像不因对比度重建导致显示效果降低。Beneficial effects: The image display method for improving the contrast and grayscale of a liquid crystal screen of the present application provides a data basis for calculating the overall first contrast and the second contrast of each area by acquiring grayscale data; provides a data reference for obtaining the optimized contrast by acquiring brightness data; realizes contrast reconstruction by capturing the area to be optimized to improve the contrast and grayscale; realizes overall image optimization by image reconstruction; and ensures that the display effect of the reconstructed image is not reduced due to contrast reconstruction by contrast detection.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

图1为本申请实施例提供的用于提高液晶屏对比度和灰度的图像显示方法的流程框图。FIG1 is a flowchart of an image display method for improving the contrast and grayscale of a liquid crystal screen provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

在本文中,术语“包括”意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

本实施例公开了如图1所示的一种用于提高液晶屏对比度和灰度的图像显示方法,包括:This embodiment discloses an image display method for improving the contrast and grayscale of a liquid crystal screen as shown in FIG1, comprising:

S1:获取待显示图像的灰度数据,计算待显示图像整体的第一对比度;分割待显示图像得到若干区域,并计算各区域的第二对比度;S1: Obtaining grayscale data of the image to be displayed, calculating the first contrast of the entire image to be displayed; dividing the image to be displayed into several regions, and calculating the second contrast of each region;

S2:获取液晶屏所在环境的亮度数据,并基于亮度数据的变化得到对应的优化对比度;S2: Obtaining brightness data of the environment where the LCD screen is located, and obtaining a corresponding optimized contrast ratio based on changes in the brightness data;

S3:基于优化对比度,在区域中捕捉待优化区域,并对待优化区域进行对比度重建,得到对应的重建区域;S3: Based on the optimized contrast, the area to be optimized is captured in the region, and the contrast of the area to be optimized is reconstructed to obtain the corresponding reconstructed area;

S4:利用重建区域替换待优化区域,并对待显示图像进行图像重建,得到重建图像;S4: replacing the area to be optimized with the reconstructed area, and reconstructing the image to be displayed to obtain a reconstructed image;

S5:对重建图像进行对比度检测,并显示通过对比度检测的重建图像。S5: Perform contrast detection on the reconstructed image, and display the reconstructed image after contrast detection.

通过获取灰度数据为计算整体的第一对比度和各区域的第二对比度提供数据基础;通过获取亮度数据为获取优化对比度提供数据参考;通过捕捉待优化区域实现对比度重建,提升对比度和灰度;通过图像重建实现图像整体优化;通过对比度检测保障重建图像不因对比度重建导致显示效果降低。By acquiring grayscale data, a data basis is provided for calculating the overall first contrast and the second contrast of each area; by acquiring brightness data, a data reference is provided for obtaining the optimized contrast; by capturing the area to be optimized, contrast reconstruction is achieved to improve the contrast and grayscale; by image reconstruction, the overall image optimization is achieved; by contrast detection, it is ensured that the reconstructed image does not suffer from a reduction in display effect due to contrast reconstruction.

具体的,计算待显示图像整体的第一对比度,具体包括:Specifically, calculating the first contrast of the entire image to be displayed includes:

利用第一对比度计算公式计算第一对比度,第一对比度用于表征待显示图像整体的对比度,并用于修正重建图像,需要说明的是,本实施例中将重建图像的第一对比度与待显示图像的第一对比度记进行比较,从而实现将重建图像的整体的对比度被限制在预设范围内,以此保障提高对比度和灰度后的图像的显示效果不受影响;The first contrast is calculated using a first contrast calculation formula. The first contrast is used to characterize the overall contrast of the image to be displayed and is used to correct the reconstructed image. It should be noted that in this embodiment, the first contrast of the reconstructed image is compared with the first contrast of the image to be displayed, so as to limit the overall contrast of the reconstructed image within a preset range, thereby ensuring that the display effect of the image after the contrast and grayscale are improved is not affected;

第一对比度计算公式具体为:The first contrast calculation formula is as follows:

;

其中,为待显示图像的灰度数据中的最小值,为待显示图像的灰度数据中的最大值,为第一对比度。in, is the minimum value in the grayscale data of the image to be displayed, is the maximum value of the grayscale data of the image to be displayed, is the first contrast.

具体的,计算各区域的第二对比度,具体包括:Specifically, calculating the second contrast of each area includes:

计算各区域对应的平均灰度,其中,为分割待显示图像得到若干区域对应的编号;Calculate the average grayscale corresponding to each area ,in, Obtaining numbers corresponding to a number of regions for segmenting the image to be displayed;

将各区域中大于或等于该区域对应的平均灰度的像素定义为亮像素,都则定义为暗像素;The pixels in each region whose grayscale is greater than or equal to the average grayscale of the region are defined as bright pixels, and those whose grayscale is less than or equal to the average grayscale of the region are defined as dark pixels;

计算亮像素对应的亮平均灰度和暗像素对应的暗平均灰度Calculate the bright average grayscale corresponding to the bright pixel The dark average grayscale corresponding to the dark pixels ;

利用第二对比度计算公式计算第二对比度,第二对比度用于表征各区域的对比度;The second contrast is calculated using a second contrast calculation formula, where the second contrast is used to characterize the contrast of each area;

第二对比度计算公式具体为:The second contrast calculation formula is as follows:

;

其中,为编号为的区域的第二对比度,需要说明的是,本实施例中用各像素的平均值计算第二对比度旨在更精准地各区域的对比对,为待优化区域的筛选提供数据基础,同时也为进行对比度重建提供数据基础。in, For the number It should be noted that in this embodiment, the second contrast is calculated using the average value of each pixel to more accurately compare each area, provide a data basis for screening the area to be optimized, and also provide a data basis for contrast reconstruction.

具体的,获取液晶屏所在环境的亮度数据,具体包括:Specifically, the brightness data of the environment where the LCD screen is located is obtained, including:

基于时间序列获取液晶屏所在环境的亮度数据,得到环境亮度时间对应关系,需要说明的是,本实施例中基于一个对比度周期进行对比度调整,无需对亮度数据进行预测;但进一步的,存在液晶屏装在户外等亮度数据碎时间变化明显的区域时,本实施例中的用于提高液晶屏对比度和灰度的图像显示方法还实现通过预测亮度数据实现提前生成优化对比度。The brightness data of the environment where the LCD screen is located is obtained based on the time series, and the corresponding relationship between the ambient brightness and time is obtained. It should be noted that in this embodiment, the contrast adjustment is based on a contrast cycle, and there is no need to predict the brightness data; but further, when the LCD screen is installed outdoors and other areas where the brightness data changes significantly over time, the image display method for improving the contrast and grayscale of the LCD screen in this embodiment also realizes the early generation of optimized contrast by predicting the brightness data.

具体的,基于亮度数据的变化得到对应的优化对比度,具体包括:Specifically, the corresponding optimized contrast is obtained based on the change of brightness data, including:

预设对比度调整周期;Preset contrast adjustment cycle;

利用环境亮度时间对应关系,计算在一个对比度调整周期前后的亮度变化量Using the time correspondence of ambient brightness, calculate the brightness change before and after a contrast adjustment cycle ;

利用优化对比度计算公式计算与亮度变化量对应的优化对比度修正值,优化对比度计算公式具体为:The optimized contrast calculation formula is used to calculate the optimized contrast correction value corresponding to the brightness change. The optimized contrast calculation formula is specifically:

;

其中,为优化对比度修正值的控制参数,为优化对比度修正值;需要说明的是,本实施例中的优化对比度修正值的控制参数是基于历史人工在不同亮度变化量时更改的对比度的数据进行拟合得到,且为能够实现提高对比度和灰度的一组范围值,该范围值用于在对比度检测不通过后进一步修正优化对比度,以实现在不影响重建图像显示效果的基础上实现提高对比度和灰度。in, To optimize the control parameters of the contrast correction value, To optimize the contrast correction value; it should be noted that the control parameters of the optimized contrast correction value in this embodiment are fitted based on the historical data of the contrast changed by artificial means at different brightness changes, and A set of range values for improving contrast and grayscale is provided. The range values are used to further correct and optimize the contrast after the contrast detection fails, so as to improve the contrast and grayscale without affecting the display effect of the reconstructed image.

具体的,基于优化对比度,在区域中捕捉待优化区域,具体包括:Specifically, based on the optimized contrast, the area to be optimized is captured in the region, including:

预设区域优化阈值,该区域优化阈值旨在在各区域中筛选出需要进行优化的对比度,当时输出当前编号,并将该编号对应的区域捕捉确定为待优化区域,否则不进行捕捉。Preset region optimization threshold , the regional optimization threshold is designed to screen out the contrast that needs to be optimized in each region. Output the current number , and capture the area corresponding to the number as the area to be optimized, otherwise it will not be captured.

具体的,对待优化区域进行对比度重建,具体包括:Specifically, the contrast of the area to be optimized is reconstructed, including:

利用对比度重建计算公式计算各区域的重建后的第三对比度,对比度重建计算公式具体为:The third contrast after reconstruction of each region is calculated using the contrast reconstruction calculation formula. The contrast reconstruction calculation formula is specifically:

;

其中,为第三对比度,第三对比度为进行对比度重建的目标值,本实施例中是存在正负的,即对应的提高灰度和降低灰度;in, is the third contrast, which is the target value for contrast reconstruction. There are positive and negative values, that is, correspondingly increasing the grayscale and decreasing the grayscale;

基于第三对比度,对应调整各待优化区域中的亮像素和暗像素中的任意一种或多种,使调整后的该优化区域的第二对比度等于第三对比度,得到重建区域。Based on the third contrast, any one or more of the bright pixels and dark pixels in each area to be optimized are correspondingly adjusted so that the adjusted second contrast of the optimized area is equal to the third contrast, thereby obtaining a reconstructed area.

具体的,利用重建区域替换待优化区域,具体包括:Specifically, the reconstructed area is used to replace the area to be optimized, which specifically includes:

基于编号,利用重建区域对应的替换待优化区域,以此避免替换时出现错误。Based on number , use the reconstructed area to replace the area to be optimized, so as to avoid errors during replacement.

具体的,对待显示图像进行图像重建,得到重建图像,具体包括:Specifically, performing image reconstruction on the image to be displayed to obtain a reconstructed image specifically includes:

获取完成替换的待显示图像中发生替换的各区域的边缘;Obtaining edges of each replaced area in the replaced image to be displayed;

对边缘进行图像拼接边缘融合,本实施例中采用的图像拼接边缘融合技术是现有技术中的任意一种,将融合得到的待显示图像定义为重建图像。Image stitching and edge fusion are performed on the edges. The image stitching and edge fusion technology used in this embodiment is any one of the prior arts. The image to be displayed obtained by fusion is defined as a reconstructed image.

具体的,对重建图像进行对比度检测,并显示通过对比度检测的重建图像,具体包括:Specifically, performing contrast detection on the reconstructed image and displaying the reconstructed image after the contrast detection specifically includes:

预设整体优化阈值Preset overall optimization threshold ;

利用第一对比度计算公式计算重建图像的第一对比度The first contrast of the reconstructed image is calculated using the first contrast calculation formula ;

对重建图像进行对比度检测配置为:The contrast detection configuration for the reconstructed image is:

计算并判断是否成立,该判断实现了对重建图像的显示效果进行约束,是则表示通过对比度检测,并输出显示该重建图像,否则修改优化对比度修正值的控制参数,即在范围值内进行遍历,找到满足对比度检测的控制参数,并再次执行步骤S2-S5,直至通过对比度检测。Calculate and judge Is it true? This judgment realizes the constraint on the display effect of the reconstructed image. If it is true, it means that the contrast detection is passed and the reconstructed image is output and displayed. Otherwise, the control parameters of the optimized contrast correction value are modified. , that is, traverse within the range value to find the control parameters that meet the contrast detection, and execute steps S2-S5 again until the contrast detection is passed.

综上,本实施例的用于提高液晶屏对比度和灰度的图像显示方法,通过获取灰度数据为计算整体的第一对比度和各区域的第二对比度提供数据基础;通过获取亮度数据为获取优化对比度提供数据参考;通过捕捉待优化区域实现对比度重建,提升对比度和灰度;通过图像重建实现图像整体优化;通过对比度检测保障重建图像不因对比度重建导致显示效果降低。In summary, the image display method for improving the contrast and grayscale of the liquid crystal screen of the present embodiment provides a data basis for calculating the overall first contrast and the second contrast of each area by acquiring grayscale data; provides a data reference for obtaining the optimized contrast by acquiring brightness data; realizes contrast reconstruction by capturing the area to be optimized to improve the contrast and grayscale; realizes overall image optimization by image reconstruction; and ensures that the display effect of the reconstructed image is not reduced due to contrast reconstruction by contrast detection.

在本申请所提供的实施例中,应该理解到,可以以硬件、软件、固件、中间件、代码或其任何恰当组合来实现这里描述的实施例。对于硬件实现,处理器可以在一个或多个下列单元中实现:专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、设计用于实现这里所描述功能的其他电子单元或其组合。对于软件实现,实施例的部分或全部流程可以通过计算机程序来指令相关的硬件来完成。实现时,可以将上述程序存储在计算机可读存储介质中或作为计算机可读存储介质上的一个或多个指令或代码进行传输。计算机可读存储介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。计算机可读存储介质可以包括但不限于RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code, or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a processor, a controller, a microcontroller, a microprocessor, other electronic units designed to implement the functions described herein, or a combination thereof. For software implementation, part or all of the processes of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that can be accessed by a computer. Computer-readable storage media can include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

最后应说明的是:以上所述仅为本申请的优选实施例而已,并不用于限制本申请,尽管参照前述实施例对本申请进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An image display method for improving contrast and gray scale of a liquid crystal display, comprising:
S1: acquiring gray data of an image to be displayed, and calculating the first contrast of the whole image to be displayed; dividing the image to be displayed to obtain a plurality of areas, and calculating the second contrast of each area;
s2: acquiring brightness data of an environment where a liquid crystal screen is located, and obtaining corresponding optimized contrast ratio based on the change of the brightness data;
S3: capturing a region to be optimized in the region based on the optimized contrast, and carrying out contrast reconstruction on the region to be optimized to obtain a corresponding reconstruction region;
S4: replacing the region to be optimized by the reconstruction region, and performing image reconstruction on the image to be displayed to obtain a reconstructed image;
S5: and performing contrast detection on the reconstructed image, and displaying the reconstructed image detected by the contrast.
2. The method for improving contrast and gray scale of a liquid crystal display according to claim 1, wherein said calculating the first contrast of the whole image to be displayed comprises:
Calculating a first contrast by using a first contrast calculation formula, wherein the first contrast is used for representing the contrast of the whole image to be displayed and correcting the reconstructed image;
the first contrast ratio calculation formula specifically comprises:
wherein, For the minimum value in the gradation data of the image to be displayed,For the maximum value in the gradation data of the image to be displayed,For the first contrast.
3. The method for improving contrast and gray scale of liquid crystal display according to claim 2, wherein said calculating the second contrast of each of said areas comprises:
calculating the average gray scale corresponding to each region Wherein, the method comprises the steps of, wherein,Obtaining numbers corresponding to a plurality of areas for dividing the image to be displayed;
Pixels in each region, which are larger than or equal to the average gray scale corresponding to the region, are defined as bright pixels, and all pixels are defined as dark pixels;
Calculating the bright average gray scale corresponding to the bright pixel Dark average gray scale corresponding to the dark pixel
Calculating a second contrast by using a second contrast calculation formula, wherein the second contrast is used for representing the contrast of each region;
The second contrast ratio calculation formula specifically comprises:
wherein, Is numbered asIs provided, the second contrast of the region of (a).
4. The method for improving contrast and gray scale of a liquid crystal display according to claim 3, wherein the acquiring brightness data of the environment in which the liquid crystal display is located specifically comprises:
and acquiring brightness data of the environment where the liquid crystal screen is positioned based on the time sequence to obtain the corresponding relation of the environment brightness and time.
5. The method for improving contrast and gray scale of a liquid crystal display according to claim 4, wherein said obtaining the corresponding optimized contrast based on the change of the brightness data comprises:
presetting a contrast adjustment period;
Calculating the brightness variation before and after one contrast adjustment period by using the environment brightness time corresponding relation
Calculating an optimized contrast correction value corresponding to the brightness variation by using an optimized contrast calculation formula, wherein the optimized contrast calculation formula specifically comprises the following steps:
wherein, In order to optimize the control parameters of the contrast correction values,And correcting the value for the optimized contrast.
6. The method for improving contrast and gray scale of a liquid crystal display according to claim 5, wherein capturing the region to be optimized in the region based on the optimized contrast, specifically comprises:
Preset zone optimization threshold When (when)Outputting the current numberAnd determining the region capture corresponding to the number as the region to be optimized, otherwise, not capturing.
7. The method for improving contrast and gray scale of a liquid crystal display according to claim 6, wherein said reconstructing the contrast of the region to be optimized specifically comprises:
Calculating a reconstructed third contrast of each region by using a contrast reconstruction calculation formula, wherein the contrast reconstruction calculation formula specifically comprises the following steps:
wherein, The third contrast is the target value for contrast reconstruction;
And correspondingly adjusting any one or more of the bright pixels and the dark pixels in each region to be optimized based on the third contrast ratio, so that the adjusted second contrast ratio of the optimized region is equal to the third contrast ratio, and obtaining the reconstruction region.
8. The method for improving contrast and gray scale of a liquid crystal display according to claim 7, wherein said replacing the region to be optimized with the reconstructed region comprises:
Based on numbering And replacing the region to be optimized by utilizing the reconstruction region.
9. The method for improving contrast and gray scale of a liquid crystal display according to claim 8, wherein said reconstructing the image of the image to be displayed to obtain a reconstructed image comprises:
acquiring the edge of each area which is replaced in the image to be displayed and is replaced;
and carrying out image stitching and edge fusion on the edges, and defining the fused image to be displayed as the reconstructed image.
10. The method for displaying an image for improving contrast and gray scale of a liquid crystal display according to any one of claims 1 to 9, wherein said performing contrast detection on said reconstructed image and displaying said reconstructed image passing said contrast detection specifically comprises:
Presetting an overall optimization threshold
Calculating the first contrast of the reconstructed image using the first contrast calculation formula
The contrast detection of the reconstructed image is configured to:
Calculating and judging If so, then indicating that the contrast detection is passed, and outputting and displaying the reconstructed image, otherwise, modifying the control parameters of the optimized contrast correction valueAnd steps S2-S5 are performed again until the contrast detection is passed.
CN202411060161.XA 2024-08-05 2024-08-05 Image display method for improving contrast and grayscale of liquid crystal screen Active CN118588038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411060161.XA CN118588038B (en) 2024-08-05 2024-08-05 Image display method for improving contrast and grayscale of liquid crystal screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411060161.XA CN118588038B (en) 2024-08-05 2024-08-05 Image display method for improving contrast and grayscale of liquid crystal screen

Publications (2)

Publication Number Publication Date
CN118588038A true CN118588038A (en) 2024-09-03
CN118588038B CN118588038B (en) 2024-10-11

Family

ID=92530273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411060161.XA Active CN118588038B (en) 2024-08-05 2024-08-05 Image display method for improving contrast and grayscale of liquid crystal screen

Country Status (1)

Country Link
CN (1) CN118588038B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192389A (en) * 2006-11-30 2008-06-04 英业达股份有限公司 Liquid crystal display and contrast adjusting device and method thereof
CN102722871A (en) * 2012-05-24 2012-10-10 中山大学 Quick and effective image enhancing method
US20140133752A1 (en) * 2012-11-13 2014-05-15 Samsung Electronics Co., Ltd. Display apparatus and method for image output thereof
CN107657608A (en) * 2017-09-25 2018-02-02 北京小米移动软件有限公司 Picture quality determines method, apparatus and electronic equipment
CN108830815A (en) * 2018-06-22 2018-11-16 上海顺久电子科技有限公司 A kind of method, apparatus and terminal improving dark picture areas contrast

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192389A (en) * 2006-11-30 2008-06-04 英业达股份有限公司 Liquid crystal display and contrast adjusting device and method thereof
CN102722871A (en) * 2012-05-24 2012-10-10 中山大学 Quick and effective image enhancing method
US20140133752A1 (en) * 2012-11-13 2014-05-15 Samsung Electronics Co., Ltd. Display apparatus and method for image output thereof
CN107657608A (en) * 2017-09-25 2018-02-02 北京小米移动软件有限公司 Picture quality determines method, apparatus and electronic equipment
CN108830815A (en) * 2018-06-22 2018-11-16 上海顺久电子科技有限公司 A kind of method, apparatus and terminal improving dark picture areas contrast

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘莉;刘珊;钱雪飞;: "多尺度形态学的局部对比度增强优化算法", 弹箭与制导学报, no. 02, 18 January 2018 (2018-01-18) *

Also Published As

Publication number Publication date
CN118588038B (en) 2024-10-11

Similar Documents

Publication Publication Date Title
KR101749229B1 (en) Image Display Method And Image Display Device
JP6768239B2 (en) Liquid crystal display device and its compensation data storage method
US8237688B2 (en) Contrast control apparatus and contrast control method and image display
CN108702514B (en) High dynamic range image processing method and device
CN108200354A (en) Control method and device, imaging device, computer device and readable storage medium
CN110189714A (en) The display methods and device, electronic equipment, medium of backlight are adjusted with region
WO2016026147A1 (en) Greyscale value setting method for liquid crystal panel, and liquid crystal display
KR101738105B1 (en) Image Processing Device, Image Processing Method and Flat Panel Display
CN101101740A (en) Image processing system, display device, program and information storage medium
CN109064995A (en) Luminance compensation method, display panel and the luminance compensating mechanism of display panel
MXPA04008066A (en) Compensation for adjacent pixel interdependence.
CN100468495C (en) Display device capable of compensating ambient brightness
US20120113222A1 (en) Video signal processing apparatus, video signal processing method, and computer program
CN118588038B (en) Image display method for improving contrast and grayscale of liquid crystal screen
CN101727876A (en) Backlight luminance control method and device
JP5359191B2 (en) Liquid crystal display
CN111193915B (en) Intelligent splicing method of projection fusion transition zone and projection fusion equipment
CN109712578B (en) Display method and display device
CN103313012A (en) Video processing apparatus and system for correcting video signal
CN104301638B (en) Bad pixel processing method and image processing device
CN111383604B (en) Method, system and storage medium for improving regional dimming algorithm
WO2020034294A1 (en) Display driving method, display driving apparatus, and apparatus having storage function
WO2023029199A1 (en) Demura method for display panel
TWI387958B (en) Method and apparatus for controlling luminance of backlight
JP2011130118A (en) Device, method and program for determining imaging condition, computer readable recording medium, and unevenness correction system equipped with imaging condition determination device

Legal Events

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