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

Color image processing method and color image processor

Info

Publication number
JP2001223911A
JP2001223911A JP2000034956A JP2000034956A JP2001223911A JP 2001223911 A JP2001223911 A JP 2001223911A JP 2000034956 A JP2000034956 A JP 2000034956A JP 2000034956 A JP2000034956 A JP 2000034956A JP 2001223911 A JP2001223911 A JP 2001223911A
Authority
JP
Japan
Prior art keywords
color
input pixel
adjustment
image processing
data
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
JP2000034956A
Other languages
Japanese (ja)
Inventor
Tei Hayashi
禎 林
Takafumi Ariyoshi
孝文 有吉
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 JP2000034956A priority Critical patent/JP2001223911A/en
Publication of JP2001223911A publication Critical patent/JP2001223911A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a color image processor that can obtain a natural image even when a plurality of selection colors close to each other is simultaneously selected. SOLUTION: An adjustment area for color adjustment is set for every selection color so to discriminate whether or not a received pixel is set in the adjustment area for every selection color. A distance from the selection color of the received pixel in a color space is obtained for every selection color and the adjustment quantity of the received pixel is obtained on the basis of the distance from each selection color. Then the color adjustment of the received pixel is processed on the basis of the calculated adjustment quantity.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はカラー画像の色調整
技術に関し、特に、近接する複数色を補正(調整)する
方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color adjustment technique for a color image, and more particularly to a method and apparatus for correcting (adjusting) a plurality of adjacent colors.

【0002】[0002]

【従来の技術】一般に、カラー画像における色の表現方
式としては、テレビ等に代表されるYUV方式とパソコ
ンに代表されるRGB方式とがある。YUV方式におい
ては、輝度(Y)と色成分(UV)によって画像の色を
特定する。一方、RGB方式においては、R(赤),G
(緑),B(青)の各成分の比率によって色を特定す
る。
2. Description of the Related Art In general, there are a YUV system represented by a television and an RGB system represented by a personal computer as a method of expressing colors in a color image. In the YUV method, the color of an image is specified by luminance (Y) and color component (UV). On the other hand, in the RGB system, R (red), G
The color is specified by the ratio of each component of (green) and B (blue).

【0003】YUV、RGBの何れの色空間において
も、画像の色調整(補正)を行う場合、代表色(選択
色)を指定し、その代表色及びその近傍の色を調整す
る。ところで、近年、画像処理技術の進歩及び需要者の
要求から、カラー画像中の複数の色を調整する必要が生
じてきている。
In performing color adjustment (correction) of an image in any of the YUV and RGB color spaces, a representative color (selected color) is designated, and the representative color and its neighboring colors are adjusted. By the way, in recent years, it has been necessary to adjust a plurality of colors in a color image due to advances in image processing technology and demands of consumers.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来、
カラー画像中の複数の選択色を調整するに際し、選択色
が互いに近接する場合の処理に関する明確な方法が確立
されていなかった。このため、近接する複数の選択色を
同時に調整した場合に、自然な画像を得るのが困難であ
った。
However, conventionally,
When adjusting a plurality of selected colors in a color image, a clear method for processing when the selected colors are close to each other has not been established. For this reason, it has been difficult to obtain a natural image when a plurality of adjacent selected colors are simultaneously adjusted.

【0005】また、RGBの色空間でカラー画像の色調
整を行う場合、何れかの色が飽和する(表現限度を超え
る)ことがあり、その結果、R,G,B成分の比率が変
わり、これが色ずれの原因となることがある。一方、Y
UV空間で画像の色調整処理を行う場合でも、色差U,
Vの何れかが飽和して色ずれの原因となることがある。
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 R, G, and B components changes, This may cause color misregistration. On the other hand, Y
Even when performing color adjustment processing of an image in the UV space, the color difference U,
Any of V may be saturated, causing color shift.

【0006】本発明は上記のような状況に鑑みてなされ
たものであり、互いに近接する複数の選択色を同時に調
整した場合にも自然な画像が得られるカラー画像処理方
法及びカラー画像処理装置を提供することを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above situation, and provides a color image processing method and a color image processing apparatus capable of obtaining a natural image even when a plurality of selected colors adjacent to each other are simultaneously adjusted. The purpose is to provide.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
に、本発明の第1の態様に係るカラー画像処理方法にお
いては、調整を行う調整領域を複数の選択色毎に設定
し、入力画素が調整領域内か否かを複数の選択色毎に判
定する。色空間における入力画素の選択色からの距離を
複数の選択色毎に求め、各選択色からの距離に基づいて
入力画素の調整量を求める。そして、算出された調整量
に基づいて、入力画素の色調整処理を行う。
In order to solve the above-mentioned problems, in a color image processing method according to a first aspect of the present invention, an adjustment area to be adjusted is set for each of a plurality of selected colors, and input pixels are adjusted. Is determined for each of the plurality of selected colors. The distance of the input pixel from the selected color in the color space is determined for each of the plurality of selected colors, and the adjustment amount of the input pixel is determined based on the distance from each selected color. Then, based on the calculated adjustment amount, color adjustment processing of the input pixel is performed.

【0008】本発明の第2の態様に係るカラー画像処理
装置は、調整を行う調整領域を指定するデータを複数の
選択色毎に保持する第1のデータ保持手段(14)と;
第1のデータ保持手段から供給されるデータに基づき、
入力画素が調整領域内か否かを複数の選択色毎に判定す
る領域判定手段(24)と;色空間における入力画素の
複数の選択色からの距離に関するデータを算出する距離
データ算出手段(26)と;距離データ算出手段から供
給されるデータに基づき、複数の選択色毎に、入力画素
の色調整処理を行う調整処理手段(28)と;領域判定
手段における判定の結果、入力画素が複数の選択色中の
何れかの調整領域内にある場合には調整処理手段の出力
を選択し、何れの領域にも含まれない場合には当該入力
画素のデータをそのまま選択して出力する出力手段(3
0,32)とを備えている。
[0008] A color image processing apparatus according to a second aspect of the present invention comprises: first data holding means (14) for holding, for each of a plurality of selected colors, data designating an adjustment area to be adjusted;
Based on the data supplied from the first data holding means,
Area determination means (24) for determining, for each of the plurality of selected colors, whether or not the input pixel is within the adjustment area; distance data calculating means (26) for calculating data relating to the distance of the input pixel from the plurality of selected colors in the color space Adjustment processing means (28) for performing color adjustment processing of input pixels for each of a plurality of selected colors based on data supplied from the distance data calculation means; and, as a result of determination by the area determination means, Output means for selecting the output of the adjustment processing means if it is within any of the adjustment areas in the selected color, and selecting and outputting the data of the input pixel as it is if not included in any of the areas (3
0, 32).

【0009】上記のような本発明においては、カラー画
像内に存在する複数色(選択色)を同時に補正するに際
し、これらの選択色が各々近接している場合にも、自然
な色調整ができるという効果がある。
In the present invention as described above, when a plurality of colors (selected colors) existing in a color image are simultaneously corrected, natural color adjustment can be performed even when these selected colors are close to each other. This has the effect.

【0010】上記のような本発明において、更に好まし
くは、調整値を各色成分に加算する際に、各成分の飽和
状態を検出し、その検出結果に基づいて加算処理を調整
する。これにより、何れかの色成分が飽和することによ
る色ずれを防止することが可能となる。
In the present invention as described above, more preferably, when the adjustment value is added to each color component, the saturation state of each component 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 component.

【0011】[0011]

【発明の実施の形態】以下本発明の実施の形態につい
て、添付図面に示された実施例に基づいて詳細に説明す
る。以下に示す実施例では、RGBディジタル画像の近
接する複数の選択色を補正する方法及び装置を例にとっ
て説明する。なお、明細書及び図面中において、「P」
及び「C」はRGB色空間におけるベクトル値を示す。
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 embodiment described below, a method and an apparatus for correcting a plurality of selected colors close to each other in an RGB digital image will be described as an example. In the description and drawings, "P"
And “C” indicate a vector value in the RGB color space.

【0012】最初に本発明の基本原理について図1を参
照して説明する。図1は、本発明の実施例に係るカラー
画像の色調整領域判定方法の概念を説明するための図で
あり、RGB色空間を示す。図1中、(1)は近接する
2つの選択色a,bの関係を示し、(2)は近接する3
つの選択色a,b,cの関係を示し、(3)は近接する
4つ以上の選択色a,b,c,dの関係を示す。
First, the basic principle of the present invention will be described with reference to FIG. FIG. 1 is a diagram for explaining the concept of a color adjustment region determination method for a color image according to an embodiment of the present invention, and shows an RGB color space. In FIG. 1, (1) shows the relationship between two selected colors a and b that are close to each other, and (2) shows the relationship between the three selected colors a and b.
(3) shows the relationship between four or more adjacent selected colors a, b, c, and d.

【0013】本実施例においては、図1(2)に示すよ
うに、3つの選択色を基準に色修正を行う。(3)に示
すように、4つ以上の選択色が近接する場合、1色の補
正領域を広くしたのと同じと見なすことができ、また、
色修正に関する演算をできるだけ簡素化するために以下
に示す実施例では3色近接のケースを基準に考える。
In the present embodiment, as shown in FIG. 1B, color correction is performed based on three selected colors. As shown in (3), when four or more selected colors are close to each other, it can be regarded as the same as increasing the correction area of one color.
In order to simplify the operation relating to the color correction as much as possible, the following embodiment will be described based on the case where three colors are close to each other.

【0014】図2は、本発明の実施例に係るカラー画像
処理装置の構成を示す。図2に示すカラー画像処理装置
は、入力画素のデータPin(ベクトル値)を出力する
画像入力装置12と、修正領域指定用メモリ14と、代
表色(選択色)の色データC ,C,C(ベクトル
値)を保持する代表色指定用メモリ16と、代表色の修
正量ΔC(ΔR,ΔG,ΔB)を保持する修正量指定用
メモリ18とを備えている。修正領域指定用メモリ14
は、各選択色と入力画素(補正対象色)とのRGB空間
における距離の最大値(L,L,L)の逆数(1
/L,1/L ,1/L)を保持する。距離の最大
値(L,L,L)は、選択色毎の補正領域の境界
を示す。
FIG. 2 shows a color image according to an embodiment of the present invention.
1 shows a configuration of a processing device. Color image processing apparatus shown in FIG.
Is the input pixel data PinOutput (vector value)
An image input device 12, a memory 14 for specifying a correction area,
Color data C of color specification (selection color) 1, C2, C3(vector
), And a representative color designating memory 16 for storing the representative colors.
For specifying the correction amount that holds the positive amount ΔC (ΔR, ΔG, ΔB)
And a memory 18. Correction area designation memory 14
Is the RGB space between each selected color and the input pixel (correction target color)
Of the distance at (L1, L2, L3) (1)
/ L1, 1 / L 2, 1 / L3) Hold. Maximum distance
Value (L1, L2, L3) Is the boundary of the correction area for each selected color
Is shown.

【0015】本実施例に係るカラー画像処理装置は、更
に、色補正領域を判定する色補正領域判定回路24と、
色補正用の係数(Δr,Δr,Δr)を算出する
係数決定回路26と、入力画素(Pin)に対して補正
処理を行う補正演算回路28と、セレクタ30と、画像
出力装置32とを備えている。色補正用の係数(Δ
,Δr,Δr)は、何れも0〜1の値を採る。
The color image processing apparatus according to this embodiment is
A color correction area determination circuit 24 for determining a color correction area;
Coefficient for color correction (Δr1, Δr2, Δr3)
The coefficient determination circuit 26 and an input pixel (Pin)
Correction operation circuit 28 for performing processing, selector 30,
And an output device 32. Color correction coefficient (Δ
r 1, Δr2, Δr3) Takes a value of 0 to 1.

【0016】画像入力装置12の出力端子は、セレクタ
30、色補正領域判定回路24及び色補正演算回路28
の入力端子に各々接続されている。そして、画像入力装
置12から入力画素のRGBデータPinが、セレクタ
30、色補正領域判定回路24及び色補正演算回路28
に供給される。修正領域指定用メモリ14の出力端子
は、色補正領域判定回路24の他の入力端子に接続され
ており、各選択色と入力画素(補正対象色)とのRGB
空間における距離の最大値の逆数(1/L,1/
,1/L)を供給するようになっている。
The output terminals of the image input device 12 are a selector 30, a color correction area determination circuit 24, and a color correction arithmetic circuit 28.
Are respectively connected to the input terminals. Then, RGB data P in of the input pixel from the image input device 12, a selector 30, a color correction region determining circuit 24 and the color correction operation circuit 28
Supplied to The output terminal of the correction area designating memory 14 is connected to another input terminal of the color correction area determination circuit 24, and the RGB of the selected color and the input pixel (correction target color).
The reciprocal of the maximum value of the distance in space (1 / L 1 , 1 /
L 2 , 1 / L 3 ).

【0017】代表色指定用メモリ16の出力端子は、色
補正領域判定回路24の他の入力端子に接続されてお
り、各選択色の色データC,C,Cを色補正領域
判定回路24供給するようになっている。修正量指定用
メモリ18の出力端子は、色補正演算回路28の入力端
子に接続されており、3つの選択色の修正量ΔC(ベク
トル値)を色補正演算回路28に供給するようになって
いる。
The output terminal of the representative color designation memory 16 is connected to another input terminal of the color correction area determination circuit 24, and the color data C 1 , C 2 , C 3 of each selected color is determined by the color correction area determination. A circuit 24 is provided. The output terminal of the correction amount specifying memory 18 is connected to the input terminal of the color correction operation circuit 28 so that the correction amounts ΔC (vector values) of the three selected colors are supplied to the color correction operation circuit 28. I have.

【0018】色補正領域判定回路24の出力端子は、係
数決定回路26を介して色補正演算回路28の入力端子
に接続されている。色補正領域判定回路24の出力端子
は、更に、セレクタ30の入力端子(制御端子)に接続
されている。色補正領域判定回路24は、セレクタ30
に対しては、入力画素が補正領域内か否かを示す制御信
号を供給する。係数決定回路26は、入力画素Pin
各選択色(C,C,C)との距離(スカラー量)
を色補正用の係数(Δr,Δr,Δr)として補
正演算回路28に供給するようになっている。
An output terminal of the color correction area determination circuit 24 is connected to an input terminal of a color correction operation circuit 28 via a coefficient determination circuit 26. The output terminal of the color correction area determination circuit 24 is further connected to the input terminal (control terminal) of the selector 30. The color correction area determination circuit 24 includes a selector 30
, A control signal indicating whether or not the input pixel is within the correction area is supplied. Distance coefficient determination circuit 26, the input pixel P in each selected color and (C 1, C 2, C 3) ( scalar quantity)
Are supplied to the correction operation circuit 28 as color correction coefficients (Δr 1 , Δr 2 , Δr 3 ).

【0019】補正演算回路28の出力端子は、セレクタ
30の一つの入力端子に接続されている。補正演算回路
28は、修正量指定用メモリ18及び係数決定回路26
から供給されるデータ ΔC(ΔR,ΔG,ΔB)、Δr,Δr,Δr に基づいて、入力画素Pinの補正値(加算値)とし
て、 {1−(Δr+Δr+Δr+1)/4}×ΔC を算出する。
The output terminal of the correction operation circuit 28 is connected to a selector
30 are connected to one input terminal. Correction calculation circuit
28 is a memory 18 for specifying the amount of correction and a coefficient determination circuit 26
ΔC (ΔR, ΔG, ΔB), Δr1, Δr2, Δr3  Based on the input pixel PinCorrection value (addition value)
{1− (Δr1+ Δr2+ Δr3+1) / 4} × ΔC is calculated.

【0020】補正演算回路28は、更に、以下の式に示
す演算に従って入力画素Pinの補正後の画素値P
outを算出する。 Pout=Pin+{1−(Δr+Δr+Δr
1)/4}×ΔC
The correction calculation circuit 28 further calculates the corrected pixel value P of the input pixel P in according to the calculation shown in the following equation.
out is calculated. P out = P in + {1- (Δr 1 + Δr 2 + Δr 3 +
1) / 4} × ΔC

【0021】セレクタ30は、色補正領域判定回路26
からの制御信号に基づき、画像入力装置12から供給さ
れる色データPinと、補正演算回路28から供給され
る補正後の色データ Pout=Pin+{1−(Δr+Δr+Δr
1)/4}×ΔC の何れか一方をPoutとして画像出力装置32に供給
する。すなわち、入力画素Pinが何れかの選択色の補
正領域内の場合には、補正演算回路28から供給される
補正後のデータを選択し、入力画素Pinが何れの選択
色の補正領域からも外れている場合には、画像入力装置
12から供給される入力データPinを選択する。
The selector 30 includes a color correction area determination circuit 26
The color data P in supplied from the image input device 12 and the corrected color data P out = P in + {1- (Δr 1 + Δr 2 + Δr 3) supplied from the correction operation circuit 28 based on the control signal from +
1) One of / 4} × ΔC is supplied to the image output device 32 as P out . That is, when the input pixel P in any of the selected color correction region, select the data after correction supplied from the correction calculation circuit 28, the correction region of any selected color input pixel P in the if even deviates selects input data P in supplied from the image input device 12.

【0022】図3は、色補正領域判定回路24と係数決
定回路26の論理構成を示す。図4(1)は、3つの選
択色、、の領域(I, II, III, IV, V, VI, VII)
を分別して示す。図4(2)は、選択色毎のフラグの付
け方を示す。入力画素データPinは、3つの減算器4
0,42,44に供給される。減算器40,42,44
の他方の入力端子には、3つの選択色の中心点データが
各々入力される。そして、減算器40,42,44によ
る減算処理により、入力画素データPinと3つの選択
色との距離(Δr、Δr、Δr)を求める。減算
器40,42,44の出力端子は、絶対値生成回路40
a,42a,44aの入力端子に各々接続されている。
絶対値生成回路40a,42a,44aの出力端子は、
乗算器46a,48a,50aの一方の入力端子に各々
接続されている。乗算器46a,48a,50aの他方
の入力端子には、3つの選択色の補正領域範囲データ1
/L,1/L,1/Lが各々供給される。乗算器
46a,48a,50aの出力端子は、3つのフラグ設
定器46,48,50に各々接続されている。フラグ設
定器46,48,50の他の入力端子には、「1」が各
々供給される。
FIG. 3 shows a logical configuration of the color correction area determination circuit 24 and the coefficient determination circuit 26. Fig. 4 (1) shows the areas of three selected colors (I, II, III, IV, V, VI, VII).
Are shown separately. FIG. 4B shows how to attach a flag for each selected color. Input pixel data P in the three subtracters 4
0, 42, and 44. Subtractors 40, 42, 44
, The center point data of the three selected colors is input. Then, the subtraction processing by the subtracter 40, 42, 44, obtains a distance between the input pixel data P in the three selected color (Δr 1, Δr 2, Δr 3). Output terminals of the subtracters 40, 42, and 44 are connected to an absolute value generation circuit 40.
a, 42a, and 44a, respectively.
The output terminals of the absolute value generation circuits 40a, 42a, 44a are:
Each of the multipliers 46a, 48a, 50a is connected to one input terminal. The other input terminals of the multipliers 46a, 48a, and 50a have three selected color correction area range data 1
/ L 1 , 1 / L 2 , 1 / L 3 are supplied. The output terminals of the multipliers 46a, 48a, 50a are connected to three flag setting units 46, 48, 50, respectively. "1" is supplied to the other input terminals of the flag setting units 46, 48 and 50, respectively.

【0023】図4に示すように、入力画素と選択色との
距離が対応する補正領域範囲内の場合には、フラグ1が
付加される。入力画素データにフラグ1が付された場合
には、その距離係数(Δr)がそのまま出力される。一
方、入力画素と選択色との距離が対応する補正領域範囲
外の場合には、フラグ0が付加される。入力画素データ
にフラグ0が付された場合には、距離係数(Δr)とし
て「1」が出力される。
As shown in FIG. 4, when the distance between the input pixel and the selected color is within the corresponding correction area range, a flag 1 is added. When the flag 1 is added to the input pixel data, the distance coefficient (Δr) is output as it is. On the other hand, if the distance between the input pixel and the selected color is outside the corresponding correction area range, a flag 0 is added. When the flag 0 is added to the input pixel data, “1” is output as the distance coefficient (Δr).

【0024】図5(1)は、入力画素Pinが3つの選
択色の全ての補正領域内に位置する場合の、各選択色ま
での距離(Δr、Δr、Δr)を模式的に示す。
図5(2)は、色補正演算回路28の構成を示す。色補
正演算回路28は、加算器52,60と、2ビットシフ
ター54と、減算器56と、乗算器58とを備えてい
る。
FIG. 5 (1) is schematically a when located all the correction areas of the input pixel P in the three selected color, distance to each selected color ([Delta] r 1, [Delta] r 2, [Delta] r 3) Shown in
FIG. 5B shows the configuration of the color correction operation circuit 28. The color correction operation circuit 28 includes adders 52 and 60, a 2-bit shifter 54, a subtractor 56, and a multiplier 58.

【0025】加算器52の入力端子には、各選択色まで
の距離係数(Δr、Δr、Δr )が係数設定回路
26から供給され、これらを加算処理する。加算器52
の出力端子は、インクリメンタを介して2ビットシフタ
ー54の入力端子に接続されている。減算器56の一方
の入力端子には、2ビットシフター54の出力端子が接
続され、他方の入力端子には「1」が入力される。乗算
器58の一方の入力端子には、減算器56の出力端子が
接続され、他方の入力端子には3つの選択色の共通の修
正量ΔCが入力される。加算器60の一方の入力端子に
は、乗算器58の出力端子が接続され、他方の入力端子
には入力画素データPinが入力される。
The input terminal of the adder 52 has up to each selected color.
Distance coefficient (Δr1, Δr2, Δr 3) Is the coefficient setting circuit
26, and these are added. Adder 52
Output terminal is a 2-bit shifter via an incrementer
-54 input terminal. One of the subtractors 56
Is connected to the output terminal of the 2-bit shifter 54.
Then, “1” is input to the other input terminal. Multiplication
The output terminal of the subtractor 56 is connected to one input terminal of the
Connected, and the other input terminal has the common
A positive amount ΔC is input. To one input terminal of the adder 60
Is connected to the output terminal of the multiplier 58 and the other input terminal
Has input pixel data PinIs entered.

【0026】上記のような色補正演算回路28の構成に
より、補正後の色データ Pout=Pin+{1−(Δr+Δr+Δr
1)/4}×ΔC を算出する。
With the configuration of the color correction arithmetic circuit 28 as described above, the corrected color data P out = P in + {1- (Δr 1 + Δr 2 + Δr 3 +
1) Calculate / 4} × ΔC.

【0027】次に、色補正演算回路28によって最終的
に行われる演算処理 Pout=Pin+{1−(Δr+Δr+Δr
1)/4}×ΔC の導き方について説明する。補正の対象となる選択色が
1つの場合には、以下の式(1)によって補正後の出力
データPoutを得ることができる。 Pout=Pin+(1−Δr)×ΔC ・・・(1) ここで、Pinは入力画素値(ベクトル)、Pout
出力画素値(ベクトル)、ΔrはRGB色空間における
選択色からの距離(スカラー)、ΔCは選択色における
補正量(ベクトル)である。
Next, the arithmetic processing P out = P in + {1- (Δr 1 + Δr 2 + Δr 3 +) finally performed by the color correction arithmetic circuit 28
1) A method of deriving / 4} × ΔC will be described. When there is one selected color to be corrected, the corrected output data P out can be obtained by the following equation (1). P out = P in + (1−Δr) × ΔC (1) where P in is the input pixel value (vector), P out is the output pixel value (vector), and Δr is the selected color in the RGB color space. , And ΔC are correction amounts (vectors) for the selected color.

【0028】3つの選択色が近接した場合の演算は、上
記の式(1)を線形加算し、以下の式(2)のように拡
張する。 Pout = Pin + (1-Δr1)×ΔC1 + (1-Δr2)×ΔC2 + (1-Δr3)×ΔC3 ・・・( 2) ここで、入力画素の色空間における第1の選択色からの
距離をΔr1 とし、前記第1の選択色における調整量を
ΔC1 とし、当該入力画素の色空間における第2の選択
色からの距離をΔr2 とし、前記第2の選択色における
調整量をΔC2 とし、当該入力画素の色空間における第
3の選択色からの距離をΔr3 とし、前記第3の選択色
における調整量をΔC3 とする。
The calculation in the case where the three selected colors are close to each other is performed by linearly adding the above equation (1) and expanding the equation as shown in the following equation (2). Pout = Pin + (1-Δr1) × ΔC1 + (1-Δr2) × ΔC2 + (1-Δr3) × ΔC3 (2) where the distance of the input pixel from the first selected color in the color space Is Δr1, the adjustment amount in the first selected color is ΔC1, the distance of the input pixel from the second selection color in the color space is Δr2, and the adjustment amount in the second selection color is ΔC2. The distance of the input pixel from the third selected color in the color space is Δr3, and the adjustment amount in the third selected color is ΔC3.

【0029】更に、ハードウエア構成を簡略化するため
に種々の近似式を用いる。上記式(2)において、3つ
の選択色は近接しているため、補正量ΔC1,ΔC2,
ΔC3もほぼ等しいと考えられる。そこで、式(2)を
変形して以下のような式(3)を得る。 Pout = Pin + {1-(Δr1+Δr2+Δr3)/3}×(ΔC1 +ΔC2 +ΔC3) ・・・(3)
Further, various approximate expressions are used to simplify the hardware configuration. In the above equation (2), since the three selected colors are close to each other, the correction amounts ΔC1, ΔC2,
It is considered that ΔC3 is also substantially equal. Therefore, the following equation (3) is obtained by modifying equation (2). Pout = Pin + {1- (Δr1 + Δr2 + Δr3) / 3} × (ΔC1 + ΔC2 + ΔC3) (3)

