JP2812064B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2812064B2
JP2812064B2 JP4137101A JP13710192A JP2812064B2 JP 2812064 B2 JP2812064 B2 JP 2812064B2 JP 4137101 A JP4137101 A JP 4137101A JP 13710192 A JP13710192 A JP 13710192A JP 2812064 B2 JP2812064 B2 JP 2812064B2
Authority
JP
Japan
Prior art keywords
run
length
encoding
black
white
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.)
Expired - Lifetime
Application number
JP4137101A
Other languages
Japanese (ja)
Other versions
JPH05336378A (en
Inventor
隆広 本宮
日下保
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4137101A priority Critical patent/JP2812064B2/en
Publication of JPH05336378A publication Critical patent/JPH05336378A/en
Application granted granted Critical
Publication of JP2812064B2 publication Critical patent/JP2812064B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ蓄積メモリをも
つ画像処理装置に利用する。特に、データ蓄積メモリに
蓄積される二値データの適応型圧縮符号化手段に関す
る。
The present invention is applied to an image processing apparatus having a data storage memory. In particular, the present invention relates to adaptive compression encoding means for binary data stored in a data storage memory.

【0002】[0002]

【従来の技術】従来の画像処理装置の蓄積データ圧縮符
号化手段は、図3に示すように、白黒二値化データ20
に対して符号化部15でMH符号化、MR符号化、また
はMMR符号化を施し、圧縮符号化された符号化データ
21をデータ蓄積メモリ19に記憶する。符号化部15
で符号化を実行する際には、符号化テーブルメモリ16
が必要になる。そして、データ蓄積メモリ19に記憶さ
れている符号化データ22は復号化部17に入力され、
ここで、MH復号化、MR復号化、またはMMR復号化
されて白黒二値化データ23になる。復号化部17で復
号化を実行する際には、復号化テーブルメモリ18が必
要になる。
2. Description of the Related Art As shown in FIG.
Is subjected to MH encoding, MR encoding, or MMR encoding in the encoding unit 15, and the encoded and encoded data 21 is stored in the data storage memory 19. Encoding unit 15
When encoding is performed in the encoding table memory 16
Is required. Then, the encoded data 22 stored in the data storage memory 19 is input to the decoding unit 17,
Here, MH decoding, MR decoding, or MMR decoding is performed to produce black and white binary data 23. When decoding is performed by the decoding unit 17, a decoding table memory 18 is required.

【0003】[0003]

【発明が解決しようとする課題】このような従来例で
は、白黒二値化データをMH符号、MR符号またはMM
R符号を使用してデータ圧縮を行っているので、符号化
部には、符号化テーブルメモリが必要であり、また復号
化部にも復号化テーブルメモリが必要になり、コスト高
になる。また、MH符号、MR符号またはMMR符号を
行うと、白黒二値化データのパターンによっては情報が
二倍以上に伸長されてしまう。例えばMH符号で白黒交
互の二値化データを符号化すると、情報量が4.5倍に
伸長される欠点がある。
In such a conventional example, black-and-white binary data is converted to MH code, MR code or MM code.
Since data compression is performed using the R code, the encoding unit requires an encoding table memory, and the decoding unit also requires a decoding table memory, which increases costs. Further, when the MH code, the MR code or the MMR code is performed, the information is expanded more than twice depending on the pattern of the black and white binary data. For example, encoding binary data alternated between black and white with the MH code has a disadvantage that the information amount is expanded to 4.5 times.

【0004】本発明は、このような欠点を除去するもの
で、高速符号化が行える圧縮符号手段をもつ画像処理装
置を提供することを目的とする。
An object of the present invention is to eliminate such disadvantages and to provide an image processing apparatus having a compression encoding means capable of performing high-speed encoding.

【0005】[0005]

【課題を解決するための手段】本発明は、白黒二値化デ
ータを圧縮符号化する圧縮符号手段と、この圧縮符号手
段で圧縮符号化された白黒二値化データを蓄積するデー
タ蓄積メモリとを備えた画像処理装置において、上記圧
縮符号手段は、白黒二値化データのラン長を計数するラ
ン長カウンタ部と、このラン長カウンタ部の指令に応じ
て所定ラン長より短いラン長の白黒二値化データの符号
化を実行する生データ符号化部と、上記ラン長カウンタ
部で計数されたラン長のうち上記所定ラン長を超えるラ
ン長に対して可変長ランレングス符号を用いて符号化を
実行する可変長ランレングス符号化部と、上記可変長ラ
ンレングス符号化部の出力に含まれるランが白か黒かを
判別し、この判別結果を示す白黒ラン情報を付加する白
黒ラン情報付加部と、上記ラン長カウンタ部で計数され
たラン長に応じて上記生データ符号化部の出力または白
黒ラン情報付加部の出力のうちのいずれか一方を選択す
る符号選択部とを備えたことを特徴とする。
SUMMARY OF THE INVENTION The present invention relates to a compression encoding means for compressing and encoding black and white binary data, and a data storage memory for storing black and white binary data compressed and encoded by the compression encoding means. In the image processing apparatus, the compression encoding means includes a run length counter for counting the run length of the black and white binary data, and a black and white of a run length shorter than a predetermined run length in accordance with a command from the run length counter. A raw data encoding unit that encodes the binary data; and a run length exceeding the predetermined run length among the run lengths counted by the run length counter unit, using a variable length run length code. Variable-length run-length coding unit for performing the conversion, and black-and-white run information for adding black-and-white run information indicating the result of the determination as to whether the run included in the output of the variable-length run-length coding unit is white or black. Additional part A code selecting unit for selecting one of the output of the raw data encoding unit and the output of the black and white run information adding unit according to the run length counted by the run length counter unit. And

【0006】ここで、上記所定ラン長より短いラン長と
はワイル符号化のブロック1の部分についてであり、ブ
ロック2以上の部分については可変長符号としてワイル
符号化を行うことを特徴とする。
Here, a run length shorter than the predetermined run length is assumed.
Is for the block 1 part of Weyl coding.
Weil as variable length code for lock 2 and above
The encoding is performed.

【0007】[0007]

【作用】二値化された白黒データパターンに対して符号
化の伸張率を小さくし、また、可変長ランレングス符号
化に対して白黒データランの発生確率分布を仮定して固
定化する。これにより、符号化および複号化テーブルメ
モリを不要にすることができる。
The expansion ratio of the coding is reduced for the binarized black-and-white data pattern, and the occurrence probability distribution of the black-and-white data run is fixed for the variable-length run-length coding. This makes it unnecessary to use an encoding and decoding table memory.

【0008】[0008]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。図1は、この実施例の全体構成を示すブ
ロック図である。図2は、図1に示す適応型二値データ
圧縮符号化部の詳細ブロック図である。この実施例は、
図1に示すように、この実施例は、図1および図2に示
すように、白黒二値化データを圧縮符号化する圧縮符号
手段と、この圧縮符号手段で圧縮符号化された白黒二値
化データを蓄積するデータ蓄積メモリ3とを備え、圧縮
符号手段である適応型二値データ圧縮符号化部1は、白
黒二値化データのラン長を計数するラン長カウンタ部8
と、このラン長カウンタ部8の指令に応じて所定ラン長
より短いラン長の白黒二値化データの符号化を実行する
生データ符号化部9と、ラン長カウンタ部8で計数され
たラン長のうち上記所定ラン長を超えるラン長に対して
ワイル符号を用いて符号化を実行する可変長ランレング
ス符号化部10と、可変長ランレングス符号化部10の
出力に含まれるランが白か黒かを判別し、この判別結果
を示す白黒ラン情報を付加する白黒ラン情報付加部11
と、ラン長カウンタ部8で計数されたラン長に応じて生
データ符号化部9の出力または白黒ラン情報付加部11
の出力のうちのいずれか一方を選択する符号選択部12
とを備える。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the overall configuration of this embodiment. FIG. 2 is a detailed block diagram of the adaptive binary data compression encoding unit shown in FIG. This example is
As shown in FIG. 1, this embodiment comprises, as shown in FIGS. 1 and 2, a compression encoding means for compressing and encoding black-and-white binary data, and a black-and-white binary compressed and encoded by the compression encoding means. A data storage memory 3 for accumulating encoded data, and an adaptive binary data compression encoding unit 1 serving as a compression encoding means includes a run length counter unit 8 for counting the run length of the monochrome binary data.
A raw data encoding unit 9 for encoding black-and-white binary data having a run length shorter than a predetermined run length in accordance with a command from the run length counter unit 8; and a run counted by the run length counter unit 8. The variable-length run-length encoding unit 10 performs encoding using a Weil code for a run length exceeding the predetermined run length among the lengths, and the run included in the output of the variable-length run-length encoding unit 10 is white. Black / white run information adding unit 11 for determining whether the color is black or black and adding black / white run information indicating the result of the determination
And the output of the raw data encoding unit 9 or the monochrome run information adding unit 11 according to the run length counted by the run length counter unit 8.
Code selecting section 12 for selecting one of the outputs
And

【0009】次に、この実施例の動作を説明する。白黒
二値化データ4は適応型二値データ圧縮符号化部1で符
号化され、出力された符号化データ5はデータ蓄積メモ
リ3に記憶される。記憶されている符号化データ6は適
応型二値データ圧縮復号化部2で復号化され、白黒二値
化データ7として出力される。白黒二値化データ13は
ラン長カウンタ部8と生データ符号化部9とに入力され
る。ラン長カウンタ部8では、入力されたデータの白お
よび黒のラン長を計数し、そのラン数情報を生データ符
号化部9、可変長ランレングス符号化部10および符号
選択器12に出力する。生データ符号化部9では、ラン
数が小さいデータに対しては生データ符号化を実行す
る。可変長ランレングス符号化部10では、ラン数が小
さくないものに対して可変長ランレングス符号化を実行
する。可変長ランレングス符号化部10から出力された
符号データは白ランか黒ランかの情報を付加する白黒ラ
ン情報付加部11に入力され、ここで白ランか黒ランか
の判断が行われる。また白黒ラン情報付加部11では、
生データ符号化の符号化データ結果も必要とする。生デ
ータ符号化部9から出力された符号化データと、可変長
ランレングス符号化部10から出力され白黒ラン情報付
加部11で白または黒ラン情報が付加されて出力された
符号化データとは符号選択器12に入力され、ラン長カ
ウンタ部8から出力されたラン数の情報に応じてどちら
かの符号が選択され、符号化データ14として出力され
る。
Next, the operation of this embodiment will be described. The monochrome binary data 4 is encoded by the adaptive binary data compression encoding unit 1, and the output encoded data 5 is stored in the data storage memory 3. The stored encoded data 6 is decoded by the adaptive binary data compression / decoding unit 2 and output as black and white binary data 7. The black-and-white binary data 13 is input to the run length counter 8 and the raw data encoder 9. The run length counter unit 8 counts the white and black run lengths of the input data, and outputs the run number information to the raw data encoding unit 9, variable length run length encoding unit 10, and code selector 12. . The raw data encoding unit 9 performs raw data encoding on data having a small number of runs. The variable-length run-length encoding unit 10 performs variable-length run-length encoding on a code whose run number is not small. The code data output from the variable-length run-length encoding unit 10 is input to a black-and-white run information adding unit 11 for adding information of a white run or a black run, where it is determined whether it is a white run or a black run. In the black and white run information adding unit 11,
It also requires the encoded data result of raw data encoding. The coded data output from the raw data coding unit 9 and the coded data output from the variable length run length coding unit 10 and output with white or black run information added by the black and white run information adding unit 11 are Either code is selected according to the information on the number of runs input to the code selector 12 and output from the run length counter unit 8, and is output as encoded data 14.

【0010】[0010]

【表1】 表1は、本発明の適応型二値データ圧縮符号化の一例を
示す。表1のブロック1にはラン長「0」から「3」ま
でが属し、入力された白黒二値データのラン長が「3」
以下の場合には、先頭アドレスに「0」がきてその続き
に生データ3ビットが付加され、4ビットの等長符号に
なる。生データ符号化時は、白ランか黒ランかの情報は
必要としない。白黒二値データのラン長が「4」以上の
場合は、ブロック2〜ブロックnのような構成になる。
本実施例では、白黒二値データのラン長が「4」以上の
場合の可変長ランレングス符号としてラン長の発生確率
分布が負のベキ乗分布に比例しているWyle符号を用
い、Wyle符号の後ろに白ランと黒ランとを区別する
情報を1ビット付加している。この結果、符号の最悪伸
長は1.33倍以下におさえられ、また、ラン長の発生
確率分布を負のべき乗分布に仮定することで符号化テー
ブルメモリが削除される。
[Table 1] Table 1 shows an example of the adaptive binary data compression encoding of the present invention. Block 1 in Table 1 belongs to run lengths “0” to “3”, and the run length of the inputted binary black and white data is “3”.
In the following cases, “0” is added to the head address, and 3 bits of raw data are added after the leading address, resulting in a 4-bit equal length code. At the time of raw data encoding, there is no need for information on whether a white run or a black run. When the run length of the black and white binary data is “4” or more, the configuration is like block 2 to block n.
In this embodiment, a Wyle code in which a run length occurrence probability distribution is proportional to a negative power distribution is used as a variable-length run-length code when the run length of black and white binary data is “4” or more. Is added with one bit of information for distinguishing between a white run and a black run. As a result, the worst elongation of the code is suppressed to 1.33 times or less, and the coding table memory is deleted by assuming the run length occurrence probability distribution to be a negative power distribution.

【0011】[0011]

【発明の効果】本発明は、以上説明したように、白黒二
値化データを圧縮符号化する際に、生データ符号化と可
変長ランレングス符号化とを白黒データのラン長に応じ
て切換えるので、白黒データの任意のパターンについて
符号の伸長率を小さくすることができ、高速符号化およ
び高速復号化が図れる効果がある。
As described above, the present invention switches between raw data encoding and variable-length run-length encoding in accordance with the run length of black-and-white data when compression-coding black-and-white binary data. Therefore, it is possible to reduce the code expansion rate for an arbitrary pattern of the black and white data, and it is possible to achieve high-speed encoding and high-speed decoding.

【0012】また、可変長ランレングス符号化に対して
白黒データランの発生確率分布を仮定して固定化するの
で、符号化および復号化テーブルメモリが省ける効果が
ある。
Further, since the occurrence probability distribution of black and white data runs is assumed and fixed for variable-length run-length encoding, the encoding and decoding table memory can be omitted.

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

【図1】本発明実施例の全体構成を示すブロック構成
図。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図2】本発明実施例の部分構成を示すブロック構成
図。
FIG. 2 is a block diagram showing a partial configuration of the embodiment of the present invention.

【図3】従来例の構成を示すブロック構成図。FIG. 3 is a block diagram showing the configuration of a conventional example.

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

1 適応型二値データ圧縮符号化部 2 適応型二値データ圧縮復号化部 3、19 データ蓄積メモリ 4、7、13、20、23 白黒二値化データ 5、6、14、21、22 符号化データ 8 ラン長カウンタ部 9 生データ符号化部 10 可変長ランレングス符号化部 11 白黒ラン情報付加部 12 符号選択器 15 符号化部 16 符号化テーブルメモリ 17 復号化部 18 復号化テーブルメモリ 1 Adaptive Binary Data Compression Encoding Unit 2 Adaptive Binary Data Compression Decoding Unit 3, 19 Data Storage Memory 4, 7, 13, 20, 23 Black and White Binary Data 5, 6, 14, 21, 22 Code Coded data 8 run length counter 9 raw data encoder 10 variable length run length encoder 11 black and white run information adding unit 12 code selector 15 encoding unit 16 encoding table memory 17 decoding unit 18 decoding table memory

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 白黒二値化データを圧縮符号化する圧縮
符号手段と、この圧縮符号手段で圧縮符号化された白黒
二値化データを蓄積するデータ蓄積メモリとを備えた画
像処理装置において、 上記圧縮符号手段は、 白黒二値化データのラン長を計数するラン長カウンタ部
と、 このラン長カウンタ部の指令に応じてワイル符号化のブ
ロック1の部分に当たる3以下のラン長二値化データの
生データ符号化を実行する生データ符号化部と、 上記ラン長カウンタ部で計数されたラン長のうち4以上
ラン長を超えるラン長に対してワイル符号化のブロッ
ク2以上を用いてワイル符号化を実行する可変長ランレ
ングス符号化部と、 上記可変長ランレングス符号化部の出力に含まれるラン
が白か黒かを判別し、 この判別結果を示す白黒ラン情報を付加する白黒ラン情
報付加部と、 上記ラン長カウンタ部で計数されたラン長に応じて上記
生データ符号化部の出力または白黒ラン情報付加部の出
力のうちのいずれか一方を選択する符号選択部とを備え
たことを特徴とする画像処理装置。
1. An image processing apparatus comprising: compression encoding means for compressing and encoding black and white binary data; and a data storage memory for storing monochrome binary data compressed and encoded by the compression encoding means. The compression encoding means includes a run length counter for counting the run length of the black and white binary data, and a Weyl encoding block in response to a command from the run length counter.
Of run length binarized data of 3 or less corresponding to lock 1
A raw data encoding unit for performing raw data encoding, and four or more of the run lengths counted by the run length counter unit
Block to the run length greater than the run length of Weil coding
A variable-length run-length encoding unit that performs Weyl encoding using two or more codes, and determines whether a run included in the output of the variable-length run-length encoding unit is white or black. A black-and-white run information adding unit for adding run information, and either the output of the raw data encoding unit or the output of the black-and-white run information adding unit is selected according to the run length counted by the run length counter unit. An image processing apparatus, comprising:
JP4137101A 1992-05-28 1992-05-28 Image processing device Expired - Lifetime JP2812064B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4137101A JP2812064B2 (en) 1992-05-28 1992-05-28 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4137101A JP2812064B2 (en) 1992-05-28 1992-05-28 Image processing device

Publications (2)

Publication Number Publication Date
JPH05336378A JPH05336378A (en) 1993-12-17
JP2812064B2 true JP2812064B2 (en) 1998-10-15

Family

ID=15190887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4137101A Expired - Lifetime JP2812064B2 (en) 1992-05-28 1992-05-28 Image processing device

Country Status (1)

Country Link
JP (1) JP2812064B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100476389B1 (en) * 1997-07-10 2005-06-10 주식회사 팬택앤큐리텔 Binary Data Encoding Method of Image Signal
KR20010110858A (en) * 2000-06-08 2001-12-15 김성식 Binary Image CODEC for Mobile Communication
JP2014039198A (en) * 2012-08-17 2014-02-27 Dainippon Screen Mfg Co Ltd Data compression method, apparatus and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03133263A (en) * 1989-10-18 1991-06-06 Hitachi Ltd Picture data compression system

Also Published As

Publication number Publication date
JPH05336378A (en) 1993-12-17

Similar Documents

Publication Publication Date Title
JP3108479B2 (en) Encoding / decoding method and apparatus therefor
US5045852A (en) Dynamic model selection during data compression
US4420771A (en) Technique for encoding multi-level signals
US4040093A (en) System for coding information change picture elements in facsimile signal
JP3410629B2 (en) Variable length coding circuit and variable length coding method
US5751233A (en) Decoding apparatus and method therefor
JPH04270568A (en) Data compression system in picture processing unit
US6055273A (en) Data encoding and decoding method and device of a multiple-valued information source
JP3278948B2 (en) Variable length coding method
US5966467A (en) System for compressing and decompressing binary representations of dithered images
US6157327A (en) Encoding/decoding device
JP2812064B2 (en) Image processing device
US4972497A (en) Image coding system
US5708431A (en) Method for compression coding of potentially unbounded integers
US5185820A (en) System for compressing image data having blank lines
JP3009993B2 (en) Huffman decoding device
JPH05252051A (en) Serial data decoder
KR0152035B1 (en) Method and apparatus of variable length decode
JPH0786957A (en) Variable length encoder
JPS6352812B2 (en)
JPS6276931A (en) Data compressor
JPS63155957A (en) Binary picture information compressing device
JPH0884260A (en) Compression system and expansion system for two-dimension image data
JPH0311883A (en) Decoding system for variable length code, and facsimile equipment and still picture transmission system
JPH06152988A (en) Decoder for variable length encoding

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070807

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080807

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080807

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090807

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090807

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100807

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110807

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110807

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 14

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 14