JPH0522598A - Picture input device - Google Patents

Picture input device

Info

Publication number
JPH0522598A
JPH0522598A JP3198734A JP19873491A JPH0522598A JP H0522598 A JPH0522598 A JP H0522598A JP 3198734 A JP3198734 A JP 3198734A JP 19873491 A JP19873491 A JP 19873491A JP H0522598 A JPH0522598 A JP H0522598A
Authority
JP
Japan
Prior art keywords
image
image data
gradation
binary
data
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
Application number
JP3198734A
Other languages
Japanese (ja)
Other versions
JP2841942B2 (en
Inventor
Hajime Watanabe
一 渡辺
Mayumi Ishimori
真由美 石森
Takashi Ito
隆司 伊藤
Takashi Suzuki
高志 鈴木
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.)
Toppan Inc
Original Assignee
Toppan Printing 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 Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
Priority to JP3198734A priority Critical patent/JP2841942B2/en
Publication of JPH0522598A publication Critical patent/JPH0522598A/en
Application granted granted Critical
Publication of JP2841942B2 publication Critical patent/JP2841942B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To easily correct an ineffective picture and a defective picture in a binary picture in a short time at the time of binarizing a gradation picture. CONSTITUTION:A threshold determining part 203 obtains a density histogram based on gradation picture data and determines a first threshold in accordance with this density histogram. A binarizing part 204 binarizes gradation picture data in accordance with the first threshold. A binary picture processing part 205 deletes the ineffective picture in binary picture data to generate binary picture data A. A gradation picture processing part 208 performs the filing processing of gradation picture data to prevent the defective picture. This gradation picture data is binarized to generate binary picture data B. A binary picture processing part 213 generates final binary picture data having no ineffective pictures neither defective pictures based on binary picture data A and B.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は例えば台紙入力装置等の
画像入力装置、詳しくは、入力された階調画像データか
ら二値画像データを生成する画像入力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image input device such as a mount input device, and more particularly to an image input device for generating binary image data from inputted gradation image data.

【0002】[0002]

【従来の技術】従来の製版工程及びデザインレイアウト
において、写真や文字をレイアウトする際の割付指定紙
として、台紙を使用している。この台紙上の画像をCA
D等を用いてトレースすることによりレイアウトスキャ
ナ等の編集装置における写真レイアウト枠等を入力する
が、地図等の自由図形の場合は事実上CAD図形として
トレースすることができない。この場合、台紙上の画像
をフラットベッドスキャナ等の画像入力装置を用いて入
力し、その入力したデータに対して、領域を認識するこ
とにより、この領域内に写真、文字等をレイアウトした
りする。また、その画線部に対しての色指定や、後述す
る有効画像、無効画像、無効の領域の指定を行う。
2. Description of the Related Art In a conventional plate making process and design layout, a mount is used as a designated paper for layout when laying out photographs and characters. CA the image on this mount
Although a photo layout frame or the like in an editing device such as a layout scanner is input by tracing using D or the like, a free graphic such as a map cannot be actually traced as a CAD graphic. In this case, by inputting the image on the mount using an image input device such as a flatbed scanner and recognizing an area for the input data, photographs, characters, etc. are laid out in this area. . Further, the color designation for the image line portion and the valid image, invalid image, and invalid region described later are designated.

【0003】従来のこの種の画像入力装置を図6〜8を
参照しながら説明する。図6は従来の画像入力装置にお
ける動作手順を表すフローチャートである。さらに、図
7は二値画像データにおける無効画像をあらわす図であ
り、図8は二値画像データにおける欠落画像をあらわす
図である。
A conventional image input device of this type will be described with reference to FIGS. FIG. 6 is a flowchart showing an operation procedure in the conventional image input device. Further, FIG. 7 is a diagram showing an invalid image in the binary image data, and FIG. 8 is a diagram showing a missing image in the binary image data.

【0004】従来の画像入力装置においては、線画等が
描かれた原画像をスキャナにより、階調画像として読み
込む(S61)。読み込まれた原画像は、予め定められ
た閾値(S65)に従い二値化される(S62)。S6
5において決定された閾値は固定値であり、いかなる原
画像に対しても(原画像の濃淡が変化しても)この閾値
にしたがい二値化が行われる。
In the conventional image input device, an original image on which a line drawing or the like is drawn is read as a gradation image by a scanner (S61). The read original image is binarized (S62) according to a predetermined threshold value (S65). S6
The threshold value determined in 5 is a fixed value, and binarization is performed on any original image (even if the shading of the original image changes) according to this threshold value.

【0005】ところが、図7、図8に表されるように、
二値化された2値画像データには、原画像が描かれた紙
面(例えば台紙)の汚れ等により、原画像に含まれてい
なかった点70(以下、無効画像という)が混入するこ
とがある。また、原画像に描かれた線画の一部の濃度が
薄いために、原画像に含まれていたにも拘らず、二値画
像データにおいて欠落した画像80(以下、欠落画像と
いう)が生じることがある。
However, as shown in FIGS. 7 and 8,
A point 70 (hereinafter referred to as an invalid image) that is not included in the original image may be mixed in the binarized binary image data due to stains on a paper surface (for example, a mount) on which the original image is drawn. is there. Further, since the density of a part of the line drawing drawn on the original image is low, a missing image 80 (hereinafter referred to as a missing image) is generated in the binary image data even though it is included in the original image. There is.

【0006】これらの無効画像、あるいは、欠落画像
は、オペレータが二値画像データを修正することにより
取り除かれる(S63)。例えば二値画像データをディ
スプレイに表示して、オペレータはこの表示画像と台紙
上の原画像とを目視により比較しながら、無効画像を削
除したり、欠落画像部分を補完するものである。このよ
うな修正指示が、二値画像データに付加されることで画
線部としての有効、無効や、領域の境界部としての認識
が行われる(S64)。そして、このデータは例えばレ
イアウトスキャナ等における写真等の画像をレイアウト
する領域として他の工程において用いられるものであ
る。
The invalid image or the missing image is removed by the operator correcting the binary image data (S63). For example, the binary image data is displayed on the display, and the operator visually compares the displayed image with the original image on the mount to delete the invalid image or complement the missing image portion. By adding such a correction instruction to the binary image data, the image area is validated or invalidated, and the boundary is recognized (S64). Then, this data is used in other steps as an area for laying out an image such as a photograph in a layout scanner or the like.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
画像入力装置においては、前記無効画像、あるいは、欠
落画像の修正は、上述のようにオペレータの目視により
行っていたため、オペレータの熟練が必要とされるとと
もに、その修正作業には長時間を必要とするという問題
があった。
However, in the conventional image input device, since the invalid image or the missing image is corrected by the operator's visual observation as described above, the skill of the operator is required. In addition, there is a problem that the correction work requires a long time.

【0008】[0008]

【発明の目的】そこで、本発明は、画像入力装置におい
て、二値画像データの無効画像、および、欠落画像の修
正を容易、かつ、短時間に、行うことをその目的として
いる。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to easily correct an invalid image and a missing image of binary image data in an image input device in a short time.

【0009】[0009]

【課題を解決するための手段】請求項1に記載の発明に
係る画像入力装置は、第1の閾値に基づき、入力された
第1の階調画像データを二値化し、第1の二値画像デー
タを生成する第1の画像二値化手段と、前記第1の二値
画像データについて第1のカットオフ周波数より高い周
波数成分を除去し、第2の二値画像データを生成する第
1の二値画像処理手段と、前記第1の階調画像データに
ついて、第2のカットオフ周波数より高い周波数成分を
除去し、第2の階調画像データを生成する階調画像処理
手段と、第2の閾値に基づき、前記第2の階調画像デー
タを二値化し、第2の二値画像データを生成する第2の
画像二値化手段と、前記第1の二値画像データと前記第
2の二値画像データとに基づき第3の二値画像データを
生成する第2の二値画像処理手段と、を有することを特
徴とする。
According to a first aspect of the present invention, there is provided an image input device which binarizes the input first gradation image data on the basis of a first threshold value and outputs the first binary image data. First image binarization means for generating image data, and first for removing frequency components higher than a first cutoff frequency in the first binary image data to generate second binary image data. A binary image processing means for removing the frequency component higher than the second cutoff frequency from the first gradation image data to generate second gradation image data; Second image binarizing means for binarizing the second gradation image data based on a threshold value of 2 to generate second binary image data, the first binary image data and the second binary image data. Second binary image data based on the second binary image data Characterized in that it has an image processing means.

【0010】また、請求項2に記載の発明に係る画像入
力装置においては、前記第1の閾値は、前記入力された
第1の階調画像データに基づいて設定する。
In the image input device according to the second aspect of the present invention, the first threshold value is set based on the input first gradation image data.

【0011】さらに、請求項3の記載の発明に係る画像
入力装置においては、前記第2の閾値は、前記第2の階
調画像データに基づいて設定する。
Further, in the image input apparatus according to the invention of claim 3, the second threshold value is set based on the second gradation image data.

【0012】[0012]

【作用】請求項1記載の発明に係る画像入力装置におい
て、第1の画像二値化手段は、第1の閾値に基づき、入
力された第1の階調画像データを二値化し、第1の二値
画像データを生成する。第1の二値画像処理手段は、前
記第1の二値画像データについて第1のカットオフ周波
数より高い周波数成分を除去し、第2の二値画像データ
を生成する。例えば入力時に混入した単独画素(無効画
像)を削除するものである。階調画像処理手段は、前記
第1の階調画像データについて、第2のカットオフ周波
数より高い周波数成分を除去し、第2の階調画像データ
を生成する。第2の画像二値化手段は、第2の閾値に基
づき、前記第2の階調画像データを二値化し、第2の二
値画像データを生成する。これにより、例えば前記第1
のカットオフ周波数でのフィルタリングによって欠落す
る線画部分を補間するものである。そして、第2の二値
画像処理手段は、前記第1の二値画像データと前記第2
の二値画像データとに基づき第3の二値画像データを生
成する。この結果、無効画像は削除されるとともに、欠
落画像は補間される。
In the image input apparatus according to the first aspect of the present invention, the first image binarizing means binarizes the input first gradation image data based on the first threshold value, To generate binary image data of. The first binary image processing means removes a frequency component higher than a first cutoff frequency from the first binary image data to generate second binary image data. For example, the single pixel (invalid image) mixed at the time of input is deleted. The gradation image processing means removes a frequency component higher than the second cutoff frequency from the first gradation image data to generate second gradation image data. The second image binarization unit binarizes the second gradation image data based on the second threshold value to generate second binary image data. Thereby, for example, the first
This is to interpolate the line drawing part that is missing by filtering at the cutoff frequency of. Then, the second binary image processing means includes the first binary image data and the second binary image data.
The third binary image data is generated based on the binary image data of. As a result, the invalid image is deleted and the missing image is interpolated.

【0013】請求項2に記載の発明に係る画像入力装置
は、請求項1の画像入力装置において、前記第1の閾値
は、前記入力された第1の階調画像データに基づいて設
定する。例えば入力画像データに基づいてヒストグラム
を作成し、このヒストグラムにより閾値を入力データ毎
に設定するものである。この結果、原画像について欠落
画像部分が減少するとともに、無効画像の混入も大幅に
低減される。
An image input device according to a second aspect of the present invention is the image input device according to the first aspect, wherein the first threshold value is set based on the input first gradation image data. For example, a histogram is created based on the input image data, and the threshold value is set for each input data by this histogram. As a result, the number of missing images in the original image is reduced, and the mixing of invalid images is significantly reduced.

【0014】請求項3に記載の発明に係る画像入力装置
は、請求項1の画像入力装置において、前記第2の閾値
は、前記第2の階調画像データに基づいて設定する。例
えば前記同様に階調によるヒストグラムを作成し、これ
に基づいて第2の閾値を設定するものである。この結
果、より高精度に無効画像の除去と欠落画像の補間とを
行うことができる。
An image input apparatus according to a third aspect of the present invention is the image input apparatus according to the first aspect, wherein the second threshold value is set based on the second gradation image data. For example, a histogram based on gradation is created in the same manner as described above, and the second threshold value is set based on this histogram. As a result, the invalid image can be removed and the missing image can be interpolated with higher accuracy.

【0015】[0015]

【実施例】以下に、本発明の実施例を図面を参照しなが
ら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0016】図1は、本発明の第1実施例に係る画像入
力装置の外観図である。第1実施例に係る画像入力装置
は、フラットベッド型のイメージスキャナ11と、コン
ピュータ本体12と、ディスプレイ13と、磁気ディス
クユニット14と、光磁気ディスクユニット15と、マ
ウス16と、を有して構成されている。
FIG. 1 is an external view of an image input device according to the first embodiment of the present invention. The image input apparatus according to the first embodiment includes a flat bed type image scanner 11, a computer main body 12, a display 13, a magnetic disk unit 14, a magneto-optical disk unit 15, and a mouse 16. It is configured.

【0017】イメージスキャナ11は、台紙に描かれた
線画等の原画像を読み取るものである。イメージスキャ
ナ11により読み込まれた原画像は、コンピュータ本体
12に入力されると同時に、ディスプレイ13に出力さ
れる。オペレータは、ディスプレイ13、マウス16等
を使用して、磁気ディスク14に保存されたプログラム
に従い、原画像の二値化を行う。この二値画像データは
光磁気ディスクユニット15内の光磁気ディスクに書き
込まれ、保存される。
The image scanner 11 reads an original image such as a line drawing drawn on a mount. The original image read by the image scanner 11 is input to the computer main body 12 and simultaneously output to the display 13. The operator uses the display 13, the mouse 16, etc. to binarize the original image according to the program stored in the magnetic disk 14. This binary image data is written and stored in the magneto-optical disk in the magneto-optical disk unit 15.

【0018】図2は本実施例に係る画像入力装置の機能
ブロック図である。図2に示すように、この画像入力装
置は、画像入力部201と、階調画像記憶部202、2
09と、二値画像記憶部204、206、211と、階
調画像処理部208と、二値化部203、210と、二
値画像処理部205、210、213と、閾値決定部2
07、212と、情報付加部213と、を有して構成さ
れている。
FIG. 2 is a functional block diagram of the image input apparatus according to this embodiment. As shown in FIG. 2, the image input device includes an image input unit 201, a gradation image storage unit 202, and a gradation image storage unit 202.
09, the binary image storage units 204, 206 and 211, the gradation image processing unit 208, the binarization units 203 and 210, the binary image processing units 205, 210 and 213, and the threshold value determination unit 2.
07 and 212 and an information adding unit 213.

【0019】画像入力部201は、上記イメージスキャ
ナ11より構成され、この画像入力部201にて原画像
が階調画像として読み込まれ、入力される。入力された
原画像データは、A/D変換される。A/D変換された
画像データは、例えば4ビット(16階調)にてあらわ
される。この4ビットの画像データは階調画像記憶部2
02に記憶される。
The image input section 201 is composed of the image scanner 11, and the original image is read and input as a gradation image by the image input section 201. The input original image data is A / D converted. The A / D converted image data is represented by, for example, 4 bits (16 gradations). This 4-bit image data is stored in the gradation image storage unit 2
No. 02 is stored.

【0020】階調画像記憶部202に記憶された階調画
像データに基づき、閾値決定部207は第1の閾値を決
定する。第1の閾値に従い二値化部203は、階調画像
記憶部202に記憶された階調画像データを二値化す
る。この二値画像データは二値画像記憶部204に入力
され、記憶される。二値画像処理部205は、二値画像
データ内の無効画像の削除等の処理を行う。処理された
二値画像データは二値画像記憶部206に記憶される。
The threshold value determining unit 207 determines the first threshold value based on the gradation image data stored in the gradation image storage unit 202. The binarization unit 203 binarizes the gradation image data stored in the gradation image storage unit 202 according to the first threshold. This binary image data is input to and stored in the binary image storage unit 204. The binary image processing unit 205 performs processing such as deleting an invalid image in the binary image data. The processed binary image data is stored in the binary image storage unit 206.

【0021】一方、階調画像処理部208は、階調画像
記憶部202に記憶された階調画像データにおいて、フ
ィルタリング等の処理を行う。処理された階調画像デー
タは階調画像記憶部209に記憶される。階調画像記憶
部209に記憶された階調画像データに基づき、閾値決
定部212は第2の閾値を決定する。二値化部210
は、階調画像記憶部209に記憶された階調画像データ
を第2の閾値にしたがい、二値化する。この二値画像デ
ータは二値画像記憶部211に記憶される。
On the other hand, the gradation image processing unit 208 performs processing such as filtering on the gradation image data stored in the gradation image storage unit 202. The processed gradation image data is stored in the gradation image storage unit 209. The threshold value determining unit 212 determines the second threshold value based on the gradation image data stored in the gradation image storage unit 209. Binarization unit 210
Performs binarization on the gradation image data stored in the gradation image storage unit 209 according to the second threshold value. This binary image data is stored in the binary image storage unit 211.

【0022】2値画像処理部213は、二値画像記憶部
206に記憶された二値画像データと、二値画像記憶部
211に記憶された二値画像データと、に基づき最終二
値画像データを生成する。情報付加部214は、最終二
値画像データに、二値画像データ以外の必要なデータを
付加する。
The binary image processing unit 213 determines the final binary image data based on the binary image data stored in the binary image storage unit 206 and the binary image data stored in the binary image storage unit 211. To generate. The information adding unit 214 adds necessary data other than the binary image data to the final binary image data.

【0023】なお、閾値決定部207、二値化部20
3、二値画像記憶部204は請求項1記載の画像入力装
置に係る第1の画像二値化手段を形成している。同様
に、二値画像処理部205、二値画像記憶部206は第
1の二値画像処理手段を形成している。階調画像処理部
208、階調画像記憶部209は階調画像処理手段を形
成している。二値化部210、二値画像記憶部211、
閾値決定手段212は第2の画像二値化手段を形成して
いる。二値画像処理部213は第2の二値画像処理部を
形成している。
The threshold value determination unit 207 and the binarization unit 20
3. The binary image storage unit 204 forms a first image binarization unit according to the image input device of the first aspect. Similarly, the binary image processing unit 205 and the binary image storage unit 206 form a first binary image processing unit. The gradation image processing unit 208 and the gradation image storage unit 209 form a gradation image processing unit. A binarization unit 210, a binary image storage unit 211,
The threshold value determining means 212 forms a second image binarizing means. The binary image processing unit 213 forms a second binary image processing unit.

【0024】次に、図3〜図5を参照しながら本実施例
に係る画像入力装置の動作を説明する。
Next, the operation of the image input apparatus according to this embodiment will be described with reference to FIGS.

【0025】図3は本実施例に係る画像入力装置の動作
を表すフローチャートである。図4(A)〜図4(C)
はそれぞれ、原画像、階調画像データ、および、階調画
像デタのヒストグラムをあらわす図である。図5(A)
〜図5(C)はそれぞれ、2次元ローパスフィルタの処
理がなされた階調画像データ、二値画像データA、最終
二値画像データをあらわす図である。
FIG. 3 is a flow chart showing the operation of the image input apparatus according to this embodiment. 4 (A) to 4 (C)
FIG. 4 is a diagram showing a histogram of an original image, gradation image data, and a gradation image data, respectively. Figure 5 (A)
5C is a diagram showing the gradation image data, the binary image data A, and the final binary image data that have been processed by the two-dimensional low-pass filter.

