JPH10108013A - Image compression device - Google Patents

Image compression device

Info

Publication number
JPH10108013A
JPH10108013A JP8262113A JP26211396A JPH10108013A JP H10108013 A JPH10108013 A JP H10108013A JP 8262113 A JP8262113 A JP 8262113A JP 26211396 A JP26211396 A JP 26211396A JP H10108013 A JPH10108013 A JP H10108013A
Authority
JP
Japan
Prior art keywords
image
pattern
run
data
notch
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
JP8262113A
Other languages
Japanese (ja)
Inventor
Hiroaki Iguchi
博彰 井口
Yasuo Kurosu
康雄 黒須
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 JP8262113A priority Critical patent/JPH10108013A/en
Publication of JPH10108013A publication Critical patent/JPH10108013A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To place a main purpose on the isolated point elimination and notch elimination of images, to improve compressibility and the image quality of and to perform a high-speed processing several hundreds times faster than previously by performing pattern matching to run length data. SOLUTION: Image pixel data area inputted from an image input part (S201) and a pixel data → run length data conversion processing is performed (S203). Then, a notch pattern and an isolated point pattern in the run length data are detected (S204), and the conversion processing of the run length data is performed for the detected patterns (S205). For the conversion-processed run length data, conversion processing into compressed data of MR and MMR codes or the like is performed (S206). The image conversion processings are performed until the end of image data (S202), and after the conversion processing are ends, the compression data are transferred to an external information equipment form an image communication IF part or are stored in an image storage part (S207).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像の圧縮復元装置
に係り、特にファクシミリ装置で使用されているCCI
TT標準規格のMR符号化及びMMR符号化により画像
を圧縮する際に、圧縮率を向上させる装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression / decompression apparatus, and more particularly to a CCI used in a facsimile apparatus.
The present invention relates to an apparatus for improving a compression ratio when an image is compressed by TT standard MR encoding and MMR encoding.

【0002】[0002]

【従来の技術】近年、ファクシミリ装置、デジタルコピ
ー機、デスクトップパブリッシンング装置、画像ファイ
リング装置等、画像処理技術は多くのOA製品に適用さ
れている。これらの装置では、画像データが大容量のた
めに圧縮して記憶したり、伝送することが多い。
2. Description of the Related Art In recent years, image processing techniques such as facsimile machines, digital copiers, desktop publishing machines, and image filing machines have been applied to many OA products. In these devices, image data is often compressed and stored or transmitted due to its large capacity.

【0003】代表的な画像の圧縮方法としては、ファク
シミリ装置で使用されているCCITT(国際電信電話
諮問委員会)国際標準規格のMH(Modified
Huffman)方式、MR(Modified RE
AD)方式、MMR(Modified MR)方式が
ある。これらの方式及び実現装置に関しては特開昭59
−126368号公報等に詳細が記載されている。MH
符号化方式は1次元的な画像信号の相関のみを利用し、
MR,MMR符号化方式は2次元的な相関も利用するよ
り高能率な符号化方式である。
As a typical image compression method, a MH (Modified) standard of CCITT (International Telegraph and Telephone Consultative Committee) international standard used in facsimile machines is used.
Huffman method, MR (Modified RE)
AD) system and MMR (Modified MR) system. These systems and their realizing devices are disclosed in
Details are described in, for example, JP-A-126368. MH
The encoding method uses only one-dimensional image signal correlation,
The MR and MMR coding schemes are more efficient coding schemes utilizing two-dimensional correlation.

【0004】MH,MR及びMMR符号化方式ともに原
画像を忠実に全くの劣化なしに符号化するものである。
これらに対し、符号化する前に画像処理変換を行い、符
号量を削減する手法が提案されている。「細め処理によ
るファクシミリ信号の情報量削減と画質評価」(電子情
報通信学会論文誌 D−II Vol.J73−D−I
I No.9 pp.1538−1544 1990年
9月)では、原画像について符号化前に細め処理を行
い、複号化時に線幅を太め処理する事により、圧縮符号
を削減している。
[0004] The MH, MR and MMR encoding methods encode an original image faithfully without any deterioration.
For these, a method has been proposed in which image processing conversion is performed before encoding to reduce the code amount. "Reduction of information amount of facsimile signal and image quality evaluation by thinning processing" (Transactions of the Institute of Electronics, Information and Communication Engineers, D-II Vol. J73-DI)
I No. 9 pp. 1538-1544 (September 1990), the compression code is reduced by performing a thinning process on the original image before encoding, and a thickening process at the time of decoding.

【0005】また、特開平6−268842号公報で
は、MR,MMR符号化時に、原画像に対し特定のパタ
ーンを抽出、変更を行う事により圧縮符号の削減を実現
している。更に、「可変ウインドウを用いたノッチ除去
法」(1990年電子情報通信学会春季全国大会 D−
425)では、可変ウインドウを用いノッチパターンを
除去する事により、画質の向上及び圧縮率の向上を実現
している。
In Japanese Patent Laid-Open No. Hei 6-268842, a reduction in the number of compression codes is realized by extracting and changing a specific pattern from an original image during MR and MMR coding. Furthermore, "Notch removal method using variable window" (1990 IEICE Spring National Convention D-
In 425), the image quality and the compression ratio are improved by removing the notch pattern using the variable window.

【0006】[0006]

【発明が解決しようとする課題】MH,MR及びMMR
符号化方式に対して、上記の如く様々な圧縮率向上の手
法が提案されている。しかし、これらの手法は符号化を
行う以前の原画像に対しパターンマッチング、画像変換
を行う為、非常に大きな処理時間を必要とする問題点が
あった。例えば、発明者測定結果によれば、特開平6−
268842号公報のノイズ除去およびノッチ除去のパ
ターンについてCPUソフトウエア処理での調査を行っ
た結果、A4,200DPIの画像に対し、数分のオー
ダーの処理時間を必要とした。
MH, MR and MMR
Various techniques for improving the compression ratio have been proposed for the encoding method as described above. However, since these methods perform pattern matching and image conversion on an original image before encoding, there is a problem that an extremely long processing time is required. For example, according to the measurement results of the inventors,
As a result of investigating the pattern of noise elimination and notch elimination in Japanese Patent No. 268842 by CPU software processing, a processing time on the order of several minutes was required for an A4, 200 DPI image.

【0007】また、特開平6−268842号公報で
は、圧縮率の向上を目的としたパターンの抽出を行って
いるため、上記パターン以外に非常に多数の画素とのパ
ターンマッチングについても提示されており、更に処理
時間が数倍に増加する事が予想されると共に、画像の品
質劣化については考慮していない問題点があった。また
上記他の公知例についても、多数の画素とのパターンマ
ッチングを行う必要があるため、特開平6−26884
2号公報と同等あるいはそれ以上の処理時間を必要とす
る問題点があった。
In Japanese Patent Application Laid-Open No. 6-268842, since a pattern is extracted for the purpose of improving the compression ratio, pattern matching with a very large number of pixels in addition to the above pattern is also presented. In addition, the processing time is expected to increase several times, and there is a problem that image quality degradation is not considered. In the above-mentioned other known examples, it is necessary to perform pattern matching with a large number of pixels.
There is a problem that a processing time equivalent to or longer than that of Japanese Patent Publication No. 2 is required.

【0008】本発明の目的は、特に2次元圧縮手法であ
るMR,MMR圧縮方式について、ランレングスデータ
に対しパターンマッチングを行う事により、特殊なハー
ドウエアを用いずに従来手法の1/100程度或いはそ
れ以下の処理時間での高速圧縮を実現しCPU処理での
負荷を無視できる速度を実現すると共に、MR,MMR
圧縮方式の圧縮手順に従いながら画像の孤立点除去およ
びノッチ除去等に主眼を置き、圧縮率の向上と共に画像
の品質向上を行う手段を提供する事にある。
An object of the present invention is to perform pattern matching on run-length data for MR and MMR compression methods, which are two-dimensional compression methods, so that about 1/100 of the conventional method without using special hardware. Alternatively, high-speed compression can be achieved in a processing time shorter than that to realize a speed in which the load on CPU processing can be ignored, and MR, MMR
An object of the present invention is to provide means for improving the compression rate and the quality of an image while focusing on the removal of isolated points and the notch of an image while following the compression procedure of the compression method.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明による画像圧縮装置では、画像データを取り
込む画像入力手段と、入力した画像のピクセルデータを
ランレングスデータに変換するピクセルデータ→ランレ
ングスデータ変換手段と、ノッチパターンを抽出し変換
を行なうランレングスデータ→ランレングスデータ高圧
縮データ変換手段と、変換処理を行なったランレングス
データについてMR,MMR等圧縮データへ変換処理を
行なうランレングスデータ→圧縮データ変換手段とを有
する。
In order to achieve the above object, an image compression apparatus according to the present invention comprises: an image input means for inputting image data; and a pixel data for converting pixel data of an input image into run-length data. Run-length data conversion means, run-length data for extracting and converting a notch pattern → run-length data high-compression data conversion means, and a run for converting the converted run-length data into compressed data such as MR and MMR. Length data → compressed data conversion means.

