CN115410524A - Image processing method and image display device - Google Patents
Image processing method and image display device Download PDFInfo
- Publication number
- CN115410524A CN115410524A CN202211226570.3A CN202211226570A CN115410524A CN 115410524 A CN115410524 A CN 115410524A CN 202211226570 A CN202211226570 A CN 202211226570A CN 115410524 A CN115410524 A CN 115410524A
- Authority
- CN
- China
- Prior art keywords
- brightness
- value
- gamma
- state
- gray
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2300/00—Aspects of the constitution of display devices
- G09G2300/02—Composition of display devices
- G09G2300/026—Video wall, i.e. juxtaposition of a plurality of screens to create a display screen of bigger dimensions
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
- G09G2320/0271—Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
- G09G2320/0276—Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping for the purpose of adaptation to the characteristics of a display device, i.e. gamma correction
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/066—Adjustment of display parameters for control of contrast
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2330/00—Aspects of power supply; Aspects of display protection and defect management
- G09G2330/02—Details of power systems and of start or stop of display operation
- G09G2330/021—Power management, e.g. power saving
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Picture Signal Circuits (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明是有关于一种影像处理方法以及影像显示装置,且特别是有关于一种可动态调整伽玛校正曲线(Gamma Correction Curve)的影像处理方法以及影像显示装置。The present invention relates to an image processing method and an image display device, and in particular to an image processing method and an image display device capable of dynamically adjusting a gamma correction curve.
背景技术Background technique
现今发光二极管(light-emitting diode,LED)电视墙,于高解析度的应用上,例如4K解析度甚至8K解析度的应用上,多以多数个灯箱拼接而成。然而LED电视墙的耗电量将随所拼接的灯箱数量而倍数成长。以使用480×270解析度的LED灯箱拼接成8K解析度的LED电视墙为例,假设单一LED灯箱于亮景耗电为80瓦,则拼接成8K解析度(7680×4320解析度)的LED电视墙,需要256个LED灯箱,则耗电量为20480瓦,为单一LED灯箱耗电量的256倍。因此于现有的高解析度LED电视墙的应用上耗电甚巨。Today's light-emitting diode (LED) video wall is mostly composed of multiple light boxes for high-resolution applications, such as 4K resolution or even 8K resolution applications. However, the power consumption of the LED video wall will grow exponentially with the number of spliced light boxes. Take the 480×270 resolution LED light boxes spliced together to form an 8K resolution LED video wall as an example. Assuming that a single LED light box consumes 80 watts of power in a bright scene, then splicing it into an 8K resolution (7680×4320 resolution) LED video wall The TV wall requires 256 LED light boxes, and the power consumption is 20480 watts, which is 256 times the power consumption of a single LED light box. Therefore, the application of the existing high-resolution LED video wall consumes a lot of power.
为了改善高解析度LED电视墙的应用的耗电量问题,现有的普遍作法为将LED电视墙的每个像素的亮度灰阶值线性调降,以达省电目的。然而由于影像的像素间对比度与影像的像素间的亮度灰阶值差高度相关,若仅将LED电视墙的每个像素的亮度灰阶值线性调降,则像素间的亮度灰阶值差亦随之减少,而降低了影像画面的对比度。如何兼顾LED电视墙的耗电量与画面对比度,为高解析度LED电视墙应用上的重要课题。In order to improve the power consumption problem of the high-resolution LED video wall application, the existing common practice is to linearly reduce the brightness grayscale value of each pixel of the LED video wall to achieve the purpose of power saving. However, since the pixel-to-pixel contrast of an image is highly correlated with the brightness gray-scale value difference between image pixels, if only the brightness gray-scale value of each pixel of the LED video wall is linearly lowered, the brightness gray-scale value difference between pixels will also As a result, the contrast of the image screen is reduced. How to balance the power consumption and picture contrast of LED video wall is an important issue in the application of high-resolution LED video wall.
发明内容Contents of the invention
本发明提供一种影像处理方法以及一种影像显示装置,可依据输入影像资料的亮度信息,动态调整伽玛校正曲线(Gamma Correction Curve),以兼顾显示屏幕的耗电量以及显示画面的对比度。The invention provides an image processing method and an image display device, which can dynamically adjust the gamma correction curve (Gamma Correction Curve) according to the brightness information of the input image data, so as to take into account the power consumption of the display screen and the contrast of the display screen.
本发明的影像处理方法,包括计算影像资料的多个像素的多个亮度灰阶值的亮度信息,使第一子伽玛校正曲线以及第二子伽玛校正曲线在转折点相互结合,以及依据亮度信息以设定转折点的位置。其中第一子伽玛校正曲线具有第一伽玛值,第二子伽玛校正曲线具有第二伽玛值,第一伽玛值与第二伽玛值不相同。其中第一子伽玛校正曲线对应第一亮度灰阶值范围,第二子伽玛校正曲线对应第二亮度灰阶值范围。第一亮度灰阶值范围与第二亮度灰阶值范围不重叠且第一亮度灰阶值范围中的任一亮度灰阶值小于第二亮度灰阶值范围中的任一亮度灰阶值。The image processing method of the present invention includes calculating the luminance information of multiple luminance grayscale values of multiple pixels of the image data, combining the first sub-gamma correction curve and the second sub-gamma correction curve at turning points, and according to the brightness information to set the location of the turning point. Wherein the first sub-gamma correction curve has a first gamma value, the second sub-gamma correction curve has a second gamma value, and the first gamma value is different from the second gamma value. Wherein the first sub-gamma correction curve corresponds to the first brightness grayscale value range, and the second sub-gamma correction curve corresponds to the second brightness grayscale value range. The first brightness grayscale value range does not overlap with the second brightness grayscale value range, and any brightness grayscale value in the first brightness grayscale value range is smaller than any brightness grayscale value in the second brightness grayscale value range.
本发明的影像显示装置包括显示屏幕以及控制器。显示屏幕用以显示输出影像,控制器耦接于显示屏幕。控制器经配置以接收影像资料,计算影像资料的多个像素的多个亮度灰阶值的亮度信息,使第一子伽玛校正曲线以及第二子伽玛校正曲线在转折点相互结合,依据亮度信息以设定转折点的位置,依据目标伽玛校正曲线将影像资料的多个亮度灰阶值转换成多个输出亮度灰阶值,以及依据影像资料以及多个输出亮度灰阶值,将影像资料转换成输出影像,并输出输出影像至显示屏幕。其中第一子伽玛校正曲线具有第一伽玛值,第二子伽玛校正曲线具有第二伽玛值,第一伽玛值与第二伽玛值不相同。其中第一子伽玛校正曲线对应第一亮度灰阶值范围,第二子伽玛校正曲线对应第二亮度灰阶值范围。第一亮度灰阶值范围与第二亮度灰阶值范围不重叠且第一亮度灰阶值范围中的任一亮度灰阶值小于第二亮度灰阶值范围中的任一亮度灰阶值。The image display device of the present invention includes a display screen and a controller. The display screen is used for displaying output images, and the controller is coupled to the display screen. The controller is configured to receive image data, calculate brightness information of multiple brightness gray scale values of multiple pixels of the image data, make the first sub-gamma correction curve and the second sub-gamma correction curve combine with each other at the turning point, according to the brightness Information to set the position of the turning point, convert multiple brightness grayscale values of the image data into multiple output brightness grayscale values according to the target gamma correction curve, and convert the image data according to the image data and the multiple output brightness grayscale values Convert to an output image, and output the output image to the display screen. Wherein the first sub-gamma correction curve has a first gamma value, the second sub-gamma correction curve has a second gamma value, and the first gamma value is different from the second gamma value. Wherein the first sub-gamma correction curve corresponds to the first brightness grayscale value range, and the second sub-gamma correction curve corresponds to the second brightness grayscale value range. The first brightness grayscale value range does not overlap with the second brightness grayscale value range, and any brightness grayscale value in the first brightness grayscale value range is smaller than any brightness grayscale value in the second brightness grayscale value range.
基于上述,本发明的影像处理方法以及影像显示装置可依据输入影像资料的亮度信息,动态调整伽玛校正曲线(Gamma Correction Curve),以在各种不同亮度信息的影像资料中,视不同的亮度信息动态调整对应的伽玛校正曲线,以在显示输出影像时,可节省耗电量并且提高对比度。Based on the above, the image processing method and image display device of the present invention can dynamically adjust the Gamma Correction Curve (Gamma Correction Curve) according to the brightness information of the input image data, so that different brightness The information dynamically adjusts the corresponding gamma correction curve to save power consumption and improve contrast when displaying output images.
附图说明Description of drawings
图1是本发明的影像处理方法的一实施例的流程图。FIG. 1 is a flowchart of an embodiment of the image processing method of the present invention.
图2是本发明的影像处理方法的一实施例的目标伽玛校正曲线的结合示意图。FIG. 2 is a combined schematic diagram of a target gamma correction curve of an embodiment of the image processing method of the present invention.
图3A、图3B是本发明的影像处理方法的一实施例中,针对不同的亮度信息设定转折点的位置的示意图。FIG. 3A and FIG. 3B are schematic diagrams of setting turning point positions for different brightness information in an embodiment of the image processing method of the present invention.
图4是本发明的影像显示装置的一实施例的方框图。FIG. 4 is a block diagram of an embodiment of the image display device of the present invention.
图5A、图5B是本发明的本发明的影像处理方法的一实施例中,针对不同的影像资料计算亮度信息的示意图。5A and 5B are schematic diagrams of calculating brightness information for different image data in an embodiment of the image processing method of the present invention.
图6A、图6B是本发明的影像处理方法的一实施例中,针对不同的亮度信息设定转折点的示意图。6A and 6B are schematic diagrams of setting turning points for different brightness information in an embodiment of the image processing method of the present invention.
图7A、图7B是本发明的影像处理方法的一实施例中,针对不同的亮度信息设定伽玛值的示意图。7A and 7B are schematic diagrams of setting gamma values for different brightness information in an embodiment of the image processing method of the present invention.
图8A、图8B是本发明的影像处理方法的一实施例中,针对不同的亮度信息设定转折点以及伽玛值的示意图。8A and 8B are schematic diagrams of setting turning points and gamma values for different brightness information in an embodiment of the image processing method of the present invention.
图9A~图9C是本发明的影像显示装置的一实施例中,所输入的影像资料以及输出影像的亮度灰阶值的直方图比较。9A to 9C are histogram comparisons of brightness gray scale values of input image data and output images in an embodiment of the image display device of the present invention.
其中,附图标记说明如下:Wherein, the reference signs are explained as follows:
400:影像显示装置400: Image display device
401:显示屏幕401: display screen
402:控制器402: Controller
C1:第一子伽玛校正曲线C1: the first sub-gamma correction curve
C1_1~C1_4:候选第一子伽玛校正曲线C1_1~C1_4: Candidate first sub-gamma correction curve
C2:第二子伽玛校正曲线C2: Second sub-gamma correction curve
C2_1~C2_4:候选第二子伽玛校正曲线C2_1~C2_4: candidate second sub-gamma correction curve
IIM:影像资料IIM: image data
L1、L1’:第一平均亮度灰阶值L1, L1': the first average brightness grayscale value
L2、L2’:第二平均亮度灰阶值L2, L2': the second average brightness grayscale value
Lall、Lall’:全域平均亮度灰阶值Lall, Lall’: the global average brightness grayscale value
LD、LD’:亮度程度LD, LD': brightness level
S101~S103:步骤S101~S103: steps
TC、TC’、TC_sel、TC_sel’、TC_fix、TC_fix’:目标伽玛校正曲线TC, TC’, TC_sel, TC_sel’, TC_fix, TC_fix’: target gamma correction curve
TP、TP’:转折点TP, TP’: turning points
TP_I、TP_I’:输入亮度灰阶值TP_I, TP_I': input brightness gray scale value
VIM:输出影像VIM: output image
具体实施方式Detailed ways
现请参照图1,图1是依照本发明一实施例的影像处理方法的流程图,本发明的影像处理方法可用于显示装置,或控制显示装置显示影像的控制器。于步骤S101中,显示装置计算影像资料的多个像素的多个亮度灰阶值的亮度信息。其中影像资料为所输入的欲显示画面的影像资料,影像资料中具有多个像素资料。本发明的影像处理方法可计算多个像素的多个亮度灰阶值,以获得亮度信息。亮度信息可以是影像资料中多个像素的亮度灰阶值的相关信息,例如为亮度灰阶值的大小、亮度灰阶值的分布直方图、或是多个像素的多个亮度灰阶值的各种统计值,亦可是输入影像资料的欲显示画面整体的亮度状态,例如欲显示画面为一亮景或一暗景的信息。Please refer to FIG. 1 . FIG. 1 is a flowchart of an image processing method according to an embodiment of the present invention. The image processing method of the present invention can be used in a display device or a controller for controlling the display device to display images. In step S101 , the display device calculates luminance information of a plurality of luminance grayscale values of a plurality of pixels of the image data. The image data is the input image data of the image to be displayed, and the image data has a plurality of pixel data. The image processing method of the present invention can calculate multiple brightness grayscale values of multiple pixels to obtain brightness information. The luminance information may be information related to the luminance grayscale values of multiple pixels in the image data, such as the size of the luminance grayscale values, the distribution histogram of the luminance grayscale values, or the information of multiple luminance grayscale values of multiple pixels Various statistical values can also be the overall brightness state of the image to be displayed in the input image data, such as information about whether the image to be displayed is a bright scene or a dark scene.
于步骤S102中,显示装置使第一伽玛子校正曲线以及第二子伽玛子校正曲线在转折点相互结合以产生目标伽玛校正曲线。其中第一伽玛子校正曲线以及第二子伽玛校正曲线具有不同的伽玛值。换言之,本发明的影像处理方法所产生的伽玛校正曲线(目标伽玛校正曲线)是由两条不同伽玛值的曲线所结合而成。可同时参照图2的例示,图2是依照本发明一实施例的目标伽玛校正曲线的结合示意图。值得注意的是,第一子伽玛校正曲线C1以及第二子伽玛校正曲线C2可对应不同的伽玛值,因此如图2所示,第一子伽玛校正曲线C1以及第二子伽玛校正曲线C2两者的曲率表现并不相同。第一子伽玛校正曲线C1与第二子伽玛校正曲线C2在转折点TP处结合而产生目标伽玛校正曲线TC。在本实施例中,第一子伽玛校正曲线C1构成目标伽玛校正曲线TC的亮度灰阶值范围与第二子伽玛校正曲线C2构成目标伽玛校正曲线TC的亮度灰阶值范围不重叠,而且在本实施例中,第一子伽玛校正曲线C1的亮度灰阶值范围中的任一亮度灰阶值小于第二子伽玛校正曲线C2的亮度灰阶值范围中的任一亮度灰阶值。In step S102 , the display device combines the first gamma sub-correction curve and the second sub-gamma sub-correction curve at turning points to generate a target gamma correction curve. Wherein the first sub-gamma correction curve and the second sub-gamma correction curve have different gamma values. In other words, the gamma correction curve (target gamma correction curve) generated by the image processing method of the present invention is formed by combining two curves with different gamma values. Reference can also be made to the illustration of FIG. 2 , which is a combined schematic diagram of the target gamma correction curve according to an embodiment of the present invention. It is worth noting that the first sub-gamma correction curve C1 and the second sub-gamma correction curve C2 can correspond to different gamma values, so as shown in Figure 2, the first sub-gamma correction curve C1 and the second sub-gamma correction curve The curvature performance of the two calibration curves C2 is not the same. The first sub-gamma correction curve C1 is combined with the second sub-gamma correction curve C2 at the turning point TP to generate the target gamma correction curve TC. In this embodiment, the first sub-gamma correction curve C1 constitutes the range of brightness grayscale values of the target gamma correction curve TC and the second sub-gamma correction curve C2 constitutes the range of brightness grayscale values of the target gamma correction curve TC. overlap, and in this embodiment, any brightness gray-scale value in the brightness gray-scale value range of the first sub-gamma correction curve C1 is smaller than any brightness gray-scale value range of the second sub-gamma correction curve C2 Brightness grayscale value.
于步骤S103中,显示装置依据步骤S101中计算出的影像资料的亮度信息,设定转折点TP的位置。可同时参照图3A、图3B的例示,图3A、图3B是依照本发明一实施例的影像处理方法中,针对不同的亮度信息产生目标伽玛校正曲线的示意图。以图3A、图图3B为例,于图3A的实施例中,显示装置依据一影像资料的一亮度信息而设定转折点TP的位置,如图3A所示,转折点TP的位置对应至输入亮度灰阶值TP_I处;相对地,于图3B的实施例中,显示装置依据另一影像资料的另一亮度信息而设定转折点TP’的位置,如图3B所示,转折点TP’的位置对应至输入亮度灰阶值TP_I’处。In step S103, the display device sets the position of the turning point TP according to the brightness information of the image data calculated in step S101. 3A and FIG. 3B can be referred to simultaneously. FIG. 3A and FIG. 3B are schematic diagrams of generating target gamma correction curves for different brightness information in an image processing method according to an embodiment of the present invention. Take FIG. 3A and FIG. 3B as an example. In the embodiment of FIG. 3A, the display device sets the position of the turning point TP according to a brightness information of an image data. As shown in FIG. 3A, the position of the turning point TP corresponds to the input brightness grayscale value TP_I; relatively, in the embodiment of FIG. 3B, the display device sets the position of the turning point TP' according to another brightness information of another image data. As shown in FIG. 3B, the position of the turning point TP' corresponds to To the input brightness grayscale value TP_I'.
由上述图1的步骤S103以及图3A、图3B可以看出,由于图3A、图3B是依据不同的亮度信息决定转折点TP、TP’的位置,因此目标伽玛校正曲线TC以及TC’两者不相同。由于转折点TP、TP’为结合具不同伽玛值的第一子伽玛校正曲线以及第二子伽玛校正曲线之处,因此目标伽玛校正曲线TC以及TC’有着不同的转折表现。例如图3A的转折点TP的位置对应的输入亮度灰阶值TP_I为相对高的一第一数值,因此目标伽玛校正曲线TC的第一子伽玛校正曲线对应的第一亮度灰阶值范围较第二子伽玛校正曲线对应的第二亮度灰阶值范围大,由于转折点TP左侧的第一子伽玛校正曲线对应的较大范围部分的亮度灰阶值,如图3A所示,于目标伽玛校正曲线中,输出亮度灰阶值受到压抑,因此目标伽玛校正曲线TC有着较佳的省电效果。且于图3A实施例中,于转折点TP附近,由于目标伽玛校正曲线TC的输出亮度灰阶值随输入亮度灰阶值陡升,因此于转折点TP附近(高亮度的灰阶值区域)保有良好的对比度。又例如图3B的实施例中,转折点TP’的位置对应的输入亮度灰阶值TP_I’为相对低的一第二数值。由于转折点TP’附近的输出亮度灰阶值如图3B所示,随输入亮度灰阶值增加而陡升,因此目标伽玛校正曲线TC’于较暗的亮度灰阶值区域(转折点TP’附近)有着较佳的对比度。It can be seen from step S103 in FIG. 1 and FIG. 3A and FIG. 3B that the positions of turning points TP and TP' are determined according to different brightness information in FIG. 3A and FIG. Are not the same. Since the turning points TP and TP' are where the first sub-gamma correction curve and the second sub-gamma correction curve with different gamma values are combined, the target gamma correction curves TC and TC' have different turning performances. For example, the input brightness grayscale value TP_I corresponding to the position of the turning point TP in FIG. The second luminance grayscale value range corresponding to the second sub-gamma correction curve is large, because the luminance grayscale value of the larger range part corresponding to the first sub-gamma correction curve on the left side of the turning point TP, as shown in FIG. 3A, is at In the target gamma correction curve, the grayscale value of the output brightness is suppressed, so the target gamma correction curve TC has a better power saving effect. In the embodiment of FIG. 3A , near the turning point TP, since the output brightness grayscale value of the target gamma correction curve TC rises steeply with the input brightness grayscale value, there is good contrast. For another example, in the embodiment of FIG. 3B , the input brightness gray scale value TP_I' corresponding to the position of the turning point TP' is a relatively low second value. Since the output luminance gray-scale value near the turning point TP' increases sharply with the increase of the input luminance gray-scale value as shown in Figure 3B, the target gamma correction curve TC' is in the darker luminance gray-scale value area (near the turning point TP' ) has better contrast.
值得一提的是,由于在本发明中目标伽玛校正曲线转折点的位置是由亮度信息所决定,因此本发明的影像处理方法可依据亮度信息决定合适的转折点位置。举例而言,若亮度信息显示所输入的影像资料为亮景画面,则本发明的影像处理方法可如同图3A所示将转折点TP设定于对应于输入亮度灰阶值TP_I为高值处,如此一来目标伽玛校正曲线TC将使整体显示画面具较佳的省电效果,且于画面的高亮度区保有良好的对比度。若亮度信息显示所输入的影像资料为暗景画面,则本发明的影像处理方法可如同图3B所示,将转折点TP’设定于对应输入亮度灰阶值TP_I’为低值处,如此一来目标伽玛校正曲线TC’将提升画面的低亮度区的对比度。It is worth mentioning that since the position of the turning point of the target gamma correction curve is determined by the brightness information in the present invention, the image processing method of the present invention can determine a suitable turning point position according to the brightness information. For example, if the luminance information indicates that the input image data is a bright scene image, then the image processing method of the present invention can set the turning point TP at a high value corresponding to the input luminance grayscale value TP_I as shown in FIG. 3A , In this way, the target gamma correction curve TC will make the overall display screen have a better power-saving effect and maintain good contrast in the high-brightness area of the screen. If the luminance information shows that the input image data is a dark scene image, then the image processing method of the present invention can set the turning point TP' at a place where the corresponding input luminance gray scale value TP_I' is a low value, as shown in FIG. 3B , so that The target gamma correction curve TC' will enhance the contrast of the low-brightness area of the image.
现请参照图4,图4为本发明的影像显示装置的一实施例的方框图。在图4的影像显示装置400中,包括显示屏幕401以及耦接至显示屏幕401的控制器402。显示屏幕401用以显示输出影像VIM。控制器402可透过有线或无线的方式接收所输入的影像资料IIM,并且可执行本发明各种实施例的影像处理方法,例如图1中S101~S103的步骤,在此不赘述。在控制器402执行本发明的影像处理方法产生目标伽玛校正曲线后,控制器402可依据所产生的目标伽玛校正曲线,将所输入的影像资料IIM中多个像素的多个亮度灰阶值转换成对应的多个输出亮度灰阶值。控制器402可依据影像资料IIM中的多个像素的色彩信息以及所述输出亮度灰阶值,将所输入的影像资料转换成输出影像VIM。控制器401还将输出影像VIM以有线或无线的方式,将输出影像VIM输出至显示屏幕401。Please refer to FIG. 4 , which is a block diagram of an embodiment of the image display device of the present invention. The
依据上述图1的影像处理方法以及图4的影像显示装置,本发明的影像处理方法以及影像显示装置,可依据亮度信息产生对应的目标伽玛校正曲线,以在显示输出影像时,基于所输入的影像资料的亮度信息,可节省耗电量并可提高对比度。According to the above-mentioned image processing method in FIG. 1 and the image display device in FIG. 4 , the image processing method and the image display device of the present invention can generate a corresponding target gamma correction curve according to brightness information, so that when displaying an output image, based on the input The brightness information of the video data can save power consumption and improve the contrast.
在本发明的实施例中,控制器402可依据各种色彩空间模型,计算影像资料IIM的多个像素的多个亮度灰阶值。例如在本发明的一实施例中,当控制器402依据色相饱和度明度(Hue,Saturation,Value,HSV)色彩空间模型计算亮度灰阶值时,可计算明度(Value,V)值当成亮度灰阶值。在本发明的另一实施例中,当控制器402依据色相饱和度亮度(Hue,Saturation,Lightness,HSL)色彩空间模型计算亮度灰阶值时,可计算亮度(Lightness,L)值当成亮度灰阶值。在本发明的另一实施例中,当控制器402依据色相饱和度强度(Hue,Saturation,Intensity,HSI)色彩空间模型计算亮度灰阶值时,可计算强度(Intensity,I)值当成亮度灰阶值。在本发明的另一实施例中,当控制器402依据YCbCr色彩空间模型计算亮度灰阶值时,可计算代表流明(Luminance)值的Y值当成亮度灰阶值。在本发明的另一实施例中,当控制器402依据CIELAB色彩空间模型计算亮度灰阶值时,可计算代表黑白亮度值的L*值当成亮度灰阶值。在本发明中,亮度灰阶值的计算并不限于上述实施例的限制,还可依据任意色彩空间模型计算影像资料中像素的各色度强度值,以获得亮度灰阶值。In the embodiment of the present invention, the
在本发明的一实施例中,如图2所示,对应至低输入亮度灰阶值的第一子伽玛校正曲线C1具有凹口向上的曲率表现,对应至高输入亮度灰阶值的第二子伽玛校正曲线C2具有凹口向下的曲率表现。如此一来,在转折点TP附近,目标伽玛校正曲线TC具有随输入的亮度灰阶值增加而输出的亮度灰阶值陡升的特性。也就是说在转折点TP附近,目标伽玛校正曲线TC将会强化输出的亮度灰阶值的对比度。在本发明的一实施例中,第一子伽玛校正曲线的伽玛值大于1,第二子伽玛校正曲线的伽玛值小于1。In an embodiment of the present invention, as shown in FIG. 2 , the first sub-gamma correction curve C1 corresponding to the low input brightness grayscale value has a notch upward curvature performance, and the second sub-gamma correction curve C1 corresponding to the high input brightness grayscale value The sub-gamma correction curve C2 has a notched downward curvature performance. In this way, near the turning point TP, the target gamma correction curve TC has the characteristic that the output grayscale value of brightness rises sharply as the grayscale value of the input brightness increases. That is to say, near the turning point TP, the target gamma correction curve TC will strengthen the contrast of the output brightness gray scale value. In an embodiment of the present invention, the gamma value of the first sub-gamma correction curve is greater than 1, and the gamma value of the second sub-gamma correction curve is less than 1.
在本发明的一实施例中,如图3A、图3B所示,转折点TP所对应的输入亮度灰阶值TP_I将等于转折点TP所对应的输出亮度灰阶值,转折点TP’所对应的输入亮度灰阶值TP_I’将等于转折点TP’所对应的输出亮度灰阶值。也就是说转折点TP、TP’将分别位于目标伽玛校正曲线TC、TC’与输入等于输出的直线(如图3A、图3B所示的斜线虚线)的交会点上。也就是说在转折点TP附近,目标伽玛校正曲线TC将使输出的亮度灰阶值与输入的亮度灰阶值的数值接近。In an embodiment of the present invention, as shown in FIG. 3A and FIG. 3B , the input brightness grayscale value TP_I corresponding to the turning point TP will be equal to the output brightness grayscale value corresponding to the turning point TP, and the input brightness value corresponding to the turning point TP' The grayscale value TP_I' will be equal to the output brightness grayscale value corresponding to the turning point TP'. That is to say, the turning points TP and TP' are respectively located at the intersection points of the target gamma correction curves TC and TC' and the straight line where the input equals the output (the oblique dotted line shown in FIG. 3A and FIG. 3B ). That is to say, near the turning point TP, the target gamma correction curve TC will make the output gray scale value of brightness close to the value of the input gray scale value of brightness.
在本发明的一实施例中,如图3A、图3B所示的目标伽玛校正曲线TC、TC’,在输入亮度灰阶值为最大值处(如同图中所示TC、TC’末端),目标伽玛校正曲线TC、TC’所对应的输出亮度灰阶值等于输入亮度灰阶值。也就是说目标伽玛校正曲线TC、TC’的末端将与输入等于输出的直线(如图3A、图3B所示的斜线虚线)交会。如此一来,即使经过本发明的影像处理方法的目标伽玛校正曲线的转换,输出影像的最大亮度灰阶值将与所输入的影像资料的最大亮度灰阶值相等,本发明的影像处理方法可不改变影像资料的最大亮度。In an embodiment of the present invention, the target gamma correction curves TC and TC' as shown in FIG. 3A and FIG. 3B are at the maximum value of the input brightness grayscale value (as shown in the figure at the end of TC and TC') , the output brightness gray scale value corresponding to the target gamma correction curve TC, TC' is equal to the input brightness gray scale value. That is to say, the ends of the target gamma correction curves TC, TC' will intersect with the straight line where the input is equal to the output (the oblique dotted line shown in FIG. 3A and FIG. 3B ). In this way, even after the conversion of the target gamma correction curve of the image processing method of the present invention, the maximum brightness grayscale value of the output image will be equal to the maximum brightness grayscale value of the input image data. The image processing method of the present invention The maximum brightness of the image data may not be changed.
现请参考图1的步骤S101,在本发明的一实施例中,计算影像资料的像素的灰阶值的亮度信息的步骤S101,可包括计算亮度灰阶值的全域平均亮度灰阶值Lall,计算亮度灰阶值中小于该全域平均亮度灰阶值Lall的多个亮度灰阶值的第一平均亮度灰阶值L1,计算亮度灰阶值中不小于全域平均亮度灰阶值Lall的多个亮度灰阶值的一第二平均亮度灰阶值L2,以及计算第一平均亮度灰阶值L1以及第二平均亮度灰阶值L2以获得亮度状态以及亮度程度,亮度状态包括第一亮度状态以及第二亮度状态。Please refer to step S101 of FIG. 1. In one embodiment of the present invention, the step S101 of calculating the brightness information of the gray scale value of the pixel of the image data may include calculating the global average brightness gray scale value Lall of the brightness gray scale value, Calculate the first average brightness gray-scale value L1 of the brightness gray-scale values that are smaller than the global average brightness gray-scale value Lall, and calculate the first average brightness gray-scale value L1 of the brightness gray-scale values that are not less than the global average brightness gray-scale value Lall A second average brightness gray-scale value L2 of the brightness gray-scale value, and calculate the first average brightness gray-scale value L1 and the second average brightness gray-scale value L2 to obtain the brightness state and brightness degree, the brightness state includes the first brightness state and Second brightness state.
在本发明的一实施例中,第一亮度状态可为所输入的影像资料的影像画面的暗景状态,第二亮度状态可为影像资料的影像画面的亮景状态;亮度程度可为影像资料的影像画面的偏亮或偏暗的程度。微控制器或影像显示装置可依据计算第一平均亮度灰阶值L1以及第二平均亮度灰阶值L2以获得亮度状态为第一亮度状态或第二亮度状态以及亮度程度。In an embodiment of the present invention, the first brightness state may be the dark scene state of the image frame of the input image data, the second brightness state may be the bright scene state of the image frame of the image data; the brightness degree may be the image data The brightness or darkness of the image screen. The microcontroller or the image display device can calculate the first average brightness grayscale value L1 and the second average brightness grayscale value L2 to obtain the brightness state as the first brightness state or the second brightness state and the brightness level.
现请参照图5A、图5B,图5A、图5B是依照本发明一实施例的针对不同的影像资料计算亮度信息的示意图。图5A是一亮景的影像资料的亮度灰阶直方图,图5B是一暗景的影像资料的亮度灰阶直方图。在图5A亮景的实施例中,控制器或影像显示装置可计算全域平均亮度灰阶值Lall,例如为216。控制器或影像显示装置还计算全域平均亮度灰阶值Lall左侧的亮度灰阶值的平均以获得低亮度灰阶部分的第一平均亮度灰阶值L1,例如为173,以及计算全域平均亮度灰阶值Lall右侧的亮度灰阶值的平均以获得高亮度灰阶部分的第二平均亮度灰阶值L2,例如为237。同样地,在图5B暗景的实施例中,控制器或影像显示装置可计算全域平均亮度灰阶值Lall’,例如为76,第一平均亮度灰阶值L1’,例如为37,以及第二平均亮度灰阶值L2’,例如为119。依据上述实施例可看出,控制器或影像显示装置可依据计算平均亮度灰阶值L1、L1’、以及第二平均亮度灰阶值L2、L2’来判断场景状态。Please refer to FIG. 5A and FIG. 5B . FIG. 5A and FIG. 5B are schematic diagrams of calculating brightness information for different image data according to an embodiment of the present invention. FIG. 5A is a brightness gray scale histogram of image data of a bright scene, and FIG. 5B is a brightness gray scale histogram of image data of a dark scene. In the embodiment of the bright scene in FIG. 5A , the controller or the image display device can calculate the global average brightness grayscale value Lall, which is 216, for example. The controller or the image display device also calculates the average of the brightness gray-scale values on the left side of the global average brightness gray-scale value Lall to obtain the first average brightness gray-scale value L1 of the low brightness gray-scale part, for example, 173, and calculates the global average brightness The average of the brightness gray-scale values on the right side of the gray-scale value Lall is used to obtain the second average brightness gray-scale value L2 of the high-brightness gray-scale part, for example, 237. Similarly, in the embodiment of the dark scene in FIG. 5B, the controller or the image display device can calculate the global average brightness grayscale value Lall', for example, 76, the first average brightness grayscale value L1', for example, 37, and the first average brightness grayscale value L1', for example, 37, and The second average brightness grayscale value L2' is, for example, 119. According to the above embodiments, it can be seen that the controller or the image display device can judge the scene state according to the calculated average brightness gray scale values L1, L1' and the second average brightness gray scale values L2, L2'.
在本发明的一实施例中,控制器或影像显示装置计算第一平均亮度灰阶值以及第二平均亮度灰阶值以获得该亮度状态的步骤包括:比较第一平均亮度灰阶值与第一阈值的大小以及比较第二平均亮度灰阶值与第二阈值的大小以获得该亮度状态。在本发明的一实施例中,第一阈值可为低亮度灰阶部分平均亮度灰阶值的阈值,所述第一阈值可例如为80,第二阈值可为高亮度灰阶部分平均亮度灰阶值的阈值,所述第二阈值可例如为160。在本发明的一实施例中,若第一平均亮度灰阶值小于第一阈值且第二平均亮度灰阶值小于第二阈值时,可获得该亮度状态为一暗景场景状态的第一亮度状态;若第一平均亮度灰阶值大于第一阈值且第二平均亮度灰阶值大于第二阈值时,可获得该亮度状态为一亮景场景状态的第二亮度状态。In an embodiment of the present invention, the step of calculating the first average brightness gray scale value and the second average brightness gray scale value to obtain the brightness state by the controller or the image display device includes: comparing the first average brightness gray scale value with the second average brightness gray scale value a threshold value and comparing the second average brightness grayscale value with the second threshold value to obtain the brightness state. In an embodiment of the present invention, the first threshold may be the threshold of the average luminance grayscale value of the low luminance grayscale part, the first threshold may be, for example, 80, and the second threshold may be the average luminance grayscale value of the high luminance grayscale part. The second threshold may be 160, for example. In an embodiment of the present invention, if the first average brightness grayscale value is less than the first threshold and the second average brightness grayscale value is smaller than the second threshold, the brightness state can be obtained as the first brightness of a dark scene state State: if the first average brightness grayscale value is greater than the first threshold and the second average brightness grayscale value is greater than the second threshold, the brightness state can be obtained as a second brightness state of a bright scene state.
依据上述实施例搭配图5A、图5B的影像资料的场景为例,在图5A的场景中,第一平均亮度灰阶值L1为173,大于数值为80的第一阈值,第二平均亮度灰阶值L2为237,亦大于数值为160的第二阈值。因此可判断图5A的影像资料的场景为亮景场景。因此控制器或影像显示装置可透过计算第一平均亮度灰阶值L1以及第二平均亮度灰阶值L2,判断出场景为一亮景场景,从而获得图5A的影像资料的亮度状态为第二亮度状态。同理,在5B的场景中,控制器或影像显示装置可透过计算第一平均亮度灰阶值L1’以及第二平均亮度灰阶值L2’,判断出场景为一暗景场景,从而获得图5B的影像资料的亮度状态为第一亮度状态。According to the above-mentioned embodiment with the scene of image data shown in FIG. 5A and FIG. 5B as an example, in the scene shown in FIG. The level value L2 is 237, which is also greater than the second threshold value of 160. Therefore, it can be judged that the scene of the image data in FIG. 5A is a bright scene. Therefore, the controller or the image display device can determine that the scene is a bright scene by calculating the first average brightness gray-scale value L1 and the second average brightness gray-scale value L2, thereby obtaining the brightness state of the image data in FIG. 5A as the first Two brightness states. Similarly, in the scene of 5B, the controller or the image display device can determine that the scene is a dark scene by calculating the first average brightness gray-scale value L1' and the second average brightness gray-scale value L2', thereby obtaining The brightness state of the image data in FIG. 5B is the first brightness state.
在本发明的一实施例中,可透过计算第一平均亮度灰阶值以及第二平均亮度灰阶值以获得亮度程度LD。其中亮度程度LD为影像资料偏亮或偏暗的相关信息。在本发明的一个特定实施例中,亮度程度LD=W1×L1+W2×L2,其中L1为第一平均亮度灰阶值,L2为第二平均亮度灰阶值,W1、W2分别为第一权重值以及第二权重值。系统设计者或开发者可依据实际需求或经验,设定第一权重值W1以及第二权重值W2,以有效的量化亮度程度LD。In an embodiment of the present invention, the brightness level LD can be obtained by calculating the first average brightness gray-scale value and the second average brightness gray-scale value. Wherein, the brightness level LD is information related to brighter or darker image data. In a specific embodiment of the present invention, brightness level LD=W1×L1+W2×L2, wherein L1 is the first average brightness gray scale value, L2 is the second average brightness gray scale value, W1, W2 are the first weight value and a second weight value. The system designer or developer can set the first weight value W1 and the second weight value W2 according to actual needs or experience, so as to effectively quantify the brightness level LD.
在本发明的一实施例中,图1的步骤S103中,依据亮度信息设定转折点的位置的步骤还可包括依据全域平均亮度灰阶值、亮度状态以及亮度程度设定转折点的位置。也就是说控制器或影像显示装置可依据场景的亮度信息,选取合适的目标伽玛校正曲线TC的转折点TP的位置。在本发明的一实施例中,当影像资料的亮度状态为第一亮度状态,转折点TC的位置所对应的输入亮度灰阶值TP_I=Lall-LD,其中Lall为全域平均亮度灰阶值,LD为亮度程度。也就是说当影像资料的场景为一暗景的情况时,转折点TP的位置将相对于全域平均亮度灰阶值往更低的亮度灰阶值偏移,且依据场景偏暗的程度决定所偏移的量。在本发明的另一实施例中,当影像资料的亮度状态为第二亮度状态,转折点TC的位置所对应的输入亮度灰阶值TP_I=Lall+LD,其中Lall为全域平均亮度灰阶值,LD为亮度程度。也就是说当影像资料的场景为一亮景的情况时,转折点TP的位置将相对于全域平均亮度灰阶值往更高的亮度灰阶值偏移,且依据场景偏亮的程度决定所偏移的量。In an embodiment of the present invention, in step S103 of FIG. 1 , the step of setting the position of the turning point according to the brightness information may further include setting the position of the turning point according to the global average brightness gray scale value, brightness state and brightness level. That is to say, the controller or the image display device can select a suitable position of the turning point TP of the target gamma correction curve TC according to the brightness information of the scene. In an embodiment of the present invention, when the luminance state of the image data is the first luminance state, the input luminance grayscale value corresponding to the turning point TC is TP_I=Lall-LD, where Lall is the global average luminance grayscale value, LD is the brightness level. That is to say, when the scene of the image data is a dark scene, the position of the turning point TP will shift to a lower brightness gray-scale value relative to the global average brightness gray-scale value, and the position of the turning point TP will be determined according to the degree of darkness of the scene. amount of movement. In another embodiment of the present invention, when the brightness state of the image data is the second brightness state, the input brightness grayscale value corresponding to the turning point TC is TP_I=Lall+LD, where Lall is the global average brightness grayscale value, LD is the brightness level. That is to say, when the scene of the image data is a bright scene, the position of the turning point TP will be shifted to a higher brightness gray-scale value relative to the global average brightness gray-scale value, and the position of the turning point TP will be shifted to a higher brightness gray-scale value according to the brighter degree of the scene. amount of movement.
上段所述实施例可体现于图6A、图6B的例示中,图6A、图6B是依据本发明的一实施例针对不同的亮度信息设定转折点的示意图。在图6A的实施例中,亮度状态为第二亮度状态,也就是说影像资料为亮景场景。在此条件下,目标伽玛校正曲线TC的转折点TP所对应的输入亮度灰阶值TP_I为全域平均亮度灰阶值Lall再加上亮度程度LD的值。同样地,在图6B的实施例中,亮度状态为第一亮度状态,也就是说影像资料为暗景场景。在此条件下,目标伽玛校正曲线TC’的转折点TP’所对应的输入亮度灰阶值TP_I’为全域平均亮度灰阶值Lall’再减去亮度程度LD的值。The above-mentioned embodiment can be embodied in the illustrations of FIG. 6A and FIG. 6B . FIG. 6A and FIG. 6B are schematic diagrams of setting turning points for different brightness information according to an embodiment of the present invention. In the embodiment of FIG. 6A , the brightness state is the second brightness state, that is to say, the image data is a bright scene. Under this condition, the input brightness gray scale value TP_I corresponding to the turning point TP of the target gamma correction curve TC is the global average brightness gray scale value Lall plus the value of the brightness level LD. Similarly, in the embodiment of FIG. 6B , the brightness state is the first brightness state, that is to say, the image data is a dark scene. Under this condition, the input brightness gray scale value TP_I' corresponding to the turning point TP' of the target gamma correction curve TC' is the global average brightness gray scale value Lall' minus the value of the brightness level LD.
在本发明的一实施例中,影像处理方法及影像显示装置还可依据亮度信息设定第一子伽玛校正曲线的第一伽玛值以及第二子伽玛校正曲线的第二伽玛值。在本发明的一实施例中,控制器或影像显示装置可依据亮度信息,从多个候选的第一子伽玛校正曲线中选取适当的第一子伽玛校正曲线。其中所述多个候选的第一子伽玛校正曲线均具有凹口向上的曲率表现且多个候选的第一子伽玛校正曲线所对应的多个第一伽玛值大于1;所述多个候选的第二子伽玛校正曲线均具有凹口向下的曲率表现且多个候选的第二子伽玛校正曲线所对应的多个第二伽玛值小于1。以下请参照图7A、图7B的例示,图7A、图7B为依照本发明的一实施例,针对不同的亮度信息设定伽玛值的示意图。In an embodiment of the present invention, the image processing method and the image display device can also set the first gamma value of the first sub-gamma correction curve and the second gamma value of the second sub-gamma correction curve according to the brightness information . In an embodiment of the present invention, the controller or the image display device can select an appropriate first sub-gamma correction curve from a plurality of candidate first sub-gamma correction curves according to the brightness information. Wherein the multiple candidate first sub-gamma correction curves all have a notch upward curvature performance and the multiple first gamma values corresponding to the multiple candidate first sub-gamma correction curves are greater than 1; the multiple Each of the candidate second sub-gamma correction curves has a downward notch curvature, and the plurality of second gamma values corresponding to the plurality of candidate second sub-gamma correction curves are less than 1. Please refer to the illustrations of FIG. 7A and FIG. 7B below. FIG. 7A and FIG. 7B are schematic diagrams of setting gamma values for different brightness information according to an embodiment of the present invention.
图7A绘出多条候选第一子伽玛校正曲线C1_1~C1_4,其中多个候选第一子伽玛校正曲线C1_1~C1_4各自具有对应的第一伽玛值Gamma1_1~Gamma1_4,第一伽玛值Gamma1_1~Gamma1_4皆大于1且Gamma1_4>Gamma1_3>Gamma1_2>Gamma1_1。在本发明的一实施例中,举例而言,若有四个不同的第一至第四影像资料,其中各影像资料的场景的亮度由最暗至最亮排列为第一影像资料至第四影像资料。在本实施例中,控制器或影像显示装置可依据不同的亮度信息选取对应的候选第一子伽玛校正曲线C1_1~C1_4。在本实施例中,所选取的第一伽玛校正曲线的伽玛值可与所输入的影像资料的亮度正相关,也就是说当场景越亮,控制器或影像显示装置将选取伽玛值越高的候选第一子伽玛校正曲线。例如当所输入的影像资料分别为第一、第二、第三、第四影像资料时,所对应选取的候选第一子伽玛校正曲线为分别为候选第一子伽玛校正曲线C1_1、C1_2、C1_3、C1_4。本发明的候选第一子伽玛校正曲线C1_1~C1_4仅为例示,数量不仅以4条为限,也就是说在本发明的实施例中,候选第一子伽玛校正曲线可为多条,以更利于不同亮度信息的影像资料设定目标伽玛校正曲线。FIG. 7A depicts a plurality of candidate first sub-gamma correction curves C1_1~C1_4, wherein each of the plurality of candidate first sub-gamma correction curves C1_1~C1_4 has a corresponding first gamma value Gamma1_1~Gamma1_4, the first gamma value Gamma1_1~Gamma1_4 are all greater than 1 and Gamma1_4>Gamma1_3>Gamma1_2>Gamma1_1. In one embodiment of the present invention, for example, if there are four different first to fourth image data, the brightness of the scene of each image data is arranged from the darkest to the brightest as the first image data to the fourth video material. In this embodiment, the controller or the image display device can select corresponding candidate first sub-gamma correction curves C1_1 - C1_4 according to different brightness information. In this embodiment, the selected gamma value of the first gamma correction curve can be positively correlated with the brightness of the input image data, that is to say, when the scene is brighter, the controller or the image display device will select the gamma value The higher the candidate first sub-gamma correction curve. For example, when the input image data are the first, second, third, and fourth image data, the corresponding selected candidate first sub-gamma correction curves are candidate first sub-gamma correction curves C1_1, C1_2, C1_3, C1_4. The candidate first sub-gamma correction curves C1_1-C1_4 of the present invention are only examples, and the number is not limited to four. That is to say, in the embodiment of the present invention, there may be multiple candidate first sub-gamma correction curves. Set a target gamma correction curve with image data that is more conducive to different brightness information.
图7B绘出多条候选第二子伽玛校正曲线C2_1~C2_4,其中多个候选第二子伽玛校正曲线C2_1~C2_4各自具有对应的第二伽玛值Gamma2_1~Gamma2_4,第二伽玛值Gamma2_1~Gamma2_4皆小于1且Gamma2_4>Gamma1_3>Gamma1_2>Gamma2_1。在本发明的一实施例中,举例而言,若有四个不同的第一至第四影像资料,其中各影像资料的场景的亮度由最暗至最亮排列为第一影像资料至第四影像资料。在本实施例中,控制器或影像显示装置可依据不同的亮度信息选取对应的候选第二子伽玛校正曲线C2_1~C2_4。在本实施例中,所选取的第二伽玛校正曲线的伽玛值可与所输入的影像资料的亮度正相关,也就是说当场景越亮,控制器或影像显示装置将选取伽玛值越高的候选第一子伽玛校正曲线。例如当所输入的影像资料分别为第一、第二、第三、第四影像资料时,所对应选取的候选第二子伽玛校正曲线为分别为候选第二子伽玛校正曲线C2_1、C2_2、C2_3、C2_4。本发明的候选第二子伽玛校正曲线C2_1~C2_4仅为例示,数量不仅以4条为限,也就是说在本发明的实施例中,候选第二子伽玛校正曲线可为多条,以更利于不同亮度信息的影像资料设定目标伽玛校正曲线。FIG. 7B depicts a plurality of candidate second sub-gamma correction curves C2_1~C2_4, wherein each of the plurality of candidate second sub-gamma correction curves C2_1~C2_4 has a corresponding second gamma value Gamma2_1~Gamma2_4, and the second gamma value Gamma2_1~Gamma2_4 are all less than 1 and Gamma2_4>Gamma1_3>Gamma1_2>Gamma2_1. In one embodiment of the present invention, for example, if there are four different first to fourth image data, the brightness of the scene of each image data is arranged from the darkest to the brightest as the first image data to the fourth video material. In this embodiment, the controller or the image display device may select corresponding candidate second sub-gamma correction curves C2_1 - C2_4 according to different brightness information. In this embodiment, the selected gamma value of the second gamma correction curve may be positively correlated with the brightness of the input image data, that is to say, when the scene is brighter, the controller or the image display device will select the gamma value The higher the candidate first sub-gamma correction curve. For example, when the input image data are the first, second, third, and fourth image data respectively, the correspondingly selected candidate second sub-gamma correction curves are candidate second sub-gamma correction curves C2_1, C2_2, C2_3, C2_4. The candidate second sub-gamma correction curves C2_1-C2_4 of the present invention are only examples, and the number is not limited to four. That is to say, in the embodiment of the present invention, there may be multiple candidate second sub-gamma correction curves. Set a target gamma correction curve with image data that is more conducive to different brightness information.
值得一提的是,于图7A以及图7B所例示的实施例中,目标伽玛校正曲线中的第一伽玛校正曲线以及第二伽玛校正曲线的选取方式,将于影像资料为亮景的条件下,随着亮度增加第一伽玛校正曲线往外扩且第二伽玛校正曲线往内缩,以达到较佳的省电效果。而在影像资料为暗景的条件下,随着亮度降低,第二伽玛校正曲线往外扩,而使显示画面具较佳的对比度。It is worth mentioning that, in the embodiment illustrated in FIG. 7A and FIG. 7B , the selection method of the first gamma correction curve and the second gamma correction curve in the target gamma correction curve will be based on the image data as a bright scene Under certain conditions, as the brightness increases, the first gamma correction curve expands outward and the second gamma correction curve shrinks inward, so as to achieve a better power saving effect. Under the condition that the image data is a dark scene, as the brightness decreases, the second gamma correction curve expands outward, so that the display screen has better contrast.
附带说明的是,在本发明的实施例中,所输入的影像资料的显示画面亮度可依据亮度状态以及亮度程度得到。在显示画面为暗景的第一亮度状态时,当显示画面的场景越暗,亮度程度越高;在显示画面为亮景的第二亮度状态时,当显示画面的场景越亮,亮度程度越高。因此在本发明中,控制器以及影像显示装置可依据亮度状态以及亮度程度来决定所选取的候选第一伽玛校正曲线以及候选第二伽玛校正曲线。举例而言,当亮度状态为第一亮度状态时,第一伽玛值与第二伽玛值皆与亮度程度负相关;当亮度状态为第二亮度状态时,第一伽玛值与第二伽玛值皆与亮度程度正相关。It should be noted that, in the embodiment of the present invention, the brightness of the display screen of the input image data can be obtained according to the brightness state and the brightness degree. When the display screen is the first brightness state of the dark scene, when the scene of the display screen is darker, the brightness level is higher; when the display screen is in the second brightness state of the bright scene, when the scene of the display screen is brighter, the brightness level is higher. high. Therefore, in the present invention, the controller and the image display device can determine the selected candidate first gamma correction curve and candidate second gamma correction curve according to the brightness state and brightness level. For example, when the brightness state is the first brightness state, both the first gamma value and the second gamma value are negatively correlated with the brightness level; when the brightness state is the second brightness state, the first gamma value and the second The gamma value is positively related to the brightness level.
在本发明的一实施例中,可结合图6A、图6B的转折点TP的设定方式,以及图7A、图7B的第一伽玛校正曲线以及第二伽玛校正曲线的选取方式,以设定目标伽玛校正曲线。现请参照图8A、图8B,图8A、图8B为依照本实施例,针对不同的亮度信息设定转折点以及第一伽玛校正曲线以及第二伽玛校正曲线的示意图。In an embodiment of the present invention, the method of setting the turning point TP in FIG. 6A and FIG. 6B and the selection method of the first gamma correction curve and the second gamma correction curve in FIGS. 7A and 7B can be combined to set Target the gamma correction curve. Please refer to FIG. 8A and FIG. 8B . FIG. 8A and FIG. 8B are schematic diagrams of setting turning points, first gamma correction curves and second gamma correction curves for different brightness information according to this embodiment.
在图8A的实施例中,所输入的输入影像资料的显示画面为一暗景。在本实施例中,可依据全域平均亮度灰阶值Lall、亮度状态以及亮度程度LD决定转折点TP所对应的输入亮度灰阶值TP_I的位置。例如在图8A所输入的影像资料中,亮度状态为第一亮度状态,因此转折点TP所对应的输入亮度灰阶值TP_I,位于全域平均亮度灰阶值Lall减去亮度程度LD之处。在本发明的一实施例中,于决定了转折点TP的位置后,若第一伽玛校正曲线与第二伽玛校正曲线的伽玛值为预设的一定值,则目标伽玛校正曲线可例如图8A中虚线曲线所示的目标伽玛校正曲线TC_fix。在本发明的另一实施例中,于决定了转折点TP的位置后,若依据图7A、图7B的实施例选取第一伽玛校正曲线与第二伽玛校正曲线,则控制器与显示装置可依据第一亮度状态以及亮度程度LD,选取伽玛值更小的第一伽玛校正曲线与第二伽玛校正曲线,而得到图8A中实线曲线所示的目标伽玛校正曲线TC_sel。如图8A所示,目标伽玛校正曲线TC_sel将相较目标伽玛校正曲线TC_fix于转折点TP右侧更为外扩。因此若依据图7A、图7B的实施例选取第一伽玛校正曲线与第二伽玛校正曲线,则目标伽玛校正曲线TC_sel将进一步的提高输出影像的对比度。In the embodiment of FIG. 8A , the display screen of the input image data is a dark scene. In this embodiment, the position of the input brightness gray-scale value TP_I corresponding to the turning point TP can be determined according to the global average brightness gray-scale value Lall, the brightness state, and the brightness level LD. For example, in the input image data shown in FIG. 8A , the luminance state is the first luminance state, so the input luminance grayscale value TP_I corresponding to the turning point TP is located at the place where the global average luminance grayscale value Lall subtracts the luminance level LD. In an embodiment of the present invention, after the position of the turning point TP is determined, if the gamma values of the first gamma correction curve and the second gamma correction curve are a predetermined value, the target gamma correction curve can be For example, the target gamma correction curve TC_fix shown by the dotted curve in FIG. 8A . In another embodiment of the present invention, after the position of the turning point TP is determined, if the first gamma correction curve and the second gamma correction curve are selected according to the embodiment shown in FIG. 7A and FIG. 7B , the controller and the display device According to the first brightness state and the brightness level LD, the first gamma correction curve and the second gamma correction curve with smaller gamma values can be selected to obtain the target gamma correction curve TC_sel shown by the solid line curve in FIG. 8A . As shown in FIG. 8A , the target gamma correction curve TC_sel will be further expanded on the right side of the turning point TP than the target gamma correction curve TC_fix . Therefore, if the first gamma correction curve and the second gamma correction curve are selected according to the embodiments of FIG. 7A and FIG. 7B , the target gamma correction curve TC_sel will further improve the contrast of the output image.
在图8B的实施例中,所输入的输入影像资料的显示画面为一亮景。在本实施例中,可依据全域平均亮度灰阶值Lall’、亮度状态以及亮度程度LD’决定转折点TP’所对应的输入亮度灰阶值TP_I’的位置。例如在图8B所输入的影像资料中,亮度状态为第二亮度状态,因此转折点TP’所对应的输入亮度灰阶值TP_I’,位于全域平均亮度灰阶值Lall’加上亮度程度LD’之处。在本发明的一实施例中,于决定了转折点TP的位置后,若第一伽玛校正曲线与第二伽玛校正曲线的伽玛值为预设的一定值,则目标伽玛校正曲线可例如图8B中虚线曲线所示的目标伽玛校正曲线TC_fix’。在本发明的另一实施例中,于决定了转折点TP的位置后,若依据图7A、图7B的实施例选取第一伽玛校正曲线与第二伽玛校正曲线,则控制器与显示装置可依据第二亮度状态以及亮度程度LD’,选取伽玛值更大的第一伽玛校正曲线与第二伽玛校正曲线,而得到图8B中实线曲线所示的目标伽玛校正曲线TC_sel’。如图8B所示,目标伽玛校正曲线TC_sel’将相较目标伽玛校正曲线TC_fix’于转折点TP’左侧更为外扩,且目标伽玛校正曲线TC_sel’将相较目标伽玛校正曲线TC_fix’于转折点TP右侧更为内缩。因此若依据图7A、图7B的实施例选取第一伽玛校正曲线与第二伽玛校正曲线,则目标伽玛校正曲线TC_sel’将进一步的降低显示屏幕的耗电量。In the embodiment of FIG. 8B , the display screen of the input image data is a bright scene. In this embodiment, the position of the input brightness gray-scale value TP_I' corresponding to the turning point TP' can be determined according to the global average brightness gray-scale value Lall', the brightness state, and the brightness level LD'. For example, in the image data input in FIG. 8B , the brightness state is the second brightness state, so the input brightness grayscale value TP_I' corresponding to the turning point TP' is located between the global average brightness grayscale value Lall' plus the brightness level LD'. place. In an embodiment of the present invention, after the position of the turning point TP is determined, if the gamma values of the first gamma correction curve and the second gamma correction curve are a predetermined value, the target gamma correction curve can be For example, the target gamma correction curve TC_fix' shown by the dotted curve in FIG. 8B . In another embodiment of the present invention, after the position of the turning point TP is determined, if the first gamma correction curve and the second gamma correction curve are selected according to the embodiment shown in FIG. 7A and FIG. 7B , the controller and the display device According to the second brightness state and the brightness level LD', the first gamma correction curve and the second gamma correction curve with a larger gamma value can be selected to obtain the target gamma correction curve TC_sel shown in the solid line curve in FIG. 8B '. As shown in FIG. 8B , the target gamma correction curve TC_sel' will be more outwardly expanded than the target gamma correction curve TC_fix' on the left side of the turning point TP', and the target gamma correction curve TC_sel' will be wider than the target gamma correction curve TC_fix' TC_fix' is more indented to the right of the turning point TP. Therefore, if the first gamma correction curve and the second gamma correction curve are selected according to the embodiment shown in FIG. 7A and FIG. 7B , the target gamma correction curve TC_sel' will further reduce the power consumption of the display screen.
请参照图9A~图9C,图9A~图9C是依照本发明的影像显示装置所产生的输出影像与输入影像资料的亮度灰阶直方图比较。其中在图9A、图9B中,所输入的影像资料的显示画面为亮景,在图9C中,所输入的影像资料的显示画面为暗景。在图9A~图9C中,实心的轮廓为所输入的影像资料的亮度灰阶直方图的示意,斜线填充的图形为输出影像的亮度灰阶直方图的示意。如图9A、图9B所示,输出影像的亮度灰阶直方图相对所输入的影像资料的亮度灰阶直方图更往低亮度灰阶值移动,因此在图9A、图9B的情形下,本发明的影像处理方法及影像显示装置可降低输出影像的耗电量。如图9C所示,输出影像的亮度灰阶直方图相对所输入的影像资料的亮度灰阶直方图更往高亮度灰阶值移动,因此输出影像的亮度灰阶值的分布更为均匀,因此在图9C的情形下,本发明的影像处理方法及影像显示装置可提高输出影像的对比度。Please refer to FIG. 9A to FIG. 9C . FIG. 9A to FIG. 9C are comparisons of brightness grayscale histograms of the output image generated by the image display device according to the present invention and the input image data. In FIG. 9A and FIG. 9B , the display screen of the input image data is a bright scene, and in FIG. 9C , the display screen of the input image data is a dark scene. In FIG. 9A to FIG. 9C , the solid outline is a schematic diagram of the brightness grayscale histogram of the input image data, and the graph filled with oblique lines is a schematic diagram of the brightness grayscale histogram of the output image. As shown in Fig. 9A and Fig. 9B, the luminance grayscale histogram of the output image is shifted to the low luminance grayscale value compared with the luminance grayscale histogram of the input image data. Therefore, in the situation of Fig. 9A and Fig. 9B, the present The image processing method and image display device of the invention can reduce the power consumption of outputting images. As shown in FIG. 9C , the brightness grayscale histogram of the output image is more shifted to higher brightness grayscale values than the brightness grayscale histogram of the input image data, so the distribution of the brightness grayscale values of the output image is more uniform, so In the situation of FIG. 9C , the image processing method and image display device of the present invention can improve the contrast of the output image.
综上所述,本发明的影像处理方法以及影像显示装置,可依据亮度信息产生对应的目标伽玛校正曲线,以在显示输出影像时,基于所输入的影像资料的亮度信息,可节省耗电量并且提高对比度。更明确的说,本发明的影像处理方法以及影像显示装置,可于所输入的影像资料为偏亮的一亮景时,在不改变最大亮度的情况下,降低整体输出影像的亮度而达到省电的效果,且可于所输入的影像资料为偏暗的一暗景时,提高输出影像的显示画面的对比度。In summary, the image processing method and image display device of the present invention can generate a corresponding target gamma correction curve according to the brightness information, so as to save power consumption based on the brightness information of the input image data when displaying the output image. volume and increase the contrast. More specifically, the image processing method and image display device of the present invention can reduce the brightness of the overall output image without changing the maximum brightness when the input image data is a bright scene, thereby saving Electric effect, and can improve the contrast of the display screen of the output image when the input image data is a dark scene.
Claims (20)
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US202263332810P | 2022-04-20 | 2022-04-20 | |
US63/332,810 | 2022-04-20 | ||
TW111120739 | 2022-06-02 | ||
TW111120739A TWI819640B (en) | 2022-04-20 | 2022-06-02 | Image processing method and image display device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115410524A true CN115410524A (en) | 2022-11-29 |
CN115410524B CN115410524B (en) | 2025-06-17 |
Family
ID=84167838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211226570.3A Active CN115410524B (en) | 2022-04-20 | 2022-10-09 | Image processing method and image display device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115410524B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012124652A (en) * | 2010-12-07 | 2012-06-28 | Ricoh Co Ltd | Imaging apparatus and image processing method |
KR20150114065A (en) * | 2014-03-31 | 2015-10-12 | 엘지디스플레이 주식회사 | Gamma compensation method and display device using the same |
CN105321487A (en) * | 2014-07-30 | 2016-02-10 | 瑞萨电子株式会社 | Image processing device and image processing method |
CN105895054A (en) * | 2016-05-17 | 2016-08-24 | 深圳天珑无线科技有限公司 | Adjustment method of output brightness, adjustment method of Gamma curve and display device |
CN108337450A (en) * | 2017-01-19 | 2018-07-27 | 卡西欧计算机株式会社 | Image processing apparatus, image processing method and recording medium |
CN111866306A (en) * | 2019-04-24 | 2020-10-30 | 瑞昱半导体股份有限公司 | Contrast adjustment system and contrast adjustment method |
CN113709437A (en) * | 2020-05-22 | 2021-11-26 | 夏普株式会社 | Display device, display control method, and recording medium |
-
2022
- 2022-10-09 CN CN202211226570.3A patent/CN115410524B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012124652A (en) * | 2010-12-07 | 2012-06-28 | Ricoh Co Ltd | Imaging apparatus and image processing method |
KR20150114065A (en) * | 2014-03-31 | 2015-10-12 | 엘지디스플레이 주식회사 | Gamma compensation method and display device using the same |
CN105321487A (en) * | 2014-07-30 | 2016-02-10 | 瑞萨电子株式会社 | Image processing device and image processing method |
CN105895054A (en) * | 2016-05-17 | 2016-08-24 | 深圳天珑无线科技有限公司 | Adjustment method of output brightness, adjustment method of Gamma curve and display device |
CN108337450A (en) * | 2017-01-19 | 2018-07-27 | 卡西欧计算机株式会社 | Image processing apparatus, image processing method and recording medium |
CN111866306A (en) * | 2019-04-24 | 2020-10-30 | 瑞昱半导体股份有限公司 | Contrast adjustment system and contrast adjustment method |
CN113709437A (en) * | 2020-05-22 | 2021-11-26 | 夏普株式会社 | Display device, display control method, and recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN115410524B (en) | 2025-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111968570B (en) | Display compensation information acquisition method, display compensation method and device | |
CN101340511B (en) | Adaptive video image enhancing method based on lightness detection | |
JP5611457B2 (en) | Gradation and color gamut mapping method and apparatus | |
TW201818540A (en) | Method and module for processing high dynamic range image and display device using the same | |
KR102659203B1 (en) | display device, and signal processing device | |
JP6105925B2 (en) | Image processing apparatus and image display apparatus | |
RU2014136061A (en) | METHOD AND DEVICE FOR TRANSFORMING IMAGE DATA | |
CN104620280A (en) | Image processing device, image display device, image capture device, image printing device, gradation conversion method, and program | |
US11257443B2 (en) | Method for processing image, and display device | |
CN104115215B (en) | Video display devices and radiovisor | |
KR20160010687A (en) | Method of driving organic light emitting display device and organic light emitting display device for performing the same | |
WO2013121601A1 (en) | Video image display device and television receiving device | |
JP5284444B2 (en) | Video display device and television receiver | |
JP5165076B2 (en) | Video display device | |
US7245308B2 (en) | Display control device and display device | |
CN107068042B (en) | Image processing method | |
CN111402796B (en) | Image processing method and image processing system | |
TWI462575B (en) | Image processing apparatus and image processing method | |
CN109920381B (en) | Method and equipment for adjusting backlight value | |
KR102301925B1 (en) | Tone mapping method and display device using the same | |
WO2022120799A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
TWI819640B (en) | Image processing method and image display device | |
JP2013033088A (en) | Light-emitting device, display device, control device, control method and control program | |
CN115410524A (en) | Image processing method and image display device | |
US9569999B2 (en) | Signal generation apparatus, signal generation program, signal generation method, and image display apparatus |
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 |