JPH06112839A - Encoder - Google Patents

Encoder

Info

Publication number
JPH06112839A
JPH06112839A JP25942992A JP25942992A JPH06112839A JP H06112839 A JPH06112839 A JP H06112839A JP 25942992 A JP25942992 A JP 25942992A JP 25942992 A JP25942992 A JP 25942992A JP H06112839 A JPH06112839 A JP H06112839A
Authority
JP
Japan
Prior art keywords
data
coefficient
run length
probability distribution
encoding
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
JP25942992A
Other languages
Japanese (ja)
Inventor
Yukihiro Imai
幸弘 今井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP25942992A priority Critical patent/JPH06112839A/en
Publication of JPH06112839A publication Critical patent/JPH06112839A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/005Statistical coding, e.g. Huffman, run length coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE:To obtain an encoder optimizing a compression rate of binarized data by generating a Huffman code table in response to a characteristic of each of binarized data and executing the coding (and decoding processing) through the use of the table. CONSTITUTION:Approximate equations P(n) expressing a graph of occurrence probability distribution expressed by an exponential function or a sum of exponential functions are shown in equations I, II in an approximate processing section 300 and obtain each coefficient. In the equations, n is a run length and alpha, alpha1,..., alpham, a, a1,..., am, and (b) are coefficients obtained by the least square method. After each coefficient is obtained, a coding processing section 500 executes run length coding. Coefficient data obtained by both the equations are added to data obtained as the result to obtain coding data, which are outputted, The quantity of data of each coefficient is very small in comparison with data quantity by the coding, then the compression rate of the outputted code data is not reduced even when the data of each coefficient are added.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、2値化データの符号化
処理及び符号データの複号化処理を行う符号化装置に係
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding apparatus for coding binary data and decoding coded data.

【0002】[0002]

【従来の技術】ファクシミリ装置等では、イメージリー
ダで原稿画像の画像データを読み取った後に、2値化処
理を施す。符号化装置は、2値化処理により得られる2
値化データをランレングス符号化して送信部等へ出力す
ると共に、受信した符号データを2値化データに複号
し、制御部等へ出力する。従来、上記ランレングス符号
化を実行する際には、固定符号テーブル、又はあらかじ
め用意された数種類の符号テーブルから適当なテーブル
を選択して符号化を実行していた。
2. Description of the Related Art In a facsimile machine or the like, binarization processing is performed after image data of an original image is read by an image reader. The encoding device has a value of 2 obtained by the binarization process.
The binarized data is run-length encoded and output to the transmission unit and the like, and the received code data is decoded into the binarized data and output to the control unit and the like. Conventionally, when executing the above run length encoding, an appropriate table is selected from a fixed code table or several types of code tables prepared in advance and the encoding is executed.

【0003】ここで、ランレングス符号化とは、以下の
ことをいう。まず、標準的な2値化データについて、白
もしくは黒画素の続く長さ(以下、ランレングスとい
う)についての生起確率分布のグラフを求める。統計的
に見て、生起確率分布のグラフは、指数関数で表され
る。即ち、生起確率分布のグラフは、0のランレングス
の発生回数が一番多く、ランレングスが長くなるにつれ
て、その発生回数は指数関数的に減少する。ここで、短
いランレングスに小さなビット数の識別コードを与え、
ランレングスが長くなるにつれて大きなビット数の識別
コードを与え、これに基づいてハフマン符号テーブルを
作成する。ランレングス符号化では、このようにして作
成されたハフマン符号テーブルを用いて2値化データを
符号化し、2値化データの情報量の圧縮を行う。
Here, the run length coding means the following. First, for standard binarized data, a graph of the occurrence probability distribution for the length of white or black pixels following (hereinafter referred to as run length) is obtained. Statistically, the graph of the occurrence probability distribution is represented by an exponential function. That is, in the graph of the occurrence probability distribution, the number of occurrences of run length of 0 is the largest, and the number of occurrences decreases exponentially as the run length becomes longer. Here, give a short run length an identification code with a small number of bits,
An identification code with a larger number of bits is given as the run length becomes longer, and a Huffman code table is created based on this. In the run-length encoding, the Huffman code table created in this way is used to encode the binary data, and the information amount of the binary data is compressed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
ファクシミリ装置では、予め用意されたハフマン符号テ
ーブルを使用してランレングス符号化を実行する。この
ため、入力された2値化データによっては、情報量の圧
縮率が上がらない場合が生じる。
However, in the conventional facsimile apparatus, run length coding is executed using a Huffman code table prepared in advance. Therefore, the compression rate of the information amount may not increase depending on the input binarized data.

【0005】そこで、本発明では、各2値化データの特
性に合った符号化を実行することで2値化データの圧縮
率を最適化する符号化装置を提供することを目的とす
る。
Therefore, it is an object of the present invention to provide an encoding device for optimizing the compression ratio of binary data by performing encoding that matches the characteristics of each binary data.

【0006】[0006]

【問題を解決するための手段】請求項1に記載された符
号化装置は、入力された2値化データを記憶するメモリ
と、メモリに記憶されている2値化データのランレング
スの生起確率分布を求めるランレングス計算手段と、ラ
ンレングス計算手段により求められた生起確率分布の近
似式の各係数を算出する係数算出手段と、係数算出手段
の算出した係数に基づいてハフマン符号テーブルを作成
するテーブル作成手段と、メモリに記憶されている2値
化データのランレングスの値を順に求め、出力するカウ
ンタ手段と、カウンタ手段により出力されるランレング
スの値と、テーブル作成手段により作成されるハフマン
符号テーブルを用いて符号化処理を実行する符号化手段
と、符号化手段により求められたデータに、係数算出手
段により求められる生起確率分布の近似式の各係数のデ
ータを付加し、これを符号データとして出力する付加手
段とを備える。
According to a first aspect of the present invention, there is provided a coding device, a memory for storing inputted binary data, and a run-length occurrence probability of the binary data stored in the memory. A run length calculation means for obtaining the distribution, a coefficient calculation means for calculating each coefficient of the approximate expression of the occurrence probability distribution obtained by the run length calculation means, and a Huffman code table is created based on the coefficients calculated by the coefficient calculation means. A table creating means, a counter means for sequentially obtaining and outputting a run length value of the binarized data stored in the memory, a run length value output by the counter means, and a Huffman created by the table creating means. Coding means for executing a coding process using the code table, and data obtained by the coding means are obtained by the coefficient calculating means. Adding data of each coefficient of the approximate expression of the probability distribution, and a additional means for outputting it as coded data.

【0007】また、請求項2に記載された符号化装置で
は、2値化データのランレングスの生起確率分布の近似
式の各係数のデータを備える符号データが入力された
際、該符号データに付加された各係数のデータを抽出す
る抽出手段と、抽出手段により抽出された各係数の値に
基づいて生起確率分布の近似式を求め、ハフマン符号テ
ーブルを作成するテーブル作成手段と、テーブル作成手
段により作成されたハフマン符号テーブルと、入力され
た符号データから複号化処理を実行して2値化データを
出力する複号化手段を備える。
In the encoding device according to the second aspect, when the code data including the data of each coefficient of the approximate expression of the run probability occurrence distribution of the binarized data is input, the code data is added to the code data. Extracting means for extracting the data of each added coefficient, table creating means for creating an Huffman code table by obtaining an approximate expression of the occurrence probability distribution based on the value of each coefficient extracted by the extracting means, and table creating means The Huffman code table created by the above, and the decoding means for executing the decoding process from the input code data and outputting the binarized data.

【0008】[0008]

【作用】請求項1に記載された符号化装置では、2値化
データが入力され、メモリに記憶された後、ランレング
ス計算手段により上記メモリに記憶された2値化データ
の生起確率分布を求め、係数算出手段により上記生起確
率分布の近似式の各係数の値を算出し、この算出された
係数に基づいてテーブル作成手段によりハフマン符号テ
ーブルを作成する。符号化手段は、カウンタ手段により
元めらっるメモリに記憶されている2値化データの各ラ
ンレングスの値と、テーブル作成手段により作成される
ハフマン符号テーブルを用いてランレングス符号化処理
を実行し、付加手段が、符号化手段により出力されるデ
ータに係数算出手段により求められた各係数のデータを
付加し、これを符号データとして出力する。
In the encoding device according to the first aspect, after the binarized data is input and stored in the memory, the run-length calculating means calculates the occurrence probability distribution of the binarized data stored in the memory. Then, the coefficient calculating means calculates the value of each coefficient of the approximate expression of the occurrence probability distribution, and the table creating means creates the Huffman code table based on the calculated coefficients. The encoding means performs a run length encoding process by using each run length value of the binarized data stored in the original memory by the counter means and the Huffman code table created by the table creating means. After execution, the adding means adds the data of each coefficient obtained by the coefficient calculating means to the data output by the encoding means, and outputs this as coded data.

【0009】請求項2に記載された符号化装置は、入力
された符号データに付加されている各係数のデータを抽
出手段により抽出し、テーブル作成手段より、抽出した
各係数のデータから生起確率分布の近似式を求め、ハフ
マン符号テーブルを作成する。複号化手段は、作成され
たハフマン符号テーブルを用いて入力された符号データ
を複号して2値化データを出力する。
In the encoding device according to the second aspect of the present invention, the data of each coefficient added to the input code data is extracted by the extracting means, and the occurrence probability is extracted from the data of each extracted coefficient by the table creating means. An approximate expression of the distribution is obtained and a Huffman code table is created. The decoding means decodes the input code data by using the created Huffman code table and outputs the binarized data.

【0010】[0010]

【実施例】以下添付の図面を用いて本発明の符号化装置
について(1)制御ブロック、(2)符号化処理、
(3)複号化処理の順に詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An encoding apparatus according to the present invention will be described below with reference to the accompanying drawings. (1) Control block, (2) Encoding process,
(3) The decoding process will be described in detail in this order.

【0011】(1)制御ブロック 図1は、本発明の符号化装置の制御ブロック図を示す図
である。符号化装置は、画像データを読み取るイメージ
リーダ10と、読み取った画像データを2値化データに
変換する2値化処理部20と、2値化処理部20により
作成された2値化データを記憶する2値化データメモリ
100と、符号化装置の全体を制御するCPU50と、
2値化データのランレングス生起確率分布を算出する確
率分布計算部200と、該計算部200により求められ
た確率分布のグラフの近似式の各係数の値を算出する近
似処理部300と、近似処理部300により求められた
近似式の各係数の値に基づいてハフマン符号テーブルを
作成するハフマン符号テーブル作成部400(及び80
0)と、作成された符号テーブルに基づいて符号化処理
を実行する符号化処理部500と、電話回線を介して入
力される符号データを記憶する符号データメモリ700
と、符号データメモリに記憶された符号データに基づい
て複号化処理を実行する複号化処理部900とから構成
される。
(1) Control Block FIG. 1 is a diagram showing a control block diagram of the coding apparatus of the present invention. The encoding device stores an image reader 10 that reads image data, a binarization processing unit 20 that converts the read image data into binarized data, and binarized data created by the binarization processing unit 20. A binary data memory 100, a CPU 50 for controlling the entire encoding device,
A probability distribution calculation unit 200 that calculates a run-length occurrence probability distribution of binarized data, an approximation processing unit 300 that calculates the value of each coefficient of the approximation formula of the probability distribution graph obtained by the calculation unit 200, and an approximation A Huffman code table creation unit 400 (and 80) that creates a Huffman code table based on the value of each coefficient of the approximate expression obtained by the processing unit 300.
0), an encoding processing unit 500 that performs encoding processing based on the created code table, and a code data memory 700 that stores code data input via a telephone line.
And a decoding processing unit 900 that executes the decoding processing based on the code data stored in the code data memory.

【0012】(2)符号化処理 本発明の符号化装置は、入力された2値化データのラン
レングス符号化を実行する場合、従来のように予め用意
されたハフマン符号テーブルは使用せず、各2値化デー
タ毎に、ハフマン符号テーブルを作成し、これを用いて
符号化処理を実行することを特徴とする。
(2) Encoding processing The encoding apparatus of the present invention does not use a Huffman code table prepared in advance as in the conventional case when executing run-length encoding of input binary data, A feature is that a Huffman code table is created for each binarized data, and the coding process is executed using this.

【0013】ハフマン符号テーブルの作成は、以下の順
で実行される。まず、イメージリーダ10で読み取られ
た画像データは、2値化処理部20で2値化データとさ
れ、2値化データメモリ100に記憶される。次に確率
分布計算部200においてメモリ100に記憶された2
値化データのランレングスの生起確率分布のグラフを求
めた後に、近似処理部300において、次の「数1」に
示される指数関数、もしくは「数2」に示されるような
指数関数の和で表される生起確率分布のグラフの近似式
の各係数の値を求める。
The Huffman code table is created in the following order. First, the image data read by the image reader 10 is binarized by the binarization processing unit 20 and stored in the binarized data memory 100. Next, in the probability distribution calculation unit 200, the 2
After the graph of the run probability occurrence probability distribution of the binarized data is obtained, the approximation processing unit 300 calculates the exponential function represented by the following "Equation 1" or the sum of the exponential functions represented by "Equation 2". The value of each coefficient of the approximate expression of the graph of the occurrence probability distribution represented is calculated.

【数1】P(n)=a・exp(−αn)+b[Formula 1] P (n) = a · exp (−αn) + b

【数2】 P(n)=a1・exp(−α1n)+a2・exp(−α2n)+… …+am・exp(−αmn)+b ここで、P(n)は、生起確率分布のグラフの近似式を
示す。nは、ランレングスの値を示す。なお、α、
α1,…,αm、a、a1,…,am及びbは、最小二乗法
等の適当な計算手段により求められる係数である。
## EQU00002 ## P (n) = a 1 .exp (-α 1 n) + a 2・ exp (-α 2 n) + ... + am m exp (-α m n) + b where P (n) Shows an approximate expression of the graph of the occurrence probability distribution. n indicates a run length value. Where α,
α 1 , ..., α m , a, a 1 , a 1 , ..., Am and b are coefficients obtained by an appropriate calculation means such as the least square method.

【0014】上記「数1」もしくは「数2」の近似式の
各係数の値が求められた後、ハフマン符号テーブル作成
部400において、該近似式に基づいてハフマン符号テ
ーブルを作成する。次に作成された符号テーブルを用い
て、符号化処理部500においてランレングス符号化を
実行する。
After the values of the respective coefficients of the approximate expression of "Equation 1" or "Equation 2" are obtained, the Huffman code table creating unit 400 creates a Huffman code table based on the approximate expression. Next, run length coding is executed in the coding processing unit 500 using the created code table.

【0015】本発明の符号化処理では、2値化データを
ランレングス符号化して得られるデータに上記各係数の
データを付加し、これを符号データとして出力する。各
係数のデータは、符号化により得られるデータの量と比
べて僅かなものであるため、各係数のデータを付加する
ことで、出力される符号データの圧縮率が低下すること
はない。
In the encoding process of the present invention, the data of each coefficient is added to the data obtained by run-length encoding the binarized data, and this is output as encoded data. Since the data of each coefficient is smaller than the amount of data obtained by encoding, adding the data of each coefficient does not reduce the compression rate of the output code data.

【0016】また、電話回線を介して入力される符号デ
ータを2値化データに複号する際は、まず、符号データ
に付加され送られてくる各係数のデータを抽出し、この
データに基づいてハフマン符号テーブル作成部800に
おいて符号テーブルを作成する。この後に、複号化処理
部900では、該ハフマン符号テーブルを用いて複号処
理を実行する。
When decoding code data input via a telephone line into binary data, first, data of each coefficient added and added to the code data is extracted, and based on this data. The Huffman code table creating unit 800 creates a code table. After that, the decoding processing unit 900 executes the decoding processing using the Huffman code table.

【0017】図2は、ランレングス符号化装置の符号化
処理に用いられる各機能ブロックを示す図である。以
下、この図を用いて本発明にかかるランレングス符号化
処理について説明する。イメージリーダ10により読み
取られた画像データは、2値化処理部20において2値
化データとされ、2値化データメモリ100に記憶され
る。確率分布計算部200は、メモリ100に記憶され
た2値化データの各ランレングスの生起確率分布を計算
する。
FIG. 2 is a diagram showing each functional block used in the encoding process of the run length encoding device. The run length encoding process according to the present invention will be described below with reference to this drawing. The image data read by the image reader 10 is converted into binarized data by the binarization processing unit 20 and stored in the binarized data memory 100. The probability distribution calculation unit 200 calculates the occurrence probability distribution of each run length of the binarized data stored in the memory 100.

【0018】確率分布計算部200内に備えられるラン
レングスカウンタ201は、メモリ100に記憶された
2値化データ内に存在する各ランレングスの発生回数を
カウントする。確率分布メモリ202は、上記カウンタ
201によりカウントされた結果を各ランレングス毎に
メモリする。
The run length counter 201 provided in the probability distribution calculation unit 200 counts the number of times each run length existing in the binarized data stored in the memory 100 is generated. The probability distribution memory 202 stores the result counted by the counter 201 for each run length.

【0019】確率分布計算部200により計算されたラ
ンレングスの生起確率分布に基づいて、次の近似処理部
300では、上記「数1」もしくは「数2」に示される
指数関数の各係数を最小二乗法などを用いて算出する。
Based on the run-length occurrence probability distribution calculated by the probability distribution calculation unit 200, the next approximation processing unit 300 minimizes each coefficient of the exponential function shown in the above "Equation 1" or "Equation 2". Calculate using the square method.

【0020】ハフマン符号テーブル作成部400は、上
記近似処理部300で求められた「数1」もしくは「数
2」の各係数の値に基づいてハフマン符号テーブルを作
成し(ハフマンテーブル計算部401)、これをメモリ
する(ハフマンテーブルメモリ402)。
The Huffman code table creating unit 400 creates a Huffman code table based on the value of each coefficient of "Equation 1" or "Equation 2" obtained by the approximation processing unit 300 (Huffman table calculation unit 401). , And stores this (Huffman table memory 402).

【0021】本発明の符号化装置は、上記処理を実行す
る一方、2値化データメモリ100に記憶されている2
値化データに基づいて、符号化処理部500内に備えら
れるランレングスカウンタ501により、メモリ100
に格納された2値化データ内に存在する各ランレングス
の発生回数をカウントする。次の符号化ブロック502
は、ランレングスカウンタ501の結果及びテーブル作
成ブロック400で作成されたハフマン符号テーブルに
基づいて符号化処理を実行する。符号化ブロック502
から出力されるデータは、この後に、近似処理部300
により求められた「数1」もしくは「数2」の近似式の
各係数のデータが加算部503において付加された後
に、符号データとして出力される。
The encoding apparatus of the present invention executes the above-mentioned processing, and stores the binary data stored in the binary data memory 100.
Based on the binarized data, the run-length counter 501 provided in the encoding processing unit 500 causes the memory 100
The number of occurrences of each run length existing in the binarized data stored in is counted. Next encoding block 502
Performs the encoding process based on the result of the run length counter 501 and the Huffman code table created by the table creation block 400. Encoding block 502
The data output from the
The data of each coefficient of the approximate expression of “Equation 1” or “Equation 2” obtained by the above is added in the adding unit 503, and then output as coded data.

【0022】(3)複号化処理 図2は、本発明の符号化装置の複号化処理に用いられる
各機能ブロックについて示す図である。以下、この図を
用いて複号化処理について説明する。符号化装置に電話
回線を介して入力された符号データは、一旦、符号デー
タメモリ700に記憶される。CPU50は、符号メモ
リ700に記憶された符号データから付加された各係数
のデータを抽出する。ハフマン符号テーブル作成部80
では、CPUにより抽出された各係数の値に基づいて
「数1」もしくは「数2」で表される生起確率分布のグ
ラフの近似式を求め、ハフマン符号テーブルを作成し
(ハフマン符号テーブル計算部801)、これを記憶す
る(ハフマン符号テーブルメモリ)。
(3) Decoding process FIG. 2 is a diagram showing each functional block used in the decoding process of the encoding apparatus of the present invention. The decoding process will be described below with reference to this figure. The code data input to the encoding device via the telephone line is temporarily stored in the code data memory 700. The CPU 50 extracts the data of each added coefficient from the code data stored in the code memory 700. Huffman code table creation unit 80
Then, based on the value of each coefficient extracted by the CPU, an approximate expression of the graph of the occurrence probability distribution represented by “Equation 1” or “Equation 2” is obtained, and a Huffman code table is created (Huffman code table calculation unit 801), and stores this (Huffman code table memory).

【0023】符号化処理部900では、符号データメモ
リ700から読み出される符号データをハフマン符号テ
ーブル作成部800から出力されるハフマン符号テーブ
ルを用いて複号化処理を実行し、複号された2値化デー
タを出力する。
In the encoding processing unit 900, the encoded data read from the encoded data memory 700 is subjected to the decryption processing using the Huffman code table output from the Huffman code table creating unit 800, and the decrypted binary value is obtained. Output the converted data.

【0024】以上のように、本発明の符号化装置を用い
ることで、各2値化データの特性に応じた符号化処理を
実行することが可能となる。また、これを文書等の送受
信に用いることで、機密文書の保持を行うことも可能と
なる。
As described above, by using the encoding device of the present invention, it becomes possible to execute the encoding process according to the characteristic of each binary data. Further, by using this for sending and receiving documents and the like, it becomes possible to hold confidential documents.

【0025】[0025]

【発明の効果】本発明の符号化装置は、各2値化データ
の特性に応じたハフマン符号テーブルを作成し、これを
用いて符号化及び複号化処理を実行することが可能とな
り、2値化データの圧縮率を向上させることができる。
The encoding apparatus of the present invention can create a Huffman code table according to the characteristics of each binary data, and use this to execute encoding and decoding processing. The compression rate of the digitized data can be improved.

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

【図1】 符号化装置の制御ブロックを示す図である。FIG. 1 is a diagram showing a control block of an encoding device.

【図2】 符号化装置の符号化処理に用いられる各機能
ブロックについて示す図である。
[Fig. 2] Fig. 2 is a diagram illustrating each functional block used in an encoding process of an encoding device.

【図3】 符号化装置の複号化処理に用いられる各機能
ブロックについて示す図である。
[Fig. 3] Fig. 3 is a diagram illustrating each functional block used for decoding processing of the encoding device.

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

100…2値化データメモリ 200…確率分布計算ブロック 300…最小二乗計算部 400…テーブル作成ブロック 500…ランレングスカウンタ 600…ハフマン符号化ブロック 700…符号メモリ 800…テーブル作成ブロック 900…ハフマン複号化ブロック 100 ... Binary data memory 200 ... Probability distribution calculation block 300 ... Least squares calculation unit 400 ... Table creation block 500 ... Run length counter 600 ... Huffman coding block 700 ... Code memory 800 ... Table creation block 900 ... Huffman decoding block

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力された2値化データを記憶するメモ
リと、 メモリに記憶されている2値化データのランレングスの
生起確率分布を求めるランレングス計算手段と、 ランレングス計算手段により求められた生起確率分布の
近似式の各係数を算出する係数算出手段と、 係数算出手段の算出した係数に基づいてハフマン符号テ
ーブルを作成するテーブル作成手段と、 メモリに記憶されている2値化データのランレングスの
値を順に求め、出力するカウンタ手段と、 カウンタ手段により出力されるランレングスの値と、テ
ーブル作成手段により作成されるハフマン符号テーブル
を用いて符号化処理を実行する符号化手段と、 符号化手段により求められたデータに、係数算出手段に
より求められる生起確率分布の近似式の各係数のデータ
を付加し、これを符号データとして出力する付加手段と
を備えることを特徴とする符号化装置。
1. A memory for storing input binarized data, a run length calculation means for obtaining a run length occurrence probability distribution of the binarized data stored in the memory, and a run length calculation means. Coefficient calculating means for calculating each coefficient of the approximate expression of the occurrence probability distribution, table creating means for creating a Huffman code table based on the coefficient calculated by the coefficient calculating means, and binary data stored in the memory. A counter means for sequentially obtaining and outputting the run length value, a run length value output by the counter means, and an encoding means for executing an encoding process using the Huffman code table created by the table creating means, Add the data of each coefficient of the approximate expression of the occurrence probability distribution calculated by the coefficient calculating means to the data calculated by the encoding means. And an adding unit for outputting the data as coded data.
【請求項2】 2値化データのランレングスの生起確率
分布の近似式の各係数のデータを備える符号データが入
力された際、該符号データに付加された各係数のデータ
を抽出する抽出手段と、 抽出手段により抽出された各係数の値に基づいて生起確
率分布の近似式を求め、ハフマン符号テーブルを作成す
るテーブル作成手段と、 テーブル作成手段により作成されたハフマン符号テーブ
ルと、入力された符号データから複号化処理を実行して
2値化データを出力する複号化手段を備えることを特徴
とする符号化装置。
2. Extraction means for extracting the data of each coefficient added to the code data when the code data including the data of each coefficient of the approximation formula of the probability distribution of occurrence of run length of binarized data is input. And a table creating means for creating an Huffman code table by obtaining an approximate expression of the occurrence probability distribution based on the value of each coefficient extracted by the extracting means, and a Huffman code table created by the table creating means, An encoding device comprising decoding means for executing decoding processing from coded data and outputting binarized data.
JP25942992A 1992-09-29 1992-09-29 Encoder Pending JPH06112839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25942992A JPH06112839A (en) 1992-09-29 1992-09-29 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25942992A JPH06112839A (en) 1992-09-29 1992-09-29 Encoder

Publications (1)

Publication Number Publication Date
JPH06112839A true JPH06112839A (en) 1994-04-22

Family

ID=17333974

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25942992A Pending JPH06112839A (en) 1992-09-29 1992-09-29 Encoder

Country Status (1)

Country Link
JP (1) JPH06112839A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5848195A (en) * 1995-12-06 1998-12-08 Intel Corporation Selection of huffman tables for signal encoding
US9094041B2 (en) 2012-03-19 2015-07-28 Fujitsu Limited Encoding method, information processing apparatus, and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5848195A (en) * 1995-12-06 1998-12-08 Intel Corporation Selection of huffman tables for signal encoding
US9094041B2 (en) 2012-03-19 2015-07-28 Fujitsu Limited Encoding method, information processing apparatus, and recording medium

Similar Documents

Publication Publication Date Title
US5045852A (en) Dynamic model selection during data compression
US6879727B2 (en) Decoding bit-plane-encoded data using different image quality for display
US5524067A (en) Image processing device employing coding with edge information preserved
US7365658B2 (en) Method and apparatus for lossless run-length data encoding
Meyer et al. Glicbawls-Grey Level Image Compression by Adaptive Weighted Least Squares.
JP5733935B2 (en) Digital content encoder, decoder, search device, encoding method, search method, and storage device
KR930024507A (en) Variable length encoding / decoding method of video data
US5668737A (en) High-speed data processor and coding method
CN101502122A (en) Encoding device and encoding method
EP0902398A2 (en) System for compressing and decompressing binary representations of dithered images
EP0349677B1 (en) Image coding system
US6577768B1 (en) Coding method, code converting method, code converting apparatus, and image forming apparatus
JPH1023259A (en) Image pattern converter
JPH06112839A (en) Encoder
Bonomini et al. Implementing an MPEG2 Video Decoder Based on TMS320C80 MVP
JP2924416B2 (en) High efficiency coding method
JP2812064B2 (en) Image processing device
JP3434904B2 (en) Image data encoding device
JP2891818B2 (en) Encoding device
JP3363698B2 (en) Multi-tone image coding device
JP4743884B2 (en) Image coding apparatus and control method thereof
JP6821184B2 (en) Image decoder
JPH07273661A (en) Compression coding and decoding device
JPS63280576A (en) Compression coding method
JP4743883B2 (en) Image coding apparatus and control method thereof