JPH1051771A - Image compression method and image compression device - Google Patents
Image compression method and image compression deviceInfo
- Publication number
- JPH1051771A JPH1051771A JP20703996A JP20703996A JPH1051771A JP H1051771 A JPH1051771 A JP H1051771A JP 20703996 A JP20703996 A JP 20703996A JP 20703996 A JP20703996 A JP 20703996A JP H1051771 A JPH1051771 A JP H1051771A
- Authority
- JP
- Japan
- Prior art keywords
- huffman code
- huffman
- code table
- code
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ビデオフォン等に
用いられる画像圧縮方法及び画像圧縮装置に関するもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression method and an image compression apparatus used for a video phone or the like.
【0002】[0002]
【従来の技術】通信媒体や記録媒体を対象にした画像の
高効率符号化技術において、画像を一旦周波数空間上に
変換し、「自然画では高周波より低周波により多くのデ
ータが存在する」という性質を利用したサブバンド符号
化を応用した圧縮方法が盛んに応用されている。さらに
サブバンド符号化を行った後のデータを可変長符号化に
よって効率良く伝送又は記録するために、ハフマン符号
化技術が利用されている。これにより、画像は数十分の
一まで圧縮されるようになってきた。2. Description of the Related Art In a high-efficiency encoding technique for an image for a communication medium or a recording medium, an image is once converted into a frequency space, and "natural images have more data at low frequencies than at high frequencies". 2. Description of the Related Art A compression method using sub-band coding utilizing characteristics is widely applied. Furthermore, Huffman coding technology is used to efficiently transmit or record data after subband coding by variable length coding. As a result, images have been compressed to several tenths.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、このよ
うな従来の画像圧縮装置の構成では、システム固定のハ
フマン符号表を用いるため、入力画像によっては、サブ
バンド符号化結果のデータの確率分布が、システム固定
のハフマン符号表で期待している確率分布と大きく異な
ることがあり、その場合には効率のよい可変長符号化は
できない。However, in the configuration of such a conventional image compression apparatus, since the system-fixed Huffman code table is used, depending on the input image, the probability distribution of the data as a result of subband encoding may be reduced. In some cases, the probability distribution is significantly different from the probability distribution expected in the Huffman code table fixed in the system. In such a case, efficient variable-length coding cannot be performed.
【0004】またこの問題に関しては、画像一枚ごと
に、最適なハフマン符号表を求めた上で、そのハフマン
符号表とこれを用いて符号化したデータを伝送又は記録
するという方法も考えられている。この方法では画像一
枚に対して最適なハフマン符号表をデータとして伝送又
は記録しなければ、画像を再生することはできない。こ
のため最適なハフマン符号表を画像一枚につき一枚ずつ
伝送又は記録するというオーバヘッドが生じ、時間的に
変化する画像の圧縮率は向上しなくなるという問題点が
ある。Regarding this problem, a method has been considered in which an optimum Huffman code table is obtained for each image, and the Huffman code table and data encoded using the Huffman code table are transmitted or recorded. I have. In this method, an image cannot be reproduced unless an optimal Huffman code table for one image is transmitted or recorded as data. For this reason, an overhead of transmitting or recording the optimal Huffman code table one image at a time occurs, and there is a problem that the compression ratio of an image that changes with time cannot be improved.
【0005】本発明は、このような従来の問題点に鑑み
てなされたものであって、画像を圧縮して伝送又は記録
するとき、最適なハフマン符号表を逐一伝送又は記録す
る代わりに、学習された代表的なハフマン符号表を指定
することによって、より少ないデータ量で画像を出力す
ることのできる画像圧縮装置及び画像圧縮方法を実現す
ることを目的とするものである。The present invention has been made in view of such conventional problems, and when transmitting or recording an image by compressing it, instead of transmitting or recording an optimum Huffman code table one by one, a learning process is performed. It is an object of the present invention to realize an image compression apparatus and an image compression method capable of outputting an image with a smaller data amount by specifying a representative Huffman code table.
【0006】[0006]
【課題を解決するための手段】上記課題を解決するた
め、本願の請求項1記載の発明は、時間的に変化する画
像をサブバンド符号化を用いて圧縮する画像圧縮方法で
あって、新たな画像を取り込み、画像1枚毎にサブバン
ド符号のリストを求めるステップaと、得られたサブバ
ンド符号リスト中の各サブバンド符号の出現確率を求め
るステップbと、過去の画像で得られた学習済みハフマ
ン符号表の中に、前記ステップa,bで得られた現在の
サブバンド符号に対して、ハフマン符号の平均符号長を
所定の閾値以下にするものが登録されているか否かを判
別するステップcと、前記ステップcで所定の閾値以下
にするハフマン符号表が前記学習済みハフマン符号表に
登録されていると判別された場合、そのハフマン符号表
の記号を出力するステップdと、前記ステップcで閾値
以下にするハフマン符号表が学習済みハフマン符号表に
記録されていないと判別された場合、前記ステップa,
bで得られた現在のサブバンド符号に対して平均符号長
が最小となるような最適ハフマン符号表を新たに生成す
るステップeと、ステップeで得られた最適ハフマン符
号表を前記学習済みハフマン符号表に登録するステップ
fと、前記ステップeで生成された特定のハフマン符号
表を伝送又は記録するため符号化するステップgと、現
在の画像に対して前記学習済みハフマン符号表に登録さ
れた最適ハフマン符号表を用いてハフマン符号化を行
い、圧縮画像データを記録又は伝送するステップhと、
を有することを特徴とするものである。According to a first aspect of the present invention, there is provided an image compression method for compressing a time-varying image using sub-band coding. A) for obtaining a list of sub-band codes for each image, step b for obtaining the appearance probability of each sub-band code in the obtained sub-band code list, and It is determined whether or not there is registered in the learned Huffman code table a code that makes the average code length of the Huffman code equal to or less than a predetermined threshold value with respect to the current subband code obtained in steps a and b. And if it is determined in step c that the Huffman code table whose value is equal to or less than the predetermined threshold is registered in the learned Huffman code table, a step of outputting the symbol of the Huffman code table is performed. Tsu and up d, if the Huffman code table for the threshold value or less in step c is determined not to be recorded in the learned Huffman code table, step a,
(b) newly generating an optimal Huffman code table that minimizes the average code length with respect to the current subband code obtained in (b), and adding the optimal Huffman code table obtained in step (e) to the learned Huffman code table. A step f for registering in the code table, a step g for encoding for transmitting or recording the specific Huffman code table generated in the step e, and a step g for registering the current image in the learned Huffman code table. Performing huffman encoding using an optimal Huffman code table and recording or transmitting compressed image data; h.
It is characterized by having.
【0007】また本願の請求項2記載の発明は、時間的
に変化する画像をサブバンド符号化を用いて圧縮する画
像圧縮方法であって、新たな画像を取り込み、画像1枚
毎にサブバンド符号のリストを求めるステップaと、得
られたサブバンド符号リスト中の各サブバンド符号の出
現確率を求めるステップbと、過去の画像で得られた学
習済みハフマン符号表の中、又は典型的な画像に対して
予め求められたハフマン符号表を登録した初期学習済み
ハフマン符号表の中に、前記ステップa,bで得られた
現在のサブバンド符号に対して、ハフマン符号の平均符
号長を所定の閾値以下にするものが登録されているか否
かを判別するステップcと、前記ステップcで所定の閾
値以下にするハフマン符号表が前記学習済みハフマン符
号表又は前記初期学習済みハフマン符号表に記録されて
いると判別された場合、そのハフマン符号表の記号を出
力するステップdと、前記ステップcで所定の閾値以下
にするハフマン符号表が学習済みハフマン符号表又は前
記初期学習済みハフマン符号表に記録されていないと判
別された場合、前記ステップa,bで得られた現在のサ
ブバンド符号に対して平均符号長が最小となるような最
適ハフマン符号表を新たに生成するステップeと、ステ
ップeで得られた最適ハフマン符号表を前記学習済みハ
フマン符号表に登録するステップfと、前記ステップe
で生成された特定のハフマン符号表を伝送又は記録する
ため符号化するステップgと、現在の画像に対して前記
学習済みハフマン符号表に登録された最適ハフマン符号
表を用いてハフマン符号化を行い、圧縮画像データを記
録又は伝送するステップhと、を有することを特徴とす
るものである。According to a second aspect of the present invention, there is provided an image compression method for compressing a time-varying image by using sub-band coding. Step a for determining a list of codes; Step b for determining the probability of occurrence of each subband code in the obtained subband code list; and Steps in the trained Huffman code table obtained in the past image, or In the initially learned Huffman code table in which the Huffman code table obtained in advance for the image is registered, the average code length of the Huffman code for the current subband code obtained in steps a and b is determined. And c) determining whether or not a register that makes the Huffman code table to be equal to or less than the predetermined threshold value is registered in the step H. If it is determined that the Huffman code table is recorded in the learned Huffman code table, a step d for outputting the symbol of the Huffman code table, and the Huffman code table to be set to be equal to or less than a predetermined threshold value in the step c, the learned Huffman code table or the If it is determined that it is not recorded in the initially learned Huffman code table, an optimum Huffman code table that minimizes the average code length with respect to the current subband code obtained in steps a and b is newly added. Generating e; registering the optimal Huffman code table obtained in step e in the learned Huffman code table;
Performing a coding step for transmitting or recording the specific Huffman code table generated in step g, and performing Huffman coding on the current image using the optimal Huffman code table registered in the learned Huffman code table. And recording or transmitting the compressed image data.
【0008】また本願の請求項3記載の発明は、1画面
分の画像データを一時保持するフレームメモリと、前記
フレームメモリに保持された画像データを周波数空間上
に変換するサブバンド符号化部と、前記サブバンド符号
化部が変換した符号のデータを記憶するサブバンド符号
記憶部と、前記サブバンド符号記憶部に記憶された各符
号の出現確率を算出する出現確率算出部と、前記サブバ
ンド符号記憶部に保持された各符号に対して、各符号の
出現確率とハフマン符号とを各画像毎に記録するハフマ
ン符号表記憶部と、前記出現確率算出部で算出された各
符号の出現確率を参照し、1画面の平均符号長が最小と
なるようハフマン符号を決定し、前記ハフマン符号表記
憶部に書き込む最適ハフマン生成部と、前記ハフマン符
号表記憶部に記録された各画像のハフマン符号表をまと
めて格納するハフマン符号学習部と、前記ハフマン符号
学習部に格納されたハフマン符号表の中で、現在符号化
しようとしている画像のサブバンド符号に対して、平均
符号長を所定の閾値以下にするものが存在するか否かを
検索し、存在すればハフマン符号表の表番号を出力し、
存在しなけばその旨を出力する学習判定部と、前記サブ
バンド符号記憶部に保持されたサブバンド符号に対し
て、前記ハフマン符号表記憶部を参照しながらハフマン
符号化を行うハフマン符号化部と、を具備することを特
徴とするものである。According to a third aspect of the present invention, there is provided a frame memory for temporarily storing image data for one screen, and a sub-band encoding unit for converting the image data stored in the frame memory into a frequency space. A sub-band code storage unit that stores data of codes converted by the sub-band encoding unit; an appearance probability calculation unit that calculates an appearance probability of each code stored in the sub-band code storage unit; For each code held in the code storage unit, a Huffman code table storage unit that records the appearance probability of each code and a Huffman code for each image, and an appearance probability of each code calculated by the appearance probability calculation unit , Determine the Huffman code so that the average code length of one screen is minimized, and write the Huffman code table into the Huffman code table storage unit, and record the Huffman code table into the Huffman code table storage unit A Huffman code learning unit that collectively stores the Huffman code tables of the obtained images, and in the Huffman code table stored in the Huffman code learning unit, for a subband code of an image that is currently to be encoded, Search for whether there is something that makes the average code length less than or equal to the predetermined threshold, and if there is, output the table number of the Huffman code table,
A learning determination unit that outputs the fact if it does not exist; and a Huffman encoding unit that performs Huffman encoding on the subband code held in the subband code storage unit while referring to the Huffman code table storage unit. And characterized in that:
【0009】また本願の請求項4記載の発明は、典型的
な画像をサブバンド符号化した場合に得られる最適なハ
フマン符号表を予め記憶したハフマン符号表初期学習部
と、1画面分の画像データを一時保持するフレームメモ
リと、前記フレームメモリに保持された画像データを周
波数空間上に変換するサブバンド符号化部と、前記サブ
バンド符号化部が変換した符号のデータを記憶するサブ
バンド符号記憶部と、前記サブバンド符号記憶部に記憶
された各符号の出現確率を算出する出現確率算出部と、
前記サブバンド符号記憶部に保持された各符号に対し
て、各符号の出現確率とハフマン符号とを各画像毎に記
録するハフマン符号表記憶部と、前記出現確率算出部で
算出された各符号の出現確率を参照し、1画面の平均符
号長が最小となるようハフマン符号を決定し、前記ハフ
マン符号表記憶部に書き込む最適ハフマン生成部と、前
記ハフマン符号表記憶部に記録された各画像のハフマン
符号表をまとめて格納するハフマン符号学習部と、前記
ハフマン符号学習部又は前記ハフマン符号表初期学習部
に格納されたハフマン符号表の中で、現在符号化しよう
としている画像のサブバンド符号に対して、平均符号長
を所定の閾値以下にするものが存在するか否かを検索
し、存在すればハフマン符号表の表番号を出力し、存在
しなけばその旨を出力する学習判定部と、前記サブバン
ド符号記憶部に保持されたサブバンド符号に対して、前
記ハフマン符号表記憶部を参照しながら前記ハフマン符
号学習部又は前記ハフマン符号表初期学習部を用いてハ
フマン符号化を行うハフマン符号化部と、を具備するこ
とを特徴とするものである。Further, the invention according to claim 4 of the present application provides a Huffman code table initial learning unit in which an optimum Huffman code table obtained when a typical image is subjected to subband coding is stored in advance, and an image for one screen is provided. A frame memory for temporarily storing data, a sub-band encoding unit for converting image data stored in the frame memory into a frequency space, and a sub-band code for storing code data converted by the sub-band encoding unit A storage unit, an appearance probability calculation unit that calculates the appearance probability of each code stored in the subband code storage unit,
For each code held in the subband code storage unit, a Huffman code table storage unit that records the appearance probability and Huffman code of each code for each image, and each code calculated by the appearance probability calculation unit Huffman code is determined so that the average code length of one screen is minimized, and an optimal Huffman generation unit that writes the Huffman code table storage unit and each image recorded in the Huffman code table storage unit is referred to. A Huffman code learning unit that collectively stores the Huffman code tables, and a subband code of an image that is currently to be encoded in the Huffman code table stored in the Huffman code learning unit or the Huffman code table initial learning unit. In response to this, a search is performed to determine whether or not there is a code whose average code length is equal to or less than a predetermined threshold. If there is, a table number of the Huffman code table is output. A Huffman code learning unit or a Huffman code table initial learning unit for a subband code held in the subband code storage unit with reference to the Huffman code table storage unit. A Huffman encoding unit for performing encoding.
【0010】請求項1の方法又は請求項3記載の装置に
よれば、画像圧縮のための可変長符号化の1つであるハ
フマン符号を用いる場合、現在入力した画像に対して最
適なハフマン符号表を学習する。このとき過去に学習さ
れたハフマン符号表の中に符号化効率の良いものが見つ
かった場合、そのハフマン符号表の記号を出力すること
によって、最適なハフマン符号表を伝送又は記録するこ
とができる。こうするとハフマン符号表そのものを逐一
符号化する場合に比較して、圧縮画像データの情報量が
削減される。According to the method of the first aspect or the apparatus of the third aspect, when a Huffman code which is one of variable length coding for image compression is used, an optimal Huffman code for a currently input image is used. Learn the table. At this time, if a Huffman code table having high coding efficiency is found in the Huffman code table learned in the past, the symbol of the Huffman code table is output, so that an optimal Huffman code table can be transmitted or recorded. In this way, the information amount of the compressed image data is reduced as compared with the case where the Huffman code table itself is encoded one by one.
【0011】請求項2の方法又は請求項4記載の装置に
よれば、典型的な画像に対して予め最適なハフマン符号
表を求めておく。こうすると上記の作用に加えて、画像
圧縮装置が動作を開始したとき、新しい画像が入力され
ても最適なハフマン符号表の学習の効果が得られる。According to the method of the second aspect or the apparatus of the fourth aspect, an optimal Huffman code table is obtained in advance for a typical image. In this way, in addition to the above-described operation, an optimal Huffman code table learning effect can be obtained even when a new image is input when the image compression apparatus starts operating.
【0012】[0012]
(実施の形態1)本発明の第1の実施の形態における画
像圧縮装置について、図面を参照しつつ説明する。図1
は第1の実施の形態における画像圧縮装置の基本構成を
示すブロック図である。本図において、フレームメモリ
101は1画面分の画像データを格納するメモリであ
る。サブバンド符号化部102はフレームメモリ101
に格納された画像データを周波数空間上に変換する符号
化部である。サブバンド符号記憶部103はサブバンド
符号化部102が変換した結果のデータを記憶する記憶
部である。(Embodiment 1) An image compression apparatus according to a first embodiment of the present invention will be described with reference to the drawings. FIG.
FIG. 1 is a block diagram illustrating a basic configuration of an image compression device according to a first embodiment. In FIG. 1, a frame memory 101 is a memory for storing image data for one screen. The subband encoding unit 102 is a frame memory 101
Is an encoding unit that converts the image data stored in the image data into a frequency space. The subband code storage unit 103 is a storage unit that stores data obtained as a result of conversion by the subband coding unit 102.
【0013】出現確率算出部104はサブバンド符号記
憶部103に記憶された複数のデータの夫々の出現確率
を算出する算出部である。ハフマン符号表記憶部105
はサブバンド符号記憶部103に現れるデータと、その
データの出現確率と、そのデータに割当てられたハフマ
ン符号表とを対応付けて記憶する記憶部である。最適ハ
フマン生成部106はハフマン符号表記憶部105に保
持された符号の出現確率を参照し、平均符号長が最も短
くなるようにハフマン符号を決定し、ハフマン符号表記
憶部105に書き込む生成部である。The appearance probability calculation unit 104 is a calculation unit that calculates the appearance probability of each of a plurality of data stored in the subband code storage unit 103. Huffman code table storage unit 105
Is a storage unit that stores data appearing in the subband code storage unit 103, the appearance probability of the data, and the Huffman code table assigned to the data in association with each other. The optimal Huffman generation unit 106 determines the Huffman code so as to minimize the average code length by referring to the appearance probability of the code stored in the Huffman code table storage unit 105, and writes the Huffman code to the Huffman code table storage unit 105. is there.
【0014】学習判定部107は後述するハフマン符号
表学習部108に記憶されているハフマン符号表の中
で、現在符号化しようとしている画像のサブバンド符号
化後のデータに関して、平均符号長をある閾値以下にす
るものがあるか否かを検索し、もし存在すればそのハフ
マン符号表を示す記号(テーブル番号)を出力し、もし
無ければその旨を出力する判定部である。ハフマン符号
表学習部108はハフマン符号表記憶部105に記憶さ
れたハフマン符号表を複数記憶する学習部であり、RA
M等で構成される。ハフマン符号化部109はサブバン
ド符号記憶部103に記憶されたデータをハフマン符号
表学習部108を参照しながらハフマン符号化を行う符
号化部である。The learning determining unit 107 determines the average code length of the data to be currently encoded after the subband encoding in the Huffman code table stored in the Huffman code table learning unit 108 described later. This is a determination unit that searches whether there is something below the threshold and outputs a symbol (table number) indicating the Huffman code table if it exists, and if not, outputs that fact. The Huffman code table learning unit 108 is a learning unit that stores a plurality of Huffman code tables stored in the Huffman code table storage unit 105.
M. The Huffman coding unit 109 is a coding unit that performs Huffman coding on the data stored in the subband code storage unit 103 with reference to the Huffman code table learning unit 108.
【0015】画像圧縮処理制御部110は画像圧縮装置
を構成する各ブロックの圧縮処理に係わる制御を行う回
路である。画像圧縮処理制御部110は次のような制御
を行う。第1に、フレームメモリ101に格納された画
像データをサブバンドに変換するようサブバンド符号化
部102に指示する。第2に、サブバンド符号記憶部1
03に記憶されたデータに対して、各符号毎の出現確率
を算出するよう出現確率算出部104に指示する。An image compression processing control section 110 is a circuit for controlling the compression processing of each block constituting the image compression apparatus. The image compression processing control unit 110 performs the following control. First, the sub-band encoder 102 is instructed to convert the image data stored in the frame memory 101 into sub-bands. Second, the subband code storage unit 1
Instruct the appearance probability calculation unit 104 to calculate the appearance probability for each code with respect to the data stored in 03.
【0016】第3に、ハフマン符号表記憶部105に記
憶されたハフマン符号表の符号と、その符号の出現確率
を関係を参照して、最適なハフマン符号表を生成するよ
うに最適ハフマン生成部106に指示する。第4に、現
在可変長符号化しようとしている画像データに対して、
ハフマン符号表学習部108に学習されたハフマン符号
表で符号化したとき、平均符号長がある閾値以下になる
か否かを判定するように学習判定部107に指示する。Third, an optimum Huffman code generator is generated so as to generate an optimum Huffman code table by referring to the relationship between the codes of the Huffman code table stored in the Huffman code table storage unit 105 and the appearance probabilities of the codes. Instruct 106. Fourth, for image data that is currently being subjected to variable length encoding,
When encoding is performed with the Huffman code table learned by the Huffman code table learning unit 108, the learning determination unit 107 is instructed to determine whether the average code length is equal to or less than a certain threshold.
【0017】第5に、ハフマン符号化部109に対し
て、サブバンド符号記憶部103に記憶されたデータを
ハフマン符号表記憶部105のハフマン符号表を参照し
て、ハフマン符号化を行うよう指示する。Fifth, the Huffman coding unit 109 is instructed to perform Huffman coding on the data stored in the subband code storage unit 103 with reference to the Huffman code table in the Huffman code table storage unit 105. I do.
【0018】このように構成された第1の実施の形態の
画像圧縮装置の動作について、図2のフローチャートを
用いて説明する。先ずステップS1で画像圧縮処理制御
部110がサブバンド符号化部102に対してサブバン
ド符号化を行うよう指示する。するとサブバンド符号化
部102はフレームメモリ101の内容を参照して、サ
ブバンド符号化を行い、その結果をサブバンド符号記憶
部103に書き込む。The operation of the image compression apparatus according to the first embodiment configured as described above will be described with reference to the flowchart of FIG. First, in step S1, the image compression processing control unit 110 instructs the subband encoding unit 102 to perform subband encoding. Then, the subband encoding unit 102 performs subband encoding with reference to the contents of the frame memory 101 and writes the result in the subband code storage unit 103.
【0019】次にステップS2で、画像圧縮処理制御部
110がサブバンド符号化結果について各符号毎の出現
確率を算出するよう出現確率算出部104に指示する。
すると出現確率算出部104はサブバンド符号記憶部1
03を参照して、各符号の出現確率を算出し、ハフマン
符号表記憶部105に書き込む。図3はこのときのハフ
マン符号表記憶部の内容である。この状態ではハフマン
符号が決定されていない。Next, in step S2, the image compression processing control unit 110 instructs the appearance probability calculation unit 104 to calculate the appearance probability of each code with respect to the subband encoding result.
Then, the occurrence probability calculation unit 104 stores the subband code storage unit 1
With reference to FIG. 03, the appearance probability of each code is calculated and written to the Huffman code table storage unit 105. FIG. 3 shows the contents of the Huffman code table storage unit at this time. In this state, the Huffman code has not been determined.
【0020】次にステップS3で、画像圧縮処理制御部
110が学習判定部107に指示を与え、現在注目して
いるサブバンド符号化されたデータをハフマン符号化す
る際に、過去に学習したハフマン符号表の中に、平均符
号長をある閾値以下にできるハフマン符号表が学習され
ていないか検索させる。すると学習判定部107はハフ
マン符号表学習部108を参照し、現在注目しているサ
ブバンド符号化されたデータを、既に学習されたハフマ
ン符号表を用いて符号化した場合の平均符号長を算出す
る。Next, in step S3, the image compression processing control unit 110 gives an instruction to the learning determination unit 107, and when the currently focused subband encoded data is subjected to Huffman encoding, the previously learned Huffman In the code table, a search is made to see if a Huffman code table that can make the average code length equal to or less than a certain threshold has not been learned. Then, the learning determination unit 107 refers to the Huffman code table learning unit 108, and calculates the average code length when the currently focused sub-band coded data is coded using the already learned Huffman code table. I do.
【0021】ここで算出された平均符号長の値がある閾
値より小さければ、ステップS8に進んでいま注目して
いるハフマン符号表を示す記号を出力する。またここで
算出された平均符号長の値がある閾値より大きい場合
は、過去に学習された次のハフマン符号表を用いて、サ
ブバンド符号化されたデータに対して、平均符号長を算
出する。If the value of the calculated average code length is smaller than a certain threshold value, the flow advances to step S8 to output a symbol indicating the Huffman code table of interest. If the value of the average code length calculated here is larger than a certain threshold value, the average code length is calculated for the subband encoded data using the next Huffman code table learned in the past. .
【0022】ここでステップS3において、平均符号表
を閾値以下にするハフマン符号表が無ければその旨を出
力し、ステップS4に進む。Here, in step S3, if there is no Huffman code table that makes the average code table equal to or smaller than the threshold value, the fact is output, and the process proceeds to step S4.
【0023】ここではステップS3において、平均符号
長が例えば閾値10以下にできる符号表が学習されてい
ない場合の動作について説明する。ステップS4で画像
圧縮処理制御部110が、最適ハフマン生成部106に
ハフマン符号表の生成を指示する。すると最適ハフマン
生成部106は、ハフマン符号表記憶部105に記録さ
れた出現確率を参照し、最も平均符号長が短くなるハフ
マン符号を各符号に割当て、その結果をハフマン符号表
記憶部105に書き込む。図4はこのときのハフマン符
号表記憶部105の内容を示したものである。Here, a description will be given of an operation in the case where a code table that allows the average code length to be equal to or less than the threshold value 10, for example, has not been learned in step S3. In step S4, the image compression processing control unit 110 instructs the optimal Huffman generation unit 106 to generate a Huffman code table. Then, the optimal Huffman generation unit 106 refers to the appearance probability recorded in the Huffman code table storage unit 105, assigns a Huffman code with the shortest average code length to each code, and writes the result to the Huffman code table storage unit 105. . FIG. 4 shows the contents of the Huffman code table storage unit 105 at this time.
【0024】ステップS5で画像圧縮処理制御部110
が再びハフマン符号表学習部108を参照し、符号とハ
フマン符号の対応を出力する。そのとき、ハフマン符号
表記憶部105にこの符号表を書き込む。なお、ハフマ
ン符号表学習部108の記憶容量が有限であるため、学
習データとして参照された頻度等を記憶しておき、頻度
の低いものを消去して、新たに学習すべきハフマン符号
表を記憶する容量を確保してもよいことは言うまでもな
い。In step S5, the image compression processing control section 110
Refers to the Huffman code table learning unit 108 again and outputs the correspondence between codes and Huffman codes. At this time, this code table is written in the Huffman code table storage unit 105. Note that since the storage capacity of the Huffman code table learning unit 108 is finite, the frequency and the like referred to as learning data are stored, the less frequent one is deleted, and the Huffman code table to be newly learned is stored. Needless to say, a sufficient capacity may be secured.
【0025】次にステップS6で画像圧縮処理制御部1
10が新たに学習したハフマン符号表の符号とハフマン
符号を対応付けたハフマン符号表を符号化する。このよ
うに、新たな学習が発生した場合は、そのときのハフマ
ン符号表の符号とハフマン符号の対応を再生側に渡すよ
うにしておけば、再生側ではこの情報を基に元の画像を
再生できる。Next, at step S6, the image compression processing control unit 1
Reference numeral 10 encodes a Huffman code table in which the codes of the newly learned Huffman code table are associated with Huffman codes. As described above, when a new learning occurs, the correspondence between the codes of the Huffman code table and the Huffman codes at that time is passed to the reproducing side, and the reproducing side reproduces the original image based on this information. it can.
【0026】次にステップS7で、画像圧縮処理制御部
110がハフマン符号化部109に対して可変長符号化
を指示する。するとハフマン符号化部109は、サブバ
ンド符号記憶部103の内容を、ハフマン符号表記憶部
105に記憶されたハフマン符号表を基にハフマン符号
化を行う。Next, in step S7, the image compression processing control section 110 instructs the Huffman coding section 109 to perform variable length coding. Then, the Huffman coding unit 109 performs Huffman coding on the contents of the subband code storage unit 103 based on the Huffman code table stored in the Huffman code table storage unit 105.
【0027】以上により、再生側では符号とハフマン符
号を対応づけて符号化した情報と、そのハフマン符号表
を基に符号化されたサブバンド符号化後のデータを受け
取ることにより、元の画像を再生できる。As described above, the reproducing side receives the information obtained by associating the code with the Huffman code and the data after the sub-band coding which is coded based on the Huffman code table, and thereby the original image is obtained. Can be played.
【0028】次にステップS3において、ハフマン符号
表学習部108に平均符号表を閾値10以下にするもの
が見つかった場合の動作について説明する。図5に示す
ようにハフマン符号表学習部108に記憶されたハフマ
ン符号表のCが、平均符号長を閾値10以下にする符号
表であったとする。ステップS8で、画像圧縮処理制御
部110が、学習判定部107が出力したハフマン符号
表、例えば記号「C」を受取り、これを画像の圧縮デー
タのヘッダとして出力する。Next, the operation when the Huffman code table learning unit 108 finds one that makes the average code table equal to or smaller than the threshold value 10 in step S3 will be described. As shown in FIG. 5, it is assumed that C of the Huffman code table stored in the Huffman code table learning unit 108 is a code table that sets the average code length to a threshold value of 10 or less. In step S8, the image compression processing control unit 110 receives the Huffman code table, for example, the symbol “C” output by the learning determination unit 107, and outputs this as a header of the compressed data of the image.
【0029】次にステップS7で、画像圧縮処理制御部
110がハフマン符号化部109に可変長符号化を指示
する。するとハフマン符号化部109は、サブバンド符
号記憶部103の内容を、ハフマン符号表記憶部105
に記憶されたハフマン符号表を基にハフマン符号化を行
う。Next, in step S7, the image compression control unit 110 instructs the Huffman coding unit 109 to perform variable length coding. Then, Huffman coding section 109 stores the contents of subband code storage section 103 in Huffman code table storage section 105.
Performs Huffman coding based on the Huffman code table stored in the Huffman code table.
【0030】以上のように「C」というハフマン符号表
が用いられたという情報と、そのハフマン符号表を用い
てハフマン符号化されたデータが準備できた。これによ
り、再生側も「C」というハフマン符号表を学習してお
けば、これらの情報を伝送又は記録することによって元
の画像に再生できる。As described above, information indicating that the Huffman code table “C” was used, and Huffman-encoded data using the Huffman code table were prepared. Thus, if the reproducing side also learns the Huffman code table “C”, it can reproduce the original image by transmitting or recording the information.
【0031】(実施の形態2)次に本発明の第2の実施
の形態における画像圧縮装置について図6〜図10を参
照しつつ説明する。図6は第2の実施の形態における画
像圧縮装置の基本構成を示すブロック図である。図6に
おいて、フレームメモリ201は1画面分の画像データ
を格納するメモリである。サブバンド符号化部202は
フレームメモリ201に格納された画像データを周波数
空間上に変換する符号化部である。サブバンド符号記憶
部203はサブバンド符号化部202が変換したデータ
を記憶する記憶部である。(Embodiment 2) Next, an image compression apparatus according to a second embodiment of the present invention will be described with reference to FIGS. FIG. 6 is a block diagram showing a basic configuration of an image compression device according to the second embodiment. 6, a frame memory 201 is a memory for storing image data for one screen. The subband encoding unit 202 is an encoding unit that converts image data stored in the frame memory 201 into a frequency space. The sub-band code storage unit 203 is a storage unit that stores data converted by the sub-band coding unit 202.
【0032】出現確率算出部204はサブバンド符号記
憶部203に記憶されたデータとそのデータの夫々の出
現確率を算出する算出部である。ハフマン符号表記憶部
205はサブバンド符号記憶部203に現れるデータ
と、そのデータの出現確率と、そのデータに割当てられ
たハフマン符号表とを対応付けて記憶する記憶部であ
る。最適ハフマン生成部206はハフマン符号表記憶部
205に保持された符号の出現確率を参照し、平均符号
長が最も短くなるようにハフマン符号を決定し、ハフマ
ン符号表記憶部205に書き込む生成部である。The appearance probability calculation unit 204 is a calculation unit for calculating the data stored in the subband code storage unit 203 and the appearance probabilities of the data. The Huffman code table storage unit 205 is a storage unit that stores data appearing in the subband code storage unit 203, the appearance probability of the data, and the Huffman code table assigned to the data in association with each other. The optimal Huffman generation unit 206 refers to the code appearance probability held in the Huffman code table storage unit 205, determines the Huffman code so that the average code length is the shortest, and writes the Huffman code into the Huffman code table storage unit 205. is there.
【0033】学習判定部207は後述するハフマン符号
学習部108に記憶されているハフマン符号表の中で、
現在符号化しようとしている画像のサブバンド符号化後
のデータに関して、平均符号長をある閾値以下にするも
のがあるか否かを検索し、もし存在すればそのハフマン
符号表を示す記号(テーブル番号)を出力し、もし無け
ればその旨を出力する判定部である。The learning determination unit 207 includes a Huffman code table stored in a Huffman code learning unit 108 described later.
For the data after subband coding of the image to be currently coded, a search is made to determine whether or not there is any data whose average code length is equal to or smaller than a certain threshold value. If there is, a symbol indicating the Huffman code table (table number ) Is output, and if not, it is output to that effect.
【0034】ハフマン符号表初期学習部208は典型的
な画像をサブバンド符号化した結果に対して最適なハフ
マン符号を求めておき、ハフマン符号表記憶部205と
同様の形式で記憶するメモリである。The Huffman code table initial learning unit 208 is a memory that obtains an optimal Huffman code for the result of subband coding of a typical image and stores it in the same format as the Huffman code table storage unit 205. .
【0035】ハフマン符号表学習部209はハフマン符
号表記憶部205に記憶されたハフマン符号表を複数記
憶する学習部である。ハフマン符号表初期学習部208
はROMで構成され、ハフマン符号表学習部209はR
AMで構成される。ハフマン符号化部210は、サブバ
ンド符号記憶部203に記憶されたデータをハフマン符
号表記憶部205を参照しながらハフマン符号化を行う
符号化部である。The Huffman code table learning unit 209 is a learning unit that stores a plurality of Huffman code tables stored in the Huffman code table storage unit 205. Huffman code table initial learning unit 208
Is composed of a ROM, and the Huffman code table learning unit 209 stores
AM. The Huffman coding unit 210 is a coding unit that performs Huffman coding on the data stored in the subband code storage unit 203 with reference to the Huffman code table storage unit 205.
【0036】画像圧縮処理制御部211は画像圧縮装置
を構成する各ブロックの圧縮処理に係わる制御を行う回
路である。画像圧縮処理制御部211は次のような制御
を行う。第1に、フレームメモリ201に格納された画
像データをサブバンドに変換するようサブバンド符号化
部202に指示する。第2に、サブバンド符号記憶部2
03に記憶されたデータに対して各符号毎の出現確率を
算出するよう出現確率算出部204に指示する。The image compression processing control section 211 is a circuit for controlling the compression processing of each block constituting the image compression apparatus. The image compression processing control unit 211 performs the following control. First, the sub-band encoder 202 is instructed to convert the image data stored in the frame memory 201 into sub-bands. Second, the subband code storage unit 2
Instruct the appearance probability calculation unit 204 to calculate the appearance probability of each code with respect to the data stored in 03.
【0037】第3に、ハフマン符号表記憶部205に記
憶されたハフマン符号表の符号と、その符号の出現確率
を関係を参照して、最適なハフマン符号表を生成するよ
うに最適ハフマン生成部206に指示する。第4に、学
習判定部207に現在可変長符号化しようとしている画
像データに対して、ハフマン符号表初期学習部208又
はハフマン符号表学習部209に学習されたハフマン符
号表を用いて各符号を符号化したとき、平均符号長があ
る閾値以下になるか否かを判定するように学習判定部2
07に指示する。Third, by referring to the relationship between the codes of the Huffman code table stored in the Huffman code table storage unit 205 and the appearance probabilities of the codes, an optimum Huffman generation unit is generated so as to generate an optimal Huffman code table. Instruct 206. Fourth, the learning determination unit 207 uses the Huffman code table learned by the Huffman code table initial learning unit 208 or the Huffman code table learning unit 209 to convert each code with respect to the image data currently to be subjected to variable length coding. When encoding, the learning determination unit 2 determines whether the average code length is equal to or less than a certain threshold value.
07.
【0038】第5に、ハフマン符号化部210に対し
て、サブバンド符号記憶部203に記憶されたデータを
ハフマン符号表学習部209又はハフマン符号表初期学
習部208を参照して、ハフマン符号化を行うよう指示
する。Fifth, the Huffman encoding unit 210 refers to the Huffman code table learning unit 209 or the Huffman code table initial learning unit 208 to convert the data stored in the subband code storage unit 203 into Huffman encoding data. To perform
【0039】このように構成された第2の実施の形態の
画像圧縮装置の動作について図7のフローチャートを用
いて説明する。先ずステップT1で画像圧縮処理制御部
211がサブバンド符号化部202に対してサブバンド
符号化を行うよう指示する。するとサブバンド符号化部
202はフレームメモリ201の内容を参照して、サブ
バンド符号化を行い、その結果をサブバンド符号記憶部
203に書き込む。The operation of the image compression apparatus according to the second embodiment having the above-mentioned configuration will be described with reference to the flowchart of FIG. First, in step T1, the image compression processing control unit 211 instructs the subband encoding unit 202 to perform subband encoding. Then, the subband encoding unit 202 performs subband encoding with reference to the contents of the frame memory 201 and writes the result to the subband code storage unit 203.
【0040】次にステップT2で、画像圧縮処理制御部
211がサブバンド符号化結果について各符号毎の出現
確率を算出するよう出現確率算出部204に指示する。
すると出現確率算出部204はサブバンド符号記憶部2
03を参照して各符号の出現確率を算出し、ハフマン符
号表記憶部205に書き込む。図8はこのときのハフマ
ン符号表記憶部205の内容である。この状態ではハフ
マン符号が決定されていない。Next, in step T2, the image compression processing control unit 211 instructs the appearance probability calculation unit 204 to calculate the appearance probability of each code with respect to the subband encoding result.
Then, the appearance probability calculation unit 204 sets the subband code storage unit 2
03, the appearance probability of each code is calculated and written to the Huffman code table storage unit 205. FIG. 8 shows the contents of the Huffman code table storage unit 205 at this time. In this state, the Huffman code has not been determined.
【0041】次にステップT3で、画像圧縮処理制御部
211が学習判定部207に指示を与え、現在注目して
いるサブバンド符号化されたデータをハフマン符号化す
る際に、過去に学習したハフマン符号表の中に、平均符
号長をある閾値以下にできるハフマン符号表が学習され
ているか否かを検索させる。すると学習判定部207は
ハフマン符号表初期学習部208とハフマン符号表学習
部209を参照し、現在注目しているサブバンド符号化
されたデータを、学習されたハフマン符号表を用いて符
号化した場合の平均符号長を算出する。Next, in step T3, the image compression processing control section 211 gives an instruction to the learning determination section 207, and when the currently focused subband encoded data is Huffman-coded, the previously learned Huffman A search is performed to determine whether a Huffman code table that can make the average code length equal to or less than a certain threshold has been learned in the code table. Then, the learning determination unit 207 refers to the Huffman code table initial learning unit 208 and the Huffman code table learning unit 209, and encodes the currently focused subband coded data using the learned Huffman code table. The average code length in the case is calculated.
【0042】ここでステップT3において、ある閾値よ
り平均符号長を小さくできるハフマン符号が見つかれば
ステップT8に進み、その符号表を示す記号を出力す
る。更にその符号表の内容をハフマン符号表記憶部20
5に書き込んだ後にステップT7に進む。ある閾値より
平均符号表を小さくできるハフマン符号が無ければその
旨を出力し、ステップT4に進む。Here, in step T3, if a Huffman code whose average code length can be made smaller than a certain threshold is found, the process proceeds to step T8, and a symbol indicating the code table is output. Further, the contents of the code table are stored in the Huffman code table storage unit 20.
After writing in 5, the process proceeds to step T7. If there is no Huffman code that can make the average code table smaller than a certain threshold, that fact is output, and the process proceeds to step T4.
【0043】ここではステップT3において、平均符号
長が例えば閾値10以下にできる符号表が学習されてい
ない場合の動作について説明する。ステップT4で画像
圧縮処理制御部211が、最適ハフマン生成部206に
ハフマン符号表の生成を指示する。すると最適ハフマン
生成部206は、ハフマン符号表記憶部205に記録さ
れた出現確率を参照し、最も平均符号長が短くなるハフ
マン符号を各符号に割当て、その結果をハフマン符号表
記憶部205に書き込む。図9はこのときのハフマン符
号表記憶部205の内容を示したものである。Here, a description will be given of the operation in the case where a code table that can make the average code length smaller than the threshold value 10, for example, has not been learned in step T3. In step T4, the image compression processing control unit 211 instructs the optimal Huffman generation unit 206 to generate a Huffman code table. Then, the optimal Huffman generation unit 206 refers to the appearance probability recorded in the Huffman code table storage unit 205, assigns a Huffman code with the shortest average code length to each code, and writes the result to the Huffman code table storage unit 205. . FIG. 9 shows the contents of the Huffman code table storage unit 205 at this time.
【0044】ステップT5で画像圧縮処理制御部211
が再びハフマン符号表記憶部205を参照し、符号とハ
フマン符号の対応を出力する。そのときハフマン符号表
学習部209にこの符号表を書き込む。なお、ハフマン
符号表学習部209の記憶容量が有限であるため、学習
データとして参照された頻度等を記憶しておき、頻度の
低いものを消去して、新たに学習すべきハフマン符号表
を記憶するに必要な容量を確保してもよい。In step T5, the image compression processing control section 211
Refers to the Huffman code table storage unit 205 again and outputs the correspondence between codes and Huffman codes. At this time, the code table is written in the Huffman code table learning unit 209. Note that since the storage capacity of the Huffman code table learning unit 209 is limited, the frequency and the like referred to as learning data are stored, those with low frequency are deleted, and the Huffman code table to be newly learned is stored. The capacity required for the operation may be secured.
【0045】次にステップT6で画像圧縮処理制御部2
11がハフマン符号表記憶部205を参照し、符号とハ
フマン符号を対応付けたハフマン符号表を符号化する。
このように、新たな学習が発生した場合は、そのときの
ハフマン符号表の符号とハフマン符号の対応を再生側に
渡すようにしておけば、再生側ではこの情報を基に、元
の画像を再生できる。Next, at step T6, the image compression processing control unit 2
11 refers to the Huffman code table storage unit 205 and encodes a Huffman code table in which codes are associated with Huffman codes.
In this way, when a new learning occurs, the correspondence between the codes of the Huffman code table and the Huffman codes at that time should be passed to the reproducing side, and the reproducing side can convert the original image based on this information. Can be played.
【0046】次にステップT7で、画像圧縮処理制御部
211が、ハフマン符号化部210に対して可変長符号
化を指示する。するとハフマン符号化部210は、サブ
バンド符号記憶部203の符号に対してハフマン符号表
記憶部205又はハフマン符号表初期学習部208に記
憶されたハフマン符号表を基にハフマン符号化を行う。Next, at step T7, the image compression processing control section 211 instructs the Huffman coding section 210 to perform variable length coding. Then, the Huffman coding unit 210 performs Huffman coding on the code in the subband code storage unit 203 based on the Huffman code table stored in the Huffman code table storage unit 205 or the Huffman code table initial learning unit 208.
【0047】以上により、新たに学習が発生した場合
は、そのときのハフマン符号表の符号とハフマン符号の
対応を再生側に渡すようにしておけば、再生側ではこの
情報を基に元の画像を再生できる。As described above, when a new learning occurs, the correspondence between the codes of the Huffman code table and the Huffman codes at that time is passed to the reproducing side, and the reproducing side reproduces the original image based on this information. Can be played.
【0048】次にステップT3において、図10に示す
ようにハフマン符号表学習部209に記憶されたハフマ
ン符号表記号「Y」が、平均符号長を閾値10以下にす
る符号表であったする。Next, in step T3, as shown in FIG. 10, the Huffman code table symbol "Y" stored in the Huffman code table learning unit 209 is a code table that makes the average code length equal to or less than the threshold value 10.
【0049】ステップT8で、画像圧縮処理制御部21
1が、学習判定部207が出力した記号「Y」を受取
り、これを画像の圧縮データのヘッダとして出力する。In step T8, the image compression processing control unit 21
1 receives the symbol “Y” output by the learning determination unit 207 and outputs this as the header of the compressed data of the image.
【0050】次にステップT7で、画像圧縮処理制御部
211がハフマン符号化部210に可変長符号化を指示
する。するとハフマン符号化部210は、サブバンド符
号記憶部203の内容を、ハフマン符号表記憶部205
に記憶されたハフマン符号表を基にハフマン符号化を行
う。Next, at step T7, the image compression control section 211 instructs the Huffman encoding section 210 to perform variable length encoding. Then, Huffman coding section 210 stores the contents of subband code storage section 203 in Huffman code table storage section 205.
Performs Huffman coding based on the Huffman code table stored in the Huffman code table.
【0051】以上のように「Y」というハフマン符号表
が用いられたという情報と、そのハフマン符号表を用い
てハフマン符号化されたデータが準備できた。これによ
り、再生側も「Y」というハフマン符号表を学習してお
けば、これらの情報を伝送又は記録することによって元
の画像を再生できる。As described above, information indicating that the Huffman code table “Y” was used and Huffman-encoded data were prepared using the Huffman code table. Thus, if the reproducing side also learns the Huffman code table “Y”, the original image can be reproduced by transmitting or recording such information.
【0052】[0052]
【発明の効果】以上のように請求項1又2の発明の画像
圧縮方法によれば、時間的に変化する画像をサブバンド
符号化を用いて圧縮し、圧縮画像データを記録又は伝送
するに際し、 画像圧縮に用いたハフマン符号表の表番号
を送出することにより、ハフマン符号表そのもののデー
タを記録又は伝送する必要がなくなる。このため圧縮画
像データの総量が削減される。As described above, according to the image compression method of the first and second aspects of the present invention, a time-varying image is compressed using sub-band coding, and the compressed image data is recorded or transmitted. By transmitting the table number of the Huffman code table used for image compression, there is no need to record or transmit the data of the Huffman code table itself. Therefore, the total amount of the compressed image data is reduced.
【0053】特に本発明の画像圧縮装置をビデオフォン
に用いた場合、各画像の内容は例えば背景画に人物像と
いったものが多く、その画像の時間的変化もあまり生じ
ない。従って、一度学習した最適ハフマン符号表は連続
する各画像に有効に利用できる。また初期学習されたハ
フマン符号表を受信側で記憶しておくことで、送信側か
ら送出された圧縮画像データを、ハフマン符号表の表番
号の情報を用いて伸長再生することができる。In particular, when the image compression apparatus of the present invention is used in a videophone, the content of each image is often, for example, a person image in a background image, and the image does not change much over time. Therefore, the optimal Huffman code table once learned can be effectively used for each successive image. Also, by storing the Huffman code table that has been initially learned on the receiving side, the compressed image data transmitted from the transmitting side can be expanded and reproduced using the information on the table number of the Huffman code table.
【図1】本発明の第1の実施の形態における画像圧縮装
置の基本構成を示すブロック図である。FIG. 1 is a block diagram illustrating a basic configuration of an image compression device according to a first embodiment of the present invention.
【図2】第1の実施の形態の画像圧縮装置の画像圧縮動
作を示すフローチャートである。FIG. 2 is a flowchart illustrating an image compression operation of the image compression device according to the first embodiment.
【図3】第1の実施の形態におけるハフマン符号表の内
容(その1)を示す説明図である。FIG. 3 is an explanatory diagram showing the contents (No. 1) of a Huffman code table in the first embodiment.
【図4】第1の実施の形態におけるハフマン符号表の内
容(その2)を示す説明図である。FIG. 4 is an explanatory diagram showing the contents (No. 2) of a Huffman code table in the first embodiment.
【図5】第1の実施の形態のハフマン符号学習部に保持
されたハフマン符号表の説明図である。FIG. 5 is an explanatory diagram of a Huffman code table held in a Huffman code learning unit according to the first embodiment.
【図6】本発明の第2の実施の形態における画像圧縮装
置の基本構成を示すブロック図である。FIG. 6 is a block diagram illustrating a basic configuration of an image compression device according to a second embodiment of the present invention.
【図7】第2の実施の形態の画像圧縮装置の画像圧縮動
作を示すフローチャートである。FIG. 7 is a flowchart illustrating an image compression operation of the image compression device according to the second embodiment.
【図8】第2の実施の形態におけるハフマン符号表の内
容(その1)を示す説明図である。FIG. 8 is an explanatory diagram showing the contents (No. 1) of a Huffman code table in the second embodiment.
【図9】第2の実施の形態におけるハフマン符号表の内
容(その2)を示す説明図である。FIG. 9 is an explanatory diagram showing the contents (No. 2) of a Huffman code table in the second embodiment.
【図10】第2の実施の形態のハフマン符号学習部に保
持されたハフマン符号表の説明図である。FIG. 10 is an explanatory diagram of a Huffman code table held in a Huffman code learning unit according to the second embodiment.
101,201 フレームメモリ 102,202 サブバンド符号化部 103,203 サブバンド符号記憶部 104,204 出現確率算出部 105,205 ハフマン符号表記憶部 106,206 最適ハフマン生成部 107,207 学習判定部 108,209 ハフマン符号表学習部 109,210 ハフマン符号化部 110,211 画像圧縮処理制御部 208 ハフマン符号表初期学習部 101, 201 Frame memory 102, 202 Subband encoding unit 103, 203 Subband code storage unit 104, 204 Appearance probability calculation unit 105, 205 Huffman code table storage unit 106, 206 Optimal Huffman generation unit 107, 207 Learning determination unit 108 , 209 Huffman code table learning unit 109, 210 Huffman coding unit 110, 211 Image compression processing control unit 208 Huffman code table initial learning unit
Claims (4)
化を用いて圧縮する画像圧縮方法であって、 新たな画像を取り込み、画像1枚毎にサブバンド符号の
リストを求めるステップaと、 得られたサブバンド符号リスト中の各サブバンド符号の
出現確率を求めるステップbと、 過去の画像で得られた学習済みハフマン符号表の中に、
前記ステップa,bで得られた現在のサブバンド符号に
対して、ハフマン符号の平均符号長を所定の閾値以下に
するものが登録されているか否かを判別するステップc
と、 前記ステップcで所定の閾値以下にするハフマン符号表
が前記学習済みハフマン符号表に登録されていると判別
された場合、そのハフマン符号表の記号を出力するステ
ップdと、 前記ステップcで閾値以下にするハフマン符号表が学習
済みハフマン符号表に記録されていないと判別された場
合、前記ステップa,bで得られた現在のサブバンド符
号に対して平均符号長が最小となるような最適ハフマン
符号表を新たに生成するステップeと、 ステップeで得られた最適ハフマン符号表を前記学習済
みハフマン符号表に登録するステップfと、 前記ステップeで生成された特定のハフマン符号表を伝
送又は記録するため符号化するステップgと、 現在の画像に対して前記学習済みハフマン符号表に登録
された最適ハフマン符号表を用いてハフマン符号化を行
い、圧縮画像データを記録又は伝送するステップhと、
を有することを特徴とする画像圧縮方法。1. An image compression method for compressing a time-varying image using sub-band coding, comprising the steps of: fetching a new image and obtaining a list of sub-band codes for each image; Step b for obtaining the appearance probability of each subband code in the obtained subband code list; and in the learned Huffman code table obtained in the past image,
A step c for determining whether or not a code that makes the average code length of the Huffman code equal to or less than a predetermined threshold is registered with respect to the current subband code obtained in the steps a and b.
And if it is determined in step c that the Huffman code table to be set to be equal to or less than the predetermined threshold is registered in the learned Huffman code table, a step d for outputting a symbol of the Huffman code table; If it is determined that the Huffman code table to be equal to or less than the threshold value is not recorded in the learned Huffman code table, the average code length becomes the minimum with respect to the current subband code obtained in steps a and b. A step e of newly generating an optimal Huffman code table, a step f of registering the optimal Huffman code table obtained in step e in the learned Huffman code table, and a step of registering the specific Huffman code table generated in step e. Encoding for transmission or recording, using the optimal Huffman code table registered in the learned Huffman code table for the current image. Performs Huffman coding, a step h of recording or transmitting the compressed image data,
An image compression method comprising:
化を用いて圧縮する画像圧縮方法であって、 新たな画像を取り込み、画像1枚毎にサブバンド符号の
リストを求めるステップaと、 得られたサブバンド符号リスト中の各サブバンド符号の
出現確率を求めるステップbと、 過去の画像で得られた学習済みハフマン符号表の中、又
は典型的な画像に対して予め求められたハフマン符号表
を登録した初期学習済みハフマン符号表の中に、前記ス
テップa,bで得られた現在のサブバンド符号に対し
て、ハフマン符号の平均符号長を所定の閾値以下にする
ものが登録されているか否かを判別するステップcと、 前記ステップcで所定の閾値以下にするハフマン符号表
が前記学習済みハフマン符号表又は前記初期学習済みハ
フマン符号表に記録されていると判別された場合、その
ハフマン符号表の記号を出力するステップdと、 前記ステップcで所定の閾値以下にするハフマン符号表
が学習済みハフマン符号表又は前記初期学習済みハフマ
ン符号表に記録されていないと判別された場合、前記ス
テップa,bで得られた現在のサブバンド符号に対して
平均符号長が最小となるような最適ハフマン符号表を新
たに生成するステップeと、 ステップeで得られた最適ハフマン符号表を前記学習済
みハフマン符号表に登録するステップfと、 前記ステップeで生成された特定のハフマン符号表を伝
送又は記録するため符号化するステップgと、 現在の画像に対して前記学習済みハフマン符号表に登録
された最適ハフマン符号表を用いてハフマン符号化を行
い、圧縮画像データを記録又は伝送するステップhと、
を有することを特徴とする画像圧縮方法。2. An image compression method for compressing a time-varying image using sub-band coding, comprising the steps of: fetching a new image and obtaining a list of sub-band codes for each image; A step b for obtaining an appearance probability of each subband code in the obtained subband code list; and a Huffman code previously obtained in a learned Huffman code table obtained from a past image or for a typical image. In the initially-learned Huffman code table in which the code table is registered, the one that makes the average code length of the Huffman code equal to or less than a predetermined threshold value with respect to the current subband code obtained in steps a and b is registered. C) determining whether or not the Huffman code table to be equal to or less than a predetermined threshold value in the step c is recorded in the learned Huffman code table or the initially learned Huffman code table. If it is determined that the Huffman code table is output, the Huffman code table that outputs the symbol of the Huffman code table, and the Huffman code table to be set to be equal to or less than the predetermined threshold value in the step c are the learned Huffman code table or the initially learned Huffman code table If it is determined that the code is not recorded, a new optimal Huffman code table for minimizing the average code length with respect to the current subband code obtained in the steps a and b, e. e) registering the optimal Huffman code table obtained in step e in the learned Huffman code table, and step g of encoding the specific Huffman code table generated in step e for transmission or recording. The image is subjected to Huffman coding using the optimal Huffman code table registered in the trained Huffman code table, and the compressed image data is recorded or transmitted. And step h to be,
An image compression method comprising:
レームメモリと、 前記フレームメモリに保持された画像データを周波数空
間上に変換するサブバンド符号化部と、 前記サブバンド符号化部が変換した符号のデータを記憶
するサブバンド符号記憶部と、 前記サブバンド符号記憶部に記憶された各符号の出現確
率を算出する出現確率算出部と、 前記サブバンド符号記憶部に保持された各符号に対し
て、各符号の出現確率とハフマン符号とを各画像毎に記
録するハフマン符号表記憶部と、 前記出現確率算出部で算出された各符号の出現確率を参
照し、1画面の平均符号長が最小となるようハフマン符
号を決定し、前記ハフマン符号表記憶部に書き込む最適
ハフマン生成部と、 前記ハフマン符号表記憶部に記録された各画像のハフマ
ン符号表をまとめて格納するハフマン符号学習部と、 前記ハフマン符号学習部に格納されたハフマン符号表の
中で、現在符号化しようとしている画像のサブバンド符
号に対して、平均符号長を所定の閾値以下にするものが
存在するか否かを検索し、存在すればハフマン符号表の
表番号を出力し、存在しなけばその旨を出力する学習判
定部と、 前記サブバンド符号記憶部に保持されたサブバンド符号
に対して、前記ハフマン符号表記憶部を参照しながらハ
フマン符号化を行うハフマン符号化部と、を具備するこ
とを特徴とする画像圧縮装置。3. A frame memory for temporarily storing image data for one screen, a sub-band encoding unit for converting the image data stored in the frame memory into a frequency space, and the sub-band encoding unit Sub-band code storage unit that stores the data of the generated code, an appearance probability calculation unit that calculates the appearance probability of each code stored in the sub-band code storage unit, and each code that is held in the sub-band code storage unit The Huffman code table storage unit that records the appearance probability of each code and the Huffman code for each image, and the appearance probability of each code calculated by the appearance probability calculation unit is referred to, and the average code of one screen is referred to. Determining a Huffman code such that the length is minimized, and writing an optimal Huffman code to the Huffman code table storage unit; and a Huffman code table for each image recorded in the Huffman code table storage unit. And a Huffman code learning unit that stores the Huffman code learning unit in the Huffman code learning unit. Search for whether or not there is, a learning determination unit that outputs the table number of the Huffman code table if it exists, and if there is not, a learning determination unit that outputs the fact, and is held in the subband code storage unit An image compression apparatus comprising: a Huffman encoding unit that performs Huffman encoding on a subband code while referring to the Huffman code table storage unit.
合に得られる最適なハフマン符号表を予め記憶したハフ
マン符号表初期学習部と、 1画面分の画像データを一時保持するフレームメモリ
と、 前記フレームメモリに保持された画像データを周波数空
間上に変換するサブバンド符号化部と、 前記サブバンド符号化部が変換した符号のデータを記憶
するサブバンド符号記憶部と、 前記サブバンド符号記憶部に記憶された各符号の出現確
率を算出する出現確率算出部と、 前記サブバンド符号記憶部に保持された各符号に対し
て、各符号の出現確率とハフマン符号とを各画像毎に記
録するハフマン符号表記憶部と、 前記出現確率算出部で算出された各符号の出現確率を参
照し、1画面の平均符号長が最小となるようハフマン符
号を決定し、前記ハフマン符号表記憶部に書き込む最適
ハフマン生成部と、 前記ハフマン符号表記憶部に記録された各画像のハフマ
ン符号表をまとめて格納するハフマン符号学習部と、 前記ハフマン符号学習部又は前記ハフマン符号表初期学
習部に格納されたハフマン符号表の中で、現在符号化し
ようとしている画像のサブバンド符号に対して、平均符
号長を所定の閾値以下にするものが存在するか否かを検
索し、存在すればハフマン符号表の表番号を出力し、存
在しなけばその旨を出力する学習判定部と、 前記サブバンド符号記憶部に保持されたサブバンド符号
に対して、前記ハフマン符号表記憶部を参照しながら前
記ハフマン符号学習部又は前記ハフマン符号表初期学習
部を用いてハフマン符号化を行うハフマン符号化部と、
を具備することを特徴とする画像圧縮装置。4. A Huffman code table initial learning unit which stores in advance an optimal Huffman code table obtained when a typical image is subjected to subband coding; a frame memory for temporarily storing image data for one screen; A sub-band encoding unit that converts the image data held in the frame memory into a frequency space; a sub-band code storage unit that stores data of a code converted by the sub-band encoding unit; An appearance probability calculation unit that calculates an appearance probability of each code stored in the unit, and records an appearance probability of each code and a Huffman code for each image for each code held in the subband code storage unit. A Huffman code table storage unit to determine the Huffman code so that the average code length of one screen is minimized with reference to the appearance probability of each code calculated by the appearance probability calculation unit; An optimal Huffman generation unit that writes to the Huffman code table storage unit; a Huffman code learning unit that collectively stores the Huffman code table of each image recorded in the Huffman code table storage unit; and the Huffman code learning unit or the Huffman code table In the Huffman code table stored in the initial learning unit, for the subband code of the image that is currently being coded, search whether there is one that makes the average code length less than or equal to a predetermined threshold, A learning determination unit that outputs a table number of the Huffman code table if present; and a learning determination unit that outputs the fact if it does not exist, and the Huffman code table storage unit for the subband code held in the subband code storage unit. A Huffman encoding unit that performs Huffman encoding using the Huffman code learning unit or the Huffman code table initial learning unit with reference to
An image compression apparatus comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20703996A JP3688064B2 (en) | 1996-08-06 | 1996-08-06 | Image compression method and image compression apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20703996A JP3688064B2 (en) | 1996-08-06 | 1996-08-06 | Image compression method and image compression apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH1051771A true JPH1051771A (en) | 1998-02-20 |
| JP3688064B2 JP3688064B2 (en) | 2005-08-24 |
Family
ID=16533200
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20703996A Expired - Fee Related JP3688064B2 (en) | 1996-08-06 | 1996-08-06 | Image compression method and image compression apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3688064B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004075556A1 (en) * | 2003-02-19 | 2004-09-02 | Ishikawajima-Harima Heavy Industries Co., Ltd. | Image compression device, image compression method, image compression program, compression/encoding method, compression/encoding device, compression/encoding program, decoding method, decoding device, and decoding program |
| JP2006324944A (en) * | 2005-05-19 | 2006-11-30 | Renesas Technology Corp | Encoder |
| JP2017507590A (en) * | 2014-02-20 | 2017-03-16 | グルロジック マイクロシステムズ オーワイGurulogic Microsystems Oy | Data source encoding / decoding method and apparatus with symbol compression |
-
1996
- 1996-08-06 JP JP20703996A patent/JP3688064B2/en not_active Expired - Fee Related
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004075556A1 (en) * | 2003-02-19 | 2004-09-02 | Ishikawajima-Harima Heavy Industries Co., Ltd. | Image compression device, image compression method, image compression program, compression/encoding method, compression/encoding device, compression/encoding program, decoding method, decoding device, and decoding program |
| US7536054B2 (en) | 2003-02-19 | 2009-05-19 | Ishikawajima-Harima Heavy Industries Co., Ltd. | Image compression device, image compression method, image compression program, compression encoding method, compression encoding device, compression encoding program, decoding method, decoding device, and decoding program |
| JP2006324944A (en) * | 2005-05-19 | 2006-11-30 | Renesas Technology Corp | Encoder |
| JP2017507590A (en) * | 2014-02-20 | 2017-03-16 | グルロジック マイクロシステムズ オーワイGurulogic Microsystems Oy | Data source encoding / decoding method and apparatus with symbol compression |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3688064B2 (en) | 2005-08-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7109898B2 (en) | Variable length coding method and variable length decoding method | |
| CN100456638C (en) | Audio data processing method and lossless decoding method | |
| JP3171776B2 (en) | Compression method and context modeler | |
| JP5032314B2 (en) | Audio encoding apparatus, audio decoding apparatus, and audio encoded information transmission apparatus | |
| CN1653697B (en) | Data processing system, data processing method and data processing device | |
| JPH10313251A (en) | Audio signal conversion apparatus and method, prediction coefficient generation apparatus and method, prediction coefficient storage medium | |
| EP0529556A2 (en) | Vector-quatizing device | |
| JPH0946691A (en) | Information storage and output method and information storage and output device | |
| US6333763B1 (en) | Audio coding method and apparatus with variable audio data sampling rate | |
| JP3462267B2 (en) | Information communication terminal equipment | |
| JP3688064B2 (en) | Image compression method and image compression apparatus | |
| JP3291451B2 (en) | Data processing system and processing method | |
| US6356667B1 (en) | Encoding apparatus and method, decoding apparatus and method and recording medium | |
| JPH11127356A (en) | Image iterative transform decoding apparatus and method, and recording medium | |
| US20060069565A1 (en) | Compressed data processing apparatus and method and compressed data processing program | |
| JPH10294943A (en) | Video signal encoding system, video signal encoding device, video signal decoding system, and video signal decoding device | |
| JP3065393B2 (en) | Image data restoration method and image data restoration device | |
| WO1998033281A1 (en) | Device and method for generating compressed data | |
| JPH08321828A (en) | Coded signal transmission device | |
| JPH03104435A (en) | Data transmitter | |
| JPH1056613A (en) | Compressed image decoding device | |
| JPH11220730A (en) | Encoding method and apparatus, decoding method and apparatus, and recording medium | |
| US20050078216A1 (en) | Method of improving audio performance and power utilization of a portable audio device with electronic anti-shock system (EASS) | |
| JPH0414318A (en) | Coder | |
| JPH0691615B2 (en) | Image signal encoding device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050607 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050607 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |