[go: up one dir, main page]

CN104299596A - Image processing method, method for desaturating image data, and image processing device - Google Patents

Image processing method, method for desaturating image data, and image processing device Download PDF

Info

Publication number
CN104299596A
CN104299596A CN201310295966.8A CN201310295966A CN104299596A CN 104299596 A CN104299596 A CN 104299596A CN 201310295966 A CN201310295966 A CN 201310295966A CN 104299596 A CN104299596 A CN 104299596A
Authority
CN
China
Prior art keywords
gain
conversion relationship
value
image processing
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310295966.8A
Other languages
Chinese (zh)
Inventor
陈星全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Novatek Microelectronics Corp
Original Assignee
Novatek Microelectronics Corp
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 Novatek Microelectronics Corp filed Critical Novatek Microelectronics Corp
Priority to CN201310295966.8A priority Critical patent/CN104299596A/en
Publication of CN104299596A publication Critical patent/CN104299596A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

An image processing method, a method for unsaturated image data and an image processing device are provided. The image processing method comprises the following steps: analyzing the frame to obtain an original gain value corresponding to a plurality of gray-scale values of the frame, wherein the original gain value is higher than 1; obtaining a look-up table, wherein the look-up table records the conversion relation between a plurality of preset gray-scale values and a plurality of preset gain values, and is used when the image data of the picture is subjected to anti-saturation processing; utilizing the look-up table to perform anti-saturation processing on the picture according to the original gain value to obtain an adjusted conversion relation of the picture, wherein the adjusted conversion relation defines the conversion relation between different gray scale values of the picture and corresponding adjusted gain values; and performing gain processing on the image data of the picture according to the adjusted conversion relation.

Description

图像处理方法与使图像数据不饱和的方法与图像处理装置Image processing method, method for desaturating image data, and image processing device

技术领域technical field

本发明是有关于一种图像处理装置,且特别是有关于一种图像处理方法、使图像数据不饱和的方法与使用该方法的图像处理装置。The present invention relates to an image processing device, and more particularly to an image processing method, a method for desaturating image data, and an image processing device using the method.

背景技术Background technique

图1是说明传统图像处理装置。全域增益(global gain)产生器110会依据系统的操作需求而决定增益值G,并将增益值G输出至计算电路120。计算电路120接收原始图像数据D1,并且计算增益值G与图像数据D1的乘积,然后将此乘积(即G*D1)输出给显示电路130作为新的图像数据D2。显示电路130便依照图像数据D2驱动显示面板而显示对应的图像画面。FIG. 1 is a diagram illustrating a conventional image processing device. The global gain (global gain) generator 110 determines the gain value G according to the operating requirements of the system, and outputs the gain value G to the calculation circuit 120 . The calculation circuit 120 receives the original image data D 1 , calculates the product of the gain value G and the image data D 1 , and then outputs the product (ie G*D 1 ) to the display circuit 130 as new image data D 2 . The display circuit 130 drives the display panel according to the image data D2 to display the corresponding image frame.

在正常操作条件下,全域增益产生器110会将增益值G设定为1。图2是说明当图1中增益值G为1时,图像数据D1对图像数据D2的转换曲线。于图2中,横轴表示原始图像数据D1,而纵轴表示经计算电路120转换后的新图像数据D2。假设图像数据D1与图像数据D2均为8位数据。在增益值G为1的条件下,图像数据D1的数值范围为0至255,而G*D1(即图像数据D2)的数值范围亦为0至255。Under normal operating conditions, the global gain generator 110 sets the gain value G to 1. FIG. 2 is a diagram illustrating the conversion curve of image data D1 to image data D2 when the gain value G in FIG. 1 is 1. FIG. In FIG. 2 , the horizontal axis represents the original image data D 1 , and the vertical axis represents the new image data D 2 converted by the calculation circuit 120 . Assume that both the image data D1 and the image data D2 are 8-bit data. Under the condition that the gain value G is 1, the value range of the image data D 1 is 0-255, and the value range of G*D 1 (ie, the image data D 2 ) is also 0-255.

当全域增益产生器110将增益值G设定为大于1(例如设定为1.2)时,经计算电路120转换后的新图像数据D2有可能会发生饱和(saturation)。图3是说明当图1中增益值G为1.2时,图像数据D1对图像数据D2的转换曲线。于图3中,横轴表示原始图像数据D1,而纵轴表示经计算电路120转换后的新图像数据D2。假设图像数据D1与图像数据D2均为8位数据。在增益值G为1.2的条件下,图像数据D1的数值范围为0至255,而G*D1的数值范围则为0至306。然而,因为图像数据D2为8位数据,即图像数据D2的最大值为255,使得当图像数据D1在213至255的范围时,图像数据D2一律为255。此现象即为「饱和」。由于图像数据D2发生饱和,使得高灰阶(高亮度)的画面细节会消失。增益值G越大,发生饱和的数值范围越多,进而使得高亮度细节损失越严重。When the global gain generator 110 sets the gain value G to be greater than 1 (for example, 1.2), the new image data D 2 converted by the calculation circuit 120 may be saturated. FIG. 3 is a diagram illustrating the conversion curve of the image data D 1 to the image data D 2 when the gain value G in FIG. 1 is 1.2. In FIG. 3 , the horizontal axis represents the original image data D 1 , and the vertical axis represents the new image data D 2 converted by the calculation circuit 120 . Assume that both the image data D1 and the image data D2 are 8-bit data. Under the condition that the gain value G is 1.2, the value range of the image data D 1 is 0 to 255, and the value range of G*D 1 is 0 to 306. However, because the image data D 2 is 8-bit data, that is, the maximum value of the image data D 2 is 255, so when the image data D 1 is in the range of 213 to 255, the image data D 2 is uniformly 255. This phenomenon is called "saturation". Due to the saturation of the image data D2 , the details of the high grayscale (high brightness) picture will disappear. The larger the gain value G is, the larger the value range of saturation occurs, and the more serious the loss of high-brightness details is.

发明内容Contents of the invention

本发明提供一种图像处理方法、使图像数据不饱和的方法与使用该方法的图像处理装置,以避免图像数据的饱和。The invention provides an image processing method, a method for desaturating image data and an image processing device using the method to avoid saturation of image data.

本发明的一种图像处理方法,用以对图像处理装置的数个画面的图像数据进行图像处理。每个画面各自包括数个像素单元,每个像素单元各自包括数个子像素,分别对应于数种颜色。该图像处理方法包括:分析所述数个画面当中的一画面而获得该画面的数个灰阶值所共同对应的原始增益值,其中该原始增益值高于1;获得一预设数据对增益转换关系查表,其中该预设数据对增益转换查表记录数个预设灰阶值与分别相对应的数个预设增益值,供所述数个画面的图像数据进行反饱和处理时共同使用;依据该原始增益值,而利用该预设数据对增益转换关系查表,来对该画面进行反饱和处理,而获得该画面的调整后数据对增益转换关系,其中该调整后数据与增益转换关系定义该画面的不同灰阶值与相对应的调整后增益值之间的转换关系;以及依据该调整后数据对增益转换关系,对该画面的图像数据进行增益处理。An image processing method of the present invention is used for performing image processing on image data of several frames of an image processing device. Each picture includes several pixel units, and each pixel unit includes several sub-pixels, respectively corresponding to several colors. The image processing method includes: analyzing one of the several pictures to obtain an original gain value corresponding to several gray scale values of the picture, wherein the original gain value is higher than 1; obtaining a preset data pair gain The conversion relationship look-up table, wherein the preset data records several preset gray scale values and several corresponding preset gain values for the gain conversion look-up table, which are used together when the image data of the several pictures are desaturated. Use; according to the original gain value, use the preset data to gain conversion relationship lookup table to perform anti-saturation processing on the picture, and obtain the adjusted data-to-gain conversion relationship of the picture, wherein the adjusted data and gain The conversion relationship defines the conversion relationship between different grayscale values of the picture and the corresponding adjusted gain values; and performs gain processing on the image data of the picture according to the adjusted data-to-gain conversion relationship.

本发明的一种使图像数据不饱和的方法,用于一图像处理装置进行一图像处理。此方法包括:分析数个画面当中的一画面而获得该画面的原始转换关系曲线,该原始转换关系曲线是表示该画面的数个灰阶值欲共同依据原始增益值的增益处理,其中该原始增益值大于1;获得预设转换关系曲线,其中该预设转换关系曲线是供所述数个画面的图像数据进行反饱和处理时共同使用;通过合并该预设转换关系曲线与该原始转换关系曲线,以对该画面进行反饱和处理,从而获得调整后转换关系曲线;以及依据该调整后转换关系曲线,对该画面的图像数据进行增益处理。A method for desaturating image data of the present invention is used for an image processing device to perform image processing. The method includes: analyzing a picture among several pictures to obtain the original conversion relationship curve of the picture, the original conversion relationship curve indicates that several grayscale values of the picture are to be processed according to the original gain value, wherein the original The gain value is greater than 1; a preset conversion relationship curve is obtained, wherein the preset conversion relationship curve is used for desaturation processing of the image data of the several pictures; by merging the preset conversion relationship curve and the original conversion relationship curve to perform anti-saturation processing on the picture to obtain an adjusted conversion relationship curve; and perform gain processing on the image data of the picture according to the adjusted conversion relationship curve.

本发明的一种图像处理装置,用以对数个画面的图像数据进行图像处理,其中每个画面分别包括数个像素单元,每个像素单元分别包括数个子像素,分别对应于数种颜色。该图像处理装置包括全域增益产生器、转换关系产生器以及转换电路。全域增益产生器分析所述数个画面当中的一画面而获得该画面的数个灰阶值所共同对应的原始增益值,其中该原始增益值高于1。转换关系产生器耦接至全域增益产生器,以接收该原始增益值。转换关系产生器获得一预设数据对增益转换关系查表,其中该预设数据对增益转换查表记录数个预设灰阶值与分别相对应的数个预设增益值,供所述数个画面的图像数据进行反饱和处理时共同使用。转换关系产生器依据该原始增益值,而利用该预设数据对增益转换关系查表,来对该画面进行反饱和处理,而获得该画面的调整后数据对增益转换关系,其中该调整后数据与增益转换关系定义该画面的不同灰阶值与相对应的调整后增益值之间的转换关系。转换电路耦接至转换关系产生器,以依据该调整后数据对增益转换关系,对该画面的图像数据进行增益处理。An image processing device of the present invention is used for performing image processing on image data of several frames, wherein each frame includes several pixel units, and each pixel unit includes several sub-pixels respectively corresponding to several colors. The image processing device includes a global gain generator, a conversion relation generator and a conversion circuit. The global gain generator analyzes a frame among the plurality of frames to obtain an original gain value corresponding to several gray scale values of the frame, wherein the original gain value is higher than 1. The conversion relationship generator is coupled to the global gain generator to receive the original gain value. The conversion relationship generator obtains a preset data-to-gain conversion relationship look-up table, wherein the preset data-to-gain conversion look-up table records several preset gray scale values and several corresponding preset gain values for the data It is used together when desaturation processing is performed on the image data of two screens. The conversion relationship generator uses the preset data to look up the gain conversion relationship table according to the original gain value to perform anti-saturation processing on the picture, and obtain the adjusted data-to-gain conversion relationship of the picture, wherein the adjusted data The conversion relationship with gain defines the conversion relationship between different grayscale values of the picture and corresponding adjusted gain values. The conversion circuit is coupled to the conversion relationship generator for performing gain processing on the image data of the frame according to the adjusted data-to-gain conversion relationship.

本发明的一种图像处理装置,用以进行图像处理。该图像处理装置包括全域增益产生器、转换关系产生器以及转换电路。全域增益产生器分析数个画面当中的一画面而获得该画面的原始转换关系曲线,该原始转换关系曲线表示该画面的数个灰阶值欲共同依据一原始增益值的增益处理,其中该原始增益值大于1。转换关系产生器耦接至该全域增益产生器以接收该原始增益值。转换关系产生器获得一预设转换关系曲线,其中该预设转换关系曲线是供所述数个画面的图像数据进行反饱和处理时共同使用。转换关系产生器通过合并该预设转换关系曲线与该原始转换关系曲线,以对该画面进行一反饱和处理,从而获得一调整后转换关系曲线。转换电路耦接至转换关系产生器,以依据该调整后转换关系曲线,对该画面的图像数据进行增益处理。An image processing device of the present invention is used for image processing. The image processing device includes a global gain generator, a conversion relation generator and a conversion circuit. The global gain generator analyzes one of the several pictures to obtain the original conversion relation curve of the picture, and the original conversion relation curve indicates that several grayscale values of the picture are to be processed according to an original gain value, wherein the original Gain values greater than 1. The conversion relationship generator is coupled to the global gain generator to receive the original gain value. The conversion relationship generator obtains a preset conversion relationship curve, wherein the preset conversion relationship curve is used jointly when the image data of the plurality of frames are desaturated. The conversion relationship generator combines the preset conversion relationship curve and the original conversion relationship curve to perform an anti-saturation process on the image, so as to obtain an adjusted conversion relationship curve. The conversion circuit is coupled to the conversion relationship generator for performing gain processing on the image data of the frame according to the adjusted conversion relationship curve.

基于上述,本发明诸实施例所述图像处理方法、使图像数据不饱和的方法与使用该方法的图像处理装置通过结合至少二个转换曲线(或转换关系),而决定用以转换图像数据的增益值,以避免图像数据的饱和,进而保留图像中的高亮度细节。Based on the above, the image processing method, the method for desaturating image data, and the image processing device using the method described in the embodiments of the present invention combine at least two conversion curves (or conversion relationships) to determine the conversion of image data. Gain value to avoid saturation of image data and preserve high brightness details in the image.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合所附图式作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.

附图说明Description of drawings

图1是说明传统图像处理装置。FIG. 1 is a diagram illustrating a conventional image processing device.

图2是说明当图1中原始增益值G为1时,图像数据D1对图像数据D2的转换关系曲线。FIG. 2 is a graph illustrating the conversion relationship between image data D 1 and image data D 2 when the original gain value G in FIG. 1 is 1. FIG.

图3是说明当图1中原始增益值G为1.2时,图像数据D1对图像数据D2的转换关系曲线。FIG. 3 is a graph illustrating the conversion relationship between the image data D 1 and the image data D 2 when the original gain value G in FIG. 1 is 1.2.

图4是依照本发明实施例说明一种使图像数据不饱和的方法流程示意图。FIG. 4 is a schematic flowchart illustrating a method for desaturating image data according to an embodiment of the present invention.

图5是依照本发明实施例说明一种图像处理装置的电路方块示意图。FIG. 5 is a schematic circuit block diagram illustrating an image processing device according to an embodiment of the present invention.

图6是依照本发明实施例说明当图5中原始增益值G为1.6时,原始图像数据D1对新图像数据D3的转换关系曲线示意图。FIG. 6 is a schematic diagram illustrating a transformation relationship curve between original image data D 1 and new image data D 3 when the original gain value G in FIG. 5 is 1.6 according to an embodiment of the present invention.

图7是依照本发明另一实施例说明当图5中原始增益值G为1.6时,原始图像数据D1对增益值的转换关系曲线示意图。FIG. 7 is a schematic diagram illustrating the conversion relationship between the original image data D 1 and the gain value when the original gain value G in FIG. 5 is 1.6 according to another embodiment of the present invention.

图8是依照本发明另一实施例说明一种图像处理装置的电路方块示意图。FIG. 8 is a schematic circuit block diagram illustrating an image processing device according to another embodiment of the present invention.

图9是依照本发明另一实施例说明一种使图像数据不饱和的方法流程示意图。FIG. 9 is a schematic flowchart illustrating a method for desaturating image data according to another embodiment of the present invention.

图10是依照本发明又一实施例说明一种图像处理装置的电路方块示意图。FIG. 10 is a schematic circuit block diagram illustrating an image processing device according to yet another embodiment of the present invention.

[标号说明][Description of labels]

110、510、810:全域增益产生器 120:计算电路110, 510, 810: global gain generator 120: calculation circuit

130:显示电路                 520、820:转换关系产生器130: display circuit 520, 820: conversion relationship generator

530、830:转换电路            610:原始转换关系曲线530, 830: conversion circuit 610: original conversion relationship curve

620:预设转换关系曲线         630、940:交点620: preset conversion relationship curve 630, 940: intersection point

640:交点范围                 821:查找表640: Intersection range 821: Lookup table

822:曲线合并单元             831:比较电路822: Curve merging unit 831: Comparison circuit

832:增益决定器               833:计算器832: Gain Determiner 833: Calculator

910:预设转换关系曲线         920:原始转换关系曲线910: Preset conversion relationship curve 920: Original conversion relationship curve

930:区域                     950:调整后转换关系曲线930: Area 950: Adjusted Conversion Relationship Curve

D1:原始图像数据              D2、D3、D4:图像数据D 1 : Raw image data D 2 , D 3 , D 4 : Image data

G:原始增益值                 G’:调整后增益值G: Original gain value G’: Adjusted gain value

M:代表灰阶值M: Represents the grayscale value

S410~S440、S710~S740:步骤S410~S440, S710~S740: steps

具体实施方式Detailed ways

在本案说明书全文(包括申请专利范围)中所使用的「耦接」一词可指任何直接或间接的连接手段。举例而言,若文中描述第一装置耦接于第二装置,则应该被解释成该第一装置可以直接连接于该第二装置,或者该第一装置可以通过其它装置或某种连接手段而间接地连接至该第二装置。另外,凡可能之处,在图式及实施方式中使用相同标号的元件/构件/步骤代表相同或类似部分。不同实施例中使用相同标号或使用相同用语的元件/构件/步骤可以相互参照相关说明。The term "coupling" used throughout the specification of this case (including the scope of claims) may refer to any direct or indirect means of connection. For example, if it is described that a first device is coupled to a second device, it should be interpreted that the first device can be directly connected to the second device, or the first device can be connected through other devices or some kind of connection means. indirectly connected to the second device. In addition, wherever possible, elements/components/steps using the same reference numerals in the drawings and embodiments represent the same or similar parts. Elements/components/steps using the same symbols or using the same terms in different embodiments can refer to related descriptions.

图4是依照本发明实施例说明一种使图像数据不饱和的方法流程示意图。图5是依照本发明实施例说明一种图像处理装置的电路方块示意图。请参照图4与图5,图像处理装置包括全域增益(global gain)产生器510、转换关系产生器520与转换电路530。图像处理装置可以对多个画面的图像数据进行图像处理,其中这些画面分别包括多个像素单元,各个像素单元包括多个子像素,这些子像素分别对应于多种颜色。FIG. 4 is a schematic flowchart illustrating a method for desaturating image data according to an embodiment of the present invention. FIG. 5 is a schematic circuit block diagram illustrating an image processing device according to an embodiment of the present invention. Referring to FIG. 4 and FIG. 5 , the image processing device includes a global gain generator 510 , a conversion relationship generator 520 and a conversion circuit 530 . The image processing device may perform image processing on image data of multiple frames, wherein these frames respectively include multiple pixel units, each pixel unit includes multiple sub-pixels, and these sub-pixels respectively correspond to multiple colors.

转换电路530耦接至全域增益产生器510与转换关系产生器520。全域增益产生器510可以参照图1中全域增益产生器110的相关说明而类推之。于步骤S410中,全域增益产生器510可以分析图像数据中多个画面的一个画面,而获得该画面的原始转换关系曲线。所述原始转换关系曲线表示该画面的多个灰阶值欲共同依据原始增益值G的增益处理。在一些实施例中,所述原始转换关系曲线可以是数据对数据曲线,分别定义增益转换前灰阶值与增益转换后灰阶值间的对应关系。例如,图2或图3可以视为所述原始转换关系曲线的特别范例。全域增益产生器510可以将表示所述原始转换关系曲线的原始增益值G提供给转换电路530。The conversion circuit 530 is coupled to the global gain generator 510 and the conversion relationship generator 520 . The global gain generator 510 can be analogized with reference to the related description of the global gain generator 110 in FIG. 1 . In step S410 , the global gain generator 510 may analyze one frame among the multiple frames in the image data to obtain an original transformation relation curve of the frame. The original conversion relation curve indicates that multiple grayscale values of the picture are to be processed according to the original gain value G. In some embodiments, the original conversion relationship curve may be a data-to-data curve, respectively defining a corresponding relationship between gray scale values before gain conversion and gray scale values after gain conversion. For example, FIG. 2 or FIG. 3 can be regarded as a special example of the original transformation relationship curve. The global gain generator 510 may provide the original gain value G representing the original conversion relationship curve to the conversion circuit 530 .

当原始增益值G不大于1时,原始增益值G不会让图像数据D3发生饱和,因此转换电路530可以选择使用代表原始增益值G的所述原始转换关系曲线将原始图像数据D1转换至新图像数据D3。本实施例并不限制转换电路530将原始图像数据D1转换至新图像数据D3的转换方式。例如,转换电路530可以依据原始增益值G(所述原始转换关系曲线)选择/制作对应的查找表(lookup table,LUT),然后使用此对应的查找表将原始图像数据D1转换至新图像数据D3。又例如,转换电路530可以计算原始增益值G与图像数据D1的乘积(即G*D1),作为图像数据D3。转换电路530可以将图像数据D3输出给显示电路(未绘示)。此显示电路可以依照图像数据D3驱动显示面板(未绘示)而显示对应的图像画面。When the original gain value G is not greater than 1, the original gain value G will not saturate the image data D3 , so the conversion circuit 530 can choose to use the original conversion curve representing the original gain value G to convert the original image data D1 to new image data D 3 . This embodiment does not limit the conversion method of the conversion circuit 530 to convert the original image data D1 into the new image data D3 . For example, the conversion circuit 530 can select/make a corresponding lookup table (lookup table, LUT) according to the original gain value G (the original conversion relationship curve), and then use the corresponding lookup table to convert the original image data D1 into a new image Data D 3 . For another example, the conversion circuit 530 may calculate the product of the original gain value G and the image data D 1 (ie, G*D 1 ) as the image data D 3 . The conversion circuit 530 can output the image data D3 to a display circuit (not shown). The display circuit can drive a display panel (not shown) according to the image data D3 to display corresponding image frames.

于步骤S420中,转换关系产生器520可以获得一预设转换关系曲线,其中该预设转换关系曲线可以供多个画面的图像数据进行反饱和处理时共同使用。所述预设转换关系曲线可以是设计需求而决定之。例如,在一些实施例中,若所述原始转换关系曲线是数据对数据曲线,则所述预设转换关系曲线可以是数据对数据曲线,其中在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶(高亮度)范围中,所述预设转换关系曲线的斜率大于0且小于或等于1。因此,当全域增益产生器510所提供的原始增益值G大于1时,也就是当所述原始转换关系曲线的斜率大于1时,该原始转换关系曲线与该预设转换关系曲线之间具有一交点。例如,图6是依照本发明实施例说明当图5中原始增益值G为1.6时,原始图像数据D1对新图像数据D3的转换关系曲线示意图。于图6中,横轴表示原始图像数据D1,而纵轴表示经转换电路530转换后的新图像数据D3。假设图像数据D1与图像数据D3均为8位数据,因此图像数据D1的数值范围为0至255,而图像数据D3的数值范围亦为0至255。曲线610表示对应于原始增益值G的所述原始转换关系曲线。如图6所示,原始转换关系曲线610包括:斜率等于原始增益值G的斜直线以及斜率等于0的水平直线。很明显地,在原始增益值G为1.6的条件下,表示原始增益值G的原始转换关系曲线610在图像数据D1为160至255的范围内发生「饱和」。In step S420 , the conversion relationship generator 520 can obtain a preset conversion relationship curve, wherein the preset conversion relationship curve can be commonly used when the image data of multiple frames are desaturated. The preset conversion relationship curve may be determined according to design requirements. For example, in some embodiments, if the original conversion relationship curve is a data-to-data curve, the preset conversion relationship curve may be a data-to-data curve, which at least covers the highest grayscale applied by the image processing device In the high grayscale (high brightness) range of values, the slope of the preset conversion relationship curve is greater than 0 and less than or equal to 1. Therefore, when the original gain value G provided by the global gain generator 510 is greater than 1, that is, when the slope of the original conversion relationship curve is greater than 1, there is a certain relationship between the original conversion relationship curve and the preset conversion relationship curve. intersection. For example, FIG. 6 is a schematic diagram illustrating a transformation relationship curve between the original image data D 1 and the new image data D 3 when the original gain value G in FIG. 5 is 1.6 according to an embodiment of the present invention. In FIG. 6 , the horizontal axis represents the original image data D 1 , and the vertical axis represents the new image data D 3 converted by the conversion circuit 530 . Assume that the image data D1 and the image data D3 are both 8-bit data, so the value range of the image data D1 is 0 to 255, and the value range of the image data D3 is also 0 to 255. Curve 610 represents the original conversion curve corresponding to the original gain value G. As shown in FIG. 6 , the original conversion relationship curve 610 includes: an oblique straight line with a slope equal to the original gain value G and a horizontal straight line with a slope equal to zero. Obviously, under the condition that the original gain value G is 1.6, the original conversion relation curve 610 representing the original gain value G is “saturated” within the range of 160 to 255 of the image data D 1 .

于图6中另绘示转换关系产生器520所提供的预设转换关系曲线620,其中在高灰阶(高亮度)范围中所述预设转换关系曲线620的斜率大于0,甚至所述预设转换关系曲线620的所有斜率均大于0。因此,所述预设转换关系曲线620不会发生「饱和」。预设转换关系曲线620可以当作系统可接受的最大增益值的集合。预设转换关系曲线620可以视实际产品的设计需求而决定之。于本实施例中,画面的不同颜色的图像数据可以使用不同的预设转换关系曲线620。预设转换关系曲线620可以用查找表的方式或其它方式实现之。由于全域增益产生器510所提供的原始增益值G大于1(如G=1.6),因此原始转换关系曲线610与预设转换关系曲线620之间具有一交点630。其中,在转换前灰阶值(图像数据D1)小于交点630所对应的交点灰阶值的低灰阶值范围内,原始转换关系曲线610上的转换后灰阶值(图像数据D3)均小于或等于预设转换关系曲线620上的转换后增益值(图像数据D3);以及在转换前灰阶值(图像数据D1)大于交点630所对应的交点灰阶值的高灰阶值范围内,原始转换关系曲线610上的转换后灰阶值(图像数据D3)均大于或等于预设转换关系曲线620上的转换后增益值(图像数据D3)。FIG. 6 also shows a preset conversion relationship curve 620 provided by the conversion relationship generator 520, wherein the slope of the preset conversion relationship curve 620 is greater than 0 in the high gray scale (high brightness) range, even the preset conversion relationship curve 620 It is assumed that all slopes of the conversion relationship curve 620 are greater than zero. Therefore, the preset conversion relationship curve 620 will not be "saturated". The preset conversion relationship curve 620 can be regarded as a set of maximum gain values acceptable to the system. The preset conversion relationship curve 620 can be determined according to the actual product design requirements. In this embodiment, different preset conversion relationship curves 620 may be used for image data of different colors in the frame. The preset conversion relationship curve 620 can be realized by a look-up table or other methods. Since the original gain value G provided by the global gain generator 510 is greater than 1 (eg, G=1.6), there is an intersection 630 between the original conversion relationship curve 610 and the preset conversion relationship curve 620 . Among them, in the range of low grayscale values where the grayscale value before conversion (image data D 1 ) is smaller than the grayscale value of the intersection point corresponding to the intersection point 630, the grayscale value after conversion on the original conversion relationship curve 610 (image data D 3 ) All are less than or equal to the converted gain value (image data D 3 ) on the preset conversion relationship curve 620; and the gray scale value before conversion (image data D 1 ) is higher than the high gray scale value corresponding to the intersection point 630 Within the value range, the converted grayscale values (image data D 3 ) on the original conversion relationship curve 610 are greater than or equal to the converted gain values (image data D 3 ) on the preset conversion relationship curve 620 .

请参照图4与图5,当全域增益产生器510所提供的原始增益值G大于1时,原始增益值G可能会让图像数据D3发生饱和,因此转换电路530可以动态地选择使用代表原始增益值G的所述原始转换关系曲线或转换关系产生器520所提供的所述预设转换关系曲线,而将原始图像数据D1转换至新图像数据D3。转换电路530可以进行步骤S430,以通过合并该预设转换关系曲线与该原始转换关系曲线,而对该画面进行反饱和处理,从而获得调整后转换关系曲线。于一些实施例中,该调整后转换关系曲线可以是数据对数据曲线,以分别定义增益转换前灰阶值与增益转换后灰阶值间的对应关系。Please refer to FIG. 4 and FIG. 5 , when the original gain value G provided by the global gain generator 510 is greater than 1, the original gain value G may saturate the image data D3 , so the conversion circuit 530 can dynamically select a representative original The original conversion relationship curve of the gain value G or the preset conversion relationship curve provided by the conversion relationship generator 520 is used to convert the original image data D 1 into the new image data D 3 . The conversion circuit 530 may perform step S430 to perform anti-saturation processing on the frame by merging the preset conversion relationship curve and the original conversion relationship curve, so as to obtain an adjusted conversion relationship curve. In some embodiments, the adjusted conversion relationship curve may be a data-to-data curve, so as to respectively define the corresponding relationship between the gray scale value before gain conversion and the gray scale value after gain conversion.

例如图6所示,当图像数据D1小于交点630时,转换电路530可以选择使用原始转换关系曲线610作为所述调整后转换关系曲线,以将图像数据D1转换至图像数据D3。当图像数据D1大于交点630时,转换电路530可以选择使用预设转换关系曲线620作为所述调整后转换关系曲线,以将图像数据D1转换至图像数据D3。也就是说,转换电路530可以选取原始转换关系曲线610中灰阶值(图像数据D1)低于预设转换关系曲线620与原始转换关系曲线610的交点630所对应的交点灰阶值的部分线段,作为调整后转换关系曲线的第一部分;以及选取预设转换关系曲线620中灰阶值高于所述交点灰阶值的部分线段,作为所述调整后转换关系曲线的第二部分。For example, as shown in FIG. 6 , when the image data D 1 is smaller than the intersection point 630 , the conversion circuit 530 may choose to use the original conversion relationship curve 610 as the adjusted conversion relationship curve to convert the image data D 1 into the image data D 3 . When the image data D 1 is greater than the intersection point 630 , the conversion circuit 530 may choose to use the preset conversion relationship curve 620 as the adjusted conversion relationship curve to convert the image data D 1 into the image data D 3 . That is to say, the conversion circuit 530 can select the gray scale value (image data D 1 ) in the original conversion relationship curve 610 that is lower than the intersection gray level value corresponding to the intersection point 630 of the preset conversion relationship curve 620 and the original conversion relationship curve 610 A line segment is used as the first part of the adjusted conversion relationship curve; and a part of the line segment in the preset conversion relationship curve 620 whose gray scale value is higher than the intersection point gray scale value is selected as the second part of the adjusted conversion relationship curve.

又例如,转换电路530可以将所述调整后转换关系曲线进行「圆滑(smooth)处理」,使所述调整后转换关系曲线上涵盖原始转换关系曲线610与预设转换关系曲线620的部分线段具有圆滑连接(Smooth connection)。转换电路530可以定义「交点范围」,其中原始转换关系曲线与预设转换关系曲线的交点位于该交点范围中。转换电路530在步骤S430中可以比较图像数据D1与所述交点范围(例如图6所示交点范围640)。于图6所示实施例中,转换电路530还可以将位于交点范围640中原始转换关系曲线610与预设转换关系曲线620进行圆滑处理,使原始转换关系曲线610与预设转换关系曲线620之间具有圆滑连接。在一些实施例中,所述圆滑处理包括低通滤波(Low pass filter)处理。转换电路530还可以利用低通滤波将位于交点范围640中的原始转换关系曲线610与预设转换关系曲线620转换为圆滑连接线,如图6所示。因此,当图像数据D1落于交点范围640时,转换电路530可以选择使用此圆滑连接线将图像数据D1转换至图像数据D3For another example, the conversion circuit 530 may perform "smooth processing" on the adjusted conversion relationship curve, so that part of the line segments covering the original conversion relationship curve 610 and the preset conversion relationship curve 620 on the adjusted conversion relationship curve have a Smooth connection. The conversion circuit 530 can define an "intersection point range", wherein the intersection point of the original conversion relationship curve and the default conversion relationship curve is located in the intersection point range. The conversion circuit 530 can compare the image data D 1 with the intersection range (such as the intersection range 640 shown in FIG. 6 ) in step S430 . In the embodiment shown in FIG. 6, the conversion circuit 530 can also perform smoothing processing on the original conversion relationship curve 610 and the preset conversion relationship curve 620 located in the intersection range 640, so that the difference between the original conversion relationship curve 610 and the preset conversion relationship curve 620 There is a smooth connection between them. In some embodiments, the rounding process includes low pass filter (Low pass filter) processing. The conversion circuit 530 can also convert the original conversion relationship curve 610 and the preset conversion relationship curve 620 in the intersection range 640 into a smooth connecting line by low-pass filtering, as shown in FIG. 6 . Therefore, when the image data D 1 falls within the intersection point range 640 , the conversion circuit 530 may choose to use this rounded connection line to convert the image data D 1 into the image data D 3 .

完成步骤S430后,转换电路530可以进行步骤S440,以依据步骤S430的调整后转换关系曲线,对画面的图像数据D1进行增益处理。例如,当图像数据D1小于交点范围640时,转换电路530可以选择使用原始转换关系曲线610将图像数据D1转换至图像数据D3。当图像数据D1大于交点范围640时,转换电路530可以选择使用预设转换关系曲线620将图像数据D1转换至图像数据D3。当图像数据D1落于交点范围640时,转换电路530可以选择使用交点范围640的圆滑连接线将图像数据D1转换至图像数据D3After step S430 is completed, the conversion circuit 530 may proceed to step S440 to perform gain processing on the image data D 1 of the frame according to the adjusted conversion relationship curve in step S430 . For example, when the image data D 1 is smaller than the intersection range 640 , the conversion circuit 530 may choose to use the original conversion relationship curve 610 to convert the image data D 1 into the image data D 3 . When the image data D 1 is larger than the intersection point range 640 , the conversion circuit 530 may choose to use the preset conversion relationship curve 620 to convert the image data D 1 into the image data D 3 . When the image data D 1 falls within the intersection range 640 , the conversion circuit 530 may choose to use the rounded connection line of the intersection range 640 to convert the image data D 1 into the image data D 3 .

本发明所称原始转换关系曲线、预设转换关系曲线与调整后转换关系曲线不应受限于图6所示实施范例的相关说明。例如,在另一些实施例中,所述原始转换关系曲线、预设转换关系曲线与调整后转换关系曲线可以是数据对增益曲线。其中,在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设转换关系曲线上的至少一对应的增益值均大于0且小于或等于1。The original conversion relationship curve, the preset conversion relationship curve and the adjusted conversion relationship curve mentioned in the present invention should not be limited to the relevant description of the implementation example shown in FIG. 6 . For example, in some other embodiments, the original conversion relationship curve, the preset conversion relationship curve and the adjusted conversion relationship curve may be data-to-gain curves. Wherein, at least one corresponding gain value on the preset conversion relationship curve is greater than 0 and less than or equal to 1 in the high gray scale range covering at least the highest gray scale value applied by the image processing device.

图7是依照本发明实施例说明当图5中原始增益值G为1.6时,原始图像数据D1对增益值的转换关系曲线示意图。于图7中,横轴表示原始图像数据D1,而纵轴表示增益值。图7所示曲线910表示转换关系产生器520所提供的预设转换关系曲线。于本实施例中,画面的不同颜色的图像数据可以使用不同的预设转换关系曲线910。图7所示曲线920表示对应于原始增益值G(例如G=1.6)的所述原始转换关系曲线。于本实施例中,原始转换关系曲线920是通过原始增益值G的水平直线。FIG. 7 is a schematic diagram illustrating the conversion relationship between the original image data D 1 and the gain value when the original gain value G in FIG. 5 is 1.6 according to an embodiment of the present invention. In FIG. 7 , the horizontal axis represents the original image data D 1 , and the vertical axis represents the gain value. The curve 910 shown in FIG. 7 represents the preset conversion relationship curve provided by the conversion relationship generator 520 . In this embodiment, different preset conversion relationship curves 910 may be used for image data of different colors in the frame. Curve 920 shown in FIG. 7 represents the original conversion curve corresponding to the original gain value G (eg, G=1.6). In this embodiment, the original conversion relationship curve 920 is a horizontal straight line passing through the original gain value G. As shown in FIG.

图7下部绘示了图7上部所示区域930的放大示意图。假设图像数据D1与图像数据D3均为8位数据,因此图像数据D1与图像数据D3的数值范围为0至255。在原始图像数据D1为最大值(即255)之处,预设转换关系曲线910的预设增益值为1。另外,在至少涵盖该图像处理装置所应用的最低灰阶值的低灰阶范围中,即图像数据D1的低灰阶(低亮度)范围中,所述预设转换关系曲线910上的至少一对应的增益值大于全域增益产生器510所提供的原始增益值G。因此,当全域增益产生器510所提供的原始增益值G大于1时(例如G=1.6),预设转换关系曲线910与代表原始增益值G的原始转换关系曲线920之间具有一交点940。The lower part of FIG. 7 shows an enlarged schematic view of the area 930 shown in the upper part of FIG. 7 . It is assumed that the image data D 1 and the image data D 3 are both 8-bit data, so the value range of the image data D 1 and the image data D 3 is 0 to 255. Where the original image data D 1 is the maximum value (ie, 255), the preset gain value of the preset conversion relationship curve 910 is 1. In addition, in the low grayscale range covering at least the lowest grayscale value applied by the image processing device, that is, in the low grayscale (low brightness) range of the image data D1 , at least A corresponding gain value is greater than the original gain value G provided by the global gain generator 510 . Therefore, when the original gain value G provided by the global gain generator 510 is greater than 1 (for example, G=1.6), there is an intersection point 940 between the preset conversion relationship curve 910 and the original conversion relationship curve 920 representing the original gain value G.

因为原始增益值G大于1,因此原始转换关系曲线920在图像数据D1的高灰阶(高亮度)范围可能会发生「饱和」。由于预设转换关系曲线910在图像数据D1的高灰阶(高亮度)范围的增益值收敛至1,因此预设转换关系曲线910不会发生「饱和」。预设转换关系曲线910可以当作系统可接受的最大增益值的集合。预设转换关系曲线910可以视实际产品的设计需求而决定之。预设转换关系曲线910可以用查找表的方式或其它方式实现之。Because the original gain value G is greater than 1, the original conversion relationship curve 920 may be "saturated" in the high grayscale (high brightness) range of the image data D1 . Since the gain value of the default conversion relationship curve 910 converges to 1 in the high grayscale (high brightness) range of the image data D1 , the default conversion relationship curve 910 will not be "saturated". The preset conversion relationship curve 910 can be regarded as a set of maximum gain values acceptable to the system. The preset conversion relationship curve 910 can be determined according to the actual product design requirements. The preset conversion relationship curve 910 can be realized by a look-up table or other methods.

请参照图5与图7,当全域增益产生器510所提供的原始增益值G大于1时,原始增益值G可能会让图像数据D3发生饱和,因此转换电路530可以依据图像数据D1而动态地选择使用原始转换关系曲线920或预设转换关系曲线910,而将原始图像数据D1转换至增益值。例如图7所示,当图像数据D1小于交点940时,转换电路530可以选择使用原始转换关系曲线920作为所述调整后转换关系曲线950的第一部分,以将图像数据D1转换为所述增益值。当图像数据D1大于交点940时,转换电路530可以选择使用预设转换关系曲线910作为所述调整后转换关系曲线950的第二部分,以将图像数据D1转换为所述增益值。转换电路530还可以使用调整后转换关系曲线950的增益值将图像数据D1转换至图像数据D3。由于调整后转换关系曲线950在图像数据D1的高灰阶(高亮度)范围的增益值收敛至1,因此可以确保增益后的图像数据D3不会发生「饱和」。Please refer to FIG. 5 and FIG. 7, when the original gain value G provided by the global gain generator 510 is greater than 1, the original gain value G may saturate the image data D3 , so the conversion circuit 530 can be based on the image data D1 . The original image data D 1 is converted to a gain value by dynamically selecting to use the original conversion relationship curve 920 or the preset conversion relationship curve 910 . For example, as shown in FIG. 7, when the image data D1 is smaller than the intersection point 940, the conversion circuit 530 may choose to use the original conversion relationship curve 920 as the first part of the adjusted conversion relationship curve 950, so as to convert the image data D1 into the gain value. When the image data D1 is greater than the intersection point 940, the conversion circuit 530 may choose to use the preset conversion relationship curve 910 as the second part of the adjusted conversion relationship curve 950 to convert the image data D1 into the gain value. The conversion circuit 530 can also use the gain value of the adjusted conversion relationship curve 950 to convert the image data D 1 into the image data D 3 . Since the adjusted conversion relationship curve 950 converges to 1 in the high-grayscale (high-brightness) range of the image data D1 , it can ensure that the gained image data D3 will not be "saturated".

于图7所示实施例中,转换电路530可以选取预设转换关系曲线910中小于原始增益值G(例如1.6)的部分曲线,以及选取原始转换关系曲线920中图像数据D1小于交点940的部分曲线,作为调整后转换关系曲线950。于图7所示实施例中,转换电路530还可以将调整后转换关系曲线950进行圆滑处理,使调整后转换关系曲线950具有圆滑连接,如图7所示。例如,在一些实施例中,所述圆滑处理包括低通滤波处理。In the embodiment shown in FIG. 7 , the conversion circuit 530 can select a part of the preset conversion relationship curve 910 that is smaller than the original gain value G (for example, 1.6), and select a part of the original conversion relationship curve 920 where the image data D1 is smaller than the intersection point 940 A part of the curve is used as the adjusted conversion relationship curve 950 . In the embodiment shown in FIG. 7 , the conversion circuit 530 can also perform smoothing processing on the adjusted conversion relationship curve 950 so that the adjusted conversion relationship curve 950 has a smooth connection, as shown in FIG. 7 . For example, in some embodiments, the rounding includes low-pass filtering.

图像处理装置的实现方式不应受限于图5的相关说明。例如,图8是依照本发明另一实施例说明一种图像处理装置的电路方块示意图。图8所示实施例可以参照图5的相关说明而类推之。请参照图4与图8,图像处理装置包括全域增益产生器810、转换关系产生器820与转换电路830。转换关系产生器820耦接至全域增益产生器810以接收原始增益值G,也就是接收原始转换关系曲线(例如图6所示原始转换关系曲线610或图7所示原始转换关系曲线920)。The implementation of the image processing device should not be limited to the related description of FIG. 5 . For example, FIG. 8 is a schematic circuit block diagram illustrating an image processing device according to another embodiment of the present invention. The embodiment shown in FIG. 8 can be deduced by referring to the related description of FIG. 5 . Referring to FIG. 4 and FIG. 8 , the image processing device includes a global gain generator 810 , a conversion relationship generator 820 and a conversion circuit 830 . The conversion relationship generator 820 is coupled to the global gain generator 810 to receive the original gain value G, that is, an original conversion relationship curve (such as the original conversion relationship curve 610 shown in FIG. 6 or the original conversion relationship curve 920 shown in FIG. 7 ).

全域增益产生器810可以参照图1中全域增益产生器110或图5中全域增益产生器510的相关说明而类推之。于步骤S410中,全域增益产生器810会依据系统的操作需求而决定原始增益值G,并且提供原始增益值G给转换关系产生器820。The global gain generator 810 can be analogized with reference to the related description of the global gain generator 110 in FIG. 1 or the global gain generator 510 in FIG. 5 . In step S410 , the global gain generator 810 determines the original gain value G according to the operating requirements of the system, and provides the original gain value G to the transformation relationship generator 820 .

转换关系产生器820还耦接至转换电路830。当原始增益值G不大于1时,原始增益值G不会让图像数据D4发生饱和,因此转换关系产生器820可以选择将全域增益产生器810所提供的原始增益值G传输至转换电路830。转换电路830可以依照转换关系产生器820所传输的原始增益值G,将原始图像数据D1转换至新图像数据D4。本实施例并不限制转换电路830将原始图像数据D1转换至新图像数据D4的转换方式。例如,转换电路830可以依据原始增益值G选择/制作对应的查找表(lookup table,LUT),然后使用此对应的查找表将原始图像数据D1转换至新图像数据D4。又例如,转换电路830可以计算原始增益值G与图像数据D1的乘积(即G*D1),作为图像数据D4。转换电路830可以将图像数据D4输出给显示电路(未绘示)。此显示电路可以依照图像数据D4驱动显示面板(未绘示)而显示对应的图像画面。The conversion relationship generator 820 is also coupled to the conversion circuit 830 . When the original gain value G is not greater than 1, the original gain value G will not saturate the image data D4 , so the conversion relationship generator 820 can choose to transmit the original gain value G provided by the global gain generator 810 to the conversion circuit 830 . The conversion circuit 830 can convert the original image data D 1 into new image data D 4 according to the original gain value G transmitted by the conversion relationship generator 820 . This embodiment does not limit the conversion method of the conversion circuit 830 to convert the original image data D1 into the new image data D4 . For example, the conversion circuit 830 can select/create a corresponding lookup table (LUT) according to the original gain value G, and then use the corresponding lookup table to convert the original image data D 1 into the new image data D 4 . For another example, the conversion circuit 830 can calculate the product of the original gain value G and the image data D 1 (ie, G*D 1 ) as the image data D 4 . The conversion circuit 830 can output the image data D4 to a display circuit (not shown). The display circuit can drive a display panel (not shown) according to the image data D4 to display corresponding image frames.

于步骤S420中,转换关系产生器820获得预设转换关系曲线(例如图6所示预设转换关系曲线620或图7所示预设转换关系曲线910),其中该预设转换关系曲线可以供多个画面的图像数据进行反饱和处理时共同使用。In step S420, the conversion relationship generator 820 obtains a preset conversion relationship curve (such as the preset conversion relationship curve 620 shown in FIG. 6 or the preset conversion relationship curve 910 shown in FIG. 7 ), wherein the preset conversion relationship curve can be used for It is commonly used when desaturation processing is performed on image data of multiple screens.

于步骤S430中,转换关系产生器820通过合并步骤S420的预设转换关系曲线与步骤S410的原始转换关系曲线,以对画面进行反饱和处理,从而获得调整后转换关系曲线。例如,以图6为例,请参照图6与图8。转换关系产生器820可以在步骤S430中通过预设转换关系曲线620与原始转换关系曲线610,以对画面进行反饱和处理,从而获得调整后转换关系曲线。又例如,以图7为例,请参照图7与图8。转换关系产生器820可以在步骤S430中通过预设转换关系曲线910与原始转换关系曲线920,以对画面进行反饱和处理,从而获得调整后转换关系曲线950。In step S430, the conversion relationship generator 820 combines the preset conversion relationship curve in step S420 and the original conversion relationship curve in step S410 to desaturate the image, thereby obtaining an adjusted conversion relationship curve. For example, taking FIG. 6 as an example, please refer to FIG. 6 and FIG. 8 . In step S430 , the conversion relationship generator 820 can desaturate the picture through the preset conversion relationship curve 620 and the original conversion relationship curve 610 , so as to obtain the adjusted conversion relationship curve. For another example, take FIG. 7 as an example, please refer to FIG. 7 and FIG. 8 . In step S430 , the conversion relationship generator 820 can desaturate the picture through the preset conversion relationship curve 910 and the original conversion relationship curve 920 , so as to obtain the adjusted conversion relationship curve 950 .

在完成步骤S430后,转换电路830可以进行步骤S440,以依据所述调整后转换关系曲线,对画面的图像数据进行增益处理。After step S430 is completed, the conversion circuit 830 may perform step S440 to perform gain processing on the image data of the frame according to the adjusted conversion relationship curve.

图像处理方法的实现方式不应受限于图4的相关说明。例如,图9是依照本发明另一实施例说明一种使图像数据不饱和的方法流程示意图。图9所示实施例可以参照图4的相关说明而类推之。图9所示方法可以应用于图5所示图像处理装置或图8所示图像处理装置。The implementation of the image processing method should not be limited to the description in FIG. 4 . For example, FIG. 9 is a schematic flowchart illustrating a method for desaturating image data according to another embodiment of the present invention. The embodiment shown in FIG. 9 can be deduced by referring to the relevant description of FIG. 4 . The method shown in FIG. 9 can be applied to the image processing device shown in FIG. 5 or the image processing device shown in FIG. 8 .

请参照图5与图9,图像处理装置可以对多个画面的图像数据进行图像处理,其中各个画面包括多个像素单元,而各个像素单元包括多个子像素,分别对应于多种颜色。图像处理装置包括全域增益产生器510、转换关系产生器520与转换电路530。全域增益产生器510可以进行步骤S710,以分析多个画面当中的一画面,而获得该画面的多个灰阶值所共同对应的原始增益值G。例如,以图7为例,步骤S710的原始增益值G可以是原始转换关系曲线920。Referring to FIG. 5 and FIG. 9 , the image processing device may perform image processing on image data of multiple frames, wherein each frame includes multiple pixel units, and each pixel unit includes multiple sub-pixels corresponding to multiple colors. The image processing device includes a global gain generator 510 , a conversion relation generator 520 and a conversion circuit 530 . The global gain generator 510 may perform step S710 to analyze a frame among the multiple frames to obtain an original gain value G corresponding to multiple grayscale values of the frame. For example, taking FIG. 7 as an example, the original gain value G in step S710 may be the original conversion relation curve 920 .

于步骤S720中,转换电路530可以获得转换关系产生器520所提供的一预设数据对增益转换关系查表,其中该预设数据对增益转换查表记录多个预设灰阶值与分别相对应的多个预设增益值。所述预设数据对增益转换查表可以供多个画面的图像数据进行反饱和处理时共同使用。例如,以图7为例,步骤S720的预设数据对增益转换关系查表可以记录预设转换关系曲线910。In step S720, the conversion circuit 530 can obtain a preset data-to-gain conversion relationship look-up table provided by the conversion relationship generator 520, wherein the preset data-to-gain conversion look-up table records a plurality of preset gray scale values and respective corresponding Corresponding multiple preset gain values. The preset data-to-gain conversion look-up table can be used in common when desaturation processing is performed on the image data of multiple frames. For example, taking FIG. 7 as an example, the preset data-to-gain conversion relationship look-up table in step S720 may record the preset conversion relationship curve 910 .

于步骤S730中,转换电路530可以依据步骤S710的原始增益值,而利用步骤S720的预设数据对增益转换关系查表,来对该画面进行反饱和处理,而获得该画面的调整后数据对增益转换关系,其中该调整后数据与增益转换关系定义该画面的不同灰阶值与相对应的调整后增益值之间的转换关系。例如,以图7为例,步骤S730的调整后数据对增益转换关系可以是调整后转换关系曲线950。In step S730, the conversion circuit 530 can use the preset data in step S720 to look up the gain conversion relationship table according to the original gain value in step S710 to perform anti-saturation processing on the picture, and obtain the adjusted data pair of the picture Gain conversion relationship, wherein the adjusted data and gain conversion relationship define the conversion relationship between different grayscale values of the image and corresponding adjusted gain values. For example, taking FIG. 7 as an example, the adjusted data versus gain conversion relationship in step S730 may be an adjusted conversion relationship curve 950 .

于步骤S740中,转换电路530可以依据步骤S730的所述调整后数据对增益转换关系,对该画面的图像数据进行增益处理。在此不限制步骤S740的实现方式。例如,转换电路530可以获得该画面的多个灰阶值,并根据步骤S730的所述调整后数据对增益转换关系,获得该画面的多个灰阶值分别所对应的多个调整后增益值;以及利用所述多个调整后增益值,转换电路530分别为该画面的所述多个灰阶值进行增益处理。In step S740, the conversion circuit 530 may perform gain processing on the image data of the frame according to the adjusted data-to-gain conversion relationship in step S730. The implementation manner of step S740 is not limited here. For example, the conversion circuit 530 may obtain multiple grayscale values of the picture, and obtain multiple adjusted gain values corresponding to the multiple grayscale values of the picture according to the adjusted data-to-gain conversion relationship in step S730 and using the multiple adjusted gain values, the conversion circuit 530 performs gain processing for the multiple gray scale values of the picture respectively.

图9所示方法可以亦可以应用于图8所示图像处理装置。请参照图8与图9,全域增益产生器810在步骤S710分析画面而获得该画面的多个灰阶值所共同对应的原始增益值G。转换关系产生器820耦接至全域增益产生器810以接收原始增益值G。例如,以图7为例,步骤S710的原始增益值G可以是原始转换关系曲线920。The method shown in FIG. 9 can also be applied to the image processing device shown in FIG. 8 . Please refer to FIG. 8 and FIG. 9 , the global gain generator 810 analyzes the frame at step S710 to obtain an original gain value G corresponding to multiple grayscale values of the frame. The conversion relation generator 820 is coupled to the global gain generator 810 to receive the original gain value G. As shown in FIG. For example, taking FIG. 7 as an example, the original gain value G in step S710 may be the original conversion relation curve 920 .

转换关系产生器820在步骤S720另获得预设数据对增益转换关系查表。例如,以图7为例,步骤S720的预设数据对增益转换关系查表可以记录预设转换关系曲线910。In step S720, the conversion relationship generator 820 further obtains a preset data-to-gain conversion relationship look-up table. For example, taking FIG. 7 as an example, the preset data-to-gain conversion relationship look-up table in step S720 may record the preset conversion relationship curve 910 .

转换关系产生器820在步骤S730可以依据原始增益值G,而利用步骤S720的预设数据对增益转换关系查表,来对画面进行反饱和处理,而获得该画面的调整后数据对增益转换关系。于本实施例中,步骤S730可以将画面的多个灰阶值当中部分的至少一较高灰阶值所对应的该些调整后增益值设定为等于该些预设增益值,以及将画面的多个灰阶值当中部分的至少一较低灰阶值所对应的该些调整后增益值设定为等于该原始增益值。例如,转换关系产生器820可以直接采用该预设数据对增益转换查表中属于一较低增益范围中的该些预设灰阶值与相对应的该些预设增益值,以及转换关系产生器820可以将较高增益范围中所有灰阶值相对应的调整后增益值设定为均等于该原始增益值,来得到所述调整后数据对增益转换关系的较高增益范围部分。此较低增益范围包括至少一增益值,以及此较低边界范围的较低边界增益值对应于该图像处理装置所应用的最高灰阶值。此较高增益范围包括至少一增益值,以及此较高增益范围的较高边界增益值是对应该图像处理装置所应用的最低灰阶值。In step S730, the conversion relationship generator 820 can perform anti-saturation processing on the picture by using the preset data-to-gain conversion relationship look-up table in step S720 according to the original gain value G, and obtain the adjusted data-to-gain conversion relationship of the picture. . In this embodiment, step S730 may set the adjusted gain values corresponding to at least one higher gray-scale value among the plurality of gray-scale values of the picture to be equal to the preset gain values, and set the picture The adjusted gain values corresponding to at least one lower gray-scale value among the plurality of gray-scale values are set to be equal to the original gain value. For example, the conversion relationship generator 820 can directly use the preset data to generate the conversion relationship between the preset gray scale values and the corresponding preset gain values that belong to a lower gain range in the gain conversion look-up table. The unit 820 may set the adjusted gain values corresponding to all the grayscale values in the higher gain range to be equal to the original gain value, so as to obtain the higher gain range part of the adjusted data-to-gain conversion relationship. The lower gain range includes at least one gain value, and the lower boundary gain value of the lower boundary range corresponds to the highest gray scale value applied by the image processing device. The higher gain range includes at least one gain value, and a higher boundary gain value of the higher gain range corresponds to the lowest gray scale value used by the image processing device.

转换关系产生器820还可以根据原始增益值G与预设数据对增益转换关系查表当中至少之一者,获得一特定增益值,以及依据该特定增益值决定该较高增益范围与该较低增益范围。其中,所述较低增益范围的一较高边界增益值是低于或等于该特定增益值,以及所述较高增益范围的一较低边界增益值是高于或等于该特定增益值。在一些实施例中,转换关系产生器820可以将该原始增益值G当作该特定增益值。The conversion relationship generator 820 can also obtain a specific gain value according to at least one of the original gain value G and the preset data-to-gain conversion relationship look-up table, and determine the higher gain range and the lower gain range according to the specific gain value. gain range. Wherein, a higher boundary gain value of the lower gain range is lower than or equal to the specific gain value, and a lower boundary gain value of the higher gain range is higher than or equal to the specific gain value. In some embodiments, the conversion relationship generator 820 can regard the original gain value G as the specific gain value.

在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设数据对增益转换关系查表上的至少一对应的预设增益值均为1。在涵盖至少该图像处理装置所应用的最低灰阶值的低灰阶范围中,该预设数据对增益转换关系查表上的上的至少一对应的预设增益值均高于该原始增益值G。In the high grayscale range covering at least the highest grayscale value applied by the image processing device, at least one corresponding preset gain value in the gain conversion relationship look-up table of the preset data is 1. In the low grayscale range covering at least the lowest grayscale value applied by the image processing device, at least one corresponding preset gain value on the gain conversion relationship look-up table of the preset data pair is higher than the original gain value g.

以图7为例,步骤S730可以直接采用预设转换关系曲线910当中具有较高灰阶值(例如大于交点940)的部分(较低增益边界范围)设定为调整后转换关系曲线950的较低增益范围部分,其中此较低边界范围的较低边界增益值(例如增益值为1)对应于该图像处理装置所应用的最高灰阶值(例如灰阶值为255)。步骤S730还可以采用图7所示原始转换关系曲线920(即原始增益值)当中具有较低灰阶值(例如小于交点940)的部分(较高增益边界范围)设定为调整后转换关系曲线950的较高增益范围部分,其中此较高边界范围的较高边界增益值对应于该图像处理装置所应用的最低灰阶值(例如灰阶值为0)。在涵盖最高灰阶值(例如灰阶值为255)的高灰阶范围中,预设转换关系曲线910上的至少一对应的预设增益值为1。在涵盖最低灰阶值(例如灰阶值为0)的低灰阶范围中,预设转换关系曲线910上的对应的预设增益值均高于该原始增益值G。Taking FIG. 7 as an example, step S730 can directly use the part (lower gain boundary range) of the preset conversion relationship curve 910 with a higher gray scale value (for example, greater than the intersection point 940) to be set as the lower part of the adjusted conversion relationship curve 950. The part of the low gain range, wherein the lower boundary gain value (eg gain value 1) of the lower boundary range corresponds to the highest grayscale value (eg grayscale value 255) applied by the image processing device. Step S730 can also use the part (higher gain boundary range) of the original conversion relationship curve 920 (ie, the original gain value) shown in FIG. The upper gain range part of 950, wherein the upper boundary gain value of the upper boundary range corresponds to the lowest grayscale value (eg grayscale value 0) applied by the image processing device. In the high gray scale range covering the highest gray scale value (for example, the gray scale value is 255), at least one corresponding preset gain value on the preset conversion relationship curve 910 is 1. In the low gray scale range covering the lowest gray scale value (for example, the gray scale value is 0), the corresponding preset gain values on the preset conversion relationship curve 910 are all higher than the original gain value G. As shown in FIG.

转换电路830耦接至转换关系产生器820。转换电路830在步骤S740可以依据步骤S730的调整后数据对增益转换关系,对该画面的图像数据进行增益处理。The conversion circuit 830 is coupled to the conversion relationship generator 820 . In step S740, the conversion circuit 830 may perform gain processing on the image data of the frame according to the adjusted data-to-gain conversion relationship in step S730.

图10是依照本发明又一实施例说明一种图像处理装置的电路方块示意图。图10所示实施例可以参照图8的相关说明而类推之。不同于图8所示实施例之处,在于图8所示转换关系产生器820包括查找表821与曲线合并单元822。请参照图7、图9与图10,查找表821可以记录并提供预设转换关系曲线910给曲线合并单元822(步骤S720)。曲线合并单元822耦接至查找表821与全域增益产生器810。曲线合并单元822在步骤S730中选取预设转换关系曲线910中小于原始值G(例如1.6,由全域增益产生器810决定)的部分,以及选取原始转换关系曲线920中图像数据D1小于交点940的部分,作为调整后转换关系曲线950(即调整后数据对增益转换关系),以提供调整后转换关系曲线950给转换电路830。FIG. 10 is a schematic circuit block diagram illustrating an image processing device according to yet another embodiment of the present invention. The embodiment shown in FIG. 10 can be deduced by referring to the relevant description of FIG. 8 . The difference from the embodiment shown in FIG. 8 is that the conversion relationship generator 820 shown in FIG. 8 includes a lookup table 821 and a curve merging unit 822 . Referring to FIG. 7 , FIG. 9 and FIG. 10 , the lookup table 821 can record and provide the preset conversion relationship curve 910 to the curve merging unit 822 (step S720 ). The curve combining unit 822 is coupled to the look-up table 821 and the global gain generator 810 . The curve merging unit 822 selects in step S730 the part of the preset conversion relationship curve 910 that is smaller than the original value G (for example, 1.6, determined by the global gain generator 810), and selects the image data D1 in the original conversion relationship curve 920 that is smaller than the intersection point 940 part, as the adjusted conversion relationship curve 950 (ie, the adjusted data-to-gain conversion relationship), so as to provide the adjusted conversion relationship curve 950 to the conversion circuit 830 .

在一些实施例中,转换电路830包括增益决定器832以及计算器833。增益决定电路832耦接至转换关系产生器820。增益决定电路832获得该画面的多个灰阶值,并根据步骤S730的调整后数据对增益转换关系,获得该画面的多个灰阶值分别所对应的多个调整后增益值G’。计算器833耦接至增益决定电路832。计算器833利用调整后增益值G’,分别为该画面的多个灰阶值进行增益处理(步骤S740)。In some embodiments, the conversion circuit 830 includes a gain determiner 832 and a calculator 833 . The gain determining circuit 832 is coupled to the conversion relationship generator 820 . The gain determination circuit 832 obtains multiple grayscale values of the frame, and obtains multiple adjusted gain values G' corresponding to the multiple grayscale values of the frame according to the adjusted data-to-gain conversion relationship in step S730. The calculator 833 is coupled to the gain determining circuit 832 . The calculator 833 uses the adjusted gain value G' to perform gain processing for the multiple grayscale values of the frame (step S740).

在另一些实施例中,图8所示转换电路830还可以包括耦接至增益决定电路832的比较电路831。比较电路831接收原始图像数据D1,以及依据原始图像数据D1中各个像素(pixel)单元的多个子像素(sub-pixel)的多个个别灰阶值,获得各像素单元的一代表灰阶值M,来作为所述多个灰阶值当中的一者。增益决定电路832获得比较电路831所提供的代表灰阶值M,并根据步骤S730的调整后数据对增益转换关系,获得这些像素单元的代表灰阶值M分别所对应的多个调整后增益值G’。计算器833利用调整后增益值G’分别为原始图像数据D1中对应的灰阶值进行增益处理(步骤S740)。In other embodiments, the conversion circuit 830 shown in FIG. 8 may further include a comparison circuit 831 coupled to the gain determination circuit 832 . The comparison circuit 831 receives the original image data D 1 , and obtains a representative gray scale of each pixel unit according to a plurality of individual gray scale values of a plurality of sub-pixels (sub-pixels) of each pixel unit in the original image data D 1 The value M is used as one of the plurality of grayscale values. The gain determination circuit 832 obtains the representative grayscale value M provided by the comparison circuit 831, and according to the adjusted data-to-gain conversion relationship in step S730, obtains a plurality of adjusted gain values corresponding to the representative grayscale values M of these pixel units respectively G'. The calculator 833 uses the adjusted gain value G′ to perform gain processing for the corresponding gray scale values in the original image data D1 (step S740 ).

在此并不限定比较电路831的实现方式。例如,比较电路831可以从各个像素单元的多个子像素的多个个别灰阶值当中,分别找出最高灰阶值,作为该像素单元的代表灰阶值M。举例来说,假设原始图像数据D1是一个像素单元数据,而此像素单元数据包含红(R)、绿(G)、蓝(B)等子像素数据,则比较电路831可以从同一个像素单元的R、G、B三个子像素数据中选择最大值(最高灰阶值),作为该像素单元的代表灰阶值M。增益决定器832耦接至比较电路831,以接收代表灰阶值M。增益决定器832依据代表灰阶值M而从转换关系产生器820所提供的调整后数据对增益转换关系(例如图7所示调整后转换关系曲线950)中查找出调整后增益值G’。The implementation of the comparison circuit 831 is not limited here. For example, the comparison circuit 831 can find the highest gray-scale value from among the multiple individual gray-scale values of the multiple sub-pixels of each pixel unit as the representative gray-scale value M of the pixel unit. For example, assuming that the original image data D1 is a pixel unit data, and the pixel unit data includes sub-pixel data such as red (R), green (G), blue (B), etc., the comparison circuit 831 can obtain from the same pixel The maximum value (highest grayscale value) is selected from the three sub-pixel data of R, G, and B of the unit as the representative grayscale value M of the pixel unit. The gain determiner 832 is coupled to the comparison circuit 831 to receive the representative gray scale value M. As shown in FIG. The gain determiner 832 finds the adjusted gain value G′ from the adjusted data-to-gain conversion relationship provided by the conversion relationship generator 820 (eg, the adjusted conversion relationship curve 950 shown in FIG. 7 ) according to the representative grayscale value M.

计算器833耦接至增益决定器832,以接收调整后增益值G’。计算器833可以使用增益决定器832所提供的调整后增益值G’与原始图像数据D1,去计算增益后图像数据D4。本实施例并不限制计算器833计算增益后图像数据D4的方式。例如,计算器833可以包括乘法器,其中该乘法器可以计算调整后增益值G’与原始图像数据D1的乘积(即G’*D1),作为图像数据D4。计算器833可以将图像数据D4输出给显示电路(未绘示)。此显示电路可以依照图像数据D4驱动显示面板(未绘示)而显示对应的图像画面。The calculator 833 is coupled to the gain determiner 832 to receive the adjusted gain value G′. The calculator 833 can use the adjusted gain value G′ provided by the gain determiner 832 and the original image data D 1 to calculate the gained image data D 4 . This embodiment does not limit the manner in which the calculator 833 calculates the image data D4 after gain. For example, the calculator 833 may include a multiplier, wherein the multiplier may calculate the product of the adjusted gain value G′ and the original image data D 1 (ie, G′*D 1 ) as the image data D 4 . The calculator 833 can output the image data D4 to a display circuit (not shown). The display circuit can drive a display panel (not shown) according to the image data D4 to display corresponding image frames.

图4所示方法可以亦可以应用于图10所示图像处理装置。请参照图4、图8与图9,全域增益产生器810在步骤S410分析画面而获得该画面的多个灰阶值所共同对应的原始增益值G(即原始转换关系曲线)。例如,若以图6为例,步骤S410的原始增益值G可以是原始转换关系曲线610。若以图7为例,步骤S410的原始增益值G可以是原始转换关系曲线920。The method shown in FIG. 4 can also be applied to the image processing device shown in FIG. 10 . Referring to FIG. 4 , FIG. 8 and FIG. 9 , the global gain generator 810 analyzes the picture in step S410 to obtain the original gain value G (ie, the original conversion relationship curve) corresponding to the multiple grayscale values of the picture. For example, taking FIG. 6 as an example, the original gain value G in step S410 may be the original conversion relationship curve 610 . Taking FIG. 7 as an example, the original gain value G in step S410 may be the original conversion relationship curve 920 .

转换关系产生器820在步骤S420另获得预设转换关系曲线。例如,若以图6为例,步骤S420的预设转换关系曲线可以是图6所示曲线620。若以图7为例,步骤S420的预设转换关系曲线可以是图7所示曲线910。查找表821可以记录并提供该预设转换关系曲线。The conversion relationship generator 820 further obtains a preset conversion relationship curve in step S420 . For example, taking FIG. 6 as an example, the preset conversion relationship curve in step S420 may be the curve 620 shown in FIG. 6 . Taking FIG. 7 as an example, the preset conversion relationship curve in step S420 may be the curve 910 shown in FIG. 7 . The lookup table 821 can record and provide the preset conversion relationship curve.

曲线合并单元822耦接至查找表821与全域增益产生器810。曲线合并单元822在步骤S430中选取所述原始转换关系曲线中灰阶值低于预设转换关系曲线与原始转换关系曲线的交点所对应的交点灰阶值的部分线段,作为该调整后转换关系曲线的第一部分。曲线合并单元822在步骤S430中选取该预设转换关系曲线中灰阶值高于该交点灰阶值的部分线段作为该调整后转换关系曲线的第二部分。例如,若以图6为例,曲线合并单元822在步骤S430中选取图6所示原始转换关系曲线610中灰阶值低于交点630所对应的交点灰阶值的部分线段作为调整后转换关系曲线的第一部分,以及选取预设转换关系曲线620中灰阶值高于交点630所对应的交点灰阶值的部分线段作为该调整后转换关系曲线的第二部分。若以图7为例,曲线合并单元822在步骤S430中选取图7所示原始转换关系曲线920中灰阶值低于交点940所对应的交点灰阶值的部分线段作为调整后转换关系曲线950的第一部分,以及选取预设转换关系曲线910中灰阶值高于交点940所对应的交点灰阶值的部分线段作为该调整后转换关系曲线950的第二部分。The curve combining unit 822 is coupled to the look-up table 821 and the global gain generator 810 . In step S430, the curve merging unit 822 selects a partial line segment in the original conversion relationship curve whose gray scale value is lower than the gray level value of the intersection point corresponding to the intersection point of the preset conversion relationship curve and the original conversion relationship curve, as the adjusted conversion relationship The first part of the curve. In step S430, the curve merging unit 822 selects a part of the preset conversion relationship curve whose grayscale value is higher than the intersection point grayscale value as the second part of the adjusted conversion relationship curve. For example, if Fig. 6 is taken as an example, in step S430, the curve merging unit 822 selects a part of the line segment whose grayscale value is lower than the grayscale value of the intersection point corresponding to the intersection point 630 in the original conversion relationship curve 610 shown in FIG. The first part of the curve, and the part of the line segment whose grayscale value is higher than the grayscale value of the intersection point corresponding to the intersection point 630 in the preset conversion relationship curve 620 is selected as the second part of the adjusted conversion relationship curve. Taking FIG. 7 as an example, in step S430, the curve merging unit 822 selects a part of the line segment whose gray scale value is lower than the gray scale value of the intersection point corresponding to the intersection point 940 in the original conversion relationship curve 920 shown in FIG. The first part of the preset conversion relationship curve 910 is selected as the second part of the adjusted conversion relationship curve 950 .

综上所述,本实施例在增益上作调整,并设定一条预设转换关系曲线(例如图6所示620或图7所示910)当作系统可接受的最大增益值。转换关系产生器820可以合并预设转换关系曲线与代表原始增益值G的原始转换关系曲线(例如图6所示610或图7所示920),以获得调整后转换关系曲线。依据图像数据D1中R、G、B三个子像素数据中的最大值,转换电路830从预设转换关系曲线950中查找出调整后增益值G’。此调整后增益值G’适用于图像数据D1中R、G、B三个子像素数据。以图7为例,由于调整后转换关系曲线950在图像数据D1的高灰阶(高亮度)范围的增益值收敛至1,因此可以确保增益后图像数据D4中R、G、B三个子像素数据不会发生「饱和」,达到保留高亮度细节的效果。To sum up, this embodiment adjusts the gain, and sets a preset conversion relationship curve (such as 620 shown in FIG. 6 or 910 shown in FIG. 7 ) as the maximum acceptable gain value of the system. The conversion relationship generator 820 can combine the preset conversion relationship curve with the original conversion relationship curve (such as 610 shown in FIG. 6 or 920 shown in FIG. 7 ) representing the original gain value G to obtain an adjusted conversion relationship curve. According to the maximum value of the three sub-pixel data of R, G, and B in the image data D 1 , the conversion circuit 830 finds out the adjusted gain value G′ from the preset conversion relationship curve 950 . The adjusted gain value G' is applicable to the three sub-pixel data of R, G, and B in the image data D1 . Taking FIG. 7 as an example, since the adjusted conversion relationship curve 950 converges to 1 in the high grayscale (high brightness) range of the image data D1 , it can ensure that the three values of R, G, and B in the image data D4 after gain are The sub-pixel data will not be "saturated", achieving the effect of preserving high-brightness details.

虽然本发明已以实施例揭露如上,然其并非用以限定本发明,任何所属技术领域中具有通常知识者,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,故本发明的保护范围当视所附的权利要求范围所界定者为准。Although the present invention has been disclosed as above with the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the appended claims.

Claims (70)

1.一种图像处理方法,用以对图像处理装置的多个画面的图像数据进行图像处理,其中各该画面包括多个像素单元,各该多个像素单元包括多个子像素,分别对应于多种颜色,该图像处理方法包括:1. An image processing method for performing image processing on image data of a plurality of frames of an image processing device, wherein each of the frames includes a plurality of pixel units, and each of the plurality of pixel units includes a plurality of sub-pixels corresponding to a plurality of sub-pixels respectively color, the image processing method includes: 分析该多个画面当中的画面而获得该画面的多个灰阶值所共同对应的原始增益值,其中该原始增益值高于1;analyzing a picture among the multiple pictures to obtain an original gain value corresponding to multiple grayscale values of the picture, wherein the original gain value is higher than 1; 获得预设数据对增益转换关系查表,其中该预设数据对增益转换查表记录多个预设灰阶值与分别相对应的多个预设增益值,供该多个画面的图像数据进行反饱和处理时共同使用;Obtaining a preset data-to-gain conversion relationship look-up table, wherein the preset data-to-gain conversion look-up table records a plurality of preset gray scale values and a plurality of corresponding preset gain values for the image data of the plurality of screens to perform Commonly used in anti-saturation processing; 依据该原始增益值,而利用该预设数据对增益转换关系查表,来对该画面进行反饱和处理,而获得该画面的调整后数据对增益转换关系,其中该调整后数据与增益转换关系定义该画面的不同灰阶值与相对应的调整后增益值之间的转换关系;以及According to the original gain value, use the preset data to look up the gain conversion relationship table to perform anti-saturation processing on the picture, and obtain the adjusted data-to-gain conversion relationship of the picture, wherein the adjusted data and the gain conversion relationship defining a conversion relationship between different grayscale values of the picture and corresponding adjusted gain values; and 依据该调整后数据对增益转换关系,对该画面的图像数据进行增益处理。Gain processing is performed on the image data of the frame according to the adjusted data-to-gain conversion relationship. 2.根据权利要求1所述的图像处理方法,其中依据该调整后数据对增益转换关系,对该画面的图像数据进行增益处理的步骤包括:2. The image processing method according to claim 1, wherein according to the adjusted data-to-gain conversion relationship, the step of performing gain processing on the image data of the picture comprises: 获得该画面的多个灰阶值,并根据该调整后数据对增益转换关系,获得该画面的多个灰阶值分别所对应的多个调整后增益值;以及Obtaining multiple grayscale values of the picture, and obtaining multiple adjusted gain values corresponding to the multiple grayscale values of the picture according to the adjusted data-to-gain conversion relationship; and 利用该多个调整后增益值,分别为该画面的该多个灰阶值进行增益处理。Using the multiple adjusted gain values, gain processing is performed for the multiple gray scale values of the frame respectively. 3.根据权利要求2所述的图像处理方法,其中获得该画面的该多个灰阶值,并根据该调整后数据对增益转换关系,获得该画面的多个灰阶值分别所对应的多个调整后增益值的步骤包括:3. The image processing method according to claim 2, wherein the plurality of grayscale values of the picture are obtained, and according to the adjusted data-to-gain conversion relationship, the corresponding multiplicity of grayscale values of the picture are respectively obtained. The steps for obtaining an adjusted gain value include: 依据各该像素单元的该多个子像素的多个个别灰阶值,获得各该像素单元的代表灰阶值,来作为该多个灰阶值当中的一者;以及Obtaining a representative grayscale value of each pixel unit as one of the plurality of grayscale values according to a plurality of individual grayscale values of the plurality of sub-pixels of each pixel unit; and 依据该调整后数据对增益转换关系,获得各该像素单元的该代表灰阶值所对应的增益值,来作为该多个调整后增益值当中的一者。According to the adjusted data-to-gain conversion relationship, the gain value corresponding to the representative gray scale value of each pixel unit is obtained as one of the plurality of adjusted gain values. 4.根据权利要求3所述的图像处理方法,其中依据各该子像素的多个个别灰阶值,获得各该像素单元的该代表灰阶值的步骤,包括:4. The image processing method according to claim 3, wherein the step of obtaining the representative gray-scale value of each pixel unit according to a plurality of individual gray-scale values of each sub-pixel comprises: 从各该像素单元的该多个子像素的该多个个别灰阶值当中,找出最高灰阶值,作为该像素单元的该代表灰阶值。Find the highest gray-scale value from among the individual gray-scale values of the plurality of sub-pixels of each pixel unit as the representative gray-scale value of the pixel unit. 5.根据权利要求1所述的图像处理方法,其中依据该原始增益值,而利用该预设数据对增益转换关系查表,来对该画面进行该反饱和处理,而获得该画面的该调整后数据对增益转换关系包括:5. The image processing method according to claim 1, wherein according to the original gain value, the preset data is used to look up the gain conversion relationship table to perform the anti-saturation process on the picture to obtain the adjustment of the picture Post-data-to-gain conversion relationships include: 将该画面的该多个灰阶值当中部分的至少一较高灰阶值所对应的该些调整后增益值设定为等于该些预设增益值;以及setting the adjusted gain values corresponding to at least one higher gray-scale value in the plurality of gray-scale values of the frame to be equal to the preset gain values; and 将该画面的该多个灰阶值当中部分的至少一较低灰阶值所对应的该些调整后增益值设定为等于该原始增益值。The adjusted gain values corresponding to at least one lower gray-scale value of the plurality of gray-scale values of the frame are set equal to the original gain value. 6.根据权利要求5所述的图像处理方法,其中将该画面的该些灰阶值当中部分的至少一较高灰阶值所对应的该些调整后增益值设定为等于该些预设增益值的步骤包括:6. The image processing method according to claim 5, wherein the adjusted gain values corresponding to at least one higher gray-scale value in the gray-scale values of the picture are set equal to the preset The steps to gain value include: 直接采用该预设数据对增益转换查表中属于较低增益范围中的该些预设灰阶值与相对应的该些预设增益值。The preset data is directly used to convert the preset gray scale values in the lower gain range and the corresponding preset gain values in the gain conversion look-up table. 7.根据权利要求6所述的图像处理方法,其中该较低增益范围至少包括至少一增益值,以及该较低边界范围的较低边界增益值是对应该图像处理装置所应用的最高灰阶值。7. The image processing method according to claim 6, wherein the lower gain range at least includes at least one gain value, and the lower boundary gain value of the lower boundary range corresponds to the highest gray scale applied by the image processing device value. 8.根据权利要求7所述的图像处理方法,其中该较低边界增益值等于1。8. The image processing method according to claim 7, wherein the lower boundary gain value is equal to 1. 9.根据权利要求6所述的图像处理方法,还包括:9. The image processing method according to claim 6, further comprising: 根据该原始增益值与该预设数据对增益转换关系查表当中至少的一者,获得特定增益值;以及Obtaining a specific gain value according to at least one of the original gain value and the preset data-to-gain conversion relationship look-up table; and 依据该特定增益值决定该较低增益范围。The lower gain range is determined according to the specific gain value. 10.根据权利要求9所述的图像处理方法,其中该较低增益范围的一较高边界增益值是低于或等于该特定增益值。10. The image processing method according to claim 9, wherein a higher boundary gain value of the lower gain range is lower than or equal to the specific gain value. 11.根据权利要求9所述的图像处理方法,其中根据该原始增益值与该预设数据对增益转换关系查表当中至少的一者,获得该特定灰阶值包括:11. The image processing method according to claim 9, wherein according to at least one of the original gain value and the preset data-to-gain conversion relationship look-up table, obtaining the specific grayscale value comprises: 将该原始增益值当作该特定增益值。Treat the original gain value as the specific gain value. 12.根据权利要求5所述的图像处理方法,其中将该画面的该些灰阶值当中部分的至少一较低灰阶值所对应的该些调整后增益值设定为等于该原始增益值包括:12. The image processing method according to claim 5, wherein the adjusted gain values corresponding to at least one lower gray-scale value among the gray-scale values of the picture are set equal to the original gain value include: 将较高增益范围中所有灰阶值相对应的调整增益值设定为均等于该原始增益值,来得到该画面的该调整后数据对增益转换关系的该较高增益范围的部分。The adjusted gain values corresponding to all the grayscale values in the higher gain range are set equal to the original gain value, so as to obtain the part of the higher gain range of the adjusted data-to-gain conversion relationship of the image. 13.根据权利要求12所述的图像处理方法,其中该较高增益范围至少包括至少一增益值,以及该较高增益范围的较高边界增益值是对应该图像处理装置所应用的最低灰阶值。13. The image processing method according to claim 12, wherein the higher gain range at least includes at least one gain value, and the upper boundary gain value of the higher gain range corresponds to the lowest gray scale applied by the image processing device value. 14.根据权利要求12所述的图像处理方法,还包括:14. The image processing method according to claim 12, further comprising: 根据该原始增益值与该预设数据对增益转换关系查表,获得特定增益值;以及According to the original gain value and the preset data pair gain conversion table lookup, to obtain a specific gain value; and 依据该特定增益值决定该较高增益范围。The higher gain range is determined according to the specific gain value. 15.根据权利要求14所述的图像处理方法,其中该较高增益范围的较低边界增益值是高于或等于该特定增益值。15. The image processing method according to claim 14, wherein a lower boundary gain value of the higher gain range is higher than or equal to the specific gain value. 16.根据权利要求14所述的图像处理方法,其中根据该原始增益值与该预设数据对增益转换关系查表当中至少之一者,获得该特定灰阶值包括:16. The image processing method according to claim 14, wherein according to at least one of the original gain value and the preset data-to-gain conversion relationship look-up table, obtaining the specific grayscale value comprises: 将该原始增益值当作该特定增益值。Treat the original gain value as the specific gain value. 17.根据权利要求1所述的图像处理方法,还包括:17. The image processing method according to claim 1, further comprising: 进行圆滑处理,使该原始灰阶值邻近的多个灰阶值所对应的该些调整后增益值具有圆滑分布。A rounding process is performed so that the adjusted gain values corresponding to the multiple gray-scale values adjacent to the original gray-scale value have a smooth distribution. 18.根据权利要求17所述的图像处理方法,其中该圆滑处理包括低通滤波处理。18. The image processing method according to claim 17, wherein the rounding process comprises low-pass filtering process. 19.根据权利要求1所述的图像处理方法,其中在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设数据对增益转换关系查表上的至少一对应的预设增益值均为1。19. The image processing method according to claim 1, wherein in the high grayscale range covering at least the highest grayscale value applied by the image processing device, at least one correspondence between the preset data and the gain conversion relationship look-up table The default gain value is 1. 20.根据权利要求1所述的图像处理方法,其中在涵盖至少该图像处理装置所应用的最低灰阶值的低灰阶范围中,该预设数据对增益转换关系查表上的上的至少一对应的预设增益值均高于该原始增益值。20. The image processing method according to claim 1, wherein in the low grayscale range covering at least the lowest grayscale value applied by the image processing device, the preset data has at least one value on the gain conversion relationship look-up table. A corresponding preset gain value is higher than the original gain value. 21.一种使图像数据不饱和的方法,用于图像处理装置进行图像处理,包括:21. A method of desaturating image data for image processing by an image processing apparatus, comprising: 分析多个画面当中的画面而获得该画面的原始转换关系曲线,该原始转换关系曲线表示该画面的多个灰阶值欲共同依据原始增益值的增益处理,其中该原始增益值大于1;Analyzing one of the multiple pictures to obtain an original conversion relationship curve of the picture, the original conversion relationship curve indicates that multiple gray scale values of the picture are to be processed according to an original gain value, wherein the original gain value is greater than 1; 获得预设转换关系曲线,其中该预设转换关系曲线是供该多个画面的图像数据进行反饱和处理时共同使用;Obtaining a preset conversion relationship curve, wherein the preset conversion relationship curve is used jointly when performing desaturation processing on the image data of the plurality of frames; 通过合并该预设转换关系曲线与该原始转换关系曲线,以对该画面进行反饱和处理,从而获得调整后转换关系曲线;以及Desaturation processing is performed on the image by merging the preset conversion relationship curve with the original conversion relationship curve, so as to obtain an adjusted conversion relationship curve; and 依据该调整后转换关系曲线,对该画面的图像数据进行增益处理。Gain processing is performed on the image data of the frame according to the adjusted conversion relationship curve. 22.根据权利要求21所述的使图像数据不饱和的方法,其中该原始转换关系曲线、该预设转换关系曲线以及该调整后转换关系曲线当中每一者均为数据对增益曲线。22. The method for desaturating image data according to claim 21, wherein each of the original conversion relationship curve, the preset conversion relationship curve and the adjusted conversion relationship curve is a data versus gain curve. 23.根据权利要求22所述的使图像数据不饱和的方法,其中在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设转换关系曲线上的至少一对应的增益值均大于0且小于或等于1。23. The method for desaturating image data according to claim 22, wherein in the high grayscale range covering at least the highest grayscale value applied by the image processing device, at least one corresponding on the preset conversion relationship curve The gain values for are all greater than 0 and less than or equal to 1. 24.根据权利要求22所述的使图像数据不饱和的方法,其中在至少涵盖该图像处理装置所应用的最低灰阶值的低灰阶范围中,该预设转换关系曲线上的至少一对应的增益值均高于该原始增益值。24. The method for desaturating image data according to claim 22, wherein in the low grayscale range covering at least the lowest grayscale value applied by the image processing device, at least one corresponding on the preset conversion relationship curve Gain values are higher than the original gain value. 25.根据权利要求22所述的使图像数据不饱和的方法,其中该原始转换关系曲线是一通过该原始增益值的水平直线。25. The method for desaturating image data as claimed in claim 22, wherein the original conversion relationship curve is a horizontal straight line passing through the original gain value. 26.根据权利要求22所述的使图像数据不饱和的方法,其中该画面的不同颜色的图像数据是使用不同的预设转换关系曲线。26. The method for desaturating image data according to claim 22, wherein image data of different colors of the frame use different preset conversion relationship curves. 27.根据权利要求21所述的使图像数据不饱和的方法,其中该原始转换关系曲线、该预设转换关系曲线以及该调整后转换关系曲线当中每一者均为数据对数据曲线,分别定义增益转换前灰阶值与增益转换后灰阶值间的对应关系。27. The method for desaturating image data according to claim 21, wherein each of the original conversion relationship curve, the preset conversion relationship curve and the adjusted conversion relationship curve is a data-to-data curve, respectively defined The corresponding relationship between the gray scale value before gain conversion and the gray scale value after gain conversion. 28.根据权利要求27所述的使图像数据不饱和的方法,其中在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设转换关系曲线的斜率大于0且小于或等于1。28. The method for desaturating image data according to claim 27, wherein in the high grayscale range covering at least the highest grayscale value applied by the image processing device, the slope of the preset conversion relationship curve is greater than 0 and less than or equal to 1. 29.根据权利要求27所述的使图像数据不饱和的方法,其中29. The method of desaturating image data according to claim 27, wherein 该原始转换关系曲线与该预设转换关系曲线具有一交点,The original conversion relationship curve has an intersection point with the default conversion relationship curve, 在转换前灰阶值小于该交点所对应的交点灰阶值的低灰阶值范围内,该原始转换关系曲线上的转换后灰阶值均小于或等于该预设转换关系曲线上的转换后增益值,以及In the low gray-scale value range where the gray-scale value before conversion is less than the gray-scale value of the intersection point corresponding to the intersection point, the converted gray-scale values on the original conversion relationship curve are all less than or equal to the converted gray-scale values on the preset conversion relationship curve. gain value, and 在转换前灰阶值大于该交点灰阶值的高灰阶值范围内,该原始转换关系曲线上的转换后灰阶值均大于或等于该预设转换关系曲线上的转换后增益值。In the high gray-scale value range where the gray-scale value before conversion is greater than the gray-scale value of the intersection point, the converted gray-scale values on the original conversion relationship curve are all greater than or equal to the converted gain value on the preset conversion relationship curve. 30.根据权利要求27所述的使图像数据不饱和的方法,其中该原始转换关系曲线包括:斜率等于该原始增益值的斜直线以及斜率等于0的水平直线。30. The method for desaturating image data according to claim 27, wherein the original conversion relationship curve comprises: an oblique straight line with a slope equal to the original gain value and a horizontal straight line with a slope equal to zero. 31.根据权利要求27所述的使图像数据不饱和的方法,其中该画面的不同颜色的图像数据是使用相同的预设转换关系曲线。31. The method for desaturating image data according to claim 27, wherein image data of different colors of the frame use the same preset conversion relationship curve. 32.根据权利要求21所述的使图像数据不饱和的方法,其中通过合并该预设转换关系曲线与该个别转换关系曲线,以对该画面进行该反饱和处理,从而获得该调整后转换关系曲线,包括:32. The method for desaturating image data according to claim 21, wherein the adjusted conversion relationship is obtained by combining the preset conversion relationship curve and the individual conversion relationship curve to perform the desaturation process on the picture curves, including: 选取该原始转换关系曲线中灰阶值低于该预设转换关系曲线与该原始转换关系曲线的交点所对应的交点灰阶值的部分线段作为该调整后转换关系曲线的第一部分;以及Selecting a part of the original conversion relationship curve whose grayscale value is lower than the grayscale value of the intersection point corresponding to the intersection point of the preset conversion relationship curve and the original conversion relationship curve as the first part of the adjusted conversion relationship curve; and 选取该预设转换关系曲线中灰阶值高于该交点灰阶值的部分线段作为该调整后转换关系曲线的第二部分。A part of the line segment in the preset conversion relationship curve whose gray scale value is higher than the gray level value of the intersection point is selected as the second part of the adjusted conversion relationship curve. 33.根据权利要求21所述的使图像数据不饱和的方法,还包括:33. The method of desaturating image data of claim 21, further comprising: 将该调整后转换关系曲线进行圆滑处理,使该调整后转换关系曲线上涵盖该原始转换关系曲线与该预设转换关系曲线的部分线段具有圆滑连接。The adjusted conversion relationship curve is smoothed so that a part of the adjusted conversion relationship curve covering the original conversion relationship curve and the preset conversion relationship curve has a smooth connection. 34.根据权利要求33所述的使图像数据不饱和的方法,其中该圆滑处理包括一低通滤波处理。34. The method of desaturating image data according to claim 33, wherein the smoothing process comprises a low pass filtering process. 35.一种图像处理装置,用以对多个画面的图像数据进行图像处理,其中各该画面包括多个像素单元,各该多个像素单元包括多个子像素,分别对应于多种颜色,该图像处理装置包括:35. An image processing device for performing image processing on image data of a plurality of frames, wherein each of the frames includes a plurality of pixel units, and each of the plurality of pixel units includes a plurality of sub-pixels, respectively corresponding to a plurality of colors, the Image processing devices include: 全域增益产生器,分析该多个画面当中的画面而获得该画面的多个灰阶值所共同对应的原始增益值,其中该原始增益值高于1;a global gain generator, analyzing a picture among the multiple pictures to obtain an original gain value corresponding to multiple gray scale values of the picture, wherein the original gain value is higher than 1; 转换关系产生器,耦接至该全域增益产生器以接收该原始增益值,以及获得预设数据对增益转换关系查表,其中该预设数据对增益转换查表记录多个预设灰阶值与分别相对应的多个预设增益值,供该多个画面的图像数据进行反饱和处理时共同使用,以及该转换关系产生器依据该原始增益值,而利用该预设数据对增益转换关系查表,来对该画面进行反饱和处理,而获得该画面的调整后数据对增益转换关系,其中该调整后数据与增益转换关系定义该画面的不同灰阶值与相对应的调整后增益值之间的转换关系;以及A conversion relationship generator, coupled to the global gain generator to receive the original gain value, and obtain a preset data-to-gain conversion relationship look-up table, wherein the preset data-to-gain conversion look-up table records a plurality of preset gray scale values A plurality of preset gain values corresponding to each are used together for desaturation processing of the image data of the plurality of frames, and the conversion relationship generator utilizes the preset data to modify the gain conversion relationship according to the original gain value Look up the table to perform anti-saturation processing on the picture to obtain the adjusted data-to-gain conversion relationship of the picture, wherein the adjusted data-to-gain conversion relationship defines the different grayscale values of the picture and the corresponding adjusted gain values conversion relationship between; and 转换电路,耦接至该转换关系产生器,以依据该调整后数据对增益转换关系,对该画面的图像数据进行增益处理。The conversion circuit is coupled to the conversion relationship generator to perform gain processing on the image data of the frame according to the adjusted data-to-gain conversion relationship. 36.根据权利要求35所述的图像处理装置,其中该转换电路包括:36. The image processing device according to claim 35, wherein the conversion circuit comprises: 增益决定电路,耦接至该转换关系产生器,其中该增益决定电路获得该画面的多个灰阶值,并根据该调整后数据对增益转换关系,获得该画面的多个灰阶值分别所对应的多个调整后增益值;以及The gain determining circuit is coupled to the conversion relationship generator, wherein the gain determining circuit obtains multiple gray scale values of the picture, and obtains the multiple gray scale values of the picture according to the adjusted data-to-gain conversion relationship. a corresponding plurality of adjusted gain values; and 计算器,耦接至该增益决定电路,其中该计算器利用该多个调整后增益值,分别为该画面的该多个灰阶值进行增益处理。The calculator is coupled to the gain determining circuit, wherein the calculator uses the adjusted gain values to respectively perform gain processing for the plurality of gray scale values of the frame. 37.根据权利要求35所述的图像处理装置,其中该转换电路包括:37. The image processing device according to claim 35, wherein the conversion circuit comprises: 比较电路,依据各该像素单元的该多个子像素的多个个别灰阶值,获得各该像素单元的代表灰阶值,来作为该多个灰阶值当中的一者;A comparison circuit, according to a plurality of individual gray-scale values of the plurality of sub-pixels of each pixel unit, to obtain a representative gray-scale value of each pixel unit as one of the plurality of gray-scale values; 增益决定电路,耦接至该转换关系产生器与该比较电路,其中该增益决定电路获得该代表灰阶值,并根据该调整后数据对增益转换关系,获得该些像素单元的该代表灰阶值分别所对应的多个调整后增益值;以及a gain determining circuit, coupled to the conversion relationship generator and the comparison circuit, wherein the gain determining circuit obtains the representative gray scale value, and obtains the representative gray scale values of the pixel units according to the adjusted data-to-gain conversion relationship a plurality of adjusted gain values corresponding to the respective values; and 计算器,耦接至该增益决定电路,其中该计算器利用该多个调整后增益值,分别为该画面的该多个灰阶值进行增益处理。The calculator is coupled to the gain determining circuit, wherein the calculator uses the adjusted gain values to respectively perform gain processing for the plurality of gray scale values of the frame. 38.根据权利要求37所述的图像处理装置,其中该比较电路从各该像素单元的该多个子像素的该多个个别灰阶值当中,找出最高灰阶值,作为该像素单元的该代表灰阶值。38. The image processing device according to claim 37, wherein the comparison circuit finds the highest grayscale value from among the plurality of individual grayscale values of the plurality of sub-pixels of each pixel unit as the pixel unit Represents the grayscale value. 39.根据权利要求35所述的图像处理装置,其中该转换关系产生器将该画面的该些灰阶值当中部分较高灰阶值所对应的该些调整后增益值设定为等于该些预设增益值;以及该转换关系产生器将该画面的该些灰阶值当中部分较低灰阶值所对应的该些调整后增益值设定为等于该原始增益值。39. The image processing device according to claim 35, wherein the conversion relationship generator sets the adjusted gain values corresponding to some higher gray-scale values among the gray-scale values of the picture to be equal to the a preset gain value; and the conversion relationship generator sets the adjusted gain values corresponding to some of the lower gray-scale values of the image to be equal to the original gain value. 40.根据权利要求39所述的图像处理装置,其中该转换关系产生器直接采用该预设数据对增益转换查表中属于较低增益范围中的该些预设灰阶值与相对应的该些预设增益值。40. The image processing device according to claim 39, wherein the conversion relationship generator directly uses the preset data to pair the preset gray scale values in the gain conversion look-up table that belong to the lower gain range with the corresponding some preset gain values. 41.根据权利要求40所述的图像处理装置,其中该较低增益范围至少包括至少一增益值,以及该较低边界范围的较低边界增益值是对应该图像处理装置所应用的最高灰阶值。41. The image processing device according to claim 40, wherein the lower gain range at least includes at least one gain value, and the lower boundary gain value of the lower boundary range corresponds to the highest gray scale applied by the image processing device value. 42.根据权利要求41所述的图像处理装置,其中该较低边界增益值等于1。42. The image processing apparatus according to claim 41, wherein the lower boundary gain value is equal to 1. 43.根据权利要求40所述的图像处理装置,其中该转换关系产生器根据该原始增益值与该预设数据对增益转换关系查表当中至少的一者,获得特定增益值;以及该转换关系产生器依据该特定增益值决定该较低增益范围。43. The image processing device according to claim 40, wherein the conversion relationship generator obtains a specific gain value according to at least one of the original gain value and the preset data-to-gain conversion relationship look-up table; and the conversion relationship The generator determines the lower gain range according to the specific gain value. 44.根据权利要求43所述的图像处理装置,其中该较低增益范围的一较高边界增益值是低于或等于该特定增益值。44. The image processing device according to claim 43, wherein a higher boundary gain value of the lower gain range is lower than or equal to the specific gain value. 45.根据权利要求43所述的图像处理装置,其中该转换关系产生器将该原始增益值当作该特定增益值。45. The image processing device according to claim 43, wherein the conversion relation generator regards the original gain value as the specific gain value. 46.根据权利要求39所述的图像处理装置,其中该转换关系产生器将较高增益范围中所有灰阶值相对应的调整增益值设定为均等于该原始增益值,来得到该画面的该调整后数据对增益转换关系的该较高增益范围的部分。46. The image processing device according to claim 39, wherein the conversion relationship generator sets the adjustment gain values corresponding to all gray scale values in the higher gain range to be equal to the original gain value to obtain the The portion of the higher gain range of the adjusted data-to-gain conversion relationship. 47.根据权利要求46所述的图像处理装置,其中该较高增益范围至少包括至少一增益值,以及该较高增益范围的较高边界增益值是对应该图像处理装置所应用的最低灰阶值。47. The image processing device according to claim 46, wherein the higher gain range at least includes at least one gain value, and the higher boundary gain value of the higher gain range corresponds to the lowest gray scale applied by the image processing device value. 48.根据权利要求46所述的图像处理装置,其中该转换关系产生器根据该原始增益值与该预设数据对增益转换关系查表,获得特定增益值;以及该转换关系产生器依据该特定增益值决定该较高增益范围。48. The image processing device according to claim 46, wherein the conversion relationship generator obtains a specific gain value according to the original gain value and the preset data to a gain conversion relationship look-up table; and the conversion relationship generator obtains a specific gain value according to the specific The gain value determines this upper gain range. 49.根据权利要求48所述的图像处理装置,其中该较高增益范围的较低边界增益值是高于或等于该特定增益值。49. The image processing device according to claim 48, wherein a lower boundary gain value of the higher gain range is higher than or equal to the specific gain value. 50.根据权利要求48所述的图像处理装置,其中该转换关系产生器将该原始增益值当作该特定增益值。50. The image processing device according to claim 48, wherein the conversion relationship generator regards the original gain value as the specific gain value. 51.根据权利要求35所述的图像处理装置,其中该转换关系产生器进行一圆滑处理,使该原始灰阶值邻近的多个灰阶值所对应的该些调整后增益值具有圆滑分布。51. The image processing device according to claim 35, wherein the conversion relationship generator performs a smoothing process, so that the adjusted gain values corresponding to the gray scale values adjacent to the original gray scale value have a smooth distribution. 52.根据权利要求51所述的图像处理装置,其中该圆滑处理包括低通滤波处理。52. The image processing apparatus according to claim 51, wherein the rounding process comprises a low-pass filter process. 53.根据权利要求35所述的图像处理装置,其中在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设数据对增益转换关系查表上的至少一对应的预设增益值均为1。53. The image processing device according to claim 35, wherein in the high gray scale range covering at least the highest gray scale value applied by the image processing device, at least one correspondence between the preset data and the gain conversion relationship look-up table The default gain value is 1. 54.根据权利要求35所述的图像处理装置,其中在涵盖至少该图像处理装置所应用的最低灰阶值的低灰阶范围中,该预设数据对增益转换关系查表上的至少一对应的预设增益值均高于该原始增益值。54. The image processing device according to claim 35, wherein in the low grayscale range covering at least the lowest grayscale value applied by the image processing device, at least one correspondence between the preset data and the gain conversion relationship look-up table preset gain values are all higher than the original gain value. 55.一种图像处理装置,用以进行图像处理,该图像处理装置包括:55. An image processing device for performing image processing, the image processing device comprising: 全域增益产生器,分析多个画面当中的画面而获得该画面的原始转换关系曲线,该原始转换关系曲线表示该画面的多个灰阶值欲共同依据原始增益值的增益处理,其中该原始增益值大于1;The global gain generator analyzes a picture among multiple pictures to obtain the original conversion relationship curve of the picture, and the original conversion relationship curve indicates that multiple grayscale values of the picture are to be processed according to the gain value of the original gain value, wherein the original gain value greater than 1; 转换关系产生器,耦接至该全域增益产生器以接收该原始增益值,以及获得预设转换关系曲线,其中该预设转换关系曲线是供该多个画面的图像数据进行反饱和处理时共同使用,以及该转换关系产生器通过合并该预设转换关系曲线与该原始转换关系曲线,以对该画面进行反饱和处理,从而获得调整后转换关系曲线;以及A conversion relationship generator, coupled to the global gain generator to receive the original gain value, and obtain a preset conversion relationship curve, wherein the preset conversion relationship curve is used for desaturation processing of the image data of the plurality of frames. using, and the conversion relationship generator merges the preset conversion relationship curve and the original conversion relationship curve to perform desaturation processing on the picture, so as to obtain an adjusted conversion relationship curve; and 转换电路,耦接至该转换关系产生器,以依据该调整后转换关系曲线,对该画面的图像数据进行增益处理。The conversion circuit is coupled to the conversion relationship generator to perform gain processing on the image data of the frame according to the adjusted conversion relationship curve. 56.根据权利要求55所述的图像处理装置,其中该原始转换关系曲线、该预设转换关系曲线,以及该调整后转换关系曲线当中每一者均为数据对增益曲线。56. The image processing device according to claim 55, wherein each of the original conversion relationship curve, the preset conversion relationship curve, and the adjusted conversion relationship curve is a data versus gain curve. 57.根据权利要求56所述的图像处理装置,其中在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设转换关系曲线上的至少一对应的增益值均大于0且小于或等于1。57. The image processing device according to claim 56, wherein in the high gray scale range covering at least the highest gray scale value applied by the image processing device, at least one corresponding gain value on the preset conversion curve is Greater than 0 and less than or equal to 1. 58.根据权利要求56所述的图像处理装置,其中在至少涵盖该图像处理装置所应用的最低灰阶值的低灰阶范围中,该预设转换关系曲线上的至少一对应的增益值均高于该原始增益值。58. The image processing device according to claim 56, wherein in the low grayscale range covering at least the lowest grayscale value applied by the image processing device, at least one corresponding gain value on the preset conversion curve is higher than the original gain value. 59.根据权利要求56所述的图像处理装置,其中该原始转换关系曲线是一通过该原始增益值的水平直线。59. The image processing device according to claim 56, wherein the original conversion relationship curve is a horizontal straight line passing through the original gain value. 60.根据权利要求56所述的图像处理装置,其中该画面的不同颜色的图像数据是使用不同的预设转换关系曲线。60. The image processing device according to claim 56, wherein image data of different colors of the frame use different preset conversion relationship curves. 61.根据权利要求55所述的图像处理装置,其中该原始转换关系曲线、该预设转换关系曲线以及该调整后转换关系曲线当中每一者均为数据对数据曲线,分别定义增益转换前灰阶值与增益转换后灰阶值间的对应关系。61. The image processing device according to claim 55, wherein each of the original conversion relationship curve, the preset conversion relationship curve, and the adjusted conversion relationship curve is a data-to-data curve, respectively defining gray values before gain conversion The corresponding relationship between the scale value and the gray scale value after gain conversion. 62.根据权利要求61所述的图像处理装置,其中在至少涵盖该图像处理装置所应用的最高灰阶值的高灰阶范围中,该预设转换关系曲线的斜率大于0且小于或等于1。62. The image processing device according to claim 61, wherein in the high grayscale range covering at least the highest grayscale value applied by the image processing device, the slope of the preset conversion relationship curve is greater than 0 and less than or equal to 1 . 63.根据权利要求61所述的图像处理装置,其中63. The image processing apparatus according to claim 61, wherein 该原始转换关系曲线与该预设转换关系曲线具有一交点,The original conversion relationship curve has an intersection point with the preset conversion relationship curve, 在转换前灰阶值小于该交点所对应的交点灰阶值的低灰阶值范围内,该原始转换关系曲线上的转换后灰阶值均小于或等于该预设转换关系曲线上的转换后增益值,以及In the low gray-scale value range where the gray-scale value before conversion is less than the gray-scale value of the intersection point corresponding to the intersection point, the converted gray-scale values on the original conversion relationship curve are all less than or equal to the converted gray-scale values on the preset conversion relationship curve. gain value, and 在转换前灰阶值大于该交点灰阶值的高灰阶值范围内,该原始转换关系曲线上的转换后灰阶值均大于或等于该预设转换关系曲线上的转换后增益值。In the high gray-scale value range where the gray-scale value before conversion is greater than the gray-scale value of the intersection point, the converted gray-scale values on the original conversion relationship curve are all greater than or equal to the converted gain value on the preset conversion relationship curve. 64.根据权利要求61所述的图像处理装置,其中该原始转换关系曲线系包括:斜率等于该原始增益值的斜直线以及斜率等于0的水平直线。64. The image processing device according to claim 61, wherein the original conversion relationship curve system comprises: an oblique straight line with a slope equal to the original gain value and a horizontal straight line with a slope equal to zero. 65.根据权利要求61所述的图像处理装置,其中该画面的不同颜色的图像数据是使用相同的预设转换关系曲线。65. The image processing device according to claim 61, wherein image data of different colors in the frame use the same preset conversion relationship curve. 66.根据权利要求55所述的图像处理装置,其中该转换关系产生器包括:66. The image processing device according to claim 55, wherein the transformation relationship generator comprises: 查找表,提供该预设转换关系曲线;以及a lookup table providing the preset conversion curve; and 曲线合并单元,耦接至该查找表与该全域增益产生器,其中该曲线合并单元选取该原始转换关系曲线中灰阶值低于该预设转换关系曲线与该原始转换关系曲线的交点所对应的交点灰阶值的部分线段作为该调整后转换关系曲线的第一部分;以及该曲线合并单元选取该预设转换关系曲线中灰阶值高于该交点灰阶值的部分线段作为该调整后转换关系曲线的第二部分。a curve merging unit, coupled to the look-up table and the global gain generator, wherein the curve merging unit selects the grayscale value in the original conversion relationship curve lower than the intersection point corresponding to the preset conversion relationship curve and the original conversion relationship curve Part of the line segment of the intersection gray level value is used as the first part of the adjusted conversion relationship curve; and the curve merging unit selects a part of the line segment whose gray level value is higher than the intersection point gray level value in the preset conversion relationship curve as the adjusted conversion The second part of the relationship curve. 67.根据权利要求55所述的图像处理装置,其中该转换关系产生器将该调整后转换关系曲线进行圆滑处理,使该调整后转换关系曲线上涵盖该原始转换关系曲线与该预设转换关系曲线的部分线段具有圆滑连接。67. The image processing device according to claim 55, wherein the conversion relationship generator performs smoothing processing on the adjusted conversion relationship curve, so that the adjusted conversion relationship curve covers the original conversion relationship curve and the preset conversion relationship Some segments of the curve have smooth connections. 68.根据权利要求67所述的图像处理装置,其中该圆滑处理包括低通滤波处理。68. The image processing apparatus according to claim 67, wherein the rounding process comprises a low-pass filtering process. 69.根据权利要求55所述的图像处理装置,其中该转换电路包括:69. The image processing device according to claim 55, wherein the conversion circuit comprises: 比较电路,依据各该像素单元的该多个子像素的多个个别灰阶值,获得各该像素单元的代表灰阶值,来作为该多个灰阶值当中的一者;A comparison circuit, according to a plurality of individual gray-scale values of the plurality of sub-pixels of each pixel unit, to obtain a representative gray-scale value of each pixel unit as one of the plurality of gray-scale values; 增益决定电路,耦接至该转换关系产生器与该比较电路,其中该增益决定电路获得该代表灰阶值,并根据该调整后转换关系曲线,获得该些像素单元的该代表灰阶值分别所对应的多个调整后增益值;以及a gain determining circuit, coupled to the conversion relationship generator and the comparison circuit, wherein the gain determining circuit obtains the representative gray scale value, and obtains the representative gray scale values of the pixel units respectively according to the adjusted conversion relationship curve a corresponding plurality of adjusted gain values; and 计算器,耦接至该增益决定电路,其中该计算器利用该多个调整后增益值,分别为该画面的该多个灰阶值进行增益处理。The calculator is coupled to the gain determining circuit, wherein the calculator uses the adjusted gain values to respectively perform gain processing for the plurality of gray scale values of the frame. 70.根据权利要求69所述的图像处理装置,其中该比较电路从各该像素单元的该多个子像素的该多个个别灰阶值当中,找出最高灰阶值,作为该像素单元的该代表灰阶值。70. The image processing device according to claim 69, wherein the comparison circuit finds the highest grayscale value among the plurality of individual grayscale values of the plurality of sub-pixels of each pixel unit as the pixel unit Represents the grayscale value.
CN201310295966.8A 2013-07-15 2013-07-15 Image processing method, method for desaturating image data, and image processing device Pending CN104299596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310295966.8A CN104299596A (en) 2013-07-15 2013-07-15 Image processing method, method for desaturating image data, and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310295966.8A CN104299596A (en) 2013-07-15 2013-07-15 Image processing method, method for desaturating image data, and image processing device

Publications (1)

Publication Number Publication Date
CN104299596A true CN104299596A (en) 2015-01-21

Family

ID=52319297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310295966.8A Pending CN104299596A (en) 2013-07-15 2013-07-15 Image processing method, method for desaturating image data, and image processing device

Country Status (1)

Country Link
CN (1) CN104299596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114331880A (en) * 2021-12-16 2022-04-12 影石创新科技股份有限公司 An image processing method, device, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020140865A1 (en) * 2001-03-30 2002-10-03 Nec Viewtechnology, Ltd. Method of correcting color saturation of video signals
JP2003199117A (en) * 2001-12-25 2003-07-11 Sony Corp Image pickup device and signal processing method for solid-state imaging element
US6677959B1 (en) * 1999-04-13 2004-01-13 Athentech Technologies Inc. Virtual true color light amplification
CN1774077A (en) * 2004-11-08 2006-05-17 凌阳科技股份有限公司 Color Noise Suppression System
CN102097068A (en) * 2009-12-11 2011-06-15 乐金显示有限公司 Local dimming driving method and device of liquid crystal display device
CN103021375A (en) * 2012-10-18 2013-04-03 矽创电子股份有限公司 Image brightness adjusting circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6677959B1 (en) * 1999-04-13 2004-01-13 Athentech Technologies Inc. Virtual true color light amplification
US20020140865A1 (en) * 2001-03-30 2002-10-03 Nec Viewtechnology, Ltd. Method of correcting color saturation of video signals
JP2003199117A (en) * 2001-12-25 2003-07-11 Sony Corp Image pickup device and signal processing method for solid-state imaging element
CN1774077A (en) * 2004-11-08 2006-05-17 凌阳科技股份有限公司 Color Noise Suppression System
CN102097068A (en) * 2009-12-11 2011-06-15 乐金显示有限公司 Local dimming driving method and device of liquid crystal display device
CN103021375A (en) * 2012-10-18 2013-04-03 矽创电子股份有限公司 Image brightness adjusting circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114331880A (en) * 2021-12-16 2022-04-12 影石创新科技股份有限公司 An image processing method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN108882028B (en) Video signal processing method and device
JP4313032B2 (en) Image brightness control apparatus and method
JP5003196B2 (en) Image processing apparatus and method, and program
US7656375B2 (en) Image-processing device and method for enhancing the luminance and the image quality of display panels
US20070047808A1 (en) Image display device capable of supporting brightness enhancement and power control and method thereof
CN101388950B (en) Content adaptive contrast enhancement method and apparatus for digital images
CN100397477C (en) Image processing device and method for improving brightness and image quality of display panel
CN110349097B (en) Color enhancement method for image significance and image processing device
CN105184746B (en) Color image enhancement processing method based on histogram equalization
US20090051817A1 (en) Method and device for image sharpness adjustment
TW201503051A (en) Image processing method and anti-saturation method for image data and image processing device
US10152945B2 (en) Image processing apparatus capable of performing conversion on input image data for wide dynamic range
CN101272504A (en) Image processing apparatus
JP2006229925A (en) Dynamic image saturation processing device
CN107027017A (en) A kind of method of adjustment, device, picture processing chip and the storage device of image white balance
KR101634652B1 (en) Method and apparatus for intensificating contrast in image
CN104299596A (en) Image processing method, method for desaturating image data, and image processing device
WO2020124808A1 (en) Image enhancement device and image enhancement method
US10979601B2 (en) High precision gamut mapping
JP6174032B2 (en) Image display device, control method for image display device, control program, and recording medium
CN101383975A (en) Image processing method and device and electronic device thereof
JP2006228184A (en) Dynamic image contrast processor
JP2015035755A (en) Luminosity adjusting device, luminosity adjusting method, and program
US9852531B2 (en) Electronic apparatus and method for controlling the same
KR102082070B1 (en) High precision gamut mapping

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150121

WD01 Invention patent application deemed withdrawn after publication