JPH09270000A - Intermediate color deciding device - Google Patents

Intermediate color deciding device

Info

Publication number
JPH09270000A
JPH09270000A JP8247608A JP24760896A JPH09270000A JP H09270000 A JPH09270000 A JP H09270000A JP 8247608 A JP8247608 A JP 8247608A JP 24760896 A JP24760896 A JP 24760896A JP H09270000 A JPH09270000 A JP H09270000A
Authority
JP
Japan
Prior art keywords
color
combination
unit
value
palette number
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
JP8247608A
Other languages
Japanese (ja)
Other versions
JP3803146B2 (en
Inventor
健人 ▲よし▼井
Taketo Yoshii
Miyoshi Matsui
美佳 松居
Masaru Nakai
賢 中井
Katsuyuki Morita
克之 森田
Yoshiyuki Miyabe
義幸 宮部
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP24760896A priority Critical patent/JP3803146B2/en
Publication of JPH09270000A publication Critical patent/JPH09270000A/en
Application granted granted Critical
Publication of JP3803146B2 publication Critical patent/JP3803146B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an intermediate color deciding device with which an intermediate color most suitable for human visual characteristics can be decided at high speed. SOLUTION: A background picture element pallet number/equal space ID converting part 16 converts the pallet numbers of picture elements in a background image data storage part 100 to the combination of equal space ID values and outputs it to a blend part 18. A fore-ground picture element pallet number/ equal space ID converting part 17 converts the pallet numbers of picture elements in a fore-ground image data storage part 200 to the combination of equal space ID values and outputs it to the blend part 18. The blend part 18 synthesizes these two kinds of combination of equal space ID values at a blend rate outputted from a blend rate deciding part 15 and outputs the synthesized result to an equal speed ID/pallet number converting part 19. The equal space ID/pallet number converting part 19 converts this synthesized result to a pallet number and outputs it to an image data write part 300.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、色成分値の組み合
わせで表される二つのカラー画素を合成して一画素とし
て表現するために、二つの画素の色成分値から中間色を
決定する中間色決定装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to intermediate color determination for determining an intermediate color from color component values of two pixels in order to combine two color pixels represented by a combination of color component values and represent them as one pixel. Regarding the device.

【0002】[0002]

【従来の技術】近年、コンピュータグラフィックス技術
の発達により、ワードプロセッサーやゲーム機器等の種
々の情報処理装置において、カラフルな画像が、CRT
や液晶ディスプレイに表示されるに至っている。そし
て、1600万色の色が表示可能なディスプレイも登場
している。
2. Description of the Related Art In recent years, with the development of computer graphics technology, colorful images are displayed on CRTs in various information processing devices such as word processors and game machines.
And has been displayed on the liquid crystal display. In addition, displays capable of displaying 16 million colors have also appeared.

【0003】しかしながら、その機種によっては、16
00万色中256色のみ、または、512色のみ同時発
色というように、表示し得る色数が制限されていること
がある。1600万色の色を表現しようとすると、1画
素につきR(赤)、G(緑)、B(青)各8ビットの計
24ビットの情報量を要し、大容量のVRAMが必要と
なり、また、その画像データを保持するために、膨大な
メモリ容量が必要となるからである。
However, depending on the model, 16
The number of colors that can be displayed may be limited, such as only 256 colors out of, 000,000 colors or 512 colors simultaneously. In order to represent 16 million colors, each pixel requires an 8-bit R (red), G (green), and B (blue) 8-bit information amount, for a total of 24 bits, which requires a large capacity VRAM. In addition, a huge memory capacity is required to hold the image data.

【0004】制限された色は、8ビット(0〜255)
で表されるR、G、Bの各成分値のなかから、予め適当
な値を数個抽出し、その抽出された値の組み合わせによ
って表現される。例えば、R、G、Bから成分値をそれ
ぞれ6個ずつ抽出したとすると、その組み合わせの数の
216(=63 )色を表現できることになる。その際、
どの値を抽出するかは、表現できる色ができるだけ偏ら
ないようにするため、人の視覚特性を考慮して行われる
ことが多い。人の視覚特性とは、人は、輝度が高くなる
ほど、その変化を敏感に感じるという特性であり、例え
ば、成分値0の輝度から成分値100の輝度に変化する
際の変化量よりも、成分値100の輝度から成分値20
0の輝度に変化する際の変化量の方が多いと感じるとい
ったことである。
The limited color is 8 bits (0 to 255)
From among the R, G, and B component values represented by, several appropriate values are extracted in advance, and they are expressed by a combination of the extracted values. For example, if six component values are extracted from each of R, G, and B, 216 (= 6 3 ) colors corresponding to the number of combinations can be expressed. that time,
The value to be extracted is often determined in consideration of human visual characteristics so that the expressible colors are not biased as much as possible. The human visual characteristic is a characteristic that a person feels the change more sensitively as the brightness becomes higher, and for example, the component is more than the change amount when the brightness of the component value 0 changes to the brightness of the component value 100. A component value of 20 from a luminance value of 100
That is, the user feels that there is a larger amount of change when the brightness changes to 0.

【0005】上記したような特性を考慮して、例えば、
Rの成分値として、(0,110,160,200,2
30,255)の6個を抽出したとする。つまり、抽出
された6個の成分値は、隣合う成分値で表される輝度の
差は、どこをとっても、視覚上は、同じように感じられ
るような成分値である。同様に、G、Bについても、成
分値の抽出をおこなう。G、Bについても、それぞれ6
個ずつ抽出したとすると、前記したように、その組み合
わせにより216色表現できることになる。216色
は、RGB三次元空間において、216個の点で表現さ
れる。そして、RGBの成分値の各組み合わせを識別す
る番号をパレット番号と呼び、画像データの色は、各画
素ごとにパレット番号によって表される。また、パレッ
ト番号とRGB成分値の組み合わせとを対応付けた表を
パレットテーブルという。
Considering the above characteristics, for example,
As the component value of R, (0,110,160,200,2
It is assumed that six (30, 255) are extracted. In other words, the six extracted component values are such that the difference in brightness represented by the adjacent component values is visually the same regardless of the difference. Similarly, the component values of G and B are also extracted. 6 for G and B
If each of them is extracted, as described above, 216 colors can be expressed by the combination. The 216 colors are represented by 216 points in the RGB three-dimensional space. A number for identifying each combination of RGB component values is called a palette number, and the color of image data is represented by a palette number for each pixel. A table that associates the palette numbers with the combinations of RGB component values is called a palette table.

【0006】ところで、画像処理の際、表示するある画
像に他の画像が重なった部分を、ブレンド率に応じた、
その二つの画像の中間の色で表示することがあり、その
場合、その中間色を決定する必要が生じる。なお、ブレ
ンド率とは、中間色を決定する際の、両画像データの寄
与率をいう。上記したようなパレットテーブルによって
色の管理を行う、従来の中間色決定装置における中間色
決定手順を以下に説明する。
By the way, at the time of image processing, a portion where a certain image to be displayed is overlapped with another image is determined according to the blend ratio.
The two images may be displayed in an intermediate color, in which case it becomes necessary to determine the intermediate color. The blending rate means the contribution rate of both image data when determining the intermediate color. A procedure for determining an intermediate color in the conventional intermediate color determination apparatus that manages colors by using the palette table as described above will be described below.

【0007】先ず、重なり合う画像の内、一方の画像の
ある画素(第1画素)と、他方の画像の対応する第2画
素のパレット番号PN1、PN2を取得する。次に、パ
レットテーブルを参照して、PN1とPN2に対応し
た、RGB値(R1,G1,B1),(R2,G2,B
2)を求める。求めた、二つのRGB値から、次式に基
づき、そのブレンド値であるRGB値(RM,GM,B
M)を算出する。
First, among the overlapping images, a palette number PN1 and PN2 of a pixel (first pixel) of one image and a corresponding second pixel of the other image are acquired. Next, referring to the palette table, the RGB values (R1, G1, B1), (R2, G2, B) corresponding to PN1 and PN2.
Find 2). From the obtained two RGB values, the RGB value (RM, GM, B
Calculate M).

【0008】(RM,GM,BM)=(BR×R1+
(1−BR)×R2,BR×G1+(1−BR)×G
2,BR×B1+(1−BR)×B2) なお、BRは0以上1以下で表されるブレンド率であ
る。次に、算出したブレンド値であるRGB値(RM,
GM,BM)の各成分毎に、視覚特性に基づき抽出した
6個の成分値の各値との差をとり、その差の最も小さい
値を中間色の成分値として決定する。最後に、パレット
テーブルを参照し、決定されたRGB値の組合わせに対
応したパレット番号を中間色のパレット番号とする。
(RM, GM, BM) = (BR × R1 +
(1-BR) × R2, BR × G1 + (1-BR) × G
2, BR × B1 + (1-BR) × B2) BR is a blend ratio represented by 0 or more and 1 or less. Next, the calculated RGB values (RM, RM,
For each of the components (GM, BM), the difference from each of the six component values extracted based on the visual characteristics is calculated, and the smallest difference is determined as the component value of the intermediate color. Finally, referring to the palette table, the palette number corresponding to the determined combination of RGB values is set as the palette number of the intermediate color.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記し
た従来の中間色決定装置では、求められた中間色が視覚
上から大きくずれていることがある。簡単のため、RG
B値のR成分だけをとりあげて説明すると、例えば、R
1が0、R2が230、ブレンド率が0.5だったとす
ると、ブレンド値のR成分値として、RM=0.5×0
+(1−0.5)×230=115が算出される。そし
て、算出値115と視覚特性に基づき抽出した6個の成
分値(0,110,160,200,230,255)
の各値の差をとり、その差が最も小さい110が中間色
のR成分値として決定される。ところが、成分値0と2
30のブレンド率0.5、即ち丁度真ん中に位置する中
間色成分値は、視覚特性上からは、160が適切なこと
が判る。なぜなら、視覚特性に基づき抽出した6個の成
分値(0,110,160,200,230,255)
の内、160が、0と230から視覚特性上、等距離に
あるからである。したがって、従来の中間色決定装置で
求められる中間色の成分値は、適切な値ではなく、した
がってその値をもとに決定されるパレット番号で表され
る色は、視覚上から大きくずれていることがある。
However, in the above-described conventional intermediate color determining device, the obtained intermediate color may be largely deviated from the visual sense. RG for simplicity
Explaining only the R component of the B value, for example, R
If 1 is 0, R2 is 230, and the blend ratio is 0.5, the R component value of the blend value is RM = 0.5 × 0.
+ (1-0.5) * 230 = 115 is calculated. Then, the six component values (0, 110, 160, 200, 230, 255) extracted based on the calculated value 115 and the visual characteristics
The difference between the respective values is taken, and 110 having the smallest difference is determined as the R component value of the intermediate color. However, the component values 0 and 2
From the visual characteristics, it can be seen that 160 is suitable for the blend ratio of 30 of 0.5, that is, the intermediate color component value located just in the middle. Because 6 component values extracted based on visual characteristics (0, 110, 160, 200, 230, 255)
Of these, 160 is equidistant from 0 and 230 in terms of visual characteristics. Therefore, the component value of the intermediate color obtained by the conventional intermediate color determination device is not an appropriate value, and therefore the color represented by the palette number determined based on that value may be significantly deviated from the visual sense. is there.

【0010】また、従来の中間色決定装置では、算出し
たブレンド値であるRGB値(RM,GM,BM)の各
成分毎に、視覚特性に基づき抽出した成分値の各値との
差をとり、その差の最も小さい値を中間色の成分値とし
て決定するといった演算処理を行うため、中間色の決定
に時間がかかるといったことがある。本発明は、上記課
題に鑑み、人の視覚特性上、最も適切な中間色を高速で
決定することができる中間色決定装置を提供することを
目的とする。
Further, in the conventional intermediate color determination device, for each component of the calculated RGB value (RM, GM, BM), the difference from each component value extracted based on the visual characteristics is calculated, Since the calculation process of determining the value with the smallest difference as the component value of the intermediate color is performed, it may take time to determine the intermediate color. The present invention has been made in view of the above problems, and an object thereof is to provide an intermediate color determination device capable of determining the most appropriate intermediate color at high speed in view of human visual characteristics.

【0011】[0011]

【課題を解決するための手段】この課題を解決するため
に本発明は、色成分値の組み合わせで表される二つのカ
ラー画素を合成して一画素として表現するために、二つ
の画素の色成分値から中間色を決定する中間色決定装置
において、画素の前記各色成分値を、人の視覚特性上均
等に割り付けられたID値に変換した上で、所定の比率
で合成し、合成されたID値を前記色成分値に変換して
中間色を決定するように構成したものである。
In order to solve this problem, the present invention combines two color pixels represented by a combination of color component values and represents them as one pixel. In an intermediate color determination device for determining an intermediate color from component values, each color component value of a pixel is converted into an ID value that is evenly assigned in terms of human visual characteristics, and then combined at a predetermined ratio, and the combined ID value Is converted into the color component value to determine an intermediate color.

【0012】これにより、人の視覚特性上、最も適切な
中間色を高速で決定することができる。
Thus, the most suitable intermediate color can be determined at high speed in view of human visual characteristics.

【0013】[0013]

【発明の実施の形態】請求項1記載の発明は、色成分値
の組み合わせで表される二つのカラー画素を合成して一
画素として表現するために、二つの画素の色成分値から
中間色を決定する中間色決定装置であって、画素の前記
各色成分値を、人の視覚特性上均等に割り付けられたI
D値に変換する第1の変換手段と、第1の変換手段によ
り変換された二つのカラー画素のID値を所定の比率で
合成する合成手段と、合成されたID値を前記色成分値
に変換する第2の変換手段とを備えているものである。
According to a first aspect of the present invention, in order to synthesize two color pixels represented by a combination of color component values and express them as one pixel, an intermediate color is calculated from the color component values of the two pixels. An intermediate color determination device for determining, wherein each of the color component values of pixels is evenly assigned according to human visual characteristics.
First conversion means for converting into a D value, combining means for combining the ID values of the two color pixels converted by the first conversion means at a predetermined ratio, and the combined ID value into the color component value. And a second converting means for converting.

【0014】請求項1記載の発明によれば、色成分値の
組み合わせで表される二つのカラー画素の各色成分値
が、人の視覚特性上均等に割り付けられたID値に変換
され、変換されたID値が所定の比率で合成され、合成
されたID値が色成分値に変換される。請求項2記載の
発明は、色成分値の組み合わせを特定するパレット番号
で表される二つのカラー画素を合成して一画素として表
現するために、二つの画素の色成分値から中間色を決定
する中間色決定装置であって、画素の前記パレット番号
を、人の視覚特性上均等に割り付けられたID値の組み
合わせに変換する第1の変換手段と、第1の変換手段に
より変換された二つのカラー画素のID値を所定の比率
で合成する合成手段と、合成されたID値の組み合わせ
をパレット番号に変換する第2の変換手段とを備えてい
るものである。
According to the first aspect of the present invention, the color component values of the two color pixels represented by the combination of the color component values are converted into ID values that are evenly assigned in terms of human visual characteristics, and are converted. The combined ID values are combined at a predetermined ratio, and the combined ID values are converted into color component values. According to the second aspect of the present invention, the intermediate color is determined from the color component values of the two pixels in order to combine the two color pixels represented by the palette number that specifies the combination of the color component values and express them as one pixel. An intermediate color determination device, comprising: first conversion means for converting the palette number of a pixel into a combination of ID values that are evenly assigned according to human visual characteristics; and two colors converted by the first conversion means. It is provided with a synthesizing means for synthesizing the pixel ID values at a predetermined ratio, and a second converting means for converting the combination of the synthesized ID values into a palette number.

【0015】請求項2記載の発明によれば、色成分値の
組み合わせを特定するパレット番号で表される二つのカ
ラー画素のパレット番号が、人の視覚特性上均等に割り
付けられたID値の組み合わせに変換され、変換された
ID値が所定の比率で合成され、合成されたID値の組
み合わせがパレット番号に変換される。請求項3記載の
発明は、請求項2記載の発明において、中間色決定装置
は、さらに、二つのカラー画素のパレット番号が一致す
るか否かを判定するパレット番号一致判定手段と、前記
パレット番号一致判定手段が一致すると判定したとき
に、第1の変換手段と合成手段と第2の変換手段とを起
動させることなく、一致したパレット番号をそのまま出
力するパレット番号通過出力手段とを備えているもので
ある。
According to the second aspect of the invention, the palette numbers of the two color pixels represented by the palette numbers that specify the combination of the color component values are the combinations of ID values that are evenly assigned to human visual characteristics. Is converted into a palette number, and the converted ID values are combined at a predetermined ratio, and the combination of the combined ID values is converted into a palette number. According to a third aspect of the present invention, in the second aspect of the present invention, the intermediate color determination device further includes palette number matching determination means for determining whether or not the palette numbers of the two color pixels match, and the palette number matching. A pallet number passage output means for outputting the matched pallet number as it is without activating the first converting means, the synthesizing means, and the second converting means when the determining means determines that they match. Is.

【0016】請求項3記載の発明によれば、二つのカラ
ー画素のパレット番号が一致する場合には、第1の変換
手段と合成手段と第2の変換手段とが起動されることな
く、一致したパレット番号がそのまま出力される。請求
項4記載の発明は、請求項2又は3記載の発明におい
て、第1の変換手段は、パレット番号と色成分値の組み
合わせとを対応付けた第1の対応テーブルと、色成分値
とID値とを対応付けた第2の対応テーブルと、第1の
対応テーブルを参照し、パレット番号を色成分値の組み
合わせに置換した後、第2の対応テーブルを参照して、
各色成分値をID値に置換する置換部からなり、第2の
変換手段は、前記第2の対応テーブルを参照し、ID値
を色成分値に変換した後、前記第1の対応テーブルを参
照して、色成分値の組み合わせをパレット番号に置換す
る置換部からなることを特徴とするものである。
According to the third aspect of the invention, when the palette numbers of the two color pixels match, the first converting means, the synthesizing means, and the second converting means do not start up and do not match. The pallet number is output as is. The invention according to claim 4 is the invention according to claim 2 or 3, wherein the first conversion means associates a palette number with a combination of color component values, a first correspondence table, a color component value and an ID. The second correspondence table in which the values are associated with each other and the first correspondence table are referred to, the palette number is replaced with the combination of the color component values, and then the second correspondence table is referred to,
The second conversion unit refers to the second correspondence table, converts the ID value into the color component value, and then refers to the first correspondence table. In addition, it is characterized by comprising a replacement unit for replacing a combination of color component values with a palette number.

【0017】請求項4記載の発明によれば、パレット番
号と色成分値の組み合わせとを対応付けた第1の対応テ
ーブルが参照されて、パレット番号が色成分値の組み合
わせに置換され、色成分値とID値とを対応付けた第2
の対応テーブルが参照されて、各色成分値がID値に変
換され、前記第2の対応テーブルが参照されて、ID値
が色成分値に変換され、前記第1の対応テーブルが参照
されて、色成分値の組み合わせがパレット番号に置換さ
れる。
According to the fourth aspect of the invention, the first correspondence table in which the palette number and the combination of the color component values are associated with each other is referred to, the palette number is replaced with the combination of the color component values, and the color component is replaced. The second that associates the value with the ID value
Of each color component value is converted to an ID value, the second correspondence table is referenced, the ID value is converted to a color component value, and the first correspondence table is referenced. The combination of color component values is replaced with the palette number.

【0018】請求項5記載の発明は、請求項2又は3記
載の発明において、第1の変換手段は、ID値の組み合
わせとパレット番号とを対応付けた対応テーブルと、前
記対応テーブルを参照して、パレット番号をID値の組
み合わせに置換する置換部からなり、第2の変換手段
は、前記対応テーブルを参照して、ID値の組み合わせ
をパレット番号に置換する置換部からなることを特徴と
するものである。
According to a fifth aspect of the present invention, in the invention according to the second or third aspect, the first conversion means refers to a correspondence table in which a combination of ID values is associated with a palette number, and the correspondence table. And a pallet number is replaced with a combination of ID values, and the second conversion means is composed of a replacement unit that replaces the combination of ID values with a pallet number by referring to the correspondence table. To do.

【0019】請求項5記載の発明によれば、ID値の組
み合わせとパレット番号とを対応付けた対応テーブルが
参照されて、パレット番号がID値の組み合わせに置換
され、前記対応テーブルが参照されて、ID値の組み合
わせがパレット番号に置換される。請求項6記載の発明
は、請求項4記載の発明において、第1の変換手段は、
さらに、となり合うID値のちょうど中央位置に対応す
る色成分値であるしきい値を、ID値と関連付けて保持
した第3の対応テーブルを備え、第1のテーブルを参照
して置換した色成分値の組み合わせの中に、第2の対応
テーブルには無い色成分値が含まれているときに、当該
色成分値を、第3の対応テーブルを参照して、ID値に
置換することを特徴とするものである。
According to the fifth aspect of the present invention, the correspondence table in which the combination of ID values and the pallet number are associated with each other is referred to, the pallet number is replaced with the combination of ID values, and the correspondence table is referred to. , ID value combinations are replaced with pallet numbers. In the invention according to claim 6, in the invention according to claim 4, the first conversion means is:
Further, a threshold value, which is a color component value corresponding to the center position of the adjacent ID values, is held in association with the ID value, and a third correspondence table is provided, and the color components replaced by referring to the first table When the combination of values includes a color component value that is not included in the second correspondence table, the color component value is replaced with the ID value by referring to the third correspondence table. It is what

【0020】請求項6記載の発明によれば、第1のテー
ブルを参照して置換した色成分値の組み合わせの中に、
第2の対応テーブルには無い色成分値が含まれている
と、となり合うID値のちょうど中央位置に対応する色
成分値であるしきい値を、ID値と関連付けて保持した
第3の対応テーブルが参照されて、前記第2の対応テー
ブルには無い色成分値がID値に置換される。
According to the invention of claim 6, in the combination of the color component values replaced by referring to the first table,
If a color component value that is not included in the second correspondence table is included, a third correspondence that holds a threshold value that is a color component value corresponding to the center position of the adjacent ID values in association with the ID value. By referring to the table, the color component value not present in the second correspondence table is replaced with the ID value.

【0021】請求項7記載の発明は、請求項2、3、
4、5又は6記載の発明において、中間色決定装置は、
さらに、二つのカラー画素のパレット番号と当該所定の
比率と対応する変換結果とを対応づけて格納する変換結
果格納手段と、合成対象となる二つのカラー画素のパレ
ット番号と所定の比率との組み合わせが、前記変換結果
格納手段に有るか否かを判断する判断手段と、前記判断
手段が、有ると判断したときに、前記合成手段と第2の
変換手段とを起動させることなく、有ると判断された組
み合わせに対応する変換結果を出力する変換結果出力手
段とを備えているものである。
The invention according to claim 7 is the invention as defined in claims 2, 3 and
In the invention described in 4, 5, or 6, the intermediate color determination device is:
Further, a combination of a conversion result storage unit that stores a palette number of two color pixels and a conversion result corresponding to the predetermined ratio, and a palette number and a predetermined ratio of two color pixels to be combined. Is determined to be present in the conversion result storage means, and when the determination means determines that there is, it is determined to be present without activating the synthesizing means and the second converting means. And a conversion result output means for outputting a conversion result corresponding to the selected combination.

【0022】請求項7記載の発明によれば、合成対象と
なる二つのカラー画素のパレット番号と所定の比率との
組み合わせが、二つのカラー画素のパレット番号と当該
所定の比率と対応する変換結果とを対応づけて格納する
変換結果格納手段にあれば、合成手段と第2の変換手段
とが起動されることなく、対応する変換結果が出力され
る。
According to the invention described in claim 7, the combination of the palette number of the two color pixels to be combined and the predetermined ratio corresponds to the palette number of the two color pixels and the conversion result corresponding to the predetermined ratio. If the conversion result storing means for storing and are associated with each other is stored, the corresponding conversion result is output without activating the synthesizing means and the second converting means.

【0023】請求項8記載の発明は、請求項2、3、
4、5又は6記載の発明において、中間色決定装置は、
一方のカラー画素が全て同一のパレット番号で表される
二つのカラー画素の中間色を決定するものであって、さ
らに、他方のカラー画素のパレット番号と当該所定の比
率と対応する変換結果とを対応づけて格納する変換結果
格納手段と、合成対象となる他方のカラー画素のパレッ
ト番号と所定の比率との組み合わせが、前記変換結果格
納手段に有るか否かを判断する判断手段と、前記判断手
段が、有ると判断したときに、合成手段と第2の変換手
段とを起動させることなく、有ると判断された組み合わ
せに対応する変換結果を出力する変換結果出力手段とを
備えるものである。
The invention according to claim 8 is the invention according to claim 2,
In the invention described in 4, 5, or 6, the intermediate color determination device is:
One of the color pixels determines the intermediate color of two color pixels represented by the same palette number, and further associates the palette number of the other color pixel with the conversion result corresponding to the predetermined ratio. A conversion result storing means for additionally storing, a judging means for judging whether or not a combination of the palette number of the other color pixel to be combined and a predetermined ratio exists in the conversion result storing means, and the judging means. However, when it is determined that there is, a conversion result output unit that outputs the conversion result corresponding to the combination that is determined to exist without activating the synthesizing unit and the second conversion unit.

【0024】請求項8記載の発明によれば、全て同一の
パレット番号で表される一方のカラー画素と合成される
他方のカラー画素のパレット番号と所定の比率との組み
合わせが、他方のカラー画素のパレット番号と当該所定
の比率と対応する変換結果とを対応づけて格納する変換
結果格納手段にあれば、合成手段と第2の変換手段とが
起動されることなく、対応する変換結果が出力される。
According to the eighth aspect of the present invention, the combination of the palette number and the predetermined ratio of one color pixel represented by the same palette number and the other color pixel combined is the other color pixel. If there is a conversion result storing means that stores the pallet number and the conversion result corresponding to the predetermined ratio in association with each other, the corresponding conversion result is output without activating the synthesizing means and the second converting means. To be done.

【0025】請求項9記載の発明は、請求項4、5、
6、7又は8記載の発明において、中間色決定装置は、
組み合わせに用いられている色成分値が異なる複数種の
画素を取り扱うものであって、各対応テーブルを前記画
素の種類に応じて複数備え、前記画素の種類に応じて使
用するテーブルを切り替えるテーブル切り替え手段を備
えているものである。
The invention according to claim 9 is the invention according to claim 4, 5,
In the invention described in 6, 7, or 8, the intermediate color determination device is
It handles a plurality of types of pixels having different color component values used in a combination, and includes a plurality of corresponding tables according to the type of the pixel, and switches tables to be used according to the type of the pixel. It is equipped with means.

【0026】請求項9記載の発明によれば、合成対象の
画素の種類に応じて、各対応テーブルが切り替えられ
る。以下、本発明の実施の形態について、図1から図1
1を用いて説明する。 (実施の形態1)図1は、本発明の実施の形態1に係る
中間色決定装置を備えた画像合成装置の構成の一部を示
すブロック図である。本図に示すように、中間色決定装
置は、パレット番号・均等空間ID対応テーブル10、
背景画像データ画素選択部11、前景画像データ画素選
択部12、背景画素パレット番号取得部13、前景画素
パレット番号・階調値取得部14、ブレンド率決定部1
5、背景画素パレット番号−均等空間ID変換部16、
前景画素パレット番号−均等空間ID変換部17、ブレ
ンド部18、均等空間ID−パレット番号変換部19、
キャッシュ保持部20及びキャッシュ判断部21を備え
ており、背景画像データ格納部100、前景画像データ
格納部200及び画像データ書込部300に接続されて
いる。
According to the ninth aspect of the present invention, each correspondence table is switched according to the type of pixel to be combined. Hereinafter, the embodiment of the present invention will be described with reference to FIGS.
1 will be described. (Embodiment 1) FIG. 1 is a block diagram showing a part of the configuration of an image synthesizing apparatus provided with an intermediate color determining apparatus according to Embodiment 1 of the present invention. As shown in the figure, the intermediate color determination device includes a palette number / uniform space ID correspondence table 10,
Background image data pixel selection unit 11, foreground image data pixel selection unit 12, background pixel palette number acquisition unit 13, foreground pixel palette number / gradation value acquisition unit 14, blend ratio determination unit 1
5, background pixel palette number-uniform space ID conversion unit 16,
Foreground pixel palette number-uniform space ID conversion unit 17, blend unit 18, uniform space ID-pallet number conversion unit 19,
The cache holding unit 20 and the cache determination unit 21 are provided and are connected to the background image data storage unit 100, the foreground image data storage unit 200, and the image data writing unit 300.

【0027】パレット番号・均等空間ID対応テーブル
10は、均等空間ID・RGB成分値対応表101とカ
ラーパレットテーブル102とから構成されている。均
等空間ID・RGB成分値対応表101は、三原色を構
成するR(赤)、G(緑)、B(青)の各成分毎に、8
ビット(256段階)で表される輝度から、図2に示す
人の視覚特性を考慮して選択した輝度(成分値)と均等
空間IDとを対応付けた表である。図2の縦軸はR、
G、Bの成分値を表し、輝度を256段階に等分した値
をとる(0が最も輝度が低く(暗い)、255が最も輝
度が高い(明るい))。横軸は、均等空間IDを表す。
均等空間IDとは、人が感じる輝度の変化を均等(リニ
ア)に表現した値である。つまり、人は、輝度が高くな
るほどその変化を感じやすく、例えば、成分値0の輝度
から成分値100の輝度に変化する際の変化量よりも成
分値100の輝度から成分値200の輝度に変化する際
の変化量の方が多いと感じる傾向があるため、横軸は、
その視覚特性に基づいて、輝度の変化が、どの範囲をと
っても、同じようになるように目盛り付けされている。
The palette number / uniform space ID correspondence table 10 is composed of a uniform space ID / RGB component value correspondence table 101 and a color palette table 102. The uniform space ID / RGB component value correspondence table 101 includes 8 for each of the R (red), G (green), and B (blue) components that make up the three primary colors.
3 is a table in which the luminance (component value) selected from the luminance represented by bits (256 levels) in consideration of the human visual characteristics shown in FIG. 2 and the uniform space ID are associated with each other. The vertical axis of FIG. 2 is R,
It represents the component values of G and B, and takes a value obtained by equally dividing the brightness into 256 levels (0 is the lowest brightness (dark) and 255 is the highest brightness (bright)). The horizontal axis represents the uniform space ID.
The uniform space ID is a value that expresses a change in brightness felt by a person in a uniform (linear) manner. That is, a person is more likely to feel the change as the brightness becomes higher, and for example, the brightness of the component value 100 changes to the brightness of the component value 200 than the change amount when the brightness of the component value 0 changes to the brightness of the component value 100. There is a tendency to feel that the amount of change when doing is larger, so the horizontal axis is
Based on the visual characteristics, the change in luminance is calibrated to be the same in any range.

【0028】上記した視覚特性を考慮して、Rの成分値
を6個抽出する場合、縦軸の成分値255に対応する横
軸の位置を5とし、横軸の原点0から5までの間を5等
分し、等分した点を原点から1、2、3、4とする。そ
して、横軸の1〜4に対応する縦軸の成分値をよみと
る。ここでは、抽出される6個の値は、0、110、1
60、200、230、255となる。均等空間ID・
RGB成分値対応表は、抽出した6個の値0〜255と
横軸の値(均等空間ID)とを対応付けて格納する。
G、B成分についても、同様な方法により、成分値の抽
出を行い、均等空間IDと対応付けて格納する。格納結
果である均等空間ID・RGB成分値対応表を図3に示
す。ここで、Gについては、Rと同様、成分値を6個抽
出したが、Bについては、5個である。これは、一般的
に人は、Bの変化に対しては、R、Gの変化に対するの
と比較して鈍感であるといった性質を有しているので、
Bについては、R、G程細かく、その成分値を抽出する
必要がないからである。しかし、対象となるディスプレ
イ装置によっては、この人間の性質を補足するものもあ
るので、RGB成分値の抽出個数の組み合わせは、上記
した(6個,6個,5個)に限られず、例えば、(5
個,5個,5個)や(4個,6個,5個)といった組み
合わせになることもあり得る。なお、図2の特性曲線
は、ディスプレイの種類に依存して決まり、その特性値
は、実験的に求められる。
When six component values of R are extracted in consideration of the above visual characteristics, the position of the horizontal axis corresponding to the component value 255 of the vertical axis is 5, and the origin of the horizontal axis is between 0 and 5. Is divided into 5 and the equally divided points are 1, 2, 3, and 4 from the origin. Then, the component values on the vertical axis corresponding to 1 to 4 on the horizontal axis are read. Here, the six extracted values are 0, 110, 1
60, 200, 230, 255. Uniform space ID
The RGB component value correspondence table stores the six extracted values 0 to 255 and the value on the horizontal axis (uniform space ID) in association with each other.
With respect to the G and B components, the component value is extracted by the same method and stored in association with the uniform space ID. FIG. 3 shows a uniform space ID / RGB component value correspondence table as a storage result. Here, six component values are extracted for G as in R, but five for B. This is because humans generally have a property that they are less sensitive to changes in B than changes to R and G.
This is because B is as fine as R and G, and it is not necessary to extract its component values. However, depending on the target display device, there are some that complement this human nature, so the combination of the numbers of extracted RGB component values is not limited to the above (6, 6, 5), and for example, (5
(5 pieces, 5 pieces) or (4 pieces, 6 pieces, 5 pieces) may be combined. The characteristic curve of FIG. 2 is determined depending on the type of display, and the characteristic value is experimentally obtained.

【0029】カラーパレットテーブル102は、図4に
示すように、上記したように抽出されたR、G、B各成
分値から各々1個づつ取り出した組み合わせを、その組
み合わせの識別子となるパレット番号PNと対応づけて
格納している。ここでは、R、G、B成分値の組み合わ
せ数は、180(=6×6×5)個になるので、パレッ
ト番号(0〜179)により180色を表現することが
できる。
As shown in FIG. 4, the color palette table 102 has a palette number PN which is an identifier of each combination of the R, G, and B component values extracted as described above. It is stored in association with. Here, since the number of combinations of R, G, and B component values is 180 (= 6 × 6 × 5), 180 colors can be represented by the palette number (0 to 179).

【0030】背景画像データ格納部100は、表示の
際、背景となる画像のデータを格納しており、各画素に
対応して、その色を表すパレット番号BPNを格納して
いる。前景画像データ格納部200は、前記背景画像に
重ねて表示される画像のデータを格納しており、各画素
に対応して、その色を表すパレット番号FPNと階調値
GRとを格納している。ここで、階調値とは、前景画像
の濃淡を表す値であり、0〜15の16段階で表され
る。階調値が大きくなるほど、表示の際の前景画像の色
の強さが強くなる(階調値0では、背景画像の色のみ
で、階調値15では、前景画像の色のみで表示され
る)。前景画像の一例を、図5に示す。本図(a)に示
されているのは、前景画像として表示される文字「要」
であり、本図(b)に示されているのは、(a)の点線
で囲んだ箇所を拡大表示したものであり、本図(b)に
示す、ます目一つが一画素を表す。本図(c)は、画像
「要」の前景画像データ格納部での格納態様を示した図
である。
The background image data storage unit 100 stores the data of the background image at the time of display, and stores the palette number BPN representing the color corresponding to each pixel. The foreground image data storage unit 200 stores the data of the image to be displayed superimposed on the background image, and stores the palette number FPN representing the color and the gradation value GR corresponding to each pixel. There is. Here, the gradation value is a value that represents the shade of the foreground image, and is expressed in 16 levels from 0 to 15. The higher the gradation value, the stronger the color intensity of the foreground image at the time of display (at gradation value 0, only the background image color is displayed, and at gradation value 15, only the foreground image color is displayed. ). An example of the foreground image is shown in FIG. In the figure (a), the character "necessary" displayed as the foreground image is displayed.
In the figure (b), a portion surrounded by a dotted line in the figure (a) is enlarged and displayed, and each square shown in the figure (b) represents one pixel. FIG. 7C is a diagram showing a storage mode of the image “necessary” in the foreground image data storage unit.

【0031】背景画像データ画素選択部11は、背景画
像データ格納部100から、処理対象画素を所定の順番
に選択し、選択した画素位置を前景画像データ画素選択
部12及び画像データ書込部300に出力し、背景画像
データ格納部100の全ての画素の選択が終了したか否
かを判断する。所定の順番としては、走査線毎に左から
右に選択する等がある。
The background image data pixel selection unit 11 selects processing target pixels from the background image data storage unit 100 in a predetermined order, and selects the selected pixel position from the foreground image data pixel selection unit 12 and the image data writing unit 300. , And determines whether or not selection of all pixels in the background image data storage unit 100 has been completed. The predetermined order includes selection from left to right for each scanning line.

【0032】前景画像データ画素選択部12は、前景画
像データ格納部200から、背景画像データ画素選択部
11が選択した画素位置に対応する画素を選択する。背
景画素パレット番号取得部13は、背景画像データ格納
部100から、背景画像データ画素選択部11が選択し
た画素のパレット番号BPNを読み出し、読み出したパ
レット番号BPNをキャッシュ判断部21に出力する。
The foreground image data pixel selection unit 12 selects from the foreground image data storage unit 200 a pixel corresponding to the pixel position selected by the background image data pixel selection unit 11. The background pixel palette number acquisition unit 13 reads the palette number BPN of the pixel selected by the background image data pixel selection unit 11 from the background image data storage unit 100, and outputs the read palette number BPN to the cache determination unit 21.

【0033】前景画素パレット番号・階調値取得部14
は、前景画像データ格納部200から、前景画像データ
選択部12が選択した画素のパレット番号FPNと階調
値GRとを読み出し、読み出したパレット番号FPNと
階調値GRとをキャッシュ判断部21に、階調値GRを
ブレンド率決定部15にそれぞれ出力する。ブレンド率
決定部15は、前景画素パレット番号・階調値取得部1
4から出力される、階調値GRから、ブレンド率BRを
計算式BR=GR/15に基づいて算出し、算出結果を
ブレンド部18に出力する。例えば、階調値GR=7の
ときのブレンド率BRは、BR=7/15=0.47と
なる。
Foreground pixel palette number / gradation value acquisition unit 14
Reads out the palette number FPN and gradation value GR of the pixel selected by the foreground image data selection unit 12 from the foreground image data storage unit 200, and the read palette number FPN and gradation value GR to the cache determination unit 21. , And the gradation value GR are output to the blend rate determination unit 15, respectively. The blend ratio determination unit 15 uses the foreground pixel palette number / gradation value acquisition unit 1
From the gradation value GR output from No. 4, the blending ratio BR is calculated based on the calculation formula BR = GR / 15, and the calculation result is output to the blending unit 18. For example, the blend ratio BR when the gradation value GR = 7 is BR = 7/15 = 0.47.

【0034】背景画素パレット番号−均等空間ID変換
部16は、パレット番号・均等空間ID対応テーブル1
0を参照し、背景画素パレット番号取得部13が取得し
たパレット番号BPNを、均等空間ID値の組み合わせ
(BIDR,BIDG,BIDB)に変換し、変換結果
をブレンド部18に出力する。例えば、取得したパレッ
ト番号が37だとすると、先ず、図4に示すカラーパレ
ットテーブル102を参照し、対応するRGB成分値
(230,255,220)を得る。次に、図3に示す
均等空間ID−RGB成分値対応表101を参照し、各
成分値を、対応する均等空間ID値に置き換える。ここ
で、均等空間ID−RGB成分値対応表101から、R
成分値230に対する均等空間ID値は4であり、G成
分値255に対する均等空間ID値は5であり、B成分
値220に対する均等空間ID値は3であるので、変換
結果は、(4,5,3)となる。
The background pixel palette number-uniform space ID conversion unit 16 uses the palette number / uniform space ID correspondence table 1.
With reference to 0, the palette number BPN acquired by the background pixel palette number acquisition unit 13 is converted into a combination of uniform space ID values (BIDR, BIDG, BIDB), and the conversion result is output to the blending unit 18. For example, if the acquired palette number is 37, first, referring to the color palette table 102 shown in FIG. 4, the corresponding RGB component values (230, 255, 220) are obtained. Next, referring to the uniform space ID-RGB component value correspondence table 101 shown in FIG. 3, each component value is replaced with the corresponding uniform space ID value. Here, from the uniform space ID-RGB component value correspondence table 101, R
The uniform space ID value for the component value 230 is 4, the uniform space ID value for the G component value 255 is 5, and the uniform space ID value for the B component value 220 is 3, so the conversion result is (4,5 , 3).

【0035】前景画素パレット番号−均等空間ID変換
部17は、背景画素パレット番号−均等空間ID変換部
16と同様な手順によって、前景画素パレット番号・階
調値取得部14が取得したパレット番号FPNを、均等
空間IDの組み合わせ(FIDR,FIDG,FID
B)に変換し、変換結果をブレンド部18に出力する。
ブレンド部18は、キャッシュ判断部21においてミス
ヒットと判断されたとき、背景画素パレット番号−均等
空間ID変換部16及び前景画素パレット番号−均等空
間ID変換部17から出力される、両均等空間ID値の
組み合わせを、各色成分ごとに、次式に基づいて合成
し、合成結果(IDR,IDG,IDB)を均等空間I
D−パレット番号変換部19に出力する。
The foreground pixel palette number-uniform space ID conversion section 17 follows the same procedure as the background pixel palette number-uniform space ID conversion section 16, and the palette number FPN acquired by the foreground pixel palette number / gradation value acquisition section 14. Is a combination of uniform space IDs (FIDR, FIDG, FID
B), and the conversion result is output to the blend unit 18.
When the cache determination unit 21 determines that there is a mishit, the blending unit 18 outputs both the uniform space IDs output from the background pixel palette number-uniform space ID conversion unit 16 and the foreground pixel palette number-uniform space ID conversion unit 17. A combination of values is combined for each color component based on the following formula, and the combined result (IDR, IDG, IDB) is calculated in the uniform space I.
It is output to the D-pallet number conversion unit 19.

【0036】 ID=FID×BR+BID×(1−BR) なお、上式での計算結果生じる小数点以下の値は、小数
第1位で四捨五入する。例えば、(BIDR,BID
G,BIDB)=(4,0,1),(FIDR,FID
G,FIDB)=(2,5,1),BR=0,47とす
ると、IDR=2×0,47+4×(1−0.47)=
3.06=3、同様にして、IDG=2、IDB=1と
なり、合成結果は、(3,2,1)で表される。
ID = FID × BR + BID × (1−BR) The value after the decimal point generated as a result of the calculation in the above equation is rounded to one decimal place. For example, (BIDR, BID
G, BIDB) = (4, 0, 1), (FIDR, FID
G, FIDB) = (2,5,1) and BR = 0,47, IDR = 2 × 0,47 + 4 × (1-0.47) =
3.06 = 3, similarly, IDG = 2 and IDB = 1, and the synthesis result is represented by (3,2,1).

【0037】均等空間ID−パレット番号変換部19
は、パレット番号・均等空間ID対応テーブル10を参
照し、ブレンド部18から出力される合成結果(ID
R,IDG,IDB)を、パレット番号PNに変換し、
変換結果をキャッシュ判断部21および画像データ書込
部300に出力する。例えば、合成結果が(2,5,
4)とすると、先ず、均等空間ID−RGB成分値対応
表101を参照し、均等空間ID値の組み合わせからな
る合成結果をRGB成分値の組み合わせに変換する。こ
こでは、均等空間ID値2に対するRの成分値は16
0、均等空間ID値5に対するGの成分値は255、均
等空間ID値4に対するRの成分値は255なので、変
換結果は(160,255,255)になる。次に、こ
の変換結果から、カラーパレット102を参照して、対
応するパレット番号PNを得る。ここでは、PN=3と
なる。
Uniform space ID-pallet number conversion unit 19
Refers to the palette number / uniform space ID correspondence table 10, and outputs the synthesis result (ID
R, IDG, IDB) to pallet number PN,
The conversion result is output to the cache determination unit 21 and the image data writing unit 300. For example, the synthesis result is (2, 5,
4), first, referring to the uniform space ID-RGB component value correspondence table 101, the combination result of the combination of the uniform space ID values is converted into the combination of the RGB component values. Here, the component value of R for the uniform space ID value 2 is 16
0, the G component value for the uniform space ID value 5 is 255, and the R component value for the uniform space ID value 4 is 255, so the conversion result is (160, 255, 255). Next, the color palette 102 is referenced from the conversion result to obtain the corresponding palette number PN. Here, PN = 3.

【0038】キャッシュ保持部20は、図6に示すよう
に、背景画素パレット番号保持領域201、前景画素パ
レット番号FPN保持領域202、階調値GR保持領域
203及び合成結果パレット番号PN保持領域204を
有する。キャッシュ判断部21は、背景画素パレット番
号取得部13から出力されるパレット番号BPNと前景
画素パレット番号・階調値取得部14から出力されるパ
レット番号FPNおよび階調値GRとからなる組み合わ
せと同じ組み合わせがキャッシュ保持部20に有るか否
か(ヒットかミスヒットか)を判断し、ヒットしたとき
は、その組み合わせに対応する合成結果パレット番号P
Nを画像データ書込部300に出力する。ミスヒットし
たときは、背景画素パレット番号取得部13から出力さ
れるパレット番号BPN、前景画素パレット番号・階調
値取得部14から出力されるパレット番号FPNと階調
値GR及び均等空間ID−パレット番号変換部19から
出力される合成結果パレット番号PNをキャッシュ保持
部20に書き込む。キャッシュ保持部20への書込は、
いわゆるリング状に行う。即ち、図6に示すキャッシュ
保持部20の行番号1の保持領域から順に書き込んで行
き、行番号10の保持領域まで書き込むと行番号1の保
持領域に戻り、上書きで書き込んで行く。
As shown in FIG. 6, the cache holding unit 20 includes a background pixel palette number holding area 201, a foreground pixel palette number FPN holding area 202, a gradation value GR holding area 203, and a combination result palette number PN holding area 204. Have. The cache determination unit 21 is the same as the combination of the palette number BPN output from the background pixel palette number acquisition unit 13 and the palette number FPN and gradation value GR output from the foreground pixel palette number / gradation value acquisition unit 14. Whether or not there is a combination in the cache holding unit 20 (whether it is a hit or a mishit) is judged, and when it is hit, the combination result palette number P corresponding to the combination is determined.
N is output to the image data writing unit 300. When there is a mishit, the palette number BPN output from the background pixel palette number acquisition unit 13 and the palette number FPN and gradation value GR output from the foreground pixel palette number / gradation value acquisition unit 14 and the uniform space ID-pallet. The synthesis result palette number PN output from the number converting unit 19 is written in the cache holding unit 20. Writing to the cache holding unit 20
The so-called ring shape is used. That is, writing is performed in order from the holding area of the line number 1 of the cache holding unit 20 shown in FIG. 6, and when writing to the holding area of the line number 10, the writing area returns to the holding area of the line number 1 and writing is performed by overwriting.

【0039】画像データ書込部300は、均等空間ID
−パレット番号変換部19またはキャッシュ判断部21
から出力されるパレット番号PNを、背景画像データ画
素選択部11から出力される画素位置に対応する、画像
メモリの画素位置に書き込む。以上の構成からなる実施
の形態1に係る中間色決定装置の動作について、図7、
図8に示すフローチャートに基づいて説明する。
The image data writing unit 300 determines the uniform space ID.
-Palette number conversion unit 19 or cache determination unit 21
The pallet number PN output from the pixel number is written in the pixel position of the image memory corresponding to the pixel position output from the background image data pixel selection unit 11. Regarding the operation of the intermediate color determination device according to the first embodiment having the above configuration, FIG.
This will be described based on the flowchart shown in FIG.

【0040】先ず、背景画像データ画素選択部11は、
背景画像データ格納部100から、1番目の画素を選択
し、選択画素の位置を前景画像データ画素選択部12及
び画像データ書込部300に出力する(ステップS
2)、ステップS4を経て、前景画像データ画素選択部
12は、前景画像データ格納部200から、背景画像デ
ータ画素選択部11が選択した画素位置に対応する画素
を選択する(ステップS6)。
First, the background image data pixel selection unit 11
The first pixel is selected from the background image data storage unit 100, and the position of the selected pixel is output to the foreground image data pixel selection unit 12 and the image data writing unit 300 (step S
2) After step S4, the foreground image data pixel selection unit 12 selects a pixel corresponding to the pixel position selected by the background image data pixel selection unit 11 from the foreground image data storage unit 200 (step S6).

【0041】次に、背景画素パレット番号取得部13
は、背景画像データ格納部100から、選択されている
画素のパレット番号BPNを取得して、キャッシュ判断
部21へ出力し(ステップS8)、前景画素パレット番
号・階調値取得部14は、前景画像データ格納部12か
ら、選択されている画素のパレット番号FPNと階調値
GRとを取得して、パレット番号FPNと階調値GRを
キャッシュ判断部21へ、階調値GRをブレンド率決定
部15へ出力する(ステップS10)。
Next, the background pixel palette number acquisition unit 13
Acquires the palette number BPN of the selected pixel from the background image data storage unit 100 and outputs it to the cache determination unit 21 (step S8). The foreground pixel palette number / gradation value acquisition unit 14 The palette number FPN and the gradation value GR of the selected pixel are acquired from the image data storage unit 12, the palette number FPN and the gradation value GR are sent to the cache determination unit 21, and the gradation value GR is determined as the blend ratio. It is output to the unit 15 (step S10).

【0042】つづいて処理はステップS12に進み、キ
ャッシュ判断部21は、受け取ったパレット番号BPN
とFPNと階調値GRとの組み合わせが、キャッシュ保
持部20に保持されているか否かを判断し、保持されて
いる場合は、その組み合わせに対応する合成結果パレッ
ト番号PNを画像データ書込部300に出力する(ステ
ップS28)。
Subsequently, the process proceeds to step S12, where the cache judgment unit 21 receives the pallet number BPN.
It is determined whether or not the combination of the FPN and the gradation value GR is held in the cache holding unit 20, and if the combination is held, the combination result palette number PN corresponding to the combination is stored in the image data writing unit. It is output to 300 (step S28).

【0043】一方、ステップS12で、保持されていな
いと判断した場合は、ステップS14に進み、キャッシ
ュ判断部21は、受け取ったパレット番号BPN、FP
Nと階調値GRとをキャッシュ保持部20に書き込む。
次に、背景画素パレット番号−均等空間ID変換部16
は、背景画素パレット番号・階調値取得部14が取得し
たパレット番号BPNを、均等空間ID値の組み合わせ
(BIDR,BIDG,BIDB)に変換し、変換結果
をブレンド部18に出力し(ステップS16)、前景画
素パレット番号−均等空間ID変換部17は、前景画素
パレット番号・階調値取得部14が取得したパレット番
号FPNを、均等空間ID値の組み合わせ(FIDR,
FIDG,FIDB)に変換し、変換結果をブレンド部
18に出力し(ステップS18)、ブレンド率決定部1
5は、前景画素パレット番号・階調値取得部14から出
力された階調値GRから、ブレンド率BRを計算式BR
=GR/15に基づいて算出し、算出結果をブレンド部
18に出力する(ステップS20)。
On the other hand, if it is determined in step S12 that the pallet number is not held, the process proceeds to step S14, and the cache determination unit 21 receives the palette numbers BPN and FP.
N and the gradation value GR are written in the cache holding unit 20.
Next, the background pixel palette number-uniform space ID conversion unit 16
Converts the palette number BPN acquired by the background pixel palette number / gradation value acquisition unit 14 into a combination of uniform space ID values (BIDR, BIDG, BIDB) and outputs the conversion result to the blending unit 18 (step S16). ), The foreground pixel palette number-uniform space ID conversion unit 17 uses the palette number FPN acquired by the foreground pixel palette number / gradation value acquisition unit 14 as a combination of uniform space ID values (FIDR,
FIDG, FIDB) and outputs the conversion result to the blending unit 18 (step S18), and the blend ratio determining unit 1
5 is a formula BR for calculating the blend ratio BR from the gradation value GR output from the foreground pixel palette number / gradation value acquisition unit 14.
= GR / 15, and the calculation result is output to the blend unit 18 (step S20).

【0044】次に、ブレンド部10の行う合成処理(ス
テップS22)について、図8に示すフローチャートに
従って説明する。ブレンド部10は、ステップS16、
18で得た(BIDR,BIDG,BIDB)と(FI
DR,FIDG,FIDB)とを、ステップS20で得
たブレンド率BRを用い、R、G、B成分毎に、計算式
ID=FID×BR+BID×(1−BR)に基づいて
合成し(ステップS202)、合成結果(IDR,ID
G,IDB)を均等空間ID−パレット番号変換部19
へ出力する(ステップS204)。
Next, the synthesizing process (step S22) performed by the blending section 10 will be described with reference to the flowchart shown in FIG. The blending unit 10 performs step S16,
18 (BIDR, BIDG, BIDB) and (FI
DR, FIDG, FIDB) and using the blending ratio BR obtained in step S20 for each of the R, G, and B components, based on the calculation formula ID = FID × BR + BID × (1-BR) (step S202). ), Synthesis result (IDR, ID
G, IDB) is a uniform space ID-pallet number conversion unit 19
(Step S204).

【0045】ここで、図7に示すフローチャートに戻っ
て説明を続ける。均等空間ID−パレット番号変換部1
9は、パレット番号・均等空間ID対応テーブル10を
参照し、ブレンド部18から出力された合成結果(ID
R,IDG,IDB)を対応するパレット番号PNに変
換し、変換結果(パレット番号PN)を、キャッシュ判
断部21及び画像データ書込部300へ出力する(ステ
ップS24)。キャッシュ判断部21は、受け取ったパ
レット番号PNを、キャッシュ保持部20の、既に背景
画素パレット番号BPN,前景画素パレット番号FP
N,階調値GRが保持されている行の合成結果パレット
番号保持領域に書き込む(ステップS26)。
Now, returning to the flowchart shown in FIG. 7, the description will be continued. Uniform space ID-pallet number conversion unit 1
9 refers to the pallet number / uniform space ID correspondence table 10, and the synthesis result (ID
R, IDG, IDB) is converted into the corresponding palette number PN, and the conversion result (pallet number PN) is output to the cache determination unit 21 and the image data writing unit 300 (step S24). The cache determination unit 21 uses the received palette number PN as the background pixel palette number BPN and the foreground pixel palette number FP of the cache holding unit 20.
N and the gradation value GR are written in the synthesis result palette number holding area of the row held (step S26).

【0046】つづいて、処理はステップS30に進み、
画像データ書込部300は、均等空間ID−パレット番
号変換部19から受け取ったパレット番号PNを(ステ
ップS28で、キャッシュ判断部21から受け取った場
合も同様)、画像メモリ400の所定の画素に対応する
場所に格納する。所定の画素とは、ステップS2で背景
画像データ画素選択部11から出力された選択画素の位
置に対応する画素である。
Subsequently, the process proceeds to step S30,
The image data writing unit 300 corresponds the pallet number PN received from the uniform space ID-pallet number conversion unit 19 (similarly when received from the cache determination unit 21 in step S28) to a predetermined pixel in the image memory 400. Store it in a location The predetermined pixel is a pixel corresponding to the position of the selected pixel output from the background image data pixel selection unit 11 in step S2.

【0047】以上、ステップS2〜30の処理を、全て
の画素について終了するまで(ステップS4)おこな
う。次に、従来の中間色決定装置と本実施の形態1に係
る中間色決定装置とを比較するため、具体的な数値例を
挙げて説明する。例えば、選択された背景画素のパレッ
ト番号がBPN=35、前景画素のパレット番号がFP
N=37、ブレンド率決定部15で算出されたブレンド
率がBR=0.5だったとする(0〜15の16段階で
表される階調値GRをもとに計算式BR=GR/15で
算出されるブレンド率は0.5になることはないが、従
来技術との比較のため、ここでは0.5とする)。
As described above, the processes of steps S2 to 30 are repeated until all the pixels are completed (step S4). Next, in order to compare the conventional intermediate color determination device and the intermediate color determination device according to the first embodiment, a specific numerical example will be given and described. For example, the palette number of the selected background pixel is BPN = 35, and the palette number of the foreground pixel is FP.
It is assumed that N = 37 and the blend ratio calculated by the blend ratio determination unit 15 is BR = 0.5 (calculation formula BR = GR / 15 based on the gradation value GR represented by 16 levels of 0 to 15). The blend ratio calculated in step 1 does not reach 0.5, but is 0.5 here for comparison with the prior art).