【0010】本発明では、画像のピクセルデータをM
R,MMR等の圧縮データへ変換処理を行なう画像圧縮
処理に於いて、中間生成データとしてランレングスデー
タを導入し、該データに対して画像のノッチ除去を行う
事により、MR,MMR等圧縮データへの高速な圧縮デ
ータ削減を実現すると共に、ノッチ除去による画像の品
質向上を実現する。
In the present invention, pixel data of an image is represented by M
In the image compression processing for converting to compressed data such as R, MMR, etc., run-length data is introduced as intermediate generation data, and the notch removal of the image is performed on the data, so that compressed data such as MR, MMR, etc. In addition to realizing high-speed compression data reduction, image quality is improved by removing notches.

【0011】[0011]

【発明の実施の形態】以下、本発明の1実施形態を図1
により説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will now be described with reference to FIG.
This will be described below.

【0012】図1において、101はスキャナ、キーボ
ード、マウス、もしくは外部情報機器等より画像データ
を取り込む画像入力部、102は入力した画像のピクセ
ルデータをランレングスデータに変換するピクセルデー
タ→ランレングスデータ変換処理部、103はランレン
グスデータより孤立点パターン或いはノッチパターンを
抽出し、該パターンの変換を行なうランレングスデータ
→ランレングスデータ高圧縮データ変換処理部、104
は高圧縮データ変換処理を行なったランレングスデータ
についてMR,MMR符号等の圧縮データへの変換処理
を行なうランレングスデータ→圧縮データ変換処理部、
105は圧縮処理されたMR,MMR符号等のデータを
ピクセルデータへ伸長処理を行なう圧縮データ→ピクセ
ルデータ復元処理部、106は圧縮データおよびピクセ
ルデータについて外部情報機器とのデータ転送を行なう
画像通信IF部、107は圧縮データもしくはピクセル
データの蓄積を行なう画像蓄積部、108は伸長処理を
行なったピクセルデータについて、CRT,プリンタ等
へ出力を行なう画像出力部、109は相互にデータのや
り取りを実行するイメージ/データバスである。
In FIG. 1, reference numeral 101 denotes an image input unit for receiving image data from a scanner, a keyboard, a mouse, an external information device, or the like; 102, pixel data for converting input pixel data into run-length data → run-length data A conversion processing unit 103 extracts an isolated point pattern or a notch pattern from the run-length data and converts the pattern into run-length data → run-length data high-compression data conversion processing unit 104
Is a run-length data-to-compressed data conversion processing unit that converts the run-length data that has been subjected to the high-compression data conversion processing to compressed data such as MR and MMR codes;
Reference numeral 105 denotes compressed data for expanding data such as MR and MMR codes which have been subjected to compression processing to pixel data → pixel data restoration processing unit. Reference numeral 106 denotes an image communication IF for transferring data of compressed data and pixel data to and from an external information device. 107, an image storage unit for storing compressed data or pixel data; 108, an image output unit for outputting the expanded pixel data to a CRT, a printer, etc .; and 109, mutually exchanging data. Image / data bus.

【0013】次に、図1に示される実施形態における画
像高圧縮変換/画像圧縮処理について、図2及び図3に
示されるフローチャートの問題分析図、Problem
Analysis Diagram(以下、PAD図
と呼ぶ)を用い詳説する。
Next, with regard to the image high compression conversion / image compression processing in the embodiment shown in FIG. 1, a problem analysis diagram of the flowcharts shown in FIGS.
This will be described in detail using an analysis diagram (hereinafter, referred to as a PAD diagram).

【0014】図2を用い、処理対象画像→圧縮画像デー
タ変換処理を詳説する。まず、画像入力部101より、
画像ピクセルデータを入力する(S201)。この入力
する画像データは、他の情報機器よりネットワークおよ
び画像通信IF部106を介して読み込むものでもよい
し、スキャナ、キーボード、或いはマウス等を用い画像
入力部101より入力するものでもよいし、画像蓄積部
107に蓄積された画像を読み込んでもよい。
The process of converting an image to be processed to compressed image data will be described in detail with reference to FIG. First, from the image input unit 101,
Image pixel data is input (S201). The input image data may be data read from another information device via the network and the image communication IF unit 106, input from the image input unit 101 using a scanner, a keyboard, a mouse, or the like. The image stored in the storage unit 107 may be read.

【0015】また、入力する画像データは、原画像ピク
セルデータを画像入力部101より直接入力する構成で
もよい。あるいは、何らかの圧縮手法を用い圧縮された
形式であり、画像入力部101あるいはピクセルデータ
→ランレングスデータ変換処理部102にて伸長を行な
う構成でもよい。圧縮形式は特に指定は無い。また、完
全な可逆圧縮で無くとも良い。
The image data to be input may be configured such that the original image pixel data is directly input from the image input unit 101. Alternatively, the image data may be in a format compressed using some compression technique, and may be expanded by the image input unit 101 or the pixel data → run-length data conversion processing unit 102. The compression format is not specified. Further, the compression may not be completely lossless.

【0016】次に、イメージデータ先頭より、イメージ
データが終了するまで、画像高圧縮変換処理を行なう
(S202)。
Next, image height compression conversion processing is performed from the beginning of the image data until the end of the image data (S202).

【0017】画像高圧縮変換処理は、まず、入力された
画像ピクセルデータに対し、ピクセルデータ→ランレン
グスデータ変換処理を行なう(S203)。
In the image high compression conversion processing, first, pixel data → run length data conversion processing is performed on input image pixel data (S203).

【0018】次に、ランレングスデータ→ランレングス
データ高圧縮データ変換処理部103において、まずラ
ンレングスデータ中のノッチパターン、孤立点パターン
の検出を行なう(S204)。該検出されたパターンに
対して、ランレングスデータ→ランレングスデータ高圧
縮データ変換処理部103において、ランレングスデー
タの変換処理を行なう(S205)。
Next, the run-length data → run-length data high compression data conversion processing unit 103 first detects a notch pattern and an isolated point pattern in the run-length data (S204). The run-length data-to-run-length data high-compression data conversion processing unit 103 performs a run-length data conversion process on the detected pattern (S205).

【0019】更に、ランレングスデータ→圧縮データ変
換処理部104では、変換処理されたランレングスデー
タに対しMR,MMR符号等の圧縮データへの変換処理
を行なう(S206)。MR,MMR符号等の圧縮デー
タへの変換処理は、原画像データと同様の圧縮処理を行
う。
Further, the run-length data → compressed data conversion processing unit 104 converts the converted run-length data into compressed data such as MR and MMR codes (S206). The conversion process to the compressed data such as the MR and MMR codes is performed in the same manner as the original image data.

【0020】上記画像変換処理を、イメージデータ終了
まで行なう(S202)。
The above image conversion processing is performed until the end of the image data (S202).

【0021】前記変換処理終了後、圧縮データは、画像
通信IF部106より外部情報機器へ転送する(S20
7)。或いは画像蓄積部107に蓄積する(S20
7)。画像蓄積部107としては、磁気ディスク装置あ
るいは磁気ディスクライブラリ装置を用いる構成、光デ
ィスク装置あるいは光ディスクライブラリ装置を用いる
構成、磁気テープ装置或いは磁気テープライブラリ装置
を用いる構成、CD−ROM装置あるいはCD−ROM
ライブラリ装置を用いる構成等が適用される。また、こ
れらの装置を組み合わせた構成も適用される。
After the completion of the conversion process, the compressed data is transferred from the image communication IF unit 106 to an external information device (S20).
7). Alternatively, the image data is stored in the image storage unit 107 (S20).
7). As the image storage unit 107, a configuration using a magnetic disk device or a magnetic disk library device, a configuration using an optical disk device or an optical disk library device, a configuration using a magnetic tape device or a magnetic tape library device, a CD-ROM device or a CD-ROM
A configuration using a library device or the like is applied. Further, a configuration in which these devices are combined is also applied.

【0022】図3を用い、圧縮画像データ→ピクセル画
像変換処理を詳説する。まず、圧縮画像を圧縮データ→
ピクセルデータ復元処理部105に入力する(S30
1)。この入力する圧縮画像データは、他の情報機器よ
りネットワークおよび画像通信IF部106を介して読
み込む構成、画像蓄積部107に蓄積された画像を読み
込む構成、ランレングスデータ→圧縮データ変換処理部
104から圧縮画像を転送する構成、画像入力部101
より圧縮画像データを入力する構成等が適用される。
The process of converting the compressed image data to the pixel image will be described in detail with reference to FIG. First, convert the compressed image to compressed data →
Input to the pixel data restoration processing unit 105 (S30
1). The input compressed image data is read from another information device via the network and the image communication IF unit 106, the image stored in the image storage unit 107 is read, and the run-length data → compressed data conversion processing unit 104 Configuration for transferring compressed image, image input unit 101
A configuration for inputting compressed image data is applied.

【0023】次に、圧縮画像データ先頭より、圧縮画像
データが終了するまで、画像データ復元処理を行なう
(S302)。
Next, image data restoration processing is performed from the beginning of the compressed image data until the end of the compressed image data (S302).

【0024】画像データ復元処理は、圧縮データ→ピク
セルデータ復元処理部105において、入力されたM
R,MMR符号の圧縮データに対し、ドットイメージの
ピクセルデータへの復元を行なう(S303)。該画像
復元処理を、圧縮画像データ終了まで行なう(S30
2)。
The image data decompression processing is performed by the compressed data → pixel data decompression
The compression data of the R and MMR codes is restored to the pixel data of the dot image (S303). This image restoration processing is performed until the end of the compressed image data (S30).
2).

【0025】前記復元処理終了後、ピクセル画像データ
を画像出力部108を用いディスプレイ/プリンタ等へ
出力する。或いは画像蓄積部107に蓄積し、或いは画
像通信IF部106より外部情報機器へ出力する(S3
04)。
After the restoration processing is completed, the pixel image data is output to a display / printer or the like using the image output unit 108. Alternatively, the image data is stored in the image storage unit 107 or output from the image communication IF unit 106 to an external information device (S3).
04).

【0026】図4に、ランレングスデータの例を示す。
ランレングスデータ(ラインテーブル)とは、画像ビッ
トマップ列での画素色(黒/白)の変化点に着目し、各
ライン毎に黒/白画素の変化点位置(あるいは黒/白画
素の長さ)をテーブルにて表現したものを示す。また、
本例においてはテーブルの先頭番地を「0」番地として
いる。
FIG. 4 shows an example of run-length data.
The run-length data (line table) focuses on the change point of the pixel color (black / white) in the image bitmap sequence, and the change point position of the black / white pixel (or the length of the black / white pixel) for each line. Is shown in a table. Also,
In this example, the start address of the table is set to address “0”.

【0027】図4では、各ラインの左端仮想変化点画素
を座標0(従って、実際の左端画素は座標1となる)と
し、各ライン左方よりトレースした画素色変化点をテー
ブルとした、ランレングスデータを前提とする。
In FIG. 4, the left end virtual change point pixel of each line is coordinate 0 (the actual left end pixel is coordinate 1), and the pixel color change point traced from the left side of each line is a table. Assume length data.

【0028】図4に示されたランレングスデータ(ライ
ンテーブル)では、画素色変化点がテーブルとして保持
されている。また、各ライン毎に、テーブルの偶数番地
は白画素への変化点を表し、奇数番地は黒画素変化点を
表す。
In the run length data (line table) shown in FIG. 4, pixel color change points are held as a table. Also, for each line, even addresses in the table represent points of change to white pixels, and odd addresses represent points of black pixel transition.

【0029】以下、ランレングスを用いた高速ノッチ除
去手法に於ける第一の手法を示す。図16〜図18に、
除去するパターンの第1の例を示す。図16〜図18で
は、次ぎのようなパターン例を示している。
Hereinafter, a first method in a high-speed notch removal method using run length will be described. 16 to 18,
1 shows a first example of a pattern to be removed. 16 to 18 show the following pattern examples.

【0030】(1)パターン[0]〜[9]について、
孤立点の除去。
(1) For patterns [0] to [9],
Removal of isolated points.

【0031】(2)パターン[10]〜[25]につい
て、1画素ノッチの除去。
(2) One pixel notch removal for patterns [10] to [25].

【0032】(3)パターン[26]〜[37]につい
て、2画素ノッチの除去。
(3) Two-pixel notch removal for patterns [26] to [37].

【0033】(4)パターン[38]〜[49]につい
て、3画素ノッチの除去。
(4) Removal of three pixel notches for patterns [38] to [49].

【0034】(5)パターン[50]〜[53]につい
て、角出し。
(5) Cornering for patterns [50] to [53].

【0035】本パターン例に於いて、白丸の記入されて
いる画素が除去を行う(即ち画素色を反転する)画素で
ある。また、本除去のパターン例は、黒画素の除去のパ
ターンを示しているが、全てのパターンに於いて白画素
と黒画素が反転したパターン、即ち白画素の除去につい
ても含まれる。
In this pattern example, the pixels with white circles are the pixels to be removed (that is, the pixel colors are inverted). In addition, although the pattern example of the main removal shows the pattern of the removal of the black pixel, the removal pattern of the white pixel and the black pixel in all the patterns, that is, the removal of the white pixel is also included.

【0036】図5に、孤立点パターン除去の例を示す。
ここでは、パターン3の3画素の孤立点の除去について
例示する。
FIG. 5 shows an example of the isolated point pattern removal.
Here, removal of an isolated point of three pixels of the pattern 3 will be exemplified.

【0037】本例では、nラインの39,40画素、n
+1ラインの39画素が孤立点となっている。この時、 (1)まずnラインの画素変化点を調査する。nライン
ではi1の画素39がラインテーブルより黒変化点と与
えられる。また、ラインテーブルの次ライン即ち次変化
点i2より、画素41が白変化点と与えられる。従っ
て、nラインの画素39,40は、図16〜図18の除
去パターンの条件に当てはまる。
In this example, 39, 40 pixels of n lines, n
39 pixels on the +1 line are isolated points. At this time, (1) First, the pixel change point of the nth line is examined. On the nth line, the pixel 39 of i1 is given as a black change point from the line table. The pixel 41 is given as a white change point from the next line of the line table, that is, the next change point i2. Therefore, the pixels 39 and 40 on the n-th line satisfy the conditions of the removal patterns in FIGS.

【0038】(2)次にn−1ラインを調査する。n−
1ラインはラインテーブルより、白変化点が画素38、
黒変化点が画素44である。従って、h1の画素38〜
h2の画素41は白画素であり、nラインの画素39,
40は、図16〜図18の除去パターンの条件に当ては
まる。
(2) Next, the (n-1) th line is examined. n-
One line has a white change point of pixel 38 from the line table.
The black change point is the pixel 44. Therefore, the pixel 38 of h1
The pixel 41 of h2 is a white pixel, and the pixel 39 of the n-th line,
Reference numeral 40 corresponds to the conditions of the removal patterns shown in FIGS.

【0039】(3)次にn+1ラインを調査する。n+
1ラインではj1の画素39がラインテーブルより黒変
化点と与えられる。また、ラインテーブルの次ライン即
ち次変化点j2より、画素40が白変化点と与えられ
る。従って、n+1ラインの画素39は、図16〜図1
8の除去パターンの条件に当てはまる。
(3) Next, the (n + 1) th line is examined. n +
In one line, the pixel 39 of j1 is given as a black transition point from the line table. The pixel 40 is given as a white change point from the next line of the line table, that is, the next change point j2. Therefore, the pixels 39 on the (n + 1) th line are shown in FIGS.
8 are satisfied.

【0040】(4)最後にn+2ラインを調査する。n
+2ラインはラインテーブルより、白変化点が画素3
5、黒変化点が画素42である。従って、k1の画素3
8〜k2の画素40は白画素であり、本パターンが図1
6のパターン[3]の孤立点除去に当てはまる事が判明
する。
(4) Finally, the n + 2 lines are examined. n
The +2 line has a white transition point of pixel 3 from the line table.
5. The black changing point is the pixel 42. Therefore, pixel 3 of k1
Pixels 8 to k2 are white pixels, and this pattern is shown in FIG.
It is found that this applies to the removal of the isolated point of the pattern [3] of No. 6.

【0041】(5)この時、nラインの画素39,4
0,n+1ラインの画素39について、ランレングステ
ーブルを変更する。即ち、nラインのAddress1
7,18のデータを消去し、更にn+1ラインのAdd
ress11,12のデータを消去する。
(5) At this time, the pixels 39 and 4 on the n-th line
The run length table is changed for the pixels 39 on the 0, n + 1 lines. That is, Address1 of the n-th line
Erase data of Nos. 7 and 18, and further add n + 1 line
The data of the ress 11 and 12 are erased.

【0042】他のパターンについても、nラインの画素
変化点を抽出し、該変化点より上方/下方ラインの画素
パターンをランレングステーブルを用いて調査する事に
より、黒画素ノッチの除去および白画素ノッチの除去を
行う。
For other patterns, pixel change points on the nth line are extracted, and pixel patterns on lines above and below the change point are examined using a run-length table to remove black pixel notches and white pixels. The notch is removed.

【0043】上記に示した第1の手法によるノッチまた
は孤立点除去手法は、ランレングステーブルを用いるこ
とにより、各ライン毎の画素色変化点のみについてパタ
ーンマッチングを行うため、高速な処理が可能となる。
CCITT標準原稿、A4画像について検証した結果で
は、1ライン、約1700画素に対する画素色変化点の
数が平均約26変化点であり、実際の画像画素数に対し
1/60〜1/70程度のパターンマッチングにて実行
する事が可能となる。また、除去するパターンを孤立
点、ノッチ画素および角の欠落のパターンについてのみ
実行する為、高品質な画質を取得することが可能とな
る。
In the above-described notch or isolated point removing method according to the first method, high-speed processing is possible because pattern matching is performed only on pixel color change points of each line by using a run-length table. Become.
As a result of verifying the CCITT standard manuscript and the A4 image, the number of pixel color change points per line and about 1700 pixels is about 26 change points on average, which is about 1/60 to 1/70 of the actual number of image pixels. It can be executed by pattern matching. Further, since the pattern to be removed is executed only for the pattern of the isolated point, the notch pixel and the missing corner, it is possible to obtain high quality image.

【0044】しかしながら、上記第一の手法による除去
手法では、除去パターンの検証に、3画素のパターンの
場合最大5ラインのランレングスデータについてマッチ
ングを行う必要があり、速度の面で期待した効果が得ら
れない場合が生じた。従って、第2の手法によるノッチ
または孤立点除去手法として、3ラインのみを検証する
高速/高効率なノッチまたは孤立点除去手法を提案す
る。
However, in the removal method according to the first method, it is necessary to perform matching on run-length data of up to five lines in the case of a three-pixel pattern in order to verify the removal pattern, and the effect expected in terms of speed is obtained. In some cases, it could not be obtained. Therefore, a high-speed / high-efficiency notch or isolated point removal method for verifying only three lines is proposed as a notch or isolated point removal method according to the second method.

【0045】以下、ランレングスを用いた高速のノッチ
(ノッチの外に孤立点または角欠落をも含み、以下代表
してノッチと称する)除去手法に於ける第2の手法を示
す。図6に、除去するノッチパターンの第2の例を示
す。図6では上向きおよび下向きのノッチについて、画
像ビットマップ列で示す。図6では、1〜3画素までの
ノッチを除去対象と考慮しているが、特に限定するもの
ではない。また、図6に「Don’t Care」で示
される画素は、黒画素もしくは白画素のどちらでも良
い。
Hereinafter, a second method of a high-speed notch removal method using run length (including an isolated point or a corner loss outside the notch, and hereinafter, typically referred to as a notch) will be described. FIG. 6 shows a second example of the notch pattern to be removed. In FIG. 6, the upward and downward notches are indicated by an image bitmap sequence. In FIG. 6, notches of 1 to 3 pixels are considered as objects to be removed, but there is no particular limitation. The pixel indicated by “Don't Care” in FIG. 6 may be either a black pixel or a white pixel.

【0046】以下、図6に表わされるノッチについて、
ランレングスデータを用いた除去手法を示す。
Hereinafter, the notch shown in FIG.
The removal method using run-length data will be described.

【0047】図4に示されたランレングスデータ(ライ
ンテーブル)では、画素色変化点がテーブルとして保持
されている。また、各ライン毎に、テーブルの偶数番地
は白画素への変化点を表し、奇数番地は黒画素への変化
点を表す。
In the run-length data (line table) shown in FIG. 4, pixel color change points are held as a table. Also, for each line, even addresses in the table represent points of change to white pixels, and odd addresses represent points of transition to black pixels.

【0048】従って、2k+1番地のデータ[2k+
1](kは0以上の整数)より、2k番地のデータ[2
k]を引いたものが、k番目の白ラン長として与えられ
る。これは次の式で表わされる。
Therefore, the data at address 2k + 1 [2k +
1] (k is an integer of 0 or more), the data at address 2k [2
k] is given as the k-th white run length. This is represented by the following equation.

【0049】 [2k+1]−[2k] ………… 白ラン長 (数1) (注:先頭の白ラン長のみ、1だけ大きく導出される)
また、2k+2番地のデータ[2k+2](kは0以上
の整数)より、2k+1番地のデータ[2k+1]を引
いたものが、k番目の黒ラン長として与えられる。これ
は次の式で表わされる。
[2k + 1] − [2k]... White run length (Equation 1) (Note: Only the first white run length is derived by 1)
Further, a value obtained by subtracting the data [2k + 1] at the address 2k + 1 from the data [2k + 2] at the address 2k + 2 (k is an integer of 0 or more) is given as the k-th black run length. This is represented by the following equation.

【0050】 [2k+2]−[2k+1] ……… 黒ラン長 (数2) 次に、ノッチ判定処理について述べる。[2k + 2] − [2k + 1]... Black run length (Equation 2) Next, the notch determination processing will be described.

【0051】図7に、ノッチ除去を行うライン及びその
上下ラインについての定義を示す。図7に示す如く、処
理対象ラインをnライン、その上方ラインをn−1ライ
ン、下方ラインをn+1ラインとする。
FIG. 7 shows the definition of the line from which the notch is removed and the upper and lower lines. As shown in FIG. 7, the line to be processed is n lines, the upper line is n-1 line, and the lower line is n + 1 line.

【0052】まず、処理対象ラインについて、黒ノッチ
のサーチを行う。nラインのランレングステーブルにつ
いて、k番目の黒ラン長を求める。(数2)で与えられ
る黒ラン長がしきい値以下(ここでは3)の場合、黒ノ
ッチ条件の判定を行う。
First, a search for a black notch is performed for the line to be processed. The k-th black run length is determined for the n-line run-length table. When the black run length given by (Equation 2) is equal to or less than the threshold value (here, 3), the black notch condition is determined.

【0053】図7は、黒上向きノッチを示す。黒ノッチ
座標をi1,i2と置く。次に、n−1ラインにおけ
る、i1座標を挟んで前方の白変化点h2,後方の白変
化点h2’をサーチする。これは次の式で表わされる。
FIG. 7 shows a black upward notch. The black notch coordinates are set as i1 and i2. Next, a search is made for a white transition point h2 ahead and a white transition point h2 'behind the n1 line with the i1 coordinate in between. This is represented by the following equation.

【0054】 [h2]<[i1]≦[h2’] 但し h2,h2’:連続した白変化点 (数3) この時、図7に示すごとく、h2の次の黒変化点h1’
の座標がi2座標の後方に位置する場合、i1,i2は
黒上向きノッチと定義される。これは次の式で表わされ
る。
[H2] <[i1] ≦ [h2 ′] where h2 and h2 ′: continuous white change points (Equation 3) At this time, as shown in FIG. 7, the next black change point h1 ′ after h2.
Are located behind the i2 coordinate, i1 and i2 are defined as black upward notches. This is represented by the following equation.

【0055】 [h2]<[i1] 且つ [i2]<[h1’] …… 黒上向きノッチ条件 (数4) 図8に、白ノッチ判定手法を示す。図8に示す如く、処
理対象ラインをnライン、その上方ラインをn−1ライ
ン、下方ラインをn+1ラインとする。
[H2] <[i1] and [i2] <[h1 ′]... Black upward notch condition (Equation 4) FIG. 8 shows a white notch determination method. As shown in FIG. 8, the line to be processed is n lines, the upper line is n-1 line, and the lower line is n + 1 line.

【0056】まず、処理対象ラインについて、白ノッチ
のサーチを行う。nラインのランレングステーブルにつ
いて、k番目の白ラン長を求める。(数1)で与えられ
る白ラン長がしきい値以下(ここでは3)の場合、白ノ
ッチ条件の判定を行う。
First, a search for a white notch is performed for the line to be processed. The k-th white run length is determined for the n-line run-length table. When the white run length given by (Equation 1) is equal to or smaller than the threshold value (here, 3), the white notch condition is determined.

【0057】図8は、白上向きノッチを示す。白ノッチ
座標をi1,i2と置く。次に、n−1ラインにおけ
る、i1座標を挟んで前方の黒変化点h2,後方の黒変
化点h2’をサーチする。これは次の式で表わされる。
FIG. 8 shows a white upward notch. The white notch coordinates are set as i1 and i2. Next, a search is made for a black transition point h2 ahead and a black transition point h2 'behind the i1 coordinate on the n-1 line. This is represented by the following equation.

【0058】 [h2]<[i1]≦[h2’] 但し h2,h2’:連続した黒変化点 (数5) この時、図8に示すごとく、h2の次の黒変化点h1’
の座標がi2座標の後方に位置する場合、i1,i2は
白上向きノッチと定義される。これは次の式で表わされ
る。
[H2] <[i1] ≦ [h2 ′] where h2 and h2 ′: continuous black change points (Equation 5) At this time, as shown in FIG. 8, the next black change point h1 ′ after h2.
Are located behind the i2 coordinate, i1 and i2 are defined as white upward notches. This is represented by the following equation.

【0059】 [h2]<[i1] 且つ [i2]<[h1’] …… 白上向きノッチ条件 (数6) 図9に、黒下方ノッチ判定手法を示す。図9に示す如
く、処理対象ラインをnライン、その上方ラインをn−
1ライン、その下方ラインをn+1ラインとする。
[H2] <[i1] and [i2] <[h1 ′]... White upward notch condition (Equation 6) FIG. 9 shows a black lower notch determination method. As shown in FIG. 9, the line to be processed is n lines, and the line above it is n−
One line and a line below the line are referred to as an (n + 1) th line.

【0060】まず、処理対象ラインについて、黒ノッチ
のサーチを行う。nラインのランレングステーブルにつ
いて、k番目の黒ラン長を求める。(数2)で与えられ
る黒ラン長がしきい値以下(ここでは3)の場合、黒ノ
ッチ条件の判定を行う。
First, a search for a black notch is performed for the line to be processed. The k-th black run length is determined for the n-line run-length table. When the black run length given by (Equation 2) is equal to or less than the threshold value (here, 3), the black notch condition is determined.

【0061】黒ノッチ座標をi1,i2と置く。次に、
n+1ラインにおける、i1座標を挟んで前方の黒変化
点k2,後方の黒変化点k2’をサーチする。これは次
の式で表わされる。
The black notch coordinates are set as i1 and i2. next,
In the (n + 1) th line, a black transition point k2 ahead and a black transition point k2 ′ behind the i1 coordinate are searched. This is represented by the following equation.

【0062】 [k2]<[i1]≦[k2’] 但し k2,k2’:連続した黒変化点 (数7) この時、図9に示すごとく、k2の次の黒変化点k1’
の座標がi2座標の後方に位置する場合、i1,i2は
黒下向きノッチと定義される。これは次の式で表わされ
る。
[K2] <[i1] ≦ [k2 ′] where k2 and k2 ′: continuous black change points (Equation 7) At this time, as shown in FIG. 9, the next black change point k1 ′ after k2.
Are located behind the i2 coordinate, i1 and i2 are defined as black notches. This is represented by the following equation.

【0063】 [k2]<[i1] 且つ [i2]<[k1’] …… 黒下向きノッチ条件 (数8) 黒/白ノッチ共に、上向きノッチ、下向きノッチのいず
れか、或いは両方の条件が該頭する場合、ノッチの除去
処理を行う。
[K2] <[i1] and [i2] <[k1 ′]... Black Notch Notch Condition (Equation 8) For both black / white notches, either one of the upward notch, the downward notch, or both conditions are satisfied. If it does, the notch is removed.

【0064】図10に、ノッチ除去処理について示す。
ノッチの除去処理は、ランレングステーブルのデータを
削除する事により、実現する。
FIG. 10 shows the notch removal processing.
The notch removal processing is realized by deleting the data of the run length table.

【0065】図10では、画素データnラインにおける
ノッチi1,i2の除去処理と、ランレングステーブル
におけるノッチ除去処理の対応を示す。画素データでの
ノッチi1,i2に対応する、nライン原画像ランレン
グステーブル(Adress17,18)を削除し、n
ライン高圧縮画像ランレングステーブルを生成する。ま
た、ここでは黒ノッチ除去のみ取り上げたが、白ノッチ
除去についても同様の処理を行う。
FIG. 10 shows the correspondence between the processing for removing the notches i1 and i2 in the n-th line of pixel data and the processing for removing the notches in the run-length table. The n-line original image run-length tables (Address 17, 18) corresponding to the notches i1, i2 in the pixel data are deleted, and n
Generate a line high compression image run length table. Although only the black notch removal is described here, the same processing is performed for the white notch removal.

【0066】なお、ノッチ除去手法として、黒ノッチあ
るいは白ノッチ除去処理のみを行う手法、あるいは黒ノ
ッチ/白ノッチ除去を共に行う手法が考慮される。ま
た、ノッチ判定についても、ノッチの判定を原画像に対
してのみ行う手法、上方ラインより順次修正画像に変換
してノッチの判定を行う手法、本ノッチ処理を繰り返し
行う手法等が考慮される。
As the notch removal method, a method of performing only black notch or white notch removal processing, or a method of performing both black notch / white notch removal is considered. As for the notch determination, a method of performing the notch determination only on the original image, a method of sequentially converting the upper line to a corrected image to determine the notch, a method of repeatedly performing the notch processing, and the like are considered.

【0067】図11に、ノッチの判定を原画像に対して
のみ(削除した画像に対してではなくて)行う手法につ
いて図示する。本手法では、修正されたランレングスデ
ータに基づいたノッチ判定については特に触れてはいな
いが、必ずしも原画像に対してだけノッチ除去をするこ
とを意味するするものではなくて、修正画像に対してノ
ッチ除去をすることを排除するものではない。
FIG. 11 shows a method of performing the notch determination only on the original image (not on the deleted image). In this method, the notch determination based on the corrected run-length data is not specifically mentioned, but this does not necessarily mean that the notch is removed only from the original image. It does not exclude notch removal.

【0068】図12に、ライン単位での黒ノッチ除去フ
ローチャートを示す。黒ノッチ除去処理には、3ライン
の原画像ラインテーブル(S1309,S1310,S
1311)およびそのポインタと、黒ノッチ除去データ
を保持する黒ノッチ除去ラインテーブル(S1312)
およびそのポインタが必要である。
FIG. 12 is a flowchart showing the black notch removal for each line. In the black notch removal processing, the original image line table of three lines (S1309, S1310, S13
1311) and a black notch removal line table holding the pointer and black notch removal data (S1312)
And its pointer is needed.

【0069】まず、各ラインテーブルの初期設定を行な
う(S1301)。黒ノッチ除去ラインテーブルの0番
地には、0を代入しておく。次に、ライン終端判定処理
を行なう(S1302)。ライン終端ないと判断された
場合、次に黒ラン長の導出処理を行なう(S130
3)。この時、黒ラン長の長さの判定を行い、定めるノ
ッチ長よりも長い場合ノッチ除去処理を行なわない(S
1304)。
First, each line table is initialized (S1301). 0 is assigned to address 0 of the black notch removal line table. Next, a line end determination process is performed (S1302). If it is determined that the end of the line has not been reached, the process of deriving the black run length is performed next (S130).
3). At this time, the length of the black run length is determined, and if it is longer than the determined notch length, the notch removal processing is not performed (S
1304).

【0070】次に、黒ラン長の長さがノッチ長に当ては
まる場合、まず上方ラインの画素色を判定し黒ノッチ条
件の判定を行なう(S1305)。更に下方ラインの画
素色を判定し黒ノッチ条件の判定を行なう(S130
6)。上記(S1305)および(S1306)の判定
処理で黒ノッチと判定された場合、黒ノッチの除去処理
即ち黒ノッチ除去ラインテーブルへの非出力処理を行な
う(S1307)。上記黒ノッチ除去の条件に当てはま
らない場合、黒ラン保存処理を行なう(S1308)。
Next, when the length of the black run corresponds to the notch length, the pixel color of the upper line is determined first, and the black notch condition is determined (S1305). Further, the pixel color of the lower line is determined, and the black notch condition is determined (S130).
6). If a black notch is determined in the determination processing in (S1305) and (S1306), black notch removal processing, that is, non-output processing to the black notch removal line table is performed (S1307). If the above condition for black notch removal is not satisfied, black run preservation processing is performed (S1308).

【0071】図13に、ライン単位での白ノッチ除去フ
ローを示す。白ノッチ除去処理には、黒ノッチ除去ライ
ンテーブル(S1410)およびそのポインタ、前ライ
ン(S1409),次ライン(S1411)の原画像ラ
インテーブルおよびそのポインタと、変換後の高圧縮画
像データを保持する高圧縮画像ラインテーブル(S14
12)およびそのポインタが必要である。
FIG. 13 shows a white notch removal flow for each line. In the white notch removal processing, the black notch removal line table (S1410) and its pointer, the original image line table of the previous line (S1409) and the next line (S1411) and its pointer, and the high-compression image data after conversion are held. Highly compressed image line table (S14
12) and its pointer is needed.

【0072】まず、各ラインテーブルの初期設定を行な
う(S1401)。高圧縮画像ラインテーブルの0番地
には、0を代入しておく。次に、ライン終端判定処理を
行なう(S1402)。ライン終端ないと判断された場
合、次に白ラン長の導出処理を行なう(S1403)。
この時、白ラン長の長さの判定を行い、定めるノッチ長
よりも長い場合ノッチ除去処理を行なわない(S140
4)。
First, each line table is initialized (S1401). 0 is assigned to address 0 of the high-compression image line table. Next, a line end determination process is performed (S1402). If it is determined that the line is not at the end, a process of deriving a white run length is performed (S1403).
At this time, the length of the white run length is determined, and if not longer than the determined notch length, the notch removal processing is not performed (S140).
4).

【0073】次に、白ラン長の長さがノッチ長に当ては
まる場合、まず、上方ラインの画素色を判定し白ノッチ
条件の判定を行なう(S1405)。更に下方ラインの
画素色を判定し白ノッチ条件の判定を行なう(S140
6)。上記(S1405)および(S1406)の判定
処理で白ノッチと判定された場合、白ノッチの除去処理
即ち高圧縮画像ラインテーブルへの非出力処理を行なう
(S1407)。上記白ノッチ除去の条件に当てはまら
ない場合、白ラン保存処理を行なう(S1408)。
Next, when the length of the white run length corresponds to the notch length, first, the pixel color of the upper line is determined, and the white notch condition is determined (S1405). Further, the pixel color of the lower line is determined, and the white notch condition is determined (S140).
6). If it is determined in the determination processing in (S1405) and (S1406) that a white notch has occurred, white notch removal processing, that is, non-output processing to the high-compression image line table is performed (S1407). If the above-mentioned condition of white notch removal is not satisfied, white run preservation processing is performed (S1408).

【0074】図12,図13の処理では、各ライン毎に
黒ノッチ/白ノッチ除去を分離実行していた。次に、各
ライン毎の黒/白ノッチ除去1パス処理手法について示
す。
In the processing shown in FIGS. 12 and 13, the black notch / white notch removal is separately executed for each line. Next, a black / white notch removal one-pass processing method for each line will be described.

【0075】図14に、黒/白ノッチ除去1パス処理の
例を示す。ノッチの判定は各ライン左端より順次行う。
黒ノッチの除去を行った場合、次の右方の白ランは、そ
の左方の黒が白になったので、その白ランについては除
去処理を行わない。同様に、白ノッチの除去を行った場
合、次の右方の黒ランについては黒ランが継続すること
となるので除去処理を行わない。
FIG. 14 shows an example of the one-pass processing of black / white notch removal. The notch is determined sequentially from the left end of each line.
When the black notch is removed, the black run on the right side of the next white run becomes white, so the white run is not subjected to the removal processing. Similarly, when the white notch is removed, the black run is continued for the next right black run, so that the removal processing is not performed.

【0076】図15に、黒/白ノッチ除去1パス処理フ
ローを示す。基本的には、黒ノッチ除去処理(S160
2)と白ノッチ除去処理(S1603)の結合である。
ここで、1パス処理というのは、図14に示したよう
に、各ライン毎に黒ノッチと白ノッチ処理を2回のマッ
チングに分けてそれぞれ行うのではなくて、一回のマッ
チングで黒ノッチと白ノッチの処理を並行して行うもの
である。即ち、図14のnラインのマッチングにおい
て、3〜5番目の黒ノッチ除去処理を行った後に、黒ノ
ッチ除去フローを続け、8番目の黒ノッチを除去処理
し、引き続き、10〜13番目の黒ノッチを保存処理し
た後に、白ノッチ処理フローに移行して14〜15の白
ノッチを除去しようとするものである。
FIG. 15 shows the flow of the one-pass processing for removing the black / white notch. Basically, the black notch removal processing (S160
2) and white notch removal processing (S1603).
Here, the one-pass processing does not mean that the black notch processing and the white notch processing are separately performed twice for each line as shown in FIG. And white notch processing are performed in parallel. That is, in the n-line matching shown in FIG. 14, after performing the third to fifth black notch removal processing, the black notch removal flow is continued, the eighth black notch removal processing is performed, and then the 10th to 13th black notch removal processing is performed. After storing the notches, the processing shifts to the white notch processing flow to remove 14 to 15 white notches.

【0077】まず、初期設定を行なう(S1601)。
まず、ノッチ除去処理は黒ノッチ判定/除去処理(S1
602)より行われる。(S1602)において、黒ノ
ッチ除去処理が行われた場合、黒ノッチ除去フロー(S
1602)を再び行う。黒ノッチ除去処理が行われなか
った場合、反対色の白ノッチ除去フロー(S1603)
へ遷移する。白ノッチ除去についても同様であり、(S
1603)において、白ノッチ除去処理が行われた場
合、白ノッチ除去フロー(S1603)を再び行う。ノ
ッチ除去処理が行われなかった場合、反対色のノッチ除
去フロー(S1602)へ遷移する。
First, initialization is performed (S1601).
First, the notch removal process is a black notch determination / removal process (S1).
602). When the black notch removal processing is performed in (S1602), the black notch removal flow (S1602)
1602) is performed again. If the black notch removal processing has not been performed, the white notch removal flow of the opposite color (S1603)
Transition to. The same applies to the removal of the white notch.
If the white notch removal processing is performed in step 1603), the white notch removal flow (S1603) is performed again. If the notch removal processing has not been performed, the flow shifts to the opposite color notch removal flow (S1602).

【0078】これまで提示したランレングスを用いた高
速ノッチ除去手法に於ける第2の例、即ち3ラインのみ
を検証するノッチ除去手法では、基本的に検証を行うラ
インは3ラインのみであり、またノッチパターンを纏め
る事により、第1の手法に対して数十倍、即ち従来のピ
クセル毎のパターンマッチングを用いた画像圧縮/高品
質変換処理に対し数百倍の高速画像圧縮処理を実現する
事が可能となる。
In the second example of the high-speed notch removal method using the run length presented so far, that is, the notch removal method for verifying only three lines, basically only three lines are verified. In addition, by combining the notch patterns, high-speed image compression processing can be realized several tens times that of the first method, ie, several hundred times that of the conventional image compression / high-quality conversion processing using pixel-by-pixel pattern matching. Things become possible.

【0079】また本手法では、符号長が長く圧縮率を下
げる大きな原因となるMR,MMR符号処理に於けるH
符号(水平符号)を除去する効果が高い為、第1の手法
に対し、圧縮率で大きな遜色を生じる事無く圧縮符号変
換を実現することが可能である。
In this method, the code length is long and the compression ratio is reduced.
Since the effect of removing the code (horizontal code) is high, it is possible to realize the compression code conversion without significantly inferior in the compression ratio to the first method.

【0080】また、本手法はCPUを用いたソフトウエ
ア処理を前提としており、従来の一般的なPC,Uni
xマシン等、あるいはFaxや画像蓄積装置等のピクセ
ルからMR,MMR符号への圧縮処理について、ソフト
ウエアの入れ替えのみにより、本発明を簡易に適用する
事が可能である。
Further, the present method is based on software processing using a CPU, and is performed by a conventional general PC, Uni, or the like.
The present invention can be easily applied to the compression processing from pixels of an x-machine or the like or a fax or an image storage device to an MR or MMR code only by replacing software.

【0081】ここにおいて、本発明におけるピクセルデ
ータからMR,MMR等の圧縮データへの画像圧縮手法
について、再度、その機能、作用と併せて説明する。ま
ず、画像データを入力する。画像データはスキャナ、キ
ーボード、マウス等を用い入力する手法、もしくは外部
情報機器等より画像データを取り込む手法等により入力
する。次に、入力した画像のピクセルデータをランレン
グスデータに変換する。次に、ランレングスデータより
孤立点パターン或いはノッチパターンを抽出し、該パタ
ーンの除去処理を行う。次に、ノッチパターンの除去処
理を行ったランレングスデータについて、MR,MMR
符号等の圧縮データへの変換処理を行なう。前記変換処
理終了後、圧縮データを外部情報機器へ転送するか或い
は画像蓄積装置に蓄積する。
Here, the method of compressing an image from pixel data to compressed data such as MR and MMR in the present invention will be described again together with its function and operation. First, image data is input. The image data is input by a method of inputting using a scanner, a keyboard, a mouse, or the like, or a method of inputting image data from an external information device or the like. Next, the pixel data of the input image is converted into run-length data. Next, an isolated point pattern or a notch pattern is extracted from the run-length data, and the pattern is removed. Next, MR and MMR are performed on the run-length data having been subjected to the notch pattern removal processing.
A conversion process to compressed data such as codes is performed. After the completion of the conversion process, the compressed data is transferred to an external information device or stored in an image storage device.

【0082】画像伸長処理手法をもつシステムの場合、
圧縮処理されたMR,MMR符号等のデータをピクセル
データへ復元処理を行なう。前記復元処理終了後、ピク
セル画像データをディスプレイ、プリンタ等へ出力す
る。或いは画像蓄積部に蓄積し或いは外部情報機器へ出
力する。
In the case of a system having an image decompression processing method,
The compressed data such as MR and MMR codes are restored to pixel data. After the completion of the restoration process, the pixel image data is output to a display, a printer, or the like. Alternatively, it is stored in an image storage unit or output to an external information device.

【0083】上記ピクセルデータからMR,MMR等圧
縮データへの画像圧縮手法について、2通りの手法を提
案する。第1の手法は、原画像に対し除去するノッチパ
ターンをあらかじめ指定し、該ノッチパターンに対しラ
ンレングスデータについて忠実にノッチ除去処理を行う
手法である。上記手法では、ノッチ除去とそれに伴う画
像の高品質化は大きな効果が有るが、ノッチパターンの
増加に伴い処理速度が低化する問題点がある。但し上記
手法に於いても、従来のピクセルデータに対しパターン
マッチングを直接行う手法に対し、数倍から数十倍の高
速化が見込める。
Two methods are proposed for image compression from the pixel data to compressed data such as MR and MMR. The first method is a method in which a notch pattern to be removed from an original image is specified in advance, and a notch removal process is performed on the notch pattern faithfully with respect to run-length data. In the above method, notch removal and the accompanying improvement in image quality have a great effect, but there is a problem that the processing speed is reduced as the number of notch patterns increases. However, even in the above method, speedup of several times to several tens times can be expected compared to the conventional method of directly performing pattern matching on pixel data.

【0084】更に第2の手法では、パターンマッチング
を行うランレングスデータラインを3ラインに限定する
事により、上記第1の手法に対し数倍から数十倍の高速
化を実現し、従来手法に対し数百倍の高速処理を実現す
る。
Further, in the second method, the number of run-length data lines for performing pattern matching is limited to three lines, thereby realizing speedup several times to several tens times that of the first method. It realizes several hundred times faster processing.

【0085】かくして本発明によれば、画像のピクセル
データをMR,MMR等の圧縮データへ変換処理を行な
う画像圧縮処理に於いて、これまで用いられた手法に対
し同程度の品質と圧縮率を実現しつつ、従来手法に対し
数百倍の高速画像圧縮処理を実現することが可能とな
る。
Thus, according to the present invention, in image compression processing for converting pixel data of an image into compressed data such as MR, MMR, etc., the same quality and compression ratio as those of the methods used so far are obtained. While realizing, it is possible to realize a high-speed image compression process several hundred times higher than the conventional method.

【0086】そして、本発明は、請求項1、2および3
に記載した技術的事項であるが、これらに加えて、次ぎ
のような事項も本発明の実施形態となるものである。
The present invention relates to claims 1, 2 and 3.
However, in addition to these, the following items also constitute embodiments of the present invention.

【0087】(1)請求項1記載の画像圧縮装置におい
て、検出するパターンとして横方向の孤立点、ノッチ、
角出しあるいは角欠落のパターンの検出とそれらの除去
を含むことを特徴とする画像圧縮装置。
(1) In the image compression apparatus according to the first aspect, as a pattern to be detected, a horizontal isolated point, a notch,
An image compression apparatus characterized by including detection of cornering or missing corner patterns and their removal.

【0088】(2)請求項1記載の画像圧縮装置におい
て、検出するパターンとして縦方向の孤立点、ノッチ、
角出しあるいは角欠落のパターンの検出とそれらの除去
を含むことを特徴とする画像圧縮装置。
(2) In the image compression apparatus according to the first aspect, as the pattern to be detected, a vertical isolated point, a notch,
An image compression apparatus characterized by including detection of cornering or missing corner patterns and their removal.

【0089】(3)請求項1、2または3記載の画像圧
縮装置において、孤立点およびノッチ画素の判定条件と
して、概画素の長さがn画素(nは1以上の自然数)以
下の孤立点またはノッチのみを除去対象とすることを特
徴とする画像圧縮装置。
(3) In the image compression apparatus according to the first, second or third aspect, as a condition for determining an isolated point and a notch pixel, an isolated point whose approximate pixel length is equal to or less than n pixels (n is a natural number of 1 or more) is used. Alternatively, an image compression apparatus characterized in that only notches are to be removed.

【0090】(4)請求項1または2記載の画像圧縮装
置において、パターン検出と除去・修正を行う画像とし
て、原画像のみを対象とすることを特徴とする画像圧縮
装置。
(4) The image compression apparatus according to claim 1 or 2, wherein only an original image is targeted as an image to be subjected to pattern detection and removal / correction.

【0091】(5)請求項1または2記載の画像圧縮装
置において、パターン検出と除去・修正を行う画像とし
て、原画像とこれを除去・修正した変換画像に対して繰
り返し行うことを特徴とする画像圧縮装置。
(5) The image compression apparatus according to claim 1 or 2, wherein the image to be subjected to pattern detection and removal / correction is repeatedly performed on an original image and a converted image obtained by removing / correcting the original image. Image compression device.

【0092】(6)請求項1または2記載の画像圧縮装
置において、黒画素または白画素のいずれか一方の画素
におけるパターンのみを除去対象とすることを特徴とす
る画像圧縮装置。
(6) The image compression apparatus according to claim 1 or 2, wherein only a pattern in one of black pixels and white pixels is to be removed.

【0093】[0093]

【発明の効果】以上のように本発明によれば、画像のピ
クセルデータをMR,MMR等圧縮データへ変換処理を
行なう画像圧縮処理に於いて、これまで用いられた手法
に対し同程度の品質と圧縮率を実現しつつ、従来手法に
対し数百倍の高速画像圧縮処理を実現することが可能と
なる。
As described above, according to the present invention, in image compression processing for converting pixel data of an image into compressed data such as MR, MMR, etc., the quality is almost the same as that of the techniques used so far. It is possible to realize a high-speed image compression process several hundred times higher than the conventional method while realizing a high compression ratio.

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

【図1】本発明の1実施形態に係る画像圧縮処理システ
ムの構成図である。
FIG. 1 is a configuration diagram of an image compression processing system according to an embodiment of the present invention.

【図2】本発明の1実施形態に係る画像圧縮処理の流れ
を示すPAD図である。
FIG. 2 is a PAD diagram showing a flow of an image compression process according to an embodiment of the present invention.

【図3】本発明の1実施形態に係る画像復元処理の流れ
を示すPAD図である。
FIG. 3 is a PAD diagram showing a flow of an image restoration process according to an embodiment of the present invention.

【図4】ランレングスデータの例である。FIG. 4 is an example of run length data.

【図5】ランレングスを用いた高速ノッチ除去手法に於
ける第1の手法の説明図である。
FIG. 5 is an explanatory diagram of a first method in a high-speed notch removal method using run length.

【図6】ランレングスを用いた高速ノッチ除去手法に於
ける第2の手法のパターン図である。
FIG. 6 is a pattern diagram of a second method in a high-speed notch removal method using run length.

【図7】第2の手法に於ける黒上向きノッチ判定を示す
説明図である。
FIG. 7 is an explanatory diagram showing a black upward notch determination in a second method.

【図8】第2の手法に於ける白上向きノッチ判定を示す
説明図である。
FIG. 8 is an explanatory diagram showing a white upward notch determination in the second method.

【図9】第2の手法に於ける黒下向きノッチ判定を示す
説明図である。
FIG. 9 is an explanatory diagram showing a black downward notch determination in the second method.

【図10】第2の手法に於けるランレングスデータに対
するノッチ除去手法を示す説明図である。
FIG. 10 is an explanatory diagram showing a notch removal method for run-length data in a second method.

【図11】ノッチの判定を原画像に対してのみ行う手法
を示す説明図である。
FIG. 11 is an explanatory diagram illustrating a method of performing notch determination only on an original image.

【図12】第2の手法に於けるライン単位での黒ノッチ
除去を示すフローチャートである。
FIG. 12 is a flowchart showing black notch removal in line units in the second method.

【図13】第2の手法に於けるライン単位での白ノッチ
除去を示すフローチャートである。
FIG. 13 is a flowchart showing white notch removal on a line-by-line basis in the second method.

【図14】第2の手法に於ける黒/白ノッチ除去の1パ
ス処理手法を示す説明図である。
FIG. 14 is an explanatory diagram showing a one-pass processing method of black / white notch removal in the second method.

【図15】第2の手法に於ける黒/白ノッチ除去の1パ
ス処理手法を示すフローチャートである。
FIG. 15 is a flowchart showing a one-pass processing method of black / white notch removal in the second method.

【図16】ランレングスを用いた高速ノッチ除去手法に
於ける第1の手法のパターン図1である。
FIG. 16 is a pattern diagram 1 of a first method in a high-speed notch removal method using run length.

【図17】ランレングスを用いた高速ノッチ除去手法に
於ける第1の手法のパターン図2である。
FIG. 17 is a pattern diagram 2 of a first method in a high-speed notch removal method using run length.

【図18】ランレングスを用いた高速ノッチ除去手法に
於ける第1の手法のパターン図3である。
FIG. 18 is a pattern diagram 3 of a first method in a high-speed notch removal method using run length.

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

101 画像入力部 102 ピクセルデータ→ランレングスデータ変換処理
部 103 ランレングスデータ→ランレングスデータ高圧
縮データ変換処理部 104 ランレングスデータ→圧縮データ変換処理部 105 圧縮データ→ピクセルデータ復元処理部 106 画像通信IF部 107 画像蓄積部 108 画像出力部
101 image input unit 102 pixel data → run-length data conversion processing unit 103 run-length data → run-length data high compression data conversion processing unit 104 run-length data → compression data conversion processing unit 105 compressed data → pixel data restoration processing unit 106 image communication IF unit 107 Image storage unit 108 Image output unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像データを取り込む画像入力手段と、
画像を各ライン毎に画素色とそのドット長で表現するラ
ンレングスデータへ変換するランレングスデータ変換手
段と、ランレングスデータから圧縮画像へ変換する画像
圧縮手段を有する画像処理装置において、 前記ランレングスデータ変換手段の出力であるランレン
グスデータから、孤立点パターン、ノッチパターン、角
出しあるいは角欠落のパターンの少なくともいずれか1
つのパターンを検出するパターン検出手段と、 前記パターン検出手段の出力により、前記ランレングス
データから前記検出したパターンを除去あるいは修正す
るパターン除去・修正手段と、を備え、 前記パターン除去・修正手段からの出力を前記画像圧縮
手段に入力することを特徴とする画像圧縮装置。
1. An image input means for capturing image data,
An image processing apparatus comprising: run-length data conversion means for converting an image into run-length data expressed by a pixel color and its dot length for each line; and image compression means for converting the run-length data into a compressed image. At least one of an isolated point pattern, a notch pattern, a cornering or a missing corner pattern is obtained from the run-length data output from the data conversion means.
Pattern detecting means for detecting one pattern, and pattern removing / correcting means for removing or correcting the detected pattern from the run-length data by an output of the pattern detecting means. An image compression apparatus, wherein an output is input to the image compression means.
【請求項2】 画像データを取り込む画像入力手段と、
画像を各ライン毎に画素色とそのドット長で表現するラ
ンレングスデータへ変換するランレングスデータ変換手
段と、ランレングスデータから圧縮画像へ変換する画像
圧縮手段を有する画像処理装置において、 前記ランレングスデータ変換手段の出力であるランレン
グスデータに対して、前記ライン方向の孤立点パターン
およびノッチパターンを、該当するラインの前後のライ
ンを含めた3ラインの検証により検出するパターン検出
手段と、 前記パターン検出手段の出力により、前記ランレングス
データから前記検出したパターンを除去するパターン除
去手段と、を備え、 前記パターン除去手段からの出力を前記画像圧縮手段に
入力することを特徴とする画像圧縮装置。
2. An image input means for inputting image data,
An image processing apparatus comprising: run-length data conversion means for converting an image into run-length data expressed by a pixel color and its dot length for each line; and image compression means for converting the run-length data into a compressed image. Pattern detection means for detecting an isolated point pattern and a notch pattern in the line direction with respect to run-length data output from the data conversion means by verifying three lines including a line before and after the corresponding line; An image compression apparatus comprising: a pattern removal unit that removes the detected pattern from the run-length data according to an output of the detection unit; and inputting an output from the pattern removal unit to the image compression unit.
【請求項3】 画像データを取り込む画像入力手段と、
画像を各ライン毎に黒画素および白画素とそのドット長
で表現するランレングスデータへ変換するランレングス
データ変換手段と、ランレングスデータから圧縮画像へ
変換する画像圧縮手段を有する画像処理装置において、 前記ランレングスデータ変換手段の出力であるランレン
グスデータに対して、前記ライン方向の孤立点パターン
およびノッチパターンを、該当するラインの前後のライ
ンを含めた3ラインの検証により検出するパターン検出
手段と、 前記パターン検出手段の出力により、前記ランレングス
データから前記検出したパターンを除去するパターン除
去手段と、を備え、 前記パターン検出手段および前記パターン除去手段は、
黒画素と白画素にそれぞれ対応して設けられ、前記3ラ
インの一回の検証により、黒画素と白画素における孤立
点パターンおよびノッチパターンの検出および除去を並
行して行い、 前記パターン除去手段からの出力を前記画像圧縮手段に
入力することを特徴とする画像圧縮装置。
3. An image input means for inputting image data,
In an image processing apparatus having run-length data conversion means for converting an image into run-length data expressed by black pixels and white pixels and its dot length for each line, and image compression means for converting run-length data to a compressed image, Pattern detection means for detecting an isolated point pattern and a notch pattern in the line direction with respect to run-length data output from the run-length data conversion means by verifying three lines including a line before and after the corresponding line; A pattern removing unit that removes the detected pattern from the run-length data according to an output of the pattern detecting unit. The pattern detecting unit and the pattern removing unit
The detection and removal of the isolated point pattern and the notch pattern in the black pixel and the white pixel are performed in parallel by the single verification of the three lines provided for the black pixel and the white pixel, respectively. An image compression device, wherein the output of the image compression means is input to the image compression means.
JP8262113A 1996-10-02 1996-10-02 Image compression device Pending JPH10108013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8262113A JPH10108013A (en) 1996-10-02 1996-10-02 Image compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8262113A JPH10108013A (en) 1996-10-02 1996-10-02 Image compression device

Publications (1)

Publication Number Publication Date
JPH10108013A true JPH10108013A (en) 1998-04-24

Family

ID=17371229

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8262113A Pending JPH10108013A (en) 1996-10-02 1996-10-02 Image compression device

Country Status (1)

Country Link
JP (1) JPH10108013A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008125046A1 (en) * 2007-04-11 2008-10-23 Huawei Technologies Co., Ltd. Faxing method, system and faxing computer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008125046A1 (en) * 2007-04-11 2008-10-23 Huawei Technologies Co., Ltd. Faxing method, system and faxing computer

Similar Documents

Publication Publication Date Title
US7376265B2 (en) Segmentation-based hybrid compression scheme for scanned documents
EP0105116B1 (en) Enhancement of video images by selective introduction of gray-scale pels
US6985630B2 (en) Image processing apparatus and method, program and storage medium
US6334001B2 (en) Iterative smoothing technique for pre-processing mixed raster content planes to improve the quality of a decompressed image and increase document compression ratios
JP3063957B2 (en) Image processing device
US8229238B2 (en) Image encoding apparatus, image processing apparatus and control method thereof
US8213727B2 (en) Image encoding apparatus and image decoding apparatus, and control method thereof
JP2010103681A (en) Image processing device and method
KR100475041B1 (en) Image information high-speed compressing method and real-time moving picture transferring method using the same
US20090110313A1 (en) Device for performing image processing based on image attribute
US6272251B1 (en) Fully automatic pasting of images into compressed pre-collated documents
JPS623573A (en) Method and apparatus for processing image data for data compression
US7450769B2 (en) Image processing method for facilitating data transmission
EP1006714A2 (en) Method of processing mixed raster content planes
US20090279145A1 (en) Image data processing system and method
JPH10108013A (en) Image compression device
JP2008206073A (en) Image processing apparatus, control method, program, and storage medium
JP3085932B2 (en) Apparatus for generating predicted image using mask and apparatus for compressing, transmitting and restoring binary image using the same
JP2001320730A (en) Image composing device
JP2882285B2 (en) Color image compression / expansion method
JPH06178122A (en) Adaptive encoding device for color image
JPH118838A (en) Image signal processing device and its method, and learning method for predictive parameter
JP4515107B2 (en) Page background detection and neutrality over scanned documents
JPH05324815A (en) Compression system and output system for multivalued image
JP3279324B2 (en) Data field image compression method