【0030】式(3)において、1/3の乗算をさける
ために、仮想的に式(3)を4色近傍の式(4)に拡張
する。 Pout = Pin + {1-(Δr1+Δr2+Δr3+Δr4)/4}×(ΔC1+ΔC2+ΔC3+ΔC4) ・・・ (4)
In equation (3), to avoid multiplication by 1/3, equation (3) is virtually expanded to equation (4) for four colors. Pout = Pin + {1- (Δr1 + Δr2 + Δr3 + Δr4) / 4} × (ΔC1 + ΔC2 + ΔC3 + ΔC4) (4)

【0031】上述したように、4色以上の近接処理につ
いては考慮する必要性が小さいため、式(4)におい
て、Δr4=1,ΔC4=δ=(ΔC1+ΔC2+ΔC
3)/3として以下の式(5)を得る。 Pout = Pin + {1-(Δr1+Δr2+Δr3+1)/4}×(ΔC1+ΔC2+ΔC3+δ) ・・・(5)
As described above, since it is not necessary to consider proximity processing for four or more colors, in equation (4), Δr4 = 1, ΔC4 = δ = (ΔC1 + ΔC2 + ΔC
The following equation (5) is obtained as 3) / 3. Pout = Pin + {1- (Δr1 + Δr2 + Δr3 + 1) / 4} × (ΔC1 + ΔC2 + ΔC3 + δ) (5)

【0032】更に、式(5)において、ΔC=ΔC1+
ΔC2+ΔC3+δとすると、ハードウエア装置に設定
するパラメータはΔCの3成分(ΔR,ΔG,ΔB)の
みとなり、最終的に以下の式(6)を使用することがで
きる。 Pout = Pin + {1-(Δr1+Δr2+Δr3+1)/4}×ΔC ・・・(6) 図2に示す装置では、上記式(6)に基づいた構成を採
用している。
Further, in equation (5), ΔC = ΔC1 +
Assuming that ΔC2 + ΔC3 + δ, the parameters set in the hardware device are only three components of ΔC (ΔR, ΔG, ΔB), and finally the following equation (6) can be used. Pout = Pin + {1- (Δr1 + Δr2 + Δr3 + 1) / 4} × ΔC (6) The apparatus shown in FIG. 2 employs a configuration based on the above equation (6).

【0033】次に、図2の装置の全体的な動作について
図6のフローチャートに沿って説明する。色補正領域判
定回路24において、代表色指定用メモリ16から供給
される選択色(代表色)データC1,C2,C3と;画
像入力装置12から供給される画素データPin(R,
G,B)と;修正領域指定用メモリ14から供給される
修正対象領域データ(1/L,1/L,1/L
とに基づき、領域判定処理を行う。すなわち、入力画素
inが何れかの選択色の修正領域内にあるか否かを判
定する。
Next, the overall operation of the apparatus of FIG. 2 will be described with reference to the flowchart of FIG. In the color correction area determination circuit 24, selected color (representative color) data C1, C2, and C3 supplied from the representative color designation memory 16; and pixel data P in (R,
G, B); correction target area data (1 / L 1 , 1 / L 2 , 1 / L 3 ) supplied from the correction area specifying memory 14
Based on this, the area determination processing is performed. That is, whether the input pixel P in is in any of the selected color correction region.

【0034】判定の結果、入力画素Pinが全ての選択
色の修正領域から外れている場合には、セレクタ30の
機能により、入力したデータPin(R,G,B)をそ
のまま画像出力装置32に供給する。一方、判定の結
果、入力画素Pinが少なくとも1つの選択色の修正領
域内にある場合には、修正処理を行う。すなわち、色補
正演算回路28において、修正量指定用メモリ18から
供給される修正量データΔCと、係数決定回路26から
供給される距離係数データ(Δr,Δr,Δr
とに基づいて、上述した式(6)の演算により、修正後
の画素データP’(R’,G’, B’)を算出する。そして、
セレクタ30を制御することにより、修正後のデータを
画像出力装置32に供給する。
The result of the determination, if the input pixel P in is out of correction area of all selected colors, by the function of the selector 30, input data P in (R, G, B) as it is an image output device 32. On the other hand, the result of the determination, if the input pixel P in is in at least one selected color correction region, performs correction processing. That is, in the color correction arithmetic circuit 28, the correction amount data ΔC supplied from the correction amount designating memory 18 and the distance coefficient data (Δr 1 , Δr 2 , Δr 3 ) supplied from the coefficient determination circuit 26.
Based on the above, the corrected pixel data P ′ (R ′, G ′, B ′) is calculated by the calculation of the above-described equation (6). And
By controlling the selector 30, the corrected data is supplied to the image output device 32.

【0035】補正演算回路28では、上記のような機能
の他に、飽和処理機能を付加することが好ましい。すな
わち、RGBの色補正の段階で何れかの色が飽和してし
まうことを防止する処理を行う。最初に、図7及び図8
を参照して飽和処理の第1の方法について説明する。以
下の説明においては、色補正成分をΔP(=ΔR、Δ
G、ΔB)として扱うものとする。また、ΔP={1-(Δ
r1+Δr2+Δr3+1)/4}×ΔC
In the correction operation circuit 28, it is preferable to add a saturation processing function in addition to the above functions. That is, a process for preventing any color from being saturated at the stage of RGB color correction is performed. First, FIGS. 7 and 8
The first method of the saturation processing will be described with reference to FIG. In the following description, the color correction component is represented by ΔP (= ΔR, ΔR
G, ΔB). Also, ΔP = {1- (Δ
r1 + Δr2 + Δr3 + 1) / 4} × ΔC

【0036】第1の方法においては、最初に色補正成分
ΔP(=ΔR、ΔG、ΔB)をn(n>1)等分にし、
その値ΔP/n(=ΔR/n、ΔG/n、ΔB/n)を
各々の色に加算する。この段階で何れかの色が飽和した
場合には、加算を停止して得られた値を出力Pout
して画像出力装置32に出力する。何れの色も飽和しな
い場合には、更に、値ΔP/n(=ΔR/n、ΔG/
n、ΔB/n)を各々の色に加算する。このような動作
を最大でn回繰り返し、何れかの色が飽和した時点で加
算を停止して得られた値をPout信号(Rout,G
out,Bout)として画像出力装置32に出力す
る。
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 value obtained by stopping the addition is output to the image output device 32 as an output P out . When none of the colors is saturated, the value ΔP / n (= ΔR / n, ΔG /
n, ΔB / n) are added to each color. Such an operation is repeated at most n times, 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) .
out , B out ) to the image output device 32.

【0037】図7及び8に示すケースでは、n=4とし
ている。そして、この場合、3回目の加算で赤(R)が
飽和しているため、4回目の加算を行うことなく、P
in+3ΔP/4を出力信号Poutとする。
In the cases shown in FIGS. 7 and 8, 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 .

