JPH0950518A - Method for processing color picture - Google Patents

Method for processing color picture

Info

Publication number
JPH0950518A
JPH0950518A JP7221142A JP22114295A JPH0950518A JP H0950518 A JPH0950518 A JP H0950518A JP 7221142 A JP7221142 A JP 7221142A JP 22114295 A JP22114295 A JP 22114295A JP H0950518 A JPH0950518 A JP H0950518A
Authority
JP
Japan
Prior art keywords
color
value
signal
rgb
correction
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
JP7221142A
Other languages
Japanese (ja)
Inventor
Yasuhisa Hayashi
康久 林
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP7221142A priority Critical patent/JPH0950518A/en
Publication of JPH0950518A publication Critical patent/JPH0950518A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To output a clear color picture by converting an indistinct three- primary color picture into a brightness signal of black-and-white response and chrominance signals of opposite color response in accordance with a color sense model and applying contrast correction or hue correction to the converted signals. SOLUTION: A CPU 1 converts an RGB color picture read out by a color image scanner 6 into a black-and-white response brightness signal A and opposite color response chrominance signals T, D in accordance with a goose color sense model and sets up these converted signals A, T, D in a color sense memory 12. Contrast correction or hue correction is applied to the ATD picture by referring to a contrast correction table 13 and a hue correction table 14 and the ATD picture is reversely converted to the RGB picture and the RGB picture is outputted.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ワードプロセッ
サやパーソナルコンピュータ等において、RGB3原色
カラー画像を処理するカラー画像処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image processing method for processing RGB three primary color images in a word processor, a personal computer or the like.

【0002】[0002]

【従来の技術】従来、カラーイメージスキャナを備えた
データ処理装置において、イメージスキャナによってカ
ラー印刷物やカラー写真等からイメージデータを読み取
ると、RGB3原色が認識されて画像メモリに3原色カ
ラーイメージデータとして格納されると共に表示出力さ
れる。
2. Description of the Related Art Conventionally, in a data processing apparatus equipped with a color image scanner, when image data is read from a color printed matter or a color photograph by the image scanner, RGB three primary colors are recognized and stored in an image memory as three primary color image data. Is displayed and output.

【0003】[0003]

【発明が解決しようとする課題】ところで、コントラス
ト状態が悪く不鮮明なカラー写真やカラー印刷を原稿か
ら読み込んだ場合、コントラスト状態が悪いままそれを
忠実に表示/印刷出力するため、不鮮明な表示/印刷と
なってしまう。この発明の課題は、不鮮明な3原色カラ
ー画像を色覚モデルにしたがって白黒応答の明るさ信号
および反対色応答の色信号に変換してコントラスト補正
や色調補正を施すことにより鮮明なカラー画像を出力で
きるようにすることである。
By the way, when a color photograph or color print having a poor contrast state and being unclear is read from an original, since it is faithfully displayed / printed out in the poor contrast state, the unclear display / printing is performed. Will be. An object of the present invention is to output a clear color image by converting an unclear three-primary color image into a brightness signal of a black-and-white response and a color signal of an opposite color response according to a color vision model and performing contrast correction and tone correction. To do so.

【0004】[0004]

【課題を解決するための手段】第1の発明(請求項
(1)記載の発明)の手段は次の通りである。RGB3
原色カラー画像を構成する各画素のRGB信号を色覚モ
デルにしたがって白黒応答の明るさ信号と、反対色応答
の色信号にそれぞれ変換し、各画素毎に変換された明る
さ信号に基づいてコントラスト補正用の基準値を算出す
ると共に、この基準値と各画素毎の明るさ信号の値とを
比較し、この比較結果に基づいて各画素毎の明るさ信号
の値を補正し、この補正された明るさ信号と、前記色信
号をRGB信号に逆変換して出力することによりカラー
画像のコントラストを調整する。第2の発明(請求項
(2)記載の発明)の手段は次の通りである。RGB3
原色カラー画像を構成する各画素のRGB信号を色覚モ
デルにしたがって白黒応答の明るさ信号と、反対色応答
の色信号にそれぞれ変換し、各画素毎に変換された色信
号に基づいて色調補正用の基準値を算出すると共に、こ
の基準値と各画素毎の色信号の値とを比較し、この比較
結果に基づいて各画素毎の色信号の値を補正し、この補
正された色信号と、前記明るさ信号をRGB信号に逆変
換して出力することによりカラー画像の色調を補正す
る。したがって、不鮮明な3原色カラー画像を色覚モデ
ルにしたがって白黒応答の明るさ信号および反対色応答
の色信号に変換してコントラスト補正や色調補正を施す
ことにより鮮明なカラー画像を出力することができる。
Means for Solving the Problems The means of the first invention (the invention according to claim (1)) is as follows. RGB3
The RGB signal of each pixel forming the primary color image is converted into a brightness signal of black and white response and a color signal of opposite color response according to the color vision model, and the contrast is corrected based on the brightness signal converted for each pixel. While calculating the reference value for, the reference value and the value of the brightness signal for each pixel are compared, the value of the brightness signal for each pixel is corrected based on the comparison result, and the corrected value is corrected. The contrast of the color image is adjusted by inversely converting the brightness signal and the color signal into an RGB signal and outputting the RGB signal. Means of the second invention (the invention according to claim (2)) is as follows. RGB3
RGB signals of each pixel forming the primary color image are converted into a brightness signal of black and white response and a color signal of opposite color response according to the color vision model, and for tone correction based on the color signal converted for each pixel. While calculating the reference value of, the reference value is compared with the value of the color signal of each pixel, the value of the color signal of each pixel is corrected based on the comparison result, and the corrected color signal The tone of the color image is corrected by inversely converting the brightness signal into an RGB signal and outputting the RGB signal. Therefore, it is possible to output a clear color image by converting an unclear three-primary color image into a brightness signal of a black-and-white response and a color signal of an opposite color response according to a color vision model and performing contrast correction and color tone correction.

【0005】[0005]

【発明の実施の形態】以下、図1〜図8を参照してこの
発明の一実施形態について説明する。図1はカラーイメ
ージスキャナ付きデータ処理装置のブロック構成図であ
る。CPU1はROM2等に格納されている各種プログ
ラムにしたがってこのデータ処理装置の全体動作を制御
する中央演算処理装置で、その入出力デバイスとしてC
PU1には入力部3、表示部4、印字部5、カラーイメ
ージスキャナ6が接続されており、それらの入出力動作
を制御する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram of a data processing device with a color image scanner. The CPU 1 is a central processing unit that controls the overall operation of this data processing device in accordance with various programs stored in the ROM 2 or the like, and C
An input unit 3, a display unit 4, a printing unit 5, and a color image scanner 6 are connected to the PU 1 and control their input / output operations.

【0006】入力部3はキー入力装置等で、そのキーボ
ード上には通常備えられている文字キー等の他、カラー
画像の補正を指示する各種の補正キー、つまり、コント
ラスト補正キーAK、色調補正キーBK、反転補正キー
CKが設けられていると共に、補正の程度(強度)を指
示する弱、中、強のキーDK、EK、FKが設けられて
いる。ここで、CPU1は入力制御部7によって変換さ
れたキーコードを取り込んで、キー入力解析を行い、キ
ー入力に応じた処理を行う。
The input unit 3 is a key input device or the like, and in addition to the character keys or the like normally provided on the keyboard, various correction keys for instructing correction of a color image, that is, the contrast correction key AK and the color tone correction. A key BK and a reversal correction key CK are provided, and weak, middle, and strong keys DK, EK, and FK that indicate the degree (strength) of correction are provided. Here, the CPU 1 takes in the key code converted by the input control unit 7, performs key input analysis, and performs processing according to the key input.

【0007】カラーイメージスキャナ6は手動走査型の
ハンドスキャナで、カラー写真や印刷物を走査すること
によりイメージデータを読み取って赤、緑、青のRGB
3原色を認識するもので、このカラーイメージデータは
CPU1に取り込まれて画像メモリ8に格納されると共
に、ビデオRAM(VRAM)9に格納される。ここ
で、表示駆動部10はVRAM9をアクセスしてカラー
画像を表示部4から出力させる。画像メモリ8はRGB
カラーイメージデータを記憶するもので、入力部3から
その印刷指令が入力されると、CPU1は画像メモリ8
内のカラーイメージデータを印字制御部11に与え、印
字部5から出力させる。また画像メモリ8内のカラーイ
メージデータに対してコントラスト補正/色調補正が指
示されると、CPU1はグースの色覚モデル(目の機構
モデル)に基づいてRGB信号を白黒応答の明るさ信号
と、反対色応答の色信号に変換する。
The color image scanner 6 is a hand-scanning type hand scanner, which scans a color photograph or printed matter to read image data, and outputs red, green, and blue RGB.
The three primary colors are recognized, and the color image data is fetched by the CPU 1 and stored in the image memory 8 and the video RAM (VRAM) 9. Here, the display drive unit 10 accesses the VRAM 9 and causes the display unit 4 to output a color image. Image memory 8 is RGB
The color image data is stored, and when the print command is input from the input unit 3, the CPU 1 causes the image memory 8
The color image data therein is given to the print control unit 11 and output from the print unit 5. When contrast correction / color tone correction is instructed to the color image data in the image memory 8, the CPU 1 reverses the RGB signal to the brightness signal of the black-and-white response based on the goose color vision model (mechanical model of the eye). Convert to color signal of color response.

【0008】ここで、図2はグースの色覚モデルを説明
する三次元空間を示したもので、第1段階として錐状体
での3色応答、第2段階として視神経層での色信号の変
換を想定する。ここで、3色応答によるRGB信号は視
神経層での変換により白黒応答A、反対色応答T、Dに
変換される。すなわち、図3に示すようにRGB信号に
基づいて「A=R+G」の白黒応答Aと、「T=R−
G」の赤対緑応答Tと、「D=B−R」の青対黄応答D
に変換される。このようにして変換されたATD色は色
覚メモリ12に格納される。ここで、CPU1は色覚メ
モリ12内のATD画像をコントラスト補正テーブル1
3あるいは色調補正テーブル14を参照することによっ
て補正すると共に、補正したATD画像をRGB画像に
逆変換して画像メモリ8に書き込んで表示出力させる。
これによりコントラスト補正あるいは色調補正を行う。
なお、RAM15内のワークエリア15−1はRGB画
像をATD画像に変換したり、ATD画像をRGB画像
に逆変換する際に用いられるワークメモリである。
FIG. 2 shows a three-dimensional space for explaining the goose's color vision model. The first step is the three-color response in the cone, and the second step is the conversion of color signals in the optic nerve layer. Assume Here, the RGB signals based on the three-color response are converted into a black-and-white response A and opposite-color responses T and D by conversion in the optic nerve layer. That is, as shown in FIG. 3, a black-and-white response A of “A = R + G” and “T = R−
"G" red-green response T and "D = BR" blue-yellow response D
Is converted to The ATD color converted in this way is stored in the color vision memory 12. Here, the CPU 1 sets the ATD image in the color vision memory 12 to the contrast correction table 1
3 or the color tone correction table 14 is used for correction, and the corrected ATD image is inversely converted into an RGB image and written into the image memory 8 for display output.
Thereby, the contrast correction or the color tone correction is performed.
The work area 15-1 in the RAM 15 is a work memory used when converting an RGB image into an ATD image or inversely converting an ATD image into an RGB image.

【0009】図4はコントラスト補正テーブル13の構
成、図5は色調補正テーブル14の構成を示した図で、
コントラスト補正テーブル13は白黒応答の明るさ信号
Aを補正するテーブルであり、色調補正テーブル14は
反対色応答の色信号T、Dを補正するテーブルである。
ここで、コントラスト補正時において、CPU1は1画
面を構成する各画素の白黒応答の値Aに基づいてその平
均値VAを求め、この値を基準値として各画素のAの値
と比較し、その差分値「VA−A(絶対値)」を求めて
コントラスト補正テーブル13をアクセスする。コント
ラスト補正テーブル13はこのAの差分値毎に、補正強
度「弱」、「中」、「強」に対応付けて白黒応答の補正
値をそれぞれ記憶する構成となっている。また、色調補
正時において、CPU1は1画面を構成する各画素の反
対色応答の値T、Dに基づいてその平均値VT、VDを
求め、この値を基準値として各画素のT、Dの値と比較
し、その差分値「VT−T(絶対値)」、「VD−D
(絶対値)」を求めて色調補正テーブル14をアクセス
する。色調補正テーブル14はこのT、Dの差分値毎
に、補正強度「弱」、「中」、「強」に対応付けて反対
色応答の補正値をそれぞれ記憶する構成となっている。
なお、コントラスト補正テーブル13、色調補正テーブ
ル14の内容は入力部3から任意に設定可能なもので、
弱、中、強に対応付けて所望する値を入力すると、入力
された値はコントラスト補正テーブル13や色調補正テ
ーブル14に設定される。
FIG. 4 shows the structure of the contrast correction table 13, and FIG. 5 shows the structure of the color tone correction table 14.
The contrast correction table 13 is a table for correcting the brightness signal A of the black and white response, and the color tone correction table 14 is a table for correcting the color signals T and D of the opposite color response.
Here, at the time of contrast correction, the CPU 1 obtains an average value VA based on the value A of the black-and-white response of each pixel forming one screen, compares the average value VA with this value as a reference value, and compares it with the value A of each pixel. The contrast correction table 13 is accessed by obtaining the difference value "VA-A (absolute value)". The contrast correction table 13 is configured to store the correction values of the black and white response in association with the correction intensities “weak”, “medium”, and “strong” for each difference value of A. Further, at the time of color tone correction, the CPU 1 obtains the average values VT and VD based on the opposite color response values T and D of each pixel forming one screen, and using these values as reference values, the T and D values of each pixel are calculated. Compared with the value, the difference value "VT-T (absolute value)", "VD-D
(Absolute value) "is obtained and the color tone correction table 14 is accessed. The color tone correction table 14 is configured to store the correction values of the opposite color response in association with the correction intensities “weak”, “medium”, and “strong” for each difference value of T and D.
The contents of the contrast correction table 13 and the color tone correction table 14 can be arbitrarily set from the input unit 3.
When a desired value is input in association with weak, medium, and strong, the input value is set in the contrast correction table 13 and the color tone correction table 14.

【0010】次に、カラーイメージ処理を図6〜図8に
示すフローチャートにしたがって説明する。図6はカラ
ーイメージ処理全体の動作を示したフローチャートであ
る。先ず、カラーイメージスキャナ6によってカラー写
真や印刷物を手動走査すると、イメージデータが読み取
られると共に(ステップA1)、RGBの3原色が認識
される(ステップA2)。そして、このカラーイメージ
データは画像メモリ8に格納されると共に(ステップA
3)、VRAM9に格納されて表示出力される(ステッ
プA4)。そして、キー入力待ち状態となり(ステップ
A5)、キー入力が無ければ、このフローから抜けるが
コントラスト補正キーAKあるいは色調補正キーBKが
操作されてイメージ補正が指示されると(ステップA
6)、画像メモリ8内のRGB画像をATD画像に変換
する(ステップA7)。すなわち、1画面を構成する各
画素のRGB信号をATD信号に変換するもので、図3
に示すようにグースの色覚モデルにしたがって行われ
る。これによって変換されたATD画像は色覚メモリ1
2に格納される(ステップA8)。次に、イメージ補正
の種類を判別するが(ステップA9)、いま、コントラ
スト補正が指定されたものとすると、色覚メモリ12の
内容を読み出すと共に(ステップA10)コントラスト
補正処理を行う(ステップA11)。
Color image processing will be described below with reference to the flow charts shown in FIGS. FIG. 6 is a flowchart showing the operation of the entire color image processing. First, when a color photograph or a printed matter is manually scanned by the color image scanner 6, the image data is read (step A1) and the three primary colors RGB are recognized (step A2). Then, this color image data is stored in the image memory 8 (step A
3), it is stored in the VRAM 9 and displayed and output (step A4). Then, the process enters a key input waiting state (step A5), and if there is no key input, the flow exits but the contrast correction key AK or color tone correction key BK is operated to instruct image correction (step A5).
6) Convert the RGB image in the image memory 8 into an ATD image (step A7). That is, the RGB signal of each pixel forming one screen is converted into an ATD signal.
It is performed according to Goose's color vision model as shown in. The ATD image converted by this is the color vision memory 1
2 (step A8). Next, the type of image correction is discriminated (step A9), but if contrast correction is specified now, the contents of the color vision memory 12 are read (step A10) and contrast correction processing is performed (step A11).

【0011】図7はこのコントラスト補正処理を示した
フローチャートである。先ず、CPU1は色覚メモリ1
2の内容から1画面分の全画素数を算出すると共に(ス
テップB1)、各画素の白黒応答Aの値を読み出してそ
の総和を求める(ステップB2)。そして、このAの値
の総和から全画素数を除算することにより白黒応答(明
るさ)の平均値を求める(ステップB3)。そして、色
覚メモリ12の先頭画素を指定すると共に(ステップB
4)、上記明るさ平均値を基準値とし、この基準値と指
定画素のAの値とを比較する(ステップB5)。
FIG. 7 is a flowchart showing this contrast correction processing. First, the CPU 1 is the color vision memory 1
The total number of pixels for one screen is calculated from the contents of 2 (step B1), and the value of the black-and-white response A of each pixel is read to obtain the sum (step B2). Then, the average value of the black-and-white response (brightness) is obtained by dividing the total number of pixels by the total number of pixels (step B3). Then, the head pixel of the color vision memory 12 is designated (step B
4) Using the brightness average value as a reference value, the reference value is compared with the value A of the designated pixel (step B5).

【0012】この結果、明るさ基準値の方が大きい場合
には、つまり、指定画素の明るさが1画面の明るさ平均
値よりも暗い場合には(ステップB6)、その差分値
(絶対値)が所定数未満か否かをチェックする(ステッ
プB7)。ここで、所定数未満であれば、コントラスト
補正テーブル13を参照し、指定画素Aの値をダウン補
正する(ステップB8)。すなわち、明るさ基準値VA
と指定画素Aの値の差分値(絶対値)に基づいてコント
ラスト補正テーブル13をアクセスし、弱、中、強のう
ち、予め指定された補正強度に対応する補正値をコント
ラスト補正テーブル13から読み出し、指定画素のAの
値からこの補正値を減算することにより指定画素のAの
値をダウン補正する。これによって補正されたAの値と
基準値VAとの差分値(絶対値)は所定数以上となる。
As a result, when the brightness reference value is larger, that is, when the brightness of the designated pixel is darker than the brightness average value of one screen (step B6), the difference value (absolute value) ) Is less than a predetermined number (step B7). If the number is less than the predetermined number, the value of the designated pixel A is down-corrected by referring to the contrast correction table 13 (step B8). That is, the brightness reference value VA
The contrast correction table 13 is accessed based on the difference value (absolute value) between the value of the designated pixel A and the value of the designated pixel A, and the correction value corresponding to the previously designated correction intensity among weak, medium, and strong is read from the contrast correction table 13. , The value of A of the designated pixel is down-corrected by subtracting this correction value from the value of A of the designated pixel. The difference value (absolute value) between the value of A corrected by this and the reference value VA becomes a predetermined number or more.

【0013】一方、ステップB6で明るさ基準値の方が
小さいことが検出された場合、つまり、指定画素の明る
さが平均値よりも明るい場合にもその差分値(絶対値)
が所定数未満か否かをチェックする(ステップB1
1)。ここで、所定数未満であれば、コントラスト補正
テーブル13を参照し、指定画素Aの値をアップ補正す
る(ステップB12)。すなわち、明るさ基準値VAと
指定画素Aの値の差分値(絶対値)に基づいてコントラ
スト補正テーブル13をアクセスし、弱、中、強のう
ち、予め指定された補正強度に対応する補正値をコント
ラスト補正テーブル13から読み出し、指定画素のAの
値からこの補正値を加算することにより指定画素のAの
値をアップ補正する。このようにして1画素分のコント
ラスト補正処理が終ると、次の画素を指定し(ステップ
B9)、全画素終了まで(ステップB10)、明るさ基
準値と指定画素のAの値とを比較し(ステップB5)、
以下、同様の動作を繰り返す。
On the other hand, when it is detected in step B6 that the brightness reference value is smaller, that is, when the brightness of the designated pixel is brighter than the average value, the difference value (absolute value) thereof.
Is less than a predetermined number (step B1)
1). If it is less than the predetermined number, the value of the designated pixel A is up-corrected by referring to the contrast correction table 13 (step B12). That is, the contrast correction table 13 is accessed based on the difference value (absolute value) between the brightness reference value VA and the value of the designated pixel A, and the correction value corresponding to the previously designated correction strength among weak, medium, and strong. Is read from the contrast correction table 13 and the correction value is added from the value of A of the designated pixel to up-correct the value of A of the designated pixel. When the contrast correction process for one pixel is completed in this way, the next pixel is designated (step B9), and until the end of all pixels (step B10), the brightness reference value and the value A of the designated pixel are compared. (Step B5),
Hereinafter, the same operation is repeated.

【0014】他方、色調補正が指定された場合には(図
6のステップA9)、色覚メモリ12の内容を読み出す
と共に(ステップA12)、色調補正処理を行う(ステ
ップA13)。図8はこの色調補正処理を示したフロー
チャートである。なお、この補正処理は上述のコントラ
スト補正処理と基本的には同様であるが、反対色応答
T、Dに対応させて色調補正処理をT、D毎に行うよう
にしている。先ず、CPU1は色覚メモリ12の内容か
ら1画面分の全画素数を算出すると共に(ステップC
1)、Tの値の総和およびDの値の総和を求め(ステッ
プC2)、これらの値に基づいてTの平均値、Dの平均
値を算出する(ステップC3)。次に、色覚メモリ12
の先頭画素を指定し(ステップC4)、Tの平均値と指
定画素のTの値とを比較する(ステップC5)。ここ
で、Tの平均値の方が大きく(ステップC6)、その差
分値(絶対値)が所定数未満の場合には(ステップC
7)、この差分値に基づいて色調補正テーブル14を参
照して補正値を読み出し、指定画素のTの値から補正値
を減算するダウン補正を行う(ステップC9)。一方、
Tの平均値の方が小さく(ステップC6)、その差分値
(絶対値)が所定数未満の場合には(ステップC8)、
この差分値に基づいて色調補正テーブル14を参照して
補正値を読み出し、指定画素のTの値に補正値を加算す
るアップ補正を行う(ステップC10)。
On the other hand, when the color tone correction is designated (step A9 in FIG. 6), the contents of the color vision memory 12 are read (step A12) and the color tone correction process is performed (step A13). FIG. 8 is a flow chart showing this color tone correction processing. Although this correction processing is basically the same as the above-mentioned contrast correction processing, the color tone correction processing is performed for each T and D in correspondence with the opposite color responses T and D. First, the CPU 1 calculates the total number of pixels for one screen from the contents of the color vision memory 12 (step C
1), the sum of the values of T and the sum of the values of D are obtained (step C2), and the average value of T and the average value of D are calculated based on these values (step C3). Next, the color vision memory 12
Is designated (step C4), and the average value of T and the value of T of the designated pixel are compared (step C5). Here, when the average value of T is larger (step C6) and the difference value (absolute value) is less than the predetermined number (step C6).
7) Based on the difference value, the color tone correction table 14 is referred to read the correction value, and the down correction is performed to subtract the correction value from the T value of the designated pixel (step C9). on the other hand,
If the average value of T is smaller (step C6) and the difference value (absolute value) is less than the predetermined number (step C8),
Based on this difference value, the correction value is read out by referring to the color tone correction table 14, and the up correction is performed to add the correction value to the T value of the designated pixel (step C10).

