JP2874657B2 - Image color cast correction method and apparatus - Google Patents

Image color cast correction method and apparatus

Info

Publication number
JP2874657B2
JP2874657B2 JP8191833A JP19183396A JP2874657B2 JP 2874657 B2 JP2874657 B2 JP 2874657B2 JP 8191833 A JP8191833 A JP 8191833A JP 19183396 A JP19183396 A JP 19183396A JP 2874657 B2 JP2874657 B2 JP 2874657B2
Authority
JP
Japan
Prior art keywords
correction
curve
control
tone curve
image
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
JP8191833A
Other languages
Japanese (ja)
Other versions
JPH1040355A (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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP8191833A priority Critical patent/JP2874657B2/en
Priority to US08/898,132 priority patent/US6097836A/en
Publication of JPH1040355A publication Critical patent/JPH1040355A/en
Application granted granted Critical
Publication of JP2874657B2 publication Critical patent/JP2874657B2/en
Priority to US09/505,140 priority patent/US6346994B1/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル画像処理
装置において、色かぶり状態で記録された入力画像を補
正する技術に関する。
The present invention relates to a technique for correcting an input image recorded in a color cast state in a digital image processing apparatus.

【0002】[0002]

【従来の技術】従来のこの種の画像処理装置は、RGB
のトーンカーブを対話的に変更するものであり、オペレ
ータは、処理結果を確認しながら補正していた。
2. Description of the Related Art A conventional image processing apparatus of this type uses RGB.
Is changed interactively, and the operator corrects while checking the processing result.

【0003】またその他に、特開平2−94893の装
置において、異なる種類の光源の分光特性に応じた補正
を行なう装置に関して記述されている。
In addition, Japanese Patent Application Laid-Open No. 2-94893 discloses a device for performing correction in accordance with the spectral characteristics of different types of light sources.

【0004】図7を用いて従来の画像処理装置について
説明する。図7は、特開平2−94893の記述を元に
作成したブロック図である。
A conventional image processing apparatus will be described with reference to FIG. FIG. 7 is a block diagram created based on the description of Japanese Patent Application Laid-Open No. 2-94893.

【0005】分光特性記憶手段102は、異なる種類の
光源の分光特性に応じた赤、緑、青の色成分の補正量を
記憶している。補正量検索手段103は、指定された光
源の補正量を、分光特性記憶手段102から検索し、色
補正手段101に入力する。入力画像バッファ100の
データは、色補正手段101によって色補正されて、出
力画像バッファ104へ出力される。u入力画素値を
R,G,Bとし、出力画素値をR′,G′,B′とする
と、色補正方法は、式(1)で表される。
[0005] The spectral characteristic storage means 102 stores correction amounts of red, green, and blue color components corresponding to spectral characteristics of different types of light sources. The correction amount search unit 103 searches the correction amount of the specified light source from the spectral characteristic storage unit 102 and inputs the correction amount to the color correction unit 101. The data in the input image buffer 100 is color-corrected by the color correction unit 101 and output to the output image buffer 104. Assuming that u input pixel values are R, G, and B and output pixel values are R ', G', and B ', the color correction method is represented by Expression (1).

【0006】 R′=R/r0,G′=G/g0,B′=B/b0 (1) すなわち補正方法としては、RGB値に定数項を乗算す
るものである。
R ′ = R / r0, G ′ = G / g0, B ′ = B / b0 (1) That is, as a correction method, an RGB value is multiplied by a constant term.

【0007】[0007]

【発明が解決しようとする課題】従来の画像処理装置の
多くは、RGBのトーンカーブを対話的に補正してお
り、調整パラメータが多く、直感的に補正できないた
め、補正に時間がかかるという問題があった。また、作
業に熟練を要するため、素人では思った通りの補正がで
きないという問題があった。
Many conventional image processing apparatuses interactively correct the RGB tone curve, and have a large number of adjustment parameters, which cannot be intuitively corrected. was there. In addition, since the operation requires skill, there is a problem that the correction cannot be performed as expected by an amateur.

【0008】また、RGB値に定数項を乗算する補正だ
けでは、各種光源色の補正は完全には不可能であり、良
好な色に補正できないという問題があった。また、光源
の色の違いだけでなく、フィルムの特性や、レンズの特
性、露光特性などが原因の色かぶりに対しては、各種光
源の特性だけでは補正することはできないという問題が
あった。
Further, there is a problem that it is impossible to completely correct various light source colors only by correcting the RGB value by a constant term, and it is not possible to correct the color to a good color. Further, there is a problem that color fogging caused not only by the difference in the color of the light source but also by the characteristics of the film, the characteristics of the lens, and the exposure characteristics cannot be corrected only by the characteristics of various light sources.

【0009】[0009]

【課題を解決するための手段】上述した問題点を解決す
るため、本発明の画像の色かぶり補正方法は、入力画像
の不具合に応じて、RGBトーンカーブ上のハイライ
ト、中間調、シャドーの制御情報からなる補正パターン
を選択するステップと、補正する量を指定するステップ
と、前記補正パターンから制御パラメータを取得するス
テップと、前記補正量と前記制御パラメータからRGB
のトーンカーブデータを算出するステップと、前記トー
ンカーブデータを用いて全画素にテーブル変換を施すス
テップを有する。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the method for correcting color cast of an image according to the present invention employs a method of highlighting an RGB tone curve in response to a defect in an input image.
Selecting a correction pattern consisting of control information of color , halftone, and shadow; specifying an amount to be corrected; obtaining a control parameter from the correction pattern; and RGB from the correction amount and the control parameter.
And the step of performing table conversion for all pixels using the tone curve data.

【0010】また、本発明の画像の色かぶり補正装置
は、入力画像データを保持する入力画像バッファと、
GBトーンカーブ上のハイライト、中間調、シャドーの
制御情報からなる補正パターンを、予想される不具合に
応じて複数記憶する補正パターン記憶部と、色かぶりの
補正量を記憶する補正量記憶部と、前記補正パターン記
憶部内の補正量とからRGBのトーンカーブデータを生
成するトーンカーブ発生手段と、トーンカーブデータを
記憶するLUT記憶バッファと、画像データに対してテ
ーブル変換を行なうLUT変換部と、出力データを保持
する出力画像バッファとを有する。
Further, the image color cast correction apparatus of the present invention comprises an input image buffer for holding input image data ;
Highlights, midtones and shadows on the GB tone curve
Correction of correction patterns consisting of control information
A correction pattern storage unit that stores a plurality of correction patterns in accordance with the correction amount; a correction amount storage unit that stores the correction amount of the color cast; a tone curve generation unit that generates RGB tone curve data from the correction amount in the correction pattern storage unit; It has an LUT storage buffer for storing curve data, an LUT conversion unit for performing table conversion on image data, and an output image buffer for holding output data.

【0011】本発明の画像の色かぶり補正装置の原理に
ついて説明する。
The principle of the image color cast correction apparatus of the present invention will be described.

【0012】図3の流れ図を用いて、本発明の処理内容
を説明する。
The processing contents of the present invention will be described with reference to the flowchart of FIG.

【0013】まずオペレータは入力画像をモニタ等で確
認し、あらかじめ用意されている補正パターンの中から
処理したいパターンを1つ選択する(ステップA1)。
First, an operator checks an input image on a monitor or the like, and selects one pattern to be processed from correction patterns prepared in advance (step A1).

【0014】画像の色の不具合に関しては、蛍光灯の緑
かぶり、電灯の黄色かぶり、雪景色の赤かぶり、北窓光
の青かぶりなど、いくつかのパターンがある。これは光
源の種類に起因するだけではなく、写真フィルムやCC
Dの特性にも関連する。
[0014] Regarding the color defect of the image, there are several patterns such as green cast of fluorescent lamp, yellow cast of electric lamp, red cast of snow scene, and blue cast of north window light. This is not only due to the type of light source, but also photographic film and CC
It also relates to the characteristics of D.

【0015】このような不具合パターンに対して、本発
明はそれぞれに対するトーンカーブの制御パラメータを
保持している。前記補正パターンとは、この制御パラメ
ータの組を意味する。
The present invention holds the control parameters of the tone curve for each of such defective patterns. The correction pattern means a set of the control parameters.

【0016】次にオペレータは補正の度合として、補正
量を指定する(ステップA2)。
Next, the operator specifies a correction amount as a degree of correction (step A2).

【0017】そして前記補正パターンに対する制御パラ
メータを取得し(ステップA3)、この制御パラメータ
と前記補正量より、実際のRGBトーンカーブを算出し
(ステップA4)、得られたトーンカーブデータを、L
UT記憶バッファに出力する(ステップA5)。次に、
入力画像データに対して、LUTに保存されたトーンカ
ーブによる色変換処理を行なって終了する(ステップA
6)。
Then, a control parameter for the correction pattern is obtained (step A3), and an actual RGB tone curve is calculated from the control parameter and the correction amount (step A4).
Output to the UT storage buffer (step A5). next,
A color conversion process is performed on the input image data using the tone curve stored in the LUT, and the processing is terminated (step A).
6).

