JPH07200814A - Image color correcting method - Google Patents

Image color correcting method

Info

Publication number
JPH07200814A
JPH07200814A JP5350796A JP35079693A JPH07200814A JP H07200814 A JPH07200814 A JP H07200814A JP 5350796 A JP5350796 A JP 5350796A JP 35079693 A JP35079693 A JP 35079693A JP H07200814 A JPH07200814 A JP H07200814A
Authority
JP
Japan
Prior art keywords
image
color
correction
display
image 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
JP5350796A
Other languages
Japanese (ja)
Inventor
Atsushi Uchida
篤志 内田
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP5350796A priority Critical patent/JPH07200814A/en
Publication of JPH07200814A publication Critical patent/JPH07200814A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To correct the color of a subject image to be a desired color by a simple operation. CONSTITUTION:An image to undergo the color correction is read out of an image data storage pert 10A end shown on a display 14. At the same time, the input image data are converted into a coordinate system of HLS by a coordinate system converting part 24. Then, the optional corrected value DELTAH, DELTAL, and DELTAS are from inputted from corrected value input part 26 and added to the HLS coordinate value of the subject image at a color correction arithmetic part 32. This HLS value is converted into the RGB data and shown on the display 14. If the result of correction is satisfactory, the corrected image data are adversely converted into a CMYK coordinate system, for example, for a printing image and stored in a corrected image data storage part 10B.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像の色修正法、特に
対象画像の色を目標の色に修正する際に適用して好適
な、画像の色修正方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image color correcting method, and more particularly to an image color correcting method suitable for correcting a target image color to a target color.

【0002】[0002]

【従来の技術】例えば、商品カタログ用の画像が、目標
の色と異なっている場合には、色を修正したい画像(対
象画像)を目標とする色に一致するように修正を行う必
要がある。
2. Description of the Related Art For example, when an image for a merchandise catalog is different from a target color, it is necessary to correct the image whose color is to be corrected (target image) so as to match the target color. .

【0003】従来、カタログ用画像でこのような修正を
行う場合には、カラー写真を再分解して入力し直した
り、原版(フィルム)上に網点で表示されている色を修
正液を使って修正したりすることで対応していた。
Conventionally, in the case of making such a correction with an image for a catalog, a color photograph is redistributed and input again, or a color displayed by a halftone dot on the original plate (film) is used with a correction liquid. I responded by correcting it.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、修正の
ための再分解には時間やコストがかかるという問題があ
り、又原版修正には熟練した技術が要求されるという問
題があった。
However, there is a problem that re-disassembly for correction requires time and cost, and that there is a problem that a skilled technique is required for original plate correction.

【0005】本発明は、前記従来の問題点を解決するべ
くなされたもので、目標の色からずれている対象画像の
色を目標の色に簡単な操作で修正することができる、画
像の色修正方法を提供することを課題とする。
The present invention has been made to solve the above-mentioned conventional problems, and it is possible to correct the color of the target image deviating from the target color to the target color by a simple operation. It is an object to provide a correction method.

【0006】[0006]

【課題を解決するための手段】本発明は、画像の色修正
方法において、色修正の対象をディスプレイ上に表示
し、対象画像の画像データを、H(色相)、L(明
度)、S(彩度)の座標系に変換し、対象画像のHLS
座標値に、任意の修正値を加算することにより、前記課
題を解決したものである。
According to the present invention, in an image color correcting method, a target of color correction is displayed on a display, and image data of the target image is represented by H (hue), L (brightness), S ( HLS of the target image converted to the coordinate system of saturation)
The above problem is solved by adding an arbitrary correction value to the coordinate value.

【0007】本発明は、又、上記画像の色修正方法にお
いて、特定の色相角を基準として正負方向に所定角度範
囲内にある色相角の画像領域を抽出し、抽出した領域に
対してのみ色修正を行うようにしたものである。
According to the present invention, in the above image color correction method, an image area having a hue angle within a predetermined angle range in the positive and negative directions with respect to a specific hue angle is extracted, and only the extracted area is colored. It is intended to be corrected.

【0008】本発明は、更に、上記画像の色修正方法に
おいて、基準の色相角から離れる角度が大きくなる程、
対象画像のH、L、S座標値に加算する修正値を減少さ
せるようにしたものである。
The present invention further provides, in the above-described image color correcting method, the larger the angle away from the reference hue angle is,
The correction value added to the H, L, and S coordinate values of the target image is reduced.

【0009】[0009]

【作用】本発明においては、ディスプレイ上に表示した
対象画像の画像データをH、L、Sの座標系に変換し、
対象画像のHLS座標値に任意の修正値を加算するよう
にしたので、簡単な操作で対象画像を目標の色に修正す
ることが可能となり、又、H、L、Sという人間の色覚
に合致した座標系を用いて色修正を行っているので、人
間の目に自然な修正が可能となる。
In the present invention, the image data of the target image displayed on the display is converted into the H, L, S coordinate system,
Since an arbitrary correction value is added to the HLS coordinate value of the target image, it becomes possible to correct the target image to a target color with a simple operation, and to match the human color vision of H, L, and S. Since the color correction is performed using the coordinate system described above, it is possible to correct the color naturally by the human eye.

【0010】特に、本発明は、HLS座標系の各座標軸
を修正値分だけ移動させていることになるので、座標軸
がずれているために色かぶりが生じている画像を修正す
るのに極めて有効である。
Particularly, since the present invention moves each coordinate axis of the HLS coordinate system by the correction value, it is extremely effective for correcting an image in which a color cast occurs due to the coordinate axis being displaced. Is.

【0011】又、本発明において、対象画像から特定の
色相角を基準として正負方向に所定角度範囲内にある色
相角の画像領域を抽出し、抽出した領域に対してのみ色
修正を行う場合には、対象画像の中で必要な領域につい
てのみ色修正を行うことが可能となるため、処理を簡略
化でき、処理時間を短縮することができる。
In the present invention, when an image area having a hue angle within a predetermined angle range in the positive and negative directions is extracted from a target image with a specific hue angle as a reference, and color correction is performed only on the extracted area. Since it is possible to perform color correction only on a necessary area in the target image, the processing can be simplified and the processing time can be shortened.

【0012】更に、本発明において、上記のように特定
領域を抽出して色修正を行う場合、基準の色相角から離
れる角度が大きくなる程、対象画像のHLS座標値に加
算する修正値を減少させる場合には、他の領域との境界
で色相や階調が不連続となることを防止できる。
Further, in the present invention, when the color correction is performed by extracting the specific area as described above, the correction value added to the HLS coordinate value of the target image decreases as the angle away from the reference hue angle increases. In such a case, it is possible to prevent discontinuity in hue and gradation at the boundary with other areas.

【0013】[0013]

【実施例】以下、図面を参照して、本発明の実施例を詳
細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0014】図1は、本発明に係る第1実施例の画像の
色修正方法に適用される修正装置を示す概略構成図であ
る。
FIG. 1 is a schematic block diagram showing a correction apparatus applied to the image color correction method of the first embodiment according to the present invention.

【0015】上記修正装置には、スキャナ等で分解済み
の画像データや色修正後の画像データ等を記憶するため
の、磁気テープ、光磁気ディスク又はハードディスク等
の記憶媒体からなる記憶装置10と、該記憶媒体10か
ら読み込んだ画像データに対して、後述する各種の処理
を行う機能を有する処理装置12と、記憶装置10から
読み込んだ修正対象の対象画像や修正後の画像等を表示
するためのディスプレイ14とを備えている。
The correction device includes a storage device 10 which is a storage medium such as a magnetic tape, a magneto-optical disk or a hard disk for storing image data decomposed by a scanner or the like, image data after color correction, and the like. A processing device 12 having a function of performing various processes to be described later with respect to image data read from the storage medium 10, and a target image of a correction target read from the storage device 10, a corrected image, and the like. And a display 14.

【0016】上記処理装置12は、図2に示すように、
記憶装置10に含まれる画像データ記憶部10Aからデ
ィスプレイ14に表示する画像用の画像データを読み込
むための表示用画像読込部20と、該読込部20で読込
んだ画像データを、表示用画像データに変換してディス
プレイ14に表示するための画像表示部22と、ディス
プレイ14に表示した画像について、画像データをHL
S座標系に変換するための座標系変換部24と、得られ
たHLS系座標値に加算する任意の修正値ΔH、ΔL、
ΔSを入力するための修正値入力部26と、対象画像の
HLS値に上記修正値を加算するHLS加算部28と、
修正対象の画像データを再度読込み、HLS座標系に変
換するための変換用画像読込部30と、該変換用画像読
込部30で変換した対象画像の画像データに上記修正値
入力部26で入力された修正値を加算する色修正演算部
32と、演算処理後のHLS系座標値を逆変換すると共
に、それを画像表示部22に送り、ディスプレイ14に
表示させるための座標系逆変換部34と、逆変換した修
正後の画像データを記憶装置10に含まれる修正画像デ
ータ記憶部10Bに書き込むための画像書込部36とを
備えている。
The processing device 12 is, as shown in FIG.
The display image reading unit 20 for reading the image data for the image to be displayed on the display 14 from the image data storage unit 10A included in the storage device 10, and the image data read by the reading unit 20 are the display image data. The image display unit 22 for converting into the image and displaying it on the display 14 and the image data displayed on the display 14 are HL.
A coordinate system conversion unit 24 for converting to the S coordinate system, and arbitrary correction values ΔH, ΔL to be added to the obtained HLS system coordinate values.
A correction value input unit 26 for inputting ΔS, an HLS addition unit 28 for adding the correction value to the HLS value of the target image,
The image data to be corrected is read again, and the conversion image reading unit 30 for converting the image data into the HLS coordinate system, and the image data of the target image converted by the conversion image reading unit 30 are input to the correction value input unit 26. A color correction calculation unit 32 for adding the correction value, and a coordinate system reverse conversion unit 34 for inversely converting the HLS system coordinate value after the calculation process and sending the same to the image display unit 22 for display on the display 14. An image writing unit 36 for writing the inversely-converted corrected image data in the corrected image data storage unit 10B included in the storage device 10.

【0017】なお、前記修正値入力部としては、キーボ
ード等で数値を直接入力する方式でも、又、H、L、S
毎に入力用つまみ等、を設けてHLS値を加減する方式
としてもよい。
As the correction value input section, a method of directly inputting a numerical value with a keyboard or the like, or H, L, S
An input knob or the like may be provided for each to adjust the HLS value.

【0018】次に、上述した修正装置を用いて行う本実
施例の色修正方法を、図3のフローチャートに従って説
明する。なお、、修正対象の元画像は、C(シアン)、
M(マゼンタ)、Y(イエロー)、K(ブラック)の表
色系で表わされた印刷用画像であり、ここではその全体
を修正する場合を説明する。
Next, the color correcting method of this embodiment using the above-mentioned correcting device will be described with reference to the flowchart of FIG. The original image to be corrected is C (cyan),
It is a printing image represented by a color system of M (magenta), Y (yellow), and K (black), and here, a case where the whole is corrected will be described.

【0019】まず、表示用画像読込部20により、画像
データ記憶部10Aから対象画像を、画像サイズやディ
スプレイ14の解像度に応じて適宜間引いた上で読み出
す(ステップ1)。ここで間引く理由は、画像は印刷用
であるため、解像度が高くデータ量が大きいので、その
ままディスプレイに表示するとはみ出してしまったりす
ることを防ぐことにある。
First, the display image reading section 20 appropriately thins out the target image from the image data storage section 10A according to the image size and the resolution of the display 14 and reads it (step 1). The reason for thinning out here is to prevent the image from sticking out when it is displayed on the display as it is because the image has a high resolution and a large amount of data because it is for printing.

【0020】上記ステップ1で読み出した画像をディス
プレイ14に表示するために、その画像データを画像表
示部22で表示用のRGBデータに変換してディスプレ
イ14に表示する(ステップ2)。
In order to display the image read out in step 1 on the display 14, the image data is converted into RGB data for display by the image display section 22 and displayed on the display 14 (step 2).

【0021】ここで行うRGBデータへの変換は、例え
ば元の画像データが8ビット(0〜255)の印刷用C
MY(K)データの場合、両者が補色の関係にあること
を利用した次の(1)〜(3)式による補色変換によっ
て得られるR、G、Bの各値に対して、ディスプレイの
発色特性を補正して見易くするために、更に次の(4)
〜(6)式によりガンマ補正をかけることで実現でき
る。なお、便宜上、ここではKを無視している。
The conversion to RGB data performed here is, for example, a printing C in which the original image data is 8 bits (0 to 255).
In the case of MY (K) data, the color of the display is generated for each value of R, G, B obtained by the complementary color conversion according to the following equations (1) to (3) using the fact that they have a complementary color relationship. In order to correct the characteristics and make them easier to see, the following (4)
This can be achieved by applying gamma correction according to the equations (6). For convenience, K is ignored here.

【0022】R=1−C/255 …(1) G=1−M/255 …(2) B=1−Y/255 …(3) r =255(R0.45) …(4) g =255(G0.45) …(5) b =255(B0.45) …(6)R = 1-C / 255 (1) G = 1-M / 255 (2) B = 1-Y / 255 (3) r = 255 (R 0.45 ) (4) g = 255 (G 0.45 ) ... (5) b = 255 (B 0.45 ) ... (6)

【0023】ステップ1で読み出した画像データを座標
系変換部24でHLSデータに変換する(ステップ
3)。ここで行うHLSデータへの変換は、例えばガン
マ補正前のRGBデータR、G、Bを次の(7)〜
(9)式による線形変換によって輝度(Y)及び色差
(Cr 、Cb )データに分離した上で、(10)〜(1
2)式による極座標変換を行うことで実現できる。
The image data read in step 1 is converted into HLS data by the coordinate system conversion unit 24 (step 3). The conversion to the HLS data performed here is performed by, for example, converting the RGB data R, G, and B before gamma correction from the following (7) to
The luminance (Y) and color difference (Cr, Cb) data are separated by the linear conversion according to the equation (9), and then (10) to (1)
It can be realized by performing polar coordinate conversion by the equation (2).

【0024】 Y=0.299R+0.587G+0.114B …(7) Cr =R−Y …(8) Cb =B−Y …(9) H=tan -1(Cb /Cr ) …(10) L=Y …(11) S=(Cr 2 +Cb 2 1/2 …(12)Y = 0.299R + 0.587G + 0.114B (7) Cr = RY (8) Cb = BY (9) H = tan -1 (Cb / Cr) (10) L = Y (11) S = (Cr 2 + Cb 2 ) 1/2 (12)

【0025】次いで、オペレータは、修正値入力部26
により、ディスプレイ14に表示されている画像を修正
するために適当な修正値ΔH、ΔL、ΔSを入力し、色
修正演算部32において、ステップ3で変換した対象画
像のHLSデータに、この修正値ΔH、ΔL、ΔSをそ
れぞれ加え、次の(13)〜(15)式のようにH′、
L′、S′を算出する(ステップ4、5)。この計算
は、図4にHLS系の円筒座標を示したように、この座
標系の座標軸を修正値分だけ移動する処理にあたる。図
4(A)の斜視図にΔL、この円筒座標を上から見た状
態を示した同図(B)にΔH、ΔSを移動させた様子を
示した。
Next, the operator operates the correction value input unit 26.
Accordingly, appropriate correction values ΔH, ΔL, and ΔS for correcting the image displayed on the display 14 are input, and in the color correction calculation unit 32, the correction values are added to the HLS data of the target image converted in step 3. ΔH, ΔL, and ΔS are added, respectively, and H ', as shown in the following equations (13) to (15),
L'and S'are calculated (steps 4 and 5). This calculation corresponds to the process of moving the coordinate axis of this coordinate system by the correction value, as shown in FIG. 4 for the cylindrical coordinate of the HLS system. The perspective view of FIG. 4 (A) shows ΔL, and FIG. 4 (B) showing the state where the cylindrical coordinates are viewed from above is shown with ΔH and ΔS moved.

【0026】H′=H+ΔH …(13) L′=L+ΔL …(14) S′=S+ΔS …(15)H '= H + ΔH (13) L' = L + ΔL (14) S '= S + ΔS (15)

【0027】次いで、ステップ5で求めたH′、L′、
S′を座標系逆変換部34において、次の(16)〜
(18)式によりYCr Cb 系に戻した後、(19)〜
(24)式を用いて表示用のRGBデータに逆変換して
ディスプレイ14に表示する(ステップ6)。その際、
修正前の対象画像と対比できるように並べて表示させて
もよい。
Next, H ', L', obtained in step 5,
S'is converted by the coordinate system inverse transformation unit 34 from the following (16)-
After returning to the YCr Cb system by the equation (18), (19)-
It is converted back into RGB data for display using the equation (24) and displayed on the display 14 (step 6). that time,
You may display it side by side so that it can be compared with the target image before correction.

【0028】 Y′=L′ …(16) Cr ′=S′ cos(H′) …(17) Cb ′=S′ sin(H′) …(18) R′=Cr ′+Y′ …(19) B′=Cb ′+Y′ …(20) G′=(Y′−0.299R′−0.114B′)/0.587…(21) r ′=255(R′0.45) …(22) g ′=255(G′0.45) …(23) b ′=255(B′0.45) …(24)Y '= L' (16) Cr '= S' cos (H ') (17) Cb' = S 'sin (H') (18) R '= Cr' + Y '(19) ) B '= Cb' + Y '... (20) G' = (Y'-0.299R'-0.114B ') / 0.587 ... (21) r' = 255 (R '0.45) ... (22) g '= 255 ( G'0.45 ) ... (23) b' = 255 ( B'0.45 ) ... (24)

【0029】次いで、オペレータは、上記ステップ6で
表示された色修正後の画像の色を視覚により判断し、O
Kの場合はステップ8ヘ進み、不可の場合はステップ4
へ戻って新たな修正値を入力し、ステップ4〜7の処理
を行う(ステップ7)。
Next, the operator visually judges the color of the image after the color correction displayed in step 6 above, and
If K, proceed to step 8; otherwise, step 4
Then, a new correction value is input and the processes of steps 4 to 7 are performed (step 7).

【0030】ステップ7で色修正後の画像の色がOKと
判断されたら、変換用画像読込部30により修正前の対
象画像データを間引かずに画像データ記憶部10Aから
読み出し、そのデータをステップ2及び3と同様の方法
でHLSデータに変換する(ステップ8、9)。
If it is determined in step 7 that the color of the image after the color correction is OK, the conversion image reading unit 30 reads the target image data before the correction from the image data storage unit 10A without thinning it out, and the data is processed in the step. It is converted into HLS data by the same method as in 2 and 3 (steps 8 and 9).

【0031】次いで、ステップ9で変換した元画像のH
LSデータに、前記ステップ4で入力し、ステップ7で
OKと判断された修正値ΔH、ΔL、ΔSを加え、ステ
ップ5と同様に(13)〜(15)式によりH′、
L′、S′を算出し、これらの値を座標系逆変換部34
において元のCMY(K)座標系に逆変換する(ステッ
プ10、11)。この逆変換法は、R′、G′、B′を
求めるまでは前記ステップ6の場合と同様に(16)〜
(20)式により行い、その後次の(25)〜(28)
式を用いて行う。
Next, H of the original image converted in step 9
To the LS data, the correction values ΔH, ΔL, and ΔS input in step 4 and judged to be OK in step 7 are added, and H ′ is calculated by the equations (13) to (15) as in step 5.
L ′ and S ′ are calculated, and these values are calculated by the coordinate system inverse transformation unit 34.
In step S11, the original CMY (K) coordinate system is inversely transformed (steps 10 and 11). This inverse transformation method is the same as in the case of step 6 above (16) through until R ′, G ′ and B ′ are obtained.
The equation (20) is used, and then the following (25) to (28)
This is done using a formula.

【0032】 C′=255(1−R′) …(25) M′=255(1−G′) …(26) Y′=255(1−B′) …(27) K′=K …(28)C ′ = 255 (1-R ′) (25) M ′ = 255 (1-G ′) (26) Y ′ = 255 (1-B ′) (27) K ′ = K (28)

【0033】その後、上記ステップ11で求めたC′、
M′、Y′(K′)を、修正後の画像データとして記憶
装置10内の修正画像データ記憶部10Bに書き込む
(ステップ12)。
After that, C'determined in step 11 above,
M'and Y '(K') are written in the corrected image data storage unit 10B in the storage device 10 as the corrected image data (step 12).

【0034】以上詳述した本実施例によれば、印刷用画
像の画像データを表示用画像データに変換し、ディスプ
レイ14に表示すると共に、その画像データを人間の感
覚に合っているために修正結果を予測し易いHLS座標
系に変換し、別途決定したΔH、ΔL、ΔSの各修正値
を対象画像のH、L、Sの値に加算して修正するように
したので、加算という簡単な演算処理で自然な色修正が
可能となり、カタログ用印刷画像のように、撮映条件等
の違いにより目標の色と同系色で微妙に色目が異なって
いる場合でも、容易に色修正をすることができる。特
に、本実施例の色修正は、HLSの修正値分だけ座標軸
を移動していることに相当するので、座標軸がずれてい
るために色かぶりしている画像の修正に極めて有効であ
る。
According to the present embodiment described in detail above, the image data of the printing image is converted into the display image data and displayed on the display 14, and the image data is corrected because it matches the human sense. The result is converted into an easily predictable HLS coordinate system, and the separately determined correction values of ΔH, ΔL, and ΔS are added to the H, L, and S values of the target image to be corrected, so that the addition is simple. Natural color correction is possible through arithmetic processing.Even if the target color is similar to the target color and the color is slightly different due to differences in shooting conditions, such as in a printed image for a catalog, you can easily correct the color. You can In particular, the color correction of the present embodiment corresponds to moving the coordinate axis by the correction value of HLS, and therefore is extremely effective in correcting an image that has a color cast due to the shift of the coordinate axis.

【0035】又、分解済みの画像データを直接修正する
ため、再分解の手間やコストがかからない。
Further, since the decomposed image data is directly corrected, the time and cost for re-disassembling is not required.

【0036】又、修正後のH、L、Sの各値を用いて、
表示用の画像データに変換し、それをディスプレイ上に
表示することにより、ディスプレイ上で色を確認しなが
ら、簡単な操作(HLS値の入力)のみで色修正を行う
ことが可能となるため、熟練技術を必要としない。
Further, using the corrected values of H, L and S,
By converting the image data for display and displaying it on the display, it is possible to correct the color only by a simple operation (input of the HLS value) while confirming the color on the display. No skill required.

【0037】次に、本発明に係る第2実施例について説
明する。
Next, a second embodiment according to the present invention will be described.

【0038】本実施例は、処理操作を示した前記図3の
フローチャートのステップ5及びステップ10におい
て、以下の処理を行うようにした以外は、前記第1実施
例と略同一である。
This embodiment is substantially the same as the first embodiment except that the following processing is performed in steps 5 and 10 of the flowchart of FIG. 3 showing the processing operation.

【0039】本実施例では、対象画像の中で代表点を指
定し、前記ステップ3(又はステップ9)で変換したH
LSデータのH(色相角)の値が、代表点のHT を中心
とした一定の範囲(例えば、図6に示すようにHT ±6
0°)内にある画像領域のみを色修正対象として抽出す
る。
In this embodiment, a representative point is designated in the target image, and the H converted by the step 3 (or step 9) is specified.
The value of H (hue angle) of the LS data is within a certain range around H T of the representative point (for example, H T ± 6 as shown in FIG. 6).
Only the image area within 0 ° is extracted as a color correction target.

【0040】これは、椅子の場合を図6(A)に示した
ように、同じ色目の背部と座部のみを抽出することにあ
たる。このように、色相角Hの値が一定の範囲内にある
領域についてのみ、その画像データにステップ4で入力
した修正値ΔH、ΔL、ΔSを加え、前記(13)〜
(15)式でH′、L′、S′の各値を算出し、図6
(B)に示したように、抽出領域のみの色修正を行う。
なお、図6では、色の違いを斜線の有無で示してある。
This corresponds to extracting only the back and the seat of the same color, as shown in FIG. 6A in the case of a chair. In this way, the correction values ΔH, ΔL, and ΔS input in step 4 are added to the image data only for the region in which the value of the hue angle H is within a certain range, and the above (13)-
Each value of H ', L', and S'is calculated by the equation (15), and
As shown in (B), color correction is performed only on the extraction area.
In FIG. 6, the difference in color is indicated by the presence or absence of diagonal lines.

【0041】上記抽出範囲外の領域の場合は、修正を行
わず以降のステップに移り、元のRGBデータをディス
プレイ14に表示し、修正後の図6(B)の画像と合成
し、同図(C)のように合成画像を作成する。又、最終
的に、ステップ12で画像データ記憶部10Bに書き込
むときは、上記抽出範囲外の領域は元のCMYKデータ
で書込みを行うようにする。
In the case of the region outside the above extraction range, the process proceeds to the subsequent steps without correction, the original RGB data is displayed on the display 14, and the corrected image is combined with the image of FIG. 6 (B). A composite image is created as in (C). Finally, when writing to the image data storage unit 10B in step 12, the area outside the extraction range is written with the original CMYK data.

【0042】上記図6(A)に示した具体例の場合は、
対象画像の代表点の各座標系の値は、CMYK(18
0,107,10,0)、RGB(75,148,24
5)、YCr Cb (137.2,−62.2,−10
7.8)、HLS(−120.0,137.2,12
4.4)であり、実際の処理では、抽出領域をHT =−
120.0°に対して±30°とした。修正値をそれぞ
れΔH=−0.5、ΔL=8.2、ΔS=2.7とした
ところ、青色の微妙な修正を行うことができた。
In the case of the specific example shown in FIG. 6A,
The value of each coordinate system of the representative point of the target image is CMYK (18
0,107,10,0), RGB (75,148,24)
5), YCr Cb (137.2, -62.2, -10)
7.8), HLS (-120.0, 137.2, 12)
4.4), and in the actual processing, the extraction region is set to H T = −
It was set to ± 30 ° with respect to 120.0 °. When the correction values were set to ΔH = −0.5, ΔL = 8.2, and ΔS = 2.7, respectively, it was possible to make a subtle correction of blue.

【0043】以上の処理によって、対象画像のデータの
中で修正を行いたい色相のデータのみを色修正の対象と
することが可能となる。
With the above processing, only the hue data to be corrected in the data of the target image can be targeted for color correction.

【0044】又、対象外と判断されたデータに対しては
ステップ6及びステップ11における元の座標系への逆
変換を行う必要がなくなるため、処理時間の短縮を図る
ことができる。
Further, since it is not necessary to perform the reverse conversion to the original coordinate system in step 6 and step 11 for the data judged to be out of the object, the processing time can be shortened.

【0045】次に、本発明に係る第3実施例について説
明する。
Next, a third embodiment according to the present invention will be described.

【0046】前記第2実施例により、特定の色相のみ色
修正を行う方法を実施した場合、色修正処理を行った部
分と行わなかった部分の境界で、色相や階調の不連続が
生じる場合がある。本実施例は、このような場合に色修
正処理を行った部分と行わなかった部分の境界の馴染み
をよくする方法である。
In the case where the method for correcting the color of only a specific hue is carried out according to the second embodiment, the discontinuity of the hue or the gradation occurs at the boundary between the portion where the color correction processing is performed and the portion where the color correction processing is not performed There is. The present embodiment is a method of improving the familiarity of the boundary between the portion where the color correction processing is performed and the portion where the color correction processing is not performed in such a case.

【0047】本実施例では、前記第2実施例と同様に、
ステップ3(又はステップ9)で変換したHLSデータ
のH(色相角)の値が、HT を中心とした一定の範囲内
にある場合のみ、ステップ4で入力した修正値ΔH、Δ
L、ΔSに、|HT −H|の値に応じて変る係数f (|
T −H|)を乗じた値を求め、これを抽出した領域の
画像データに加え、前記(13)〜(15)に相当する
次の(13A)〜(15A)式のようにH′、L′、
S′を算出する。
In this embodiment, as in the second embodiment,
Only when the H (hue angle) value of the HLS data converted in step 3 (or step 9) is within a certain range around H T , the correction values ΔH, Δ input in step 4
L, the ΔS, | H T -H | of vary according to the value the coefficient f (|
H T −H |) is calculated, and this value is added to the image data of the extracted region, and H ′ is obtained as in the following equations (13A) to (15A) corresponding to the above (13) to (15). , L ',
Calculate S '.

【0048】 H′=H+f (|HT −H|)・ΔH …(13A) L′=L+f (|HT −H|)・ΔL …(14A) S′=S+f (|HT −H|)・ΔS …(15A)[0048] H '= H + f (| H T -H |) · ΔH ... (13A) L' = L + f (| H T -H |) · ΔL ... (14A) S '= S + f (| H T -H | ) ・ ΔS… (15A)

【0049】又、上記係数f (|HT −H|)として
は、次の(29)式や(30)式で表わされる関数を使
用できる。
[0049] Also, the coefficient f (| H T -H |) as is the function represented by the following equation (29) or (30) can be used.

【0050】 f (|HT −H|)=1−(|HT −H|/60) …(29) f (|HT −H|)=cos (90・|HT −H|/60) …(30)[0050] f (| H T -H |) = 1- (| H T -H | / 60) ... (29) f (| H T -H |) = cos (90 · | H T -H | / 60)… (30)

【0051】上記(29)式の係数は、図7に示すa の
ように、又、(30)式はb のように、色相角がHT
ら離れるほど、その値が減少する。このように、係数と
してHT を中心に漸次その値が減少する関数を採用する
ことにより、抽出した領域の境界に近付く程(±60°
に近付く程)修正量を減少させることができるため、境
界で色調や階調の不連続が生じることを防止できる。
The coefficient of the equation (29) decreases as the hue angle deviates from H T , as shown by a in FIG. 7 and by the equation (30) as b. In this way, by adopting a function whose value gradually decreases centering on H T as a coefficient, the closer to the boundary of the extracted region (± 60 °
Since the correction amount can be reduced (the closer it is to), it is possible to prevent discontinuity of color tone and gradation at the boundary.

【0052】以上、本発明について、具体的に説明した
が、本発明は、前記実施例に示したものに限られるもの
ではなく、その要旨を逸脱しない範囲で種々変更可能で
ある。
Although the present invention has been specifically described above, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention.

【0053】例えば、前記実施例では、元の画像データ
を印刷用のCMY(K)データとしたが、本発明は、コ
ンピュータグラフィクス用のRGBデータやテレビ用の
YIQデータ等の他の座標系のデータであっても適用可
能である。
For example, although the original image data is CMY (K) data for printing in the above embodiment, the present invention uses other coordinate systems such as RGB data for computer graphics and YIQ data for television. Even data can be applied.

【0054】又、色修正を行う座標系としては、テレビ
ジョン画像で用いられるYCr Cb系を基準にしたHL
S座標系を利用したが、均等色空間であるL* a* b*
系や、L* u * v* 系等の、輝度と色度が独立した任意
の座標系を基準としたHLS座標系を利用することも可
能である。この場合、元の画像データの座標系と、色修
正を行う座標系との相互変換を適宜定めて処理を行えば
よい。
The coordinate system for color correction is HL based on the YCr Cb system used in television images.
The S coordinate system was used, but L * a * b *, which is a uniform color space
It is also possible to use an HLS coordinate system based on an arbitrary coordinate system having independent luminance and chromaticity, such as a system or an L * u * v * system. In this case, the mutual conversion between the coordinate system of the original image data and the coordinate system for color correction may be appropriately determined and the processing may be performed.

【0055】[0055]

【発明の効果】以上説明したとおり、本発明によれば、
分解済みの画像データを直接修正するため、再分解の手
間やコストがかからず、しかもディスプレイで色を確認
しながら修正値を入力するという簡単な操作のみで対象
画像の色を目標の色に修正することが可能となるため、
熟練技術を必要としないという利点がある。
As described above, according to the present invention,
Since the decomposed image data is directly corrected, there is no need for re-separation and cost, and the color of the target image can be changed to the target color only by the simple operation of inputting the correction value while checking the color on the display. Since it is possible to correct it,
It has the advantage that no skill is required.

【0056】又、人間の感覚にあった、色相・明度・彩
度が独立した座標系で色修正を行うため、自然な修正が
可能となる。
Further, since the color correction is performed by the coordinate system in which the hue, lightness, and saturation are independent, which is suitable for human senses, natural correction is possible.

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

【図1】本発明に係る実施例に適用する修正装置の概略
構成を示す説明図
FIG. 1 is an explanatory diagram showing a schematic configuration of a correction device applied to an embodiment according to the present invention.

【図2】上記修正装置が備えている処理装置の機能部の
概略構成を示すブロック図
FIG. 2 is a block diagram showing a schematic configuration of functional units of a processing device included in the correction device.

【図3】上記実施例方法で実行される色修正処理の手順
を示すフローチャート
FIG. 3 is a flowchart showing a procedure of color correction processing executed by the method of the above embodiment.

【図4】色修正の原理を説明したHLS座標系を示す説
明図
FIG. 4 is an explanatory diagram showing an HLS coordinate system for explaining the principle of color correction.

【図5】色修正領域を抽出する際の色相角の範囲を示す
説明図
FIG. 5 is an explanatory view showing a range of a hue angle when extracting a color correction area.

【図6】抽出した色修正領域に対する処理の手順を示す
説明図
FIG. 6 is an explanatory diagram showing a processing procedure for the extracted color correction area.

【図7】色修正に使用する係数の特徴を説明するための
線図
FIG. 7 is a diagram for explaining characteristics of coefficients used for color correction.

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

10…記憶装置 12…処理装置 14…ディスプレイ 20…表示用画像読込部 22…画像表示部 24…座標系変換部 26…修正値入力部 30…変換用画像読込部 32…色修正演算部 34…座標系逆変換部 36…画像書込部 10 ... Storage device 12 ... Processing device 14 ... Display 20 ... Display image reading unit 22 ... Image display unit 24 ... Coordinate system conversion unit 26 ... Correction value input unit 30 ... Conversion image reading unit 32 ... Color correction calculation unit 34 ... Coordinate system inverse transformation unit 36 ... Image writing unit

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 9/64 Z H04N 1/46 Z Continuation of front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location H04N 9/64 Z H04N 1/46 Z

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】色修正の対象となる対象画像をディスプレ
イ上に表示し、 対象画像の画像データを、H(色相)、L(明度)、S
(彩度)の座標系に変換し、 対象画像のHLS座標値に、任意の修正値を加算するこ
とを特徴とする画像の色修正方法。
1. A target image to be color-corrected is displayed on a display, and image data of the target image is represented by H (hue), L (brightness), and S.
A method for correcting a color of an image, which comprises converting to a coordinate system of (saturation) and adding an arbitrary correction value to the HLS coordinate value of the target image.
【請求項2】請求項1において、 特定の色相角を基準として正負方向に所定角度範囲内に
ある色相角の画像領域を抽出し、抽出した領域に対して
のみ色修正を行うことを特徴とする画像の色修正方法。
2. The method according to claim 1, wherein an image area having a hue angle within a predetermined angle range in the positive and negative directions with respect to a specific hue angle is extracted, and color correction is performed only on the extracted area. How to correct the color of the image.
【請求項3】請求項2において、 基準の色相角から離れる角度が大きくなる程、対象画像
のHLS座標値に加算する修正値を減少させることを特
徴とする画像の色修正方法。
3. The image color correction method according to claim 2, wherein the correction value added to the HLS coordinate value of the target image is decreased as the angle away from the reference hue angle increases.
JP5350796A 1993-12-29 1993-12-29 Image color correcting method Pending JPH07200814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5350796A JPH07200814A (en) 1993-12-29 1993-12-29 Image color correcting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5350796A JPH07200814A (en) 1993-12-29 1993-12-29 Image color correcting method

Publications (1)

Publication Number Publication Date
JPH07200814A true JPH07200814A (en) 1995-08-04

Family

ID=18412934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5350796A Pending JPH07200814A (en) 1993-12-29 1993-12-29 Image color correcting method

Country Status (1)

Country Link
JP (1) JPH07200814A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7453602B2 (en) 2004-06-01 2008-11-18 Canon Kabushiki Kaisha Color conversion method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7453602B2 (en) 2004-06-01 2008-11-18 Canon Kabushiki Kaisha Color conversion method

Similar Documents

Publication Publication Date Title
US7310167B2 (en) Color converting device emphasizing a contrast of output color data corresponding to a black character
JP2994153B2 (en) Color signal converter
JP4990507B2 (en) Image main color component adjustment apparatus, image main color component adjustment method, and image main color component adjustment program
EP1156668B1 (en) Black generation for color management system
US6522427B1 (en) Color table manipulations for contour reduction
US7015929B2 (en) Color conversion method and image processor
JPH10145582A (en) Image processing method and device therefor
JP4536431B2 (en) Method and system for controlling a color output device
US7142710B2 (en) Color image processing method and color image processing apparatus
JP2002016939A (en) Method and apparatus for processing image as well as recording medium
JPH06121159A (en) Color image processor
US7072072B1 (en) Color rendering optimized for text and line art
US5448381A (en) Method and associated apparatus for producing a color-balanced output image in a color-balancing system
JP3489200B2 (en) Color correction method for color printer
US7616345B2 (en) Method for transforming a digital image from a first to a second colorant space
US20030020934A1 (en) Color region compressing method
JPH07200814A (en) Image color correcting method
JP2779507B2 (en) Transmission image prepress system
JP4051919B2 (en) Color image signal processing apparatus, color image signal processing method, and color image signal processing program
JPH04304775A (en) Color correction method for color picture signal
JP2002015314A (en) Image outputting method, device, and storage medium
JPH07200813A (en) Image color matching method
EP0791266B1 (en) Black recalculation for arbitrary hsl corrections in cmy color space
EP1422665B1 (en) Method and apparatus for converting image color values from a first to a second color space
JP4227371B2 (en) Image processing apparatus and method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040517

A131 Notification of reasons for refusal

Effective date: 20040525

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Effective date: 20040722

Free format text: JAPANESE INTERMEDIATE CODE: A523

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040824

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040902

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees