JPH09326941A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH09326941A
JPH09326941A JP8143036A JP14303696A JPH09326941A JP H09326941 A JPH09326941 A JP H09326941A JP 8143036 A JP8143036 A JP 8143036A JP 14303696 A JP14303696 A JP 14303696A JP H09326941 A JPH09326941 A JP H09326941A
Authority
JP
Japan
Prior art keywords
color
image
correction
representative
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8143036A
Other languages
Japanese (ja)
Inventor
Yoshihiro Terada
義弘 寺田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP8143036A priority Critical patent/JPH09326941A/en
Publication of JPH09326941A publication Critical patent/JPH09326941A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain the image processing unit in which high quality and adaptive color processing is attained by providing a correction means conducting color balance correction taking notice of balance of a specific color area where color unbalance is remarkable. SOLUTION: At first a reference color for color balance adjustment with respect to an image is set by a reference color setting section 101. A color by which color unbalance is easily remarkable is adopted for the reference color. Then a color extract section 102 extracts colors in the vicinity of the reference color from color image data BGR received by a preliminary scanning of a scanner or the like and a representative value arithmetic section 103 sets a representative color from the extracted color and a condition setting section 104 sets a correction condition of an image to a correction section 105 as to each color based on the reference color and the representative color. Thus, color image data RGB received by main scanning are subject to correction processing in response to a feature of an original image and adaptive image processing with high quality is attained.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像を高品
質に再現する画像処理装置に関し、特に、処理対象の画
像が有する特性に応じてカラーバランスの補正処理を実
行する画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus that reproduces a color image with high quality, and more particularly to an image processing apparatus that executes color balance correction processing according to the characteristics of the image to be processed.

【0002】[0002]

【従来の技術】近年、ファクシミリや、デジタル複写
機、イメージスキャナ、プリンタ、それらのインタフェ
ース等のデジタル画像を処理する画像処理装置の進歩・
普及がめざましい。これに伴い、画像処理装置が提供す
る画像品質に関しても、より高いものが求められるよう
になってきている。例えば、デジタル複写機に関して
は、従来では原稿に対してできるだけ忠実な画像(コピ
ー)を再現する点が求められていた。しかしながら、原
稿自体が低い品質のものである場合、原稿を忠実に再現
するよりもむしろ、デジタルならではの信号処理を施し
て、原画像を適切に補正し出力することが好ましい。こ
こでいう適切な補正には、例えば階調補正によって良好
なコントラストを与える処理や、文字や線を強調して読
みやすくする処理等が挙げられる。
2. Description of the Related Art In recent years, advances in image processing apparatuses for processing digital images, such as facsimiles, digital copying machines, image scanners, printers, and their interfaces.
The spread is remarkable. Along with this, there is a demand for higher image quality provided by the image processing apparatus. For example, a digital copying machine has conventionally been required to reproduce an image (copy) as faithful as possible to a document. However, when the original document itself is of low quality, it is preferable that the original image is appropriately corrected and output by performing signal processing unique to digital rather than faithfully reproducing the original document. The appropriate correction mentioned here includes, for example, a process of giving a good contrast by gradation correction, a process of emphasizing a character or a line to make it easy to read.

【0003】また、デジタル複写機に各種インターフェ
ースを接続してファクシミリとしてあるいはプリンタと
して使用されることがある。例えば、ファクシミリとし
て用いる場合には、一般には、出力画像と比較すべき原
画像とが手元にない。また、プリンタとして用いる場合
には、モニタに表示された画像が、電子ファイルとして
出力されるため、表示画像の品質に一致する印字画像を
得るのが極めて困難である。一方、これらの画像に対し
ては、画像の特性を検知し、その特性に応じて適応的に
ノイズ除去やレンジ変換などの処理を実行した方がより
好ましい再現画像が得られる。
In some cases, various interfaces are connected to the digital copying machine to be used as a facsimile machine or a printer. For example, when used as a facsimile, generally, the output image and the original image to be compared are not at hand. Further, when used as a printer, since the image displayed on the monitor is output as an electronic file, it is extremely difficult to obtain a printed image that matches the quality of the displayed image. On the other hand, for these images, it is possible to obtain a more preferable reproduced image by detecting the characteristic of the image and adaptively performing the processing such as noise removal or range conversion according to the characteristic.

