JP2000165680A - Binary image companding method, image compressor and image expander - Google Patents

Binary image companding method, image compressor and image expander

Info

Publication number
JP2000165680A
JP2000165680A JP33995898A JP33995898A JP2000165680A JP 2000165680 A JP2000165680 A JP 2000165680A JP 33995898 A JP33995898 A JP 33995898A JP 33995898 A JP33995898 A JP 33995898A JP 2000165680 A JP2000165680 A JP 2000165680A
Authority
JP
Japan
Prior art keywords
data
code
run length
binary
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.)
Withdrawn
Application number
JP33995898A
Other languages
Japanese (ja)
Inventor
Mitsuo Oshima
光雄 大島
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP33995898A priority Critical patent/JP2000165680A/en
Publication of JP2000165680A publication Critical patent/JP2000165680A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To efficiently compress/expand a binary image where a ratio of black and white mean code lengths is about 50%/ SOLUTION: A run length conversion section 12 detects a run length of respective binary data received from a data input section 10. A coding section 14 assigns a code from a code table storage section 16 to respective run lengths to encode the binary data. In this case, on the occurrence of a black run length 1, the code is skipped and white codes before and after the code are consecutively outputted. In the case of expanding coded data, parts where white codes are consecutive are detected and omitted black data are inserted to the parts to recover the original binary data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、2値画像圧縮伸張
方法および画像圧縮装置ならびに画像伸張装置に係り、
特に、たとえば、画像の記録あるいは伝送の際に用いら
れる2値画像圧縮伸張方法および画像圧縮装置ならびに
画像伸張装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image compression / expansion method, an image compression apparatus, and an image expansion apparatus.
In particular, the present invention relates to a binary image compression / expansion method, an image compression apparatus, and an image expansion apparatus used for recording or transmitting an image.

【0002】[0002]

【従来の技術】従来、ファクシミリ装置などの2値画像
の伝送装置において適用される圧縮符号化方式として、
たとえば、MH(Modified Huffuman) 符号やMMR(Modified
MR(modified READ)) 符号などのランレングス符号化が
知られている。
2. Description of the Related Art Conventionally, as a compression encoding method applied to a binary image transmission apparatus such as a facsimile apparatus,
For example, MH (Modified Huffuman) code and MMR (Modified
Run-length coding such as MR (modified READ) coding is known.

【0003】このランレングス符号化は、2値画像の白
および黒の連続する長さを符号化する方式である。2値
画像の場合には、白および黒が"0" と"1" の値に割り当
てられるので、それぞれの値においては冗長度がない。
しかし、画面という空間ではそれぞれの値が連続する長
さあるいは幅を持つことを利用して情報圧縮しているも
のである。
The run-length coding is a method of coding a continuous length of white and black of a binary image. In the case of a binary image, white and black are assigned to the values "0" and "1", so there is no redundancy in each value.
However, in a space called a screen, information is compressed using the fact that each value has a continuous length or width.

【0004】たとえば、図7に示すように、MH符号の例
として、たとえば、オーム社出版の「画像情報圧縮」
(テレビジヨン学会編、原島博監修)のl67 頁に記載さ
れた符号が用いられている。この符号は、0〜63のラン
長を表わすターミネーティング符号(T符号)と64の整
数倍のラン長を表わすメークアップ符号(M符号)の2
種類から構成されており、ランの長さに応じて組み合わ
せて使用される。T符号とM符号は、同一符号空間に割
り当てられており、符号それのみにてT符号かM符号か
が判かるようにできている。この場合、2値画像の白と
黒のランレングスの分布に差があることから白ランには
白ラン用の符号を黒ランには黒ラン用の符号を割り当て
て全体の符号長の短縮を図っていた。
For example, as shown in FIG. 7, as an example of the MH code, for example, "Image Information Compression"
(Edited by the Society of Television Engineers, supervised by Hiroshi Harashima). This code is composed of a terminating code (T code) representing a run length of 0 to 63 and a make-up code (M code) representing a run length that is an integral multiple of 64.
It is composed of different types and used in combination according to the length of the run. The T code and the M code are assigned to the same code space, and the code alone can be used to determine whether the code is the T code or the M code. In this case, since there is a difference in the distribution of the run length between white and black in the binary image, a code for white run is assigned to a white run and a code for black run is assigned to a black run to shorten the overall code length. I was planning.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術では、上記のような符号をそれぞれのラン
長に割り当てるので、ファクシミリなどの文字書面を取
り扱う画像であったならば画像圧縮として適した方式で
あるが、多値の画像をビットマップなどに分解してそれ
それのビツトプレーンを画像圧縮する場合などうまく圧
縮されない場合があるという問題があった。場合によっ
ては圧縮ではなく符号化した後のデータが増大してしま
うこともあつた。特に、多値の画像の場合、ビットプレ
ーン番号の下位側のビットプレーンにて圧縮率が悪くな
るという現象がみられる。これはビットプレーンでは、
白と黒の出現割合が下位側にてランダムに近い形で出て
くるために、ランレングスの平均値や白黒の割合が50%
近くの出現率であるために符号化効率が悪くなつていた
ものである。
However, in the above-mentioned prior art, the above-mentioned codes are assigned to the respective run lengths. Therefore, if the image handles a character document such as a facsimile, it is suitable for image compression. Although this method is used, there is a problem that compression may not be performed well in some cases, such as when a multi-valued image is decomposed into bitmaps and each bit plane is image-compressed. In some cases, the data after encoding rather than compression may increase. In particular, in the case of a multi-valued image, a phenomenon is seen in which the compression ratio deteriorates in the bit plane lower in the bit plane number. This is a bit plane
Since the appearance ratio of white and black appears in a random manner on the lower side, the average run length and the ratio of black and white are 50%
The encoding efficiency is degraded due to the nearby appearance rate.

【0006】本発明はこのような従来技術の欠点を解消
し、白黒がランダムに出現し、かつ出現率がほぼ50%程
度の2値画像でも圧縮効率を向上させることができ、か
つ、パソコンなどのテキストなどの画面でも画像圧縮効
率を向上させることができる2値画像圧縮伸張方法およ
び画像圧縮装置ならびに画像伸張装置を提供することを
目的とする。
The present invention solves such disadvantages of the prior art, and can improve the compression efficiency even for a binary image in which black and white appear randomly and the appearance rate is about 50%. It is an object of the present invention to provide a binary image compression / expansion method, an image compression apparatus, and an image expansion apparatus capable of improving the image compression efficiency even on a screen such as a text.

【0007】[0007]

【課題を解決するための手段】本発明による2値画像圧
縮伸張方法は上述の課題を解決するために、2値画像情
報を圧縮側にてそれぞれの2値データの同一値が連続す
る長さに基づいて符号化し、その符号化データを伸張側
にて元の2値データに復号して元の2値画像情報を再生
する2値画像圧縮伸張方法において、圧縮側にて、2値
画像情報のそれぞれの2値データの同一値が連続する長
さを表わすラン長を順次求め、それぞれのラン長に所定
の符号を割り当てて符号化する際に、所定の2値からな
るデータの所定のラン長を除く他のすべてのラン長に、
2値のいずれの値のデータのラン長であるかを判別可能
に同一符号空間の符号を割り当てて順次符号化して符号
化データを出力し、伸張側にて、圧縮側からの符号化デ
ータを受けた際に、それぞれの符号が2値のいずれの値
のデータの符号であるかを順次検出しつつ、それぞれの
符号を復号して、2値の同じ値のデータの符号が続く場
合にそれらの間に圧縮側で省略されたラン長のデータを
補って元の2値画像情報を再生することを特徴とする。
In order to solve the above-mentioned problems, the binary image compression / expansion method according to the present invention converts the binary image information to the compression side with the same length of the same binary data. In the binary image compression / expansion method of decoding the encoded data to the original binary data on the expansion side and reproducing the original binary image information, the binary image information is encoded on the compression side. Are sequentially determined, and when a predetermined code is assigned to each run length and encoded, a predetermined run of data consisting of predetermined binary data is determined. For all other run lengths except the length,
A code in the same code space is assigned so that it is possible to determine which of the two values of data is the run length, and the encoded data is sequentially encoded to output encoded data. Upon receiving, while sequentially detecting which of the two-valued data codes each code is, the respective codes are decoded, and when the binary data codes of the same value continue, During this period, the original binary image information is reproduced by compensating for the run length data omitted on the compression side.

【0008】この場合、あらかじめ圧縮側および伸張側
に、2値のいずれか一方の値のデータの所定のラン長を
除いた他のすべてのラン長に割り当てられる符号を表わ
す符号表を用意しておくとよい。
In this case, on the compression side and the decompression side, a code table indicating codes assigned to all run lengths other than a predetermined run length of data of one of two values is prepared. Good to put.

【0009】また、圧縮側にて符号化する際に、それぞ
れのデータのラン長の分布を画像の全画面にわたって測
定してその分布の最大値を示すラン長を検出し、そのラ
ン長を除く他のすべてのラン長を順次符号化すると有利
である。
When encoding is performed on the compression side, the run length distribution of each data is measured over the entire screen of the image, the run length indicating the maximum value of the distribution is detected, and the run length is excluded. It is advantageous to encode all other run lengths sequentially.

【0010】この場合、圧縮側は、省略したデータおよ
びそのラン長を表わす情報を符号化データに付加して送
り、伸張側は、符号化データに付加された情報に基づい
て、2値の値が同一であるデータの符号が連続する部位
を検出して、それらの間に圧縮側で省略されたラン長の
データを補完して、元の2値画像情報を再生するとよ
い。
In this case, the compression side adds the omitted data and the information indicating the run length to the encoded data and sends the encoded data, and the decompression side transmits the binary value based on the information added to the encoded data. It is preferable to detect the portion where the code of the data having the same number is continuous, supplement the run length data omitted on the compression side between them, and reproduce the original binary image information.

【0011】また、この場合、あらかじめ圧縮側および
伸張側に、2値のいずれの値のデータの符号であるかを
判別可能に同一符号空間に割り当てられた符号を表わす
符号表を用意して、圧縮側にて符号表から符号を与えな
いデータのラン長を除いて他のすべてのラン長に適応的
に符号を割り当てて符号化すると有利である。
In this case, a code table indicating codes assigned to the same code space is prepared on the compression side and the expansion side in advance so as to be able to determine which of two values of data the code is. It is advantageous that the compression side adaptively assigns codes to all other run lengths except for the run lengths of unsigned data from the code table and encodes them.

【0012】一方、本発明による画像圧縮装置は、それ
ぞれの画素が2値データのいずれかにて表わされる画像
情報を圧縮符号化する画像圧縮装置において、それぞれ
の画素を表わす2値データを順次入力するデータ入力手
段と、データ入力手段からのそれぞれの画素が2値デー
タのいずれの値であるかを検出して、2値データの同一
値が連続するそれぞれの長さを表わすラン長を求めるラ
ンレングス検出手段と、少なくともいずれのデータの符
号であるかを判別可能に同一符号空間に割り当てられた
符号を記憶する符号表記憶手段と、ランレングス検出手
段からのそれぞれのラン長に符号表記憶手段の符号を割
り当てて符号化する符号化手段であって、所定の2値か
らなるデータの所定のラン長を除く他のすべてのラン長
を順次符号化する符号化手段とを含むことを特徴とす
る。
On the other hand, an image compression apparatus according to the present invention is an image compression apparatus for compressing and encoding image information in which each pixel is represented by one of binary data, and sequentially inputs binary data representing each pixel. A data input means for detecting a value of each pixel from the data input means, and a run length for obtaining a run length representing the length of the continuous value of the same value of the binary data. Length detection means, code table storage means for storing at least codes assigned to the same code space so as to be able to discriminate which data code, and code table storage means for each run length from the run length detection means. Encoding means for sequentially encoding all run lengths except for a predetermined run length of predetermined binary data. Characterized in that it comprises a Goka means.

【0013】この場合、本発明による画像圧縮装置は、
ランレングス検出手段にて求めたそれぞれのデータのラ
ン長の分布を画像の全画面にわたって測定するラン長測
定手段と、そのラン長の分布の最大値を検出する最大値
検出手段とを含み、符号化手段は、その最大値を示すラ
ン長のデータに符号を割り付けずに、そのラン長を除く
他のラン長のデータに符号を割り付けて順次符号化する
とよい。
In this case, the image compression device according to the present invention
A run length measuring means for measuring a run length distribution of each data obtained by the run length detecting means over the entire screen of the image, and a maximum value detecting means for detecting a maximum value of the run length distribution; It is preferable that the encoding means assigns a code to data of a run length other than the run length and sequentially encodes the data without assigning a code to the run length data indicating the maximum value.

【0014】また、符号化手段は符号を割り当てなかっ
たデータおよびそのラン長を表わす情報を符号化データ
に付加して出力するとよい。
[0014] The encoding means may add the data to which no code is assigned and information indicating the run length to the encoded data and output the encoded data.

【0015】他方、本発明による画像伸張装置は、画像
圧縮装置にて符号化された画像情報の符号化データを伸
張して元の画像情報を再生する画像伸張装置であって、
符号化データを順次入力するデータ入力手段と、少なく
ともいずれのデータの符号であるかを判別可能に同一符
号空間に割り当てられた符号を記憶する符号表記憶手段
と、符号表記憶手段の符号表に基づいてデータ入力手段
からの符号化データがいずれのデータの符号であるかを
判定するデータ判定手段と、データ判定手段にて判定さ
れたそれぞれの符号を符号表記憶手段の符号表に基づい
て元のラン長のデータに復号する復号手段と、データ判
定手段にて判定した結果に基づいて同じ値の2値からな
るデータの符号が連続しているか否かを検出する符号検
出手段と、符号検出手段の結果に基づいて、同じ値の2
値からなるデータの符号が連続している際に、復号手段
にて復号されたデータ間に符号化手段で省略されたデー
タを補完するデータ補完手段とを含むことを特徴とす
る。
On the other hand, an image decompression device according to the present invention is an image decompression device for decompressing encoded data of image information encoded by an image compression device and reproducing original image information,
Data input means for sequentially inputting encoded data, code table storage means for storing codes assigned to the same code space so as to be able to determine at least which data code, and a code table for the code table storage means. Data determining means for determining which code the encoded data from the data input means is based on based on the code table of the code table storage means. Decoding means for decoding data having the same run length, code detecting means for detecting whether or not codes of binary data having the same value are continuous based on the result determined by the data determining means; Based on the result of the means, 2 of the same value
When data having a value has a continuous code, a data complementing means for complementing data omitted by the encoding means between data decoded by the decoding means is provided.

【0016】この場合、本発明による画像伸張装置は、
符号化データに付加された省略されたデータおよびその
ラン長の情報を検出する情報検出手段を含み、復号手段
は情報検出手段からの情報に基づいて符号表記憶手段の
符号表をそれぞれのデータのラン長に応じて割り当て
て、それぞれの符号を復号するとよい。
In this case, the image decompression device according to the present invention comprises:
Information detecting means for detecting the omitted data added to the encoded data and the information on the run length thereof, and the decoding means stores the code table of the code table storing means based on the information from the information detecting means. Each code may be decoded by assigning it according to the run length.

【0017】[0017]

【発明の実施の形態】次に、添付図面を参照して本発明
による2値画像圧縮伸張方法および画像圧縮装置ならび
に画像伸張装置の実施例を詳細に説明する。図1および
図2には、本発明による2値画像圧縮伸張方法が適用さ
れた画像圧縮装置および画像伸張装置の一実施例が示さ
れている。本実施例における画像圧縮装置は、それぞれ
の画素が"0" または"1" の2値にて表わされる画像情報
を圧縮符号化する符号化装置であり、たとえば、CCD イ
メージセンサなどにて読み取った白黒の2値画像あるい
は多階調の自然画像をビットマップ展開して2値のビッ
ト列としたそれぞれのビットプレーン毎の2値情報を圧
縮符号化する圧縮装置である。また、本実施例の画像伸
張装置は、その画像圧縮装置にて符号化された符号化デ
ータを復号して元の2値画像情報を再生する再生装置で
ある。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of a binary image compression / expansion method, an image compression apparatus, and an image expansion apparatus according to the present invention will be described in detail with reference to the accompanying drawings. 1 and 2 show an embodiment of an image compression apparatus and an image expansion apparatus to which a binary image compression / expansion method according to the present invention is applied. The image compression apparatus according to the present embodiment is an encoding apparatus that compresses and encodes image information in which each pixel is represented by a binary value of “0” or “1”. For example, the image information is read by a CCD image sensor or the like. This is a compression apparatus that compresses and encodes binary information for each bit plane into a binary bit string by developing a monochrome binary image or a multi-gradation natural image into a bit map. The image decompression device according to the present embodiment is a reproduction device that decodes the encoded data encoded by the image compression device and reproduces the original binary image information.

【0018】特に、本実施例では、たとえば、白黒の2
値画像をそれぞれの連続する長さに基づいて圧縮符号化
する際に、黒が1個のみの場合に符号を与えずに、それ
以外の黒の連続する長さ、および白の連続する長さに符
号を割り当てて符号化し、その符号化データを伸張する
際に、白および黒の符号が交互に現われる場合にはその
まま復号して、白の符号が連続した場合には、それらの
間に黒を1個挿入して元の白黒の2値画像情報を再生す
る点が主な特徴点である。
Particularly, in the present embodiment, for example,
When the value image is compression-encoded based on the respective continuous lengths, if there is only one black, no code is given, and other black continuous lengths and white continuous lengths are used. When white and black codes appear alternately when the coded data is decompressed and encoded, the code is decoded as it is. The main feature is that the original black and white binary image information is reproduced by inserting a single.

【0019】詳細には、本実施例による画像圧縮装置
は、図1に示すように、データ入力部10と、ランレング
ス変換部12と、符号化部14と、符号表記憶部16と、デー
タ出力部18とを含む。データ入力部10は、CCD(Charge C
oupled Device)イメージセンサなどに接続されて、たと
えば、画像を水平方向に黒を"1" 、白を"0" の値として
読み取った2値データを順次入力する回路である。それ
ぞれの2値データは、ランレングス変換部12に順次供給
される。
More specifically, as shown in FIG. 1, the image compression apparatus according to the present embodiment comprises a data input unit 10, a run-length conversion unit 12, an encoding unit 14, a code table storage unit 16, And an output unit 18. The data input unit 10 is a CCD (Charge C
Oupled Device) This circuit is connected to an image sensor or the like, and sequentially inputs, for example, binary data in which an image is read in the horizontal direction as a value of "1" for black and "0" for white. Each of the binary data is sequentially supplied to the run length conversion unit 12.

【0020】ランレングス変換部12は、白および黒の連
続する長さをそれぞれ検出する検出回路であり、順次入
力するデータが"1" または"0" のいずれであるかを判定
してそれぞれの連続する長さをカウントするカウンタな
どを含む。それぞれのカウント値は順次符号化部14に供
給される。
The run-length conversion unit 12 is a detection circuit for detecting a continuous length of white and black, respectively, and determines whether data to be sequentially input is "1" or "0", and Includes a counter that counts continuous length. Each count value is sequentially supplied to the encoding unit 14.

【0021】符号化部14は、ランレングス変換部12から
のそれぞれのラン長を表わすカウント値に所定の符号を
割り当てて符号化する回路であり、特に、本実施例では
黒のカウント値が1個のみの場合にはその値に符号を付
与せずに、その前後の白にそれぞれ符号を割り当てる符
号化回路である。
The encoding section 14 is a circuit for assigning a predetermined code to the count value representing each run length from the run length conversion section 12 and encoding the count value. In particular, in this embodiment, the black count value is 1 In the case of only the number, the coding circuit assigns a code to each of the white before and after the value without giving a code to the value.

【0022】符号表記憶部16は、白および黒の符号をそ
れぞれの符号そのもので白および黒のラン数を判別でき
るように同一符号空間に割り当て、各符号を表わす符号
表をあらかじめ記憶した記憶回路であり、本実施例で
は、たとえば図3に示すように、黒のラン長が1の場合
に符号なしとした符号表が形成されている。他の黒のラ
ン長および白のラン長の符号は、同一符号空間の符号で
あり、たとえば、白1の符号"11"は、黒ラン側にてそれ
らの符号の上位2ビットには現われない符号である。同
様に、白2、白3・・・の符号"10","0011",・・・ も黒ラ
ン側の符号の上位ビットに現われず、黒ラン側の符号"0
11","010",・・・ は白ラン側の符号の上位ビットに現われ
ないように形成されている。
The code table storage unit 16 allocates white and black codes to the same code space so that the numbers of white and black runs can be identified by the codes themselves, and stores a code table representing each code in advance. In this embodiment, as shown in FIG. 3, for example, a code table is formed in which no sign is set when the black run length is 1. The other codes of the black run length and the white run length are codes in the same code space. For example, the code “11” of white 1 does not appear in the upper two bits of those codes on the black run side. Sign. Similarly, the codes “10”, “0011”,... Of white 2, white 3,... Do not appear in the upper bits of the black run code, and the black run code “0”.
.. Are formed so as not to appear in the upper bits of the code on the white run side.

【0023】図3ではラン長4まで示されているが、こ
れらの符号は、たとえば、図7に示すMH符号の黒ラン用
の符号から形成することができ、ラン長5以上の符号お
よびM(メークアップ)符号もMH符号の黒ランの符号を
白ラン用と黒ラン用に交互に割り付けていくことにより
形成することができる。この場合、符号数32を基本とし
て、ラン長1280まで割り当てられる。なお、MH符号で
は、たとえば黒2の符号"11"が白5ないし白7等の符号
の上位ビットに現われるなど、その符号のみでは黒およ
び白の判別ができないものである。本実施例では符号の
みで白および黒の判別ができるように形成されている。
FIG. 3 shows run lengths up to 4, but these codes can be formed, for example, from black run codes of the MH code shown in FIG. The (makeup) code can also be formed by alternately assigning the black run code of the MH code to the white run and the black run. In this case, up to a run length of 1280 is assigned based on 32 codes. In the MH code, for example, the code "11" of black 2 appears in the upper bits of codes such as white 5 to white 7, and the black and white cannot be discriminated only by the code. In this embodiment, it is formed so that white and black can be distinguished only by the code.

【0024】図1に戻って、データ出力部18は、符号化
部14からの符号を時系列に配列して出力する出力回路で
あり、本実施例では黒1が発生した場合にはその前後の
白白の符号が続けて出力される。その符号化データは、
たとえば、伝送装置を介して伝送され、あるいは記憶装
置または記録媒体などに書き込まれる。
Returning to FIG. 1, the data output section 18 is an output circuit for arranging the codes from the encoding section 14 in a time series and outputting them. Are continuously output. The encoded data is
For example, the data is transmitted via a transmission device or written in a storage device or a recording medium.

【0025】一方、本実施例による画像伸張装置は、上
記画像圧縮装置にて符号化された2値画像情報を再生す
る再生装置であり、たとえば、図2に示すように、デー
タ入力部30と、符号表記憶部32と、伸張部34と、データ
出力部36とを含む。データ入力部30は、伝送装置あるい
は記憶装置などに接続されて、上記画像圧縮装置からの
符号化データを順次入力する入力回路であり、その符号
化データを伸張部32に順次供給する。
On the other hand, the image decompression device according to the present embodiment is a reproduction device for reproducing the binary image information encoded by the image compression device. For example, as shown in FIG. , A code table storage unit 32, an expansion unit 34, and a data output unit 36. The data input unit 30 is an input circuit connected to a transmission device or a storage device for sequentially inputting encoded data from the image compression device, and sequentially supplies the encoded data to the decompression unit 32.

【0026】符号表記憶部32は、白および黒のラン長の
符号が同一符号空間に割り当てられた符号を表わす符号
表を記憶する記憶回路であり、上記画像圧縮装置の符号
表記憶部16の符号表と同一の符号表があらかじめ記憶さ
れている。
The code table storage unit 32 is a storage circuit for storing a code table representing codes in which white and black run length codes are assigned to the same code space. The same code table as the code table is stored in advance.

【0027】伸張部34は、データ入力部30からの符号化
データを符号表記憶部32の符号表に基づいて復号する復
号回路であり、本実施例では、白および黒の符号を判別
しつつそれぞれの符号を復号して、白の符号が連続した
際にそれらの復号結果の間に黒を補完して元の2値デー
タを復元する回路である。
The decompression unit 34 is a decoding circuit that decodes the encoded data from the data input unit 30 based on the code table of the code table storage unit 32. In this embodiment, the decompression unit 34 discriminates the white and black codes. This circuit decodes each code, and when the white codes continue, complements black between the decoded results to restore the original binary data.

【0028】より詳しくは、本実施例の伸張部34は、た
とえば、図4に示すように、データ判定部300 と、前デ
ータ記憶部302 と、黒復号部304 と、白復号部306 と、
黒判別部308 と、白判別部310 と、白白判別部312 と、
黒出力スイッチ(SW1 )314と、白出力スイッチ(SW2
)316 と、黒挿入部318 とから形成されている。デー
タ判定部300 は、符号Xiを入力してその符号が白の符号
であるか黒の符号であるかを判定する白黒判定回路であ
り、その結果を前データ記憶部302 および判別部308 〜
312 に供給し、判定した符号Xiを黒復号部304 または白
復号部306 に順次供給する。
More specifically, for example, as shown in FIG. 4, the decompression unit 34 of this embodiment includes a data determination unit 300, a previous data storage unit 302, a black decoding unit 304, a white decoding unit 306,
A black determining unit 308, a white determining unit 310, a white / white determining unit 312,
Black output switch (SW1) 314 and white output switch (SW2)
) 316 and a black insertion portion 318. The data determination unit 300 is a black-and-white determination circuit that receives the code Xi and determines whether the code is a white code or a black code, and stores the result in the previous data storage unit 302 and the determination units 308 to 308.
312, and supplies the determined code Xi to the black decoding unit 304 or the white decoding unit 306 sequentially.

