JP2001306055A - Color palette generating and referring method and its device - Google Patents

Color palette generating and referring method and its device

Info

Publication number
JP2001306055A
JP2001306055A JP2000119731A JP2000119731A JP2001306055A JP 2001306055 A JP2001306055 A JP 2001306055A JP 2000119731 A JP2000119731 A JP 2000119731A JP 2000119731 A JP2000119731 A JP 2000119731A JP 2001306055 A JP2001306055 A JP 2001306055A
Authority
JP
Japan
Prior art keywords
color
value
palette
colors
plane
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.)
Withdrawn
Application number
JP2000119731A
Other languages
Japanese (ja)
Inventor
Hiroki Matsuoka
弘樹 松岡
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2000119731A priority Critical patent/JP2001306055A/en
Publication of JP2001306055A publication Critical patent/JP2001306055A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Video Image Reproduction Devices For Color Tv Systems (AREA)
  • Processing Of Color Television Signals (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent image quality from deteriorating at the displaying of image data to be expressed with full colors by limited colors, while using color palettes and to realize a high-speed processing. SOLUTION: Respective two-dimensional color spaces of an R-G plane, an R-B plane and a B-G plane are extracted from a three-dimensional color space, having three axes of R, G, B and arbitrary color values positioning at the vicinity of diagonal lines of the respective two-dimensional color spaces are selected and a B value, a G value and an R value are assigned respectively to respective quarter palettes, based on the selected color values and the B value, the G value and the R value are assigned to remaining quarter palettes equally. Moreover, 23n colors to be expressed with respective (n) bits of R, G, B are thinned into 23m colors to be expressed with respective (m) (provided, n>m) bits of R, G, B based on the specification of a display device and tables to be assigned to a fixed color palette having limited colors are preliminarily prepared by an amount which is equivalent to the 23n colors and the assigning of fixed limited colors is performed by referring to the tables.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、フルカラー表現さ
れる画像データを、カラーパレットを用いることによっ
て限定色表示するカラーディスプレイシステムに用いて
好適な、カラーパレット生成および参照方法ならびにそ
の装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for generating and referencing a color palette suitable for use in a color display system for displaying image data expressed in full color in a limited color by using a color palette.

【0002】[0002]

【従来の技術】近年、マンマシンインタフェースの中核
となる表示装置に、高解像度表示、多色表示等、高性能
仕様が要求されるようになった。特に、多色表示におい
て、RGBの3原色のそれぞれをアナログ電圧でディス
プレイに伝える方式が開発され、表示デバイス側で電圧
に比例して各色の明るさを変化させることによって中間
色を含む多色表示が可能となった。この場合、ビデオD
Aコンバータを用いてアナログ電圧を段階的に変化させ
る。1画素あたり、RGBそれぞれ8ビット(電圧の変
化は28=256ステップ)を用いれば、2563=1
6,777,216色(フルカラー1678万色)の表
示が可能となる。
2. Description of the Related Art In recent years, high-performance specifications such as high-resolution display and multi-color display have been required for a display device at the core of a man-machine interface. In particular, in the multi-color display, a method of transmitting each of the three primary colors of RGB to the display with an analog voltage has been developed. By changing the brightness of each color in proportion to the voltage on the display device side, a multi-color display including an intermediate color can be realized. It has become possible. In this case, video D
The analog voltage is changed stepwise using an A converter. If 8 bits are used for each pixel of RGB (voltage change is 2 8 = 256 steps), 256 3 = 1
Display of 6,777,216 colors (16,780,000 full colors) becomes possible.

【0003】ところで、上記したフルカラー表示機能を
持つ表示装置とは別に、フレームバッファメモリの容量
の制約から、表示画面全体で一度に表示できる色数が8
〜256色程度の限定色表示機能しか持たない表示装置
がある。この場合、ハードウェア的にパレットメモリと
称されるテーブルを用意し、例えば256の各色がフル
カラー1678万色のどれに対応するかを記憶してお
き、画像表示時に変換する方式を採用している。
By the way, apart from the above-described display device having a full-color display function, the number of colors that can be displayed at one time on the entire display screen is eight due to the limitation of the capacity of the frame buffer memory.
There is a display device having only a limited color display function of about 256 colors. In this case, a table called a palette memory is prepared in hardware, for example, which of 256 colors corresponds to 16.78 million full colors is stored, and a method of converting at the time of image display is adopted. .

【0004】[0004]

【発明が解決しようとする課題】上記した従来技術によ
れば、制限された表示代表色を選定するのに、RGBの
各色空間において均等に使用する色を選定するか、ある
いはメディアンカットカラー量子化手法を用い、入力画
像に合わせて上記パレットの色選択を行っていた。後者
は、変換後の色値を、着目画素の近傍に位置する画素の
色値の平均値とせずに、それらの画素の中央値(n個あ
る場合はn/2番目の色値)とするものである。これら
の方法によれば、前者は、画像の劣化が目立ち、後者
は、前者に比べて画質は改善されるものの、処理のため
に時間を要し現実的ではないといった欠点を持つ。
According to the above-mentioned prior art, to select a limited display representative color, a color used uniformly in each of the RGB color spaces is selected, or a median cut color quantization is performed. Using the technique, the color of the palette was selected in accordance with the input image. In the latter, the converted color value is not the average value of the color values of the pixels located in the vicinity of the target pixel, but the median value of those pixels (the n / 2th color value if there are n pixels). Things. According to these methods, the former has noticeable image deterioration, and the latter has a drawback that although the image quality is improved as compared with the former, it takes time for processing and is not realistic.

【0005】また、上記のように選択された代表色を割
り当てるために、原画像の各画素毎に全ての代表色との
間の距離を求め、それが最小となる代表色を割り当てる
か、あるいは、色空間をあらかじめ局所領域に分割して
おき、局所領域毎にそれぞれに含まれる複数個の代表色
のリストを用意し、原画像の各画素が与えられると、そ
の画素の色が属する局所領域の代表色とだけ距離計算を
行い、その割り当て色を求める方法があった。このよう
に、三次元の距離計算が行われ、ソフトウェアを含むコ
ントローラの負担が大きくなると共に処理のために要す
る時間は性能上無視できなくなる。
In order to assign a representative color selected as described above, a distance between all representative colors is determined for each pixel of the original image, and a representative color which minimizes the distance is assigned, or The color space is divided into local areas in advance, and a list of a plurality of representative colors included in each of the local areas is prepared. When each pixel of the original image is given, the local area to which the color of the pixel belongs There is a method in which distance calculation is performed only for the representative color and the assigned color is obtained. As described above, the three-dimensional distance calculation is performed, the load on the controller including the software increases, and the time required for the processing cannot be ignored in performance.

【0006】本発明は、上記事情に鑑みてなされたもの
であり、R、G、Bの3軸を持つ3次元色空間から、R
−Gプレーン、R−Bプレーン、B−Gプレーンの各2
次元色空間を抽出し、一般自然画における色の分布を解
析したところ、白、黒が少なく、RとG、RとBおよび
BとGの対角線上に色の分布が集中していることから、
それぞれの2次元色空間の対角線近傍に位置する任意の
値を選択し、当該選択した値に基づき、各1/4のパレ
ットに、それぞれB値、G値、R値を割り当て、残る1
/4のパレットに、R値、G値、B値を均等に割り当て
ることによって制限色の固定カラーパレットを生成する
ことにより、画質の劣化を防ぎ、かつ、高速処理を実現
したカラーパレット生成方法ならびにその装置を提供す
ることを目的とする。
[0006] The present invention has been made in view of the above circumstances, and is based on a three-dimensional color space having three axes of R, G, and B.
Each of -G plane, RB plane, and BG plane
A three-dimensional color space was extracted, and the color distribution in a general natural image was analyzed. As a result, there was little white and black, and the color distribution was concentrated on the diagonal lines of R and G, R and B, and B and G. ,
An arbitrary value located near the diagonal line of each two-dimensional color space is selected, and based on the selected value, a B value, a G value, and an R value are assigned to each quarter palette, and the remaining 1
A color palette generation method that prevents degradation of image quality and realizes high-speed processing by generating a fixed color palette of limited colors by equally assigning R, G, and B values to a パ レ ッ ト palette It is intended to provide the device.

【0007】また、R、G、B各nビットで表現される
3n色を、表示装置が持つ仕様に基づき、R、G、B各
m(但し、n>m)ビットで表現される23m色に間引
き、カラーパレットにマッチしたテーブルを23m色分あ
らかじめ用意し、当該テーブルを参照することによって
色の割り当て処理を行うことにより、三次元の距離計算
処理を不要とし、ソフトウェアを含むコントローラの負
担を軽減し、かつ、高速処理を実現したカラーパレット
生成および参照方法ならびにその装置を提供することも
目的とする。
Further, 23n colors represented by n bits of R, G, and B are represented by m bits (where n> m) of R, G, and B based on the specifications of the display device. A controller including software that eliminates the need for three-dimensional distance calculation processing by thinning down to 3m colors and preparing a table that matches the color palette in advance for 23m colors and performing color assignment processing by referring to the table It is another object of the present invention to provide a method for generating and referencing a color palette, which realizes high-speed processing while reducing the burden on the user, and an apparatus therefor.

【0008】[0008]

【課題を解決するための手段】上記した課題を解決する
ために請求項1に記載の発明は、フルカラー表現される
画像データを、カラーパレットを用いることによって限
定色表示するカラーディスプレイシステムにおいて、
R、G、Bの3軸を持つ3次元色空間から、R−Gプレ
ーン、R−Bプレーン、B−Gプレーンの各2次元色空
間を抽出し、前記それぞれの2次元色空間の対角線近傍
に位置する任意の色値を選択し、当該選択した色値に基
づき、各1/4のパレットに、それぞれB値、G値、R
値を割り当て、残る1/4のパレットに、R値、G値、
B値を均等に割り当てることによって前記限定色の固定
カラーパレットを生成することとした。このことによ
り、画質の劣化が目立たなくなり、また、メディアンカ
ットカラー量子化のための計算が不要となるため、パレ
ット作成に要する時間を縮小することができる。
According to an aspect of the present invention, there is provided a color display system for displaying image data expressed in full color in a limited color by using a color palette.
From the three-dimensional color space having three axes of R, G, and B, two-dimensional color spaces of RG plane, RB plane, and BG plane are extracted, and the diagonal neighborhood of the two-dimensional color space is extracted. , And based on the selected color value, a B value, a G value, and an R value
Assign values and assign R value, G value,
The fixed color palette of the limited color is generated by uniformly assigning the B value. As a result, the deterioration of the image quality is not noticeable, and the calculation for the median cut color quantization becomes unnecessary, so that the time required for creating the palette can be reduced.

【0009】請求項2に記載の発明は、請求項1に記載
のカラーパレット生成方法に加えて、R・G・B各nビ
ットで表現される23n色を、RGB各m(但し、n>
m)ビットで表現される23m色に間引き、前記限定色の
固定カラーパレットに割り当てられるテーブルを23m
分あらかじめ用意し、当該テーブルを参照することによ
って前記固定された限定色の割り当てを行うこととし
た。このことにより、三次元の距離計算処理が不要とな
るため、ソフトウェアを含むコントローラの負担が軽減
され、かつ、高速処理を実現することができる。
According to a second aspect of the present invention, in addition to the color pallet generating method of the first aspect, a 23n color represented by n bits of each of RGB is converted to m (where n >
m) thinning 2 3m color represented by bits, the table assigned to the limited color fixed color palette 2 3m and color separation prepared in advance, and allocates a limited color which is the fixed by referring to the table I decided that. This eliminates the need for three-dimensional distance calculation processing, thereby reducing the load on the controller including software and realizing high-speed processing.

【0010】請求項3に記載の発明は、フルカラー表現
される画像データを、パレットを用いることによって限
定色表示するカラーディスプレイシステムにおいて、あ
らかじめプログラムされた内容に基づき、R−Gプレー
ン、R−Bプレーン、B−Gプレーンの各2次元空間の
対角線近傍に位置する任意の色値を選択する手段と、当
該選択した値に基づき、各1/4のパレットに、それぞ
れB値、G値、R値を割り当て、残る1/4のパレット
にR値、G値、B値を均等に割り当てることによって前
記限定色の固定カラーパレットを生成する手段とを備え
ることとした。上記構成により、画質の劣化が目立たな
くなり、また、メディアンカットカラー量子化のための
計算が不要となるため、パレット作成に要する時間を縮
小したパレット生成装置を提供することができる。
According to a third aspect of the present invention, in a color display system for displaying image data expressed in full color in a limited color by using a pallet, an RGB plane, an RB plane and an RB plane are pre-programmed. Means for selecting an arbitrary color value located near the diagonal of each of the two-dimensional spaces of the plane and the BG plane; and, based on the selected values, B values, G values, R Means for generating a fixed color palette of the limited color by allocating values and equally allocating R, G, and B values to the remaining 1/4 pallet. According to the above configuration, the deterioration of the image quality is not noticeable, and the calculation for the median cut color quantization is not required. Therefore, it is possible to provide a pallet generation device in which the time required for pallet creation is reduced.

【0011】請求項4に記載の記載の発明は、請求項3
に記載のカラーパレット生成装置に加えて、RGB各n
ビットで表現される23n色を、表示装置が持つ仕様に基
づき、RGB各m(但し、n>m)ビットで表現される
3m色に間引き、前記限定色の固定カラーパレットに割
り当てられたテーブルを23m色分あらかじめ設定記憶す
る手段と、当該テーブルを参照することによって前記限
定色の割り当てを行うテーブル参照手段とを備えること
とした。上記構成により、三次元の距離計算処理が不要
となるため、ソフトウェアを含むコントローラの負担が
軽減され、かつ、高速処理を実現したカラーパレット生
成および参照装置を提供することができる。
The invention described in claim 4 is the third invention.
In addition to the color pallet generation device described in
The 23n colors represented by bits are thinned out to 23m colors represented by m (where n> m) bits of RGB based on the specifications of the display device, and are assigned to the fixed color palette of the limited color. A means for setting and storing a table for 23 m colors in advance and a table reference means for allocating the limited color by referring to the table are provided. According to the above configuration, a three-dimensional distance calculation process becomes unnecessary, so that a load on a controller including software is reduced, and a color pallet generation and reference device that realizes high-speed processing can be provided.

【0012】[0012]

【発明の実施の形態】以下、図面を参照して、カラーパ
レット生成および参照方法ならびにその装置の実施の形
態を説明する。図1は、本実施の形態におけるパレット
生成方法の基本概念を示す図である。図1は、写真等一
般自然画における色の分布を解析するために、(a)図
に示すR、G、Bの3軸を持つ3次元色空間から、
(b)図に示すR−Gプレーン、(c)図に示すR−B
プレーン、(d)図に示すB−Gプレーンの各2次元色
空間を抽出し、そのときの各プレーンにおける色の分布
をプロットしたものである。図1からわかるように、
白、黒に近い値が少なく、RとG、RとBおよびBとG
の対角線上に色の分布が集中していることがわかる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of a method for generating and referencing a color palette and an apparatus therefor will be described with reference to the drawings. FIG. 1 is a diagram illustrating a basic concept of a pallet generation method according to the present embodiment. FIG. 1 shows, in order to analyze the color distribution in a general natural image such as a photograph, a three-dimensional color space having three axes of R, G, and B shown in FIG.
(B) RG plane shown in the figure, (c) RB plane shown in the figure
The two-dimensional color spaces of the plane and the BG plane shown in FIG. 3D are extracted, and the color distribution in each plane at that time is plotted. As can be seen from FIG.
There are few values close to white and black, R and G, R and B, and B and G
It can be seen that the color distribution is concentrated on the diagonal line of.

【0013】そこで、本実施の形態のカラーパレット生
成方法は、図1の(e)図の表で示すように、それぞれ
の各プレーンにおける2次元色空間の対角線近傍に位置
する任意の値を選択し(例えば、(e)図中の、G:1
5とR:0、G:14とR:1、・・・、G:0とR:
15)、当該選択した値に基づき、各1/4のカラーパ
レットに、それぞれB値(例えば、(e)図中のB:
0,4,8,12)、G値、R値を割り当てる。さら
に、残る1/4のカラーパレットに、R値、G値、B値
を均等に割り当てることによって限定色の固定カラーパ
レットを生成するようにしたものである。
Therefore, the color palette generating method according to the present embodiment selects an arbitrary value located near the diagonal of the two-dimensional color space in each plane as shown in the table of FIG. (For example, G: 1 in FIG.
5 and R: 0, G: 14 and R: 1,..., G: 0 and R:
15) Based on the selected values, B values (for example, B:
0, 4, 8, 12), G value and R value are assigned. Further, a fixed color palette of limited colors is generated by equally assigning R, G, and B values to the remaining 1/4 color palette.

【0014】図2は、本発明のカラーパレット生成およ
び参照装置の実施の形態を示すブロック図である。図2
において、1は制御中枢となるCPUであり、プログラ
ムメモリ2に記録されたプログラムに従い表示制御を行
う他に、本実施の形態にかかわるパレットの生成、参照
を行う。3は、サーチテーブルメモリである。本実施の
形態では、R、G、B各8ビットからそれぞれ4ビット
に間引くことによって合計12ビットデータとし、カラ
ーパレットにマッチしたテーブルを4096個分あらか
じめ用意しておくものとし、画像表示時、このテーブル
メモリを参照することによってパレットメモリ6を選択
し、所望のカラー表示が行われるものとする。なお、図
3には、サーチテーブルメモリ3のデータ構造の一例を
示す。
FIG. 2 is a block diagram showing an embodiment of a color palette generation and reference device according to the present invention. FIG.
In the figure, reference numeral 1 denotes a CPU serving as a control center, which performs display control according to a program recorded in the program memory 2 and generates and refers to a pallet according to the present embodiment. 3 is a search table memory. In this embodiment, it is assumed that a total of 12-bit data is obtained by thinning out each of the R, G, and B bits from 8 bits to 4 bits, and 4096 tables matching the color palette are prepared in advance. The palette memory 6 is selected by referring to the table memory, and a desired color display is performed. FIG. 3 shows an example of the data structure of the search table memory 3.

【0015】4は、LCDコントローラである。LCD
コントローラ4は、CPU1によってプログラムされた
内容に基づき、例えば256色表示可能なLCD表示モ
ニタ7の駆動他、表示制御を行う。5は、画像データが
ビットマップ形式で書き込まれるビデオRAM(以下、
単にVRAMと称する)であり、パレットメモリ6への
インデックスを格納する機能をもつ。6は、図1に示す
方法に従い作成された256色固定のカラーパレットメ
モリである。8はバスであり、上記したCPU1、プロ
グラムメモリ2、サーチテーブルメモリ3、LCDコン
トローラ4、VRAM5が共通接続される。
Reference numeral 4 denotes an LCD controller. LCD
The controller 4 controls the display of the LCD display monitor 7 capable of displaying 256 colors, for example, based on the contents programmed by the CPU 1. 5 is a video RAM (hereinafter referred to as a video RAM) in which image data is written in a bitmap format.
(Hereinafter simply referred to as VRAM) and has a function of storing an index into the palette memory 6. Reference numeral 6 denotes a color pallet memory of 256 colors fixed according to the method shown in FIG. Reference numeral 8 denotes a bus to which the CPU 1, the program memory 2, the search table memory 3, the LCD controller 4, and the VRAM 5 are commonly connected.

【0016】以下、図1乃至図3を参照して、本実施の
形態のカラーパレット生成および参照装置の動作につい
て詳細に説明する。動作に先立ち、CPU1は、カラー
パレットメモリ6に固定のパレットデータを、サーチテ
ーブルメモリ3に、図3に示すマッチングテーブルをあ
らかじめ用意しておく必要がある。固定のパレットデー
タの生成は、図1にその基本概念が示されているよう
に、フルカラー表示可能な画像データを、カラーパレッ
トを用いることで限定色表示するものであり、R、G、
Bの3軸を持つ3次元色空間から、R−Gプレーン、R
−Bプレーン、B−Gプレーンの各2次元色空間を抽出
し、それぞれの2次元色空間の対角線近傍に位置する任
意の色値を選択し、当該選択した色値に基づき、各1/
4のパレットに、それぞれB値、G値、R値を割り当
て、残る1/4のパレットに、R値、G値、B値を均等
に割り当てることによってなされる。このようにして2
56限定色の固定カラーパレットデータを生成し、この
値をカラーパレットメモリ6に書き込んでおく。
Hereinafter, the operation of the color pallet generation and reference device according to the present embodiment will be described in detail with reference to FIGS. Prior to the operation, the CPU 1 needs to prepare fixed palette data in the color palette memory 6 and the matching table shown in FIG. 3 in the search table memory 3 in advance. As shown in FIG. 1, the fixed palette data is generated by displaying image data that can be displayed in full color in a limited color by using a color palette, as shown in FIG.
From a three-dimensional color space having three axes of B, R-G plane, R
-Extract each two-dimensional color space of the B plane and BG plane, select an arbitrary color value located near a diagonal line of each two-dimensional color space, and, based on the selected color value, each 1 /
This is achieved by assigning B, G, and R values to the four pallets, and equally assigning the R, G, and B values to the remaining パ レ ッ ト pallet. In this way 2
The fixed color palette data of 56 limited colors is generated, and this value is written in the color palette memory 6.

【0017】また、CPU1は、R、G、B各8ビット
で表現されるフルカラー色を、LCD表示装置が持つ仕
様に基づき、R、G、Bを、例えば各4ビットで表現さ
れる4096色に間引き、上記のようにして作成された
固定カラーパレットにマッチしたサーチテーブルを40
96色分あらかじめ用意しておく。このようにした作成
されたサーチテーブルをサーチテーブルメモリ3に書き
込んでおく。ここで作成されるサーチテーブルの内容は
図3に示されている。ホストから画像表示指令が到来し
たときに、CPU1はこのサーチテーブルメモリ3を参
照することによって色の割り当てを行い、LCDコント
ローラ4経由で表示処理を行う。
Further, the CPU 1 converts R, G, B into, for example, 4096 colors represented by 4 bits based on the specifications of the LCD display device, based on the specifications of the LCD display device. The search table that matches the fixed color palette created as described above is
Prepare 96 colors in advance. The search table thus created is written in the search table memory 3. The contents of the search table created here are shown in FIG. When an image display command arrives from the host, the CPU 1 performs color assignment by referring to the search table memory 3 and performs display processing via the LCD controller 4.

【0018】以上の処理の後、CPU1は、24ビット
フルカラー画像データ格納メモリ9に格納されている2
4ビットのフルカラー画像を、図3に示すサーチテーブ
ルメモリ3を参照することによって、各画素の最適なパ
レットのインデックス値(0〜255)を選択する。続
いて、CPU1は、選択したパレットのインデックス値
をビットマップの画素順にVRAM5に書き込む。そし
て、LCDコントローラ4は、VRAM5とパレットメ
モリ6のデータを基に、256色表示可能なLCD表示
モニタ7に画像を表示する。
After the above processing, the CPU 1 stores the data in the 24-bit full-color image data storage memory 9
By referring to the search table memory 3 shown in FIG. 3 for the 4-bit full-color image, an optimal palette index value (0 to 255) of each pixel is selected. Subsequently, the CPU 1 writes the index values of the selected palette to the VRAM 5 in the order of the pixels of the bitmap. Then, the LCD controller 4 displays an image on the LCD display monitor 7 capable of displaying 256 colors based on the data in the VRAM 5 and the palette memory 6.

【0019】以上説明のように、本実施の形態のカラー
パレット生成および参照装置は、R、G、Bの3軸を持
つ3次元色空間から、R−Gプレーン、R−Bプレー
ン、B−Gプレーンの各2次元色空間を抽出し、一般自
然画における色の分布を解析したところ、白、黒が少な
く、RとG、RとBおよびBとGの対角線上に色の分布
が集中していることから、それぞれの2次元色空間の対
角線近傍に位置する任意の値を選択し、当該選択した値
に基づき、各1/4のパレットに、それぞれB値、G
値、R値を割り当て、残る1/4のパレットに、R値、
G値、B値を均等に割り当てることによって制限色の固
定カラーパレットを生成することにより、画質の劣化を
防ぎ、かつ、高速処理を実現するものである。
As described above, the color pallet generation and reference device according to the present embodiment converts an RG plane, an RB plane, and a B-plane from a three-dimensional color space having three axes of R, G, and B. When the two-dimensional color space of the G plane is extracted and the color distribution in a general natural image is analyzed, there are few white and black, and the color distribution is concentrated on the diagonal lines of R and G, R and B, and B and G. Therefore, an arbitrary value located near the diagonal of each two-dimensional color space is selected, and based on the selected value, a B value and a G value are respectively stored in each quarter palette.
Value, R value and assign R value,
By generating a fixed color palette of limited colors by equally assigning the G value and the B value, deterioration of image quality is prevented and high-speed processing is realized.

【0020】また、R、G、B各nビットで表現される
3n色を、表示装置が持つ仕様に基づきR、G、B各m
(但し、n>m)ビットで表現される23m色に間引き、
カラーパレットにマッチしたテーブルを23m色分あらか
じめ用意し、当該テーブルを参照することによって色の
割り当て処理を行うことにより、三次元の距離計算処理
を不要とし、ソフトウェアを含むコントローラの負担を
軽減し、かつ、高速処理を実現するものである。
The 23n color represented by n bits of each of R, G, and B is converted to m, each of R, G, and B based on the specifications of the display device.
(However, thinning out to 23m color represented by (n> m) bits)
A table matching the color palette is prepared in advance for 23m colors, and color allocation processing is performed by referring to the table, thereby eliminating the need for three-dimensional distance calculation processing and reducing the load on the controller including software. In addition, high-speed processing is realized.

【0021】[0021]

【発明の効果】以上説明のように請求項1に記載の発明
によれば、自然画を解析して得た色の分布に従い、R−
G、R−B、B−Gのそれぞれの二次元空間から対角線
上の値を選択し、当該選択した値をもとに、R−Gの場
合はB値を、R−Bの場合はG値を、B−Gの場合はR
値を均等に割り振ってパレットの空きをRGB均等割の
値で埋めるルールに従い固定パレットを作成することに
より、フルカラー画像を劣化させずに表現できる。ま
た、請求項2に記載の発明によれば、RGBそれぞれを
例えば4ビットに間引き、12ビットデータとして処理
することにより、固定のカラーパレットにマッチしたテ
ーブルを212(4096個)あらかじめ用意し、カラー
マッチングはこのテーブルを参照することにより、三次
元距離計算による近似計算が不要となって高速処理を実
現できる。
As described above, according to the first aspect of the present invention, the R-value is calculated according to the color distribution obtained by analyzing a natural image.
A diagonal value is selected from each of the two-dimensional spaces of G, RB, and BG, and based on the selected value, the B value is obtained for RG, and the G value is obtained for RB. The value is R for BG
By creating a fixed palette according to the rule of equally allocating the values and filling the empty space of the pallet with the value of the RGB equal allocation, a full-color image can be expressed without deterioration. According to the second aspect of the present invention, each of the RGB is thinned to, for example, 4 bits and processed as 12-bit data, thereby preparing 2 12 (4096) tables matching the fixed color palette in advance. In color matching, by referring to this table, approximation calculation by three-dimensional distance calculation becomes unnecessary, and high-speed processing can be realized.

【0022】請求項3によれば、画質の劣化が目立たな
くなり、また、メディアンカットカラー量子化のための
計算が不要となるため、パレット作成に要する時間を縮
小することができ、従って、高速CPUを用いる必要が
なく、小容量のVRAMで実現が可能なパレット生成装
置を提供することができる。また、請求項4に記載の発
明によれば、三次元の距離計算処理が不要となるため、
ソフトウェアを含むコントローラの負担が軽減され、か
つ、高速処理を実現したカラーパレット生成および参照
装置を提供することができる。
According to the third aspect, the deterioration of the image quality is not noticeable, and the calculation for the median cut color quantization is not required. It is possible to provide a pallet generation device that can be realized by a small-capacity VRAM without using a pallet. According to the fourth aspect of the present invention, a three-dimensional distance calculation process is not required.
It is possible to provide a color pallet generation and reference device that reduces the load on a controller including software and realizes high-speed processing.

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

【図1】本実施の形態に係るパレット生成方法の基本概
念を示した図であり、(a)はR、G、Bの3軸を持つ
3次元色空間であり、(b)はR−Gプレーンの2次元
色空間であり、(c)はR−Bプレーンの2次元色空間
であり、(d)はB−Gプレーンの2次元色空間であ
り、(e)は各カラーパレットを構成するための表であ
る。
FIG. 1 is a diagram showing a basic concept of a palette generation method according to the present embodiment, where (a) is a three-dimensional color space having three axes of R, G, and B, and (b) is an R-color space; (C) is a two-dimensional color space of an RB plane, (d) is a two-dimensional color space of a BG plane, and (e) is a color space of each color palette. It is a table to configure.

【図2】本実施の形態に係るカラーパレット生成および
参照装置を示すブロック図である。
FIG. 2 is a block diagram showing a color palette generation and reference device according to the present embodiment.

【図3】図2に示すサーチテーブルメモリのデータ構造
を示す図である。
FIG. 3 is a diagram showing a data structure of a search table memory shown in FIG.

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

1・・・CPU 2・・・プログラムメモリ 3・・・サーチテーブルメモリ 4・・・LCDコントローラ 5・・・ビデオRAM(VRAM) 6・・・パレットメモリ 7・・・256色LCD表示モニタ DESCRIPTION OF SYMBOLS 1 ... CPU 2 ... Program memory 3 ... Search table memory 4 ... LCD controller 5 ... Video RAM (VRAM) 6 ... Palette memory 7 ... 256 color LCD display monitor

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 CA12 CA16 CB12 CB16 CE17 CE18 CH18 DB06 5C060 BA09 BB01 BC01 DB00 HB27 JA18 5C066 AA13 CA00 CA08 CA23 EB02 EF04 GA02 KD06 KE09 KE17 KM13 LA03 5C079 HB01 LA02 LA28 LA31 LB02 MA04 MA17 NA02 NA11 PA05 5C082 AA01 BA34 BB15 BB51 BB53 CA12 CA54 DA53 DA71 DA73 MM10  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5B057 CA12 CA16 CB12 CB16 CE17 CE18 CH18 DB06 5C060 BA09 BB01 BC01 DB00 HB27 JA18 5C066 AA13 CA00 CA08 CA23 EB02 EF04 GA02 KD06 KE09 KE17 KM13 LA03 5C079 HB01 LA02 MA28 LA28 NA11 PA05 5C082 AA01 BA34 BB15 BB51 BB53 CA12 CA54 DA53 DA71 DA73 MM10

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 フルカラー表現される画像データをカラ
ーパレットを用いることによって限定色表示するカラー
ディスプレイシステムにおいて、 R、G、Bの3軸を持つ3次元色空間から、R−Gプレ
ーン、R−Bプレーン、B−Gプレーンの各2次元色空
間を抽出し、 前記それぞれの2次元色空間の対角線近傍に位置する任
意の色値を選択し、 当該選択した色値に基づき、各1/4のパレットに、そ
れぞれB値、G値、R値を割り当て、残る1/4のパレ
ットに、R値、G値、B値を均等に割り当てることによ
って前記限定色の固定カラーパレットを生成する、 ことを特徴とするカラーパレット生成方法。
1. A color display system for displaying image data expressed in full color in a limited color by using a color palette, comprising: a three-dimensional color space having three axes of R, G, and B; Each two-dimensional color space of the B plane and BG plane is extracted, and an arbitrary color value located near a diagonal line of each of the two-dimensional color spaces is selected. Generating a fixed color palette of the limited color by assigning a B value, a G value, and an R value to each of the palettes, and equally assigning an R value, a G value, and a B value to the remaining 1/4 of the palette. A color palette generation method characterized by the following.
【請求項2】 請求項1に記載のカラーパレット生成方
法に加えて、 R、G、B各nビットで表現される23n色を、表示装置
が持つ仕様に基づき、R、G、B各m(但し、n>m)
ビットで表現される23m色に間引き、 前記限定色の固定カラーパレットに割り当てられるテー
ブルを23m色分あらかじめ用意し、当該テーブルを参照
することによって前記固定された限定色の割り当てを行
う、 ことを特徴とするカラーパレット生成および参照方法。
2. The method according to claim 1, further comprising the step of: generating 23n colors represented by n bits of R, G, and B based on the specifications of the display device. m (where n> m)
Thinning out to 23m colors represented by bits, preparing a table assigned to the fixed color palette of the limited colors for the 23m colors in advance, and allocating the fixed limited colors by referring to the table; And a method for generating and referencing a color palette.
【請求項3】 フルカラー表現される画像データに関
し、パレットを用いることによって限定色表示するカラ
ーディスプレイシステムにおいて、 あらかじめプログラムされた内容に基づき、R−Gプレ
ーン、R−Bプレーン、B−Gプレーンの各2次元色空
間の対角線近傍に位置する任意の色値を選択する手段
と、 当該選択した値に基づき、各1/4のパレットに、それ
ぞれB値、G値、R値を割り当て、残る1/4のパレッ
トにR値、G値、B値を均等に割り当てることによって
前記限定色の固定カラーパレットを生成する手段と、 を備えることを特徴とするカラーパレット生成装置。
3. A color display system for displaying limited color by using a palette with respect to image data expressed in full color, wherein a color plane of an RG plane, an RB plane, and a BG plane based on contents programmed in advance. Means for selecting an arbitrary color value located near the diagonal of each two-dimensional color space; and assigning a B value, a G value, and an R value to each quarter palette based on the selected value, and Means for generating a fixed color palette of the limited color by equally assigning R, G, and B values to a パ レ ッ ト palette.
【請求項4】 請求項3に記載のカラーパレット生成装
置に加えて、 R、G、B各nビットで表現される23n色を、表示装置
が持つ仕様に基づき、R、G、B各m(但し、n>m)
ビットで表現される23m色に間引き、前記限定色の固定
カラーパレットに割り当てられたテーブルを23m色分あ
らかじめ設定記憶する手段と、 当該テーブルを参照することによって前記限定色の割り
当てを行うテーブル参照手段と、 を備えることを特徴とするカラーパレット生成および参
照装置。
4. In addition to the color pallet generation device according to claim 3, 23.sup.n colors represented by n bits of each of R, G, and B are set based on the specifications of the display device. m (where n> m)
Thinning 2 3m color represented by bit, performed means for 2 3m color separation preset stores a table assigned to a fixed color palette of the limited color, the allocation of the limited color by referring to the table the table A reference device, comprising: a color palette generation and reference device.
JP2000119731A 2000-04-20 2000-04-20 Color palette generating and referring method and its device Withdrawn JP2001306055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000119731A JP2001306055A (en) 2000-04-20 2000-04-20 Color palette generating and referring method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000119731A JP2001306055A (en) 2000-04-20 2000-04-20 Color palette generating and referring method and its device

Publications (1)

Publication Number Publication Date
JP2001306055A true JP2001306055A (en) 2001-11-02

Family

ID=18630656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000119731A Withdrawn JP2001306055A (en) 2000-04-20 2000-04-20 Color palette generating and referring method and its device

Country Status (1)

Country Link
JP (1) JP2001306055A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010016533A (en) * 2008-07-02 2010-01-21 Kyocera Mita Corp Image processor, image processing method and image processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010016533A (en) * 2008-07-02 2010-01-21 Kyocera Mita Corp Image processor, image processing method and image processing program

Similar Documents

Publication Publication Date Title
US5233684A (en) Method and apparatus for mapping a digital color image from a first color space to a second color space
JP2582999B2 (en) Color palette generation method, apparatus, data processing system, and lookup table input generation method
US5546518A (en) System and method for composing a display frame of multiple layered graphic sprites
EP0384879A2 (en) Apparatus and method for color selection
JP2003092690A (en) Image data processing method, apparatus, storage medium and program
EP2890107A1 (en) Method of mapping source colors of images of a video content into the target color gamut of a target color device
JPH06274138A (en) Method and device for color data control
CN1107936C (en) Programmable display device
US8791954B2 (en) Systems and methods for combining images into a file using multiple color palettes
JP2001306055A (en) Color palette generating and referring method and its device
EP0403081A1 (en) Colour display
CN112309312A (en) Image display method and device, receiving card, sending card and LED display system
EP0497599B1 (en) Image processing apparatus
EP0413483B1 (en) A display system
JP2000310987A (en) Picture display device
JPH0767136B2 (en) Image processing device
JPH02170770A (en) Image processor
JP3304381B2 (en) Image processing device having contour extraction function
JPH0822556A (en) Texture mapping device
JPH1074248A (en) Color reduction device and color reduction method
JP3034402B2 (en) Color image reduction apparatus and method
JPH05290133A (en) Color image processor
JP2989261B2 (en) Coloring equipment
JPH0227483A (en) Picture editing device
JPH0721379A (en) Picture color area recognition device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070703