【0004】このような画像処理は、コントラストや、
彩度、露光、シャープネス等、幾つかの補正対象となる
項目があり、それらの中に色合い・色バランスを修正す
る画像処理がある。従来の色合い・色バランスを修正す
る技術としては、例えば、RGB各色信号の分布状態に
着目し、その分布範囲を統一することによって、画像の
色バランスを自動修正するものが広く知られている。
Such image processing is performed by contrast,
There are several items to be corrected such as saturation, exposure, and sharpness, and among them, there is image processing for correcting the hue and color balance. As a conventional technique for correcting the hue and color balance, for example, a technique is widely known in which attention is paid to the distribution state of RGB color signals, and the distribution range is unified to automatically correct the color balance of an image.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
たような従来システムでは、次のような問題点があっ
た。まず第1に、処理対象となる画像が十分なダイナミ
ックレンジを有する場合には、修正効果が得られにく
い、という問題がある。例えば、見た目には色バランス
が崩れている画像であっても、各原色とも明るい階調か
ら暗い階調までその分布が広い範囲にわたっている場合
や、(主に、画像入力の際に発生する)ノイズや階調の
飽和等により、各原色の分布が十分に広いと検知される
場合には、当該画像に対し十分な補正処理が実行されな
いため、それによる効果が得られない。第2に、カラー
バランスのずれが最も大きく検知される色は、人の肌
や、空の青、木々の緑などように人が記憶する色や、画
像の色がどうあるべきなのかを観察者が既知とする色な
どである。したがって、それらの色とは直接に結び付か
ない特徴量に基づいてレンジを補正したところで、必ず
しも良好な処理結果が得られるとは限らない。
However, the conventional system described above has the following problems. First, there is a problem in that it is difficult to obtain the correction effect when the image to be processed has a sufficient dynamic range. For example, even if an image has an apparently unbalanced color balance, the distribution of each primary color has a wide range from light to dark, or (mainly occurs during image input). When it is detected that the distribution of each primary color is sufficiently wide due to noise, gradation saturation, or the like, sufficient correction processing is not performed on the image, and the effect cannot be obtained. Secondly, the colors where the color balance deviation is detected the most are observing the colors that people should remember, such as human skin, the blue of the sky, and the green of trees, and what kind of color should be in the image. The color is known to the person. Therefore, even if the range is corrected based on the feature amount that is not directly associated with those colors, a good processing result is not always obtained.

【0006】本発明は、上述した問題に鑑みてなされた
もので、その目的とするところは、色バランスのずれが
目立ちやすい特定色領域のバランスに着目したカラーバ
ランス補正を実行して、高品質な適応的色処理が可能な
画像処理装置を提供することにある。
The present invention has been made in view of the above problems, and an object of the present invention is to execute a color balance correction focusing on the balance of a specific color region in which the deviation of the color balance is apt to be noticeable to obtain high quality. An object of the present invention is to provide an image processing device capable of various adaptive color processing.

【0007】[0007]

【課題を解決するための手段】上述した問題を解決する
ために、本発明は、基準色を設定する基準色設定手段
と、入力された画像データから前記基準色とは所定範囲
内の色を抽出して、その色の代表色を算出する代表色演
算手段と、前記基準色と前記代表色とに基づいて、入力
された画像データに施すべき補正の条件を設定する条件
設定手段と、設定された条件にしたがった補正を、入力
された画像データに対して行なう補正手段とを具備する
ことを特徴としている。本発明によれば、補正の基準と
なる基準色を予め設定しておき、入力された画像データ
から、基準色とは所定範囲内の色を抽出して、抽出した
色における代表色を算出し、入力された画像データに対
しては、例えば、代表色が基準色に近づけるような補正
を行なう。ここで、基準色を、色バランスのずれが顕著
になる色と設定することにより、原画像に対し色のずれ
がない出力を得ることが可能となる。
In order to solve the above-mentioned problems, the present invention provides a reference color setting means for setting a reference color and a color within a predetermined range from the input image data. Representative color calculation means for extracting and calculating a representative color of the color, condition setting means for setting a correction condition to be applied to the input image data based on the reference color and the representative color, and setting It is characterized by comprising a correction means for performing correction on the input image data according to the specified conditions. According to the present invention, a reference color that is a reference for correction is set in advance, a color within a predetermined range of the reference color is extracted from the input image data, and a representative color of the extracted colors is calculated. The input image data is corrected such that the representative color approaches the reference color. Here, by setting the reference color as a color in which the deviation of the color balance becomes noticeable, it is possible to obtain an output having no color deviation with respect to the original image.

【0008】[0008]

【発明の実施の形態】以下、本発明による実施形態につ
いて図面を参照して説明する。図1は、本発明による第
1の実施形態にかかる画像処理装置の構成を示すブロッ
ク図である。この画像処理装置は、赤(R)・緑(G)
・青(B)のデジタル信号で表されるカラー画像に対し
て、その画像の特性に基づいた自動画像補正を施し、補
正された赤(R’)・緑(G’)・青(B’)信号を生
成するシステムである。図1において、101は基準色
設定部であり、画像補正の基準となる色を設定するもの
である。102は色抽出部であり、図示しないスキャナ
等において、本走査の前に予め行なわれる予走査で供給
されるカラー画像データから、設定された基準色の近傍
の色を抽出する。103は代表値演算部であり、色抽出
部102で抽出された色の中からその代表となる色(代
表色)の値(代表値)を演算により求める。104は条
件設定部であり、代表値演算部103により算出された
代表値と基準色設定部101で設定された基準色とに基
づいて画像の補正条件を設定する。105は補正部であ
り、条件設定部104で設定された補正条件にしたがっ
て、本走査において供給されるカラー画像データに補正
処理を施す。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to the first embodiment of the present invention. This image processing device has red (R) and green (G)
-A red (R ')-green (G')-blue (B 'is corrected by performing automatic image correction on a color image represented by a blue (B) digital signal based on the characteristics of the image. ) A system that generates a signal. In FIG. 1, reference numeral 101 denotes a reference color setting unit that sets a color that serves as a reference for image correction. A color extraction unit 102 extracts a color in the vicinity of the set reference color from the color image data supplied by the pre-scan performed before the main scan in a scanner (not shown) or the like. A representative value calculation unit 103 calculates the value (representative value) of a representative color (representative color) from the colors extracted by the color extraction unit 102. A condition setting unit 104 sets an image correction condition based on the representative value calculated by the representative value calculation unit 103 and the reference color set by the reference color setting unit 101. Reference numeral 105 denotes a correction unit that performs a correction process on the color image data supplied in the main scan according to the correction conditions set by the condition setting unit 104.

【0009】次に、上述した構成の画像処理装置におけ
る画像処理の流れについて説明する。この画像処理装置
においては、カラー画像の読み込みを予走査と本走査と
の2回に分けて行なうことにより、適応的な色バランス
調整処理が行われる。すなわち、この画像処理装置にお
いては、まず1回目の予走査で供給されたカラー画像の
なかから、前記基準色設定部101で設定された色の近
傍色を抽出し、その画像の特性の基づいた補正条件が設
定される。そして次の2回目の本走査で供給されたカラ
ー画像に対し、予走査で設定された補正条件の色調整処
理が施される。
Next, the flow of image processing in the image processing apparatus having the above configuration will be described. In this image processing apparatus, a color image is read in two times, prescanning and main scanning, to perform adaptive color balance adjustment processing. That is, in this image processing apparatus, first, a color near the color set by the reference color setting unit 101 is extracted from the color image supplied in the first pre-scan, and based on the characteristics of the image. The correction condition is set. Then, the color image supplied in the next second main scan is subjected to the color adjustment processing of the correction condition set in the pre-scan.

【0010】以下、かかる動作の詳細について説明す
る。この画像処理装置においては、はじめに、基準色設
定部101において画像に対するカラーバランス調整の
基準となる色が設定される。図2において、点(r、
g、b)が基準色設定部101において設定された基準
色である。ここで基準となる色は、例えば人の肌や空の
青などの記憶色や、ハイライトグレイ領域などの色のバ
ランスのズレが目立ちやすい色である。
The details of this operation will be described below. In this image processing apparatus, first, a reference color setting unit 101 sets a color that serves as a reference for color balance adjustment for an image. In FIG. 2, the point (r,
g and b) are reference colors set by the reference color setting unit 101. The reference color here is, for example, a memory color such as human skin or sky blue, or a color such as a highlight gray area in which a color shift is easily noticeable.

【0011】次に、予走査が行なわれ、その際のカラー
画像のデータが、色抽出部102に供給される。色抽出
部102では、基準色設定部101により設定された基
準色の近傍領域(r±Δr、g±Δg、b±Δb)の範
囲に含まれる色が抽出される。図2において斜線で示さ
れた直方体領域が(r±Δr、g±Δg、b±Δb)で
定義される基準色近傍領域である。
Next, a prescan is performed, and the color image data at that time is supplied to the color extraction unit 102. The color extraction unit 102 extracts the colors included in the range of the near region (r ± Δr, g ± Δg, b ± Δb) of the reference color set by the reference color setting unit 101. The shaded rectangular parallelepiped region in FIG. 2 is the reference color neighborhood region defined by (r ± Δr, g ± Δg, b ± Δb).

【0012】代表値演算部103は、上述したように、
抽出された色の代表値を設定するものであり、例えば、
色抽出部102において抽出された色の平均値
(rave、ga ve、bave)を代表値として設定する。な
お、代表値は、平均値に限るものではなく、例えば、抽
出された色の中央値などであっても良い。条件設定部1
04は、基準色設定部101で設定された基準色(r、
g、b)と代表値演算部103で得られる色の代表値
(rave、gave、bave)とに基づいて、各色のそれぞ
れについて一次元のLUT(ルック・アップ・テーブ
ル)を作成して、補正部105に対し画像の補正条件を
設定する。
The representative value calculation unit 103, as described above,
The representative value of the extracted color is set, for example,
The average value (r ave , g a ve , b ave ) of the colors extracted by the color extracting unit 102 is set as a representative value. The representative value is not limited to the average value, and may be the median value of the extracted colors, for example. Condition setting part 1
04 is the reference color (r,
g, b) and a representative value (r ave , g ave , b ave ) of the color obtained by the representative value calculation unit 103, a one-dimensional LUT (look-up table) is created for each color. Then, the correction condition of the image is set in the correction unit 105.

【0013】ここで、画像の補正条件の詳細について説
明する。図3(a)は、基準色(r、g、b)とその近
傍色として原画像より抽出された代表色(rave
ave、bav e)との位置関係を示している。かかる関係
において、条件設定部104において設定される補正条
件は、入力されたカラー画像の代表色(rave、gave
av e)については、基準色(r、g、b)にするもの
であって、代表色の近傍の色については、当該色と代表
色との差に応じた分だけ基準色に近づけるようにするも
のである。この場合に作成されるLUTの入出力特性の
一例を図3(b)に示す。なお、この例では、各色の入
出力特性は、入力が代表色(rave、gave、bave)で
ある場合に、出力が基準色(r、g、b)となる座標を
頂点とする折れ線としているが、かかる特性は、特にこ
れに限るものではなく、例えば、入力が代表色
(rave、gave、bave)である場合に、多項式やスプ
ライン関数などにより近似した曲線であって、同座標あ
るいは近傍座標を通過する曲線を用いることも可能であ
ることはいうまでもない。
Details of image correction conditions will be described below. FIG. 3A shows the representative colors (r ave , r ave , extracted from the original image) as the reference colors (r, g, b) and their neighboring colors.
g ave, shows the positional relationship between the b av e). In this relationship, the correction condition set in the condition setting unit 104 is the representative color (r ave , g ave ,
For b av e), the reference color (r, g, be one that in b), for the color in the vicinity of the representative colors, as close to only reference color amount corresponding to the difference between the color and the representative color It is something to do. An example of the input / output characteristics of the LUT created in this case is shown in FIG. In this example, in the input / output characteristics of each color, when the input is the representative color (r ave , g ave , b ave ), the coordinates whose output is the reference color (r, g, b) are the vertices. Although it is a polygonal line, this characteristic is not particularly limited to this, and for example, when the input is a representative color (r ave , g ave , b ave ), it is a curve approximated by a polynomial or a spline function. It goes without saying that it is also possible to use a curve that passes through the same coordinates or neighboring coordinates.

【0014】予走査において補正の条件が設定される
と、次に本走査が行なわれる。本走査では、それにより
供給されたカラー画像のデータについて、LUTを参照
して、すなわち、図3(b)に示されるような、BGR
各色に対する入出力特性にしたがって階調補正が実行さ
れる。このような処理により、設定された基準色に基づ
き、原画像の特徴に応じた補正処理が実行されるので、
高品質な適応的色処理が可能となるのである。
When the correction condition is set in the pre-scan, the main scan is performed next. In the main scan, the data of the color image supplied thereby is referred to the LUT, that is, the BGR as shown in FIG.
The gradation correction is executed according to the input / output characteristics for each color. By such processing, the correction processing according to the characteristics of the original image is executed based on the set reference color.
High quality adaptive color processing becomes possible.

【0015】次に、本発明による第2の実施形態の画像
処理装置について説明する。本実施形態にかかる画像処
理装置においては、カラーバランス補正に合わせて明度
およびレンジの補正もするものである。図4は、この画
像処理装置の構成を示すブロック図である。この図にお
いて、401は画像メモリであり、カラーバランス補正
が施される画像データを格納する。402はモニタであ
り、ビデオ・インターフェース403を介して画像メモ
リ401に格納される画像を表示する。404はデータ
ベースであり、色調整に用いる参照画像や色データなど
を記憶している。405は入力部であり、キーボードや
ポインティングデバイス等から構成され、必要とされる
情報の入力・設定をI/Oコントローラ406を介して
行なう。407は画像編集部であり、画像解析部407
aと画像処理部407bとにより構成され、画像メモリ
401に格納された画像データを入力部405により入
力される情報にしたがった処理を施す。408は内部バ
スであり、上記各構成要素間のデータや命令等が転送さ
れる。
Next, an image processing apparatus according to the second embodiment of the present invention will be described. The image processing apparatus according to the present embodiment also corrects brightness and range in accordance with color balance correction. FIG. 4 is a block diagram showing the configuration of this image processing apparatus. In this figure, reference numeral 401 denotes an image memory, which stores image data to which color balance correction is applied. A monitor 402 displays an image stored in the image memory 401 via the video interface 403. A database 404 stores a reference image, color data, and the like used for color adjustment. An input unit 405 includes a keyboard, a pointing device, and the like, and inputs / sets necessary information via the I / O controller 406. An image editing unit 407 includes an image analysis unit 407.
The image data stored in the image memory 401 is processed according to the information input by the input unit 405. An internal bus 408 is used to transfer data, instructions, etc. between the above-mentioned components.

【0016】次に、上述した構成の画像処理装置におけ
る画像処理の流れについて説明する。図5は、この実施
形態にかかる画像処理装置の動作を示すフローチャート
である。この画像処理装置では、まず、ステップS50
1において、画像メモリ401に格納されているRGB
画像データであって、処理の対象である画像データが、
画像処理部407bにロードされ、明度・色相・彩度の
*HC空間とするものに変換された後、画像メモリ4
01に再格納される。ここで行なわれる色空間変換処理
について図6(a)を参照して説明すると、画像メモリ
401のRGB画像データは、1次元LUT601の参
照によりガンマ変換された後、図に示される行列演算式
を実行する演算部602によりL***空間に近似変
換され、このうちa**が2次元LUT603の参照に
よって直交座標系からHCの極座標系への変換がなされ
て、L*HC空間の画像データに変換される。
Next, the flow of image processing in the image processing apparatus having the above-mentioned configuration will be described. FIG. 5 is a flowchart showing the operation of the image processing apparatus according to this embodiment. In this image processing device, first, in step S50.
1, the RGB stored in the image memory 401
The image data that is the image data to be processed is
The image memory 4 is loaded into the image processing unit 407b and converted into an L * HC space of lightness, hue, and saturation, and then the image memory 4
It is stored again in 01. The color space conversion process performed here will be described with reference to FIG. 6A. RGB image data in the image memory 401 is gamma-converted by referring to the one-dimensional LUT 601 and then the matrix operation formula shown in the figure is used. Approximately transformed into L * a * b * space by the executing operation unit 602, of which a * b * is transformed from the Cartesian coordinate system to the polar coordinate system of HC by referring to the two-dimensional LUT 603, and the L * HC space is transformed. Is converted to image data.

【0017】再び図5に戻り、ステップS501におけ
る空間変換の後、次のステップS502においては、明
度L*に対して画像の全体的な明るさを調整する明度補
正が実行される。ここで、明度補正について説明する。
この明度補正においては、まず画像解析部407a(図
4参照)が、図7(a)〜(d)に示すような明度L*
のヒストグラムを生成して、明度補正を実行するか否か
を決定する。この決定は、ヒストグラム分布の最小値と
暗部しきい値L1と比較し、さらに、同分布の最大値と
明部しきい値L2と比較することにより行なわれる。こ
の比較の結果、図7(a)に示すように、ヒストグラム
分布の最小値が暗部しきい値L1よりも小さく、かつ、
同分布の最大値が明部しきい値L2よりも大きければ、
画像の明度が全体に広くわたっているので、補正を行な
わないと決定する。また、図7(b)に示すように、ヒ
ストグラム分布の最小値が暗部しきい値L1よりも小さ
く、かつ、同分布の最大値も明部しきい値L2よりも小
さければ、画像の明度が暗い方向に偏っているので、明
るくする方向の補正を行なうと決定する。一方、図7
(c)に示すように、ヒストグラム分布の最小値が暗部
しきい値L1よりも大きく、かつ、同分布の最大値も明
部しきい値L2よりも大きければ、画像の明度が明るい
方向に偏っているので、暗くする方向の補正を行なうと
決定する。そして、図7(d)に示すように、ヒストグ
ラム分布の最小値が暗部しきい値L1よりも大きく、か
つ、同分布の最大値が明部しきい値L2よりも小さくけ
れば、画像の明度が適度な明度を有するので、補正を行
なわないと決定する。画像解析部407aが補正を行な
うと決定した場合、画像処理部407bは、L* out=L
* inγの演算により明度補正を行なう。ここで、γはL*
の分布の偏りから決定され、明るく補正する場合にはγ
<1、暗くする場合にはγ>1となる明度補正パラメー
タである。このような処理によって、明度補正が実行さ
れ、画像メモリ401へ処理画像が保存される。
Returning to FIG. 5 again, after the spatial transformation in step S501, in the next step S502, lightness correction for adjusting the overall brightness of the image with respect to the lightness L * is executed. Here, the brightness correction will be described.
In the brightness correction, first, the image analysis unit 407a (see FIG. 4) uses the brightness L * as shown in FIGS.
The histogram of is generated and it is determined whether or not the brightness correction is performed. This determination is performed by comparing the minimum value of the histogram distribution with the dark area threshold L1, and further comparing with the maximum value of the distribution and the bright area threshold L2. As a result of this comparison, as shown in FIG. 7A, the minimum value of the histogram distribution is smaller than the dark area threshold L1, and
If the maximum value of the distribution is larger than the bright area threshold L2,
Since the brightness of the image is widely spread over the entire image, it is determined that no correction is performed. Further, as shown in FIG. 7B, when the minimum value of the histogram distribution is smaller than the dark area threshold L1 and the maximum value of the distribution is also smaller than the bright area threshold L2, the brightness of the image is Since it is biased toward the dark direction, it is decided to perform correction in the bright direction. On the other hand, FIG.
As shown in (c), if the minimum value of the histogram distribution is larger than the dark area threshold L1 and the maximum value of the distribution is also larger than the bright area threshold L2, the brightness of the image is biased toward the bright side. Therefore, it is decided to correct the darkening direction. Then, as shown in FIG. 7D, if the minimum value of the histogram distribution is larger than the dark area threshold L1 and the maximum value of the distribution is smaller than the light area threshold L2, the brightness of the image is reduced. Has an appropriate brightness, so it is determined that no correction is performed. When the image analysis unit 407a determines to perform the correction, the image processing unit 407b determines that L * out = L.
Brightness correction is performed by calculating * in γ. Where γ is L *
Is determined from the bias of the distribution of, and when correcting brightly, γ
The brightness correction parameter is <1 and γ> 1 for darkening. The brightness correction is executed by such processing, and the processed image is stored in the image memory 401.

【0018】図5に戻り、ステップS502における画
像判定/明度補正の後、次のステップS503において
は、明度L*に対して、レンジ補正が行われる。この補
正は、明度L*の分布をその量子化レンジいっぱいに拡
大することによりコントラストを改善するというもので
ある。かかるレンジ補正について説明すると、明度補正
と同様に、まず画像解析部407aが、明度L*のヒス
トグラムを生成し、そのハイライトおよびシャドーの代
表点をそれぞれ検出する。代表点の検出は、最明部およ
び最暗部から例えば全体の5%の頻度を示す点を検出す
ることにより行われる。その後、画像処理部407b
は、L* out=α・L* in+βの演算によりレンジ補正を
行なう。ここで、αおよびβは、それぞれレンジ補正パ
ラメータであり、ともにハイライトおよびシャドーの代
表点から決定される。このような処理によって、レンジ
補正が実行され、処理された画像が画像メモリ401に
保存される。
Returning to FIG. 5, after the image determination / brightness correction in step S502, range correction is performed on the lightness L * in the next step S503. This correction is to improve the contrast by expanding the distribution of lightness L * to its full quantization range. The range correction will be described. As with the brightness correction, the image analysis unit 407a first generates a histogram of the brightness L * and detects the highlight and shadow representative points, respectively. The detection of the representative point is performed by detecting a point showing a frequency of 5% of the whole from the brightest part and the darkest part. After that, the image processing unit 407b
Performs range correction by calculating L * out = α · L * in + β. Here, α and β are range correction parameters, respectively, which are both determined from the highlight and shadow representative points. With such processing, range correction is executed, and the processed image is stored in the image memory 401.

【0019】次に、明度補正・レンジ補正が施された画
像に対し、ステップS504において、カラーバランス
補正条件が設定される。このカラーバランスの補正条件
設定においては、まず第1に、画像に対するカラーバラ
ンス調整の基準となる色が入力部405によって設定さ
れる。この際、基準色はデータベース404に記憶され
ている色データの中から特定の色を指定しても良いし、
同じくデータベース404に記憶されている参照画像の
特定領域を選択することによって指定しても良い。ここ
で指定される基準色は画像データと同じL*HC空間に
属する値(l、h、c)に演算・変換される。次に第2
に、画像解析部407aにおいて、第1の実施形態と同
様に基準色の近傍領域(l±Δl、h±Δh、c±Δ
c)の範囲に含まれる色が抽出され、その平均値(l
ave、have、cave)が代表値として設定される。
Next, in step S504, color balance correction conditions are set for the image subjected to the brightness correction / range correction. In setting the color balance correction condition, first, the input unit 405 sets a color that serves as a reference for color balance adjustment for an image. At this time, as the reference color, a specific color may be designated from the color data stored in the database 404,
It may also be designated by selecting a specific area of the reference image also stored in the database 404. The reference color designated here is calculated and converted into a value (l, h, c) belonging to the same L * HC space as the image data. Second
Further, in the image analysis unit 407a, similar to the first embodiment, the neighboring regions (l ± Δl, h ± Δh, c ± Δ of the reference color are used.
The colors included in the range of c) are extracted, and the average value (l
ave , h ave , c ave ) are set as representative values.

【0020】ところで、実際のカラーバランス補正は、
*HC空間ではなく、RGBの色空間において実行さ
れる。そこで、第3に、画像処理部407bは、入力部
405により設定された基準色(l、h、c)および代
表値(lave、have、cave)を、それぞれ後述する方
法によりRGB色空間での値(r、g、b)および(r
ave、gave、bave)に変換する。続いて第4に、画像
解析部407aは、基準色(r、g、b)のうちの最大
値Maxbaseと、代表値(rave、gave、bav e)のう
ちの最大値Maxaveとをそれぞれ求める。すなわち、 Maxbase=Max(r、g、b)、 Maxave =Max(rave、gave、bave) とする。
By the way, the actual color balance correction is
It is performed in the RGB color space, not the L * HC space. Therefore, thirdly, the image processing unit 407b sets the reference colors (l, h, c) and the representative values (l ave , h ave , c ave ) set by the input unit 405 to RGB colors by a method described later. The values (r, g, b) and (r in space
ave , g ave , b ave ). Followed by a fourth image analysis unit 407a, the reference color (r, g, b) the maximum value Max base of the representative value (r ave, g ave, b av e) the maximum value Max ave of And, respectively. That is, Max base = Max (r, g, b), Max ave = Max (r ave , g ave , b ave ).

【0021】続いて第5に、画像解析部407aは、基
準色(r、g、b)の最大値Maxbaseに対する比率
(rateRbase、rateGbase、rateBbase
を次式の演算により求める。 すなわち、 rateRbase=r/Maxbase、 rateGbase=g/Maxbase、 rateBbase=b/Maxbase により求める。
Fifthly, the image analysis unit 407a causes the ratio (rateR base , rateG base , rateB base ) of the reference color (r, g, b) to the maximum value Max base .
Is calculated by the following equation. That is, it is calculated by rateR base = r / Max base , rateG base = g / Max base , rateB base = b / Max base .

【0022】そして、第6に、画像解析部407aは、
求めた比率を用いて、補正の際に参照するLUTの入出
力特性を、例えば図8に示すようなものに設定する。す
なわち、LUTの入出力特性は、各比率で定められる直
線のうち、入力をMaxaveとする座標を頂点とする折
れ線となるように設定される。これにより、代表色の各
原色比率が基準色の各原色比率に近づけられる。なお、
この図に示す入出力特性においては、次のような条件に
おいて設定されるものである。すなわち、かかる入出力
特性は、 Maxbase>Maxave、 rave>gave>bave、 rateRbase>rateGbase>rateBbase となる場合の設定である。
And sixthly, the image analysis unit 407a
Using the obtained ratio, the input / output characteristics of the LUT referred to in the correction are set to those shown in FIG. 8, for example. That is, the input / output characteristic of the LUT is set to be a polygonal line having a vertex whose coordinates are Max ave as an input among the straight lines determined by the respective ratios. As a result, each primary color ratio of the representative color is brought close to each primary color ratio of the reference color. In addition,
The input / output characteristics shown in this figure are set under the following conditions. That is, such input / output characteristics are settings when Max base > Max ave , r ave > g ave > b ave , rateR base > rateG base > rateB base .

【0023】このように、第1〜第6においてカラーバ
ランスの補正条件が設定されると、次のステップS50
5においては、処理対象の画像データが、その処理空間
であるRGB空間の色空間に再変換される。詳細には、
画像メモリ401に記憶されているL*HC画像データ
は、画像処理部407bにロードされ、ここで、明度・
色相・彩度のL*HC空間からRGB3原色空間に変換
され、再び画像メモリ401に再記憶されるものであ
る。ここで行なわれる色空間変換処理について図6
(b)を参照して説明すると、画像メモリ401のL*
HC画像データは2次元LUT604を参照することに
よりHCの極座標系からa**の直交座標系に変換され
た後、図に示される行列演算式を実行する演算部605
によりRGB空間へ近似変換され、さらに、1次元LU
T606によりガンマ変換されて、RGB空間の画像デ
ータに変換される。
In this way, when the color balance correction conditions are set in the first to sixth steps, the next step S50
In 5, the image data to be processed is reconverted into the color space of the RGB space which is the processing space. In detail,
The L * HC image data stored in the image memory 401 is loaded into the image processing unit 407b, where the brightness /
The L * HC space of hue / saturation is converted to the RGB3 primary color space and is stored again in the image memory 401. The color space conversion process performed here is shown in FIG.
Explaining with reference to (b), L * of the image memory 401
The HC image data is converted from the polar coordinate system of HC to the Cartesian coordinate system of a * b * by referring to the two-dimensional LUT 604, and then the calculation unit 605 that executes the matrix calculation formula shown in the figure.
Approximate conversion to RGB space by, and one-dimensional LU
Gamma conversion is performed in T606, and the image data is converted into RGB space image data.

【0024】そして、ステップS506においては、画
像処理部407bが、設定されたLUTを参照して、変
換されたRGB空間の画像データに対し、そのカラーバ
ランスの補正を実行する。以上により、一連の画像補正
処理が完了する。このように、入力信号の最大値を保存
して、各原色成分比率を補正することにより、原画像の
有する全体的な色の濃さを保持したまま、色のバランス
のみを補正することが可能になる。この結果、カラーバ
ランス補正に先立って行なわれる明度補正・レンジ補正
の効果を損なうことなくカラーバランスを補正すること
が可能となる。
In step S506, the image processing unit 407b refers to the set LUT and corrects the color balance of the converted image data in the RGB space. With the above, a series of image correction processing is completed. In this way, by storing the maximum value of the input signal and correcting each primary color component ratio, it is possible to correct only the color balance while maintaining the overall color depth of the original image. become. As a result, it is possible to correct the color balance without impairing the effects of the lightness correction and range correction performed prior to the color balance correction.

【0025】なお、上述した各実施形態あっては、RG
B空間におけるカラーバランス補正を示したが、本発明
はそれに限定されるものでないことは明らかである。ま
た、画像処理システムに複数の基準色を与えて、補正曲
線を設定することも可能であることは容易に類推され
る。
In each of the above embodiments, the RG
Although color balance correction in B space has been shown, it is clear that the invention is not so limited. Further, it is easily inferred that it is also possible to give a plurality of reference colors to the image processing system and set the correction curve.

【0026】[0026]

【発明の効果】以上説明したように、本発明によれば、
色バランスのずれが目立ちやすい特定色領域のバランス
に着目したカラーバランス補正が可能となり、高品質な
適応的色処理が可能となる。
As described above, according to the present invention,
It is possible to perform color balance correction focusing on the balance of a specific color area where the color balance deviation is noticeable, and high-quality adaptive color processing is possible.

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

【図1】 本発明の第1実施形態にかかる画像処理装置
の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention.

【図2】 同実施形態において、基準色とその近傍領域
との位置関係の概念を説明するための図である。
FIG. 2 is a diagram for explaining the concept of the positional relationship between a reference color and its neighboring region in the same embodiment.

【図3】 (a)は基準色と代表色との位置関係の概念
を説明するための図であり、(b)はLUTの入出力特
性を示す図である。
FIG. 3A is a diagram for explaining the concept of the positional relationship between the reference color and the representative color, and FIG. 3B is a diagram showing the input / output characteristics of the LUT.

【図4】 本発明の第2実施形態にかかる画像処理装置
の構成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of an image processing apparatus according to a second embodiment of the present invention.

【図5】 同実施形態にかかる画像処理装置の動作を示
すフローチャートである。
FIG. 5 is a flowchart showing an operation of the image processing apparatus according to the same embodiment.

【図6】 (a)はRGB空間からL*HC空間への色
変換を行なうための構成を示すブロック図であり、
(b)はL*HC空間からRGB空間への色変換を行な
うための構成を示すブロック図である。
FIG. 6A is a block diagram showing a configuration for performing color conversion from RGB space to L * HC space,
(B) is a block diagram showing a configuration for performing color conversion from the L * HC space to the RGB space.

【図7】 (a)〜(d)はそれぞれ画像データにおけ
る明度のヒストグラムとしきい値との関係を示す図であ
る。
7A to 7D are diagrams showing a relationship between a histogram of brightness and a threshold value in image data.

【図8】 LUTの入出力特性を示す図である。FIG. 8 is a diagram showing input / output characteristics of an LUT.

【符号の説明】[Explanation of symbols]

101……基準色設定部(基準色設定手段)、102…
…色抽出部、103……代表値演算部(102および1
03により代表色演算手段)、104……条件設定部
(条件設定手段)、105……補正部(補正手段)
101 ... Standard color setting unit (standard color setting means), 102 ...
... Color extraction unit, 103 ... Representative value calculation unit (102 and 1
A representative color calculation means by 03, 104 ... Condition setting section (condition setting means), 105 ... Correction section (correction means)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 基準色を設定する基準色設定手段と、 入力された画像データから前記基準色と近傍の色を抽出
して、その色の代表色を算出する代表色演算手段と、 前記基準色と前記代表色とに基づいて、入力された画像
データに施すべき補正の条件を設定する条件設定手段
と、 設定された条件にしたがった補正を、入力された画像デ
ータに対して行なう補正手段とを具備することを特徴と
する画像処理装置。
1. A reference color setting means for setting a reference color, a representative color calculating means for extracting a color in the vicinity of the reference color from input image data, and calculating a representative color of the reference color, the reference color Condition setting means for setting a correction condition to be applied to the input image data based on the color and the representative color, and correction means for performing the correction according to the set condition on the input image data. An image processing apparatus comprising:
【請求項2】 前記条件設定手段は、前記代表色を前記
基準色に近づける条件を設定することを特徴とする請求
項1の画像処理装置。
2. The image processing apparatus according to claim 1, wherein the condition setting unit sets a condition for bringing the representative color closer to the reference color.
【請求項3】 前記条件設定手段は、前記代表色の各原
色階調を前記基準色の各原色階調にそれぞれ近づける条
件を設定することを特徴とする請求項1の画像処理装
置。
3. The image processing apparatus according to claim 1, wherein the condition setting unit sets a condition for bringing each primary color gradation of the representative color closer to each primary color gradation of the reference color.
【請求項4】 前記補正手段は、前記条件設定手段によ
り設定された条件を、入力された画像データ全体に対し
適用することを特徴とする請求項1の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the correction unit applies the condition set by the condition setting unit to the entire input image data.
【請求項5】 前記条件設定手段は、前記代表色の各原
色比率を前記基準色の各原色比率に近づける条件を設定
することを特徴とする請求項1の画像処理装置。
5. The image processing apparatus according to claim 1, wherein the condition setting unit sets a condition for bringing each primary color ratio of the representative color closer to each primary color ratio of the reference color.
JP8143036A 1996-06-05 1996-06-05 Image processing unit Pending JPH09326941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8143036A JPH09326941A (en) 1996-06-05 1996-06-05 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8143036A JPH09326941A (en) 1996-06-05 1996-06-05 Image processing unit

Publications (1)

Publication Number Publication Date
JPH09326941A true JPH09326941A (en) 1997-12-16

Family

ID=15329419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8143036A Pending JPH09326941A (en) 1996-06-05 1996-06-05 Image processing unit

Country Status (1)

Country Link
JP (1) JPH09326941A (en)

Cited By (7)

* 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
KR100791374B1 (en) * 2005-12-15 2008-01-07 삼성전자주식회사 Method and apparatus for image adaptive color adjustment of pixel in color gamut
JP2009060360A (en) * 2007-08-31 2009-03-19 Seiko Epson Corp Image processing apparatus, image processing method and computer program
JP2010154251A (en) * 2008-12-25 2010-07-08 Brother Ind Ltd Image processing unit and image processing program
JP2010154008A (en) * 2008-12-24 2010-07-08 Brother Ind Ltd Image processing unit and image processing program
US8428351B2 (en) 2008-12-24 2013-04-23 Brother Kogyo Kabushiki Kaisha Image processing device
US8787665B2 (en) 2008-12-24 2014-07-22 Brother Kogyo Kabushiki Kaisha Image processing device

Cited By (11)

* 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
US7092565B2 (en) 1999-06-25 2006-08-15 Minolta Co., Ltd. Image processor
KR100791374B1 (en) * 2005-12-15 2008-01-07 삼성전자주식회사 Method and apparatus for image adaptive color adjustment of pixel in color gamut
US7649657B2 (en) 2005-12-15 2010-01-19 Samsung Electronics Co., Ltd. Adaptive method and apparatus for adjustment of pixels in a color gamut based on a reference target color
JP2009060360A (en) * 2007-08-31 2009-03-19 Seiko Epson Corp Image processing apparatus, image processing method and computer program
JP2010154008A (en) * 2008-12-24 2010-07-08 Brother Ind Ltd Image processing unit and image processing program
US8428351B2 (en) 2008-12-24 2013-04-23 Brother Kogyo Kabushiki Kaisha Image processing device
US8705858B2 (en) 2008-12-24 2014-04-22 Brother Kogyo Kabushiki Kaisha Image processing device
US8787665B2 (en) 2008-12-24 2014-07-22 Brother Kogyo Kabushiki Kaisha Image processing device
JP2010154251A (en) * 2008-12-25 2010-07-08 Brother Ind Ltd Image processing unit and image processing program
US8411945B2 (en) 2008-12-25 2013-04-02 Brother Kogyo Kabushiki Kaisha Image processing device

Similar Documents

Publication Publication Date Title
JP3723604B2 (en) Image dependent color saturation correction method and apparatus for natural scene image in electronic document
JP4666274B2 (en) Color image processing apparatus and method
JP3640989B2 (en) Exposure changing method and image processing system
JP3676402B2 (en) Method and apparatus for cascading natural scene images
JP3759761B2 (en) Method and apparatus for changing sharpness
US4831434A (en) Method of correcting color saturation in electronic image processing
US8363125B2 (en) Image processing apparatus, image processing method, and computer program product
JPH06197216A (en) Texture soil eliminating method
JPH11331596A (en) Image processing method and its device
JPH0832827A (en) Gradation correction divice for digital image
JPH09326941A (en) Image processing unit
JP2906975B2 (en) Color image processing method and apparatus
JPH10283470A (en) Image processor, image processing method and recording medium
JP2001358957A (en) Image processing method and image processing unit and recording medium
JP3360476B2 (en) Image processing method and apparatus
JPH07152904A (en) Image processor
JP2001285638A (en) Image processing method
JP2929983B2 (en) Color image processing equipment
JP4083823B2 (en) Image processing device
US20060291015A1 (en) Applying multiple imaging processes to digital images
JP2000032287A (en) Image processor and image processing method
JP2000209437A (en) Image correction method and storage medium storing image correction program
JPH07203231A (en) Color picture processor
JPH0877350A (en) Image processor
JPH09270925A (en) Picture processor and picture processing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040604

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040706

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040902

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041109

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050412

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050613

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050621

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20050722