WO2020135234A1 - Image processing method and apparatus - Google Patents

Image processing method and apparatus Download PDF

Info

Publication number
WO2020135234A1
WO2020135234A1 PCT/CN2019/126786 CN2019126786W WO2020135234A1 WO 2020135234 A1 WO2020135234 A1 WO 2020135234A1 CN 2019126786 W CN2019126786 W CN 2019126786W WO 2020135234 A1 WO2020135234 A1 WO 2020135234A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
brightness
image
processed
average pixel
Prior art date
Application number
PCT/CN2019/126786
Other languages
French (fr)
Chinese (zh)
Inventor
沈海杰
徐爱臣
Original Assignee
青岛海信电器股份有限公司
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 青岛海信电器股份有限公司 filed Critical 青岛海信电器股份有限公司
Publication of WO2020135234A1 publication Critical patent/WO2020135234A1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed

Abstract

Provided are an image processing method and apparatus, the method comprises: calculating the gray average pixel brightness of an image to be processed, and the respective component average pixel brightness on the R channel, G channel and B channel of the image to be processed (101); according to the gray average pixel brightness and the component average pixel brightness on the R channel, G channel and B channel, determining the key color channel of the image to be processed (102); according to the component average pixel brightness of the image to be processed on the key color channel, determining the target brightness adjustment curve (103); and using the target brightness adjustment curve to adjust the brightness of the image to be processed (104). By applying this method, the contrast of the image display can be enhanced based on the key color scene of the image, and the viewing experience of the user can be improved.

Description

一种图像处理方法及装置Image processing method and device
本公开要求在2018年12月25日提交中国专利局、申请号为201811593713.8、发明名称为“一种图像处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure requires the priority of a Chinese patent application filed on December 25, 2018 in the Chinese Patent Office with the application number 201811593713.8 and the invention titled "An Image Processing Method and Device", the entire contents of which are incorporated by reference in this disclosure .
技术领域Technical field
本公开涉及图像处理技术领域,尤其涉及一种图像处理方法及装置。The present disclosure relates to the field of image processing technology, and in particular, to an image processing method and device.
背景技术Background technique
目前,针对显示设备的背光控制技术逐渐兴起,通过背光控制技术,不仅可以节省电能,还可以提高显示设备对图像显示的对比度。At present, backlight control technology for display devices is gradually emerging. Through the backlight control technology, not only can power be saved, but also the contrast of the display device to the image display can be improved.
RGB色彩模式下的图像包括三个颜色通道:R通道(红色通道)、G通道(绿色通道)和B通道(蓝色通道)。如何基于图像的关键颜色场景,增强图像显示的对比度,提升用户的观看体验,是目前需要解决的问题。The image in RGB color mode includes three color channels: R channel (red channel), G channel (green channel), and B channel (blue channel). How to enhance the contrast of the image display based on the key color scene of the image and improve the user's viewing experience is a problem that needs to be solved at present.
发明内容Summary of the invention
本公开提供一种图像处理方法及装置,应用该方法,可以实现基于图像的关键颜色场景增强图像显示的对比度,提升用户的观看体验。The present disclosure provides an image processing method and device. By applying this method, the contrast of the image display can be enhanced based on the key color scene of the image, and the viewing experience of the user can be improved.
根据示例性的实施方式中一方面,提供一种图像处理方法,包括:计算待处理图像的灰度平均像素亮度,以及所述待处理图像分别在R通道、G通道,以及B通道上的分量平均像素亮度;根据所述灰度平均像素亮度与所述R通道、G通道以及B通道上的分量平均像素亮度,确定所述待处理图像的关键颜色通道;根据所述待处理图像在所述关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线;利用所述目标亮度调整曲线对所述待处理图像进行亮度调整。According to an aspect of an exemplary embodiment, an image processing method is provided, including: calculating a gray average pixel brightness of an image to be processed, and components of the image to be processed on the R channel, the G channel, and the B channel, respectively Average pixel brightness; determine the key color channel of the image to be processed according to the gray average pixel brightness and the component average pixel brightness on the R, G, and B channels; according to the image to be processed in the The component average pixel brightness on the key color channel determines a target brightness adjustment curve; the target brightness adjustment curve is used to adjust the brightness of the image to be processed.
在一些示例性的实施方式中,所述根据所述灰度平均像素亮度与所述R通道、G通道,以及B通道上的分量平均像素亮度,确定所述待处理图像的关键颜色通道,包括:根据所述R通道、G通道,以及B通道上的分量平均像素亮度,计算出所述待处理图像分别在R通道、G通道以及B通道上的亮度分布占比;将R通道、G通道以及B通道中,亮度分布占比大于占比阈值,且分量平均像素亮度大于所述灰度平均像素亮度的颜色通道,确定为所述待处理图像的关键颜色通道。In some exemplary embodiments, the determining the key color channel of the image to be processed according to the grayscale average pixel brightness and the component average pixel brightness on the R channel, G channel, and B channel includes: : Calculate the proportion of the brightness distribution of the image to be processed on the R channel, G channel and B channel according to the average pixel brightness of the R channel, G channel and B channel; And in the B channel, the color channel whose brightness distribution ratio is greater than the ratio threshold and the component average pixel brightness is greater than the gray average pixel brightness is determined as the key color channel of the image to be processed.
在一些示例性的实施方式中,所述根据所述待处理图像在所述关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线,包括:基于与所述关键颜色通道对应的低亮亮度阈值、中亮亮度阈值以及高亮亮度阈值,确定所述关键颜色通道上的分量平均像素亮度所属的亮度区间;将与所述关键颜色通道上的分量平均像素亮度所属的亮度区间对应的亮度调整曲线,确定为目标亮度调整曲线。In some exemplary embodiments, the determining the target brightness adjustment curve according to the component average pixel brightness of the image to be processed on the key color channel includes: based on a low brightness brightness threshold corresponding to the key color channel , A mid-brightness threshold and a high-brightness threshold to determine the brightness interval to which the component average pixel brightness on the key color channel belongs; a brightness adjustment curve corresponding to the brightness interval to which the component average pixel brightness on the key color channel belongs To determine the target brightness adjustment curve.
在一些示例性的实施方式中,所述利用所述目标亮度调整曲线对所述待处理图像进行亮度调整,包括:基于所述关键颜色通道在所述待处理图像中确定关键处理区域;利用所述目标亮度调整曲线调整所述关键处理区域中至少一个像素点的亮度。In some exemplary embodiments, the use of the target brightness adjustment curve to perform brightness adjustment on the image to be processed includes: determining a key processing area in the image to be processed based on the key color channel; The target brightness adjustment curve adjusts the brightness of at least one pixel in the critical processing area.
在一些示例性的实施方式中,所述基于所述关键颜色通道在所述待处理图像中确定关键处理区域,包括:分别统计所述待处理图像在R通道、G通道以及B通道上的灰度分布直方图,所述灰度分布直方图用于表示所述待处理图像中,颜色通道上的灰度处于各个灰阶区间的像素点的个数;根据所述R通道、G通道以及B通道上的灰度分布直方图,确定各个灰阶区间上像素点个数最多的颜色通道;将满足以下条件的灰阶区间确定为目标灰阶区间:像素点个数最多的颜色通道为所述关键颜色通道;在所述待处理图像中,将在所述关键颜色通道上的灰度处于所述目标灰阶区间的像素点所组成的区域确定为关键处理区域。In some exemplary embodiments, the determining the key processing area in the image to be processed based on the key color channel includes: separately counting the gray of the image to be processed on the R channel, the G channel, and the B channel Degree distribution histogram, the grayscale distribution histogram is used to represent the number of pixels in the grayscale color channel in each grayscale interval in the image to be processed; according to the R channel, G channel and B The gray distribution histogram on the channel determines the color channel with the largest number of pixels on each gray scale interval; the gray scale interval that meets the following conditions is determined as the target gray scale interval: the color channel with the largest number of pixels is the Key color channel; in the image to be processed, an area composed of pixels on the key color channel whose gray level is within the target gray scale interval is determined as a key processing area.
根据示例性的实施方式中一方面,提供一种显示设备,包括:处理器、存储器和显示器;所述存储器,与所述处理器连接,配置为存储计算机指令;所述处理器,与所述存储器和所述显示器连接,配置为执行所述计算机指令以使得所述显示设备执行上述方法。According to an aspect of an exemplary embodiment, a display device is provided, including: a processor, a memory, and a display; the memory is connected to the processor and configured to store computer instructions; the processor, and the The memory is connected to the display and is configured to execute the computer instructions to cause the display device to perform the above method.
根据示例性的实施方式中一方面,提供一种计算机可读的非易失性存储介质,其上存储有计算机指令,所述计算机指令被处理器执行时实现上述方法。According to an aspect of the exemplary embodiments, there is provided a computer-readable non-volatile storage medium having computer instructions stored thereon, the computer instructions implementing the above method when executed by a processor.
附图说明BRIEF DESCRIPTION
图1为本公开中的一示例性实施例提供的一种图像处理方法的实施例流程图;1 is a flowchart of an embodiment of an image processing method provided by an exemplary embodiment in the present disclosure;
图2为低亮亮度调整曲线、中亮亮度调整曲线,以及高亮亮度调整曲线的示意图;Figure 2 is a schematic diagram of a low-brightness brightness adjustment curve, a medium-brightness brightness adjustment curve, and a high-brightness brightness adjustment curve;
图3为待处理图像在R通道上的灰度分布直方图的一种示例;FIG. 3 is an example of the histogram of the gray distribution of the image to be processed on the R channel;
图4为待处理图像在G通道上的灰度分布直方图的一种示例;4 is an example of the histogram of the gray distribution of the image to be processed on the G channel;
图5为待处理图像在B通道上的灰度分布直方图的一种示例;FIG. 5 is an example of the histogram of the gray distribution of the image to be processed on the B channel;
图6为待处理图像中的像素点在各颜色通道上的灰阶分布图的一种示例;FIG. 6 is an example of the grayscale distribution map of the pixels in the image to be processed on each color channel;
图7为灰度亮度调整曲线的一种示例;FIG. 7 is an example of the grayscale brightness adjustment curve;
图8为本公开中的一示例性实施例提供的一种显示设备的硬件结构图;8 is a hardware structure diagram of a display device provided by an exemplary embodiment in the present disclosure;
图9为本公开中的一示例性实施例提供的一种显示设备的实施例框图。9 is a block diagram of an embodiment of a display device provided by an exemplary embodiment in the present disclosure.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail here, examples of which are shown in the drawings. When referring to the drawings below, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing specific embodiments only, and is not intended to limit the present disclosure. The singular forms "a", "said" and "the" used in this disclosure and the appended claims are also intended to include the majority forms unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more associated listed items.
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in this disclosure, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination".
请参见图1,为本公开一示例性实施例提供的一种图像处理方法的实施例流程图,该方法可应用于显示设备,例如智能电视上,包括以下步骤:Please refer to FIG. 1, which is a flowchart of an embodiment of an image processing method according to an exemplary embodiment of the present disclosure. The method may be applied to a display device, such as a smart TV, and includes the following steps:
步骤101:计算待处理图像的灰度平均像素亮度,以及待处理图像分别在R通道、G通道以及B通道上的分量平均像素亮度。Step 101: Calculate the gray average pixel brightness of the image to be processed, and the component average pixel brightness of the image to be processed on the R channel, the G channel, and the B channel, respectively.
在本公开实施例中,为了描述方便,将待处理图像的灰度图像中像素点的平均像素亮度称为灰度平均像素亮度,记为APL Gray。计算得出该灰度平均像素亮度APL Gray的具体过程,可以采用任何相关方案,本公开对此不再详述。 In the embodiments of the present disclosure, for convenience of description, the average pixel brightness of pixels in the grayscale image of the image to be processed is referred to as grayscale average pixel brightness, and is referred to as APL Gray . The specific process of calculating the gray average pixel brightness APL Gray can adopt any relevant scheme, which will not be described in detail in this disclosure.
在本公开实施例中,还可以分别计算出待处理图像在R通道、G通道,以及B通道上的平均像素亮度。为了描述方便,将该平均像素亮度称为分量平均像素亮度,并将待处理图像在R通道上的分量平均像素亮度记为APL R,在G通道上的分量平均像素亮度记为APL G,在B通道上的分量平均像素亮度记为APL BIn the embodiment of the present disclosure, the average pixel brightness of the image to be processed on the R channel, the G channel, and the B channel can also be calculated separately. For convenience of description, the average pixel brightness is referred to as component average pixel brightness, and the component average pixel brightness on the R channel of the image to be processed is recorded as APL R , and the component average pixel brightness on the G channel is recorded as APL G , in The average pixel brightness of the component on the B channel is recorded as APL B.
以待处理图像在R通道上的分量平均像素亮度APL R为例,其计算过程包括:将待处理图像上各个像素点在R通道上的亮度相加,再除以像素点总个数,即可得出上述APL RTaking the component average pixel brightness APL R on the R channel of the image to be processed as an example, the calculation process includes: adding the brightness of each pixel on the R channel on the image to be processed, and then dividing by the total number of pixels, ie The above APL R can be derived.
上述APL G与APL B的具体过程,可以参见上述所描述的计算得出APL R的过程,本公开对此不再详述。 For the specific processes of the above APL G and APL B , refer to the process of calculating the APL R described above, which will not be described in detail in this disclosure.
步骤102:根据灰度平均像素亮度与R通道、G通道以及B通道上的分量平均像素亮度,确定待处理图像的关键颜色通道。Step 102: Determine the key color channel of the image to be processed according to the gray average pixel brightness and the component average pixel brightness on the R channel, G channel, and B channel.
其中,待处理图像的关键颜色通道为R通道、G通道和B通道中的一个。Among them, the key color channel of the image to be processed is one of the R channel, the G channel, and the B channel.
在本公开实施例中,可以根据上述步骤101中计算出的R通道、G通道,以及B通道上的分量平均像素亮度,计算出待处理图像在R通道、G通道,以及B通道上各自的亮度分布占比。其中,为了描述方便,将待处理图像在R通道上的亮度分布占比记为R p,将待处理图像在G通道上的亮度分布占比记为G p,将待处理图像在B通道上的亮度分布占比记为B pIn an embodiment of the present disclosure, according to the average pixel brightness of the R channel, G channel, and B channel calculated in step 101 above, the respective images on the R channel, G channel, and B channel of the image to be processed can be calculated. Proportion of brightness distribution. Among them, for the convenience of description, the proportion of the brightness distribution of the image to be processed on the R channel is denoted as R p , the proportion of the brightness distribution of the image to be processed on the G channel is denoted as G p , and the proportion of the image to be processed on the B channel The proportion of the brightness distribution is recorded as B p .
具体的,上述R p、G p、B p可分别通过下述公式(1)、公式(2),以及公式(3)计算得出: Specifically, the above R p , G p , and B p can be calculated by the following formula (1), formula (2), and formula (3), respectively:
Figure PCTCN2019126786-appb-000001
Figure PCTCN2019126786-appb-000001
Figure PCTCN2019126786-appb-000002
Figure PCTCN2019126786-appb-000002
Figure PCTCN2019126786-appb-000003
Figure PCTCN2019126786-appb-000003
在本公开实施例中,将R通道、G通道以及B通道中,亮度分布占比大于预设的占比阈值(占比阈值,例如33%),且分量平均像素亮度大于灰度平均像素亮度APL Gray的颜色通道,确定为待处理图像的关键颜色通道。 In the embodiment of the present disclosure, in the R channel, the G channel, and the B channel, the brightness distribution ratio is greater than a preset ratio threshold (the ratio threshold, for example, 33%), and the component average pixel brightness is greater than the grayscale average pixel brightness The color channel of APL Gray is determined as the key color channel of the image to be processed.
步骤103:根据待处理图像在关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线。Step 103: Determine the target brightness adjustment curve according to the component average pixel brightness of the image to be processed on the key color channel.
在本公开实施例中,可以针对R通道、G通道以及B通道中的任一颜色通道设置其对应的低亮亮度阈值、中亮亮度阈值以及高亮亮度阈值。为了描述方便,将R通道对应的低亮亮度阈值记为Th RL,中亮亮度阈值记为Th RM,高亮亮度阈值记为Th RH;将G通道对应的低亮亮度阈值记为Th GL,中亮亮度阈值记为Th GM,高亮亮度阈值记为Th GH;将B通道对应的低亮亮度阈值记为Th BL,中亮亮度阈值记为Th BM,高亮亮度阈值记为Th BHIn an embodiment of the present disclosure, the corresponding low brightness brightness threshold, medium brightness brightness threshold, and high brightness brightness threshold may be set for any color channel among the R channel, the G channel, and the B channel. For convenience of description, the R channel corresponding to low luminance brightness threshold value is referred to as Th RL, the brighter the luminance threshold referred to as Th RM, highlight luminance threshold referred to as Th RH; the G channel corresponding to low luminance brightness threshold value is referred to as Th GL, The mid-brightness threshold is denoted as Th GM , the high-brightness threshold is denoted as Th GH ; the low-brightness threshold corresponding to channel B is denoted as Th BL , the medium-brightness threshold is denoted as Th BM , and the high-brightness threshold is denoted as Th BH .
在本公开实施例中,还可以针对R通道、G通道以及B通道中的任一颜色通道设置其对应的低亮亮度调整曲线、中亮亮度调整曲线以及高亮亮度调整曲线。例如,如图2所示,为低亮亮度调整曲线、中亮亮度调整曲线以及高亮亮度调整曲线的示意图。其中,实线为高亮亮度调整曲线(图中标识为H),虚线为中亮亮度调整曲线(图中标识为M),点划线为低亮亮度调整曲线(图中标识为L)。In the embodiment of the present disclosure, the corresponding low-brightness brightness adjustment curve, medium-brightness brightness adjustment curve, and high-brightness brightness adjustment curve can also be set for any color channel among the R channel, the G channel, and the B channel. For example, as shown in FIG. 2, it is a schematic diagram of a low-brightness brightness adjustment curve, a medium-brightness brightness adjustment curve, and a high-brightness brightness adjustment curve. Among them, the solid line is the highlight brightness adjustment curve (marked as H in the figure), the dashed line is the medium brightness brightness adjustment curve (marked as M in the figure), and the dot-dash line is the low brightness brightness adjustment curve (marked as L in the figure).
后续,以R通道为例,其对应的低亮亮度阈值Th RL、中亮亮度阈值Th RM,以及高亮亮度阈值Th RH,将0-255这一亮度范围划分为四个亮度区间,分别为(0,Th RL】、(Th RL, Th RM】、(Th RM、Th RH】、(Th RH,255),并且,各个亮度区间分别对应有亮度调整曲线。 Subsequently, taking the R channel as an example, the corresponding low-brightness threshold Th RL , medium-brightness threshold Th RM , and high-brightness threshold Th RH divide the 0-255 brightness range into four brightness intervals, respectively: (0, Th RL ) , (Th RL , Th RM ) , (Th RM , Th RH ) , (Th RH , 255), and each brightness interval corresponds to a brightness adjustment curve.
其中,(0,Th RL】这一亮度区间属于低亮亮度区间,其对应的亮度调整曲线则可以为低亮亮度调整曲线;(Th RH,255)这一亮度区间属于高亮亮度区间,其对应的亮度调整曲线则可以为高亮亮度调整曲线。 Among them, (0, Th RL) This brightness interval belongs to a low brightness brightness interval, and its corresponding brightness adjustment curve can be a low brightness brightness adjustment curve; (Th RH , 255) this brightness interval belongs to a high brightness brightness interval, which The corresponding brightness adjustment curve can be a highlight brightness adjustment curve.
(Th RL,Th RM】和(Th RM、Th RH】这两个亮度区间均属于中亮亮度区间,该两个中亮亮度区间对应的亮度调整曲线不同,其中,(Th RL,Th RM】这一亮度区间对应的亮度调整曲线可以由上述低亮亮度调整曲线和预设的中亮亮度调整曲线加权得到,(Th RM、Th RH】这一亮度区间对应的亮度调整曲线则可以由预设的中亮亮度调整曲线与上述高亮亮度调整曲线加权得到。 The two brightness intervals (Th RL , Th RM) and (Th RM , Th RH ) belong to the mid-brightness interval. The brightness adjustment curves corresponding to the two mid-brightness intervals are different. Among them, (Th RL , Th RM) The brightness adjustment curve corresponding to this brightness interval can be obtained by weighting the aforementioned low-brightness brightness adjustment curve and the preset mid-brightness brightness adjustment curve, (Th RM , Th RH) the brightness adjustment curve corresponding to this brightness interval can be preset The mid-brightness brightness adjustment curve is weighted with the above high-brightness brightness adjustment curve.
具体的,(Th RL,Th RM】这一亮度区间对应的亮度调整曲线可以由下述公式(4)表示;(Th RM、Th RH】这一亮度区间对应的亮度调整曲线可以由下述公式(5)表示。 Specifically, (Th RL , Th RM) the brightness adjustment curve corresponding to this brightness interval can be expressed by the following formula (4); (Th RM , Th RH) the brightness adjustment curve corresponding to this brightness interval can be expressed by the following formula (5) said.
M L=(1-α)*L+α*M…………………………………………[4] M L = (1-α)*L+α*M………………………………[4]
M H=(1-β)*M+β*H…………………………………………[5] M H = (1-β)*M+β*H………………………………[5]
在上述公式(4)中,M L表示(Th RL,Th RM】这一亮度区间对应的亮度调整曲线,L表示上述低亮亮度调整曲线,M表示上述中亮亮度调整曲线,α为加权系数,其为大于0且小于1的小数。 In the above formula (4), M L represents the brightness adjustment curve corresponding to the brightness interval of (Th RL , Th RM ) , L represents the above low brightness brightness adjustment curve, M represents the above mid brightness brightness adjustment curve, and α is a weighting coefficient , Which is a decimal greater than 0 and less than 1.
在上述公式(5)中,M H表示(Th RM、Th RH】这一亮度区间对应的亮度调整曲线,H表示上述高亮亮度调整曲线,β为加权系数,其为大于0且小于1的小数。 In the above formula (5), M H represents the brightness adjustment curve corresponding to the brightness interval of (Th RM , Th RH ) , H represents the above-mentioned highlight brightness adjustment curve, β is the weighting coefficient, which is greater than 0 and less than 1. Decimal.
基于上述描述,在本公开实施例中,可以确定待处理图像在关键颜色通道上的分量平均像素亮度所属的亮度区间,将该亮度区间对应的亮度调整曲线确定为目标亮度调整曲线。Based on the above description, in the embodiment of the present disclosure, the brightness interval to which the average pixel brightness of the component of the image to be processed on the key color channel belongs can be determined, and the brightness adjustment curve corresponding to the brightness interval is determined as the target brightness adjustment curve.
步骤104:利用目标亮度调整曲线对待处理图像进行亮度调整。Step 104: Use the target brightness adjustment curve to adjust the brightness of the image to be processed.
在本公开实施例中,可以针对上述步骤102中确定出的关键颜色通道,确定像素点在该关键颜色通道上所分布的灰阶区间,之后,基于所确定出的灰阶区间,在待处理图像中确定关键处理区域。In the embodiment of the present disclosure, for the key color channel determined in the above step 102, the gray scale interval where the pixel points are distributed on the key color channel may be determined, and then, based on the determined gray scale interval, to be processed Identify key processing areas in the image.
后续,则可以利用上述步骤103中确定出的目标亮度调整曲线对该关键处理区域中任一像素点的亮度进行调整。Subsequently, the brightness of any pixel in the key processing area can be adjusted using the target brightness adjustment curve determined in step 103 above.
上述确定像素点在该关键颜色通道上所分布的灰阶区间,并基于所确定出的灰阶区间在待处理图像中确定关键处理区域的具体过程,可包括:The above-mentioned specific process of determining the gray-scale interval of pixels distributed on the key color channel, and determining the key processing area in the image to be processed based on the determined gray-scale interval may include:
首先,分别统计出待处理图像在R通道、G通道以及B通道上各自的灰度分布直方图。例如,如图3所示,为待处理图像在R通道上的灰度分布直方图的一种示例,如图4所示, 为待处理图像在G通道上的灰度分布直方图的一种示例,如图5所示,为待处理图像在B通道上的灰度分布直方图的一种示例。First of all, the histogram of the gray distribution of the to-be-processed image on the R channel, G channel and B channel is calculated. For example, as shown in FIG. 3, it is an example of the gray distribution histogram of the image to be processed on the R channel, and as shown in FIG. 4, it is a kind of gray distribution histogram of the image to be processed on the G channel. The example, as shown in FIG. 5, is an example of the histogram of the gray distribution of the image to be processed on the B channel.
其中,以图3所示例的灰度分布直方图为例,其横轴表示灰阶区间,例如,将0-255这一灰阶范围划分为32个灰阶区间,0-8为一个灰阶区间,9-17为一个灰阶区间,18-26为一个灰阶区间,以此类推,直至247-255这一灰阶区间;纵轴则表示待处理图像中,R颜色通道上的灰度处于某一灰阶区间的像素点的个数。Taking the gray distribution histogram shown in FIG. 3 as an example, the horizontal axis represents the gray scale interval. For example, the gray scale range of 0-255 is divided into 32 gray scale intervals, and 0-8 is a gray scale. Interval, 9-17 is a grayscale interval, 18-26 is a grayscale interval, and so on, until the grayscale interval of 247-255; the vertical axis represents the grayscale on the R color channel in the image to be processed The number of pixels in a certain gray scale interval.
可以基于图3至图5所示例的灰度分布直方图,确定出每个灰阶区间上,像素点个数最多的颜色通道。例如,在0-8这一灰阶区间上,像素点个数最多的颜色通道为G通道。The color channel with the largest number of pixels in each gray-scale interval can be determined based on the gray distribution histograms illustrated in FIGS. 3 to 5. For example, in the gray scale interval of 0-8, the color channel with the largest number of pixels is the G channel.
进一步地,还可以基于图3至图5所示例的灰度分布直方图,利用如下公式(6)、公式(7)、公式(8),分别计算出各个灰阶区间的R通道分布占比(记为R P_i)、G通道分布占比(记为G P_i)以及B通道分布占比(记为B P_i): Further, based on the gray distribution histograms shown in FIGS. 3 to 5, the following formulas (6), (7), and (8) can be used to calculate the R channel distribution ratio of each grayscale interval ( Denoted as R P_i ), G channel distribution ratio (denoted as G P_i ) and B channel distribution ratio (denoted as B P_i ):
Figure PCTCN2019126786-appb-000004
Figure PCTCN2019126786-appb-000004
Figure PCTCN2019126786-appb-000005
Figure PCTCN2019126786-appb-000005
Figure PCTCN2019126786-appb-000006
Figure PCTCN2019126786-appb-000006
在上述公式中,i用于标识灰度区间,i为1至32这一范围内的整数,例如,R P_1表示第1个灰阶区间的R通道分布占比,R P_5表示第5个灰阶区间的R通道分布占比,R P_32表示第32个灰阶区间的R通道分布占比。 In the above formula, i is used to identify the grayscale interval, i is an integer in the range of 1 to 32, for example, R P_1 represents the R channel distribution ratio of the first gray-scale interval, R P_5 represents the fifth gray The proportion of R channel distribution in the order interval, R P_32 represents the proportion of R channel distribution in the 32nd gray order interval.
在上述公式中,His R_i表示待处理图像中,R通道上的灰度处于第i个灰阶区间的像素点的个数,His G_i表示待处理图像中,G通道上的灰度处于第i个灰阶区间的像素点的个数,His B_i表示待处理图像中,B通道上的灰度处于第i个灰阶区间的像素点的个数。 In the above formula, His R_i represents the number of pixels in the gray-scale interval of the R channel in the i-th gray-scale interval in the image to be processed, and His G_i represents the gray scale in the G-channel in the to-be-processed image. The number of pixels in each gray-scale interval, His B_i represents the number of pixels in the i-th gray-scale interval whose gray level on the B channel in the image to be processed.
通过确定出的各个灰阶区间上,像素点个数最多的颜色通道,与计算出的各个灰阶区间的R通道分布占比、G通道分布占比以及B通道分布占比,则可以得出图6所示例的待处理图像中的像素点在各颜色通道上的灰阶分布图。在图6中,横轴表示灰阶区间,纵轴则表示该灰阶区间上,像素点个数最多的颜色通道的分布占比。By determining the color channel with the largest number of pixels in each grayscale interval, and the calculated ratio of R channel distribution, G channel distribution, and B channel distribution of each grayscale interval, you can get The gray-scale distribution diagram of the pixels in the image to be processed on each color channel shown in FIG. 6. In FIG. 6, the horizontal axis represents the gray scale interval, and the vertical axis represents the distribution ratio of the color channel with the largest number of pixels on the gray scale interval.
通过分析图6所示例的灰阶分布图可以发现:关键颜色通道,例如R通道出现在第6个至第32个灰阶区间上,从而可以得出:待处理图像中的像素点在关键颜色通道,R通道上,所分布的灰阶区间为第6个至第32个灰阶区间,也即45-255这一灰阶区间。在本公开实施例中,为了描述方便,将关键颜色通道在灰阶分布图中出现的灰阶区间(比如图6中的45-255这一灰阶区间)称为目标灰阶区间,关键颜色通道在目标灰阶区间上像素点个数要大于其他颜色通道在目标灰阶区间上的像素点个数。By analyzing the grayscale distribution diagram shown in Figure 6, it can be found that the key color channel, for example, the R channel appears on the 6th to 32nd grayscale interval, so that it can be concluded that the pixels in the image to be processed are in the key color The gray scale interval on the channel, R channel, is the 6th to 32nd gray scale interval, which is the gray scale interval of 45-255. In the embodiment of the present disclosure, for the convenience of description, the gray scale interval (such as the gray scale interval 45-255 in FIG. 6) of the key color channel appearing in the gray scale distribution diagram is called the target gray scale interval, and the key color The number of pixels of the channel in the target grayscale interval is greater than the number of pixels of other color channels in the target grayscale interval.
后续,则可以在待处理图像中确定出R通道上的灰阶处于45-255这一目标灰阶区间的像素点,将该些像素点所组成的区域确定为关键处理区域。Subsequently, the pixels of the gray level on the R channel in the target gray scale interval of 45-255 can be determined in the image to be processed, and the area composed of these pixels can be determined as the key processing area.
此外,在本公开实施例中,针对待处理图像中除关键处理区域以外的其他区域,则可以利用预先设置的灰度亮度调整曲线对该其他区域中任一像素点的亮度进行调整,例如,如图7所示,为灰度亮度调整曲线的一种示例。In addition, in the embodiment of the present disclosure, for other regions in the image to be processed except the key processing region, the brightness of any pixel in the other region can be adjusted by using a preset grayscale brightness adjustment curve, for example, As shown in FIG. 7, it is an example of a grayscale brightness adjustment curve.
如图7所示,灰度亮度调整曲线也可以包括低亮亮度调整曲线Gray_L、中亮亮度调整曲线Gray_M,以及高亮亮度调整曲线Gray_H,基于与上述根据待处理图像在关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线,利用目标亮度调整曲线对待处理图像中的关键处理区域进行亮度调整类似的原理,在此,可以根据待处理图像的灰度平均像素亮度基于图7确定出一个亮度调整曲线,利用确定出的亮度调整曲线对待处理图像中除关键处理区域以外的其他区域进行亮度调整,本公开实施例中对此不再详述。As shown in FIG. 7, the gray-scale brightness adjustment curve may also include a low-brightness brightness adjustment curve Gray_L, a mid-brightness brightness adjustment curve Gray_M, and a high-brightness brightness adjustment curve Gray_H, based on the above-mentioned components on the key color channel according to the image to be processed The average pixel brightness determines the target brightness adjustment curve. Using the target brightness adjustment curve to adjust the brightness of key processing areas in the image to be processed is similar to the principle. Here, a brightness can be determined based on the gray average pixel brightness of the image to be processed based on FIG. 7 For the adjustment curve, use the determined brightness adjustment curve to adjust the brightness of other areas in the image to be processed except the key processing area, which will not be described in detail in the embodiments of the present disclosure.
由上述实施例可见,通过计算出待处理图像的灰度平均像素亮度,与待处理图像在R通道、G通道,以及B通道上各自的分量平均像素亮度;根据灰度平均像素亮度与分量平均像素亮度,确定待处理图像的关键颜色通道;根据待处理图像在关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线;利用目标亮度调整曲线对待处理图像进行亮度调整,可以实现基于图像的关键颜色场景增强图像显示的对比度,提升用户的观看体验。It can be seen from the above embodiments that by calculating the gray average pixel brightness of the image to be processed, and the component average pixel brightness of the image to be processed on the R channel, G channel, and B channel; according to the gray average pixel brightness and component average Pixel brightness, determine the key color channel of the image to be processed; determine the target brightness adjustment curve according to the average pixel brightness of the component of the image to be processed on the key color channel; use the target brightness adjustment curve to adjust the brightness of the image to be processed, to achieve the image-based key The color scene enhances the contrast of the image display and enhances the user's viewing experience.
与前述图像处理方法的实施例相对应,本公开还提供了显示设备的实施例。Corresponding to the aforementioned embodiment of the image processing method, the present disclosure also provides an embodiment of the display device.
本公开显示设备的实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图8所示,为本公开一示例性实施例提供的一种显示设备的硬件结构图,除了图8所示的处理器801、内存802、网络接口803、非易失性存储器804、内部总线805之外,实施例中的显示设备通常根据该设备的实际功能,还可以包括其他硬件,对此不再赘述。Embodiments of the display device of the present disclosure may be implemented by software, or by hardware or a combination of hardware and software. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the nonvolatile memory into the memory through the processor of the device where it is located. From a hardware perspective, as shown in FIG. 8, it is a hardware structure diagram of a display device provided by an exemplary embodiment of the present disclosure, except for the processor 801, memory 802, network interface 803, and non-easy In addition to the volatile memory 804 and the internal bus 805, the display device in the embodiment generally may include other hardware according to the actual function of the device, which will not be repeated here.
请参考图9,为本公开一示例性实施例提供的一种显示设备的实施例框图,如图9所示,该设备可以包括:计算模块901、第一确定模块902、第二确定模块903,以及亮度调整模块904。Please refer to FIG. 9, which is a block diagram of an embodiment of a display device provided by an exemplary embodiment of the present disclosure. As shown in FIG. 9, the device may include: a calculation module 901, a first determination module 902, and a second determination module 903 , And brightness adjustment module 904.
其中,计算模块901,用于计算待处理图像的灰度平均像素亮度,以及待处理图像分别在R通道、G通道,以及B通道上的分量平均像素亮度;The calculation module 901 is used to calculate the gray average pixel brightness of the image to be processed, and the component average pixel brightness of the image to be processed on the R channel, the G channel, and the B channel respectively;
第一确定模块902,用于根据灰度平均像素亮度与R通道、G通道以及B通道上的分量平均像素亮度,确定待处理图像的关键颜色通道;The first determination module 902 is used to determine the key color channel of the image to be processed according to the gray average pixel brightness and the component average pixel brightness on the R channel, G channel, and B channel;
第二确定模块903,用于根据待处理图像在所述关键颜色通道上的分量平均像素亮度 确定目标亮度调整曲线;The second determination module 903 is configured to determine a target brightness adjustment curve according to the average pixel brightness of the components of the image to be processed on the key color channel;
亮度调整模块904,用于利用目标亮度调整曲线对待处理图像进行亮度调整。The brightness adjustment module 904 is used to adjust the brightness of the image to be processed using the target brightness adjustment curve.
在一实施例中,所述第一确定模块902包括(图9中未示出):In an embodiment, the first determining module 902 includes (not shown in FIG. 9):
亮度分布占比计算子模块,用于根据R通道、G通道以及B通道上的分量平均像素亮度,计算出待处理图像分别在R通道、G通道,以及B通道上的亮度分布占比;The brightness distribution ratio calculation sub-module is used to calculate the brightness distribution ratio of the image to be processed on the R channel, G channel, and B channel according to the average pixel brightness of the R channel, G channel, and B channel;
关键颜色通道确定子模块,用于将R通道、G通道以及B通道中,亮度分布占比大于预设的占比阈值,且分量平均像素亮度大于灰度平均像素亮度的颜色通道确定为待处理图像的关键颜色通道。The key color channel determination submodule is used to determine the color channels of the R channel, the G channel and the B channel whose brightness distribution ratio is greater than the preset ratio threshold, and the component average pixel brightness is greater than the gray average pixel brightness as the to-be-processed The key color channel of the image.
在一实施例中,所述第二确定模块903包括(图9中未示出):In an embodiment, the second determination module 903 includes (not shown in FIG. 9):
区间确定子模块,用于基于与关键颜色通道对应的低亮亮度阈值、中亮亮度阈值以及高亮亮度阈值,确定关键颜色通道上的分量平均像素亮度所属的亮度区间;The interval determination submodule is used to determine the brightness interval to which the average pixel brightness of the component on the key color channel belongs based on the low brightness brightness threshold, the medium brightness brightness threshold and the high brightness brightness threshold corresponding to the key color channel;
曲线确定子模块,用于将与关键颜色通道上的分量平均像素亮度所属的亮度区间对应的亮度调整曲线确定为目标亮度调整曲线。The curve determination submodule is used to determine the brightness adjustment curve corresponding to the brightness interval to which the average pixel brightness of the component on the key color channel belongs as the target brightness adjustment curve.
在一实施例中,所述第一亮度调整模块904包括(图9中未示出):In an embodiment, the first brightness adjustment module 904 includes (not shown in FIG. 9):
关键处理区域确定子模块,用于基于关键颜色通道在待处理图像中确定关键处理区域;The key processing area determination sub-module is used to determine the key processing area in the image to be processed based on the key color channel;
处理子模块,用于利用目标亮度调整曲线调整关键处理区域中的至少一个像素点的亮度。The processing sub-module is used to adjust the brightness of at least one pixel in the key processing area by using the target brightness adjustment curve.
在一实施例中,所述关键处理区域确定子模块包括(图9中未示出):In an embodiment, the critical processing area determination sub-module includes (not shown in FIG. 9):
统计子模块,用于分别统计出待处理图像在R通道、G通道以及B通道上各自的灰度分布直方图,该灰度分布直方图用于表示待处理图像中,颜色通道上的灰度处于各个灰阶区间的像素点的个数;The statistics submodule is used to separately calculate the grayscale distribution histogram of the image to be processed on the R channel, G channel and B channel. The grayscale distribution histogram is used to represent the grayscale on the color channel in the image to be processed The number of pixels in each gray scale interval;
颜色通道确定子模块,用于根据R通道、G通道以及B通道上的灰度分布直方图,确定各个灰阶区间上像素点个数最多的颜色通道;The color channel determination sub-module is used to determine the color channel with the largest number of pixels on each gray scale interval according to the gray distribution histogram on the R channel, G channel and B channel;
目标区间确定子模块,用于将满足以下条件的灰阶区间确定为目标灰阶区间:像素点个数最多的颜色通道为所述关键颜色通道;A target interval determination submodule, configured to determine a gray scale interval satisfying the following conditions as the target gray scale interval: the color channel with the largest number of pixels is the key color channel;
区域确定子模块,用于在所述待处理图像中,将在所述关键颜色通道上的灰度处于所述目标灰阶区间的像素点所组成的区域确定为关键处理区域。The area determination submodule is used to determine, in the image to be processed, an area composed of pixels whose grayscale on the key color channel is in the target grayscale interval as a key processing area.
在一实施例中,所述显示设备还包括(图9中未示出):In an embodiment, the display device further includes (not shown in FIG. 9):
第二亮度调整模块,用于利用预设的灰度亮度调整曲线调整待处理图像中除所述关键处理区域以外的其他区域中至少一个像素点的亮度。The second brightness adjustment module is used to adjust the brightness of at least one pixel in the area to be processed except the key processing area in the image to be processed using a preset grayscale brightness adjustment curve.
上述显示设备中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的 实现过程,在此不再赘述。For the implementation process of the functions and functions of each unit in the above display device, please refer to the implementation process of the corresponding steps in the above method for details, which will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, the relevant part can be referred to the description of the method embodiment. The device embodiments described above are only schematics, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located One place, or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solutions. Those of ordinary skill in the art can understand and implement without paying creative labor.
以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the present disclosure Within the scope of protection.

Claims (11)

  1. 一种图像处理方法,所述方法包括:An image processing method, the method includes:
    计算待处理图像的灰度平均像素亮度,以及所述待处理图像分别在R通道、G通道以及B通道上的分量平均像素亮度;Calculate the grayscale average pixel brightness of the image to be processed, and the component average pixel brightness of the image to be processed on the R channel, the G channel and the B channel respectively;
    根据所述灰度平均像素亮度与所述R通道、G通道以及B通道上的分量平均像素亮度,确定所述待处理图像的关键颜色通道;Determine the key color channel of the image to be processed according to the gray average pixel brightness and the component average pixel brightness on the R channel, G channel, and B channel;
    根据所述待处理图像在所述关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线;Determine the target brightness adjustment curve according to the average pixel brightness of the component of the image to be processed on the key color channel;
    利用所述目标亮度调整曲线对所述待处理图像进行亮度调整。Use the target brightness adjustment curve to adjust the brightness of the image to be processed.
  2. 根据权利要求1所述的方法,所述根据所述灰度平均像素亮度与所述R通道、G通道以及B通道上的分量平均像素亮度,确定所述待处理图像的关键颜色通道,包括:The method according to claim 1, said determining the key color channel of the image to be processed according to the gray average pixel brightness and the component average pixel brightness on the R channel, G channel and B channel, comprising:
    根据所述R通道、G通道以及B通道上的分量平均像素亮度,计算出所述待处理图像分别在R通道、G通道以及B通道上的亮度分布占比;Calculate the proportion of the brightness distribution of the image to be processed on the R channel, G channel, and B channel according to the average pixel brightness of the components on the R channel, G channel, and B channel;
    将R通道、G通道以及B通道中,亮度分布占比大于占比阈值,且分量平均像素亮度大于所述灰度平均像素亮度的颜色通道,确定为所述待处理图像的关键颜色通道。In the R channel, the G channel, and the B channel, the color channel whose brightness distribution ratio is greater than the ratio threshold and the component average pixel brightness is greater than the grayscale average pixel brightness is determined as the key color channel of the image to be processed.
  3. 根据权利要求1所述的方法,所述根据所述待处理图像在所述关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线,包括:The method according to claim 1, the determining the target brightness adjustment curve according to the component average pixel brightness of the image to be processed on the key color channel comprises:
    基于与所述关键颜色通道对应的低亮亮度阈值、中亮亮度阈值以及高亮亮度阈值,确定所述关键颜色通道上的分量平均像素亮度所属的亮度区间;Determine the brightness interval to which the average pixel brightness of the component on the key color channel belongs based on the low brightness brightness threshold, the medium brightness brightness threshold and the high brightness brightness threshold corresponding to the key color channel;
    将与所述关键颜色通道上的分量平均像素亮度所属的亮度区间对应的亮度调整曲线,确定为目标亮度调整曲线。The brightness adjustment curve corresponding to the brightness interval to which the component average pixel brightness on the key color channel belongs is determined as the target brightness adjustment curve.
  4. 根据权利要求1所述的方法,所述利用所述目标亮度调整曲线对所述待处理图像进行亮度调整,包括:The method according to claim 1, the performing brightness adjustment on the image to be processed using the target brightness adjustment curve includes:
    基于所述关键颜色通道在所述待处理图像中确定关键处理区域;Determine a key processing area in the image to be processed based on the key color channel;
    利用所述目标亮度调整曲线调整所述关键处理区域中至少一个像素点的亮度。Use the target brightness adjustment curve to adjust the brightness of at least one pixel in the critical processing area.
  5. 根据权利要求4所述的方法,所述基于所述关键颜色通道在所述待处理图像中确定关键处理区域,包括:The method according to claim 4, the determining the key processing area in the image to be processed based on the key color channel comprises:
    分别统计所述待处理图像在R通道、G通道以及B通道上的灰度分布直方图,所述灰度分布直方图用于表示所述待处理图像中,颜色通道上的灰度处于各个灰阶区间的像素点的个数;Count the grayscale distribution histograms of the image to be processed on the R channel, G channel, and B channel respectively. The grayscale distribution histogram is used to indicate that the grayscale on the color channel is in each gray in the image to be processed. The number of pixels in the order interval;
    根据所述R通道、G通道以及B通道上的灰度分布直方图,确定各个灰阶区间上像素 点个数最多的颜色通道;Determine the color channel with the largest number of pixels on each gray-scale interval according to the gray distribution histogram on the R channel, G channel and B channel;
    将满足以下条件的灰阶区间确定为目标灰阶区间:像素点个数最多的颜色通道为所述关键颜色通道;The gray scale interval satisfying the following conditions is determined as the target gray scale interval: the color channel with the largest number of pixels is the key color channel;
    在所述待处理图像中,将在所述关键颜色通道上的灰度处于所述目标灰阶区间的像素点所组成的区域确定为关键处理区域。In the image to be processed, an area composed of pixels on the key color channel whose gray level is within the target gray scale interval is determined as a key processing area.
  6. 一种显示设备,包括:处理器、存储器和显示器;A display device, including: a processor, a memory and a display;
    所述存储器,与所述处理器连接,配置为存储计算机指令;The memory is connected to the processor and configured to store computer instructions;
    所述处理器,与所述存储器和所述显示器连接,配置为执行所述计算机指令以使得所述显示设备进行:The processor, connected to the memory and the display, is configured to execute the computer instructions to cause the display device to:
    计算待处理图像的灰度平均像素亮度,以及所述待处理图像分别在R通道、G通道以及B通道上的分量平均像素亮度;Calculate the grayscale average pixel brightness of the image to be processed, and the component average pixel brightness of the image to be processed on the R channel, the G channel and the B channel respectively;
    根据所述灰度平均像素亮度与所述R通道、G通道以及B通道上的分量平均像素亮度,确定所述待处理图像的关键颜色通道;Determine the key color channel of the image to be processed according to the gray average pixel brightness and the component average pixel brightness on the R channel, G channel, and B channel;
    根据所述待处理图像在所述关键颜色通道上的分量平均像素亮度确定目标亮度调整曲线;Determine the target brightness adjustment curve according to the average pixel brightness of the component of the image to be processed on the key color channel;
    利用所述目标亮度调整曲线对所述待处理图像进行亮度调整。Use the target brightness adjustment curve to adjust the brightness of the image to be processed.
  7. 根据权利要求6所述的显示设备,所述处理器还配置为执行所述计算机指令以使得所述显示设备进行:The display device of claim 6, the processor is further configured to execute the computer instructions to cause the display device to:
    根据所述R通道、G通道以及B通道上的分量平均像素亮度,计算出所述待处理图像分别在R通道、G通道以及B通道上的亮度分布占比;Calculate the proportion of the brightness distribution of the image to be processed on the R channel, G channel and B channel according to the average pixel brightness of the components on the R channel, G channel and B channel;
    将R通道、G通道以及B通道中,亮度分布占比大于占比阈值,且分量平均像素亮度大于所述灰度平均像素亮度的颜色通道,确定为所述待处理图像的关键颜色通道。In the R channel, the G channel, and the B channel, the color channel whose brightness distribution ratio is greater than the ratio threshold and the component average pixel brightness is greater than the grayscale average pixel brightness is determined as the key color channel of the image to be processed.
  8. 根据权利要求6所述的显示设备,所述处理器还配置为执行所述计算机指令以使得所述显示设备进行:The display device of claim 6, the processor is further configured to execute the computer instructions to cause the display device to:
    基于与所述关键颜色通道对应的低亮亮度阈值、中亮亮度阈值以及高亮亮度阈值,确定所述关键颜色通道上的分量平均像素亮度所属的亮度区间;Determine the brightness interval to which the average pixel brightness of the component on the key color channel belongs based on the low brightness brightness threshold, the medium brightness brightness threshold and the high brightness brightness threshold corresponding to the key color channel;
    将与所述关键颜色通道上的分量平均像素亮度所属的亮度区间对应的亮度调整曲线,确定为目标亮度调整曲线。The brightness adjustment curve corresponding to the brightness interval to which the component average pixel brightness on the key color channel belongs is determined as the target brightness adjustment curve.
  9. 根据权利要求6所述的显示设备,所述处理器还配置为执行所述计算机指令以使得所述显示设备进行:The display device of claim 6, the processor is further configured to execute the computer instructions to cause the display device to:
    基于所述关键颜色通道在所述待处理图像中确定关键处理区域;Determine a key processing area in the image to be processed based on the key color channel;
    利用所述目标亮度调整曲线调整所述关键处理区域中至少一个像素点的亮度。Use the target brightness adjustment curve to adjust the brightness of at least one pixel in the critical processing area.
  10. 根据权利要求9所述的显示设备,所述处理器还配置为执行所述计算机指令以使得所述显示设备进行:The display device of claim 9, the processor is further configured to execute the computer instructions to cause the display device to:
    分别统计所述待处理图像在R通道、G通道以及B通道上的灰度分布直方图,所述灰度分布直方图用于表示所述待处理图像中,颜色通道上的灰度处于各个灰阶区间的像素点的个数;Count the grayscale distribution histograms of the to-be-processed image on the R channel, G channel, and B channel respectively. The grayscale distribution histogram is used to indicate that the grayscale on the color channel is in each gray in the to-be-processed image. The number of pixels in the order interval;
    根据所述R通道、G通道以及B通道上的灰度分布直方图,确定各个灰阶区间上像素点个数最多的颜色通道;Determine the color channel with the largest number of pixels on each gray scale interval according to the gray distribution histogram on the R channel, G channel and B channel;
    将满足以下条件的灰阶区间确定为目标灰阶区间:像素点个数最多的颜色通道为所述关键颜色通道;The gray scale interval satisfying the following conditions is determined as the target gray scale interval: the color channel with the largest number of pixels is the key color channel;
    在所述待处理图像中,将在所述关键颜色通道上的灰度处于所述目标灰阶区间的像素点所组成的区域确定为关键处理区域。In the image to be processed, an area composed of pixels on the key color channel whose gray level is within the target gray scale interval is determined as a key processing area.
  11. 一种计算机可读的非易失性存储介质,其上存储有计算机指令,所述计算机指令被处理器执行时实现如权利要求1至5中任一项所述的方法。A computer-readable non-volatile storage medium having computer instructions stored thereon, which when executed by a processor implements the method of any one of claims 1 to 5.
PCT/CN2019/126786 2018-12-25 2019-12-19 Image processing method and apparatus WO2020135234A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811593713.8 2018-12-25
CN201811593713.8A CN109686342B (en) 2018-12-25 2018-12-25 Image processing method and device

Publications (1)

Publication Number Publication Date
WO2020135234A1 true WO2020135234A1 (en) 2020-07-02

Family

ID=66189338

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/126786 WO2020135234A1 (en) 2018-12-25 2019-12-19 Image processing method and apparatus

Country Status (2)

Country Link
CN (1) CN109686342B (en)
WO (1) WO2020135234A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109686342B (en) * 2018-12-25 2021-04-06 海信视像科技股份有限公司 Image processing method and device
CN110120021B (en) * 2019-05-05 2021-04-09 腾讯科技(深圳)有限公司 Image brightness adjusting method and device, storage medium and electronic device
CN110855958B (en) * 2019-11-18 2022-04-26 RealMe重庆移动通信有限公司 Image adjusting method and device, electronic equipment and storage medium
CN111554243B (en) * 2019-12-31 2022-04-12 海信视像科技股份有限公司 Brightness adjusting method and display device
WO2022174428A1 (en) * 2021-02-20 2022-08-25 Oppo广东移动通信有限公司 Image brightness adjustment method, image brightness adjustment apparatus, and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162078B2 (en) * 2002-12-20 2007-01-09 Fast Link Communication Corp. Automatic white balance correction method for image capturing apparatus
US20080079749A1 (en) * 2006-09-28 2008-04-03 Faraday Technology Corp. White balance method for image processing
CN101325035A (en) * 2007-06-15 2008-12-17 深圳Tcl工业研究院有限公司 Method and system for processing liquid crystal image
CN102129674A (en) * 2010-12-17 2011-07-20 北京优纳科技有限公司 Self-adaptation color balance correction method for color image
CN103123782A (en) * 2011-11-17 2013-05-29 晨星软件研发(深圳)有限公司 Panel color correction method and relevant color correction system
CN107610669A (en) * 2017-10-30 2018-01-19 青岛海信电器股份有限公司 Image gray-scale level luminance compensation method and device
CN109686342A (en) * 2018-12-25 2019-04-26 青岛海信电器股份有限公司 A kind of image processing method and device

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG153630A1 (en) * 2003-04-18 2009-07-29 Sharp Kk Color display device, color compensation method, color compensation program, and storage medium readable by computer
JP4436657B2 (en) * 2003-11-19 2010-03-24 三洋電機株式会社 Projection-type image display device
US20050123193A1 (en) * 2003-12-05 2005-06-09 Nokia Corporation Image adjustment with tone rendering curve
WO2006025120A1 (en) * 2004-09-01 2006-03-09 Mitsubishi Denki Kabushiki Kaisha Image display apparatus and image display method
JP5197923B2 (en) * 2006-03-31 2013-05-15 富士フイルム株式会社 projector
CN101894529A (en) * 2009-05-20 2010-11-24 承景科技股份有限公司 Color gamma generation system, method and display system thereof based on single gamma
WO2010150299A1 (en) * 2009-06-22 2010-12-29 株式会社 東芝 Liquid crystal display device
CN101996615B (en) * 2009-08-26 2012-11-21 群康科技(深圳)有限公司 Color enhancing method for display equipment
CN102122501B (en) * 2010-12-31 2013-09-11 福建华映显示科技有限公司 Device and method for adjusting backlight of red-green-blue-white (RGBW) light display system
US8897552B2 (en) * 2012-08-01 2014-11-25 Microsoft Corporation Setting an operating-system color using a photograph
CN104934016B (en) * 2015-05-08 2018-02-23 小米科技有限责任公司 Screen display method and device
CN106898026B (en) * 2017-03-15 2019-02-05 腾讯科技(深圳)有限公司 A kind of the dominant hue extracting method and device of picture
CN107424132B (en) * 2017-07-25 2020-07-07 西安电子科技大学 Optimization method for rapid image defogging
CN107644403B (en) * 2017-08-23 2021-02-09 天津大学 Method for correcting non-uniform color of image under severe environment condition

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162078B2 (en) * 2002-12-20 2007-01-09 Fast Link Communication Corp. Automatic white balance correction method for image capturing apparatus
US20080079749A1 (en) * 2006-09-28 2008-04-03 Faraday Technology Corp. White balance method for image processing
CN101325035A (en) * 2007-06-15 2008-12-17 深圳Tcl工业研究院有限公司 Method and system for processing liquid crystal image
CN102129674A (en) * 2010-12-17 2011-07-20 北京优纳科技有限公司 Self-adaptation color balance correction method for color image
CN103123782A (en) * 2011-11-17 2013-05-29 晨星软件研发(深圳)有限公司 Panel color correction method and relevant color correction system
CN107610669A (en) * 2017-10-30 2018-01-19 青岛海信电器股份有限公司 Image gray-scale level luminance compensation method and device
CN109686342A (en) * 2018-12-25 2019-04-26 青岛海信电器股份有限公司 A kind of image processing method and device

Also Published As

Publication number Publication date
CN109686342B (en) 2021-04-06
CN109686342A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
WO2020135234A1 (en) Image processing method and apparatus
WO2020038124A1 (en) Image contrast enhancement method and apparatus, and device and storage medium
CN109801240B (en) Image enhancement method and image enhancement device
US10565742B1 (en) Image processing method and apparatus
JP6615917B2 (en) Real-time video enhancement method, terminal, and non-transitory computer-readable storage medium
US8538147B2 (en) Methods and appartuses for restoring color and enhancing electronic images
CN103747225B (en) Based on the high dynamic range images double-screen display method of color space conversion
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
US10609303B2 (en) Method and apparatus for rapid improvement of smog/low-light-level image using mapping table
WO2021218603A1 (en) Image processing method and projection system
US8860806B2 (en) Method, device, and system for performing color enhancement on whiteboard color image
WO2019200640A1 (en) Color gamut mapping method and device
WO2021180173A1 (en) Image processing method and apparatus, device and storage medium
WO2021135683A1 (en) Display terminal adjustment method and display terminal
JP2002204353A (en) Estimation method for image state, method for image correction and correction apparatus
CN111192205A (en) Image defogging method and system and computer readable storage medium
TW202004662A (en) Method and computer system of image enhancement
JP5327766B2 (en) Memory color correction in digital images
CN116843566A (en) Tone mapping method, tone mapping device, display device and storage medium
JP2009010636A (en) Adaption histogram equalization method, and adaption histogram equalization apparatus
WO2018099087A1 (en) System and method for dynamic range expansion of digital image, and storage medium
WO2021258872A1 (en) Interface display method and device, and computer readable storage medium
WO2022246663A1 (en) Image processing method, device and system, and storage medium
CN109996017B (en) Image adjusting method and terminal thereof
WO2022116718A1 (en) Display adjustment method and apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19904832

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19904832

Country of ref document: EP

Kind code of ref document: A1