【0038】飽和状態の検出は、所謂オーバーフロー検
出によって実現できる。すなわち、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.

【0039】色補正成分Δ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).

【0040】次に、補正演算回路28中における飽和処
理の第2の方法について説明する。第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)として画像出
力装置32(ディスプレイ装置)に出力する。
Next, a second method of the saturation processing in the correction operation circuit 28 will be described. 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
Output to the image output device 32 (display device) as out (R out , G out , B out ).

【0041】一方、値Δ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)として画像出力装置32に出力する。
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 ) to the image output device 32.

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

【0043】第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.

【0044】以上、本発明の実施例について説明した
が、本発明はこれらの実施例に何ら限定されるものでは
なく、特許請求の範囲に示された技術的思想の範疇にお
いて変更可能なものである。
Although the embodiments of the present invention have been described above, 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.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
カラー画像内に存在する複数色(選択色)を同時に補正
するに際し、これらの選択色が各々近接している場合に
も、自然な色調整ができるという効果がある。
As described above, according to the present invention,
When simultaneously correcting a plurality of colors (selected colors) existing in a color image, there is an effect that natural color adjustment can be performed even when these selected colors are close to each other.

【0046】また、入力画素の色補正を行う際に、RG
B各値の飽和状況を検出し、その状況に応じた補正値を
加算することにより、色調整の際に飽和による色ずれを
発生することを防止することができる。
When performing color correction of input pixels, RG
By detecting the saturation state of each value B and adding a correction value according to the state, it is possible to prevent the occurrence of a color shift due to saturation during color adjustment.

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

【図1】図1は、本発明の基本理念を示す説明図であ
り、RGB色空間を示す。
FIG. 1 is an explanatory diagram showing a basic idea of the present invention, and shows an RGB color space.

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

【図3】図3は、実施例の要部の構成を示す説明図であ
り、図2に示す装置中の色補正領域判定回路及び係数決
定回路に対応する。
FIG. 3 is an explanatory diagram illustrating a configuration of a main part of the embodiment, and corresponds to a color correction area determination circuit and a coefficient determination circuit in the device illustrated in FIG. 2;

【図4】図4は、図3に示す構成による作用を説明する
ための説明図である。
FIG. 4 is an explanatory diagram for explaining an operation of the configuration shown in FIG. 3;

【図5】図5は、実施例の要部の構成を示す説明図であ
り、図2に示す装置中の色補正演算回路に対応する。
FIG. 5 is an explanatory diagram showing a configuration of a main part of the embodiment, and corresponds to a color correction operation circuit in the device shown in FIG. 2;

【図6】図6は、図2に示す実施例の動作を示すフロー
チャートである。
FIG. 6 is a flowchart showing the operation of the embodiment shown in FIG. 2;

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

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

【図9】図9は、色調整の飽和処理における第2の方法
を示すフローチャートである。
FIG. 9 is a flowchart illustrating a second method in a color adjustment saturation process.

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

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

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

12 画像入力装置 14 修正領域指定用メモリ 16 代表色指定用メモリ 18 修正量指定用メモリ 20 相対輝度演算回路 24 色補正領域判定回路 26 係数決定回路 28 色補正演算回路 REFERENCE SIGNS LIST 12 Image input device 14 Correction area specifying memory 16 Representative color specifying memory 18 Correction amount specifying memory 20 Relative luminance calculation circuit 24 Color correction area determination circuit 26 Coefficient determination circuit 28 Color correction calculation circuit

フロントページの続き Fターム(参考) 5B050 CA04 DA04 EA09 FA05 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC01 CE17 CH01 5C066 AA03 AA13 CA05 CA08 CA09 CA17 EA05 EB01 EE03 GA01 GA02 HA03 KE09 KG01 5C077 LL19 MP08 PP28 PP32 PP37 PP43 PP48 PQ12 PQ20 5C079 HB01 LA06 LB01 MA11 NA03Continued on the front page F-term (reference) PQ20 5C079 HB01 LA06 LB01 MA11 NA03

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】カラー画像中の複数の選択色を調整するカ
ラー画像処理方法において、 前記調整を行う調整領域を前記複数の選択色毎に設定す
る工程と;前記入力画素が前記調整領域内か否かを前記
複数の選択色毎に判定する工程と;色空間における前記
入力画素の前記選択色からの距離を前記複数の選択色毎
に求める工程と;前記各選択色からの距離に基づいて前
記入力画素の調整量を求める工程と;前記調整量に基づ
いて、前記入力画素の色調整処理を行う工程とを含むこ
とを特徴とするカラー画像処理方法。
1. A color image processing method for adjusting a plurality of selected colors in a color image, comprising: setting an adjustment area to be adjusted for each of the plurality of selected colors; and determining whether the input pixel is within the adjustment area. Determining for each of the plurality of selected colors; determining the distance of the input pixel from the selected color in the color space for each of the plurality of selected colors; and based on the distance from each of the selected colors. A color image processing method comprising: a step of calculating an adjustment amount of the input pixel; and a step of performing a color adjustment process of the input pixel based on the adjustment amount.
【請求項2】前記複数の選択色は、互いに近接する3色
とすることを特徴とする請求項1に記載のカラー画像処
理方法。
2. The color image processing method according to claim 1, wherein the plurality of selected colors are three colors close to each other.
【請求項3】前記入力画素の色データを Pin とし、当
該入力画素の色空間における第1の選択色からの距離を
Δr1 とし、前記第1の選択色における調整量をΔC1 と
し、当該入力画素の色空間における第2の選択色からの
距離をΔr2 とし、前記第2の選択色における調整量を
ΔC2 とし、当該入力画素の色空間における第3の選択
色からの距離をΔr3 とし、前記第3の選択色における
調整量をΔC3 とした時に、前記色調整後の色データ Po
ut を以下の式に従って算出することを特徴とする請求
項2に記載のカラー画像処理方法。 Pout = Pin + (1-Δr1)×ΔC1 + (1-Δr2)×ΔC2 + (1-
Δr3)×ΔC3
3. The method according to claim 1, wherein the color data of the input pixel is Pin, the distance of the input pixel from the first selected color in the color space is Δr1, and the adjustment amount of the first selected color is ΔC1. The distance from the second selected color in the color space of Δr2, the adjustment amount in the second selected color as ΔC2, the distance of the input pixel from the third selected color in the color space as Δr3, When the adjustment amount for the selected color No. 3 is ΔC3, the color data Po after the color adjustment
3. The color image processing method according to claim 2, wherein ut is calculated according to the following equation. Pout = Pin + (1-Δr1) × ΔC1 + (1-Δr2) × ΔC2 + (1-
Δr3) × ΔC3
【請求項4】δ=1/3(ΔC1 + ΔC2 + ΔC3)とし、前記
式を以下の式に変形して、前記色データ Pout を算出す
ることを特徴とする請求項3に記載のカラー画像処理方
法。 Pout = Pin + {1-(Δr1+Δr2+Δr3+1)/4}×(ΔC1+ΔC2+
ΔC3+δ)
4. The color image according to claim 3, wherein δ = 1/3 (ΔC1 + ΔC2 + ΔC3), and the color data Pout is calculated by transforming the above expression into the following expression. Processing method. Pout = Pin + {1- (Δr1 + Δr2 + Δr3 + 1) / 4} × (ΔC1 + ΔC2 +
ΔC3 + δ)
【請求項5】前記色調整処理は、前記調整量を前記入力
画素の色成分に加算する工程と、当該入力画素の飽和状
態を検出し、その検出結果に基づいて加算処理を調整す
る工程とを含むことを特徴とする請求項1,2,3又は
4に記載のカラー画像処理方法。
5. The color adjustment processing includes: adding the adjustment amount to a color component of the input pixel; detecting a saturation state of the input pixel; and adjusting the addition processing based on the detection result. 5. The color image processing method according to claim 1, wherein the color image processing method comprises:
【請求項6】前記調整量を前記入力画素の色成分に加算
する工程において、当該調整量を分割し、分割した調整
量を段階的に当該入力画素の色成分に付加することを特
徴とする請求項5に記載のカラー画像処理方法。
6. The method according to claim 1, wherein in the step of adding the adjustment amount to the color component of the input pixel, the adjustment amount is divided, and the divided adjustment amount is added stepwise to the color component of the input pixel. A color image processing method according to claim 5.
【請求項7】ΔP={1-(Δr1+Δr2+Δr3+1)/4}×ΔCと
した時に、当該調整量ΔPをΔP/nにn等分(n>
1)し、前記入力画素の色成分の何れかが飽和するまで
ΔP/nを当該入力画素に対して加算することを特徴と
する請求項6に記載のカラー画像処理方法。
7. When ΔP = {1- (Δr1 + Δr2 + Δr3 + 1) / 4} × ΔC, the adjustment amount ΔP is divided into ΔP / n by n equal parts (n>
1) The method according to claim 6, wherein ΔP / n is added to the input pixel until one of the color components of the input pixel is saturated.
【請求項8】前記色調整量(ΔC1+ΔC2+ΔC3+δ)=ΔC
とした時に、前記入力画素の色成分に対して、最初にΔ
P/2を加算し、 前記ΔP/2の加算によって、前記色成分の何れかが
飽和した場合には、各色成分からΔP/2を減算し、 前記ΔP/2の加算によって、前記色成分の何れの色
も飽和しない場合には、各色成分に対して更にΔP/2
を加算するプロセスを有することを特徴とする請求項
6に記載のカラー画像処理方法。
8. The color adjustment amount (ΔC1 + ΔC2 + ΔC3 + δ) = ΔC
, The color component of the input pixel is first Δ
Plus P / 2 1, by the addition of the [Delta] P / 2 1, when any of the color components is saturated, subtracts the [Delta] P / 2 2 from each color component, by the addition of the [Delta] P / 2 1, If none of the color components is saturated, ΔP / 2 is further applied to each color component.
7. The color image processing method according to claim 6, further comprising a process of adding 2 .
【請求項9】カラー画像中の複数の選択色を調整するカ
ラー画像処理装置において、 前記調整を行う調整領域を指定するデータを前記複数の
選択色毎に保持する第1のデータ保持手段と;前記第1
のデータ保持手段から供給されるデータに基づき、前記
入力画素が前記調整領域内か否かを前記複数の選択色毎
に判定する領域判定手段と;色空間における前記入力画
素の前記複数の選択色からの距離に関するデータを算出
する距離データ算出手段と;前記距離データ算出手段か
ら供給されるデータに基づき、前記複数の選択色毎に、
前記入力画素の色調整処理を行う調整処理手段と;前記
領域判定手段における判定の結果、前記入力画素が前記
複数の選択色中の何れかの調整領域内にある場合には前
記調整処理手段の出力を選択し、何れの領域にも含まれ
ない場合には当該入力画素のデータをそのまま選択して
出力する出力手段とを備えることを特徴とするカラー画
像処理装置。
9. A color image processing apparatus for adjusting a plurality of selected colors in a color image, a first data holding means for holding data specifying an adjustment area to be adjusted for each of the plurality of selected colors; The first
Area determination means for determining, for each of the plurality of selected colors, whether or not the input pixel is within the adjustment area, based on data supplied from the data holding means; and the plurality of selected colors of the input pixel in a color space. Distance data calculation means for calculating data relating to the distance from the camera; based on data supplied from the distance data calculation means, for each of the plurality of selected colors,
Adjustment processing means for performing color adjustment processing of the input pixel; and, as a result of the determination by the area determination means, when the input pixel is within any one of the adjustment areas in the plurality of selected colors, the adjustment processing means An output unit for selecting an output and selecting and outputting data of the input pixel as it is when the data is not included in any of the areas.
【請求項10】前記複数の選択色は、互いに近接する3
色とすることを特徴とする請求項9に記載のカラー画像
処理装置。
10. The method according to claim 1, wherein the plurality of selected colors are three colors which are close to each other.
The color image processing apparatus according to claim 9, wherein the color image processing apparatus uses a color.
【請求項11】前記調整処理手段において、前記入力画
素の色データを Pin とし、当該入力画素の色空間にお
ける第1の選択色からの距離をΔr1 とし、前記第1の
選択色における調整量をΔC1 とし、当該入力画素の色
空間における第2の選択色からの距離をΔr2 とし、前
記第2の選択色における調整量をΔC2 とし、当該入力
画素の色空間における第3の選択色からの距離をΔr3
とし、前記第3の選択色における調整量をΔC3 とした
時に、前記色調整後の色データ Pout を以下の式に従っ
て算出することを特徴とする請求項10に記載のカラー
画像処理装置。 Pout = Pin + (1-Δr1)×ΔC1 + (1-Δr2)×ΔC2 + (1-
Δr3)×ΔC3
11. The adjustment processing means, wherein the color data of the input pixel is Pin, the distance of the input pixel from the first selected color in the color space is Δr1, and the adjustment amount of the first selected color is ΔC1, the distance of the input pixel from the second selected color in the color space is Δr2, the adjustment amount in the second selected color is ΔC2, the distance of the input pixel from the third selected color in the color space. To Δr3
11. The color image processing apparatus according to claim 10, wherein the color data after color adjustment Pout is calculated according to the following equation, when the adjustment amount of the third selected color is set to ΔC3. Pout = Pin + (1-Δr1) × ΔC1 + (1-Δr2) × ΔC2 + (1-
Δr3) × ΔC3
【請求項12】前記調整処理手段において、δ=1/3(Δ
C1 + ΔC2 + ΔC3)とし、前記式を以下の式に変形し
て、前記色データ Pout を算出することを特徴とする請
求項11に記載のカラー画像処理装置。 Pout = Pin + {1-(Δr1+Δr2+Δr3+1)/4}×(ΔC1+ΔC2+
ΔC3+δ)
12. In the adjustment processing means, δ = 1/3 (Δ
The color image processing apparatus according to claim 11, wherein the color data Pout is calculated by changing the above equation to the following equation (C1 + ΔC2 + ΔC3). Pout = Pin + {1- (Δr1 + Δr2 + Δr3 + 1) / 4} × (ΔC1 + ΔC2 +
ΔC3 + δ)
【請求項13】前記調整処理手段における前記色調整処
理は、前記調整量を前記入力画素の色成分に加算すると
ともに、当該入力画素の飽和状態を検出し、その検出結
果に基づいて加算処理を調整することを特徴とする請求
項9,10,11又は12に記載のカラー画像処理装
置。
13. The color adjustment processing in the adjustment processing means includes adding the adjustment amount to a color component of the input pixel, detecting a saturation state of the input pixel, and performing an addition process based on the detection result. 13. The color image processing apparatus according to claim 9, wherein the adjustment is performed.
【請求項14】前記調整処理手段において前記調整量を
前記入力画素の色成分に加算する際に、当該調整量を分
割し、分割した調整量を段階的に当該入力画素の色成分
に付加することを特徴とする請求項13に記載のカラー
画像処理装置。
14. When the adjustment amount is added to the color component of the input pixel by the adjustment processing means, the adjustment amount is divided and the divided adjustment amount is added to the color component of the input pixel in a stepwise manner. 14. The color image processing apparatus according to claim 13, wherein:
【請求項15】ΔP={1-(Δr1+Δr2+Δr3+1)/4}×ΔC
とした時に、当該調整量ΔPをΔP/nにn等分(n>
1)し、前記入力画素の色成分の何れかが飽和するまで
ΔP/nを当該入力画素に対して加算することを特徴と
する請求項14に記載のカラー画像処理装置。
15. ΔP = {1- (Δr1 + Δr2 + Δr3 + 1) / 4} × ΔC
, The adjustment amount ΔP is divided into ΔP / n by n equal parts (n>
1) The color image processing apparatus according to claim 14, wherein ΔP / n is added to the input pixel until one of the color components of the input pixel is saturated.
【請求項16】前記調整処理手段における前記色調整量
(ΔC1+ΔC2+ΔC3+δ)=ΔCとした時に、前記入力画素
の色成分に対して、最初にΔP/2を加算し、 前記ΔP/2の加算によって、前記色成分の何れかが
飽和した場合には、各色成分からΔP/2を減算し、 前記ΔP/2の加算によって、前記色成分の何れの色
も飽和しない場合には、各色成分に対して更にΔP/2
を加算するプロセスを有することを特徴とする請求項
14に記載のカラー画像処理装置。
16. The color adjustment amount in the adjustment processing means.
When (ΔC1 + ΔC2 + ΔC3 + δ) = ΔC, first, ΔP / 2 1 is added to the color component of the input pixel, and any of the color components is added by the addition of ΔP / 2 1 . Is saturated, ΔP / 2 2 is subtracted from each color component. If none of the colors of the color components is saturated by the addition of ΔP / 2 1 , ΔP / 2 is further added to each color component.
15. The color image processing apparatus according to claim 14, further comprising a process of adding 2 .
JP2000034956A 2000-02-14 2000-02-14 Color image processing method and color image processor Pending JP2001223911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000034956A JP2001223911A (en) 2000-02-14 2000-02-14 Color image processing method and color image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000034956A JP2001223911A (en) 2000-02-14 2000-02-14 Color image processing method and color image processor

Publications (1)

Publication Number Publication Date
JP2001223911A true JP2001223911A (en) 2001-08-17

Family

ID=18559217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000034956A Pending JP2001223911A (en) 2000-02-14 2000-02-14 Color image processing method and color image processor

Country Status (1)

Country Link
JP (1) JP2001223911A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100834765B1 (en) * 2006-12-07 2008-06-05 삼성전자주식회사 Apparatus and method for reproducing preferred color
KR100843095B1 (en) * 2006-12-13 2008-07-03 삼성전자주식회사 Apparatus and method for reproducing a preferred color

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100834765B1 (en) * 2006-12-07 2008-06-05 삼성전자주식회사 Apparatus and method for reproducing preferred color
US8520939B2 (en) 2006-12-07 2013-08-27 Samsung Electronics Co., Ltd. Apparatus and method of reproducing preferred color
KR100843095B1 (en) * 2006-12-13 2008-07-03 삼성전자주식회사 Apparatus and method for reproducing a preferred color
US8254673B2 (en) 2006-12-13 2012-08-28 Samsung Electronics Co., Ltd. Apparatus and method of color converting a dominant color

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
US7636474B2 (en) Automatic white balance correction method for image capturing apparatus
US8452094B2 (en) Real-time image generator
CN108282647B (en) Color correcting method and device, computer readable storage medium, terminal
JP2003230160A (en) Color picture saturation adjustment apparatus and method therefor
US7301573B2 (en) Apparatus for and method of edge enhancement in image processing
CN112218065B (en) Image white balance method, system, terminal device and storage medium
US8036459B2 (en) Image processing apparatus
US20060017597A1 (en) Method of signal reconstruction, imaging device and computer program product
EP1763257B1 (en) Chrominance signal processing apparatus and method
JP2003244715A (en) Hybrid pixel interpolation apparatus and hybrid pixel interpolation method
EP1070423A1 (en) Histogram equalization
JP2001223911A (en) Color image processing method and color image processor
JP5103580B2 (en) Image processing apparatus and digital camera
US20050046695A1 (en) Color misregistration reducer
US20060159335A1 (en) Photo dazzle color temperature correction
JP2005051745A (en) Color temperature correcting circuit
JP2001285654A (en) Color image processing method and color image processing apparatus
JP3748446B2 (en) Image processing circuit of image input device
JP3302439B2 (en) Color misregistration correction device
JP2001255864A (en) Color image processing method and color image processor
JP2001189871A (en) Color image processing method and color inage processor
TWI533708B (en) Method and image processing device for image enhancement
JP2000165686A (en) Color converter, color converting method and storage medium readable by computer
TW201511522A (en) Color conversion method and color conversion system