JP2001148789A - Mmr compression method for binary image and its device - Google Patents

Mmr compression method for binary image and its device

Info

Publication number
JP2001148789A
JP2001148789A JP32915299A JP32915299A JP2001148789A JP 2001148789 A JP2001148789 A JP 2001148789A JP 32915299 A JP32915299 A JP 32915299A JP 32915299 A JP32915299 A JP 32915299A JP 2001148789 A JP2001148789 A JP 2001148789A
Authority
JP
Japan
Prior art keywords
address
pixel
buffer
mmr
packing
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
JP32915299A
Other languages
Japanese (ja)
Inventor
Fumitoki Amano
史斎 天野
Kei Takahashi
圭 高橋
Mizuo Tsukidate
瑞男 月舘
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.)
Chuo Electronics Co Ltd
Original Assignee
Chuo Electronics 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 Chuo Electronics Co Ltd filed Critical Chuo Electronics Co Ltd
Priority to JP32915299A priority Critical patent/JP2001148789A/en
Publication of JP2001148789A publication Critical patent/JP2001148789A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a high speed MMR compression device for a binary image. SOLUTION: The image compressor adopting the MMR encoding system consists of a change point extract means 71, a serial/parallel control means 72, a 1st buffer 73, a 2nd reference line buffer 74, an address retrieval means 75 for retrieving changed pixels a1 and a2, an address retrieval means 76 for retrieving changed pixels b1, b2, a means 77 that generates a Huffman code and updates a reference pixel a0, and a packing means 78 for the generated Huffman code.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、2値画像のMMR
符号化方式による画像圧縮処理に関する。
The present invention relates to a binary image MMR.
The present invention relates to an image compression process using an encoding method.

【0002】[0002]

【従来の技術】従来技術による2値画像のMMR符号化
方式による画像圧縮処理は、図1に示すMMR符号化方
式の標準フローダイヤグラムに基づいて、逐次処理でM
MR圧縮を行っていた。
2. Description of the Related Art Conventionally, image compression processing of a binary image by the MMR coding method is performed by sequential processing based on a standard flow diagram of the MMR coding method shown in FIG.
MR compression was performed.

【0003】図1に示すMMR符号化方式の標準フロー
ダイヤグラムは、G4ファクシミリ装置に適用されてい
るMMR(Modified Modified READ)符号化方式におけ
る符号化手順を示すものであり、CCITT勧告T・6
において公知となっているものである。
[0003] A standard flow diagram of the MMR coding system shown in FIG. 1 shows a coding procedure in an MMR (Modified Modified READ) coding system applied to a G4 facsimile apparatus.
Are known.

【0004】[0004]

【発明が解決しようとする課題】従来技術によるMMR
圧縮処理をソフトウェアによって実現させようとする
と、各ステップを逐次処理によって実行しなくてはなら
ず、また、1ステップの実行に数クロックを要するの
で、圧縮処理速度が遅かった。従来技術によるMMR圧
縮処理を、そのままハードウェアで実現することによっ
て圧縮処理の短縮化を図ろうとすると、1ステップの処
理に要する時間は短縮できるが、処理手順が逐次処理の
ままでは各部で待ち時間が発生してしまい、全体として
の並行処理効率は改善できていなかった。
The prior art MMR
If the compression processing is to be realized by software, each step must be executed by sequential processing, and the execution of one step requires several clocks, so that the compression processing speed is slow. If an attempt is made to shorten the compression processing by realizing the MMR compression processing according to the prior art as it is in hardware, the time required for one-step processing can be reduced. Has occurred, and the overall parallel processing efficiency has not been improved.

【0005】[0005]

【課題を解決するための手段】本発明は、従来技術によ
る2値画像のMMR圧縮方法の欠点を解消して符号化処
理速度を高めようとするものであり、基準画素a0 アド
レスの更新、変化画素a1 ,a2 のアドレス探索、変化
画素b1 ,b2 のアドレス探索、ハフマン符号の生成お
よびハフマン符号のパッキングを同時に並行処理すると
共に、変化画素のアドレス探索とハフマン符号のパッキ
ングについては、入力データをパラレルに受け取りパラ
レル(複数ビット幅)のまま高速処理して並行動作の効
率を上げるようにした。
The present invention SUMMARY OF] is intended to eliminate the drawbacks of the MMR compression method according to the prior art binary image is trying to increase the coding processing speed, the reference pixel a 0 address updates, The address search of the changed pixels a 1 and a 2, the address search of the changed pixels b 1 and b 2 , the generation of the Huffman code, and the packing of the Huffman code are simultaneously performed in parallel, and the address search of the changed pixel and the packing of the Huffman code are described below. Then, the input data is received in parallel, and high-speed processing is performed in parallel (multiple bit width) to increase the efficiency of the parallel operation.

【0006】[0006]

【発明の実施の形態】以下本発明の実施例を図面を参照
しながら説明する。図2は変化画素のアドレスを高速で
探索する方法を示すブロック図であり、図3はハフマン
符号のパッキング方法を示すブロック図であり、図4は
パッキング方法の具体例を示す説明図である。図5はM
MR符号化方式に則ったハフマン符号を出力し、かつ基
準画素a0 のアドレスと色を出力する方法を示すブロッ
ク図である。また、図6は変化点抽出方法を示すブロッ
ク図であり、図7はMMR画像圧縮装置の構成を示すブ
ロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing a method of searching for the address of a changed pixel at a high speed, FIG. 3 is a block diagram showing a packing method of Huffman codes, and FIG. 4 is an explanatory diagram showing a specific example of the packing method. FIG.
Outputting Huffman codes in conformity with MR coding method, and is a block diagram illustrating a method of outputting the address and color of the reference pixel a 0. FIG. 6 is a block diagram illustrating a change point extraction method, and FIG. 7 is a block diagram illustrating a configuration of an MMR image compression apparatus.

【0007】図2において、nビットの入力データは、
第1のレジスタ1に入力して保持され、マスクパターン
生成部4が生成するマスクパターンは第2のレジスタ2
に入力して保持される。第1と第2のレジスタ1と2か
らの出力データの論理積を演算するAND回路3から出
力データは、マスクパターン生成部4に入力して新しい
マスクパターンを生成すると共に、プライオリティーエ
ンコーダ5に入力して、アドレス(ビット位置)を出力
する。nビットより成る入力データはパラレル(複数ビ
ット幅)のまま処理し、その中の変化画素(前処理によ
り値が1になっているビット)のアドレスを高速で探索
する。変化画素a1 ,a2 のアドレス探索と、変化画素
1 ,b2 のアドレス探索は、入力データをパラレルに
受け取り、パラレルのまま高速処理される。図2におけ
るブロック〔A1 〕〜〔A5 〕の機能は、表1に示す通
りである。
In FIG. 2, n-bit input data is
The mask pattern input to and held in the first register 1 and generated by the mask pattern generation unit 4 is stored in the second register 2
Is entered and retained. The output data from the AND circuit 3 that calculates the logical product of the output data from the first and second registers 1 and 2 is input to a mask pattern generation unit 4 to generate a new mask pattern, and to the priority encoder 5 Input and output address (bit position). The input data consisting of n bits is processed as it is in parallel (a plurality of bits in width), and the address of the changed pixel (the bit whose value is 1 by preprocessing) is searched at high speed. In the address search for the changed pixels a 1 and a 2 and the address search for the changed pixels b 1 and b 2 , the input data is received in parallel, and high-speed processing is performed in parallel. The functions of the blocks [A 1 ] to [A 5 ] in FIG. 2 are as shown in Table 1.

【0008】[0008]

【表1】 [Table 1]

【0009】図3は、ハフマン符号のパッキング方法を
示すブロック図である。パッキング中のデータ(Mビッ
ト)を保持するバッファ11と、前記バッファ11の空
きビット数を保持および更新する加算器16と減算器1
7を備えたレジスタ12と、入力データ(ハフマン符
号)とバッファ11の内容を接合するためにバッファ内
容をシフトする第1のバレルシフタ(右シフト)13
と、前記接合結果をバッファ11に再格納するためにシ
フトする加算器19を備えた第2のバレルシフタ(左シ
フト)14と、前記バッファ11の先頭Nビットをつめ
る際のシフト量Nを与えるマルチプレクサ15と、によ
って構成しており、入力データ(ハフマン符号)をパラ
レル(複数ビット幅)のまま処理し、高速にパッキング
する。図3におけるブロック〔B1 〕〜〔B5 〕の機能
は、表2に示す通りである。
FIG. 3 is a block diagram showing a method for packing Huffman codes. A buffer 11 for holding data (M bits) during packing, an adder 16 and a subtractor 1 for holding and updating the number of empty bits in the buffer 11
And a first barrel shifter (right shift) 13 for shifting the buffer contents to join the input data (Huffman code) and the contents of the buffer 11
A second barrel shifter (left shift) 14 having an adder 19 for shifting the result of joining to re-store the result in the buffer 11, and a multiplexer for providing a shift amount N when the first N bits of the buffer 11 are filled. 15, the input data (Huffman code) is processed in parallel (multiple bit width), and packing is performed at high speed. The functions of the blocks [B 1 ] to [B 5 ] in FIG. 3 are as shown in Table 2.

【0010】[0010]

【表2】 [Table 2]

【0011】図4は、ハフマン符号のパッキング方法の
具体例を示す説明図であり、図3に示すブロック図と表
2に示すブロック〔B1 〕〜〔B5 〕の機能を参照し、
入力データ(ハフマン符号)の最大ビット幅Bを13ビ
ット、出力側のバス幅Nを16ビットとした例を示して
いる。即ち、バレルシフタ13と20を用い、入力デー
タを既に格納済みのデータのすぐ後にセットする状態
は、図4の41〜44()に示す通りである。バッフ
ァにデータが16ビット以上蓄積されたなら、バッファ
先頭の16ビットを出力する状態を図4の44〜45
()に示す。さらに、既に出力されて空いたバッファ
の先頭16ビットを後続データをバレルシフタ13とバ
レルシフタ20でシフトしてつめる状態を図4の46〜
47()に示す。
FIG. 4 is an explanatory diagram showing a specific example of the packing method of the Huffman code. Referring to the block diagram shown in FIG. 3 and the functions of the blocks [B 1 ] to [B 5 ] shown in Table 2,
In this example, the maximum bit width B of input data (Huffman code) is 13 bits, and the bus width N on the output side is 16 bits. That is, the state where the input data is set immediately after the already stored data using the barrel shifters 13 and 20 is as shown in FIG. If the data has been accumulated in the buffer by 16 bits or more, the state of outputting the first 16 bits of the buffer is shown in FIG.
(). Further, a state where the leading 16 bits of the already output empty buffer are shifted and packed by the barrel shifter 13 and the barrel shifter 20 in FIG.
47 ().

【0012】図5は、MMR符号化方式に則ったハフマ
ン符号を出力し、かつ、基準画素a 0 のアドレスと色を
出力する方法を示すブロック図である。変化点a1 とb
2 の位置関係を調べるための第1の比較器51と、変化
点a1 とb1 の位置関係を調べるための第2の比較器5
2と、変化画素a1 とb1 の符号付き距離を求める第1
の減算器53と、変化画素a1 とa2 の距離を求める第
2の減算器54と、基準画素a0 と変化画素a1 の距離
を求める第3の減算器55と、ハフマン符号化処理の状
態(符号化残数)を保持するレジスタ56とによって構
成している。さらに、前記比較器51と52の比較結
果、および入力された変化画素a1 ,a 2,b2 のアド
レスをもとに基準画素a0 のアドレスを求める第1の演
算部58と、前記比較器51と52の比較結果をもとに
基準画素a0 の色を求める第2の演算部59とによって
構成しており、MMR符号化方式に則ったハフマン符号
を出力し、かつ基準画素a0 のアドレスと色を求める。
FIG. 5 is a block diagram showing a Hahma system according to the MMR coding system.
And outputs a reference pixel a 0 Address and color
FIG. 6 is a block diagram illustrating a method of outputting. Change point a1 And b
Two A first comparator 51 for examining the positional relationship between
Point a1 And b1 Second comparator 5 for checking the positional relationship of
2 and change pixel a1 And b1 First to find the signed distance of
And the change pixel a1 And aTwo Find the distance of
2 subtractor 54 and reference pixel a0 And change pixel a1 Distance
And a third subtractor 55 for obtaining the Huffman encoding process
And a register 56 for storing the state (the number of remaining encodings).
Has formed. Further, the comparison results of the comparators 51 and 52 are compared.
Result and input changed pixel a1 , A Two, BTwo Ad
Pixel a based on the0 First act to find the address of
Based on the comparison result of the arithmetic unit 58 and the comparators 51 and 52,
Reference pixel a0 And the second arithmetic unit 59 for calculating the color of
A Huffman code that complies with the MMR coding method
And outputs the reference pixel a0 Ask for the address and color.

【0013】図5における、ブロック〔C1 〕〜〔C
9 〕の機能は、表3に示す通りであり、ブロック〔C
7 〕〜〔C9 〕の動作表は表4〜表6に示す通りであ
る。
Blocks [C 1 ] to [C] in FIG.
9 ] are as shown in Table 3, and the block [C
Operation Table 7] - [C 9] are shown in Tables 4 to 6.

【0014】[0014]

【表3】 [Table 3]

【0015】[0015]

【表4】 [Table 4]

【0016】[0016]

【表5】 [Table 5]

【0017】[0017]

【表6】 [Table 6]

【0018】図6は、変化点抽出方法のブロック図であ
って、2値画像データをシリアルに受け取って変化画素
を1、それ以外の画素を0に変換し、その結果をシリア
ルに出力する変化点抽出部71と、変化点抽出部71の
出力を入力してシリアル→パラレル変換を行う変換部7
2とによって構成し、変化点抽出処理後の画像データを
出力するものであり、図6におけるブロック〔D1 〕と
〔D2 〕の機能は、表7に示す通りである。
FIG. 6 is a block diagram of a change point extracting method, in which binary image data is serially received, a changed pixel is converted to 1 and other pixels are converted to 0, and the result is serially output. A point extraction unit 71 and a conversion unit 7 that receives the output of the change point extraction unit 71 and performs serial-to-parallel conversion
2 and outputs the image data after the change point extraction processing. The functions of the blocks [D 1 ] and [D 2 ] in FIG. 6 are as shown in Table 7.

【0019】[0019]

【表7】 [Table 7]

【0020】図7は、本発明による2値画像のMMR画
像圧縮装置の構成を示すブロック図であって、変化点抽
出手段71、シリアル→パラレル変換手段72、画像デ
ータのバッファリングのための第1のバッファ73と参
照ライン画像データを出力する第2のバッファ74、変
化画素a1 ,a2 のアドレス探索手段75、変化画素b
1 ,b2 のアドレス探索手段76、ハフマン符号生成と
基準画素a0 のアドレスと色を生成する手段77、およ
びハフマン符号のパッキング手段78とによって構成し
ている。
FIG. 7 is a block diagram showing the structure of a binary image MMR image compression apparatus according to the present invention. The change point extraction means 71, the serial-to-parallel conversion means 72, and the second memory for buffering image data. 1 buffer 73, a second buffer 74 for outputting reference line image data, address search means 75 for changed pixels a 1 and a 2 , changed pixel b
1 and b 2, an address search unit 76, a unit 77 for generating the address and color of the Huffman code and the reference pixel a 0 , and a Huffman code packing unit 78.

【0021】2値画像データ(シリアルに与えられる)
は変化点抽出手段71に入力して、変化画素は1、それ
以外の画素は0とした0と1より成る列に変換される。
変化点抽出手段71により変化点抽出処理済みの画像デ
ータはシリアル→パラレル変換手段72に入力して、n
ビットのパラレル画像データに変換される。画像データ
(変化点抽出処理済み)は一時的に第1のバッファ73
に記憶され、変化画素a1 ,a2 のアドレス探索手段7
5にデータを与える必要に応じて読み出される。またそ
の際、読み出された画像データは第2のバッファ74
(参照ラインバッファ)にも入力され、記憶される。ま
たそれと並行して、第2のバッファ74からは、既に記
憶されている1ライン前の画像データ(変化点抽出処理
済み)が、変化画素b1 ,b2 のアドレス探索手段76
にデータを与える必要に応じて読み出される。
Binary image data (given serially)
Is input to the change point extracting means 71, and the changed pixel is converted into a column consisting of 0 and 1 with 1 being the other pixel and 0 being the other pixel.
The image data that has undergone the change point extraction processing by the change point extraction means 71 is input to the serial-to-parallel conversion means 72, and n
It is converted into bit parallel image data. The image data (change point extraction processed) is temporarily stored in the first buffer 73.
And address search means 7 for the changed pixels a 1 and a 2
5 is read as needed to provide data. At this time, the read image data is stored in the second buffer 74.
(Reference line buffer) and is also stored. In parallel with this, from the second buffer 74, the already stored image data of the previous line (change point extraction processing completed) is sent to the address search means 76 of the change pixels b 1 and b 2.
Is read as needed to provide data to

【0022】第1のバッファ73から出力される符号化
ライン画像データは基準画素a0 のアドレスと色と共に
変化画素a1 ,a2 のアドレス探索手段75に入力し
て、符号化ライン上の変化画素a1 ,a2 のアドレスを
出力する。また、第2の参照ライン・バッファ74から
出力される参照ライン画像データは基準画素a0 のアド
レスと色と共に変化画素b1 ,b2 のアドレス探索手段
76に入力して、参照ライン上の変化画素b1 ,b2
アドレスを出力する。さらに、変化画素a1 ,a2 のア
ドレス探索手段75から出力される変化画素a 1 ,a2
のアドレスおよび変化画素b1 ,b2 のアドレス探索手
段76から出力される変化画素b1 ,b2 のアドレス
は、ハフマン符号生成と基準画素a0 更新手段77に入
力して、MMR符号化方式に則ったハフマン符号(可変
長)と基準画素a0 のアドレスと色を生成する。なお、
前記基準画素a0 のアドレスと色は変化画素a1 ,a2
のアドレス探索手段75と変化画素b1 ,b2 のアドレ
ス探索手段76へフィードバックされる。
Encoding output from first buffer 73
The line image data is the reference pixel a0 With the address and color of
Change pixel a1 , ATwo Into the address search means 75
Change pixel a on the coding line1 , ATwo Address
Output. Also, from the second reference line buffer 74
The output reference line image data is the reference pixel a0 Ad
Pixel b with color and color1 , BTwo Address search means
76 to change pixel b on the reference line1 , BTwo of
Output address. Further, the changing pixel a1 , ATwo No
Changed pixel a output from dress search means 75 1 , ATwo 
Address and change pixel b1 , BTwo Address searcher
Changed pixel b output from stage 761 , BTwo Address of
Is the Huffman code generation and reference pixel a0 Enter update means 77
Huffman code according to the MMR coding method (variable
Long) and reference pixel a0 Generate the address and color of the. In addition,
The reference pixel a0 Address and color are changed pixel a1 , ATwo 
Address search means 75 and changed pixel b1 , BTwo Address of
This is fed back to the search means 76.

【0023】生成されたハフマン符号(可変長)はパッ
キング手段78に入力してパッキングされる。なお、変
化画素a1 ,a2 のアドレス探索手段、変化画素b1
2 のアドレス探索手段およびハフマン符号の生成とハ
フマン符号のパッキング手段は、入力データをパラレル
に受け取り、パラレル(複数ビット幅)のまま高速に処
理される。図7におけるブロック〔E1 〕〜〔E8 〕の
機能は表8に表す通りである。
The generated Huffman code (variable length) is input to packing means 78 and packed. Incidentally, the address searching means changes the pixel a 1, a 2, change pixels b 1,
Packing means generating a Huffman code of the address searching means and the Huffman code b 2 receives input data in parallel, is processed at high speed while the parallel (multiple bits wide). The functions of the blocks [E 1 ] to [E 8 ] in FIG. 7 are as shown in Table 8.

【0024】[0024]

【表8】 [Table 8]

【0025】[0025]

【発明の効果】以上説明したように、本発明による2値
画像のMMR圧縮方法およびその装置は、MMR符号化
方式における符号化手順のうちで、基準画素a0 のアド
レス更新、変化画素a1 ,a2 とb1 ,b2 のアドレス
探索、ハフマン符号の生成およびハフマン符号のパッキ
ングを同時並列して実行すると共に、前記変化画素
1,a2 とb1 ,b2 のアドレス探索およびハフマン
符号のパッキングについては、入力データをパラレルに
受け取り、パラレルのまま高速化処理することによって
2値化画像のMMR圧縮方法の高速化を図ることができ
る。
As described in the foregoing, MMR compression method and apparatus for binary image according to the present invention, among the coding procedure in MMR encoding method, the address of the reference pixel a 0 updated, changed pixel a 1 , A 2 and b 1 , b 2 , the Huffman code generation and the Huffman code packing are simultaneously performed in parallel, and the address search and the Huffman code search for the changed pixels a 1 , a 2 and b 1 , b 2 are performed. Regarding code packing, the input data is received in parallel, and high-speed processing is performed in the parallel state, whereby the MMR compression method for a binary image can be speeded up.

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

【図1】MMR符号化方式の標準フローダイヤグラム。FIG. 1 is a standard flow diagram of an MMR coding scheme.

【図2】変化画素のアドレスを高速で探索する方法を示
すブロック図。
FIG. 2 is a block diagram showing a method for searching for an address of a changing pixel at a high speed.

【図3】ハフマン符号のパッキング方法を示すブロック
図。
FIG. 3 is a block diagram showing a packing method of Huffman codes.

【図4】パッキング方法の具体例を示す説明図。FIG. 4 is an explanatory view showing a specific example of a packing method.

【図5】MMR符号化方式に則ったハフマン符号を出力
し、かつ基準画素a0 のアドレスと色を出力する方法を
示すブロック図。
5 is a block diagram illustrating a method for outputting a Huffman code in conformity with MMR coding method, and outputs the address and the color of the reference pixel a 0.

【図6】変化点抽出方法を示すブロック図。FIG. 6 is a block diagram showing a change point extraction method.

【図7】MMR画像圧縮装置の構成を示すブロック図。FIG. 7 is a block diagram illustrating a configuration of an MMR image compression device.

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

1,2 レジスタ 3 AND回路 4 マスクパターン生成部 5 プライオリティーエンコーダ 11 バッファ 13 バレルシフタ 15 マルチプレクサ 16,19 加算器 17,53〜55 減算器 51,52 比較器 73,74 バッファ 1, 2 register 3 AND circuit 4 mask pattern generation unit 5 priority encoder 11 buffer 13 barrel shifter 15 multiplexer 16, 19 adder 17, 53-55 subtractor 51, 52 comparator 73, 74 buffer

───────────────────────────────────────────────────── フロントページの続き (72)発明者 月舘 瑞男 東京都八王子市元本郷町一丁目9番9号 中央電子株式会社内 Fターム(参考) 5C078 BA23 BA27 5J064 AA03 BA09 BA16 BC04 BC08 BD01 9A001 BB02 BB04 EE02 FF03 FF05 KK56  ────────────────────────────────────────────────── ─── Continuing from the front page (72) Inventor Mizio Tsukidate 1-9-9 Motohongo-cho, Hachioji-shi, Tokyo F-term in Chuo Denshi Co., Ltd. 5C078 BA23 BA27 5J064 AA03 BA09 BA16 BC04 BC08 BD01 9A001 BB02 BB04 EE02 FF03 FF05 KK56

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 MMR符号化方式による2値画像の圧縮
処理方法において、 基準画素a0 のアドレス更新と、 変化画素a1 ,a2 のアドレス探索と、 変化画素b1 ,b2 のアドレス探索と、 ハフマン符号生成と、 ハフマン符号のパッキングと、に関する5つの処理を同
時並行して実行すると共に、 前記変化画素a1 ,a2 のアドレス探索、変化画素b
1 ,b2 のアドレス探索およびハフマン符号のパッキン
グについては、入力データをパラレルに受け取りパラレ
ル(複数ビット幅)のまま高速処理するようにしたこと
を特徴とする2値画像のMMR圧縮方法。
In the compression processing method according to claim 1] MMR encoding method according to the binary image, the address update of the reference pixel a 0, the address search of change pixels a 1, a 2, change pixels b 1, b 2 of the address search , And Huffman code generation and Huffman code packing are simultaneously executed, and the address search of the changed pixels a 1 and a 2 , the changed pixel b
1, for the packing of b 2 address search and Huffman coding, MMR compression method of a binary image, characterized in that the input data so that high speed processing remains parallel (multiple bits wide) received in parallel.
【請求項2】 入力データを保持する第1のレジスタ
と、 マスクパターンを保持する第2のレジスタと、 前記第1のレジスタに保持された入力データとマスクパ
ターンの論理積を求めるAND回路と、 前記AND回路からの出力データを入力して新しいマス
クパターンを生成するマスクパターン生成部と、 前記AND回路からの出力データを入力してアドレスを
生成するプライオリティーエンコーダと、によって構成
し、入力データをパラレル(複数ビット幅)のまま処理
し、その中の変化画素(前処理により値が1になってい
るビット)のアドレスを高速探索するようにしたことを
特徴とする請求項1に記載の2値画像のMMR圧縮方
法。
2. A first register for holding input data, a second register for holding a mask pattern, an AND circuit for calculating a logical product of the input data and the mask pattern held in the first register, A mask pattern generating unit that receives the output data from the AND circuit to generate a new mask pattern; and a priority encoder that receives the output data from the AND circuit and generates an address. 2. The method according to claim 1, wherein the processing is performed in parallel (a plurality of bit widths), and an address of a changed pixel (a bit having a value of 1 by preprocessing) therein is searched at high speed. MMR compression method for value image.
【請求項3】 パッキング中のデータを保持するバッフ
ァと、 該バッファの空きビット数を保持および更新する加算器
と減算器を備えたレジスタと、 入力データ(ハフマン符号)と前記バッファ内容を接合
するためにバッファ内容をシフトする第1のバレルシフ
タ(右シフト)と、 前記接合結果をバッファに再格納するためにシフトする
加算器を備えた第2のバレルシフタ(左シフト)と、 前記バッファの先頭Nビットをつめる際のシフト量Nを
与えるマルチプレクサと、によって構成し、入力データ
(可変長)をパラレル(複数ビット幅)のまま処理し、
高速にパッキングすることを特徴とする請求項1に記載
の2値画像のMMR圧縮方法。
3. A buffer for holding data during packing, a register having an adder and a subtractor for holding and updating the number of empty bits in the buffer, and joining input data (Huffman code) with the contents of the buffer. A first barrel shifter (right shift) for shifting the contents of the buffer, a second barrel shifter (left shift) with an adder for shifting the joined result back into the buffer, and a head N of the buffer. And a multiplexer for providing a shift amount N at the time of packing bits, and processing input data (variable length) in parallel (multiple bit width),
2. The method of claim 1, wherein packing is performed at high speed.
【請求項4】 変化画素a1 ,b1 ,b2 の位置関係を
調べるための第1と第2の比較器と、 変化画素a1 とb1 の符号付き距離を求める第1の減算
器、変化画素a1 とa 2 の距離を求める第2の減算器お
よび基準画素a0 とa1 の距離を求める第3の減算器
と、 符号化処理の状態を保持するレジスタと、 前記2つの比較器、3つの減算器、レジスタの出力、お
よび現在のa0 の色からハフマン符号を生成するテーブ
ルと、 前記比較器および減算器の計算結果をもとに基準画素a
0 のアドレスを求める第1の演算部と、 前記比較器および減算器の計算結果をもとに基準画素a
0 の色を求める第2の演算部と、によって構成し、MM
R符号化方式に則ったハフマン符号を出力し、かつ、基
準画素a0 のアドレスと色を求めるようにしたことを特
徴とする請求項1に記載の2値画像のMMR圧縮方法。
4. A changing pixel a1 , B1 , BTwo The relationship
First and second comparators for examining;1 And b1 First subtraction to find the signed distance of
Vessel, changing pixel a1 And a Two The second subtractor that calculates the distance of
And reference pixel a0 And a1 Third subtractor for finding the distance of
And a register for holding a state of the encoding process; and the two comparators, the three subtractors, the output of the register, and
And the current a0 Table that generates Huffman codes from colors
And a reference pixel a based on the calculation results of the comparator and the subtractor.
0 And a first arithmetic unit for determining the address of the reference pixel a based on the calculation results of the comparator and the subtractor.
0 And a second calculation unit for calculating the color
Output a Huffman code conforming to the R encoding method, and
Quasi-pixel a0 Address and color.
2. The MMR compression method for a binary image according to claim 1, wherein:
【請求項5】 2値画像データをシリアルに受け取って
変化画素を1、それ以外の画素を0に変換し、その結果
をシリアルに出力する変化点抽出部と、 前記結果に対し、シリアル→パラレル変換を行う変換部
と、によって構成し、小さな回路規模で画像データの変
化点抽出を行い、かつ、変化点抽出結果をパラレルに
(複数ビット幅で)出力するようにしたことを特徴とす
る請求項1に記載の2値画像のMMR圧縮方法。
5. A change point extracting unit that receives binary image data serially, converts a changed pixel to 1 and converts the other pixels to 0, and outputs the result in a serial manner. A conversion unit for performing conversion, extracting a change point of the image data with a small circuit scale, and outputting the change point extraction result in parallel (with a plurality of bits). Item 2. An MMR compression method for a binary image according to Item 1.
【請求項6】 MMR符号化方式による2値画像の圧縮
処理装置において、 2値画像データをシリアルに受け取って変化画素を1、
それ以外の画素を0に変換し、その結果(符号化ライン
画像データ)をシリアルに出力する変化点抽出手段と、 前記結果に対しシリアル→パラレル変換を行う変換手段
と、 1つ前のラインの変化点抽出済みの画像データを現在の
参照ライン画像データとして出力するバッファと、 参照ライン画像データと基準画素a0 のアドレスと色を
入力して参照ライン上の変化画素b1 ,b2 のアドレス
を出力する第1のアドレス探索手段と、 符号化ライン画像データと基準画素a0 のアドレスと色
を入力して符号化ライン上の変化画素a1 ,a2 のアド
レスを出力する第2のアドレス探索手段と、 変化画素a1 ,a2 およびb1 ,b2 のアドレスを入力
し、MMR符号化方式に則ったハフマン符号(可変長)
を生成すると共に基準画素a0 のアドレスと色を更新す
る手段と、 生成されたハフマン符号(可変長)をパッキングするパ
ッキング手段と、によって構成し、変化画素a1 ,a2
のアドレス探索手段、変化画素b1 ,b2のアドレス探
索手段、ハフマン符号の生成およびハフマン符号のパッ
キング手段を並列処理するようにしたことを特徴とする
2値画像のMMR圧縮装置。
6. A compression processing apparatus for a binary image according to the MMR encoding method, comprising:
Change point extracting means for converting the other pixels to 0 and outputting the result (encoded line image data) serially; converting means for performing serial-to-parallel conversion on the result; a buffer for outputting the image data of the change point already extracted as the current of the reference line image data, the reference line image data and the address of the changed pixel b 1, b 2 of the reference on the line by entering the address and color of the reference pixel a 0 a first address search means for outputting a second address output address of the changed pixel a 1, a 2 of the encoding on the line by entering the address and color coded line image data and the reference pixel a 0 Huffman code (variable length) in accordance with the MMR coding method by inputting search means and addresses of changed pixels a 1 and a 2 and b 1 and b 2
Constituted by a packing means for packing means for updating the address and color of the reference pixel a 0, the generated Huffman codes (variable length) to generate a change pixel a 1, a 2
An MMR compression apparatus for a binary image, wherein an address search means for changing pixels b 1 and b 2 , a Huffman code generation and a Huffman code packing means are processed in parallel.
JP32915299A 1999-11-19 1999-11-19 Mmr compression method for binary image and its device Pending JP2001148789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32915299A JP2001148789A (en) 1999-11-19 1999-11-19 Mmr compression method for binary image and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32915299A JP2001148789A (en) 1999-11-19 1999-11-19 Mmr compression method for binary image and its device

Publications (1)

Publication Number Publication Date
JP2001148789A true JP2001148789A (en) 2001-05-29

Family

ID=18218232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32915299A Pending JP2001148789A (en) 1999-11-19 1999-11-19 Mmr compression method for binary image and its device

Country Status (1)

Country Link
JP (1) JP2001148789A (en)

Similar Documents

Publication Publication Date Title
CN107111623B (en) Parallel history search and encoding for dictionary-based compression
JP2766302B2 (en) Variable length code parallel decoding method and apparatus
KR900001821B1 (en) Processor for compressing and expanding binary data
JP3312317B2 (en) Interpolation processor
JP2639412B2 (en) Image processing method
JP3459759B2 (en) Arithmetic decoding device
JP2001148789A (en) Mmr compression method for binary image and its device
US6144321A (en) Microprocessor dedicated to processing of bit streams in a system of compression/decompression of animated images
JP3871995B2 (en) Encoding device and decoding device
US6133859A (en) Microprocessor dedicated to processing of bit streams in a system of compression/decompression of animated images
JP2713930B2 (en) Image processing method
JP2000278538A (en) Device and method for arithmetic encoding/decoding
JP3255808B2 (en) Compression / expansion device
JP3221252B2 (en) Huffman decoder
JP3145510B2 (en) Method and apparatus for decoding compression code
JP3080937B2 (en) JBIG encoding method and recording medium recording JBIG program
JP2595900B2 (en) Change point coordinate detection device for binary image data
JP4086481B2 (en) Arithmetic decoding method and apparatus, and storage medium
JP3484900B2 (en) Image data encoding device
JP2833112B2 (en) Change point detection circuit
JPH09307456A (en) Variable length encoding and decoding device and method
JP4067778B2 (en) Encoding device, decoding device, and encoding / decoding device
JP2529465B2 (en) Variable length code decoding device
JP3115117B2 (en) Binary image compression processor
JPH01248874A (en) Picture information processing method