JPH05119752A - Method and device for adjusting color of color image - Google Patents

Method and device for adjusting color of color image

Info

Publication number
JPH05119752A
JPH05119752A JP3281229A JP28122991A JPH05119752A JP H05119752 A JPH05119752 A JP H05119752A JP 3281229 A JP3281229 A JP 3281229A JP 28122991 A JP28122991 A JP 28122991A JP H05119752 A JPH05119752 A JP H05119752A
Authority
JP
Japan
Prior art keywords
color
image
correction amount
target
representative point
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.)
Granted
Application number
JP3281229A
Other languages
Japanese (ja)
Other versions
JP3126046B2 (en
Inventor
Yoshiharu Suzuki
祥治 鈴木
Tadakazu Kusunoki
忠和 楠
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP03281229A priority Critical patent/JP3126046B2/en
Publication of JPH05119752A publication Critical patent/JPH05119752A/en
Application granted granted Critical
Publication of JP3126046B2 publication Critical patent/JP3126046B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To keep the nature of an image before being adjusted in an image after being adjusted as for a method in which an optional color included in a color image is extracted to correct to a specified color. CONSTITUTION:The representative point of the color image is specified at a representative point specifying step S1. Next, a target color being an adjusting target for the color of the representative point is specified at a target color specifying step 2. A correction quantity necessary for changing the color of the represantative point to the target color is calculated at a correction quantity arithmetic step S3, and finally, the correction quantity at the representative point obtained at the step S3 is corrected in accordance with a position where the image data of the respective picture elements of the color image occupies color space, and then a correction quantity correcting step S4 at which the correction quantity of each picture element is decided is executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はカラー画像の色調整方法
及び色調整装置に関する。詳しくは、カラー画像に含ま
れている任意の色を抽出して所定の色に修正するカラー
画像の色調整方法、及びそのために使用されるカラー画
像の色調整装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color adjusting method and a color adjusting apparatus for a color image. More specifically, the present invention relates to a color adjustment method for a color image that extracts an arbitrary color included in a color image and corrects it to a predetermined color, and a color adjustment device for the color image used for that purpose.

【0002】近年、自動車や服飾のデザインの分野では
カラーモニタを利用して、デザイナーがイメージする色
に容易に調整できるようになってきた。カラーモニタを
利用したデザインシステムでデザイナーが色を決めるに
は、計算機を使用して画像データの処理が行われる。ま
た、コンピュータグラフィックスの作成にあたって、モ
ニタ上で画像の各部分に色を割り当て、あるいは一旦決
めた色を変更する場合にも、色の調整が必要になる。こ
うした場合に計算機は、モニタ上で作成された商品など
の形状の各部にそれぞれ特定の色を割り付け、あるいは
画像スキャナのような読み取り装置から読み込まれた画
面の色を調整するためのデータ処理を実行する。
In recent years, in the field of designing automobiles and clothing, it has become possible to easily adjust the colors that a designer imagines using a color monitor. In order for a designer to determine a color in a design system using a color monitor, a computer is used to process image data. Further, when creating computer graphics, it is necessary to adjust the color when assigning a color to each part of the image on the monitor or changing the color once determined. In such a case, the computer allocates specific colors to each part of the shape of the product created on the monitor, or executes data processing to adjust the color of the screen read from a reading device such as an image scanner. To do.

【0003】したがって、色の抽出を精度良く行なった
り、部分的にも色を簡単に修正できるカラー画像の色調
整方法が望まれている。ここでは、特に色修正されたカ
ラー画像が商品本来の自然らしさを失わないで目標とす
る色に調整され、しかもその際の計算機と人間とのイン
タフェースを高めるという目標が設定される。
Therefore, there is a demand for a color adjustment method for a color image that can accurately extract a color and can easily partially correct a color. Here, in particular, a color-corrected color image is adjusted to a target color without losing the original naturalness of the product, and a target is set so as to enhance the interface between the computer and humans at that time.

【0004】[0004]

【従来の技術】従来の色の調整や、修正においては、デ
ィスプレイ上にカラーパレットを同時に表示して、オペ
レータが望む色を画像表示と同一の画面から選択する方
法があった。図7には、縦横複数の区画に区分されたカ
ラーパレットを示す。このカラーパレット30の各領域
31,32等にはそれぞれ異なる色が配列される。この
方法では、修正後の色を目視で選択できるという利点が
あるが、選択できる色の数はパレットの区画によって制
限される。その結果、最初の画像が有していた物体の立
体感や、細かな色の変化が消失し、画像から自然な感じ
が失われる。
2. Description of the Related Art In conventional color adjustment and correction, there has been a method of simultaneously displaying a color palette on a display and selecting a color desired by an operator from the same screen as an image display. FIG. 7 shows a color palette divided into a plurality of vertical and horizontal sections. Different colors are arranged in the areas 31 and 32 of the color palette 30, respectively. This method has the advantage that the modified color can be visually selected, but the number of colors that can be selected is limited by the partition of the palette. As a result, the stereoscopic effect of the object and the fine color change that the first image had are lost, and the image loses its natural appearance.

【0005】別の色調整の方法として、オペレータが望
む色を色データとして入力するものがある。図8はディ
スプレイに表示された色データ調整画面を示している。
一般に人間が知覚する色の属性には、色相、彩度、及び
明度が存在する。このため、色空間における色データの
3次元直交座標値として、色データの色相(H)、彩度
(S)、及び明度(V)を選択すれば、RGBデータで
記憶されているカラー画像の画像データはパラメータ表
示される。したがって、図8に示すようなH,S,Vの
調整用のつまみを擬似的に表示した画像を使用して、修
正前の画像データについてこれら3つのパラメータ値を
加減算すれば、カラー画像の色の調整が可能になる。
Another color adjustment method is to input a color desired by an operator as color data. FIG. 8 shows a color data adjustment screen displayed on the display.
Generally, there are hue, saturation, and lightness as color attributes perceived by humans. Therefore, if the hue (H), the saturation (S), and the lightness (V) of the color data are selected as the three-dimensional orthogonal coordinate values of the color data in the color space, the color image stored in the RGB data can be obtained. The image data is displayed as parameters. Therefore, if an image in which the knobs for adjusting H, S, and V are pseudo-displayed as shown in FIG. 8 is used and these three parameter values are added to or subtracted from the image data before correction, the color of the color image is changed. Can be adjusted.

【0006】後者のような色調整方法では、3つのパラ
メータ値の選択により色の選択が多様化し、前者の方法
と比較して、商品本来の自然らしさを失わないで目標と
する色に調整する上では、極めて都合がよい。
In the latter color adjustment method, the selection of three parameter values diversifies the color selection, and compared with the former method, the target color is adjusted without losing the original naturalness of the product. Above, it is extremely convenient.

【0007】[0007]

【発明が解決しようとする課題】しかし、元の画像デー
タに調整量を加減する後者の方法であっても、同じ色の
領域を調整対象領域として選択してその色を修正する場
合に調整すべきパラメータ値のうち明度や彩度を一律に
変化させると、修正前には物体の光沢部分であって本来
は画像中で白っぽい領域であるべき部分に色が付いた
り、影の部分であって黒っぽい領域であるべき部分に色
が付いてしまって、物体の感じが変化したり、あるいは
コントラストが低下するという問題があった。
However, even in the latter method of adjusting the adjustment amount to the original image data, the adjustment is performed when the same color region is selected as the adjustment target region and the color is corrected. If the lightness and saturation are changed uniformly among the power parameter values, the glossy part of the object before modification, which should be a whitish area in the image, may be colored or shadowed. There is a problem that the part that should be a dark area is colored and the feeling of the object is changed or the contrast is lowered.

【0008】また、調整対象領域の背景に同色系の領域
があると擬似的な輪郭が発生するという問題もあった。
すなわち、背景との境界部分で本来は色が連続的に変化
して、輪郭が不明瞭な画像であったものが、色の修正の
結果で不自然な輪郭線が付加されてしまう。このよう
に、画像データに調整量を一律に加減しているために、
調整後の画像が元の画像と同様な自然な感じが保存でき
ないという問題点が残されている。
There is also a problem that a pseudo contour is generated if there is an area of the same color system in the background of the area to be adjusted.
That is, although the image originally had an unclear outline due to continuous color change at the boundary with the background, an unnatural outline is added as a result of the color correction. In this way, since the adjustment amount is uniformly adjusted in the image data,
There is still a problem that the adjusted image cannot save the same natural feeling as the original image.

【0009】本発明はこのような点に鑑みてなされたも
のであり、調整する画像データの色空間での座標値に応
じて調整量を補正し、調整後の画像に調整前の画像の自
然さを保存するようにしたカラー画像の色調整方法を提
供することを目的とする。
The present invention has been made in view of such a point, and the adjustment amount is corrected in accordance with the coordinate value of the image data to be adjusted in the color space, and the adjusted image becomes a natural image of the image before adjustment. It is an object of the present invention to provide a color adjustment method for a color image that saves the color.

【0010】また、本発明の他の目的は、色修正された
カラー画像の自然らしさを失わないで目標とする色に調
整する際の計算機と人間とのインタフェースを高めるよ
うにしたカラー画像の色調整装置を提供することであ
る。
Another object of the present invention is to enhance the interface between a computer and a human in adjusting a target color without losing the naturalness of the color-corrected color image. It is to provide an adjusting device.

【0011】[0011]

【課題を解決するための手段】図1は、上記目的を達成
する本発明の原理を説明するフローチャート図である。
この図1に示すように、本発明のカラー画像の色調整方
法では、代表点特定ステップS1、目標色指定ステップ
S2、修正量演算ステップS3、及び修正量補正ステッ
プS4によって、カラー画像の各画素毎に指定される修
正量に従ってRGBデータが調整される。
FIG. 1 is a flow chart for explaining the principle of the present invention for achieving the above object.
As shown in FIG. 1, in the color adjusting method of the color image of the present invention, each pixel of the color image is subjected to the representative point specifying step S1, the target color specifying step S2, the correction amount calculating step S3, and the correction amount correcting step S4. The RGB data is adjusted according to the correction amount designated for each.

【0012】代表点特定ステップS1では、カラー画像
の代表点が特定される。次に、目標色指定ステップS2
では、この代表点の色に対する調整目標となる目標色を
指定する。修正量演算ステップS3において、代表点の
色を目標色に変更するために必要な修正量が演算され、
最後に、カラー画像の各画素の画像データが色空間に占
める位置に応じて、ステップS3で求めた代表点での修
正量に補正をして、各画素毎の修正量を決定する修正量
補正ステップS4が実行される。
In the representative point specifying step S1, the representative point of the color image is specified. Next, the target color designation step S2
Then, the target color that is the adjustment target for the color of this representative point is specified. In the correction amount calculation step S3, the correction amount necessary for changing the color of the representative point to the target color is calculated,
Finally, correction amount correction for correcting the correction amount at the representative point obtained in step S3 according to the position of the image data of each pixel of the color image in the color space to determine the correction amount for each pixel. Step S4 is executed.

【0013】また、図6に示す本発明のカラー画像の色
調整装置によって、上述したカラー画像の色調整方法が
実行される。このカラー画像の色調整装置は、カラー画
像を各画素のRGBデータとして記憶するRGBデータ
記憶手段11と、前記カラー画像から色調整の対象領域
内の代表点を指示して代表色を入力する代表点指示手段
13と、前記代表点指示手段13により指示された代表
点を含む色調整の対象領域の画像データを保持する画像
データ記憶手段16と、前記代表点指示手段13により
入力された代表色の調整目標となる目標色の画像データ
を入力する目標色入力手段17と、前記代表点の画像デ
ータと前記目標色の画像データとの色空間内での修正量
を算出する修正量演算手段19と、前記画像データ記憶
手段16の各画像データの座標値に応じた係数を決定す
る係数決定手段20と、前記係数によって前記修正量演
算手段19で算出された修正量を補正して前記画像デー
タ記憶手段16に保持されている画像データを修正する
色修正演算手段21と、前記色修正演算手段21で修正
された画像データによって前記RGBデータ記憶手段1
1に記憶されたカラー画像から調整対象領域の色修正を
したカラー画像を表示する表示手段1とを有するもので
ある。
Further, the color image color adjusting apparatus of the present invention shown in FIG. 6 executes the above-described color image color adjusting method. This color image color adjusting device is an RGB data storage means 11 for storing a color image as RGB data of each pixel, and a representative for inputting a representative color by instructing a representative point in a color adjustment target area from the color image. A point indicating means 13, an image data storage means 16 for holding image data of a color adjustment target area including a representative point indicated by the representative point indicating means 13, and a representative color input by the representative point indicating means 13. Target color input means 17 for inputting the image data of the target color to be the adjustment target of, and correction amount calculating means 19 for calculating the correction amount in the color space of the image data of the representative point and the image data of the target color. A coefficient determining means 20 for determining a coefficient according to the coordinate value of each image data of the image data storage means 16, and a correction amount calculated by the correction amount calculating means 19 by the coefficient. Wherein the correction and color correction calculating means 21 to correct the image data stored in said image data storage means 16, the image data corrected by the color-correction unit 21 RGB data storage section 1
Display means 1 for displaying a color image in which the color of the adjustment target area is corrected from the color image stored in 1.

【0014】[0014]

【作用】本発明方法では、指定された目標の色に対して
調整される画像データの色空間中での座標値によって修
正量を補正している。これにより、カラー画像に含まれ
る光沢部分や影の部分についての修正量が補正され、画
像の感じを保存でき、コントラストの低下を防ぐことが
できる。
In the method of the present invention, the correction amount is corrected by the coordinate value in the color space of the image data adjusted for the designated target color. As a result, the correction amount for the glossy portion and the shadow portion included in the color image is corrected, the feeling of the image can be saved, and the reduction in contrast can be prevented.

【0015】また、色調整の対象領域を抽出して指定さ
れた目標色に変更する調整を行う場合にも、対象領域内
の修正量に対して各画像データの座標値に応じた係数に
よる重み付けができるから、背景色との境界部分に擬似
的な輪郭が発生しないように色調整ができる。
Further, when the target area for color adjustment is extracted and adjusted to change to the designated target color, the correction amount in the target area is weighted by a coefficient according to the coordinate value of each image data. Therefore, it is possible to perform color adjustment so that a pseudo contour does not occur at the boundary with the background color.

【0016】[0016]

【実施例】以下、本発明方法の一実施例を図面に基づい
て説明する。図2は対象画像を表示するカラーモニタ1
を示しており、その画面2にはカラー画像の一例とし
て、一輪の花が表示されている。この対象画像は、例え
ば原画からイメージスキャナで読み取られ、以下に説明
する手順によってこのカラーモニタ1上で色調整され
る。なお画面2の左上には、図7のカラーパレットと同
様の目標色を示すパレットが表示される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the method of the present invention will be described below with reference to the drawings. FIG. 2 is a color monitor 1 for displaying a target image.
, A single flower is displayed on the screen 2 as an example of a color image. The target image is read from an original image by an image scanner, for example, and color adjustment is performed on the color monitor 1 by the procedure described below. At the upper left of the screen 2, a palette showing target colors similar to the color palette of FIG. 7 is displayed.

【0017】〔調整対象領域の抽出〕オペレータはカラ
ーモニタ1の画面2上に表示されている画像の一点をマ
ウスなどで指定して、代表点が特定される。例えば画面
2に表示されたカーソルで一枚の花びらを指すことによ
って、花びら部分の画像データが色調整の対象領域とさ
れる。この対象領域の抽出にあたっては、まず代表点の
画像データに基づいて代表色を求めて、この代表色を含
む色空間中の3次元的な立体を特定し、そこに含まれる
画像データの共通する領域として抽出される。この場合
に、画像データのRGB値による色空間で領域指定して
も良いが、ここでは色相(H)、彩度(S)、及び明度
(V)による色空間で表される色データに変換して抽出
する。
[Extraction of Adjustment Target Area] The operator designates one point of the image displayed on the screen 2 of the color monitor 1 with a mouse or the like to specify the representative point. For example, by pointing one petal with the cursor displayed on the screen 2, the image data of the petal portion is set as the target area for color adjustment. In extracting the target area, first, a representative color is obtained based on the image data of the representative point, a three-dimensional solid in a color space including the representative color is specified, and the image data included therein is common. It is extracted as a region. In this case, the area may be designated in the color space based on the RGB values of the image data, but here, the color data is converted into the color data represented in the color space based on the hue (H), the saturation (S), and the lightness (V). And extract.

【0018】〔目標色の指定〕色調整の目標とする色
は、画面2のカラーパレットの1色をカーソルによって
指すことによって、指定できる。この目標色の指定は、
RGB値などの数値データをオペレータがキー入力して
も良いし、更には、赤、青など色を特定する言葉で指定
することも可能である。
[Designation of Target Color] The target color for color adjustment can be designated by pointing one color of the color palette of the screen 2 with a cursor. This target color specification is
Numerical data such as RGB values may be keyed in by an operator, and further, it is possible to specify by a word for specifying a color such as red or blue.

【0019】〔色の調整〕まず、代表点の画像データを
目標色の画像データに変更するために必要な画像データ
の修正量Δを求める。
[Color Adjustment] First, the correction amount Δ of the image data required to change the image data of the representative point to the image data of the target color is obtained.

【0020】図3は色相(H)、彩度(S)、及び明度
(V)による色空間座標を示す図である。ここで画像デ
ータの修正量Δを求めるには、RGB値で表示されてい
る目標色の画像データを、HSVの色データに変換し
て、色相、彩度、明度の各座標値の修正量を決定する。
図3では、代表点に相当する画素の画像データD0 (h
0 ,s0 ,v0 )と、目標色の画像データD1 (h1
1 ,v1 )が色空間に占める位置を示している。従っ
て修正量Δは、この色空間(H−S−V)では2つの画
像データD0 ,D1 の各座標値の差に相当する。また、
図2に示す調整対象領域である花びら部分の画像データ
は、この図3の色空間で画像データD0 を含む所定の距
離だけ離れた閉じた領域内に存在し、画像データD0
ここでは画像データ{hx,sx,vx}として示して
いる。
FIG. 3 shows hue (H), saturation (S), and lightness.
It is a figure which shows the color space coordinate by (V). Image here
In order to obtain the correction amount Δ of the data, it is displayed in RGB value.
Convert the target color image data to HSV color data
Then, the correction amount of each coordinate value of hue, saturation, and lightness is determined.
In FIG. 3, the image data D of the pixel corresponding to the representative point0(H
0, S0, V0) And the target color image data D1(H1
s1, V1) Indicates the position occupied in the color space. Obey
And the correction amount Δ is two images in this color space (HSV).
Image data D0, D1Corresponds to the difference in each coordinate value of. Also,
Image data of the petals, which is the adjustment target area shown in FIG.
Is the image data D in the color space of FIG.0Predetermined distance including
The image data D exists in a closed area separated by a distance.0To
Shown here as image data {hx, sx, vx}
There is.

【0021】図4は画像データのうちの彩度値による補
正のための補正曲線を示すもので、横軸は彩度Sを、縦
軸は彩度に応じて決まる補正係数値f1 (S)を表す。
また、明度値の補正曲線を同様に設定して、明度Vから
補正係数値f2 (V)を決めることができる。
FIG. 4 shows a correction curve for correction based on the saturation value in the image data. The horizontal axis represents the saturation S and the vertical axis represents the correction coefficient value f 1 (S) determined according to the saturation. ) Represents.
Further, the correction coefficient value f 2 (V) can be determined from the brightness V by similarly setting the correction curve of the brightness value.

【0022】次に、抽出された各画像データ{hx,s
x,vx}を上記修正量Δに基づいて修正するにあたっ
て、彩度S、明度Vの座標値sx,vxにより決定され
る係数f1 (sx),f2 (vx)を求め、修正量Δの
対応する成分を補正する。この補正量を決定する係数
は、それぞれ図4に示す補正曲線を設定しておけば、決
定できる。すなわち、抽出された調整対象領域の各画像
データ{hx,sx,vx}は、次の変換式に従って目
標色の画像データD1 (h1 ,s1 ,v1 )を中心とす
る新たな画像データ{hy,sy,vy}に変換され
る。
Next, each extracted image data {hx, s
x, vx} is corrected based on the correction amount Δ, the coefficients f 1 (sx) and f 2 (vx) determined by the coordinate values sx and vx of the saturation S and the lightness V are obtained, and the correction amount Δ Correct the corresponding component of. The coefficient for determining the correction amount can be determined by setting the correction curves shown in FIG. That is, each image data {hx, sx, vx} of the extracted adjustment target area is a new image centered on the image data D 1 (h 1 , s 1 , v 1 ) of the target color according to the following conversion formula. It is converted into data {hy, sy, vy}.

【0023】hy=hx+(h1 −h0 ) sy=sx+f1 (sx)・(s1 −s0 ) vy=vx+f2 (vx)・(v1 −v0 ) このように補正係数値は彩度、明度ともに色空間の各座
標値の中央値で極大となる補正曲線に基づいて決定さ
れ、ここでは彩度S、明度Vの座標値sx,vxによ
り、上記修正量Δを一次関数の形で直線的に補正してい
る。しかし、図5に示すガウス分布曲線に基づいて、補
正係数値g1 (sx),g2 (vx)をそれぞれ決定す
ることもできる。また補正曲線の関数の形を彩度、明度
ともに同じ関数の形としているが、彩度については直
線、明度については曲線(又は、その反対)であっても
良い。
Hy = hx + (h 1 −h 0 ) sy = sx + f 1 (sx) · (s 1 −s 0 ) vy = vx + f 2 (vx) · (v 1 −v 0 ) Thus, the correction coefficient value is Both the saturation and the lightness are determined based on a correction curve that is the maximum at the median of the coordinate values of the color space. Here, the correction amount Δ is expressed by The shape is corrected linearly. However, the correction coefficient values g 1 (sx) and g 2 (vx) can be determined based on the Gaussian distribution curve shown in FIG. Further, although the shape of the function of the correction curve is the same for both the saturation and the lightness, it may be a straight line for the saturation and a curve (or the opposite) for the lightness.

【0024】また、代表点での修正量が彩度については
(s1 −s0 )、明度については(v1 −v0 )であれ
ば、上記変換式によって代表点を目標色に調整できる。
したがって、図4または図5に示す補正曲線に従って関
数の形を決定する場合に、代表点での彩度値s0 及び明
度値v0 における補正係数値f1 (s0),f
2 (v 0 )がそれぞれ1になるように設定すれば、カラ
ー画像の各画素の色空間で占める彩度値sx及び明度値
vxの座標値に応じて修正量Δが補正され、目標色に応
じて各画素毎の色の調整が行われる。
Further, the correction amount at the representative point is
(S1-S0), For brightness (v1-V0)
For example, the representative point can be adjusted to the target color by the above conversion formula.
Therefore, according to the correction curve shown in FIG. 4 or FIG.
Saturation value s at the representative point when determining the shape of the number0And Ming
Degree value v0Correction coefficient value f at1(S0), F
2(V 0) Is set to 1 respectively,
-Saturation value sx and lightness value in the color space of each pixel of the image
The correction amount Δ is corrected according to the coordinate value of vx, and
Then, the color adjustment for each pixel is performed.

【0025】このような色の調整を行うことにより、カ
ラー画像の色を目標色に従って修正しても、画像中の白
っぽい領域と黒っぽい領域との関係が保存され、物体の
光沢部分と影の部分とのコントラストが低下せず、物体
の感じが変化しない。また、上述の変換のように彩度、
明度の両方の修正量に補正しないで、例えば明度のみを
補正することによっても、カラー画像の白黒の関係を保
存できる。
By performing such color adjustment, even if the color of the color image is corrected according to the target color, the relationship between the whitish area and the blackish area in the image is preserved, and the glossy part and the shadow part of the object are preserved. The contrast with and does not decrease, and the feeling of the object does not change. Also, like the conversion above, the saturation,
The black-and-white relationship of a color image can be preserved by correcting only the lightness without correcting the lightness correction amount.

【0026】また、カラー画像から特定の画像領域を抽
出して調整対象領域とし、各画素毎に指定される修正量
に従って対象領域のRGBデータのみを調整するカラー
画像の色調整についても、色調整をしない背景領域との
境界部分に擬似的な輪郭が発生しなくなる。
Further, a specific image area is extracted from the color image as an adjustment target area and only the RGB data of the target area is adjusted according to the correction amount designated for each pixel. No pseudo contour is generated at the boundary with the background area.

【0027】図6は本発明の色調整装置の構成の一例を
示すブロック図である。画像入力装置10は原画からR
GB信号などの入力画像データを画素単位で取り込むも
ので、例えばイメージスキャナなどが使用される。RG
Bデータ記憶手段11は、入力されたカラー画像を各画
素のRGBデータとして記憶する。この画像データはモ
ニタ1の表示用メモリ12にそのまま送られて、カラー
画像がモニタ1の画面2に表示される。
FIG. 6 is a block diagram showing an example of the arrangement of the color adjusting apparatus of the present invention. The image input device 10 changes from the original image to R
Input image data such as a GB signal is captured in pixel units, and an image scanner or the like is used, for example. RG
The B data storage unit 11 stores the input color image as RGB data of each pixel. This image data is sent to the display memory 12 of the monitor 1 as it is, and the color image is displayed on the screen 2 of the monitor 1.

【0028】代表点指示手段13は、例えば図2のカラ
ーモニタ1と接続されるマウスなどであって、画面2に
表示されたカラー画像から色調整の対象領域内の代表点
を指示できる。これによって、代表点指示手段13から
代表色データ保持用メモリ14にその代表色の色データ
が格納される。また色調整領域抽出回路15は代表点指
示手段13が指示した代表点を含む画素の領域を抽出す
る。この抽出においては、代表点の色相データを利用す
ることが可能である。画像データ記憶手段16は、この
色調整領域抽出回路15を介して代表点指示手段13に
より指示された代表点を含む色調整の対象領域の画像デ
ータを保持する。
The representative point designating means 13 is, for example, a mouse connected to the color monitor 1 shown in FIG. 2, and can designate a representative point in the color adjustment target area from the color image displayed on the screen 2. As a result, the color data of the representative color is stored in the representative color data holding memory 14 from the representative point designating means 13. Further, the color adjustment area extraction circuit 15 extracts the area of the pixel including the representative point designated by the representative point designating means 13. In this extraction, it is possible to use the hue data of the representative points. The image data storage means 16 holds the image data of the color adjustment target area including the representative point designated by the representative point designating means 13 via the color adjustment area extraction circuit 15.

【0029】一方、目標色入力手段17は図2の画面2
に示されるカラーパレットの特定色を指示し、あるいは
数値データとして目標色を入力するものである。この目
標色入力手段17により、目標色データ保持用メモリ1
8に代表色の調整目標となる目標色の画像データが入力
される。修正量演算手段19は、代表色データ保持用メ
モリ14及び目標色データ保持用メモリ18からそれぞ
れ代表点の画像データD0 (h0 ,s0 ,v0 )と、目
標色の画像データD1 (h1 ,s1 ,v1 )とを受け取
って、色空間内での修正量Δ(Δh,Δs,Δv)を算
出する。
On the other hand, the target color input means 17 is displayed on the screen 2 of FIG.
The specific color of the color palette shown in is designated, or the target color is input as numerical data. By the target color input means 17, the target color data holding memory 1
Image data of a target color, which is an adjustment target of the representative color, is input to 8. The correction amount calculation means 19 includes image data D 0 (h 0 , s 0 , v 0 ) of a representative point and a target color image data D 1 from the representative color data holding memory 14 and the target color data holding memory 18, respectively. (H 1 , s 1 , v 1 ) is received and the correction amount Δ (Δh, Δs, Δv) in the color space is calculated.

【0030】係数決定手段20では、画像データ記憶手
段16からの各画像データの座標値に応じた係数を決定
している。この係数は、図4あるいは図5に示す補正曲
線に基づいて決定され、修正量演算手段19で求めた修
正量Δ(Δh,Δs,Δv)の例えば彩度、明度につい
ての補正処理に使用される。すなわち、色修正演算手段
21には、係数決定手段20からの係数値f1 (s
x),f2 (vx)と、抽出された調整対象領域の各画
像データ(hx,sx,vx)と、修正量演算手段19
で算出された修正量Δが入力され、画像データ記憶手段
16に保持されている画像データが画素単位で修正され
る。この色修正演算手段21で修正された画像データ
{hy,sy,vy}は、逆変換回路22を介して表示
用メモリ12に送られる。こうしてRGBデータ記憶手
段11に記憶されたカラー画像から調整対象領域で色修
正されたカラー画像をカラーモニタ1に表示できる。
The coefficient determining means 20 determines the coefficient according to the coordinate value of each image data from the image data storage means 16. This coefficient is determined on the basis of the correction curve shown in FIG. 4 or FIG. 5, and is used for correction processing of the correction amount Δ (Δh, Δs, Δv) obtained by the correction amount calculating means 19, for example, saturation and lightness. It That is, the color correction calculation means 21 has the coefficient value f 1 (s
x), f 2 (vx), each image data (hx, sx, vx) of the extracted adjustment target area, and the correction amount calculation means 19
The correction amount Δ calculated in step 3 is input, and the image data held in the image data storage means 16 is corrected in pixel units. The image data {hy, sy, vy} corrected by the color correction calculation means 21 is sent to the display memory 12 via the inverse conversion circuit 22. In this way, the color image whose color is corrected in the adjustment target area can be displayed on the color monitor 1 from the color image stored in the RGB data storage means 11.

【0031】上記の説明では、代表点を指示することに
よって色調整領域を抽出する場合を述べたが、色相の指
定によって対象となる画素を特定して、対象領域を抽出
することもできる。
In the above description, the case where the color adjustment area is extracted by designating the representative point has been described, but the target area can be extracted by specifying the target pixel by specifying the hue.

【0032】[0032]

【発明の効果】以上説明したように、本発明では調整さ
れるカラー画像の目標色を指定して色調整するときに、
各画像データの座標値に応じた係数に基づいて補正され
た修正量で色調整するように構成した。このため、色調
整の対象領域内での色の重み付けが容易に行え、画像の
白い光沢部分と黒い影の部分との関係を保存することが
できる。また調整領域と背景領域との境界部分に擬似的
な輪郭が発生しないから、カラー画像の本来の自然らし
さを失わないで目標とする色に調整をすることができ
る。
As described above, according to the present invention, when the target color of the color image to be adjusted is designated and the color adjustment is performed,
The color adjustment is performed with the correction amount corrected based on the coefficient corresponding to the coordinate value of each image data. Therefore, the weighting of the colors in the color adjustment target area can be easily performed, and the relationship between the white glossy portion and the black shadow portion of the image can be saved. Further, since a pseudo contour does not occur at the boundary between the adjustment area and the background area, it is possible to adjust the target color without losing the original naturalness of the color image.

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

【図1】本発明の色調整方法の原理を説明するフローチ
ャート図である。
FIG. 1 is a flowchart illustrating the principle of a color adjustment method of the present invention.

【図2】カラーモニタに表示された対象画像の一例を示
す図である。
FIG. 2 is a diagram showing an example of a target image displayed on a color monitor.

【図3】色空間座標における画像データを示す図であ
る。
FIG. 3 is a diagram showing image data in color space coordinates.

【図4】彩度値による補正のための補正曲線を示す図で
ある。
FIG. 4 is a diagram showing a correction curve for correction based on a saturation value.

【図5】補正係数値を決定する別の補正曲線を示す図で
ある。
FIG. 5 is a diagram showing another correction curve for determining a correction coefficient value.

【図6】本発明の色調整装置の構成を示すブロック図で
ある。
FIG. 6 is a block diagram showing a configuration of a color adjusting apparatus of the present invention.

【図7】複数の区画に区分されたカラーパレットを示す
図である。
FIG. 7 is a diagram showing a color palette divided into a plurality of sections.

【図8】ディスプレイに表示される色データ調整画面を
示す図である。
FIG. 8 is a diagram showing a color data adjustment screen displayed on a display.

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

1 カラーモニタ 10 画像入力装置 11 RGBデータ記憶手段 12 表示用メモリ 13 代表点指示手段 14 代表色データ保持用メモリ 15 色調整領域抽出回路 16 画像データ記憶手段 17 目標色入力手段 18 目標色データ保持用メモリ 19 修正量演算手段 20 係数決定手段 21 色修正演算手段 22 逆変換回路 1 Color Monitor 10 Image Input Device 11 RGB Data Storage Means 12 Display Memory 13 Representative Point Indication Means 14 Representative Color Data Holding Memory 15 Color Adjustment Area Extraction Circuit 16 Image Data Storage Means 17 Target Color Input Means 18 Target Color Data Holding Memory 19 Correction amount calculation means 20 Coefficient determination means 21 Color correction calculation means 22 Inverse conversion circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像の各画素毎に指定される修正
量に従ってRGBデータを調整するカラー画像の色調整
方法において、 前記カラー画像の代表点を特定する代表点特定ステップ
(S1)と、 前記代表点の色に対する調整目標となる目標色を指定す
る目標色指定ステップ(S2)と、 前記代表点の色を前記目標色に変更するために必要な修
正量を演算する修正量演算ステップ(S3)と、 前記各画素の画像データが色空間に占める位置に応じて
前記代表点での修正量に補正をして、前記各画素毎の修
正量とする修正量補正ステップ(S4)と、 を含むことを特徴とするカラー画像の色調整方法。
1. In a color image color adjusting method for adjusting RGB data according to a correction amount designated for each pixel of a color image, a representative point specifying step (S1) for specifying a representative point of the color image, A target color designating step (S2) for designating a target color to be an adjustment target for the color of the representative point, and a correction amount computing step (S3) for computing a correction amount necessary for changing the color of the representative point to the target color. ) And a correction amount correction step (S4) of correcting the correction amount at the representative point according to the position of the image data of each pixel in the color space to obtain the correction amount for each pixel. A color adjusting method for a color image, comprising:
【請求項2】 前記修正量補正ステップ(S4)では、
前記カラー画像の色相、彩度、及び明度をパラメータと
する色空間での各画素の座標値を基準にして、前記代表
点での修正量に補正をすることを特徴とする請求項1記
載のカラー画像の色調整方法。
2. In the correction amount correction step (S4),
The correction amount at the representative point is corrected with reference to the coordinate value of each pixel in a color space having the hue, saturation, and lightness of the color image as parameters. Color adjustment method for color images.
【請求項3】 前記カラー画像から前記代表点を含む特
定の画像領域を色調整の対象領域として抽出するととも
に、抽出された対象領域の各画素が前記色空間で占める
座標値のうち、少なくともその彩度、又は明度に応じて
前記代表点での修正量に補正をして、前記対象領域の各
画素毎の修正量とすることを特徴とする請求項2記載の
カラー画像の色調整方法。
3. A specific image region including the representative point is extracted from the color image as a target region for color adjustment, and at least the coordinate value of each pixel of the extracted target region in the color space is extracted. 3. The color adjusting method for a color image according to claim 2, wherein the correction amount at the representative point is corrected according to the saturation or the lightness to obtain the correction amount for each pixel of the target area.
【請求項4】 前記カラー画像の各画素毎の修正量を、
色空間の各座標値の中央値で極大となる補正曲線に基づ
いて補正することを特徴とする請求項2又は3記載のカ
ラー画像の色調整方法。
4. A correction amount for each pixel of the color image,
4. The color adjusting method for a color image according to claim 2, wherein the correction is performed based on a correction curve that has a maximum at a median value of each coordinate value of the color space.
【請求項5】 カラー画像の各画素毎に指定される修正
量に従ってRGBデータを調整するカラー画像の色調整
装置において、 前記カラー画像を各画素のRGBデータとして記憶する
RGBデータ記憶手段(11)と、 前記カラー画像から色調整の対象領域内の代表点を指示
して代表色を入力する代表点指示手段(13)と、 前記代表点指示手段(13)により指示された代表点を
含む色調整の対象領域の画像データを保持する画像デー
タ記憶手段(16)と、 前記代表点指示手段(13)により入力された代表色の
調整目標となる目標色の画像データを入力する目標色入
力手段(17)と、 前記代表点の画像データと前記目標色の画像データとの
色空間内での修正量を算出する修正量演算手段(19)
と、 前記画像データ記憶手段(16)の各画像データの座標
値に応じた係数を決定する係数決定手段(20)と、 前記係数によって前記修正量演算手段(19)で算出さ
れた修正量を補正して前記画像データ記憶手段(16)
に保持されている画像データを修正する色修正演算手段
(21)と、 前記色修正演算手段(21)で修正された画像データに
よって前記RGBデータ記憶手段(11)に記憶された
カラー画像から調整対象領域の色修正をしたカラー画像
を表示する表示手段(1)と、 を有することを特徴とするカラー画像の色調整装置。
5. A color image color adjusting device for adjusting RGB data according to a correction amount designated for each pixel of a color image, wherein RGB data storage means (11) stores the color image as RGB data of each pixel. A representative point designating means (13) for designating a representative color in the color adjustment target area from the color image and inputting a representative color; and a color including the representative point designated by the representative point designating means (13). Image data storage means (16) for holding the image data of the adjustment target area, and target color input means for inputting the image data of the target color that is the adjustment target of the representative color input by the representative point designating means (13). (17), and a correction amount calculation means (19) for calculating a correction amount in the color space between the image data of the representative point and the image data of the target color.
A coefficient determining means (20) for determining a coefficient according to the coordinate value of each image data of the image data storage means (16); and a correction amount calculated by the correction amount calculating means (19) by the coefficient. Image data storage means (16) corrected
Color correction calculation means (21) for correcting the image data held in the image data, and adjustment from the color image stored in the RGB data storage means (11) by the image data corrected by the color correction calculation means (21) A color adjusting device for a color image, comprising: a display unit (1) for displaying a color image in which the color of the target area is corrected.
JP03281229A 1991-10-28 1991-10-28 Color adjustment method and color adjustment device for color image Expired - Fee Related JP3126046B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03281229A JP3126046B2 (en) 1991-10-28 1991-10-28 Color adjustment method and color adjustment device for color image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03281229A JP3126046B2 (en) 1991-10-28 1991-10-28 Color adjustment method and color adjustment device for color image

Publications (2)

Publication Number Publication Date
JPH05119752A true JPH05119752A (en) 1993-05-18
JP3126046B2 JP3126046B2 (en) 2001-01-22

Family

ID=17636169

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03281229A Expired - Fee Related JP3126046B2 (en) 1991-10-28 1991-10-28 Color adjustment method and color adjustment device for color image

Country Status (1)

Country Link
JP (1) JP3126046B2 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998042142A1 (en) * 1997-03-14 1998-09-24 Sony Corporation Color correction device, color correction method, picture processing device, and picture processing method
US6340976B1 (en) 1998-04-15 2002-01-22 Mitsubishi Denki Kabushiki Kaisha Multivision system, color calibration method and display
WO2004029876A1 (en) * 2002-09-25 2004-04-08 Nec Corporation Image color correcting device, image color correcting method and image color correcting program
JP2006135628A (en) * 2004-11-05 2006-05-25 Fuji Xerox Co Ltd Color adjustment method and device thereof
KR100545116B1 (en) * 1997-03-14 2006-07-12 소니 가부시끼 가이샤 Color Correction Device and Color Correction Method, Image Processing Device and Image Processing Method
KR100657898B1 (en) * 2003-09-01 2006-12-14 삼성전자주식회사 Method and apparatus for adjusting color of image
KR100855844B1 (en) * 2001-06-19 2008-09-01 산요덴키가부시키가이샤 Digital camera
JP2009060431A (en) * 2007-08-31 2009-03-19 Brother Ind Ltd Image processor, image processing method, and image processing program
JP2009171402A (en) * 2008-01-18 2009-07-30 Ricoh Co Ltd Image processing apparatus, image processing method, and program
US8094343B2 (en) 2007-08-31 2012-01-10 Brother Kogyo Kabushiki Kaisha Image processor
US8159716B2 (en) 2007-08-31 2012-04-17 Brother Kogyo Kabushiki Kaisha Image processing device performing image correction by using a plurality of sample images
US8174731B2 (en) 2007-08-31 2012-05-08 Brother Kogyo Kabushiki Kaisha Image processing device outputting image for selecting sample image for image correction
US8284417B2 (en) 2007-08-31 2012-10-09 Brother Kogyo Kabushiki Kaisha Image processing device capable of preventing needless printing
US8311323B2 (en) 2007-08-31 2012-11-13 Brother Kogyo Kabushiki Kaisha Image processor for converting image by using image retrieved based on keyword
US8390905B2 (en) 2007-08-31 2013-03-05 Brother Kogyo Kabushiki Kaisha Image processing device extracting desired region to be used as model for image correction

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998042142A1 (en) * 1997-03-14 1998-09-24 Sony Corporation Color correction device, color correction method, picture processing device, and picture processing method
US6504551B1 (en) 1997-03-14 2003-01-07 Sony Corporation Color correction device, color correction method, picture processing device, and picture processing method
KR100545116B1 (en) * 1997-03-14 2006-07-12 소니 가부시끼 가이샤 Color Correction Device and Color Correction Method, Image Processing Device and Image Processing Method
US6340976B1 (en) 1998-04-15 2002-01-22 Mitsubishi Denki Kabushiki Kaisha Multivision system, color calibration method and display
KR100855844B1 (en) * 2001-06-19 2008-09-01 산요덴키가부시키가이샤 Digital camera
WO2004029876A1 (en) * 2002-09-25 2004-04-08 Nec Corporation Image color correcting device, image color correcting method and image color correcting program
KR100657898B1 (en) * 2003-09-01 2006-12-14 삼성전자주식회사 Method and apparatus for adjusting color of image
JP2006135628A (en) * 2004-11-05 2006-05-25 Fuji Xerox Co Ltd Color adjustment method and device thereof
JP2009060431A (en) * 2007-08-31 2009-03-19 Brother Ind Ltd Image processor, image processing method, and image processing program
US8094343B2 (en) 2007-08-31 2012-01-10 Brother Kogyo Kabushiki Kaisha Image processor
US8159716B2 (en) 2007-08-31 2012-04-17 Brother Kogyo Kabushiki Kaisha Image processing device performing image correction by using a plurality of sample images
US8174731B2 (en) 2007-08-31 2012-05-08 Brother Kogyo Kabushiki Kaisha Image processing device outputting image for selecting sample image for image correction
US8284417B2 (en) 2007-08-31 2012-10-09 Brother Kogyo Kabushiki Kaisha Image processing device capable of preventing needless printing
US8311323B2 (en) 2007-08-31 2012-11-13 Brother Kogyo Kabushiki Kaisha Image processor for converting image by using image retrieved based on keyword
US8390905B2 (en) 2007-08-31 2013-03-05 Brother Kogyo Kabushiki Kaisha Image processing device extracting desired region to be used as model for image correction
JP2009171402A (en) * 2008-01-18 2009-07-30 Ricoh Co Ltd Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
JP3126046B2 (en) 2001-01-22

Similar Documents

Publication Publication Date Title
US7557812B2 (en) Multilevel texture processing method for mapping multiple images onto 3D models
JP3126046B2 (en) Color adjustment method and color adjustment device for color image
US7091993B1 (en) Computer-implemented digital video object compositing
US6172681B1 (en) Color adjustment and conversion method
US5398123A (en) Image processing method and apparatus capable of automatic color masking
US5877769A (en) Image processing apparatus and method
JPH0344780A (en) Texture mapping method
CN110248242B (en) Image processing and live broadcasting method, device, equipment and storage medium
KR20070090224A (en) Method of electronic color image saturation processing
JPH11306334A (en) Picture processor and picture processing method
JP2882754B2 (en) Soft chroma key processing method
JP3009934B2 (en) Color adjustment method and color adjustment device
JP2601265B2 (en) Color correction method
JPH03121571A (en) Color picture processor
JPH04329487A (en) Method and device for extracting area
JP2713677B2 (en) Color image color change processing method and color image synthesis processing method
JP2756047B2 (en) Color image color adjustment method and apparatus, and image synthesis method
JPH05120417A (en) Color adjusting and picture synthesizing method and device for color picture
JP3416355B2 (en) Apparatus and method for removing noise from color image
JPH0571099B2 (en)
JP2847740B2 (en) Coloring method for achromatic objects
JPH03127278A (en) System and device for color picture processing
JP2714027B2 (en) Color image processing apparatus and color image processing method
JPH09233353A (en) Image color tone correcting device
JPH07203299A (en) Color adjustment for color picture and method and device for composing picture

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001010

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

Free format text: PAYMENT UNTIL: 20081102

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081102

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091102

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees