JP3112751B2 - γ correction method - Google Patents

γ correction method

Info

Publication number
JP3112751B2
JP3112751B2 JP04252397A JP25239792A JP3112751B2 JP 3112751 B2 JP3112751 B2 JP 3112751B2 JP 04252397 A JP04252397 A JP 04252397A JP 25239792 A JP25239792 A JP 25239792A JP 3112751 B2 JP3112751 B2 JP 3112751B2
Authority
JP
Japan
Prior art keywords
curve
data
gamma correction
parameters
correction
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
JP04252397A
Other languages
Japanese (ja)
Other versions
JPH06105154A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP04252397A priority Critical patent/JP3112751B2/en
Publication of JPH06105154A publication Critical patent/JPH06105154A/en
Application granted granted Critical
Publication of JP3112751B2 publication Critical patent/JP3112751B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、拡張3次式ベジェ曲線
(MB曲線)を用いてγ補正曲線を生成するγ補正方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a gamma correction method for generating a gamma correction curve using an extended cubic Bezier curve (MB curve).

【0002】[0002]

【従来の技術】γ補正曲線とは、入力データを補正して
出力するための補正曲線であり、ある範囲の入力データ
とある範囲の出力データとを対応付ける曲線である。従
来、このようなγ補正を行う場合、変換テーブルやy=
x*n(x*nはxのn乗を表す)を用いていた。
2. Description of the Related Art A gamma correction curve is a correction curve for correcting input data and outputting the corrected data, and is a curve for associating a certain range of input data with a certain range of output data. Conventionally, when such gamma correction is performed, a conversion table or y =
x * n (x * n represents x to the nth power) was used.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記し
た変換テーブルの場合では、離散的にしか曲線を変化さ
せることができず、また、y=x*nを用いる場合で
は、γ補正曲線の形状が非常に制限されてしまうという
問題がある。
However, in the case of the above-mentioned conversion table, the curve can be changed only discretely, and when y = x * n, the shape of the γ correction curve is changed. There is the problem of being very limited.

【0004】また、この他に制御点を折線でつないだ連
続直線を用いる方法もあるが、この方法では制御点付近
での連続性が失われてしまうという問題がある。さら
に、多項式を用いてγ補正曲線を生成するものとして
は、例えば、特開昭63−2462号公報に記載の技術
があるが、これは曲線を生成するに必要なパラメータ数
が多くなる。このため、γ補正処理をする際に、メモ
リ、レジスタなどのハードウェア量が多くなるという問
題がある。
There is also a method using a continuous straight line connecting control points with broken lines. However, this method has a problem that continuity near control points is lost. Further, as a technique for generating a γ-correction curve using a polynomial, there is a technique described in, for example, JP-A-63-2462. However, this technique requires a large number of parameters to generate a curve. Therefore, there is a problem that the amount of hardware such as a memory and a register increases when performing the γ correction processing.

【0005】本発明の目的は、2つのパラメータによっ
てγ補正曲線の形状を制御することができるγ補正方法
を提供することにある。
An object of the present invention is to provide a γ correction method which can control the shape of a γ correction curve by two parameters.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、入力画像データをγ補正
曲線に従って補正して出力するγ補正方法において、入
力をx、出力をyとするとき、前記γ補正曲線として次
式で決まる曲線を用い、 y=cx(1−x)*2+(3−d)(1−x)x*2
+x*3 (0≦x≦1) ここで、cは始点(0,0)での接線の傾き、dは終点
(1,1)での接線の傾き、x*aはxのa乗 前記始点および終点での接線の傾きをパラメータとする
ことによって、前記γ補正曲線を生成することを特徴と
している。
According to a first aspect of the present invention, there is provided a gamma correction method for correcting input image data in accordance with a gamma correction curve and outputting the corrected image data according to a gamma correction curve. Where y = cx (1-x) * 2 + (3-d) (1-x) x * 2
+ X * 3 (0 ≦ x ≦ 1) where c is the slope of the tangent at the start point (0,0), d is the slope of the tangent at the end point (1,1), and x * a is x to the power of a. The γ correction curve is generated by using the inclination of the tangent line at the start point and the end point as a parameter.

【0007】請求項記載の発明では、前記パラメータ
cとdを次式のように決め、 c=c1+c2(1−x)x d=d1+d2(1−x)x ここで、c1、d1は、始点、終点での接線の傾き、c
2、d2は、x=0.5のときのyの値を定めるための
パラメータ、前記始点および終点での接線の傾きc1お
よびd1を変化させることなく、x=0.5のときのy
の値を、前記パラメータc2およびd2によって変化さ
せることを特徴としている。
According to the second aspect of the present invention, the parameters c and d are determined as follows: c = c1 + c2 (1-x) x d = d1 + d2 (1-x) x where c1 and d1 are: Slope of tangent at start and end points, c
2, d2 are parameters for determining the value of y when x = 0.5, y when x = 0.5 without changing the slopes c1 and d1 of the tangents at the start point and the end point.
Is changed by the parameters c2 and d2.

【0008】[0008]

【作用】スキャナからの入力RGBをスキャナの特性に
依存しないRGBにγ補正するとき、あるいは入力YM
CKをプリンタの特性に依存するYMCKにγ補正する
とき、γ曲線として次式の曲線を用いる。
When the input RGB from the scanner is γ-corrected to RGB independent of the characteristics of the scanner, or when the input YM
When γ-correcting CK to YMCK depending on the characteristics of the printer, the following equation is used as the γ curve.

【0009】y=cx(1−x)*2+(3−d)(1
−x)x*2+x*3 (0≦x≦1)、 ここで、cは始点(0,0)での接線の傾き、dは終点
(1,1)での接線の傾き、x*aはxのa乗である。
2つのパラメータc,dを変えてγ補正曲線の形状を制
御する。
Y = cx (1-x) * 2 + (3-d) (1
−x) x * 2 + x * 3 (0 ≦ x ≦ 1), where c is the slope of the tangent at the start point (0,0), d is the slope of the tangent at the end point (1,1), x * a Is x to the power of a.
The shape of the γ correction curve is controlled by changing the two parameters c and d.

【0010】[0010]

【実施例】以下、本発明の一実施例を図面を用いて具体
的に説明する。 〈3次式ベジエ曲線〉 3次式ベジエ曲線の生成式は、Bernsteinの多
項式の応用で、次式(1)で表される。 B=P0(1−t)*3+3P1t(1−t)*2+3P2(1−t)t*2 +P3t*3 式(1) ここで、Bは生成点、P0〜P3は特徴点、tは媒介変
数(0≦t≦1)である。ただし、t*aはtのa乗で
ある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be specifically described below with reference to the drawings. <Cubic Bezier Curve> A formula for generating a cubic Bezier curve is represented by the following formula (1) by applying Bernstein polynomial. B = P0 (1-t) * 3 + 3P1t (1-t) * 2 + 3P2 (1-t) t * 2 + P3t * 3 Here, B is a generation point, P0 to P3 are feature points, and t is a mediation. Variable (0 ≦ t ≦ 1). Here, t * a is a raised to the power of a.

【0011】図2は、3次式ベジエ曲線を示す。このよ
うな3次式ベジエ曲線は、文字フォントの輪郭を表現す
る際に用いられているが、4つの特徴点を与えたとき、
一つの曲線しか生成しない。
FIG. 2 shows a cubic Bezier curve. Such a cubic Bezier curve is used when expressing the outline of a character font, but when four characteristic points are given,
Generates only one curve.

【0012】〈拡張3次式ベジエ曲線〉 拡張3次式ベジエ曲線(Modified Bezier Curve 以
下、MB曲線という)は、本出願人が先に提案した曲線
であり(特開平2−222264号公報を参照)、特徴
点を変化させずに、3次式ベジエ曲線のふくらみを自由
に変えられるように改良したもので、次式(2)で表現さ
れる。
<Extended Cubic Bezier Curve> An extended cubic Bezier curve (hereinafter referred to as MB curve) is a curve previously proposed by the present applicant (see Japanese Patent Application Laid-Open No. 2-222264). ), Which is modified so that the bulge of the cubic Bezier curve can be freely changed without changing the feature points, and is expressed by the following equation (2).

【0013】 MB=P0(1−t)*3+(cP1−(c−3)P0)t(1−t)*2 +(dP2−(d−3)P3)(1−t)t*2+P3t*3 式(2) ここで、MBは生成点、c,dはふくらみ係数、P(P
0〜P3)は特徴点、tは媒介変数(0≦t≦1)であ
る。ただし、t*aはtのa乗である。
MB = P0 (1-t) * 3 + (cP1- (c-3) P0) t (1-t) * 2 + (dP2- (d-3) P3) (1-t) t * 2 + P3t * 3 Equation (2) where MB is a generation point, c and d are swelling coefficients, and P (P
0 to P3) are feature points, and t is a parameter (0 ≦ t ≦ 1). Here, t * a is a raised to the power of a.

【0014】図3は、拡張ベジエ曲線を示す。ふくらみ
係数cとdを大きくすると曲線のふくらみが大きくな
り、ふくらみ係数cとdを小さくすると曲線のふくらみ
が小さくなる。また、c=d=0とすれば、特徴点P0
とP3を結ぶ直線が生成される。c=d=3とすれば、
式(1)の3次式ベジエ曲線になる。
FIG. 3 shows an extended Bezier curve. Increasing the swelling coefficients c and d increases the swelling of the curve, and decreasing the swelling coefficients c and d decreases the swelling of the curve. If c = d = 0, the characteristic point P0
And a straight line connecting P3 is generated. If c = d = 3, then
The cubic Bezier curve of equation (1) is obtained.

【0015】〈実施例1〉 前述したように、γ補正曲線とは、入力データを補正し
て出力するための補正曲線であり、ある範囲の入力デー
タとある範囲の出力データとを対応付ける曲線である。
本発明は、上記したMB曲線を用いてγ補正曲線を生成
するものである。
Embodiment 1 As described above, a γ correction curve is a correction curve for correcting and outputting input data, and is a curve that associates a certain range of input data with a certain range of output data. is there.
The present invention is to generate a gamma correction curve using the above-mentioned MB curve.

【0016】上記した式(2)において、P0〜P3の
x、y座標を次式(3)とする。すなわち、 P0=(0,0),P1=(0,1),P2=(1,0),P3=(1,1) 式(3) また、式(2)のMB曲線は、x座標とy座標を持つの
で、 x=f(t),y=g(t) 式(4) となる(f(t),g(t)はtの3次式である)。
In the above equation (2), the x and y coordinates of P0 to P3 are represented by the following equation (3). That is, P0 = (0,0), P1 = (0,1), P2 = (1,0), P3 = (1,1) Equation (3) Further, the MB curve of the equation (2) is an x coordinate. And y coordinate, x = f (t), y = g (t) Expression (4) (f (t) and g (t) are cubic expressions of t).

【0017】また、xの範囲を、パラメータtの範囲と
同じになるように正規化すると、 x=t 式(5) (0≦x≦1) とおくことができる。式(4)と式(5)により、tを消去
すると、 y=g(x) 式(6) (0≦x≦1) となる。式(2)に式(3)と式(5)を代入することによ
り、式(2)のy成分から式(7)が導かれる。 y=cx(1−x)*2+(3−d)(1−x)x*2+x*3 式(7) (0≦x≦1) ここで、cは、始点(0,0)での接線の傾きであり、
dは、終点(1,1)での接線の傾きである。なお、x
*aは、xのa乗を表す。式(7)で示される曲線生成式
を用いると、cとdを決めることによって、入力xに対
する出力yを得ることができる。図1は、式(7)によっ
て生成されるγ補正曲線を示す図である。
When the range of x is normalized so as to be the same as the range of parameter t, x = t Equation (5) (0 ≦ x ≦ 1) can be obtained. When t is eliminated according to the equations (4) and (5), y = g (x) Equation (6) (0 ≦ x ≦ 1) By substituting Equations (3) and (5) into Equation (2), Equation (7) is derived from the y component of Equation (2). y = cx (1-x) * 2 + (3-d) (1-x) x * 2 + x * 3 Expression (7) (0 ≦ x ≦ 1) where c is a value at the starting point (0,0). The slope of the tangent,
d is the slope of the tangent at the end point (1, 1). Note that x
* A represents x to the power of a. Using the curve generation equation shown in equation (7), an output y for an input x can be obtained by determining c and d. FIG. 1 is a diagram illustrating a γ correction curve generated by Expression (7).

【0018】また、x=0.5のときのyの値は、式
(8)に示すように(d−c)に比例する。 y=0.5−0.125(d−c) 式(8) つまり、x=0.5のときのyの値によって、全体の形
状を上方向に持ち上げたり、あるいは逆に下方向に下げ
たり制御することができる。
The value of y when x = 0.5 is proportional to (dc) as shown in equation (8). y = 0.5−0.125 (dc) Equation (8) That is, depending on the value of y when x = 0.5, the entire shape is lifted upward or conversely lowered. Or can be controlled.

【0019】〈実施例2〉 この実施例は、MB曲線を用いてγ補正曲線を生成する
に際し、両端における接線の傾きを変えずに曲線を変化
させるものである。入力をx、出力をyとするとき、上
記した式(7)によって決まる曲線を用い、2つのパラ
メータcとdを与えることによって、γ補正曲線を生成
することができる。
<Embodiment 2> In this embodiment, when a γ correction curve is generated using an MB curve, the curve is changed without changing the inclination of the tangent line at both ends. When the input is x and the output is y, a γ correction curve can be generated by giving two parameters c and d using a curve determined by the above equation (7).

【0020】そして、図4、図5に示すように、2つの
パラメータcとdを以下のように決めることによって、
始点と終点での接線の傾きc1とd1を変化させずに、
x=0.5のときのyの値を、c2とd2によって変化
させることができる。すなわち、 c=c1+c2(1−x)x d=d1+d2(1−x)x 式(9) ここで、c1、d1は、始点、終点での接線の傾きであ
り、c2、d2は、x=0.5のときのyの値を定める
ためのパラメータである。
Then, as shown in FIGS. 4 and 5, by determining two parameters c and d as follows,
Without changing the slopes c1 and d1 of the tangent line at the start point and the end point,
The value of y when x = 0.5 can be changed by c2 and d2. That is, c = c1 + c2 (1-x) x d = d1 + d2 (1-x) x Expression (9) where c1 and d1 are inclinations of a tangent line at the start point and the end point, and c2 and d2 are x = This is a parameter for determining the value of y at the time of 0.5.

【0021】また、x=0.5のときのyの値は、y=
0.5−0.125(d1−c1+0.25(d2−c
2))で求められる。なお、x=0.5以外の場所で
も、上記した式(9)を用いて、始点、終点の傾きを変
えずに、ある入力値に対する出力値を変化させることが
できる。
When x = 0.5, the value of y is y =
0.5-0.125 (d1-c1 + 0.25 (d2-c
2)). In addition, even in a place other than x = 0.5, the output value with respect to a certain input value can be changed without changing the inclination of the start point and the end point by using the above equation (9).

【0022】図4は、c1とd1を3に固定し、c2と
d2を変えたときのγ補正曲線であり、図5は、c1と
d1を0にし、c2とd2を変えたときのγ補正曲線で
ある。この図から明らかなように、x=0.5のときの
出力yの値を微調整することができる。
FIG. 4 is a γ correction curve when c1 and d1 are fixed at 3 and c2 and d2 are changed. FIG. 5 is a γ correction curve when c1 and d1 are set to 0 and c2 and d2 are changed. It is a correction curve. As is apparent from this figure, the value of the output y when x = 0.5 can be finely adjusted.

【0023】〈実施例3〉 図6は、本実施例のブロック構成図である。スキャナ1
から取り込まれた画像データは、画像処理部2において
γ補正、表色変換などの処理が施されて、プリンタ3か
ら出力される。また、システム制御部4によって全体が
制御される。
Embodiment 3 FIG. 6 is a block diagram of the present embodiment. Scanner 1
The image data taken in from is subjected to processing such as γ correction and color conversion in the image processing unit 2 and output from the printer 3. The whole is controlled by the system control unit 4.

【0024】図7は、テーブルデータを用いてγ補正す
る場合の画像処理部2の構成を示す図であり、ガンマデ
ータが格納されたテーブルメモリ21と、画像変換部2
2と、ディザ変換部23とからなる。
FIG. 7 is a diagram showing the configuration of the image processing unit 2 in the case of performing gamma correction using table data. The table memory 21 in which gamma data is stored and the image conversion unit 2
2 and a dither converter 23.

【0025】図8は、式(7)を用いてγ補正する場合の
画像処理部2の構成を示す図であり、システム制御部4
から与えられたパラメータcとdを用いて式(7)をリア
ルタイムで計算する画像変換部22と、ディザ変換部2
3とからなる。
FIG. 8 is a diagram showing the configuration of the image processing unit 2 in the case of performing gamma correction using equation (7).
An image conversion unit 22 that calculates Expression (7) in real time using the parameters c and d given by
3

【0026】図9は、画像変換部22の構成を示す図で
ある。スキャナ1から取り込んだ画像データR’G’
B’は、スキャナの特性に依存する。第1のガンマ補正
部221は、入力R’G’B’に対して、前述した曲線
生成式(7)を用いてγ補正を施し、スキャナの特性に
よらない正しい画像データRGBを出力する。表色変換
部222は、画像データRGBをYMCKに変換する。
この変換されたYMCKは、プリンタの特性によらない
正しい画像データである。第2のガンマ補正部223
は、入力YMCKに対して、前述した曲線生成式(7)
を用いてγ補正を施し、プリンタの特性に依存する画像
データY’M’C’K’を出力する。
FIG. 9 is a diagram showing the configuration of the image conversion unit 22. Image data R'G 'taken from scanner 1
B 'depends on the characteristics of the scanner. The first gamma correction unit 221 performs γ correction on the input R′G′B ′ using the above-described curve generation equation (7), and correct image data RGB independent of the characteristics of the scanner. Is output. The color conversion unit 222 converts the image data RGB into YMCK.
The converted YMCK is correct image data regardless of the characteristics of the printer. Second gamma correction unit 223
Is the above-described curve generation equation (7) with respect to the input YMCK.
Γ correction is performed using, and image data Y′M′C′K ′ depending on the characteristics of the printer is output.

【0027】図10(a)、(b)は、テーブルデータ
を用いてγ補正する場合の処理フローチャートである。
以下、該フローチャートを参照して、動作を説明する。
図10(a)の初期設定処理において、システム制御部
4は図示しない操作キーにより要求を受付け(ステップ
101)、システム制御部4は、本発明の曲線生成式
(7)を用いて、各色(R’G’B’の各色、YMCK
の各色)についてテーブルデータを計算し(ステップ1
02)、テーブルメモリ21に格納する(ステップ10
3)。
FIGS. 10A and 10B are processing flowcharts for the case of performing gamma correction using table data.
Hereinafter, the operation will be described with reference to the flowchart.
In the initial setting process of FIG. 10A, the system control unit 4 receives a request using an operation key (not shown) (step 101), and the system control unit 4 executes the curve generation equation of the present invention.
Using (7) , each color (each color of R'G'B ', YMCK
For each color) (step 1)
02), and stored in the table memory 21 (step 10).
3).

【0028】図10(b)の画像処理部2における処理
フローチャートにおいて、スキャナから取り込まれた、
スキャナの特性に依存する画像データR’G’B’を第
1のガンマ補正部221に入力する。第1のガンマ補正
部221は、テーブルメモリ21を参照して、該画像デ
ータR’G’B’に対応するテーブルデータRGBを読
み出して出力する。この出力されたデータは、γ補正さ
れたデータであり、スキャナの特性に依存しない正しい
画像データRGBである(ステップ201)。
In the processing flowchart of the image processing section 2 shown in FIG.
Image data R′G′B ′ that depends on the characteristics of the scanner is input to the first gamma correction unit 221. The first gamma correction unit 221 reads and outputs table data RGB corresponding to the image data R'G'B 'with reference to the table memory 21. The output data is γ-corrected data, and is correct image data RGB that does not depend on the characteristics of the scanner (step 201).

【0029】次いで、表色変換部222は、画像データ
RGBをプリンタに出力可能なYMCKデータに変換す
る(ステップ202)。このYMCKデータを第2のガ
ンマ補正部223に入力する。第2のガンマ補正部22
3は、テーブルメモリ21を参照して、該YMCKデー
タに対応するテーブルデータY’M’C’K’を読み出
して、出力する。出力されたデータは、γ補正されたデ
ータであり、システム内のプリンタの特性に依存する
Y’M’C’K’データである(ステップ203)。
Y’M’C’K’データはディザ変換されて(ステップ
204)、プリント出力される(ステップ205)。
Next, the color conversion unit 222 converts the image data RGB into YMCK data that can be output to a printer (step 202). The YMCK data is input to the second gamma correction unit 223. Second gamma correction unit 22
Reference numeral 3 refers to the table memory 21 to read and output the table data Y'M'C'K 'corresponding to the YMCK data. The output data is γ-corrected data and is Y′M′C′K ′ data depending on the characteristics of the printer in the system (step 203).
The Y'M'C'K 'data is dithered (step 204) and printed out (step 205).

【0030】図11(a)、(b)は、パラメータcと
dを設定することにより、数式をリアルタイム計算する
場合の処理フローチャートである。図11(a)の初期
設定処理において、システム制御部4は、図示しない操
作キーにより要求を受付け(ステップ301)、システ
ム制御部4では、パラメータc、d(第1のガンマ補正
部用のパラメータと第2のガンマ補正部用のパラメー
タ)を計算し(ステップ302)、画像処理部2内の第
1のガンマ補正部221と第2のガンマ補正部223に
それぞれ設定する(ステップ303)。
FIGS. 11 (a) and 11 (b) are processing flowcharts in the case where a mathematical expression is calculated in real time by setting parameters c and d. In the initial setting process of FIG. 11A, the system control unit 4 accepts a request using an operation key (not shown) (step 301), and the system control unit 4 sets parameters c and d (parameters for the first gamma correction unit). And the parameters for the second gamma correction unit) are calculated (step 302), and set in the first gamma correction unit 221 and the second gamma correction unit 223 in the image processing unit 2 (step 303).

【0031】図11(b)の画像処理部2における処理
フローチャートにおいて、スキャナから取り込まれた、
スキャナの特性に依存する画像データR’G’B’を第
1のガンマ補正部221に入力する。第1のガンマ補正
部221は、該画像データR’G’B’に対して、設定
されたパラメータc、dと曲線生成式(7)を用いて計
算し、RGBデータを出力する。この出力されたデータ
は、γ補正されたデータであり、スキャナの特性に依存
しない正しい画像データRGBである(ステップ40
1)。
In the processing flow chart in the image processing section 2 in FIG.
Image data R′G′B ′ that depends on the characteristics of the scanner is input to the first gamma correction unit 221. The first gamma correction unit 221 calculates the image data R′G′B ′ using the set parameters c and d and the curve generation equation (7) , and outputs RGB data. The output data is γ-corrected data, and is correct image data RGB independent of the characteristics of the scanner (step 40).
1).

【0032】次いで、表色変換部222は、RGBデー
タをプリンタに出力可能なYMCKデータに変換する
(ステップ402)。このYMCKデータを第2のガン
マ補正部223に入力する。第2のガンマ補正部223
は、該YMCKデータに対して、設定されたパラメータ
c、dと曲線生成式(7)を用いて計算し、Y’M’
C’K’データを出力する。出力されたデータは、γ補
正されたデータであり、システム内のプリンタの特性に
依存するY’M’C’K’データである(ステップ40
3)。Y’M’C’K’データはディザ変換されて(ス
テップ404)、プリント出力される(ステップ40
5)。
Next, the color conversion unit 222 converts the RGB data into YMCK data that can be output to a printer (step 402). The YMCK data is input to the second gamma correction unit 223. Second gamma correction unit 223
Is calculated using the set parameters c and d and the curve generation equation (7) for the YMCK data, and Y′M ′
Outputs C'K 'data. The output data is γ-corrected data, and is Y′M′C′K ′ data depending on the characteristics of the printer in the system (step 40).
3). The Y'M'C'K 'data is dithered (step 404) and printed out (step 40).
5).

【0033】なお、本発明をカラー画像伝送装置に適用
する場合は、RGBを輝度色差系(Lab)に変換し、
輝度成分、色差成分に対してそれぞれ上記したγ補正を
施せばよい。このように本発明によれば、RGB、YM
CKの各色成分、輝度色差系の各成分に対して、簡単に
γ補正を施こすことが可能となる。
When the present invention is applied to a color image transmission apparatus, RGB is converted to a luminance / color difference system (Lab),
What is necessary is just to apply the above-mentioned gamma correction to the luminance component and the color difference component, respectively. Thus, according to the present invention, RGB, YM
For each color component of CK and each component of luminance color difference system, simply
Gamma correction can be performed.

【0034】[0034]

【発明の効果】以上、説明したように、請求項1記載の
発明によれば、少ないパラメータで所望の形状のγ補正
曲線を生成することができるので、従来の方法に比べて
メモリ、レジスタなどのハードウェア量を大幅に削減す
ることができる。また、γ補正において重要な要素であ
る始点、終点の勾配は、パラメータとして与えるので、
その制御が非常に簡単になる。さらに、γ補正において
重要な他の要素である入力データxが0.5のときの出
力データyの値は、パラメータ(c−d)の値に比例す
るので、簡単にγ補正曲線を上下に移動制御することが
できる。
As described above, according to the first aspect of the present invention, a gamma correction curve having a desired shape can be generated with a small number of parameters. The amount of hardware such as memories and registers can be significantly reduced. Also, the gradients of the start point and end point, which are important elements in γ correction, are given as parameters,
Its control becomes very simple. Furthermore, the value of the output data y when the input data x, which is another important element in the γ correction, is 0.5 is proportional to the value of the parameter (cd), so that the γ correction curve can be easily moved up and down. Movement can be controlled.

【0035】請求項記載の発明によれば、始点と終点
の接線ベクトルを変化させずに入力データxが0.5の
ときの出力データyの値を変化させることができる。
According to the second aspect of the present invention, the value of the output data y when the input data x is 0.5 can be changed without changing the tangent vector between the start point and the end point.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明によって生成されるγ補正曲線を示す図
である。
FIG. 1 is a diagram showing a gamma correction curve generated by the present invention.

【図2】3次式ベジエ曲線である。FIG. 2 is a cubic Bezier curve.

【図3】拡張ベジエ曲線である。FIG. 3 is an extended Bezier curve.

【図4】c1=d1=3のときのγ補正曲線である。FIG. 4 is a γ correction curve when c1 = d1 = 3.

【図5】c1=d1=0のときのγ補正曲線である。FIG. 5 is a γ correction curve when c1 = d1 = 0.

【図6】本実施例のブロック構成図である。FIG. 6 is a block diagram of the present embodiment.

【図7】テーブルデータを用いてγ補正する場合の画像
処理部の構成である。
FIG. 7 is a configuration of an image processing unit when performing gamma correction using table data.

【図8】式(7)を用いてγ補正する場合の画像処理部の
構成である。
FIG. 8 is a configuration of an image processing unit when performing γ correction using Expression (7).

【図9】画像変換部の構成である。FIG. 9 shows a configuration of an image conversion unit.

【図10】(a)、(b)は、テーブルデータを用いて
γ補正する場合の処理フローチャートである。
FIGS. 10A and 10B are processing flowcharts when performing γ correction using table data.

【図11】(a)、(b)は、パラメータcとdを設定
することにより、数式をリアルタイム計算する場合の処
理フローチャートである。
FIGS. 11A and 11B are processing flowcharts in a case where a mathematical expression is calculated in real time by setting parameters c and d.

【符号の説明】 1 スキャナ 2 画像処理部 3 プリンタ 4 システム制御部 21 テーブルメモリ 22 画像変換部 221 第1のガンマ補正部 222 表色変換部 223 第2のガンマ補正部[Description of Signs] 1 scanner 2 image processing unit 3 printer 4 system control unit 21 table memory 22 image conversion unit 221 first gamma correction unit 222 color conversion unit 223 second gamma correction unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/40-1/409

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像データをγ補正曲線に従って補
正して出力するγ補正方法において、入力をx、出力を
yとするとき、前記γ補正曲線として次式で決まる曲線
を用い、 y=cx(1−x)*2+(3−d)(1−x)x*2
+x*3 (0≦x≦1) ここで、cは始点(0,0)での接線の傾き、dは終点
(1,1)での接線の傾き、x*aはxのa乗 前記始点および終点での接線の傾きをパラメータとする
ことによって、前記γ補正曲線を生成することを特徴と
するγ補正方法。
1. In a γ correction method for correcting input image data according to a γ correction curve and outputting the same, when the input is x and the output is y, a curve determined by the following equation is used as the γ correction curve: y = cx (1-x) * 2 + (3-d) (1-x) x * 2
+ X * 3 (0 ≦ x ≦ 1) where c is the slope of the tangent at the start point (0,0), d is the slope of the tangent at the end point (1,1), and x * a is x to the power of a. A gamma correction method, wherein the gamma correction curve is generated by using a slope of a tangent at a start point and an end point as a parameter.
【請求項2】 前記パラメータcとdを次式のように決
め、 c=c1+c2(1−x)x d=d1+d2(1−x)x ここで、c1、d1は、始点、終点での接線の傾き、c
2、d2は、x=0.5のときのyの値を定めるための
パラメータ、 前記始点および終点での接線の傾きc1およびd1を変
化させることなく、x=0.5のときのyの値を、前記
パラメータc2およびd2によって変化させることを特
徴とする請求項1記載のγ補正方法。
2. The parameters c and d are determined as follows: c = c1 + c2 (1-x) x d = d1 + d2 (1-x) x where c1, d1 are tangents at the start point and the end point. Slope, c
2, d2 are parameters for determining the value of y when x = 0.5, without changing the slopes c1 and d1 of the tangent lines at the start point and the end point, 2. The gamma correction method according to claim 1, wherein the value is changed by the parameters c2 and d2.
JP04252397A 1992-09-22 1992-09-22 γ correction method Expired - Fee Related JP3112751B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04252397A JP3112751B2 (en) 1992-09-22 1992-09-22 γ correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04252397A JP3112751B2 (en) 1992-09-22 1992-09-22 γ correction method

Publications (2)

Publication Number Publication Date
JPH06105154A JPH06105154A (en) 1994-04-15
JP3112751B2 true JP3112751B2 (en) 2000-11-27

Family

ID=17236767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04252397A Expired - Fee Related JP3112751B2 (en) 1992-09-22 1992-09-22 γ correction method

Country Status (1)

Country Link
JP (1) JP3112751B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6064396A (en) * 1994-10-24 2000-05-16 Ricoh Company, Ltd. Two-step gamma correction method and system
JP2895405B2 (en) * 1994-10-24 1999-05-24 株式会社リコー Image gradation correction method and image processing apparatus
US7286717B2 (en) 2001-10-31 2007-10-23 Ricoh Company, Ltd. Image data processing device processing a plurality of series of data items simultaneously in parallel

Also Published As

Publication number Publication date
JPH06105154A (en) 1994-04-15

Similar Documents

Publication Publication Date Title
US5021876A (en) Image processing apparatus with real-time texture processing
US7061646B2 (en) Color correction table generating method, image processing device, image processing method and recording media
JPH022594A (en) Two-dimensional color display generator
US20060250670A1 (en) Image processing apparatus, image processing method, and image processing program
US6426802B1 (en) Complementary halftone screens for highlight printing
JP3112751B2 (en) γ correction method
JPH09326938A (en) Image processing unit and its method
JPH1117971A (en) Image processor, its method, data processing method and storage medium
JP2003316331A (en) Display device
JP2895405B2 (en) Image gradation correction method and image processing apparatus
JPH04195137A (en) Halftone image forming method
JP2002118737A (en) Image converter and image conversion method
JP2001285638A (en) Image processing method
JPH0946529A (en) Image processing unit and method
JP2001357394A (en) System for generating color non-uniformity correction data and picture display device
JP4227371B2 (en) Image processing apparatus and method
JP3582540B2 (en) Resolution conversion device and resolution conversion method
JP2984607B2 (en) Copying apparatus and data management method
JPH02270472A (en) Output value correction table setting method in picture input output device
JP2002237944A (en) Image processing method
JP2004072272A (en) Image processing apparatus and method thereof
JP2005123660A (en) Image processing apparatus and method thereof
JPH10136210A (en) Gradation correction method for image data and its device
JPH09154009A (en) Printer system
JPH10276341A (en) Color image forming device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees