CN112153452B - Dynamic dark part detail presenting method and device and intelligent terminal - Google Patents
Dynamic dark part detail presenting method and device and intelligent terminal Download PDFInfo
- Publication number
- CN112153452B CN112153452B CN202010960781.4A CN202010960781A CN112153452B CN 112153452 B CN112153452 B CN 112153452B CN 202010960781 A CN202010960781 A CN 202010960781A CN 112153452 B CN112153452 B CN 112153452B
- Authority
- CN
- China
- Prior art keywords
- dark part
- picture
- dark
- details
- detail
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration using histogram techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/57—Control of contrast or brightness
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Picture Signal Circuits (AREA)
- Television Receiver Circuits (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像处理技术领域,尤其涉及的是一种动态呈现暗部细节处理方法、装置、智能终端。The present invention relates to the technical field of image processing, in particular to a method, device, and intelligent terminal for dynamically presenting dark details.
背景技术Background technique
显示器的暗部细节指的是显示器显示比较暗的图片中,看到的图片细节是否清晰。The details of the dark part of the monitor refer to whether the details of the picture seen in the darker picture displayed on the monitor are clear.
现在的电视机上播放的内容种类比较多,其中暗部细节比较多的场景和背景为暗灰的场景也经常看见。There are many types of content played on TVs now, and scenes with more details in the dark parts and scenes with dark gray backgrounds are often seen.
而其中如果暗部细节比较多的场景应该保留相关信息,而画面为暗灰的场景因为没有有效的内容,最好是能显示为黑色,以突显画面的高对比度。但是现有技术中在实现保留暗部细节和凸显对比度的做法存在明显的冲突。Among them, if the scene with more details in the dark part should retain relevant information, and the scene with dark gray picture has no effective content, it is better to be displayed in black to highlight the high contrast of the picture. However, in the prior art, there are obvious conflicts in the methods of preserving dark details and highlighting contrast.
即现有技术的电视上播放的画面,尤其是暗部细节丰富的画面出现时,因为提升场景的对比度原因而采用压黑的动作,导致画面上不能较好的呈现其暗部细节;造成图像处理效果不好,显示效果不好。That is to say, when the picture played on the TV of the prior art, especially when the picture with rich details in the dark part appears, the action of suppressing black is used to improve the contrast of the scene, resulting in that the details of the dark part cannot be well presented on the picture; resulting in image processing effect No, the display is not good.
因此,现有技术还有待改进和发展。Therefore, the prior art still needs to be improved and developed.
发明内容Contents of the invention
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种动态呈现暗部细节处理方法、装置、智能终端,本发明能很好的解决当存在大量暗部细节画面时,原来的图像处理算法经常会牺牲图像暗部可见性而导致暗部细节牺牲并不可见的问题。本发明提供了一种有效的解决画面暗场多细节时,将暗部细节动态呈现的方法。同时当画面暗部细节少或者画面噪点大、等高线多的情况下,也继续保持对比度增强的情况,减少暗部细节的呈现;提升了对比度,改善了图像处理效果,增强了显示效果。The technical problem to be solved by the present invention is to provide a method, device, and intelligent terminal for dynamically presenting dark detail details in view of the above-mentioned defects of the prior art. The processing algorithm often sacrifices the visibility of the dark part of the image, resulting in the problem that the details of the dark part are sacrificed and not visible. The present invention provides an effective method for dynamically presenting the details of the dark part when there are many details in the dark field of the picture. At the same time, when there are few details in the dark part of the picture or the picture has large noise and many contour lines, it will continue to maintain the contrast enhancement and reduce the presentation of dark details; the contrast is improved, the image processing effect is improved, and the display effect is enhanced.
本发明解决问题所采用的技术方案如下:The technical solution adopted by the present invention to solve the problem is as follows:
一种动态呈现暗部细节处理方法,其中,所述方法包括:A method for dynamically rendering dark details, wherein the method includes:
对画面的当前内容进行暗部直方图统计;Perform dark histogram statistics on the current content of the screen;
根据暗部直方图的统计值,设定暗部细节判定条件,判断当前画面暗部细节是否多于预定阈值,以确定当前画面是否存在暗部细节;According to the statistical value of the dark part histogram, set the dark part detail judgment condition, and judge whether the dark part details of the current picture are more than a predetermined threshold, so as to determine whether there are dark part details in the current picture;
当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护;When it is judged that the details in the dark part of the picture are more than the predetermined threshold, which means that there are dark details in the current picture, enter the special case protection analysis system, and judge whether the picture noise exceeds the preset noise level and need to be protected;
当画面噪声没有超过预设噪声等级不属于特例保护的情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现。When the picture noise does not exceed the preset noise level and does not belong to the special case protection, the control enters the dark part detail enhancement system to increase the intensity of the dark part curve step by step, so that the details of the dark part of the picture are clearly presented.
所述的动态呈现暗部细节处理方法,其中,所述对画面的当前内容进行暗部直方图统计的步骤包括:In the method for dynamically presenting details of dark parts, the step of performing statistics on the histogram of dark parts of the current content of the picture includes:
设定暗部直方图统计的Lum_low为暗部统计的参考值,对亮度值小于和等于参考值Lum_Low的内容进行直方图数量的统计,其中Hist_Low_index的index值由Lum_low落在统计亮度区间间隔自定义表格中的哪个范围决定;Set the Lum_low of the dark histogram statistics as the reference value of the dark part statistics, and perform statistics on the number of histograms for the content whose brightness value is less than or equal to the reference value Lum_Low, where the index value of Hist_Low_index falls from Lum_low in the custom table of statistical brightness intervals Which range of the decision;
并根据统计亮度区间间隔自定义表格,设定初始值Lum1到参考值Lum_Low的亮度区间间隔范围,输出对应的低亮度的直方图信息表Hist_Low_1一直到Hist_Low_index进行输出。And according to the custom table of the statistical brightness interval interval, set the brightness interval range from the initial value Lum1 to the reference value Lum_Low, and output the corresponding low brightness histogram information table Hist_Low_1 to Hist_Low_index for output.
所述的动态呈现暗部细节处理方法,其中,所述判断当前画面暗部细节是否多于预定阈值,以确定当前画面是否存在暗部细节的步骤还包括:The method for dynamically presenting dark details, wherein the step of judging whether the details in the dark of the current picture are more than a predetermined threshold, so as to determine whether there are details in the dark in the current picture, further includes:
当判定画面内容无暗部细节,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态,以控制画面具有对比度。When it is judged that there is no detail in the dark part of the picture content, the intensity of the curve in the dark part will be reduced step by step, and the state of the curve suppressing black will be kept to control the contrast of the picture.
所述的动态呈现暗部细节处理方法,其中,所述当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时的步骤包括:In the method for dynamically presenting the details of the dark part, wherein, when it is judged that the details of the dark part of the picture are more than a predetermined threshold, the steps of the present picture include:
当暗部直方图数据Hist_Low_1到Hist_Low_index之间存在超过1%比例的大于n个,一般设定n为3,就判断存在暗部细节。When there are more than n pieces of the dark part histogram data Hist_Low_1 to Hist_Low_index that exceed 1%, generally setting n to 3, it is judged that there are dark part details.
所述的动态呈现暗部细节处理方法,其中,所述当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护的步骤还包括:The method for dynamically presenting dark details, wherein, when it is judged that the dark details of the picture are more than the predetermined threshold, which means that there are dark details in the current picture, enter the special case protection analysis system and judge whether the picture noise exceeds the preset noise The steps that the level needs to protect also include:
当判断出画面暗部细节小于预定阈值,不属于特殊情况的保护,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态。When it is judged that the details of the dark part of the picture are less than the predetermined threshold, which does not belong to the protection of special circumstances, the intensity of the curve presented in the dark part is gradually reduced, and the state of the curve suppressing black is retained.
所述的动态呈现暗部细节处理方法,其中,所述当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护的步骤包括:The method for dynamically presenting dark details, wherein, when it is judged that the dark details of the picture are more than the predetermined threshold, which means that there are dark details in the current picture, enter the special case protection analysis system and judge whether the picture noise exceeds the preset noise The steps required for the level to be protected include:
当判定内容有暗部细节,则进入特例保护分析系统,判断内容是否是满足特殊内容的情况;When it is determined that the content has hidden details, it will enter the special case protection analysis system to determine whether the content meets the special content requirements;
特例保护分析系统根据内容的噪点情况和片源是否存在压缩的高线强度的预设噪声等级;The special case protection analysis system presets the noise level according to the noise of the content and whether there is a compressed high-line intensity in the film source;
当大于预设噪声等级时,判断为进入保护特例,输出此画面为特例情况;当小于预设噪声等级时,判断此画面为非特例情况。When it is greater than the preset noise level, it is judged to enter a special case of protection, and the output of this screen is a special case; when it is lower than the preset noise level, it is judged that this screen is not a special case.
所述的动态呈现暗部细节处理方法,其中,所述当大于预设噪声等级时,判断为进入保护特例,输出此画面为特例情况;当小于预设噪声等级时,判断此画面为非特例情况的步骤之后包括:The method for processing the details of the dynamic presentation dark part, wherein, when the noise level is greater than the preset noise level, it is judged to enter the special case of protection, and the picture is output as a special case; when the noise level is lower than the preset noise level, it is judged that the picture is not a special case After the steps include:
当画面属于特例情况时,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态,以控制画面具有对比度;When the picture is a special case, reduce the intensity of the curve in the dark part step by step, and keep the state of the curve to suppress the black, so as to control the contrast of the picture;
当画面属于非特例情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现。When the picture is not a special case, the control enters the dark part detail enhancement system to increase the intensity of the dark part curve step by step, so that the details of the dark part of the picture are clearly presented.
一种动态呈现暗部细节处理装置,其中,所述装置包括:A device for dynamically rendering dark details, wherein the device includes:
暗部直方图处理模块,用于对画面的当前内容进行暗部直方图统计;The dark histogram processing module is used to perform dark histogram statistics on the current content of the screen;
暗部细节判定模块,用于根据暗部直方图的统计值,设定暗部细节判定条件,判断当前画面暗部细节是否多于预定阈值,以确定当前画面是否存在暗部细节;The dark part detail determination module is used to set the dark part detail determination condition according to the statistical value of the dark part histogram, and judge whether the dark part details of the current picture are more than a predetermined threshold value, so as to determine whether there are dark part details in the current picture;
噪声等级判断模块,用于当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护;The noise level judging module is used to enter into the special case protection analysis system when it is judged that the details of the dark part of the picture are more than the predetermined threshold value, and there are dark details in the current picture, and judge whether the picture noise exceeds the preset noise level and needs to be protected;
暗部曲线强度提升模块,用于当画面噪声没有超过预设噪声等级不属于特例保护的情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现。The dark part curve intensity enhancement module is used to control and enter the dark part detail enhancement system when the picture noise does not exceed the preset noise level and does not belong to special protection, and the dark part curve intensity is gradually increased to make the details of the dark part of the picture clear.
一种智能终端,其中,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于执行任意一项所述的方法。An intelligent terminal, including a memory, and one or more programs, wherein one or more programs are stored in the memory, and configured to be executed by one or more processors. The one or more programs include For performing any one of the described methods.
一种存储介质,其中,所述存储介质存储有动态呈现暗部细节处理程序,所述动态呈现暗部细节处理程序被处理器执行时实现如权利要求1-7任一项所述的动态呈现暗部细节处理方法的步骤。A storage medium, wherein the storage medium stores a processing program for dynamically presenting dark part details, and when the processing program for dynamically presenting dark part details is executed by a processor, the dynamic presentation of dark part details according to any one of claims 1-7 is realized. The steps of the processing method.
本发明的有益效果:本发明实施例公开了一种动态呈现暗部细节处理方法、装置、智能终端,本发明提供了一种动态呈现暗部细节的方法,通过对场景下暗部细节内容的进一步分析,进行动态的判断和处理达到暗部画面能得到更好的呈现,同时能凸显画面的对比度。Beneficial effects of the present invention: the embodiment of the present invention discloses a processing method, device, and intelligent terminal for dynamically presenting dark part details. The present invention provides a method for dynamically presenting dark part details. Through further analysis of the dark part details in the scene, Perform dynamic judgment and processing to achieve a better presentation of the dark part of the picture, and at the same time highlight the contrast of the picture.
本发明采用当画面出现暗部较多细节时,提升暗部呈现曲线的强度,动态的呈现出其暗部细节。当画面出现的暗部内容没有细节时或者细节较少时,突出对比度,降低暗部呈现曲线的强度,保留压黑的状态,使其呈现出高对比的画面效果。通过对暗部区域内容的分析与判断,达到当暗部细节多时呈现出画面的内容,当暗部细节少时,提升其对比度。In the present invention, when there are many details in the dark part of the picture, the intensity of the curve presented in the dark part is increased, and the details of the dark part are dynamically presented. When there are no details or few details in the dark part of the picture, highlight the contrast, reduce the intensity of the curve in the dark part, keep the state of suppressing black, and make it present a high-contrast picture effect. Through the analysis and judgment of the content of the dark area, the content of the picture can be presented when there are many details in the dark area, and the contrast can be improved when there are few details in the dark area.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例提供的动态呈现暗部细节处理方法的流程示意图。FIG. 1 is a schematic flowchart of a method for dynamically presenting details in a dark part provided by an embodiment of the present invention.
图2是本发明动态呈现暗部细节处理方法具体应用实施例的开机状态下交互流程示意图。Fig. 2 is a schematic diagram of an interaction process in a power-on state of a specific application embodiment of the method for dynamically presenting dark part details of the present invention.
图3为本发明实施例提供的动态呈现暗部细节处理方法的暗部细节增强系统的提升暗部细节呈现的曲线处理示意图。Fig. 3 is a schematic diagram of curve processing for enhancing the rendering of dark part details by the dark part detail enhancement system of the method for dynamically presenting dark part detail processing provided by an embodiment of the present invention.
图4为本发明实施例提供的动态呈现暗部细节处理方法的暗部细节增强系统降低暗部细节呈现的曲线处理示意图。FIG. 4 is a schematic diagram of curve processing for reducing the presentation of dark detail by the dark detail enhancement system of the method for dynamically presenting dark detail processing provided by an embodiment of the present invention.
图5是本发明实施例提供的动态呈现暗部细节处理装置的原理框图。Fig. 5 is a functional block diagram of an apparatus for dynamically presenting dark part details provided by an embodiment of the present invention.
图6是本发明实施例提供的智能终端的内部结构原理框图。Fig. 6 is a functional block diagram of an internal structure of a smart terminal provided by an embodiment of the present invention.
图7为本发明实施例提供的动态呈现暗部细节处理方法的暗部直方图数据Hist_Low_1到Hist_Low_index之间示意图。FIG. 7 is a schematic diagram of dark part histogram data Hist_Low_1 to Hist_Low_index in the method for dynamically rendering dark part details provided by an embodiment of the present invention.
图8为本发明实施例提供的动态呈现暗部细节处理方法的暗部曲线示意图。FIG. 8 is a schematic diagram of a dark part curve of a method for dynamically presenting dark part details provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that if there is a directional indication (such as up, down, left, right, front, back...) in the embodiment of the present invention, the directional indication is only used to explain the position in a certain posture (as shown in the accompanying drawing). If the specific posture changes, the directional indication will also change accordingly.
现有技术的电视上播放的画面,尤其是暗部细节丰富的画面出现时,因为提升场景的对比度原因而采用压黑的动作,导致画面上不能较好的呈现其暗部细节的问题。When the picture played on the TV in the prior art, especially the picture with rich dark part details appears, the action of suppressing black is used to improve the contrast of the scene, resulting in the problem that the dark part details cannot be well presented on the picture.
为了解决现有技术的问题,本发明提供一种动态呈现暗部细节处理方法,本发明通过当画面出现暗部较多细节时,提升暗部呈现曲线的强度,动态的呈现出其暗部细节。当画面出现的暗部内容没有细节时或者细节较少时,突出对比度,降低暗部呈现曲线的强度,保留压黑的状态,使其呈现出高对比的画面效果。In order to solve the problems in the prior art, the present invention provides a processing method for dynamically presenting details of dark parts. The present invention dynamically presents the details of dark parts by increasing the strength of curves presented in dark parts when there are many details in dark parts in the picture. When there are no details or few details in the dark part of the picture, highlight the contrast, reduce the intensity of the curve in the dark part, keep the state of suppressing black, and make it present a high-contrast picture effect.
示例性方法exemplary method
如图1中所示,本发明实施例提供一种动态呈现暗部细节处理方法,在本发明实施例中,所述方法包括如下步骤:As shown in FIG. 1, an embodiment of the present invention provides a method for dynamically presenting details of dark parts. In the embodiment of the present invention, the method includes the following steps:
步骤S100、对画面的当前内容进行暗部直方图的统计;Step S100, performing statistics on the histogram of the dark part of the current content of the screen;
本发明实施例中,例如设定暗部直方图统计的Lum_low为暗部统计的参考值,对亮度值小于和等于Lum_Low的内容进行直方图数量的统计;In the embodiment of the present invention, for example, the Lum_low of the histogram statistics of the dark part is set as the reference value of the dark part statistics, and the histogram quantity statistics are performed on the content whose luminance value is less than or equal to Lum_Low;
并根据统计亮度区间间隔自定义表格,来设定初始值Lum1到参考值Lum_Low的亮度区间间隔范围,将输出低亮度的直方图信息表Hist_Low_1一直到Hist_Low_index进行输出。And according to the statistical brightness interval custom table, set the brightness interval range from the initial value Lum1 to the reference value Lum_Low, and output the low brightness histogram information table Hist_Low_1 to Hist_Low_index for output.
本发明实施例中,对于直方图统计的算法步骤如下:In the embodiment of the present invention, the algorithm steps for histogram statistics are as follows:
1)统计图像中每个间隔Hist_Low_i对应的灰度出现的像素次数,记为Lum[i];1) Count the number of pixels that appear in the grayscale corresponding to each interval Hist_Low_i in the image, denoted as Lum[i];
2)Hist[i]=Lum[i]/(W*H),其中W,H为图像的宽高。2) Hist[i]=Lum[i]/(W*H), where W and H are the width and height of the image.
举例为:将Lum_low设定为64,Lum_1设定为0。统计亮度区间间隔自定义表格关系设定如下。那么因为Lum_low为64,所以index值为8:For example: set Lum_low to 64 and Lum_1 to 0. The relationship between the statistical brightness interval custom table is set as follows. Then because Lum_low is 64, the index value is 8:
步骤S200、根据暗部直方图的统计值,设定暗部细节判定条件,判断当前画面暗部细节是否多于预定阈值,以确定当前画面是否存在暗部细节。Step S200 , according to the statistical value of the dark histogram, set the dark detail determination condition, and determine whether the dark detail of the current picture is more than a predetermined threshold, so as to determine whether there is dark detail in the current picture.
本发明实施例中,根据暗部直方图的统计值,设定暗部细节判定条件,判断当前画面暗部细节是否多于预定阈值,以判断当前画面是否暗部细节多。In the embodiment of the present invention, according to the statistical value of the dark part histogram, the dark part detail judgment condition is set, and it is judged whether the dark part details of the current picture are more than a predetermined threshold, so as to judge whether the current picture has more dark part details.
本发明实施例中根据暗部直方图的统计值,设定好暗部细节判定的条件,判断当前画面暗部细节是否多于预定阈值,以判断当前画面是否暗部细节多,当判断当前画面暗部细节是多于预定阈值,则确定当前画面是暗部细节多;当判断当前画面暗部细节是小于预定阈值,则确定当前画面暗部细节不多。In the embodiment of the present invention, according to the statistical value of the dark part histogram, the conditions for determining the details of the dark part are set, and it is judged whether the details of the dark part of the current picture are more than a predetermined threshold, so as to judge whether the current picture has more details in the dark part. If it is lower than the predetermined threshold, it is determined that the current picture has more details in the dark part; when it is judged that the details of the dark part of the current picture are less than the predetermined threshold, it is determined that the current picture does not have many details in the dark part.
本发明中当暗部直方图数据Hist_Low_1到Hist_Low_index之间存在超过1%比例的大于n个,一般设定n为3,就判断存在暗部细节。In the present invention, when there are more than n pieces of the dark histogram data Hist_Low_1 to Hist_Low_index that exceed 1%, generally n is set to 3, and it is judged that there are dark details.
例如暗部直方图数据Hist_Low_1到Hist_Low_index之间存在超过1%比例的大于3个,就判断存在暗部细节,如图7所示。For example, if there are more than 3 dark part histogram data Hist_Low_1 to Hist_Low_index with a ratio of more than 1%, it is judged that there are dark part details, as shown in FIG. 7 .
当判定画面内容无暗部细节,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态,以控制画面具有对比度。When it is judged that there is no detail in the dark part of the picture content, the intensity of the curve in the dark part will be reduced step by step, and the state of the curve suppressing black will be kept to control the contrast of the picture.
步骤S300、当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护;Step S300, when it is judged that the details of the dark part of the picture are more than the predetermined threshold, which means there are details of dark parts in the current picture, enter the special case protection analysis system, and determine whether the picture noise exceeds the preset noise level and needs to be protected;
本发明实施例中,当判断出画面暗部细节多于预定阈值,确定为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面是否噪点大或者因压缩导致的等高线大等特殊情况,则输出相应的分析结果;In the embodiment of the present invention, when it is determined that the details of the dark part of the picture are more than the predetermined threshold, and it is determined that there are details of the dark part in the current picture, it enters into the special case protection analysis system and judges whether the picture has large noise points or large contour lines caused by compression, etc. In special cases, the corresponding analysis results are output;
当判断出画面暗部细节多时,进入到特例保护分析系统中,判断画面是否噪点大或者因压缩导致的等高线大等特殊情况,输出相应的分析结果。When it is judged that there are many details in the dark part of the picture, it enters the special case protection analysis system to judge whether the picture has large noise or large contour lines caused by compression, and outputs the corresponding analysis results.
而在另外的实施例中,当判断出画面暗部细节小于预定阈值,不属于特殊情况的保护,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态。In another embodiment, when it is judged that the details of the dark part of the picture are less than the predetermined threshold, which does not belong to the protection of special circumstances, then the intensity of the curve presented in the dark part is gradually reduced, and the state of the curve suppressed black is kept.
如图8所示,呈现曲线的公式如下:As shown in Figure 8, the formula for rendering the curve is as follows:
F(x)=ax-b;(x>=mid)F(x)=ax-b; (x>=mid)
F(x)=(a*mid-b)/mid*x;(x<mid)F(x)=(a*mid-b)/mid*x; (x<mid)
本发明实施例中,如图8所示,实现暗部曲线强度逐级降低:根据Lum_low的大小,设定好mid值,一般情况下mid=Lum_low/2,当需要执行暗部曲线强度逐级提升时,设定a>1,并且逐步增大a的值。In the embodiment of the present invention, as shown in Figure 8, the intensity of the dark curve is reduced step by step: according to the size of Lum_low, the mid value is set. In general, mid=Lum_low/2, when the intensity of the dark curve needs to be increased step by step , set a>1, and gradually increase the value of a.
步骤S400、当画面噪声没有超过预设噪声等级不属于特例保护的情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现。Step S400, when the picture noise does not exceed the preset noise level and does not belong to the special case protection, control enters the dark part detail enhancement system to increase the intensity of the dark part curve step by step, so that the details of the dark part of the picture are clearly presented.
本发明实施例中当画面不属于特例保护的情况时,进入到暗部细节增强系统,将暗部曲线进行提升,使得暗部细节得以清晰呈现。In the embodiment of the present invention, when the picture does not belong to the case of special protection, it enters the dark part detail enhancement system to enhance the dark part curve, so that the dark part details can be clearly presented.
具体为:Specifically:
当判定内容有暗部细节,则进入特例保护分析系统,判断内容是否是满足特殊内容的情况;When it is determined that the content has hidden details, it will enter the special case protection analysis system to determine whether the content meets the special content requirements;
特例保护分析系统根据内容的噪点情况和片源是否存在压缩的高线强度的预设噪声等级;The special case protection analysis system presets the noise level according to the noise of the content and whether there is a compressed high-line intensity in the film source;
当大于预设噪声等级时,判断为进入保护特例,输出此画面为特例情况;当小于预设噪声等级时,判断此画面为非特例情况。When it is greater than the preset noise level, it is judged to enter a special case of protection, and the output of this screen is a special case; when it is lower than the preset noise level, it is judged that this screen is not a special case.
当画面属于特例情况时,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态,以控制画面具有对比度;When the picture is a special case, reduce the intensity of the curve in the dark part step by step, and keep the state of the curve to suppress the black, so as to control the contrast of the picture;
当画面属于非特例情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现。When the picture is not a special case, the control enters the dark part detail enhancement system to increase the intensity of the dark part curve step by step, so that the details of the dark part of the picture are clearly presented.
本发明实施例中,In the embodiment of the present invention,
如图8所示,呈现曲线的公式如下:As shown in Figure 8, the formula for rendering the curve is as follows:
F(x)=ax-b;(x>=mid)F(x)=ax-b; (x>=mid)
F(x)=(a*mid-b)/mid*x;(x<mid)F(x)=(a*mid-b)/mid*x; (x<mid)
公式中:mid定义了需要提升暗部细节的灰度位置。当a<1时意味着提高暗部可见性。当a>1时降低暗部可见性,提高了对比度表现。b值为曲线偏置值,调整曲线初始状态。x为输入的像素亮度值,F(x)为经过暗部呈现曲线后的像素输出亮度值。In the formula: mid defines the grayscale position that needs to improve the details of the dark part. When a<1, it means to improve the visibility of the dark part. When a>1, the visibility of dark parts is reduced, and the contrast performance is improved. The b value is the curve offset value, which adjusts the initial state of the curve. x is the input pixel luminance value, and F(x) is the pixel output luminance value after the dark part presents the curve.
如图8所示,关于暗部曲线强度逐级提升:具体为根据Lum_low的大小,设定好mid值,一般情况下mid=Lum_low/2,当需要执行暗部曲线强度逐级提升时,设定0<a<1,并且逐步减少a的值。(例如在提高暗部可见性的时候,a由1调整为0.6,此时画面暗部表现更加清楚)As shown in Figure 8, the intensity of the dark curve is increased step by step: specifically, the mid value is set according to the size of Lum_low. In general, mid=Lum_low/2. When the intensity of the dark curve needs to be increased step by step, set 0 <a<1, and gradually reduce the value of a. (For example, when improving the visibility of the dark part, a is adjusted from 1 to 0.6, and the dark part of the picture is more clear at this time)
而关于,暗部曲线强度逐级降低,则:根据Lum_low的大小,设定好mid值,一般情况下mid=Lum_low/2,当需要执行暗部曲线强度逐级提升时,设定a>1,并且逐步增大a的值。As for the intensity of the dark curve gradually decreasing, then: according to the size of Lum_low, set the mid value, generally mid=Lum_low/2, when it is necessary to increase the intensity of the dark curve step by step, set a>1, and Gradually increase the value of a.
从图8可以看到最上面的线a最小,最下面的线a最大From Figure 8, it can be seen that the top line a is the smallest and the bottom line a is the largest
由上可见,本发明能很好的解决当存在大量暗部细节画面时,原来的图像处理算法经常会牺牲图像暗部可见性而导致暗部细节牺牲并不可见的问题,通过对暗部区域内容的分析与判断,达到当暗部细节多时呈现出画面的内容,当暗部细节少时,提升其对比度。It can be seen from the above that the present invention can well solve the problem that the original image processing algorithm often sacrifices the visibility of the dark part of the image when there are a large number of dark part details in the picture, so that the details of the dark part are sacrificed and cannot be seen. Judgment, to achieve the content of the picture when there are many details in the dark part, and improve the contrast when there are few details in the dark part.
以下通过具体的应用实施例对本发明做进一步详细说明:The present invention is described in further detail below by specific application examples:
如图2所示,本发明具体应用实施例所述的一种动态呈现暗部细节处理方法,包括以下步骤:As shown in FIG. 2 , a method for dynamically presenting dark part details described in a specific application embodiment of the present invention includes the following steps:
S1:开始S1: start
S2:图像进入画面暗部直方图统计系统,设置预定阈值Lum_low为暗部统计的参考值,对亮度值小于和等于Lum_Low的内容进行直方图数量的统计。然后设定好Lum1到Lum_Low的亮度区间间隔范围,将输出低亮度的直方图信息表Hist_Low_1一直到Hist_Low_index进行输出。S2: The image enters the histogram statistics system of the dark part of the picture, and the predetermined threshold value Lum_low is set as the reference value of the dark part statistics, and the histogram quantity is counted for the content whose brightness value is less than or equal to Lum_Low. Then set the luminance interval range from Lum1 to Lum_Low, and output the low luminance histogram information table Hist_Low_1 to Hist_Low_index for output.
本实施例中,这个预定阈值Lum_low表示在此亮度以下的数据才为暗部细节数据。一般定义此预定阈值Lum_low数值为64(这个是数字信号)。In this embodiment, the predetermined threshold Lum_low indicates that the data below the luminance is the dark part detail data. Generally, the value of the predetermined threshold Lum_low is defined as 64 (this is a digital signal).
本实施例中Lum1为0,作为暗部统计的最低值。一般为0,也可以调整到16等其他值。Lum1到Lum_Low的亮度区间间隔范围一般为8。In this embodiment, Lum1 is 0, which is the lowest value of dark statistics. It is generally 0, and can also be adjusted to other values such as 16. The interval between Lum1 to Lum_Low is generally 8.
即本发明实施例中,图像进入画面暗部直方图统计系统,设置预定阈值Lum_low值为60为暗部统计的参考值,对亮度值小于和等于Lum_Low的内容进行直方图数量的统计。然后设定好Lum1(0)到Lum_Low(64)的亮度区间间隔范围为8,将输出低亮度的直方图信息表Hist_Low_1一直到Hist_Low_index进行输出。That is, in the embodiment of the present invention, the image enters the histogram statistics system of the dark part of the screen, and the predetermined threshold value Lum_low is set to 60 as the reference value for dark part statistics, and the histogram quantity statistics are performed on the content whose brightness value is less than or equal to Lum_Low. Then set the luminance interval range from Lum1(0) to Lum_Low(64) to 8, and output the low luminance histogram information table Hist_Low_1 to Hist_Low_index for output.
本步骤S2主要好处在于:根据上述的所述将预定阈值设定为64,Lum_1设定为0,Hist_Low设定为8,亮度区间间隔也设定为8,那么就会将统计画面信息中0-8,9-16,17-25.....56-64的数据内容的直方图信息。The main advantage of this step S2 is that: according to the above, set the predetermined threshold to 64, set Lum_1 to 0, set Hist_Low to 8, and set the brightness interval to 8, then the 0 in the statistical screen information will be -8, 9-16, 17-25.....56-64 the histogram information of the data content.
S3:进入暗部细节分析系统,系统设定细节判定的条件参数和算法;根据暗部直方图统计信息,判断是否存在暗部细节,当否进入S4,当是进入S5;S3: Enter the dark part detail analysis system, and the system sets the conditional parameters and algorithms for detail judgment; according to the dark part histogram statistical information, judge whether there are dark part details, enter S4 if it is not, and enter S5 if it is;
本步骤中进入暗部细节分析系统,根据系统设定细节判定的条件参数和算法,输出存在暗部细节或者不存在暗部细节的结果。例如暗部直方图数据Hist_Low_index到Hist_low_1之间(即上述统计画面信息中0-8,9-16,17-25.....56-64之间的直方图中比例超过1%的大于3个,就判断存在暗部细节。In this step, enter the dark part detail analysis system, and output the result that there are dark part details or no dark part details according to the condition parameters and algorithm for detail judgment set by the system. For example, between Hist_Low_index and Hist_low_1 of the dark histogram data (that is, more than 3 in the histogram between 0-8, 9-16, 17-25...56-64 in the above statistical screen information) , it is judged that there are dark details.
即本发明中设定细节判定的条件参数和算法具体为:根据上例中Hist_Low_1到Hist_Low_index的直方图比例如果大于1%,并且有3个或3个以上就判断画面中存在大量的暗部细节。That is, in the present invention, the conditional parameters and algorithm for setting detail determination are specifically: according to the above example, if the histogram ratios from Hist_Low_1 to Hist_Low_index are greater than 1%, and there are 3 or more, it is judged that there are a large number of dark details in the picture.
S4:在暗部细节分析系统中判定内容无暗部细节,就降低暗部呈现曲线的强度,保留曲线压黑的状态,让画面更加具有对比度。S4: In the dark part detail analysis system, it is determined that there is no dark part detail in the content, and the intensity of the dark part curve is reduced, and the state of the curve suppressing black is kept, so that the picture has more contrast.
即在本发明具体实施例中,判定如果小于3,就判断无明显暗部细节。That is, in the specific embodiment of the present invention, if the judgment is less than 3, it is judged that there is no obvious dark part detail.
而本发明实施例中,关于如何“就降低暗部呈现曲线的强度,保留曲线压黑的状态”为:调整曲线的底部区域的曲线走向。此种情况下就是不去压曲线的形状。However, in the embodiment of the present invention, how to "reduce the intensity of the curve presented in the dark part, and keep the state of the curve suppressed black" is: adjust the curve direction of the bottom area of the curve. In this case, the shape of the curve is not pressed.
S5:进入特例保护分析系统判断是否属于特殊情况,需要进行保护,当是、属于进入S6;当否、不属于进入S7;S5: Enter the special case protection analysis system to judge whether it belongs to a special case and needs to be protected. If yes, it belongs to enter S6; when no, it does not belong to enter S7;
即本发明实施例中,当在暗部细节分析系统中判定内容有暗部细节,就进入到特例保护分析系统,判断内容是否是满足特殊内容的情况。例如特例保护分析系统根据内容的噪点情况和片源是否存在压缩的等高线强度的Tnoise_level来判断,当大于Tnoise_level时,判断为进入保护特例,输出此画面为特例情况。当小于Tnoise_level时,判断此画面为非特例情况。That is, in the embodiment of the present invention, when it is determined in the dark part detail analysis system that the content has dark part details, it enters into the special case protection analysis system to judge whether the content meets special content conditions. For example, the special case protection analysis system judges according to the noise of the content and whether there is a Tnoise_level of compressed contour intensity in the film source. When it is greater than Tnoise_level, it is judged to enter a special case of protection, and the output of this picture is a special case. When it is less than Tnoise_level, it is judged that this picture is not a special case.
本发明中设定细节判定的条件参数和算法具体为:根据上例中的pixel(像素)数量,其与全画面整体像素数量的占比,如果大于1%,并且有3个或3个以上就判断画面中存在大量的暗部细节。In the present invention, the conditional parameters and algorithms for setting detail judgments are specifically: according to the pixel (pixel) quantity in the above example, its proportion to the overall pixel quantity of the whole picture, if it is greater than 1%, and there are 3 or more than 3 It is judged that there are a lot of dark details in the picture.
当在暗部细节分析系统中判定内容有暗部细节,就进入到特例保护分析系统,判断内容是否是满足特殊内容的情况。本实施例中,特殊内容主要是噪声的判断,包括randomnoise(随机噪声)和压缩noise(噪声)。When it is determined in the dark part detail analysis system that the content has dark part details, it will enter the special case protection analysis system to judge whether the content meets the special content situation. In this embodiment, the special content is mainly noise judgment, including random noise (random noise) and compression noise (noise).
本发明实施例中Tnoise_level是噪声大小的一个阈值,当大于此值的时候认为噪声太大。In the embodiment of the present invention, Tnoise_level is a threshold value of noise level, and when it is greater than this value, it is considered that the noise is too large.
本发明实施例中,当大于Tnoise_level时,判断为进入保护特例,输出此画面为特例情况;好处是,增加对噪声的判断,可以在需要抑制暗部噪声的场景下,不会将暗部细节呈现出来,导致画面很脏。In the embodiment of the present invention, when it is greater than Tnoise_level, it is judged as a special case of entering protection, and the output of this picture is a special case; the advantage is that the judgment of noise can be increased, and the details of the dark part will not be presented in the scene where the noise of the dark part needs to be suppressed , resulting in a dirty screen.
本发明实施例中,当小于Tnoise_level时,判断此画面为非特例情况。好处是:非特例情况会进行正常的暗部细节的呈现,此时会尽量将画面的暗部细节呈现出来。In the embodiment of the present invention, when it is less than Tnoise_level, it is judged that the picture is not a special case. The advantage is: in non-special cases, the normal details of the dark part will be presented, and at this time, the details of the dark part of the picture will be presented as much as possible.
S6:画面属于特例情况时,降低暗部呈现曲线的强度,保留曲线压黑的状态,让画面更加具有对比度。S6: When the picture is a special case, reduce the intensity of the curve in the dark part, keep the state of the curve suppressing black, and make the picture more contrasty.
本步骤中:关于降低暗部呈现曲线的强度,保留曲线压黑的状态具体做法为:改变曲线的走势,如图3所示,为暗部细节增强系统的提升暗部细节呈现的曲线处理示意图。In this step: about reducing the intensity of the curves presented in the dark part, and retaining the state of suppressing the curves, the specific method is: change the trend of the curves, as shown in Figure 3, which is a schematic diagram of the curve processing for enhancing the details of the dark parts in the dark part detail enhancement system.
S7:画面属于非特例情况,进入暗部细节增强系统,提升暗部呈现曲线的强度,使得画面的暗部细节更加清晰的展现。S7: The picture is not a special case. Enter the dark part detail enhancement system to increase the intensity of the curve in the dark part, so that the details of the dark part of the picture can be displayed more clearly.
如图4所示,为本发明实施例提供的动态呈现暗部细节处理方法的暗部细节增强系统降低暗部细节呈现的曲线处理示意图。As shown in FIG. 4 , it is a schematic diagram of curve processing for reducing the rendering of dark detail by the dark detail enhancement system of the method for dynamically presenting dark detail processing provided by an embodiment of the present invention.
由上可见,本发明能很好的解决当存在大量暗部细节画面时,原来的图像处理算法经常会牺牲图像暗部可见性而导致暗部细节牺牲并不可见的问题,通过对暗部区域内容的分析与判断,达到当暗部细节多时呈现出画面的内容,当暗部细节少时,提升其对比度。It can be seen from the above that the present invention can well solve the problem that the original image processing algorithm often sacrifices the visibility of the dark part of the image when there are a large number of dark part details in the picture, so that the details of the dark part are sacrificed and cannot be seen. Judgment, to achieve the content of the picture when there are many details in the dark part, and improve the contrast when there are few details in the dark part.
本发明的技术关键点之前电视在暗部细节的展现和对比度效果之间存在不可调和的情况。本发明的技术关键点是通过对暗部内容信息的统计和分析,结合特例保护系统的判断,能让画面的细节更合理的去呈现,同时兼顾到画面的对比度。The key point of the technology of the present invention is that there is an irreconcilable situation between the presentation of the details of the dark part and the contrast effect of the TV before. The technical key point of the present invention is that through the statistics and analysis of dark part content information, combined with the judgment of the special case protection system, the details of the picture can be presented more reasonably, while taking into account the contrast of the picture.
示例性设备exemplary device
如图5中所示,本发明实施例提供一种动态呈现暗部细节处理装置,该装置包括:As shown in FIG. 5 , an embodiment of the present invention provides a device for dynamically presenting details in dark parts, which includes:
暗部直方图处理模块510,用于对画面的当前内容进行暗部直方图统计;A dark
暗部细节判定模块520,用于根据暗部直方图的统计值,设定暗部细节判定条件,判断当前画面暗部细节是否多于预定阈值,以确定当前画面是否存在暗部细节;The dark part
噪声等级判断模块530,用于当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护;The noise
暗部曲线强度提升模块540,用于当画面噪声没有超过预设噪声等级不属于特例保护的情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现,具体如上所述。The dark part curve
基于上述实施例,本发明还提供了一种智能终端,其原理框图可以如图6所示。该智能终端包括通过系统总线连接的处理器、存储器、网络接口、显示屏、摄像头。其中,该智能终端的处理器用于提供计算和控制能力。该智能终端的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该智能终端的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种动态呈现暗部细节处理方法。该智能终端的显示屏可以是液晶显示屏或者电子墨水显示屏,该智能终端的摄像头是预先在智能终端上,用于拍摄。Based on the above embodiments, the present invention also provides an intelligent terminal, the functional block diagram of which may be shown in FIG. 6 . The intelligent terminal includes a processor, a memory, a network interface, a display screen and a camera connected through a system bus. Wherein, the processor of the smart terminal is used to provide calculation and control capabilities. The memory of the smart terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the smart terminal is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, a processing method for dynamically presenting dark part details is realized. The display screen of the smart terminal may be a liquid crystal display screen or an electronic ink display screen, and the camera of the smart terminal is pre-installed on the smart terminal for shooting.
本领域技术人员可以理解,图6中示出的原理框图,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的智能终端的限定,具体的智能终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the functional block diagram shown in FIG. 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the smart terminal to which the solution of the present invention is applied. The specific smart terminal More or fewer components than shown in the figures may be included, or certain components may be combined, or have a different arrangement of components.
在一个实施例中,提供了一种智能终端,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:In one embodiment, an intelligent terminal is provided, including a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors. One or more programs contain instructions for:
对画面的当前内容进行暗部直方图统计;Perform dark histogram statistics on the current content of the screen;
根据暗部直方图的统计值,设定暗部细节判定条件,判断当前画面暗部细节是否多于预定阈值,以确定当前画面是否存在暗部细节;According to the statistical value of the dark part histogram, set the dark part detail judgment condition, and judge whether the dark part details of the current picture are more than a predetermined threshold, so as to determine whether there are dark part details in the current picture;
当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护;When it is judged that the details in the dark part of the picture are more than the predetermined threshold, which means that there are dark details in the current picture, enter the special case protection analysis system, and judge whether the picture noise exceeds the preset noise level and need to be protected;
当画面噪声没有超过预设噪声等级不属于特例保护的情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现,具体如上所述。When the picture noise does not exceed the preset noise level and does not belong to the special case protection, the control enters the dark part detail enhancement system to increase the intensity of the dark part curve step by step, so that the details of the dark part of the picture are clearly presented, as described above.
其中,所述通过光亮度传感器检测当前环境的亮度,获取当前环境的亮度值的步骤包括:Wherein, the step of detecting the brightness of the current environment through the brightness sensor and obtaining the brightness value of the current environment includes:
其中,所述对画面的当前内容进行暗部直方图统计的步骤包括:Wherein, the step of performing dark histogram statistics on the current content of the picture comprises:
设定暗部直方图统计的Lum_low为暗部统计的参考值,对亮度值小于和等于参考值Lum_Low的内容进行直方图数量的统计;Set the Lum_low of the histogram statistics of the dark part as the reference value of the dark part statistics, and perform statistics on the number of histograms for the content whose brightness value is less than or equal to the reference value Lum_Low;
并设定初始值Lum1到参考值Lum_Low的亮度区间间隔范围,将输出低亮度的直方图信息表Hist_Low_1一直到Hist_Low_index进行输出。And set the luminance interval range from the initial value Lum1 to the reference value Lum_Low, and output the low luminance histogram information table Hist_Low_1 to Hist_Low_index for output.
其中,所述判断当前画面暗部细节是否多于预定阈值,以确定当前画面是否存在暗部细节的步骤还包括:Wherein, the step of judging whether the details of the dark part of the current picture are more than a predetermined threshold to determine whether there are details of the dark part of the current picture further includes:
当判定画面内容无暗部细节,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态,以控制画面具有对比度。When it is judged that there is no detail in the dark part of the picture content, the intensity of the curve in the dark part will be reduced step by step, and the state of the curve suppressing black will be kept to control the contrast of the picture.
其中,所述当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时的步骤包括:Wherein, when it is judged that the details of the dark part of the picture are more than the predetermined threshold, the steps for the presence of details of the dark part of the current picture include:
当暗部直方图数据Hist_Low_index到Hist_Low_1之间存在超过1%比例的大于3个,就判断存在暗部细节。When there are more than 3 histogram data of the dark part between Hist_Low_index and Hist_Low_1 which exceed 1%, it is judged that there are details in the dark part.
其中,所述当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护的步骤还包括:Wherein, when it is judged that the details of the dark part of the picture are more than the predetermined threshold, which means that the details of the dark part exist in the current picture, the step of entering the special case protection analysis system and judging whether the picture noise exceeds the preset noise level and needs to be protected further includes:
当判断出画面暗部细节小于预定阈值,不属于特殊情况的保护,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态。When it is judged that the details of the dark part of the picture are less than the predetermined threshold, which does not belong to the protection of special circumstances, the intensity of the curve presented in the dark part is gradually reduced, and the state of the curve suppressing black is retained.
其中,所述当判断出画面暗部细节多于预定阈值,为当前画面存在暗部细节时,进入到特例保护分析系统中,并判断画面噪声是否超过预设噪声等级需要保护的步骤包括:Wherein, when it is judged that the details of the dark part of the picture are more than the predetermined threshold, which means that there are details of the dark part of the current picture, entering the special case protection analysis system, and judging whether the picture noise exceeds the preset noise level and needs to be protected includes:
当判定内容有暗部细节,则进入特例保护分析系统,判断内容是否是满足特殊内容的情况;When it is determined that the content has hidden details, it will enter the special case protection analysis system to determine whether the content meets the special content requirements;
特例保护分析系统根据内容的噪点情况和片源是否存在压缩的高线强度的预设噪声等级;The special case protection analysis system presets the noise level according to the noise of the content and whether there is a compressed high-line intensity in the film source;
当大于预设噪声等级时,判断为进入保护特例,输出此画面为特例情况;当小于预设噪声等级时,判断此画面为非特例情况。When it is greater than the preset noise level, it is judged to enter a special case of protection, and the output of this screen is a special case; when it is lower than the preset noise level, it is judged that this screen is not a special case.
其中,所述当大于预设噪声等级时,判断为进入保护特例,输出此画面为特例情况;当小于预设噪声等级时,判断此画面为非特例情况的步骤之后包括:Wherein, when it is greater than the preset noise level, it is judged to enter a special case of protection, and the output of this picture is a special case; when it is less than the preset noise level, the step of judging that this picture is a non-special case includes:
当画面属于特例情况时,则逐级降低暗部呈现曲线强度,保留曲线压黑的状态,以控制画面具有对比度;When the picture is a special case, reduce the intensity of the curve in the dark part step by step, and keep the state of the curve to suppress the black, so as to control the contrast of the picture;
当画面属于非特例情况,则控制进入暗部细节增强系统,将暗部曲线强度逐级提升,使画面暗部细节清晰呈现,具体如上所述。When the picture is not a special case, the control enters the dark part detail enhancement system to increase the intensity of the dark part curve step by step, so that the details of the dark part of the picture are clearly presented, as described above.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
综上所述,本发明实施例公开了一种动态呈现暗部细节处理方法、装置、智能终端,本发明提供了一种动态呈现暗部细节的方法,通过对场景下暗部细节内容的进一步分析,进行动态的判断和处理达到暗部画面能得到更好的呈现,同时能凸显画面的对比度。本发明采用当画面出现暗部较多细节时,提升暗部呈现曲线的强度,动态的呈现出其暗部细节。当画面出现的暗部内容没有细节时或者细节较少时,突出对比度,降低暗部呈现曲线的强度,保留压黑的状态,使其呈现出高对比的画面效果。通过对暗部区域内容的分析与判断,达到当暗部细节多时呈现出画面的内容,当暗部细节少时,提升其对比度。To sum up, the embodiment of the present invention discloses a method, device, and intelligent terminal for dynamically presenting details of dark parts. The present invention provides a method for dynamically presenting details of dark parts. Dynamic judgment and processing can achieve better rendering of the dark part of the picture, and at the same time can highlight the contrast of the picture. In the present invention, when there are many details in the dark part of the picture, the intensity of the curve presented in the dark part is increased, and the details of the dark part are dynamically presented. When there are no details or few details in the dark part of the picture, highlight the contrast, reduce the intensity of the curve in the dark part, keep the state of suppressing black, and make it present a high-contrast picture effect. Through the analysis and judgment of the content of the dark area, the content of the picture can be presented when there are many details in the dark area, and the contrast can be improved when there are few details in the dark area.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples, and those skilled in the art can make improvements or transformations according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010960781.4A CN112153452B (en) | 2020-09-14 | 2020-09-14 | Dynamic dark part detail presenting method and device and intelligent terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010960781.4A CN112153452B (en) | 2020-09-14 | 2020-09-14 | Dynamic dark part detail presenting method and device and intelligent terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112153452A CN112153452A (en) | 2020-12-29 |
| CN112153452B true CN112153452B (en) | 2022-11-01 |
Family
ID=73892220
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010960781.4A Active CN112153452B (en) | 2020-09-14 | 2020-09-14 | Dynamic dark part detail presenting method and device and intelligent terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112153452B (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101710955B (en) * | 2009-11-24 | 2014-06-25 | 北京中星微电子有限公司 | Method and equipment for adjusting brightness and contrast |
| CN101719989B (en) * | 2009-11-30 | 2014-11-19 | 北京中星微电子有限公司 | Method and system for backlight compensation |
| CN104301624B (en) * | 2014-10-30 | 2018-04-03 | 青岛海信移动通信技术股份有限公司 | A kind of image taking brightness control method and device |
| CN104581345B (en) * | 2014-12-29 | 2017-11-24 | 广东欧珀移动通信有限公司 | It is a kind of to adjust the method and device for showing frame |
-
2020
- 2020-09-14 CN CN202010960781.4A patent/CN112153452B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN112153452A (en) | 2020-12-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2854389B1 (en) | Scene recognition method and apparatus | |
| CN113573032B (en) | Image processing method and projection system | |
| CN101951523B (en) | Adaptive colour image processing method and system | |
| CN105407296B (en) | Real-time video enhancement method and device | |
| US9165210B1 (en) | Systems and methods for localized contrast enhancement | |
| CN112967690B (en) | Image display method and device, storage medium and terminal | |
| CN113935911B (en) | High dynamic range video image processing method, computer device and computer readable storage medium | |
| US8265391B1 (en) | Localized, adaptive video contrast enhancement using controlled histogram equalization | |
| CN113140197B (en) | Display screen adjusting method and device, electronic equipment and readable storage medium | |
| CN115278104B (en) | Image brightness adjustment method and device, electronic equipment and storage medium | |
| US20100119153A1 (en) | Shadow Remover | |
| CN113099201A (en) | Video signal processing method and device and electronic equipment | |
| CN111369471A (en) | Image processing method, device, equipment and storage medium | |
| CN116152094B (en) | Automatic driving high dynamic scene image optimization method, system, terminal and medium | |
| CN112561906A (en) | Image processing method, device, equipment and medium | |
| CN115689903A (en) | Image processing method and device, equipment and storage medium | |
| CN101399909B (en) | Adaptive image adjustment method and image processing device using the method | |
| CN112153452B (en) | Dynamic dark part detail presenting method and device and intelligent terminal | |
| CN120070289B (en) | Image-based halo processing method, device and storage medium | |
| CN116600195A (en) | Self-adaptive adjustment method and system for definition of face image | |
| CN113891081B (en) | Video processing method, device and equipment | |
| US12211246B2 (en) | Image processing method | |
| CN115082350A (en) | Stroboscopic image processing method and device, electronic device and readable storage medium | |
| JP4595569B2 (en) | Imaging device | |
| TWI727306B (en) | Contrast adjustment system and contrast adjustment method |
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 |