【0018】前記補正パターンの一例を、図5に示す。
補正パターン記憶部のデータ例40には、蛍光灯緑かぶ
りなどの不具合パターンの項目と、その不具合を補正す
るためのトーンカーブ制御パラメータ41が含まれてい
る。トーンカーブ制御パラメータ41の例としては、図
5のように、ハイライト(hl)、中間調(m)、シャ
ド(sd)のデータがある。これらは、それぞれ3つの
RGB制御パラメータ42を持つ。例えばhlは、(R
h,Gh,Bh)の組で表される。
FIG. 5 shows an example of the correction pattern.
The data example 40 of the correction pattern storage unit includes an item of a defect pattern such as a fluorescent lamp green cast, and a tone curve control parameter 41 for correcting the defect. As examples of the tone curve control parameters 41, there are highlight (hl), halftone (m), and shadow (sd) data as shown in FIG. Each of these has three RGB control parameters 42. For example, hl is (R
h, Gh, Bh).

【0019】ハイライト、中間調、シャドーを用いた、
トーンカーブの制御の一例について、図4を用いて説明
する。先に指定された補正量gradと、hl,m,s
dのパラメータによってトーンカーブを制御する。
Using highlights, halftones and shadows,
An example of tone curve control will be described with reference to FIG. The correction amount grad previously specified and hl, m, s
The tone curve is controlled by the parameter d.

【0020】図の例ではM制御点33は中間調(m)と
gradのデータによって制御され、中間調補正カーブ
30を生成するために用いられる。またHL制御点35
は、ハイライト(hl)とgradのデータによって制
御され、SD制御点34は、シャドー(sd)とgra
dのデータによって制御される。HL制御点35とSD
制御点34はハイライト、シャドー補正カーブ31を生
成するのに用いられる。
In the example shown in the figure, the M control point 33 is controlled by halftone (m) and grad data, and is used to generate a halftone correction curve 30. HL control point 35
Is controlled by highlight (hl) and grad data, and the SD control point 34 determines the shadow (sd) and grad
It is controlled by d data. HL control point 35 and SD
The control point 34 is used to generate a highlight / shadow correction curve 31.

【0021】中間調補正カーブ30は、中間調の補正量
が+のときには、トーンカーブ上のM制御点33が上方
へ移動し、−の時には下方へ移動する。そして、トーン
カーブの低輝度側の起点(0,0)とM制御点33とト
ーンカーブの高輝度側の起点(255,255)を曲線
補間で滑らかに補間して、トーンカーブとする。
The halftone correction curve 30 moves the M control point 33 on the tone curve upward when the halftone correction amount is +, and moves downward when the halftone correction amount is-. Then, the starting point (0, 0) on the low luminance side of the tone curve, the M control point 33, and the starting point (255, 255) on the high luminance side of the tone curve are smoothly interpolated by curve interpolation to obtain a tone curve.

【0022】ハイライト、シャドー補正カーブ31は、
ハイライト制御量とシャドー制御量が+−のときには、
図のようにHL制御点35、SD制御点34が移動す
る。HL,SDの制御点間は、直線で補間する。
The highlight / shadow correction curve 31 is
When the highlight control amount and the shadow control amount are +-,
As shown, the HL control point 35 and the SD control point 34 move. A straight line is interpolated between the control points HL and SD.

【0023】最終的に、中間調補正カーブ30とハイラ
イト、シャドー補正カーブ31を合成することによって
合成カーブ32が得られる。上記の処理を、前記RGB
制御パラメータ42を用いてRGBそれぞれのトーンカ
ーブにおいて行なう。
Finally, a composite curve 32 is obtained by combining the halftone correction curve 30 with the highlight and shadow correction curves 31. The above processing is performed using the RGB
This is performed for each of the RGB tone curves using the control parameter 42.

【0024】[0024]

【発明の実施の形態】以下に、本発明の出力である画像
の色かぶり補正装置を図面を用いて説明する。図1およ
び図2は本発明の画像の色かぶり補正装置の実施例を示
すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The following describes an apparatus for correcting a color cast of an image, which is an output of the present invention, with reference to the drawings. 1 and 2 are block diagrams showing an embodiment of an image color cast correction apparatus according to the present invention.

【0025】本発明の実施例は入力画像データを保持す
る入力画像バッファ1と、入力画像の色かぶりを補正す
るための補正パターンを記憶する補正パターン記憶部2
と、オペレータが補正パターンを指定するための補正パ
ターン指定手段3と、色かぶりの補正量を記憶する補正
量記憶部4と、オペレータが補正量を指定する補正量指
定手段5と、前記補正パターン記憶部内のデータと補正
量とからRGBのトーンカーブデータを生成するトーン
カーブ発生手段6と、トーンカーブデータを記憶するL
UT記憶バッファ7と、画像データに対してテーブル変
換を行なうLUT変換手段8と、出力データを保持する
出力画像バッファ9とからなる。
In the embodiment of the present invention, an input image buffer 1 for holding input image data and a correction pattern storage unit 2 for storing a correction pattern for correcting a color cast of the input image.
A correction pattern specifying means 3 for the operator to specify a correction pattern, a correction amount storage unit 4 for storing a correction amount of color cast, a correction amount specifying means 5 for the operator to specify a correction amount, Tone curve generating means 6 for generating RGB tone curve data from the data in the storage unit and the correction amount, and L for storing the tone curve data.
It comprises a UT storage buffer 7, LUT conversion means 8 for performing table conversion on image data, and an output image buffer 9 for holding output data.

【0026】さらにトーンカーブ発生手段6は、前記補
正パターン記憶部のデータと前記補正量からRGBの各
ハイライト部の制御量を算出するハイライト制御量算出
部20と、RGBの各中間調の制御量を算出する中間調
制御量算出部21と、RGBの各シャドー部の制御量を
算出するシャドー制御量算出部22と、前記3つの制御
量から、トーンカーブデータを算出するトーンカーブデ
ータ算出部25と、直線発生モジュール23とスプライ
ン発生モジュール24とからなる。
The tone curve generating means 6 further comprises a highlight control amount calculating section 20 for calculating a control amount of each highlight section of RGB from the data of the correction pattern storage section and the correction amount, and a halftone control section of each of RGB. A halftone control amount calculation unit 21 for calculating a control amount, a shadow control amount calculation unit 22 for calculating a control amount for each of the RGB shadow units, and a tone curve data calculation for calculating tone curve data from the three control amounts. A unit 25 includes a straight line generating module 23 and a spline generating module 24.

【0027】最初にオペレータは、補正パターン指定手
段3によって、入力画像バッファ1の画像に対して、ど
の補正パターンを適用するかを選択する。同時にオペレ
ータによって補正量記憶部4に、色かぶり補正量が入力
される。なお、あらかじめ一定値を補正量記憶部4に保
持しておくことも出来る。
First, the operator selects which correction pattern is to be applied to the image in the input image buffer 1 by the correction pattern designating means 3. At the same time, the color cast correction amount is input to the correction amount storage unit 4 by the operator. Note that a fixed value can be stored in the correction amount storage unit 4 in advance.

【0028】補正パターン指定手段3の例としては、画
像表示するモニタと、補正パターンをマウスで選択でき
るI/Fを備えた装置がある。図6に補正パターン指定
手段4と補正量指定手段4の一例を示す。補正パターン
指定手段50は、蛍光灯の緑かぶり、電灯の黄色かぶ
り、雪景色の赤かぶり、北窓光の青かぶりなどの項目が
表示されており、そこからオペレータはマウス52によ
ってどのような補正をしたいかを入力する。また補正量
指定手段51として、補正量の強弱を指定するスライダ
ーバーが表示されており、これもマウス52を用いて補
正量を指定する事が出来る。
As an example of the correction pattern designating means 3, there is an apparatus having a monitor for displaying an image and an I / F for selecting a correction pattern with a mouse. FIG. 6 shows an example of the correction pattern specifying means 4 and the correction amount specifying means 4. The correction pattern designating means 50 displays items such as a green color cast of a fluorescent light, a yellow color cast of an electric light, a red color cast of a snow scene, and a blue color cast of a north window light. Enter what you want to do. Further, a slider bar for designating the strength of the correction amount is displayed as the correction amount designating means 51, and the slider bar can also be used to designate the correction amount using the mouse 52.

【0029】次にトーンカーブ発生手段6において、指
定された補正パターンのトーンカーブデータを、補正パ
ターン記憶部2から取得し、さらに指定された補正量を
組み合わせてRGBのトーンカーブデータを算出する。
トーンカーブデータは、LUT記憶バッファ7に入力さ
れる。
Next, the tone curve generating means 6 obtains tone curve data of the specified correction pattern from the correction pattern storage unit 2 and calculates RGB tone curve data by combining the specified correction amounts.
The tone curve data is input to the LUT storage buffer 7.

【0030】トーンカーブ発生手段6内では、まず前記
補正パターン記憶部2より、制御パラメータを取得す
る。制御パラメータの例を図5に示す。
In the tone curve generating means 6, first, control parameters are obtained from the correction pattern storage unit 2. FIG. 5 shows an example of the control parameters.

【0031】以下、図5のデータを用いるものとして装
置の動作を説明する。ハイライト制御量算出部20は、
まず補正パターン記憶部2から、制御パラメータとして
ハイライト制御パラメータhlを取得する。制御パラメ
ータhlはRGB制御パラメータ42の形式で保持され
ており、これを(Rh ,Gh ,Bh )とする。次に、補
正量記憶部4から補正量gradを取得する。そしてg
radとhlよりハイライト制御量を算出する。ハイラ
イト制御量HL=(HLr ,HLg ,HLb )は、 HLr =Rh ×grad (2) HLg =Gh ×grad (3) HLb =Bh ×grad (4) で求めることができる。
Hereinafter, the operation of the apparatus will be described assuming that the data shown in FIG. 5 is used. The highlight control amount calculation unit 20
First, a highlight control parameter hl is obtained from the correction pattern storage unit 2 as a control parameter. The control parameter hl is stored in the form of the RGB control parameter 42, which is (Rh, Gh, Bh). Next, the correction amount grad is obtained from the correction amount storage unit 4. And g
A highlight control amount is calculated from rad and hl. The highlight control amount HL = (HLr, HLg, HLb) can be obtained by HLr = Rh × grad (2) HLg = Gh × grad (3) HLb = Bh × grad (4)

【0032】同様に中間調制御量算出部21において
は、中間調制御量を算出する。中間調パラメータm=
(Rm ,Gm ,Bm )とすると、中間調制御量M=(M
r ,Mg,Mb )は、 Mr =Rm ×grad (5) Mg =Gm ×grad (6) Mb =Bm ×grad (7) で求めることができる。
Similarly, the halftone control amount calculator 21 calculates a halftone control amount. Halftone parameter m =
(R m , G m , B m ), the halftone control amount M = (M
r , M g , M b ) can be obtained by the following equation: M r = R m × grad (5) M g = G m × grad (6) M b = B m × grad (7)

【0033】同様にシャドー制御量算出部22において
は、シャドー制御量を算出する。シャドーパラメータs
d=(Rs ,Gs ,Bs )とすると、シャドー制御量S
D=(SDr ,SDg ,SDb )は、 SDr =Rs ×grad (8) SDg =Gs ×grad (9) SDb =Bs ×grad (10) で求めることができる。
Similarly, the shadow control amount calculator 22 calculates the shadow control amount. Shadow parameter s
If d = (R s , G s , B s ), the shadow control amount S
D = (SD r , SD g , SD b ) can be obtained by SD r = R s × grad (8) SD g = G s × grad (9) SD b = B s × grad (10)

【0034】すなわち、補正パターン記憶部2には、単
位補正量あたりの制御量が記述されており、各制御量算
出部において単位制御量に補正量記憶部4のデータを乗
ずることによって補正の自由度を高めている。
That is, the control amount per unit correction amount is described in the correction pattern storage unit 2, and each control amount calculation unit multiplies the unit control amount by the data in the correction amount storage unit 4 to freely perform correction. The degree is increasing.

【0035】次にトーンカーブデータ算出部25にて前
記3つの制御量をもとに、トーンカーブデータを算出す
る。トーンカーブデータ算出の例を図4に示す。ここで
は、RGBデータは8bitとし、0から255までの
画素値とする。トーンカーブの低輝度側の起点は(0,
0)、トーンカーブの高輝度側の起点は(255,25
5)となる。
Next, tone curve data is calculated by the tone curve data calculating section 25 based on the three control amounts. FIG. 4 shows an example of tone curve data calculation. Here, it is assumed that the RGB data is 8 bits and has a pixel value from 0 to 255. The starting point on the low luminance side of the tone curve is (0,
0), the starting point on the high luminance side of the tone curve is (255, 25)
5).

【0036】まず中間調制御量Mにより中間調補正カー
ブ30が算出される。M制御点33は、トーンカーブの
輝度の中間にある制御点である。図4においては、M制
御点33は(128,128)の点とした。中間調制御
量Mが+のときにはM制御点33は上方に移動し、−の
ときには下方に移動する。
First, the halftone correction curve 30 is calculated from the halftone control amount M. The M control point 33 is a control point in the middle of the brightness of the tone curve. In FIG. 4, the M control point 33 is a point (128, 128). When the halftone control amount M is +, the M control point 33 moves upward, and when it is-, moves downward.

【0037】M制御点33の移動例を以下に示す。中間
調制御量MのR成分をMr とすると、Rトーンカーブの
M制御点33は、(128,128)から、(128,
128+Mr )に移動する。すなわちMr =100のと
きには、RトーンカーブのM制御点33は、(128,
128)から(128,228)に移動する。同様にし
て、GトーンカーブとBトーンカーブのM制御点33も
移動させることができる。
An example of the movement of the M control point 33 will be described below. When the R component of the halftone control quantity M and M r, M control point 33 of the R tone curve from (128, 128), (128,
128 + M r ). That is, when M r = 100, the M control point 33 of the R tone curve is (128,
From (128) to (128,228). Similarly, the M control points 33 of the G tone curve and the B tone curve can be moved.

【0038】従って、+のときには変換特性36のよう
なカーブとなる。実際の計算には、点(0,0)とM制
御点33と点(255,255)をスプライン補間など
で曲線補間してカーブを生成することができる。曲線補
間は、トーンカーブの起点(0,0)、点(255,2
55)とM制御点33とが滑らかに結ばれていればよ
く、任意の補間関数を用いる事が出来る。曲線補間時に
は曲線発生モジュール24を起動する。
Therefore, when the value is +, a curve like the conversion characteristic 36 is obtained. For the actual calculation, a curve can be generated by performing curve interpolation on the point (0, 0), the M control point 33, and the point (255, 255) by spline interpolation or the like. Curve interpolation is based on the starting point (0, 0) and point (255, 2) of the tone curve.
55) and the M control point 33 need only be smoothly connected, and an arbitrary interpolation function can be used. At the time of curve interpolation, the curve generation module 24 is started.

【0039】次にハイライト制御量HLと、シャドー制
御量SDにより、ハイライト、シャドー補正カーブ31
が算出される。HL制御点35は、トーンカーブの輝度
の高いほうにある制御点である。ハイライト制御量HL
が、+のときには、HL制御点35は、(255,25
5)から(0,255)のほうへ移動するものとする。
ハイライト制御量HLが−のときには、HL制御点35
は、(255,255)から(255,0)のほうへ移
動するものとする。SD制御点34は、トーンカーブの
輝度の低い方にある制御点である。シャドー制御量SD
が、+のときには、SD制御点34は、(0,0)から
(255,0)のほうへ、移動するものとする。シャド
ー制御量SDが−のときには、SD制御点34は、
(0,0)から(0,255)のほうへ移動するものと
する。
Next, the highlight control amount HL and the shadow control amount SD are used to determine the highlight and shadow correction curve 31.
Is calculated. The HL control point 35 is a control point on the higher tone curve of the tone curve. Highlight control amount HL
Is +, the HL control point 35 is (255, 25
It is assumed that the movement is from (5) to (0, 255).
When the highlight control amount HL is-, the HL control point 35
Moves from (255, 255) to (255, 0). The SD control point 34 is a control point on the lower side of the luminance of the tone curve. Shadow control amount SD
Is +, the SD control point 34 moves from (0, 0) to (255, 0). When the shadow control amount SD is-, the SD control point 34
It is assumed that the object moves from (0,0) to (0,255).

【0040】SD制御点34とHL制御点35の移動例
を以下に示す。シャドー制御量SDのR成分をSDr
すると、SDr >0のときには、RトーンカーブのSD
制御点34は、(0,0)から、(SDr ,0)に移動
する。またSDr <0のときには、RトーンカーブのS
D制御点34は、(0,0)から、(0,−SDr )に
移動する。
An example of the movement of the SD control point 34 and the HL control point 35 will be described below. When shadow control amount SD of the R component and SD r, when the SD r> 0 is the R tone curve SD
The control point 34 moves from (0, 0) to (SD r , 0). When SD r <0, the R tone curve S
The D control point 34 moves from (0, 0) to (0, -SD r ).

【0041】ハイライト制御量HLのR成分をHLr
すると、HLr >0のときには、RトーンカーブのHL
制御点35は、(255,255)から、(255,−
HLr ,255)に移動する。またHLr <0のときに
は、RトーンカーブのHL制御点35は、(255,2
55)から、(255,255+HLr )に移動する。
[0041] When the high light control amount HL of the R component and HL r, when HL r> 0 is the R tone curve HL
The control point 35 is (255, −255) from (255, −255).
HL r , 255). When HL r <0, the HL control point 35 of the R tone curve is (255, 2
55) to (255, 255 + HL r ).

【0042】同様にして、GトーンカーブとBトーンカ
ーブのSD制御点34とHL制御点35を移動させるこ
とができる。
Similarly, the SD control point 34 and the HL control point 35 of the G tone curve and the B tone curve can be moved.

【0043】このように設定された制御点間を、直線で
補間することによってハイライト、シャドー補正カーブ
31が得られる。なお直線補間時には直線発生モジュー
ル23を起動する。
A highlight and a shadow correction curve 31 are obtained by interpolating the thus set control points with a straight line. At the time of linear interpolation, the linear generation module 23 is started.

【0044】トーンカーブデータ算出部25では次にこ
れら2つのテーブルを合成する。上記で得られた、中間
調補正カーブ30がTableA[]に、ハイライト、
シャドー補正カーブ31がTableB[]に保存され
ているものとすると、合成カーブ32は、 Table[i]=TableB[TableA[i]] (i=0,1 ,2,…255) (11) という式で得る事ができる。合成カーブの例として、図
4に変換特性38を示す。なお、合成カーブ32は、R
GBそれぞれについて、独立に算出される。
Next, the tone curve data calculator 25 combines these two tables. The halftone correction curve 30 obtained above is highlighted in Table A [].
Assuming that the shadow correction curve 31 is stored in TableB [], the composite curve 32 is expressed as Table [i] = TableB [TableA [i]] (i = 0, 1, 2,... 255) (11) It can be obtained by the formula. FIG. 4 shows a conversion characteristic 38 as an example of the composite curve. Note that the composite curve 32 is represented by R
It is calculated independently for each of GB.

【0045】算出した合成カーブ32は、RGBのトー
ンカーブデータとして、LUT記憶バッファ7に出力さ
れる。
The calculated composite curve 32 is output to the LUT storage buffer 7 as RGB tone curve data.

【0046】LUT記憶バッファ7にテーブルがセット
された後、LUT変換部8によって、RGB画像データ
を順次読み込み、LUT記憶バッファ7のデータにした
がって、RGBデータにそれぞれ同じテーブルを参照し
て変換を施す。テーブル変換後の値は出力画像バッファ
9に保存される。以上で処理が終了する。
After the table is set in the LUT storage buffer 7, the RGB image data is sequentially read by the LUT conversion unit 8, and according to the data in the LUT storage buffer 7, the RGB data is converted by referring to the same table. . The values after the table conversion are stored in the output image buffer 9. Thus, the process ends.

【0047】[0047]

【発明の効果】以上説明したように、本発明の画像の色
かぶり補正装置は、画像の不具合に応じた補正パターン
と、その補正量とを指定するだけで、従来は困難であっ
た、光源の補正や、雪景色の補正などが可能となる。
As described above, the apparatus for correcting color cast of an image according to the present invention merely designates a correction pattern corresponding to a defect in an image and a correction amount thereof. And snow scene correction.

【0048】調整パラメータが少なく、直感的な指定方
式なので、補正に要する時間が短く、オペレータの工数
削減になり、また、オペレータが素人でも思った通りの
補正ができるという効果がある。
Since there are few adjustment parameters and an intuitive designation method, there is an effect that the time required for the correction is short, the man-hour for the operator is reduced, and the correction can be performed as expected even by an operator.

【0049】また、光源色の違いによる補正だけでな
く、フィルム感度や、露光処理などが原因の色かぶりで
も、適切な補正パターンを登録する事により、本装置に
よって補正することができる。
The present apparatus can correct not only the correction due to the difference in the light source color but also the color cast caused by the film sensitivity and the exposure processing by registering an appropriate correction pattern.

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

【図1】本発明の画像の色かぶり補正装置の実施例を示
すブロック図。
FIG. 1 is a block diagram showing an embodiment of an image color cast correction apparatus of the present invention.

【図2】本発明の画像の色かぶり補正装置の実施例を示
すブロック図。
FIG. 2 is a block diagram illustrating an embodiment of an image color cast correction apparatus according to the present invention.

【図3】本発明の画像の色かぶり補正方法の流れ図。FIG. 3 is a flowchart of an image color cast correction method according to the present invention.

【図4】色かぶり補正テーブルの生成の概念図。FIG. 4 is a conceptual diagram of generation of a color cast correction table.

【図5】補正パターン記憶部のデータ例。FIG. 5 is an example of data in a correction pattern storage unit.

【図6】補正パラメータ指定装置の例。FIG. 6 is an example of a correction parameter specifying device.

【図7】従来の画像の色かぶり補正装置の実施例を示す
ブロック図。
FIG. 7 is a block diagram showing an embodiment of a conventional image color cast correction apparatus.

【符号の説明】 1 入力画像バッファ 2 補正パターン記憶部 3 補正パターン指定手段 4 補正量記憶部 5 補正量指定手段 6 トーンカーブ発生手段 7 LUT記憶バッファ 8 LUT変換手段 9 出力画像バッファ 20 ハイライト制御量算出部 21 中間調制御量算出部 22 シャドー制御量算出部 23 直線発生モジュール 24 曲線発生モジュール 25 トーンカーブデータ算出部 30 中間調補正カーブ 31 ハイライト、シャドー補正カーブ 32 合成カーブ 33 M制御点 34 SD制御点 35 HL制御点 36 変換特性 37 変換特性 38 変換特性 40 補正パターン記憶部のデータ例 41 トーンカーブ制御パラメータ 42 RGB制御パラメータ 50 補正パターン指定手段 51 補正量指定手段 52 マウス 53 CRTモニタ 100 入力画像バッファ 101 色補正手段 102 分光特性記憶手段 103 補正量検索手段 104 出力画像バッファ[Description of Signs] 1 Input image buffer 2 Correction pattern storage unit 3 Correction pattern designation unit 4 Correction amount storage unit 5 Correction amount designation unit 6 Tone curve generation unit 7 LUT storage buffer 8 LUT conversion unit 9 Output image buffer 20 Highlight control Amount calculation unit 21 Halftone control amount calculation unit 22 Shadow control amount calculation unit 23 Straight line generation module 24 Curve generation module 25 Tone curve data calculation unit 30 Halftone correction curve 31 Highlight, shadow correction curve 32 Synthetic curve 33 M control point 34 SD control point 35 HL control point 36 Conversion characteristic 37 Conversion characteristic 38 Conversion characteristic 40 Data example of correction pattern storage unit 41 Tone curve control parameter 42 RGB control parameter 50 Correction pattern specifying means 51 Correction amount specifying means 52 Mouse 53 CRT monitor 1 0 input image buffer 101 color corrector 102 spectral characteristics storage 103 correction amount retrieval unit 104 outputs the image buffer

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06T 5/00 - 5/50 G06T 1/00 H04N 1/56 - 1/62 H04N 9/69 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06T 5/00-5/50 G06T 1/00 H04N 1/56-1/62 H04N 9/69

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力画像の不具合に応じて選択される補正
パターンと補正の度合いを示す補正量とからRGBのト
ーンカーブを算出し、前記トーンカーブを用いて全画素
に色変換処理を行う画像の色かぶり補正方法であって、
前記補正パターンが、RGBトーンカーブ上のハイラ
イト、中間調、シャドーの制御情報であることを特徴と
する画像の色かぶり補正方法。
[Claim 1] to calculate the RGB tone curve from a correction amount indicating a degree of correction pattern and the correction is selected as failure of the input image, performs color conversion processing on all the pixels using the tone curve image Color cast correction method,
The correction pattern is a high-resolution image on an RGB tone curve.
A color cast correction method for an image, wherein the control information is color , halftone, and shadow control information .
【請求項2】前記トーンカーブ中の高輝度域の制御点H
Lと、低輝度域の制御点SDとを直線で補間し、前記ト
ーンカーブ中の中間点の制御点Mと、トーンカーブの高
輝度側と低輝度側の起点とを滑らかに結ぶ曲線補間を行
うことを特徴とする請求項1記載の画像の色かぶり補正
方法。
2. A control point H in a high luminance range in the tone curve.
L and the control point SD in the low luminance region are interpolated by a straight line,
Control point M at the midpoint in the tone curve and the height of the tone curve.
Performs curve interpolation that smoothly connects the starting point on the luminance side and the starting point on the low luminance side.
2. The color cast correction of an image according to claim 1, wherein
Method.
【請求項3】入力画像の不具合に応じて選択される補正
パターンと補正の度合いを示す補正量とからRGBのト
ーンカーブを算出し、前記トーンカーブを用いて全画素
の色変換処理を行う画像の色かぶり補正装置であって、
入力画像データを保持する入力画像バッファと、 RGBトーンカーブ上のハイライト、中間調、シャドー
の制御情報からなる補正パターンを、予想される不具合
に応じて複数記憶する補正パターン記憶部と、 色かぶり
の補正量を記憶する補正量記憶部と、 前記補正パターンと前記補正量とからRGBのトーンカ
ーブを生成するトーンカーブ発生手段と、 前記トーンカーブを記憶するLUT記憶バッファと、 前記入力画像データに対してテーブル変換を行うLUT
変換部と、 変換後の画像データを保持する出力画像バッファとを備
えることを特徴とする画像の色かぶり補正装置。
3. A correction selected according to a defect of an input image.
From the pattern and the correction amount indicating the degree of correction, the RGB
Tone curve and calculate all pixels using the tone curve.
A color cast correction device for performing an image color conversion process,
Input image buffer to hold input image data , highlight, halftone, shadow on RGB tone curve
Of the correction pattern consisting of the control information of
A correction pattern storage unit that stores a plurality of colors according to
A correction amount storage unit for storing the correction amount of the RGB, and an RGB tone mask based on the correction pattern and the correction amount.
Curve generating means for generating a curve, an LUT storage buffer for storing the tone curve, and an LUT for performing table conversion on the input image data
A conversion unit, and an output image buffer for holding the converted image data.
A color cast correction device for images, characterized in that:
【請求項4】前記トーンカーブ発生手段が、前記補正パ
ターンと前記補正量とからRGBの各ハイライト部の制
御量を算出するハイライト制御量算出部と、RGBの各
中間 調の制御量を算出する中間調制御量算出部と、RG
Bの各シャドー部の制御量を算出するシャドー制御量算
出部と、前記3つの制御量から前記トーンカーブを算出
するトーンカーブ算出部とを備えることを特徴とする請
求項3記載の画像の色かぶり補正装置。
4. The method according to claim 1, wherein said tone curve generating means is adapted to output said correction curve.
From the turn and the correction amount, control of each highlight portion of RGB is performed.
A highlight control amount calculation unit for calculating the control amount;
A halftone control amount calculation unit for calculating a halftone control amount;
Shadow control amount calculation for calculating the control amount of each shadow portion of B
The tone curve is calculated from the output portion and the three control amounts.
And a tone curve calculation unit that performs
An apparatus for correcting color cast of an image according to claim 3.
【請求項5】前記トーンカーブ発生手段が、トーンカー
ブ中の高輝度域の制御点HLと、低輝度域の制御点SD
とを直線で補間する直線発生モジュールと、トーンカー
ブ中の中間点の制御点Mと、トーンカーブの高輝度側と
低輝度側の起点とを滑らかに結ぶ曲線補間を行う曲線発
生モジュールとを備えることを特徴とする請求項3記載
の画像の色かぶり補正装置。
5. The tone curve generating means according to claim 1 , wherein
Control point HL in the high luminance area and control point SD in the low luminance area
A straight line generation module that interpolates
Control point M in the middle of the curve,
Curve generation that performs curve interpolation that smoothly connects to the starting point on the low luminance side
A raw module is provided.
Image color cast correction device.
【請求項6】画像の不具合を補正する補正パターンをオ
ペレータが指定する補正パターン指定手段と、オペレー
タが補正の強さを指定する補正量指定手段とを更に備え
ることを特徴とする請求項3、4又は5記載の画像の色
かぶり補正装置。
6. A correction pattern for correcting an image defect.
A correction pattern designating means designated by the operator, and an operator
And a correction amount specifying means for specifying a correction strength.
6. The color of an image according to claim 3, 4 or 5, wherein
Fogging correction device.
JP8191833A 1996-07-22 1996-07-22 Image color cast correction method and apparatus Expired - Fee Related JP2874657B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP8191833A JP2874657B2 (en) 1996-07-22 1996-07-22 Image color cast correction method and apparatus
US08/898,132 US6097836A (en) 1996-07-22 1997-07-22 Image processing system and its smoothing method for correcting color fog and backlight of a digital image
US09/505,140 US6346994B1 (en) 1996-07-22 2000-02-15 Image processing system and its smoothing method for correcting color fog and backlight of a digital image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8191833A JP2874657B2 (en) 1996-07-22 1996-07-22 Image color cast correction method and apparatus

Publications (2)

Publication Number Publication Date
JPH1040355A JPH1040355A (en) 1998-02-13
JP2874657B2 true JP2874657B2 (en) 1999-03-24

Family

ID=16281284

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8191833A Expired - Fee Related JP2874657B2 (en) 1996-07-22 1996-07-22 Image color cast correction method and apparatus

Country Status (1)

Country Link
JP (1) JP2874657B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2819392A1 (en) 2013-06-28 2014-12-31 Ricoh Company, Ltd. Image processing apparatus, image forming system, and computer program product

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6775408B1 (en) 1999-06-25 2004-08-10 Minolta Co., Ltd. Image processor
EP1158484A3 (en) * 2000-05-25 2008-12-31 Seiko Epson Corporation Processing of image data supplied to image display apparatus
JP2005318028A (en) * 2004-04-27 2005-11-10 Hitachi Ltd Display apparatus
JP5716944B2 (en) * 2009-06-25 2015-05-13 アイシン精機株式会社 In-vehicle camera device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2819392A1 (en) 2013-06-28 2014-12-31 Ricoh Company, Ltd. Image processing apparatus, image forming system, and computer program product
US9846826B2 (en) 2013-06-28 2017-12-19 Ricoh Company, Ltd. Image processing to generate a tone curve for processing an image by associating a model parameter of the image with another model parameter of a reference image

Also Published As

Publication number Publication date
JPH1040355A (en) 1998-02-13

Similar Documents

Publication Publication Date Title
US6346994B1 (en) Image processing system and its smoothing method for correcting color fog and backlight of a digital image
JPH0355078B2 (en)
JPH08256270A (en) Method and apparatus for color transformation seizure
JPH09186907A (en) Color adjustment method
EP0310388A1 (en) Interactive image modification
KR101680254B1 (en) Method of calibration of a target color reproduction device
JP2007202218A (en) Method and apparatus for enhancing source digital image
US8467629B2 (en) Methods and systems for automatic coloring of digital images
US20060250411A1 (en) Apparatus and method to edit color profile
US7042489B2 (en) Image processing
JP2874657B2 (en) Image color cast correction method and apparatus
JP5950756B2 (en) Image processing apparatus and image processing method
JP5523078B2 (en) Image processing apparatus and image processing method
JP2000032281A (en) Image processing method and device and recording medium
US20070085910A1 (en) Method and system for color correction of digital image data
CN101662568A (en) Video conversion device, video conversion method and program
JPH06105185A (en) Brightness correction method
JP2895405B2 (en) Image gradation correction method and image processing apparatus
US20030071897A1 (en) Image processing
US20030214520A1 (en) Real-time gradation control
JP2008271096A (en) Method and device for correcting gray balance of image data, and storage medium
US7113223B2 (en) High resolution color conforming
JPH10503072A (en) Equipment used for color correction of electronic imaging equipment
JPH10224647A (en) Color adjustment device
JP2008245274A (en) Method and apparatus for regulating color conversion profile

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981215

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080114

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100114

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110114

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110114

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120114

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130114

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130114

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees