JP2546879B2 - Encoder - Google Patents

Encoder

Info

Publication number
JP2546879B2
JP2546879B2 JP63097157A JP9715788A JP2546879B2 JP 2546879 B2 JP2546879 B2 JP 2546879B2 JP 63097157 A JP63097157 A JP 63097157A JP 9715788 A JP9715788 A JP 9715788A JP 2546879 B2 JP2546879 B2 JP 2546879B2
Authority
JP
Japan
Prior art keywords
coding
complexity
encoding
image
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63097157A
Other languages
Japanese (ja)
Other versions
JPH01268350A (en
Inventor
康雄 黒須
信明 伊豆野
秀文 増崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63097157A priority Critical patent/JP2546879B2/en
Publication of JPH01268350A publication Critical patent/JPH01268350A/en
Application granted granted Critical
Publication of JP2546879B2 publication Critical patent/JP2546879B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、光ディスク等を備えた電子ファイリング装
置の符号化回路に係り、特に線図形が主体の図面類の蓄
積において高い圧縮率を提供するのに好適な符号化装置
に関する。
The present invention relates to an encoding circuit of an electronic filing device equipped with an optical disc or the like, and particularly provides a high compression rate in accumulating drawings mainly composed of line drawings. The present invention relates to an encoding device suitable for.

[従来の技術] 近年、電子ファイリング装置は、オフィスやデザイン
・センターのペーパーレス化を推進する手段として注目
を集め、より大型な図面を高精細に蓄積できる装置が出
現し始めている。この様な動向に従って、光ディスクへ
の画像データの格納枚数を決定する種々の符号化方式が
提案されている。符号化方式は、原画像データをノイズ
も含めそっくりそのまま再現できる無歪符号化方式と、
必要な情報の中身が保持されるならば必ずしもそっくり
そのままの再現を目指さない有歪符号化方式とに大別で
きる。従来、文字が主体の画像を対象とするファクシミ
リ装置では無歪符号化方式が多用され、線図形が主体の
画像を対象とする図面認識装置では有歪符号化方式が多
用されていた。
[Prior Art] In recent years, an electronic filing device has attracted attention as a means for promoting paperless offices and design centers, and devices capable of accumulating larger drawings with high precision have begun to appear. In accordance with such trends, various encoding methods for determining the number of image data stored on the optical disc have been proposed. The encoding method is a distortion-free encoding method that can reproduce the original image data as it is including noise,
If the necessary information contents are retained, it can be roughly divided into a distorted coding method that does not aim to reproduce exactly as it is. 2. Description of the Related Art Conventionally, a distortion-free coding method has been widely used in a facsimile apparatus that targets an image mainly composed of characters, and a distortion coding method has been frequently used in a drawing recognition apparatus that targets an image mainly composed of line graphics.

一方、従来の電子ファイリング装置としては、特開昭
59−34767号公報に記載のように、ファクシミリ装置と
同様な無歪符号化方式を利用したものが知られている。
On the other hand, a conventional electronic filing device is disclosed in
As described in Japanese Patent Laid-Open No. 59-34767, there is known one using a distortion-free coding system similar to a facsimile machine.

すなわち2値画像を対象とした無歪符号化方式は、走
査線方向の関係だけで符号化する一次元符号化方式と垂
直方向の関係も利用して符号化する2次元符号化方式に
大別することができる。前者はMH(Modified Huffman)
符号化方式に相当し、後者はMR(Modified READ)符号
化方式またはMMR(Modified Modified READ)符号化方
式に相当する。
That is, the distortion-free encoding method for a binary image is roughly classified into a one-dimensional encoding method that encodes only in the scanning line direction and a two-dimensional encoding method that also uses the vertical direction. can do. The former is MH (Modified Huffman)
The latter corresponds to the MR (Modified READ) coding method or the MMR (Modified Modified READ) coding method.

MH符号化方式は、白または黒のランレングスに着目
し、出現頻度の高いものに短い符号を、低いものに長い
符号を割り当てる。0〜63ビットのランレングスまた
は、ターミネイティング符号と呼ばれる符号で構成し、
64〜1728ビットのランレングスはメイクアップ符号と呼
ばれる符号で構成する。
In the MH coding method, paying attention to white or black run lengths, short codes are assigned to those having a high appearance frequency, and long codes are assigned to those having a low appearance frequency. It is composed of 0-63 bit run length or a code called terminating code,
A run length of 64 to 1728 bits is composed of a code called a makeup code.

MR符号化方式は、画面上に現れるパターンを3種類の
モードすなわちパス/垂直/水平に識別して、それぞれ
に対して可変長符号を割り当てる。通常の画像は、±3
画素以内の垂直モードで符号化される割合が、非常に多
いので高能率符号化が達成される。また、数ライン1本
の割合でMH符号化方式を用いて符号化する。MMR符号化
方式はMR符号化方式を拡張した形式であり、MH符号化方
式を用いるラインを設けない符号化方式である。
The MR coding system identifies patterns appearing on the screen into three types of modes, that is, pass / vertical / horizontal, and assigns a variable length code to each of them. Normal image is ± 3
High efficiency coding is achieved because the rate of vertical mode coding within pixels is very high. In addition, coding is performed using the MH coding method at a rate of one for several lines. The MMR coding method is an extension of the MR coding method, and is a coding method that does not include a line using the MH coding method.

以上述べた如く、上記第1の従来技術を用いた装置
は、白や黒のランレングスを忠実に可変長符号に割り当
てるため、文字等の複雑な画像であってもそっくりその
まま再現することができる。
As described above, the device using the first conventional technique faithfully assigns white or black run lengths to variable-length codes, so that even complicated images such as characters can be reproduced exactly as they are. .

また、従来の手書図面を認識する装置としては、特開
昭61−147382号公報に記載のように、画像データの特徴
抽出手段として有歪符号化方式を利用したものが知られ
ている。
Further, as a conventional device for recognizing handwritten drawings, there is known a device using a distortion coding method as a feature extracting means of image data, as described in Japanese Patent Application Laid-Open No. 61-147382.

有歪符号化方式は、原画像を完全に再現できないが、
外見上、原画像との差をほとんど感じないように少ない
データ量で表現するものである。線図形画像をベクトル
化する方法、直交交換関数を用いて画像を展開する方
法、画像を小ブロックに分割してその基本統計量分布で
表わす方法等の多数の方式が提案されている。ここで
は、本発明に最も顕著な効果を表わすベクトル化手法に
ついて言及する。
The distorted coding system cannot completely reproduce the original image,
It is expressed with a small amount of data so that the difference from the original image is hardly felt. A number of methods have been proposed, such as a method of vectorizing a line graphic image, a method of developing an image using an orthogonal exchange function, a method of dividing an image into small blocks and expressing the basic statistical distribution. Here, reference will be made to a vectorization technique that exhibits the most remarkable effect of the present invention.

すなわち、入力された線図形を構成する連結図形をそ
の外接長方形の大きさ、縦線分長等の特徴により文字図
形と線図形に分離する。次に細線化処理を施こし、太さ
1ドットの線図形に変換する。最後に線図形の端点、屈
曲点を順次認識し、対応する特徴点間をベクトル近似す
る。
In other words, the connected figure forming the input line figure is separated into a character figure and a line figure according to the features such as the size of the circumscribing rectangle and the length of the vertical line segment. Next, a thinning process is performed to convert it into a line figure having a thickness of 1 dot. Finally, the end points and bending points of the line figure are sequentially recognized, and the corresponding feature points are vector-approximated.

以上述べた如く、上記第2の従来技術を用いた装置
は、線図形画像の特徴点間をベクトル近似するため、図
面等の線図形画像を対象とした場合は、上記第1の従来
技術に比べ画像データの情報圧縮率を飛躍的に向上させ
ることができる。
As described above, since the apparatus using the second conventional technique approximates the feature points of the line graphic image by vector approximation, when the line graphic image such as a drawing is targeted, the device according to the first conventional technique is used. In comparison, the information compression rate of image data can be dramatically improved.

[発明が解決しようとする課題] 上記特開昭59−34767号公報に記載される従来技術
は、文字等の複雑な画像を忠実に再現することに主眼を
置いているため、画像データの情報圧縮率については2
次的な配慮しかされておらず、5〜20倍程度の情報圧縮
率しか達成できないという問題点があった。しかも、図
面類の大型化や高精細化に伴ない、光ディスク一枚当り
の格納枚数が急激に減少し、実用上大きな障害となって
きた。
[Problems to be Solved by the Invention] Since the prior art described in Japanese Patent Laid-Open No. 59-34767 is focused on faithfully reproducing complicated images such as characters, information of image data 2 for compression rate
Only secondary consideration was given, and there was a problem that only an information compression ratio of about 5 to 20 times could be achieved. Moreover, with the increase in size and definition of drawings, the number of stored discs per optical disc drastically decreases, which is a serious obstacle to practical use.

上記特開昭61−147382号公報に記載される従来技術
は、図面認識において線図形を忠実にベクトル化するこ
とに主眼を置いているため、文字等の複雑な図形に対す
る符号化については考慮されておらず、線図形だけで構
成された画像に対しては高い圧縮率を達成できるもの
の、文字等が混在した図面の符号化が不可能であるとい
う問題点があった。
Since the prior art described in the above-mentioned JP-A-61-147382 focuses on faithfully vectorizing a line figure in drawing recognition, consideration is given to encoding for a complicated figure such as a character. However, although a high compression rate can be achieved for an image composed only of line figures, there is a problem that it is impossible to encode a drawing in which characters and the like are mixed.

本発明の目的は、かかる問題点を解消し、文字が混在
した図面を高効率に圧縮する符号化装置を提供すること
にある。
An object of the present invention is to solve such a problem and to provide an encoding device which highly efficiently compresses a drawing in which characters are mixed.

[課題を解決するための手段] 上記目的を達成するために、本発明は、2値画像の符
号化装置において、上記2値画像をそっくりそのまま符
号化する無歪符号化手段と、上記2値画像の必要な情報
のみを圧縮する有歪符号化手段と、上記2値画像の複雑
度を判定する複雑度検出手段とを設け、該複雑度検出手
段の検出結果に応じて、上記無歪符号化手段と有歪符号
化手段を選択的に切換えて符号化を行うことを特徴とす
るものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention is a binary image coding apparatus, wherein a distortion-free coding means for coding the binary image as it is, and the binary value. Distorted coding means for compressing only necessary information of the image and complexity detection means for determining the complexity of the binary image are provided, and the distortionless code is obtained according to the detection result of the complexity detection means. The encoding means is selectively switched between the encoding means and the distorted encoding means.

本発明は、他の見地によれば、2値画像の符号化装置
において、上記2値画像を符号化する複数種類の符号化
手段と、上記2値画像の複雑度を検出する複雑度検出手
段とを設け、該複雑度検出手段を検出結果に応じて、上
記複数の符号化手段のうちから圧縮率が最大となる符号
化手段を切換選択して符号化を行うことを特徴とするも
のである。
According to another aspect of the present invention, in a binary image encoding device, a plurality of types of encoding means for encoding the binary image and a complexity detection means for detecting the complexity of the binary image. Is provided, and the encoding means having the maximum compression rate is switched and selected from the plurality of encoding means according to the detection result, and the encoding is performed. is there.

上記無歪符号化手段としては、例えば、国際標準規格
であるMH符号化方式、MR符号化方式、またはMMR符号化
方式を利用する。
As the distortion-free coding means, for example, the MH coding method, the MR coding method, or the MMR coding method, which is an international standard, is used.

上記有歪符号化手段としては、例えば、線図形のベク
トル符号化方式を利用する。
As the above distortion coding means, for example, a vector coding method of a line figure is used.

上記複雑度検出手段は、例えば、上記2値化画像の単
位ブロック毎に少なくとも1軸方向の各ラインにおいて
画像が変化する回数を計数することにより、複雑度を検
出するものである。
The complexity detecting means detects the complexity by counting the number of times the image changes in each line in at least one axis direction for each unit block of the binarized image.

[作用] 本発明の基本原理は、画像データの複雑度を検出し、
この検出の結果、複雑な画像については、圧縮率は低い
が再現忠実度の高い無歪符号化方式、例えば、MH,MRあ
るいはMMR符号化方式を適用し、単純な画像について
は、再現忠実度を犠牲にして圧縮率の高い有歪符号化方
式、例えばベクトル符号化方式を適用することにある。
[Operation] The basic principle of the present invention is to detect the complexity of image data,
As a result of this detection, a distortion-free coding method with low compression rate but high reproduction fidelity, such as MH, MR, or MMR coding method, is applied to complex images, and reproduction fidelity is applied to simple images. At the expense of applying a distorted coding scheme with a high compression rate, such as a vector coding scheme.

複雑度の検出は、画像の単位ブロック毎に、画素の変
化数を計数し、この計数値を予め定めた閾値と比較する
ことにより行う。計数値が閾値より大きければ複雑度が
高いと判定し、計数値が閾値より小さければ複雑度が低
いと判定する。この閾値は、忠実度と圧縮率との兼ね合
いにより適切な値に設定すればよい。原画像を保全する
観点からは、低めの値を設定する。
The complexity is detected by counting the number of pixel changes for each unit block of the image and comparing this count value with a predetermined threshold value. If the count value is larger than the threshold value, the complexity is determined to be high, and if the count value is smaller than the threshold value, the complexity is determined to be low. This threshold may be set to an appropriate value depending on the balance between the fidelity and the compression rate. From the viewpoint of maintaining the original image, a low value is set.

本発明によれば、全体に複雑度の低い画像であれば、
従来に比べて飛躍的に圧縮率を上げることができ、平均
的にも圧縮効率を向上させることができる。特に、電子
ファイリング装置では、格納される文書の大半が図面で
あることから、その実用的効果は顕著である。
According to the present invention, if the image has low complexity as a whole,
The compression rate can be dramatically increased as compared with the conventional one, and the compression efficiency can be improved even on average. In particular, in the electronic filing apparatus, most of the stored documents are drawings, so that the practical effect is remarkable.

[実施例] 以下、本発明の実施例について図面により説明する。[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明による一実施例のブロック図である。
1は画像データを入力するスキャナ部、2は画像データ
を一時的に蓄積する画像メモリ部、3は部分領域毎の複
雑度を測定する複雑度検出部、4は画像データの該当す
る部分領域のみを一時的に格納するブロック分割部、5
は後続の両符号化部への入力を選択するセレクタ、6は
文字等の複雑な画像を符号化するMH・MR符号化部、7は
線図形等の単純な画像を符号化するベルトル化部、8は
両符号化部の出力を選択するセレクタ、9は圧縮された
符号データを格納する光ディスク、10は装置全体の制御
を司る制御部である。
FIG. 1 is a block diagram of an embodiment according to the present invention.
1 is a scanner unit for inputting image data, 2 is an image memory unit for temporarily storing image data, 3 is a complexity detecting unit for measuring the complexity of each partial region, and 4 is only a corresponding partial region of the image data. Block division unit for temporarily storing
Is a selector for selecting inputs to both subsequent encoding units, 6 is an MH / MR encoding unit for encoding a complicated image such as a character, and 7 is a beltl unit for encoding a simple image such as a line drawing , 8 is a selector for selecting the outputs of both encoding units, 9 is an optical disk for storing compressed code data, and 10 is a control unit for controlling the entire apparatus.

同図の装置において、紙面等に記入された図面等は、
スキャナ部1に入力され、A/D変換器により2値の画像
データに変換される。変換された画像データは膨大な容
量を有し、パイプライン処理が不可能なため、一時的に
画像メモリ2に蓄えられる。ちなみに、標準的はA3版図
面を200DPI(Dots Per Inch)でサンプリングすると2MB
のデータ量となる。
In the device shown in the figure, drawings etc. written on the paper are
It is input to the scanner unit 1 and converted into binary image data by the A / D converter. The converted image data has an enormous capacity and cannot be pipelined, so it is temporarily stored in the image memory 2. By the way, the standard is 2MB when A3 drawing is sampled at 200DPI (Dots Per Inch).
It becomes the data amount of.

画像メモリ2に蓄えられた画像データは、適切な大き
さの部分領域に分割され、複雑度検出部3とブロック分
割部4とに送出される。
The image data stored in the image memory 2 is divided into sub-regions having an appropriate size and sent to the complexity detection unit 3 and the block division unit 4.

複雑度検出部3は、ブロック分割部4に格納された部
分画像データをX軸方向、Y軸方向に走査し、変化点の
数を計測する。すなわち、白から黒あるいは黒から白へ
変化する単位面積当りの頻度を計測することにより図形
の持つ複雑さを判定する。変化点数が少なければ、線図
形領域であると判定し、逆であれば文字領域であると判
定する。ここで、判定の閾値は全ての複雑な図形が文字
領域に入るように十分小さめな値を設定する。ちなみに
本発明による一実施例では、複雑度の判定手段として単
位面積当りの変化点数を利用したが、これに限るもので
はない。
The complexity detection unit 3 scans the partial image data stored in the block division unit 4 in the X-axis direction and the Y-axis direction, and measures the number of change points. That is, the complexity of a figure is determined by measuring the frequency of change from white to black or from black to white per unit area. If the number of change points is small, it is determined that it is a line figure area, and if it is the opposite, it is determined that it is a character area. Here, the determination threshold value is set to a sufficiently small value so that all complicated figures can be included in the character area. Incidentally, in one embodiment according to the present invention, the number of change points per unit area is used as the complexity determination means, but the invention is not limited to this.

ブロック分割部4に格納された部分画像データは複雑
度検出部3の判定結果に従って読み出され、セレクタ5
を介して、部分画像データに適した符号化部に入力され
る。すなわち、複雑度の小さな線図形等の画像は圧縮効
率の高いベクトル化部7に入力される。逆に、複雑度の
大きな文字等の画像は圧縮効率は低いが忠実な再現性の
良好なMH・MR符号化部6に入力される。
The partial image data stored in the block division unit 4 is read according to the determination result of the complexity detection unit 3, and the selector 5
Is input to the encoding unit suitable for the partial image data. That is, an image such as a line figure having a low complexity is input to the vectorization unit 7 having high compression efficiency. On the contrary, an image such as a character having a high degree of complexity is input to the MH / MR encoding unit 6 which has a low compression efficiency but good faithful reproducibility.

MH・MR符号化部6では、部分画像を1ページ分の画像
と見なし、国際電信電話諮問委員会(CCITT)の符号化
手順に従って圧縮する。すなわちMH符号化では、白また
黒のランレングスに着目し、出現頻度の高いものに短い
符号を、低いものに長い符号を割り当てる。このように
画像データの持つ統計的性質を利用することにより単純
なランレングス符号化に比べ高い圧縮効率を達成するこ
とができる。またMR符号化では、2次元方向の相関を利
用してより高い圧縮率を達成することができる。画面上
に現れるパターンを3種類のモードすなわちパス/垂直
/水平に識別して、それぞれに対して可変長符号を割り
当てる。通常の画像は2次元方向の相関が高いので、符
号長の短い垂直モードで符号化される割合が多くなる。
さらに、この方式は画像の2次元方向への伝播誤りを防
ぐため、数ラインに1本の割合でMH符号化を用いて符号
化する。MMR符号化では、MR符号化を拡張した形式であ
り、情報量の多いMH符号化を用いるラインを設けない。
したがって多くの場合、このラインのパラメータを変更
するだけで、MR符号化のハードウェアを用いることによ
ってMMR符号化を実現することができる。本実施例では
無歪符号化手段としてMH・MR・MMR符号化方式を利用し
たが、これに限るものではない。
The MH / MR encoding unit 6 regards the partial image as an image for one page and compresses it according to the encoding procedure of the International Telegraph and Telephone Consultative Committee (CCITT). That is, in MH encoding, paying attention to white or black run lengths, short codes are assigned to those having a high appearance frequency, and long codes are assigned to those having a low appearance frequency. By using the statistical properties of image data in this way, it is possible to achieve higher compression efficiency than simple run-length coding. Further, in MR encoding, higher compression rate can be achieved by utilizing the correlation in the two-dimensional direction. The patterns appearing on the screen are identified into three types of modes, that is, pass / vertical / horizontal, and a variable length code is assigned to each of them. Since a normal image has a high correlation in the two-dimensional direction, the rate of encoding in the vertical mode having a short code length increases.
Further, in this method, in order to prevent a propagation error in an image in a two-dimensional direction, MH coding is used at a rate of one line for every several lines. The MMR coding is an extension of the MR coding and does not include a line using the MH coding, which has a large amount of information.
Therefore, in many cases, MMR coding can be realized by using MR coding hardware simply by changing the parameters of this line. Although the MH / MR / MMR coding method is used as the distortion-free coding means in this embodiment, the present invention is not limited to this.

ベクトル化部7では、単純な線図形の画像をベクトル
化し、必ずしも再現性は良好でないが線図形そのものの
持つ有意な情報のみを持つ符号に変換する。すなわち線
図形を構成する連結図形に対して細線化を施こし、太さ
1ドットの線図形に変換する。次に線図形の持つ端点、
屈曲点を順次認識する。最後に対応する端点や特徴点間
を順次ベクトル近似し、ベクトルデータを符号化データ
として出力する。また、ベクトル化の手法には、細線化
を施こさずに輪郭線を直接ベクトル化する方法もあり、
いずれの手法を用いてもよい。本実施例では有歪符号手
段として、ベクトル化方式を利用したが、これに限定さ
れるものではない。
The vectorization unit 7 vectorizes a simple line figure image and converts it into a code that does not always have good reproducibility but has only significant information that the line figure itself has. That is, thinning is applied to the connected figure forming the line figure and converted into a line figure having a thickness of 1 dot. Next, the end point of the line figure,
Recognize bending points sequentially. Finally, vector approximation is sequentially performed between corresponding end points and feature points, and the vector data is output as encoded data. In addition, as a vectorization method, there is also a method of directly vectorizing the contour line without applying thinning,
Either method may be used. In this embodiment, the vectorization method is used as the distortion coding means, but the present invention is not limited to this.

最後に、各々の特性に適した符号化処理を施こされた
部分画像データは、セレクタ8を介して光ディスク9に
格納される。格納にあたっては、復号時に必要な補助情
報も付加して格納する。すなわち、各々の部分画像の大
きさと符号化手法を補助情報として付加する。
Finally, the partial image data that has been subjected to the encoding process suitable for each characteristic is stored in the optical disc 9 via the selector 8. Upon storage, auxiliary information necessary for decryption is also added and stored. That is, the size of each partial image and the encoding method are added as auxiliary information.

なお、第1図においては、制御部10から各部に制御信
号が供給され、また、回路各部の状態を通知する信号が
制御部10に与えられるが、このことは本発明を理解する
上で必ずしも必要ではないので、これらは簡単化のため
図示せず、また、説明を省略してある。
In FIG. 1, a control signal is supplied from the control unit 10 to each unit, and a signal notifying the state of each unit of the circuit is given to the control unit 10. However, this is not always necessary for understanding the present invention. These are not shown because they are not necessary and are not shown for simplicity.

第2図は、第1図の複雑度検出部3の動作例を表わす
PAD(Problem Analysis Diagram)図を示す。この例で
は、ブロック分割部4内の1ブロックの部分画像データ
の大きさを(Mドット×Nドット)とする。図中、iCMP
は複雑度を表わす変数、iPTN(i,j)はブロック内の1
画素(i,j)の値を変わす変数、THは閾値を表わす定数
であり、EORは排他的論理和を表わす。
FIG. 2 shows an operation example of the complexity detection unit 3 in FIG.
A PAD (Problem Analysis Diagram) diagram is shown. In this example, the size of one block of partial image data in the block division unit 4 is (M dots × N dots). In the figure, iCMP
Is a variable indicating complexity, iPTN (i, j) is 1 in the block
A variable that changes the value of the pixel (i, j), TH is a constant representing a threshold value, and EOR represents an exclusive OR.

この例では、まず、変数iCMPを0に初期化し(S1)、
次に、1ブロック内の各水平ライン毎に、ライン上の隣
接する画素の値を比較する動作を順次左から右へ繰返
し、隣接画素の値が異なるとき、変数iCMPに“1"を累積
していく(S2)。隣接画素の値が異なる場合が画素の変
化に対応する。
In this example, first, the variable iCMP is initialized to 0 (S1),
Next, for each horizontal line in one block, the operation of comparing the values of adjacent pixels on the line is sequentially repeated from left to right. When the values of adjacent pixels are different, "1" is accumulated in the variable iCMP. (S2). A case where adjacent pixels have different values corresponds to a pixel change.

この動作が終了すると、次に1ブロック内の各垂直ラ
イン毎に、ライン上の隣接画素の値を比較する動作を順
次上から下へ繰返し、隣接画素の値が異なるとき、変数
iCMPに“1"を累積していく(S3)。
After this operation is completed, the operation of comparing the values of adjacent pixels on each line is repeated sequentially from top to bottom for each vertical line in one block.
Accumulate "1" in iCMP (S3).

このようにして得られた変数iCMPはそのブロックの複
雑度を表わす。この変数iCMPの値を適切な閾値THと比較
して、閾値TH以上であれば、MH・MR符号化部6へ、閾値
THより小であればベクトル化部7へ、部分画像データを
入力するように、セレクタ5を制御する(S4)。
The variable iCMP thus obtained represents the complexity of the block. The value of this variable iCMP is compared with an appropriate threshold value TH, and if it is equal to or greater than the threshold value TH, the MH / MR encoding unit 6 is notified of the threshold value.
If it is smaller than TH, the selector 5 is controlled so as to input the partial image data to the vectorization unit 7 (S4).

なお、この複雑度検出部3の動作は、ソフトウェア、
ハードウェアのいずれによっても実現可能である。ま
た、場合によっては、上記S2およびS3の処理はその一方
のみ採用してもよい。
The operation of the complexity detection unit 3 is performed by software,
It can be realized by any of the hardware. Further, depending on the case, only one of the processes of S2 and S3 may be adopted.

第3図の画像例においては、領域22が、第1図のブロ
ック分割部4により、一時的に保持される画像の1ブロ
ックに対応し、全画像はこのブロック単位に順次、ブロ
ック分割部に取込まれる。複雑度検出のために適切な閾
値を設定することにより、この例では、領域22〜25が、
複雑度が高いと判定され、これらを構成する各ブロック
には無歪符号化方式であるMH・MR符号化方式を適用す
る。その他の領域については、複雑度が低いと判定され
るので、有歪符号化方式であるベクトル化方式を適用す
る。
In the image example of FIG. 3, the region 22 corresponds to one block of the image temporarily held by the block dividing unit 4 of FIG. 1, and all the images are sequentially divided into the block dividing units. Captured. By setting the appropriate thresholds for complexity detection, in this example regions 22-25 are
It is determined that the complexity is high, and the MH / MR coding method that is a distortion-free coding method is applied to each of the blocks that make up these blocks. For other areas, since the complexity is determined to be low, the vectorization method which is a distortion coding method is applied.

つまり単純な線図形領域には圧縮効率が飛躍的に高い
ベクトル化処理を施こし、複雑な図形や文字領域には圧
縮効率は劣るが忠実な再現性も持つMH・MR符号化処理を
施こす。この具体例からも明らかなように、通常の図面
においては、圧縮効率の高いベクトル化が広範囲な領域
に適用される。
In other words, a simple line figure area is subjected to vectorization processing with dramatically high compression efficiency, and complicated figure and character areas are subjected to MH / MR encoding processing with poor compression efficiency but faithful reproducibility. . As is clear from this specific example, in ordinary drawings, vectorization with high compression efficiency is applied to a wide range.

以上の説明から、この実施例によれば、入力画像デー
タの特性に応じて領域を分割し、各々に最適な符号化手
法を施こすように構成したので、従来の符号化処理に比
べて飛躍的に圧縮効率を向上させることができる。特に
ベクトル化に適した図面の場合はこの効果が大である。
From the above description, according to this embodiment, the region is divided according to the characteristics of the input image data, and the optimum encoding method is applied to each region, which is a leap compared to the conventional encoding process. The compression efficiency can be improved. This effect is particularly great in the case of drawings suitable for vectorization.

[発明の効果] 本発明によれは、電子ファイリング装置やファクシミ
リ装置の符号化回路において、入力画像の部分領域毎に
複雑度を検知する手段を設け、複雑な形状を示す領域に
対しては従来多用されているMH・MR・MMR符号化方式に
より圧縮、単純な形状を示す領域に対しては圧倒的に圧
縮率を示すベクトル化により圧縮する構成とすることに
より図面画像に対する圧縮率を飛躍的に向上できる。特
に、電子ファイリング装置においては光ディスクへの格
納枚数の増大、ファクシミリ装置においては、電送時間
の短縮とその実用的な効果は顕著である。
According to the present invention, the encoding circuit of the electronic filing apparatus or the facsimile apparatus is provided with the means for detecting the complexity for each partial area of the input image, and the conventional method is applied to the area showing the complicated shape. The compression rate used for MH / MR / MMR encoding, which is widely used, and the vectorization, which shows the compression rate overwhelmingly for areas with a simple shape, dramatically reduce the compression rate for drawing images. Can be improved. Particularly, in the electronic filing apparatus, the number of sheets stored on the optical disk is increased, and in the facsimile apparatus, the transmission time is shortened and its practical effect is remarkable.

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

第1図は本発明に係る一実施例を示すブロック図、第2
図は第1図の複雑度検出部3の動作を示すPAD図、第3
図はベクトル化が適用される領域とMH・MR符号化が適用
される領域とを区別して示した入力画像例を示す説明図
である。 1……スキャナ部、 2……画像メモリ部、 3……複雑度検出部、 4……ブロック分割部、 5……セレクタ、 6……MH・MR符号化部、 7……ベクトル化部、 8……セレクタ、 9……光ディスク、 10……制御部、 21……ベクトル化領域、 22……MH・MR符号化領域。
FIG. 1 is a block diagram showing an embodiment according to the present invention, and FIG.
FIG. 3 is a PAD diagram showing the operation of the complexity detector 3 of FIG.
The figure is an explanatory diagram showing an example of an input image in which an area to which vectorization is applied and an area to which MH / MR encoding is applied are separately shown. 1 ... Scanner unit, 2 ... Image memory unit, 3 ... Complexity detection unit, 4 ... Block division unit, 5 ... Selector, 6 ... MH / MR coding unit, 7 ... Vectorization unit, 8 ... Selector, 9 ... Optical disk, 10 ... Control section, 21 ... Vectorization area, 22 ... MH / MR coding area.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭60−134665(JP,A) 特開 昭60−74777(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-60-134665 (JP, A) JP-A-60-74777 (JP, A)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2値画像の符号化装置において、上記2値
画像をそっくりそのまま符号化する無歪符号化手段と、
線図形のベクトル符号化方式に従って上記2値画像の必
要な情報のみを圧縮する有歪符号化手段と、上記2値画
像の複雑度を判定する複雑度検出手段とを設け、該複雑
度検出手段の検出した複雑度が所定の程度より低い場合
には上記有歪符号化手段を選択して符号化を行い、複雑
度検出手段の検出した複雑度が上記所定の程度より低く
ない場合には上記無歪符号化手段を選択して符号化を行
うことを特徴とする符号化装置。
1. A binary image coding apparatus, which is a distortion-free coding means for coding the binary image as it is,
Distorted coding means for compressing only necessary information of the binary image according to the vector coding method of the line figure and complexity detecting means for judging the complexity of the binary image are provided, and the complexity detecting means is provided. If the detected complexity is lower than a predetermined level, the distortion coding means is selected to perform coding, and if the complexity detected by the complexity detection means is not lower than the predetermined level, An encoding device, characterized in that the distortionless encoding means is selected to perform encoding.
【請求項2】上記無歪符号化手段として、国際標準規格
であるHM符号化方式、MR符号化方式、または、MMR符号
化方式を利用することを特徴とする請求項1記載の符号
化装置。
2. The coding apparatus according to claim 1, wherein an HM coding method, an MR coding method, or an MMR coding method, which is an international standard, is used as the distortion-free coding means. .
【請求項3】上記複雑度検出手段は、上記2値化画像の
単位ブロック毎に少なくとも1軸方向の各ラインにおい
て画素が変化する回数を計数することにより、複雑度を
検出する請求項1または2記載の符号化装置。
3. The complexity detecting means detects the complexity by counting the number of times a pixel changes in each line in at least one axis direction for each unit block of the binarized image. 2. The encoding device according to 2.
JP63097157A 1988-04-20 1988-04-20 Encoder Expired - Lifetime JP2546879B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63097157A JP2546879B2 (en) 1988-04-20 1988-04-20 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63097157A JP2546879B2 (en) 1988-04-20 1988-04-20 Encoder

Publications (2)

Publication Number Publication Date
JPH01268350A JPH01268350A (en) 1989-10-26
JP2546879B2 true JP2546879B2 (en) 1996-10-23

Family

ID=14184737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63097157A Expired - Lifetime JP2546879B2 (en) 1988-04-20 1988-04-20 Encoder

Country Status (1)

Country Link
JP (1) JP2546879B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02205984A (en) * 1989-02-06 1990-08-15 Canon Inc Picture processor
KR100276427B1 (en) * 1993-01-30 2000-12-15 윤종용 Device for compression and decompression of image data
JP5245949B2 (en) * 2009-03-17 2013-07-24 富士ゼロックス株式会社 Image processing apparatus and image reading apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6074777A (en) * 1983-09-30 1985-04-27 Hitachi Ltd Coding system of picture information
JPH0767140B2 (en) * 1983-12-23 1995-07-19 三菱電機株式会社 Equipment

Also Published As

Publication number Publication date
JPH01268350A (en) 1989-10-26

Similar Documents

Publication Publication Date Title
US4546385A (en) Data compression method for graphics images
JP3237582B2 (en) Image processing apparatus and image processing method
US4821334A (en) Image processing apparatus
JP2656897B2 (en) Image data compression and decompression device
Kunt et al. Block coding of graphics: A tutorial review
US5491564A (en) Data compression method and apparatus for binary image using Markov model encoding
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
US5424854A (en) Image processing apparatus for half-tone processing and reproducing high speed images of different resolutions
JP2546879B2 (en) Encoder
JPS623573A (en) Method and apparatus for processing image data for data compression
JP3118469B2 (en) Image area separation device
JPS6282723A (en) Redundancy suppression coding system
JPH10108011A (en) Data-processing unit
JPH04356873A (en) Adaptive encoding system for color document image
JP4260908B2 (en) Run-length encoding method and image processing apparatus
JP3062224B2 (en) Image coding method
JPH082083B2 (en) Multi-level image block coding device
JP2972500B2 (en) Resolution adaptive control device
JP3791129B2 (en) Image identification device
JP3036244B2 (en) Image signal processing device
KR910002773B1 (en) Quast-medium picture data procossing method
Jiang et al. Classification and compression of digital newspaper images
JP2685791B2 (en) Halftone fax machine
Tominaga et al. Facsimile coding scheme using cornered edged point on contour line
JPH0591347A (en) Picture encoding device