【0015】このようにして反対色応答Tに対する補正
が終ると、ステップC11〜C16ではDの補正を行
う。すなわち、Dの平均値と指定画素のDの値とを比較
(ステップC11)、Dの平均値の方が大きく(ステッ
プC12)、その差分値が所定数未満の場合には(ステ
ップC13)、その差分値に基づいて色調補正テーブル
14を参照し、Dの値をダウン補正する(ステップD1
5)。また、平均値の方が小さく(ステップC12)、
その差分値が所定数未満の場合には(ステップC1
4)、その差分値に基づいて色調補正テーブル14を参
照し、Dの値をアップ補正する(ステップC16)。そ
して、次の画素を指定し(ステップC17)、全画素終
了まで(ステップC18)、上述の動作(ステップC5
〜C18)が繰り返される。
When the correction for the opposite color response T is completed in this manner, D is corrected in steps C11 to C16. That is, the average value of D is compared with the value of D of the designated pixel (step C11), the average value of D is larger (step C12), and when the difference value is less than a predetermined number (step C13), The color tone correction table 14 is referred to based on the difference value, and the value of D is down-corrected (step D1).
5). Also, the average value is smaller (step C12),
If the difference value is less than the predetermined number (step C1
4) The color tone correction table 14 is referred to based on the difference value, and the value of D is up-corrected (step C16). Then, the next pixel is designated (step C17), and until the end of all pixels (step C18), the above-described operation (step C5) is performed.
~ C18) is repeated.

【0016】このようにしてコントラスト補正処理ある
いは色調補正処理が終ると、予め反転補正キーCKが操
作され反転出力が指定されているかをチェックする(ス
テップA15、A17)。ここで、コントラスト補正の
指定時に、反転出力も指定された場合には、Aの平均値
を基準に1画面分の各Aの値を反転する処理(白黒反転
処理)が行われる(ステップA16)。また、色調補正
の指定時に反転出力も指定された場合にはT、Dの平均
値を基準に1画面分の各T、Dの値を反転する処理が行
われる(ステップA18)。次に、CPU1は色覚メモ
リ12内のATD画素をRGB画像に逆変換して画像メ
モリ8に格納すると共に(ステップA19)、この画像
メモリ8の内容をVRAM9に書き込んで表示出力させ
る(ステップA20)。そして、入力可能状態となり
(ステップA21)補正終了が指示されるまで(ステッ
プA22)、上述のステップA9〜A21が繰り返され
る。
When the contrast correction process or the color tone correction process is completed in this manner, it is checked in advance whether or not the reverse correction key CK has been operated and the reverse output has been designated (steps A15 and A17). Here, when the reverse output is also specified when the contrast correction is specified, the process of inverting the value of each A for one screen based on the average value of A (black and white inversion process) is performed (step A16). . Also, when the reverse output is also specified when the color tone correction is specified, the process of inverting the values of T and D for one screen based on the average value of T and D is performed (step A18). Next, the CPU 1 inversely converts the ATD pixels in the color vision memory 12 into an RGB image and stores the RGB image in the image memory 8 (step A19), and writes the contents of the image memory 8 in the VRAM 9 for display output (step A20). . Then, the above-mentioned steps A9 to A21 are repeated until the input becomes possible (step A21) and the end of correction is instructed (step A22).

【0017】以上のように、カラーイメージスキャナ6
によって読み取った不鮮明なRGBカラー画像に対して
コントラスト補正や色調補正が指示された場合、グース
の色覚モデルにしたがってRGB画像をATD画像に変
換すると共に、このATD画像を構成する各画素のAの
値を補正することによりコントラスト補正を行い、ま
た、各画素のT、Dの値を補正することにより色調補正
を行ったのち、ATD画像をRGB画像に逆変換して表
示するようにしたから、鮮明なカラー画像を出力するこ
とができる。その際、反転出力も指示すれば、鮮明な反
転画像も得ることが可能となる。また、コントラスト補
正や色調補正は対応するコントラスト補正テーブル13
あるいは色調補正テーブル14を参照することによって
行われるが、このコントラスト補正テーブル13、色調
補正テーブル14の内容は使用者が任意に設定可能であ
るため、使用者が所望する通りのカラー画像を得ること
ができる。
As described above, the color image scanner 6
When contrast correction or color tone correction is instructed to the unclear RGB color image read by the, the RGB image is converted into an ATD image according to the goose's color vision model, and the A value of each pixel forming this ATD image is also converted. The ATD image is inversely converted into an RGB image for display after the contrast is corrected by correcting the color tone and the color tone is corrected by correcting the values of T and D of each pixel. It is possible to output various color images. At that time, if the inverted output is also indicated, a clear inverted image can be obtained. Also, the contrast correction and the color tone correction correspond to the corresponding contrast correction table 13
Alternatively, the color tone correction table 14 is referred to. The contents of the contrast correction table 13 and the color tone correction table 14 can be arbitrarily set by the user, so that a color image as desired by the user can be obtained. You can

【0018】なお、上述した実施形態においては、グー
スの色覚モデルを使用するようにしたが、CIELUV
CIELABを用いてRGB信号を明るさ信号と色信
号に変換するようにしてもよい。また、コントラスト補
正テーブル13、色調補正テーブル14を参照してコン
トラスト補正あるいは色調補正を行うようにしたが、テ
ーブルを設けずに演算処理によって補正するようにして
もよい。更に、通信手段や外部記憶手段によって供給さ
れたRGBカラー画像を補正するようにしてもよい。
In the above embodiment, the goose color vision model is used.
CIELAB may be used to convert RGB signals into brightness signals and color signals. Further, although the contrast correction or the color tone correction is performed by referring to the contrast correction table 13 and the color tone correction table 14, the correction may be performed by a calculation process without providing the table. Furthermore, the RGB color image supplied by the communication unit or the external storage unit may be corrected.

【0019】[0019]

【発明の効果】この発明によれば、不鮮明な3原色カラ
ー画像を色覚モデルにしたがって白黒応答の明るさ信号
および反対色応答の色信号に変換してコントラスト補正
や色調補正を施すことにより鮮明なカラー画像を出力す
ることができるので、不鮮明なカラー画像をカラーイメ
ージスキャナによって読み取った場合に特に有効なもの
となる。
According to the present invention, an unclear three-primary color image is converted into a brightness signal of a black-and-white response and a color signal of an opposite color response according to a color vision model and subjected to contrast correction and color tone correction to obtain a clear image. Since it is possible to output a color image, it becomes particularly effective when an unclear color image is read by a color image scanner.

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

【図1】カラーイメージスキャナ付きデータ処理装置の
ブロック構成図。
FIG. 1 is a block configuration diagram of a data processing device with a color image scanner.

【図2】グースの色覚モデルを説明するATD色三次元
空間を示した図。
FIG. 2 is a diagram showing an ATD color three-dimensional space for explaining a goose color vision model.

【図3】グースの色覚モデルによってRGB画像がAT
D画像に変換される様子を示した図。
[FIG. 3] An RGB image is AT by a goose color vision model.
The figure which showed a mode that it is converted into a D image.

【図4】コントラスト補正テーブル13の構成を示した
図。
FIG. 4 is a diagram showing a configuration of a contrast correction table 13.

【図5】色調補正テーブル14の構成を示した図。FIG. 5 is a diagram showing a configuration of a color tone correction table 14.

【図6】イメージ処理全体の動作を示したフローチャー
ト。
FIG. 6 is a flowchart showing the overall operation of image processing.

【図7】図6のステップA11(コントラスト補正処
理)を示したフローチャート。
FIG. 7 is a flowchart showing step A11 (contrast correction processing) in FIG.

【図8】図6のステップA13(色調補正処理)を示し
たフローチャート。
FIG. 8 is a flowchart showing step A13 (color tone correction processing) in FIG.

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

1 CPU 2 ROM 3 入力部 4 表示部 5 印字部 6 カラーイメージスキャナ 8 画像メモリ 9 VRAM 12 色覚メモリ 13 コントラスト補正テーブル 14 色調補正テーブル AK コントラスト補正キー BK 色調補正キー 1 CPU 2 ROM 3 Input section 4 Display section 5 Printing section 6 Color image scanner 8 Image memory 9 VRAM 12 Color vision memory 13 Contrast correction table 14 Color tone correction table AK Contrast correction key BK Color tone correction key

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

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】RGB3原色カラー画像を構成する各画素
のRGB信号を色覚モデルにしたがって白黒応答の明る
さ信号と、反対色応答の色信号にそれぞれ変換し、 各画素毎に変換された明るさ信号に基づいてコントラス
ト補正用の基準値を算出すると共に、この基準値と各画
素毎の明るさ信号の値とを比較し、 この比較結果に基づいて各画素毎の明るさ信号の値を補
正し、 この補正された明るさ信号と、前記色信号をRGB信号
に逆変換して出力することによりカラー画像のコントラ
ストを調整するようにしたことを特徴とするカラー画像
処理方法。
1. An RGB signal of each pixel forming an RGB three-primary color image is converted into a brightness signal of black and white response and a color signal of opposite color response according to a color vision model, and the brightness converted for each pixel. A reference value for contrast correction is calculated based on the signal, the reference value is compared with the brightness signal value for each pixel, and the brightness signal value for each pixel is corrected based on the comparison result. Then, the contrast of the color image is adjusted by inversely converting the corrected brightness signal and the color signal into RGB signals and outputting the RGB signals.
【請求項2】RGB3原色カラー画像を構成する各画素
のRGB信号を色覚モデルにしたがって白黒応答の明る
さ信号と、反対色応答の色信号にそれぞれ変換し、 各画素毎に変換された色信号に基づいて色調補正用の基
準値を算出すると共に、この基準値と各画素毎の色信号
の値とを比較し、 この比較結果に基づいて各画素毎の色信号の値を補正
し、 この補正された色信号と、前記明るさ信号をRGB信号
に逆変換して出力することによりカラー画像の色調を補
正するようにしたことを特徴とするカラー画像処理方
法。
2. An RGB color signal of each pixel forming an RGB three primary color image is converted into a brightness signal of a black and white response and a color signal of an opposite color response according to a color vision model, and the color signal converted for each pixel. A reference value for color tone correction is calculated based on, and the reference value is compared with the value of the color signal for each pixel, and the value of the color signal for each pixel is corrected based on the comparison result. A color image processing method, wherein the color tone of a color image is corrected by inversely converting the corrected color signal and the brightness signal into an RGB signal and outputting the RGB signal.
JP7221142A 1995-08-08 1995-08-08 Method for processing color picture Pending JPH0950518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7221142A JPH0950518A (en) 1995-08-08 1995-08-08 Method for processing color picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7221142A JPH0950518A (en) 1995-08-08 1995-08-08 Method for processing color picture

Publications (1)

Publication Number Publication Date
JPH0950518A true JPH0950518A (en) 1997-02-18

Family

ID=16762131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7221142A Pending JPH0950518A (en) 1995-08-08 1995-08-08 Method for processing color picture

Country Status (1)

Country Link
JP (1) JPH0950518A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018207675A1 (en) * 2017-05-10 2018-11-15 三井化学株式会社 Color processing program, color processing method, chromatic sensation examination system, output system, color vision correction image processing system, and color vision simulation image processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018207675A1 (en) * 2017-05-10 2018-11-15 三井化学株式会社 Color processing program, color processing method, chromatic sensation examination system, output system, color vision correction image processing system, and color vision simulation image processing system

Similar Documents

Publication Publication Date Title
US6310696B1 (en) Color gamut displaying method, an image processing method, and apparatus utilizing these methods
JP3171146B2 (en) Image processing device
JP2003018416A (en) Image processing apparatus, image processing method, program and recording medium
JPH04151779A (en) Apparatus and method for color mapping
JPH1084487A (en) Image processor and its method
JPH0950518A (en) Method for processing color picture
JPH0750761A (en) Color reproducing mthod for image processing system constituted of independent type input/output machine
JPH089179A (en) Image processing unit and its method
JPH03127284A (en) Color picture processing device
JP3111418B2 (en) Image forming device
JP3450552B2 (en) Image processing apparatus and method
JPH05244444A (en) Irregular color correction method in color picture
JPH10222659A (en) Device for outputting picture
JP2843912B2 (en) Image processing method
JP2686258B2 (en) Image data processing device
JP3740223B2 (en) Image processing apparatus and method
JP3145878B2 (en) Color conversion method
JPH05108026A (en) Multilevel display device
JP3150963B2 (en) Image processing method
JP3230533B2 (en) Image processing apparatus and method
JP2650988B2 (en) Image display device
JPH09186887A (en) Image processor
JPH0818808A (en) Color hard copying machine and color conversion means manufacturing method for the machine
JPH09284534A (en) Picture output controller
JP2727455B2 (en) Image data processing device