JPH0830794A - Image compression method - Google Patents
Image compression methodInfo
- Publication number
- JPH0830794A JPH0830794A JP6164087A JP16408794A JPH0830794A JP H0830794 A JPH0830794 A JP H0830794A JP 6164087 A JP6164087 A JP 6164087A JP 16408794 A JP16408794 A JP 16408794A JP H0830794 A JPH0830794 A JP H0830794A
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- image
- area
- template
- region
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
- G06T9/004—Predictors, e.g. intraframe, interframe coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Image Processing (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
(57)【要約】
【目的】 画像中にテンプレートでの置き換え効率の悪
い領域が含まれていても高圧縮率を可能にする。
【構成】 マッチング領域判定部102は、入力画像を
格子状の領域に分割して、各領域毎に画像の特徴を判定
する。一例として黒ランの数を数えて、所定数以上あれ
ばハーフトーン領域と判定する。パターン切り出し部1
03はハーフトーン領域以外の文字領域においてパター
ンを切り出す。テンプレート生成マッチング部104
は、切り出したパターンとテンプレートとして登録され
たパターンとのマッチングをとり、シンボル情報、各シ
ンボルの位置情報、各テンプレートのパターン情報を作
成し、予測符号化方法で符号化する。
(57) [Abstract] [Purpose] A high compression rate is possible even if the image contains an area with low template replacement efficiency. A matching area determination unit 102 divides an input image into grid-shaped areas and determines the characteristics of the image for each area. As an example, the number of black runs is counted, and if it is a predetermined number or more, it is determined to be a halftone region. Pattern cutout 1
03 cuts out a pattern in a character area other than the halftone area. Template generation matching unit 104
Matches the cut-out pattern with a pattern registered as a template, creates symbol information, position information of each symbol, and pattern information of each template, and encodes them by the predictive coding method.
Description
【0001】[0001]
【産業上の利用分野】本発明は、ハーフトーン領域を含
む文書画像を高圧縮率で圧縮する画像圧縮方法に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression method for compressing a document image including a halftone area at a high compression rate.
【0002】[0002]
【従来の技術】文書画像から連結成分を切り出し、一つ
の連結成分を一つのパターンとみなしてテンプレートと
して登録し、該切り出されたパターンの内、類似のパタ
ーンをテンプレートで置き換えることによって、イメー
ジ情報を削減する画像圧縮方法がある(例えば、米国特
許第5,303,313号を参照)。2. Description of the Related Art A connected component is cut out from a document image, one connected component is regarded as one pattern and registered as a template, and among the cut out patterns, a similar pattern is replaced with a template to obtain image information. There are image compression methods that reduce (see, eg, US Pat. No. 5,303,313).
【0003】図9は、上記公報に記載された従来の画像
圧縮方法を説明する図である。901は英文字からなる
文書画像、902はテンプレート、903は位置情報、
904はシンボル(テンプレート番号)である。文書画
像901から連結成分(文字パターン)を切り出す。図
の例では、まず連結成分「H」を切り出し、これをテン
プレート902に登録されたパターンとのパターンマッ
チングを行う。この場合、何も登録されていないのでマ
ッチングせず、連結成分「H」がテンプレートとして新
規に登録される。また、連結成分「H」をシンボル
「1」(テンプレート番号)で表現し、そのシンボル9
04の位置情報903と共にメモリに格納する。つま
り、切り出された各連結成分(文字パターン)は、シン
ボル904と、シンボルの位置情報903で表される。FIG. 9 is a diagram for explaining the conventional image compression method described in the above publication. 901 is a document image composed of English characters, 902 is a template, 903 is position information,
Reference numeral 904 is a symbol (template number). A connected component (character pattern) is cut out from the document image 901. In the example of the drawing, first, the connected component “H” is cut out, and this is subjected to pattern matching with the pattern registered in the template 902. In this case, since nothing is registered, no matching is performed and the connected component “H” is newly registered as a template. Also, the connected component “H” is represented by the symbol “1” (template number), and the symbol 9
It is stored in the memory together with the position information 903 of 04. That is, each clipped connected component (character pattern) is represented by the symbol 904 and the symbol position information 903.
【0004】次いで、連結成分「e」を切り出し、これ
もテンプレートに登録されたパターンとマッチングしな
いので、テンプレートとして新規に登録し、これをシン
ボル「2」で表す。以下、連結成分「t」、「o」、
「l」、「d」、「m」までは、同様に処理されてテン
プレートとして登録され、それぞれにシンボル「3」か
ら「7」が割当られ、その位置情報がメモリに格納され
る。Next, the connected component "e" is cut out, and since this also does not match the pattern registered in the template, it is newly registered as a template and is represented by the symbol "2". Hereinafter, connected components “t”, “o”,
Similarly, “l”, “d”, and “m” are processed and registered as templates, symbols “3” to “7” are assigned to each, and the position information is stored in the memory.
【0005】続いて、「m」の次の「e」が切り出され
と、この連結成分「e」は、テンプレートに登録された
パターン「e」とマッチングするのでテンプレートとし
て新規に登録されない。ただし、登録済みのパターンと
マッチングしたパターンとの平均(あるいは両パターン
の代表値)をとったパターンを作成してテンプレートを
更新処理する。これにより、類似するパターンについて
は、その代表パターンが登録されるように更新処理され
る。Then, when the next "e" after "m" is cut out, this connected component "e" is not newly registered as a template because it matches the pattern "e" registered in the template. However, an average of the registered pattern and the matched pattern (or a representative value of both patterns) is created to update the template. As a result, similar patterns are updated so that their representative patterns are registered.
【0006】また、シンボルには既に決定されている
「2」が割り当てられる。以下、同様にしてシンボルと
して数字「9」までが使用されると、文字「h」、
「a」には、それぞれシンボル「a」、「b」が割当ら
れる。Also, the already assigned "2" is assigned to the symbol. In the same manner, when the symbols up to the number “9” are used in the same manner, the character “h”,
Symbols "a" and "b" are assigned to "a", respectively.
【0007】上記したようにして文書画像は、シンボル
列(テンプレート番号列)と、シンボルの位置情報と、
各テンプレートのパターン情報に分解される。そして、
符号化での予測効率を上げ、高い圧縮率を得るためにキ
ャラクタを読み順に並べ替えた後に、予測符号化するこ
とによって画像を高効率に圧縮する。As described above, the document image includes a symbol string (template number string), symbol position information, and
It is decomposed into pattern information of each template. And
In order to improve the prediction efficiency in encoding and to obtain a high compression rate, the characters are rearranged in the reading order, and then predictive encoding is performed to compress the image with high efficiency.
【0008】[0008]
【発明が解決しようとする課題】上記した圧縮方法は、
テキスト画像の圧縮を考慮した方法であり、つまりタイ
プされた文字は本来同じパターンであることから、この
情報の中の冗長性を排除することによって、大きな圧縮
率を得る手法である。従って、上記した方法において
は、テンプレートでの置き換え効率が悪いハーフトーン
画像領域が文書中に存在する場合に、全体として圧縮効
率が悪くなるという問題がある(なお、ハーフトーン画
像とは、階調画像を、網点などを使用して擬似的に2値
で表現した画像をいう)。これは、ハーフトーン領域で
は文字領域のように各パターン間でマッチングがとれな
いことが原因である。The above-mentioned compression method is
This is a method considering compression of a text image, that is, a typed character is originally the same pattern, and thus a method of obtaining a large compression ratio by eliminating redundancy in this information. Therefore, the above method has a problem that the compression efficiency is deteriorated as a whole when there is a halftone image area in the document whose replacement efficiency with the template is poor (note that a halftone image is a gradation An image that is represented by a pseudo binary image using halftone dots. This is because in the halftone area, it is not possible to match each pattern like in the character area.
【0009】上記した例の他に、個別文字を切り出し、
該切り出された個別文字から典型文字パターンを生成
し、これをテンプレートとして各文字パターンを分類
し、典型文字パターンと分類コードを送信する画像情報
圧縮伝送方式がある(特開平3−157064号公報を
参照)。しかし、この方法では、典型文字パターンの生
成領域を考慮していないので、類似パターンの現れ難い
イメージ領域についても、同様の切り出し、マッチング
処理を行うために全体として圧縮効率の向上が期待でき
ない。In addition to the above example, individual characters are cut out,
There is an image information compression transmission system in which a typical character pattern is generated from the cut out individual characters, each character pattern is classified using this as a template, and the typical character pattern and the classification code are transmitted (JP-A-3-157064). reference). However, in this method, since the generation area of the typical character pattern is not taken into consideration, it is not possible to expect improvement in the compression efficiency as a whole because the same clipping and matching processing is performed even for the image area in which the similar pattern is difficult to appear.
【0010】本発明の目的は、画像中にテンプレートで
の置き換え効率の悪い領域が含まれていても高圧縮率を
可能にする画像圧縮方法を提供することにある。It is an object of the present invention to provide an image compression method which enables a high compression rate even if an image includes an area having a low replacement efficiency with a template.
【0011】[0011]
【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、文書画像から連結成分を
切り出し、該連結成分をパターンとみなしてテンプレー
トとして登録し、該パターンと類似する他のパターンを
該テンプレートで置き換えることにより画像情報を圧縮
する画像圧縮方法において、前記文書画像から該テンプ
レートによる置き換えを行なわない領域を判定し、該判
定された領域以外に対してテンプレートによる置き換え
を行って画像を圧縮することを特徴としている。In order to achieve the above object, according to the invention of claim 1, a connected component is cut out from a document image, and the connected component is regarded as a pattern and registered as a template, and is similar to the pattern. In the image compression method of compressing image information by replacing another pattern with the template, a region in the document image that is not replaced by the template is determined, and the region other than the determined region is replaced by the template. The feature is that the image is compressed by going.
【0012】請求項2記載の発明では、前記領域は、ハ
ーフトーン領域であることを特徴としている。According to a second aspect of the invention, the region is a halftone region.
【0013】請求項3記載の発明では、前記領域は、前
記文書画像から切り出された連結成分の輪郭が所定の閾
値以上の大きさの輪郭であることを特徴としている。According to the third aspect of the invention, the area is characterized in that the contour of the connected component cut out from the document image has a size equal to or larger than a predetermined threshold value.
【0014】請求項4記載の発明では、前記領域は、前
記所定の閾値以上の大きさの輪郭に包含されるパターン
であることを特徴としている。According to a fourth aspect of the present invention, the area is a pattern included in a contour having a size equal to or larger than the predetermined threshold value.
【0015】請求項5記載の発明では、前記領域は、前
記文書画像から切り出された連結成分を囲む凸領域が所
定の閾値以上の大きさであるとき、該凸領域の内部にあ
るパターンであることを特徴としている。According to a fifth aspect of the present invention, the area is a pattern inside the convex area when the convex area surrounding the connected component cut out from the document image has a size equal to or larger than a predetermined threshold value. It is characterized by that.
【0016】請求項6記載の発明では、前記領域は、前
記文書画像に対してぼかし処理を施し、ぼかし処理され
た画像から切り出された連結成分の輪郭が所定の閾値以
上の大きさの輪郭であることを特徴としている。According to a sixth aspect of the present invention, in the region, the contour of the connected component cut out from the image subjected to the blurring process is subjected to the blurring process, and the contour has a size equal to or larger than a predetermined threshold value. It is characterized by being.
【0017】請求項7記載の発明では、前記領域は、前
記所定の閾値以上の大きさの輪郭に包含されるパターン
であることを特徴としている。According to a seventh aspect of the present invention, the area is a pattern included in a contour having a size equal to or larger than the predetermined threshold value.
【0018】請求項8記載の発明では、前記領域は、前
記文書画像に対してぼかし処理を施し、ぼかし処理され
た画像から切り出された連結成分を囲む凸領域が所定の
閾値以上の大きさであるとき、該凸領域の内部にあるパ
ターンであることを特徴としている。According to an eighth aspect of the present invention, in the area, a blurring process is performed on the document image, and a convex area surrounding a connected component cut out from the image subjected to the blurring process has a size equal to or larger than a predetermined threshold value. It is characterized in that, at one time, the pattern is inside the convex region.
【0019】[0019]
【作用】本発明の一実施例において、マッチング領域判
定部は、入力画像を格子状の領域に分割して、各領域毎
に画像の特徴を判定する。一判定方法として、黒ランの
数を数えて、所定数以上あればハーフトーン領域と判定
する。パターン切り出し部は、ハーフトーン領域でない
と判定された文字領域などからパターンを切り出す。テ
ンプレート生成マッチング部は、切り出したパターンと
テンプレートとして登録されたパターンとのマッチング
をとり、パターンのシンボル情報、各シンボルの位置情
報、各テンプレートのパターン情報を作成する。符号化
部では、これらの情報を予測符号化方法で符号化するこ
とにより、画像を高圧縮率で圧縮する。In one embodiment of the present invention, the matching area determination unit divides the input image into grid areas and determines the characteristics of the image for each area. As one determination method, the number of black runs is counted, and if it is a predetermined number or more, it is determined to be a halftone region. The pattern cutout unit cuts out a pattern from a character area or the like which is determined not to be a halftone area. The template generation matching unit matches the cut-out pattern with the pattern registered as the template, and creates the symbol information of the pattern, the position information of each symbol, and the pattern information of each template. The coding unit compresses the image at a high compression rate by coding these pieces of information by the predictive coding method.
【0020】[0020]
【実施例】以下、本発明の一実施例を図面を用いて具体
的に説明する。 〈実施例1〉図1は、本発明の実施例1の構成を示す。
図において、101はスキャナなどの画像入力装置、1
02は各格子領域がマッチング対象領域であるか否かを
判定するマッチング領域判定部、103はパターン切り
出し部、104はテンプレートを生成し、マッチングを
行うテンプレート生成マッチング部、105は抽出した
パターン情報や位置情報などを符号化する符号化部、1
06は入力画像や生成データを記憶する記憶部、107
は全体を制御する制御部、108はデータ通信路であ
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be specifically described below with reference to the drawings. <Embodiment 1> FIG. 1 shows the configuration of Embodiment 1 of the present invention.
In the figure, 101 is an image input device such as a scanner, 1
Reference numeral 02 is a matching area determination unit that determines whether or not each lattice area is a matching target area, 103 is a pattern cutout unit, 104 is a template generation matching unit that performs template generation and matching, and 105 is extracted pattern information and An encoding unit that encodes position information and the like, 1
A storage unit 06 stores an input image and generated data.
Is a control unit for controlling the whole, and 108 is a data communication path.
【0021】図2は、本発明の実施例1の処理フローチ
ャートである。図を参照しながら動作を説明する。ま
ず、スキャナなどの画像入力装置101によって画像を
入力する(ステップ201)。次に、マッチング領域判
定部102は、画像を格子状の領域に分割し(例えば、
8×8個に分割)、各領域毎に画像の特徴を調べる(ス
テップ202)。例えば、一つの方法として、黒ランの
数を数えて、一定数以上あればハーフトーン領域と判定
する。ディザ法で表現されたハーフトーン領域は細かい
点から構成されていて、文字領域に比べて黒ランの数が
多いため、ラン数で判別することができる。なお、ディ
ザ法とは、階調画像を2値の擬似的な階調画像に変換す
る一手法であり、画素の値と、閾値行列の要素の値とを
比較して、画素の値が小さければ0、それ以外のとき1
に変換することにより2値の擬似階調画像を生成する方
法である。FIG. 2 is a processing flowchart of the first embodiment of the present invention. The operation will be described with reference to the drawings. First, an image is input by the image input device 101 such as a scanner (step 201). Next, the matching area determination unit 102 divides the image into grid areas (for example,
(8 × 8 division), and the characteristics of the image are examined for each area (step 202). For example, as one method, the number of black runs is counted, and if there is a certain number or more, it is determined as a halftone area. The halftone region represented by the dither method is composed of fine dots, and has a larger number of black runs than the character region, and therefore can be identified by the number of runs. Note that the dither method is a method of converting a gradation image into a binary pseudo gradation image, and compares the pixel value and the element value of the threshold matrix to determine that the pixel value is small. 0 if not, 1 otherwise
It is a method of generating a binary pseudo gradation image by converting into
【0022】マッチング領域判定部102によってハー
フトーン領域(部分)ではない、つまり文字などの領域
であると判別された領域において、パターン切り出し部
103はパターン(黒画素連結成分)の切り出しを行う
(ステップ203、204)。このとき、領域の境界に
かかるパターンについては、領域を超えて連結する画素
をすべて含む形で切り出しもよいし、領域を超える場合
は画素が連結していても無視して、あくまでも領域内だ
けのパターンを切り出すという2つの方法がある。後者
の方がパターン切り出し処理は簡単であるが、領域の境
界でパターンの一部が欠落するため、マッチングの度合
いが減少する。これに対して、前者の方法はパターンが
完全に切り出せるため、マッチングの度合いは落ちない
が、境界周辺での処理が複雑になる。なお、切り出され
たパターンが領域の境界にかかるか否かは、データ記憶
部106に格納されたランデータを参照することによっ
て分かる。In a region which is determined not to be a halftone region (portion) by the matching region determination unit 102, that is, a region such as a character, the pattern cutout unit 103 cuts out a pattern (black pixel connected component) (step). 203, 204). At this time, regarding the pattern applied to the boundary of the region, it may be cut out in a form that includes all the pixels that are connected beyond the region, or if it exceeds the region, even if the pixels are connected, it is ignored, and it is only within the region. There are two methods of cutting out the pattern. In the latter case, the pattern cutout process is easier, but a part of the pattern is missing at the boundary of the area, and the degree of matching is reduced. On the other hand, in the former method, since the pattern can be completely cut out, the degree of matching does not decrease, but the processing around the boundary becomes complicated. It should be noted that whether or not the cut-out pattern covers the boundary of the area can be known by referring to the run data stored in the data storage unit 106.
【0023】次に、テンプレート生成マッチング部10
4は、切り出したパターンとテンプレートとして登録さ
れた幾つかのパターンとのマッチングをとる(ステップ
205)。従来技術で説明したと同様に、マッチングす
ればその登録されたパターンのシンボルによって、切り
出したパターンが表され、またどのテンプレートともマ
ッチングしなければ新たなテンプレートとして登録され
る。このとき、前述したように各シンボルの位置情報も
生成され、各パターンがシンボル情報と各シンボルの位
置情報で表現されてデータ記憶部106に格納される。Next, the template generation matching unit 10
In step 4, matching is performed between the cut-out pattern and some patterns registered as templates (step 205). As described in the prior art, if matched, the extracted pattern is represented by the symbol of the registered pattern, and if it does not match any template, it is registered as a new template. At this time, the position information of each symbol is also generated as described above, and each pattern is represented by the symbol information and the position information of each symbol and stored in the data storage unit 106.
【0024】以上のマッチング/テンプレート生成処理
を、対象となる領域のすべてのパターンについて行う。
その結果、シンボル情報、各シンボルの位置情報、各テ
ンプレートのパターン情報がデータ記憶部106に格納
される。符号化部105は、これらの情報を予測符号化
方法で符号化し、これにより高い圧縮率が得られる。ハ
ーフトーン領域については、その内部の画像情報を所定
の符号化方法(例えば、MH、JBIGなど)で符号化
する(ステップ206)。The above matching / template generation processing is performed for all patterns in the target area.
As a result, the symbol information, the position information of each symbol, and the pattern information of each template are stored in the data storage unit 106. The encoding unit 105 encodes these pieces of information by the predictive encoding method, and thereby a high compression rate is obtained. For the halftone area, the image information inside the halftone area is encoded by a predetermined encoding method (for example, MH, JBIG, etc.) (step 206).
【0025】〈実施例2〉図3は、本発明の実施例2の
構成を示し、実施例1のマッチング領域判定部を、パタ
ーンサイズ判定部に置き換えて構成され、他の要素は実
施例1のものと同様である。<Embodiment 2> FIG. 3 shows the configuration of Embodiment 2 of the present invention, which is configured by replacing the matching area determination unit of Embodiment 1 with a pattern size determination unit, and the other elements are the same as those of Embodiment 1. Similar to that of.
【0026】図4は、本発明の実施例2の処理フローチ
ャートである。まず、画像入力装置301によって画像
を入力し(ステップ401)、次に、パターン切り出し
部303はパターンの切り出しを行う(ステップ40
2)。パターンサイズ判定部302は、切り出したパタ
ーンが所定サイズ以上であるか否かを判定する(ステッ
プ403)。切り出したパターンが所定の大きさ以上の
ものは、文字ではなく写真などを構成する部分と判定
し、マッチングの対象外とするものである。FIG. 4 is a processing flowchart of the second embodiment of the present invention. First, an image is input by the image input device 301 (step 401), and then the pattern cutout unit 303 cuts out a pattern (step 40).
2). The pattern size determination unit 302 determines whether or not the cut out pattern is equal to or larger than a predetermined size (step 403). If the cut-out pattern has a size larger than a predetermined size, it is determined that it is not a character but a part that constitutes a photograph or the like, and is excluded from matching.
【0027】具体的には、切り出したパターン(黒画素
の連結成分)の輪郭を求め、該輪郭(縦および横のサイ
ズまたはその面積)が所定の閾値以上大きいとき、マッ
チングの対象外とする。Specifically, the contour of the cut-out pattern (the connected component of black pixels) is obtained, and when the contour (vertical and horizontal sizes or their areas) is larger than a predetermined threshold value, it is excluded from the matching target.
【0028】従って、図5に示すように、このような所
定サイズ以上のパターン501の内部に含まれる、文字
サイズのパターン502、503などは、マッチングの
対象としない。また、図6は、マッチングの対象外とす
るパターンの他の例を示す。601は所定サイズ以上の
パターン(黒画素連結成分)であり、602は、所定サ
イズ以上のパターン601を囲む凸領域であり、603
は、該凸領域にある文字サイズ程度のパターンである。
本実施例では、所定サイズ以上のパターンを囲む凸領域
内にあるパターン603は、マッチングの対象から外
す。Therefore, as shown in FIG. 5, the character size patterns 502 and 503 included in the pattern 501 having a predetermined size or more are not subjected to matching. Further, FIG. 6 shows another example of a pattern that is excluded from the matching target. Reference numeral 601 denotes a pattern having a predetermined size or more (black pixel connected component), 602 denotes a convex region surrounding the pattern 601 having a predetermined size or more, and 603.
Is a pattern of about the character size in the convex area.
In this embodiment, the pattern 603 in the convex area surrounding the pattern having a predetermined size or more is excluded from the matching target.
【0029】ステップ404以下の処理は、実施例1と
同様であるので、説明を省略する。The processes in and after step 404 are the same as those in the first embodiment, and the description thereof will be omitted.
【0030】〈実施例3〉図7は、実施例3の構成を示
し、実施例2の構成に、ぼかし処理部702を付加して
構成されている。図8は、実施例3の処理フローチャー
トである。ハーフトーン部分をディザ法で表現すると、
黒画素は連結しにくいので、ハーフトーン部分を構成す
るパターンは小さくなり易い。<Third Embodiment> FIG. 7 shows the configuration of the third embodiment, which is configured by adding a blurring processing unit 702 to the configuration of the second embodiment. FIG. 8 is a processing flowchart of the third embodiment. When expressing the halftone part with the dither method,
Since it is difficult to connect black pixels, the pattern forming the halftone portion tends to be small.
【0031】そこで、本実施例では、パターンの切り出
し処理を行う前に、ぼかし処理部702で予め画像にぼ
かし処理を施す(ステップ802)。例えば、このよう
なぼかし処理としては、8画素×8画素の領域の中に一
つでも黒画素があれば64画素すべてを黒画素とする処
理である。このぼかし処理によってハーフトーン部分は
黒画素が近接しているので、全体的に融合して大きな黒
画素連結成分(パターン)となる。Therefore, in this embodiment, the blurring processing unit 702 performs blurring processing on the image in advance before performing the pattern cutting processing (step 802). For example, such a blurring process is a process of setting all 64 pixels as black pixels if there is at least one black pixel in the area of 8 pixels × 8 pixels. By this blurring process, since black pixels are close to each other in the halftone portion, they are fused as a whole to form a large black pixel connected component (pattern).
【0032】一方、文字部分は同一行の隣合う文字は融
合するものの、行間までは融合しない(その程度にぼか
しを設定しておく)ので、ぼかし処理後の連結成分はさ
ほど大きな塊とはならない。On the other hand, in the character portion, adjacent characters on the same line are merged, but not between lines (blurring is set to that extent), so that the connected component after the blurring process does not become a large chunk. .
【0033】ぼかし処理後、実施例2と同様に、パター
ン切り出し部704がパターンを切り出し(ステップ8
03)、切り出されたパターンについて、パターンサイ
ズ判定部703は所定以上の大きさか否かを判定する
(ステップ804)。以下、実施例2と同様に、パター
ンが所定以上の大きさのパターンと、またその内部のパ
ターンについては、マッチング対象外とする。マッチン
グ対象と判定された領域については、実施例1、2と同
様にして、原画像上でマッチング/テンプレート生成を
行い(ステップ805)、符号化する(ステップ80
6)。After the blurring process, the pattern cutout unit 704 cuts out the pattern as in the second embodiment (step 8).
03), the pattern size determination unit 703 determines whether or not the extracted pattern has a size equal to or larger than a predetermined size (step 804). Hereinafter, as in the second embodiment, a pattern having a size equal to or larger than a predetermined size and a pattern inside the pattern are excluded from the matching target. With respect to the area determined to be the matching target, matching / template generation is performed on the original image (step 805) and coded (step 80) as in the first and second embodiments.
6).
【0034】[0034]
【発明の効果】以上、説明したように、請求項1、2記
載の発明によれば、文書画像から該テンプレートによる
置き換えを行なわない領域を判定し、判定された領域以
外に対してテンプレートによる置き換えを行って画像を
圧縮しているので、マッチング効率の悪いハーフトーン
部分を含む画像においても、マッチング処理を利用した
圧縮方法によって高い圧縮率を実現することができる。
また、簡単な処理によってハーフトーン領域を判別する
ことができる。As described above, according to the first and second aspects of the present invention, an area in the document image that is not replaced by the template is determined, and the area other than the determined area is replaced by the template. Since the image is compressed by performing the above process, a high compression rate can be realized by a compression method using the matching process even for an image including a halftone portion with poor matching efficiency.
Further, the halftone region can be identified by a simple process.
【0035】請求項3、4、5記載の発明によれば、連
結成分の輪郭が所定の閾値以上の大きさの輪郭と、所定
の閾値以上の大きさの輪郭に包含されるパターンと、連
結成分を囲む凸領域が所定の閾値以上の大きさであっ
て、その凸領域の内部にあるパターンとを、文字部分か
ら高精度に分離しているので、効率よく画像を圧縮する
ことができる。According to the third and fourth aspects of the present invention, the contour of the connected component has a size equal to or larger than a predetermined threshold, and the pattern included in the contour has a size equal to or larger than the predetermined threshold. Since the convex area surrounding the component has a size equal to or larger than a predetermined threshold and the pattern inside the convex area is separated from the character portion with high accuracy, the image can be efficiently compressed.
【0036】請求項6、7、8記載の発明によれば、文
書画像中のハーフトーン領域がディザ法で処理されてい
ても、ぼかし処理を施しているので、連結成分の輪郭が
所定の閾値以上の大きさの輪郭と、所定の閾値以上の大
きさの輪郭に包含されるパターンと、連結成分を囲む凸
領域が所定の閾値以上の大きさであって、その凸領域の
内部にあるパターンとを、文字部分から高精度に分離す
ることができ、従って画像の高圧縮が可能となる。According to the sixth, seventh and eighth aspects of the invention, even if the halftone region in the document image is processed by the dither method, the blurring process is performed, so that the contour of the connected component has a predetermined threshold value. A contour having the above size, a pattern included in the contour having a size equal to or larger than a predetermined threshold, and a convex region surrounding the connected component having a size equal to or larger than the predetermined threshold and being inside the convex region. And can be separated from the character portion with high accuracy, and thus the image can be highly compressed.
【図1】本発明の実施例1の構成を示す。FIG. 1 shows a configuration of a first embodiment of the present invention.
【図2】本発明の実施例1の処理フローチャートであ
る。FIG. 2 is a processing flowchart of the first embodiment of the present invention.
【図3】本発明の実施例2の構成を示す。FIG. 3 shows a configuration of a second embodiment of the present invention.
【図4】本発明の実施例2の処理フローチャートであ
る。FIG. 4 is a processing flowchart of a second embodiment of the present invention.
【図5】マッチングの対象外とするパターンの例を示
す。FIG. 5 shows an example of patterns excluded from matching.
【図6】マッチングの対象外とするパターンの他の例を
示す。FIG. 6 shows another example of patterns excluded from matching.
【図7】本発明の実施例3の構成を示す。FIG. 7 shows a configuration of a third embodiment of the present invention.
【図8】本発明の実施例3の処理フローチャートであ
る。FIG. 8 is a processing flowchart of a third embodiment of the present invention.
【図9】従来の画像圧縮方法を説明する図である。FIG. 9 is a diagram illustrating a conventional image compression method.
101 画像入力装置 102 マッチング領域判定部 103 パターン切り出し部 104 テンプレート生成マッチング部 105 符号化部 106 データ記憶部 107 制御部 108 データ通信路 Reference Signs List 101 image input device 102 matching area determination unit 103 pattern cutout unit 104 template generation matching unit 105 encoding unit 106 data storage unit 107 control unit 108 data communication path
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/411 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 1/411
Claims (8)
結成分をパターンとみなしてテンプレートとして登録
し、該パターンと類似する他のパターンを該テンプレー
トで置き換えることにより画像情報を圧縮する画像圧縮
方法において、前記文書画像から該テンプレートによる
置き換えを行なわない領域を判定し、該判定された領域
以外に対してテンプレートによる置き換えを行って画像
を圧縮することを特徴とする画像圧縮方法。1. An image compression method for compressing image information by extracting a connected component from a document image, regarding the connected component as a pattern, registering it as a template, and replacing another pattern similar to the pattern with the template. An image compression method comprising: determining an area in the document image that is not replaced with the template, and replacing the area other than the determined area with the template to compress the image.
とを特徴とする請求項1記載の画像圧縮方法。2. The image compression method according to claim 1, wherein the region is a halftone region.
れた連結成分の輪郭が所定の閾値以上の大きさの輪郭で
あることを特徴とする請求項1記載の画像圧縮方法。3. The image compression method according to claim 1, wherein the region is a contour in which a contour of a connected component cut out from the document image has a size equal to or larger than a predetermined threshold value.
さの輪郭に包含されるパターンであることを特徴とする
請求項3記載の画像圧縮方法。4. The image compression method according to claim 3, wherein the region is a pattern included in a contour having a size equal to or larger than the predetermined threshold value.
れた連結成分を囲む凸領域が所定の閾値以上の大きさで
あるとき、該凸領域の内部にあるパターンであることを
特徴とする請求項1記載の画像圧縮方法。5. The area is a pattern inside the convex area when the convex area surrounding the connected component cut out from the document image has a size equal to or larger than a predetermined threshold value. The image compression method according to item 1.
し処理を施し、ぼかし処理された画像から切り出された
連結成分の輪郭が所定の閾値以上の大きさの輪郭である
ことを特徴とする請求項1記載の画像圧縮方法。6. The region is characterized in that a blurring process is performed on the document image, and a contour of a connected component cut out from the image subjected to the blurring process is a contour having a size equal to or larger than a predetermined threshold value. The image compression method according to claim 1.
さの輪郭に包含されるパターンであることを特徴とする
請求項6記載の画像圧縮方法。7. The image compression method according to claim 6, wherein the region is a pattern included in a contour having a size equal to or larger than the predetermined threshold value.
し処理を施し、ぼかし処理された画像から切り出された
連結成分を囲む凸領域が所定の閾値以上の大きさである
とき、該凸領域の内部にあるパターンであることを特徴
とする請求項1記載の画像圧縮方法。8. The convex region is obtained by subjecting the document image to blur processing, and when a convex region surrounding a connected component cut out from the blur-processed image has a size equal to or larger than a predetermined threshold value. The image compression method according to claim 1, wherein the image compression pattern is an internal pattern.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6164087A JP3031603B2 (en) | 1994-07-15 | 1994-07-15 | Image compression method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6164087A JP3031603B2 (en) | 1994-07-15 | 1994-07-15 | Image compression method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0830794A true JPH0830794A (en) | 1996-02-02 |
| JP3031603B2 JP3031603B2 (en) | 2000-04-10 |
Family
ID=15786534
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6164087A Expired - Fee Related JP3031603B2 (en) | 1994-07-15 | 1994-07-15 | Image compression method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3031603B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001069793A1 (en) * | 2000-03-16 | 2001-09-20 | Sharp Kabushiki Kaisha | Image encoding device, decoding device and encoding method, decoding method, and recorded program on which programs of the methods are recorded |
| JP2002314821A (en) * | 2001-04-18 | 2002-10-25 | Ricoh Co Ltd | Image compression method, image expansion method, image compression device, and image expansion device |
| JP2005006353A (en) * | 2004-08-18 | 2005-01-06 | Sharp Corp | Image encoding apparatus, image encoding method, computer-readable recording medium recording program of image encoding method, and computer-readable recording medium recording program of image decoding method and image decoding method |
| US8233731B2 (en) | 2007-12-28 | 2012-07-31 | Samsung Electronics Co., Ltd. | Method and apparatus to encode and decode halftone image |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111951210A (en) * | 2019-05-14 | 2020-11-17 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
-
1994
- 1994-07-15 JP JP6164087A patent/JP3031603B2/en not_active Expired - Fee Related
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001069793A1 (en) * | 2000-03-16 | 2001-09-20 | Sharp Kabushiki Kaisha | Image encoding device, decoding device and encoding method, decoding method, and recorded program on which programs of the methods are recorded |
| JP2002314821A (en) * | 2001-04-18 | 2002-10-25 | Ricoh Co Ltd | Image compression method, image expansion method, image compression device, and image expansion device |
| JP2005006353A (en) * | 2004-08-18 | 2005-01-06 | Sharp Corp | Image encoding apparatus, image encoding method, computer-readable recording medium recording program of image encoding method, and computer-readable recording medium recording program of image decoding method and image decoding method |
| US8233731B2 (en) | 2007-12-28 | 2012-07-31 | Samsung Electronics Co., Ltd. | Method and apparatus to encode and decode halftone image |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3031603B2 (en) | 2000-04-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5303313A (en) | Method and apparatus for compression of images | |
| US8331671B2 (en) | Image processing apparatus and image encoding method related to non-photo image regions | |
| US8077986B2 (en) | Information processing apparatus, method of controlling same and computer program | |
| JP3302246B2 (en) | Encoding device | |
| US7373008B2 (en) | Grayscale and binary image data compression | |
| US20040165782A1 (en) | Image processing apparatus | |
| JP2000059230A5 (en) | ||
| US6798914B1 (en) | Neural-network-based method of image compression | |
| JP2000048036A (en) | Image processing apparatus and method | |
| EP0902398B1 (en) | Method and system for compressing and decompressing binary representations of dithered images | |
| JP3031603B2 (en) | Image compression method | |
| US6487311B1 (en) | OCR-based image compression | |
| JP4364809B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
| JP2007306560A (en) | Method for processing page boundary of document image data | |
| US10341671B2 (en) | Method and system for image compression | |
| KR100765761B1 (en) | Image Forming System and Image Forming Method | |
| JPH11272798A (en) | Method and device for distinguishing bold character | |
| JP3281183B2 (en) | Image encoding / decoding method and image encoding / decoding device | |
| JP2005204206A (en) | Image processing apparatus, image processing program, and storage medium | |
| JP4311663B2 (en) | Document conversion apparatus, document conversion method, document conversion program, and recording medium | |
| JP4237642B2 (en) | Image processing apparatus, image processing program, and storage medium | |
| Deng et al. | Low-bit-rate image coding using sketch image and JBIG | |
| JP4383187B2 (en) | Image processing apparatus, image processing program, and storage medium | |
| JP2005338902A (en) | Document data structure, document conversion apparatus, document restoration apparatus, document conversion method, document restoration method, document conversion program, document restoration program, and recording medium | |
| JP3363698B2 (en) | Multi-tone image coding device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080210 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090210 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100210 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110210 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |