JP2002016943A - Apparatus and method for displaying image - Google Patents

Apparatus and method for displaying image

Info

Publication number
JP2002016943A
JP2002016943A JP2000194194A JP2000194194A JP2002016943A JP 2002016943 A JP2002016943 A JP 2002016943A JP 2000194194 A JP2000194194 A JP 2000194194A JP 2000194194 A JP2000194194 A JP 2000194194A JP 2002016943 A JP2002016943 A JP 2002016943A
Authority
JP
Japan
Prior art keywords
color
image
palette
data
display
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
JP2000194194A
Other languages
Japanese (ja)
Inventor
Hideyuki Fujishima
秀幸 藤嶋
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 JP2000194194A priority Critical patent/JP2002016943A/en
Publication of JP2002016943A publication Critical patent/JP2002016943A/en
Pending legal-status Critical Current

Links

Landscapes

  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
  • Color Television Systems (AREA)
  • Processing Of Color Television Signals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an apparatus for displaying an image capable of forming pallet data without using a color image memory and a histogram memory, reducing a calculating amount and conducting a natural image display. SOLUTION: This apparatus for displaying an image comprises a decoder 12 for expanding compression data and extracting a DC component of a DCT coefficient, a pallet data forming unit 13 for selecting a display pallet color from the extracted DC component, a color quantizer 4 for approximating the color image of an output of the decoder to a selected pallet color and converting the image into a color code given to the selected pallet color, a display memory 5 for holding the color image converted into the color code, a lookup table 6 for converting the color image held by the display memory into color data for a display driver, a display device 8 for displaying the color image, and a display driver 7 for controlling the display device according to the converted color data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、演算資源が限られ
ている携帯端末装置等の装置において減色処理を行う画
像表示装置および画像表示方法に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to an image display device and an image display method for performing color reduction processing in a device such as a portable terminal device having limited computational resources.

【0002】[0002]

【従来の技術】近年、画像の表示を行う端末装置が急速
に普及している。このような端末装置は、装置のコスト
を低く押さえるために、表示可能な色の数を256色程
度に制限し、表示のためのメモリを節約することが多
い。このような制限があっても、文書や表などの用途に
ついては十分な表示能力であるが、写真などの自然な画
像を表示する際には、24ビット程度で表現された画像
を8ビットで表現するために減色処理を行う必要があ
り、この減色の方法により画質は大きく影響される。そ
のため、できるだけ演算量と使用するメモリ容量とを少
なくして、高い画質を実現するという要求が高まってい
る。減色の有効な方式の一つとして、数万色の中から必
要な256色を選択して表示を行う適応パレット方式が
ある。以下に従来の画像表示装置について説明する。
2. Description of the Related Art In recent years, terminal devices for displaying images have rapidly become widespread. Such terminal devices often limit the number of colors that can be displayed to about 256 colors in order to keep the cost of the device low, thereby saving memory for display. Despite such limitations, the display capability is sufficient for applications such as documents and tables. However, when displaying a natural image such as a photograph, an image represented by about 24 bits is represented by 8 bits. It is necessary to perform a color reduction process for expression, and the image quality is greatly affected by the color reduction method. Therefore, there is an increasing demand for realizing high image quality by minimizing the calculation amount and the memory capacity used. As one of effective methods for color reduction, there is an adaptive palette method for selecting and displaying necessary 256 colors from tens of thousands of colors. Hereinafter, a conventional image display device will be described.

【0003】図7は従来の画像表示装置を示すブロック
図である。
FIG. 7 is a block diagram showing a conventional image display device.

【0004】図7において、2はDCTを利用した圧縮
データ1を復号する復号化器、3は復号化器2から出力
されるフルカラーで表現されたフルカラーデータ(カラ
ー画像データ)を記録する画像メモリとしてのフルカラ
ーメモリ、4は後述のパレットデータ作成器11から与
えられたパレット色で復号化器2出力のフルカラーデー
タを近似する色量子化器である。色量子化器4は、復号
化器2出力のフルカラーデータを、上記のパレット色で
近似して、8ビットの符号で表されたカラーコードに変
換する。また、5は色量子化器4から出力されるカラー
コードを記憶する表示メモリ、6は表示メモリ5から読
み出されたカラーコードを色データに変換するルックア
ップテーブルとしての色変換テーブル、7は色変換テー
ブル7から出力される色データに従って後述のディスプ
レイデバイス8を制御するディスプレイドライバ、8は
画像の表示を行うディスプレイデバイス、9は復号化器
2から出力されるフルカラーデータを基にヒストグラム
を作成するヒストグラム作成器、10はヒストグラム作
成器9で作成されたヒストグラムを記録するヒストグラ
ムメモリ、11はヒストグラムメモリ10上に作成され
たヒストグラムを基にカラー画像の表示の際に使用する
パレット色を選択し、パレットデータpを作成するパレ
ットデータ作成器である。
In FIG. 7, reference numeral 2 denotes a decoder for decoding compressed data 1 using DCT, and reference numeral 3 denotes an image memory for recording full-color data (color image data) output from the decoder 2 in full color. The full color memory 4 is a color quantizer that approximates full color data output from the decoder 2 with a palette color given from a palette data generator 11 described later. The color quantizer 4 converts the full-color data output from the decoder 2 into a color code represented by an 8-bit code by approximating the color data with the above-mentioned palette color. Reference numeral 5 denotes a display memory for storing a color code output from the color quantizer 4; 6, a color conversion table as a lookup table for converting the color code read from the display memory 5 into color data; A display driver for controlling a display device 8 described later in accordance with the color data output from the color conversion table 7, 8 a display device for displaying an image, 9 a histogram based on the full color data output from the decoder 2 A histogram creator 10 for storing a histogram created by the histogram creator 9; and 11, a pallet color used for displaying a color image based on the histogram created on the histogram memory 10. , A pallet data generator for generating pallet data p.

【0005】このように構成された画像表示装置につい
て、その動作を図8を用いて説明をする。図8は図7の
画像表示装置の動作を示すフローチャートである。
The operation of the thus configured image display device will be described with reference to FIG. FIG. 8 is a flowchart showing the operation of the image display device of FIG.

【0006】図8において、まずはじめに、復号化器2
は、可変長復号化、逆量子化および逆DCTにより、各
画素の色データを算出し、得られたカラー画像データを
フルカラーメモリ3に保存する(S41)。次に、ヒス
トグラム作成器9は、画像メモリ(フルカラーメモリ)
3に保存された色データをもとに色のヒストグラムを作
成し(S42)、その結果をヒストグラムメモリ10に
記憶する。次に、パレットデータ作成器11は、ヒスト
グラムメモリ10から読み出したヒストグラムを基にカ
ラー画像の表示の際に使用するパレット色を選択し、パ
レットデータpを作成する(S43)。次に、色量子化
器4は、パレットデータ作成器11からのパレットデー
タpを用いて各画素の色を近似(量子化)し(S4
4)、その近似された色を記号(カラーコード)に変換
して表示メモリ5に書き込む(S45)。次に、色変換
テーブル6は記号から色データへの変換を行い(S4
6)、ディスプレイドライバ7でディスプレイデバイス
8を駆動して画像を表示する(S47)。
In FIG. 8, first, the decoder 2
Calculates the color data of each pixel by variable length decoding, inverse quantization and inverse DCT, and stores the obtained color image data in the full color memory 3 (S41). Next, the histogram creator 9 includes an image memory (full color memory)
Then, a color histogram is created based on the color data stored in No. 3 (S42), and the result is stored in the histogram memory 10. Next, the palette data generator 11 selects a palette color to be used for displaying a color image based on the histogram read from the histogram memory 10, and generates palette data p (S43). Next, the color quantizer 4 approximates (quantizes) the color of each pixel using the palette data p from the palette data generator 11 (S4).
4) The converted color is converted into a symbol (color code) and written into the display memory 5 (S45). Next, the color conversion table 6 performs conversion from symbols to color data (S4).
6) The display driver 8 drives the display device 8 to display an image (S47).

【0007】上述した従来の画像表示装置では、使用す
る色を選択する際に逆DCT変換により画像全体の画素
の色を一旦フルカラーメモリ3上に展開する必要がある
ため、フルカラー(24ビットカラー)による画像をメ
モリ3上に持つことになる。更に、その色データからヒ
ストグラムを作成するために膨大な演算量を必要とし、
更なるメモリ(ヒストグラムメモリ)10を必要とす
る。これは、携帯端末装置などのように限られた演算資
源のなかで画像表示を行う場合には、膨大なメモリ容量
によるコストアップとヒストグラム作成のための演算に
伴う消費電力の増加とを生じる。
In the above-described conventional image display device, when selecting a color to be used, it is necessary to once develop the colors of the pixels of the entire image in the full-color memory 3 by inverse DCT conversion. Is stored in the memory 3. Furthermore, a huge amount of calculation is required to create a histogram from the color data,
An additional memory (histogram memory) 10 is required. This causes an increase in cost due to an enormous memory capacity and an increase in power consumption due to calculations for creating a histogram when an image is displayed in limited calculation resources such as a portable terminal device.

【0008】[0008]

【発明が解決しようとする課題】このように、上記従来
の画像表示装置では、膨大なメモリ容量によるコストア
ップとヒストグラム作成のための演算に伴う消費電力の
増加とを発生するという問題点を有していた。
As described above, the above-mentioned conventional image display apparatus has a problem that an increase in cost due to an enormous memory capacity and an increase in power consumption due to an operation for generating a histogram occur. Was.

【0009】この画像表示装置では、DCT係数の段階
で色の選択を行って予め変換テーブル用の色を選択して
おくことにより、すべての画素の色情報をメモリ上に展
開することなく予め用意した色により近似して順次記号
に変換できるため、フルカラー画像を記憶するメモリと
ヒストグラムを作成するためのメモリとを使わずにパレ
ットデータを作成することができ、さらに、画像全体の
ヒストグラムを作成する処理を行わないことにより演算
量を削減することができ、消費電力を削減できると共に
より自然な画像を表示することができることが要求され
ている。
In this image display device, by selecting a color at the stage of DCT coefficient and selecting a color for the conversion table in advance, color information of all pixels is prepared in advance without being developed on the memory. The color can be converted to symbols sequentially by approximating the color, so that palette data can be created without using a memory for storing a full-color image and a memory for creating a histogram, and further, a histogram for the entire image is created. By not performing the processing, it is required that the amount of calculation can be reduced, the power consumption can be reduced, and a more natural image can be displayed.

【0010】本発明は、この要求を満たすため、フルカ
ラー画像を記憶するメモリとヒストグラムを作成するた
めのメモリとを使わずにパレットデータを作成すること
ができ、また画像全体のヒストグラムを作成する処理を
行わないことにより演算量を削減することができ、消費
電力の削減とより自然な画像表示とを行うことができる
画像表示装置、および、フルカラー画像を記憶するメモ
リとヒストグラムを作成するためのメモリとを使わずに
パレットデータを作成し、また画像全体のヒストグラム
を作成する処理を行わないことにより演算量を削減し、
消費電力の削減とより自然な画像表示とを行うための画
像表示方法を提供することを目的とする。
According to the present invention, in order to satisfy this demand, palette data can be created without using a memory for storing a full-color image and a memory for creating a histogram, and a process for creating a histogram of the entire image. Image display device that can reduce the amount of computation by not performing the processing, can reduce power consumption, and can perform more natural image display, and a memory for storing a full-color image and a memory for creating a histogram By reducing the amount of calculation by creating palette data without using
It is an object of the present invention to provide an image display method for reducing power consumption and displaying a more natural image.

【0011】[0011]

【課題を解決するための手段】上記課題を解決するため
に本発明の画像表示装置は、DCTを使った圧縮データ
を伸張すると共にDCT係数のDC成分を抽出する復号
化器と、表示に使用するパレット色を抽出したDC成分
の中から選択するパレットデータ作成器と、復号化器か
ら出力されるカラー画像を選択したパレット色に近似す
ると共に選択したパレット色に対して与えられたカラー
コードに変換する色量子化器と、カラーコードに変換し
たカラー画像を保持する表示メモリと、表示メモリに保
持されているカラー画像をディスプレイドライバ用の色
データに変換するルックアップテーブルと、カラー画像
を表示するディスプレイデバイスと、変換した色データ
に従ってディスプレイデバイスを制御するディスプレイ
ドライバとを有する構成を備えている。
According to the present invention, there is provided an image display apparatus comprising: a decoder for expanding compressed data using DCT and extracting a DC component of a DCT coefficient; A palette data generator for selecting from the DC components from which the palette color to be extracted is extracted, and a color image output from the decoder which approximates the selected palette color and converts the color code given to the selected palette color to the selected color. A color quantizer for conversion, a display memory for holding a color image converted to a color code, a look-up table for converting the color image held in the display memory to color data for a display driver, and a display of a color image And a display driver that controls the display device according to the converted color data. It has the structure.

【0012】これにより、フルカラー画像を記憶するメ
モリとヒストグラムを作成するためのメモリとを使わず
にパレットデータを作成することができ、また画像全体
のヒストグラムを作成する処理を行わないことにより演
算量を削減することができ、消費電力の削減とより自然
な画像表示とを行うことができる画像表示装置が得られ
る。
Thus, pallet data can be created without using a memory for storing a full-color image and a memory for creating a histogram, and the amount of computation can be reduced by eliminating the process of creating a histogram of the entire image. And an image display device capable of reducing power consumption and performing more natural image display can be obtained.

【0013】上記課題を解決するために本発明の画像形
成方法は、DCTに基づく圧縮データからDCT係数の
DC成分を抽出する抽出ステップと、抽出したDC成分
をパレット色として選択するパレット色選択ステップ
と、圧縮データを逆DCTにより復号化してカラー画像
を生成する復号化ステップと、生成したカラー画像の画
素の色を選択したパレット色で近似する色量子化ステッ
プと、近似したカラー画像の画素の色を逐次カラーコー
ドとして表示メモリに格納するメモリ格納ステップと、
カラー画像の全画素に対して復号化ステップと色量子化
ステップとメモリ格納ステップとを繰り返す繰返しステ
ップと、表示メモリから格納したカラーコードを読み出
して色データに変換する色データ変換ステップと、変換
した色データによってディスプレイデバイスを制御して
画像を表示する画像表示ステップとを有する構成を備え
ている。
In order to solve the above-mentioned problems, an image forming method according to the present invention comprises an extracting step of extracting a DC component of a DCT coefficient from compressed data based on DCT, and a palette color selecting step of selecting the extracted DC component as a palette color. A decoding step of decoding the compressed data by inverse DCT to generate a color image; a color quantization step of approximating a color of a pixel of the generated color image with a selected palette color; A memory storage step of sequentially storing colors as color codes in a display memory;
A repetition step of repeating a decoding step, a color quantization step, and a memory storage step for all pixels of a color image; a color data conversion step of reading a stored color code from a display memory and converting the color code into color data; An image display step of displaying an image by controlling a display device based on color data.

【0014】これにより、フルカラー画像を記憶するメ
モリとヒストグラムを作成するためのメモリとを使わず
にパレットデータを作成し、また画像全体のヒストグラ
ムを作成する処理を行わないことにより演算量を削減
し、消費電力の削減とより自然な画像表示とを行うため
の画像表示方法が得られる。
Thus, palette data can be created without using a memory for storing a full-color image and a memory for creating a histogram, and the amount of calculation can be reduced by not performing processing for creating a histogram of the entire image. Thus, an image display method for reducing power consumption and displaying images more naturally can be obtained.

【0015】[0015]

【発明の実施の形態】本発明の請求項1に記載の画像形
成装置は、DCTを使った圧縮データを伸張すると共に
DCT係数のDC成分を抽出する復号化器と、表示に使
用するパレット色を抽出したDC成分の中から選択する
パレットデータ作成器と、復号化器から出力されるカラ
ー画像を選択したパレット色に近似すると共に選択した
パレット色に対して与えられたカラーコードに変換する
色量子化器と、カラーコードに変換したカラー画像を保
持する表示メモリと、表示メモリに保持されているカラ
ー画像をディスプレイドライバ用の色データに変換する
ルックアップテーブルと、カラー画像を表示するディス
プレイデバイスと、変換した色データに従ってディスプ
レイデバイスを制御するディスプレイドライバとを有す
ることとしたものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An image forming apparatus according to a first aspect of the present invention includes a decoder for expanding compressed data using DCT and extracting a DC component of a DCT coefficient, and a palette color used for display. A palette data generator for selecting from the DC components from which the color has been extracted, and a color for approximating the color image output from the decoder to the selected palette color and converting the selected palette color into a given color code. A quantizer, a display memory for holding a color image converted into a color code, a look-up table for converting the color image held in the display memory into color data for a display driver, and a display device for displaying the color image And a display driver for controlling a display device according to the converted color data. A.

【0016】この構成により、圧縮された画像データ
(圧縮データ)を伸張する前にパレット色を選択してパ
レットデータの作成を行い、伸張後のフルカラーデータ
を画像メモリ上に展開することなく順次パレット色に近
似して、直接表示メモリに書き込むことができるので、
カラー画像データを記憶する画像メモリとパレットデー
タ作成のためのヒストグラムを記憶するヒストグラムメ
モリとを削除することができるという作用を有する。ま
た、表示のための色を復号化器出力のDC成分から選択
することにより、色の選択のための演算を大幅に削減す
ることができ、携帯端末装置などでは極めて重要となる
消費電力を削減することができるという作用を有する。
With this configuration, the palette color is selected and the palette data is created before the compressed image data (compressed data) is expanded, and the expanded full-color data is sequentially expanded without being expanded on the image memory. Since it can be written directly to the display memory, approximating the color,
This has the effect that the image memory for storing color image data and the histogram memory for storing histograms for creating palette data can be deleted. In addition, by selecting colors for display from the DC component of the decoder output, the calculation for selecting colors can be greatly reduced, and power consumption, which is extremely important in portable terminal devices, is reduced. Has the effect of being able to

【0017】請求項2に記載の画像表示方法は、DCT
に基づく圧縮データからDCT係数のDC成分を抽出す
る抽出ステップと、抽出したDC成分をパレット色とし
て選択するパレット色選択ステップと、圧縮データを逆
DCTにより復号化してカラー画像を生成する復号化ス
テップと、生成したカラー画像の画素の色を選択したパ
レット色で近似する色量子化ステップと、近似したカラ
ー画像の画素の色を逐次カラーコードとして表示メモリ
に格納するメモリ格納ステップと、カラー画像の全画素
に対して復号化ステップと色量子化ステップとメモリ格
納ステップとを繰り返す繰返しステップと、表示メモリ
から格納したカラーコードを読み出して色データに変換
する色データ変換ステップと、変換した色データによっ
てディスプレイデバイスを制御して画像を表示する画像
表示ステップとを有することとしたものである。
According to a second aspect of the present invention, there is provided an image display method comprising:
Extracting a DC component of a DCT coefficient from compressed data based on, a palette color selecting step of selecting the extracted DC component as a palette color, and a decoding step of decoding the compressed data by inverse DCT to generate a color image A color quantization step of approximating the color of the pixel of the generated color image with the selected palette color; a memory storing step of sequentially storing the color of the pixel of the approximated color image as a color code in a display memory; A repetition step of repeating a decoding step, a color quantization step, and a memory storage step for all pixels, a color data conversion step of reading a stored color code from a display memory and converting it into color data, An image display step of controlling the display device to display an image. In which it was decided to.

【0018】この構成により、圧縮された画像データ
(圧縮データ)を伸張する前にパレット色を選択してパ
レットデータの作成を行い、伸張後のフルカラーデータ
を画像メモリ上に展開することなく順次パレット色に近
似して、直接表示メモリに書き込むことができるので、
カラー画像データを記憶する画像メモリとパレットデー
タ作成のためのヒストグラムを記憶するヒストグラムメ
モリとを削除することができるという作用を有する。ま
た、表示のための色を抽出したDC成分から選択するこ
とにより、色の選択のための演算を大幅に削減すること
ができ、携帯端末装置などでは極めて重要となる消費電
力を削減することができるという作用を有する。
With this configuration, the palette color is selected and the palette data is created before the compressed image data (compressed data) is expanded, and the expanded full-color data is sequentially expanded without being expanded on the image memory. Since it can be written directly to the display memory, approximating the color,
This has the effect that the image memory for storing color image data and the histogram memory for storing histograms for creating palette data can be deleted. Further, by selecting colors for display from the extracted DC components, it is possible to greatly reduce the calculation for selecting colors, and to reduce power consumption, which is extremely important in portable terminal devices and the like. Has the effect of being able to.

【0019】請求項3に記載の画像表示方法は、請求項
2に記載の画像表示方法において、パレット色選択ステ
ップにおいて、パレット色として選択可能な色の数より
もDC成分の数の方が多い場合には、カラー画像の中央
に位置するブロックのDC成分から順番に色を選択し、
選択可能な色の数に到達したところで選択を終了するこ
ととしたものである。
According to a third aspect of the present invention, in the image display method of the second aspect, in the palette color selecting step, the number of DC components is larger than the number of colors that can be selected as palette colors. In this case, the colors are selected in order from the DC component of the block located at the center of the color image,
The selection is terminated when the number of selectable colors is reached.

【0020】この構成により、使用する色の選択を簡単
にしつつ、人物のポートレイトなどに適したより有効な
パレットを定義できるという作用を有する。
With this configuration, it is possible to define a more effective palette suitable for a portrait of a person while simplifying selection of colors to be used.

【0021】請求項4に記載の画像表示方法は、請求項
2に記載の画像表示方法において、パレット色選択ステ
ップにおいて、パレット色として選択可能な色の数より
もDC成分の数の方が多い場合には、カラー画像の単数
または複数の任意の位置を中心として順番にブロックの
DC成分から色を選択し、選択可能な色の数に到達した
ところで選択を終了することとしたものである。
According to a fourth aspect of the present invention, in the image display method of the second aspect, in the palette color selecting step, the number of DC components is larger than the number of colors that can be selected as palette colors. In this case, the colors are sequentially selected from the DC components of the block around one or more arbitrary positions of the color image, and the selection is terminated when the number of selectable colors is reached.

【0022】この構成により、使用する色の選択を簡単
にしつつ、複数の人物や人物と物体といったものが写っ
ている写真などを表示する際に有効なパレットを定義で
きるという作用を有する。
This configuration has the effect of simplifying the selection of colors to be used and defining an effective palette when displaying a photograph of a plurality of persons or a photograph of a person and an object.

【0023】請求項5に記載の画像表示方法は、請求項
2乃至4のいずれか1に記載の画像表示方法において、
パレット色選択ステップにおいて、パレット色として選
択可能な色の数よりもDC成分の数の方が多い場合に
は、類似した色が近隣のブロックにある場合には異なる
色として選択し、類似した色が離れたブロックにある場
合には同じ色として選択することとしたものである。
According to a fifth aspect of the present invention, there is provided the image display method according to any one of the second to fourth aspects, wherein:
In the palette color selection step, if the number of DC components is larger than the number of colors that can be selected as a palette color, if a similar color exists in a neighboring block, it is selected as a different color, and a similar color is selected. Are located in distant blocks, the same color is selected.

【0024】この構成により、色が変化する線が強調さ
れてしまう現象を抑制して、写真などの自然画像のため
の効果的なパレットを作成するという作用を有する。
This configuration has the effect of suppressing the phenomenon in which the line of changing color is emphasized and creating an effective palette for a natural image such as a photograph.

【0025】請求項6に記載の画像表示方法は、請求項
2乃至4のいずれか1に記載の画像表示方法において、
パレット色選択ステップにおいて、パレット色として選
択可能な色の数よりもDC成分の数の方が多い場合に
は、設定された距離よりも離れたブロックで類似した色
がある場合には異なる色として選択し、設定された距離
よりも近くのブロックで類似した色がある場合には同じ
色として選択することとしたものである。
According to a sixth aspect of the present invention, there is provided an image display method as set forth in any one of the second to fourth aspects.
In the palette color selection step, if the number of DC components is larger than the number of colors that can be selected as a palette color, if there is a similar color in a block that is longer than the set distance, it is determined as a different color. If there is a similar color in a block that is closer to the selected distance than the set distance, the block is selected as the same color.

【0026】この構成により、近隣画素の細かい変化を
無視する色の変化のはっきりしたイラストのような画像
に適したパレットを作成するという作用を有する。
This configuration has the effect of creating a palette suitable for an image such as an illustration with a clear change in color, ignoring fine changes in neighboring pixels.

【0027】請求項7に記載の画像表示装置は、請求項
1に記載の画像表示装置において、入力されるカラー画
像の識別子によって自然画像か合成画像かを判別する判
別手段を有し、判別手段は、カラー画像は自然画像であ
ると判別したときは請求項4に記載された画像表示方法
により画像表示を行い、カラー画像は合成画像であると
判別したときは請求項5に記載された画像表示方法によ
り画像表示を行うこととしたものである。
According to a seventh aspect of the present invention, there is provided the image display device according to the first aspect, further comprising a discriminating unit for discriminating whether the image is a natural image or a composite image based on an identifier of an input color image. When the color image is determined to be a natural image, image display is performed by the image display method described in claim 4, and when the color image is determined to be a composite image, the image described in claim 5 is displayed. The image display is performed by the display method.

【0028】この構成により、写真やCG等のように色
のなめらかな変化を持つ画像と、線画やポスターなどの
同じ色が広い領域を占めるような画像とにそれぞれ適し
たパレットを作成し、良好な画質を得るという作用を有
する。
With this configuration, a palette suitable for an image having a smooth change in color such as a photograph or CG and an image such as a line drawing or a poster occupying a wide area can be created. It has the effect of obtaining a high image quality.

