JP2002218500A - Subtractive color processor - Google Patents

Subtractive color processor

Info

Publication number
JP2002218500A
JP2002218500A JP2001015397A JP2001015397A JP2002218500A JP 2002218500 A JP2002218500 A JP 2002218500A JP 2001015397 A JP2001015397 A JP 2001015397A JP 2001015397 A JP2001015397 A JP 2001015397A JP 2002218500 A JP2002218500 A JP 2002218500A
Authority
JP
Japan
Prior art keywords
color
component
palette
colors
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001015397A
Other languages
Japanese (ja)
Inventor
Natsuyuki Ono
奈津志 小野
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 JP2001015397A priority Critical patent/JP2002218500A/en
Publication of JP2002218500A publication Critical patent/JP2002218500A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a subtractive color processor that can generate palette data without the use of a histogram memory, reduce the arithmetic amount and display a natural image. SOLUTION: The subtractive color processor is provided with an RGB color component histogram generating section 11 that converts a YUV color component obtained from a low frequency component extract section into an RGB component and counts its frequency distribution, a palette storage section 7 that stores an image pallet after the subtractive color processing, a palette generating section 6 that extracts the color component having much frequency distribution from the RGB color component histogram generating section 11 with priority and registers it to the palette storage section 7, a subtractive color processing section 8 that finds out the closest color from the palette storage section 7, converts it into a color code given to a selected palette color and stores the converted code into a subtractive color processing image frame memory, and the subtractive color processing image frame memory 9 that stores relation showing which color registered in the palette storage section 7 is closest to each pixel after the subtractive color processing while making the relation correspond to the pixel position of an original image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、演算資源が限られ
ている携帯端末装置等の表示において利用される減色処
理に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a color reduction process used in a display of a portable terminal device or the like having a limited calculation resource.

【0002】[0002]

【従来の技術】近年、画像の表示を行う端末が急速に普
及している。このような端末は装置のコストを低く押さ
えるために表示可能な色の数を256色程度に制限し、
表示のためのメモリを節約することが多い。このような
制限があっても文書や表などの用途については十分な表
示能力であるが、写真などの自然な画像を表示するため
には、24ビット程度で表現された画像を8ビットで表
現するために減色処理を行う必要があり、この減色の方
法により画質は大きく影響される。そのため、できるだ
け演算量と使用するメモリとを少なくして、高い画質を
実現するという要求が高まっている。
2. Description of the Related Art In recent years, terminals for displaying images have rapidly become widespread. Such terminals limit the number of colors that can be displayed to about 256 colors in order to keep the cost of the device low,
Often saves memory for display. Despite these limitations, the display capability is sufficient for applications such as documents and tables. However, in order to display natural images such as photographs, images represented by about 24 bits are represented by 8 bits. For this purpose, it is necessary to perform a color reduction process, and the image quality is greatly affected by the color reduction method. Therefore, there is an increasing demand for realizing high image quality by reducing the amount of calculation and the memory used as much as possible.

【0003】減色の有効な手段の一つとして、数万色の
中から必要な256色を選択して表示を行う適応パレッ
ト方式がある。以下に、従来の減色処理装置についで説
明する。
[0003] As one of effective means of color reduction, there is an adaptive pallet system in which necessary 256 colors are selected from tens of thousands of colors and displayed. Hereinafter, a conventional color reduction processing device will be described.

【0004】図1は、従来の減色処理装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram showing a configuration of a conventional color reduction processing apparatus.

【0005】従来の減色処理装置は図1に示すように、
DCTを利用した圧縮データ1を復号する復号化器2
と、復号化器2から出力されるフルカラーで表現された
フルカラーデータ(カラー画像データ)を記録する画像
メモリとしての原画像フレームメモリ3と、原画像フレ
ームメモリを参照して、どの色がどういう頻度で使われ
ているかをカウントするヒストグラム生成部4と、ヒス
トグラム生成部4で生成されたヒストグラムを記録する
ヒストグラムメモリ5と、ヒストグラムメモリ5上に作
成されたヒストグラムを基にカラー画像の表示の際に使
用するパレット色を選択し、パレットデータpを作成す
るパレット生成部6と、パレット生成部6が出力したパ
レットデータpとこれに対応するカラーコードの対応関
係を記録するパレット記憶部7と、パレット記憶部7に
記憶されたパレット色で原画像フレームメモリ3に記憶
されたフルカラーデータを、前述のパレット色で近似し
て、8ビットの符号で表されたカラーコードに変換する
減色部8と、減色部4から出力されるカラーコードを記
憶する減色画像フレームメモリ9を備えて構成されてい
る。
[0005] As shown in FIG.
Decoder 2 for decoding compressed data 1 using DCT
The original image frame memory 3 as an image memory for recording full color data (color image data) expressed in full color output from the decoder 2, and the frequency of what color is referred to the original image frame memory A histogram generation unit 4 for counting whether or not the image is used in the histogram generation unit, a histogram memory 5 for recording the histogram generated by the histogram generation unit 4, and a color image display based on the histogram generated on the histogram memory 5. A palette generation unit 6 for selecting a palette color to be used and generating palette data p; a palette storage unit 7 for recording the correspondence between the palette data p output by the palette generation unit 6 and the corresponding color code; Full color stored in the original image frame memory 3 with the palette color stored in the storage unit 7 A color reduction unit 8 for approximating the data with the above-mentioned palette color and converting it into a color code represented by an 8-bit code, and a color reduction image frame memory 9 for storing the color code output from the color reduction unit 4. It is configured.

【0006】上記の各構成部よりなる従来の減色処理装
置について、図2のフローチャートを用いてその動作を
説明をする。
The operation of the conventional color reduction processing apparatus having the above-described components will be described with reference to the flowchart of FIG.

【0007】ステップ2−1 まずはじめに、復号化器2は、可変長復号化、逆量子化
および逆DCTにより各画素の色データを算出し、得ら
れたカラー画像データを原画像フレームメモリ3に保存
する。
Step 2-1 First, the decoder 2 calculates color data of each pixel by variable length decoding, inverse quantization and inverse DCT, and stores the obtained color image data in the original image frame memory 3. save.

【0008】ステップ2−2 次に、ヒストグラム生成部4は、原画像フレームメモリ
3に保存された色データを基に色のヒストグラムを生成
し、その結果をヒストグラムメモリ5に記憶する。
Step 2-2 Next, the histogram generator 4 generates a color histogram based on the color data stored in the original image frame memory 3, and stores the result in the histogram memory 5.

【0009】ステップ2−3 次に、パレットデータ作成部6は、ヒストグラムメモリ
5から読み出したヒストグラムを基にカラー画像の表示
の際に使用するパレット色を選択し、パレットデータp
を作成し、パレット記憶部7に書きこむ。つまり、与え
られた画像の中でどの色がどのくらいの度数で使われて
いるかという情報を基に、与えられた画像の中での色分
布を適切にカバーするパレットを選択する。このパレッ
ト選択アルゴリズムには、「動的分割法」などの既存ア
ルゴリズムが用いられることが多い。
Step 2-3 Next, the palette data creating section 6 selects a palette color to be used for displaying a color image based on the histogram read out from the histogram memory 5, and sets the palette data p.
Is created and written in the pallet storage unit 7. That is, based on information on which colors are used and in what frequency in a given image, a palette that appropriately covers the color distribution in the given image is selected. Existing algorithms such as the “dynamic partitioning method” are often used as the palette selection algorithm.

【0010】ステップ2−4 次に、減色部8は、パレット記憶部7のパレットデータ
の中でもっとも近い色を既存のアルゴリズムを用いて検
索し、各画素の色を近似(量子化)する。その近似され
た色を記号(カラーコード)に変換して減色画像フレー
ムメモリ9に書き込む。
Step 2-4 Next, the color reduction unit 8 retrieves the closest color from the palette data in the palette storage unit 7 using an existing algorithm, and approximates (quantizes) the color of each pixel. The approximated color is converted into a symbol (color code) and written into the reduced color image frame memory 9.

【0011】[0011]

【発明が解決しようとする課題】このように、従来の減
色処理装置では、ヒストグラムメモリを必要とするた
め、膨大なメモリ容量によるコストアップとヒストグラ
ム作成のための演算に伴う消費電力の増加とを発生する
という問題を有していた。
As described above, since the conventional color reduction processing apparatus requires a histogram memory, the cost is increased due to the enormous memory capacity and the power consumption due to the calculation for generating the histogram is increased. Had the problem of occurring.

【0012】本発明は前記従来の問題に留意し、演算量
を削減でき、消費電力を削減できる減色処理装置を提供
することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a color reduction processing apparatus which can reduce the amount of calculation and the power consumption while paying attention to the conventional problems.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するため
に本発明は、DCTを使った圧縮データを伸張する復号
化器と、前記復号化器から圧縮データを伸長するときに
得られたDCT係数のDC成分および低次AC成分を抽
出する低周波成分抽出部と、前記復号化器が出力した伸
張後の画像を記憶する原画像フレームメモリと、前記低
周波成分抽出部から得られたYUV色成分をRGB成分
に変換して度数分布としてカウントするRGB色成分ヒ
ストグラム生成部と、減色後の画像のパレットを記憶す
るためのパレット記憶部と、前記RGB色成分ヒストグ
ラム生成部の出力から度数の多い色成分を優先的に抜出
してパレット記憶部に登録するパレット生成部と、原画
像フレームメモリ内の各画素の色成分に対して、パレッ
ト記憶部に登録されている各色成分とを比較し、もっと
も近い色をパレット記憶部の中から探し出し、前記選択
したパレット色に対して与えられたカラーコードに変換
して減色画像フレームメモリに記録する減色部と、減色
後の各画素がパレット記憶部に登録されたどの色ともっ
とも近いかを原画像の画素位置と対応付けて記憶する減
色画像フレームメモリとを有する構成の減色処理装置と
する。
To achieve the above object, the present invention provides a decoder for expanding compressed data using DCT, and a DCT obtained when expanding compressed data from the decoder. A low-frequency component extracting unit for extracting a DC component and a low-order AC component of a coefficient; an original image frame memory for storing an expanded image output by the decoder; and a YUV obtained from the low-frequency component extracting unit. An RGB color component histogram generation unit that converts a color component into an RGB component and counts it as a frequency distribution, a palette storage unit for storing a palette of images after color reduction, and a frequency count based on the output of the RGB color component histogram generation unit. A palette generation unit that preferentially extracts a large number of color components and registers the extracted color components in the palette storage unit, and registers a color component of each pixel in the original image frame memory in the palette storage unit. A color reduction unit that compares the selected color component with the color components, finds the closest color from the palette storage unit, converts the selected color to a given color code, and records the color code in the color reduction image frame memory. A color reduction processing apparatus having a color reduction image frame memory for storing which color of each subsequent pixel is closest to which color registered in the palette storage unit in association with the pixel position of the original image.

【0014】本発明によれば、ヒストグラムを記憶する
ためのメモリを使わずにパレットデータを作成すること
ができ、また、画像全体のヒストグラムを作成する処理
を行わないことにより演算量を削減することができ、消
費電力を削減できる減色処理装置が得られる。
According to the present invention, pallet data can be created without using a memory for storing a histogram, and the amount of calculation can be reduced by not performing processing for creating a histogram of the entire image. And a color reduction processing device capable of reducing power consumption can be obtained.

【0015】[0015]

【発明の実施の形態】本発明の請求項1に記載の発明
は、DCTを使った圧縮データを伸張する復号化器と、
前記復号化器から圧縮データを伸長するときに得られた
DCT係数のDC成分および低次AC成分を抽出する低
周波成分抽出部と、前記復号化器が出力した伸張後の画
像を記憶する原画像フレームメモリと、前記低周波成分
抽出部から得られたYUV色成分をRGB成分に変換し
て度数分布としてカウントするRGB色成分ヒストグラ
ム生成部と、前記RGB色成分ヒストグラム生成部の出
力から度数の多い色成分を優先的に抜出してパレット記
憶部に登録するパレット生成部と、減色後の画像のパレ
ットを記憶するためのパレット記憶部と、原画像フレー
ムメモリ内の各画素の色成分に対して、パレット記憶部
に登録されている各色成分とを比較し、もっとも近い色
をパレット記憶部の中から探し出し、前記選択したパレ
ット色に対して与えられたカラーコードに変換して減色
画像フレームメモリに記録する減色部と、減色後の各画
素がパレット記憶部に登録されたどの色ともっとも近い
かを原画像の画素位置と対応付けて記憶する減色画像フ
レームメモリとを有する減色処理装置であり、圧縮され
た画像データ(圧縮データ)を伸張する前にパレット色
を選択してパレットデータの作成を行い、順次パレット
色に近似して直接減色画像フレームメモリに書き込むこ
とができるので、パレットデータ作成のためのヒストグ
ラムを記憶するヒストグラムメモリを削除することがで
きるという作用を有する。また、表示のための色を低周
波成分抽出部既出力のDC成分および低次AC成分によ
り生成される色から選択することにより、色の選択のた
めの演算を大幅に削減することができ、携帯端末装置な
どでは極めて重要となる消費電力を削減することができ
るという作用を有する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The invention according to claim 1 of the present invention provides a decoder for expanding compressed data using DCT,
A low-frequency component extraction unit for extracting a DC component and a low-order AC component of a DCT coefficient obtained when the compressed data is expanded from the decoder, and an original storing an expanded image output from the decoder. An image frame memory, an RGB color component histogram generation unit that converts the YUV color component obtained from the low frequency component extraction unit into an RGB component and counts it as a frequency distribution, and calculates a frequency from the output of the RGB color component histogram generation unit. A palette generation unit that preferentially extracts many color components and registers them in a palette storage unit, a palette storage unit that stores a palette of images after color reduction, and a color component of each pixel in the original image frame memory. , Comparing each color component registered in the palette storage unit, searching for the closest color from the palette storage unit, and assigning the color to the selected palette color. A color reduction unit that converts the color code into a color code and stores the color code in the color reduction image frame memory, and which color each pixel after color reduction is closest to the color registered in the palette storage unit is stored in association with the pixel position of the original image. A color reduction processing apparatus having a color reduction image frame memory, which selects palette colors before decompressing compressed image data (compressed data), creates palette data, and sequentially approximates the palette colors to directly reduce color images. Since the data can be written in the frame memory, the histogram memory for storing the histogram for creating the pallet data can be deleted. In addition, by selecting a color for display from a DC component already output from the low-frequency component extraction unit and a color generated by the low-order AC component, it is possible to greatly reduce the calculation for selecting the color. This has the effect of reducing power consumption, which is extremely important in mobile terminal devices and the like.

【0016】本発明の請求項2に記載の発明は、請求項
1に記載の減色処理装置にAC成分次数指定部を加えた
構成の減色処理装置であり、ユーザが自由にAC成分の
次数を指定できるので、「何色にまで減色したいか」に
よって、たとえば、「256色なら1次まで」、あるい
は、「4096色なら3次」まで、などというように、
目標色数によってより高精度な減色処理を行うことがで
きるという作用を有する。
According to a second aspect of the present invention, there is provided a color reduction processing apparatus having a configuration in which an AC component order designation unit is added to the color reduction processing apparatus according to the first aspect, wherein a user can freely set the order of the AC component. Depending on how many colors you want to reduce, for example, "up to first order for 256 colors" or "up to third order for 4096 colors"
There is an effect that more accurate color reduction processing can be performed depending on the target number of colors.

【0017】本発明の請求項3に記載の発明は、請求項
2に記載の減色処理装置に「明−暗度数線形補正部」を
加えた構成の減色処理装置であり、人間の目が暗いとこ
ろより明るいところで色に敏感であるという性質を利用
し、明るい色ほど度数を水増してカウントするので、明
るい色が優先的にパレットに登録され見た目上の減色画
像の品質が向上するという作用を有する。
According to a third aspect of the present invention, there is provided a color reduction processing apparatus having a configuration in which a "brightness-darkness frequency linearity correction unit" is added to the color reduction processing apparatus according to the second aspect, wherein human eyes are dark. However, utilizing the property of being sensitive to colors in brighter places, the higher the frequency, the higher the frequency, and the higher the frequency is counted, so that the bright colors are preferentially registered in the palette and have the effect of improving the quality of the apparently reduced color image. .

【0018】本発明の請求項4に記載の発明は、請求項
1に記載の減色処理装置におけるRGB色成分ヒストグ
ラム生成部の代わりに、YUV色成分ヒストグラム生成
部を設けた構成の減色処理装置であり、人間の目がUV
成分よりY成分に敏感であるという性質を利用しY成分
の分解能をUV成分に比べて高くして、「Y成分のわず
かな差でも、別の色としてパレットに登録する」ことが
できるので、人間の視覚上、減色画像の品質が向上する
という作用を有する。
According to a fourth aspect of the present invention, there is provided a color reduction processing apparatus having a configuration in which a YUV color component histogram generation section is provided instead of the RGB color component histogram generation section in the color reduction processing apparatus according to the first aspect. Yes, human eyes are UV
Since the resolution of the Y component is higher than that of the UV component using the property of being more sensitive to the Y component than the component, it is possible to “register even a slight difference in the Y component as a different color in the palette”. This has the effect of improving the quality of the color-reduced image in human vision.

【0019】本発明の請求項5に記載の発明は、請求項
1に記載の減色処理装置における低周波成分抽出部の代
わりに、低周波成分順次抽出部を設けた構成の減色処理
装置であり、パレットが期待している色数まで埋まらな
い場合には、低周波順次抽出部によって次に次数の高い
AC成分のデータを抽出できるので、抽出されたパレッ
ト中の色分布を徐々に充実させていくことができ、高品
位の減色画像を得ることができるという作用を有する。
According to a fifth aspect of the present invention, there is provided a color reduction processing apparatus having a configuration in which a low frequency component sequential extraction unit is provided instead of the low frequency component extraction unit in the color reduction processing apparatus according to the first aspect. If the palette does not fill the expected number of colors, the low-frequency sequential extraction unit can extract the data of the next higher-order AC component, so that the color distribution in the extracted palette is gradually enhanced. And a high-quality color-reduced image can be obtained.

【0020】以下、本発明の実施の形態について図面を
参照して説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.

【0021】(実施の形態1)図3は、本発明の実施の
形態1の減色処理装置の構成を示すブロック図である。
なお、前記従来例と同じ構成部には、従来例と同じ符号
を付与する。
(Embodiment 1) FIG. 3 is a block diagram showing a configuration of a color reduction processing apparatus according to Embodiment 1 of the present invention.
The same components as those in the conventional example are denoted by the same reference numerals.

【0022】本発明の実施の形態1の減色処理装置は、
図3に示すようにDCTを利用した圧縮データ1を復号
する復号化器2と、復号化器2から出力されるフルカラ
ーで表現されたフルカラーで表示されたフルカラーデー
タ(カラー画像データ)を記録する画像メモリとしての
原画像フレームメモリ3と、復号化器2を参照し、DC
成分および低次AC成分を抽出する低周波成分抽出部1
0と、低周波成分抽出部10の出力を参照し画像全体に
渡って、出現する色毎の度数をカウントするRGB色成
分ヒストグラム生成部11と、RGB色成分ヒストグラ
ム生成部11を参照し、高い頻度で使われている色を優
先的にパレット色として選択し、パレットデータpを作
成するパレット生成部6と、パレット生成部6が出力し
たパレットデータpとこれに対応するカラーコードの対
応関係を記録するパレット記憶部7と、パレット記憶部
7に記憶されたパレット色で原画像フレームメモリ3に
記憶されたフルカラーデータを、前述のパレット色で近
似して、8ビットの符号で表されたカラーコードに変換
する減色部8と、減色部4から出力されるカラーコード
を記憶する減色画像フレームメモリ9を備えて構成され
ている。
The color reduction processing device according to the first embodiment of the present invention
As shown in FIG. 3, a decoder 2 for decoding compressed data 1 using DCT, and full-color data (color image data) output from the decoder 2 and displayed in full color are recorded. Referring to the original image frame memory 3 as an image memory and the decoder 2, DC
Low frequency component extraction unit 1 for extracting low frequency components and low order AC components
The RGB color component histogram generator 11 and the RGB color component histogram generator 11 that count the frequency of each appearing color over the entire image with reference to 0 and the output of the low-frequency component extractor 10 are referred to as high. A palette generation unit 6 that preferentially selects a color used frequently as a palette color and creates palette data p, and a correspondence relationship between the palette data p output by the palette generation unit 6 and the corresponding color code. A palette storage unit 7 to be recorded and full color data stored in the original image frame memory 3 with the palette colors stored in the palette storage unit 7 are approximated by the above-described palette colors, and are represented by 8-bit codes. The image processing apparatus is provided with a color reduction section 8 for converting to a code, and a color reduction image frame memory 9 for storing a color code output from the color reduction section 4.

【0023】以上のように本発明の実施の形態1の減色
処理装置は、DC成分および低次AC成分を抽出する低
周波成分抽出部10と、低周波成分抽出部10の出力を
参照し画像全体に渡って、出現する色毎の度数をカウン
トするRGB色成分ヒストグラム生成部11を備えたこ
とに特徴を有し、以下にその機能等を説明する。
As described above, the color reduction processing apparatus according to the first embodiment of the present invention refers to a low-frequency component extracting unit 10 for extracting a DC component and a low-order AC component, and The entire system is characterized by having an RGB color component histogram generation unit 11 for counting the frequency of each color that appears, and its function will be described below.

【0024】圧縮データ1は原画像に対してDCT変換
等を施すことによって得られるもので、静止画像圧縮の
標準方式であるJPEGでは8×8画素ブロックごとに
このDCT変換を施し、さらにDCT変換によって得ら
れた高周波成分を中心に量子化を行い、さらに、そのデ
ータに対して可変長符号化を施すことにより画像データ
の圧縮を実現する。
The compressed data 1 is obtained by subjecting the original image to DCT conversion or the like. In JPEG, which is a standard method for compressing still images, this DCT conversion is performed for each 8 × 8 pixel block, and the DCT conversion is performed. The image data is compressed by performing quantization centering on the high frequency component obtained by the above and further performing variable length coding on the data.

【0025】復号化器2は、圧縮データ1に対して可変
長復号化および逆量子化を施し、DCT係数を抽出す
る。さらに逆DCT変換を行い、ブロック単位でDCT
係数から実際のカラー画像データ(フルカラーデータ)
fを生成する。本実施の形態1では第1次AC成分まで
を利用して減色処理を行うものとして説明する。減色後
の色数は256色であるものとする。
The decoder 2 performs variable length decoding and inverse quantization on the compressed data 1 to extract DCT coefficients. Further, inverse DCT is performed, and DCT is performed in block units.
Actual color image data (full color data) from coefficients
Generate f. In the first embodiment, a description will be given assuming that color reduction processing is performed using the primary AC component. It is assumed that the number of colors after the color reduction is 256 colors.

【0026】低周波成分抽出部10は、このDCT係数
のうちブロックデータの先頭に記録されているDCT係
数の中の直流成分(DC成分)Dおよびブロックデータ
内でDC成分に隣接する縦方向と横方向のそれぞれ緩や
かな変化を表す交流成分(低次AC成分)Av1,Ah1を順
次抽出し、各色成分をRGBに変換してRGB色成分ヒ
ストグラム生成部11に渡す。このとき、たとえば目標
となる色数が256色の場合は、Rは4ビット、Gは4
ビット、Bは4ビットで量子化を行い、あまり近い色が
パレットに登録されないようにする機能も併せ持つもの
とする。
The low-frequency component extraction unit 10 determines a DC component (DC component) D in the DCT coefficient recorded at the head of the block data and a vertical direction adjacent to the DC component in the block data. AC components (lower-order AC components) Av1 and Ah1 each representing a gradual change in the horizontal direction are sequentially extracted, and each color component is converted into RGB and passed to an RGB color component histogram generation unit 11. At this time, for example, when the target number of colors is 256, R is 4 bits and G is 4 bits.
Bits and B are quantized by 4 bits, and also have a function of preventing colors that are too close from being registered in the palette.

【0027】パレット生成部6は、RGB色成分ヒスト
グラム生成部11の出力を受取り、度数の高いものから
優先的に256の異なる色を選択し、パレットデータp
としてパレット記憶部7に書きこむ。
The palette generation unit 6 receives the output of the RGB color component histogram generation unit 11 and selects 256 different colors from those having the highest frequency by priority and selects the palette data p.
Is written in the pallet storage unit 7.

【0028】減色部8は、原画像フレームメモリを参照
して、カラー画像(フルカラー画像)fの画素の色を既
存のアルゴリズムを用いてパレット記憶部7に記憶され
たパレットデータpの中でもっとも近い色を探し出し、
その色を示すカラーコードによってカラー画像fの色を
順次表現し、減色画像フレームメモリ9に対して書き込
む。
The color reduction unit 8 refers to the original image frame memory and determines the color of the pixel of the color image (full color image) f in the palette data p stored in the palette storage unit 7 using the existing algorithm. Find a close color,
The color of the color image f is sequentially expressed by a color code indicating the color, and is written to the reduced color image frame memory 9.

【0029】減色画像フレームメモリ9は、(複数ブロ
ック)カラー画像全体の画素をカラーコードで表現した
データ(カラーコードデータ)を全て格納するだけの容
量を持つ。
The reduced color image frame memory 9 has a capacity enough to store all data (color code data) representing the pixels of the entire (multiple blocks) color image in a color code.

【0030】以上のように各構成部が機能する本実施の
形態1の減色処理装置について、その動作を図4を用い
て説明する。図4は、本実施の形態1の減色処理装置の
動作を示すフローチャートである。ここでは、目標減色
色数は256色とし、表示装置の表示能力は4096色
(R,G,B各4ビット)中256色であるとする。ま
た、入力された画像サイズは256×256とする。
The operation of the color reduction processing apparatus according to the first embodiment in which each component functions as described above will be described with reference to FIG. FIG. 4 is a flowchart illustrating the operation of the color reduction processing apparatus according to the first embodiment. Here, the target color reduction color number is assumed to be 256 colors, and the display capability of the display device is assumed to be 256 colors out of 4096 colors (4 bits for each of R, G, and B). Also, the input image size is 256 × 256.

【0031】ステップ4−1 まず、圧縮データ1がブロック単位で入力された復号化
器2は、圧縮データ1に対して可変長復号化および逆量
子化を行い、伸張後の画像データを原画像フレームメモ
リ3に格納する。このとき、復号化器2はDCT係数の
DC成分Dおよび一次AC成分Av1,Ah1を記憶してい
る。
Step 4-1 First, the decoder 2 to which the compressed data 1 has been input in units of blocks performs variable length decoding and inverse quantization on the compressed data 1, and converts the decompressed image data into the original image. It is stored in the frame memory 3. At this time, the decoder 2 stores the DC component D of the DCT coefficient and the primary AC components Av1, Ah1.

【0032】ステップ4−2 低周波成分抽出部10は復号化器2が記憶している低周
波成分、(ここでは、DCT係数のDC成分Dおよび一
次AC成分Av1,Ah1)を抽出する。
Step 4-2 The low frequency component extraction unit 10 extracts the low frequency components (here, the DC component D of the DCT coefficient and the primary AC components Av1, Ah1) stored in the decoder 2.

【0033】ステップ4−3 RGB色成分ヒストグラム生成部11は、低周波成分抽
出部10で抽出したDC成分Dおよび一次AC成分Av
1,Ah1を用いてD,D+Av1,D−Av1,D+Ah1,D−A
h1をRGBに変換した後、原画像のすべてのブロックに
ついてどの色がどれだけの頻度で使われているかをカウ
ントする。いま、入力されている画像サイズは256×
256なので、ブロック数にして16×16=256ブ
ロックとなる。各々のブロックに対し上記5組のRGB
が得られるため、パレットの候補となる色は256×5
=1280色となる。しかし、表示能力を考慮してR,
G,B各4ビットで量子化を行うと、得られた256色
は縮退(近い色が同じRGB値にアサインされる)する
ため、色数は通常減少する。ここでは、270色に縮退
したものとする。
Step 4-3 The RGB color component histogram generation unit 11 generates the DC component D and the primary AC component Av extracted by the low frequency component extraction unit 10.
1, D, D + Av1, D−Av1, D + Ah1, DA using Ah1
After converting h1 to RGB, it counts which colors are used and how often for all blocks of the original image. Now, the input image size is 256 ×
Since it is 256, the number of blocks is 16 × 16 = 256 blocks. The above five sets of RGB for each block
Is obtained, the color of the palette candidate is 256 × 5
= 1280 colors. However, considering the display ability, R,
When quantization is performed with 4 bits for each of G and B, the obtained 256 colors are degenerated (close colors are assigned to the same RGB value), and thus the number of colors usually decreases. Here, it is assumed that the color is reduced to 270 colors.

【0034】ステップ4−4 パレット生成部6はRGB色成分ヒストグラム生成部1
1の結果を参照し、高い頻度で使われている色をパレッ
ト記憶部7に優先的に書きこんで行く。これにより、ス
テップ4−3で得られた270色のうち、高い頻度で使
われている256色が選抜される。
Step 4-4 The pallet generator 6 generates the RGB color component histogram.
Referring to the result of No. 1, the color used frequently is written into the palette storage unit 7 with priority. As a result, of the 270 colors obtained in step 4-3, 256 colors that are used frequently are selected.

【0035】ステップ4−5 減色部4は、パレット記憶部7に記憶されたパレット色
の中で最も近い色を探し出しカラー画像fの色データの
量子化(近似)を行う。このとき、量子化された色をカ
ラーコードに変換し、減色画像フレームメモリ9にカラ
ーコードを書き込む。
Step 4-5 The color reduction unit 4 searches for the closest color among the palette colors stored in the palette storage unit 7 and quantizes (approximates) the color data of the color image f. At this time, the quantized color is converted into a color code, and the color code is written into the reduced color image frame memory 9.

【0036】以上のように本実施の形態1によれば、D
CT係数のうちのDC成分Dおよび一次AC成分Av1,A
h1を用いてD,D+Av1,D−Av1,D+Ah1,D−Ah1の
中からパレットに利用する色(パレット色)を選択する
ことにより、パレットデータ作成のためのヒストグラム
を広大な原画像を参照して作成する必要が無くなり、演
算量を大幅に削減して消費電力を低減できると同時にヒ
ストグラムのために必要なメモリの使用量を大幅に削減
することができる。
As described above, according to the first embodiment, D
DC component D and primary AC components Av1, A of CT coefficients
By using h1 to select a color (palette color) to be used for the palette from among D, D + Av1, D-Av1, D + Ah1, and D-Ah1, a histogram for creating palette data is referred to a vast original image. It is not necessary to create the histogram, and it is possible to greatly reduce the amount of calculation and power consumption, and at the same time, to greatly reduce the amount of memory required for the histogram.

【0037】なお、本実施の形態1では、一旦フルカラ
ーの画像を原画像フレームメモリに展開してから減色処
理を行う方法を示したが、圧縮データをブロック毎に伸
張し、その結果から低周波成分を抽出して全ブロックに
ついてRGB色成分ヒストグラムを作り、さらにその結
果からパレットを生成しておいて、もう一度、各ブロッ
ク毎に伸張処理を行い、今度は、1ブロック伸張する毎
に減色処理を行っていけば、原画像フレームメモリは1
ブロック分で充分であり、メモリを大幅に削減できる。
このような方法を用いても本発明の主旨とはなんらかわ
りない。
In the first embodiment, the method is described in which the full-color image is temporarily expanded in the original image frame memory and then the color reduction processing is performed. However, the compressed data is expanded for each block, and the low-frequency The components are extracted, RGB color component histograms are created for all blocks, a palette is generated from the results, and expansion processing is performed again for each block, and color reduction processing is performed each time one block is expanded. If you go, the original image frame memory is 1
Blocks are sufficient, and the memory can be significantly reduced.
Even if such a method is used, the gist of the present invention is not changed at all.

【0038】(実施の形態2)図5は本発明の実施の形
態2の減色処理装置の構成を示すブロック図である。図
5において、2はDCTを利用した圧縮データ1を復号
する復号化器、3は復号化器2から出力されるフルカラ
ーで表現されたフルカラーで表示されたフルカラーデー
タ(カラー画像データ)を記録する画像メモリとしての
原画像フレームメモリ、10は復号化器2を参照し、D
C成分および低次AC成分を抽出する低周波成分抽出
部、11は低周波成分抽出部10の出力を参照し画像全
体に渡って、出現する色毎の度数をカウントするRGB
色成分ヒストグラム生成部、6はRGB色成分ヒストグ
ラム生成部11を参照し、高い頻度で使われている色を
優先的にパレット色として選択し、パレットデータpを
作成するパレット生成部、7はパレット生成部が出力し
た色データとこれに対応するカラーコードの対応関係を
記録するパレット記憶部、8はパレット記憶部に記憶さ
れたパレット色で原画像フレームメモリに記憶されたフ
ルカラーデータを、前述のパレット色で近似して、8ビ
ットの符号で表されたカラーコードに変換する減色部、
9は減色部4から出力されるカラーコードを記憶する減
色画像フレームメモリであり、これらの各構成部は、前
記実施の形態1と同様に構成されている。
(Embodiment 2) FIG. 5 is a block diagram showing a configuration of a color reduction processing apparatus according to Embodiment 2 of the present invention. In FIG. 5, reference numeral 2 denotes a decoder for decoding compressed data 1 using DCT, and reference numeral 3 denotes full-color data (color image data) output from the decoder 2 and displayed in full color. An original image frame memory 10 as an image memory refers to the decoder 2 and D
A low-frequency component extraction unit 11 for extracting the C component and the low-order AC component refers to an output of the low-frequency component extraction unit 10 and counts the frequency of each appearing color over the entire image with reference to RGB.
The color component histogram generation unit 6 refers to the RGB color component histogram generation unit 11, preferentially selects a color that is used frequently as a palette color, and creates a palette data p. A palette storage unit for recording the correspondence between the color data output by the generation unit and the corresponding color code. The palette storage unit 8 stores the full color data stored in the original image frame memory with the palette colors stored in the palette storage unit. A color reduction unit that approximates a palette color and converts it to a color code represented by an 8-bit code;
Reference numeral 9 denotes a color-reduction image frame memory for storing the color code output from the color-reduction unit 4, and these components are configured in the same manner as in the first embodiment.

【0039】本実施の形態2の減色処理装置の特徴は、
前記実施の形態1の構成に、「第何次AC成分まで抽出
するか」を指定するAC成分次数指定部12を備えたこ
とにある。
The feature of the color reduction processing apparatus according to the second embodiment is as follows.
The configuration of the first embodiment is provided with an AC component order designation unit 12 for designating “the order of the AC component to be extracted”.

【0040】以上の各構成部よりなる本実施の形態2の
減色処理装置について、その機能等を説明する。
The functions and the like of the color reduction processing apparatus according to the second embodiment composed of the above components will be described.

【0041】圧縮データ1は原画像に対してDCT変換
等を施すことによって得られるもので、静止画像圧縮の
標準方式であるJPEGでは8×8画素ブロックごとに
このDCT変換を施し、さらにDCT変換によって得ら
れた高周波成分を中心に量子化を行い、さらに、そのデ
ータに対して可変長符号化を施すことにより画像データ
の圧縮を実現する。
The compressed data 1 is obtained by subjecting the original image to DCT conversion or the like. In JPEG, which is a standard method for compressing still images, this DCT conversion is performed for each 8 × 8 pixel block. The image data is compressed by performing quantization centering on the high frequency component obtained by the above and further performing variable length coding on the data.

【0042】復号化器2は、圧縮データ1に対して可変
長復号化および逆量子化を施し、DCT係数を抽出す
る。さらに逆DCT変換を行い、ブロック単位でDCT
係数から実際のカラー画像データ(フルカラーデータ)
fを生成する。
The decoder 2 performs variable length decoding and inverse quantization on the compressed data 1 to extract DCT coefficients. Further, inverse DCT is performed, and DCT is performed in block units.
Actual color image data (full color data) from coefficients
Generate f.

【0043】AC成分次数指定部12は、ユーザが減色
の目的となる色数を考慮して、AC成分の第何次数まで
をパレット生成に使用するかを指定する。
The AC component order designation unit 12 designates the order of the AC component to be used for pallet generation in consideration of the number of colors to be reduced by the user.

【0044】低周波成分抽出部10は、このDCT係数
のうちブロックデータの先頭に記録されているDCT係
数の中の直流成分(DC成分)Dおよびブロックデータ
内でDC成分に隣接する縦方向と横方向のそれぞれ緩や
かな変化を表す交流成分(低次AC成分)Av1,Ah1,Av2,
Ah2,...を順次抽出し、各色成分をRGBに変換してR
GB色成分ヒストグラム生成部11に渡す。このとき、
たとえば、目標となる色数が256色の場合は、Rは4
ビット、Gは4ビット、Bは4ビットで量子化を行い、
あまり近い色が、パレットに登録されないようにする機
能も併せ持つものとする。
The low-frequency component extraction unit 10 determines the DC component (DC component) D of the DCT coefficient recorded at the head of the block data among the DCT coefficients and the vertical direction adjacent to the DC component in the block data. AC components (lower-order AC components) representing gradual changes in the horizontal direction Av1, Ah1, Av2,
Ah2, ... are sequentially extracted, each color component is converted to RGB, and
It is passed to the GB color component histogram generator 11. At this time,
For example, if the target number of colors is 256, R is 4
Bit, G is 4 bits, B is 4 bits,
It also has a function to prevent colors that are too close from being registered in the palette.

【0045】減色部8は、原画像フレームメモリを参照
して、カラー画像(フルカラー画像)fの画素の色を既
存のアルゴリズムを用いてパレット記憶部7に記憶され
たパレットデータpの中でもっとも近い色を探し出し、
その色を示すカラーコードによってカラー画像fの色を
順次表現し、減色画像フレームメモリ9に対して書き込
む。
The color reduction unit 8 refers to the original image frame memory and determines the color of the pixel of the color image (full color image) f in the palette data p stored in the palette storage unit 7 using the existing algorithm. Find a close color,
The color of the color image f is sequentially expressed by a color code indicating the color, and is written to the reduced color image frame memory 9.

【0046】減色画像フレームメモリ9は、(複数ブロ
ック)カラー画像全体の画素をカラーコードで表現した
データ(カラーコードデータ)を全て格納するだけの容
量を持つ。
The reduced-color image frame memory 9 has a capacity to store all data (color code data) representing the pixels of the entire (multiple blocks) color image by color codes.

【0047】以上のように各構成部が機能する本実施の
形態2の減色処理装置について、その動作を図6を用い
て説明する。図6は、本発明の本実施の形態2の減色処
理装置の動作を示すフローチャートである。ここでは、
目標減色色数は256色とし、表示装置の表示能力は4
096色(R,G,B各4ビット)中256色であると
する。また、入力された画像サイズは256×256と
する。
The operation of the color reduction processing apparatus according to the second embodiment, in which the components function as described above, will be described with reference to FIG. FIG. 6 is a flowchart illustrating the operation of the color reduction processing apparatus according to the second embodiment of the present invention. here,
The target number of color reductions is 256 colors, and the display capability of the display device is 4
It is assumed that there are 256 colors out of the 096 colors (4 bits for each of R, G, and B). Also, the input image size is 256 × 256.

【0048】ステップ6−1 まず、圧縮データ1がブロック単位で入力された復号化
器2は、圧縮データ1に対して可変長復号化および逆量
子化を行い、伸張後の画像データを原画像フレームメモ
リ3に格納する。このとき、復号化器2はDCT係数の
DC成分DおよびAC成分Av1,Ah1,Av2,Ah2,....を記憶
している。
Step 6-1 First, the decoder 2 to which the compressed data 1 has been input in units of blocks performs variable length decoding and inverse quantization on the compressed data 1 and converts the decompressed image data into the original image data. It is stored in the frame memory 3. At this time, the decoder 2 stores the DC component D and the AC components Av1, Ah1, Av2, Ah2,... Of the DCT coefficients.

【0049】ステップ6−2 ユーザが、AC成分次数指定部12より、「第何次のA
C成分までを抽出の対象とするか」を指定する。ここで
は3が指定されたものとする。
Step 6-2: The user inputs “the A-th order A”
Whether up to the C component is to be extracted? " Here, it is assumed that 3 is specified.

【0050】ステップ6−3 低周波成分抽出部10は復号化器2が記憶している低周
波成分、(ここでは、DCT係数のDC成分DおよAC
成分Av1,Ah1,Av2,Ah2,Av3,Ah3)を抽出する。
Step 6-3: The low-frequency component extracting section 10 stores the low-frequency components stored in the decoder 2 (here, the DC components D and AC of the DCT coefficients).
Components Av1, Ah1, Av2, Ah2, Av3, Ah3) are extracted.

【0051】ステップ6−4 RGB色成分ヒストグラム生成部11は、低周波成分抽
出部10で抽出したDC成分DおよびAC成分(D,D
−Av1,D+Av1,D−Ah1,D+Ah1,D−Av2,D+Av2,D−
Ah2,D+Ah2,D−Av3,D+Av3,D−Ah3,D+Ah3)をR
GBに変換した後、原画像のすべてのブロックについて
どの色がどれだけの頻度で使われているかをカウントす
る。いま、入力されている画像は256×256なの
で、ブロック数は16×16=256であり、各々のブ
ロックから13組のRGBが得られるため、256×1
3=3328色のパレット候補データが得られることに
なる。しかし、表示能力を考慮してR,G,B各4ビッ
トで量子化を行うと、得られた256色は縮退(近い色
が同じRGB値にアサインされる)するため、色数は通
常減少する。ここでは、546色に縮退したものとす
る。
Step 6-4: The RGB color component histogram generating section 11 extracts the DC component D and the AC component (D, D) extracted by the low frequency component extracting section 10.
−Av1, D + Av1, D−Ah1, D + Ah1, D−Av2, D + Av2, D−
Ah2, D + Ah2, D-Av3, D + Av3, D-Ah3, D + Ah3)
After the conversion to GB, it counts which colors are used and how often for all blocks of the original image. Now, since the input image is 256 × 256, the number of blocks is 16 × 16 = 256, and since 13 sets of RGB are obtained from each block, 256 × 1
Palette candidate data of 3 = 3328 colors is obtained. However, when quantization is performed with R, G, and B bits each taking into account the display capability, the obtained 256 colors are degenerated (close colors are assigned to the same RGB values), so the number of colors usually decreases. I do. Here, it is assumed that the image has been reduced to 546 colors.

【0052】ステップ6−5 パレット生成部6はRGB色成分ヒストグラム生成部1
1の結果を参照し、高い頻度で使われている色をパレッ
ト記憶部7に優先的に書きこんで行く。ここでは、ステ
ップ6−5で得られた546色中、使用頻度の高い25
6色が選抜される。
Step 6-5 The pallet generator 6 is the RGB color component histogram generator 1
Referring to the result of No. 1, the color used frequently is written into the palette storage unit 7 with priority. Here, of the 546 colors obtained in step 6-5, 25 frequently used colors are used.
Six colors are selected.

【0053】ステップ6−6 減色部4は、パレット記憶部7に記憶されたパレット色
の中で最も近い色を探し出しカラー画像fの色データの
量子化(近似)を行う。このとき、量子化された色をカ
ラーコードに変換し、減色画像フレームメモリ9にカラ
ーコードを書き込む。
Step 6-6 The color reduction unit 4 finds the closest color among the palette colors stored in the palette storage unit 7 and quantizes (approximates) the color data of the color image f. At this time, the quantized color is converted into a color code, and the color code is written into the reduced color image frame memory 9.

【0054】以上のように本実施の形態2のに減色処理
は、ユーザが自由にAC成分の次数を指定できるので、
「何色にまで減色したいか」によって、たとえば、「2
56色なら1次まで」、あるいは、「4096色なら3
次まで」、などというように、目標色数にあわせてより
高精度な減色処理を行うことができる。
As described above, the color reduction processing according to the second embodiment allows the user to freely specify the order of the AC component.
For example, "2
Up to first order for 56 colors ”or“ 3 for 4096 colors ”
It is possible to perform more accurate color reduction processing in accordance with the target number of colors, such as "until next".

【0055】(実施の形態3)図7は、本発明の実施の
形態3の減色処理装置の構成を示すブロック図である。
図7において、2はDCTを利用した圧縮データ1を復
号する復号化器、3は復号化器2から出力されるフルカ
ラーで表現されたフルカラーで表示されたフルカラーデ
ータ(カラー画像データ)を記録する画像メモリとして
の原画像フレームメモリ、10は復号化器2を参照し、
DC成分および低次AC成分を抽出する低周波成分抽出
部、11は低周波成分抽出部10の出力を参照し画像全
体に渡って、出現する色毎の度数をカウントするRGB
色成分ヒストグラム生成部、6はパレット生成部、7は
パレット生成部6が出力した色データとこれに対応する
カラーコードの対応関係を記録するパレット記憶部、8
はパレット記憶部7に記憶されたパレット色で原画像フ
レームメモリに記憶されたフルカラーデータを、前述の
パレット色で近似して、8ビットの符号で表されたカラ
ーコードに変換する減色部、9は減色部4から出力され
るカラーコードを記憶する減色画像フレームメモリであ
り、これらの各構成部は、前記実施の形態2と同様に構
成されている。
(Embodiment 3) FIG. 7 is a block diagram showing a configuration of a color reduction processing apparatus according to Embodiment 3 of the present invention.
In FIG. 7, reference numeral 2 denotes a decoder for decoding the compressed data 1 using DCT, and reference numeral 3 denotes full-color data (color image data) output from the decoder 2 and displayed in full color. An original image frame memory 10 as an image memory refers to the decoder 2,
A low-frequency component extraction unit 11 for extracting a DC component and a low-order AC component refers to an output of the low-frequency component extraction unit 10 and counts the frequency of each appearing color over the entire image with reference to RGB
A color component histogram generation unit, 6 is a palette generation unit, 7 is a palette storage unit that records the correspondence between the color data output by the palette generation unit 6 and the corresponding color code, 8
A color reduction unit 9 for approximating the full color data stored in the original image frame memory with the palette colors stored in the palette storage unit 7 by the above-described palette colors and converting them into a color code represented by an 8-bit code; Is a reduced color image frame memory for storing the color code output from the color reduction unit 4, and these components are configured in the same manner as in the second embodiment.

【0056】本実施の形態3の減色処理装置の特徴は、
前記実施の形態2の構成に、明るい色ほど度数を水増し
する、明−暗度数線形補正部13を設けたことに特徴を
有し、パレット生成部6は前記明−暗度数線形補正部1
3を参照し、高い頻度で使われている色を優先的にパレ
ット色として選択し、パレットデータpを作成するよう
になっている。
The feature of the color reduction processing apparatus according to the third embodiment is as follows.
The configuration of the second embodiment is characterized in that a light-dark power linear correction unit 13 for increasing the power for a lighter color is provided, and the pallet generation unit 6 performs the light-dark power linear correction unit 1.
3, the color used frequently is preferentially selected as the palette color, and the palette data p is created.

【0057】以上の各構成部よりなる本実施の形態3の
減色処理装置について、機能等を説明する。
The functions and the like of the color reduction processing apparatus according to the third embodiment composed of the above components will be described.

【0058】圧縮データ1は原画像に対してDCT変換
等を施すことによって得られるもので、静止画像圧縮の
標準方式であるJPPEGでは8×8画素ブロックごと
にこのDCT変換を施し、さらにDCT変換によって得
られた高周波成分を中心に量子化を行い、さらに、その
データに対して可変長符号化を施すことにより画像デー
タの圧縮を実現する。
The compressed data 1 is obtained by subjecting the original image to DCT conversion or the like. In JPPEG, which is a standard method for compressing a still image, this compressed data 1 is subjected to this DCT conversion for each 8 × 8 pixel block. The image data is compressed by performing quantization centering on the high frequency component obtained by the above and further performing variable length coding on the data.

【0059】復号化器2は、圧縮データ1に対して可変
長復号化および逆量子化を施し、DCT係数を抽出す
る。さらに逆DCT変換を行い、ブロック単位でDCT
係数から実際のカラー画像データ(フルカラーデータ)
fを生成する。本実施の形態2では第1次AC成分まで
を利用して減色処理を行うものとして説明する。減色後
の色数は256色であるものとする。
The decoder 2 performs variable length decoding and inverse quantization on the compressed data 1 to extract DCT coefficients. Further, inverse DCT is performed, and DCT is performed in block units.
Actual color image data (full color data) from coefficients
Generate f. In the second embodiment, a description will be given assuming that color reduction processing is performed using the primary AC component. It is assumed that the number of colors after the color reduction is 256 colors.

【0060】低周波成分抽出部10は、このDCT係数
のうちブロックデータの先頭に記録されているDCT係
数の中の直流成分(DC成分)Dおよびブロックデータ
内でDC成分に隣接する縦方向と横方向のそれぞれ緩や
かな変化を表す交流成分(低次AC成分)Av1,Ah1を順
次抽出し、各色成分をRGBに変換してRGB色成分ヒ
ストグラム生成部11に渡す。このとき、たとえば、目
標となる色数が256色の場合は、Rは4ビット、Gは
4ビット、Bは4ビットで量子化を行い、あまり近い色
がパレットに登録されないようにする機能も併せ持つも
のとする。
The low-frequency component extraction unit 10 determines a DC component (DC component) D in the DCT coefficient recorded at the head of the block data among the DCT coefficients and a vertical direction adjacent to the DC component in the block data. AC components (lower-order AC components) Av1 and Ah1 each representing a gradual change in the horizontal direction are sequentially extracted, and each color component is converted into RGB and passed to an RGB color component histogram generation unit 11. At this time, for example, when the target number of colors is 256, R is 4 bits, G is 4 bits, and B is 4 bits, and a function of preventing a color that is too close from being registered in the palette is also provided. It shall have both.

【0061】パレット生成部6は、RGB色成分ヒスト
グラム生成部11の出力を受取り、度数の高いものから
優先的に256の異なる色を選択し、パレットデータp
としてパレット記憶部7に書きこむ。
The pallet generation unit 6 receives the output of the RGB color component histogram generation unit 11 and selects 256 different colors with higher frequency from the palette data p.
Is written in the pallet storage unit 7.

【0062】減色部8は、原画像フレームメモリを参照
して、カラー画像(フルカラー画像)fの画素の色を既
存のアルゴリズムを用いてパレット記憶部7に記憶され
たパレットデータpの中でもっとも近い色を探し出し、
その色を示すカラーコードによってカラー画像fの色を
順次表現し、減色画像フレームメモリ9に対して書き込
む。減色画像フレームメモリ9は、(複数ブロック)カ
ラー画像全体の画素をカラーコードで表現したデータ
(カラーコードデータ)を全て格納するだけの容量を持
つ。
The color reduction unit 8 refers to the original image frame memory and determines the color of the pixel of the color image (full color image) f in the palette data p stored in the palette storage unit 7 using the existing algorithm. Find a close color,
The color of the color image f is sequentially expressed by a color code indicating the color, and is written to the reduced color image frame memory 9. The reduced-color image frame memory 9 has a capacity to store all data (color code data) representing the pixels of the entire (multiple blocks) color image by color codes.

【0063】明−暗度数線形補正部13は、各色に対し
てその出現度数にY成分の値乗じたものをあらたに度数
とする。つまり、明るい色ほど度数が水増しされる。
The light-dark frequency linear correction unit 13 newly sets the frequency obtained by multiplying the appearance frequency of each color by the value of the Y component. That is, the frequency increases as the color becomes brighter.

【0064】以上のように各構成部が機能する本実施の
形態2の減色処理装置について、その動作を図8を用い
て説明する。図8は、本実施の形態3の減色処理装置の
動作を示すフローチャートである。ここでは、目標減色
色数は256色とし、表示装置の表示能力は4096色
(R,G,B各4ビット)中256色であるとする。ま
た、入力された画像サイズは256×256とする。
The operation of the color reduction processing apparatus according to the second embodiment, in which the components function as described above, will be described with reference to FIG. FIG. 8 is a flowchart illustrating the operation of the color reduction processing apparatus according to the third embodiment. Here, the target color reduction color number is assumed to be 256 colors, and the display capability of the display device is assumed to be 256 colors out of 4096 colors (4 bits for each of R, G, and B). Also, the input image size is 256 × 256.

【0065】ステップ8−1 まず、圧縮データ1がブロック単位で入力された復号化
器2は、圧縮データ1に対して可変長復号化および逆量
子化を行い、伸張後の画像データを原画像フレームメモ
リ3に格納する。このとき、復号化器2はDCT係数の
DC成分Dおよび一次AC成分Av1,Ah1を記憶してい
る。
Step 8-1 First, the decoder 2 to which the compressed data 1 has been input in units of blocks performs variable length decoding and inverse quantization on the compressed data 1, and converts the decompressed image data into the original image data. It is stored in the frame memory 3. At this time, the decoder 2 stores the DC component D of the DCT coefficient and the primary AC components Av1 and Ah1.

【0066】ステップ8−2 低周波成分抽出部10は復号化器2が記憶している低周
波成分、(ここでは、DCT係数のDC成分Dおよび一
次AC成分Av1,Ah1)を抽出する。
Step 8-2 The low frequency component extracting section 10 extracts the low frequency components (here, the DC component D of the DCT coefficient and the primary AC components Av1, Ah1) stored in the decoder 2.

【0067】ステップ8−3 RGB色成分ヒストグラム生成部11は、低周波成分抽
出部10で抽出したDC成分Dおよび一次AC成分Av1,
Ah1を用いてD,D+Av1,D−Av1,D+Ah1,D−Ah1
をRGBに変換した後、原画像のすべてのブロックにつ
いてどの色がどれだけの頻度で使われているかをカウン
トする。いま、入力された画像は256×256のサイ
ズであり、ブロック数では16×16となる。各ブロッ
クに対し、ステップ8−3で5組のRGB成分が得られ
ているため、256×5=1280色のパレットデータ
の候補が得られたことになる。しかし、表示能力を考慮
してR,G,B各4ビットで量子化を行うと、得られた
256色は縮退(近い色が同じRGB値にアサインされ
る)するため、色数は通常減少する。ここでは270色
に縮退したものとする。
Step 8-3: The RGB color component histogram generator 11 converts the DC component D and the primary AC component Av1,
Using Ah1, D, D + Av1, D−Av1, D + Ah1, D−Ah1
Is converted to RGB, then, for each block of the original image, which color is used and how often are counted. Now, the input image has a size of 256 × 256, and the number of blocks is 16 × 16. Since five sets of RGB components have been obtained for each block in step 8-3, candidates for palette data of 256 × 5 = 1280 colors have been obtained. However, when quantization is performed with R, G, and B bits each taking into account the display capability, the obtained 256 colors are degenerated (close colors are assigned to the same RGB values), so the number of colors usually decreases. I do. Here, it is assumed that the color is reduced to 270 colors.

【0068】ステップ8−4 明−暗度数線形補正部13は、各色に対してその出現度
数にY成分の値を乗じたものを新たに度数とする。つま
り、明るい色ほど度数が水増しされる。
Step 8-4 The light-dark frequency linear correction unit 13 newly sets a value obtained by multiplying the appearance frequency of each color by the value of the Y component. That is, the frequency increases as the color becomes brighter.

【0069】ステップ8−5 パレット生成部6は明−暗度数線形補正部13の結果を
参照し、高い頻度で使われている色をパレット記憶部7
に優先的に書きこんで行く。これにより、ステップ8−
4で得られた270色とその色に対応する水増しされた
頻度から使用頻度の高い256色が選抜される。
Step 8-5: The palette generating section 6 refers to the result of the light-dark frequency linearity correcting section 13 and stores the colors used frequently in the palette storing section 7.
To write preferentially. Thereby, Step 8-
From the 270 colors obtained in step 4 and the inflated frequency corresponding to the colors, 256 colors that are frequently used are selected.

【0070】ステップ8−6 減色部4は、パレット記憶部7に記憶されたパレット色
の中で最も近い色を探し出しカラー画像fの色データの
量子化(近似)を行う。
Step 8-6 The color reduction unit 4 finds the closest color among the palette colors stored in the palette storage unit 7 and quantizes (approximates) the color data of the color image f.

【0071】このとき、量子化された色をカラーコード
に変換し、減色画像フレームメモリ9にカラーコードを
書き込む。
At this time, the quantized color is converted into a color code, and the color code is written into the reduced color image frame memory 9.

【0072】以上のように本実施の形態3の減色処理装
置は、人間の目が暗いところより明るいところで色に敏
感であるという性質を利用し、明るい色ほど、度数を水
増してカウントするので、明るい色が優先的にパレット
に登録され見た目上の減色画像の品質を向上させること
ができる。
As described above, the color reduction processing apparatus according to the third embodiment utilizes the property that the human eye is more sensitive to colors in brighter places than in dark places. Bright colors are preferentially registered in the palette, and the quality of the apparently reduced color image can be improved.

【0073】(実施の形態4)図9は、本発明の実施の
形態4の減色処理装置の構成を示すブロック図である。
図9において、2はDCTを利用した圧縮データ1を復
号する復号化器、3は復号化器2から出力されるフルカ
ラーで表現されたフルカラーで表示されたフルカラーデ
ータ(カラー画像データ)を記録する画像メモリとして
の原画像フレームメモリ、10は復号化器2を参照し、
DC成分および低次AC成分を抽出する低周波成分抽出
部、14は低周波成分抽出部10の出力を参照し画像全
体に渡って、出現する色毎の度数をカウントするYUV
色成分ヒストグラム生成部、6はパレット生成部、7は
パレット生成部が出力した色データとこれに対応するカ
ラーコードの対応関係を記録するパレット記憶部、8は
パレット記憶部に記憶されたパレット色で原画像フレー
ムメモリに記憶されたフルカラーデータを、前述のパレ
ット色で近似して、8ビットの符号で表されたカラーコ
ードに変換する減色部、9は減色部8から出力されるカ
ラーコードを記憶する減色画像フレームメモリであり、
これらの各構成部は、前記実施の形態1と同様に構成さ
れている。
(Embodiment 4) FIG. 9 is a block diagram showing a configuration of a color reduction processing apparatus according to Embodiment 4 of the present invention.
In FIG. 9, reference numeral 2 denotes a decoder for decoding compressed data 1 using DCT, and reference numeral 3 denotes full-color data (color image data) output from the decoder 2 and displayed in full color. An original image frame memory 10 as an image memory refers to the decoder 2,
A low-frequency component extraction unit 14 for extracting a DC component and a low-order AC component is referred to as an output of the low-frequency component extraction unit 10 and counts the frequency of each appearing color over the entire image with reference to the YUV.
A color component histogram generation unit, 6 is a palette generation unit, 7 is a palette storage unit that records the correspondence between color data output by the palette generation unit and corresponding color codes, and 8 is a palette color stored in the palette storage unit. A color reduction unit that approximates the full-color data stored in the original image frame memory with the above-mentioned palette color and converts it into a color code represented by an 8-bit code, and 9 is a color code output from the color reduction unit 8. A color-reduced image frame memory for storing
These components are configured in the same manner as in the first embodiment.

【0074】本実施の形態4の減色処理装置の特徴は、
前記実施の形態1の構成におけるRGB成分ヒストグラ
ム生成部11に代えて、低周波成分抽出部10の出力を
参照し、画像全体に渡って出現する色毎の度数をカウン
トするYUV色成分ヒストグラム生成部14を設けたこ
とにあり、パレット生成部6はYUV色成分ヒストグラ
ム生成部14を参照し、高い頻度で使われている色を優
先的にパレット色として選択し、パレットデータpを作
成するようになっている。
The feature of the color reduction processing apparatus according to the fourth embodiment is as follows.
A YUV color component histogram generator that counts the frequency of each color appearing over the entire image by referring to the output of the low frequency component extractor 10 instead of the RGB component histogram generator 11 in the configuration of the first embodiment. The palette generation unit 6 refers to the YUV color component histogram generation unit 14 and preferentially selects a color that is frequently used as a palette color to generate palette data p. Has become.

【0075】以上の各構成部よりなる本実施の形態4の
減色処理装置について、機能等を説明する。
The functions and the like of the color reduction processing apparatus according to the fourth embodiment composed of the above components will be described.

【0076】圧縮データ1は原画像に対してDCT変換
等を施すことによって得られるもので、静止画像圧縮の
標準方式であるJPEGでは8×8画素ブロックごとに
このDCT変換を施し、さらにDCT変換によって得ら
れた高周波成分を中心に量子化を行い、さらに、そのデ
ータに対して可変長符号化を施すことにより画像データ
の圧縮を実現する。
The compressed data 1 is obtained by subjecting an original image to DCT conversion or the like. In JPEG, which is a standard method for compressing still images, this DCT conversion is performed for each 8 × 8 pixel block. The image data is compressed by performing quantization centering on the high frequency component obtained by the above and further performing variable length coding on the data.

【0077】復号化器2は、圧縮データ1に対して可変
長復号化および逆量子化を施し、DCT係数を抽出す
る。さらに逆DCT変換を行い、ブロック単位でDCT
係数から実際のカラー画像データ(フルカラーデータ)
fを生成する。本実施の形態4では第1次AC成分まで
を利用して減色処理を行うものとして説明する。減色後
の色数は256色であるものとする。
The decoder 2 performs variable length decoding and inverse quantization on the compressed data 1 to extract DCT coefficients. Further, inverse DCT is performed, and DCT is performed in block units.
Actual color image data (full color data) from coefficients
Generate f. In the fourth embodiment, a description will be given assuming that the color reduction processing is performed using the primary AC component. It is assumed that the number of colors after the color reduction is 256 colors.

【0078】低周波成分抽出部10は、このDCT係数
のうちブロックデータの先頭に記録されているDCT係
数の中の直流成分(DC成分)Dおよびブロックデータ
内でDC成分に隣接する縦方向と横方向のそれぞれ緩や
かな変化を表す交流成分(低次AC成分)Av1,Ah1を順
次抽出し、各色成分をRGBに変換してYUV色成分ヒ
ストグラム生成部14に渡す。このとき、たとえば、目
標となる色数が256色の場合は、Rは4ビット、Gは
4ビット、Bは4ビットで量子化を行い、あまり近い色
が、パレットに登録されないようにする機能も併せ持つ
ものとする。
The low-frequency component extraction unit 10 determines a DC component (DC component) D of the DCT coefficient recorded at the head of the block data and a vertical direction adjacent to the DC component in the block data. AC components (lower-order AC components) Av1 and Ah1 each representing a gradual change in the horizontal direction are sequentially extracted, and each color component is converted into RGB and passed to the YUV color component histogram generation unit 14. At this time, for example, when the target number of colors is 256, R is 4 bits, G is 4 bits, and B is 4 bits, so that a color that is not so close is not registered in the palette. Shall also have.

【0079】パレット生成部6は、YUV色成分ヒスト
グラム生成部14の出力を受取り、度数の高いものから
優先的に256の異なる色を選択し、パレットデータp
としてパレット記憶部7に書きこむ。
The pallet generation unit 6 receives the output of the YUV color component histogram generation unit 14, selects 256 different colors from those having the highest frequency, and selects the pallet data p.
Is written in the pallet storage unit 7.

【0080】減色部8は、原画像フレームメモリを参照
して、カラー画像(フルカラー画像)fの画素の色を既
存のアルゴリズムを用いてパレット記憶部7に記憶され
たパレットデータpの中でもっとも近い色を探し出し、
その色を示すカラーコードによってカラー画像fの色を
順次表現し、減色画像フレームメモリ9に対して書き込
む。
The color reduction unit 8 refers to the original image frame memory and determines the color of the pixel of the color image (full color image) f in the palette data p stored in the palette storage unit 7 using the existing algorithm. Find a close color,
The color of the color image f is sequentially expressed by a color code indicating the color, and is written to the reduced color image frame memory 9.

【0081】減色画像フレームメモリ9は、(複数ブロ
ック)カラー画像全体の画素をカラーコードで表現した
データ(カラーコードデータ)を全く格納するだけの容
量を持つ。
The color-reduced image frame memory 9 has a capacity enough to store data (color code data) representing the pixels of the entire (multiple blocks) color image in color code.

【0082】YUV色成分ヒストグラム生成部14は、
たとえば表示デバイスの表示能力が4096色しかない
場合、つまり、RGB各4ビットで表現される場合、一
旦、Y5ビット、UVは4ビットに量子化してヒストグ
ラムを生成する。こうすることによって、Y成分に対し
ては感度が向上し、Y成分のわずかな違いでも別の色と
して登録される。
The YUV color component histogram generation unit 14
For example, when the display capability of the display device has only 4096 colors, that is, when the display device is represented by each of 4 bits of RGB, the histogram is once generated by quantizing Y5 bits and UV to 4 bits. By doing so, the sensitivity for the Y component is improved, and even a slight difference in the Y component is registered as another color.

【0083】以上のように各構成部が機能する本実施の
形態4の減色処理装置について、その動作を図10を用
いて説明する。図10は、本実施の形態4の減色処理装
置の動作を示すフローチャートである。ここでは、目標
減色色数は256色とし、表示装置の表示能力は409
6色(R,G,B各4ビット)中256色とする。ま
た、入力された画像サイズ256×256とする。
The operation of the color reduction processing apparatus according to the fourth embodiment, in which each component functions as described above, will be described with reference to FIG. FIG. 10 is a flowchart illustrating the operation of the color reduction processing apparatus according to the fourth embodiment. Here, the target color reduction color number is 256 colors, and the display capability of the display device is 409.
256 colors out of 6 colors (4 bits each for R, G, B). Also, assume that the input image size is 256 × 256.

【0084】ステップ10−1 まず、圧縮データ1がブロック単位で入力された復号化
器2は、圧縮データ1に対して可変長復号化および逆量
子化を行い、伸張後の画像データを原画像フレームメモ
リ3に格納する。このとき、復号化器2はDCT係数の
DC成分Dおよび一次AC成分Av1,Ah1を記憶してい
る。
Step 10-1 First, the decoder 2 to which the compressed data 1 is input in units of blocks performs variable length decoding and inverse quantization on the compressed data 1, and converts the decompressed image data into the original image. It is stored in the frame memory 3. At this time, the decoder 2 stores the DC component D of the DCT coefficient and the primary AC components Av1 and Ah1.

【0085】ステップ10−2 低周波成分抽出部10は復号化器2が記憶している低周
波成分、(ここでは、DCT係数のDC成分Dおよび一
次AC成分Av1,Ah1)を抽出する。
Step 10-2 The low frequency component extraction unit 10 extracts the low frequency components (here, the DC component D of the DCT coefficient and the primary AC components Av1, Ah1) stored in the decoder 2.

【0086】ステップ10−3 YUV色成分ヒストグラム生成部14は、低周波成分抽
出部10で抽出したDC成分Dおよび一次AC成分Av1,
Ah1を用いてD,D+Av1,D−Av1,D+Ah1,D−Ah1
を求めて、原画像のすべてのブロックについてどの色が
どれだけの頻度で使われているかをカウントする。い
ま、入力された画像は256×256のサイズである。
ブロック数では16×16となる。各ブロック毎に5組
のYUV成分が与えられるため、都合256×5=12
80色のYUVパレットデータの候補が得られる。しか
し、表示能力を考慮してR,G,B各4ビットで量子化
されるため、ここではY5ビットUV各4ビットで量子
化する。Yだけに5ビットを割り当てるのは人間の目が
Yに関して敏感であるためである。このようにして12
80色の色は縮退(近い色が同じRGB値にアサインさ
れる)し、色数は通常減少する。ここでは270色に縮
退したものとする。
Step 10-3: The YUV color component histogram generator 14 extracts the DC component D and the primary AC component Av1, extracted by the low frequency component extractor 10.
Using Ah1, D, D + Av1, D−Av1, D + Ah1, D−Ah1
And count which colors are used and how often for all blocks in the original image. Now, the input image has a size of 256 × 256.
The number of blocks is 16 × 16. Since five sets of YUV components are provided for each block, 256 × 5 = 12
80 color YUV palette data candidates are obtained. However, in consideration of the display capability, since quantization is performed with each of 4 bits of R, G, and B, quantization is performed with 4 bits of each of 5 bits of Y here. Allocating 5 bits only to Y is because human eyes are sensitive to Y. In this way 12
The 80 colors are degenerated (close colors are assigned the same RGB values) and the number of colors is usually reduced. Here, it is assumed that the color is reduced to 270 colors.

【0087】ステップ10−4 パレット生成部6はYUV色成分ヒストグラム生成部1
4の結果を参照し、高い頻度で使われている色をパレッ
ト記憶部7に優先的に書きこんで行く。これにより、ス
テップ10−3で得られた270色の中から使用頻度の
高い256が選抜される。
Step 10-4: The pallet generator 6 generates the YUV color component histogram generator 1
4, the color used frequently is preferentially written in the palette storage unit 7. As a result, among the 270 colors obtained in step 10-3, 256 with a high use frequency are selected.

【0088】ステップ10−5 減色部4は、パレット記憶部7に記憶されたパレット色
の中で最も近い色を探し出しカラー画像fの色データの
量子化(近似)を行う。このとき、量子化された色をカ
ラーコードに変換し、減色画像フレームメモリ9にカラ
ーコードを書き込む。
Step 10-5 The color reduction unit 4 finds the closest color among the palette colors stored in the palette storage unit 7 and quantizes (approximates) the color data of the color image f. At this time, the quantized color is converted into a color code, and the color code is written into the reduced color image frame memory 9.

【0089】以上のように本実施の形態4の減色処理装
置は、人間の目がUV成分に敏感であるという性質を利
用し、Y成分の分解能をUV成分に比べて高くして、
「Y成分のわずかな差でも別の色としてパレットに登録
する」ことができるので、人間の視覚上、減色画像の品
質を向上させることができる。
As described above, the color reduction processing apparatus according to the fourth embodiment utilizes the property that the human eye is sensitive to the UV component, and makes the resolution of the Y component higher than that of the UV component.
“Even a slight difference in the Y component can be registered in the palette as another color”, so that the quality of a color-reduced image can be improved visually for humans.

【0090】(実施の形態5)図11は、本発明の実施
の形態5の減色処理装置の構成を示すブロック図であ
る。
(Embodiment 5) FIG. 11 is a block diagram showing a configuration of a color reduction processing apparatus according to Embodiment 5 of the present invention.

【0091】図11において、2はDCTを利用した圧
縮データ1を復号する復号化器、3は復号化器2から出
力されるフルカラーで表現されたフルカラーで表示され
たフルカラーデータ(カラー画像データ)を記録する画
像メモリとしての原画像フレームメモリ、11はRGB
色成分ヒストグラム生成部、6はRGB色成分ヒストグ
ラム生成部11を参照し、高い頻度で使われている色を
優先的にパレット色として選択し、パレットデータpを
生成する生成部、7はパレット生成部6が出力した色デ
ータとこれに対応するカラーコードの対応関係を記録す
るパレット記憶部、8はパレット記憶部7に記憶された
パレット色で原画像フレームメモリに記憶されたフルカ
ラーデータを、前述のパレット色で近似して、8ビット
の符号で表されたカラーコードに変換する減色部、9は
減色部8から出力されるカラーコードを記憶する減色画
像フレームメモリであり、これらの各構成部は、前記実
施の形態1と同様に構成されている。
In FIG. 11, reference numeral 2 denotes a decoder for decoding the compressed data 1 using DCT, and reference numeral 3 denotes full-color data (color image data) output from the decoder 2 and displayed in full color. Original image frame memory as an image memory for recording
A color component histogram generation unit 6 refers to the RGB color component histogram generation unit 11, preferentially selects a color used frequently with a palette color, and generates a palette data p. A pallet storage unit for recording the correspondence between the color data output by the unit 6 and the corresponding color codes. A palette storage unit 8 stores the full color data stored in the original image frame memory in the pallet colors stored in the pallet storage unit 7 as described above. A color reduction unit 9 for approximating the color of the pallet and converting it into a color code represented by an 8-bit code; and 9, a color reduction image frame memory for storing the color code output from the color reduction unit 8. Is configured in the same manner as in the first embodiment.

【0092】本実施の形態5の減色処理装置の特徴は、
前記実施の形態1の構成における低周波成分抽出部10
に代えて、復号化器2を参照し、DC成分および低次A
C成分を抽出する低周波成分順次抽出部15設けたこと
にあり、RGB色成分ヒストグラム生成部11は、低周
波成分順次抽出部15の出力を参照し画像全体に渡っ
て、出現する色毎の度数をカウントするようになってい
る。
The feature of the color reduction processing apparatus according to the fifth embodiment is as follows.
Low frequency component extraction unit 10 in the configuration of the first embodiment
, The DC component and the lower order A
Because the low-frequency component sequential extraction unit 15 that extracts the C component is provided, the RGB color component histogram generation unit 11 refers to the output of the low-frequency component sequential extraction unit 15, and outputs each color that appears over the entire image. The frequency is counted.

【0093】以上の各構成部よりなる本実施の形態4の
減色処理装置について、機能等を説明する。
The functions and the like of the color reduction processing apparatus according to the fourth embodiment composed of the above components will be described.

【0094】以上の各構成部よりなる本実施の形態5の
減色処理装置について、機能等を説明する。
The functions and the like of the color reduction processing apparatus according to the fifth embodiment composed of the above components will be described.

【0095】圧縮データ1は原画像に対してDCT変換
等を施すことによって得られるもので、静止画像圧縮の
標準方式であるJPEGでは8×8画素ブロックごとに
このDCT変換を施し、さらにDCT変換によって得ら
れた高周波成分を中心に量子化を行い、さらに、そのデ
ータに対して可変長符号化を施すことにより画像データ
の圧縮を実現する。
The compressed data 1 is obtained by subjecting the original image to DCT conversion or the like. In JPEG, which is a standard method for compressing still images, this DCT conversion is performed for each 8 × 8 pixel block. Quantization is performed centering on the high-frequency components obtained by the above, and the data is further subjected to variable-length encoding to realize compression of image data.

【0096】復号化器2は、圧縮データ1に対して可変
長復号化および逆量子化を施し、DCT係数を抽出す
る。さらに逆DCT変換を行い、ブロック単位でDCT
係数から実際のカラー画像データ(フルカラーデータ)
fを生成する。本実施の形態5では第1次AC成分まで
を利用して減色処理を行うものとして説明する。減色後
の色数は256色であるものとする。
The decoder 2 performs variable length decoding and inverse quantization on the compressed data 1 to extract DCT coefficients. Further, inverse DCT is performed, and DCT is performed in block units.
Actual color image data (full color data) from coefficients
Generate f. In the fifth embodiment, a description will be given assuming that color reduction processing is performed using the primary AC component. It is assumed that the number of colors after the color reduction is 256 colors.

【0097】低周波成分順次抽出部15は、このDCT
係数のうちブロックデータの先頭に記録されているDC
T係数の中の直流成分(DC成分)Dおよびブロックデ
ータ内でDC成分に隣接する縦方向と横方向のそれぞれ
緩やかな変化を表す交流成分(低次AC成分)Av1,Ah1,
Av2,Ah2....を順次抽出し、各色成分をRGBに変換し
てRGB色成分ヒストグラム生成部11に渡す。このと
き、たとえば、目標となる色数が256色の場合は、R
は4ビット、Gは4ビット、Bは4ビットで量子化を行
い、あまり近い色がパレットに登録されないようにする
機能も併せ持つものとする。
The low frequency component sequential extraction section 15 uses the DCT
DC recorded at the beginning of block data among coefficients
A DC component (DC component) D in the T coefficient and an AC component (lower-order AC component) Av1, Ah1, which represents a gradual change in the vertical and horizontal directions adjacent to the DC component in the block data.
.. Are sequentially extracted, each color component is converted to RGB, and is passed to the RGB color component histogram generation unit 11. At this time, for example, if the target number of colors is 256 colors, R
Is quantized by 4 bits, G is 4 bits, and B is 4 bits, and has a function of preventing a color that is too close from being registered in the palette.

【0098】パレット生成部6は、RGB色成分ヒスト
グラム生成部11の出力を受取り、度数の高いものから
優先的に256の異なる色を選択し、パレットデータp
としてパレット記憶部7に書きこむ。
The palette generation unit 6 receives the output of the RGB color component histogram generation unit 11 and selects 256 different colors from those with the highest frequency by priority and selects the palette data p
Is written in the pallet storage unit 7.

【0099】減色部8は、原画像フレームメモリを参照
して、カラー画像(フルカラー画像)fの画素の色を既
存のアルゴリズムを用いてパレット記憶部7に記憶され
たパレットデータpの中でもっとも近い色を探し出し、
その色を示すカラーコードによってカラー画像fの色を
順次表現し、減色画像フレームメモリ9に対して書き込
む。
The color reduction unit 8 refers to the original image frame memory and determines the color of the pixel of the color image (full color image) f in the palette data p stored in the palette storage unit 7 using the existing algorithm. Find a close color,
The color of the color image f is sequentially expressed by a color code indicating the color, and is written to the reduced color image frame memory 9.

【0100】減色画像フレームメモリ9は、(複数ブロ
ック)カラー画像全体の画素をカラーコードで表現した
データ(カラーコードデータ)を全く格納するだけの容
量を持つ。
The color-reduced image frame memory 9 has a capacity enough to store data (color code data) representing the pixels of the entire (multiple blocks) color image in color code.

【0101】以上のように各構成部が機能する本実施の
形態5の減色処理装置について、その動作を図12を用
いて説明する。図12は、本実施の形態5の減色処理装
置の動作を示すフローチャートである。ここでは、目標
減色色数は256色とし、表示装置の表示能力は409
6色(R,G,B各4ビット)中256色とする。ま
た、入力された画像サイズ256×256とする。
The operation of the color reduction processing apparatus according to the fifth embodiment, in which the components function as described above, will be described with reference to FIG. FIG. 12 is a flowchart illustrating the operation of the color reduction processing apparatus according to the fifth embodiment. Here, the target color reduction color number is 256 colors, and the display capability of the display device is 409.
256 colors out of 6 colors (4 bits each for R, G, B). Also, assume that the input image size is 256 × 256.

【0102】ステップ12−1 まず、圧縮データ1がブロック単位で入力された復号化
器2は、圧縮データ1に対して可変長復号化および逆量
子化を行い、伸張後の画像データを原画像フレームメモ
リ3に格納する。このとき、復号化器2はDCT係数の
DC成分Dおよび一次AC成分Av1,Ah1,Av2,Ah2....を
記憶している。
Step 12-1 First, the decoder 2 to which the compressed data 1 has been input in units of blocks performs variable length decoding and inverse quantization on the compressed data 1, and converts the decompressed image data into the original image data. It is stored in the frame memory 3. At this time, the decoder 2 stores the DC component D of the DCT coefficient and the primary AC components Av1, Ah1, Av2, Ah2,.

【0103】まず、復号化器2は低周波成分順次抽出部
15にDC成分、つまり0次のAC成分を抽出するよう
指示する。
First, the decoder 2 instructs the low frequency component sequential extraction unit 15 to extract a DC component, that is, a zero-order AC component.

【0104】ステップ12−2 低周波成分順次抽出部15は復号化器2が記憶している
低周波成分、(ここでは、DCT係数のDC成分Dおよ
び一次AC成分Av1,Ah1)を抽出する。
Step 12-2 The low frequency component sequential extraction unit 15 extracts the low frequency components (here, the DC component D of the DCT coefficient and the primary AC components Av1, Ah1) stored in the decoder 2.

【0105】ステップ12−3 RGB色成分ヒストグラム生成部11は、低周波成分順
次抽出部15で抽出したDC成分DをRGBに変換した
後、原画像のすべてのブロックについてどの色がどれだ
けの頻度で使われているかをカウントする。いま、入力
された画像は256×256のサイズであり、ブロック
数では16×16となる。各ブロックに対して1組のR
GB成分が得られるため、都合256色が得られる。し
かし、表示能力を考慮してR,G,B各4ビットで量子
化を行うと、得られた256色は縮退(近い色が同じR
GB値にアサインされる)するため、色数は通常減少す
る。ここでは120色に縮退したとする。すなわち、目
標減色色数の256色にはあと136色「空き」がある
ことになる。
Step 12-3 The RGB color component histogram generation unit 11 converts the DC component D extracted by the low frequency component sequential extraction unit 15 into RGB, and then, for each block of the original image, Count what is used in Now, the input image has a size of 256 × 256, and the number of blocks is 16 × 16. One set of R for each block
Since the GB component is obtained, 256 colors are conveniently obtained. However, when quantization is performed on each of R, G, and B bits in consideration of the display capability, the obtained 256 colors are degenerated (close colors are the same R colors).
(Assigned to GB values), the number of colors usually decreases. Here, it is assumed that the color has been reduced to 120 colors. That is, there are 136 remaining “empties” in the target color reduction 256 colors.

【0106】ステップ12−4 パレット生成部6はRGB色成分ヒストグラム生成部1
1の結果を参照し、高い頻度で使われている色をパレッ
ト記憶部7に優先的に書きこんで行く。今回の場合は、
得られた色数がパレットの空きより少ないので頻度にか
かわらず120色すべてが採用される。
Step 12-4: The pallet generator 6 generates the RGB color component histogram generator 1.
Referring to the result of No. 1, the color used frequently is written into the palette storage unit 7 with priority. In this case,
Since the number of obtained colors is less than the available space in the palette, all 120 colors are adopted regardless of the frequency.

【0107】ステップ12−5 パレットにまだ空きがある場合は、低周波成分順次抽出
部15に、次に高い次数を指示し、ステップ12−2へ
進む。そうでない場合は、ステップ12−6へ進む。先
ほど次数として0を指示してあったので、ここでは1が
指示されるものとし説明を続ける。
Step 12-5: If there is still room in the pallet, the next higher order is instructed to the low-frequency component sequential extracting section 15, and the process proceeds to step 12-2. Otherwise, go to step 12-6. Since 0 was previously designated as the order, the description is continued here assuming that 1 is designated.

【0108】ステップ12−2 今度は次数1が指示されているので、DC成分Dおよび
1次AC成分Av1,Ah1を用いてD+Av1,D−Av1,
D+Ah1.D−Ah1を抽出する。
Step 12-2 Since the order 1 is designated, D + Av1, D−Av1, and D−Av1, D−Av1, are calculated using the DC component D and the primary AC components Av1 and Ah1.
D + Ah1. Extract D-Ah1.

【0109】ステップ12−3 前ステップで抽出された色データをRGBに変換した
後、原画像のすべてのブロックについてどの色がどれだ
けの頻度で使われているかをカウントする。今度は、各
ブロックに対し、4組の色が得られるため、256ブロ
ック×4色の色が新たに候補になったことになる。ここ
で、R,G,B各成分を4ビットで量子化することによ
り1024色の色に縮退したものとする。
Step 12-3 After converting the color data extracted in the previous step into RGB, it is counted which color is used and how often in all blocks of the original image. In this case, since four sets of colors are obtained for each block, 256 blocks × 4 colors are newly set as candidates. Here, it is assumed that each of the R, G, and B components is reduced to 1024 colors by quantizing with 4 bits.

【0110】ステップ12−4 パレット生成部6はRGB色成分ヒストグラム生成部1
1の結果を参照し、高い頻度で使われている色をパレッ
ト記憶部7に書き込んで行く。いま、パレットの空きは
136であるので、得られた270色のうち使用頻度の
高い136色を選抜する。
Step 12-4: The pallet generator 6 is the RGB color component histogram generator 1.
With reference to the result of No. 1, the color used frequently is written in the palette storage unit 7. Since there are 136 available pallets, 136 colors that are frequently used are selected from the obtained 270 colors.

【0111】ステップ12−5 パレツトにまだ空きがある場合は、低周波成分順次抽出
部15に次に高い次数を指示し、ステップ12−2へ進
む。そうでない場合は12−6へ進む。先ほど1を指示
してあり、もうパレットに空きがないものとして説明を
続ける。この場合、ステップ12−6へ進む。
Step 12-5: If there is still a vacancy in the palette, the next higher order is instructed to the low frequency component sequential extraction section 15, and the process proceeds to step 12-2. Otherwise, proceed to 12-6. The explanation is continued assuming that 1 has been designated earlier and the pallet has no empty space. In this case, the process proceeds to step 12-6.

【0112】ステップ12−6 減色部8は、パレット記憶部7に記憶されたパレット色
の中でも最も近い色を探し出しカラー画像fの色データ
の量子化(近似)を行う。このとき、量子化された色を
カラーコードに変換し、減色画像フレームメモリ9にカ
ラーコードを書き込む。
Step 12-6 The color reduction unit 8 searches for the closest color among the palette colors stored in the palette storage unit 7 and quantizes (approximates) the color data of the color image f. At this time, the quantized color is converted into a color code, and the color code is written into the reduced color image frame memory 9.

【0113】以上のように本実施の形態5の減色処理装
置は、パレットが期待している色数まで埋まらない場合
には、低周波成分順次抽出部15によって次に次数の高
いAC成分のデータを抽出できるので、抽出されたパレ
ット中の色分布を徐々に充実させていくことができるの
で、高品位の減色画像を得ることができる。
As described above, in the color reduction processing apparatus according to the fifth embodiment, when the pallet is not filled with the expected number of colors, the low-frequency component sequential extraction unit 15 outputs the data of the AC component having the next higher order. Can be extracted, the color distribution in the extracted palette can be gradually enhanced, and a high-quality color-reduced image can be obtained.

【0114】[0114]

【発明の効果】以上の説明より明らかなように本発明に
よる減色処理装置は、圧縮された画像データ(圧縮デー
タ)を伸張する前にパレット色を選択してパレットデー
タの作成を行い、伸張後のフルカラーデータを画像メモ
リ上に展開することなく、順次パレット色に近似して直
接表示メモリに書き込むことができるので、カラー画像
データを記憶する画像メモリとパレツトデータ作成のた
めのヒストグラムを記憶するヒストグラムメモリを削減
できるという有利な効果が得られる。また、表示のため
の演算を大幅に削減することができ、携帯端末装置など
では極めて重要となる消費電力を削減することができる
という有利な効果が得られる。
As is apparent from the above description, the color reduction processing apparatus according to the present invention selects palette colors before decompressing compressed image data (compressed data) and creates palette data. Image data for storing color image data and a histogram memory for storing a histogram for creating palette data, since full color data of each color can be sequentially approximated to a palette color and written directly to the display memory without being developed on the image memory. Has the advantageous effect of reducing In addition, the calculation for display can be significantly reduced, and an advantageous effect that power consumption, which is extremely important in a portable terminal device or the like, can be reduced can be obtained.

【0115】また、本発明による減色処理装置は、ユー
ザが自由にAC成分の次数を指定できるので、「何色に
まで減色したいか」によって、たとえば、256色なら
一次まで、4096色なら三次まで、などというよう
に、目標色数によって高精度な減色処理を行うことがで
きるという有利な効果が得られる。
Further, the color reduction processing apparatus according to the present invention allows the user to freely specify the order of the AC component. Therefore, depending on "what color do you want to reduce?" .., Etc., the advantageous effect of being able to perform highly accurate color reduction processing according to the target number of colors is obtained.

【0116】また、本発明による減色処理装置は、人間
の目が暗いところより明るいところで色に敏感であると
いう性質を利用し、明るい色ほど度数を水増ししてカウ
ントするので、明るい色が優先的にパレット登録され、
見た目上の減色画像の品質を向上させることができると
いう有利な効果を有する。
Further, the color reduction processing apparatus according to the present invention utilizes the property that human eyes are more sensitive to colors where they are brighter than where they are dark. Is registered in the pallet,
This has the advantageous effect that the quality of the apparently reduced color image can be improved.

【0117】また、本発明による減色処理装置は、人間
の目がUV成分よりY成分に敏感であるという性質を利
用し、Y成分の分解能をUV成分に比べて高くして、
「Y成分のわずかな差でも別のいろとしてパレットに登
録する」ことができるので、人間の視覚上、減色画像の
品質を向上させることができるという効果が得られる。
Further, the color reduction processing apparatus according to the present invention makes use of the property that the human eye is more sensitive to the Y component than the UV component, and makes the resolution of the Y component higher than that of the UV component.
Since “a slight difference in the Y component can be registered as another color in the palette”, the effect of improving the quality of the color-reduced image in human vision can be obtained.

【0118】また、本発明による減色処理装置は、パレ
ットが期待している色数まで埋まらない場合には、低周
波成分順次抽出部によって次に次数の高いAC成分のデ
ータを抽出できるので、抽出されたパレットの中の色分
布を徐々に充実させていくことができるので、高品位の
減色画像を得ることができるという有利な効果が得られ
る。
In the color reduction processing apparatus according to the present invention, when the palette does not fill the expected number of colors, the low frequency component sequential extraction unit can extract the data of the AC component having the next higher order. Since the color distribution in the selected palette can be gradually enhanced, an advantageous effect that a high-quality color-reduced image can be obtained can be obtained.

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

【図1】従来の減色処理装置の構成を示すブロック図FIG. 1 is a block diagram showing a configuration of a conventional color reduction processing device.

【図2】同減色処理装置の動作を示すフローチャートFIG. 2 is a flowchart showing the operation of the color reduction processing apparatus.

【図3】本発明の実施の形態1の減色処理装置の構成を
示すブロック図
FIG. 3 is a block diagram illustrating a configuration of a color reduction processing device according to the first embodiment of the present invention;

【図4】同減色処理装置の動作を示すフローチャートFIG. 4 is a flowchart showing the operation of the color reduction processing apparatus.

【図5】本発明の実施の形態2の減色処理装置の構成を
示すブロック図
FIG. 5 is a block diagram illustrating a configuration of a color reduction processing apparatus according to a second embodiment of the present invention.

【図6】同減色処理装置の動作を示すフローチャートFIG. 6 is a flowchart showing the operation of the color reduction processing apparatus.

【図7】本発明の実施の形態3の減色処理装置の構成を
示すブロック図
FIG. 7 is a block diagram illustrating a configuration of a color reduction processing apparatus according to a third embodiment of the present invention.

【図8】同減色処理装置の動作を示すフローチャートFIG. 8 is a flowchart showing the operation of the color reduction processing apparatus.

【図9】本発明の実施の形態4の減色処理装置の構成を
示すブロック図
FIG. 9 is a block diagram illustrating a configuration of a color reduction processing apparatus according to a fourth embodiment of the present invention.

【図10】同減色処理装置の動作を示すフローチャートFIG. 10 is a flowchart showing the operation of the color reduction processing apparatus.

【図11】本発明の実施の形態5の減色処理装置の構成
を示すブロック図
FIG. 11 is a block diagram illustrating a configuration of a color reduction processing apparatus according to a fifth embodiment of the present invention.

【図12】同減色処理装置の動作を示すフローチャートFIG. 12 is a flowchart showing the operation of the color reduction processing apparatus.

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

1 圧縮データ 2 復号化器 3 原画像フレームメモリ 6 パレット生成部 7 パレット記憶部 8 減色部 9 減色画像フレームメモリ 10 低周波成分抽出部 11 RGB成分ヒストグラム生成部 12 AC成分次数指定部 13 明−暗度数線形補正部 14 YUV成分ヒストグラム生成部 15 低周波成分順次抽出部 DESCRIPTION OF SYMBOLS 1 Compressed data 2 Decoder 3 Original image frame memory 6 Palette generation unit 7 Palette storage unit 8 Color reduction unit 9 Color reduction image frame memory 10 Low frequency component extraction unit 11 RGB component histogram generation unit 12 AC component order designation unit 13 Light-dark Frequency linearity correction unit 14 YUV component histogram generation unit 15 Low frequency component sequential extraction unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/60 H04N 1/40 D 1/46 1/46 Z Fターム(参考) 5B057 BA26 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC01 CE18 CG05 DC23 5C057 AA06 AA11 CA01 DA00 EA01 EA02 EA07 EC01 EL01 EM01 GE08 GF00 GG01 5C077 LL18 LL20 MP08 PP32 PP34 PP48 PQ08 PQ19 PQ22 RR21 SS06 5C079 HB01 HB11 LA02 LA27 LA31 LB11 MA02 MA11 NA06 NA10 NA25 NA29 PA05 5C082 AA00 BA12 BA29 BA34 BA35 BA36 BB16 BB25 BB42 BB44 DA53 DA63 DA73 DA89 MM02 MM04 MM07 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 1/60 H04N 1/40 D 1/46 1/46 Z F term (Reference) 5B057 BA26 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC01 CE18 CG05 DC23 5C057 AA06 AA11 CA01 DA00 EA01 EA02 EA07 EC01 EL01 EM01 GE08 GF00 GG01 5C077 LL18 LL20 MP08 PP32 PP34 PP48 PQ08 PQ19 PQ22 RR21 NA05 MA02 NA01 LA01 BA12 BA29 BA34 BA35 BA36 BB16 BB25 BB42 BB44 DA53 DA63 DA73 DA89 MM02 MM04 MM07

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】DCTを使った圧縮データを伸張する復号
化器と、前記復号化器から圧縮データを伸長するときに
得られたDCT係数のDC成分および低次AC成分を抽
出する低周波成分抽出部と、前記復号化器が出力した伸
張後の画像を記憶する原画像フレームメモリと、前記低
周波成分抽出部から得られたYUV色成分をRGB成分
に変換して度数分布としてカウントするRGB色成分ヒ
ストグラム生成部と、減色後の画像のパレットを記憶す
るためのパレット記憶部と、前記RGB色成分ヒストグ
ラム生成部の出力から度数の多い色成分を優先的に抜出
してパレット記憶部に登録するパレット生成部と、原画
像フレームメモリ内の各画素の色成分に対して、パレッ
ト記憶部に登録されている各色成分とを比較し、もっと
も近い色をパレット記憶部の中から探し出し、前記選択
したパレット色に対して与えられたカラーコードに変換
して減色画像フレームメモリに記録する減色処理部と、
減色後の各画素がパレット記憶部に登録されたどの色と
もっとも近いかを原画像の画素位置と対応付けて記憶す
る減色画像フレームメモリとを有することを特徴とする
減色処理装置。
1. A decoder for decompressing compressed data using DCT, and a low-frequency component for extracting DC components and low-order AC components of DCT coefficients obtained when decompressing the compressed data from the decoder. An extraction unit, an original image frame memory for storing the decompressed image output from the decoder, and RGB for converting the YUV color component obtained from the low frequency component extraction unit into an RGB component and counting it as a frequency distribution A color component histogram generation unit, a palette storage unit for storing a palette of images after color reduction, and a color component having a high frequency is preferentially extracted from the output of the RGB color component histogram generation unit and registered in the palette storage unit. The palette generation unit compares the color components of each pixel in the original image frame memory with each color component registered in the palette storage unit, and determines the closest color to the palette. Find out the storage unit, a color reduction process unit to be recorded in the reduced color image frame memory is converted into the color code given to the selected palette colors,
A color-reduction processing apparatus comprising: a color-reduction image frame memory for storing which color of each pixel after color reduction is closest to a color registered in a palette storage unit in association with a pixel position of an original image.
【請求項2】請求項1の減色処理装置にAC成分次数指
定部を加え、ユーザにより「どの次数のAC成分までを
パレット生成に使用するか」を指定できるようにしたこ
とを特徴とする減色処理装置。
2. A color reduction processing apparatus according to claim 1, further comprising an AC component order designation unit, which allows the user to designate the order of the AC components to be used for pallet generation. Processing equipment.
【請求項3】請求項1の減色処理装置に明−暗度数線形
補正部を加え、パレットを生成する際に暗い色よりも明
るい色を優先的にパレットに登録することを特徴とする
減色処理装置。
3. A color reduction process according to claim 1, further comprising adding a light-dark frequency linear correction unit to the color reduction device, wherein a color brighter than a dark color is preferentially registered in a palette when a palette is generated. apparatus.
【請求項4】請求項1の減色処理装置におけるRGB色
成分ヒストグラム生成部の代わりに、低周波成分抽出部
から得られたYUV色成分におけるY成分に、UV成分
と比較して多くのビットを割り当てるようにして量子化
するYUV色成分ヒストグラム生成部を加えたことを特
徴とする減色処理装置。
4. A Y-color component in a YUV color component obtained from a low-frequency component extraction unit, in which a large number of bits are compared with the UV component instead of the RGB color component histogram generation unit in the color reduction processing device according to claim 1. A color reduction processing apparatus characterized by adding a YUV color component histogram generation unit that performs quantization by assigning.
【請求項5】請求項1の減色処理装置における低周波成
分抽出部の代わりに、低周波成分順次抽出部を置き、パ
レット生成部がパレットを生成するときに、パレットに
まだ空きがあれば、低周波成分順次抽出部に対してさら
に高い次数のAC成分の抽出を要求し、パレットに空き
がなくなるまでAC成分の次数を1つづつ上げて行き、
パレットに登録される色をできるだけ充実させるように
したことを特徴とする減色処理装置。
5. A low-frequency component extracting unit according to claim 1, wherein a low-frequency component extracting unit is provided instead of the low-frequency component extracting unit. Requests the low frequency component sequential extraction unit to extract higher order AC components, and increases the AC component order by one until there is no more space on the pallet.
A color reduction processing apparatus characterized in that colors registered in a palette are enhanced as much as possible.
JP2001015397A 2001-01-24 2001-01-24 Subtractive color processor Pending JP2002218500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001015397A JP2002218500A (en) 2001-01-24 2001-01-24 Subtractive color processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001015397A JP2002218500A (en) 2001-01-24 2001-01-24 Subtractive color processor

Publications (1)

Publication Number Publication Date
JP2002218500A true JP2002218500A (en) 2002-08-02

Family

ID=18881955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001015397A Pending JP2002218500A (en) 2001-01-24 2001-01-24 Subtractive color processor

Country Status (1)

Country Link
JP (1) JP2002218500A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7729025B2 (en) 2003-11-11 2010-06-01 Fujitsu Limited Color image compressing method and device
US8593478B2 (en) 2010-10-19 2013-11-26 Hewlett-Packard Development Company, L.P. Extraction of a color palette model from an image of a document
CN114365493A (en) * 2019-09-30 2022-04-15 Ati科技无限责任公司 Parallel histogram computation applied to palette table derivation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7729025B2 (en) 2003-11-11 2010-06-01 Fujitsu Limited Color image compressing method and device
US8593478B2 (en) 2010-10-19 2013-11-26 Hewlett-Packard Development Company, L.P. Extraction of a color palette model from an image of a document
CN114365493A (en) * 2019-09-30 2022-04-15 Ati科技无限责任公司 Parallel histogram computation applied to palette table derivation

Similar Documents

Publication Publication Date Title
CN101653005B (en) Method and device for processing graph data
US7873212B2 (en) Compression of images for computer graphics
US5467413A (en) Method and apparatus for vector quantization for real-time playback on low cost personal computers
US5353061A (en) System and method for frame-differencing video compression/decompression using perceptually-constant information and image analysis
US20070076971A1 (en) Compression of images for computer graphics
JP4440308B2 (en) Rate control method and system in image compression
US7421130B2 (en) Method and apparatus for storing image data using an MCU buffer
US6614942B1 (en) Constant bitrate algorithm for block based image compression
JPH1196345A (en) Method for compressing and inversely compressing graphics image
KR20140121356A (en) Tile-based compression and decompression for graphic applications
JPH10327407A (en) Mpeg system decoder and its data processing method
US10165278B2 (en) Image compression device, image compression method, image extension device, and image extension method
EP2294826A1 (en) Method for compressing images and a format for compressed images
JP2002218500A (en) Subtractive color processor
JP2905133B2 (en) Digital encoding device
JP2002084426A (en) Image processor and image processing method
JP2001145106A (en) Device and method for compressing image
US20070154102A1 (en) Image decompression system, method and program
JP2002218253A (en) Color subtraction processor
JP2002171534A (en) Image display device and image display method
JP3260925B2 (en) Image processing device
JP2002016943A (en) Apparatus and method for displaying image
JP3781012B2 (en) Image data compression method, image data expansion method, and image data expansion circuit
JP3110255B2 (en) Character data compression processing apparatus and character data compression method
JP2003134532A (en) Image compression apparatus, image compression method, image expanding apparatus, and program