JPH0378669B2 - - Google Patents

Info

Publication number
JPH0378669B2
JPH0378669B2 JP61084464A JP8446486A JPH0378669B2 JP H0378669 B2 JPH0378669 B2 JP H0378669B2 JP 61084464 A JP61084464 A JP 61084464A JP 8446486 A JP8446486 A JP 8446486A JP H0378669 B2 JPH0378669 B2 JP H0378669B2
Authority
JP
Japan
Prior art keywords
color
lookup table
image
input
density information
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.)
Expired - Lifetime
Application number
JP61084464A
Other languages
Japanese (ja)
Other versions
JPS62241078A (en
Inventor
Masaki Takakura
Hideo Takemura
Masao Izumi
Keisuke Iwasaki
Yoji Noguchi
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 JP61084464A priority Critical patent/JPS62241078A/en
Priority to US06/946,482 priority patent/US4878178A/en
Publication of JPS62241078A publication Critical patent/JPS62241078A/en
Publication of JPH0378669B2 publication Critical patent/JPH0378669B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、所望の領域の色彩変更機能を備えた
画像処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to an image processing device having a function of changing the color of a desired area.

<従来の技術> 従来、画像処理技術の一つとして色彩の変更を
行なうことがよくなされた。例えば風景画像の中
で木の葉に相当する領域の色彩のデータのみを緑
色から黄色に切り変えることにより、元の画像と
は異なつた趣の新しい画像を生成することが行な
われた。この処理の為には要するに各画像を構成
する画素のR(レツド)、G(グリーン)、B(ブル
ー)の各データを夫々異なるデータに置換すれば
よい。しかし、色彩を変更するたびに上記各画素
のデータを書き換えようとすれば当然画像メモリ
への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 flavor different from the original image has been generated. In short, for this process, each of the R (red), G (green), and B (blue) data of the pixels constituting each image may be replaced with different data. However, if it is attempted to rewrite the data of each 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.

また、上記画像メモリの書き換えによる色彩変
更の処理は、画像データを一旦変更してしまうと
元のデータは消されてしまう。従つて色彩変更シ
ミユレーシヨンの様に元の色彩と変更後の色彩と
を頻繋に比較するケースの多いシステムには不向
きである。
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 frequently compares the original color and the changed color, such as color change simulation.

このため、色彩変更を頻繋に使用する画像処理
装置では、画像メモリと表示装の中間にルツクア
ツプテーブルメモリを設け、画像メモリからの出
力をルツクアツプテーブルメモリで変換して表示
装置に出力する方法がよく用いられる。この画像
処理装置では画像メモリの内容を変更せずに、ル
ツクアツプテーブルメモリの内容を書き換えるだ
けで、高速に色彩変更を行なうことが可能であ
る。
For this reason, in an image processing device that frequently uses color changes, a lookup table memory is provided between the image memory and the display device, and the output from the image memory is converted by the lookup table memory and output to the display device. method is often used. With this image processing device, it is possible to change colors at high speed by simply rewriting the contents of the lookup table memory without changing the contents of the image memory.

さて、このような画像処理装置に対する原画の
入力方法は従来次の二つの方法が多かつた。
Conventionally, the following two methods have been commonly used to input original images to such image processing apparatuses.

(1) 一つは画像メモリの内容を表示装置で確認し
ながら、画像メモリに直接、対話的に色情報を
書き込んでいく方法である。この方法では、ま
ず、書き込む色を選択し、次に座標入力手段を
用い、その色を入力する場合を順に入力して行
く。言わば、画像処理装置上「絵を画く」方法
である。
(1) One method is to write color information directly and interactively into the image memory while checking the contents of the image memory on a display device. In this method, first, a color to be written is selected, and then the coordinate input means is used to sequentially input the color. In other words, this is a method of ``drawing a picture'' on an image processing device.

(2) もう一つは白黒の線画を、カメラ、スキヤナ
ー等で画像処理装置内に入力し、その後、塗り
つぶし等の機能を用い、画像処理装置で色を入
力する方法である。つまり、図形、情報の入力
は画像処理装置外で行ない(例えば紙にマジツ
クで絵を書く等)、色情報の入力を画像処理装
置で行なう方法である。
(2) The other method is to input a black and white line drawing into an image processing device using a camera, scanner, etc., and then use a function such as filling in to input colors into the image processing device. In other words, this is a method in which figures and information are input outside the image processing apparatus (for example, by drawing pictures on paper with a magic trick), and color information is input using the image processing apparatus.

この二つの方法に共通しているのは、いずれ
も、画像処理装置内で色情報を入力するという点
である。このため、この二つの方法であれば、画
像のどの部分にどんな値の色情報が割当てられて
いるかは簡単に判明し、色変更は簡単である。
What these two methods have in common is that they both involve inputting color information within the image processing device. Therefore, with these two methods, it is easy to find out what value of color information is assigned to which part of the image, and the color can be easily changed.

例えば第7図a〜bは上記(2)の方法による色情
報の入力を示したものである。第7図aは白黒線
画の入力、第7図bはそれに塗りつぶしの方法を
用いて色付けをした例である。例えば、斜線の領
域はC1、点の領域はC2のデータを画像メモリに
書き込んだとする。この結果、斜線の領域の色彩
を変更しようと思えば、画像メモリからの出力
C1をルツクアツプテーブルメモリを用いて別な
色に変換してやればよい。
For example, FIGS. 7a to 7b show the input of color information using the method (2) above. FIG. 7a shows an example in which a black and white line drawing is input, and FIG. 7b shows an example in which it is colored using the filling method. For example, assume that data for C 1 is written in the shaded area and data C 2 is written in the dotted area in the image memory. As a result, if you want to change the color of the shaded area, the output from the image memory
All you have to do is convert C 1 to another color using lookup table memory.

ところが、上記従来の画像入力方法では入力が
困難な画像に写真、TV画像のようなフルカラー
画像がある。写真のような画像は色数が非常に多
く、また、各画素ごとに微妙ではあるがすべて色
が違う場合が多い。このような画像は画像処理装
置内で色を入力して製作するのは非常に困難であ
る。このような場合は、写真、TV画像等の原画
を色分解し、直接画像メモリに入力する方法がよ
い。このような方法で入力した画像を色変更する
手順は次のようになる。
However, images that are difficult to input using the conventional image input methods described above include full-color images such as photographs and TV images. Images such as photographs have a very large number of colors, and each pixel often has a slightly different color. It is very difficult to create such an image by inputting colors within an image processing device. In such a case, it is better to color separate the original picture, such as a photograph or TV image, and input it directly into the image memory. The procedure for changing the color of an image input using this method is as follows.

すなわち、実物のリンゴをTVカメラを用いて
画像入力し、このリンゴの色を変更したいとすれ
ば、まず、どの領域がリンゴであるか、画像処理
装置に入力する必要がある。というのは、原画内
にリンゴと同じ色が別な場所に含まれていた場
合、それらを区別する必要があるからである。
That is, if you input an image of a real apple using a TV camera and want to change the color of this apple, you first need to input which area is the apple to the image processing device. This is because if the same color as the apple is contained in different places in the original picture, it is necessary to distinguish between them.

このようなフルカラーで画像から特定の領域を
簡単に抽出する画像処理装置は、最近本発明人等
により発明された。この画像処理装置は、画像を
構成する各画素の濃度情報と領域が抽出されたか
抽出されていないかを表すラベル情報とを記憶す
る兼用メモリと、濃度情報に関する所望のしきい
値を入力するためのしきい値入力手段と、画像中
の所定の座標を入力するための座標入力手段と、
上記兼用メモリからの濃度情報をしきい値入力手
段から入力されたしきい値に基づいて変換するル
ツクアツプテーブルを定め、上記ルツクアツプテ
ーブルに従つて、上記兼用メモリからの入力情報
を変換するルツクアツプテーブルメモリと、上記
ルツクアツプテーブルメモリの出力に基づいて画
像を表示する表示手段と、上記しきい値で定まる
抽出されるべき領域でかつ上記座標入力手段で指
定された領域の画素の上記ラベル情報を書き換え
る演算処理装置とを備えて、上記兼用メモリから
の原画像の各画素の特性レベルを表わす出力信号
をルツクアツプテーブルメモリで変換して、しき
い値入力手段から入力されたしきい値で定まる抽
出されるべき領域を、上記表示手段にあらかじめ
特定の色で表示し、上記特定の色で表示された領
域の中から目的の領域を座標入力手段を用いて選
択して、領域抽出を行なうようにしている。
An image processing device that easily extracts a specific area from an image in full color was recently invented by the present inventors. This image processing device includes a dual-purpose memory for storing density information of each pixel constituting an image and label information indicating whether a region has been extracted or not, and a memory for inputting a desired threshold value regarding the density information. a coordinate input means for inputting predetermined coordinates in the image;
A look-up table is defined for converting the concentration information from the dual-purpose memory based on the threshold input from the threshold input means, and a look-up table for converting the input information from the dual-purpose memory is determined according to the look-up table. an up-table memory, a display means for displaying an image based on the output of the look-up table memory, and the above-mentioned label of the pixel in the area to be extracted determined by the above-mentioned threshold value and specified by the above-mentioned coordinate input means. and an arithmetic processing unit that rewrites information, converts the output signal representing the characteristic level of each pixel of the original image from the dual-purpose memory in the lookup table memory, and converts the output signal representing the characteristic level of each pixel of the original image from the dual-purpose memory into the threshold value input from the threshold value input means. The area to be extracted, which is determined by I try to do it.

<発明の解決しようとする問題点> ところが、上記従来の画像処理装置では領域抽
出を行なつた後の色彩変更はそう簡単ではない。
というのは、リンゴの領域内には同じような赤で
も、明るい赤から暗い赤まで非常に多くの種類の
色情報が含まれているからである。そのため、例
えば100種類の赤に近い色が含まれていれば、リ
ンゴの領域を色変更するためには、少なくとも
100種類の入力に対するルツクアツプテーブルメ
モリの設定が必要となつてしまうという問題があ
る。
<Problems to be Solved by the Invention> However, in the conventional image processing apparatus described above, it is not so easy to change the color after performing area extraction.
This is because the area of an apple contains a large number of different types of color information, from bright red to dark red, even though the color red is the same. Therefore, for example, if 100 types of colors close to red are included, in order to change the color of the apple area, at least
There is a problem in that it is necessary to set the lookup table memory for 100 types of input.

そこで、本発明の目的は、画像の特定領域に含
まれる画素の色彩を、基準色と目的色の入力によ
り、その領域に含まれる画素の色彩の濃淡の応じ
て目的色および基準色と一定の関係になるように
自動的に簡単かつ高速に色彩変更できるようにす
ることにある。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to change the color of pixels included in a specific area of an image by inputting a reference color and a target color so that the color of the pixels included in that area is adjusted to a certain level between the target color and the reference color according to the shade of the color of the pixels included in that area. The purpose is to automatically change colors easily and quickly to match the relationship.

<問題点を解決するための手段> 本発明は、画像を構成する各画素の濃度情報と
領域を判別するラベル情報との両方あるいはいず
れかを場合に応じて記憶する兼用メモリと、上記
兼用メモリからの入力情報を変換して出力するル
ツクアツプテーブルメモリと、上記ルツクアツプ
テーブルメモリの出力に基づいて画像を表示する
表示手段とを備えて、上記ルツクアツプテーブル
メモリの特定のラベル情報を有する特定領域の濃
度情報を書き換えて画層の特定領域の色彩変更を
するようにした画像処理装置において、画像上の
色彩変更すべき特定領域の所定の画素を指定し
て、その画素の濃度情報である基準色とラベル情
報を入力する座標入力手段と、上記座標入力手段
で指定された基準色の変更されるべき目的色を入
力する色入力手段と、上記座標入力手段で入力さ
れた画素の基準色を目的色に変更するようにルツ
クアツプテーブルメモリの濃度情報を書き換える
と共に、上記座標入力手段で指定された特定のラ
ベル情報を有する上記特定領域に含まれる画素の
ルツクアツプテーブルメモリの濃度情報を、その
濃度情報の示す色彩の濃淡に応じて上記目的色と
一定の関係になるように自動的に計算して書き換
えるルツクアツプテーブル色彩設定手段とを備え
たことを特徴としている。
<Means for Solving the Problems> The present invention provides a dual-purpose memory that stores density information of each pixel constituting an image and/or label information for determining an area depending on the case, and a dual-purpose memory as described above. a look-up table memory for converting and outputting input information from the look-up table memory; and display means for displaying an image based on the output of the look-up table memory; In an image processing device that changes the color of a specific area of a layer by rewriting the density information of the area, a predetermined pixel in the specific area on the image whose color is to be changed is specified, and the density information of that pixel is changed. a coordinate input means for inputting a reference color and label information; a color input means for inputting a target color to be changed for the reference color specified by the coordinate input means; and a reference color of the pixel input by the coordinate input means. rewrites the density information in the lookup table memory so as to change the color to the target color, and also updates the density information in the lookup table memory of the pixel included in the specific area having the specific label information specified by the coordinate input means. The present invention is characterized by comprising a lookup table color setting means that automatically calculates and rewrites the color so as to have a certain relationship with the target color according to the shade of the color indicated by the density information.

<作用> フルカラー画像の色彩変更を行なう場合に、ま
ず、色彩変更の基準となる基準色が座標入力手段
を用いてフルカラー画像の特定の場所から入力さ
れる。次に、そこを色彩変更して何色にするかを
表わす目的色が色入力手段を用いて入力される。
そして、ルツクアツプテーブル色彩設定手段によ
りその目的をもとに他の色を何色に変更するかを
自動的に計算して、ルツクアツプテーブルメモリ
の内容が書き換えられ、色彩変更が行なわれる。
<Operation> When changing the color of a full-color image, first, a reference color serving as a reference for color change is input from a specific location of the full-color image using the coordinate input means. Next, a target color representing the color to be changed is input using the color input means.
Then, the lookup table color setting means automatically calculates to which other color to change based on the purpose, the contents of the lookup table memory are rewritten, and the color is changed.

<実施例> 以下、本発明を用いて詳細に説明する。第1図
はフルカラー画像をR(レツド)、G(グリーン)、
B(ブルー)の3成分に色分解して記憶する画像
処理装置のブロツク図である。この画像処理装置
は、R.G.B各8ビツトの兼用メモリ15を備え、
この兼用メモリ15は画像を構成する濃度情報と
領域を判別するラベル情報を場合に応じて記憶す
る。上記兼用メモリ15の出力はルツクアツプテ
ーブルメモリ16のアドレスに接続され、ルツク
アツプテーブルメモリ16の出力はゲート回路1
7を介してD/Aコンバータ18に接続される。
<Example> Hereinafter, the present invention will be explained in detail. Figure 1 shows full-color images of R (red), G (green),
FIG. 2 is a block diagram of an image processing device that separates an image into three components of B (blue) and stores them. This image processing device is equipped with a dual-purpose memory 15 of 8 bits each for RGB.
This dual-purpose memory 15 stores density information constituting an image and label information for identifying an area, depending on the case. The output of the dual-purpose memory 15 is connected to the address of the lookup table memory 16, and the output of the lookup table memory 16 is connected to the address of the gate circuit 1.
It is connected to the D/A converter 18 via 7.

上記ルツクアツプテーブルメモリ16はバス1
4、ゲート20を通じマイクロプロセツサ13か
らアクセスされる。上記マイクロプロセツサ13
は、ルツクアツプテーブルメモリ16の濃度情報
を後述する計算をして書き換えるルツクアツプテ
ーブル色彩設定手段を含む。
The lookup table memory 16 is bus 1.
4. Accessed by microprocessor 13 through gate 20. The above microprocessor 13
includes a lookup table color setting means for calculating and rewriting the density information in the lookup table memory 16, which will be described later.

また、D/Aコンバータ18の出力(ビデオア
ンログ信号)は表示器19に送られ、画像表示が
行なわれる。上記兼用メモリ15および主記憶装
置12はバス14を通じて、上記マイクロプロセ
ツサ13からアクセスされる。座標入力手段21
はバス14を通じてマイクロプロセツサ13から
アクセスされ、画像上の特定の座標を入力して色
彩変更の基準となる色を入力できる。また、色入
力手段11はバス14を通じてマイクロプロセツ
サ13からアクセスされ、上記基準となる色を何
色に変更するかという目的の色を入力できる。
Further, the output (video anlog signal) of the D/A converter 18 is sent to a display 19, where an image is displayed. The dual-purpose memory 15 and main memory 12 are accessed by the microprocessor 13 via the bus 14. Coordinate input means 21
is accessed from the microprocessor 13 through the bus 14, and by inputting specific coordinates on the image, it is possible to input a color as a reference for color change. The color input means 11 is accessed by the microprocessor 13 via the bus 14, and can input a desired color to which the reference color is to be changed.

次に本装置の処理について説明する。 Next, the processing of this device will be explained.

まず、スキヤナー、TVカメラ等の手段を用い
て画像を兼用メモリ15に入力する。この段階で
は兼用メモリ15と1ドツトあたりR.G.B各8ビ
ツトの情報を蓄えることとする。次に、一例とし
て兼用メモリ15の上位6ビツトを画像情報用と
し、下位2ビツトを領域に関するラベル情報用と
する。第2図にこのように設定した兼用メモリを
示す。そして、R.G.Bのうちの色の1成分をKで
代表させれば、K成分(K=r、gもしくはb)
の兼用メモリ15に蓄えられる情報は、濃淡情報
iK(0≦iK<26)とラベル情報l(0≦l<22)と
なり、兼用メモリ15の出力は22×iK+lとな
る。色彩変更を行なう場合には、ルツクアツプテ
ーブル色彩設定手段はルツクアツプテーブルメモ
リ16の内容を以下のように設定する。
First, an image is input into the dual-purpose memory 15 using a scanner, a TV camera, or other means. At this stage, information of 8 bits each of RGB is stored in the dual-purpose memory 15 for each dot. Next, as an example, the upper 6 bits of the dual-purpose memory 15 are used for image information, and the lower 2 bits are used for label information regarding the area. FIG. 2 shows the dual-purpose memory set in this way. Then, if one color component of RGB is represented by K, the K component (K = r, g or b)
The information stored in the dual-purpose memory 15 is gray information.
i K (0≦i K <2 6 ) and label information l (0≦l<2 2 ), and the output of the dual-purpose memory 15 becomes 2 2 ×i K +l. When changing the color, the lookup table color setting means sets the contents of the lookup table memory 16 as follows.

ここで、xは兼用メモリ15の出力、すなわち
ルツクアツプテーブルメモリ16の入力、fK(x)
はK成分のルツクアツプテーブルメモリ16の出
力である。
Here, x is the output of the dual-purpose memory 15, that is, the input of the lookup table memory 16, f K (x)
is the output of the lookup table memory 16 for the K component.

fK(x)=fK (0)(x)(xmod 22=0の場合) =fK (1)(x)(xmod 22=1の場合) =fK (2)(x)(xmod 22=2の場合) =fK (3)(x)(xmod 22=3の場合) 関数fK (l)(x)(l′=0、1、2、3)は、それぞ
れ、ラベル情報が0、1、2、3である領域の色
彩を決める関数である。すなわち、各ラベルに対
応した関数fK (l)を変更すれば、各領域の色彩を独
立に変更することが可能である。
f K (x)=f K (0) (x) (when xmod 2 2 = 0) = f K (1) (x) (when xmod 2 2 = 1) = f K (2) (x) (When xmod 2 2 = 2) =f K (3) (x) (When xmod 2 2 = 3) The function f K (l) (x) (l ′ = 0, 1, 2, 3) is , are functions that determine the color of areas whose label information is 0, 1, 2, and 3, respectively. That is, by changing the function f K (l) corresponding to each label, it is possible to change the color of each area independently.

第3図aに、0、1、2、3の4つのラベル付
けが行なわれたフルカラー画像の例を示す。この
中のある領域の色彩変更を具体的には次のように
行なう。
FIG. 3a shows an example of a full-color image with four labels: 0, 1, 2, and 3. Specifically, the color of a certain area in this area is changed as follows.

(1) モード選択手段により、基準色入力モードに
入る。基準色入力モードでは座標入力手段21
を用いて、どの部分の色を変更したいかを、画
像上で1点を指定し、その点の色の濃度情報
(Ir、Ig、Ib)と、その点のラベル情報l0を入力
する。
(1) Enter the reference color input mode using the mode selection means. In the reference color input mode, the coordinate input means 21
Use to specify a point on the image for which color you want to change, and input the color density information (Ir, Ig, Ib) of that point and the label information l0 of that point.

第3図bに、画面上に座標入力手段21に対
応して移動するカーソルを表示させ、基準色を
入力するようすを示す。
FIG. 3b shows how a cursor that moves in accordance with the coordinate input means 21 is displayed on the screen and a reference color is input.

(2) モード選択手段により、目的色入力モードに
入る。目的色入力モードでは、基準色入力で指
定した点を何色に変更するかを色入力手段11
で入力する。その色を目的色と呼び、(Dr、
Dg、Db)とする。目的色の入力方法は画面上
にパレツトを呼びだし、その中から色を選択す
る方法や、色成分を数値入力する方法、色成分
をグラフで表示し、そのグラフを変化させて入
力する方法等が考えられる。
(2) Enter the target color input mode using the mode selection means. In the target color input mode, the color input means 11 inputs the color to which the point specified in the reference color input is to be changed.
Enter. That color is called the target color, (Dr,
Dg, Db). There are several ways to input the target color, such as calling up a palette on the screen and selecting a color from it, inputting the color components numerically, or displaying the color components in a graph and inputting by changing the graph. Conceivable.

(3) 次に、ルツクアツプテーブル16を変更す
る。(1)の作業で色彩変更する領域のラベル情報
l0が得られたので、それに対応した関数fK (l 0 )
(x)を次のように変更する。次の式でiは入
力xを22で割つた商、つまり濃度情報とする。
[ ]はガウス記号である。
(3) Next, change the lookup table 16. Label information for the area whose color will be changed in step (1)
Since l 0 is obtained, the corresponding function f K (l 0 )
Change (x) as follows. In the following equation, i is the quotient of input x divided by 2 2 , that is, density information.
[ ] is a Gaussian symbol.

fK (l 0 )(x)=[DK×i/IK] (0≦i<IK) =DK (i=IK) =[F×i−IK/26−IK+DK×26−i/26−IK] (
IK<i≦ 26) Fは、ルツクアツプテーブルメモリ16の出力
の最大値である。
f K (l 0 ) (x)=[D K ×i/I K ] (0≦i<I K ) =D K (i=I K ) = [F×i−I K /2 6 −I K +D K ×2 6 −i/2 6 −I K ] (
I K <i≦2 6 ) F is the maximum value of the output of the lookup table memory 16.

第4図a,b,cに上式で表される関数の形を
示す。
Figures 4a, b, and c show the form of the function expressed by the above equation.

このように、関数fK (l 0 )(x)を設定することに
より、ラベル情報l0に対応した領域が次のように
色変更され、表示されることになる。まず、基準
色を入力した座標点は目的色で表示される。ま
た、基準色より明るい色濃度をもつ点はより明る
く表示され、暗い点はより暗く表示されることと
なり、見た目にも自然な色彩変更が行なわれる。
By setting the function f K (l 0 ) (x) in this manner, the area corresponding to the label information l 0 is displayed with its color changed as follows. First, the coordinate point where the reference color is input is displayed in the target color. Furthermore, points with a color density lighter than the reference color are displayed brighter, and dark points are displayed darker, resulting in a visually natural color change.

以上、上記実施例の方法を用いれば、基準色入
力のための座標入力と、目的色入力のための色入
力を行なうだけで、フルカラー画像の色彩変更が
簡単かつ迅速に行なえる。
As described above, by using the method of the above embodiment, the color of a full-color image can be easily and quickly changed by simply inputting coordinates for inputting a reference color and inputting a color for inputting a target color.

本発明は、様々な応用が考えられる。例えば、
基準色を入力する際、座標入力手段21により入
力された1点の色情報を基準色とする例を前述し
たが、入力された点の周辺数ドツトの色情報の平
均をとり、それを基準色とする方法も考えられ
る。原画像に雑音が多く含まれている場合に、こ
の方法は有効である。
The present invention can have various applications. for example,
When inputting a reference color, the example in which the color information of one point inputted by the coordinate input means 21 is used as the reference color has been described above. Another option is to use color. This method is effective when the original image contains a lot of noise.

また、前述の例では、第4図に示されるよう
に、目的色ともつとも明度の高い色と、もつとも
明度の低い色との間を直線的に補間し、ルツクア
ツプテーブルメモリの内容を設定したが、曲線を
用いて補間する方法も考えられる。
In addition, in the above example, as shown in Figure 4, the contents of the lookup table memory are set by linearly interpolating between the target color, a color with high brightness, and a color with low brightness. However, a method of interpolating using a curve can also be considered.

また、前述の例では、基準色と目的色を一つづ
つ入力したが、これを複数組入力する方法を考え
られる。この場合、基準色と目的色が複数個、例
えば第5図のように入力されるので、それらの点
を結ぶ直線もしくは曲線を計算し、ルツクアツプ
テーブルを設定すればよい。第5図で、I1,I2
I3,I4が4つの基準色のK成分、D1〜D4が目的色
のK成分、横軸が入力で縦軸が出力fK (l 0 )である。
Further, in the above example, one reference color and one target color were input, but a method of inputting multiple sets of these can be considered. In this case, since a plurality of reference colors and target colors are input as shown in FIG. 5, for example, a straight line or curve connecting these points can be calculated and a lookup table can be set. In Figure 5, I 1 , I 2 ,
I 3 and I 4 are the K components of the four reference colors, D 1 to D 4 are the K components of the target color, the horizontal axis is the input, and the vertical axis is the output f K (l 0 ) .

また、前述の例では、最も大きな入力に対して
は最も明度の高い色成分が、また、最も小さい入
力に対しては最も明度の低い色成分が出力される
ように固定されていたが、これらの情報も色入力
手段11を用いて設定できるようにする方法も考
えられる。これら明るい色と暗い色をそれぞれ
(Fr、Fg、Fb)、(Er、Eg、Eb)とする。この色
成分を用い、ルツクアツプテーブルメモリ16
を、第6図a,b,cに示すように設定する。
In addition, in the above example, the color component with the highest brightness is output for the largest input, and the color component with the lowest brightness is output for the smallest input. A method is also conceivable in which the information can also be set using the color input means 11. Let these light colors and dark colors be (Fr, Fg, Fb) and (Er, Eg, Eb), respectively. Using this color component, lookup table memory 16
are set as shown in FIG. 6 a, b, and c.

このようにすれば、入力データ数は増えるが、
暗いかげの部分や明るいハイライトの部分の色彩
を調整することが可能となる。
If you do this, the number of input data will increase, but
It is possible to adjust the colors of dark shadow areas and bright highlight areas.

また、前述の例では、4つのラベル情報を持つ
場合を例にとつて説明したが、ラベルの情報量が
さらに多い場合、もしくは、ラベル情報を持たな
い場合でも、基準色、目的色を用いた色彩変更方
法は適用可能である。
In addition, in the above example, we explained the case where there is four label information, but if the amount of label information is larger, or even if there is no label information, it is possible to use the standard color and target color. Color change methods are applicable.

<発明の効果> 以上より明らかなように、本発明の画像処理装
置は、座標入力手段と色入力手段とルツクアツプ
テーブル色彩設定手段とを備えて、色彩数が多い
特定領域の濃度情報を、その色彩の濃淡に応じて
目的色と基準色と一定の関係になるように自動的
に計算して、ルツクアツプテーブルメモリの濃度
情報を書き換えるので、濃淡が分布している領域
の色彩変更作業を高速かつ簡単にできる。
<Effects of the Invention> As is clear from the above, the image processing apparatus of the present invention is equipped with a coordinate input means, a color input means, and a lookup table color setting means, and is capable of inputting density information of a specific area having a large number of colors. It automatically calculates a certain relationship between the target color and the reference color according to the shade of the color, and rewrites the density information in the lookup table memory, making it easier to change the color in areas where shades are distributed. It's fast and easy.

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

第1図は本発明の一実施例の画像処理装置のブ
ロツク図、第2図は兼用メモリとルツクアツプテ
ーブルメモリの内容を説明する図、第3図a,b
はラベル付けがされたフルカラー画像を示す図、
第4図a,b,c、第5図、第6図a,b,cは
ルツクアツプテーブル色彩設定手段の各関数の線
図、第7図は従来の色彩変更を説明する図であ
る。 11……色入力手段、12……主記憶装置、1
3……マイクロプロセツサ、14……バス、15
……兼用メモリ、16……ルツクアツプテーブル
メモリ、17……ゲート回路、18……D/Aコ
ンバータ、19……表示器、20……ルツクアツ
プテーブル読み書き用ゲート回路、21……座標
入力手段。
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a diagram explaining the contents of a dual-purpose memory and a lookup table memory, and FIGS. 3 a and b
is a diagram showing a full-color image with labels,
FIGS. 4a, b, c, 5, and 6 a, b, and c are diagrams of each function of the lookup table color setting means, and FIG. 7 is a diagram illustrating conventional color changing. 11...Color input means, 12...Main storage device, 1
3...Microprocessor, 14...Bus, 15
... Dual-purpose memory, 16... Lookup table memory, 17... Gate circuit, 18... D/A converter, 19... Display, 20... Gate circuit for reading and writing lookup table, 21... Coordinate input means .

Claims (1)

【特許請求の範囲】 1 画像を構成する各画素の濃度情報と領域を判
別するラベル情報との両方あるいはいずれかを場
合に応じて記憶する兼用メモリと、上記兼用メモ
リからの入力情報を変換して出力するルツクアツ
プテーブルメモリと、上記ルツクアツプテーブル
メモリの出力に基づいて画像を表示する表示手段
とを備えて、上記ルツクアツプテーブルメモリの
特定のラベル情報を有する特定領域の濃度情報を
書き換えて画像の特定領域の色彩変更をするよう
にした画像処理装置において、 画像上の色彩変更すべき特定領域の所定の画素
を指定して、その画素の濃度情報である基準色と
ラベル情報を入力する座標入力手段と、 上記座標入力手段で指定された基準色の変更さ
れるべき目的色を入力する色入力手段と、 上記座標入力手段で入力された画素の基準色を
目的色に変更するようにルツクアツプテーブルメ
モリの濃度情報を書き換えると共に、上記座標入
力手段で指定された特定のラベル情報を有する上
記特定領域に含まれる画素のルツクアツプテーブ
ルメモリの濃度情報を、その濃度情報の示す色彩
の濃淡に応じて上記目的色と一定の関係になるよ
うに自動的に計算して書き換えるルツクアツプテ
ーブル色彩設定手段とを備えたことを特徴とする
画像処理装置。 2 上記特許請求の範囲第1項に記載の画像処理
装置において、上記ルツクアツプテーブル色彩設
定手段は、座標入力手段で入力された座標周辺の
画素の濃度情報を平均して、その平均値を上記基
準色として、ルツクアツプテーブルメモリの濃度
情報を書き換えるようになつていることを特徴と
する画像処理装置。 3 上記特許請求の範囲第1項に記載の画像処理
装置において、上記ルツクアツプテーブル色彩設
定手段は、上記基準色および目的色を表す濃度情
報以外に、上記色入力手段で入力された明るい
色、暗い色を表わす濃度情報に基づいて、上記ル
ツクアツプテーブルメモリの濃度情報を書き換え
るようになつていることを特徴とする画像処理装
置。
[Scope of Claims] 1. A dual-purpose memory for storing density information of each pixel constituting an image and/or label information for determining an area depending on the case; and a dual-purpose memory for converting input information from the dual-purpose memory. and a display means for displaying an image based on the output of the look-up table memory; In an image processing device configured to change the color of a specific area of an image, specify a predetermined pixel in the specific area on the image where the color is to be changed, and input the reference color and label information that are the density information of that pixel. a coordinate input means; a color input means for inputting a target color to which the reference color specified by the coordinate input means is to be changed; In addition to rewriting the density information in the lookup table memory, the density information in the lookup table memory of the pixel included in the specific area having the specific label information specified by the coordinate input means is changed to the shade of color indicated by the density information. 1. An image processing apparatus comprising: a lookup table color setting means that automatically calculates and rewrites a lookup table color so as to have a certain relationship with the target color according to the color. 2. In the image processing apparatus according to claim 1, the lookup table color setting means averages density information of pixels around the coordinates inputted by the coordinate inputting means, and calculates the average value as described above. An image processing apparatus characterized in that density information in a lookup table memory is rewritten as a reference color. 3. In the image processing apparatus according to claim 1, the lookup table color setting means is configured to input a bright color input by the color input means, in addition to the density information representing the reference color and the target color. An image processing apparatus characterized in that density information in the lookup table memory is rewritten based on density information representing a dark color.
JP61084464A 1985-12-25 1986-04-11 Image processor Granted JPS62241078A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP61084464A JPS62241078A (en) 1986-04-11 1986-04-11 Image processor
US06/946,482 US4878178A (en) 1985-12-25 1986-12-24 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61084464A JPS62241078A (en) 1986-04-11 1986-04-11 Image processor

Publications (2)

Publication Number Publication Date
JPS62241078A JPS62241078A (en) 1987-10-21
JPH0378669B2 true JPH0378669B2 (en) 1991-12-16

Family

ID=13831346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61084464A Granted JPS62241078A (en) 1985-12-25 1986-04-11 Image processor

Country Status (1)

Country Link
JP (1) JPS62241078A (en)

Also Published As

Publication number Publication date
JPS62241078A (en) 1987-10-21

Similar Documents

Publication Publication Date Title
US4952917A (en) Display system with luminance calculation
JPH07114503B2 (en) Color correction method
JP2000134486A (en) Image processing unit, image processing method and storage medium
CN107862672A (en) The method and device of image defogging
JP2578170B2 (en) Image display device
US5774578A (en) Apparatus for and method of utilizing density histograms for correcting objective images
JPH0325493A (en) Color display
JPH11232451A (en) Adapting method of color representation to image observed in environments of different relative luminance levels
JPH0378669B2 (en)
JP2001045303A (en) Image thresholding method
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JPH06296284A (en) Color conversion device and electronic camera
JPH0571099B2 (en)
JPH1188712A (en) Image processing method and image processor
JPS61223893A (en) Contrast conversion control system
US6278438B1 (en) Method of displaying digital photograph based bitmaps
JPS62222373A (en) Image processor
JP2878477B2 (en) Image processing device
JPH07134769A (en) Anti-aliasing processing method for image synthesis
JP2843912B2 (en) Image processing method
JPH01191971A (en) Picture processor
JP3230533B2 (en) Image processing apparatus and method
CN115880180A (en) Adaptive picture quality PQ debugging method, system, platform and storage medium
JPS62151986A (en) Picture processor
JPS63316888A (en) Processing system for coloring image