【0026】まず、図4(A)に示される原画像が画像
入力装置に入力される(S301)。この原画像のデー
タは図4(B)のように、4ビットの階調画像データに
てあらわされ、階調画像記憶部202に記憶される。
First, the original image shown in FIG. 4A is input to the image input device (S301). The data of the original image is represented by 4-bit gradation image data and stored in the gradation image storage unit 202, as shown in FIG.

【0027】次に、閾値決定部207は、階調画像記憶
部202に記憶された階調画像データにしたがい、図4
(C)の濃度ヒストグラムを作成する(S302)。一
般に、この濃度ヒストグラムは、図4(C)に示される
ように、原画像の空白部分を示す低濃度のデータにおい
て、ピークaを有する。また、原画像の画線部分を示す
高濃度のデータにおいてもピークbを有する。
Next, the threshold value deciding unit 207 follows the gradation image data stored in the gradation image storage unit 202, as shown in FIG.
A density histogram of (C) is created (S302). In general, this density histogram has a peak a in low density data indicating a blank portion of the original image, as shown in FIG. Further, the high-density data showing the streak portion of the original image also has a peak b.

【0028】閾値決定部207は、このヒストグラムに
基づき、第1の閾値を決定する(S303)。第1の閾
値の決定は、以下の手順に従う。すなわち、図4(C)
に示される濃度ヒストグラムの2個のピークa、bの中
間点cを求める。さらに、この中間点cと、ピークbと
の中間点dを求め、この中間点dにおける濃度を第1の
閾値とする。これは、通常、画線部は一定の濃度を持っ
ているので、閾値を画線部の濃度域側に近づけること
で、画線部の濃度以下の汚れ部分等を除くことができる
ためである。但し、閾値の決定は上記の方法に限られる
ことなく、適宜選択できるものである。
The threshold determination unit 207 determines the first threshold based on this histogram (S303). The determination of the first threshold value follows the procedure below. That is, FIG. 4 (C)
The midpoint c between the two peaks a and b in the density histogram shown in FIG. Further, an intermediate point d between the intermediate point c and the peak b is obtained, and the density at the intermediate point d is set as the first threshold value. This is because the image area usually has a constant density, and therefore, by making the threshold value closer to the density area side of the image area, it is possible to remove a stain portion or the like having a density equal to or lower than the image area density. . However, the determination of the threshold value is not limited to the above method and can be appropriately selected.

【0029】二値化部203は、第1の閾値に従い、階
調画像記憶部202に記憶された階調画像データを二値
化し、二値画像データを生成する(S304)。このよ
うにして第1の閾値を決定したため、原画像全体の濃淡
の変化に影響されることなく例えばこの二値画像データ
への無効画像の混入をより正確に除去することができ
る。
The binarization unit 203 binarizes the gradation image data stored in the gradation image storage unit 202 according to the first threshold value to generate binary image data (S304). Since the first threshold value is determined in this way, it is possible to more accurately remove, for example, the inclusion of an invalid image in the binary image data without being affected by the change in the shading of the entire original image.

【0030】二値画像処理部205は、前記二値画像デ
ータのうち、隣接した3×3の画素データの中央の画素
データのみが”1”であるデータ(単独画素データ)を
検出し、この単独画素データを”0”とする(S30
5)。すなわち、二値画像処理部205は、2次元ロー
パスフィルタを構成しており、請求項1記載の第1のカ
ットオフ周波数より高い成分である高域成分(単独画素
データ)を削除することにより、無効画像を取り除くこ
とができる。なぜならば、単独画素データは無効画像で
ある場合が多いからである。なお、無効画像の抽出を行
う二値画像処理部205は、上記の2次元ローパスフィ
ルタによる方法に限定されるものではない。例えば、あ
る画素と隣接する画素が同じ値であるかどうかを判断す
ることにより、無効画素を抽出する方法等を用いても差
し支えない。さらに、上記第1のカットオフ周波数を適
宜選択することにより、単独画素データに限らす、例え
ば、2×2の無効画像を削除することができる。無効画
像を削除され、生成された二値画像データAは二値画像
記憶部206に記憶される(S306)。
The binary image processing section 205 detects data (single pixel data) in which only the central pixel data of the adjacent 3 × 3 pixel data is “1” among the binary image data, and The individual pixel data is set to "0" (S30
5). That is, the binary image processing unit 205 constitutes a two-dimensional low-pass filter, and by deleting the high frequency component (single pixel data) which is a component higher than the first cutoff frequency according to claim 1, You can remove invalid images. This is because the single pixel data is often an invalid image. The binary image processing unit 205 that extracts an invalid image is not limited to the method using the above two-dimensional low-pass filter. For example, a method of extracting invalid pixels by determining whether or not a pixel and an adjacent pixel have the same value may be used. Furthermore, by appropriately selecting the first cutoff frequency, it is possible to delete, for example, 2 × 2 invalid images limited to single pixel data. The invalid image is deleted, and the generated binary image data A is stored in the binary image storage unit 206 (S306).

【0031】一方、階調画像処理部208は、階調画像
記憶部202に記憶された階調画像データに対して、請
求項1記載の第2のカットオフ周波数より高い周波数成
分を除去する2次元ローパスフィルタの処理を行う(S
307)。この2次元ローパスフィルタは、例えば、隣
接した3×3のデータの平均値を求めるような簡易な方
法を用いることができる。階調画像データに対して、こ
のようなフィルタリング処理を行うことにより、図4
(C)の階調画像データのうち、濃度の比較的低い部分
41の濃度が高くなる。よって、フィルタリング処理さ
れた階調画像を二値化することによる欠落画像を防止す
ることができる。なお、階調画像処理部208は、この
ような2次元ローパスフィルタに限定されることなく、
他の2次元ローパスフィルタを用いても差し支えない。
さらに、第2のカットオフ周波数を適宜選択することに
より、任意の大きさの欠落画像の補完を行うことができ
る。フィルタリング処理の行われた階調画像データは、
階調画像記憶部209に記憶される。
On the other hand, the gradation image processing unit 208 removes frequency components higher than the second cutoff frequency according to claim 1 from the gradation image data stored in the gradation image storage unit 202. Dimensional low-pass filter processing (S
307). For this two-dimensional low-pass filter, for example, a simple method of obtaining an average value of adjacent 3 × 3 data can be used. By performing such filtering processing on the gradation image data, as shown in FIG.
In the gradation image data of (C), the density of the portion 41 having a relatively low density is high. Therefore, it is possible to prevent a missing image due to binarization of the filtered gradation image. Note that the gradation image processing unit 208 is not limited to such a two-dimensional low-pass filter,
Other two-dimensional low pass filters may be used.
Furthermore, by appropriately selecting the second cutoff frequency, it is possible to complement a missing image of any size. The gradation image data that has been filtered is
It is stored in the gradation image storage unit 209.

【0032】階調画像記憶部部209に記憶された階調
画像データの濃度ヒストグラムを、S302と同様の方
法により作成する(S308)。また、S303と同様
に、この濃度ヒストグラムより、第2の閾値を求める
(S309)。前記階調画像記憶部209に記憶された
階調画像データを、第2の閾値にしたがい、二値化し
(S310)、二値画像データBを生成する(S31
1)。二値画像データBは二値画像記憶部211に記憶
される。この二値画像データBは、前記二値画像データ
Aと比較して、欠落画像は少なくなっている。
A density histogram of the gradation image data stored in the gradation image storage unit 209 is created by the same method as S302 (S308). Further, similarly to S303, the second threshold value is obtained from this density histogram (S309). The gradation image data stored in the gradation image storage unit 209 is binarized according to the second threshold value (S310) to generate the binary image data B (S31).
1). The binary image data B is stored in the binary image storage unit 211. The binary image data B has fewer missing images than the binary image data A.

【0033】2値画像データAは、無効画像を削除され
ているが、欠落画像を防止する処理はなされていないた
め、図5(B)に示されるような欠落画像51、52を
有している。一方、図5(A)示される階調画像データ
は、2次元ローパスフィルタの処理がなされているた
め、この階調画像データを二値化した二値画像データB
は、欠落画像51、52を含んでいないが、フィルタリ
ング処理を行ったために第2の閾値以上であった画像が
第2の閾値以下となったり(欠落画像53〜56)、無
効画像を含んでいる場合がある。このように、異なるデ
ータにて構成される二値画像データA、Bに基づき、以
下の手順(S312、S313)にしたがい、最終二値
画像データは求められる。
In the binary image data A, the invalid image is deleted, but the process for preventing the missing image is not performed. Therefore, the binary image data A has the missing images 51 and 52 as shown in FIG. 5B. There is. On the other hand, since the gradation image data shown in FIG. 5 (A) has been processed by the two-dimensional low-pass filter, the binary image data B obtained by binarizing the gradation image data is shown.
Does not include the missing images 51 and 52, but an image that is equal to or higher than the second threshold due to the filtering process is equal to or lower than the second threshold (missing images 53 to 56), or includes an invalid image. There is a case. In this way, based on the binary image data A and B composed of different data, the final binary image data is obtained according to the following procedure (S312, S313).

【0034】まず、二値画像データAと、二値画像デー
タBの論理積のデータを求める。この論理積のデータ内
の”1”のデータに対応する二値画像データB内のデー
タ、および、該データに隣接し、かつ、データが”1”
である二値画像データB内のデータを抽出する(S31
2)。このようにして、抽出された二値画像データB内
のデータ、二値画像データAとの論理和のデータを求
め、この論理和のデータを図5(C)の最終二値画像デ
ータとする(S313)。よって、図5(A)の欠落画
像53〜56と、図5(B)の欠落画像51、52は、
図5(C)の最終二値画像において補間される。さら
に、最終二値画像データに、画線部としての有効無効の
指示や、領域の境界部として認識するための必要なデー
タを付加する(S314)。
First, the logical product data of the binary image data A and the binary image data B is obtained. The data in the binary image data B corresponding to the data of "1" in the data of the logical product and the data adjacent to the data and having the data of "1"
Data in the binary image data B is extracted (S31
2). In this way, the data of the logical sum of the data in the binary image data B extracted and the binary image data A is obtained, and the data of this logical sum is used as the final binary image data of FIG. 5C. (S313). Therefore, the missing images 53 to 56 of FIG. 5A and the missing images 51 and 52 of FIG.
It is interpolated in the final binary image of FIG. Further, the final binary image data is added with a valid / invalid instruction as an image line portion and necessary data for recognition as a boundary portion of the area (S314).

【0035】以上のフローチャートを実行することによ
り、無効画像、および、欠落画像を含まない最終二値画
像データが、自動的に求められる。尚、無効画像の抽出
を行う二値画像処理部705においては、上記した2次
元ローパスフィルターによる方法以外に、ある画素と隣
接する画素が同じ値であるかどうかを判断し、この作業
を次々に行っていくことで、単独画素を抽出する方法等
を適宜選択出来るものである。
By executing the above flow chart, the final binary image data that does not include the invalid image and the missing image is automatically obtained. In addition, in the binary image processing unit 705 that extracts invalid images, in addition to the method using the two-dimensional low-pass filter described above, it is determined whether or not a pixel and an adjacent pixel have the same value, and this work is performed one after another. By doing so, a method for extracting a single pixel or the like can be appropriately selected.

【0036】[0036]

【発明の効果】以上説明してきたように、本発明によれ
ば、画像入力装置において、二値画像の無効画像、およ
び、欠陥画像の修正を容易に、かつ、短時間にて行うこ
とができる。
As described above, according to the present invention, the invalid image of the binary image and the defective image can be easily corrected in the image input device in a short time. .

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

【図1】本発明の第1実施例に係る画像入力装置の外観
図である。
FIG. 1 is an external view of an image input device according to a first embodiment of the invention.

【図2】本発明の第1実施例に係る画像入力装置の機能
ブロック図である。
FIG. 2 is a functional block diagram of the image input apparatus according to the first embodiment of the present invention.

【図3】本発明の第1実施例に係る画像入力措置の動作
を表すフローチャートである。
FIG. 3 is a flowchart showing an operation of the image input device according to the first embodiment of the present invention.

【図4】本発明の第1実施例に係る原画像、階調画像デ
ータ、および、階調画像データの濃度ヒストグラムをあ
らわす図である。
FIG. 4 is a diagram showing an original image, gradation image data, and a density histogram of gradation image data according to the first embodiment of the present invention.

【図5】本発明の第1実施例に係る2次元ローパスフィ
ルタの処理がなされた階調画像データ、二値画像データ
A、および、最終二値画像データをそれぞれあらわす図
である。
FIG. 5 is a diagram showing gradation image data, binary image data A, and final binary image data that have been processed by the two-dimensional low-pass filter according to the first embodiment of the present invention.

【図6】従来の画像入力装置における動作手順を表すフ
ローチャートである。
FIG. 6 is a flowchart showing an operation procedure in a conventional image input device.

【図7】二値画像データにおける無効画像をあらわす図
である。
FIG. 7 is a diagram showing an invalid image in binary image data.

【図8】二値画像データにおける欠落画像をあらわす図
である。
FIG. 8 is a diagram showing a missing image in binary image data.

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

203 二値化部(第1の画像二値化手段) 204 二値画像記憶部(第1の画像二値化手段) 205 二値画像処理部(第1の二値画像処理部) 206 二値画像記憶部(第1の二値画像処理部) 207 閾値決定部(第1の画像二値化手段) 208 階調画像処理部(階調画像処理部) 209 階調画像記憶部(階調画像処理部) 210 二値化部(第2の二値化手段) 211 二値画像記憶部(第2の二値化手段) 212 閾値決定手段(第2の二値化手段) 213 二値画像処理部(第2の二値画像処理部) 203 Binarization unit (first image binarization means) 204 Binary Image Storage Unit (First Image Binarization Unit) 205 Binary Image Processing Unit (First Binary Image Processing Unit) 206 Binary Image Storage Unit (First Binary Image Processing Unit) 207 Threshold value determination unit (first image binarization unit) 208 gradation image processing unit (gradation image processing unit) 209 gradation image storage unit (gradation image processing unit) 210 Binarization Unit (Second Binarization Means) 211 Binary image storage unit (second binarizing means) 212 Threshold Determining Means (Second Binarizing Means) 213 Binary Image Processing Unit (Second Binary Image Processing Unit)

───────────────────────────────────────────────────── フロントページの続き (72)発明者 鈴木 高志 東京都台東区台東一丁目5番1号 凸版印 刷株式会社内   ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Takashi Suzuki             1-5-1 Taito, Taito-ku, Tokyo Toppan stamp             Imprint Co., Ltd.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 第1の閾値に基づき、入力された第1の
階調画像データを二値化し、第1の二値画像データを生
成する第1の画像二値化手段と、 前記第1の二値画像データについて第1のカットオフ周
波数より高い周波数成分を除去し、第2の二値画像デー
タを生成する第1の二値画像処理手段と、 前記第1の階調画像データについて、第2のカットオフ
周波数より高い周波数成分を除去し、第2の階調画像デ
ータを生成する階調画像処理手段と、 第2の閾値に基づき、前記第2の階調画像データを二値
化し、第2の二値画像データを生成する第2の画像二値
化手段と、 前記第1の二値画像データと前記第2の二値画像データ
とに基づき第3の二値画像データを生成する第2の二値
画像処理手段と、 を有することを特徴とする画像入力装置。
1. A first image binarizing unit which binarizes the input first gradation image data based on a first threshold value to generate first binary image data, and the first image binarizing unit. First binary image processing means for removing frequency components higher than the first cutoff frequency from the binary image data, and generating the second binary image data; and the first gradation image data, A gradation image processing unit that removes frequency components higher than the second cutoff frequency and generates second gradation image data, and binarizes the second gradation image data based on a second threshold value. Second image binarization means for generating second binary image data, and third binary image data based on the first binary image data and the second binary image data. Second binary image processing means for
【請求項2】 請求項1の画像入力装置において、前記
第1の閾値は、前記入力された第1の階調画像データに
基づいて設定する画像入力装置。
2. The image input device according to claim 1, wherein the first threshold value is set based on the input first gradation image data.
【請求項3】 請求項1の画像入力装置において、前記
第2の閾値は、前記第2の階調画像データに基づいて設
定する画像入力装置。
3. The image input device according to claim 1, wherein the second threshold value is set based on the second gradation image data.
JP3198734A 1991-07-12 1991-07-12 Image input device Expired - Lifetime JP2841942B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3198734A JP2841942B2 (en) 1991-07-12 1991-07-12 Image input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3198734A JP2841942B2 (en) 1991-07-12 1991-07-12 Image input device

Publications (2)

Publication Number Publication Date
JPH0522598A true JPH0522598A (en) 1993-01-29
JP2841942B2 JP2841942B2 (en) 1998-12-24

Family

ID=16396098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3198734A Expired - Lifetime JP2841942B2 (en) 1991-07-12 1991-07-12 Image input device

Country Status (1)

Country Link
JP (1) JP2841942B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19529142A1 (en) * 1994-08-09 1996-02-15 Ricoh Kk Automatic identification of faulty points in digital image
JP2005354287A (en) * 2004-06-09 2005-12-22 National Institute Of Advanced Industrial & Technology Method, apparatus, and program for applying binarizing or multi-value processing to image

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19529142A1 (en) * 1994-08-09 1996-02-15 Ricoh Kk Automatic identification of faulty points in digital image
DE19529142C2 (en) * 1994-08-09 1997-04-17 Ricoh Kk Method for automatically identifying a lot of defects in a digital image
JP2005354287A (en) * 2004-06-09 2005-12-22 National Institute Of Advanced Industrial & Technology Method, apparatus, and program for applying binarizing or multi-value processing to image

Also Published As

Publication number Publication date
JP2841942B2 (en) 1998-12-24

Similar Documents

Publication Publication Date Title
JP3348167B2 (en) Image binarization device
US5075895A (en) Method and apparatus for recognizing table area formed in binary image of document
JP2958584B2 (en) Noise removal method
JPS58113941A (en) Preparing device of printing mask or block copy
JPH0522598A (en) Picture input device
JP3100383B2 (en) Character region separation method and apparatus
JP2002342710A (en) Character segmenting device and character segmenting method used for the same device and its program
JP2993007B2 (en) Image area identification device
JPH10283475A (en) Image processing method and device
JPH0550187B2 (en)
JPH0546749B2 (en)
JP2581049B2 (en) Image area determination device
JP2853140B2 (en) Image area identification device
JP2697860B2 (en) Image processing device
JPH04257844A (en) Method and device for editing image
JP3046654B2 (en) Detecting inclination of text originals
JP2509448B2 (en) How to reduce the amount of image information
JPH0562013A (en) Character reader
JP3738951B2 (en) Image processing device
JP2931041B2 (en) Character recognition method in table
JP2954218B2 (en) Image processing method and apparatus
JP2004240500A (en) Device and program for processing image, and storing medium
JPS61173392A (en) Method for incising of key top
JPH02195774A (en) Multilevel image binarizing system
JPH05225392A (en) Binarizing processor