[go: up one dir, main page]

CN100472602C - Gamma correction method and circuit, image processing device and display device - Google Patents

Gamma correction method and circuit, image processing device and display device Download PDF

Info

Publication number
CN100472602C
CN100472602C CNB2005101041936A CN200510104193A CN100472602C CN 100472602 C CN100472602 C CN 100472602C CN B2005101041936 A CNB2005101041936 A CN B2005101041936A CN 200510104193 A CN200510104193 A CN 200510104193A CN 100472602 C CN100472602 C CN 100472602C
Authority
CN
China
Prior art keywords
gamma correction
value
bit
signal
tout
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.)
Expired - Fee Related
Application number
CNB2005101041936A
Other languages
Chinese (zh)
Other versions
CN1755791A (en
Inventor
宫坂大吾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Publication of CN1755791A publication Critical patent/CN1755791A/en
Application granted granted Critical
Publication of CN100472602C publication Critical patent/CN100472602C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Picture Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention relates to a gamma-ray correction method, which comprises a reverse correction processing and a form conversion processing. The reverse correction processing can be used for inputting X bit hue inputting-signal Tin values with a nonlinear hue-brightness characteristic, and for outputting Y bit hue signal Tout values which has conversed linear hue-brightness characteristic; wherein, X is less than Y. The form conversion processing can be used for inputting Tout, and for outputting (N added to M) bit hue outputting signals which is mostly close to Tout and consists of Tout and Tin, when the index indicated by a constant A-and-N bit signal Tn and the mantissa indicated by M bit signal Tm indicate the Tout with ATn multiplied by Tm.

Description

伽马校正方法和电路以及图像处理设备和显示设备 Gamma correction method and circuit, image processing device and display device

技术领域 technical field

本发明涉及一种伽马校正(gamma correction)方法、程序及设备,使用该伽马校正方法、程序及设备的图像处理方法,以及显示设备。The present invention relates to a gamma correction method, program and device, an image processing method using the gamma correction method, program and device, and a display device.

背景技术 Background technique

诸如阴极射线管(CRT)、液晶显示器(LCD)和等离子体显示板(PDP)的各种显示设备具有为每种显示器类型所特有的固有伽马特性和色度特性。Various display devices such as cathode ray tubes (CRTs), liquid crystal displays (LCDs), and plasma display panels (PDPs) have inherent gamma characteristics and chromaticity characteristics unique to each display type.

显示器的伽马特性是显示器输入信号电平和输出亮度之间的关系。另一方面,色度特性指示各个显示器的三基色或更多基色(例如RGB+白色)的色度。因为在显示器中一般使用三基色RGB,因此色度特性一般指示RGB色度。The gamma characteristic of a monitor is the relationship between the monitor's input signal level and output brightness. On the other hand, the chromaticity characteristic indicates the chromaticity of three primary colors or more (for example, RGB+white) of each display. Since the three primary colors RGB are generally used in displays, the chromaticity characteristic generally indicates RGB chromaticity.

这些特性取决于显示设备的类型,因此在CRT、LCD和PDP各个系统中,伽马特性在很大程度上不同,并且色度特性也不同。These characteristics depend on the type of display device, so gamma characteristics are largely different in each system of CRT, LCD, and PDP, and chromaticity characteristics are also different.

另一方面,诸如电视信号和sRGB的输入图像信号的伽马特性(信号电平与由此显示的亮度之间的关系)和色度特性是通过预定规范确定的。因此,执行伽马校正处理和色彩空间色彩空间转换处理,以便在视频信号和显示设备之间实现伽马特性和色度特性的匹配。On the other hand, gamma characteristics (relationship between signal level and brightness displayed thereby) and chromaticity characteristics of input image signals such as television signals and sRGB are determined by predetermined specifications. Therefore, gamma correction processing and color space color space conversion processing are performed to achieve matching of gamma characteristics and chromaticity characteristics between the video signal and the display device.

考虑CRT上的显示,电视信号通常受到与CRT伽马特性相匹配的伽马校正和色度转换。因此,在大多数使用CRT的电视接收机中,CRT侧不需要专门的伽马校正处理。然而,对于LCD或PDP上的电视信号显示,必须至少实施一般意义上的伽马校正(将视频信号的伽马特性转换为显示设备的伽马特性的处理),以维持高图像质量。伽马特性的差异要大于色度特性。因为伽马特性的差异涉及伪轮廓的产生以及中间色调的色味(color taste)转换,因此如果不通过执行一般意义上的伽马校正来获得匹配,则图像质量将显著地恶化。Considering a display on a CRT, TV signals are usually subject to gamma correction and chroma conversion that match the CRT's gamma characteristics. Therefore, in most television receivers using CRTs, no special gamma correction processing is required on the CRT side. However, for television signal display on an LCD or PDP, gamma correction (the process of converting the gamma characteristics of the video signal to the gamma characteristics of the display device) at least in a general sense must be implemented in order to maintain high image quality. The gamma characteristics differ more than the chroma characteristics. Because the difference in gamma characteristics involves the generation of false contours and the color taste conversion of midtones, the image quality will deteriorate significantly if matching is not obtained by performing gamma correction in the general sense.

在此,一般意义上的伽马校正被假定为,为利用用于将线性色调-亮度特性转换为非线性特性的“伽马校正(狭义上的)”以及用于将非线性色调-亮度特性转换为线性特性的“逆伽马校正”,来使视频信号和显示设备的伽马特性匹配所需的一系列处理。此后,在本说明书中,狭义上的伽马校正被表示为“正伽马校正”,而一般意义上的伽马校正被直接表示为“伽马校正”。Here, gamma correction in a general sense is assumed, in order to utilize "gamma correction (in the narrow sense)" for converting linear hue-brightness characteristics to nonlinear characteristics and for converting nonlinear hue-brightness characteristics to "Inverse gamma correction" converted to linear characteristics, a series of processing required to match the video signal and the gamma characteristics of the display device. Hereafter, in this specification, gamma correction in a narrow sense is expressed as "positive gamma correction", and gamma correction in a general sense is directly expressed as "gamma correction".

而且,为了准确地重现遵照sRGB规范产生的图像和图片(换句话说,为实现相应的彩色重现),在逆伽马校正之后还需要色彩空间转换。更具体地说,需要对输入的RGB信号执行3×3矩阵运算,如Tajima的“Color Image Reproduction(彩色图像重现)”(pp.33-39,公式3.11)(参考文献3)中所公开的。Moreover, in order to accurately reproduce images and pictures produced in accordance with the sRGB specification (in other words, to achieve corresponding color reproduction), color space conversion is also required after inverse gamma correction. More specifically, a 3×3 matrix operation needs to be performed on the input RGB signal, as disclosed in Tajima's "Color Image Reproduction" (pp.33-39, Equation 3.11) (Reference 3) of.

然而,在利用数字处理执行逆伽马校正处理的情况下,输出位数必须大于输入位数,以保持其精度。如果输出位数不足,则由于量化误差将造成图像质量恶化(例如伪轮廓)。However, in the case of performing inverse gamma correction processing using digital processing, the output bit number must be larger than the input bit number in order to maintain its accuracy. If the number of output bits is insufficient, image quality will deteriorate due to quantization errors (eg false contours).

另一方面,当输出位数增加时,逆伽马校正电路的电路规模以及后一级中设置的运算电路将随位数(比特数)而变大,导致显示设备制造成本变高的问题。On the other hand, when the number of output bits increases, the circuit scale of the inverse gamma correction circuit and the arithmetic circuit provided in the subsequent stage will increase with the number of bits (number of bits), resulting in a problem that the manufacturing cost of the display device will increase.

而且,为了进行相应的彩色重现,在完成逆伽马校正之后需要执行色彩空间转换。在该情况下,当逆伽马校正时产生的输出位数增加时,色彩空间转换电路的电路规模也将增大。Also, for corresponding color reproduction, color space conversion needs to be performed after inverse gamma correction is done. In this case, when the number of output bits generated during inverse gamma correction increases, the circuit scale of the color space conversion circuit also increases.

作为用于解决位数增加问题的背景技术,JP 10-126648(参考文献1)公开了“Input Signal Level Appl ication Type GammaCorrection Circuit in Liquid Crystal Display Apparatus(液晶显示设备中的输入信号电平应用型伽马校正电路)”。参考文献1涉及一种在转换处理中使用较少位数而不造成图像质量恶化的伽马校正电路。As a background technology for solving the problem of increasing the number of digits, JP 10-126648 (Reference 1) discloses "Input Signal Level Application Type GammaCorrection Circuit in Liquid Crystal Display Apparatus (Input Signal Level Application Type Gamma Correction Circuit in Liquid Crystal Display Apparatus) horse correction circuit)". Reference 1 relates to a gamma correction circuit that uses fewer bits in conversion processing without deteriorating image quality.

参考文献1中描述的液晶显示设备中输入信号电平应用型伽马校正电路具有这样一种结构,该结构包括分别位于数字伽马校正电路之前和之后的模数(AD)转换器和数模(DA)转换器,并且另外包括位于AD转换器之前和DA转换器之后的可变增益控制放大器。The input signal level application type gamma correction circuit in the liquid crystal display device described in Reference 1 has a structure including an analog-to-digital (AD) converter and a digital-to-analog (DA) converter, and additionally includes a variable gain control amplifier located before the AD converter and after the DA converter.

这些可变增益控制放大器的放大度具有互补关系。参考文献1通过根据模拟输入信号的电平来改变放大度,很好地改善了暗区的色调特性。因此,在不增加位数的情况下实现了高精度伽马校正。The amplification degrees of these variable gain control amplifiers have a complementary relationship. Reference 1 improves the tonal characteristics of dark areas well by changing the degree of amplification according to the level of the analog input signal. Therefore, high-precision gamma correction is realized without increasing the number of bits.

作为其它背景技术,例如在美国专利No.5,528,741(参考文献2)中描述了利用浮点数来指示显示设备的色调信号的例子。As other background art, an example in which a floating-point number is used to indicate a hue signal of a display device is described in, for example, US Patent No. 5,528,741 (Reference 2).

然而,参考文献1基于输入信号是模拟信号的事实。因此,当输入信号是数字信号时,进一步需要DA转换器,这同样使电路变复杂。电视信号(高清晰度电视(HDTV)等)和图像信号(sRGB)几乎是作为数字信号被输入的,经常执行数字图像信号处理。因此,优选地采用一种能够在不使用AD转换器和DA转换器的情况下、实现足够精度的逆伽马校正的数字逆伽马校正处理电路。However, Reference 1 is based on the fact that the input signal is an analog signal. Therefore, when the input signal is a digital signal, a DA converter is further required, which also complicates the circuit. Television signals (high-definition television (HDTV) and the like) and image signals (sRGB) are almost input as digital signals, and digital image signal processing is often performed. Therefore, it is preferable to employ a digital inverse gamma correction processing circuit capable of realizing inverse gamma correction with sufficient accuracy without using an AD converter and a DA converter.

参考文献2公开了一种有效地将浮点表示的像素值转换为一字节整数值的方法。在计算机图形学应用中,更为方便的是,在像素值计算处理中使用浮点表示。然而,因为几乎所有显示设备都把用于像素显示的像素数据(像素值)处理为整数,因此如果不把浮点表示的像素数据转换为整数表示,则显示是不可能的。Reference 2 discloses a method for efficiently converting floating-point representations of pixel values to one-byte integer values. In computer graphics applications, it is more convenient to use floating-point representations in pixel value calculations. However, since almost all display devices handle pixel data (pixel values) for pixel display as integers, display is impossible without converting the floating-point representation of pixel data to integer representation.

因此,在参考文献2中,浮点表示的数据被转换为整数表示。而且,在转换为整数表示的同时,也执行伽马校正。然而,该结构实现了简化的伽马校正处理,但是仍然包括在伽马校正之后位数增加的未解决问题。因此,在伽马校正之后执行某些算术运算的情况下,不能实现后一级电路的精度提高和规模减小。Therefore, in reference 2, the data in floating point representation is converted to integer representation. Also, while converting to integer representation, gamma correction is also performed. However, this structure achieves a simplified gamma correction process, but still involves an unsolved problem of an increase in the number of bits after gamma correction. Therefore, in the case where some arithmetic operations are performed after gamma correction, improvement in precision and downsizing of the circuit in the latter stage cannot be achieved.

发明内容 Contents of the invention

考虑到上述问题而提出了本发明,因此本发明的目的是,提供一种用于实现输入信号伽马特性和显示设备伽马特性之间的匹配的伽马校正电路,以及用于以足够的精度执行伽马校正处理或逆伽马校正处理,同时控制运算电路自己及其后一级中设置的电路的规模的伽马校正方法,而且也有可能提供一种伽马校正程序及设备,使用该伽马校正方法、程序及设备的图像处理方法,以及显示设备。The present invention has been made in consideration of the above-mentioned problems, and it is therefore an object of the present invention to provide a gamma correction circuit for achieving matching between the gamma characteristics of an input signal and the gamma characteristics of a display device, and A gamma correction method that performs gamma correction processing or inverse gamma correction processing while controlling the scale of the arithmetic circuit itself and a circuit set in a subsequent stage, and it is also possible to provide a gamma correction program and apparatus using the A gamma correction method, a program and an image processing method of the device, and a display device.

为实现上述目的,作为第一方面,本发明提供一种伽马校正方法,该伽马校正方法包括:逆伽马校正处理,用于输入具有非线性色调-亮度特性的X比特色调输入信号Tin值,并输出具有被转换为线性特性的色调-亮度特性的Y比特(X<Y)色调信号Tout;以及格式转换处理,用于输入Tout,并且当用常数A、N比特信号Tn指示的指数和M比特信号Tm指示的尾数将Tout表示成A^Tn×Tm时,输出由一组最接近Tout的Tn和Tm形成的(N+M)比特色调输出信号,其中,常数A的值为2的自然数次幂,M满足关系式M≤Y-N,当A等于2时N的最小值为2,当A大于2时N的最小值为1,并且根据常数A和M确定的N的最大值是使得相对于所有Tin值,一组Tn和Tm值都变成一组不同值的最大值。In order to achieve the above object, as a first aspect, the present invention provides a gamma correction method, the gamma correction method includes: inverse gamma correction processing, for inputting an X-bit tone input signal Tin with nonlinear tone-brightness characteristics value, and output the Y-bit (X<Y) tone signal Tout having the hue-brightness characteristic converted into a linear characteristic; When the mantissa indicated by the M-bit signal Tm expresses Tout as A^Tn×Tm, the (N+M) bit tone output signal formed by a group of Tn and Tm closest to Tout is output, wherein the value of the constant A is 2 The power of natural numbers, M satisfies the relationship M≤Y-N, when A is equal to 2, the minimum value of N is 2, when A is greater than 2, the minimum value of N is 1, and the maximum value of N is determined according to the constants A and M is the maximum value at which a set of Tn and Tm values becomes a different set of values relative to all Tin values.

根据本发明,能够提供一种用于实现输入信号伽马特性和显示设备伽马特性之间的匹配的伽马校正电路,以及用于以足够的精度执行伽马校正处理或逆伽马校正处理,同时控制运算电路自己及其后一级中设置的电路的规模的伽马校正方法,而且也提供一种伽马校正程序及设备,使用该伽马校正方法、程序及设备的图像处理方法,以及显示设备。According to the present invention, it is possible to provide a gamma correction circuit for achieving matching between gamma characteristics of an input signal and a gamma characteristic of a display device, and for performing gamma correction processing or inverse gamma correction processing with sufficient accuracy , a gamma correction method for simultaneously controlling the scale of the arithmetic circuit itself and a circuit set in a subsequent stage, and also providing a gamma correction program and device, an image processing method using the gamma correction method, program and device, and display devices.

附图说明 Description of drawings

图1A和1B利用数字线显示了逆伽马校正之前和之后的信号值与所分配的色调之间的关系图。1A and 1B are graphs showing the relationship between the signal value before and after inverse gamma correction and the assigned tone with numerical lines.

图2显示了本发明所适用的伽马校正方法的处理。Fig. 2 shows the processing of the gamma correction method to which the present invention is applied.

图3显示了当存在一对最接近Tout的Tout’时用于防止色调退化(recess)的方法。Fig. 3 shows a method for preventing tone recession when there is a pair of Tout' closest to Tout.

图4显示了M、N值和输出信号精度之间的关系;Figure 4 shows the relationship between M, N values and output signal accuracy;

图5显示了用于说明从伽马校正方法中的逆伽马校正处理的输入-输出表得到适当的M、N值的方法的输入-输出表。FIG. 5 shows an input-output table for explaining a method of obtaining appropriate M, N values from the input-output table of inverse gamma correction processing in the gamma correction method.

图6显示了本发明第一实施例的液晶显示设备的结构。FIG. 6 shows the structure of the liquid crystal display device of the first embodiment of the present invention.

图7显示了第一实施例的液晶显示设备的数字逆伽马校正电路的结构。FIG. 7 shows the structure of the digital inverse gamma correction circuit of the liquid crystal display device of the first embodiment.

图8显示了第一实施例的液晶显示设备的色彩空间转换电路的结构。FIG. 8 shows the configuration of the color space conversion circuit of the liquid crystal display device of the first embodiment.

图9显示了第一实施例的液晶显示设备的正伽马校正电路的结构。FIG. 9 shows the structure of the positive gamma correction circuit of the liquid crystal display device of the first embodiment.

图10显示了第一实施例的液晶显示设备的正伽马校正电路中设置的LUT的结构。FIG. 10 shows the structure of the LUT provided in the positive gamma correction circuit of the liquid crystal display device of the first embodiment.

图11显示了使用不同于液晶的显示系统的显示设备的结构。FIG. 11 shows the structure of a display device using a display system other than liquid crystal.

图12显示了本发明第二实施例的液晶显示设备的结构。FIG. 12 shows the structure of a liquid crystal display device of a second embodiment of the present invention.

图13显示了第二实施例的液晶显示设备的数字逆伽马校正电路的结构。FIG. 13 shows the configuration of the digital inverse gamma correction circuit of the liquid crystal display device of the second embodiment.

图14显示了第二实施例的液晶显示设备的色彩空间色彩空间转换电路的结构。FIG. 14 shows the structure of the color space color space conversion circuit of the liquid crystal display device of the second embodiment.

图15显示了本发明第三实施例的液晶显示设备的结构。Fig. 15 shows the structure of a liquid crystal display device according to a third embodiment of the present invention.

图16显示了第三实施例的液晶显示设备的数字逆伽马校正电路的结构。FIG. 16 shows the structure of the digital inverse gamma correction circuit of the liquid crystal display device of the third embodiment.

图17显示了第三实施例的液晶显示设备的亮度-对比度校正电路的结构。FIG. 17 shows the configuration of the brightness-contrast correction circuit of the liquid crystal display device of the third embodiment.

图18显示了本发明第四实施例的液晶显示设备的结构。Fig. 18 shows the structure of a liquid crystal display device of a fourth embodiment of the present invention.

图19显示了源驱动器-信号发生器中DAC的输入-输出电压和基准色调信号发生器的输出电压之间的关系。FIG. 19 shows the relationship between the input-output voltage of the DAC in the source driver-signal generator and the output voltage of the reference tone signal generator.

图20显示了当Tn为3(“11”)时源驱动器-信号发生器中DAC的输入-输出电压和基准色调信号发生器的输出电压之间的关系。FIG. 20 shows the relationship between the input-output voltage of the DAC in the source driver-signal generator and the output voltage of the reference tone signal generator when Tn is 3 (“11”).

图21显示了当Tn为2(“11”)时源驱动器-信号发生器中DAC的输入-输出电压和基准色调信号发生器的输出电压之间的关系。FIG. 21 shows the relationship between the input-output voltage of the DAC in the source driver-signal generator and the output voltage of the reference tone signal generator when Tn is 2 (“11”).

具体实施方式 Detailed ways

诸如sRGB、scRGB的标准图像信号以及电视图像信号一般受到伽马校正。已受到正伽马校正的图像信号的色调值具有相对于亮度的非线性特性:Standard image signals such as sRGB, scRGB, and television image signals are generally gamma-corrected. The hue value of an image signal that has been positively gamma corrected has a non-linear behavior with respect to luminance:

(色调值)=(亮度)^(1/γ)(hue value)=(brightness)^(1/γ)

如上所说明的,为了进行相应的彩色重现,需要3×3矩阵运算。然而,当直接对已经过正伽马校正的信号执行矩阵运算时,包括大量互补颜色如青色、品红和黄色以及中间色调的图像的色调将发生变化。As explained above, for corresponding color reproduction, a 3*3 matrix operation is required. However, when matrix operations are performed directly on a signal that has been positively gamma corrected, the hue of an image that includes a large number of complementary colors such as cyan, magenta, and yellow, as well as halftones, will change.

因此,在执行矩阵运算之前,必须执行逆伽马校正,以便提供相对于亮度的线性色调值。Therefore, before performing matrix operations, inverse gamma correction must be performed in order to provide linear hue values with respect to luminance.

然而,因为输入位数(比特数)被设置为大于输出位数,以便执行数字逆伽马校正,所以后一级的矩阵运算电路规模变大了。However, since the number of input bits (the number of bits) is set larger than the number of output bits in order to perform digital inverse gamma correction, the scale of the matrix operation circuit of the latter stage becomes large.

如上所说明的,逆伽马校正所需的位数增加导致了允许电路规模增大、以实现相应彩色重现的原因。As explained above, the increase in the number of bits required for inverse gamma correction results in a cause that allows an increase in circuit scale to achieve corresponding color reproduction.

因此,在本发明中,必须获得逆伽马校正处理之后的色调精度,同时通过用不同于背景技术的方法表示图像信号的色调值来控制电路规模的增大。更具体地说,用基于浮点表示的方法来表示色调值。Therefore, in the present invention, it is necessary to obtain tone accuracy after inverse gamma correction processing while controlling an increase in circuit scale by expressing the tone value of an image signal in a method different from the background art. More specifically, a method based on a floating-point representation is used to represent hue values.

现在将说明利用该方法的色调表示定义。在常规方法中,利用8位二进制数将8位色调表示为0至255的色调。另一方面,本方法以类似浮点表示的2^Tn×Tm形式,来表示色调。在此,Tn是被称为浮点表示中的指数的数,而Tm是被称为浮点表示中的尾数的数。The definition of hue expression using this method will now be described. In a conventional method, an 8-bit hue is expressed as a hue of 0 to 255 using an 8-bit binary number. On the other hand, this method expresses hue in the form of 2^Tn×Tm similar to floating-point representation. Here, Tn is a number called an exponent in the floating-point representation, and Tm is a number called a mantissa in the floating-point representation.

与普通浮点表示的不同之处在于,不需要使比尾数的最高有效位高一位数的位加“1”。在普通浮点表示的情况下,确定要使比尾数的最高有效位高一位数的位加“1”,以使用Tn和Tm组合(2^1×38=2^2×19)表示相同值变得不可能。The difference from ordinary floating-point representation is that there is no need to add "1" to the bit one digit higher than the most significant bit of the mantissa. In the case of ordinary floating-point representation, it is determined to add "1" to the bit higher than the most significant bit of the mantissa to express the same using Tn and Tm combinations (2^1×38=2^2×19) value becomes impossible.

然而,在本方法中采用一种不使比尾数的最高有效位高一位数的位加“1”的直接表示。然而,只要可能,就将最高有效位设置为“1”。However, a direct representation that does not add "1" to the bit higher than the most significant bit of the mantissa by one digit is used in this method. However, the most significant bit is set to "1" whenever possible.

例如,在2^2×19的情况下,因为尾数(19:十进制数=010011:二进制数)的最高有效位为“0”,将它表示为2^1×38,使得最高有效位变为“1”。此外,2^0×19被表示为原样,这是因为尾数的最高有效位是0,但是没有比0小的指数。For example, in the case of 2^2×19, since the most significant bit of the mantissa (19: decimal number=010011: binary number) is “0”, it is expressed as 2^1×38, so that the most significant bit becomes "1". Also, 2^0×19 is represented as-is because the most significant bit of the mantissa is 0, but there is no exponent smaller than 0.

例如,在色调被表示为2^Tn×Tm的情况下,有可能得到:For example, where hue is represented as 2^Tn×Tm, it is possible to get:

0=2^0×0≤2^Tn×Tm≤2^3×63=5040=2^0×0≤2^Tn×Tm≤2^3×63=504

并且当把Tn的定义域设置为0至3(2比特),同时把Tm的定义域设置为0至63(6比特)时,用8比特来表示0至504的值。And when the domain of Tn is set to 0 to 3 (2 bits) while the domain of Tm is set to 0 to 63 (6 bits), 8 bits are used to represent the value of 0 to 504.

对于诸如逆伽马校正的升幂运算,采用这种色调表示方法尤其有效。而且,通过在基于浮点表示的逆伽马校正之后引入色调,可以减小3×3矩阵运算和正伽马校正的电路规模。This approach to hue representation is especially effective for exponentiation operations such as inverse gamma correction. Also, by introducing hue after inverse gamma correction based on floating-point representation, the circuit scale of 3×3 matrix operation and positive gamma correction can be reduced.

用基于浮点表示的方法进行色调表示的优势:Advantages of using a floating-point representation-based method for hue representation:

现在将说明本方法色调表示的优势。在逆伽马校正中,基于浮点表示的方法能够以比普通色调表示方法高的精度,更有效地分配色调。图1A和1B利用数字线显示了逆伽马校正之前和之后的信号值与所分配的色调之间的关系。为了简化说明,输入取为三(3)比特,而输出取为六(6)比特(在基于浮点表示的方法中,指数为两(2)比特且尾数为四(4)比特)。伽马值为一般使用的2.2。The advantages of this approach to tone representation will now be explained. In inverse gamma correction, a floating-point representation-based method can distribute hues more efficiently with higher precision than ordinary hue representation methods. FIGS. 1A and 1B show the relationship between signal values before and after inverse gamma correction and assigned hues using numerical lines. For simplicity of illustration, the input is taken as three (3) bits and the output is taken as six (6) bits (in methods based on floating point representations, the exponent is two (2) bits and the mantissa is four (4) bits). The gamma value is 2.2 which is generally used.

当执行逆伽马校正时,输入值被转换为比校正之前小的值。如中间级中的数字线所示,逆伽马校正之后的值被赋给现有表示和浮点表示的色调之一。在最下一级的数字线中,用垂直线来指示,可以用基于现有六(6)比特表示和六(6)比特浮点表示的方法表示的数字。When inverse gamma correction is performed, the input value is converted to a smaller value than before correction. The value after inverse gamma correction is assigned to one of the hues of the existing representation and the floating-point representation, as indicated by the number lines in the intermediate stages. In the lowest level of number lines, indicated by vertical lines, numbers can be represented by methods based on existing six (6) bit representations and six (6) bit floating point representations.

在现有表示的情况下,当前进到较暗的色调一侧时,逆伽马校正之后的输入值所赋予的数字之间存在的可以被表示的数字数目变少了。这一事实暗示,当色调较暗并且要在后一级中执行的矩阵运算的运算精度变得较低时,容易产生量化误差。In the case of the existing representation, when going to the darker tone side, the number of digits that can be represented exists between the digits assigned to the input value after inverse gamma correction. This fact suggests that quantization errors are likely to occur when the tone is dark and the operation accuracy of matrix operations to be performed in the subsequent stage becomes low.

另一方面,在本方法中,逆伽马校正之后的输入值所赋予的数字之间存在的要被表示的数字数目几乎相同,而与色调的暗度无关。这一事实暗示,量化误差变小并且要在后一级中执行的矩阵运算的运算精度变高了。On the other hand, in the present method, almost the same number of digits to be represented exists between digits assigned to the input value after inverse gamma correction regardless of the darkness of the hue. This fact implies that the quantization error becomes smaller and the operation precision of the matrix operation to be performed in the subsequent stage becomes higher.

更具体地说,当在诸如逆伽马校正的(输出)=(输入)^Q运算中Q值等于或大于一(1)时,基于浮点表示的方法的运算精度变高了。More specifically, when the Q value is equal to or greater than one (1) in an (output)=(input)^Q operation such as inverse gamma correction, the operation accuracy of the floating-point representation-based method becomes high.

此外,因为根据用于得到L*a*b彩色显示系统(CIE1976)的L*的公式,人的视觉特性显示出等于亮度1/3次方的线性亮度特性,因此在执行逆伽马校正时需要提高暗色调的精度。换句话说,因为量化误差直接显现为色差,因此与现有表示相比,可以通过降低浮点表示中的暗色调量化误差,来减小这种色差。Furthermore, since human visual characteristics show linear luminance characteristics equal to the 1/3 power of luminance according to the formula for obtaining L* of the L*a*b color display system (CIE1976), when performing inverse gamma correction The accuracy of dark tones needs to be improved. In other words, because quantization error directly manifests as chromatic aberration, this chromatic aberration can be reduced by reducing the quantization error of dark tones in the floating-point representation compared to existing representations.

如上所说明的,也可以从视觉特性的观点来理解,在完整表示方面,本方法更优选,因为色差变小了。As explained above, it can also be understood from the viewpoint of visual characteristics that this method is more preferable in terms of complete representation because the color difference becomes smaller.

也有可能通过根据所需的运算精度将指数和尾数减少到两(2)比特和三(3)比特来使电路规模变小,该两(2)比特和三(3)比特分别是通过减去1比特而得到的。It is also possible to make the circuit scale smaller by reducing the exponent and mantissa to two (2) bits and three (3) bits, respectively, according to the required precision of operation, by subtracting 1 bit is obtained.

背景技术中引入的参考文献2公开了一种将浮点表示的像素值转换为一字节像素值的伽马校正方法。如上所说明的,确实存在这样一种伽马校正处理,其中用浮点表示值给出输入,来输出整数。然而,参考文献2中的浮点表示输入数据是利用计算机图形学领域中的运算来产生的,并且假定在对浮点表示进行转换之后,不对利用普通数字照相机和扫描仪等获得的整数值数据进行处理。本发明的特征在于用于将整数表示值转换为基于浮点表示的方法中的值的转换方法。因此,参考文献2不能实现作为本发明目的的“后一级中的运算电路精度提高和电路规模减小”。Reference 2 introduced in Background Art discloses a gamma correction method for converting pixel values represented by floating points into one-byte pixel values. As explained above, there does exist a gamma correction process in which an input is given with a floating-point representation value to output an integer. However, the floating-point representation input data in Reference 2 is generated using operations in the field of computer graphics, and it is assumed that integer-valued data obtained using ordinary digital cameras, scanners, etc. to process. The present invention is characterized by a conversion method for converting an integer representation value into a value in a floating point representation based method. Therefore, Reference 2 cannot achieve "improvement in precision of an arithmetic circuit in a subsequent stage and reduction in circuit scale" which are objects of the present invention.

以上说明了基于浮点表示的方法的优势。然而,不一定能够通过引入上述结构来获得本发明的效果。即,需要根据实际逆伽马校正的输入-输出表,来适当地设置A^Tn×Tm表示方法中的A、Tn和Tm值的范围。不能利用参考文献2中说明的浮点表示中的期望A、Tn和Tm值获得本发明的效果。The above illustrates the advantages of methods based on floating-point representations. However, it is not necessarily possible to obtain the effects of the present invention by introducing the above-mentioned structure. That is, it is necessary to appropriately set the ranges of A, Tn, and Tm values in the A^Tn×Tm expression method according to the input-output table of actual inverse gamma correction. The effect of the present invention cannot be obtained with the desired A, Tn, and Tm values in the floating-point representation described in Reference 2.

以下将说明设置这些值的方法。The method for setting these values is explained below.

图2显示了本发明所适用的逆伽马校正方法的流程。该逆伽马校正方法把X比特信号用作输入信号,而把N+M比特信号用作输出信号。FIG. 2 shows the flow of the inverse gamma correction method applicable to the present invention. This inverse gamma correction method uses an X-bit signal as an input signal and an N+M-bit signal as an output signal.

该逆伽马校正方法包括:逆伽马校正处理,用于输入X比特色调输入信号Tin值、并输出Y比特(X<Y)色调信号Tout;格式转换处理,用于输入Y比特色调信号Tout,并输出当用常数A、N比特的指数Tn和M比特的尾数Tm将色调信号Tout表示成A^Tn×Tm时,变得与Tout最接近的Tn和Tm;以及用于产生由N比特Tn和M比特Tm组成的输出信号的处理。The inverse gamma correction method includes: inverse gamma correction processing for inputting an X-bit tone input signal Tin value and outputting a Y-bit (X<Y) tone signal Tout; format conversion processing for inputting a Y-bit tone signal Tout , and output Tn and Tm which become closest to Tout when the hue signal Tout is expressed as A^Tn×Tm with a constant A, an exponent Tn of N bits, and a mantissa Tm of M bits; Processing of the output signal consisting of Tn and M bits Tm.

在该逆伽马校正方法中,输入X比特色调输入信号Tin(步骤S1)。色调输入信号受到逆伽马校正(步骤S2)。在此,在逆伽马校正处理中,具有非线性色调-亮度特性的Tin被转换为线性,然后被输出,作为Tout。In this inverse gamma correction method, an X-bit tone input signal Tin is input (step S1). The tone input signal is subjected to inverse gamma correction (step S2). Here, in the inverse gamma correction process, Tin having a nonlinear hue-brightness characteristic is converted to linear and then output as Tout.

在此,因为色调输入信号Tin是遵照例如sRGB标准被发送的,因此足以获得用于将Tin的色调-亮度特性转换为基于这种标准的线性特性的Tout。假定,利用其中诸如输入值Tin与输出值Tout常用查找表(LUT)的转换表被存储在存储器中的结构,来执行逆伽马校正处理。总之,执行逆伽马校正处理,以便将Tin的非线性特性转换为线性特性。Here, since the hue input signal Tin is transmitted in compliance with, for example, the sRGB standard, it is sufficient to obtain Tout for converting the hue-brightness characteristic of Tin into a linear characteristic based on such a standard. It is assumed that inverse gamma correction processing is performed with a structure in which a conversion table such as a common look-up table (LUT) of the input value Tin and the output value Tout is stored in the memory. In summary, an inverse gamma correction process is performed in order to convert the nonlinear characteristics of Tin into linear characteristics.

在通过逆伽马校正处理获得的Y比特信号Tout中,Y通常大于X(步骤S3)。其原因在于,如上所述,在逆伽马校正处理中,如果输出比特数不大于输入比特数,则精度将降低。In the Y-bit signal Tout obtained by the inverse gamma correction process, Y is usually larger than X (step S3). The reason for this is that, as described above, in the inverse gamma correction process, if the output bit number is not larger than the input bit number, the accuracy will decrease.

此后,在格式转换处理中转换Tout信号(步骤S4、S5)。在格式转换处理中,Tout值被转换为N比特信号Tn和M比特信号Tm。Thereafter, the Tout signal is converted in a format conversion process (steps S4, S5). In the format conversion process, the Tout value is converted into an N-bit signal Tn and an M-bit signal Tm.

首先,在格式转换处理1中获得可以用公式A^Tn×Tm表示的值中最接近Tout的Tout’值(步骤S4)。当存在两个最接近Tout的Tout’值时,换句话说,当Tout±α两个值都可以被表示为A^Tn×Tm时,可以将Tout+α和Tout-α中任何一个值用作Tout’。然而,优选地确定选择所用值的规则。其原因是,当如图3所示设置关系式Tout(x)+β=Tout’(X)、Tout’(X)+β=Tout(X+1)、Tout(X+1)+β=Tout’(X+1)、Tout’(X+1)+β=Tout(X+2)时,如果把Tout(X)+β=Tout’(X)用作与Tout(X)相对应的值并且把Tout(X+1)-β=Tout’(X+1)用作与Tout(X+1)相对应的值,则产生了色调退化(recess)。然而,当把Tout(X)+β=Tout’(X)用作与Tout(X)相对应的值并把Tout(X+1)+β=Tout’(X+1)用作与Tout(X+1)相对应的值时,则即使在这种情况下也从不产生色调退化。First, the value of Tout' closest to Tout among the values that can be represented by the formula A^TnxTm is obtained in the format conversion process 1 (step S4). When there are two values of Tout' closest to Tout, in other words, when both values of Tout±α can be expressed as A^Tn×Tm, any value of Tout+α and Tout-α can be used Make Tout'. However, the rules for selecting the values used are preferably determined. Its reason is, when relational expression Tout(x)+β=Tout'(X), Tout'(X)+β=Tout(X+1), Tout(X+1)+β=Tout(X+1)+β= During Tout'(X+1), Tout'(X+1)+β=Tout(X+2), if Tout(X)+β=Tout'(X) is used as corresponding to Tout(X) value and Tout(X+1)-β=Tout'(X+1) is used as the value corresponding to Tout(X+1), tone degradation (recess) occurs. However, when Tout(X)+β=Tout'(X) is used as the value corresponding to Tout(X) and Tout(X+1)+β=Tout'(X+1) is used as the value corresponding to Tout( X+1), then even in this case there is never hue degradation.

在此,常数A必须是2的自然数次幂。当把A设置为2的自然数幂时,可以不使用乘法器电路而仅仅利用数据移位来执行A^Tn和Tm的乘法。如果A不是2的自然数幂,则不能减小逆伽马校正电路的后一级中的运算电路规模,失去了采用浮点表示的优点。例如,当试图在尾数被定义为六(6)比特,A被定义为3比特的情况下执行3^2×33+3^1×25加法时,需要执行3^2×33=3^1×(3×33)的乘法,以获得第一项的Tn值和第二项的Tn值之间的匹配。而且,在尾数Tm(99+25=124)的加法之后,需要执行除法(124/3),以便再次将尾数的尾数设置为六(6)比特。如上所述,因为加法需要乘法和除法,因此不能获得当采用浮点表示时可获得的效果。Here, the constant A must be a natural number power of 2. When A is set to a natural number power of 2, multiplication of A^Tn and Tm can be performed using only data shift without using a multiplier circuit. If A is not a natural number power of 2, the scale of the operation circuit in the subsequent stage of the inverse gamma correction circuit cannot be reduced, and the advantage of using floating-point representation is lost. For example, when trying to perform 3^2×33+3^1×25 addition where the mantissa is defined as six (6) bits and A is defined as 3 bits, one needs to do 3^2×33=3^1 ×(3×33) to obtain a match between the Tn value of the first term and the Tn value of the second term. Also, after addition of the mantissa Tm (99+25=124), division (124/3) needs to be performed in order to set the mantissa of the mantissa to six (6) bits again. As described above, since addition requires multiplication and division, the effect that can be obtained when using floating-point representation cannot be obtained.

此外,所希望的是,M值等于或小于Y-N。其原因在于,伽马校正处理经常用于维持精度,并且LUT的电路规模可以通过采用本发明的逆伽马校正电路来维持或减小。为了减小后一级电路的电路规模,至少尾数的位数必须小于最初整数表示的位数,即要求关系式M<Y。In addition, it is desirable that the value of M is equal to or smaller than Y-N. The reason for this is that gamma correction processing is often used to maintain accuracy, and the circuit scale of the LUT can be maintained or reduced by employing the inverse gamma correction circuit of the present invention. In order to reduce the circuit scale of the latter stage circuit, at least the number of digits of the mantissa must be smaller than the number of digits represented by the original integer, that is, the relational expression M<Y is required.

此外,当A为2时、要求N值等于或大于2,并且当A大于2时要求N值等于或大于1。其原因在于,如果当A为2时N值取为1,则A^Tn值仅取1或2,并且可以通过将Tm设置为M+1比特来实现该一(1)位数据移位。此外,当A等于或大于4时,即使Tm被设置为M+1比特,也不能实现A^Tn的两(2)比特数据移位。因此,采用N=1是合理的。In addition, when A is 2, the value of N is required to be 2 or greater, and when A is greater than 2, the value of N is required to be 1 or greater. The reason for this is that if the value of N is 1 when A is 2, the value of A^Tn is only 1 or 2, and the one (1) bit data shift can be realized by setting Tm to M+1 bits. In addition, when A is equal to or greater than 4, even if Tm is set to M+1 bits, two (2) bit data shift of A^Tn cannot be realized. Therefore, it is reasonable to use N=1.

在此,N值不足以取最大值。可以从Tout’值得到N的最大值。当N变大时,必须从关系式Y≥M+N中减去M值。当N值变大时,可以表示的色调动态范围变得更宽,但是因为M值变小了,因此精度降低了。当精度降低时,不能从其它Tin值得到相同的Tout’值。在显示的时候,这被认为是色调退化(recess)问题,并且变得远离本发明的主题。因此,从以上说明来看,假如利用预设的常数A和尾数的位数M,对于所有Tin值,一组Tn和Tm值都变成一组不同值,则不可能使用比最大N值大的值。Here, the value of N is not sufficient to take the maximum value. The maximum value of N can be obtained from the value of Tout'. When N becomes large, the value of M must be subtracted from the relation Y≥M+N. As the N value becomes larger, the dynamic range of tones that can be represented becomes wider, but because the M value becomes smaller, the accuracy decreases. When the accuracy is reduced, the same value of Tout' cannot be obtained from other Tin values. When displayed, this is considered a tone recession problem and becomes far from the subject of the present invention. Therefore, from the above description, if a set of Tn and Tm values becomes a set of different values for all Tin values using the preset constant A and the number of digits M of the mantissa, it is impossible to use a value larger than the maximum N value. value.

从以上说明来看,A、M和N值受到限制,并且可以在格式转换处理2中根据这些值来获得Tn和Tm值(步骤S5)。在此,这样设置Tn和Tm值,使得Tm值变得尽可能的大。其原因在于,当Tm值变大时,色调的精度总体上提高了。From the above description, A, M, and N values are restricted, and Tn and Tm values can be obtained from these values in the format conversion process 2 (step S5). Here, the Tn and Tm values are set such that the Tm value becomes as large as possible. The reason for this is that, as the Tm value becomes larger, the accuracy of the color tone improves as a whole.

图4所示为,在M值增大(当M=m2>m1时)且N值增大(当N=n2>n1时)的情况下相对于M=m1且N=n1时的色调-精度特性的色调-精度特性变化示意图,其中水平轴表示色调且垂直轴表示精度(当值越大、精度越高)。首先,将说明作为参考的M=m1且N=n1时的色调-精度特性。在该情况下,因为在色调值较小的范围内浮点数不能被移位至小于0(当N=0),因此当色调值减小时,它被Tm值所覆盖,从而精度降低。当色调变得较高时,可以最大限度地使用Tm的精度。因此,精度变为常数(M位数)。接下来,当N值增大时(当N=n2>n1),浮点数在更宽的色调范围内被移位。因此,除色调只取小值的范围以外,精度变得几乎为常数。然而,因为M值不变(M=m1),因此色调值取较大值时的精度和N=n1时的精度相同。同时,当M值增大时(当M=m2>m1),对于所有色调值、精度都提高(m1-m2)位数。因此,优选地,使Tm值优先地大于Tn值。Figure 4 shows, when the value of M is increased (when M=m2>m1) and the value of N is increased (when N=n2>n1), the hue relative to M=m1 and N=n1 - Schematic diagram of changes in hue-accuracy characteristics of precision characteristics, where the horizontal axis represents hue and the vertical axis represents precision (the larger the value, the higher the precision). First, the tone-accuracy characteristics when M=m1 and N=n1 as a reference will be described. In this case, since the floating-point number cannot be shifted to less than 0 (when N=0) in the range where the tone value is small, when the tone value decreases, it is covered by the Tm value, thereby reducing precision. When the hue becomes higher, the precision of Tm can be used to the maximum. Therefore, the precision becomes constant (M digits). Next, as the value of N increases (when N=n2>n1), the floating point number is shifted in a wider tonal range. Therefore, the precision becomes almost constant except in the range where the hue takes only small values. However, since the M value does not change (M=m1), the accuracy when the tone value takes a larger value is the same as that when N=n1. Meanwhile, when the value of M increases (when M=m2>m1), the precision increases by (m1-m2) bits for all hue values. Therefore, it is preferable to make the Tm value preferentially larger than the Tn value.

然而,如果当色调较低时要求运算精度,则优选地提高相对于较低色调的运算精度,同时根据所需的精度将Tn值设置为某一值。However, if operation accuracy is required when the tone is low, it is preferable to increase the operation accuracy with respect to the lower tone while setting the Tn value to a certain value according to the required accuracy.

最后,所获得的Tn和Tm被输出作为输出信号(步骤S6)。Finally, the obtained Tn and Tm are output as output signals (step S6).

可以通过仅仅用一个LUT总结这些步骤,用单个处理来执行这些步骤。These steps can be performed with a single process by summarizing them with only one LUT.

利用上述结构,因为Y≥M+N,所以与现有结构相比,可以减小逆伽马校正处理所需的LUT规模。此外,因为Y>M,因此可以减小在逆伽马校正处理的后一级(对应于相应的彩色重现处理)中执行乘法时的乘法器电路运算规模。此外,这些处理产生了几乎等于或高于用于提供Y比特输出的现有结构的精度。即,利用本发明的逆伽马校正,图像质量从不恶化。With the above structure, since Y≧M+N, the LUT size required for inverse gamma correction processing can be reduced compared to the existing structure. Furthermore, since Y>M, it is possible to reduce the operation scale of the multiplier circuit when performing multiplication in the subsequent stage of the inverse gamma correction processing (corresponding to the corresponding color reproduction processing). Furthermore, these processes yield a precision nearly equal to or higher than existing structures for providing Y-bit output. That is, with the inverse gamma correction of the present invention, image quality never deteriorates.

反之,在正伽马校正的情况下,从以上说明,可以通过把具有线性色调-亮度精度的Y比特(M+N≤Y)色调信号Tout表示为带有Tn和Tm的Tout=A^Tn×Tm(A为常数),然后将Tout转换成具有非线性色调-亮度特性的X比特(X<Y)色调信号Tin,来减小正伽马校正处理所需的LUT规模。Conversely, in the case of positive gamma correction, from the above description, it can be expressed as Tout=A^Tn ×Tm (A is a constant), and then convert Tout into an X-bit (X<Y) tone signal Tin with nonlinear tone-brightness characteristics to reduce the LUT size required for positive gamma correction processing.

以上说明了用于提供本发明效果的A、M和N值的范围。接下来,将研究逆伽马校正处理的适当M和N值。The ranges of the values of A, M and N for providing the effects of the present invention are explained above. Next, appropriate M and N values for inverse gamma correction processing will be investigated.

在该例子中,为方便说明,将A值设置为2。然而,即使A取其它值(2的自然数次幂),也可以通过利用与下述相同的方法改变值,来得到适当的M和N值。In this example, the value of A is set to 2 for the sake of illustration. However, even if A takes other values (natural number powers of 2), appropriate values of M and N can be obtained by changing the values by the same method as described below.

从逆伽马校正处理中所获得的Tout值,可以得到适当的M和N值。以下将说明图5中X=6且Y=10情况下,逆伽马校正处理中所获得的输入-输出特性的例子。图5所示为,在X=6且Y=10的条件下,尾数的位数M被设置为5和6时,格式转换处理的输出Tn和Tm之间的比较结果表。通过用单调增函数来表示利用逆伽马校正处理获得的输入-输出特性,以便消除色调反转(固有信号的亮度和暗度的关系反转的现象)的产生。Appropriate M and N values can be obtained from the Tout value obtained in the inverse gamma correction process. An example of the input-output characteristics obtained in the inverse gamma correction process in the case of X=6 and Y=10 in FIG. 5 will be described below. FIG. 5 shows a table of comparison results between the outputs Tn and Tm of the format conversion process when the number of digits M of the mantissa is set to 5 and 6 under the condition of X=6 and Y=10. The input-output characteristics obtained by the inverse gamma correction processing are expressed by a monotonically increasing function in order to eliminate the occurrence of tone inversion (a phenomenon in which the relationship between lightness and darkness of an inherent signal is reversed).

首先,研究Tin值中最暗色调(最小值)附近的Tout值。因为在逆伽马校正处理中Tout值被转换成小于输入值的值,因此具有较小值的Tin的精度降低了,如图1所示。因此,当Tin在从0至大约3的范围内变化时,从Tout来判断逆伽马校正处理所需的精度(即,逆伽马校正处理的输出位数:Y)。在图5中,因为Tout值的取值为0、1、2和4,并且最小差为1,因此当使用其它输入值时,决不取相同值(即决不产生色调退化(recess))。因此,如同可以估计的,(Y)值可以取10值。First, study the Tout value near the darkest tone (minimum value) among the Tin values. Because the Tout value is converted into a value smaller than the input value in the inverse gamma correction process, the precision of Tin having a smaller value is lowered, as shown in FIG. 1 . Therefore, when Tin varies from 0 to about 3, the accuracy required for inverse gamma correction processing (ie, the number of output bits of inverse gamma correction processing: Y) is judged from Tout. In Fig. 5, because the values of Tout are 0, 1, 2 and 4, and the minimum difference is 1, when using other input values, never take the same value (that is, never produce tone degradation (recess)) . Therefore, the (Y) value may take a value of 10 as may be estimated.

接下来,这样设置M和N值,使得通过对从所有Tin值得到的Tout执行转换而获得的Tm值的相邻色调之差,变得等于一(1)或更大。更具体地说,研究与最高有效位为一(1)的最小Tout之差。当Y=10时,Tout最高有效位第一次变为一(1)(即变得等于或大于2^9=512)的Tout值等于520(1000001000),如图5所示,并且Tout增大,如546(1000100010)、571(1000111011)和598(1001010110)。在该情况下,当M值等于5时,从这些Tout值得到的Tm值分别变为10000、10001、10001和10010。在该情况下,Tout=546的Tm和Tout=571的Tm变为10001,相同的值连续,从而产生了色调退化(recess)。同时,当M值等于六(6)时,从这些Tout值得到的Tm值分别变为100000、100010、100011和100101,与各个Tout值相对应的Tm值变得不同。因此,当从暗色调直到亮色调、精度都相等时,适当的M值为六(6),并且必须将Tn值设置为从0直到4。为了在M=6、A=2且Y=10的条件下将Y比特(10比特)数据表示为A^Tn×Tm,要求使用使2Tn×63≈2^10-1成立的Tn。因为当Tout等于546(1000100010)时Tm等于10010,所以可以被表示为A^Tn×Tm且最接近546的值等于544(=2^4×34),并且要求Tn的取值直到4。Next, the M and N values are set such that the difference between adjacent tones of the Tm value obtained by performing conversion on Tout obtained from all the Tin values becomes equal to one (1) or more. More specifically, study the difference from the minimum Tout with the most significant bit being one (1). When Y=10, the Tout value that the most significant bit of Tout becomes one (1) for the first time (that is, becomes equal to or greater than 2^9=512) is equal to 520 (1000001000), as shown in Figure 5, and Tout increases Large, such as 546 (1000100010), 571 (1000111011) and 598 (1001010110). In this case, when the M value is equal to 5, the Tm values obtained from these Tout values become 10000, 10001, 10001, and 10010, respectively. In this case, Tm of Tout=546 and Tm of Tout=571 become 10001, the same value continues, and tone recession occurs. Meanwhile, when the M value is equal to six (6), the Tm values obtained from these Tout values become 100000, 100010, 100011, and 100101, respectively, and the Tm values corresponding to the respective Tout values become different. Therefore, a suitable M value is six (6) when the accuracy is equal from dark to light tones, and Tn values must be set from 0 to 4. In order to represent Y-bit (10-bit) data as ÂTn×Tm under the conditions of M=6, A=2, and Y=10, it is required to use Tn that makes 2Tn×63≈2̂10−1. Because Tm is equal to 10010 when Tout is equal to 546 (1000100010), it can be expressed as A^Tn×Tm and the value closest to 546 is equal to 544 (=2^4×34), and the value of Tn is required until 4.

此外,也要求满足关系式Tn=2^(2^N-1)≥2^(Y-M),这是因为通过从最初Y比特数据中去除M比特较高有效位而得到的剩余Y-M比特的数据移位是用N来表示。当对N求解时,可以得到N≥log(1+Y-M)/log2结果。因此,当M值被确定时,可以得到作为等于或大于log(1+Y-M)/log2的最小整数值的N值。在以上例子中,因为log(1+10-6)/log2=2.322,因此N值变为3作为最小值。In addition, it is also required to satisfy the relationship Tn=2^(2^N-1)≥2^(Y-M), because the remaining Y-M bits of data obtained by removing M bits of higher significant bits from the initial Y bits of data The shift is represented by N. When solving for N, the result of N≥log(1+Y-M)/log2 can be obtained. Therefore, when the M value is determined, the N value that is the smallest integer value equal to or greater than log(1+Y-M)/log2 can be obtained. In the above example, since log(1+10-6)/log2=2.322, the value of N becomes 3 as the minimum value.

另外,增大M或N值,以获得更高的精度。例如,因为亮色调的精度主要由M确定,因此足以增大M值。另外,因为暗色调的精度也与M和N值相关,因此足以增大M或N值。Also, increase the M or N value for greater precision. For example, since the accuracy of bright tone is mainly determined by M, it is sufficient to increase the M value. In addition, since the accuracy of the dark tone is also related to the M and N values, it is enough to increase the M or N value.

利用上述方法,可以用逆伽马校正处理的值来设置适当的M和N值。Using the method described above, the values of inverse gamma correction processing can be used to set appropriate M and N values.

以下将说明基于上述原理的本发明优选实施例。Preferred embodiments of the present invention based on the above principles will be described below.

第一实施例first embodiment

现在将说明本发明的第一优选实施例。图6显示了该第一实施例的液晶显示设备的结构。该液晶显示设备装备有图像处理器1和液晶显示器12。该液晶显示设备将数字图像信号(例如RGB信号,每一种颜色六比特)作为输入信号输入到图像处理器1,在图像处理器1中执行各种操作之后、将数字图像信号输出到液晶显示器12,根据数字图像信号来确定液晶显示器12的像素的透射率,并根据这种数字图像信号来显示图像。A first preferred embodiment of the present invention will now be described. FIG. 6 shows the structure of the liquid crystal display device of this first embodiment. This liquid crystal display device is equipped with an image processor 1 and a liquid crystal display 12 . This liquid crystal display device inputs a digital image signal (for example, RGB signal, six bits for each color) into the image processor 1 as an input signal, and outputs the digital image signal to the liquid crystal display after performing various operations in the image processor 1. 12. Determine the transmittance of the pixels of the liquid crystal display 12 according to the digital image signal, and display an image according to the digital image signal.

在此,以每一种颜色6比特的色调表示,来表示图像处理器的输入-输出信号,但是位数不限于六(6)比特。Here, the input-output signal of the image processor is represented by hue representation of 6 bits per color, but the number of bits is not limited to six (6) bits.

图像处理器1是一种用于通过根据液晶显示器12的色度特性转换图像信号,来执行相应彩色重现的功能单元。图像处理器1包括逆伽马校正电路2、色彩空间转换电路3和正伽马校正电路4。单独为每种色素(color element)提供逆伽马校正电路2和正伽马校正电路4。输入到图像处理器1的数字图像信号受到逆伽马校正电路2、色彩空间转换电路3和正伽马校正电路4中的顺序操作处理,并且正伽马校正电路4的输出作为输出信号被发送给源驱动器与控制信号发生器34中的DA转换器(未显示)。The image processor 1 is a functional unit for performing corresponding color reproduction by converting an image signal according to the chromaticity characteristics of the liquid crystal display 12 . The image processor 1 includes an inverse gamma correction circuit 2 , a color space conversion circuit 3 and a positive gamma correction circuit 4 . An inverse gamma correction circuit 2 and a positive gamma correction circuit 4 are provided individually for each color element. The digital image signal input to the image processor 1 is subjected to sequential operation processing in the inverse gamma correction circuit 2, the color space conversion circuit 3 and the positive gamma correction circuit 4, and the output of the positive gamma correction circuit 4 is sent as an output signal to A DA converter (not shown) in the source driver and control signal generator 34 .

液晶显示器12包括扫描驱动器33、源驱动器与控制信号发生器34及像素矩阵38。The LCD 12 includes a scan driver 33 , a source driver and control signal generator 34 and a pixel matrix 38 .

像素矩阵38包括多条扫描线31、多条信号线32、多个像素35、多个辅助电容器36及薄膜晶体管(TFT)37。每条扫描线31和每条信号线32相互交叉,并且通过TFT 37在扫描线31和信号线32的每个交叉点设置一个像素35。每个像素35都与辅助电容器36并联。The pixel matrix 38 includes a plurality of scanning lines 31 , a plurality of signal lines 32 , a plurality of pixels 35 , a plurality of auxiliary capacitors 36 and a thin film transistor (TFT) 37 . Each scanning line 31 and each signal line 32 cross each other, and a pixel 35 is provided at each intersection of the scanning line 31 and the signal line 32 through a TFT 37. Each pixel 35 is connected in parallel with an auxiliary capacitor 36 .

扫描驱动器33控制要分别输入到多条扫描线31的信号。源驱动器与控制信号发生器34控制要分别输入到多条信号线32的信号。The scan driver 33 controls signals to be respectively input to the plurality of scan lines 31 . The source driver and control signal generator 34 controls signals to be respectively input to the plurality of signal lines 32 .

在此,以下将说明从把数字图像信号输入到液晶显示设备、直到在液晶显示器12上显示图像的处理。图像处理器1通过对输入数字信号执行操作处理,来输出数字信号。输出图像信号和显示控制信号(未显示)被发送给扫描驱动器33和源驱动器与控制信号发生器34。源驱动器与控制信号发生器34根据液晶显示器12的像素35的施加电压-亮度特性,以及从输入图像信号的伽马特性得到的转换特性,对数字图像信号执行DA转换。被转换为模拟信号的信号被应用于与被扫描驱动器33通过TFT 37选择性地施加ON电压的扫描线31连接的像素35,然后通过被转换为亮度,被输出为图像信号。Here, the processing from inputting a digital image signal to the liquid crystal display device until displaying an image on the liquid crystal display 12 will be described below. The image processor 1 outputs digital signals by performing operation processing on input digital signals. Output image signals and display control signals (not shown) are sent to the scan driver 33 and the source driver and control signal generator 34 . The source driver and control signal generator 34 performs DA conversion on the digital image signal based on the applied voltage-brightness characteristic of the pixel 35 of the liquid crystal display 12 and the conversion characteristic obtained from the gamma characteristic of the input image signal. The signal converted into an analog signal is applied to the pixel 35 connected to the scan line 31 to which the ON voltage is selectively applied by the scan driver 33 through the TFT 37, and is then output as an image signal by being converted into luminance.

图7显示了逆伽马校正电路2的详细结构。该逆伽马校正电路2由指数查找表(LUT)21和尾数LUT 22构成。指数LUT 21和尾数LUT22接收相同的数字信号作为输入信号。在这些指数LUT 21和尾数LUT22中,参考LUT来获得依据输入信号的值,然后该值作为输出数字信号被输出。指数LUT 21的输出是三(3)比特值(指数信号),尾数LUT 22的输出是六(6)比特值(尾数信号)。分别从指数LUT 21和尾数LUT 22输出的信号被发送给色彩空间转换电路3。FIG. 7 shows the detailed structure of the inverse gamma correction circuit 2. As shown in FIG. The inverse gamma correction circuit 2 is composed of an exponent look-up table (LUT) 21 and a mantissa LUT 22. The exponent LUT 21 and the mantissa LUT 22 receive the same digital signal as an input signal. In these exponent LUT 21 and mantissa LUT 22, a value according to an input signal is obtained by referring to the LUT, and then the value is output as an output digital signal. The output of the exponent LUT 21 is a three (3) bit value (exponent signal) and the output of the mantissa LUT 22 is a six (6) bit value (mantissa signal). Signals respectively output from the exponent LUT 21 and the mantissa LUT 22 are sent to the color space conversion circuit 3 .

在此,指数LUT和尾数LUT被形成为单独结构,但是也有可能仅仅提供一个九(9)比特输出的LUT,其中六(6)比特输出被提供给尾数,而剩余三(3)比特被提供给指数。Here, the exponent LUT and the mantissa LUT are formed as separate structures, but it is also possible to provide only one LUT with a nine (9) bit output, where six (6) bit outputs are provided for the mantissa and the remaining three (3) bits are provided give index.

图8显示了色彩空间转换电路3的详细结构。色彩空间转换电路3由以下组成:九个乘法器电路,用于RGB尾数信号和三个常数(axy(x,y=1,2,3))的乘法;数据移位器23,用于根据RGB指数信号对相应乘法结果执行数据移位;六(6)个加法器,用于把数据移位结果加起来;以及信号转换器24,用于再次将加法结果分成指数和尾数。显然,从所示的结构来看,色彩空间转换电路3执行3×3矩阵运算。FIG. 8 shows the detailed structure of the color space conversion circuit 3. As shown in FIG. Color space conversion circuit 3 is made up of following: nine multiplier circuits, are used for the multiplication of RGB mantissa signal and three constants (axy (x, y=1,2,3)); Data shifter 23 is used for according to The RGB exponent signals perform data shifts on the corresponding multiplication results; six (6) adders for adding up the data shifted results; and a signal converter 24 for splitting the addition results into exponents and mantissas again. Obviously, from the structure shown, the color space conversion circuit 3 performs 3×3 matrix operations.

图9显示了正伽马校正电路4的结构。正伽马校正电路4由二维LUT 25构成,其中指数信号和尾数信号分别被定义为次级二维排列中的行数和列数。正伽马校正电路4参考该二维LUT 25,来获得依据输入指数信号和输入尾数信号的值,然后将该值作为输出信号(六(6)比特)输出。FIG. 9 shows the structure of the positive gamma correction circuit 4 . The positive gamma correction circuit 4 is constituted by a two-dimensional LUT 25, in which the exponential signal and the mantissa signal are respectively defined as the number of rows and columns in the secondary two-dimensional arrangement. The positive gamma correction circuit 4 refers to the two-dimensional LUT 25 to obtain a value according to the input exponent signal and the input mantissa signal, and then outputs the value as an output signal (six (6) bits).

接下来,将说明该实施例的液晶显示设备的操作以及所达到的效果。Next, the operation of the liquid crystal display device of this embodiment and the achieved effects will be described.

在图6的图像处理电路中,通过采用基于浮点数系统的色调表示作为逆伽马校正电路2的输出,可以在不降低精度的情况下减小后一级中的色彩空间转换电路3的电路规模。现在将沿着图像信号的流程,来详细说明每个电路的操作。In the image processing circuit of FIG. 6, by adopting the color tone representation based on the floating-point number system as the output of the inverse gamma correction circuit 2, the circuit of the color space conversion circuit 3 in the subsequent stage can be reduced without reducing the accuracy scale. The operation of each circuit will now be described in detail along the flow of image signals.

图7所示的逆伽马校正电路2利用LUT执行逆伽马校正,而且将色调表示方法转换成基于浮点表示的方法。The inverse gamma correction circuit 2 shown in FIG. 7 performs inverse gamma correction using a LUT, and converts the tone expression method to a method based on floating-point expression.

在对六(6)比特信号执行逆伽马校正的情况下,如果校正后的输出被设置为10比特或更大(2^(9-1)=512色调或更多),则用普通色调表示(定点)不能维持精度,但是利用基于浮点表示的方法,可以通过将输出设置为三(3)比特指数(仅仅是十进制数的0至4)+六(6)比特尾数,来获得等于或大于以定点法显示的10位(2^4×63=1008色调)的值。也就是,因为可以将普通表示法所需的十比特减少到九(9)比特(=3+6),因此与用于对定点法表示的信号执行逆伽马校正的电路相比,逆伽马校正电路2的结构尺寸可以减小。In the case of performing inverse gamma correction on a six (6) bit signal, if the corrected output is set to 10 bits or more (2^(9-1) = 512 tones or more), use normal tones The representation (fixed-point) cannot maintain precision, but with methods based on floating-point representations, it is possible to obtain a value equal to Or a value larger than 10 bits (2^4×63=1008 tones) displayed by the fixed-point method. That is, since the ten bits required for ordinary representation can be reduced to nine (9) bits (=3+6), the inverse gamma The structural size of the horse correction circuit 2 can be reduced.

在每个乘法电路的后一级中,和普通矩阵运算电路不同,图8所示的利用基于浮点表示的方法来表示色调的矩阵运算电路(色彩空间转换电路3)装备有一种用于根据指数值来使数据移位的电路。当输入信号的指数被定义为Xa、尾数被定义为Xb时(X=R、G、B),用以下公式(1)来表示从把信号输入到色彩空间转换电路3,直到信号转换器24中处理的处理。In the subsequent stage of each multiplication circuit, unlike an ordinary matrix operation circuit, the matrix operation circuit (color space conversion circuit 3) shown in FIG. A circuit that shifts data by exponent value. When the exponent of the input signal is defined as Xa, and the mantissa is defined as Xb (X=R, G, B), the following formula (1) is used to represent from the signal input to the color space conversion circuit 3 until the signal converter 24 processing in the processing.

Rout=2^Ra×(Rb×a11)+2^Ga×(Gb×a12)+2^Ba×(Bb×a13),Rout=2^Ra×(Rb×a11)+2^Ga×(Gb×a12)+2^Ba×(Bb×a13),

Gout=2^Ra×(Rb×a21)+2^Ga×(Gb×a22)+2^Ba×(Bb×a23),Gout=2^Ra×(Rb×a21)+2^Ga×(Gb×a22)+2^Ba×(Bb×a23),

Bout=2^Ra×(Rb×a31)+2^Ga×(Gb×a32)+2^Ba×(Bb×a33)   (1)Bout=2^Ra×(Rb×a31)+2^Ga×(Gb×a32)+2^Ba×(Bb×a33) (1)

在数据移位器23中,通过Xa位移位,执行2^Xa次公式(1)中的运算(X=R、G、B)。然后,该运算输出通过被信号转换器24转换为指数和尾数而被输出。因为数据移位器23执行指数运算,因此可以简化乘法处理。因此,当数据移位器23所执行的指数运算例如是2的升幂运算,如4^Ra倍和8^Rb倍,可以获得本发明的效果。In the data shifter 23, the operation (X=R, G, B) in the formula (1) is performed 2^Xa times by Xa bit shifting. Then, the operation output is output by being converted into an exponent and a mantissa by the signal converter 24 . Since the data shifter 23 performs exponent operation, the multiplication process can be simplified. Therefore, when the exponent operation performed by the data shifter 23 is, for example, a power-raising operation of 2, such as 4^Ra times and 8^Rb times, the effect of the present invention can be obtained.

在此,因为尾数的位数等于输入位数,所以可以显著减小乘法器电路的电路规模。在普通结构中,10比特×6比特运算被执行,但是该运算被转换为六(6)比特×六(6)比特运算,导致电路规模减小大约40%。而且,因为数据移位器23和信号转换器24的电路规模不太大,所以电路结构可以比普通结构减小约30%。Here, since the number of bits of the mantissa is equal to the number of input bits, the circuit scale of the multiplier circuit can be significantly reduced. In a common structure, 10 bits x 6 bits operation is performed, but this operation is converted into six (6) bits x six (6) bits operation, resulting in a circuit scale reduction of about 40%. Also, since the circuit scales of the data shifter 23 and the signal converter 24 are not too large, the circuit structure can be reduced by about 30% compared to the conventional structure.

接下来,利用其中指数值和尾数值分别被设置为xy轴的二维LUT(二维LUT 25),来执行基于浮点表示的正伽马校正。图10显示了正伽马校正电路的LUT结构,其中输入由三(3)比特指数(仅使用0至4)+六(6)比特尾数构成,而输出由六(6)比特构成。因为指数值的范围是0至4,而尾数值的范围是0至63,所以LUT所需的比特数达到1920比特(=5×64×6比特)。然而,当指数值等于或大于一(1),并且尾数最高有效位为0时,使指数值减一(1)并使尾数值加倍。因此,不一定需要为指数和尾数的所有组合都保存LUT(不需要图10中双重框所包围的域(指数值等于或大于一(1)且尾数最高有效位为0的域))。Next, positive gamma correction based on floating-point representation is performed using a two-dimensional LUT (two-dimensional LUT 25 ) in which exponent values and mantissa values are respectively set as xy axes. Figure 10 shows the LUT structure of a positive gamma correction circuit, where the input consists of a three (3) bit exponent (using only 0 to 4) + six (6) bits of a mantissa, and the output consists of six (6) bits. Since the exponent value ranges from 0 to 4 and the mantissa value ranges from 0 to 63, the number of bits required for the LUT reaches 1920 bits (=5×64×6 bits). However, when the value of the exponent is equal to or greater than one (1), and the most significant bit of the mantissa is 0, the value of the exponent is decreased by one (1) and the value of the mantissa is doubled. Thus, LUTs do not necessarily need to be saved for all combinations of exponent and mantissa (the fields enclosed by the double box in Figure 10 (fields with exponent values equal to or greater than one (1) and the most significant bit of the mantissa being 0) are not required).

如图10所示,当指数等于“0”时,尾数取“0至63”中的任何值,而当指数等于“1至4”时,尾数取“32至63”中的任何值。因为在任何情况下输出都是六(6)比特,所以正伽马校正电路4的规模可以变成如下所述。As shown in FIG. 10, when the exponent is equal to "0", the mantissa takes any value from "0 to 63", and when the exponent is equal to "1 to 4", the mantissa takes any value from "32 to 63". Since the output is six (6) bits in any case, the size of the positive gamma correction circuit 4 can become as follows.

当指数等于“0”时,尾数可以取“0至63”值,即2^6种值。因为对于各个值输出都是六(6)比特,所以需要2^6×6比特的存储器。同时,当指数等于“1至4”时,尾数可以取“32至63”值,即2^5种值。因为对于各个值输出都是六(6)比特,所以需要2^5×6×4比特的存储器。即,对于每种颜色都需要(2^6×6)比特+(2^5×6×4)比特的存储器。在RGB彩色图像的情况下,对于每种色素都需要与上述一样多的位数(然而,假定RGB每种色素的输入-输出位数是相同的)。因此,LUT所需的位数表示如下。When the exponent is equal to "0", the mantissa can take values from "0 to 63", that is, 2^6 values. Since the output is six (6) bits for each value, 2Λ6x6 bits of memory are required. At the same time, when the exponent is equal to "1 to 4", the mantissa can take a value from "32 to 63", that is, 2^5 kinds of values. Since the output is six (6) bits for each value, 2Λ5x6x4 bits of memory are required. That is, (2̂6×6) bits + (2̂5×6×4) bits of memory are required for each color. In the case of an RGB color image, as many bits as above are required for each color element (however, it is assumed that the input-output bit number for each color element of RGB is the same). Therefore, the number of bits required for the LUT is expressed as follows.

输入3+6比特——>输出六(6)比特:Input 3+6 bits --> output six (6) bits:

(2^6×6+2^5×6×4)×3(RGB)=152×3比特(2^6×6+2^5×6×4)×3(RGB)=152×3 bits

在背景技术的情况下,正伽马校正电路将10比特输入信号转换为6比特输出信号,因此所需的位数是2^10×6×3=6144×3比特。因此,在本发明中可以大大减小电路规模。In the background art case, a positive gamma correction circuit converts a 10-bit input signal into a 6-bit output signal, so the required number of bits is 2^10×6×3=6144×3 bits. Therefore, the circuit scale can be greatly reduced in the present invention.

在此,可以通过应用基于浮点表示的方法,来减小后一级中的矩阵运算电路(加法器电路、乘法器电路)和正伽马校正电路(LUT)的电路规模。Here, the circuit scale of the matrix operation circuit (adder circuit, multiplier circuit) and positive gamma correction circuit (LUT) in the subsequent stage can be reduced by applying a method based on floating-point representation.

利用上述效果,有可能提供一种通过应用数字伽马校正电路来减小电路规模的图像处理设备和显示设备。With the above-described effects, it is possible to provide an image processing device and a display device that reduce the circuit scale by applying a digital gamma correction circuit.

在以上结构中,逆伽马校正电路由逆转换电路和格式转换电路相结合而组成。该实施例不限于此,当逆伽马校正电路和格式转换电路被单独形式时,也可以获得本发明的效果。In the above structure, the inverse gamma correction circuit is composed of a combination of an inverse conversion circuit and a format conversion circuit. The embodiment is not limited thereto, and the effects of the present invention can also be obtained when the inverse gamma correction circuit and the format conversion circuit are separately formed.

在以上说明中,数字色调的位数被设置为六(6)位,但是本发明不限于此,当这种数字色调位数被设置为期望的位数,例如八(8)比特时,也可以获得相同的效果。In the above description, the number of digits of digital tone is set to six (6) bits, but the present invention is not limited thereto, and when such number of digits of digital tone is set to a desired number of bits, such as eight (8) bits, The same effect can be obtained.

此外,在本发明中,液晶显示器被用作显示器,但是本发明不限于此。即使当如图11所示使用其它显示设备(PDP、使用电致发光元件的显示器、或液晶投影仪等),也可以获得类似的效果。Furthermore, in the present invention, a liquid crystal display is used as the display, but the present invention is not limited thereto. Similar effects can be obtained even when other display devices (PDPs, displays using electroluminescence elements, or liquid crystal projectors, etc.) are used as shown in FIG. 11 .

第二实施例second embodiment

以下将说明本发明的第二实施例。A second embodiment of the present invention will be described below.

图12显示了第二实施例的液晶显示设备的结构。该液晶显示设备几乎与第一实施例的液晶显示设备的图像处理器1相同,但是逆伽马校正电路2A、色彩空间转换电路3A和正伽马校正电路4的结构与第一实施例的液晶显示设备不同。除相对于两(2)比特+六(6)比特输入数据而输出六(6)比特数据以外,正伽马校正电路4与第一实施例一样。Fig. 12 shows the structure of the liquid crystal display device of the second embodiment. This liquid crystal display device is almost the same as the image processor 1 of the liquid crystal display device of the first embodiment, but the structures of the inverse gamma correction circuit 2A, the color space conversion circuit 3A, and the positive gamma correction circuit 4 are the same as those of the liquid crystal display device of the first embodiment. The equipment is different. The positive gamma correction circuit 4 is the same as the first embodiment except that six (6) bits of data are output with respect to two (2) bits+six (6) bits of input data.

图13显示了逆伽马校正电路2A的结构。逆伽马校正电路2A包括指数LUT 21A和尾数LUT 22。尾数LUT 22类似于第一实施例的液晶显示设备的尾数LUT。指数LUT 21A不同于第一实施例的指数LUT之处在于,对于每种颜色,两(2)比特值被输出到六(6)比特输入图像信号。和第一实施例一样,相同的信号被输入到指数LUT 21A和尾数LUT 22。FIG. 13 shows the configuration of the inverse gamma correction circuit 2A. The inverse gamma correction circuit 2A includes an exponent LUT 21A and a mantissa LUT 22. The mantissa LUT 22 is similar to that of the liquid crystal display device of the first embodiment. The index LUT 21A differs from that of the first embodiment in that, for each color, two (2) bit values are output to six (6) bit input image signals. As in the first embodiment, the same signals are input to the exponent LUT 21A and the mantissa LUT 22.

在第一实施例中,作为指数LUT 21输出的三(3)比特值被直接用作色调表示的指数。同时,在该第二实施例中,指数LUT 21A的输出不直接用作色调表示的指数,并基于输出值将它编码为(赋给)其它值(例如0、2、3、4代替0、1、2、3)。即,指数LUT 21A的输出项数等于指数LUT 21A的输出值可以取的值的数目,并且指数LUT 21A的输出被赋给由按照不等差从初项递增的、等于或大于0的整数所形成的序列的任何一项的值。In the first embodiment, a three (3) bit value output as the index LUT 21 is directly used as an index for hue representation. Meanwhile, in this second embodiment, the output of the index LUT 21A is not directly used as an index for tone representation, and it is encoded (assigned) to other values (such as 0, 2, 3, 4 instead of 0, 1, 2, 3). That is, the number of output items of the index LUT 21A is equal to the number of values that the output value of the index LUT 21A can take, and the output of the index LUT 21A is assigned to an integer number equal to or greater than 0 that is incremented from the initial item by unequal difference. The value of any item of the formed sequence.

通过进行编码,可以将大于LUT 21A输出的最大值“3”的值设置为Ra,使得当指数LUT 21A的两(2)比特输出为0时,Ra=0,当该输出为1时,Ra=2,当该输出为2时,Ra=3,以及当该输出为3时,Ra=4。当Ra为1时,尾数部分输出值发生改变,使得Ra变为2(2^1×18=2^2×9)。A value greater than the maximum value "3" of the output of the LUT 21A can be set to Ra by encoding such that Ra = 0 when the two (2) bit outputs of the index LUT 21A are 0, and Ra = 0 when the output is 1. =2, when the output is 2, Ra=3, and when the output is 3, Ra=4. When Ra is 1, the output value of the mantissa part changes, so that Ra becomes 2 (2^1×18=2^2×9).

通过执行这种编码,可以在更宽的动态范围内实现色调表示,同时指数LUT 21A的输出位数受到控制。因为输出位数受到控制,因此可以减小指数LUT 21A的电路规模。By performing this encoding, tone representation can be achieved over a wider dynamic range while the number of output bits of the Index LUT 21A is controlled. Since the number of output bits is controlled, the circuit scale of the index LUT 21A can be reduced.

被赋给其它值的指数数据被发送给色彩空间转换电路3A。图14显示了色彩空间转换电路3A的结构。该电路几乎和第一实施例的液晶显示设备的色彩空间转换电路3相同,除了数据移位器23A代替数据移位器23。数据移位器23A执行与指数LUT 21A中的编码相对应的解密(使被转换为其它值的LUT 21A输出值复位到初始值)。当用于该解码的电路的规模足够小时,也可以减小总电路规模。换句话说,当用于转换被赋给其它值的指数LUT 21A输出值的电路的规模小于通过把输出值赋给其它值而减小的LUT 21A的电路规模时,也可以减小总电路规模。Exponential data assigned other values is sent to the color space conversion circuit 3A. FIG. 14 shows the configuration of the color space conversion circuit 3A. This circuit is almost the same as the color space conversion circuit 3 of the liquid crystal display device of the first embodiment except that the data shifter 23A is substituted for the data shifter 23 . The data shifter 23A performs decryption corresponding to encoding in the index LUT 21A (resetting the LUT 21A output value converted into another value to the initial value). When the scale of the circuit used for this decoding is sufficiently small, the total circuit scale can also be reduced. In other words, when the scale of the circuit for converting the output value of the index LUT 21A assigned to other values is smaller than the circuit scale of the LUT 21A reduced by assigning the output value to other values, the total circuit scale can also be reduced .

利用上述结构,可以减小位于逆伽马校正电路后一级中的色彩空间转换电路(矩阵运算电路(加法器电路和乘法器电路))和正伽马校正电路(LUT)的电路规模。With the above configuration, it is possible to reduce the circuit scale of the color space conversion circuit (matrix operation circuit (adder circuit and multiplier circuit)) and the positive gamma correction circuit (LUT) in the subsequent stage of the inverse gamma correction circuit.

另外,通过应该该数字伽马校正电路,也可以减小图像处理设备和显示设备的电路规模。In addition, by implementing the digital gamma correction circuit, it is also possible to reduce the circuit scale of the image processing device and the display device.

第三实施例third embodiment

以下将说明本发明的第三实施例。A third embodiment of the present invention will be described below.

在第一和第二实施例中,图像处理电路被设置在数字伽马校正电路的后一级中,用于相应彩色重现。在该实施例中,将说明这样一种结构,其中用于与相应彩色重现不同的目的的图像处理电路被设置在逆伽马校正电路的后一级中。In the first and second embodiments, the image processing circuit is provided in the subsequent stage of the digital gamma correction circuit for corresponding color reproduction. In this embodiment, a configuration will be described in which an image processing circuit for a purpose different from that of the corresponding color reproduction is provided in a subsequent stage of the inverse gamma correction circuit.

图15显示了第三实施例的液晶显示设备的结构。该液晶显示设备几乎与第一实施例的液晶显示设备相同,其不同之处仅仅在于,逆伽马校正电路2B代替逆伽马校正电路2,同时亮度-对比度校正电路5代替色彩空间转换电路3。Fig. 15 shows the structure of the liquid crystal display device of the third embodiment. This liquid crystal display device is almost the same as that of the first embodiment except that an inverse gamma correction circuit 2B is substituted for the inverse gamma correction circuit 2, and a brightness-contrast correction circuit 5 is substituted for the color space conversion circuit 3. .

图16显示了逆伽马校正电路2B的结构。和第一实施例的逆伽马校正电路2一样,相同的图像信号被输入到指数LUT 21B和尾数LUT22B两者。指数LUT 21B相对于六(6)比特输入信号输出三(3)指数信号,而尾数LUT 22B相对于六(6)比特输入信号输出六(6)比特尾数。FIG. 16 shows the configuration of the inverse gamma correction circuit 2B. As in the inverse gamma correction circuit 2 of the first embodiment, the same image signal is input to both the exponent LUT 21B and the mantissa LUT 22B. The exponent LUT 21B outputs a three (3) exponent signal with respect to a six (6) bit input signal, and the mantissa LUT 22B outputs a six (6) bit mantissa with respect to a six (6) bit input signal.

输入到图像处理电路1的RGB图像信号在逆伽马校正电路2B中被分成指数和尾数,并作为指数信号和尾数信号被输出。The RGB image signal input to the image processing circuit 1 is divided into an exponent and a mantissa in the inverse gamma correction circuit 2B, and is output as an exponent signal and a mantissa signal.

在逆伽马校正电路2B中,可以执行伽马值1的逆伽马校正。在利用不同于一(1)的伽马值执行逆伽马校正的情况下,足以使用与第一和第二实施例中类似的LUT,作为指数LUT 21B和尾数LUT 22B。同时,当利用伽马值1执行逆伽马校正时,足以利用与以上所述类似的方法,使用LUT将输入信号转换为浮点系统的色调表示。In the inverse gamma correction circuit 2B, inverse gamma correction of the gamma value 1 can be performed. In the case of performing inverse gamma correction with a gamma value other than one (1), it is sufficient to use LUTs similar to those in the first and second embodiments, as the exponent LUT 21B and the mantissa LUT 22B. Meanwhile, when inverse gamma correction is performed with a gamma value of 1, it is sufficient to use a LUT to convert an input signal into a hue representation of a floating-point system using a method similar to that described above.

如图16所示,在逆伽马校正电路2B中,因为输入位数为六(6)比特,指数输出位数为三(3)比特,并且尾数输出位数为六(6)比特,因此执行转换,以便以不致于允许指数部分的最大值象在上述各个实施例的情况下一样增大太多的程度,获得足够的精度。即,当输入信号等于色调信号最大值63时,指数等于3,且尾数等于63,2^3×63=504。当输入信号为1时,指数等于0,且尾数等于8,这是因为504/63=8=2^0×8。As shown in FIG. 16, in the inverse gamma correction circuit 2B, since the input bit number is six (6) bits, the exponent output bit number is three (3) bits, and the mantissa output bit number is six (6) bits, therefore The conversion is performed so as to obtain sufficient precision to such an extent that the maximum value of the exponential part is not allowed to increase too much as in the case of the above-described embodiments. That is, when the input signal is equal to the maximum value of 63 of the tone signal, the exponent is equal to 3, and the mantissa is equal to 63, 2^3×63=504. When the input signal is 1, the exponent is equal to 0, and the mantissa is equal to 8, because 504/63=8=2^0×8.

逆伽马校正电路2B输出的信号然后被输入到亮度-对比度校正电路5。如图17所示,当输入到亮度-对比度校正电路5的信号的指数为a、且尾数为b时,执行以下处理。The signal output from the inverse gamma correction circuit 2B is then input to the brightness-contrast correction circuit 5 . As shown in FIG. 17, when the exponent of the signal input to the brightness-contrast correction circuit 5 is a and the mantissa is b, the following processing is performed.

(输出)=2^a×(b×c1)+c0(output)=2^a×(b×c1)+c0

在数据移位器23B中,利用a的位移位执行2a次以上公式运算。然后,该运算输出再次被信号转换器24转换成指数和尾数,以便输出。In the data shifter 23B, the formula operation is performed 2a times or more by the bit shift of a. Then, the operation output is again converted into an exponent and a mantissa by the signal converter 24 for output.

在此,当c1值被设置为1且c0值被设置为0时,它等效于这一步什么也没做。当c1值被设置为1或更大时,可以获得更高对比度的图像,并且当c1被设置为1或更小时,可以获得更低对比度的图像。此外,c0表示补偿,并且当c0取大于0的值时,可以增大图像亮度。此外,通过改变c0和c1组合,可以实现期望的对比度-亮度校正。Here, when the c1 value is set to 1 and the c0 value is set to 0, it is equivalent to doing nothing at this step. When the c1 value is set to 1 or more, a higher contrast image can be obtained, and when c1 is set to 1 or less, a lower contrast image can be obtained. In addition, c0 represents compensation, and when c0 takes a value greater than 0, image brightness can be increased. Furthermore, by changing the combination of c0 and c1, the desired contrast-brightness correction can be achieved.

当输入色调值小时,当与普通色调表示相比,分别相对于指数和尾数执行色调表示,亮度-对比度校正电路5中的运算精度变得更高。因此,即使当逆伽马校正的后一级电路为了不同于相应彩色重现的目的而执行图像处理,也能够在不增大运算电路(加法器电路、乘法器电路)和正伽马校正电路(LUT)的电路规模的情况下,实现更高精度的运算。When the input tone value is small, the operation accuracy in the brightness-contrast correction circuit 5 becomes higher when the tone expression is performed with respect to the exponent and the mantissa, respectively, compared with ordinary tone expression. Therefore, even when the circuit of the subsequent stage of inverse gamma correction performs image processing for a purpose other than that of the corresponding color reproduction, it is possible to achieve this without enlarging the arithmetic circuits (adder circuit, multiplier circuit) and the positive gamma correction circuit ( LUT) in the case of the circuit scale, to achieve higher precision calculations.

此外,该数字伽马校正电路的应用使得能够减小图像处理设备和显示设备的电路规模。In addition, application of this digital gamma correction circuit enables reduction of the circuit scale of the image processing device and the display device.

第四实施例Fourth embodiment

以下将说明本发明的第四实施例。A fourth embodiment of the present invention will be described below.

在上述各个实施例中,利用图像处理电路的伽马校正电路中的数字处理,来执行伽马校正处理。在该实施例中,将说明一种在DA转换器中执行正伽马校正处理的结构。In each of the embodiments described above, the gamma correction processing is performed using digital processing in the gamma correction circuit of the image processing circuit. In this embodiment, a structure in which positive gamma correction processing is performed in the DA converter will be described.

图18显示了该实施例的液晶显示设备的结构。该液晶显示设备包括图像处理器1、选择器6、基准色调电压发生器7和液晶显示器12。Fig. 18 shows the structure of the liquid crystal display device of this embodiment. The liquid crystal display device includes an image processor 1 , a selector 6 , a reference tone voltage generator 7 and a liquid crystal display 12 .

选择器6顺序地从色彩空间转换电路3所输入的多组指数信号和尾数信号中选择一组,然后输出该选定的一组。The selector 6 sequentially selects one set from a plurality of sets of exponent signals and mantissa signals input from the color space conversion circuit 3, and then outputs the selected set.

基准色调电压发生器7输出多个用于DAC转换的基准电压。The reference tone voltage generator 7 outputs a plurality of reference voltages for DAC conversion.

该实施例的液晶显示设备利用源驱动器与控制信号发生器34中的转换器(DAC)和基准色调电压发生器7,来执行在第一实施例的液晶显示设备中利用正伽马校正电路4执行的处理(正伽马校正)。The liquid crystal display device of this embodiment utilizes the converter (DAC) and the reference tone voltage generator 7 in the source driver and control signal generator 34 to perform the positive gamma correction circuit 4 used in the liquid crystal display device of the first embodiment. Processing performed (positive gamma correction).

选择器6的输出信号中的指数信号被输出到基准色调电压发生器7,并且尾数信号被输出到源驱动器与控制信号发生器34内的DAC。The exponential signal among the output signals of the selector 6 is output to the reference tone voltage generator 7 , and the mantissa signal is output to the DAC in the source driver and control signal generator 34 .

图18中所示的结构通过对选择器6所选择的RGB并行信号执行串行转换,来执行正伽马校正,但是也有可能采用该结构,来与单独包括分别用于RGB每种颜色的基准色调信号发生器7和DAC的结构并行地执行处理。The configuration shown in FIG. 18 performs positive gamma correction by performing serial conversion on the RGB parallel signals selected by the selector 6, but it is also possible to use this configuration to separately include a reference for each color of RGB separately. The tone signal generator 7 and the configuration of the DAC perform processing in parallel.

基准色调电压发生器7输出与输入指数信号相对应的期望基准色调电压V1至V9,并将这些电压发送到源驱动器与控制信号发生器34中的DAC。在该DAC中,尾数信号的基准色调值D1至D9分别作为输入数字信号被输入时的输出电压,被设置为基准色调电压V1至V9。即,当输入尾数信号为D1时,V1作为DAC的输出被输出,并且当输入尾数信号为D2时,V2被输出。如果假定D1<D2<…<D9,则当D1和D2之间的色调被输入到DAC时,通过把这种色调夹在中间的两个基准色调电压V1和V2的线性插值所获得的电压被输出。图19显示了该DAC的输入-输出特性。虚线表示期望的输入-输出特性(适合于液晶显示器12的伽马特性的输入-输出特性),而实线表示DAC的输入-输出特性。如图所示,DAC的输入-输出特性近似于利用多段从期望输入-输出特性获得的特性。当确定显示设备时,可以唯一地确定该输入-输出特性。The reference tone voltage generator 7 outputs desired reference tone voltages V1 to V9 corresponding to the input exponential signal, and sends these voltages to the DAC in the source driver and control signal generator 34 . In this DAC, reference tone values D1 to D9 of the mantissa signals are set as reference tone voltages V1 to V9 as output voltages when input digital signals are input, respectively. That is, when the input mantissa signal is D1, V1 is output as the output of the DAC, and when the input mantissa signal is D2, V2 is output. If it is assumed that D1<D2<...<D9, when a hue between D1 and D2 is input to the DAC, the voltage obtained by linear interpolation of the two reference tone voltages V1 and V2 sandwiching this hue is output. Figure 19 shows the input-output characteristics of this DAC. A dotted line indicates a desired input-output characteristic (an input-output characteristic suitable for the gamma characteristic of the liquid crystal display 12), while a solid line indicates an input-output characteristic of a DAC. As shown, the input-output characteristics of the DAC approximate those obtained from the desired input-output characteristics using multiple segments. This input-output characteristic can be uniquely determined when a display device is determined.

在此,将说明一种用于确定基准色调电压发生器7中的基准色调电压的方法。基准色调电压发生器7能够产生和输入指数信号可以取的值的数目一样多的多组基准色调电压V1至V9。例如,当指数信号为两(2)比特时,可以产生四(=22)组电压V1至V9。以下将参考图20和20来说明一个例子。Here, a method for determining the reference tone voltage in the reference tone voltage generator 7 will be explained. The reference tone voltage generator 7 is capable of generating as many sets of reference tone voltages V1 to V9 as the number of values that the input exponential signal can take. For example, when the exponential signal is two (2) bits, four (=2 2 ) groups of voltages V1 to V9 can be generated. An example will be described below with reference to FIGS. 20 and 20 .

例如,假定作为图18中选择器6输出值的指数信号Tn和尾数信号Tm分别为两(2)比特和六(6)比特(指数为两(2)比特且尾数为六(6)比特),并且色调值被表示为2^Tn×Tm(即,A=2)。此外,当设置Tn=″11(十进制数的3)″时,假定基准色调电压发生器7所产生的一组基准色调电压为V1M、V2M、…、V9M。假定与该电压值相对应的尾数信号值为D1M、D2M、…、D9M,同时以下也假定D1M=″000000″、D5M=″011111″、D8M=″111110″、D9M=″111111″。在该情况下,与V5M输出电压相对应的色调值变为2^Tn×D5M=2^3×31=248(参考图20)。For example, it is assumed that the exponent signal Tn and the mantissa signal Tm which are the output values of the selector 6 in FIG. 18 are two (2) bits and six (6) bits, respectively (the exponent is two (2) bits and the mantissa is six (6) bits) , and the hue value is expressed as 2^Tn×Tm (ie, A=2). Furthermore, when Tn="11 (3 in decimal)" is set, it is assumed that a set of reference tone voltages generated by the reference tone voltage generator 7 are V1M, V2M, . . . , V9M. Assume that the mantissa signal values corresponding to this voltage value are D1M, D2M, ..., D9M, and also assume D1M="000000", D5M="011111", D8M="111110", D9M="111111" below. In this case, the tone value corresponding to the V5M output voltage becomes 2̂Tn×D5M=2̂3×31=248 (refer to FIG. 20 ).

在此,当Tn=″10(十进制数的2)″时,多组基准色调电压V1M2、V2M2、…、V9M2被设置如下。例如,因为V1M2所对应的色调值为2^Tn×D1M=2^2×0=0,所以可以得到V1M2=V1M(因为2^3×0=0)。此外,因为V8M2所对应的色调值为2^Tn×D8M=2^2×62=248,所以可得到V8M2=V5M(因为2^3×31=248)(参考图21)。如上所述,基于当Tn=″11″时获得的V1M至V9M,来设置当Tn为其它值时的V1至V9。换句话说,首先获得当Tn取最大值时的基准色调信号,然后根据这种基准色调信号,来获得当Tn取不同于最大值的值时的基准色调信号。Here, when Tn="10 (2 in decimal)", sets of reference tone voltages V1M2, V2M2, . . . , V9M2 are set as follows. For example, since the hue value corresponding to V1M2 is 2^Tn×D1M=2^2×0=0, V1M2=V1M can be obtained (because 2^3×0=0). In addition, since the hue value corresponding to V8M2 is 2^Tn×D8M=2^2×62=248, V8M2=V5M (because 2^3×31=248) can be obtained (refer to FIG. 21 ). As described above, based on V1M to V9M obtained when Tn="11", V1 to V9 when Tn is other values are set. In other words, a reference tone signal when Tn takes a maximum value is first obtained, and then based on this reference tone signal, a reference tone signal when Tn takes a value different from the maximum value is obtained.

在以上例子中,考虑了尾数信号的九个基准色调值(D1至D9)。然而,尾数信号的基准色调值数目决不限于此。In the above example, nine reference tone values (D1 to D9) of the mantissa signal were considered. However, the number of reference tone values of the mantissa signal is by no means limited thereto.

在图19中,要求D1取尾数信号的最小值,而要求D9取尾数信号的最大值,以便根据正伽马校正的特性来转换所有尾数信号。此外,作为线性插值方法,它被认为利用电阻串来获得部分电阻电压。In FIG. 19, D1 is required to take the minimum value of the mantissa signal, while D9 is required to take the maximum value of the mantissa signal, so as to convert all the mantissa signals according to the characteristic of positive gamma correction. Also, as a linear interpolation method, it is considered to use resistor strings to obtain partial resistor voltages.

从以上说明来看,显然是利用基准色调信号发生器7的输出(基准色调电压),来确定DAC中转换之后的电压。From the above description, it is obvious that the output of the reference tone signal generator 7 (reference tone voltage) is used to determine the voltage after conversion in the DAC.

在此,将说明从把数字图像信号输入到图像处理器1,直到在液晶显示器12上显示图像的处理。在DAC中,根据液晶显示器12的像素35的施加电压-亮度特性以及从输入图像信号的伽马特性获得的转换特性,对从图像处理器1输出的信号执行DA转换。Here, the processing from inputting a digital image signal to the image processor 1 until displaying an image on the liquid crystal display 12 will be described. In the DAC, DA conversion is performed on the signal output from the image processor 1 in accordance with the applied voltage-brightness characteristic of the pixel 35 of the liquid crystal display 12 and the conversion characteristic obtained from the gamma characteristic of the input image signal.

基准色调信号发生器7产生用于DAC执行转换的基准色调电压V1至V9,然后将其输出到DAC。在此,利用转换特性和指数信号来设置基准色调电压V1至V9。然后,在DAC中被转换为模拟信号的信号通过源驱动器与控制信号发生器34和TFT 37,被应用于像素35。该模拟信号被转换为亮度信号,然后用于产生图像。The reference tone signal generator 7 generates reference tone voltages V1 to V9 for the DAC to perform conversion, and then outputs them to the DAC. Here, the reference tone voltages V1 to V9 are set using the conversion characteristic and the exponential signal. Then, the signal converted into an analog signal in the DAC is applied to the pixel 35 through the source driver and control signal generator 34 and the TFT 37. This analog signal is converted to a luminance signal, which is then used to generate an image.

更具体地说,如图18所示,选择器6输出的指数信号被发送给基准色调信号发生器7。基准色调信号发生器7接收该指数信号,产生提供2^(指数信号)倍输入信号色调的基准电压,然后将这种基准电压输出到DAC。因为基准色调信号发生器7产生了提供2^(指数信号)倍输入信号色调的基准色调信号,因此虽然尾数信号被输入到DAC,但是输出模拟信号变为2^(指数信号)×(尾数信号),然后被输出。More specifically, the index signal output from the selector 6 is sent to the reference tone signal generator 7 as shown in FIG. 18 . The reference tone signal generator 7 receives the exponential signal, generates a reference voltage providing 2^(exponential signal) times the tone of the input signal, and then outputs this reference voltage to the DAC. Since the reference tone signal generator 7 generates a reference tone signal that provides 2^(exponential signal) times the tone of the input signal, although the mantissa signal is input to the DAC, the output analog signal becomes 2^(exponential signal)×(mantissa signal ), and then output.

利用上述结构,可以在不对被分成指数和尾数的信号进行数字合成的情况下,利用基准色调信号发生器7和DAC来实现正伽马校正。而且,证明了当把DAC的精度维持在六(6)比特时,通过利用指数调制基准色调信号,可以更高精度地执行转换。With the above-described structure, positive gamma correction can be realized using the reference tone signal generator 7 and the DAC without digitally synthesizing signals divided into exponents and mantissas. Furthermore, it was demonstrated that conversion can be performed with higher precision by exponentially modulating the reference tone signal while maintaining the precision of the DAC at six (6) bits.

利用上述结构,与上述各个实施例的情况一样,可以通过将色调信号分成指数和尾数,来执行高精度的运算。With the above-described structure, as is the case with the above-described respective embodiments, it is possible to perform high-precision operation by dividing the tone signal into an exponent and a mantissa.

此外,通过应该该数字伽马校正电路,可以减小图像处理设备和显示设备的电路规模。Furthermore, by implementing this digital gamma correction circuit, the circuit scales of the image processing device and the display device can be reduced.

上述每个实施例都是本发明优选实施例的例子,本发明决不限于此。例如,在每个实施例中主要说明了液晶显示设备,但是本发明决不限于此,此外本发明也适合于使用PDP和有机电致发光的显示设备。Each of the embodiments described above is an example of a preferred embodiment of the present invention, and the present invention is by no means limited thereto. For example, a liquid crystal display device is mainly described in each embodiment, but the present invention is by no means limited thereto, and the present invention is also applicable to a display device using a PDP and organic electroluminescence.

此外,在上述每个实施例中图像处理器1被形成为电路,但是也有可能通过软件处理将计算机用作图像处理器1。在该情况下,逆伽马校正器和正伽马校正器被形成在用于执行逆伽马校正程序和正伽马校正程序的运算设备(中央处理器(CPU)等)内,以便执行类似于每个实施例中的处理。逆伽马校正和正伽马校正自然都可以利用软件处理来实现,并且这些校正中的任何一种校正都可以利用软件处理来实现。另外,也有可能利用包括要在逆伽马校正和正伽马校正之间执行的处理(色彩空间转换处理、亮度-对比度校正处理等)的软件处理,来执行这些校正。Furthermore, the image processor 1 is formed as a circuit in each of the above-described embodiments, but it is also possible to use a computer as the image processor 1 by software processing. In this case, the inverse gamma corrector and the positive gamma corrector are formed in an arithmetic device (central processing unit (CPU) etc.) for executing the inverse gamma correction program and the positive gamma correction program so as to perform processing in one embodiment. Naturally, both inverse gamma correction and positive gamma correction can be realized by software processing, and any of these corrections can be realized by software processing. In addition, it is also possible to perform these corrections by software processing including processing (color space conversion processing, brightness-contrast correction processing, etc.) to be performed between inverse gamma correction and positive gamma correction.

此外,也有可能在可能的范围内组合关于各实施例的结构。如上所述,本发明允许各种更改。In addition, it is also possible to combine structures related to the respective embodiments within a possible range. As described above, the present invention allows various modifications.

先前的实施例描述用于使本领域技术人员能够实施和使用本发明。而且,这些实施例的各种更改对于本领域技术人员将是显而易见的,并且可以在不用本发明教导的情况下,将在此定义的一般原则和特定例子应用于其它实施例。因此,本发明不限于在此描述的实施例,而是应符合权利要求及等效要求的限制所定义的最广范围。The previous embodiments are described to enable any person skilled in the art to make and use the invention. Moreover, various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles and specific examples defined herein may be applied to other embodiments without the teachings of the present invention. Thus, the invention is not to be limited to the embodiments described herein, but is to be accorded the widest scope as defined by the limitations of the claims and equivalents.

进一步,本发明人的意图是,即使在诉讼期间修改权利要求也保留所要求的本发明的所有等效物。Further, it is the inventor's intent to retain all equivalents of the claimed invention even if the claims are amended during prosecution.

Claims (19)

1、一种伽马校正方法,包括:1. A gamma correction method, comprising: 输入具有非线性色调-亮度特性的X比特色调输入信号Tin值,并输出具有被转换为线性特性的色调-亮度特性的Y比特(X<Y)色调信号Tout,由此实现逆伽马校正;以及Input an X-bit tone input signal Tin value with a nonlinear tone-brightness characteristic, and output a Y-bit (X<Y) tone signal Tout with a tone-brightness characteristic converted into a linear characteristic, thereby realizing inverse gamma correction; as well as 输入所述Tout,并且当用常数A、N比特信号Tn指示的指数和M比特信号Tm指示的尾数将所述Tout表示成A^Tn×Tm时,输出由一组最接近所述Tout的Tn和Tm形成的(N+M)比特色调输出信号,由此实现格式转换;Input the Tout, and when the exponent indicated by the constant A, the N-bit signal Tn and the mantissa indicated by the M-bit signal Tm express the Tout as A^Tn×Tm, output a group of Tn closest to the Tout and the (N+M) bit tone output signal formed by Tm, thereby realizing format conversion; 其中A为2的自然数次幂,Where A is a natural power of 2, M满足关系式M≤Y-N,M satisfies the relation M≤Y-N, 当A等于2时,N的最小值为2,当A大于2时,N的最小值为1,以及When A is equal to 2, the minimum value of N is 2, when A is greater than 2, the minimum value of N is 1, and 根据A和M确定的N的最大值使得相对于所有Tin值,一组Tn和Tm值都变成一组不同值。The maximum value of N determined from A and M is such that a set of Tn and Tm values becomes a different set of values for all Tin values. 2、根据权利要求1所述的伽马校正方法,其中,Tn具有一个被编码为由按照不等差从初值递增的等于或大于0的N个整数组成的序列的元素的预定值。2. The gamma correction method according to claim 1, wherein Tn has a predetermined value encoded as an element of a sequence consisting of N integers equal to or greater than 0 incremented from an initial value by unequal difference. 3、根据权利要求1所述的伽马校正方法,其中,A=2,M=Y-Z’,并且N被设置为等于或大于1+logZ’/log2的最小整数值,当用于输入所述Tin值并输出所述Tout值的逆伽马校正表被预先确定时,在被减少Z位较低有效位之后的Tout值被设置为Tz的条件下,在相对于所有Tout值获得的Tz值中,只提取最高有效位值为1的那些Tz值,并且使所有提取的Tz值的不同值的Z值中的最大值被设置为Z’。3. The gamma correction method according to claim 1, wherein A=2, M=Y-Z', and N is set to a minimum integer value equal to or greater than 1+logZ'/log2, when used for input The inverse gamma correction table of the Tin value and outputting the Tout value is predetermined, under the condition that the Tout value after being reduced by Z bits less significant bits is set to Tz, obtained with respect to all Tout values Of the Tz values, only those Tz values whose most significant bit value is 1 are extracted, and the maximum value among Z values of different values of all extracted Tz values is set to Z′. 4、一种伽马校正方法,包括:4. A gamma correction method, comprising: 输入包括N比特信号Tn和M比特信号Tm的(N+M)比特信号,作为输入信号,并输出用常数A、N比特指数Tn和M比特尾数Tm表示成Tout=ATn×Tm的、具有线性色调-亮度特性的Y比特色调信号Tout,由此实现格式转换;以及Input comprises the (N+M) bit signal of N bit signal Tn and M bit signal Tm, as input signal, and output with constant A, N bit exponent Tn and M bit mantissa Tm to express as Tout= ATn *Tm, have Y-bit tone signal Tout of linear tone-brightness characteristics, thereby realizing format conversion; and 输入Tout值,并输出具有被非线性转换的色调-亮度特性的X比特Input Tout value and output X bits with non-linearly converted hue-luminance characteristic (X<Y)色调信号Tin,由此实现伽马校正处理,(X<Y) tone signal Tin, thereby realizing gamma correction processing, 其中A为2的自然数次幂,Where A is a natural power of 2, M满足关系式M≤Y-N,M satisfies the relation M≤Y-N, 当A等于2时,所述N的最小值为2,当A大于2时,所述N的最小值为1,以及When A is equal to 2, the minimum value of N is 2, and when A is greater than 2, the minimum value of N is 1, and 根据A和M确定的N的最大值使得相对于所有Tin值,一组Tn和Tm值都变成一组不同值。The maximum value of N determined from A and M is such that a set of Tn and Tm values becomes a different set of values for all Tin values. 5、根据权利要求1所述的伽马校正方法,其中,利用仅仅一个查找表来执行所述逆伽马校正和所述格式转换。5. The gamma correction method according to claim 1, wherein the inverse gamma correction and the format conversion are performed using only one lookup table. 6、一种图像处理方法,包括:6. An image processing method, comprising: 在根据权利要求1所述的伽马校正之后,执行色彩空间转换处理。After the gamma correction according to claim 1, a color space conversion process is performed. 7、一种图像处理方法,包括:7. An image processing method, comprising: 在根据权利要求1所述的伽马校正方法之后,执行亮度-对比度校正处理。After the gamma correction method according to claim 1, brightness-contrast correction processing is performed. 8、一种伽马校正电路,包括:8. A gamma correction circuit, comprising: 用于输入具有非线性色调-亮度特性的X比特色调输入信号Tin值,并输出具有被转换为线性特性的色调-亮度特性的Y比特(X<Y)色调信号Tout,由此实现逆伽马校正的电路;以及It is used to input the X-bit tone input signal Tin value with nonlinear tone-brightness characteristics, and output the Y-bit (X<Y) tone signal Tout with tone-brightness characteristics converted into linear characteristics, thereby realizing inverse gamma corrected circuitry; and 用于输入所述Tout,并且当用常数A、N比特信号Tn指示的指数和M比特信号Tm指示的尾数将所述Tout表示成ATn×Tm时,输出由一组最接近所述Tout的Tn和Tm形成的(N+M)比特色调输出信号,由此实现格式转换的电路;It is used to input the Tout, and when the Tout is expressed as A Tn ×Tm with the constant A, the exponent indicated by the N-bit signal Tn and the mantissa indicated by the M-bit signal Tm, the output is composed of a group of values closest to the Tout The (N+M) bit tone output signal formed by Tn and Tm, thereby realizing the circuit of format conversion; 其中A为2的自然数次幂,Where A is a natural power of 2, M满足关系式M≤Y-N,M satisfies the relation M≤Y-N, 当A等于2时,N的最小值为2,当A大于2时,N的最小值为1,以及When A is equal to 2, the minimum value of N is 2, when A is greater than 2, the minimum value of N is 1, and 根据A和M确定的N的最大值使得相对于所有Tin值,一组Tn和Tm值都变成一组不同值。The maximum value of N determined from A and M is such that a set of Tn and Tm values becomes a different set of values for all Tin values. 9、根据权利要求8所述的伽马校正电路,其进一步包括用于将所述Tn编码为由按照不等差从初项递增的等于或大于0的N个整数组成的序列的元素的预定值的装置。9. The gamma correction circuit according to claim 8, further comprising a predetermined element for encoding said Tn as an element of a sequence consisting of N integers equal to or greater than 0 incremented by unequal difference from the initial term value device. 10、根据权利要求8所述的伽马校正电路,其中,A=2、M=Y-Z’,并且N被设置为等于或大于1+logZ’/log2的最小整数值,当用于输入所述Tin值并输出所述Tout值的逆伽马校正表被预先确定时,在被减少Z位较低有效位之后的Tout值被设置为Tz的条件下,在相对于所有Tout值获得的Tz值中,只提取最高有效位值为1的那些Tz值,并且使所有提取的Tz值的不同值的Z值中的最大值被设置为Z’。10. The gamma correction circuit according to claim 8, wherein A=2, M=Y-Z', and N is set to a minimum integer value equal to or greater than 1+logZ'/log2, when used for input The inverse gamma correction table of the Tin value and outputting the Tout value is predetermined, under the condition that the Tout value after being reduced by Z bits less significant bits is set to Tz, obtained with respect to all Tout values Of the Tz values, only those Tz values whose most significant bit value is 1 are extracted, and the maximum value among Z values of different values of all extracted Tz values is set to Z′. 11、根据权利要求8所述的伽马校正电路,其中,所述色调输出被输入到加法器电路、乘法器电路和查找表电路中至少任何一个电路。11. The gamma correction circuit according to claim 8, wherein the tone output is input to at least any one of an adder circuit, a multiplier circuit and a look-up table circuit. 12、根据权利要求11所述的伽马校正电路,其中,所述色调输出被输入到用于根据显示设备的色度特性来执行色彩空间转换处理的电路。12. The gamma correction circuit according to claim 11, wherein the hue output is input to a circuit for performing color space conversion processing according to chromaticity characteristics of the display device. 13、根据权利要求11所述的伽马校正电路,其中,所述色调输出被输入到用于根据显示设备的亮度-对比度特性来执行亮度-对比度转换处理的电路。13. The gamma correction circuit according to claim 11, wherein the tone output is input to a circuit for performing luminance-contrast conversion processing according to luminance-contrast characteristics of a display device. 14、一种伽马校正电路,包括:14. A gamma correction circuit comprising: 格式转换电路,用于输入包括N比特信号Tn和M比特信号Tm的(N+M)比特信号,作为输入信号,并输出用常数A、所述Tn指示的N比特指数和所述Tm指示的M比特尾数表示成Tout=ATn×Tm的、具有线性色调-亮度特性的Y比特色调信号Tout;以及a format conversion circuit for inputting (N+M)-bit signals including N-bit signal Tn and M-bit signal Tm as an input signal, and outputting a constant A, an N-bit index indicated by said Tn, and an index indicated by said Tm The M-bit mantissa is represented as a Y-bit tone signal Tout with a linear tone-brightness characteristic of Tout= ATn ×Tm; and 伽马校正电路,用于输入Tout值,并输出具有被非线性转换的色调-亮度特性的X比特(X<Y)色调信号Tin,A gamma correction circuit for inputting a Tout value and outputting an X-bit (X<Y) tone signal Tin having a tone-brightness characteristic that is nonlinearly converted, 其中所述常数A的值为2的自然数次幂,Wherein the value of the constant A is a natural number power of 2, 所述M满足关系式M≤Y-N,The M satisfies the relationship M≤Y-N, 当A等于2时,所述N的最小值为2,当A大于2时,所述N的最小值为1,以及When A is equal to 2, the minimum value of N is 2, and when A is greater than 2, the minimum value of N is 1, and 根据所述常数A和所述M确定的所述N的最大值使得相对于所有Tin值,一组Tn和Tm值都变成一组不同值。The maximum value of N determined from said constant A and said M is such that a set of Tn and Tm values becomes a different set of values for all Tin values. 15、根据权利要求8所述的伽马校正电路,其中,利用仅仅一个查找表来实现所述逆伽马校正电路和所述格式转换电路。15. The gamma correction circuit of claim 8, wherein the inverse gamma correction circuit and the format conversion circuit are implemented using only one look-up table. 16、一种包括根据权利要求8所述的伽马校正电路的图像处理设备。16. An image processing apparatus comprising the gamma correction circuit according to claim 8. 17、一种用于输出模拟电压以确定显示设备色调的图像处理设备,包括:17. An image processing device for outputting an analog voltage to determine the color tone of a display device, comprising: 数模转换器,用于对包括N比特信号和M比特信号的输入信号中的M比特输入信号执行数模转换;以及a digital-to-analog converter for performing digital-to-analog conversion on an M-bit input signal among input signals including an N-bit signal and an M-bit signal; and 基准电压发生器,用于输出用于所述数模转换器中数模转换的基准电压,a reference voltage generator for outputting a reference voltage for digital-to-analog conversion in said digital-to-analog converter, 其中,提供所述N比特信号指示的指数Tn和所述M比特信号指示的尾数Tm,以便利用常数A把具有线性色调-亮度特性的Y比特色调信号Tout表示为Tout=ATn×TmWherein, the exponent Tn indicated by the N-bit signal and the mantissa Tm indicated by the M-bit signal are provided, so that a constant A is used to express the Y-bit tone signal Tout with linear tone-brightness characteristics as Tout= ATn ×Tm 所述A的值为2的自然数次幂,以及The value of A is a natural power of 2, and 所述基准电压发生器根据所述N比特信号来产生所述基准电压。The reference voltage generator generates the reference voltage according to the N-bit signal. 18、一种显示设备,包括:18. A display device comprising: 显示装置;以及display device; and 根据权利要求16所述的图像处理设备。The image processing apparatus according to claim 16. 19、根据权利要求18所述的显示设备,其中,所述显示装置是液晶显示器。19. The display apparatus according to claim 18, wherein the display device is a liquid crystal display.
CNB2005101041936A 2004-09-30 2005-09-29 Gamma correction method and circuit, image processing device and display device Expired - Fee Related CN100472602C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2004286502 2004-09-30
JP2004286502 2004-09-30
JP2005161554 2005-06-01

Publications (2)

Publication Number Publication Date
CN1755791A CN1755791A (en) 2006-04-05
CN100472602C true CN100472602C (en) 2009-03-25

Family

ID=36688961

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101041936A Expired - Fee Related CN100472602C (en) 2004-09-30 2005-09-29 Gamma correction method and circuit, image processing device and display device

Country Status (1)

Country Link
CN (1) CN100472602C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8004538B2 (en) * 2007-09-21 2011-08-23 Global Oled Technology Llc Preferential tone scale for electronic displays
CN102761749B (en) * 2012-07-25 2014-04-23 四川虹微技术有限公司 Device for generating gamma correction data table of plasma TV video image
CN102761748B (en) * 2012-07-25 2014-04-23 四川虹微技术有限公司 Method for generating gamma correction data table of plasma TV video image
CN104601971B (en) * 2014-12-31 2019-06-14 小米科技有限责任公司 Color adjustment method and device
CN114863065A (en) * 2022-04-22 2022-08-05 贝塔通科技(北京)有限公司 Method and system for generating augmented reality scene presenting real object occlusion relationship
CN117372296B (en) * 2023-10-19 2024-04-05 上海成运医疗器械股份有限公司 Economical gamma correction method and device

Also Published As

Publication number Publication date
CN1755791A (en) 2006-04-05

Similar Documents

Publication Publication Date Title
US6980219B2 (en) Hue angle calculation system and methods
KR100910557B1 (en) LCD and its driving method
US6344857B1 (en) Gamma correction circuit
US7612831B2 (en) Gamma correction device, image conversion apparatus using the same, and display device
US7663678B2 (en) Gamma correction, image processing method and program, gamma correction circuit, image processing apparatus, and display apparatus
US6052491A (en) Non-monotonic contour diffusion and algorithm
KR100620648B1 (en) Video processor with a gamma correction memory of reduced size
USRE41631E1 (en) Multi-stage function mapping for a range of input values
KR20030092562A (en) Liquid crystal display and driving apparatus thereof
US6278496B1 (en) Digital correction circuit and image data processing apparatus equipped with a digital correction circuit
US7312776B2 (en) Apparatus set in a liquid crystal display for executing gamma correction and method thereof
US20030016305A1 (en) Method and apparatus for color warping
KR20170042254A (en) method of image processing, method and device for nonlinear data encoding
CN107437408B (en) Color modulation circuit, display driver and display device
CN100472602C (en) Gamma correction method and circuit, image processing device and display device
KR100510308B1 (en) Image processing device
US6020921A (en) Simple gamma correction circuit for multimedia
US7088316B2 (en) Color adjustment device and method for plasma display panel
US7518581B2 (en) Color adjustment of display screens
JP2005260405A (en) Image processing apparatus and image processing method
KR100266166B1 (en) Apparatus of adjusting white balance for plasma display panel
JP2004120366A (en) Apparatus and method for image processing
EP0543511A1 (en) Method and apparatus for data conversion
JP5311443B2 (en) Color image display device and monochrome image display method
CN107591142B (en) Method and device for regulating and controlling picture display quality and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090325

Termination date: 20150929

EXPY Termination of patent right or utility model