JPH04220080A - Binarization method - Google Patents

Binarization method

Info

Publication number
JPH04220080A
JPH04220080A JP2404300A JP40430090A JPH04220080A JP H04220080 A JPH04220080 A JP H04220080A JP 2404300 A JP2404300 A JP 2404300A JP 40430090 A JP40430090 A JP 40430090A JP H04220080 A JPH04220080 A JP H04220080A
Authority
JP
Japan
Prior art keywords
image
data
line
line drawing
window
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
JP2404300A
Other languages
Japanese (ja)
Inventor
Susumu Sugiura
進 杉浦
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2404300A priority Critical patent/JPH04220080A/en
Publication of JPH04220080A publication Critical patent/JPH04220080A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は多値画像を2値画像に変
換する方法に関し、例えば原画の文字等の細線部分と画
像部を判別し、各々に適した処理を施す適応形2値化方
法に関するものである。
[Industrial Application Field] The present invention relates to a method for converting a multi-valued image into a binary image, for example, an adaptive binarization method that distinguishes thin line parts such as characters in an original image from image parts, and performs processing suitable for each. It is about the method.

【0002】0002

【従来の技術】従来の適応形2値化方法は原画のnxm
画素平均に対し、注目点画素の差分の大きさにより原画
の像域を判断していた。
[Prior Art] A conventional adaptive binarization method uses nxm of an original image.
The image area of the original image was determined based on the size of the difference between the target pixel and the pixel average.

【0003】0003

【発明が解決しようとしている課題】しかしながら、従
来の方法ではノイズ的信号をもひろいやすく像域誤判定
の大きな原因にもなっていた。この結果2値画像の中に
白ぬけ、黒ポチと称する誤判定部分が生じ、画質劣化を
大きくしていた。
[Problems to be Solved by the Invention] However, in the conventional method, noise-like signals are easily collected, which is a major cause of erroneous image area determination. As a result, erroneous determination portions called white spots and black spots occur in the binary image, which greatly deteriorates the image quality.

【0004】そこで本発明は多値画像中の文字部を確実
に判定し、しかもノイズ的に生じた部分は強調されない
ような像域判別方法を用いた2値化方法を提供すること
を目的とする。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a binarization method using an image area discrimination method that reliably determines character portions in a multilevel image and does not emphasize noise-induced portions. do.

【0005】[0005]

【課題を解決するための手段及び作用】上記課題を解決
するため、本発明の2値化方法は、原画をNxMウイン
ドで区切り、NxMウインド内に用意された線画検出パ
ターンと、NxMウインドウ内の平均画像データを比較
し、原画の線画領域判別を行い、該判別結果を用いて線
画らしさに応じ2値化閾値を適応的に変化させることを
特徴とする。
[Means and effects for solving the problems] In order to solve the above problems, the binarization method of the present invention divides an original image into NxM windows, and uses a line drawing detection pattern prepared in the NxM window and a line drawing detection pattern prepared in the NxM window. The method is characterized in that the average image data is compared, the line drawing area of the original image is discriminated, and the binarization threshold value is adaptively changed according to the line drawing-likeness using the discrimination result.

【0006】[0006]

【実施例】以下に説明する本発明の実施例は上記課題を
解決するために、文字部は基本的にある連続性があるこ
とにより注目点を中心に連続量を計算させ、その連続量
の大きさにより文字、記号等細線部画像領域を判断する
方法をとる。ノイズ的に1ケ所のみ黒又は白の点が存在
しても連続量とマツチしたデータと比較した場合、細線
部らしさは減少する。これにより従来方法に比し連続し
た文字等の細線部を明確に判別出来るようになる。
[Embodiment] In order to solve the above problem, the embodiment of the present invention described below calculates the continuous amount centering on the point of interest since the character part basically has a certain continuity, and the continuous amount is A method is used to determine thin line image areas such as characters and symbols based on the size. Even if there is only one black or white point due to noise, the likelihood of a thin line portion decreases when compared with data that matches a continuous amount. This makes it possible to clearly distinguish thin line parts such as continuous characters compared to conventional methods.

【0007】図1は細線部検出用のウインドを示す。こ
こでは1例とし3x3のウインドを用い本発明の1実施
例を説明する。
FIG. 1 shows a window for detecting thin line portions. Here, one embodiment of the present invention will be described using a 3x3 window as an example.

【0008】図2は細線部検出用のパターンの1例を示
す。ここで注目点はa22の位置にあるとする。
FIG. 2 shows an example of a pattern for detecting thin line portions. Here, it is assumed that the point of interest is at position a22.

【0009】図3は原画とウインド、注目点の関係を示
すものである。302は原画を1画素ごとに区切った図
で、301は3x3のウインドである。303は注目画
素位置を示す。
FIG. 3 shows the relationship between the original image, the window, and the point of interest. 302 is a diagram in which the original image is divided into pixels, and 301 is a 3×3 window. 303 indicates the pixel position of interest.

【0010】図4は3x3のウインドを用い図2の線画
検出パターンを用いたときの像域判別回路を示す。
FIG. 4 shows an image area discrimination circuit when a 3×3 window is used and the line detection pattern of FIG. 2 is used.

【0011】401は光電変換素子で、例えばCCDの
様な素子である。402は増巾器で418はアナログ信
号をデジタル化するものである。従って418以降は例
えば8bitデータとなり出力される。403〜405
は各8bitの3ラインバツフアメモリを形成するもの
である。
Reference numeral 401 denotes a photoelectric conversion element, such as a CCD. 402 is an amplifier, and 418 is for digitizing the analog signal. Therefore, the data after 418 becomes, for example, 8-bit data and is output. 403-405
form a 3-line buffer memory of 8 bits each.

【0012】従って401からのデータはA1,A2,
A3・・・と出力され、403に、この順で入力し、更
には404,405に入ってゆく。401のCCDの素
子数と403〜405の素子数が異なるのは(2ケ異な
る)3x3で演算するためで、原画画素がA/D変換1
クロツク遅れて線画検出が得られる。406〜409は
加算器で、406は図2の(A)を計算する部分、40
7は(B)を408は(C)を409は(D)を計算す
る回路である。415は3x3ウインド内の画像データ
の和を求める回路で417は注目画素点が415の4入
力では4倍になっているため注目画素値の3倍データを
引くためのものである。
Therefore, the data from 401 are A1, A2,
A3 . The number of CCD elements in 401 and 403 to 405 are different because they are calculated in 3x3 (2 different), and the original pixel is A/D converted 1.
Line drawing detection is obtained with a clock delay. 406 to 409 are adders, 406 is a part that calculates (A) in FIG.
7 is a circuit that calculates (B), 408 (C), and 409 (D). 415 is a circuit for calculating the sum of image data within a 3x3 window, and 417 is a circuit for subtracting data three times the value of the pixel of interest since the number of pixel points of interest is four times as much with four inputs of 415.

【0013】419は3x3の9画素のデータ値を3ケ
のデータ値に換算させるためのものである。
Reference numeral 419 is for converting the data values of 9 pixels of 3×3 into 3 data values.

【0014】410〜413は各パターン成分とウイン
ド平均値との差を計算し、等価的に線画成分を計算した
結果が得られる。414は各(A)〜(D)の成分の絶
対値での最大値を得る回路で416が最終的線画量を出
力する。
410 to 413 calculate the difference between each pattern component and the window average value, and equivalently obtain the result of calculating the line drawing component. 414 is a circuit that obtains the maximum absolute value of each component (A) to (D), and 416 outputs the final line drawing amount.

【0015】以上の説明から判別するように孤立点的に
存在するノイズ信号に対しては3x3では、そのエネル
ギーは1/3に減少しノイズによる誤判定は軽減される
。ウインドサイズが5x5、7x7と大きくなるにつれ
、よりノイズの影響は受けにくくなる。
As can be seen from the above description, in the case of a noise signal existing as an isolated point, the energy thereof is reduced to 1/3 in the case of 3×3, and erroneous judgments due to noise are reduced. As the window size increases to 5x5 and 7x7, it becomes less susceptible to noise.

【0016】図5は前述の線画検出方法を用いて多値画
像を適応的に2値化する方法を示すものである。
FIG. 5 shows a method for adaptively binarizing a multivalued image using the line drawing detection method described above.

【0017】501は前述のCCD、502は増巾器、
503はアナログデータをデジタルデータに変換するA
/Dコンバータ、511は線画検出回路部で図4である
。図4の出力416は設定器S1,S2,S3により設
定されたデータと比較し、切換スイツチ504を制御す
る。511出力が最も線画らしいと判断したときには(
イ)の位置に、文字画像の中間のときは(ロ)の位置に
、画像領域らしいときには(ハ)の位置に切換える。
501 is the above-mentioned CCD, 502 is an amplifier,
503 is A that converts analog data to digital data
/D converter 511 is a line drawing detection circuit section shown in FIG. The output 416 in FIG. 4 is compared with the data set by the setters S1, S2, and S3 to control the changeover switch 504. When it is determined that the 511 output is most likely to be a line drawing (
When it is in the middle of the character image, it is switched to the position (b), and when it seems to be an image area, it is switched to the position (c).

【0018】505は単一閾値比較回路で、例えば入力
データが8bit0〜255の範囲データであれば12
8が単一閾値となる。
505 is a single threshold comparison circuit; for example, if the input data is data in the range of 8 bits 0 to 255, 12
8 is the single threshold.

【0019】508はいわゆる誤差拡散法を含む、濃度
保存型2値化法回路部で、図6に説明するような構成に
なる。507、509は閾値テーブルで、明らかな画像
部では閾値マトリツクスを大きくし、線画とも画像領域
とも判別しにくい領域では小さくする。これにより濃度
保存型2値化法のドツト配列をマトリツクサイズが大き
いときには周期構造に近くし小さいときには周期構造を
くずし、ランダム性を強くし、細線部再現をよくする。
Reference numeral 508 denotes a concentration-preserving binarization method circuit section that includes a so-called error diffusion method, and has a configuration as explained in FIG. Reference numerals 507 and 509 are threshold tables, in which the threshold matrix is increased in clear image areas, and decreased in areas where it is difficult to distinguish between line drawings and image areas. As a result, when the matrix size is large, the dot arrangement of the concentration-preserving binarization method approaches a periodic structure, and when the matrix size is small, the periodic structure is broken, thereby increasing randomness and improving the reproduction of fine line parts.

【0020】以上で2値化されたデータは2値プリンタ
510に出力し記録される。
The data thus binarized is output to a binary printer 510 and recorded.

【0021】尚、507、509での値は閾値でなく、
閾値順番を示すものである。
[0021] The values at 507 and 509 are not threshold values, but
This shows the order of threshold values.

【0022】図6は2値化回路で615は多値データ入
力部である。610は入力多値データと後で説明する誤
差拡散累積テーブルでxの印位置が注目画素データで6
10で加算する。加算されたデータは608で2値化さ
れる。閾値は616又は617のテーブルから引き出さ
れた値が成る。616、617はX軸、Y軸カウンタ、
604、603、605、606のカウンタで示される
セルの値がセレクトされる。603、604はスキヤナ
ーの主走査方向クロツク601によりカウントされ、6
05、606は副走査方向クロツク602によりカウン
トされる。607のスイツチは図4によりセレクトされ
るスイツチである。図6からわかるように閾値テーブル
の大きさは変わっても誤差拡散は保存されるため原画に
忠実な濃度再現が可能になる。612のテーブルはx印
が注目画素位置で一印はすでに2値化ずみの所を示す。 613は誤差の累積値を保存するラインメモリである。
FIG. 6 shows a binarization circuit, and 615 is a multi-value data input section. 610 is the input multivalued data and the error diffusion accumulation table which will be explained later, and the x mark position is the pixel data of interest and is 6.
Add by 10. The added data is binarized in 608. The threshold value consists of a value drawn from the 616 or 617 table. 616 and 617 are X-axis and Y-axis counters,
The values of the cells indicated by the counters 604, 603, 605, and 606 are selected. 603 and 604 are counted by the scanner's main scanning direction clock 601;
05 and 606 are counted by the sub-scanning direction clock 602. The switch 607 is the switch selected according to FIG. As can be seen from FIG. 6, even if the size of the threshold table changes, error diffusion is preserved, making it possible to reproduce density faithful to the original image. In the table 612, an x mark indicates the pixel position of interest, and a single mark indicates a position that has already been binarized. 613 is a line memory that stores the cumulative value of errors.

【0023】(他の実施例)上述の実施例では3x3パ
ターンでの線画検出方法、単一固定閾値、3x3マトリ
ツクス閾値、5x5マトリツクス閾値を基本に説明した
が線画検出はNXM画素で任意のパターンを用いて検出
してもよく、閾値マトリツクスもPxQの閾値マトリツ
クスで構成されててもよいことは本発明の範囲である。
(Other Embodiments) In the above embodiments, the line drawing detection method using a 3x3 pattern, a single fixed threshold, a 3 x 3 matrix threshold, and a 5 x 5 matrix threshold were basically explained, but line drawing detection can be performed using any pattern using NXM pixels. It is within the scope of the present invention that the threshold value matrix may also be composed of a PxQ threshold value matrix.

【0024】また線画検出パターンは図2のバツクが白
で線が黒についてのべたが逆転しても同様のパターンを
用意することで対処出来ることは明らかである。
It is clear that even if the line drawing detection pattern in FIG. 2 is reversed, with the background being white and the line being solid, it can be handled by preparing a similar pattern.

【0025】以上のように本発明の上記実施例によれば
以下の様な効果が生ずる。
As described above, according to the above embodiment of the present invention, the following effects are produced.

【0026】(1)  文字等の線画部分が安定に検出
され、単一閾値で良好な線画再現が可能になる。
(1) Line drawings such as characters can be detected stably, and good line drawings can be reproduced with a single threshold value.

【0027】(2)  ノイズによる線画誤判定が極め
て少なくなり画質劣化がなくなる。 (3)  線画に近い画像領域、即ち高周波成分のある
画像領域は小さな閾値マトリツクスサイズで2値化する
ため2値化されたデータ配列がランダム性をおび、高分
解能記録に適する。
(2) Misjudgment of line drawings due to noise is extremely reduced, and image quality deterioration is eliminated. (3) Image areas close to line drawings, that is, image areas with high frequency components, are binarized with a small threshold matrix size, so the binarized data array has randomness, making it suitable for high-resolution recording.

【0028】(4)  画像部と検出されたところは大
きな閾値マトリツクスで2値化されるため、2値化され
たデータ配列が周期性をおび、高階調記録になる(ベイ
ヤー形配列でなく渦巻配列のためドツトのオーバーラツ
プが一様になるため)。
(4) Since the areas detected as image areas are binarized using a large threshold matrix, the binarized data array becomes periodic and becomes a high-gradation recording (not a Bayer array but a spiral array). Because of the arrangement, the overlap of the dots is uniform).

【0029】(5)  以上の結果、線画又は線画に近
い部分では2値化データは比較的ランダムに配列される
が、写真調の画像部では周期構造配列のため、この方法
で2値化されたデータは組織的デイザ法と同様、誤差拡
散法に比し圧縮効果がよい。しかも画質は線画部分が適
応処理されるため組織的デイザ法より画質がよくなる。
(5) As a result of the above, the binarized data is arranged relatively randomly in line drawings or parts close to line drawings, but in photographic image parts, because they are arranged in a periodic structure, they cannot be binarized using this method. Similar to the systematic dither method, this method has a better compression effect than the error diffusion method. Moreover, the image quality is better than that of the organized dither method because the line drawing portion is adaptively processed.

【0030】[0030]

【発明の効果】以上説明したように本発明によれば、多
値画像中の文字部を確実に判定し、しかもノイズ的に生
じた部分は強調されないような像域判別方法を用いた2
値化方法を提供することができる。
[Effects of the Invention] As explained above, according to the present invention, an image area discrimination method is used that reliably determines character parts in a multivalued image and does not emphasize noise-like parts.
A value conversion method can be provided.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】細線部検出用のウインドウ[Figure 1] Window for detecting thin line parts

【図2】細線部検出用のパターン[Figure 2] Pattern for detecting thin line parts

【図3】原画とウインドウ、注目点との関係を示す図[Figure 3] Diagram showing the relationship between the original picture, window, and points of interest


図4】像域判別回路
[
Figure 4: Image area discrimination circuit

【図5】本発明の2値化方法を示す図[Figure 5] Diagram showing the binarization method of the present invention

【図6】本発明の2値化回路図[Figure 6] Binarization circuit diagram of the present invention

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

401  光電変換素子 402  増巾器 401 Photoelectric conversion element 402 Multiplier

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  原画をNxMウインドで区切り、Nx
Mウインド内に用意された線画検出パターンと、NxM
ウインド内の平均画像データを比較し、原画の線画領域
判別を行い、該判別結果を用いて線画らしさに応じて2
値化閾値を適応的に変化させることを特徴とする2値化
方法。
[Claim 1] Divide the original picture into NxM windows,
Line drawing detection pattern prepared in M window and NxM
The average image data within the window is compared, the line drawing area of the original image is determined, and the discrimination result is used to determine the line drawing area of the original image.
A binarization method characterized by adaptively changing a digitization threshold.
JP2404300A 1990-12-20 1990-12-20 Binarization method Pending JPH04220080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2404300A JPH04220080A (en) 1990-12-20 1990-12-20 Binarization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2404300A JPH04220080A (en) 1990-12-20 1990-12-20 Binarization method

Publications (1)

Publication Number Publication Date
JPH04220080A true JPH04220080A (en) 1992-08-11

Family

ID=18513979

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2404300A Pending JPH04220080A (en) 1990-12-20 1990-12-20 Binarization method

Country Status (1)

Country Link
JP (1) JPH04220080A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8223392B2 (en) 2002-03-07 2012-07-17 Brother Kogyo Kabushiki Kaisha Image processing device and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8223392B2 (en) 2002-03-07 2012-07-17 Brother Kogyo Kabushiki Kaisha Image processing device and image processing method

Similar Documents

Publication Publication Date Title
US4905294A (en) Image processing apparatus
US4821334A (en) Image processing apparatus
JP3014252B2 (en) Image processing method and image processing apparatus
JP3313447B2 (en) Image processing device
US5315405A (en) Binary circuit of scanner read image data
US5301039A (en) Image processing apparatus with pixel tone discrimination
JP2616386B2 (en) Image processing device
JP3118469B2 (en) Image area separation device
JPH04220080A (en) Binarization method
US5200839A (en) Image processing apparatus
JP3466655B2 (en) Image processing device
JP3340086B2 (en) Image processing method and image processing apparatus
JP2521744B2 (en) Image processing device
JPH05284358A (en) Image processing device
JP3036244B2 (en) Image signal processing device
JP2910926B2 (en) Optimal binarization method
JP3136671B2 (en) Image reading device
JPH03172843A (en) Image binarization method and image input device and image processing device using the same
JPH01173973A (en) Gradation correcting device
JPH03274863A (en) Image processing method
JPH01218166A (en) optical image reading device
JPH06303424A (en) Dot area discrimination device
JPH0561677B2 (en)
JPS62107572A (en) Image processing device
JPH06245065A (en) Picture reader