JPS6252680A - Image processor - Google Patents

Image processor

Info

Publication number
JPS6252680A
JPS6252680A JP60192941A JP19294185A JPS6252680A JP S6252680 A JPS6252680 A JP S6252680A JP 60192941 A JP60192941 A JP 60192941A JP 19294185 A JP19294185 A JP 19294185A JP S6252680 A JPS6252680 A JP S6252680A
Authority
JP
Japan
Prior art keywords
data
color
image
dark
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.)
Granted
Application number
JP60192941A
Other languages
Japanese (ja)
Other versions
JPH0426513B2 (en
Inventor
Hideo Takemura
英夫 竹村
Masao Izumi
泉 正夫
Keisuke Iwasaki
圭介 岩崎
Yoji Noguchi
要治 野口
Masaki Takakura
正樹 高倉
Yasukuni Yamane
康邦 山根
Nobutoshi Gako
宣捷 賀好
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP60192941A priority Critical patent/JPS6252680A/en
Publication of JPS6252680A publication Critical patent/JPS6252680A/en
Publication of JPH0426513B2 publication Critical patent/JPH0426513B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To obtain a natural display effect by referring to data on a color axis having the largest dynamic range among data on densities and rewriting the density data so as to expand the dynamic range of other color axis in an image memory. CONSTITUTION:According to equations a processor 5 obtains the dynamic ranges DR, DG and DB of three primary colors, and then obtains their averaged density. From the results calculated by the equations, a red color having the largest dynamic range, for instance, and densities with respect to data on dark and light images in respective colors are rewritten. Namely, the red dark and light image data remains unchanged, whereas, with respect to the green dark and light image data, a value obtained from adding a difference between averaged values of the green dark and light image data at a picture element to the red dark and light image data at the picture element is replaced with the green dark and light image data at the picture element. In terms of the blue dark and light image, its replacement is made in the same manner as said green data. Upon the completion of density replacement, a color is rewritten and modified according to the color obtaining the table data of the look-up table 3.

Description

【発明の詳細な説明】 く技術分野〉 本発明は特に画像の色彩変更、濃度変更等が可能な画像
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field> The present invention particularly relates to an image processing device capable of changing color, density, etc. of an image.

〈従来技術〉 従来、画像処理技術の一つとして色彩の変更を行なうこ
とがよくなされた。例えば風景画像の中で木の葉に相当
する領域の色彩のデータのみを緑色から黄色に切り変え
ることにより、元の画像とは異なった趣の新しい画像を
生成することが行なわれた。この処理の為には要するに
各画像ピクセルのRED、GREEN、BLUEの各デ
ータを夫々異なるデータに置換すればよい。しかし、色
彩を変更するたびに上記各画像ピクセルのデータを書き
換えようとすれば当然画像メモリへのCPU等の処理ハ
ードウェアからのアクセス回数が増大する。
<Prior Art> In the past, changing colors has often been done as one of image processing techniques. For example, by changing only the color data of areas corresponding to leaves in a landscape image from green to yellow, a new image with a different flavor from the original image has been generated. In short, for this processing, each of the RED, GREEN, and BLUE data of each image pixel may be replaced with different data. However, if it is attempted to rewrite the data of each image pixel each time the color is changed, the number of accesses from processing hardware such as a CPU to the image memory will naturally increase.

この理由により画像メモリの書き換えによる色彩変更の
処理は、必然的に処理時間が増大する。従って高速な応
答性を必要とするシステムや、高解像度又は画像メモリ
の記憶容量が極めて大きいシステムには頻繁な色彩変更
処理は不向きであり、その為、特殊な構成のハードウェ
ア(例えば画像処理専用のプロセッサ)の助けが必要と
なり、結局ハードウェアシステムが複雑になったり、プ
ログラミングが特殊化したりした。
For this reason, color change processing by rewriting the image memory inevitably increases processing time. Therefore, frequent color change processing is unsuitable for systems that require high-speed response, high resolution, or extremely large storage capacity of image memory, and therefore requires specially configured hardware (for example, processors), resulting in complex hardware systems and specialized programming.

又、上記画像メモリの書き換えによる色彩変更の処理は
、画像データを一旦変更してしまうと元のデータは消さ
れてしまう。従って色彩変更ンユミレーシぢンの様に元
の色彩と変更後の色彩とをIJj[に比較するケースの
多いシステムには不向きであった。
Furthermore, in the process of changing the color by rewriting the image memory, once the image data is changed, the original data is erased. Therefore, it is not suitable for a system that often compares the original color and the changed color to IJj, such as color change simulation.

この様な観点から本発明者等は以下に述べる画像処理装
置を創出し   − fdi二だ。第2図にその画像処理装置の一部ブロック
構成図を示す。
From this point of view, the present inventors created the image processing device described below - fdi2. FIG. 2 shows a partial block diagram of the image processing apparatus.

1は後述する論理画像メモリ、2はR(赤色)、G(緑
色)、B(青色)に対応して夫々設けられ濃度情報が記
憶される画像メモリである。3はルックアップテーブル
、4はD/Aコンバータである。D/Aコンバータ4の
出力(ビデオアナログ信号)はCRTに送られ画像表示
が行なわれる。
Reference numeral 1 represents a logical image memory to be described later, and reference numeral 2 represents an image memory that is provided corresponding to R (red), G (green), and B (blue) and stores density information. 3 is a lookup table, and 4 is a D/A converter. The output (video analog signal) of the D/A converter 4 is sent to a CRT for image display.

上記ルックアップテーブル3は一種の演算器であり、高
速な信号処理が可能なスタティックRAMで構成される
。画像メモリ2及び論理画像メモリ1から出力されたデ
ータは合成されてルックアップテーブル3のアドレス信
号を構成する。ルックアップテーブル3の容量は例えば
256バイトであり、256種の情報を別個の情報(8
ビツト)に変換する。但し、ここではルックアップテー
ブル3のアドレス信号の最下位ビットが1の時はデータ
が切り換わり、最下位ビットがOの時はデータが切り換
わらない様にルックアップテーブル3のテーブルデータ
を決めておく。
The lookup table 3 is a type of arithmetic unit, and is composed of a static RAM capable of high-speed signal processing. The data output from the image memory 2 and the logical image memory 1 are combined to form the address signal of the look-up table 3. The capacity of the lookup table 3 is, for example, 256 bytes, and 256 types of information are divided into separate pieces of information (8
bit). However, here, the table data of lookup table 3 is determined so that when the least significant bit of the address signal of lookup table 3 is 1, the data is switched, and when the least significant bit is O, the data is not switched. put.

第3図に示す様に背景Bの中に画像Aが存在する場合に
おいて、画像Aの色彩のみを別の色に変更したい場合は
次の様に処理を行なう。
When image A exists in background B as shown in FIG. 3, if it is desired to change only the color of image A to another color, the following processing is performed.

第2図のプロセッサ5の処理によってデータDIが論理
画像メモIJ 1に送られ、この論理画像メモリ1に予
め色彩を変更する領域Aに相当するピクセル(画素)の
値を1として記憶させ、色彩を変更しない領域Bに相当
するピクセル(画素)の値を0として記憶させる。一方
、プロセッサ5の処理によってデータD2が画像メモリ
2に送られ画像メモリ2(mXnのピクセルから成り立
つ場合、mXnX8ビツトの容量)には7ビツトからな
る濃淡画像データが記憶される。
The data DI is sent to the logical image memo IJ 1 through the processing of the processor 5 shown in FIG. The value of the pixel (pixel) corresponding to the area B which is not changed is stored as 0. On the other hand, the data D2 is sent to the image memory 2 by the processing of the processor 5, and the image memory 2 (capacity of mXnX8 bits when composed of mXn pixels) stores grayscale image data consisting of 7 bits.

次に第4図のデータの流れに示される様に、画像表示を
行なう場合において、ルックアップテーブル3に論理画
像メモリ1から色彩を変更する領域Aに相当するピクセ
ルの値D3(この場合1)が送られ、画像メモリ2から
上記領域Aに相当する7ビツトの濃淡画像データD4 
(a7a6a 5a4a3azat)が送られた時にル
ックアップテーブル3の上位7ビツトのD4と最下位1
ピツ)D3とによって指定されるアドレスのデータはc
 7 c 6c5C4C3C2C11であり、このデー
タD5に変換され、これがD/Aコンバータ4へ送られ
る。一方ルツクアップテーブル3に論理画像メモリ1か
ら色彩を変更しない領域Bに相当するピクセルの値D3
(この場合0)が送られ、画像メモリ2から上記領域B
に相当する7ビツトの濃淡画像データD4(b7b6b
5b4b3b2b1)が送られた時にルックアップテー
ブル3の、上位7ビツトのD4と最下位■ビットD3と
によって指定されるアドレスのデータはb7b6b5b
4b3b2b10であり、このデータD5に変換され、
これがD/Aコンバータ4へ送られる。
Next, as shown in the data flow in FIG. 4, when displaying an image, the value D3 (1 in this case) of the pixel corresponding to the area A whose color is to be changed is stored in the lookup table 3 from the logical image memory 1. is sent, and 7-bit grayscale image data D4 corresponding to the area A is sent from the image memory 2.
When (a7a6a 5a4a3azat) is sent, D4 of the upper 7 bits of lookup table 3 and the lowest 1
The data at the address specified by D3 is c
7c 6c5C4C3C2C11, which is converted into data D5 and sent to the D/A converter 4. On the other hand, the look-up table 3 contains the pixel value D3 corresponding to the area B whose color is not changed from the logical image memory 1.
(0 in this case) is sent from the image memory 2 to the above area B.
7-bit grayscale image data D4 (b7b6b
When 5b4b3b2b1) is sent, the data at the address specified by the upper 7 bits D4 and the least significant bit D3 of lookup table 3 is b7b6b5b.
4b3b2b10 and is converted to this data D5,
This is sent to the D/A converter 4.

上記の如くルックアップテーブル3のテーブルデータの
内容を適宜調整しておけば入力アドレス値の最下位ビッ
トが1か0がで夫々異なるルックアップテーブルの内容
を参照するため濃淡画像データの変更、無変更の制御を
容易に実行することができる。
As mentioned above, if the contents of the table data of lookup table 3 are adjusted appropriately, the lowest bit of the input address value is 1 or 0, and the contents of the lookup table are referred to differently, so the grayscale image data cannot be changed or changed. Changes can be easily controlled.

具体的に言えば第51N(a)に示す如く、上記D3の
値(0又はl)にかかわらず入力アドレス値と全く同一
のデータが出力されるようにルックアップテーブル3の
テーブルデータを形成すれば色彩の変更は無い。しかし
第4 [1J(b)に示す如く、上記D3の値に応じて
入力アドレス値と異なるデータが出されるようにルック
アップテーブル3のテープルデータを形成すれば特定の
部分のみ(ここでは領域A)の色彩の変更が行なわれる
。即ち奇数アドレスのデータのみが持ち上がることによ
って領域Aの明度が向上する。この処理は一種の強調処
理であるがルックアップテーブル3のテーブルデータを
切り換えれば領域Aの濃淡の2値化2反転等の他の処理
も実行可能である。
Specifically, as shown in No. 51N(a), the table data of lookup table 3 should be formed so that the data exactly the same as the input address value is output regardless of the value of D3 (0 or l). There is no change in color. However, if the table data of lookup table 3 is formed so that data different from the input address value is output according to the value of D3 as shown in 4th [1J(b), only a specific part (here, area A ) color change is performed. That is, the brightness of area A is improved by lifting only the data at odd addresses. This processing is a kind of emphasis processing, but by switching the table data of the lookup table 3, other processing such as binarization and 2-inversion of the shading of the area A can also be executed.

但し、以上の様な色彩の変更を行なう場合、色彩の変更
を行ない度い個所の元の色が純色に近い場合に、例えば
その色と補色関係にある色に変化させたい時に良好な表
示色を実現できないという問題がある。即ち陰影のある
画像の場合、その陰影がほとんど出す、平面的な色彩に
なってしまうのである。この原因は次の通りである。
However, when changing the color as described above, if the original color of the area where the color change is being made is close to a pure color, for example, if you want to change to a color that is complementary to that color, a good display color may be used. The problem is that it cannot be realized. In other words, in the case of an image with shadows, the color becomes flat, with most of the shadows producing the image. The reason for this is as follows.

元の色が純色(例えば赤色)に近い場合、その画像の中
で陰影が存在するならば赤色の濃度変化は非常に大きく
、よって赤色のダイナミックレンジは大きい。その為に
濃淡の微妙な変化を得ることができるものである。しか
し、その同じ画像の中の青色の成分について着目すれば
赤色の純色に近い為に青色の濃度変化は非常に少ない。
If the original color is close to a pure color (for example, red), the density change of the red color will be very large if there is a shadow in the image, and therefore the dynamic range of the red color will be large. Therefore, it is possible to obtain subtle changes in shading. However, if we focus on the blue component in the same image, it is close to the pure color of red, so there is very little change in the density of blue.

よって青色のダイナミックレンジは小さい。ここで上記
画像の色を青色に変化させる為に赤色のルックアップテ
ーブルの出力ヲ小さくシ、青色のルックアップテーブル
の出力を伸長すれば一応画像の色は青色に変化する。し
かし上記した如く青色のダイナミックレンジは小さいの
で濃淡の微妙な変化を得ることができないのである。 
 − 〈目 的〉 本発明は以上の点に鑑みなされたものであり、画像の部
分的な色彩変更を高速に実行可能なシステムを実現する
と共に、色彩変更を行なった際に自然な陰影を保持でき
る装置を提供することをその目的とするものである。
Therefore, the dynamic range of blue is small. Here, in order to change the color of the image to blue, the output of the red lookup table is reduced and the output of the blue lookup table is expanded, and the color of the image changes to blue. However, as mentioned above, the dynamic range of blue is small, so subtle changes in shading cannot be obtained.
- <Purpose> The present invention has been made in view of the above points, and provides a system that can quickly change the partial color of an image, and also maintains natural shading when changing the color. The purpose is to provide a device that can.

〈実施例〉 以下、本発明に係る画像処理装置の一実施例につき図面
を用いて詳細に説明を行なう。
<Embodiment> Hereinafter, an embodiment of an image processing apparatus according to the present invention will be described in detail using the drawings.

次に、画像メモリ2に貯えられるR、G、Bの3原色の
夫々の濃淡画像データに対する演算処理をステップを追
って説明する。尚、基本的装置構成は第2図に示す通り
である。
Next, a step-by-step explanation will be given of arithmetic processing for gray scale image data of each of the three primary colors R, G, and B stored in the image memory 2. The basic device configuration is as shown in FIG.

1)ステップ1 3原色のダイナミックレンジDR,DG、DBをプロセ
ッサ5により求める。
1) Step 1 The processor 5 calculates the dynamic ranges DR, DG, and DB of the three primary colors.

(+)式において12g、bは各画素における3原色の
濃淡画像データであり、画像の全範囲に亘っての画像デ
ータを抽出して計算を行なう。
In the equation (+), 12g and b are the grayscale image data of the three primary colors at each pixel, and the calculation is performed by extracting the image data over the entire range of the image.

11)ステップ2 3原色の各色の濃度平均をプロセッサ5により求める。11) Step 2 The processor 5 calculates the density average of each of the three primary colors.

(2)式において< r> 、 <cr> 、 <b>
は各色の濃度平均値、nは画素数である。
In formula (2), <r>, <cr>, <b>
is the density average value of each color, and n is the number of pixels.

iii )  ステップ3 fi1式の計算の結果より、最もダイナミックレンジの
大きい色、ここでは仮に赤色をそれとすると、プロセッ
サ5は各画素の濃淡画像データに対して以下の演算を行
なう。
iii) Step 3 Based on the calculation result of the fi1 formula, assuming that the color with the largest dynamic range, red in this case, is the color, the processor 5 performs the following calculation on the grayscale image data of each pixel.

(3)式において、赤色の濃淡画像データに対しては元
のデータのまま変えず、緑色の濃淡画像データに対して
は、その画素での赤色の濃淡画像データにその画素での
緑色の濃淡画像データの平均値との差分を加えた値をそ
の画素での緑色の濃淡画像データに置き換え、青色の濃
淡画像データに対しては、その画素での赤色の濃淡画像
データにその画素での青色の濃淡画像データの平均値と
の差分を加えた値をその画素での青色の濃淡画像データ
に置き換える。但し、演算後のデータr十g−<cr>
が負の値の時は表示が不可能であるのでq=0とし、r
+b−<b>が負の値の時は表示が不可能であるのでb
=0とする。
In Equation (3), for red shading image data, the original data remains unchanged, and for green shading image data, the red shading image data at that pixel is changed to the green shading at that pixel. The value obtained by adding the difference from the average value of the image data is replaced with the green gradation image data at that pixel, and for blue gradation image data, the blue gradation image data at that pixel is added to the red gradation image data at that pixel. The value obtained by adding the difference between the average value of the grayscale image data and the average value of the grayscale image data is replaced with the blue grayscale image data at that pixel. However, the data after calculation r g−<cr>
Since it is impossible to display when is a negative value, let q=0 and r
When +b-<b> is a negative value, it is impossible to display it, so b
=0.

以上の演算はDR>DG、DBの場合であったが、DG
>DR,DBの場合は r=g+r  <r>     1 を用い、DB>DR,DGの場合は の式で濃淡画像データを切り換えればよい。
The above calculation was for the case of DR>DG, DB, but DG
>DR, DB, r=g+r <r> 1 is used, and when DB>DR, DG, the grayscale image data can be switched using the following formula.

1■)ステップ4 ステップ3にて画像メモリの濃淡画像データを切り換え
た状態にて、ルックアップテーブル3のテーブルデータ
を求める色に応じて書き換えることで色を変更する。
1) Step 4 With the grayscale image data in the image memory switched in Step 3, the color is changed by rewriting the table data in the lookup table 3 according to the desired color.

く効 果〉 以上の本発明によれば3原色の色軸のどの方向において
も充分なダイナミックレンジが得られるので自然な表示
効果を得る。従ってルックアップテーブルによる色彩変
更が簡単な演算により、より効果的に行うことができる
ものである。
Effects> According to the present invention described above, a sufficient dynamic range can be obtained in any direction of the color axes of the three primary colors, so that a natural display effect can be obtained. Therefore, color changes using lookup tables can be performed more effectively by simple calculations.

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

第1図は色空間における各色の濃度データ分布を示す説
明図、第2図は本発明に係る画像処理装置の一実施例の
一部ブロック構成図、第3図は画像の説明図、第4図は
データの流れの説明図、第5図はルックアップテーブル
の特性図を示す。 図中、 1:論理画像メモリ  2°画像メ% IJ3°ルクク
アップテーブル4:D/Aコンバータ5゛プロセッサ 
   6:主記憶部 7:ラツチ回路    8:ゲート 代理人 弁理士 福 士 愛 彦(他2名)とσノ  
                       (b
)第 l 図 :$2図 第3図 第4図 第5図
FIG. 1 is an explanatory diagram showing density data distribution of each color in color space, FIG. 2 is a partial block configuration diagram of an embodiment of an image processing apparatus according to the present invention, FIG. 3 is an explanatory diagram of an image, The figure is an explanatory diagram of the data flow, and FIG. 5 is a characteristic diagram of the lookup table. In the figure, 1: Logical image memory 2° Image memory % IJ 3° Lookup table 4: D/A converter 5' Processor
6: Main memory 7: Latch circuit 8: Gate agent Patent attorney Aihiko Fukushi (and 2 others) and σ
(b
) Figure l: $2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】 1、画像を構成する各画素の濃度データを記憶する画像
メモリと、 前記濃度データを変更する領域に相当する画素を判別す
るデータを記憶する論理画像メモリと、 前記画像メモリ及び前記論理画像メモリの出力データが
導入させ、前記濃度データを変更する領域に相当する画
素の濃度データを書き換え設定するルックアップテーブ
ルと、 最も濃度データのダイナミックレンジの大きい色軸のデ
ータを参照して前記画像メモリの他の色軸のダイナミッ
クレンジを広げるように濃度データを書き換える書き換
え手段と、 前記ルックアップテーブルの出力に基いて画像を表示す
る表示手段と、 を具備したことを特徴とする画像処理装置。
[Scope of Claims] 1. An image memory that stores density data of each pixel constituting an image; a logical image memory that stores data that determines a pixel corresponding to an area where the density data is to be changed; and the image memory. and a look-up table that is introduced by the output data of the logical image memory and rewrites and sets the density data of the pixels corresponding to the area where the density data is to be changed, and data on the color axis having the largest dynamic range of density data. and a display means for displaying an image based on the output of the lookup table. Processing equipment.
JP60192941A 1985-08-30 1985-08-30 Image processor Granted JPS6252680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60192941A JPS6252680A (en) 1985-08-30 1985-08-30 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60192941A JPS6252680A (en) 1985-08-30 1985-08-30 Image processor

Publications (2)

Publication Number Publication Date
JPS6252680A true JPS6252680A (en) 1987-03-07
JPH0426513B2 JPH0426513B2 (en) 1992-05-07

Family

ID=16299552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60192941A Granted JPS6252680A (en) 1985-08-30 1985-08-30 Image processor

Country Status (1)

Country Link
JP (1) JPS6252680A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51844A (en) * 1974-06-20 1976-01-07 Tokyo Broadcasting Syst
JPS55105293A (en) * 1978-12-18 1980-08-12 Ibm Raster scanning color graphic system
JPS59161982A (en) * 1983-03-06 1984-09-12 Canon Inc Picture processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51844A (en) * 1974-06-20 1976-01-07 Tokyo Broadcasting Syst
JPS55105293A (en) * 1978-12-18 1980-08-12 Ibm Raster scanning color graphic system
JPS59161982A (en) * 1983-03-06 1984-09-12 Canon Inc Picture processor

Also Published As

Publication number Publication date
JPH0426513B2 (en) 1992-05-07

Similar Documents

Publication Publication Date Title
US5196924A (en) Look-up table based gamma and inverse gamma correction for high-resolution frame buffers
JP3201039B2 (en) Display device
JPH0290197A (en) Dither device
JPH08317250A (en) Dynamic picture control circuit
CN108596828B (en) Image floodlight processing method and device, electronic equipment and storage medium
US7671871B2 (en) Graphical user interface for color correction using curves
JP2647033B2 (en) Lookup table creation method and lookup table creation device
JPS6252680A (en) Image processor
US5502642A (en) HSL neighborhoods in CMY color space
JP2001249655A (en) Display device
KR0155925B1 (en) Digital color image
JPH03113682A (en) Picture processor
JP2878477B2 (en) Image processing device
JPS6252679A (en) Image processor
GB2287600A (en) Digital RGB colour conversion system
JP3654449B2 (en) Cell image data conversion method
JP3348254B2 (en) Display color control device
JPH11187419A (en) Unit and method for signal processing
JPS62249588A (en) Picture display device
CN116489377A (en) Image processing method and electronic device
CN117952875A (en) Image contrast enhancement method and device, storage medium and electronic equipment
JPH02170192A (en) Image color compressing device
JPH0348553B2 (en)
JPH0473799A (en) Picture display device
JP2004514338A (en) High quality color key extraction device