JPH05308505A - Method and device for reducing quantity of image information - Google Patents

Method and device for reducing quantity of image information

Info

Publication number
JPH05308505A
JPH05308505A JP11290792A JP11290792A JPH05308505A JP H05308505 A JPH05308505 A JP H05308505A JP 11290792 A JP11290792 A JP 11290792A JP 11290792 A JP11290792 A JP 11290792A JP H05308505 A JPH05308505 A JP H05308505A
Authority
JP
Japan
Prior art keywords
block
pixels
image
zero
value
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
JP11290792A
Other languages
Japanese (ja)
Inventor
Hiroyuki Kono
裕之 河野
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP11290792A priority Critical patent/JPH05308505A/en
Publication of JPH05308505A publication Critical patent/JPH05308505A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To compress redundancy by dividing a source image into a blank part A where all the picture elements are ''0,'' and constructural blocks B where one or more picture elements not being '0' are contained and a main scanning direction and a sub scanning direction are separated just for the prescribed number of picture elements or more from each other, and replacing the information of the part A with the positions and heights of the blocks B. CONSTITUTION:It is discriminated whether all the picture elements of respective lines in the source image are '0' or one or more picture elements not being '0' are contained and when one or more picture elements not being '0' are contained, the respective lines are classified into the blank block where all the picture elements are '0', and image blocks which contain one or more picture elements not being '0' and have the integral multiple length of a prescribed value in the main scanning direction. Next, the leading positions and width of the respective image blocks are successively and repeatedly measured from the heads of the lines concerning all the lines and by using this result, the lines are divided into the blank part A where the picture elements are '0', and the structural blocks B where one or more picture elements not being '0' are contained. Then, the information of the A is replaced with the positions, width and heights of source images in blocks B1-B3. Thus, the quantity of redundant image information is reduced.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像の情報量削減方法
及び装置に関し、特に、画像の冗長な情報量を削減する
画像の情報量削減方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for reducing the information amount of an image, and more particularly to a method and apparatus for reducing the information amount of an image for reducing the redundant information amount of the image.

【0002】[0002]

【従来の技術】従来、画像データはメモリ等の記憶装置
に記憶する際に画像圧縮等の処理を施している。その圧
縮の方法については種々の方法があるが、画像全体を符
号化するものが大多数である。
2. Description of the Related Art Conventionally, image data has been subjected to processing such as image compression when stored in a storage device such as a memory. There are various compression methods, but most of them encode the entire image.

【0003】ところで、図1のような通常の画像データ
は、図2のように文字や写真・図形等の部分Bと余白部
分Aとに分けることができ、余白部分Aは冗長な部分で
ある。なお、図1及び図2において、細線は0でない画
素がある部分を、太線は余白部分Aと文字や写真・図形
等の部分Bとの境界をそれぞれ表す。上記余白部分Aの
情報量をあらかじめ削減しておけば、画像全体を符号化
するよりも処理対象となる画像の情報量が少なく、従っ
て圧縮に要する時間の短縮を図ることができ、また、R
AM(ランダムアクセスメモリ)などの記憶装置におけ
る圧縮画像の占有量も画像全体を符号化する場合に比べ
て削減することができる。また、冗長な部分の情報量を
削減しているので、画質に対する影響も少ない。
By the way, the normal image data as shown in FIG. 1 can be divided into a portion B of characters, photographs, figures and the like and a blank portion A as shown in FIG. 2, and the blank portion A is a redundant portion. .. 1 and 2, a thin line represents a portion having non-zero pixels, and a thick line represents a boundary between the margin portion A and the portion B such as a character, a photograph or a figure. If the amount of information in the blank area A is reduced in advance, the amount of information in the image to be processed is smaller than that in encoding the entire image, and therefore the time required for compression can be shortened.
The occupied amount of the compressed image in the storage device such as AM (Random Access Memory) can be reduced as compared with the case where the entire image is encoded. In addition, since the amount of information in the redundant portion is reduced, the influence on the image quality is small.

【0004】冗長な部分である余白部分の情報量を削減
する画像の情報量削減方法には、例えば特開平2−71
670号公報に開示されている方法がある。この方法
は、同じレイアウト属性を持つ画素をランレングス・ス
ムージング・アルゴリズムによって連結し、上記処理を
行った画素に境界追跡処理を行って矩形領域を抽出する
ことにより冗長な部分の情報量を削減している。
An image information amount reducing method for reducing the information amount of a blank portion which is a redundant portion is disclosed in, for example, Japanese Patent Laid-Open No. 2-71.
There is a method disclosed in Japanese Patent No. 670. In this method, pixels with the same layout attribute are connected by a run-length smoothing algorithm, and the pixels subjected to the above processing are subjected to boundary tracking processing to extract a rectangular area, thereby reducing the amount of information in redundant parts. ing.

【0005】[0005]

【発明が解決しようとする課題】しかし、上に例示した
方法ではランレングス・スムージング・アルゴリズムに
よる前処理が必要であり、予め矩形領域を確定した後で
なければ情報量削減処理を行うことができず、前処理を
行わない方法に比べて処理時間が余計にかかるという問
題があり、また、ハードウェアでの実現の際も基板占有
面積が大きくなるという問題がある。また、上記公報に
記載のランレングススムージングアルゴリズムは、白黒
の2値画像を対象としており、中間調画像やカラー画像
といった他階調画像には対応できない等の問題がある。
However, the method exemplified above requires the pre-processing by the run-length smoothing algorithm, and the information amount reduction processing can be performed only after the rectangular area is determined in advance. In addition, there is a problem that the processing time is longer than that in the method in which the pre-processing is not performed, and there is a problem that the board occupying area becomes large when the hardware is used. Further, the run-length smoothing algorithm described in the above publication is intended for a black and white binary image and has a problem that it cannot be applied to other gradation images such as a halftone image and a color image.

【0006】本発明は、上記の問題点に鑑みてなされた
ものであり、リアルタイムで冗長な部分である主走査方
向及び副走査方向の余白部分の情報量を削減することに
よって画像の冗長な情報量を削減することを目的とす
る。
The present invention has been made in view of the above problems, and the redundant information of an image is reduced by reducing the information amount of a blank portion in the main scanning direction and the sub scanning direction which is a redundant portion in real time. The purpose is to reduce the amount.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
に本発明の画像の情報量削減方法は、原画像の各ライン
の画素が全て0か、0でない画素を1つ以上含むかを判
別し、0でない画素を1つ以上含む場合には、各ライン
を、全ての画素が0である全零ブロックと、0でない画
素を1つ以上含み主走査方向に所定の値の自然数倍の長
さをもつ非全零ブロックとに分類し、各非全零ブロック
のライン先頭からの位置及び主走査方向の長さを測定
し、上記判別、分類及び測定を原画像の全てのラインに
ついてライン先頭から順次繰り返し、上記判別、分類及
び測定の結果から、原画像を全ての画素が0である全零
領域と、0でない画素を1つ以上含み主走査方向及び副
走査方向に相互に所定の画素数分以上の間隔がある非全
零領域とに分け、上記全零領域の情報を、上記各非全零
領域の原画像における位置と、主走査方向及び副走査方
向の大きさとに置き換えることを特徴とする。
In order to solve the above-mentioned problems, an image information amount reduction method of the present invention discriminates whether all pixels of each line of an original image are 0 or include at least one non-zero pixel. However, when one or more pixels that are not 0 are included, each line includes an all-zero block in which all the pixels are 0 and one or more pixels that are not 0 and is a natural multiple of a predetermined value in the main scanning direction. It is classified into non-all-zero blocks having a length, the position from the beginning of the line of each non-all-zero block and the length in the main scanning direction are measured, and the above discrimination, classification and measurement are performed for all lines of the original image. Iteratively repeats from the beginning, and based on the results of the above discrimination, classification, and measurement, the original image includes all zero regions in which all the pixels are 0, and one or more pixels that are not 0, and mutually predetermined in the main scanning direction and the sub scanning direction. Divide it into non-all-zero areas that have an interval of more than the number of pixels, and The information of all zero area, and replaces the position of each of the non-all-zero regions of the original image, the size of the main scanning direction and the sub scanning direction.

【0008】また、本発明の画像の情報量削減装置にお
いては、情報量を削減すべき原画像が記憶される画像メ
モリと、原画像を走査して原画像を全ての画素が0であ
る全零領域と、0でない画素を1つ以上含み主走査方向
及び副走査方向に相互に所定の画素数分以上の間隔があ
る非全零領域とに分け、上記各非全零領域の原画像にお
ける位置と主走査方向及び副走査方向の大きさとを上記
各非全零領域を表す各値として抽出する各値抽出部と、
上記各値抽出部により抽出された上記各値に基づいて上
記画像メモリに記憶されている原画像から各非全零領域
内の画像データを抽出し、該画像データと上記各値を出
力する画像抽出部とを備えており、余白部分の情報を、
各構造ブロックの原画像における位置と、幅と、副走査
方向の大きさとに置き換えることにより、画像の冗長な
情報量を削減する。
Further, in the image information amount reducing apparatus of the present invention, an image memory in which an original image whose information amount is to be reduced is stored, and an original image is scanned so that all pixels in the original image are 0. In the original image of each non-all-zero region, the zero-region is divided into a non-all-zero region which includes one or more non-zero pixels and is spaced from each other by a predetermined number of pixels or more in the main scanning direction and the sub-scanning direction. A value extracting unit that extracts the position and the size in the main scanning direction and the sub-scanning direction as each value representing each non-all-zero region,
An image in which image data in each non-all-zero region is extracted from the original image stored in the image memory based on each value extracted by each value extraction unit, and the image data and each value are output. It is equipped with an extraction part, and the information of the blank part is
By replacing each structural block with the position in the original image, the width, and the size in the sub-scanning direction, the redundant information amount of the image is reduced.

【0009】[0009]

【作用】原画像の各ラインの画素が全て0か、0でない
画素を1つ以上含むかが判別され、0でない画素を1つ
以上含む場合には、各ラインが、全ての画素がである全
零ブロック(以下余白ブロックと呼ぶ)と、0でない画
素を1つ以上含み主走査方向に所定の値の整数倍の長さ
を持つ非全零ブロック(以下画像ブロックと呼ぶ)とに
分類される。次いで、各画像ブロックのライン先頭から
の画素数(以下先頭位置と呼ぶ)及び主走査方向の長さ
(以下幅と呼ぶ)が測定される。上記判別、分類及び測
定が原画像の全てのラインについてライン先頭から順次
繰り返えされ、上記判別、分類及び測定の結果から、原
画像が、全ての画素が0である全零領域(以下余白部分
と呼ぶ)と、0でない画素を1つ以上含み主走査方向及
び副走査方向に相互所定の画素数分以上の間隔が非全零
領域(以下構造ブロックとよぶ)とに分けられる。これ
により、余白部分の情報が、各構造ブロックの原画像に
おける位置(以下単に位置と呼ぶ)と、幅と、副走査方
向の大きさ(以下高さと呼ぶ)とに置き換えられ、画像
の冗長な情報量が削減される。
It is determined whether the pixels of each line of the original image are all 0 or include at least one non-zero pixel, and if each pixel includes at least one non-zero pixel, all the pixels in each line are It is classified into an all-zero block (hereinafter, referred to as a blank block) and a non-all-zero block (hereinafter, referred to as an image block) that includes one or more non-zero pixels and has a length that is an integral multiple of a predetermined value in the main scanning direction. It Next, the number of pixels from the line head of each image block (hereinafter referred to as the head position) and the length in the main scanning direction (hereinafter referred to as the width) are measured. The discrimination, classification, and measurement are sequentially repeated for all lines of the original image from the beginning of the line. From the discrimination, classification, and measurement results, the original image shows all-zero regions (hereinafter referred to as margins) in which all pixels are 0. (Referred to as a portion), which includes one or more non-zero pixels and is divided into non-all-zero regions (hereinafter referred to as structural blocks) at intervals equal to or more than a predetermined number of pixels in the main scanning direction and the sub scanning direction. As a result, the information of the margin portion is replaced with the position (hereinafter simply referred to as position) of each structural block in the original image, the width, and the size in the sub-scanning direction (hereinafter referred to as height), which results in redundant image. The amount of information is reduced.

【0010】すなわち、本発明によれば、原画像は、図
2のように全ての画素が0である余白部分Aと、0でな
い画素を1つ以上含み主走査方向及び副走査方向に相互
に所定の画素数分以上の間隔がある構造ブロックBとに
分けられ、余白部分Aの情報が構造ブロックBの位置と
幅と高さとに置き換えられる。よって、余白部分Aの情
報量が削減できるので、原画像の冗長な情報量を圧縮す
ることができる。
That is, according to the present invention, the original image includes a blank portion A in which all pixels are 0 and one or more non-zero pixels as shown in FIG. It is divided into a structural block B having an interval equal to or more than a predetermined number of pixels, and the information of the blank area A is replaced with the position, width and height of the structural block B. Therefore, the amount of information in the blank area A can be reduced, and the redundant amount of information in the original image can be compressed.

【0011】上記各構造ブロックB内の画像データは符
号化されていないため、例えば予測誤差符号化などの方
式により符号化すれば、原画像からの圧縮率は、原画像
をそのまま符号化する場合に比べて向上する。原画像の
全ての画素が0である場合には、それを示す符号を情報
量削減の結果とすればよい。
Since the image data in each structural block B is not coded, if it is coded by a method such as prediction error coding, the compression rate from the original image is the same as when the original image is coded. To improve. When all the pixels of the original image are 0, the code indicating that is the result of the information amount reduction.

【0012】また、各構造ブロックBの位置と、幅と、
高さとが抽出されているため、本発明による情報量削減
を行った画像について、移動、回転、削除等の種々の画
像処理を構造ブロック単位で施すことが可能である。
Further, the position and width of each structural block B,
Since the height is extracted, it is possible to perform various image processing such as movement, rotation, and deletion on the structural block unit for the image for which the amount of information is reduced according to the present invention.

【0013】[0013]

【実施例】以下本発明の実施例を、図面を参照しながら
説明する。なお、本実施例では、説明の簡略化のため、
情報量削減の対象となる原画像を白黒の2値画像につい
て説明するが、カラー画像にも適用することができる。
なお、以下の説明において情報量削減の対象となる2値
画像は、画素の値が0である白画素と、1である黒画素
とからなっている。
Embodiments of the present invention will be described below with reference to the drawings. In this embodiment, for simplification of description,
Although the original image for which the amount of information is to be reduced is described as a monochrome binary image, it can be applied to a color image.
In the following description, the binary image that is the target of the information amount reduction is composed of white pixels whose pixel values are 0 and black pixels whose pixel values are 1.

【0014】図3は、2値画像の一例を示しており、B
1 〜B3 は各構造ブロックのインデックスを、1a ,1
a+1 ,1b ,1b+1 ,1c ,1c+1 ,1d ,1d+1 は先
頭ラインから数えたライン数(以下単に「ライン数」と
呼ぶ)を、p1 〜p3 は構造ブロックB1 〜B3 のそれ
ぞれの「先頭位置」を、w1 〜w3 は構造ブロックB1
〜B3 のそれぞれの「幅」を、h1 〜h3 は構造ブロッ
クB1 〜B3 のそれぞれの「高さ」を表す自然数であ
り、構造ブロックB1 〜B3 は相互に所定の値以上の間
隔をもっているとする。本実施例においては、上記「ラ
イン数」,「先頭位置」,「幅」,「高さ」を示す四つ
の値を総称して各値と呼ぶものとする。
FIG. 3 shows an example of a binary image, B
1 to B 3 are indices of each structural block, 1 a , 1
a + 1 , 1 b , 1 b + 1 , 1 c , 1 c + 1 , 1 d , and 1 d + 1 are the number of lines counted from the leading line (hereinafter simply referred to as “the number of lines”) from p 1 to p 3 is the “start position” of each of the structural blocks B 1 to B 3 , and w 1 to w 3 are the structural blocks B 1
The "width" of each ~B 3, h 1 ~h 3 is a natural number representing the "height" of each building block B 1 ~B 3, building blocks B 1 .about.B 3 mutually predetermined value It is assumed that they have the above intervals. In this embodiment, the four values indicating the "number of lines", "start position", "width", and "height" are collectively referred to as each value.

【0015】図4は、図3の構造ブロックB1 を拡大し
たものであり、図5は図3の第1a+ 1 ラインを表した図
である。
FIG. 4 is an enlarged view of the structural block B 1 of FIG. 3, and FIG. 5 is a diagram showing the 1a + 1 line of FIG.

【0016】図3、図4、及び図5からわかるように、
構造ブロックB1 (B2 ,B3 についても同様)は1つ
以上の画像ブロックCからなり、画像ブロックCは1つ
以上の所定の数の連続した画素群(以下ブロックと呼
ぶ)からなっている。図3、図4及び図5において、点
線は画素間の境界を、白抜き矩形枠は白画素を、黒塗り
矩形枠は黒画素を表す。また、図3において、太線は余
白部分Aと構造ブロックBとの境界を表し、図4及び図
5において、水平方向の細線はライン間の境界を、垂直
方向の細線はブロック間の境界を表す。なお、各構造ブ
ロックBの位置は、各構造ブロックBの4隅の画素の位
置のうちどれを用いてもよいが、計算の容易化の観点か
ら本実施例では、各構造ブロックBの左上隅の画素の位
置を用いることとする。なお、図3では構造ブロックB
の数を3つとし、図4では画像ブロックの数Cを12と
し、図4及び図5では1ブロックの画素数を4としてい
るが、上記に限るものではない。
As can be seen from FIGS. 3, 4 and 5.
The structural block B 1 (similarly for B 2 and B 3 ) is composed of one or more image blocks C, and the image block C is composed of one or more predetermined number of consecutive pixel groups (hereinafter referred to as blocks). There is. In FIGS. 3, 4, and 5, dotted lines represent boundaries between pixels, white rectangular frames represent white pixels, and black painted rectangular frames represent black pixels. Further, in FIG. 3, a thick line represents a boundary between the blank space portion A and the structural block B, and in FIGS. 4 and 5, a thin horizontal line represents a boundary between lines and a thin vertical line represents a boundary between blocks. .. Note that the position of each structural block B may be any of the positions of the pixels at the four corners of each structural block B, but in the present embodiment, the upper left corner of each structural block B is used from the viewpoint of ease of calculation. The pixel positions of are used. In FIG. 3, the structural block B
3, the number C of image blocks is 12 in FIG. 4, and the number of pixels in one block is 4 in FIGS. 4 and 5, but the number is not limited to the above.

【0017】図6は、本実施例の情報量削減の処理手順
を示すフローチャートである。図6において、各値送出
とは、高さから高さを計算するための一時的変数(以下
「補助高さ」と呼ぶ)を減じた値を高さとし、各構造ブ
ロックの「ライン数」と「先頭位置」と「幅」と「高
さ」(上記4つの値を総称して各値と呼ぶ)を後述の方
式で整理し、各構造ブロックの各値及び各構造ブロック
内の画像データを送出することを意味し、全零ページ符
号とは、ページ内の全ての画素の値が0であることを表
す符号を意味する。
FIG. 6 is a flow chart showing the processing procedure of the information amount reduction of this embodiment. In FIG. 6, the value transmission means that the value obtained by subtracting a temporary variable (hereinafter referred to as “auxiliary height”) for calculating the height from the height is the height, and is the “number of lines” of each structural block. The "start position", "width", and "height" (the above four values are collectively referred to as "values") are arranged by the method described below, and each value of each structural block and image data in each structural block are sorted. It means to send out, and the all-zero page code means a code indicating that the values of all pixels in the page are 0.

【0018】また、xはライン先頭からの画素数を、y
はライン数を、wは幅を計算するための一時的変数(以
下「計測幅」と呼ぶ)を、wlは全白ラインの数を数え
るための一時的変数(以下「白ライン数」と呼ぶ)を、
wbは画素の値が全て白であるブロック(以下「白ブロ
ック」と呼ぶ)の数を数えるための一時的変数(以下
「白ブロック数」と呼ぶ)を、bpは抽出している構造
ブロック群の先頭をさす一時的変数(以下「ポインタ」
と呼ぶ)を、jは抽出している構造ブロックをさす一時
的変数を、lj ,pj ,wj ,hj はj番目の構造ブロ
ックのライン数、先頭位置、幅、高さを、Dj はj番目
の構造ブロックの各値(ライン数、先頭位置、幅、高
さ)を、Hj はj番目の構造ブロックの「補助高さ」
を、flagはブロック内の画素が全て白かそうでない
かを表す一時的変数(以下「白ブロックフラグ」と呼
ぶ)を、iは繰り返し回数を表す一時的変数をそれぞれ
表し、LTHは全ての画素が白であるラインの連続数の
閾値(以下「ライン閾値」と呼ぶ)を、BTHは白ブロ
ックの連続数の閾値(以下「ブロック閾値」と呼ぶ)
を、BSZは1ブロックの画素数を表す定数(以下「ブ
ロック長」と呼ぶ)をそれぞれ表し、j=bpはbpの
値をjに代入することを、j=j+1はjの値に1を加
えることを、Dj+1 =Dj はj番目の構造ブロックの各
値を(j+1)番目にずらすことを、max(w,
j )はwとwj のうち値の大きい方を、(x,y)は
先頭位置x,ライン数yの位置の画素の値を、(x,
y)≠0は先頭位置x,ライン数yの位置の画素が黒画
素であることをそれぞれ表す。
X is the number of pixels from the beginning of the line, and y
Is the number of lines, w is a temporary variable for calculating the width (hereinafter referred to as “measured width”), and wl is a temporary variable for counting the number of all white lines (hereinafter referred to as “white line number”). ),
wb is a temporary variable (hereinafter referred to as “white block number”) for counting the number of blocks whose pixel values are all white (hereinafter referred to as “white block”), and bp is the structural block group being extracted. Temporary variable that points to the beginning of
, J is a temporary variable indicating the structural block being extracted, and l j , p j , w j , and h j are the number of lines, the head position, the width, and the height of the j-th structural block, D j is each value (number of lines, start position, width, height) of the j-th structural block, and H j is “auxiliary height” of the j-th structural block.
, Flag is a temporary variable (hereinafter referred to as “white block flag”) indicating whether or not all pixels in the block are white, i is a temporary variable indicating the number of repetitions, and LTH is all pixels. BTH is a threshold of the number of consecutive white lines (hereinafter referred to as “line threshold”), and BTH is a threshold of the number of consecutive white blocks (hereinafter referred to as “block threshold”).
BSZ represents a constant representing the number of pixels in one block (hereinafter referred to as “block length”), j = bp substitutes the value of bp in j, and j = j + 1 sets 1 to the value of j. In addition, D j + 1 = D j shifts each value of the j-th structural block to the (j + 1) -th position by max (w,
w j ) is the larger value of w and w j , (x, y) is the value of the pixel at the position of the head position x and the number of lines y, and (x, y
y) ≠ 0 represents that the pixel at the position of the head position x and the number of lines y is a black pixel.

【0019】以下、本発明の情報量削減の方法を図6〜
図16を用いて説明する。
The method for reducing the amount of information according to the present invention will be described below with reference to FIGS.
This will be described with reference to FIG.

【0020】先ず、メインルーチンについて図6を参照
して説明する。
First, the main routine will be described with reference to FIG.

【0021】(I) 各構造ブロックの各値を抽出する
ために必要な値の初期化を行い(処理手順1)、以下に
述べる(II)以降の処理を行う。
(I) Initialize the values required to extract the values of each structural block (procedure 1), and perform the processing of (II) and subsequent steps described below.

【0022】(II) 先頭ラインの先頭画素から順
に、黒画素であるかどうかを調べ、黒画素が現れる前に
ライン終了となったら、次のラインを同様に調べる。以
上を黒画素が現れるまで続ける(処理手順2〜6)。黒
画素が現れた場合には、後述する(III)以降の各値
抽出処理を行う(処理手順10、詳細は処理手順11以
降)。上記処理において、画素を1つ調べるごとにライ
ン先頭からの画素数xに1を加え(処理手順4)、ライ
ン終了ごとにライン数yに1を加えてライン先頭からの
画素数xを1にする(処理手順6)。なお、黒画素が現
れる前にページ終了となった場合には、全零ページ符号
を送出して処理を終了する(処理手順7)。
(II) It is checked in sequence from the first pixel of the first line whether or not it is a black pixel. If the line ends before the black pixel appears, the next line is similarly checked. The above is continued until a black pixel appears (process steps 2 to 6). When a black pixel appears, each value extraction process after (III) described below is performed (processing procedure 10, details are processing procedure 11 and later). In the above processing, 1 is added to the number of pixels x from the beginning of the line each time one pixel is checked (procedure 4), and 1 is added to the number of lines y at the end of each line to set the number of pixels x from the beginning of the line to 1. (Processing procedure 6). If the page is finished before the black pixel appears, the all-zero page code is sent and the process is finished (procedure 7).

【0023】次に、各値抽出ルーチンについて図7を参
照して説明する。
Next, each value extraction routine will be described with reference to FIG.

【0024】(III) 前の処理(II)において出
現した黒画素を先頭に幅wを計測する(処理手順6
0)。
(III) The width w is measured starting from the black pixel appearing in the previous processing (II) (processing procedure 6
0).

【0025】幅wの計測は、図8の幅計測ルーチンに示
されるように、前の処理(II)において出現した黒画
素を先頭に、白ブロックが連続してブロック閾値BTH
の個数現れるまでブロックの内容を調べ、ブロックを1
つ調べるごとに計測幅wに1を加えることによって行う
(処理手順61〜72)。白ブロックが連続してブロッ
ク閾値BTHの個数現れる前に、ブロックを調べる途中
でライン終了となった場合(処理手順64)には、その
時点の計測幅wに1を加えて幅の計測を終了し(処理手
順73)、ブロックを調べた後でライン終了となった場
合(処理手順71)には計測幅wは何も変更せずに幅の
計測を終了する。なお、ブロック閾値BTHは、構造ブ
ロック間の主走査方向の間隔を決定するために設定され
たものであり、BTHをある値に設定することにより、
主走査方向にどこまで離れた画素を一つの構造ブロック
内に含めるかを決定することができる。
As shown in the width measuring routine of FIG. 8, the width w is measured by successively determining the block threshold value BTH with white blocks starting from the black pixel appearing in the previous processing (II).
Check the contents of the block until the number of
This is carried out by adding 1 to the measurement width w each time it is checked (procedures 61 to 72). If the line end occurs while checking the blocks before the number of white blocks successively appear in the block threshold value BTH (procedure 64), 1 is added to the measurement width w at that point to end the width measurement. If the line ends after checking the block (process procedure 73) (process procedure 71), the width measurement is ended without changing the measurement width w. The block threshold BTH is set to determine the interval between the structural blocks in the main scanning direction, and by setting BTH to a certain value,
It is possible to determine how far the pixels in the main scanning direction are included in one structural block.

【0026】次に、図7の処理手順11に示されるよう
に、ライン数と先頭位置を記憶し(lj =y,pj
x)、計測幅wからブロック閾値BTHを減じた値にブ
ロック長BSZを掛け合わせた値(幅)wj を記憶し
(wj =(w−BTH)×BSZ)、ライン先頭からの
画素数xに計測幅wとブロック長BSZとをかけ合わせ
た値を加え(x=x+w×BSZ)、以下に述べる(I
V)以降の処理を行う。
Next, as shown in processing procedure 11 of FIG. 7, the number of lines and the start position are stored (l j = y, p j =
x), the value (width) w j obtained by multiplying the value obtained by subtracting the block threshold BTH from the measurement width w by the block length BSZ is stored (w j = (w−BTH) × BSZ), and the number of pixels from the beginning of the line is stored. A value obtained by multiplying x by the measurement width w and the block length BSZ is added (x = x + w × BSZ), and described below (I
V) and subsequent processing is performed.

【0027】(IV) 前の処理においてライン終了と
なっていなければ、その処理が終了した時点の画素から
順に、黒画素であるかどうかを調べ(処理手順12〜1
4)、黒画素が現れたら再び(III)以降の処理を行
う。前の処理においてライン終了となっているか、黒画
素が現れる前にライン終了となったら(処理手順12,
15)、ライン数yに1を加えライン先頭からの画素数
xを1にして(処理手順17)、以下に述べる(V)以
降の構造ブロック抽出処理(処理手順20、詳細は処理
手順21以降)を行い、黒画素が現れる前にページ終了
となったら(処理手順15)、各値送出を行い(処理手
順16)、処理を終了する。上記処理において、画素を
1つ調べるごとにライン先頭からの画素数xに1を加え
る(処理手順13)。
(IV) If the line has not ended in the previous processing, it is checked in sequence from the pixel at the time of the processing whether the pixel is a black pixel (processing steps 12 to 1).
4) When the black pixel appears, the processing from (III) is performed again. If the line is finished in the previous process, or if the line is finished before black pixels appear (procedure 12,
15), 1 is added to the number of lines y, and the number of pixels x from the beginning of the line is set to 1 (procedure 17), and the structural block extraction process (procedure 20, the details of the procedure 21 and later) is described below (V). ) Is performed, and when the page ends before a black pixel appears (procedure 15), each value is transmitted (procedure 16), and the process ends. In the above process, every time one pixel is checked, 1 is added to the number of pixels x from the beginning of the line (process procedure 13).

【0028】次に、構造ブロック抽出ルーチンについて
図9を参照して説明する。
Next, the structural block extraction routine will be described with reference to FIG.

【0029】(V) 前の処理が終了した時点の画素か
ら順に、黒画素であるかどうかを調べ(処理手順21〜
23)、黒画素が現れたら以下に述べる(VI)以降の
画像ブロック抽出処理(処理手順40、詳細は処理手順
41以降)を行う。上記処理において、画素を1つ調べ
るごとにライン先頭からの画素数xに1を加える(処理
手順23)。黒画素が現れる前にライン終了となったら
(処理手順22,24)、ライン数yに1を加え、ライ
ン先頭からの画素数xを1にし、白ライン数wlに1を
加え、各構造ブロックの補助高さHj にそれぞれ1を加
える(処理手順25)。上記処理の結果、白ライン数w
lがライン閾値LTHより小さければ(処理手順2
6)、再び(V)以降の処理を行う。ライン閾値LTH
に等しければ、各値送出を行い(処理手順27)、白ラ
イン数wlを0にし、各構造ブロックの補助高さHj
それぞれ0にし(処理手順28)、後述の(VII)以
降の次構造ブロック群探索処理(処理手順50、詳細は
処理手順51〜55)を行う。黒画素が現れる前にペー
ジ終了となったら(処理手順24)、各値送出を行い
(処理手順29)、処理を終了する。(V)の処理は、
構造ブロックを抽出するためのルーチンであり、高さと
補助高さにより構造ブロックの真の高さが測定される。
なお、ライン閾値LTHは、構造ブロック間の副走査方
向の間隔を決定するために設定されたものであり、LT
Hをある値に設定することにより、副走査方向にどこま
で離れた画素を一つの構造ブロック内に含めるかを決定
することができる。
(V) Whether or not the pixel is a black pixel is checked in order from the pixel at the time when the previous processing is completed (procedures 21 to 21).
23) When black pixels appear, image block extraction processing (processing procedure 40, details processing procedure 41 and later) after (VI) described below is performed. In the above process, every time one pixel is checked, 1 is added to the number of pixels x from the beginning of the line (process procedure 23). When the line ends before black pixels appear (procedures 22 and 24), 1 is added to the number of lines y, the number of pixels x from the beginning of the line is set to 1, and the number of white lines wl is added to 1 for each structural block. 1 is added to each of the auxiliary heights H j (processing procedure 25). As a result of the above processing, the number of white lines w
If l is smaller than the line threshold LTH (processing procedure 2
6) Then, the process after (V) is performed again. Line threshold LTH
If it is equal to, each value is transmitted (procedure 27), the number of white lines wl is set to 0, and the auxiliary height H j of each structural block is set to 0 (procedure 28). Structural block group search processing (processing procedure 50, details of processing procedures 51 to 55) is performed. When the page is finished before the black pixel appears (procedure 24), each value is transmitted (procedure 29), and the process is terminated. The process of (V) is
A routine for extracting structural blocks, where the height of the structural block and the auxiliary height measure the true height of the structural block.
The line threshold LTH is set to determine the interval between the structural blocks in the sub-scanning direction, and LT
By setting H to a certain value, it is possible to determine how far the pixels in the sub-scanning direction are to be included in one structural block.

【0030】次に、画像ブロック抽出ルーチンについて
図10を参照して説明する。
Next, the image block extraction routine will be described with reference to FIG.