【0029】前データ記憶部302 は、データ判定部300
からの判定結果を1符号分記憶する記憶回路であり、現
符号の判定結果を受けた際に記憶した前符号の判定結果
を白白判別部312 に順次供給する。
The previous data storage unit 302 is provided with a data determination unit 300
Is a storage circuit for storing the determination result of the previous code for one code, and when the determination result of the current code is received, sequentially supplies the stored determination result of the previous code to the white / white determination unit 312.

【0030】黒復号部304 は、データ判定部300 を介し
て供給される符号Xiを符号表記憶部32の符号表を参照し
て復号する復号回路であり、その符号にて表わされる黒
のラン長分の2値データ"1" を出力する。同様に、白復
号部306 は、白の符号Xiを復号する回路であり、その符
号にて表わされる白のラン長分の2値データ"0" を出力
する。
The black decoding unit 304 is a decoding circuit that decodes the code Xi supplied via the data determination unit 300 with reference to the code table of the code table storage unit 32, and executes a black run represented by the code. Output long binary data "1". Similarly, the white decoding unit 306 is a circuit that decodes a white code Xi, and outputs binary data “0” for the white run length represented by the code.

【0031】黒判別部308 は、データ判定部300 にて黒
の符号を検出した際に黒出力スイッチ314 をオンとする
スイッチ駆動部であり、本実施例ではNAND素子などにて
形成されている。白判別部310 は、データ判定部300 に
て白の符号を検出した際に白出力スイッチ316 をオンと
するスイッチ駆動部であり、本実施例ではAND 素子など
にて形成されている。
The black discriminating unit 308 is a switch driving unit that turns on the black output switch 314 when the data discriminating unit 300 detects a black sign. In this embodiment, the black discriminating unit 308 is formed by a NAND element or the like. . The white discriminating unit 310 is a switch driving unit that turns on the white output switch 316 when the data discriminating unit 300 detects a white code. In the present embodiment, the white discriminating unit 310 is formed by an AND element or the like.

【0032】白白判別部312 は、データ判定部300 から
の現符号の判定結果と前データ記憶部302 からの前符号
の結果との論理積をとるAND 素子などにて形成され、い
ずれも白である場合に黒挿入部318 に駆動出力を供給す
る。
The white / white discriminating section 312 is formed by an AND element or the like which takes the logical product of the result of the current code determination from the data determination section 300 and the result of the previous code from the previous data storage section 302. In some cases, a drive output is supplied to the black insertion section 318.

【0033】黒挿入部318 は、白白判別部312 からの駆
動出力に応動して黒のラン長1の2値データを再生する
再生回路であり、白復号部306 からの白の連続する復号
結果の間に黒のデータを補完するデータ補完回路であ
る。復号された2値データYiは図2に示すデータ出力部
36に供給される。
The black insertion section 318 is a reproducing circuit for reproducing the binary data of the black run length 1 in response to the drive output from the white / white discriminating section 312. Is a data complement circuit that complements black data during the period. The decoded binary data Yi is output to the data output unit shown in FIG.
Supplied to 36.

【0034】図2に戻って、データ出力部36は、図示し
ない表示装置または印刷装置などに接続されて、伸張部
34にて伸張された元の2値画像情報を出力する出力回路
である。
Returning to FIG. 2, the data output unit 36 is connected to a display device or a printing device (not shown),
An output circuit for outputting the original binary image information expanded at 34.

【0035】次に、本実施例による2値画像圧縮伸張方
法を上記画像圧縮装置および画像伸張装置の動作ととも
に説明すると、まず、たとえば、イメージセンサなどに
て読み取った白と黒の2値画像を表わす2値データが順
次画像圧縮装置に供給されると、その2値データはデー
タ入力部10を介して順次ランレングス変換部12に供給さ
れる。これにより、ランレングス変換部12では、それぞ
れの2値データにて表わされる黒および白の連続する画
素数を表わすラン長を検出して、その結果を符号化部14
に順次供給する。
Next, the binary image compression / expansion method according to this embodiment will be described together with the operation of the image compression apparatus and the image expansion apparatus. First, for example, a white and black binary image read by an image sensor or the like is read. When the binary data represented is sequentially supplied to the image compression device, the binary data is sequentially supplied to the run-length conversion unit 12 via the data input unit 10. As a result, the run length conversion unit 12 detects a run length indicating the number of continuous black and white pixels represented by the respective binary data, and outputs the result to the encoding unit 14.
Are supplied sequentially.

【0036】白および黒のラン長を順次受けた符号化部
14は、それぞれのラン長に符号表記憶部16からの符号を
割り当てて符号化し、その結果を順次データ出力部18に
供給する。この際、たとえば、図5に示すように、符号
化部14は、まず、ステップS10 にてランレングス変換部
12からのラン長を受けると、ステップS12 にてそのラン
長が黒または白のいずれであるかを判定する。その結果
が白であれば、ステップS14 に進み、符号表からその白
のラン長に応じた符号を読み出して、その符号をデータ
出力部18に供給する。
Encoding unit sequentially receiving white and black run lengths
The code 14 assigns a code from the code table storage unit 16 to each run length and encodes the code, and sequentially supplies the results to the data output unit 18. At this time, for example, as shown in FIG. 5, the encoding unit 14 firstly executes the run-length conversion unit in step S10.
Upon receiving the run length from step 12, it is determined in step S12 whether the run length is black or white. If the result is white, the process proceeds to step S14, where a code corresponding to the run length of the white is read from the code table, and the code is supplied to the data output unit 18.

【0037】ステップS12 にて黒のラン長であれば、ス
テップS16 に進み、そのラン長が1であるか否かを判定
する。ラン長が1であれば、ステップS18 にて符号なし
として、ステップS12 に戻る。次に、ステップS10 にて
再び白のラン長が供給されると、その符号がステップS1
2 にて白と判定されて、再びステップS14 にてその白の
ラン長に符号が割り当てられて、データ出力部18に供給
される。
If it is determined in step S12 that the run length is black, the flow advances to step S16 to determine whether or not the run length is 1. If the run length is 1, it is determined that there is no sign in step S18, and the process returns to step S12. Next, when the white run length is supplied again in step S10, the sign thereof is changed to step S1.
In step S14, a code is assigned to the white run length again, and the white run length is supplied to the data output unit 18.

【0038】次いで、ステップS10 に戻り、黒のラン長
が供給されると、その結果からステップS16 に進み、そ
のラン長が1であるか否かが判定される。その結果、ラ
ン長が1でなければ、ステップS20 に進み、符号表記憶
部16からの符号をその黒のラン長に割り当てて、その符
号をデータ出力部18に供給する。
Next, returning to step S10, when the black run length is supplied, the process proceeds to step S16 based on the result, and it is determined whether the run length is 1 or not. As a result, if the run length is not 1, the process proceeds to step S20, where the code from the code table storage unit 16 is assigned to the black run length, and the code is supplied to the data output unit 18.

【0039】以下同様に、たとえば、図5(a) に示すよ
うに、白および黒のラン長が交互に入力されると、白の
ラン長にはその値に応じた符号表の白の符号が割り当て
られて出力され、黒のラン長が入力されると、そのラン
長が1であるか否かが判定されて、ラン長が1であれば
符号なしとして省略されて、黒のラン長が1でなければ
その値に応じて符号表の黒の符号が割り付けられて、順
次データ出力部18に供給される。
Similarly, for example, as shown in FIG. 5A, when the white and black run lengths are alternately input, the white run length is added to the white code in the code table corresponding to the value. Is assigned and output, and when a black run length is input, it is determined whether or not the run length is 1, and if the run length is 1, it is omitted as unsigned and the black run length is omitted. If is not 1, the black code in the code table is assigned according to the value, and is sequentially supplied to the data output unit 18.

【0040】これにより、データ出力部18では、ステッ
プS22 にて符号化部14からの白および黒の符号を順次時
系列に配列して、たとえば、図5(b) に示すように、黒
白白黒・・・のように黒1が省略された符号化データを
伝送装置あるいは記憶装置に順次出力する。
Thus, in the data output unit 18, the white and black codes from the encoding unit 14 are sequentially arranged in time series in step S22, for example, as shown in FIG. .. Are sequentially output to the transmission device or the storage device.

【0041】一方、上記画像伸張装置では、まず、伝送
装置から受信あるいは記憶装置から読み出された符号化
データをそのデータ入力部30を介して入力すると、その
符号化データは順次伸張部34に供給される。これによ
り、伸張部34では、それぞれの符号をデータ判定部300
にて符号表記憶部32の符号表に照らしてその符号が白ま
たは黒のいずれであるかを判定する。その判定結果がた
とえば、黒であったとすると、判定した符号を黒復号部
304 に供給して、かつ、黒の判定結果を前データ記憶部
302 およびそれぞれの判別部308 〜312 に供給する。
On the other hand, in the image decompression device, first, when the encoded data received from the transmission device or read from the storage device is input through the data input unit 30, the encoded data is sequentially sent to the decompression unit 34. Supplied. As a result, the decompression unit 34 converts each code into the data determination unit 300
Then, it is determined whether the code is white or black by referring to the code table of the code table storage unit 32. If the result of the determination is, for example, black, the determined code is
To the previous data storage unit
302 and the respective discriminating units 308 to 312.

【0042】これにより、前データ記憶部302 には黒を
表わす判定結果が記憶されて、黒判別部308 から黒出力
スイッチ314 をオンとする出力が発生される。次いで、
黒復号部304 にてデータ判定部300 からの符号を符号表
を参照して復号すると、その結果にて表わされる黒の2
値データが順次連続する画素数分、オンとなった黒出力
スイッチ314 を通して、かつ黒挿入部318 を介してデー
タ出力部36に供給される。
As a result, the determination result representing black is stored in the previous data storage section 302, and an output for turning on the black output switch 314 is generated from the black determination section 308. Then
The black decoding unit 304 decodes the code from the data determination unit 300 with reference to the code table.
The value data is supplied to the data output unit 36 through the black output switch 314 turned on and via the black insertion unit 318 for the number of consecutive pixels.

【0043】次に、データ判定部300 にて白の符号が判
定されると、上記と同様に、その判定結果が前データ記
憶部302 および判別部308 〜312 に供給され、判定され
た符号が白復号部306 に供給される。これにより、前デ
ータ記憶部302 に白を表わす判定結果が記憶されて、白
判別部310 から白出力スイッチ316 をオンとする出力が
発生される。次いで、白復号部306 にてデータ判定部30
0 からの符号を符号表を参照して復号すると、その結果
にて表わされる白の2値データが順次連続する画素数
分、オンとなった白出力スイッチ316 を通して、かつ黒
挿入部318 を介してデータ出力部36に供給される。この
際、白白判別部312 の一方の入力に現符号の白の判定結
果が供給されているが、他方の入力には前データ記憶部
302 からの前符号の黒の判定結果が供給されるので、そ
の駆動出力は発生しない。
Next, when a white code is determined by the data determination unit 300, the determination result is supplied to the previous data storage unit 302 and the determination units 308 to 312 in the same manner as described above, and the determined code is output. This is supplied to the white decoding unit 306. As a result, the determination result representing white is stored in the previous data storage unit 302, and an output for turning on the white output switch 316 from the white determination unit 310 is generated. Next, the white decoding unit 306 outputs the data
When the code from 0 is decoded with reference to the code table, the white binary data represented by the result is turned on by the white output switch 316 that has been turned on for the number of consecutive pixels sequentially, and via the black insertion unit 318. The data is supplied to the data output unit 36. At this time, the white code determination result of the current code is supplied to one input of the white / white determination unit 312, while the previous data storage unit is supplied to the other input.
Since the black determination result of the previous code from 302 is supplied, no drive output is generated.

【0044】同様に、次の黒の符号がデータ判定部300
にて判定されると、その結果から黒判別部308 が黒出力
スイッチ314 をオンとして、黒復号部304 にて復号され
た黒の2値データが順次データ出力部36に供給される。
さらに、次の白の符号が判定されると、白判別部310 が
白出力スイッチ316 をオンとして、白復号部306 にて復
号された白の2値データが順次データ出力部36に供給さ
れる。これらの場合も白白判別部312 の一方の入力に
は、前符号または現符号の判定結果として白の符号の判
定結果が供給されているが、他方の入力に黒の判定結果
が供給されるのでその駆動出力は発生しない。したがっ
て、黒および白の復号結果が順次データ出力部36に供給
される。
Similarly, the next black code is the data judgment unit 300
, The black discriminating unit 308 turns on the black output switch 314 based on the result, and the binary black data decoded by the black decoding unit 304 is sequentially supplied to the data output unit 36.
Further, when the next white code is determined, the white discrimination unit 310 turns on the white output switch 316 and the white binary data decoded by the white decoding unit 306 is sequentially supplied to the data output unit 36. . Also in these cases, the white code determination result is supplied to one input of the white / white determination unit 312 as the previous code or current code determination result, but the black determination result is supplied to the other input. No drive output is generated. Accordingly, the decoding results of black and white are sequentially supplied to the data output unit 36.

【0045】続いて、データ判定部300 にて、たとえ
ば、前データに続いて白の符号が検出されたとすると、
その判定結果は、上記と同様に前データ記憶部302 およ
び判別部308 〜312 に供給される。これにより、白白判
別部312 ではデータ判定部300からの現符号の白の判定
結果と、前データ記憶部302 からの前符号の白の判定結
果を受けて、その駆動出力を黒挿入部318 に供給する。
この結果、黒挿入部318では、白復号部306 からの前符
号を復号した白の2値データの後に、黒の2値データを
1個挿入して、データ出力部36に供給する。これに続い
て、上記と同様に白判別部310 が白出力スイッチ316 を
オンとして、白復号部306 からの現データの復号出力で
ある白の2値データが黒挿入部318 を介してデータ出力
部36に供給される。
Subsequently, if the data determination unit 300 detects, for example, a white code following the previous data,
The determination result is supplied to the previous data storage unit 302 and the determination units 308 to 312 in the same manner as described above. Accordingly, the white / white determination unit 312 receives the white determination result of the current code from the data determination unit 300 and the white code determination result of the previous code from the previous data storage unit 302, and outputs the drive output to the black insertion unit 318. Supply.
As a result, the black insertion unit 318 inserts one black binary data after the white binary data obtained by decoding the previous code from the white decoding unit 306 and supplies the black binary data to the data output unit 36. Subsequently, the white discriminator 310 turns on the white output switch 316 in the same manner as described above, and the white binary data, which is the decoded output of the current data from the white decoder 306, is output via the black inserter 318. It is supplied to the unit 36.

【0046】以下同様に、黒および白の符号が交互に供
給される場合には、黒判別部308 または白判別部310 が
黒出力スイッチ314 または白出力スイッチ316 をオンと
してそれぞれ黒復号部304 または白復号部306 にて復号
された画素の2値データが順次スイッチ314 または316
を通して黒挿入部318 からデータ出力部36に供給され
る。そして、白の符号が連続して現われた場合には、白
白判別部312 から黒挿入部318 に駆動出力が供給され
て、白復号部306 からの前符号を復号した白の2値デー
タの後に黒のラン長1の2値データが挿入されて、続い
て現符号を復号した白の2値データが順次出力される。
Similarly, when black and white codes are supplied alternately, the black discriminating unit 308 or the white discriminating unit 310 turns on the black output switch 314 or the white output switch 316 to turn on the black decoding unit 304 or the black decoding unit 304, respectively. The binary data of the pixel decoded by the white decoding unit 306 is sequentially switched 314 or 316.
Is supplied from the black insertion unit 318 to the data output unit 36. When white codes appear successively, the drive output is supplied from the white / white discriminating unit 312 to the black insertion unit 318, and after the white binary data obtained by decoding the previous code from the white decoding unit 306, Binary data having a black run length of 1 is inserted, and then white binary data obtained by decoding the current code is sequentially output.

【0047】このように伸張部34にて元の2値データが
復号されると、その2値データはデータ出力部36を介し
て表示装置または印刷装置に供給されて、表示あるいは
印刷されて元の2値画像が再生される。
When the original binary data is decoded by the decompression unit 34, the binary data is supplied to a display device or a printing device via the data output unit 36, and is displayed or printed and displayed. Is reproduced.

【0048】以上のように本実施例による2値画像圧縮
伸張方法および画像圧縮装置ならびに画像伸張装置によ
れば、黒のラン長1のデータに符号を割り当てずに、2
値画像情報を符号化するので、その符号の減少分、圧縮
効率を向上させることができる。この際、ラン長1の黒
を除く白および黒のラン長の符号を同一符号空問に割り
当てて符号化したので、復号側にて連続する白の符号を
検出することにより、それらの間に黒のデータを挿入す
るのみで、復号を効率よく実行することができる。特
に、ラン長の平均値または白および黒の割合が50%近く
の2値画像では有効に適用することができる。たとえ
ば、1ドット表示が多いパソコンなどのテキストの文字
または写真などの自然画像を表わす多値データをビット
マップ展開したビットプレーン毎の圧縮伸張に適用する
とより有効である。たとえば、8ビット多値画像の実験
例では約60%に圧縮することができた。
As described above, according to the binary image compression / expansion method, the image compression apparatus, and the image expansion apparatus according to the present embodiment, the code is not assigned to the black run length 1 data,
Since the value image information is encoded, it is possible to improve the compression efficiency by an amount corresponding to the decrease in the code. At this time, codes of white and black run lengths other than black having a run length of 1 were assigned to the same code space and coded, so that the decoding side detects continuous white codes, and Decoding can be performed efficiently only by inserting black data. In particular, it can be effectively applied to a binary image in which the average value of the run length or the ratio of black and white is close to 50%. For example, it is more effective to apply multi-value data representing a natural character such as a character or a photograph of a text such as a personal computer with a large number of 1-dot display to a bit plane developed by a bit map. For example, in an experimental example of an 8-bit multivalued image, the compression could be reduced to about 60%.

【0049】この場合、8ビットの輝度データの値をB
とすると、そのデータは次式(1) に基づいてビットマッ
プ展開される。
In this case, the value of the 8-bit luminance data is B
Then, the data is bit-mapped based on the following equation (1).

【0050】[0050]

【数1】 B=c7x27+c6x26+c5x25+c4x24+c3x23+c2x22+clx21+cOx20 ・・・(1) この式(1) にて輝度(明るさ)の値がBになるように2
の指数の係数cOからc7までを"1" または"0" で表現して
右辺の総和がBになるようにする。各画素でこの操作を
して、そのとき同じ指数のたとえばc7ならば各画素のc7
を画面全体にわたって画素順に配列したものがビットプ
レーンである。ビットプレーンは2値画像である。各指
数で同様にしてビットプレーンを作成して1つの組みと
したものがビットマップである。したがって、それぞれ
のビットプレーンからの2値のビット列を上記画像圧縮
装置にて圧縮符号化して、その符号化データを上記画像
伸張装置にて伸張することができ、伸張した結果を元の
ビットプレーンに配列して元の多値データを再生するこ
とができる。特に、ビットマップ展開した際には、その
下位のビットプレーンでは、"0","1" の出現率がランダ
ムとなり、本実施例の2値画像圧縮伸張方法および装置
を有効に適用することができる。
## EQU1 ## B = c7x2 7 + c6x2 6 + c5x2 5 + c4x2 4 + c3x2 3 + c2x22 2 + clx2 1 + cOx2 0 (1) In this equation (1), the value of the brightness (brightness) is 2 to be B
The coefficients cO to c7 of the exponent are expressed by "1" or "0" so that the sum of the right side becomes B. Do this operation for each pixel, then at the same index, e.g. c7
Are arranged in pixel order over the entire screen is a bit plane. The bit plane is a binary image. A bitmap is created by similarly creating a bit plane for each index and forming one set. Therefore, the binary bit string from each bit plane can be compression-encoded by the image compression device, and the encoded data can be decompressed by the image decompression device, and the decompression result is stored in the original bit plane. The original multi-value data can be reproduced by arranging. In particular, when the bitmap is developed, the appearance rates of "0" and "1" are random in the lower bit planes, and the binary image compression / expansion method and apparatus of this embodiment can be effectively applied. it can.

【0051】次に、図8および図9には、本発明による
2値画像圧縮伸張方法が適用された画像圧縮装置および
画像伸張装置の他の実施例が示されている。本実施例に
おいて、上記実施例と異なる点は、画像圧縮装置に、白
および黒のラン長の分布を全画面にわたって測定するラ
ン長分布測定部50を設け、その結果に基づいて符号化部
52にて分布の最大値を示す白または黒のラン長のデータ
に符号を割り当てずに他のラン長のデータを符号化し
て、省略するラン長のデータと他のラン長の符号化デー
タを表わす対応表を送り、その対応表に基づいて画像伸
張装置にて符号化データを伸張する点である。なお、図
8および図9において、上記実施例と同様の部分には同
一符号を付してその説明は省略する。
FIGS. 8 and 9 show another embodiment of the image compression apparatus and the image expansion apparatus to which the binary image compression / expansion method according to the present invention is applied. This embodiment is different from the above embodiment in that the image compression apparatus is provided with a run length distribution measuring unit 50 for measuring the distribution of the run lengths of black and white over the entire screen, and based on the result, an encoding unit.
At 52, the code of the other run length is encoded without assigning a code to the white or black run length data indicating the maximum value of the distribution, and the run length data to be omitted and the encoded data of the other run length are encoded. This is the point that the correspondence table is transmitted, and the encoded data is decompressed by the image decompression device based on the correspondence table. In FIGS. 8 and 9, the same parts as those in the above embodiment are denoted by the same reference numerals, and the description thereof will be omitted.

【0052】すなわち、図8に示す画像圧縮装置におい
て、ラン長分布測定部50は、ランレングス変換部12にて
検出されたそれぞれのラン長の分布をとり、それぞれの
ラン長の出現率を演算する演算回路と、その演算結果か
ら分布の最大となるラン長を検出する最大値検出回路と
を含む。この場合、出現率の上位のいくつかを検出して
その結果を符号化部52に供給するとよい。
That is, in the image compression apparatus shown in FIG. 8, the run length distribution measuring unit 50 obtains the distribution of each run length detected by the run length conversion unit 12 and calculates the appearance rate of each run length. And a maximum value detection circuit that detects a run length with the maximum distribution from the operation result. In this case, it is preferable to detect some of the higher occurrence rates and supply the result to the encoding unit 52.

【0053】本実施例の符号化部52は、ラン長分布測定
部50にて検出された分布の最大値を示すラン長のデータ
を符号なしとして、出現率の上位のラン長に符号を適応
的に割り当てて対応表を生成する対応表生成回路を含
み、その生成した対応表に基づいて符号化記憶部34の符
号表の符号を入れ替え、その符号を入れ替えた符号表に
基づいてランレングス変換部12からのデータを符号化す
る回路である。
The encoding unit 52 of this embodiment sets the run length data indicating the maximum value of the distribution detected by the run length distribution measuring unit 50 as unsigned, and adapts the code to the run length with the highest appearance rate. A correspondence table generation circuit for generating a correspondence table by dynamically assigning the code table, replacing the code of the code table in the encoding storage unit 34 based on the generated correspondence table, and performing a run-length conversion based on the code table with the replaced code. This is a circuit for encoding data from the unit 12.

【0054】符号化部52は、たとえば、図10に示すよう
な出現率が検出された場合、その上位のラン長から符号
表の符号を符号長の短い順に割り当てる。そして、符号
表において、対応表で使用されたためにその符号データ
が抜けることになるラン長については、そのラン長の符
号データのところに上位から順番に、符号表のラン長の
符号化データが配列順に選択され割り当てる。その対応
表は、符号化データに付加されて出力される。なお、出
力される対応表には、符号化が省略されるラン長(白か
黒か)およびそのデータが含まれる。
For example, when the appearance rate as shown in FIG. 10 is detected, the encoding unit 52 assigns the codes of the code table in order of the code length from the higher run length. Then, in the code table, the run lengths of the code data that are omitted in the code table because the code data is used in the correspondence table, the run data of the run length of the code table are arranged in order from the top at the code data of the run length. Selected and assigned in order of arrangement. The correspondence table is added to the encoded data and output. It should be noted that the output correspondence table includes run lengths (white or black) for which encoding is omitted and their data.

【0055】一方、図9に示す画像伸張装置において、
伸張部60は、符号化データに付加された対応表に基づい
て符号表の符号を適応的に入れ替えて符号化データを復
号する復号回路であり、少なくとも上記実施例と同様に
同じ色の符号が連続して現われた場合にそれらの間に対
応表にて指示されたラン長を補完するデータ補完部であ
る。
On the other hand, in the image decompression device shown in FIG.
The decompression unit 60 is a decoding circuit that decodes the encoded data by adaptively changing the code of the code table based on the correspondence table added to the encoded data, and at least the same color code as in the above embodiment. It is a data complementing unit that complements the run length specified in the correspondence table between them when they appear consecutively.

【0056】より具体的には、上記実施例にて適用され
た図4に示す回路の白白判別部312を、白または黒の符
号の連続を、対応表に基づいて符号が入れ替えられた符
号表の情報に基づいて選択的に検出して、駆動出力を挿
入部318 に供給する白白黒黒判別部に置き換え、さらに
黒挿入部318 に、挿入するビット数およびその値を自在
に設定するビット設定部326 を接続して、白または黒の
所望の符号の連続を検出して、それらの間に所望のラン
長の2値データを挿入する回路を形成するとよい。
More specifically, the white / white discriminating unit 312 of the circuit shown in FIG. 4 applied in the above-described embodiment is provided with a code table in which the sequence of white or black codes is replaced based on a correspondence table. , And selectively replaces the drive output with a black-and-white / black-and-white discriminating section that supplies the driving output to the inserting section 318, and further sets the number of bits to be inserted and its value in the black inserting section 318 as desired. The unit 326 may be connected to form a circuit for detecting a sequence of desired white or black codes and inserting binary data having a desired run length therebetween.

【0057】以上のような構成において、画像圧縮装置
では、ランレングス変換部12にて検出された白および黒
のラン長が順次ラン長分布測定部50に供給されると、ラ
ン長分布測定部50では、それらのラン長の分布を全画面
にわたって測定する。その際たとえば、図10に示すよう
に、出現率の上位のいくつかが検出されて符号化部52に
供給される。
In the above configuration, in the image compression apparatus, when the white and black run lengths detected by the run length conversion unit 12 are sequentially supplied to the run length distribution measurement unit 50, the run length distribution measurement unit At 50, the distribution of their run lengths is measured over the entire screen. At this time, for example, as shown in FIG. 10, some of the higher occurrence rates are detected and supplied to the encoding unit 52.

【0058】次に、符号化部52では、ランレングス変換
部12からのそれぞれのラン長を受けると、出現頻度順に
符号表記憶部16からの符号を符号長の短い順に選択して
割り付け、この場合、出現率が最大値を示す黒のラン長
1を除いて、それぞれのラン長に符号を割り当てて符号
化する。この際、少なくとも省略した黒およびそのラン
長1の情報を含む出現率の上位に割り当てた符号を示す
対応表を生成する。たとえば、上記実施例にて適用され
た図3の符号表を利用する場合、図10の出現率では黒1
を除いて、上位の白2および白3に"11"および"10"を割
り付け、黒4に"011”を割り付ける。この場合、図3で
は、白1と白3が入れ替わり、かつ、黒2と黒4が入れ
替わることになる。それらの情報を対応表として生成す
る。生成された対応表は、符号化データに付加されて、
データ出力部18を介して出力される。
Next, upon receiving the respective run lengths from the run length converting unit 12, the encoding unit 52 selects and assigns the codes from the code table storage unit 16 in order of appearance frequency in ascending order of code length. In this case, a code is assigned to each run length except for the black run length 1 whose appearance rate indicates the maximum value, and the coding is performed. At this time, a correspondence table is generated which indicates at least the omitted black and the code assigned to the higher rank of the appearance rate including the information of the run length 1. For example, when the code table of FIG. 3 applied in the above embodiment is used, the appearance rate of FIG.
, "11" and "10" are assigned to upper white 2 and white 3, and "011" is assigned to black 4. In this case, in FIG. 3, white 1 and white 3 are switched, and black 2 and black 4 are switched. The information is generated as a correspondence table. The generated correspondence table is added to the encoded data,
The data is output via the data output unit 18.

【0059】一方、画像伸張装置では、符号化データお
よび対応表を受けると、伸張部32にて、その対応表に基
づいて符号化記憶部34の符号を入れ替えて、順次入力す
る符号化データをそれぞれ復号する。この際、連続する
白の符号を検出すると、それらの符号を復号したデータ
間に、対応表にて指示された黒のラン長1のデータを補
完して元の2値画像情報を再生する。
On the other hand, in the image decompression device, upon receiving the encoded data and the correspondence table, the decompression unit 32 replaces the codes of the encoding storage unit 34 based on the correspondence table, and converts the encoded data to be sequentially input. Each is decrypted. At this time, when continuous white codes are detected, the original binary image information is reproduced by complementing the data of the black run length 1 specified in the correspondence table between the data obtained by decoding those codes.

【0060】この場合、上記実施例と同様に黒のラン長
1が省略されていたが、たとえば、白のいずれかのラン
長が省略されていた場合、図4に示す回路を適用する
と、対応表を受けた際に、その情報から白白判別部312
に替わる白白黒黒判別部は、黒の符号の連続を検出し、
駆動出力を挿入部318 に供給して駆動する。次に、ビッ
ト数設定部326 に対応表の情報からラン長を設定して、
かつその挿入ビットの値を設定する。これにより、白の
所望のラン長に対応した2値データのビット数を挿入部
318 にて挿入する。
In this case, the black run length 1 is omitted as in the above embodiment. For example, if any of the white run lengths is omitted, the circuit shown in FIG. When receiving the table, the white / white discriminating unit 312
The black / white / black / black discriminating unit that replaces
The drive output is supplied to the insertion section 318 to be driven. Next, the run length is set in the bit number setting unit 326 from the information in the correspondence table,
And the value of the insertion bit is set. Thereby, the number of bits of the binary data corresponding to the desired run length of white is
Insert at 318.

【0061】以上のように本実施例による2値画像圧縮
伸張方法および画像圧縮装置ならびに画像伸張装置によ
れば、画像毎にランレングスの出現頻度を測定して、そ
の値が最大となるランレングスの符号を省略するので、
圧縮率をより確実に、かつ安定して高めることができ
る。また、白および黒の符号を同一符号空間に割り当て
ているので、白黒を考慮せずに出現頻度順に割り付ける
ことができ、従来のMH符号化に比較して白のみの符号や
黒のみの符号という無駄がなく、圧縮率の向上をより有
効に図ることができる。
As described above, according to the binary image compression / expansion method, the image compression apparatus, and the image expansion apparatus according to the present embodiment, the run-length appearance frequency is measured for each image, and the run-length having the maximum value is measured. Since the sign of is omitted,
The compression ratio can be more reliably and stably increased. Also, since the white and black codes are assigned to the same code space, they can be assigned in the order of appearance frequency without considering black and white, and compared to conventional MH coding, only white codes and only black codes are used. There is no waste and the compression ratio can be improved more effectively.

【0062】なお、上記各実施例では、符号表記憶部1
6,34 にMH符号の黒ラン用の符号を利用した図3に示す
符号表を記憶したが、本発明においては、白符号と黒符
号を同一空間に割り当てた他の符号を適用してもよい。
たとえば、本発明に適用される符号は、以下に示す(2)
ないし (5)式と一方の符号の連続は現われるが他方の符
号の連続は無いという条件を加味して符号を作成すれば
よい。まず、瞬時に復号可能な符号の存在条件としてク
ラフトの不等式(2) が知られている。
In each of the above embodiments, the code table storage unit 1
Although the code table shown in FIG. 3 using the MH code for black run is stored in 6, 34 in the present invention, in the present invention, another code in which a white code and a black code are assigned to the same space is applied. Good.
For example, the code applied to the present invention is shown below (2)
Or a code may be created in consideration of the condition that the expression (5) and the continuation of one code appear but there is no continuation of the other code. First, Kraft's inequality (2) is known as the existence condition of codes that can be instantaneously decoded.

【0063】[0063]

【数2】 ここで、liは符号長、iはシンボル番号、kはシンボル
数である。この式(2)により符号の長さの組み合わせを
求めることができる。また、平均符号長Lは、シンボル
の出現確率をPiとすると、(3) 式で求められる。
(Equation 2) Here, li is the code length, i is the symbol number, and k is the number of symbols. A combination of code lengths can be obtained from this equation (2). Further, the average code length L is obtained by Expression (3), where Pi is the symbol appearance probability.

【0064】[0064]

【数3】 最小のLを与える符号をその情報源に対するコンパクト
符号と呼ばれる。コンパクト符号に関して平均符号長L
と情報源のエントロピーHとの間には(4) 式の関係があ
る。
(Equation 3) The code that gives the smallest L is called the compact code for that source. Average code length L for compact codes
And the entropy H of the information source has the relationship of equation (4).

【0065】[0065]

【数4】H≦L<H十1 ・・・(4) 以上のような考え方から、たとえば、図11に示す符号表
を作成することができる。
## EQU4 ## From the above concept, for example, a code table shown in FIG. 11 can be created.

【0066】また、上記各実施例では、画像圧縮装置と
画像伸張装置を別々に構成した例を説明したが、本発明
においては、同一筐体に両装置を設けてファクシミリな
どの伝送装置あるいは記録再生装置として構成してもよ
い。また、上記各実施例では白および黒という表現を用
いて2値画像を説明したが、本発明においては、たとえ
ば赤と黄色でもよいし、2つに弁別できるシンボルであ
ればどのようなものにも適用することができる。
Further, in each of the above embodiments, an example in which the image compression apparatus and the image decompression apparatus are separately configured has been described. However, in the present invention, both apparatuses are provided in the same housing and a transmission apparatus such as a facsimile or a recording apparatus is provided. You may comprise as a reproduction | regeneration apparatus. Further, in each of the above embodiments, the binary image is described using expressions of white and black. However, in the present invention, for example, red and yellow may be used, or any symbol that can be discriminated into two may be used. Can also be applied.

【0067】さらに、多値データの例として8ビット画
像の例を説明したが、その多値データのビット数は任意
のものでよい。また、多値の画像は、モノクロであって
もよいしカラーであってもよい。また、白あるいは黒
に"0" と"1" のいずれを使つてもよい。
Further, an example of an 8-bit image has been described as an example of multi-value data, but the number of bits of the multi-value data may be arbitrary. The multi-valued image may be monochrome or color. Either "0" or "1" may be used for white or black.

【0068】一方、図1および図2の実施例において、
黒のラン長1の符号を省略する場合を例に挙げて説明し
たが、本発明においては、いずれのランレングスの符号
を省略するかは任意である。
On the other hand, in the embodiment of FIG. 1 and FIG.
Although the case where the code of the black run length 1 is omitted has been described as an example, in the present invention, which run length code is omitted is arbitrary.

【0069】また、図8および図9の実施例において
は、出現頻度の上位の符号の対応表を作成して送る場合
を例に挙げて説明したが、たとえば、黒ラン1に符号を
与えたあらかじめ定めた固定の符号表にして、符号対応
表を送らずに省略ラン長のみの情報を送つてもよい。ま
た、現に符号化されたラン長の符号のみを表わす出現頻
度順の符号対応表を作成して送るようにしてもよい。ま
た、自然画像などの場合ビットプレーン毎の符号対応表
としてもよいし、ビットマップ全体としての符号対応表
としてもよい。
Further, in the embodiment of FIGS. 8 and 9, the case where a correspondence table of codes having higher appearance frequencies is created and transmitted has been described as an example. For example, a code is given to black run 1. A fixed code table determined in advance may be used, and information on only the omitted run length may be sent without sending the code correspondence table. Alternatively, a code correspondence table in the order of appearance frequency representing only the currently coded run length code may be created and sent. In the case of a natural image or the like, a code correspondence table for each bit plane may be used, or a code correspondence table for the entire bitmap may be used.

【0070】また、自然画像などの多値画像情報の場
合、JBIG (Joint Bi-level Image Experts Group) など
で用いられる算術符号化と本発明による2値画像符号化
とを組み合わせて適用してもよい。
Further, in the case of multi-valued image information such as a natural image, even if arithmetic coding used in JBIG (Joint Bi-level Image Experts Group) or the like and binary image coding according to the present invention are applied in combination. Good.

【0071】[0071]

【発明の効果】このように本発明の2値画像圧縮伸張方
法および画像圧縮装置ならびに画像伸張装置によれば、
2値画像情報を圧縮符号化する際に、白または黒のいず
れかのラン長に符号を与えずに、その符号を省略して符
号化するので、圧縮効率を高めることができる。その符
号化データを伸張する際には、同じ色の符号が連続する
部位を検出してそれらの間に省略されたデータを補完す
ることができるので、復号を簡単かつ容易に実行するこ
とができる。特に、黒および白がランダムに、かつ割合
が50%近くになる画像、たとえば、パソコンのテキスト
画像あるいは自然画像などの多値の画像情報をビットプ
レーン毎に2値符号化および復号する場合に有効に適用
することができるなどの効果を奏する。
As described above, according to the binary image compression / expansion method, the image compression apparatus, and the image expansion apparatus of the present invention,
When compressing and encoding the binary image information, the code is omitted and the code is omitted from the run length of either white or black, so that the compression efficiency can be improved. When decompressing the coded data, it is possible to detect portions where codes of the same color are continuous and complement data omitted between them, so that decoding can be performed easily and easily. . In particular, this method is effective when binary-coding and decoding of an image in which black and white are random and the ratio is close to 50%, for example, multi-valued image information such as a text image of a personal computer or a natural image, for each bit plane. And the like.

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

【図1】本発明による2値画像圧縮伸張方法が適用され
た画像圧縮装置の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an image compression apparatus to which a binary image compression / expansion method according to the present invention is applied.

【図2】本発明による2値画像圧縮伸張方法が適用され
た画像伸張装置の一実施例を示すブロック図である。
FIG. 2 is a block diagram showing an embodiment of an image decompression device to which a binary image compression / decompression method according to the present invention is applied.

【図3】図1および図2の実施例に適用される符号表の
一例を示す図である。
FIG. 3 is a diagram showing an example of a code table applied to the embodiment of FIGS. 1 and 2;

【図4】図2の実施例による画像伸張装置に適用される
伸張部の内部構成例を示すブロック図である。
FIG. 4 is a block diagram showing an example of the internal configuration of a decompression unit applied to the image decompression device according to the embodiment of FIG.

【図5】図1の実施例による画像圧縮装置の動作を説明
するためのフローチャートである。
FIG. 5 is a flowchart for explaining the operation of the image compression apparatus according to the embodiment of FIG. 1;

【図6】図1の実施例による画像圧縮装置の動作を説明
するための符号列を示す図である。
FIG. 6 is a diagram showing a code string for explaining the operation of the image compression device according to the embodiment of FIG. 1;

【図7】MH符号の例を示す図である。FIG. 7 is a diagram illustrating an example of an MH code.

【図8】本発明による2値画像圧縮伸張方法が適用され
た画像圧縮装置の他の実施例を示すブロック図である。
FIG. 8 is a block diagram showing another embodiment of an image compression apparatus to which a binary image compression / expansion method according to the present invention is applied.

【図9】本発明による2値画像圧縮伸張方法が適用され
た画像伸張装置の他の実施例を示すブロック図である。
FIG. 9 is a block diagram showing another embodiment of the image decompression device to which the binary image compression / decompression method according to the present invention is applied.

【図10】図8の実施例による画像圧縮装置にて検出さ
れるラン長の出現率の例を表わす図である。
FIG. 10 is a diagram illustrating an example of an appearance rate of a run length detected by the image compression device according to the embodiment of FIG. 8;

【図11】本発明による2値画像圧縮伸張方法および画
像圧縮装置ならびに画像伸張装置に適用される符号表の
他の例を示す図である。
FIG. 11 is a diagram illustrating another example of a code table applied to the binary image compression / expansion method, the image compression device, and the image expansion device according to the present invention.

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

10 データ入力部 12 ランレングス変換部 14、52 符号化部 16 符号表記憶部 18 データ出力部 30 データ入力部 32 符号表記憶部 34、60 伸張部 36 データ出力部 50 ラン長分布測定部 10 Data input unit 12 Run length conversion unit 14, 52 Encoding unit 16 Code table storage unit 18 Data output unit 30 Data input unit 32 Code table storage unit 34, 60 Decompression unit 36 Data output unit 50 Run length distribution measurement unit

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 2値画像情報を圧縮側にてそれぞれの2
値データの同一値が連続する長さに基づいて符号化し、
その符号化データを伸張側にて元の2値データに復号し
て元の2値画像情報を再生する2値画像圧縮伸張方法に
おいて、該方法は、 圧縮側にて、2値画像情報のそれぞれの2値データの同
一値が連続する長さを表わすラン長を順次求め、それぞ
れのラン長に所定の符号を割り当てて符号化する際に、
所定の2値からなるデータの所定のラン長を除く他のす
べてのラン長に、2値のいずれの値のデータのラン長で
あるかを判別可能に同一符号空間の符号を割り当てて順
次符号化して符号化データを出力し、 伸張側にて、前記圧縮側からの符号化データを受けた際
に、それぞれの符号が2値のいずれの値のデータの符号
であるかを順次検出しつつ、それぞれの符号を復号し
て、2値の同じ値のデータの符号が続く場合にそれらの
間に前記圧縮側で省略されたラン長のデータを補って元
の2値画像情報を再生することを特徴とする2値画像圧
縮伸張方法。
1. Binary image information is converted into two
The same value of the value data is encoded based on the continuous length,
In a binary image compression / expansion method for decoding the encoded data into original binary data on the expansion side and reproducing the original binary image information, the method comprises the steps of: When the run lengths indicating the lengths of the same values of the binary data are successively obtained are sequentially obtained, and when a predetermined code is assigned to each run length for encoding,
Codes in the same code space are assigned to all run lengths other than the predetermined run length of the predetermined binary data except for the predetermined run length so that it can be determined which of the two values the data has. When the encoded data is received from the compression side on the decompression side, the decompression side sequentially detects which of the two-valued data is the code of the binary data. Decoding the respective codes to reproduce the original binary image information by compensating for the run length data omitted on the compression side between them when the codes of the same binary data continue. A binary image compression / expansion method.
【請求項2】 請求項1に記載の2値画像圧縮伸張方法
において、該方法はあらかじめ前記圧縮側および伸張側
に、2値のいずれか一方の値のデータの所定のラン長を
除いた他のすべてのラン長に割り当てられる符号を表わ
す符号表を用意しておくことを特徴とする2値画像圧縮
伸張方法。
2. A method for compressing and expanding a binary image according to claim 1, wherein said method further comprises removing a predetermined run length of one of binary data on said compression side and expansion side in advance. A code table representing codes assigned to all run lengths of the binary image.
【請求項3】 請求項1に記載の2値画像圧縮伸張方法
において、前記圧縮側にて符号化する際に、それぞれの
データのラン長の分布を画像の全画面にわたって測定し
て分布の最大値を示すラン長を検出し、該ラン長を除く
他のすべてのラン長を順次符号化することを特徴とする
2値画像圧縮伸張方法。
3. The binary image compression / expansion method according to claim 1, wherein, when encoding is performed on the compression side, a distribution of run lengths of respective data is measured over the entire screen of the image, and the maximum of the distribution is measured. A binary image compression / expansion method comprising detecting a run length indicating a value and sequentially encoding all run lengths other than the run length.
【請求項4】 請求項3に記載の2値画像圧縮伸張方法
において、前記圧縮側は、省略したデータおよびそのラ
ン長を表わす情報を符号化データに付加して送り、前記
伸張側は、符号化データに付加された前記情報に基づい
て、2値の値が同一であるデータの符号が連続する部位
を検出して、それらの間に前記圧縮側で省略されたラン
長のデータを補完して、元の2値画像情報を再生するこ
とを特徴とする2値画像圧縮伸張方法。
4. The binary image compression / expansion method according to claim 3, wherein the compression side adds the information representing the omitted data and its run length to the encoded data and transmits the encoded data, and the expansion side transmits the encoded data. Based on the information added to the coded data, a portion where the code of the data having the same binary value is continuous is detected, and the data of the run length omitted on the compression side between them is complemented. And reproducing the original binary image information.
【請求項5】 請求項4に記載の2値画像圧縮伸張方法
において、該方法はあらかじめ前記圧縮側および伸張側
に、2値のいずれの値のデータの符号であるかを判別可
能に同一符号空間に割り当てられた符号を表わす符号表
を用意し、前記圧縮側にて前記符号表から符号を与えな
いデータのラン長を除いて他のすべてのラン長に適応的
に符号を割り当てて符号化することを特徴とする2値画
像圧縮伸張方法。
5. The binary image compression / expansion method according to claim 4, wherein said method uses the same code on said compression side and expansion side in advance so as to be able to determine which of two-valued data code. A code table representing codes assigned to a space is prepared, and codes are adaptively allocated to all other run lengths except for run lengths of data for which codes are not given from the code table on the compression side. A binary image compression / expansion method.
【請求項6】 それぞれの画素が2値データのいずれか
にて表わされる画像情報を圧縮符号化する画像圧縮装置
において、該装置は、 それぞれの画素を表わす2値データを順次入力するデー
タ入力手段と、 該データ入力手段からのそれぞれの画素が2値データの
いずれの値であるかを検出して、2値データの同一値が
連続するそれぞれの長さを表わすラン長を求めるランレ
ングス検出手段と、 少なくともいずれのデータの符号であるかを判別可能に
同一符号空間に割り当てられた符号を記憶する符号表記
憶手段と、 前記ランレングス検出手段からのそれぞれのラン長に前
記符号表記憶手段の符号を割り当てて符号化する符号化
手段であって、所定の2値からなるデータの所定のラン
長を除く他のすべてのラン長を順次符号化する符号化手
段とを含むことを特徴とする画像圧縮装置。
6. An image compression apparatus for compressing and encoding image information in which each pixel is represented by one of binary data, said apparatus comprising: data input means for sequentially inputting binary data representing each pixel Run length detecting means for detecting which value of each pixel from the data input means is binary data, and obtaining a run length representing each continuous length of the same value of the binary data. And code table storage means for storing a code assigned to the same code space so as to be able to determine at least which code of the data, and a code length of the code table storage means for each run length from the run length detection means. An encoding means for allocating and encoding a code, wherein said encoding means sequentially encodes all run lengths other than a predetermined run length of predetermined binary data. Image compression apparatus which comprises a.
【請求項7】 請求項6に記載の画像圧縮装置におい
て、該装置は、前記ランレングス検出手段にて求めたそ
れぞれのデータのラン長の分布を画像の全画面にわたっ
て測定するラン長測定手段と、そのラン長の分布の最大
値を検出する最大値検出手段とを含み、前記符号化手段
は、その最大値を示すラン長のデータに符号を割り付け
ずに、該ラン長を除く他のラン長のデータに符号を割り
付けて順次符号化することを特徴とする画像圧縮装置。
7. An image compression apparatus according to claim 6, wherein said apparatus comprises a run length measuring means for measuring a run length distribution of each data obtained by said run length detecting means over an entire screen of an image. And a maximum value detecting means for detecting the maximum value of the distribution of the run length, wherein the encoding means does not assign a code to the data of the run length indicating the maximum value, and executes other run except the run length. An image compression apparatus characterized in that a code is assigned to long data and sequentially encoded.
【請求項8】 請求項7に記載の画像圧縮装置におい
て、前記符号化手段は符号を割り当てなかったデータお
よびそのラン長を表わす情報を符号化データに付加して
出力することを特徴とする画像圧縮装置。
8. An image compression apparatus according to claim 7, wherein said coding means adds data to which no code is assigned and information indicating a run length thereof to the coded data and outputs the coded data. Compression device.
【請求項9】 請求項6ないし請求項8のいずれかに記
載の画像圧縮装置にて符号化された画像情報の符号化デ
ータを伸張して元の画像情報を再生する画像伸張装置で
あって、該装置は、 符号化データを順次入力するデータ入力手段と、 少なくともいずれのデータの符号であるかを判別可能に
同一符号空間に割り当てられた符号を記憶する符号表記
憶手段と、 該符号表記憶手段の符号表に基づいて前記データ入力手
段からの符号化データがいずれのデータの符号であるか
を判定するデータ判定手段と、 該データ判定手段にて判定されたそれぞれの符号を前記
符号表記憶手段の符号表に基づいて元のラン長のデータ
に復号する復号手段と、 前記データ判定手段にて判定した結果に基づいて同じ値
の2値からなるデータの符号が連続しているか否かを検
出する符号検出手段と、 該符号検出手段の結果に基づいて、同じ値の2値からな
るデータの符号が連続している際に、前記復号手段にて
復号されたデータ間に前記符号化手段で省略されたデー
タを補完するデータ補完手段とを含むことを特徴とする
画像伸張装置。
9. An image decompression device for decompressing encoded data of image information encoded by the image compression device according to claim 6 to reproduce original image information. Data input means for sequentially inputting coded data; code table storage means for storing at least codes assigned to the same code space so as to be able to determine which data is the code; Data determining means for determining which code the encoded data from the data input means is based on the code table of the storage means; and each code determined by the data determining means is provided in the code table. Decoding means for decoding the data into the original run length based on the code table of the storage means, and whether the binary codes of the same value are continuous based on the result determined by the data determination means Code detecting means for detecting whether the code of binary data having the same value is continuous based on the result of the code detecting means; An image decompression device comprising: data complementing means for complementing data omitted by the converting means.
【請求項10】 請求項9に記載の画像伸張装置におい
て、該装置は、前記符号化データに付加された省略され
たデータおよびそのラン長の情報を検出する情報検出手
段を含み、前記復号手段は、前記情報検出手段からの情
報に基づいて前記符号表記憶手段の符号表をそれぞれの
データのラン長に応じて割り当てて、それぞれの符号を
復号することを特徴とする画像伸張装置。
10. The image decompression device according to claim 9, wherein said device includes information detection means for detecting omitted data added to said encoded data and information on its run length, and said decoding means. Is an image decompressing apparatus for allocating a code table of the code table storage means based on information from the information detection means in accordance with a run length of each data, and decoding each code.
JP33995898A 1998-11-30 1998-11-30 Binary image companding method, image compressor and image expander Withdrawn JP2000165680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33995898A JP2000165680A (en) 1998-11-30 1998-11-30 Binary image companding method, image compressor and image expander

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33995898A JP2000165680A (en) 1998-11-30 1998-11-30 Binary image companding method, image compressor and image expander

Publications (1)

Publication Number Publication Date
JP2000165680A true JP2000165680A (en) 2000-06-16

Family

ID=18332384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33995898A Withdrawn JP2000165680A (en) 1998-11-30 1998-11-30 Binary image companding method, image compressor and image expander

Country Status (1)

Country Link
JP (1) JP2000165680A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013140530A1 (en) * 2012-03-19 2013-09-26 富士通株式会社 Program, compressed data generation method, decompression method, information processing device, and recording medium
CN114827625A (en) * 2022-04-27 2022-07-29 武汉大学 High-speed image cloud transmission method based on gray scale image compression algorithm

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013140530A1 (en) * 2012-03-19 2013-09-26 富士通株式会社 Program, compressed data generation method, decompression method, information processing device, and recording medium
US9094041B2 (en) 2012-03-19 2015-07-28 Fujitsu Limited Encoding method, information processing apparatus, and recording medium
CN114827625A (en) * 2022-04-27 2022-07-29 武汉大学 High-speed image cloud transmission method based on gray scale image compression algorithm

Similar Documents

Publication Publication Date Title
JP2621747B2 (en) Image processing device
US7483585B2 (en) Image compression using variable bit size run length encoding
JP3237582B2 (en) Image processing apparatus and image processing method
US7650039B2 (en) Image encoding apparatus, image decoding apparatus, control method therefor, computer program, and computer-readable storage medium
US6912318B2 (en) Method and system for compressing motion image information
JPH11252563A (en) Image coder, image decoder, image processing unit, image coding method, image decoding method and image processing method
JPH10215379A (en) Image coder and image decoder
JPH09200532A (en) Multilevel image data transmitter
JP2000165680A (en) Binary image companding method, image compressor and image expander
JPH09205647A (en) Image coder, image decoder and image processor
AU686356B2 (en) Lossy compression land expansion algorithm for image representative data
Rauschenbach Compression of palettized images with progressive coding of the color information
JP4748805B2 (en) Image coding apparatus and control method thereof
JPH06178122A (en) Adaptive encoding device for color image
US6272256B1 (en) Fast compression of periodic halftoned bitonal images
JP4971881B2 (en) Image encoding apparatus, image decoding apparatus, and control method thereof
JP3263218B2 (en) Image information data compression and playback device
JP2009130467A (en) Image encoding apparatus and method of controlling the same
JPH07147638A (en) Image processor
EP1170956A2 (en) Method and system for compressing motion image information
JP2005252531A (en) Device and program for compressing data
JPH10285405A (en) Image data coder and image data coding method
JP2002158878A (en) Image processor and image processing method
JP2002199227A (en) Image compression method and device, recording medium
WO2006025090A1 (en) Image restoration device, image restoration method, and image restoration program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060207