【0029】以下、本発明の実施の形態について、図1
〜図6を用いて説明する。
Hereinafter, an embodiment of the present invention will be described with reference to FIG.
This will be described with reference to FIG.

【0030】(実施の形態1)図1は本発明の実施の形
態1による画像表示装置を示すブロック図である。
(Embodiment 1) FIG. 1 is a block diagram showing an image display apparatus according to Embodiment 1 of the present invention.

【0031】図1において、色量子化器4、表示メモリ
5、ルックアップテーブル6、ディスプレイドライバ
7、ディスプレイデバイス8は図7と同様のものなの
で、同一符号を付し、説明は省略する。12は入力され
た圧縮データ1を復号化し、復号化されたフルカラーデ
ータ(カラー画像データ)を出力するとともにDC成分
を抽出する復号化器、13は復号化器12から出力され
るDC成分を入力するパレットデータ作成器である。パ
レットデータ作成器13で作成されるパレットデータ
(パレット色を示すデータ)は色量子化器4およびルッ
クアップテーブル6に対して入力される。
In FIG. 1, the color quantizer 4, the display memory 5, the look-up table 6, the display driver 7, and the display device 8 are the same as those shown in FIG. Reference numeral 12 denotes a decoder which decodes the input compressed data 1 and outputs decoded full-color data (color image data) and extracts a DC component. Reference numeral 13 denotes a decoder which receives the DC component output from the decoder 12. Pallet data generator. Palette data (data indicating a palette color) created by the palette data creating unit 13 is input to the color quantizer 4 and the lookup table 6.

【0032】以上のように構成された画像表示装置につ
いて、機能等を説明する。
The functions and the like of the image display device configured as described above will be described.

【0033】圧縮データ1は原画像に対してDCT変換
等を施すことによって得られるもので、静止画像圧縮の
標準方式であるJPEGでは8×8画素ブロック毎にこ
のDCT変換を施し、更にDCT変換によって得られた
高周波成分を中心に量子化を行い、更に、そのデータに
対して可変長符号化を施すことにより画像データの圧縮
を実現する。復号化器12は、圧縮データ1に対して可
変長復号化および逆量子化を施し、DCT係数を抽出す
る。復号化器12は、このDCT係数のうちブロックデ
ータの先頭に記録されているDCT係数の中の直流成分
(DC成分)aのみを順次抽出し、さらに逆DCT変換
を行い、DCT係数から実際のカラー画像データ(フル
カラーデータ)vを生成する。パレットデータ作成器1
3は、入力されたDC成分aの中から、装置に対して指
定された数だけの異なる色を選択し、パレットデータp
として出力する。色量子化器3は、復号化器12から出
力されるカラー画像(フルカラー画像)vの画素の色を
既存のアルゴリズムを用いてパレットデータpによって
量子化し、割り当てられた色を示すカラーコードによっ
てカラー画像vの色を順次表現し、表示メモリ5に対し
て書き込む。表示メモリ5は、カラー画像v全体の画素
をカラーコードで表現したデータ(カラーコードデー
タ)をすべて格納するだけの容量を持つ。ルックアップ
テーブル6は、表示メモリ5から読みだしたカラーコー
ドをフルカラーで表現された色データに変換する。具体
的にはカラーコードをアドレスとし、アドレスによって
指定されるメモリのエントリには選択されたフルカラー
の色データが格納されており、そのアドレスの入力によ
り、選択された色データを出力する。更に、ディスプレ
イドライバ7は、色データに従ってディスプレイデバイ
ス8を制御するための電圧を発生する。ディスプレイデ
バイス8は、ディスプレイドライバ7から与えられた電
圧に従って各色の成分を発色させることにより、カラー
画像を表示する。
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 a still image, this DCT conversion is performed for each 8 × 8 pixel block, and further DCT conversion is performed. Quantization is performed centering on the high-frequency components obtained by the above, and the data is further subjected to variable-length coding to realize compression of image data. The decoder 12 performs variable length decoding and inverse quantization on the compressed data 1 to extract DCT coefficients. The decoder 12 sequentially extracts only the DC component (DC component) a of the DCT coefficients recorded at the head of the block data among the DCT coefficients, performs an inverse DCT transform, and performs actual DCT conversion from the DCT coefficients. The color image data (full color data) v is generated. Pallet data generator 1
3 selects, from the input DC component a, different colors as many as the number designated for the device, and sets palette data p
Output as The color quantizer 3 quantizes the colors of the pixels of the color image (full color image) v output from the decoder 12 with the palette data p using an existing algorithm, and performs color quantification using a color code indicating the assigned color. The colors of the image v are sequentially expressed and written to the display memory 5. The display memory 5 has a capacity to store all the data (color code data) expressing the pixels of the entire color image v with color codes. The look-up table 6 converts the color code read from the display memory 5 into color data expressed in full color. Specifically, a color code is used as an address, and the selected full-color color data is stored in an entry of a memory specified by the address, and the selected color data is output by inputting the address. Further, the display driver 7 generates a voltage for controlling the display device 8 according to the color data. The display device 8 displays a color image by causing each color component to emit color according to the voltage given from the display driver 7.

【0034】以上のように構成された画像表示装置につ
いて、その動作を図2を用いて説明する。図2は本発明
の実施の形態1による画像表示装置の動作を示すフロー
チャートである。
The operation of the image display device configured as described above will be described with reference to FIG. FIG. 2 is a flowchart showing the operation of the image display device according to the first embodiment of the present invention.

【0035】まず、圧縮データ1がブロック単位で入力
された復号化器12は、圧縮データ1に対して可変長復
号化及び逆量子化を行い、DCT係数のDC成分aを抽
出する(S1、抽出ステップ)。パレットデータ作成器
13は、復号化器12で抽出したDC成分aを基に実際
の表示において使用するパレット色を選択し(パレット
色選択ステップ)、パレットデータとして色量子化器4
とルックアップテーブル6に登録する(S2)。次に、
復号化器12は、各ブロックの画素に対して逆DCT変
換(復号化)を行い、カラー画像の画素の色データを算
出する(S3、復号化ステップ)。次に、色量子化器4
は、パレットデータ作成器13で選択したパレット色を
用いてカラー画像vの色データの量子化(近似)を行い
(色量子化ステップ)、量子化された色をカラーコード
に変換し(S4)、表示メモリ5にカラーコードを書き
込む(S5、メモリ格納ステップ)。すべてのブロック
内のすべての画素に対してステップS3からステップS
5を繰り返す(繰返しステップ)。次に、ルックアップ
テーブル7は、表示メモリ5から記憶されているカラー
コードを読み込み、それをルックアップテーブルのアド
レスとして入力し、表示のための色データを作成する
(S7、色データ変換ステップ)。ディスプレイドライ
バ7は、ルックアップテーブル6で作成された色データ
を電圧に変換し、ディスプレイデバイス8を駆動し、デ
ィスプレイデバイス8は減色処理されたカラー画像を表
示する(S8、画像表示ステップ)。
First, the decoder 12 to which the compressed data 1 is input in block units performs variable length decoding and inverse quantization on the compressed data 1 to extract the DC component a of the DCT coefficient (S1, Extraction step). The palette data generator 13 selects a palette color to be used in the actual display based on the DC component a extracted by the decoder 12 (palette color selection step), and as a palette data, the color quantizer 4
Is registered in the lookup table 6 (S2). next,
The decoder 12 performs an inverse DCT transform (decoding) on the pixels of each block to calculate color data of the pixels of the color image (S3, decoding step). Next, the color quantizer 4
Performs quantization (approximation) of the color data of the color image v using the palette color selected by the palette data generator 13 (color quantization step), and converts the quantized color into a color code (S4). Then, the color code is written into the display memory 5 (S5, memory storage step). Step S3 to step S for all pixels in all blocks
5 is repeated (repeated step). Next, the look-up table 7 reads the color code stored from the display memory 5, inputs the color code as an address of the look-up table, and creates color data for display (S7, color data conversion step). . The display driver 7 converts the color data created by the look-up table 6 into a voltage, drives the display device 8, and the display device 8 displays the color image subjected to the color reduction processing (S8, image display step).

【0036】以上のように本実施の形態によれば、DC
T係数のうちのDC成分aからパレットに利用する色
(パレット色)を選択することにより、パレットデータ
作成のためのヒストグラムを作成する必要が無くなり、
演算量を大幅に削減して消費電力を低減できると同時に
ヒストグラムのために必要なメモリの使用量を大幅に削
減することができる。また、先にパレット色を作成して
おいてから逆DCT変換の出力であるカラー画像データ
vを順次近似して表示メモリ5に書き込むことにより、
カラー画像全体のフルカラーデータをメモリ上に展開す
る必要が無くなり、そのための膨大な作業領域を削除す
ることができる。
As described above, according to the present embodiment, DC
By selecting a color (palette color) to be used for the palette from the DC component a of the T coefficient, there is no need to create a histogram for creating palette data,
The amount of calculation can be significantly reduced, and power consumption can be reduced, and at the same time, the amount of memory required for the histogram can be significantly reduced. Also, by creating a palette color first, and then sequentially approximating the color image data v, which is the output of the inverse DCT transform, and writing it to the display memory 5,
It is not necessary to develop full-color data of the entire color image on the memory, so that a huge work area can be deleted.

【0037】(実施の形態2)本発明の実施の形態2に
よる画像表示装置の構成は図1と同様の構成であり、そ
の説明は省略する。本実施の形態は、実施の形態1にお
けるパレットデータ作成器13の色の選択方法に関する
ものである。本実施の形態ではパレットデータ作成器1
3は3つの動作モードを持つ。3つの動作モードは、中
央優先モードと近隣優先モードと近隣同色モードであ
る。
(Embodiment 2) The configuration of an image display apparatus according to Embodiment 2 of the present invention is the same as that of FIG. 1, and a description thereof will be omitted. The present embodiment relates to a method of selecting colors by palette data generator 13 in the first embodiment. In the present embodiment, the pallet data generator 1
3 has three operation modes. The three operation modes are a center priority mode, a neighbor priority mode, and a neighbor same color mode.

【0038】このように構成された画像表示装置につい
て、上記動作モードを図3〜図6を用いて説明する。図
3は中央優先モードにおけるパレットデータ作成器13
の動作を示すフローチャートであり、図4は中央優先モ
ードにおける色の抽出の順序を示す順序説明図、図5は
近隣優先モードにおけるパレットデータ作成器13の動
作を示すフローチャート、図6は近隣同色モードにおけ
るパレットデータ作成器13の動作を示すフローチャー
トである。
The operation mode of the image display apparatus thus configured will be described with reference to FIGS. FIG. 3 shows the pallet data generator 13 in the central priority mode.
FIG. 4 is an explanatory diagram showing the order of color extraction in the center priority mode, FIG. 5 is a flowchart showing the operation of the pallet data generator 13 in the neighborhood priority mode, and FIG. 5 is a flowchart showing the operation of the pallet data generator 13 in FIG.

【0039】まず図3、図4を用いて、中央優先モード
における動作を説明する。
First, the operation in the center priority mode will be described with reference to FIGS.

【0040】図3において、まず、画像のサイズが入力
され(S11)、画像サイズを元に画像の中心付近に存
在するブロックが算出され(S12)、探索の開始位置
が決定される(S13)。次に、ブロックのDC成分a
がパレットデータpとして選択される(S14)。次
に、パレットデータがパレット数に達したか否かが判定
され(S15)、まだ達していないと判定された場合に
は、図4に示す順番(中心からその周囲へという順番)
で画像のブロックを探索する。パレット数に達したと判
定した場合にはパレット色の選択を完了する。
In FIG. 3, first, the size of an image is input (S11), a block existing near the center of the image is calculated based on the image size (S12), and a search start position is determined (S13). . Next, the DC component a of the block
Is selected as the pallet data p (S14). Next, it is determined whether or not the pallet data has reached the number of pallets (S15). If it is determined that the pallet data has not yet reached the pallet number, the order shown in FIG.
To search for blocks of the image. When it is determined that the number of palettes has been reached, the selection of palette colors is completed.

【0041】次に、図5を用いて、近隣優先モードにつ
いて説明する。
Next, the neighborhood priority mode will be described with reference to FIG.

【0042】図5において、まず、どれくらい類似した
色を同一色とみなすかを決定する検索用マスクを設定す
る(S21)。次に、所定の順番(例えば画面の上部1
行目にあるブロックを左から右へ、さらに2行目、・・
・、最終行という順番)により画像を構成するブロック
からDC成分aを抽出する(S22)。次に、検索用マ
スクを用いてDC成分aに類似した色が既にパレットデ
ータとして登録されているかどうかを判定する(S2
3)。既に登録されていると判定した場合にはステップ
S26へジャンプして上記DC成分aを上記類似した色
と同一色として登録し、未登録と判定した場合にはステ
ップS24へ進む。ステップS24では既に登録されて
いる色が選択されたブロックとDC成分aが選択された
ブロックとのカラー画像上での距離(ユークリッド距
離)を比較し、その距離が閾値よりも近い場合にはステ
ップS25へ、遠い場合にはステップS27へジャンプ
する。ステップS25では登録されている色とDC成分
aが検査用マスク無しで完全に一致するかどうかを判定
する。完全に一致すると判定した場合にはステップS2
7へ、一致しないと判定した場合にはステップS26で
パレットデータとして登録する。ステップS27では、
画像を構成する全ブロックに対して探索が終了したかど
うかを判定し、終了していない場合にはステップS22
へジャンプし、全ブロックを探索した場合にはパレット
データ作成を終了する。
In FIG. 5, first, a search mask for determining how similar colors are regarded as the same color is set (S21). Next, a predetermined order (for example, 1
From left to right the block on the line, and on the second line ...
The DC component a is extracted from the blocks constituting the image according to (the order of the last row) (S22). Next, it is determined whether a color similar to the DC component a has already been registered as palette data using the search mask (S2).
3). If it is determined that the DC component a has already been registered, the process jumps to step S26 to register the DC component a as the same color as the similar color, and if it is determined that the DC component a has not been registered, the process proceeds to step S24. In step S24, the distance (Euclidean distance) on the color image between the block in which the registered color has been selected and the block in which the DC component a has been selected is compared. If the distance is shorter than the threshold value, the process proceeds to step S24. The process jumps to S25, and if far, jumps to step S27. In step S25, it is determined whether or not the registered color and the DC component a completely match without the inspection mask. If it is determined that they completely match, step S2
If it is determined that they do not match, registration is made as pallet data in step S26. In step S27,
It is determined whether the search has been completed for all blocks constituting the image, and if not, step S22
Then, when all the blocks have been searched, the pallet data creation ends.

【0043】次に、図6を用いて、近隣同色モードにつ
いて説明する。
Next, the neighboring same-color mode will be described with reference to FIG.

【0044】図6において、まず、どれくらい類似した
色を同一色とみなすかを決定する検索用マスクを設定す
る(S31)。次に、所定の順番(例えば画面の上部1
行目にあるブロックを左から右へ、さらに2行目、・・
・、最終行という順番)により画像を構成するブロック
からDC成分aを抽出する(S32)。次に、検索用マ
スクを用いてDC成分aに類似した色が既にパレットデ
ータとして登録されているかどうかを判定する(S3
3)。既に登録されていると判定した場合にはステップ
S36へジャンプして上記DC成分aを上記類似した色
と同一色として登録し、未登録と判定した場合にはステ
ップS34へ進む。ステップS34では既に登録されて
いる色が選択されたブロックとDC成分aが選択された
ブロックとのカラー画像上での距離(ユークリッド距
離)を比較し、その距離が閾値よりも遠い場合にはステ
ップS35へ、近い場合にはステップS37へジャンプ
する。ステップS35では登録されている色とDC成分
aが検査用マスク無しで完全に一致するかどうかを判定
する。完全に一致すると判定した場合にはステップS3
7へ、一致しないと判定した場合にはステップS36で
パレットデータとして登録する。ステップS37では、
画像を構成する全ブロックに対して探索が終了したかど
うかを判定し、終了していない場合にはステップS32
へジャンプし、全ブロックを探索した場合にはパレット
データ作成を終了する。
In FIG. 6, first, a search mask for determining how similar colors are regarded as the same color is set (S31). Next, a predetermined order (for example, 1
From left to right the block on the line, and on the second line ...
The DC component a is extracted from the blocks constituting the image according to (the order of the last row) (S32). Next, it is determined whether a color similar to the DC component a has already been registered as palette data using the search mask (S3).
3). If it is determined that the DC component a has already been registered, the process jumps to step S36 to register the DC component a as the same color as the similar color. If it is determined that the DC component a has not been registered, the process proceeds to step S34. In step S34, the distance (Euclidean distance) on the color image between the block in which the registered color is selected and the block in which the DC component a is selected is compared, and if the distance is longer than the threshold value, The process jumps to S35, and if close, jumps to step S37. In step S35, it is determined whether or not the registered color and the DC component a completely match without the inspection mask. If it is determined that they completely match, step S3
7, if it is determined that they do not match, it is registered as pallet data in step S36. In step S37,
It is determined whether or not the search has been completed for all blocks constituting the image.
Then, when all the blocks have been searched, the pallet data creation ends.

【0045】さらに、本実施の形態は実施の形態2にお
けるパレットデータ作成器13の持つモードを選定する
ための手段を示す。
Further, the present embodiment shows means for selecting a mode of the pallet data generator 13 in the second embodiment.

【0046】このように構成された画像表示装置におい
て、圧縮データの属性値(例えばファイル名の拡張子)
を確認し、動作モードを判定する。具体的には、ファイ
ル名がimage.jpgであれば近隣優先モード、i
mage.jsgであれば近隣同色モード、imag
e.jppであれば中央優先モードを選択する。ここで
決定されたモードを示す情報はパレットデータ作成器1
3に与えられ、前記モードを示す情報に従って実施の形
態2における各モードに対応した手続きにより画像の表
示を行う。
In the image display device thus configured, the attribute value of compressed data (for example, the extension of the file name)
Is checked, and the operation mode is determined. Specifically, if the file name is image. jpg, neighbor priority mode, i
image. jsg, neighbor same color mode, imag
e. If it is "jpp", the central priority mode is selected. The information indicating the mode determined here is the pallet data generator 1
3, the image is displayed by the procedure corresponding to each mode in the second embodiment according to the information indicating the mode.

【0047】以上のように本実施の形態によれば、人物
の顔のポートレイトなどのように画像の中央部分に注目
する点がある場合には中央優先モードを選択し、画像の
中央部分に存在する色を優先的に選択することにより、
人物の顔のように類似した色で広い面積が表現されてい
る場合でも、顔の表面が持つなめらかな色の変化の表現
が可能となる。また、写真や3次元CGのようになめら
かな色の変化が多い画像を表示する場合には、近隣優先
モードを選択し、近隣のブロックに対しては類似した色
でもパレットデータとして登録することにより、近隣で
の微妙な変化を表現し、また距離が離れている場合には
類似した色を同一色として扱うことにより、パレットデ
ータの節約をすることが可能となる。さらに、線画やポ
スターのように同一色の平面が多く存在する画像では近
隣同色モードを選択し、近隣のブロックに関しては類似
した色を同一色とみなすことにより、画像の符号化時に
発生するノイズを低減させることが可能となる。このよ
うにして、より自然な画像を生成することが可能にな
る。
As described above, according to the present embodiment, when there is a point to be focused on the center of the image such as a portrait of a person's face, the center priority mode is selected, and the center of the image is selected. By preferentially selecting existing colors,
Even when a large area is represented by a similar color like a person's face, it is possible to represent a smooth color change of the face surface. Also, when displaying an image having a lot of smooth color changes such as a photograph or a three-dimensional CG, a neighborhood priority mode is selected, and similar colors are registered as palette data for neighboring blocks. By expressing subtle changes in the neighborhood, and treating similar colors as the same color when the distance is long, palette data can be saved. Furthermore, in an image where many planes of the same color exist, such as a line drawing or a poster, the neighboring same-color mode is selected, and similar colors are regarded as the same color for neighboring blocks, thereby reducing noise generated when encoding the image. It becomes possible to reduce. In this way, a more natural image can be generated.

【0048】[0048]

【発明の効果】以上のように本発明の請求項1に記載の
画像表示装置によれば、DCTを使った圧縮データを伸
張すると共にDCT係数のDC成分を抽出する復号化器
と、表示に使用するパレット色を抽出したDC成分の中
から選択するパレットデータ作成器と、復号化器から出
力されるカラー画像を選択したパレット色に近似すると
共に選択したパレット色に対して与えられたカラーコー
ドに変換する色量子化器と、カラーコードに変換したカ
ラー画像を保持する表示メモリと、表示メモリに保持さ
れているカラー画像をディスプレイドライバ用の色デー
タに変換するルックアップテーブルと、カラー画像を表
示するディスプレイデバイスと、変換した色データに従
ってディスプレイデバイスを制御するディスプレイドラ
イバとを有することにより、圧縮された画像データ(圧
縮データ)を伸張する前にパレット色を選択してパレッ
トデータの作成を行い、伸張後のフルカラーデータを画
像メモリ上に展開することなく順次パレット色に近似し
て、直接表示メモリに書き込むことができるので、カラ
ー画像データを記憶する画像メモリとパレットデータ作
成のためのヒストグラムを記憶するヒストグラムメモリ
とを削除することができるという有利な効果が得られ
る。また、表示のための色を復号化器出力のDC成分か
ら選択することにより、色の選択のための演算を大幅に
削減することができ、携帯端末装置などでは極めて重要
となる消費電力を削減することができるという有利な効
果が得られる。
As described above, according to the image display apparatus of the first aspect of the present invention, a decoder for expanding compressed data using DCT and extracting a DC component of a DCT coefficient, and A palette data generator for selecting from the DC components from which the palette color to be used is extracted, and a color code given to the selected palette color while approximating the color image output from the decoder to the selected palette color A color quantizer that converts the color image into a color code, a display memory that stores the color image converted into the color code, a look-up table that converts the color image stored in the display memory into color data for the display driver, A display device for displaying, and a display driver for controlling the display device according to the converted color data. Before expanding the compressed image data (compressed data), the palette color is selected and the palette data is created, and the expanded full-color data is successively approximated to the palette color without being expanded on the image memory. Since the image data can be written directly to the display memory, the advantageous effect that the image memory for storing the color image data and the histogram memory for storing the histogram for creating the palette data can be eliminated is obtained. In addition, by selecting colors for display from the DC component of the decoder output, the calculation for selecting colors can be greatly reduced, and power consumption, which is extremely important in portable terminal devices, is reduced. This has the advantageous effect that it can be performed.

【0049】請求項2に記載の画像表示方法によれば、
DCTに基づく圧縮データからDCT係数のDC成分を
抽出する抽出ステップと、抽出したDC成分をパレット
色として選択するパレット色選択ステップと、圧縮デー
タを逆DCTにより復号化してカラー画像を生成する復
号化ステップと、生成したカラー画像の画素の色を選択
したパレット色で近似する色量子化ステップと、近似し
たカラー画像の画素の色を逐次カラーコードとして表示
メモリに格納するメモリ格納ステップと、カラー画像の
全画素に対して復号化ステップと色量子化ステップとメ
モリ格納ステップとを繰り返す繰返しステップと、表示
メモリから格納したカラーコードを読み出して色データ
に変換する色データ変換ステップと、変換した色データ
によってディスプレイデバイスを制御して画像を表示す
る画像表示ステップとを有することにより、圧縮された
画像データ(圧縮データ)を伸張する前にパレット色を
選択してパレットデータの作成を行い、伸張後のフルカ
ラーデータを画像メモリ上に展開することなく順次パレ
ット色に近似して、直接表示メモリに書き込むことがで
きるので、カラー画像データを記憶する画像メモリとパ
レットデータ作成のためのヒストグラムを記憶するヒス
トグラムメモリとを削除することができるという有利な
効果が得られる。また、表示のための色を抽出したDC
成分から選択することにより、色の選択のための演算を
大幅に削減することができ、携帯端末装置などでは極め
て重要となる消費電力を削減することができるという有
利な効果が得られる。
According to the image display method of the second aspect,
An extraction step of extracting DC components of DCT coefficients from DCT-based compressed data, a palette color selection step of selecting the extracted DC components as palette colors, and a decoding of decoding the compressed data by inverse DCT to generate a color image A color quantization step of approximating the color of the pixel of the generated color image with the selected palette color; a memory storage step of sequentially storing the color of the pixel of the approximated color image as a color code in a display memory; An iterative step of repeating a decoding step, a color quantization step, and a memory storage step for all the pixels of the image data; a color data conversion step of reading a stored color code from a display memory and converting the color code into color data; Image display step to control the display device and display the image By selecting a palette color before expanding the compressed image data (compressed data), the palette data is created, and the expanded full-color data is sequentially expanded without being expanded on the image memory. Can be directly written into the display memory, which has an advantageous effect that the image memory for storing color image data and the histogram memory for storing a histogram for creating palette data can be eliminated. . In addition, DC which extracted the color for display
By selecting from the components, the operation for selecting the color can be significantly reduced, and the advantageous effect that power consumption, which is extremely important in a portable terminal device or the like, can be reduced can be obtained.

【0050】請求項3に記載の画像表示方法によれば、
請求項2に記載の画像表示方法において、パレット色選
択ステップにおいて、パレット色として選択可能な色の
数よりもDC成分の数の方が多い場合には、カラー画像
の中央に位置するブロックのDC成分から順番に色を選
択し、選択可能な色の数に到達したところで選択を終了
することにより、使用する色の選択を簡単にしつつ、人
物のポートレイトなどに適したより有効なパレットを定
義できるという有利な効果が得られる。
According to the image display method of the third aspect,
3. The image display method according to claim 2, wherein, in the palette color selecting step, if the number of DC components is larger than the number of colors that can be selected as palette colors, the DC of the block located at the center of the color image is determined. By selecting colors in order from the components and ending selection when the number of selectable colors is reached, it is possible to define a more effective palette suitable for portraits of people etc. while simplifying selection of colors to use The advantageous effect described above can be obtained.

【0051】請求項4に記載の画像表示方法によれば、
請求項2に記載の画像表示方法において、パレット色選
択ステップにおいて、パレット色として選択可能な色の
数よりもDC成分の数の方が多い場合には、カラー画像
の単数または複数の任意の位置を中心として順番にブロ
ックのDC成分から色を選択し、選択可能な色の数に到
達したところで選択を終了することにより、使用する色
の選択を簡単にしつつ、複数の人物や人物と物体といっ
たものが写っている写真などを表示する際に有効なパレ
ットを定義できるという有利な効果が得られる。
According to the image display method of the fourth aspect,
3. The image display method according to claim 2, wherein, in the palette color selecting step, when the number of DC components is larger than the number of colors that can be selected as palette colors, one or more arbitrary positions of the color image By selecting colors from the DC components of the block in order, and ending the selection when the number of selectable colors is reached, simplifying the selection of colors to be used, and simplifying the selection of a plurality of persons or persons and objects. An advantageous effect is obtained that an effective palette can be defined when displaying a photograph or the like in which an object is displayed.

【0052】請求項5に記載の画像表示方法によれば、
請求項2乃至4のいずれか1に記載の画像表示方法にお
いて、パレット色選択ステップにおいて、パレット色と
して選択可能な色の数よりもDC成分の数の方が多い場
合には、類似した色が近隣のブロックにある場合には異
なる色として選択し、類似した色が離れたブロックにあ
る場合には同じ色として選択することにより、色が変化
する線が強調されてしまう現象を抑制して、写真などの
自然画像のための効果的なパレットを作成することがで
きるという有利な効果が得られる。
According to the image display method of the fifth aspect,
In the image display method according to any one of claims 2 to 4, when the number of DC components is larger than the number of colors that can be selected as a palette color in the palette color selection step, a similar color is selected. By selecting a different color when it is in a neighboring block, and by selecting the same color when a similar color is in a distant block, it is possible to suppress the phenomenon that a line that changes color is emphasized, An advantageous effect is obtained that an effective palette for a natural image such as a photograph can be created.

【0053】請求項6に記載の画像表示方法によれば、
請求項2乃至4のいずれか1に記載の画像表示方法にお
いて、パレット色選択ステップにおいて、パレット色と
して選択可能な色の数よりもDC成分の数の方が多い場
合には、設定された距離よりも離れたブロックで類似し
た色がある場合には異なる色として選択し、設定された
距離よりも近くのブロックで類似した色がある場合には
同じ色として選択することにより、近隣画素の細かい変
化を無視する色の変化のはっきりしたイラストのような
画像に適したパレットを作成することができるという有
利な効果が得られる。
According to the image display method of the sixth aspect,
5. The image display method according to claim 2, wherein, in the palette color selecting step, if the number of DC components is larger than the number of colors that can be selected as palette colors, the set distance is set. If there is a similar color in a block farther away than the set distance, it is selected as a different color, and if there is a similar color in a block closer than the set distance, it is selected as the same color, so that the neighboring pixels are finer. An advantageous effect is obtained in that a palette suitable for an image such as an illustration with a clear change in color, ignoring the change, can be created.

【0054】請求項7に記載の画像表示装置によれば、
請求項1に記載の画像表示装置において、入力されるカ
ラー画像の識別子によって自然画像か合成画像かを判別
する判別手段を有し、判別手段は、カラー画像は自然画
像であると判別したときは請求項4に記載された画像表
示方法により画像表示を行い、カラー画像は合成画像で
あると判別したときは請求項5に記載された画像表示方
法により画像表示を行うことにより、写真やCG等のよ
うに色のなめらかな変化を持つ画像と、線画やポスター
などの同じ色が広い領域を占めるような画像とにそれぞ
れ適したパレットを作成して、良好な画質を得ることが
できるという有利な効果が得られる。
According to the image display device of the seventh aspect,
2. The image display device according to claim 1, further comprising a determination unit configured to determine whether the input image is a natural image or a composite image based on an identifier of the input color image, wherein the determination unit determines that the color image is a natural image. Image display is performed by the image display method described in claim 4, and when a color image is determined to be a composite image, image display is performed by the image display method described in claim 5, so that a photograph, CG, or the like is displayed. This makes it possible to create palettes suitable for images with smooth color changes such as, and images where the same color occupies a large area, such as line drawings and posters. The effect is obtained.

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

【図1】本発明の実施の形態1、2による画像表示装置
を示すブロック図
FIG. 1 is a block diagram showing an image display device according to Embodiments 1 and 2 of the present invention.

【図2】本発明の実施の形態1による画像表示装置の動
作を示すフローチャート
FIG. 2 is a flowchart showing an operation of the image display device according to the first embodiment of the present invention;

【図3】中央優先モードにおけるパレットデータ作成器
の動作を示すフローチャート
FIG. 3 is a flowchart showing the operation of the pallet data generator in the center priority mode.

【図4】中央優先モードにおける色の抽出の順序を示す
順序説明図
FIG. 4 is an explanatory diagram showing the order of color extraction in the center priority mode.

【図5】近隣優先モードにおけるパレットデータ作成器
の動作を示すフローチャート
FIG. 5 is a flowchart showing the operation of the pallet data generator in the neighborhood priority mode.

【図6】近隣同色モードにおけるパレットデータ作成器
の動作を示すフローチャート
FIG. 6 is a flowchart showing the operation of the palette data generator in the same-color neighborhood mode.

【図7】従来の画像表示装置を示すブロック図FIG. 7 is a block diagram showing a conventional image display device.

【図8】図7の画像表示装置の動作を示すフローチャー
FIG. 8 is a flowchart showing the operation of the image display device of FIG. 7;

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

4 色量子化器 5 表示メモリ 6 ルックアップテーブル 7 ディスプレイドライバ 8 ディスプレイデバイス 12 復号化器 13 パレットデータ作成器 4 Color quantizer 5 Display memory 6 Lookup table 7 Display driver 8 Display device 12 Decoder 13 Pallet data generator

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04B 14/00 G09G 5/00 555A H04N 9/64 5/36 520A Fターム(参考) 5C057 AA06 EM09 EM16 GE09 GG01 GG05 GH03 5C066 AA03 CA01 GA31 HA03 KE07 KE11 KE16 KM13 5C082 AA22 BA26 BA34 BA35 BB51 BD02 CA12 CA84 DA71 DA87 EA15 MM02 MM07 5K041 AA08 BB08 CC02 EE51 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04B 14/00 G09G 5/00 555A H04N 9/64 5/36 520A F-term (Reference) 5C057 AA06 EM09 EM16 GE09 GG01 GG05 GH03 5C066 AA03 CA01 GA31 HA03 KE07 KE11 KE16 KM13 5C082 AA22 BA26 BA34 BA35 BB51 BD02 CA12 CA84 DA71 DA87 EA15 MM02 MM07 5K041 AA08 BB08 CC02 EE51

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】DCTを使った圧縮データを伸張すると共
にDCT係数のDC成分を抽出する復号化器と、表示に
使用するパレット色を前記抽出したDC成分の中から選
択するパレットデータ作成器と、前記復号化器から出力
されるカラー画像を前記選択したパレット色に近似する
と共に前記選択したパレット色に対して与えられたカラ
ーコードに変換する色量子化器と、前記カラーコードに
変換したカラー画像を保持する表示メモリと、前記表示
メモリに保持されているカラー画像をディスプレイドラ
イバ用の色データに変換するルックアップテーブルと、
カラー画像を表示するディスプレイデバイスと、前記変
換した色データに従って前記ディスプレイデバイスを制
御するディスプレイドライバとを有することを特徴とす
る画像表示装置。
1. A decoder for expanding compressed data using DCT and extracting a DC component of a DCT coefficient, and a palette data generator for selecting a palette color to be used for display from the extracted DC components. A color quantizer for approximating a color image output from the decoder to the selected palette color and converting the selected palette color to a given color code; and a color converted to the color code. A display memory for holding an image, a look-up table for converting a color image held in the display memory into color data for a display driver,
An image display device comprising: a display device that displays a color image; and a display driver that controls the display device according to the converted color data.
【請求項2】DCTに基づく圧縮データからDCT係数
のDC成分を抽出する抽出ステップと、前記抽出したD
C成分をパレット色として選択するパレット色選択ステ
ップと、前記圧縮データを逆DCTにより復号化してカ
ラー画像を生成する復号化ステップと、前記生成したカ
ラー画像の画素の色を前記選択したパレット色で近似す
る色量子化ステップと、前記近似したカラー画像の画素
の色を逐次カラーコードとして表示メモリに格納するメ
モリ格納ステップと、カラー画像の全画素に対して前記
復号化ステップと前記色量子化ステップと前記メモリ格
納ステップとを繰り返す繰返しステップと、前記表示メ
モリから格納したカラーコードを読み出して色データに
変換する色データ変換ステップと、前記変換した色デー
タによってディスプレイデバイスを制御して画像を表示
する画像表示ステップとを有することを特徴とする画像
表示方法。
2. An extraction step of extracting a DC component of a DCT coefficient from compressed data based on the DCT;
A palette color selecting step of selecting the C component as a palette color, a decoding step of decoding the compressed data by inverse DCT to generate a color image, and a step of setting a pixel color of the generated color image by the selected palette color. An approximate color quantization step, a memory storage step of sequentially storing the colors of the pixels of the approximated color image as a color code in a display memory, the decoding step and the color quantization step for all the pixels of the color image A color data conversion step of reading the stored color code from the display memory and converting it into color data, and controlling a display device with the converted color data to display an image. An image display step.
【請求項3】前記パレット色選択ステップにおいて、パ
レット色として選択可能な色の数よりもDC成分の数の
方が多い場合には、カラー画像の中央に位置するブロッ
クのDC成分から順番に色を選択し、選択可能な色の数
に到達したところで選択を終了することを特徴とする請
求項2に記載の画像表示方法。
3. In the palette color selecting step, if the number of DC components is larger than the number of colors that can be selected as palette colors, the DC components of the block located at the center of the color image are sequentially colored. 3. The image display method according to claim 2, wherein the selection is terminated, and the selection is terminated when the number of selectable colors is reached.
【請求項4】前記パレット色選択ステップにおいて、パ
レット色として選択可能な色の数よりもDC成分の数の
方が多い場合には、カラー画像の単数または複数の任意
の位置を中心として順番にブロックのDC成分から色を
選択し、選択可能な色の数に到達したところで選択を終
了することを特徴とする請求項2に記載の画像表示方
法。
4. In the palette color selecting step, when the number of DC components is larger than the number of colors that can be selected as palette colors, one or more arbitrary positions of the color image are sequentially centered. 3. The image display method according to claim 2, wherein a color is selected from the DC components of the block, and the selection is terminated when the number of selectable colors is reached.
【請求項5】前記パレット色選択ステップにおいて、パ
レット色として選択可能な色の数よりもDC成分の数の
方が多い場合には、類似した色が近隣のブロックにある
場合には異なる色として選択し、類似した色が離れたブ
ロックにある場合には同じ色として選択することを特徴
とする請求項2乃至4のいずれか1に記載の画像表示方
法。
5. In the palette color selecting step, when the number of DC components is larger than the number of colors that can be selected as a palette color, if a similar color exists in a neighboring block, it is determined as a different color. 5. The image display method according to claim 2, wherein, when a similar color is selected in a distant block, the selected color is selected as the same color.
【請求項6】前記パレット色選択ステップにおいて、パ
レット色として選択可能な色の数よりもDC成分の数の
方が多い場合には、設定された距離よりも離れたブロッ
クで類似した色がある場合には異なる色として選択し、
前記設定された距離よりも近くのブロックで類似した色
がある場合には同じ色として選択することを特徴とする
請求項2乃至4のいずれか1に記載の画像表示方法。
6. In the palette color selecting step, if the number of DC components is larger than the number of colors that can be selected as palette colors, there are similar colors in blocks farther than a set distance. If you choose different color,
5. The image display method according to claim 2, wherein when a similar color exists in a block closer than the set distance, the color is selected as the same color. 6.
【請求項7】入力されるカラー画像の識別子によって自
然画像か合成画像かを判別する判別手段を有し、前記判
別手段は、前記カラー画像は自然画像であると判別した
ときは請求項4に記載された画像表示方法により画像表
示を行い、前記カラー画像は合成画像であると判別した
ときは請求項5に記載された画像表示方法により画像表
示を行うことを特徴とする請求項1に記載の画像表示装
置。
7. A system according to claim 4, further comprising a discriminating means for discriminating whether the input image is a natural image or a composite image based on an identifier of the input color image. The image display is performed by the described image display method, and when it is determined that the color image is a composite image, the image display is performed by the image display method according to claim 5. Image display device.
JP2000194194A 2000-06-28 2000-06-28 Apparatus and method for displaying image Pending JP2002016943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000194194A JP2002016943A (en) 2000-06-28 2000-06-28 Apparatus and method for displaying image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000194194A JP2002016943A (en) 2000-06-28 2000-06-28 Apparatus and method for displaying image

Publications (1)

Publication Number Publication Date
JP2002016943A true JP2002016943A (en) 2002-01-18

Family

ID=18693062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000194194A Pending JP2002016943A (en) 2000-06-28 2000-06-28 Apparatus and method for displaying image

Country Status (1)

Country Link
JP (1) JP2002016943A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7580167B2 (en) 2006-09-01 2009-08-25 Infoprint Solutions Company Llc Determining whether to convert image data in an input color space to an output color space in a transform domain or real domain
US7580166B2 (en) 2006-09-01 2009-08-25 Infoprint Solutions Company Llc Converting image data in an input color space to an output color space in a transform domain
CN109451199A (en) * 2016-07-08 2019-03-08 惠普发展公司有限责任合伙企业 Color table compression
US10674043B2 (en) 2016-07-08 2020-06-02 Hewlett-Packard Development Company, L.P. Color table compression

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7580167B2 (en) 2006-09-01 2009-08-25 Infoprint Solutions Company Llc Determining whether to convert image data in an input color space to an output color space in a transform domain or real domain
US7580166B2 (en) 2006-09-01 2009-08-25 Infoprint Solutions Company Llc Converting image data in an input color space to an output color space in a transform domain
CN109451199A (en) * 2016-07-08 2019-03-08 惠普发展公司有限责任合伙企业 Color table compression
CN109451199B (en) * 2016-07-08 2019-08-30 惠普发展公司有限责任合伙企业 Color table compression
US10574862B2 (en) 2016-07-08 2020-02-25 Hewlett-Packard Development Company, L.P. Printing device supply component
US10602028B2 (en) 2016-07-08 2020-03-24 Hewlett-Packard Development Company, L.P. Color table compression
US10630868B2 (en) 2016-07-08 2020-04-21 Hewlett-Packard Development Company, L.P. Component comprising a memory device including corrective data
US10674043B2 (en) 2016-07-08 2020-06-02 Hewlett-Packard Development Company, L.P. Color table compression

Similar Documents

Publication Publication Date Title
JP4468490B2 (en) A visually lossless image compression scheme based on an efficient lookup table
KR100727974B1 (en) Method and apparatus for making thumbnails out of digital image
JPH07327134A (en) Image processor and its method
JPH11161782A (en) Method and device for encoding color picture, and method and device for decoding color picture
JP3814637B2 (en) Image encoding / decoding method and recording medium and apparatus recording the program
US8306346B2 (en) Static image compression method and non-transitory computer readable medium having a file with a data structure
JP2002358515A (en) Device and method for generating variable power image, device and method for calculating image feature, its computer program, computer readable storage medium and image data structure
JP2005191956A (en) Display data compression/expansion method
JP2002016943A (en) Apparatus and method for displaying image
JPH08205144A (en) Image encoding device
JPH11308465A (en) Encoding method for color image, encoder therefor, decoding method for color image and decoder therefor
JP3108133B2 (en) Adaptive coding of color document images
JPH09186861A (en) Method and device for image processing
JP2002171534A (en) Image display device and image display method
JP2002218500A (en) Subtractive color processor
JP2002051221A (en) Device, system and method for encoding and decoding image and storage medium
JP3954032B2 (en) Image coding apparatus, image coding method, image coding program, and computer-readable recording medium on which image coding program is recorded
JPH0896141A (en) Image processor
JP3711104B2 (en) Image compression apparatus and image compression method
JP4364729B2 (en) Image data compression / decompression method and image processing apparatus
JPH05276396A (en) Picture information processor
JP2003134532A (en) Image compression apparatus, image compression method, image expanding apparatus, and program
JPH01198866A (en) Color coding method
JPH1130978A (en) Color image encoding method and its encoder and color image decoding method and its decoder
JPH04971A (en) Picture encoding system