【0031】(VI) 前の処理が終了した時点の画素
を先頭に、(III)と同じ方法で幅の計測を行った
(処理手順60)後、後述の(VIII)の位置関係調
査処理(処理手順80、詳細は処理手順81以降)を行
う。また、ライン先頭からの画素数xに計測幅wとブロ
ック長BSZとをかけ合わせた値を加える(処理手順4
1)。上記の処理の後、ライン終了となっていなけれ
ば、上記の処理が終了した時点の画素から順に、黒画素
であるかどうかを調べ(処理手順42〜44)、黒画素
が現れたら再び(VI)以降の処理を行う。上記処理に
おいて、画素を1つ調べるごとにライン先頭からの画素
数xに1を加える(処理手順43)。上記の処理の後、
ライン終了となったら(処理手順42,45)、ライン
数yに1を加え、ライン先頭からの画素数xを1にし、
白ライン数wlを0にして(処理手順46)、再び図9
に示す(V)以降の構造ブロック抽出処理を行う。上記
の処理の後、ページ終了となったら(処理手順45)、
各値送出を行い(処理手順47)、処理を終了する。
(VI) The width is measured by the same method as in (III), starting with the pixel at the time when the previous processing is completed (procedure 60), and then the positional relationship investigation processing in (VIII) described later ( The processing procedure 80, details of the processing procedure 81 and thereafter, are performed. Further, a value obtained by multiplying the number of pixels x from the head of the line by the measurement width w and the block length BSZ is added (processing procedure 4
1). After the above process, if the line is not finished, it is checked in sequence from the pixel at the time when the above process is completed to see if it is a black pixel (procedures 42 to 44). ) Perform the subsequent processing. In the above process, every time one pixel is checked, 1 is added to the number of pixels x from the beginning of the line (process procedure 43). After the above process,
When the line ends (procedures 42 and 45), 1 is added to the line number y to set the pixel number x from the beginning of the line to 1,
The number of white lines wl is set to 0 (procedure 46), and the process shown in FIG.
Structural block extraction processing after (V) shown in FIG. After the above processing, when the page ends (processing procedure 45),
Each value is transmitted (procedure 47), and the process ends.

【0032】次に、次構造ブロック群探索ルーチンにつ
いて図11を参照して説明する。
Next, the next structural block group search routine will be described with reference to FIG.

【0033】(VII) 前の処理が終了した時点の画
素から順に、黒画素であるかどうかを調べ、黒画素が現
れる前にライン終了となったら、次のラインを同様に調
べる(処理手順51〜54)。黒画素が現れた場合に
は、再び(III)以降の各値抽出処理を行う(図9の
処理手順50、図7の処理手順20参照)。上記処理に
おいて、画素を1つ調べるごとにライン先頭からの画素
数xに1を加え(処理手順53)、ライン終了ごとにラ
イン数yに1を加えてライン先頭からの画素数xを1に
する(処理手順55)。黒画素が現れる前にページ終了
となった場合には、なにもせずに処理を終了する。
(VII) It is checked whether or not the pixel is a black pixel in order from the pixel at the time when the previous process is completed, and if the line ends before the black pixel appears, the next line is similarly checked (process procedure 51). ~ 54). When a black pixel appears, each value extraction process after (III) is performed again (see process procedure 50 in FIG. 9 and process procedure 20 in FIG. 7). In the above processing, 1 is added to the number of pixels x from the beginning of the line each time one pixel is checked (procedure 53), and 1 is added to the number of lines y at the end of each line to set the number of pixels x from the beginning of the line to 1. (Processing procedure 55). If the page ends before the black pixel appears, the process ends without doing anything.

【0034】次に、位置関係調査ルーチンについて図1
2〜図16のフローチャート及び図17〜図24の説明
図を参照して説明する。
Next, FIG. 1 shows the positional relationship investigation routine.
This will be described with reference to the flowcharts of FIGS. 2 to 16 and the explanatory diagrams of FIGS.

【0035】(VIII) (VI)の画像ブロック抽
出処理が終了した時点のライン数yと、ライン先頭から
の画素数xと、(VI)の処理手順60により計測され
た幅wとから、今回抽出した画像ブロックと既に抽出さ
れている各値とを以下の方法で位置関係調査を行い、各
値を書き換える(処理手順81〜90)。
(VIII) From the number of lines y at the time when the image block extraction processing of (VI) is completed, the number of pixels x from the beginning of the line, and the width w measured by the processing procedure 60 of (VI) this time. The positional relationship between the extracted image block and each value that has already been extracted is examined by the following method, and each value is rewritten (process steps 81 to 90).

【0036】なお、図17(a)〜図24(a)におい
て、点線はライン間の境界を、太線は余白部分と画像ブ
ロックの境界を、斜影のついた部分は構造ブロックを表
している。また、図17(b)〜図24(b)は、各
値、すなわち、ライン数、先頭位置、幅及び高さの配列
状態を示しており、図17(b)〜図24(b)におい
て、各値の配置を表す部分の太線は各値間の境界を表
す。
17A to 24A, dotted lines indicate boundaries between lines, thick lines indicate boundaries between blank areas and image blocks, and shaded areas indicate structural blocks. 17 (b) to 24 (b) show the arrangement state of each value, that is, the number of lines, the head position, the width, and the height, and in FIGS. 17 (b) to 24 (b). , A thick line in the portion representing the arrangement of each value represents the boundary between the values.

【0037】(1) 図17(a)に示すように、画像
ブロックの先頭位置p2 が位置関係を調べている構造ブ
ロックの先頭位置p1 の前にあり(p2 <p1 )、画像
ブロックの右端(p2 +w2 )とその構造ブロックの先
頭位置p1 との間にブロック閾値BTH以上の間隔があ
る場合(p1 −(p2 +w2 )>BTH)には、図17
(b)に示すように、この画像ブロックのライン数、先
頭位置、幅及び高さを示す各値l2 ,p2 ,w2 ,1
が、その構造ブロックの各値l1 ,p1 ,w1 ,h1
前に入るよう入れ替えを行い記憶する(図12の処理手
順100、詳細は図13の処理手順101,102)。
(1) As shown in FIG. 17A, the head position p 2 of the image block is before the head position p 1 of the structural block whose positional relationship is being checked (p 2 <p 1 ), and the image When there is a space equal to or greater than the block threshold BTH between the right end (p 2 + w 2 ) of the block and the head position p 1 of the structural block (p 1 − (p 2 + w 2 )> BTH),
As shown in (b), each value l 2 , p 2 , w 2 , 1 indicating the number of lines, the head position, the width, and the height of this image block.
However, the values are replaced and stored so as to come before the respective values l 1 , p 1 , w 1 , and h 1 of the structural block (processing procedure 100 in FIG. 12, details are processing procedures 101 and 102 in FIG. 13).

【0038】(2) 図18(a)に示すように、画像
ブロックの先頭位置p2 が、位置関係を調べている構造
ブロックの先頭位置p1 の前にあり(p2 <p1 )、画
像ブロックの右端(p2 +w2 )が構造ブロックの右端
(p1 +w1 )よりライン先頭からの画素数が小さい位
置にあり (p2 +w2 <p1 +w1 )、画像ブロックの
右端(p2 +w2 )とその構造ブロックの先頭位置p1
との間にブロック閾値BTHより小さい間隔がある場合
(p1 −(p2 +w2 )<BTH)には、図18(b)
に示すように、その構造ブロックの先頭位置p1 と画像
ブロックの先頭位置p2 との差と、その構造ブロックの
幅w1 との和(p1 −p2 +w1 )をその構造ブロック
の幅w1 ’とし、画像ブロックの先頭位置p2 をその構
造ブロックの先頭位置として記憶する(図12の処理手
順110、詳細は図14の処理手順111,112,1
14)。
(2) As shown in FIG. 18A, the head position p 2 of the image block is before the head position p 1 of the structural block whose positional relationship is being checked (p 2 <p 1 ), The right edge (p 2 + w 2 ) of the image block is located at a position where the number of pixels from the beginning of the line is smaller than the right edge (p 1 + w 1 ) of the structural block (p 2 + w 2 <p 1 + w 1 ), and the right edge of the image block (p 2 + w 2 <p 1 + w 1 ). p 2 + w 2 ) and the start position p 1 of the structural block
If there is a block threshold BTH smaller spacing between the (p 1 - (p 2 + w 2) <BTH) In, and FIG. 18 (b)
As shown in, the difference between the head position p 2 of the head position p 1 and the image block of the building blocks, the width w 1 of the structure block sum (p 1 -p 2 + w 1) of the building blocks The width w 1 ′ is set, and the start position p 2 of the image block is stored as the start position of the structural block (processing procedure 110 in FIG. 12, details are processing procedures 111, 112, 1 in FIG. 14).
14).

【0039】(3) 図19(a)に示すように、画像
ブロックの先頭位置p2 が、位置関係を調べている構造
ブロックの先頭位置p1 の前にあり(p2 <p1 )、画
像ブロックの右端(p2 +w2 )が構造ブロックの右端
(p1 +w1 )よりライン先頭からの画素数が大きい位
置にある場合 (p2 +w2 >p1 +w1 )には、図19
(b)に示すように、画像ブロックの幅w2 をその構造
ブロックの幅とし、画像ブロックの先頭位置p2 をその
構造ブロックの先頭位置として記憶する(図12の処理
手順110、詳細は図14の処理手順111,113〜
114)。
(3) As shown in FIG. 19A, the head position p 2 of the image block is before the head position p 1 of the structural block whose positional relationship is being checked (p 2 <p 1 ), If the right end (p 2 + w 2 ) of the image block is located at a position where the number of pixels from the beginning of the line is larger than the right end (p 1 + w 1 ) of the structure block (p 2 + w 2 > p 1 + w 1 ), then FIG.
As shown in (b), the width w 2 of the image block is set as the width of the structure block, and the head position p 2 of the image block is stored as the head position of the structure block (processing procedure 110 in FIG. 12, details are shown in FIG. 14 processing procedures 111, 113-
114).

【0040】(4) 図20(a)に示すように、画像
ブロックが、位置関係を調べている構造ブロックと先頭
位置の値が同じ場合(p2 =p1 )には、画像ブロック
の幅w2 とその構造ブロックの幅w1 のうち値の大きい
方(この場合w2 )をその構造ブロックの幅として記憶
する(図12の処理手順120、詳細は図15の処理手
順121)。
(4) As shown in FIG. 20A, when the image block has the same value of the head position as the structural block whose positional relationship is being checked (p 2 = p 1 ), the width of the image block The larger value (w 2 in this case) of w 2 and the width w 1 of the structural block is stored as the width of the structural block (processing procedure 120 of FIG. 12, and processing procedure 121 of FIG. 15 for details).

【0041】(5) 図21(a)に示すように、画像
ブロックの先頭位置p2 が、位置関係を調べている構造
ブロックの先頭位置p1 の後ろにあり(p2 >p1 )、
画像ブロックの右端(p2 +w2 )がその構造ブロック
の右端(p1 +w1 )よりライン先頭からの画素数が小
さいか等しい位置にある場合 (p2 +w2 ≦p1
1 )には、図21(b)に示すように、その構造ブロ
ックの先頭位置及び幅は書き換えない(図12の処理手
順130、詳細は図16の処理手順131,133)。
(5) As shown in FIG. 21A, the start position p 2 of the image block is after the start position p 1 of the structural block whose positional relationship is being checked (p 2 > p 1 ),
When the right end (p 2 + w 2 ) of the image block is at a position where the number of pixels from the beginning of the line is smaller than or equal to the right end (p 1 + w 1 ) of the structure block (p 2 + w 2 ≦ p 1 +)
As shown in FIG. 21B, the head position and width of the structural block are not rewritten in w 1 ) (processing procedure 130 of FIG. 12, details of processing procedures 131 and 133 of FIG. 16).

【0042】(6) 図22(a)に示すように、画像
ブロックの先頭位置p2 が、位置関係を調べている構造
ブロックの先頭位置p1 の後ろにあり(p2 >p1 )、
画像ブロックの先頭位置p2 とその構造ブロックの右端
(p1 +w1 )との間にブロック閾値BTHより小さい
間隔があり(p2 −(p1 +w1 )<BTH)、画像ブ
ロックの右端(p2 +w2 )がその構造ブロックの右端
(p1 +w1 )よりライン先頭からの画素数が大きい位
置にある場合(p2 +w2 >p1 +w1 )には、図22
(b)に示すように、画像ブロックの先頭位置p2 とそ
の構造ブロックの先頭位置p1 との差と、画像ブロック
の幅w2 との和(p2 −p1 +w2 )をその構造ブロッ
クの幅w1 ’として記憶する(処理手順131〜13
3)。
(6) As shown in FIG. 22A, the start position p 2 of the image block is after the start position p 1 of the structural block whose positional relationship is being checked (p 2 > p 1 ),
There is a space smaller than the block threshold BTH between the head position p 2 of the image block and the right end (p 1 + w 1 ) of the structure block (p 2 − (p 1 + w 1 ) <BTH), and the right end of the image block ( When p 2 + w 2 ) is located at a position where the number of pixels from the beginning of the line is larger than the right end (p 1 + w 1 ) of the structural block (p 2 + w 2 > p 1 + w 1 ), FIG.
(B), the head position p 2 of the image block and the difference between the head position p 1 of the building block, the sum of the width w 2 of the image block (p 2 -p 1 + w 2) the structure It is stored as the block width w 1 '(procedure 131 to 13)
3).

【0043】(7) 図23(a)に示すように、画像
ブロックの先頭位置p2 が、位置関係を調べている構造
ブロックの先頭位置p1 の後ろにあり、画像ブロックの
先頭位置p2 とその構造ブロックの右端(p1 +w1
との間にブロック閾値BTH以上の間隔がある場合(p
2 −(p1 +w1 )≧BTH)には、図23(b)に示
すように、その構造ブロックの補助高さHj に1を加え
(図12の処理手順88)、その結果、補助高さHj
ライン閾値LTHと同じ値になったら(処理手順8
9)、その構造ブロックの各値が順位が最も高い構造ブ
ロックの各値の前に入るよう入れ替えを行い記憶する
(処理手順90)。なお、順位の意味については後述す
る。
(7) As shown in FIG. 23A, the start position p 2 of the image block is after the start position p 1 of the structural block whose positional relationship is being checked, and the start position p 2 of the image block is And the right edge of the structural block (p 1 + w 1 )
When there is an interval of block threshold BTH or more between
2 - (p 1 + w 1 ) to ≧ BTH), as shown in FIG. 23 (b), 1 is added to the auxiliary height H j of the structure block (procedure 88 of FIG. 12), as a result, the auxiliary When the height H j becomes the same value as the line threshold LTH (procedure 8
9) Then, the values of the structural block are replaced and stored so as to come before the respective values of the structural block having the highest rank (processing procedure 90). The meaning of the rank will be described later.

【0044】(8) 図24(a)に示すように、画像
ブロックの先頭位置p3 が、最も順位が低い構造ブロッ
クの右端(p2 +w2 )よりライン先頭からの画素数が
大きい位置にある場合(p3 >p2 +w2 )には、図2
4(b)に示すように、画像ブロックの各値がその構造
ブロックの各値の後ろに入るよう記憶する(処理手順8
7)。
(8) As shown in FIG. 24A, the head position p 3 of the image block is located at a position where the number of pixels from the head of the line is larger than the right end (p 2 + w 2 ) of the structural block having the lowest rank. In some cases (p 3 > p 2 + w 2 ), FIG.
As shown in FIG. 4 (b), each value of the image block is stored so as to come after each value of the structure block (processing procedure 8).
7).

【0045】(9) 以上を順位が最も高い構造ブロッ
クから順に、画像ブロックの各値が記憶されるまで繰り
返し、高さhj が現ライン数と構造ブロックのライン数
との差(l−lj )より大きくなければ、位置関係調査
を行った構造ブロックの高さhj に1を加え(処理手順
115〜116または処理手順122〜123または処
理手順134〜135)補助高さを0にする。この処理
は、処理手順114,121,133のHj =0の処理
に対応している。
(9) The above is repeated in order from the structure block having the highest rank until each value of the image block is stored, and the height h j is the difference (l-1) between the current line number and the line number of the structure block. If it is not larger than j ), 1 is added to the height h j of the structural block subjected to the positional relationship investigation (procedure 115 to 116 or procedure 122 to 123 or procedure 134 to 135) and the auxiliary height is set to 0. .. This processing corresponds to the processing of H j = 0 in the processing procedures 114, 121 and 133.

【0046】以上が本発明の情報量削減の方法である。The above is the information amount reduction method of the present invention.

【0047】上述の方法において、構造ブロックの順位
の決定法は以下の通りである。図25のように、ライン
閾値LHT以上の全白ラインEを区切りとして原画像を
いくつかの構造ブロック群Fに分割し、先頭ラインから
近い順に記憶する。構造ブロック群F内では、先頭位置
の値が小さいものから順に記憶し、先頭位置が同じ場合
には先頭ラインから近い順に記憶する。なお、図25に
おいて、細線は0でない画素がある部分を、太線は余白
部分Aと構造ブロックBとの境界を、点線は余白部分A
と構造ブロック群Fとの境界をそれぞれ示す。なお、こ
こでは、ライン閾値LHT以上の全白ラインEを区切り
として原画像を分割した各部分のうち全白ラインEを除
く部分を構造ブロック群と呼んでいる。したがって、構
造ブロック群には、構造ブロックの左右の余白部分が含
まれている。
In the above method, the method of determining the order of the structural blocks is as follows. As shown in FIG. 25, the original image is divided into some structural block groups F with the all-white line E equal to or larger than the line threshold LHT as a delimiter, and the structural blocks are stored in order from the top line. In the structural block group F, the values of the starting position are stored in order from the smallest value, and when the starting positions are the same, they are stored in the order of being closer to the starting line. Note that, in FIG. 25, the thin line indicates a portion having non-zero pixels, the thick line indicates the boundary between the margin portion A and the structural block B, and the dotted line indicates the margin portion A.
And the structural block group F are shown. Note that, here, the portion excluding the all-white line E among the portions obtained by dividing the original image with the all-white line E equal to or larger than the line threshold LHT as a partition is referred to as a structural block group. Therefore, the structural block group includes the left and right margins of the structural block.

【0048】図26は、上述の順位に従って図25の各
構造ブロックBに記憶時の優先順位を付けたものであ
り、図中の細線は0でない画素がある部分を、太線は余
白部分Aと構造ブロックBとの境界をそれぞれ示す。な
お、上述の優先順位は絶対的なものではなく、例えば上
記(VIII)の(1)や(7)の場合のように各構造
ブロックの大きさと配置によっては処理中に一時的に入
れ替わることもあるが、各値送出時は上述の優先順位に
従う。
FIG. 26 is a diagram in which the structural blocks B in FIG. 25 are given priority in storage according to the above-mentioned order. The thin line in the figure indicates a portion having non-zero pixels, and the thick line indicates a blank portion A. The boundaries with the structural block B are shown respectively. Note that the above-mentioned priority order is not absolute, and may be temporarily changed during the processing depending on the size and arrangement of each structural block, as in the case of (1) or (7) of (VIII) above. However, when sending each value, the above priority order is followed.

【0049】また、各値送出時の各値の順序は、例えば
図27に示すように、各構造ブロックの位置(ライン数
と先頭位置)と、幅と、高さとが各構造ブロック毎に所
定の順位で並んでいる形になっている。なお、図27に
おいて、1はライン数を、pは先頭位置を、wは幅を、
hは高さをそれぞれ表す。上記各値の順序は、違う構造
ブロックの各値と入れ替わらなければ、どのような順序
でもよい。
Further, the order of the respective values when transmitting the respective values is, for example, as shown in FIG. 27, the position (the number of lines and the head position) of each structural block, the width and the height are predetermined for each structural block. They are arranged in the order of. In FIG. 27, 1 is the number of lines, p is the start position, w is the width,
h represents the height, respectively. The order of the above values may be any order as long as it does not replace the values of different structural blocks.

【0050】各構造ブロックの各値の整理の方式を、図
28〜図30を参照して以下に説明する。なお、図28
(a)〜図30(a)において、細線は0でない画素が
ある部分を、太線枠は余白部分と構造ブロックの境界を
表し、図28(b)〜図30(b)において、各値の配
置を表す部分の太線は各構造ブロックの各値間の境界を
表す。また、min(a,b)はa,bのうち小さい方
の値を、max(a,b)はa,bのうち大きい方の値
を表す。
A method of organizing the values of the structural blocks will be described below with reference to FIGS. 28 to 30. Note that FIG.
In (a) to FIG. 30 (a), a thin line represents a portion having non-zero pixels, and a thick line frame represents a boundary between a blank portion and a structural block. In FIGS. 28 (b) to 30 (b), The thick line in the portion representing the arrangement represents the boundary between each value of each structural block. Also, min (a, b) represents the smaller value of a and b, and max (a, b) represents the larger value of a and b.

【0051】 各構造ブロックの高さh1 から補助高
さH1 を減じた値を、各構造ブロックの高さh1 ’とす
る(図28参照)。
[0051] The value obtained by subtracting the auxiliary height H 1 from the height h 1 of the building block, and the height h 1 'of the building block (see Figure 28).

【0052】 ある構造ブロックと、他の構造ブロッ
クとの主走査方向の間隔Sがブロック閾値BTH以下で
ある場合(図29,図30参照)には、先頭位置の値が
大きい方の構造ブロックの幅w2 と先頭位置の値が小さ
い方の構造ブロックの幅w1と相互の間隔(S=p2
1 −w1 )との和をその前の構造ブロックの幅とし、
両構造ブロックのうちライン数が大きい方の構造ブロッ
ク(ここでは右側の構造ブロック)の高さh2 と両構造
ブロックのライン数の差(l2 −l1 )との和(h2
2 −l1 )と、ライン数が小さい方の構造ブロック
(ここでは左側の構造ブロック)の高さh1 のうち、大
きい値を前の順位の構造ブロックの高さh1 ’とし(h
1 ’=max(l2 −l1 +h2 ,h1 )、両構造ブロ
ックの先頭位置p1 ,p2 のうち小さい方の値を前の順
位の構造ブロックの先頭位置p1 ’とし(p1 ’=mi
n(p1 ,p 2))、両構造ブロックのライン数l1
2のうち小さい方の値を前の順位の構造ブロックのラ
イン数l1 ’とする(l1 ’=min(l1
2 ))。
When the interval S in the main scanning direction between a certain structural block and another structural block is equal to or smaller than the block threshold BTH (see FIGS. 29 and 30), the structural block with the larger value of the head position is detected. The width w 2 and the width w 1 of the structural block having the smaller value of the head position and the mutual distance (S = p 2
p 1 −w 1 ) and the width of the preceding structural block,
The sum (h 2 +) of the height h 2 of the structural block having the larger number of lines (here, the structural block on the right side) of both structural blocks and the difference (l 2 −l 1 ) between the numbers of lines of both structural blocks.
l 2 −l 1 ) and the height h 1 of the structural block with the smaller number of lines (here, the structural block on the left side), the larger value is taken as the height h 1 ′ of the structural block of the previous rank (h
1 ′ = max (l 2 −l 1 + h 2 , h 1 ), and the smaller value of the start positions p 1 and p 2 of both structure blocks is set as the start position p 1 ′ of the structure block of the previous rank (p 1 '= mi
n (p 1 , p 2 )), the number of lines l 1 in both structural blocks,
The smaller value of l 2 is defined as the number of lines l 1 ′ of the structural block of the previous rank (l 1 ′ = min (l 1 ,
l 2 )).

【0053】以上に述べた情報量圧縮方法を、 1a =2, 1a+1 =3, 1b =14, 1b+1 =1
5,p1 =2 p2 =21 として、図3の画像の先頭ラインから第17ラインまで
に、ブロック長BSZを4、ライン閾値LTHを2、ブ
ロック閾値BTHを1として適用すると以下のようにな
る。
The information amount compression method described above is applied to 1 a = 2, 1 a + 1 = 3, 1 b = 14, 1 b + 1 = 1.
5, p 1 = 2 p 2 = 21, and when the block length BSZ is 4, the line threshold LTH is 2, and the block threshold BTH is 1 from the first line to the 17th line of the image in FIG. Become.

【0054】1.まず、先頭ラインの先頭画素から処理
手順2〜6を行うと、第3ラインの第3画素に黒画素が
現れるので、この画素を先頭として幅の計測を行う。こ
の結果、第15画素を先頭とするブロックが白ブロック
であり、黒画素を1つ以上含むブロックは3つなので、
計測幅は4であり、従って構造ブロックB1 の幅w1
12となり、この幅12とライン数3と先頭位置3が記
憶される。この時点で、ライン先頭からの画素数は19
となる。
1. First, when the processing steps 2 to 6 are performed from the head pixel of the head line, a black pixel appears in the third pixel of the third line, and thus the width is measured with this pixel as the head. As a result, the block starting from the 15th pixel is the white block, and the block containing one or more black pixels is three.
Since the measurement width is 4, the width w 1 of the structural block B 1 is 12, and this width 12, the number of lines 3 and the head position 3 are stored. At this point, the number of pixels from the beginning of the line is 19
Becomes

【0055】2.次に処理手順12〜14を行うと、第
3ラインの第25画素が黒画素なので、この画素を先頭
として幅の計測を行う。この幅の計測が終了した時点で
ライン終了となるので構造ブロックB2 の幅w2 は8と
なり、この幅8とライン数3と先頭位置25が記憶され
る。また、幅を計測した後にライン終了となっているの
で、ライン数は4となりライン先頭からの画素数は1と
なる。ここで、次の処理は処理手順20の構造ブロック
抽出である。
2. Next, when the processing steps 12 to 14 are performed, the 25th pixel of the third line is a black pixel, and therefore the width is measured with this pixel as the head. Since the line ends when the measurement of this width ends, the width w 2 of the structural block B 2 becomes 8, and this width 8, the number of lines 3, and the head position 25 are stored. Also, since the line is finished after the width is measured, the number of lines is 4 and the number of pixels from the beginning of the line is 1. Here, the next processing is the structural block extraction of the processing procedure 20.

【0056】3.次に、第4ラインの先頭画素から処理
手順21〜23を行うと、このラインの第3画素に黒画
素が現れるので、この画素を先頭として幅の計測を行
う。この結果、第7画素を先頭とするブロックが白ブロ
ックであり、黒画素を1つ以上含むブロックは1つなの
で、計測幅は2である。この計測幅からブロック閾値を
減じた値1にブロック長をかけた値4とライン先頭から
の画素数3から、処理手順80以降によって既存の構造
ブロック(この場合構造ブロックB1 とB2 )との位置
関係を順位が高い構造ブロックから順に(構造ブロック
1 から順に)行うと、構造ブロックB1 と(VII
I)の(4)の場合の位置関係にあり構造ブロックB1
の幅8の方が大きいので、記憶されている構造ブロック
1 の高さh1 に1が加えられるのみとなる。この時点
でライン先頭からの画素数は11となっている。
3. Next, when the processing steps 21 to 23 are performed from the head pixel of the fourth line, a black pixel appears in the third pixel of this line, and therefore the width is measured with this pixel as the head. As a result, the block having the seventh pixel as the head is a white block, and the block including one or more black pixels is one, so the measurement width is 2. Based on the value 1 obtained by subtracting the block threshold value from this measurement width by the block length 4 and the number of pixels 3 from the beginning of the line, the existing structural blocks (in this case, structural blocks B 1 and B 2 ) are processed by the processing procedure 80 and thereafter. the positional relationship between the rank high structural block is performed in the order (in order from the building block B 1), building blocks B 1 and (VII
There is a positional relationship in the case of (4) of I) and structural block B 1
Since the width 8 is larger, only 1 is added to the height h 1 of the stored structural block B 1 . At this point, the number of pixels from the beginning of the line is 11.

【0057】4.次に処理手順42〜44を行うと、第
12画素に黒画素が現れるので、この画素を先頭として
幅の計測を行う。この結果、第16画素を先頭とするブ
ロックが白ブロックであり、黒画素を1つ以上含むブロ
ックは1つなので、計測幅は2である。この計測幅から
ブロック閾値を減じた値1にブロック長をかけた値4と
ライン先頭からの画素数12から、処理手順80以降に
よって既存の構造ブロックとの位置関係を順位が高い構
造ブロックから順に行うと、構造ブロックB1と(VI
II)の(6)の場合の位置関係にあるので、構造ブロ
ックB1 の幅w1 は13に書き換えられる。この時点で
ライン先頭からの画素数は20となっている。
4. Next, when the processing steps 42 to 44 are performed, a black pixel appears in the twelfth pixel, so the width is measured with this pixel as the head. As a result, the block starting at the 16th pixel is a white block, and the block including one or more black pixels is one, so the measurement width is 2. From the value 1 obtained by subtracting the block threshold value from this measurement width by the block length 4 and the number of pixels 12 from the beginning of the line, the positional relationship with the existing structural blocks is determined in order from the structural block having the higher order by the processing procedure 80 and thereafter. When executed, the structural blocks B 1 and (VI
Since the positional relationship of the case II) of (6), the width w 1 of the building block B 1 represents rewritten to 13. At this point, the number of pixels from the beginning of the line is 20.

【0058】5.次に処理手順42〜44を行うと、第
24画素に黒画素が現れるので、この画素を先頭として
幅の計測を行う。この結果、第28画素を先頭とするブ
ロックが白ブロックであり、黒画素を1つ以上含むブロ
ックは1つなので、計測幅は2である。この計測幅から
ブロック閾値を減じた値1にブロック長をかけた値4と
ライン先頭からの画素数24から、処理手順80以降に
よって既存の構造ブロックとの位置関係を順位が高い構
造ブロックから順に行うと、構造ブロックB2と(VI
II)の(2)の場合の位置関係にあるので、構造ブロ
ックB2 の先頭位置25は24に、幅8は9に書き換え
られ、高さh1 に1が加えられる。この時点でライン先
頭からの画素数は32となっている。
5. Next, when the processing steps 42 to 44 are performed, a black pixel appears at the 24th pixel, so that the width is measured with this pixel as the head. As a result, the block starting at the 28th pixel is a white block, and the block including one or more black pixels is one, so the measurement width is 2. From the value 1 obtained by subtracting the block threshold value from this measurement width by the block length 4 and the number of pixels 24 from the beginning of the line, the positional relationship with the existing structural blocks is determined in order from the structural block having the higher order by the processing procedure 80 and thereafter. When executed, the structural blocks B 2 and (VI
Because of the positional relationship in the case (2) of II), the head position 25 of the structural block B 2 is rewritten to 24, the width 8 is rewritten to 9, and 1 is added to the height h 1 . At this point, the number of pixels from the beginning of the line is 32.

【0059】6. 次に処理手順42〜44を行うと、
第32画素に黒画素が現れるので、この画素を先頭とし
て幅の計測を行う。この結果、第32画素を先頭とする
ブロックの後にライン終了となり、黒画素を1つ以上含
むブロックは1つなので、計測幅は1である。この計測
幅1にブロック長をかけた値4とライン先頭からの画素
数32から、処理手順80以降によって既存の構造ブロ
ックとの位置関係を順位が高い構造ブロックから順に行
うと、構造ブロックB2 と(VIII)の(6)の場合
の位置関係にあるので、構造ブロックB2 の幅9は12
に書き換えられる。
6. Next, when the processing steps 42 to 44 are performed,
Since a black pixel appears at the 32nd pixel, the width is measured starting from this pixel. As a result, the line ends after the block having the 32nd pixel as the head, and the number of blocks containing one or more black pixels is one, so the measurement width is 1. From the value 4 obtained by multiplying the measurement width 1 by the block length and the number of pixels 32 from the beginning of the line, if the positional relationship with the existing structural block is performed in order from the structural block having the higher order by the processing procedure 80 and thereafter, the structural block B 2 And (VIII) in the case of (6), the width 9 of the structural block B 2 is 12
Can be rewritten as

【0060】7.上記3.〜6.と同様の処理を第5ラ
インから第14ラインまでのラインの先頭画素から行
う。
7. Above 3. ~ 6. The same processing as is performed from the first pixel of the lines from the 5th line to the 14th line.

【0061】8.次に、第15ラインの先頭画素から処
理手順21〜23を行うと、第15ラインは全ての画素
が白画素なので、白ライン数に1が加えられ、構造ブロ
ックB1 及びB2 の補助高さH1 及びH2 に1が加えら
れる。この時点で白ライン数は1でありライン閾値より
小さいので、第16ラインの先頭画素から処理手順21
〜23を行うと、第16ラインは全ての画素が白画素な
ので、白ライン数に1が加えられ、構造ブロックB1
びB2 の補助高さH1 及びH2 に1が加えられる。この
時点で白ライン数は2でありライン閾値に等しいので、
各値送出を行い、白ライン数を0とし、各構造ブロック
の補助高さをそれぞれ0とする。
8. Next, when the processing steps 21 to 23 are performed from the first pixel of the 15th line, all the pixels of the 15th line are white pixels, so 1 is added to the number of white lines, and the auxiliary heights of the structural blocks B 1 and B 2 are increased. 1 is added to H 1 and H 2 . At this point, the number of white lines is 1, which is smaller than the line threshold, so that the procedure 21 from the first pixel of the 16th line
.. are performed, all the pixels in the 16th line are white pixels, so 1 is added to the number of white lines and 1 is added to the auxiliary heights H 1 and H 2 of the structural blocks B 1 and B 2 . At this point the number of white lines is 2, which is equal to the line threshold, so
Each value is transmitted, the number of white lines is set to 0, and the auxiliary height of each structural block is set to 0.

【0062】以上1.〜8.の処理における各値の変化
の様子は、図31,図32に示すようになる。なお、図
31,図32において、太線は構造ブロックB1 及びB
2 の各値間の境界を表し、各値はライン数、先頭位置、
幅、高さの順に並んでいるものとする。また、既存の構
造ブロックとの位置関係の部分のB1 ,(4)は、幅の
計測を行ったブロックが構造ブロックB1 と上記(VI
II)の(4)の場合の位置関係にあることを表す。
Above 1. ~ 8. The state of change of each value in the processing of is as shown in FIGS. 31 and 32. In FIGS. 31 and 32, thick lines indicate structural blocks B 1 and B.
Represents the boundary between each value of 2 , each value is the number of lines, the start position,
It is assumed that they are arranged in the order of width and height. In addition, as for B 1 and (4) in the positional relationship with the existing structural block, the block whose width has been measured is the structural block B 1 and the above (VI).
It means that there is a positional relationship in the case of (4) of II).

【0063】以上に説明した情報量削減方法によって、
原画像の各構造ブロックの各値が抽出され、上記各値に
基づいて原画像から構造ブロックを抽出することができ
る。つまり、上記情報量削減方法によって、原画像の余
白部分の情報が構造ブロックの各値に置き換わったこと
になり、従って冗長な部分の情報量を削減できる。な
お、上記において、ブロック長は1ラインの画素数以下
の自然数の範囲で、ブロック閾値はブロック閾値とブロ
ックの画素数とをかけあわせた値が1ラインの画素数以
下の自然数となる範囲で、ライン閾値は1ページのライ
ン数以下の自然数の範囲でそれぞれ任意であるが、極端
に大きな値や極端に小さい値は、本発明の主旨や処理時
間の観点から有用ではないので、例えばCCITTのフ
ァクシミリ標準画像等の原画像に基づいて最適な値を決
めれば良い。特にブロック閾値とライン閾値は、その値
によって構造ブロックの数や大きさが決まるので、例え
ば文字部分の行間の余白部分の情報量も削減したい場合
はライン閾値を上記行間の余白部分のライン数より小さ
い値にし、文字部分のいくつかの行を1つの構造ブロッ
クとして抽出したい場合には行間の余白部分のライン数
より大きな値にする、というように最適な値を決めれば
よい。
According to the information amount reduction method described above,
Each value of each structural block of the original image is extracted, and the structural block can be extracted from the original image based on each of the above values. In other words, the information amount reduction method replaces the information of the blank portion of the original image with each value of the structural block, and therefore the information amount of the redundant portion can be reduced. In the above description, the block length is a natural number range equal to or less than the number of pixels in one line, and the block threshold value is a range in which a value obtained by multiplying the block threshold value and the number of pixels in the block is a natural number equal to or less than the number of pixels in one line. The line thresholds are arbitrary within a range of natural numbers less than or equal to the number of lines on one page, but extremely large values and extremely small values are not useful from the viewpoint of the gist of the present invention and the processing time. Therefore, for example, CCITT facsimile The optimum value may be determined based on the original image such as the standard image. In particular, the block threshold and line threshold determine the number and size of structural blocks depending on their values, so if you want to reduce the amount of information in the blank space between character parts, for example, set the line threshold more than the number of lines in the blank space between lines. When it is desired to set a small value and extract some lines of the character part as one structural block, an optimum value may be determined, for example, a value larger than the number of lines in the blank space between lines.

【0064】本発明の情報量削減方法を用いた画像処理
装置は、例えば図33のように構成することができる。
図33において、1は本発明の情報量削減方法により入
力された原画像から各構造ブロックの各値を抽出し、原
画像を画像メモリ2に記憶する各値抽出部、2は最低画
像1ページ分の容量をもつ画像メモリ、3は各値抽出部
1により抽出された各構造ブロックの各値に基づいて画
像メモリ2に記憶された画像から各構造ブロック内の画
像データを抽出し、上記画像データと各値を出力する画
像抽出部、4は上記装置群を制御する制御部である。
An image processing apparatus using the information amount reduction method of the present invention can be configured as shown in FIG. 33, for example.
In FIG. 33, reference numeral 1 is each value extraction unit that extracts each value of each structural block from the original image input by the information amount reduction method of the present invention, and stores the original image in the image memory 2, and 2 is the minimum image 1 page. The image memory 3 having a capacity of 3 minutes extracts image data in each structural block from the image stored in the image memory 2 based on each value of each structural block extracted by each value extracting unit 1, An image extraction unit 4 that outputs data and each value is a control unit that controls the device group.

【0065】各値抽出部1に入力された原画像は、各構
造ブロックの各値を抽出した後画像メモリ2に記憶され
る。画像抽出部3は画像メモリ2に記憶された原画像か
ら、各構造ブロック内の画像データを抽出し、例えば図
34のような順序で各値と上記画像データとを出力す
る。図34において、1,p,w,hは1番目の構造ブ
ロックの位置(ライン数と先頭位置)、幅、高さを、画
像データ1は1番目の構造ブロック内の画像データを表
す。なお、構造ブロックの順位は上述の順位決定法に従
う。
The original image input to each value extraction unit 1 is stored in the image memory 2 after extracting each value of each structural block. The image extraction unit 3 extracts the image data in each structural block from the original image stored in the image memory 2, and outputs each value and the image data in the order shown in FIG. 34, for example. In FIG. 34, 1, p, w, and h represent the position (the number of lines and the head position), the width, and the height of the first structural block, and the image data 1 represents the image data in the first structural block. The order of the structural blocks follows the above-mentioned order determination method.

【0066】本実施例では、情報量削減の対象となる原
画像を2値画像に限定したが、多値中間調画像の場合
は、原画像を全ての画素が0である余白部分と0でない
画素を1つ以上含み主走査方向及び副走査方向に相互に
所定の画素数分以上の間隔がある構造ブロックとに分
け、余白部分の情報を各構造ブロックの位置と、幅と、
高さと、各構造ブロック内の画像データとに置き換えれ
ばよい。また、カラー画像の場合は、所定の表色系に分
離された原画像の各色について多値中間調画像の場合と
同じ処理を施せばよい。
In the present embodiment, the original image for which the amount of information is to be reduced is limited to the binary image. However, in the case of a multi-value halftone image, the original image is a blank part in which all pixels are 0 and not 0. A structure block that includes one or more pixels and is spaced from each other by a predetermined number of pixels or more in the main scanning direction and the sub-scanning direction, and the information of the margin is the position and width of each structure block.
The height may be replaced with the image data in each structural block. Further, in the case of a color image, the same processing as that in the case of the multi-value halftone image may be applied to each color of the original image separated into a predetermined color system.

【0067】また、本発明では、各構造ブロックについ
て、各値と、各構造ブロック内の画像データとを抽出し
ているため、情報量削減後の画像データについて種々の
画像処理が構造ブロック単位で可能である。
Further, in the present invention, since each value and the image data in each structural block are extracted for each structural block, various image processing is performed for each structural block on the image data after the information amount reduction. It is possible.

【0068】[0068]

【発明の効果】以上説明したように、本発明によれば、
原画像を全ての画素が0である余白部分と、0でない画
素を1つ以上含み主走査方向及び副走査方向に相互に所
定の画素数分以上の間隔がある構造ブロックとに分け、
余白部分の情報を各構造ブロックの位置と、幅と、高さ
と、各構造ブロック内の画像データとに置き換えること
により、画像の冗長な情報量を圧縮することができる。
As described above, according to the present invention,
The original image is divided into a blank part in which all the pixels are 0, and a structural block which includes one or more non-zero pixels and is spaced from each other by a predetermined number of pixels or more in the main scanning direction and the sub scanning direction,
By replacing the information on the margin with the position, width, height, and image data in each structural block, the redundant information amount of the image can be compressed.

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

【図1】 原画像の一例を示す図である。FIG. 1 is a diagram showing an example of an original image.

【図2】 原画像を余白部分と構造ブロックとに分けた
例を示す図である。
FIG. 2 is a diagram showing an example in which an original image is divided into a blank portion and a structural block.

【図3】 図1の原画像に、画素間の境界、余白ブロッ
クと構造ブロックとの境界、各構造ブロックのインデッ
クス、各構造ブロックの各値を書き加えた図である。
3 is a diagram in which boundaries between pixels, boundaries between blank blocks and structure blocks, indexes of each structure block, and each value of each structure block are added to the original image of FIG.

【図4】 図3の構造ブロックB2 を拡大した図であ
る。
FIG. 4 is an enlarged view of the structural block B 2 of FIG.

【図5】 図3の第la+1 ラインを表す図である。FIG. 5 is a diagram illustrating the l a + 1 line of FIG. 3;

【図6】 本実施例における処理のメインルーチンを示
すフローチャートである。
FIG. 6 is a flowchart showing a main routine of processing in this embodiment.

【図7】 各値抽出ルーチンを示すフローチャートであ
る。
FIG. 7 is a flowchart showing each value extraction routine.

【図8】 幅計測ルーチンを示すフローチャートであ
る。
FIG. 8 is a flowchart showing a width measurement routine.

【図9】 構造ブロック抽出ルーチンを示すフローチャ
ートである。
FIG. 9 is a flowchart showing a structural block extraction routine.

【図10】 画像ブロック抽出ルーチンを示すフローチ
ャートである。
FIG. 10 is a flowchart showing an image block extraction routine.

【図11】 次構造ブロック群探索ルーチンを示すフロ
ーチャートである。
FIG. 11 is a flowchart showing a next structure block group search routine.

【図12】 位置関係調査ルーチンを示すフローチャー
トである。
FIG. 12 is a flowchart showing a positional relationship investigation routine.

【図13】 各値変更1ルーチンを示すフローチャート
である。
FIG. 13 is a flowchart showing each value change 1 routine.

【図14】 各値変更2・3ルーチンを示すフローチャ
ートである。
FIG. 14 is a flowchart showing each value change 2.3 routine.

【図15】 各値変更4ルーチンを示すフローチャート
である。
FIG. 15 is a flowchart showing each value change 4 routine.

【図16】 各値変更5・6ルーチンを示すフローチャ
ートである。
FIG. 16 is a flowchart showing each value changing routine 5/6.

【図17】 既存の構造ブロックに対して画像ブロック
全体が左側に位置し、各ブロック間の間隔がブロック閾
値以上である場合の位置関係と、この場合における各値
の書き換えを示す図である。
FIG. 17 is a diagram showing a positional relationship in the case where the entire image block is located on the left side with respect to the existing structural block and the interval between the blocks is equal to or larger than the block threshold value, and the rewriting of each value in this case.

【図18】 既存の構造ブロックに対して画像ブロック
全体が左側に位置し、各ブロック間の間隔がブロック閾
値より小さい場合の位置関係と、この場合における各値
の書き換えを示す図である。
FIG. 18 is a diagram showing a positional relationship when the entire image block is located on the left side of the existing structural block and the interval between the blocks is smaller than the block threshold value, and the rewriting of each value in this case.

【図19】 既存の構造ブロックの左端に対して画像ブ
ロックの左端が左側に位置し構造ブロックの右端に対し
て画像ブロックの右端が右側に位置する場合の位置関係
と、この場合における各値の書き換えを示す図である。
FIG. 19 shows a positional relationship in the case where the left end of the image block is located on the left side of the left end of the existing structural block and the right end of the image block is located on the right side of the right end of the structural block, and of the respective values in this case. It is a figure which shows rewriting.

【図20】 既存の構造ブロックの左端と画像ブロック
の左端が一致し構造ブロックの右端に対して画像ブロッ
クの右端が右側に位置する場合の位置関係と、この場合
における各値の書き換えを示す図である。
FIG. 20 is a diagram showing a positional relationship when the left end of an existing structural block matches the left end of an image block and the right end of the image block is located on the right side with respect to the right end of the structural block, and the rewriting of each value in this case. Is.

【図21】 既存の構造ブロックの左端に対して画像ブ
ロックの左端が右側に位置し構造ブロックの右端に対し
て画像ブロックの右端が左側に位置する場合の位置関係
と、この場合における各値の書き換えを示す図である。
FIG. 21 shows a positional relationship in the case where the left end of the image block is located on the right side of the left end of the existing structural block and the right end of the image block is located on the left side of the right end of the structural block, and the relationship between each value in this case. It is a figure which shows rewriting.

【図22】 既存の構造ブロックに対して画像ブロック
全体が右側に位置し、各ブロック間の間隔がブロック閾
値より小さい場合の位置関係と、この場合における各値
の書き換えを示す図である。
FIG. 22 is a diagram showing a positional relationship in the case where the entire image block is located on the right side of an existing structure block and an interval between blocks is smaller than a block threshold value, and rewriting of respective values in this case.

【図23】 既存の構造ブロックに対して画像ブロック
全体が右側に位置し、各ブロック間の間隔がブロック閾
値以上である場合の位置関係と、この場合における各値
の書き換えを示す図である。
FIG. 23 is a diagram showing a positional relationship in the case where the entire image block is located on the right side with respect to the existing structural block and the interval between the blocks is equal to or larger than the block threshold value, and the rewriting of each value in this case.

【図24】 複数の既存の構造ブロックに対して画像ブ
ロック全体が右側に位置し、画像ブロックと隣接構造ブ
ロック間の間隔がブロック閾値以上である場合の位置関
係と、この場合における各値の書き換えを示す図であ
る。
FIG. 24 is a positional relationship in the case where the entire image block is located on the right side with respect to a plurality of existing structure blocks and the interval between the image block and the adjacent structure block is equal to or larger than the block threshold, and rewriting of each value in this case. FIG.

【図25】 図2の原画像を、構造ブロック群と、ライ
ン閾値以上の数の連続した全白ラインとに分けた図であ
る。
FIG. 25 is a diagram in which the original image of FIG. 2 is divided into a group of structural blocks and continuous all-white lines whose number is equal to or more than a line threshold.

【図26】 図2の原画像の各構造ブロックに順位をつ
けた図である。
FIG. 26 is a diagram in which each structural block of the original image of FIG. 2 is ranked.

【図27】 各構造ブロックの各値の記憶順位の一例を
示す図である。
FIG. 27 is a diagram showing an example of the storage order of each value of each structural block.

【図28】 各値送出時の構造ブロックの各値の整理の
方式を示す図である。
[Fig. 28] Fig. 28 is a diagram illustrating a method of organizing each value of a structural block when transmitting each value.

【図29】 構造ブロック間の間隔がブロック閾値より
小さい場合の、各値送出時の各構造ブロックの各値の整
理の方式を示す図である。
FIG. 29 is a diagram showing a method of organizing each value of each structural block when transmitting each value when the interval between structural blocks is smaller than the block threshold value.

【図30】 構造ブロック間の間隔がブロック閾値より
小さい他の例の場合の、各値送出時の各構造ブロックの
各値の整理の方式を示す図である。
FIG. 30 is a diagram showing a method of organizing each value of each structural block when transmitting each value in the case of another example in which the interval between structural blocks is smaller than the block threshold value.

【図31】 本発明の情報量圧縮方法を適用したときの
構造ブロックの各値の変化の様子を示した図の第1の部
分である。
FIG. 31 is a first part of a diagram showing how each value of a structural block changes when the information amount compression method of the present invention is applied.

【図32】 本発明の情報量圧縮方法を適用したときの
構造ブロックの各値の変化の様子を示した図の第2の部
分である。
FIG. 32 is a second part of the diagram showing how each value of the structure block changes when the information amount compression method of the present invention is applied.

【図33】 本発明の一構成例を示す図である。FIG. 33 is a diagram showing a configuration example of the present invention.

【図34】 図33の画像抽出部より出力される各値及
び画像データの順序の一例を示す図である。
FIG. 34 is a diagram showing an example of the order of each value and image data output from the image extraction unit of FIG. 33.

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

1 各値抽出部、2 画像メモリ、3 画像抽出部、4
制御部、A 余白部分、B,B1 〜B3 構造ブロッ
ク、C 画像ブロック、E 全白ライン、F構造ブロッ
ク群、p1 〜p3 各構造ブロックの先頭位置、w1
3 各構造ブロックの幅、h1 〜h3 各構造ブロッ
クの幅
1 each value extraction unit, 2 image memory, 3 image extraction unit, 4
Control part, A margin part, B, B 1 to B 3 structure block, C image block, E all white line, F structure block group, start position of each p 1 to p 3 structure block, w 1 to
w 3 width of each structure block, h 1 to h 3 width of each structure block

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 原画像の各ラインの画素が全て0か、0
でない画素を1つ以上含むかを判別し、 0でない画素を1つ以上含む場合には、各ラインを、全
ての画素が0である全零ブロックと、0でない画素を1
つ以上含み主走査方向に所定の値の自然数倍の長さをも
つ非全零ブロックとに分類し、 各非全零ブロックのライン先頭からの位置及び主走査方
向の長さを測定し、 上記判別、分類及び測定を原画像の全てのラインについ
てライン先頭から順次繰り返し、 上記判別、分類及び測定の結果から、原画像を全ての画
素が0である全零領域と、0でない画素を1つ以上含み
主走査方向及び副走査方向に相互に所定の画素数分以上
の間隔がある非全零領域とに分け、 上記全零領域の情報を、上記各非全零領域の原画像にお
ける位置と、主走査方向及び副走査方向の大きさとに置
き換えることを特徴とする情報量削減方法。
1. The pixels of each line of the original image are all 0 or 0.
If one or more non-zero pixels are included, and if one or more non-zero pixels are included, each line includes all zero blocks in which all pixels are 0 and non-zero pixels in 1
It is classified as a non-totally zero block having a length that is a natural number multiple of a predetermined value in the main scanning direction including one or more, and the position from the line head of each non-totally zero block and the length in the main scanning direction are measured, The discrimination, classification, and measurement are sequentially repeated for all lines of the original image from the beginning of the line. From the discrimination, classification, and measurement results, the original image has all-zero regions in which all pixels are 0 and non-zero pixels are 1 If there are two or more of them, they are divided into a non-total zero region having a predetermined number of pixels or more in the main scanning direction and the sub-scanning direction, and the information of the above-mentioned all-zero region is the position in the original image of each non-total-zero region. And the size in the main scanning direction and the size in the sub scanning direction.
【請求項2】 情報量を削減すべき原画像が記憶される
画像メモリと、 原画像を走査して原画像を全ての画素が0である全零領
域と、0でない画素を1つ以上含み主走査方向及び副走
査方向に相互に所定の画素数分以上の間隔がある非全零
領域とに分け、上記各非全零領域の原画像における位置
と主走査方向及び副走査方向の大きさとを上記各非全零
領域を表す各値として抽出する各値抽出部と、 上記各値抽出部により抽出された上記各値に基づいて上
記画像メモリに記憶されている原画像から各非全零領域
内の画像データを抽出し、該画像データと上記各値を出
力する画像抽出部とを備えていることを特徴とする情報
量削減装置。
2. An image memory in which an original image whose information amount is to be reduced is stored, an all-zero region in which the original image is scanned and all the pixels are 0, and at least one non-zero pixel is included. The main scanning direction and the sub-scanning direction are divided into non-total zero areas having a predetermined number of pixels or more, and the positions of the non-total zero areas in the original image and the sizes in the main scanning direction and the sub-scanning direction. Each value extraction unit for extracting as a value representing each non-total zero region, and each non-total zero from the original image stored in the image memory based on each value extracted by each value extraction unit. An information amount reducing apparatus comprising: an image extracting unit that extracts image data in a region and outputs the image data and the above-mentioned values.
JP11290792A 1992-05-01 1992-05-01 Method and device for reducing quantity of image information Pending JPH05308505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11290792A JPH05308505A (en) 1992-05-01 1992-05-01 Method and device for reducing quantity of image information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11290792A JPH05308505A (en) 1992-05-01 1992-05-01 Method and device for reducing quantity of image information

Publications (1)

Publication Number Publication Date
JPH05308505A true JPH05308505A (en) 1993-11-19

Family

ID=14598484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11290792A Pending JPH05308505A (en) 1992-05-01 1992-05-01 Method and device for reducing quantity of image information

Country Status (1)

Country Link
JP (1) JPH05308505A (en)

Similar Documents

Publication Publication Date Title
EP1014699B1 (en) Method of selecting colors for pixels within blocks for block truncation encoding
JP4242532B2 (en) Digital image data classification method
JP2800633B2 (en) Image coding device
US6556711B2 (en) Image processing apparatus and method
US7012617B2 (en) Method for representing a digital color image using a set of palette colors based on detected important colors
US6307962B1 (en) Document data compression system which automatically segments documents and generates compressed smart documents therefrom
US7706618B2 (en) Image coding apparatus, image coding method, and recording medium, capable of creating highly versatile data
JP2000175052A (en) Processing method and system for pixel map expression
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
JP3161013B2 (en) Region separation method and image processing apparatus
EP1006714A2 (en) Method of processing mixed raster content planes
JPH05308505A (en) Method and device for reducing quantity of image information
AU686356B2 (en) Lossy compression land expansion algorithm for image representative data
JP3062224B2 (en) Image coding method
US20010055426A1 (en) Image processor
JP2802629B2 (en) Image data compression device and image processing device
JPH08195888A (en) Picture quality evaluating device
JP3456617B2 (en) Area dividing device
JPS613568A (en) Intermediate tone area identification system
JPH0261832B2 (en)
JPH08298589A (en) Image processor of photograph/document mixed image
JPH04236574A (en) Picture coding system
JPH05176175A (en) Picture data compression method
JP2872241B2 (en) Image coding method
JPS61166273A (en) Multi-value image data compression system