JP2001255864A - Color image processing method and color image processor - Google Patents

Color image processing method and color image processor

Info

Publication number
JP2001255864A
JP2001255864A JP2000063851A JP2000063851A JP2001255864A JP 2001255864 A JP2001255864 A JP 2001255864A JP 2000063851 A JP2000063851 A JP 2000063851A JP 2000063851 A JP2000063851 A JP 2000063851A JP 2001255864 A JP2001255864 A JP 2001255864A
Authority
JP
Japan
Prior art keywords
color
adjustment
input pixel
image processing
color 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.)
Pending
Application number
JP2000063851A
Other languages
Japanese (ja)
Inventor
Takafumi Ariyoshi
孝文 有吉
Noriaki Ikeda
典昭 池田
Tei Hayashi
禎 林
Hirotsugu Mikawa
洋次 三河
Hiroyasu Moriguchi
広安 森口
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.)
CHIPS TECHNOLOGY Inc I
I-CHIPS TECHNOLOGY Inc
Original Assignee
CHIPS TECHNOLOGY Inc I
I-CHIPS TECHNOLOGY Inc
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 CHIPS TECHNOLOGY Inc I, I-CHIPS TECHNOLOGY Inc filed Critical CHIPS TECHNOLOGY Inc I
Priority to JP2000063851A priority Critical patent/JP2001255864A/en
Publication of JP2001255864A publication Critical patent/JP2001255864A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To satisfactorily adjust only the specific color of a color image. SOLUTION: In this color image processing method, distances from a candidate color in color space with respect to input pixels which are successively inputted to the circuit are calculated and adjustment values to the pertinent pixels are calculated in accordance with these distances. Then, color adjustment is performed by adding these adjustment values to the pertinent input pixels.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はカラー画像処理方法
及び装置に関し、特に、カラー画像中の代表色を目標色
に調整するカラー画像処理方法及び装置に関する。
The present invention relates to a color image processing method and apparatus, and more particularly, to a color image processing method and apparatus for adjusting a representative color in a color image to a target color.

【0002】[0002]

【従来の技術】近年、画像処理技術の進歩に伴い、テレ
ビやパソコンのディスプレイに表示されるカラー画像の
色を微妙に調整することが可能となってきた。従来、カ
ラー画像の色を調整する場合には、Color Hue 調整やガ
ンマ補正などの技術を利用していた。
2. Description of the Related Art In recent years, with the advance of image processing technology, it has become possible to finely adjust the color of a color image displayed on a display of a television or a personal computer. Conventionally, when adjusting the color of a color image, techniques such as Color Hue adjustment and gamma correction have been used.

【0003】[0003]

【発明が解決しようとする課題】上記のような従来の色
調整技術は、色空間全体を調整するものであり、特定の
色に対して色調整を行うことはできなかった。
The above-mentioned conventional color adjustment technology adjusts the entire color space, and cannot perform color adjustment for a specific color.

【0004】また、RGBの色空間でカラー画像の色調
整を行う場合、何れかの色が飽和する(表現限度を超え
る)ことがあり、その結果、R,G,B成分の比率が変
わり、色ずれの原因となることがある。
When color adjustment of a color image is performed in the RGB color space, one of the colors may be saturated (exceeding the expression limit), and as a result, the ratio of the R, G, and B components changes, It may cause color misregistration.

【0005】本発明は上記のような状況に鑑みてなされ
たものであり、カラー画像の特定の色のみを良好に調整
できるカラー画像処理方法及びカラー画像処理装置を提
供することを目的とする。
The present invention has been made in view of the above situation, and has as its object to provide a color image processing method and a color image processing apparatus capable of favorably adjusting only a specific color of a color image.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するため
に、本発明の第1の態様に係るカラー画像処理方法にお
いては、順次入力される入力画素に対し、色空間におけ
る代表色からの距離を求め、この距離に応じて当該入力
画素に対する調整値を求める。そして、この調整値を当
該入力画素に加算することによって、色調整を行う。
In order to solve the above problems, in a color image processing method according to a first aspect of the present invention, a distance between a representative color in a color space and a representative color in a color space is determined by sequentially input pixels. Is obtained, and an adjustment value for the input pixel is obtained according to the distance. Then, color adjustment is performed by adding the adjustment value to the input pixel.

【0007】上記の方法において、色空間における入力
画素の代表色からの距離の最大値Loを設定し、当該入
力画素の代表色からの距離がその調整範囲内にある場合
にのみ、当該入力画素の色調整を行うことが好ましい。
この際、調整範囲内に存在する画素の色調整量データを
予め用意しておき、当該データを用いて入力画素の色調
整を行うことができる。
In the above method, the maximum value Lo of the distance of the input pixel from the representative color in the color space is set, and the input pixel is set only when the distance of the input pixel from the representative color is within the adjustment range. It is preferable to perform the color adjustment described above.
At this time, the color adjustment amount data of the pixels existing within the adjustment range is prepared in advance, and the color adjustment of the input pixel can be performed using the data.

【0008】本発明の第2の態様に係るカラー画像処理
装置は、順次入力される入力画素に対し、色空間におけ
る前記代表色からの距離を求め、当該距離に応じて当該
入力画素に対する調整値を算出する調整量演算回路と;
調整量演算回路によって算出された調整値を入力画素に
加算して、調整後の色データを生成する色調整回路とを
備えている。
A color image processing apparatus according to a second aspect of the present invention obtains a distance from the representative color in a color space with respect to input pixels that are sequentially input, and adjusts the input pixel in accordance with the distance. An adjustment amount calculation circuit for calculating
A color adjustment circuit that adds the adjustment value calculated by the adjustment amount calculation circuit to the input pixel to generate adjusted color data.

【0009】上記の装置において、好ましくは、色空間
における入力画素の代表色からの距離の最大値より小さ
な調整範囲を設定し、入力画素の代表色からの距離が調
整範囲内にあるか否かを判定する領域判定回路と;領域
判定回路の出力信号に基づき、入力画素が調整範囲内の
場合には色調整回路の出力を選択し、入力画素が調整範
囲外の場合には当該入力画素自身を選択して出力する選
択器とを更に備える。
In the above apparatus, preferably, an adjustment range smaller than the maximum value of the distance of the input pixel from the representative color in the color space is set, and whether or not the distance of the input pixel from the representative color is within the adjustment range is determined. An area determination circuit for determining the output of the color adjustment circuit based on the output signal of the area determination circuit if the input pixel is within the adjustment range, and the input pixel itself if the input pixel is out of the adjustment range And a selector for selecting and outputting the selected data.

【0010】本発明においては、色空間における代表色
からの距離に応じて補正値を算出しているため、特定の
色とその周辺の色を自然な感じで調整することが可能と
なる。
In the present invention, since the correction value is calculated according to the distance from the representative color in the color space, it is possible to adjust a specific color and its surrounding colors with a natural feeling.

【0011】上記のような本発明において、更に好まし
くは、調整値をRGB各色成分に加算する際に、RGB
の各色の飽和状態を検出し、その検出結果に基づいて加
算処理を調整する。これにより、何れかの色が飽和する
ことによる色ずれを防止することが可能となる。
In the present invention as described above, more preferably, when the adjustment value is added to each of the RGB color components, RGB
The saturation state of each color is detected, and the addition process is adjusted based on the detection result. This makes it possible to prevent color shift due to saturation of any color.

【0012】[0012]

【発明の実施の形態】以下本発明の実施の形態につい
て、添付図面に示された実施例に基づいて詳細に説明す
る。以下に示す実施例では、RGBディジタル画像のあ
る1つの色(代表色)を目標色に補正する方法及び装置
を例にとって説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in detail with reference to the embodiments shown in the accompanying drawings. In the following embodiments, a method and an apparatus for correcting one color (representative color) of an RGB digital image to a target color will be described as an example.

【0013】最初に本発明の基本原理について図1及び
図2を参照して説明する。図1は、RGB色空間におけ
る代表色と目標色との関係を示す。また、図2は、図1
に示すRGB色空間における入力画素の代表色からの距
離と、当該入力画素の補正量ΔPとの関係を示す。本発
明においては、図2に示すように、色空間における代表
色からの距離に応じて入力画素の補正量を算出すること
を第1の特徴とする。
First, the basic principle of the present invention will be described with reference to FIGS. FIG. 1 shows a relationship between a representative color and a target color in an RGB color space. FIG. 2 is similar to FIG.
7 shows the relationship between the distance from the representative color of the input pixel in the RGB color space and the correction amount ΔP of the input pixel. In the present invention, as shown in FIG. 2, a first feature is that a correction amount of an input pixel is calculated according to a distance from a representative color in a color space.

【0014】代表色からの距離と入力画素の補正量ΔP
との関係は、関数ΔP=f(x)で示すことができ、例
えば、図2の(1)、(2)、(3)のようなラインを
採用することができる。
The distance from the representative color and the correction amount ΔP of the input pixel
Can be expressed by a function ΔP = f (x), and for example, lines such as (1), (2), and (3) in FIG. 2 can be adopted.

【0015】ここで、入力画素のベクトル値を(Ri,
Gi,Bi)とし、代表色のベクトル値を(R
,B)とすると、RGB空間における入力画素の
代表色からの距離Lは、以下の式(数3)によって算出
することができる。
Here, the vector value of the input pixel is represented by (Ri,
Gi, Bi), and the vector value of the representative color is (R 0 ,
G 0 , B 0 ), the distance L of the input pixel from the representative color in the RGB space can be calculated by the following equation (Equation 3).

【0016】[0016]

【数3】 (Equation 3)

【0017】また、RGB空間における入力画素の代表
色からの距離Lは、以下の式(2)によっても近似的に
算出することができる。 L=|Ri−R|+|Gi−G|+|Bi−B| ・・・・(2) 式(2)を採用することにより、式(1)に比べて演算
数を大幅に減少させることができ、ハードウエア構成の
大幅な簡素化が可能となる。
The distance L of the input pixel from the representative color in the RGB space can be approximately calculated by the following equation (2). L = | Ri-R 0 | + | Gi-G 0 | + | Bi-B 0 | By adopting ... (2) Equation (2), greatly operand as compared with formula (1) And the hardware configuration can be greatly simplified.

【0018】次に、上述した本発明を実現するための実
施例について説明する。図3は、本発明の第1実施例に
係るカラー画像処理装置の構成を示す。第1実施例に係
るカラー画像処理装置は、補正領域を判定する領域判定
回路12と、入力画素Pinの補正値ΔPを算出する補
正値算出回路14と、入力画素Pinの補正処理を行う
補正処理回路18と、出力データPoutを切り替える
セレクタ16とを備えている。
Next, an embodiment for realizing the above-mentioned present invention will be described. FIG. 3 shows the configuration of the color image processing apparatus according to the first embodiment of the present invention. Color image processing apparatus according to the first embodiment performs the area determination circuit 12 determines the correction area, and the correction value calculating circuit 14 for calculating a correction value ΔP of the input pixel P in, the correction processing of the input pixel P in It includes a correction processing circuit 18 and a selector 16 for switching the output data Pout .

【0019】領域判定回路12には、入力画素データP
in(R,G,B)と、代表色の中心位置C(R
,B,G)と、代表色と入力画素とのRGB空間
における距離の最大値(許容値)Lとが供給される。
領域判定回路12の出力端子は、補正値算出回路14の
入力端子と、セレクタ16の入力端子(制御端子)とに
接続されている。図4には、領域判定回路12で採用さ
れる領域を示す。図4に示すように本実施例において
は、色空間における代表色からの距離Δrに対して入力
画素の補正量ΔPを線形的に変化させている。
The area determination circuit 12 receives the input pixel data P
in (R i , G i , B i ) and the center position C (R
0 , B 0 , G 0 ) and the maximum value (allowable value) L 0 of the distance between the representative color and the input pixel in the RGB space.
An output terminal of the area determination circuit 12 is connected to an input terminal of the correction value calculation circuit 14 and an input terminal (control terminal) of the selector 16. FIG. 4 shows an area used in the area determination circuit 12. As shown in FIG. 4, in this embodiment, the correction amount ΔP of the input pixel is linearly changed with respect to the distance Δr from the representative color in the color space.

【0020】本実施例においては、演算量を減らすため
に、色空間における代表色からの距離Δr(=L)を以
下の式によって算出する。 L=|Ri−R|+|Gi−G|+|Bi−B| なお、上述した式(1)によって色空間における代表色
からの距離Δr(=L)を算出可能であることは言うま
でもない。
In this embodiment, in order to reduce the amount of calculation, the distance Δr (= L) from the representative color in the color space is calculated by the following equation. L = | Ri-R 0 | + | Gi-G 0 | + | Bi-B 0 | Here, it can be calculated the distance [Delta] r (= L) from the representative color in the color space by equation (1) described above Needless to say.

【0021】ここで、R,G,Bの値を各々0〜255
とすると、色空間における代表色からの距離Δr(=
L)は最大で255×3=765の値をとる。補正値算
出回路14で765パターンのデータを保持するのは負
担が大きい。一方、色調整を行うときに代表色からの距
離Δr(=L)が200以上の範囲では、一般に補正の
必要が無く、補正量が0に近くなることが多い。このよ
うな状況に鑑みて、補正範囲Lを、例えば、代表色か
らの最大距離の約1/4以内の範囲に設定する。
Here, the values of R, G, and B are set to 0 to 255, respectively.
Then, the distance Δr from the representative color in the color space (=
L) takes a value of 255 × 3 = 765 at the maximum. Holding the 765 pattern data in the correction value calculation circuit 14 is burdensome. On the other hand, when the distance Δr (= L) from the representative color when performing color adjustment is in the range of 200 or more, there is generally no need for correction, and the correction amount is often close to zero. In view of such circumstances, the correction range L 0, for example, is set in the range of about 1/4 within a maximum distance from the representative color.

【0022】領域判定回路12では、上述した入力デー
タ(Pin,C,L)に基づいて、入力画素Pin
補正領域内にあるか否かを判定する。判定は以下の式に
基づいて行われる。 Δr/L≦1 または Δr≦L なお、ΔrはRGB色空間における入力画素Pinの代
表色Pまでの距離を示す。領域判定回路12の判定結
果(出力)は、セレクタ16に供給される。領域判定回
路12から補正値算出回路14には係数k(k=Δr/
)が供給(転送)される。
In the area determination circuit 12, the input data
TA (Pin, C, L0), The input pixel PinBut
It is determined whether or not it is within the correction area. The judgment is as follows
It is done based on. Δr / L0≦ 1 or Δr ≦ L0  Here, Δr is the input pixel P in the RGB color space.inOf
Color P0Indicates the distance to Determination result of the area determination circuit 12
The result (output) is supplied to the selector 16. Area judgment times
The coefficient k (k = Δr /
L0) Is supplied (transferred).

【0023】補正値算出回路14には、上述したkの他
に、代表色に対する補正値ΔCが供給される。この補正
値ΔCは定数とすることができる。補正値算出回路14
では、以下に示す式に基づいて入力画素Pinの補正値
ΔPを算出する。 ΔP=(1−k)×ΔC ここで、k=Δr/Lとなる。補正値算出回路14の
出力端子は補正処理回路18の入力端子に接続されてお
り、算出した補正値ΔPを供給するようになっている。
The correction value calculation circuit 14 is supplied with a correction value ΔC for the representative color in addition to k described above. This correction value ΔC can be a constant. Correction value calculation circuit 14
In calculates a correction value ΔP of the input pixel P in based on the equation shown below. In ΔP = (1-k) × ΔC where a k = Δr / L 0. An output terminal of the correction value calculation circuit 14 is connected to an input terminal of the correction processing circuit 18 so as to supply the calculated correction value ΔP.

【0024】上の式からわかるように、本実施例による
と、代表色からの距離Δrに応じて入力画素Pinの補
正値ΔPが変化する。すなわち、入力画素Pinと代表
色との距離Δrが大きくなると補正値ΔPは小さくな
る。逆に、入力画素Pinと代表色との距離Δrが小さ
くなると補正値ΔPは大きくなり、ΔCに近づく。
[0024] As can be seen from the above equation, according to the present embodiment, the correction value ΔP of the input pixel P in changes depending on the distance Δr from the representative color. That is, the correction value ΔP distance Δr is large between the input pixel P in the representative color is small. Conversely, the correction value ΔP distance Δr is reduced and the input pixel P in the representative color increases and approaches [Delta] C.

【0025】補正処理回路18には、補正値ΔPの他に
入力画素データPinが供給される。補正処理回路18
では、これらの入力データ(ΔP,Pin)を用いた以
下の式に基づいて入力画素の補正処理を行い、Pout
を算出する。 Pout=Pin+ΔP 上式によって算出された補正後の色データPoutは、
セレクタ16に供給される。
[0025] correction circuit 18, in addition to the input pixel data P in the correction value ΔP is supplied. Correction processing circuit 18
In, performs correction processing of the input pixel based on the following equation using these input data (ΔP, P in), P out
Is calculated. P out = P in + ΔP The corrected color data P out calculated by the above equation is
It is supplied to the selector 16.

【0026】セレクタ16には、領域判定回路12の出
力信号(判定結果)、補正後の色データPoutの他
に、入力画素データPinが供給される。セレクタ16
は、領域判定回路12からの判定結果に応じて、P
outとPinを選択的に出力する。すなわち、領域判
定回路12の判定により、入力画素Pinが補正領域外
の場合には、セレクタ16は入力画素PinをPout
として選択する。他方、領域判定回路12の判定によ
り、入力画素Pinが補正領域内の場合には、セレクタ
16は補正処理回路18から供給されるデータをP
outとして選択する。
The selector 16 is supplied with input pixel data Pin in addition to the output signal (judgment result) of the area judging circuit 12 and the corrected color data Pout . Selector 16
Is determined according to the determination result from the area determination circuit 12,
selectively outputs out and P in. That is, by determining the area determining circuit 12, when an input pixel P in is outside the correction area, the selector 16 inputs the pixel P in the P out
Select as On the other hand, by the determination of the area determination circuit 12, when an input pixel P in is within the correction area, the data selector 16 is supplied from the correction processing circuit 18 P
Select as out .

【0027】図5は、本発明の第2実施例に係るカラー
画像処理装置の構成を示す。なお、図3に示す第1実施
例の装置と同一又は対応する構成要素については、同一
の符号を付すものとする。第2実施例に係るカラー画像
処理装置は、補正領域を判定する領域判定回路12と、
入力画素Pinの補正値ΔPを算出する補正値算出回路
14と、入力画素Pinの補正処理を行う補正処理回路
18と、出力データP outを切り替えるセレクタ16
と;入力画素Pinに関する補正用データを保持するル
ックアップテーブル20とを備えている。
FIG. 5 shows a collar according to a second embodiment of the present invention.
1 shows a configuration of an image processing apparatus. The first embodiment shown in FIG.
Components that are the same or correspond to those in the example device are the same.
Shall be attached. Color image according to the second embodiment
The processing device includes: an area determination circuit 12 that determines a correction area;
Input pixel PinCorrection value calculation circuit for calculating the correction value ΔP
14 and the input pixel PinCorrection circuit that performs the correction process
18 and output data P outSelector 16 for switching
And; input pixel PinRetains correction data for
And a backup table 20.

【0028】領域判定回路12には、入力画素データP
in(R,G,B)と、代表色の中心位置C(R
,B,G)と、代表色と入力画素とのRGB空間
における距離の最大値(許容値)Lとが供給される。
領域判定回路12の出力端子は、ルックアップテーブル
20の入力端子と、セレクタ16の入力端子(制御端
子)とに接続されている。図6には、領域判定回路12
で採用される領域を示す。図6に示すように本実施例に
おいては、色空間における代表色からの距離Δrに対し
て入力画素の補正量ΔPを曲線的に変化させている。
The area determination circuit 12 receives the input pixel data P
in (R i , G i , B i ) and the center position C (R
0 , B 0 , G 0 ) and the maximum value (allowable value) L 0 of the distance between the representative color and the input pixel in the RGB space.
An output terminal of the area determination circuit 12 is connected to an input terminal of the lookup table 20 and an input terminal (control terminal) of the selector 16. FIG. 6 shows an area determination circuit 12.
Indicates the region adopted by. As shown in FIG. 6, in the present embodiment, the correction amount ΔP of the input pixel is changed in a curve with respect to the distance Δr from the representative color in the color space.

【0029】本実施例においては、演算量を減らすため
に、色空間における代表色からの距離Δr(=L)を以
下の式によって算出する。 L=|Ri−R|+|Gi−G|+|Bi−B| なお、上述した式(1)によって色空間における代表色
からの距離Δr(=L)を算出可能であることは言うま
でもない。
In this embodiment, in order to reduce the amount of calculation, the distance Δr (= L) from the representative color in the color space is calculated by the following equation. L = | Ri-R 0 | + | Gi-G 0 | + | Bi-B 0 | Here, it can be calculated the distance [Delta] r (= L) from the representative color in the color space by equation (1) described above Needless to say.

【0030】ここで、R,G,Bの値を各々0〜255
とすると、色空間における代表色からの距離Δr(=
L)は最大で255×3=765の値をとる。補正値算
出回路14で765パターンのデータを保持するのは負
担が大きい。一方、色調整を行うときに代表色からの距
離Δr(=L)が200以上の範囲では、一般に補正の
必要が無く、補正量が0に近くなることが多い。このよ
うな状況に鑑みて、補正範囲Lを、例えば、代表色か
らの最大距離の約1/4以内の範囲に設定する。
Here, the values of R, G, and B are set to 0 to 255, respectively.
Then, the distance Δr from the representative color in the color space (=
L) takes a value of 255 × 3 = 765 at the maximum. Holding the 765 pattern data in the correction value calculation circuit 14 is burdensome. On the other hand, when the distance Δr (= L) from the representative color when performing color adjustment is in the range of 200 or more, there is generally no need for correction, and the correction amount is often close to zero. In view of such circumstances, the correction range L 0, for example, is set in the range of about 1/4 within a maximum distance from the representative color.

【0031】領域判定回路12では、上述した入力デー
タ(Pin,C,L)に基づいて、入力画素Pin
補正領域内にあるか否かを判定する。判定は以下の式に
基づいて行われる。 Δr/L≦1 または Δr≦L なお、ΔrはRGB色空間における入力画素Pinの代
表色Pまでの距離を示す。領域判定回路12の判定結
果(出力)は、セレクタ16に供給される。領域判定回
路12からルックアップテーブル20には入力画素P
inの代表色Pまでの距離Δrが供給(転送)され
る。
In the area determination circuit 12, the input data
TA (Pin, C, L0), The input pixel PinBut
It is determined whether or not it is within the correction area. The judgment is as follows
It is done based on. Δr / L0≦ 1 or Δr ≦ L0  Here, Δr is the input pixel P in the RGB color space.inOf
Color P0Indicates the distance to Determination result of the area determination circuit 12
The result (output) is supplied to the selector 16. Area judgment times
From the path 12, the input pixel P
inRepresentative color P0Is supplied (transferred) to the distance Δr
You.

【0032】ルックアップテーブル20には、代表色P
からの距離Δrに対応した係数kが保持されている。
この係数kは、図6に示す曲線に従って予め定められて
いるものである。このようにルックアップテーブル20
を備えることにより、代表色からの距離に応じて変化す
る補正量を任意に設定することができる。また、本実施
例においては、補正範囲Lを、例えば、代表色からの
最大距離の約1/4以内の範囲に設定しているため、そ
の分のデータをルックアップテーブルに保持しておけば
良いことになり、メモリの有効利用を図ることができ
る。
In the lookup table 20, the representative color P
The coefficient k corresponding to the distance Δr from 0 is held.
This coefficient k is predetermined according to the curve shown in FIG. Thus, the lookup table 20
Is provided, it is possible to arbitrarily set a correction amount that changes according to the distance from the representative color. In the present embodiment, the correction range L 0, for example, because it is set in the range of about 1/4 within a maximum distance from the representative color, Oke holds that amount of data in a look-up table This makes it possible to effectively use the memory.

【0033】補正値算出回路14には、ルックアップテ
ーブル20から出力される係数kの他に、代表色に対す
る補正値ΔCが供給される。この補正値ΔCは定数とす
ることができる。補正値算出回路14では、以下に示す
式に基づいて入力画素Pinの補正値ΔPを算出する。 ΔP=(1−k)×ΔC 補正値算出回路14の出力端子は補正処理回路18の入
力端子に接続されており、算出した補正値ΔPを供給す
るようになっている。
The correction value calculation circuit 14 is supplied with a correction value ΔC for the representative color in addition to the coefficient k output from the lookup table 20. This correction value ΔC can be a constant. In the correction value calculating circuit 14 calculates a correction value ΔP of the input pixel P in based on the equation shown below. ΔP = (1−k) × ΔC The output terminal of the correction value calculation circuit 14 is connected to the input terminal of the correction processing circuit 18 so as to supply the calculated correction value ΔP.

【0034】上の式からわかるように、本実施例による
と、代表色からの距離Δrに応じて入力画素Pinの補
正値ΔPが変化する。すなわち、入力画素Pinと代表
色との距離Δrが大きくなると補正値ΔPは小さくな
る。逆に、入力画素Pinと代表色との距離Δrが小さ
くなると補正値ΔPは大きくなり、ΔCに近づく。ただ
し、その変化の割合は線形ではなく、図6に示す曲線に
沿ったものとなる。
[0034] As can be seen from the above equation, according to the present embodiment, the correction value ΔP of the input pixel P in changes depending on the distance Δr from the representative color. That is, the correction value ΔP distance Δr is large between the input pixel P in the representative color is small. Conversely, the correction value ΔP distance Δr is reduced and the input pixel P in the representative color increases and approaches [Delta] C. However, the rate of the change is not linear, but follows the curve shown in FIG.

【0035】補正処理回路18には、補正値ΔPの他に
入力画素データPinが供給される。補正処理回路18
では、これらの入力データ(ΔP,Pin)を用いた以
下の式に基づいて入力画素の補正処理を行い、Pout
を算出する。 Pout=Pin+ΔP 上式によって算出された補正後の色データPoutは、
セレクタ16に供給される。
[0035] correction circuit 18, in addition to the input pixel data P in the correction value ΔP is supplied. Correction processing circuit 18
In, performs correction processing of the input pixel based on the following equation using these input data (ΔP, P in), P out
Is calculated. P out = P in + ΔP The corrected color data P out calculated by the above equation is
It is supplied to the selector 16.

【0036】セレクタ16には、領域判定回路12の出
力信号(判定結果)、補正後の色データPoutの他
に、入力画素データPinが供給される。セレクタ16
は、領域判定回路12からの判定結果に応じて、P
outとPinを選択的に出力する。すなわち、領域判
定回路12の判定により、入力画素Pinが補正領域外
の場合には、セレクタ16は入力画素PinをPout
として選択する。他方、領域判定回路12の判定によ
り、入力画素Pinが補正領域内の場合には、セレクタ
16は補正処理回路18から供給されるデータをP
outとして選択する。
The selector 16 is supplied with input pixel data Pin in addition to the output signal (judgment result) of the area judging circuit 12 and the corrected color data Pout . Selector 16
Is determined according to the determination result from the area determination circuit 12,
selectively outputs out and P in. That is, by determining the area determining circuit 12, when an input pixel P in is outside the correction area, the selector 16 inputs the pixel P in the P out
Select as On the other hand, by the determination of the area determination circuit 12, when an input pixel P in is within the correction area, the data selector 16 is supplied from the correction processing circuit 18 P
Select as out .

【0037】図7は、本発明に係るカラー画像調整装置
の更に詳細な実施例の回路構成を示す。この実施例で
は、補正領域を正8面体とし、選択色を3色に採った場
合の例を示す。図7に示す装置は、距離算出回路(30
−0、30−1,30−2)と;領域判定回路(32−
0,32−1,32−2)と;補正量選択回路34と;
係数算出回路36と;補正量算出回路38と;色補正回
路40と;出力セレクタ42とを備えている。
FIG. 7 shows a circuit configuration of a more detailed embodiment of the color image adjusting apparatus according to the present invention. This embodiment shows an example in which the correction area is a regular octahedron and the selected colors are three. The device shown in FIG.
−0, 30-1, 30-2); and the area determination circuit (32-
0, 32-1, 32-2); a correction amount selection circuit 34;
A coefficient calculating circuit 36; a correction amount calculating circuit 38; a color correcting circuit 40; and an output selector 42.

【0038】距離算出回路(30−0,30−1,30
−2)は、各選択色(C,C,C)と入力画像デ
ータP(Ri,Gi,Bi)とのRGB空間上の距離
(Δr ,Δr、Δr)を求める。領域判定回路
(32−0,32−1,32−2)は、距離算出回路
(30−0,30−1,30−2)で求めた距離(Δr
,Δr、Δr)が、各選択色の領域内(L,L
,L)にあるか否かを判定する。そして、領域内に
ある場合には、フラグ(flg0, flg1, flg2)をたてる。
補正量選択回路34は、各領域判定回路(32−0,3
2−1,32−2)から出力されたフラグ(flg0, fl
g1, flg2)により、どの選択色における補正量(Δ
,ΔC、ΔC)、領域の逆数(1/L,1/
,1/L)を補正に用いるかを判定する。
The distance calculation circuit (30-0, 30-1, 30)
-2) indicates each selected color (C0, C1, C2) And input image data
Distance in the RGB space with the data P (Ri, Gi, Bi)
(Δr 0, Δr1, Δr2). Area judgment circuit
(32-0, 32-1, 32-2) are distance calculation circuits
The distance (Δr) obtained by (30-0, 30-1, 30-2)
0, Δr1, Δr2) Is within the area of each selected color (L0, L
1, L2) Is determined. And within the area
In some cases, the flag (flg0, flg1, flgTwo).
The correction amount selection circuit 34 includes a region determination circuit (32-0, 3).
2-1 and 32-2) output the flag (flg0, fl
g1, flgTwo), The correction amount (Δ
C0, ΔC1, ΔC2), The reciprocal of the area (1 / L)0, 1 /
L1, 1 / L2) Is used for correction.

【0039】係数算出回路36は、補正量を算出するた
めの係数kを算出する。補正量演算回路38は、係数演
算回路36から出力された係数kを用いてRGB各色毎
に補正量(ΔC,ΔC、ΔC)を算出する。色補
正回路40は、補正量算出回路38より出力された補正
量(ΔC,ΔC、ΔC)により入力画像データP
(Ri,Gi,Bi)を補正する。出力セレクタ42に
おいては、どの選択領域にも入らない(flg=0)場
合には、入力画像データP(Ri,Gi,Bi)をその
まま出力し、その他の場合には補正データP‘(R+Δ
,G+ΔC ,B+ΔC)を出力画像データP
として出力する。
The coefficient calculation circuit 36 calculates a correction amount.
Is calculated. The correction amount calculation circuit 38 calculates the coefficient
For each of the RGB colors using the coefficient k output from the arithmetic circuit 36
Correction amount (ΔCR, ΔCG, ΔCB) Is calculated. Color complement
The correction circuit 40 outputs the correction output from the correction amount calculation circuit 38.
Quantity (ΔCR, ΔCG, ΔCB), The input image data P
(Ri, Gi, Bi) is corrected. Output selector 42
In this case, if it does not fit in any selected area (flg = 0)
In this case, the input image data P (Ri, Gi, Bi) is
The correction data P ‘(R + Δ
CR, G + ΔC G, B + ΔCB) To output image data P0
Output as

【0040】図3、図5及び図7に示した本発明の実施
例に採用されている補正処理回路(色補正回路)では、
上記のような本来の色調整機能の他に、飽和処理機能を
付加することが好ましい。すなわち、RGBの色補正の
段階で何れかの色が飽和してしまうことを防止する処理
を行う。最初に、図8及び図9を参照して飽和処理の第
1の方法について説明する。以下の説明においては、上
述した色補正成分ΔP(=ΔR、ΔG、ΔB)を用いる
ものとする。
The correction processing circuit (color correction circuit) employed in the embodiment of the present invention shown in FIG. 3, FIG. 5, and FIG.
It is preferable to add a saturation processing function in addition to the original color adjustment function as described above. That is, a process for preventing any color from being saturated at the stage of RGB color correction is performed. First, a first method of the saturation processing will be described with reference to FIGS. In the following description, it is assumed that the above-described color correction component ΔP (= ΔR, ΔG, ΔB) is used.

【0041】第1の方法においては、最初に色補正成分
ΔP(=ΔR、ΔG、ΔB)をn(n>1)等分にし、
その値ΔP/n(=ΔR/n、ΔG/n、ΔB/n)を
各々の色に加算する。この段階で何れかの色が飽和した
場合には、加算を停止して得られた値を出力Pout
して出力する。何れの色も飽和しない場合には、更に、
値ΔP/n(=ΔR/n、ΔG/n、ΔB/n)を各々
の色に加算する。このような動作を最大でn回繰り返
し、何れかの色が飽和した時点で加算を停止して得られ
た値をPout信号(Rout,Gout,Bout
として出力する。
In the first method, first, the color correction components ΔP (= ΔR, ΔG, ΔB) are equally divided into n (n> 1),
The value ΔP / n (= ΔR / n, ΔG / n, ΔB / n) is added to each color. If any of the colors is saturated at this stage, the addition is stopped and the value obtained is output as the output P out . If none of the colors are saturated,
The value ΔP / n (= ΔR / n, ΔG / n, ΔB / n) is added to each color. Such an operation is repeated n times at the maximum, and when any color is saturated, the addition is stopped and the obtained value is used as a P out signal (R out , G out , B out ).
Output as

【0042】図8及び9に示すケースでは、n=4とし
ている。そして、この場合、3回目の加算で赤(R)が
飽和しているため、4回目の加算を行うことなく、P
in+3ΔP/4を出力信号Poutとする。
In the cases shown in FIGS. 8 and 9, n = 4. In this case, since the red (R) is saturated in the third addition, P is added without performing the fourth addition.
Let in + 3ΔP / 4 be the output signal P out .

【0043】飽和状態の検出は、所謂オーバーフロー検
出によって実現できる。すなわち、8ビット+8ビット
の加算を行うときには、加算数及び被加算数ともに最上
位に「0」を付加して9ビットにして演算を行う。加算
の結果が8ビットのレンジを越えた時には9ビット目に
「1」が入る。従って、この9ビット目をR,G,Bに
ついて検出することによって、その色が飽和しているか
否かが判別できる。
The detection of the saturated state can be realized by a so-called overflow detection. That is, when performing the addition of 8 bits + 8 bits, “0” is added to the highest order in both the addition number and the augend, and the operation is performed with 9 bits. When the result of the addition exceeds the 8-bit range, "1" is entered at the ninth bit. Therefore, by detecting the ninth bit for R, G, and B, it can be determined whether the color is saturated.

【0044】色補正成分ΔPの分割は、4等分に限定さ
れないが、4等分にすることによってハードウエア構成
を簡略化する(演算数を減らす)ことが出来る。
The division of the color correction component ΔP is not limited to four, but by dividing it into four, the hardware configuration can be simplified (the number of operations can be reduced).

【0045】次に、飽和処理の第2の方法について、図
10〜図12を参照して説明する。第2の方法において
は、最初にΔP/2(=ΔR/2、ΔG/2、Δ
B/2)を各々の色に加算する。この段階で何れかの
色が飽和した場合には、値ΔP/2(=ΔR/2
ΔG/2、ΔB/2)を各々の色から減算する。そ
して、最終的には、P+ΔP/2(=R+ΔR/
、G+ΔG/2、B+ΔB/2を出力信号P
out(Rout,Gout,Bout)として出力す
る。
Next, a second method of the saturation processing will be described with reference to FIGS. In the second method, first, ΔP / 2 1 (= ΔR / 2 1 , ΔG / 2 1 , Δ
B / 2 1 ) is added to each color. If any color is saturated at this stage, the value ΔP / 2 2 (= ΔR / 2 2 ,
ΔG / 2 2 , ΔB / 2 2 ) are subtracted from each color. Finally, P + ΔP / 2 2 (= R + ΔR /
2 2, G + ΔG / 2 2, B + ΔB / 2 2 the output signal P
out (R out , G out , B out ).

【0046】一方、値ΔP/2(=ΔR/2、ΔG
/2、ΔB/2)を各々の色に加算した時点で何れ
の色も飽和しない場合には、更に、値ΔP/2(=Δ
R/2、ΔG/2、ΔB/2)を各々の色に加算
して、加算処理を終了する。すなわち、P+3ΔP/2
(=R+3ΔR/2、G+3ΔG/2、B+3Δ
B/2を出力信号Pout(Rout,Gout,B
out)として出力する。
On the other hand, the value ΔP / 2 1 (= ΔR / 2 1 , ΔG
/ 2 1 , ΔB / 2 1 ) is added to each color, and if none of the colors is saturated, the value ΔP / 2 2 (= Δ
R / 2 2 , ΔG / 2 2 , ΔB / 2 2 ) are added to each color, and the addition process ends. That is, P + 3ΔP / 2
2 (= R + 3ΔR / 2 2 , G + 3ΔG / 2 2 , B + 3Δ
B / 2 2 is output to the output signal P out (R out , G out , B
out ).

【0047】なお、図10及び図11に示す実施例にお
いては、上記第2の方法で、分割数nとして「2」を採
用する。図12には、図10及び図11に示した飽和処
理の概念を示す。ここで、「n」は、加算を実行する回
数(段数)を示すものとする。
In the embodiment shown in FIGS. 10 and 11, "2" is adopted as the number of divisions n in the second method. FIG. 12 shows the concept of the saturation processing shown in FIGS. 10 and 11. Here, “n” indicates the number of times (the number of stages) of performing the addition.

【0048】第2の方法においても、飽和状態の検出
は、上述したオーバーフロー検出によって実現できる。
第2の方法によれば、2段階の加算(減算)処理によっ
て飽和処理を行うことができるため、第1の方法に比べ
て更にハードウエア構成を簡略化することが出来る。
Also in the second method, the detection of the saturated state can be realized by the overflow detection described above.
According to the second method, since the saturation processing can be performed by two-stage addition (subtraction) processing, the hardware configuration can be further simplified as compared with the first method.

【0049】以上、本発明の実施例について説明した
が、本発明はこれらの実施例に何ら限定されるものでは
なく、特許請求の範囲に示された技術的思想の範疇にお
いて変更可能なものである。
The embodiments of the present invention have been described above. However, the present invention is not limited to these embodiments, but can be modified within the scope of the technical idea described in the claims. is there.

【0050】[0050]

【発明の効果】以上説明したように、本発明において
は、色空間における代表色からの距離に応じて補正値を
算出しているため、特定の色とその周辺の色を自然な感
じで調整することが可能となる。
As described above, in the present invention, since the correction value is calculated according to the distance from the representative color in the color space, the specific color and the surrounding colors are adjusted with a natural feeling. It is possible to do.

【0051】また、色調整値をRGB各色成分に加算す
る際に、RGBの各色の飽和状態を検出し、その検出結
果に基づいて加算処理を調整する。これにより、何れか
の色が飽和することによる色ずれを防止することが可能
となる。
When adding the color adjustment value to each of the RGB color components, the saturation state of each of the RGB colors is detected, and the addition process is adjusted based on the detection result. This makes it possible to prevent color shift due to saturation of any color.

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

【図1】図1は、本発明の基本概念を示す説明図であ
り、RGB色空間における代表色と目標色との位置関係
を示す。
FIG. 1 is an explanatory diagram showing a basic concept of the present invention, and shows a positional relationship between a representative color and a target color in an RGB color space.

【図2】図2は、本発明の基本概念の演算方法を示すグ
ラフであり、色空間における代表色からの距離と補正量
との関係を示す。
FIG. 2 is a graph showing a calculation method of a basic concept of the present invention, and shows a relationship between a distance from a representative color in a color space and a correction amount.

【図3】図3は、本発明の第1実施例に係るカラー画像
調整装置の構成を示すブロック図である
FIG. 3 is a block diagram illustrating a configuration of a color image adjustment device according to the first embodiment of the present invention.

【図4】図4は、図3に示す実施例の作用を説明するた
めのグラフであり、色補正領域を示す。
FIG. 4 is a graph for explaining the operation of the embodiment shown in FIG. 3, and shows a color correction area.

【図5】図5は、本発明の第2実施例に係るカラー画像
調整装置の構成を示すブロック図である
FIG. 5 is a block diagram illustrating a configuration of a color image adjustment device according to a second embodiment of the present invention.

【図6】図6は、図5に示す実施例の作用を説明するた
めのグラフであり、色補正領域を示す。
FIG. 6 is a graph for explaining the operation of the embodiment shown in FIG. 5, and shows a color correction area.

【図7】図7は、本発明の更に詳細な実施例に係るカラ
ー画像調整装置の構成を示すブロック図である
FIG. 7 is a block diagram illustrating a configuration of a color image adjustment apparatus according to a more detailed embodiment of the present invention.

【図8】図8は、本発明の実施例に適用される色調整の
飽和処理における第1の方法を示すフローチャートであ
る。
FIG. 8 is a flowchart showing a first method in a color adjustment saturation process applied to the embodiment of the present invention.

【図9】図9は、図8に示す作用を模式的に示す説明図
である。
FIG. 9 is an explanatory diagram schematically showing the operation shown in FIG. 8;

【図10】図10は、本発明の実施例に適用される色調
整の飽和処理における第2の方法を示すフローチャート
である。
FIG. 10 is a flowchart illustrating a second method in the color adjustment saturation processing applied to the embodiment of the present invention.

【図11】図11は、図10に示す作用を模式的に示す
説明図である。
FIG. 11 is an explanatory diagram schematically showing the operation shown in FIG. 10;

【図12】図12は、図10及び図11に示す飽和処理
の概念を示す説明図である。
FIG. 12 is an explanatory diagram illustrating the concept of the saturation processing illustrated in FIGS. 10 and 11;

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

12 領域判定回路 14 補正値算出回路 16 セレクタ 18 補正処理回路 20 ルックアップテーブル(メモリ) 12 area determination circuit 14 correction value calculation circuit 16 selector 18 correction processing circuit 20 lookup table (memory)

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 9/64 H04N 1/46 Z (72)発明者 林 禎 東京都台東区池之端1丁目2番18号 住友 金属工業株式会社電子部品事業部内 (72)発明者 三河 洋次 東京都台東区池之端1丁目2番18号 住友 金属工業株式会社電子部品事業部内 (72)発明者 森口 広安 東京都台東区池之端1丁目2番18号 住友 金属工業株式会社電子部品事業部内 Fターム(参考) 5B057 CA01 CA08 CA13 CA16 CB01 CB08 CB13 CB16 CC01 CE17 CE18 CH07 CH08 CH18 DA17 DB03 DB06 DB09 DC03 DC05 DC07 5C066 AA03 AA13 CA05 EA05 EB01 GA01 KA12 KD02 KD06 KE01 KE02 KE03 KE09 KP02 KP03 5C077 MP08 PP27 PP28 PP32 PP37 PP39 PP43 PQ08 PQ12 PQ23 5C079 HB01 LA23 LA31 LB11 MA04 MA11 NA01 NA27 5C082 AA01 BA12 BA34 BB51 CA12 CA54 CA81 CA85 CB01 DA71 MM10 Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat II (Reference) H04N 9/64 H04N 1/46 Z (72) Inventor Tadashi Hayashi 1-2-18 Ikenota, Taito-ku, Tokyo Sumitomo Metal Industries Electronic Components Division, Inc. (72) Inventor Yoji Mikawa 1-2-18 Ikenota, Taito-ku, Tokyo Sumitomo Metal Industries, Ltd. Electronic Components Division (72) Inventor Hiroyasu Moriguchi 1-2-18, Ikenota, Taito-ku, Tokyo No. Sumitomo Metal Industries Co., Ltd. Electronic Components Division F-term (reference) KE09 KP02 KP03 5C077 MP08 PP27 PP28 PP32 PP37 PP39 PP43 PQ08 PQ12 PQ23 5C079 HB01 LA23 LA31 LB11 MA04 MA11 NA01 NA27 5C082 AA01 BA12 BA34 BB51 CA12 CA54 CA81 CA85 CB01 DA71 MM10

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】カラー画像中の代表色を目標色に調整する
カラー画像処理方法において、 順次入力される入力画素に対し、色空間における前記代
表色からの距離を求め;前記求められた距離に応じて前
記入力画素に対する調整値を求め;前記調整値を前記入
力画素に加算することによって、当該入力画素の色調整
を行うことを特徴とするカラー画像処理方法。
1. A color image processing method for adjusting a representative color in a color image to a target color, wherein a distance from the representative color in a color space is determined for input pixels sequentially input; A color image processing method comprising: determining an adjustment value for the input pixel in response to the adjustment value; and adding the adjustment value to the input pixel to adjust the color of the input pixel.
【請求項2】前記カラー画像はRGBによって表現され
るディジタル画像であり、前記色空間はRGB色空間で
あることを特徴とする請求項1に記載のカラー画像処理
方法。
2. The color image processing method according to claim 1, wherein said color image is a digital image represented by RGB, and said color space is an RGB color space.
【請求項3】前記入力画素のベクトル値を(Ri,G
i,Bi)とし、前記代表色のベクトル値を(R,G
,B)とし、RGB空間における前記入力画素の代
表色からの距離Lを、以下の式のいずれかによって算出
することを特徴とする請求項2に記載のカラー画像処理
方法。 L=|Ri−R|+|Gi−G|+|Bi−B| 【数1】
3. The vector value of the input pixel is represented by (Ri, G
i, Bi), and the vector value of the representative color is (R 0 , G
0, B 0) and then, the color image processing method according to claim 2, wherein the distance L from the representative color of the input pixel in the RGB space, that is calculated by either of the following formulas. L = | Ri-R 0 | + | Gi-G 0 | + | Bi-B 0 | [number 1]
【請求項4】前記調整値を前記入力画素のRGB各色成
分に加算する際に、前記RGBの各色の飽和状態を検出
し、その検出結果に基づいて加算処理を調整することを
特徴とする請求項1,2又は3に記載のカラー画像処理
方法。
4. The method according to claim 1, wherein when the adjustment value is added to each of the RGB components of the input pixel, a saturation state of each of the RGB colors is detected, and the addition process is adjusted based on the detection result. Item 4. The color image processing method according to item 1, 2, or 3.
【請求項5】前記調整値をRGB各色成分に加算する際
に、当該調整値を分割し、分割した調整値を段階的に前
記入力画素のRGB各成分に加算することを特徴とする
請求項4に記載のカラー画像処理方法。
5. The method according to claim 1, wherein, when adding the adjustment value to each of the RGB components, the adjustment value is divided, and the divided adjustment values are added stepwise to the RGB components of the input pixel. 5. The color image processing method according to item 4.
【請求項6】前記調整値をΔPとした時に、当該調整値
ΔPをΔP/4に4等分し、RGB何れかの色が飽和す
るまでΔP/4を各色成分に対して加算することを特徴
とする請求項5に記載のカラー画像処理方法。
6. When the adjustment value is ΔP, the adjustment value ΔP is divided into four equal to ΔP / 4, and ΔP / 4 is added to each color component until one of the RGB colors is saturated. The color image processing method according to claim 5, wherein:
【請求項7】前記調整値をΔPとした時に、前記RGB
の各色成分に対して、最初にΔP/2を加算し、 前記ΔP/2の加算によって、前記RGB何れかの色が
飽和した場合には、RGB各色からΔP/4を減算し、 前記ΔP/2の加算によって、前記RGB何れの色も飽
和しない場合には、RGB各色成分に対して更にΔP/
4を加算することを特徴とする請求項5に記載のカラー
画像処理方法。
7. When the adjustment value is ΔP, the RGB values
ΔP / 2 is first added to each of the color components, and if any of the RGB colors is saturated by the addition of the ΔP / 2, ΔP / 4 is subtracted from each of the RGB colors, and the ΔP / If the addition of 2 does not saturate any of the RGB colors, ΔP /
6. The color image processing method according to claim 5, wherein 4 is added.
【請求項8】前記色空間における前記入力画素の代表色
からの距離の最大値より小さな調整範囲を設定し、 前記入力画素の代表色からの距離が前記調整範囲内にあ
る場合にのみ、当該入力画素の色調整を行うことを特徴
とする請求項1,2,3,4,5,6又は7に記載のカ
ラー画像処理方法。
8. An adjustment range smaller than a maximum value of a distance from the representative color of the input pixel in the color space is set, and only when the distance of the input pixel from the representative color is within the adjustment range, 8. The color image processing method according to claim 1, wherein color adjustment of input pixels is performed.
【請求項9】前記調整範囲は、前記代表色からの最大距
離の約1/4以内の範囲であることを特徴とする請求項
8に記載のカラー画像処理方法。
9. The color image processing method according to claim 8, wherein the adjustment range is a range within about 1 / of a maximum distance from the representative color.
【請求項10】前記調整範囲内に存在する画素の色調整
量データを予め用意しておき、当該データを用いて前記
調整範囲内にある入力画素の色調整を行うことを特徴と
する請求項8又は9に記載のカラー画像処理方法。
10. A color adjustment amount data of a pixel existing in the adjustment range is prepared in advance, and color adjustment of an input pixel in the adjustment range is performed using the data. 10. The color image processing method according to 8 or 9.
【請求項11】カラー画像中の代表色を目標色に調整す
るカラー画像処理装置において、 順次入力される入力画素に対し、色空間における前記代
表色からの距離を求め、当該距離に応じて前記入力画素
に対する調整値を算出する調整量演算回路と;前記調整
量演算回路によって算出された前記調整値を前記入力画
素に加算して、調整後の色データを生成する色調整回路
とを備えたことを特徴とするカラー画像処理装置。
11. A color image processing apparatus for adjusting a representative color in a color image to a target color, wherein a distance from the representative color in a color space is determined for an input pixel sequentially input, and the distance is determined according to the distance. An adjustment amount calculation circuit that calculates an adjustment value for an input pixel; and a color adjustment circuit that adds the adjustment value calculated by the adjustment amount calculation circuit to the input pixel to generate adjusted color data. A color image processing apparatus characterized by the above-mentioned.
【請求項12】前記カラー画像はRGBによって表現さ
れるディジタル画像であり、前記色空間はRGB色空間
であることを特徴とする請求項11に記載のカラー画像
処理装置。
12. The color image processing apparatus according to claim 11, wherein said color image is a digital image represented by RGB, and said color space is an RGB color space.
【請求項13】前記入力画素のベクトル値を(Ri,G
i,Bi)とし、前記代表色のベクトル値を(R,G
,B)とし、RGB空間における前記入力画素の代
表色からの距離Lを、以下の何れかの式によって算出す
ることを特徴とする請求項12に記載のカラー画像処理
装置。 L=|Ri−R|+|Gi−G|+|Bi−B| 【数2】
13. The vector value of the input pixel is represented by (Ri, G
i, Bi), and the vector value of the representative color is (R 0 , G
0, B 0) and then, the color image processing apparatus according to claim 12, wherein the distance L from the representative color of the input pixel in the RGB space, that is calculated by either of the following equations. L = | Ri-R 0 | + | Gi-G 0 | + | Bi-B 0 | [number 2]
【請求項14】前記色調整回路は、前記調整値を前記入
力画素のRGB各色成分に加算する際に、前記RGBの
各色の飽和状態を検出し、その検出結果に基づいて加算
処理を調整する飽和処理を行うことを特徴とする請求項
11,12又は13に記載のカラー画像処理装置。
14. The color adjustment circuit detects a saturation state of each of the RGB colors when adding the adjustment value to each of the RGB color components of the input pixel, and adjusts an addition process based on the detection result. 14. The color image processing apparatus according to claim 11, wherein a saturation process is performed.
【請求項15】前記色調整回路は、前記調整量をRGB
各色成分に加算する際に、当該調整量を分割し、分割し
た調整量を段階的に前記入力画素のRGB成分に付加す
ることを特徴とする請求項14に記載のカラー画像処理
装置。
15. The color adjustment circuit according to claim 15, wherein the adjustment amount is RGB.
15. The color image processing apparatus according to claim 14, wherein, when adding to each color component, the adjustment amount is divided, and the divided adjustment amounts are added stepwise to the RGB components of the input pixel.
【請求項16】前記色調整回路は、前記調整値をΔPと
した時に、当該調整値ΔPをΔP/4に4等分し、RG
B何れかの色が飽和するまでΔP/4を各色成分に対し
て加算することを特徴とする請求項15に記載のカラー
画像処理装置。
16. The color adjustment circuit, when the adjustment value is ΔP, divides the adjustment value ΔP into four equal to ΔP / 4,
16. The color image processing apparatus according to claim 15, wherein ΔP / 4 is added to each color component until one of the colors B is saturated.
【請求項17】前記色調整回路は、前記調整値をΔPと
した時に、前記RGBの各色に対して、最初にΔP/2
を加算し、 前記ΔP/2の加算によって、前記RGB何れかの色が
飽和した場合には、RGB各色からΔP/4を減算し、 前記ΔP/2の加算によって、前記RGB何れの色も飽
和しない場合には、RGB各色に対して更にΔP/4を
加算することを特徴とする請求項15に記載のカラー画
像処理装置。
17. When the adjustment value is ΔP, the color adjustment circuit first sets ΔP / 2 for each of the RGB colors.
If any of the RGB colors is saturated by the addition of ΔP / 2, subtract ΔP / 4 from each of the RGB colors, and any of the RGB colors is saturated by the addition of ΔP / 2. 16. The color image processing apparatus according to claim 15, wherein if not, ΔP / 4 is further added to each of the RGB colors.
【請求項18】前記色空間における前記入力画素の代表
色からの距離の最大値Loを設定し、前記入力画素の代
表色からの距離が前記調整範囲内にあるか否かを判定す
る領域判定回路と;前記領域判定回路の出力信号に基づ
き、前記入力画素が前記調整範囲内の場合には前記色調
整回路の出力を選択し、前記入力画素が前記調整範囲外
の場合には当該入力画素自身を選択して出力する選択器
とを更に備えたことを特徴とする請求項11,12,1
3,14,15,16又は17に記載のカラー画像処理
装置。
18. A region determination for setting a maximum value Lo of a distance of the input pixel from a representative color in the color space and determining whether the distance of the input pixel from the representative color is within the adjustment range. A circuit, based on an output signal of the area determination circuit, selects an output of the color adjustment circuit when the input pixel is within the adjustment range, and selects an input pixel when the input pixel is out of the adjustment range. 11. A device according to claim 11, further comprising a selector for selecting and outputting the selected device.
18. The color image processing apparatus according to 3, 14, 15, 16, or 17.
【請求項19】前記領域判定回路において、前記調整範
囲として、前記代表色からの最大距離の約1/4以内の
範囲とすることを特徴とする請求項18に記載のカラー
画像処理装置。
19. The color image processing apparatus according to claim 18, wherein in the area determination circuit, the adjustment range is a range within about 4 of a maximum distance from the representative color.
【請求項20】前記調整範囲内に存在する全ての画素の
色調整量データを保持するテーブルを更に備え、 前記調整量演算回路は、前記テーブルから読み出される
データに基づいて前記入力画素の調整値を算出すること
を特徴とする請求項18又は19に記載のカラー画像処
理装置。
20. The image processing apparatus according to claim 20, further comprising: a table for holding color adjustment amount data of all the pixels present in the adjustment range, wherein the adjustment amount operation circuit adjusts the input pixel based on the data read from the table. 20. The color image processing apparatus according to claim 18, wherein
JP2000063851A 2000-03-08 2000-03-08 Color image processing method and color image processor Pending JP2001255864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000063851A JP2001255864A (en) 2000-03-08 2000-03-08 Color image processing method and color image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000063851A JP2001255864A (en) 2000-03-08 2000-03-08 Color image processing method and color image processor

Publications (1)

Publication Number Publication Date
JP2001255864A true JP2001255864A (en) 2001-09-21

Family

ID=18583647

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000063851A Pending JP2001255864A (en) 2000-03-08 2000-03-08 Color image processing method and color image processor

Country Status (1)

Country Link
JP (1) JP2001255864A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7623704B2 (en) 2003-01-31 2009-11-24 Fuji Xerox Co. Ltd. Color processing method, color processing apparatus, and storage medium
CN101867829A (en) * 2009-04-20 2010-10-20 富士胶片株式会社 Color-image representative color decision apparatus and control its method of operating

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7623704B2 (en) 2003-01-31 2009-11-24 Fuji Xerox Co. Ltd. Color processing method, color processing apparatus, and storage medium
CN101867829A (en) * 2009-04-20 2010-10-20 富士胶片株式会社 Color-image representative color decision apparatus and control its method of operating

Similar Documents

Publication Publication Date Title
US9483848B2 (en) Image processing apparatus having a plurality of image processing blocks that are capable of real-time processing of an image signal
US6724435B2 (en) Method for independently controlling hue or saturation of individual colors in a real time digital video image
US5452018A (en) Digital color correction system having gross and fine adjustment modes
US6642962B1 (en) Merged pipeline for color interpolation and edge enhancement of digital images
US7292207B1 (en) Computing blending functions for the tiling of overlapped video projectors
JP4042736B2 (en) Image processing apparatus and image processing method
US7986833B2 (en) Image processing method and apparatus for color enhancement and correction
US6122012A (en) Method of selective color control of digital video images
US5943143A (en) Image processing system having color adjusting features
KR20060125482A (en) Image processing apparatus, liquid crystal display apparatus, and color correction method
CN111861922A (en) Method and device for adjusting color correction matrix and storage medium
US8064693B2 (en) Methods of and apparatus for adjusting colour saturation in an input image
US20020196264A1 (en) Image compensation methods and apparatus using corrections zones
US6894720B2 (en) Method and apparatus for applying tone mapping functions to color images
US20050007497A1 (en) Method and apparatus for compensating for chrominance saturation
JPH0243688A (en) Image processor
US20050169522A1 (en) Color mapping circuit
US20030035069A1 (en) Chrominance signal processing apparatus, image-sensing apparatus and control methods for same
JP2001255864A (en) Color image processing method and color image processor
US20050219259A1 (en) Color correction of images while maintaining constant luminance
EP1895781B1 (en) Method of and apparatus for adjusting colour saturation
US7372989B2 (en) Color misregistration reducer
JPH03279996A (en) Method and device for character and pattern processing
JP2001223911A (en) Color image processing method and color image processor
KR20050046544A (en) A circuit for processing individual color correction