【0048】ここで、図4に示すカラーパレットテーブ
ル102から、パレット番号35(BPN)に対応する
RGB成分値は(0,0,255),パレット番号37
(FPN)に対応するRGB成分値は(230,25
5,220)である。背景画素パレット番号−均等空間
ID変換部16は、パレット番号35(BPN)を均等
空間ID値の組み合わせ(0,0,4)に変換し(ステ
ップS16)、前景画素パレット番号−均等空間変換部
17は、パレット番号37(FPN)を均等空間ID値
の組み合わせ(4,5,3)に変換する(ステップS1
8)。ブレンド部18は、前記両均等空間ID値の組み
合わせをブレンド率0.5で合成する。合成結果は、
(2,3,4)となる。ここで、合成結果である均等空
間ID値の組み合わせ(2,3,4)に対応する、RG
B成分値は、図3に示す均等空間ID−RGB成分値対
応表101より、(160,200,220)である。
Here, from the color palette table 102 shown in FIG. 4, the RGB component values corresponding to the palette number 35 (BPN) are (0, 0, 255) and the palette number 37.
The RGB component values corresponding to (FPN) are (230, 25
5, 220). The background pixel palette number-uniform space ID conversion unit 16 converts the palette number 35 (BPN) into a combination of uniform space ID values (0, 0, 4) (step S16), and the foreground pixel palette number-uniform space conversion unit. 17 converts the pallet number 37 (FPN) into a combination (4, 5, 3) of uniform space ID values (step S1).
8). The blending unit 18 synthesizes the combination of both the uniform space ID values at a blend rate of 0.5. The synthesis result is
It becomes (2, 3, 4). Here, the RG corresponding to the combination (2, 3, 4) of the uniform space ID values as the synthesis result
The B component value is (160, 200, 220) from the uniform space ID-RGB component value correspondence table 101 shown in FIG.

【0049】ここで、上記した一連の処理を、従来技術
との比較のため、R成分にのみ注目してみると、RGB
成分値で0の背景色と230の前景色をブレンド率0.
5で合成した結果、RGB成分値で160の合成色が得
られたことになる。この160という値は、従来の中間
色決定装置において同条件下で得られる値110とは異
なり、図2から明らかなように、視覚特性上、RGB成
分値の0と230丁度中間の値である。即ち、人の視覚
特性上、適切な中間色が得られるのである。
Here, in order to compare the above-described series of processing with the prior art, focusing on only the R component, RGB
The blend ratio of the background color of 0 and the foreground color of 230 is 0.
As a result of composition in 5, the composite color of 160 in RGB component values is obtained. This value of 160 is different from the value 110 obtained under the same conditions in the conventional intermediate color determination device, and as is apparent from FIG. 2, it is a value between 0 and 230 just between the RGB component values due to visual characteristics. That is, an appropriate intermediate color can be obtained in view of human visual characteristics.

【0050】以上、実施の形態1に係る中間色決定装置
によれば、色が256段階の成分値の組み合わせで表さ
れる二つの画素を、一旦、均等空間ID値の組み合わせ
に変換したしたうえで、合成するので、人の視覚特性
上、最も適切な中間色が得られる。なお、本実施の形態
において、パレット番号・均等空間ID対応テーブル1
0は、均等空間ID・RGB成分値対応表101とカラ
ーパレットテーブル102とから構成したが、これに限
らず、例えば、図9に示すような、パレット番号・均等
空間ID対応表のみで構成してもよい。本パレット番号
・均等空間ID対応表は、カラーパレットテーブルにお
いて、256段階の成分値を対応する均等空間ID値に
置き換えたものであり、こうすることにより、パレット
番号から均等空間ID値の組み合わせに変換、またはそ
の逆の変換が、表(テーブル)をいわゆる二度引きする
ことなく、一度参照するだけで行えるといった利点が生
じる。 (実施の形態2)カラーパレットテーブルにおいて、パ
レット番号を8ビットで表現すると256色を割り当て
ることが可能である。実施の形態1では、その内、18
0色しか割り当てていないので、まだ残り76色の割り
当てが可能である。ユーザからの要求や取り扱う画像の
特性等を考慮して、この残りの部分を使って、前記18
0色以外の色を割り当てることがある。つまり、残り7
6色は、直接的には、均等空間ID値の組み合わせに変
換できない色である。以下、この76色を補助色と呼
び、補助色を構成するRGB成分値を補助RGB成分
値、補助色のパレット番号を補助パレット番号という。
実施の形態1のカラーパレットテーブル102に補助色
を加えたカラーパレットテーブルを図10に示す。
As described above, according to the intermediate color determining apparatus of the first embodiment, two pixels whose color is represented by a combination of 256 levels of component values are once converted into a combination of uniform space ID values. , The most suitable intermediate color is obtained in terms of human visual characteristics. In the present embodiment, the pallet number / uniform space ID correspondence table 1
0 is composed of the uniform space ID / RGB component value correspondence table 101 and the color palette table 102, but is not limited to this, and is composed of only the palette number / uniform space ID correspondence table as shown in FIG. 9, for example. May be. This palette number / uniform space ID correspondence table is obtained by replacing the 256-stage component value with the corresponding uniform space ID value in the color palette table. By doing this, it is possible to change the palette number from the uniform space ID value. There is an advantage that the conversion or the reverse conversion can be performed by referring to the table once without so-called twice. (Embodiment 2) In the color palette table, if the palette number is expressed by 8 bits, 256 colors can be assigned. In the first embodiment, among them, 18
Since only 0 colors are assigned, the remaining 76 colors can still be assigned. In consideration of the request from the user, the characteristics of the image to be handled, etc., the remaining portion is used to
A color other than 0 may be assigned. That is, the remaining 7
The six colors are colors that cannot be directly converted into a combination of uniform space ID values. Hereinafter, these 76 colors are referred to as auxiliary colors, the RGB component values forming the auxiliary colors are referred to as auxiliary RGB component values, and the palette number of the auxiliary colors is referred to as an auxiliary palette number.
FIG. 10 shows a color palette table in which auxiliary colors are added to the color palette table 102 of the first embodiment.

【0051】実施の形態2では、背景画像データ格納部
若しくは前景画像データ格納部に格納されている画像デ
ータの画素が、補助色で表現されている場合でも取り扱
えるように工夫されている。図11は、本実施の形態の
中間色決定装置のブロック図である。この中間色決定装
置は、実施の形態1の中間色決定装置の構成に加え、背
景画素パレット番号ー均等空間ID近似部162と前景
画素パレット番号ー均等空間ID近似部172、そし
て、パレット番号・均等空間ID対応テーブル10にお
いては、さらに、補助RGB成分値・均等空間ID値対
応表103を有し、背景画素パレット番号ー均等空間I
D変換部16に代えて背景画素パレット番号ー均等空間
ID変換部161を、前景画素パレット番号ー均等空間
ID変換部17に代えて前景画素パレット番号ー均等空
間ID変換部171を有している。その他の構成は、実
施の形態1のものと基本的に同様なので、実施の形態1
と同符号を付し、その説明については省略する。
In the second embodiment, the pixel of the image data stored in the background image data storage unit or the foreground image data storage unit is devised so that it can be handled even if it is expressed in the auxiliary color. FIG. 11 is a block diagram of the intermediate color determination device of this embodiment. In addition to the configuration of the intermediate color determination device of the first embodiment, this intermediate color determination device includes a background pixel palette number-uniform space ID approximation unit 162, a foreground pixel palette number-uniform space ID approximation unit 172, and a palette number / uniform space. The ID correspondence table 10 further includes an auxiliary RGB component value / uniform space ID value correspondence table 103, and the background pixel palette number-uniform space I
The D conversion unit 16 has a background pixel palette number-uniform space ID conversion unit 161 and a foreground pixel palette number-uniform space ID conversion unit 17 has a foreground pixel palette number-uniform space ID conversion unit 171. . Other configurations are basically the same as those of the first embodiment, and therefore, the first embodiment
The same reference numerals are given and the description thereof is omitted.

【0052】補助RGB成分値・均等空間ID値対応表
103は、図12に示すように、しきい値とRGB成分
値幅とRGB成分値及び均等空間ID値とを対応づけた
表であり、(a)に示すRG成分用と(b)に示すB成
分用とがある。ここで、RGB成分値と均等空間ID値
は、実施の形態1と同じ値であり、しきい値とは、とな
り合うRGB成分値同士の視覚特性上ちょうど中間の値
である。例えば、本図(a)において、しきい値140
は、視覚特性上、110と160の中間に位置する値で
ある。RGB成分値幅は、しきい値を境にRGB値を区
切ったものであり、各幅を、均等空間ID値に対応付け
ている。
As shown in FIG. 12, the auxiliary RGB component value / uniform space ID value correspondence table 103 is a table in which threshold values, RGB component value widths, RGB component values and uniform space ID values are associated with each other. There are one for the RG component shown in a) and one for the B component shown in (b). Here, the RGB component value and the uniform space ID value are the same values as those in the first embodiment, and the threshold value is an intermediate value in terms of visual characteristics between adjacent RGB component values. For example, in FIG.
Is a value located between 110 and 160 in terms of visual characteristics. The RGB component value width is a division of RGB values with a threshold as a boundary, and each width is associated with a uniform space ID value.

【0053】背景画素パレット番号−均等空間ID変換
部161は、実施の形態1の背景画素パレット番号−均
等空間ID変換部16の機能に加え、背景画素パレット
番号取得部13が取得したパレット番号BPNが補助パ
レット番号か否かを判断し、補助パレット番号と判断し
たときは、その補助パレット番号を背景画素パレット番
号ー均等空間ID近似部162に出力するといった機能
を有する。
The background pixel palette number-uniform space ID conversion section 161 has the function of the background pixel palette number-uniform space ID conversion section 16 of the first embodiment, and the palette number BPN acquired by the background pixel palette number acquisition section 13. Has a function of outputting to the background pixel palette number-uniform space ID approximating section 162 when it is determined to be the auxiliary palette number.

【0054】前景画素パレット番号−均等空間ID変換
部171は、実施の形態1の前景画素パレット番号−均
等空間ID変換部17の機能に加え、前景画素パレット
番号・階調値取得部14が取得したパレット番号FPN
が補助パレット番号か否かを判断し、補助パレット番号
と判断したときは、その補助パレット番号を前景画素パ
レット番号ー均等空間ID近似部172に出力するとい
った機能を有する。
The foreground pixel palette number-uniform space ID conversion unit 171 has the function of the foreground pixel palette number-uniform space ID conversion unit 17 of the first embodiment, and is acquired by the foreground pixel palette number / gradation value acquisition unit 14. Pallet number FPN
Has a function of outputting to the foreground pixel palette number-uniform space ID approximation unit 172 when it is determined to be the auxiliary palette number.

【0055】背景画素パレット番号−均等空間ID近似
部162は、背景画素パレット番号−均等空間ID変換
部161から出力される補助パレット番号から、図10
に示すカラーパレットテーブル1021を参照し、対応
するRGB成分値を得る。次に、補助RGB成分値・均
等空間ID値対応表103を参照して、RGB成分値を
均等空間ID値に置き換えるのである。置き換えは、各
成分値毎に、それが含まれるRGB成分値幅に対応する
均等空間ID値をその成分値の均等空間ID値とすると
いった具合に行う。例えば、補助パレット番号が180
だとすると、先ず、カラーパレットテーブル1021か
ら、RGB成分値(50、211、88)を得る。次
に、補助RGB成分値・均等空間ID値対応表103を
参照して、まず、R成分値について、50が含まれるR
GB成分値幅は0〜60なのでこれに対応する0をR成
分の均等空間ID値とする。G、B成分についても同様
に行うと、変換結果である均等空間ID値の組み合わせ
は(0,3,1)となる。
The background pixel palette number-uniform space ID approximating section 162 uses the auxiliary palette number output from the background pixel palette number-uniform space ID converting section 161 as shown in FIG.
The color palette table 1021 shown in is referred to, and the corresponding RGB component values are obtained. Next, the RGB component value is replaced with the uniform space ID value by referring to the auxiliary RGB component value / uniform space ID value correspondence table 103. The replacement is performed for each component value such that the uniform space ID value corresponding to the RGB component value width in which it is included is set as the uniform space ID value of the component value. For example, the auxiliary pallet number is 180
If so, first, the RGB component values (50, 211, 88) are obtained from the color palette table 1021. Next, referring to the auxiliary RGB component value / uniform space ID value correspondence table 103, first, for the R component value, R including 50 is included.
Since the GB component value width is 0 to 60, 0 corresponding thereto is defined as the R component uniform space ID value. If the same is done for the G and B components, the combination of the uniform space ID values as the conversion result is (0, 3, 1).

【0056】前景画素パレット番号−均等空間ID近似
部172は、背景画素パレット番号−均等空間ID近似
部162と同様な手順によって、前景画素パレット番号
−均等空間ID変換部171から出力されるパレット番
号FPNを、均等空間IDの組み合わせ(FIDR,F
IDG,FIDB)に変換し、変換結果をブレンド部1
8に出力する。
The foreground pixel palette number-uniform space ID approximation unit 172 performs the same procedure as the background pixel palette number-uniform space ID approximation unit 162, and the palette number output from the foreground pixel palette number-uniform space ID conversion unit 171. FPN is a combination of uniform space IDs (FIDR, F
IDG, FIDB) and the conversion result is the blend unit 1
8 is output.

【0057】本実施の形態に係る中間色決定装置の動作
であるが、図7に示す実施の形態1のフローチャートの
ステップS14〜S20の間に、図13に示すように、
ステップS72〜78の処理が加わる他は、実施の形態
1と同様なので、実施の形態1と同じステップ番号を付
し、それらの説明については省略する。即ち、実施の形
態2では、背景画素パレット番号−均等空間ID変換部
161は、背景画素パレット番号取得部13が取得した
パレット番号BPNが補助パレット番号か否かを判断し
(ステップS72)、補助パレット番号ではないと判断
したときは、実施の形態1と同様に、背景画素パレット
番号−均等空間ID変換部161が、取得したパレット
番号BPNを均等空間ID値の組み合わせ(BIDR,
BIDG,BIDB)に変換し、変換結果をブレンド部
18に出力し(ステップS16)、補助パレット番号だ
と判断したときは、その番号を背景画素パレット番号ー
均等空間ID近似部162に出力し、背景画素パレット
番号ー均等空間ID近似部162は、出力されたパレッ
ト番号を、均等空間ID値の組み合わせ(BIDR,B
IDG,BIDB)に変換し、変換結果をブレンド部1
8に出力する(ステップS74)。
Regarding the operation of the intermediate color determination device according to this embodiment, as shown in FIG. 13, during steps S14 to S20 of the flowchart of the first embodiment shown in FIG.
Since the process is the same as that of the first embodiment except that the processes of steps S72 to 78 are added, the same step numbers as those of the first embodiment are attached and the description thereof is omitted. That is, in the second embodiment, the background pixel palette number-uniform space ID conversion unit 161 determines whether the palette number BPN acquired by the background pixel palette number acquisition unit 13 is the auxiliary palette number (step S72), and the auxiliary When it is determined that the palette number is not the palette number, the background pixel palette number-uniform space ID conversion unit 161 uses the acquired palette number BPN as a combination of uniform space ID values (BIDR,
BIDG, BIDB) and outputs the conversion result to the blending unit 18 (step S16). When it is determined that it is an auxiliary palette number, the number is output to the background pixel palette number-uniform space ID approximating unit 162, The background pixel palette number-uniform space ID approximating unit 162 uses the output palette number as a combination of uniform space ID values (BIDR, B
IDG, BIDB) and the conversion result is the blend unit 1
8 (step S74).

【0058】次に、前景画素パレット番号−均等空間I
D変換部171は、前景画素パレット番号・階調値取得
部14が取得したパレット番号FPNが補助パレット番
号か否かを判断し(ステップS76)、補助パレット番
号ではないと判断したときは、実施の形態1と同様に、
前景画素パレット番号−均等空間ID変換部171が、
取得したパレット番号BPNを均等空間ID値の組み合
わせ(FIDR,FIDG,FIDB)に変換し、変換
結果をブレンド部18に出力し(ステップS18)、補
助パレット番号だと判断したときは、その番号を前景画
素パレット番号ー均等空間ID近似部172に出力し、
前景画素パレット番号ー均等空間ID近似部172は、
出力されたパレット番号を、均等空間ID値の組み合わ
せ(FIDR,FIDG,FIDB)に変換し、変換結
果をブレンド部18に出力する(ステップS78)。
Next, foreground pixel palette number-uniform space I
The D conversion unit 171 determines whether the palette number FPN acquired by the foreground pixel palette number / gradation value acquisition unit 14 is the auxiliary palette number (step S76). Similar to the first form
The foreground pixel palette number-uniform space ID conversion unit 171
The acquired pallet number BPN is converted into a combination of uniform space ID values (FIDR, FIDG, FIDB), the conversion result is output to the blending section 18 (step S18), and when it is determined to be an auxiliary pallet number, that number is set. Output to foreground pixel palette number-uniform space ID approximation unit 172,
The foreground pixel palette number-uniform space ID approximation unit 172
The output pallet number is converted into a combination of uniform space ID values (FIDR, FIDG, FIDB), and the conversion result is output to the blend unit 18 (step S78).

【0059】以上、実施の形態2に係る中間色決定装置
によれば、直接的に均等空間ID値に変換できない色で
も、そのRGB成分値に最も近い均等空間ID値に変換
した上で合成するので、人の視覚特性上、最も適切な中
間色が得られる。なお、本発明を実施の形態に基づいて
説明したが、本発明は上記実施の形態に限定されないの
は勿論である。即ち、以下のような構成にしてもよい。 1.実施の形態1,2において、キャッシュ保持部20
は、背景画素パレット番号保持領域201、前景画素パ
レット番号FPN保持領域202、階調値GR保持領域
203及び合成結果パレット番号PN保持領域204と
から構成したが、背景画像または前景画像が一色のみか
らなる画像データを取り扱う場合は、背景画素パレット
番号保持領域201または前景画素パレット番号FPN
保持領域202を省略してもよい。即ち、 (1)背景画像が一色のみからなる場合は、前景画素パ
レット番号FPNと階調値GRだけから、合成結果を特
定できることとなるので、図14に示すように、キャッ
シュ保持部20の背景画素パレット番号保持領域201
を省略してもよい。こうすることによって、装置全体の
記憶領域を有効に利用することができる。 (2)また、前景画像が一色のみからなる場合は、上記
したのと同じ理由から、図15に示すように、キャッシ
ュ保持部20の前景画素パレット番号保持領域202を
省略してもよい。
As described above, according to the intermediate color determining apparatus according to the second embodiment, even a color that cannot be directly converted into the uniform space ID value is converted into the uniform space ID value closest to the RGB component value and then combined. In terms of human visual characteristics, the most suitable intermediate color can be obtained. Although the present invention has been described based on the embodiment, it goes without saying that the present invention is not limited to the above embodiment. That is, the following configuration may be adopted. 1. In the first and second embodiments, the cache holding unit 20
Is composed of a background pixel palette number holding area 201, a foreground pixel palette number FPN holding area 202, a gradation value GR holding area 203, and a combination result palette number PN holding area 204. In the case of handling the following image data, the background pixel palette number holding area 201 or the foreground pixel palette number FPN
The holding area 202 may be omitted. That is, (1) when the background image is composed of only one color, the combination result can be specified only from the foreground pixel palette number FPN and the gradation value GR, and therefore, as shown in FIG. Pixel palette number holding area 201
May be omitted. By doing so, the storage area of the entire device can be effectively used. (2) When the foreground image is composed of only one color, the foreground pixel palette number holding area 202 of the cache holding unit 20 may be omitted for the same reason as described above, as shown in FIG.

【0060】背景画素パレット番号保持領域201を省
略した場合、背景画素パレット番号取得部13は、背景
画素パレット番号BPNをキャッシュ判断部21に出力
せず、前景画素パレット番号保持領域202を省略した
場合、前景画素パレット番号・階調値取得部14は、前
景画素パレット番号FPNをキャッシュ判断部21に出
力しない。
When the background pixel palette number holding area 201 is omitted, the background pixel palette number obtaining section 13 does not output the background pixel palette number BPN to the cache judging section 21, and the foreground pixel palette number holding area 202 is omitted. The foreground pixel palette number / gradation value acquisition unit 14 does not output the foreground pixel palette number FPN to the cache determination unit 21.

【0061】背景画素パレット番号保持領域201を省
略した場合、キャッシュ判断部21は、前景画素パレッ
ト番号・階調値取得部14から出力されるパレット番号
FPNおよび階調値GRとからなる組み合わせと同じ組
み合わせがキャッシュ保持部20に有るか否か(ヒット
かミスヒットか)を判断し、ヒットしたときは、その組
み合わせに対応する合成結果パレット番号PNを画像デ
ータ書込部300に出力する。ミスヒットしたときは、
前景画素パレット番号・階調値取得部14から出力され
るパレット番号FPNと階調値GR及び均等空間ID−
パレット番号変換部19から出力される合成結果パレッ
ト番号PNをキャッシュ保持部20に書き込む。
When the background pixel palette number holding area 201 is omitted, the cache determination unit 21 has the same combination as the combination of the palette number FPN and the gradation value GR output from the foreground pixel palette number / gradation value acquisition unit 14. It is determined whether or not there is a combination in the cache holding unit 20 (whether it is a hit or a mishit), and when it is hit, the combination result palette number PN corresponding to the combination is output to the image data writing unit 300. When you miss
Palette number FPN, gradation value GR and uniform space ID output from foreground pixel palette number / gradation value acquisition unit 14
The combination result palette number PN output from the palette number conversion unit 19 is written in the cache holding unit 20.

【0062】また、前景画素パレット番号保持領域20
2を省略した場合、キャッシュ判断部21は、背景画素
パレット番号取得部13から出力されるパレット番号B
PNと前景画素パレット番号・階調値取得部14から出
力される階調値GRとからなる組み合わせと同じ組み合
わせがキャッシュ保持部20に有るか否か(ヒットかミ
スヒットか)を判断し、ヒットしたときは、その組み合
わせに対応する合成結果パレット番号PNを画像データ
書込部300に出力する。ミスヒットしたときは、背景
画素パレット番号取得部13から出力されるパレット番
号BPN、前景画素パレット番号・階調値取得部14か
ら出力される階調値GR及び均等空間ID−パレット番
号変換部19から出力される合成結果パレット番号PN
をキャッシュ保持部20に書き込む。 2.実施の形態1,2において、キャッシュ保持部20
への書込みは、いわゆるリング状に行うこととしたが、
以下のようにしてもよい。
The foreground pixel palette number holding area 20
When 2 is omitted, the cache determination unit 21 outputs the palette number B output from the background pixel palette number acquisition unit 13.
It is determined whether or not there is the same combination of the PN and the gradation value GR output from the foreground pixel palette number / gradation value acquisition unit 14 in the cache holding unit 20 (hit or miss hit), and a hit is made. If so, the combination result palette number PN corresponding to the combination is output to the image data writing unit 300. When there is a mishit, the palette number BPN output from the background pixel palette number acquisition unit 13, the gradation value GR output from the foreground pixel palette number / gradation value acquisition unit 14, and the uniform space ID-pallet number conversion unit 19 Synthesis result palette number PN output from
Is written in the cache holding unit 20. 2. In the first and second embodiments, the cache holding unit 20
Writing to the so-called ring was done,
You may do as follows.

【0063】上書きする際、最近ヒットした行番号の保
持領域には、できるだけ書き込まないようにし、最近ヒ
ットされていない行番号の保持領域に優先して書き込む
ようにする。こうすることにより、頻繁にヒットされる
パレット番号等の組み合わせがキャッシュ保持部20に
保持される確率が高くなる関係上、キャッシュ保持部2
0に保持されている合成結果パレット番号を利用する頻
度が多くなるので、さらに高速に処理できることとな
る。 3.実施の形態1,2では、キャッシュ保持部20を1
0行の保持領域で構成したが、背景画素パレット番号、
前景画素パレット番号および階調値の、存在する組み合
わせの数だけ確保することとしてもよい。こうすること
により、一度、合成処理した組み合わせについては、再
度、合成処理することがなくなるので、より高速に中間
色が得られる。 4.キャッシュ判断部21は、背景画素パレット番号取
得部13から出力されるパレット番号BPNと前景画素
パレット番号・階調値取得部14から出力されるパレッ
ト番号FPNとが同一の場合、キャッシュ保持部20を
参照することなく、そのパレット番号を画像データ書込
み部300に出力することとしてもよい。合成対象とな
る二つのカラー画素のパレット番号が同一、即ち、同色
の場合、合成結果は、そのブレンド率に拘らず、合成前
の色と同一になるからである。こうすることにより、キ
ャッシュ保持部20を参照しない分、より高速に中間色
が得られる。 5.実施の形態1でも記載したように、RGB成分値の
抽出個数の組み合わせは、何通りか考えられる。そこ
で、個々の組み合わせに対応させて、実施の形態1で
は、均等空間IDーRGB成分値対応表とカラーパレッ
トテーブル(または、パレット番号・均等空間ID対応
表)、加えて、実施の形態2では、補助RGB成分値・
均等空間ID値対応表をそれぞれ複数用意し、合成対象
となるカラー画素に応じて、前記対応表またはテーブル
を使い分けるようにしてもよい。
At the time of overwriting, writing is not performed as much as possible in the holding area of the row number that has recently been hit, and writing is preferentially performed in the holding area of the row number that has not been hit recently. By doing so, the cache holding unit 2 is more likely to hold a combination of frequently hit pallet numbers and the like.
Since the synthesizing result palette number held at 0 is used more frequently, the processing can be performed at higher speed. 3. In the first and second embodiments, the cache holding unit 20 is
Although it is composed of 0 rows of holding area, background pixel palette number,
It is also possible to secure only the number of existing combinations of the foreground pixel palette number and the gradation value. By doing so, it is possible to obtain an intermediate color at a higher speed, because the combination processing once performed does not require the combination processing again. 4. When the palette number BPN output from the background pixel palette number acquisition unit 13 and the palette number FPN output from the foreground pixel palette number / gradation value acquisition unit 14 are the same, the cache determination unit 21 causes the cache holding unit 20 to operate. The pallet number may be output to the image data writing unit 300 without reference. This is because when the palette numbers of the two color pixels to be combined are the same, that is, the colors are the same, the combination result is the same as the color before the combination regardless of the blend ratio. By doing so, since the cache holding unit 20 is not referenced, the intermediate color can be obtained at a higher speed. 5. As described in the first embodiment, there are several possible combinations of the numbers of extracted RGB component values. Therefore, according to the individual combinations, in the first embodiment, the uniform space ID-RGB component value correspondence table and the color palette table (or the palette number / uniform space ID correspondence table), and in the second embodiment, , Auxiliary RGB component value
A plurality of uniform space ID value correspondence tables may be prepared, and the correspondence table or tables may be selectively used according to the color pixel to be combined.

【0064】この場合、同一の組み合わせに対応させて
用意した対応表およびテーブルには、同じ識別子(以
下、「変換表識別子」という)を付与し、他の組み合わ
せに対応させて用意されたものと区別する。また、背景
画素の画素データの先頭に変換表識別子を付与し、合成
の際使用する対応表およびテーブルを特定させる。さら
に、図16に示すように、テーブル切り替え部22を備
えることとする。テーブル切り替え部22は、背景画像
データ格納部100に格納された背景画像データの先頭
に付与されている変換表識別子を参照し、パレット番号
・均等空間IDテーブル10の各対応表及び各テーブル
の内、使用するものを、背景画像データの先頭に付与さ
れているのと同じ変換表識別子が付与されている対応表
およびテーブルに切り替える。
In this case, the correspondence table and the table prepared corresponding to the same combination are given the same identifier (hereinafter referred to as "conversion table identifier") and prepared in correspondence with other combinations. Distinguish. In addition, a conversion table identifier is added to the beginning of the pixel data of the background pixel to specify the correspondence table and table to be used when combining. Further, as shown in FIG. 16, a table switching unit 22 is provided. The table switching unit 22 refers to the conversion table identifier provided at the beginning of the background image data stored in the background image data storage unit 100, and checks each correspondence table of the palette number / uniform space ID table 10 and each table. , The one to be used is switched to the correspondence table and table to which the same conversion table identifier as that added to the beginning of the background image data is added.

【0065】[0065]

【発明の効果】請求項1記載の発明によれば、色成分値
の組み合わせで表される二つのカラー画素の各色成分値
が、人の視覚特性上均等に割り付けられたID値に変換
され、変換されたID値が所定の比率で合成され、合成
されたID値が色成分値に変換されるので、人の視覚特
性上、最も適切な中間色を高速で決定することができ
る。
According to the first aspect of the present invention, each color component value of two color pixels represented by a combination of color component values is converted into an ID value that is evenly assigned in terms of human visual characteristics, Since the converted ID values are combined at a predetermined ratio and the combined ID values are converted into color component values, the most suitable intermediate color can be determined at high speed in terms of human visual characteristics.

【0066】請求項2記載の発明によれば、色成分値の
組み合わせを特定するパレット番号で表される二つのカ
ラー画素のパレット番号が、人の視覚特性上均等に割り
付けられたID値の組み合わせに変換され、変換された
ID値が所定の比率で合成され、合成されたID値の組
み合わせがパレット番号に変換されるので、人の視覚特
性上、最も適切な中間色を高速で決定することができ
る。
According to the second aspect of the present invention, the combination of the ID values in which the palette numbers of the two color pixels, which are represented by the palette numbers that specify the combination of the color component values, are evenly assigned in terms of human visual characteristics. Since the converted ID values are combined with each other at a predetermined ratio and the combination of the combined ID values is converted into a palette number, it is possible to determine the most appropriate intermediate color at high speed in view of human visual characteristics. it can.

【0067】請求項3記載の発明によれば、二つのカラ
ー画素のパレット番号が一致する場合には、第1の変換
手段と合成手段と第2の変換手段とが起動されることな
く、一致したパレット番号がそのまま出力されるので、
より高速に中間色を決定することができる。請求項4記
載の発明によれば、パレット番号と色成分値の組み合わ
せとを対応付けた第1の対応テーブルが参照されて、パ
レット番号が色成分値の組み合わせに置換され、色成分
値とID値とを対応付けた第2の対応テーブルが参照さ
れて、各色成分値がID値に変換され、前記第2の対応
テーブルが参照されて、ID値が色成分値に変換され、
前記第1の対応テーブルが参照されて、色成分値の組み
合わせがパレット番号に置換されるので、請求項2又は
3記載の発明の効果と同じものが得られる。
According to the third aspect of the present invention, when the palette numbers of the two color pixels match, the first converting means, the synthesizing means, and the second converting means are matched without being activated. Since the pallet number you made is output as it is,
The intermediate color can be determined at higher speed. According to the invention of claim 4, the palette number is replaced with the combination of the color component values by referring to the first correspondence table in which the combination of the palette number and the combination of the color component values is referred to. The second correspondence table in which the values are associated with each other is referred to, each color component value is converted into an ID value, the second correspondence table is referred to, the ID value is converted into a color component value,
Since the combination of the color component values is replaced with the palette number by referring to the first correspondence table, the same effect as the invention of claim 2 or 3 can be obtained.

【0068】請求項5記載の発明によれば、ID値の組
み合わせとパレット番号とを対応付けた対応テーブルが
参照されて、パレット番号がID値の組み合わせに置換
され、前記対応テーブルが参照されて、ID値の組み合
わせがパレット番号に置換されるので、請求項2又は3
記載の発明の効果と同じものが得られる。請求項6記載
の発明によれば、第1のテーブルを参照して置換した色
成分値の組み合わせの中に、第2の対応テーブルには無
い色成分値が含まれていると、となり合うID値のちょ
うど中央位置に対応する色成分値であるしきい値を、I
D値と関連付けて保持した第3の対応テーブルが参照さ
れて、前記第2の対応テーブルには無い色成分値がID
値に置換されるので、請求項4記載の発明の効果に加え
て、ID値に対応しない色成分値を含む組み合わせであ
らわされるカラー画素であっても、適切に合成すること
ができるといった効果が生じる。
According to the fifth aspect of the present invention, the correspondence table in which the combination of ID values and the pallet number are associated with each other is referred to, the pallet number is replaced with the combination of ID values, and the correspondence table is referred to. , The ID value combination is replaced with a pallet number.
The same effect as the described invention can be obtained. According to the invention described in claim 6, when the combination of the color component values replaced by referring to the first table includes a color component value which is not in the second correspondence table, the following IDs are obtained. The threshold value which is the color component value corresponding to the center position of the value is I
The third correspondence table held in association with the D value is referred to, and the color component value that does not exist in the second correspondence table is ID.
Since the value is replaced with a value, in addition to the effect of the invention according to claim 4, even a color pixel represented by a combination including a color component value not corresponding to an ID value can be appropriately combined. Occurs.

【0069】請求項7記載の発明によれば、合成対象と
なる二つのカラー画素のパレット番号と所定の比率との
組み合わせが、二つのカラー画素のパレット番号と当該
所定の比率と対応する変換結果とを対応づけて格納する
変換結果格納手段にあれば、合成手段と第2の変換手段
とが起動されることなく、対応する変換結果が出力され
るので、請求項2、3、4、5または6記載の発明の効
果に加えて、より、高速に合成することができるといっ
た効果が生じる。
According to the seventh aspect of the invention, the combination of the palette number of the two color pixels to be combined and the predetermined ratio corresponds to the palette number of the two color pixels and the conversion result corresponding to the predetermined ratio. If the conversion result storing means for storing and are associated with each other is stored, the corresponding conversion result is output without activating the synthesizing means and the second converting means. Alternatively, in addition to the effect of the invention described in 6, there is an effect that the composition can be performed at a higher speed.

【0070】請求項8記載の発明によれば、全て同一の
パレット番号で表される一方のカラー画素と合成される
他方のカラー画素のパレット番号と所定の比率との組み
合わせが、他方のカラー画素のパレット番号と当該所定
の比率と対応する変換結果とを対応づけて格納する変換
結果格納手段にあれば、合成手段と第2の変換手段とが
起動されることなく、対応する変換結果が出力されるの
で、請求項2、3、4、5または6記載の発明の効果に
加えて、より、高速に合成することができるといった効
果が生じる。
According to the eighth aspect of the invention, the combination of the palette number and the predetermined ratio of one color pixel represented by the same palette number and the other color pixel combined is the other color pixel. If there is a conversion result storing means that stores the pallet number and the conversion result corresponding to the predetermined ratio in association with each other, the corresponding conversion result is output without activating the synthesizing means and the second converting means. Therefore, in addition to the effect of the invention described in claim 2, 3, 4, 5 or 6, there is an effect that the composition can be performed at a higher speed.

【0071】請求項9記載の発明によれば、合成対象の
画素の種類に応じて、各対応テーブルが切り替えられる
ので、請求項4、5、6、7又は8記載の発明の効果に
加えて、複数種の画素を取り扱うことができると言った
効果がある。
According to the invention described in claim 9, since each correspondence table is switched according to the kind of pixel to be combined, in addition to the effect of the invention described in claim 4, 5, 6, 7 or 8. There is an effect that a plurality of types of pixels can be handled.

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

【図1】実施の形態1に係る中間色決定装置の構成を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration of an intermediate color determination device according to a first embodiment.

【図2】視覚特性を表す図である。FIG. 2 is a diagram showing visual characteristics.

【図3】実施の形態1の均等空間ID−RGB成分値対
応表の内容を表す図である。
FIG. 3 is a diagram showing the contents of a uniform space ID-RGB component value correspondence table according to the first embodiment.

【図4】実施の形態1のカラーパレットテーブルの内容
を表す図である。
FIG. 4 is a diagram showing the contents of a color palette table according to the first embodiment.

【図5】実施の形態1の前景画像データ格納部に格納さ
れているデータの一例を示す図である。
FIG. 5 is a diagram showing an example of data stored in a foreground image data storage unit according to the first embodiment.

【図6】実施の形態1のキャッシュ保持部の内容を示す
図である。
FIG. 6 is a diagram showing the contents of a cache holding unit according to the first embodiment.

【図7】実施の形態1の処理手順を示すフローチャート
の一部である。
FIG. 7 is a part of a flowchart showing a processing procedure according to the first embodiment.

【図8】実施の形態1および2の処理手順を示すフロー
チャートの一部である。
FIG. 8 is a part of a flowchart showing a processing procedure according to the first and second embodiments.

【図9】実施の形態1のパレット番号−均等空間ID対
応表の内容を表す図である。
FIG. 9 is a diagram showing the contents of a palette number-uniform space ID correspondence table according to the first embodiment.

【図10】実施の形態2のカラーパレットテーブルの内
容を表す図である。
FIG. 10 is a diagram showing the contents of a color palette table according to the second embodiment.

【図11】実施の形態2に係る中間色決定装置の構成を
示すブロック図である。
FIG. 11 is a block diagram showing a configuration of an intermediate color determination device according to a second embodiment.

【図12】実施の形態2の補助RGB成分値・均等空間
ID値対応表の内容を示す図である。
FIG. 12 is a diagram showing the contents of an auxiliary RGB component value / uniform space ID value correspondence table according to the second embodiment.

【図13】実施の形態2の処理手順を示すフローチャー
トの一部である。
FIG. 13 is a part of a flowchart showing a processing procedure according to the second embodiment.

【図14】他の実施の形態のキャッシュ保持部の内容を
示す図である。
FIG. 14 is a diagram showing the contents of a cache holding unit according to another embodiment.

【図15】他の実施の形態のキャッシュ保持部の内容を
示す図である。
FIG. 15 is a diagram showing the contents of a cache holding unit according to another embodiment.

【図16】他の実施の形態に係る中間色決定装置の構成
を示すブロック図である。
FIG. 16 is a block diagram showing a configuration of an intermediate color determination device according to another embodiment.

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

10 パレット番号・均等空間ID対応テーブル 11 背景画像データ画素選択部 12 前景画像データ画素選択部 13 背景画素パレット番号取得部 14 前景画素パレット番号・階調値取得部 15 ブレンド率決定部 16 背景画素パレット番号−均等空間ID変換部 17 前景画素パレット番号−均等空間ID変換部 18 ブレンド部 19 均等空間ID−パレット番号変換部 20 キャッシュ保持部 21 キャッシュ判断部 22 テーブル切り替え部 161 背景画素パレット番号−均等空間ID変換部 162 背景画素パレット番号−均等空間ID近似部 171 前景画素パレット番号−均等空間ID変換部 172 前景画素パレット番号−均等空間ID近似部 10 palette number / uniform space ID correspondence table 11 background image data pixel selection unit 12 foreground image data pixel selection unit 13 background pixel palette number acquisition unit 14 foreground pixel palette number / gradation value acquisition unit 15 blend ratio determination unit 16 background pixel palette Number-uniform space ID conversion unit 17 Foreground pixel palette number-uniform space ID conversion unit 18 Blend unit 19 Uniform space ID-pallet number conversion unit 20 Cache holding unit 21 Cache determination unit 22 Table switching unit 161 Background pixel palette number-Uniform space ID conversion unit 162 Background pixel palette number-uniform space ID approximation unit 171 Foreground pixel palette number-uniform space ID conversion unit 172 Foreground pixel palette number-uniform space ID approximation unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/68 310A (72)発明者 森田 克之 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 宮部 義幸 大阪府門真市大字門真1006番地 松下電器 産業株式会社内─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical display location G06F 15/68 310A (72) Inventor Katsuyuki Morita 1006 Kadoma, Kadoma-shi, Osaka Matsushita Electric Industrial Co., Ltd. (72) Inventor Yoshiyuki Miyabe 1006, Kadoma, Kadoma, Osaka Prefecture Matsushita Electric Industrial Co., Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 色成分値の組み合わせで表される二つの
カラー画素を合成して一画素として表現するために、二
つの画素の色成分値から中間色を決定する中間色決定装
置であって、 画素の前記各色成分値を、人の視覚特性上均等に割り付
けられたID値に変換する第1の変換手段と、 第1の変換手段により変換された二つのカラー画素のI
D値を所定の比率で合成する合成手段と、 合成されたID値を前記色成分値に変換する第2の変換
手段とを備えたことを特徴とする中間色決定装置。
1. An intermediate color determination device for determining an intermediate color from color component values of two pixels in order to combine two color pixels represented by a combination of color component values and represent them as one pixel. Of each of the color component values of the first color conversion element and an ID value of the two color pixels converted by the first conversion means.
An intermediate color determining device comprising: a combining unit that combines D values at a predetermined ratio; and a second converting unit that converts the combined ID value into the color component value.
【請求項2】 色成分値の組み合わせを特定するパレッ
ト番号で表される二つのカラー画素を合成して一画素と
して表現するために、二つの画素の色成分値から中間色
を決定する中間色決定装置であって、 画素の前記パレット番号を、人の視覚特性上均等に割り
付けられたID値の組み合わせに変換する第1の変換手
段と、 第1の変換手段により変換された二つのカラー画素のI
D値を所定の比率で合成する合成手段と、 合成されたID値の組み合わせをパレット番号に変換す
る第2の変換手段とを備えたことを特徴とする中間色決
定装置。
2. An intermediate color determination device for determining an intermediate color from color component values of two pixels in order to synthesize two color pixels represented by a palette number that specifies a combination of color component values and represent them as one pixel. Where the palette number of a pixel is converted into a combination of ID values that are evenly assigned in terms of human visual characteristics, and I of two color pixels converted by the first converting means.
An intermediate color determining apparatus comprising: a combining unit that combines D values at a predetermined ratio, and a second converting unit that converts a combination of combined ID values into a palette number.
【請求項3】 前記中間色決定装置は、さらに、 二つのカラー画素のパレット番号が一致するか否かを判
定するパレット番号一致判定手段と、 前記パレット番号一致判定手段が一致すると判定したと
きに、前記第1の変換手段と前記合成手段と前記第2の
変換手段とを起動させることなく、一致したパレット番
号をそのまま出力するパレット番号通過出力手段とを備
えたことを特徴とする請求項2記載の中間色決定装置。
3. The intermediate color determination device further comprises: palette number match determination means for determining whether or not the palette numbers of two color pixels are matched; and the palette number match determination means, 3. The pallet number passage output means for outputting the matched pallet number as it is without activating the first converting means, the synthesizing means, and the second converting means. Intermediate color determination device.
【請求項4】 前記第1の変換手段は、 パレット番号と色成分値の組み合わせとを対応付けた第
1の対応テーブルと、 色成分値とID値とを対応付けた第2の対応テーブル
と、 第1の対応テーブルを参照し、パレット番号を色成分値
の組み合わせに置換した後、第2の対応テーブルを参照
して、各色成分値をID値に置換する置換部からなり、 前記第2の変換手段は、 前記第2の対応テーブルを参照し、ID値を色成分値に
変換した後、前記第1の対応テーブルを参照して、色成
分値の組み合わせをパレット番号に置換する置換部から
なることを特徴とする請求項2または3記載の中間色決
定装置。
4. The first conversion means includes a first correspondence table in which a palette number and a combination of color component values are associated with each other, and a second correspondence table in which a color component value and an ID value are associated with each other. , A first correspondence table is used to replace the palette number with a combination of color component values, and then a second correspondence table is used to replace each color component value with an ID value. The conversion means refers to the second correspondence table, converts the ID value into the color component value, and then refers to the first correspondence table to replace the combination of the color component values with the palette number. The intermediate color determination device according to claim 2 or 3, comprising:
【請求項5】 前記第1の変換手段は、 ID値の組み合わせとパレット番号とを対応付けた対応
テーブルと、 前記対応テーブルを参照して、パレット番号をID値の
組み合わせに置換する置換部からなり、 前記第2の変換手段は、 前記対応テーブルを参照して、ID値の組み合わせをパ
レット番号に置換する置換部からなることを特徴とする
請求項2または3記載の中間色決定装置。
5. The first conversion means comprises: a correspondence table in which a combination of ID values and a palette number are associated with each other; and a replacement unit that replaces the palette number with a combination of ID values by referring to the correspondence table. 4. The intermediate color determination device according to claim 2, wherein the second conversion unit includes a replacement unit that replaces a combination of ID values with a palette number by referring to the correspondence table.
【請求項6】 前記第1の変換手段は、さらに、となり
合うID値のちょうど中央位置に対応する色成分値であ
るしきい値を、ID値と関連付けて保持した第3の対応
テーブルを備え、 第1のテーブルを参照して置換した色成分値の組み合わ
せの中に、第2の対応テーブルには無い色成分値が含ま
れているときに、当該色成分値を、第3の対応テーブル
を参照して、ID値に置換することを特徴とする請求項
4記載の中間色決定装置。
6. The third conversion table further includes a third correspondence table that holds a threshold value, which is a color component value corresponding to the center position of adjacent ID values, in association with the ID value. , When a color component value that is not found in the second correspondence table is included in the combination of the color component values replaced by referring to the first table, the color component value is set to the third correspondence table. 5. The intermediate color determining apparatus according to claim 4, wherein the ID value is replaced with the ID value with reference to.
【請求項7】 前記中間色決定装置は、さらに、 二つのカラー画素のパレット番号と当該所定の比率と対
応する変換結果とを対応づけて格納する変換結果格納手
段と、 合成対象となる二つのカラー画素のパレット番号と所定
の比率との組み合わせが、前記変換結果格納手段に有る
か否かを判断する判断手段と、 前記判断手段が、有ると判断したときに、前記合成手段
と第2の変換手段とを起動させることなく、有ると判断
された組み合わせに対応する変換結果を出力する変換結
果出力手段とを備えたことを特徴とする請求項2、3、
4、5又は6記載の中間色決定装置。
7. The intermediate color determination device further includes a conversion result storage unit that stores a palette number of two color pixels and a conversion result corresponding to the predetermined ratio in association with each other, and two colors to be combined. A determination unit that determines whether or not a combination of a pixel palette number and a predetermined ratio exists in the conversion result storage unit; and, when the determination unit determines that a combination exists, the combination unit and the second conversion unit. And a conversion result output means for outputting a conversion result corresponding to a combination determined to exist, without activating the means.
The intermediate color determination device according to 4, 5, or 6.
【請求項8】 前記中間色決定装置は、一方のカラー画
素が全て同一のパレット番号で表される二つのカラー画
素の中間色を決定するものであって、 さらに、 他方のカラー画素のパレット番号と当該所定の比率と対
応する変換結果とを対応づけて格納する変換結果格納手
段と、 合成対象となる他方のカラー画素のパレット番号と所定
の比率との組み合わせが、前記変換結果格納手段に有る
か否かを判断する判断手段と、 前記判断手段が、有ると判断したときに、前記合成手段
と第2の変換手段とを起動させることなく、有ると判断
された組み合わせに対応する変換結果を出力する変換結
果出力手段とを備えたことを特徴とする請求項2、3、
4、5又は6記載の中間色決定装置。
8. The intermediate color determination device determines an intermediate color of two color pixels in which one color pixel is all represented by the same palette number, and further, the palette color of the other color pixel and Whether or not there is a combination of a conversion result storage means for storing a predetermined ratio and a corresponding conversion result in association with each other, and a combination of the palette number of the other color pixel to be combined and a predetermined ratio in the conversion result storage means. And a determining unit that determines whether or not the combination unit outputs the conversion result corresponding to the combination determined to exist, without activating the synthesizing unit and the second converting unit when determining that there is. A conversion result output means is provided, Claims 2, 3,
The intermediate color determination device according to 4, 5, or 6.
【請求項9】 前記中間色決定装置は、組み合わせに用
いられている色成分値が異なる複数種の画素を取り扱う
ものであって、 前記各対応テーブルを前記画素の種類に応じて複数備
え、 前記画素の種類に応じて使用するテーブルを切り替える
テーブル切り替え手段を備えたことを特徴とする請求項
4、5、6、7又は8記載の中間色決定装置。
9. The intermediate color determination device handles a plurality of types of pixels having different color component values that are used in combination, and includes a plurality of each correspondence table according to the type of the pixel. 9. The intermediate color determination device according to claim 4, further comprising a table switching unit that switches a table to be used according to the type of.
JP24760896A 1996-01-31 1996-09-19 Intermediate color determination device Expired - Fee Related JP3803146B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24760896A JP3803146B2 (en) 1996-01-31 1996-09-19 Intermediate color determination device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-15524 1996-01-31
JP1552496 1996-01-31
JP24760896A JP3803146B2 (en) 1996-01-31 1996-09-19 Intermediate color determination device

Publications (2)

Publication Number Publication Date
JPH09270000A true JPH09270000A (en) 1997-10-14
JP3803146B2 JP3803146B2 (en) 2006-08-02

Family

ID=26351698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24760896A Expired - Fee Related JP3803146B2 (en) 1996-01-31 1996-09-19 Intermediate color determination device

Country Status (1)

Country Link
JP (1) JP3803146B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004032052A1 (en) * 2002-10-02 2004-04-15 Matsushita Electric Industrial Co., Ltd. Image processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004032052A1 (en) * 2002-10-02 2004-04-15 Matsushita Electric Industrial Co., Ltd. Image processing device

Also Published As

Publication number Publication date
JP3803146B2 (en) 2006-08-02

Similar Documents

Publication Publication Date Title
US5977946A (en) Multi-window apparatus
US5933131A (en) Luminance controlled color resolution reduction
US5896140A (en) Method and apparatus for simultaneously displaying graphics and video data on a computer display
CA2079534A1 (en) Selective color correction
KR19990087566A (en) Mixing Video Images at Home Communication Terminals
JPH04182696A (en) Image processor
CN100370321C (en) Liquid crystal display device and driving method for the same
KR100664451B1 (en) Image processing apparatus and image processing method
JP2578170B2 (en) Image display device
JPH08147453A (en) Method and device for look-up table generation
JPH09270000A (en) Intermediate color deciding device
JPH0325493A (en) Color display
JPH07225575A (en) Multi-window device
JP3530215B2 (en) On-screen display device
JPH0822556A (en) Texture mapping device
JPH06180574A (en) Computer image processor
CN108282643A (en) Image processing method, image processing apparatus and electronic equipment
JPS62222373A (en) Image processor
JPH05204348A (en) Color image color changing processing system and color image synthesizing processing system
JP3641846B2 (en) Multicolor image reduction display
JP3250867B2 (en) Image processing device
JPH07219510A (en) On-screen display device
JPH07140950A (en) Method of displaying image in display device
JPH03233495A (en) Image display device
JPH06180573A (en) Image forming method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060331

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: 20060411

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060502

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100512

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110512

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110512

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120512

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees