JPH06338806A - Mh compression device - Google Patents

Mh compression device

Info

Publication number
JPH06338806A
JPH06338806A JP12910593A JP12910593A JPH06338806A JP H06338806 A JPH06338806 A JP H06338806A JP 12910593 A JP12910593 A JP 12910593A JP 12910593 A JP12910593 A JP 12910593A JP H06338806 A JPH06338806 A JP H06338806A
Authority
JP
Japan
Prior art keywords
code
pixel length
pixel
white
codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP12910593A
Other languages
Japanese (ja)
Inventor
Makoto Michigami
誠 道上
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP12910593A priority Critical patent/JPH06338806A/en
Publication of JPH06338806A publication Critical patent/JPH06338806A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To execute code conversion by providing data structure capable of generating plural codes simultaneously at a device which converts by compressing image information to a code. CONSTITUTION:A picture element length judging means 13 receives one or plural pieces of picture element length from a picture element length detecting means 12, and judges whether or not they can be processed simultaneously. When it is possible, the plural codes can be generated simultaneously by using code tables 2, 16. While, it is not, they are converted to codes one by one by using code tables 1, 15. The compression of image information can be performed at high speed by employing such constitution.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画情報を圧縮してMHコ
ードに変換するMH圧縮装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an MH compression device for compressing image information and converting it into an MH code.

【0002】[0002]

【従来の技術】二値画像の圧縮方式としてMH符号化法
はファクシミリ等に広く使用されている。MH符号は画
像情報中の白または黒の連続した同色の画素数に対して
対応した符号である。これは(表1)に示した通り画素
長0〜63に対応して単独で用いられるターミネート符
号と、64以上の画素長を表すときにターミネート符号
の前に置かれるメイクアップ符号とに分けられる。
2. Description of the Related Art The MH coding method is widely used as a compression method for binary images in facsimiles and the like. The MH code is a code corresponding to the number of consecutive white or black pixels of the same color in the image information. As shown in (Table 1), this is divided into a termination code used alone corresponding to the pixel lengths 0 to 63, and a makeup code placed before the termination code when a pixel length of 64 or more is represented. .

【0003】[0003]

【表1】 [Table 1]

【0004】メイクアップ符号は64〜2560の64
の倍数である。図5は実際のMHコードの構成を示した
ものである。図5(a)は3の長さの白画素長をMHコ
ードで表している。これは表1に示した通り、1000
というコードで表される。また図5(b)は、130の
長さの白画素長をMHコードで表している。この場合、
一つのコードで表せる限界である63を超えているの
で、130の内64の倍数である128の画素長は10
010とコード化され、残り2は0111とコード化さ
れて合計130を表している。
The makeup code is 64 from 64 to 2560.
Is a multiple of. FIG. 5 shows the structure of an actual MH code. In FIG. 5A, the white pixel length of 3 is represented by the MH code. This is 1000 as shown in Table 1.
It is represented by the code. Further, in FIG. 5B, the white pixel length of 130 is represented by the MH code. in this case,
Since it exceeds the limit of 63 that can be represented by one code, the pixel length of 128, which is a multiple of 64 of 130, is 10
The remaining two are coded as 010 and the remaining two are coded as 0111 to represent a total of 130.

【0005】また図5(c)は、2625の長さの白画
素長をMHコードで表している。この場合も、一つのコ
ードで表せる限界である63を超えているので、262
5の内64の倍数である2560の画素長は00000
0011111とコード化される。さらに残り65も6
3を超えているので、残り65の内64は11011と
コード化される。そして残り1は000111とコード
化されて合計2625を表している。
Further, in FIG. 5C, the white pixel length of 2625 is represented by the MH code. Also in this case, since the limit of 63 that can be represented by one code is exceeded, 262
The pixel length of 2560, which is a multiple of 64 out of 5, is 00000
Coded as 0011111. Furthermore, the remaining 65 is 6
Since there are more than three, 64 of the remaining 65 are coded as 11011. The remaining 1 is coded as 000111 and represents a total of 2625.

【0006】この様なコードを作成するためには、画素
長をチェックして64以上であればメイクアップコード
を生成して、その分の長さを最初の画素長から引き、再
び画素長をチェックして、同様の動作を画素長が63以
下になるまで続ける必要があった。
In order to create such a code, the pixel length is checked, and if it is 64 or more, a makeup code is generated, the length corresponding to that is subtracted from the initial pixel length, and the pixel length is again calculated. It was necessary to check and continue the same operation until the pixel length became 63 or less.

【0007】[0007]

【発明が解決しようとする課題】しかしながら上記の従
来の方法では、画素長63ビットを僅かに超えた場合に
でも、複数のコードを発生しなければならず、また同様
に、メイクアップ符号の最大該当画素長である2560
を超えた場合には、複数のメイクアップ符号を発生しな
ければならない場合もある。
However, in the above-mentioned conventional method, a plurality of codes must be generated even when the pixel length slightly exceeds 63 bits, and similarly, the maximum number of makeup codes is increased. The corresponding pixel length is 2560
In some cases, more than one make-up code may have to be generated.

【0008】さらに、細かい図面、疑似中間調のような
画像を圧縮した場合には、短い画素が多発するために多
大な処理時間が掛かってしまうという問題点を有してい
た。
Further, when an image such as a fine drawing or a pseudo halftone image is compressed, a large number of short pixels frequently occur, resulting in a long processing time.

【0009】またこれらの高速化をするためには、複雑
な装置を組み合わせて動作を平行して処理するような必
要もあった。
Further, in order to speed up these operations, it was necessary to combine complicated devices to process the operations in parallel.

【0010】本発明は、上記従来の問題点を解決するも
ので、一つの画素長に対する複数のコードを、更には複
数の画素長に対する複数のコードを、複雑な装置を付加
する事なく同時に出力する手段を提供することを目的と
する。
The present invention solves the above-mentioned conventional problems, and simultaneously outputs a plurality of codes for one pixel length and a plurality of codes for a plurality of pixel lengths at the same time without adding a complicated device. The purpose is to provide a means of doing.

【0011】[0011]

【課題を解決するための手段】この目的を達成するため
に本発明の画像圧縮装置は、画素長によってアクセスさ
れる一つのアドレスに、その画素長に対応したMHター
ミネートコードとMHメイクアップコードを組み合わせ
たコード及びその組み合わせたコード長を記憶させたテ
ーブルを備え、更には複数の画素長によってアクセスさ
れる一つのアドレスに、該当の複数の画素長に対応した
MHターミネートコードとMHメイクアップコードを組
み合わせたコード及びその組み合わせたコード長を記憶
させたテーブルを有している。
In order to achieve this object, the image compression apparatus of the present invention provides an MH terminate code and an MH make-up code corresponding to the pixel length at one address accessed by the pixel length. It is provided with a table storing the combined codes and the combined code lengths, and further, at one address accessed by a plurality of pixel lengths, an MH terminate code and an MH make-up code corresponding to the corresponding plurality of pixel lengths. It has a table that stores the combined codes and the combined code lengths.

【0012】[0012]

【作用】この構成によって、一つの画素長がある範囲の
中に納まるとき、または複数の画素長のそれぞれがある
範囲に納まるときに、上記テーブルを参照することで、
該当のコードを一度に生成することができる。
With this configuration, when one pixel length falls within a certain range, or when each of a plurality of pixel lengths falls within a certain range, by referring to the above table,
The corresponding code can be generated at once.

【0013】[0013]

【実施例】【Example】

(実施例1)以下本発明の一実施例について、図面を参
照しながら説明する。図1は本実施例によるMHコード
圧縮装置の概略ブロック図である。画像入力手段11か
ら送られてきた画情報は画素長検出手段12で画素長に
変換される。そして画素長判断手段13によって、規定
より長い場合はコード表1(15)を、そうでなければ
コード表2(16)を参照するようにMHコード化手段
14に指令する様に構成する。(表1)
(Embodiment 1) An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic block diagram of an MH code compression apparatus according to this embodiment. The image information sent from the image input means 11 is converted into a pixel length by the pixel length detection means 12. Then, the pixel length determination means 13 is configured to instruct the MH coding means 14 to refer to the code table 1 (15) if it is longer than the specified value, and to refer to the code table 2 (16) otherwise. (Table 1)

【0014】[0014]

【表2】 [Table 2]

【0015】以上のように構成された画像圧縮装置につ
いて、図2のフローチャートを使ってその動作を説明す
る。まず、画素長0〜127をコード化する場合を考え
てみると、その場合には表2を一度参照することで該当
するコードが得られる。
The operation of the image compression apparatus configured as above will be described with reference to the flowchart of FIG. First, considering the case where the pixel lengths 0 to 127 are coded, in that case, by referring to Table 2 once, the corresponding code can be obtained.

【0016】次に画素長128以上をコード化する場合
を考えてみる。この場合は表2を参照しても一度では該
当のコードを得られないため、従来のやり方で(表1)
を参照して該当のメイクアップコード得た後に(表2)
を参照して該当のコードを得る。この方法を使用した場
合は、画素長64〜127のコード化をしたときにも一
度の参照で該当のコードを得ることが出来る。
Next, consider the case where a pixel length of 128 or more is encoded. In this case, even if you refer to Table 2, you will not be able to obtain the corresponding code once, so you can use the conventional method (Table 1).
After getting the relevant makeup code by referring to (Table 2)
To get the corresponding code. When this method is used, the corresponding code can be obtained by referring once even when the pixel lengths of 64 to 127 are coded.

【0017】例えば、127の長さの白画素長をMHコ
ードで表す場合、従来技術では”白63ターミネートコ
ード”と”白64メイクアップコード”の2回の参照が
必要であったが、本実施例によれば一度の参照でコード
化が可能でる。
For example, when a white pixel length of 127 is represented by an MH code, in the prior art, it was necessary to refer twice, "white 63 terminate code" and "white 64 makeup code". According to the embodiment, it is possible to code with a single reference.

【0018】この動作から明らかな様に、ある特定の範
囲内の画素長に対しては、本来複数回の参照が必要であ
るが、本実施例によれば、一度の参照で処理することが
出来る。
As is apparent from this operation, for the pixel length within a certain specific range, it is originally necessary to refer to a plurality of times, but according to the present embodiment, it is possible to process with a single reference. I can.

【0019】(実施例2)以下本発明の第2の実施例に
ついて図面を参照しながら説明する。 図3は本実施例
によるMHコード圧縮装置の概略ブロック図である。画
像入力手段31から送られてきた画情報は画素長検出手
段32で画素長に変換される。そして白画素長判断手段
33及び黒画素長判断手段34によって、それぞれ規定
より長い場合はコード表1(36)とコード表2(3
7)を参照して白黒別々に実施例1と同様に処理し、そ
うでなければコード表3(38)を参照するようにMH
コード化手段35に指令する様に構成する。
(Second Embodiment) A second embodiment of the present invention will be described below with reference to the drawings. FIG. 3 is a schematic block diagram of the MH code compression apparatus according to this embodiment. The image information sent from the image input unit 31 is converted into a pixel length by the pixel length detection unit 32. If the white pixel length determining means 33 and the black pixel length determining means 34 are longer than specified, the code table 1 (36) and the code table 2 (3)
7) separately for black and white and processed in the same manner as in Example 1; otherwise, refer to Code Table 3 (38) for MH
The encoding means 35 is instructed.

【0020】表1、表2は実施例1と同様なものであ
る。実施例1と異なるのは、表2の内容を複数の画素長
にまで拡張した表3を追加した点である。 (表1) (表2)
Tables 1 and 2 are the same as in Example 1. The difference from the first embodiment is that Table 3 in which the contents of Table 2 are expanded to a plurality of pixel lengths is added. (Table 1) (Table 2)

【0021】[0021]

【表3】 [Table 3]

【0022】以上のように構成された画像圧縮装置につ
いて、図4のフローチャートを使ってその動作を説明す
る。まず、白画素長20,黒画素長5と続いた画面をコ
ード化することを考える。この場合(表1)及び(表
2)では2回の参照を必要とするので、(表3)を一度
参照することで該当のコードを得る。次に白画素長5
0,黒画素長10と続いた画面をコード化することを考
える。この場合は黒画素長は表3の範囲に納まっている
が白画素長は納まっていないため、実施例1のやり方で
表1及び表2を参照する。
The operation of the image compression apparatus configured as described above will be described with reference to the flowchart of FIG. First, consider encoding a continuous screen with a white pixel length of 20 and a black pixel length of 5. In this case, since (Table 1) and (Table 2) require reference twice, the reference code is obtained by referring to (Table 3) once. Next white pixel length 5
Consider encoding a continuous screen with 0 and a black pixel length of 10. In this case, the black pixel length falls within the range of Table 3 but the white pixel length does not fall within the range, and therefore, Tables 1 and 2 are referred to by the method of the first embodiment.

【0023】この動作から明らかな様に、ある特定の範
囲内の2つの画素長(この場合は白0〜31,黒0〜1
5)に対しては、本来複数回の参照が必要であるが、本
実施例によれば、一度の参照で処理することが出来る。
As is apparent from this operation, two pixel lengths within a specific range (in this case, white 0 to 31, black 0 to 1)
Although it is originally necessary to refer to the item 5) a plurality of times, according to this embodiment, it is possible to perform the process with a single reference.

【0024】なお、第1の実施例において表2の上限画
素長を127としたが、191や255としても同様で
ある。また、第2の実施例では表3の上限画素長を白3
1,黒15としたが、白63,黒31や白255,黒12
7、更には白63,黒63,白63,黒63等と、4画素
長に対応するような構成でも同様の処理が出来ることは
言うまでもない。
Although the upper limit pixel length in Table 2 is 127 in the first embodiment, the same applies to 191 and 255. In the second embodiment, the upper limit pixel length in Table 3 is set to white 3.
1, black 15 was used, but white 63, black 31 and white 255, black 12
It goes without saying that the same processing can be performed with a configuration corresponding to 4 pixel lengths, such as 7, 63, black 63, white 63, black 63, and so on.

【0025】[0025]

【発明の効果】以上のように本発明は、一度の参照で複
数コードを生成出来るデータ構造を設けることにより、
複雑な装置を付加する事なく高速にMHコードを生成す
ることができる優れたMH圧縮装置を実現できるもので
ある。
As described above, according to the present invention, by providing a data structure capable of generating a plurality of codes with one reference,
It is possible to realize an excellent MH compression device that can generate an MH code at high speed without adding a complicated device.

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

【図1】本発明の第1の実施例におけるMHコード圧縮
装置の概略ブロック図
FIG. 1 is a schematic block diagram of an MH code compression device according to a first embodiment of the present invention.

【図2】本発明の第1の実施例におけるMHコード圧縮
の動作説明のための概略フローチャート
FIG. 2 is a schematic flowchart for explaining an operation of MH code compression in the first embodiment of the present invention.

【図3】本発明の第2の実施例におけるMHコード圧縮
装置の概略ブロック図
FIG. 3 is a schematic block diagram of an MH code compression device according to a second embodiment of the present invention.

【図4】本発明の第2の実施例におけるMHコード圧縮
の動作説明のための概略フローチャート
FIG. 4 is a schematic flowchart for explaining an operation of MH code compression in the second embodiment of the present invention.

【図5】MHコードの構成図FIG. 5: MH code configuration diagram

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

11 画像入力手段 12 画素長検出手段 13 画素長判断手段 14 MHコード化手段 15 コード表1 16 コード表2 31 画像入力手段 32 画素長検出手段 33 白画素長判断手段 34 黒画素長判断手段 35 MHコード化手段 36 コード表1 37 コード表2 38 コード表3 11 Image Input Means 12 Pixel Length Detecting Means 13 Pixel Length Judging Means 14 MH Encoding Means 15 Code Table 1 16 Code Table 2 31 Image Input Means 32 Pixel Length Detecting Means 33 White Pixel Length Judging Means 34 Black Pixel Length Judging Means 35 MH Encoding means 36 Code table 1 37 Code table 2 38 Code table 3

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 画素長と前記画素長に対応するMHメイ
クアップコードとMHターミネートコードからなるMH
コードを要素とするテーブルを備えたことを特徴とする
MH圧縮装置。
1. An MH comprising a pixel length, an MH makeup code corresponding to the pixel length, and an MH terminate code.
An MH compression apparatus comprising a table having a code as an element.
【請求項2】 画素長が白画素と黒画素の組み合わせで
あることを特徴とする請求項1記載のMH圧縮装置。
2. The MH compression apparatus according to claim 1, wherein the pixel length is a combination of white pixels and black pixels.
JP12910593A 1993-05-31 1993-05-31 Mh compression device Pending JPH06338806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12910593A JPH06338806A (en) 1993-05-31 1993-05-31 Mh compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12910593A JPH06338806A (en) 1993-05-31 1993-05-31 Mh compression device

Publications (1)

Publication Number Publication Date
JPH06338806A true JPH06338806A (en) 1994-12-06

Family

ID=15001198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12910593A Pending JPH06338806A (en) 1993-05-31 1993-05-31 Mh compression device

Country Status (1)

Country Link
JP (1) JPH06338806A (en)

Similar Documents

Publication Publication Date Title
US5491564A (en) Data compression method and apparatus for binary image using Markov model encoding
JP2511158B2 (en) Image compression device
JP2000125111A (en) Picture compression method, picture restoration method, picture compression device, picture reader, picture compression program storage medium and picture restoration program storage medium
CN101065760B (en) System and method for processing image data
JPH06338806A (en) Mh compression device
JP3432039B2 (en) Image encoding method and apparatus
JP2663922B2 (en) Video encoding device
JP2003189108A (en) Image compression method
JP3375080B2 (en) Image compression method
JP3375079B2 (en) Image compression device
JP3376831B2 (en) Image compression method
JP3375078B2 (en) Image compression device
JPH04270569A (en) Data compression system for picture processor
JP2839578B2 (en) Image data input processing device
JPS63138882A (en) Data compressor
JP2966426B2 (en) Color image processing apparatus and method
JPH041552B2 (en)
JPH04181819A (en) Receiver for coded data
JP3134461B2 (en) Change point detection circuit
JPS5947915B2 (en) Color image signal processing device
JPH0722345B2 (en) Image information compression method
JPH06237387A (en) Picture processing unit
JPH0520414A (en) Electronic filing device
JPH05268591A (en) Picture coding method and picture coder
JPH0396071A (en) Dither image data compression system