[go: up one dir, main page]

JPH03274863A - Image processing method - Google Patents

Image processing method

Info

Publication number
JPH03274863A
JPH03274863A JP2074756A JP7475690A JPH03274863A JP H03274863 A JPH03274863 A JP H03274863A JP 2074756 A JP2074756 A JP 2074756A JP 7475690 A JP7475690 A JP 7475690A JP H03274863 A JPH03274863 A JP H03274863A
Authority
JP
Japan
Prior art keywords
value
image
window
data
line drawing
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
JP2074756A
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 JP2074756A priority Critical patent/JPH03274863A/en
Publication of JPH03274863A publication Critical patent/JPH03274863A/en
Priority to US08/384,220 priority patent/US6222950B1/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To make an image into m-ary value satisfactorily without being affected by a noise by performing conversion from an n-ary value to the m-ary value based on the comparison result of a line drawing detecting pattern with an image data value in the prescribed window of an original image. CONSTITUTION:The energy of a noise signal that exists in isolated point fashion is reduced to 1/3 in a window of 3X3, and erroneous decision can be reduced. It means that the influence of the noise can be hard to be received as increasing the size of the window to 5X5 and 7X7. A K1 multiplication circuit 402 outputs a value in which the mean value of the window of 3X3 is multiplied by K as multivalue data. A K1 multiplication circuit 418 outputs a value in which the data of a remarked point itself is multiplied by K. A switch 420 is switched by control data from a line drawing detecting part(maximum value circuit 414). The output of the K1 multiplication circuit 418 is selected when the image seems to be the line drawing, and that of the K1 multiplication circuit 402 is outputted when it seems to be an image part.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、n値画像をm値画像(n < m )に変換
する方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a method for converting an n-value image into an m-value image (n<m).

[従来の技術] 従来より、原画の文字部分と画像部分とを判別し、各々
に適した処理を施す適応形多値化方法が知られている。
[Prior Art] Conventionally, an adaptive multi-value quantization method has been known in which a character portion and an image portion of an original image are distinguished and processing suitable for each is performed.

ところで、従来の適応形多値化方法は、組織的デイザ法
で行われていた。これは組織的デイザ法では閾値マトリ
ックス配列が予め分かっているため、2値画像とパター
ンマツチングすることにより、W2値画像の閾値マトリ
ックスサイズが推定できるためである。
By the way, the conventional adaptive multilevel quantization method has been carried out using a systematic dither method. This is because in the systematic dither method, since the threshold matrix arrangement is known in advance, the threshold matrix size of the W binary image can be estimated by pattern matching with the binary image.

[発明が解決しようとする課題] このため、誤差拡散等の濃度保存形2値化法では、閾値
マトリックスサイズが定まらずパターンマツチングでは
推定できず、従って、温度保存法で2値化された画像デ
ータは良好に多値復元できないという欠点があった 本発明は、2値画像中の文字部、特に細線文字部を確実
に判定し、しかも、ノイズ的に生じた部分は強調されな
いようにできるn値画像データのm値化方法を提供する
ことを目的とする。
[Problem to be solved by the invention] For this reason, in concentration-preserving binarization methods such as error diffusion, the threshold matrix size is not determined and cannot be estimated by pattern matching. The present invention, which had the drawback that image data cannot be properly restored with multiple values, can reliably determine character parts, especially thin line character parts, in a binary image, and can also prevent noise-induced parts from being emphasized. An object of the present invention is to provide a method for converting n-value image data into m-value data.

[課題を解決する手段J 本発明は、n値画像データをm値画像データ(n < 
m )に変換するに際し、原画を所定ウィンドで区切り
、用意された線画検出パターンと、所定ウィンド内の画
像データ値との比較結果に基いて、前記変換を制御する
ことを特徴とする。
[Means for Solving the Problems J] The present invention converts n-value image data into m-value image data (n <
m), the original image is divided into predetermined windows, and the conversion is controlled based on a comparison result between a prepared line drawing detection pattern and image data values within the predetermined windows.

[作用] 本発明では、線画検出パターンと原画の所定ウィンド内
の画像データ値との比較結果に基いてn値からm値への
変換を行なうことから、ノイズに影響されることなく、
良好に画像をm値化することができる。
[Operation] In the present invention, since the n value is converted to the m value based on the comparison result between the line drawing detection pattern and the image data value within a predetermined window of the original image, the conversion is performed without being affected by noise.
It is possible to convert images into m-values satisfactorily.

[実施例] 第1図は、本発明の一実施例による像域判別回路を示す
回路図である。
[Embodiment] FIG. 1 is a circuit diagram showing an image area discrimination circuit according to an embodiment of the present invention.

この実施例は、第2図に示すように、1例として3×3
の細線部検出用ウィンドを用いたものである。
In this embodiment, as shown in FIG.
This uses a thin line detection window.

また、第3図は、細線部検出用のパターンの1例を示す
、ここで注目点はA22の位置にあるとする。さらに、
第4図は、原画とウィンド、注目点の関係を示している
0図中破線は、原画302を1画素ごとに区切ったもの
であり、この原画302内に、3×3のウィンド301
が設定される。
Further, FIG. 3 shows an example of a pattern for detecting a thin line portion, and here it is assumed that the point of interest is at the position A22. moreover,
In Fig. 4, the broken lines in Fig. 0 show the relationship between the original picture, the window, and the point of interest.
is set.

そして、3X3のウィンド301の中央に注目画素30
3が位置することになる。
Then, a pixel of interest 30 is placed in the center of the 3×3 window 301.
3 will be located.

次に、第1図に基いて像域判別回路の各要素を説明する
Next, each element of the image area discrimination circuit will be explained based on FIG.

画像メモリ401は、例えばハードディスク装置等から
なり画像データを格納するものである。
The image memory 401 is made up of, for example, a hard disk device and stores image data.

シフトレジスタ403〜405は、3ラインバツフアメ
モリを形成するものである。従って、画像メモリ401
からのデータは、AI 、 A2A3・・・・・・と出
力され、この順でラインバッファメモリ403に入力さ
れ、さらにはラインバッファメモリ404,405に順
次入力されて行く。
Shift registers 403-405 form a 3-line buffer memory. Therefore, image memory 401
The data is outputted as AI, A2A3, .

加算器406は、第3図(A)に示すパターンを計算す
るものであり、加算器407は(B)のパターンを、加
算器408は(C)のパターンを、加算器409は(D
)のパターンを計算する回路である。
Adder 406 calculates the pattern shown in FIG. 3(A), adder 407 calculates pattern (B), adder 408 calculates pattern (C), and adder 409 calculates pattern (D).
) is a circuit that calculates the pattern of

合計回路415は、加算器406〜409の加算結果を
入力し、3×3ウインド内の画像データの和を求める回
路であり、3倍回路417は、4つの加算結果を入力す
る合計回路415では、入力データのうち注目画素デー
タが4倍になっているので、ここから注目画素の3倍デ
ータを引くための3倍データを得る回路である。
The summation circuit 415 is a circuit that inputs the addition results of the adders 406 to 409 and calculates the sum of image data within a 3×3 window. Since the pixel data of interest in the input data is four times as large, this is a circuit for obtaining triple data to subtract triple data of the pixel of interest from this.

173回路419は、3×3の9画素データを3画素分
のデータ値に換算するものである。
The 173 circuit 419 converts 3×3 9 pixel data into data values for 3 pixels.

減算回路410〜413は、各パターン成分とウィンド
平均値との差を計算し、等価的に線画成分を計算した結
果を得るものである。
The subtraction circuits 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.

最大値8回路414は、各(A)〜(D)の成分の絶対
値での最大値を得る回路であり、最終的線画量を出力す
る。
The maximum value 8 circuit 414 is a circuit that obtains the maximum absolute value of each component (A) to (D), and outputs the final line drawing amount.

以上の構成において、孤立点的に存在するノイズ、信号
に対しては、3×3のウィンドでは、そのエネルギーは
1/3に減少し、ノイズによる誤判定は軽減されること
になる。これはウィンドサイズが5×5.7×7と大き
くなるに伴って、よりノイズの影響は受けにくくなる。
In the above configuration, the energy of noise and signals that exist as isolated points is reduced to ⅓ in a 3×3 window, and erroneous determinations due to noise are reduced. As the window size increases to 5×5.7×7, it becomes less susceptible to noise.

K1倍回路402は、3X3ウインドの平均値をに倍し
た値を多値データとして出力する。
The K1 multiplier circuit 402 outputs a value obtained by multiplying the average value of the 3×3 window by , as multi-value data.

K1倍回路418は、注目点のデータそのものをに倍し
°た値を出力する。
The K1 multiplier circuit 418 outputs a value obtained by multiplying the data itself at the point of interest by .

スイッチ420は、線画検出部(最大値回路414)か
らの制御データにより切換えられる。
The switch 420 is switched by control data from the line drawing detection section (maximum value circuit 414).

線画らしければに1倍回路418の出力を、画像部らし
ければに1倍回路402の出力を選択する。
If it is a line drawing, the output of the 1x circuit 418 is selected, and if it is an image part, the output of the 1x circuit 402 is selected.

なお、上記実施例では、3×3パターンでの線画検出方
法を基本に説明したが、線画検出はNXM画素で任意の
パターンを用いて検出してもよく、多値化マトリックス
サイズもPXQマトリックスサイズで構成してもよい。
In addition, in the above embodiment, the line drawing detection method was basically explained using a 3×3 pattern, but the line drawing detection may be performed using any pattern using NXM pixels, and the multilevel matrix size can also be changed to the PXQ matrix size. It may be composed of

また、線画検出パターンは、第2図に示すように、バッ
クが白の場合について述べたが、逆転しても同様のパタ
ーンを用意することで対処できる。さらに、多値化マト
リックスサイズにウェイトをつけて多値化してもよい。
Further, although the line drawing detection pattern has been described for the case where the background is white as shown in FIG. 2, even if the background is reversed, it can be handled by preparing a similar pattern. Furthermore, multi-level conversion may be performed by adding weights to the multi-level matrix size.

なお、本実施例において、406〜409をアンド回路
で構成し、かつ410〜414をオアゲートで構成すれ
ば、パターンマツチングにより線画らしさを判別するこ
とができる。また、かかる判別に用いるマトリクスを大
きくすることによってより判別の精度を上げることがで
きる。
In this embodiment, if 406 to 409 are constituted by AND circuits and 410 to 414 are constituted by OR gates, it is possible to determine whether it is a line drawing by pattern matching. Furthermore, by increasing the size of the matrix used for such discrimination, the accuracy of discrimination can be further improved.

以上説明したように、本実施例によれば2文字等の線画
部分が安定に検出され、原画2値画像に沿って良好な線
画再現が可能になる効果がある。
As explained above, according to this embodiment, line drawing parts such as two characters can be detected stably, and there is an effect that good line drawing parts can be reproduced along the original binary image.

また、ノイズによる線画誤判定が極めて少なくなり画質
劣化がなくなる。
In addition, line image misjudgments due to noise are extremely reduced, and image quality deterioration is eliminated.

さらに、線画に近い画像領域、即ち高周波酸分のある画
像領域は小さな多値マトリックスサイズで多値化すれば
、高分解能記録に適合でき、逆に画像部と検出されたと
ころは、大きな多値マトリックスで多値化すれば、多値
化されたデータは高階調記録になる。
Furthermore, image areas close to line drawings, that is, image areas with high-frequency acid content, can be multivalued with a small multivalue matrix size, making them suitable for high-resolution recording; conversely, areas detected as image areas have large multivalue If the data is multivalued using a matrix, the multivalued data will be recorded with high gradations.

[発明の効果] 以上説明したように、本発明によれば、ノイズに影響さ
れずに良好に画像データのn値→m値変換が行なえる。
[Effects of the Invention] As described above, according to the present invention, image data can be successfully converted from n value to m value without being affected by noise.

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

第1図は、本発明の一実施例による像域判別回路を示す
回路図である。 第2図は、同実施例における細線部検出用のウィンドを
示す模式図である。 第3図は、同実施例における細線部検出用のパターンの
1例を示す模式図である。 第4図は、同実施例における原画とウィンド、注目点の
関係を示す模式図である。 401・・・画像メモリ、 402.418・・・K1倍回路、 403〜405・・・3ラインバツフアメモリ、406
〜409・・・加算器、 414・・・最大値回路、 415・・・合計回路415゜ 417・・・3倍回路、 419・・・1/3回路、 420・・・スイッチ。 第1図
FIG. 1 is a circuit diagram showing an image area discrimination circuit according to an embodiment of the present invention. FIG. 2 is a schematic diagram showing a window for detecting a thin line portion in the same embodiment. FIG. 3 is a schematic diagram showing an example of a pattern for detecting a thin line portion in the same embodiment. FIG. 4 is a schematic diagram showing the relationship between the original picture, the window, and the point of interest in the same embodiment. 401... Image memory, 402.418... K1 times circuit, 403-405... 3 line buffer memory, 406
~409... Adder, 414... Maximum value circuit, 415... Total circuit 415°, 417... Triple circuit, 419... 1/3 circuit, 420... Switch. Figure 1

Claims (2)

【特許請求の範囲】[Claims] (1)n値画像データをm値画像データ(n<m)に変
換するに際し、原画を所定ウインドで区切り、用意され
た線画検出パターンと、所定ウインド内の画像データ値
との比較結果に基いて、前記変換を制御することを特徴
とする画像処理方法。
(1) When converting n-value image data to m-value image data (n<m), the original image is divided into predetermined windows, and based on the comparison result between the prepared line drawing detection pattern and the image data values within the predetermined window. An image processing method, comprising: controlling the conversion.
(2)請求項(1)において、 上記比較結果に基く線画らしさに応じて多値化ウィンド
サイズを可変し多値化することを特徴とする画像処理方
法。
(2) The image processing method according to claim (1), characterized in that multi-value conversion is performed by varying a multi-value conversion window size in accordance with the likeness of a line drawing based on the comparison result.
JP2074756A 1990-03-23 1990-03-23 Image processing method Pending JPH03274863A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2074756A JPH03274863A (en) 1990-03-23 1990-03-23 Image processing method
US08/384,220 US6222950B1 (en) 1990-03-23 1995-02-06 Image processing with conversion from N-value to M-value data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2074756A JPH03274863A (en) 1990-03-23 1990-03-23 Image processing method

Publications (1)

Publication Number Publication Date
JPH03274863A true JPH03274863A (en) 1991-12-05

Family

ID=13556436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2074756A Pending JPH03274863A (en) 1990-03-23 1990-03-23 Image processing method

Country Status (1)

Country Link
JP (1) JPH03274863A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4993117A (en) * 1989-02-03 1991-02-19 Hergeth Hollingsworth Gmbh Opening device with metal detector and stop-off
US5105508A (en) * 1989-04-26 1992-04-21 Maschinenfabrik Rieter Ag Method and apparatus for the opening of fiber flocks from fiber bales
US5170534A (en) * 1989-12-19 1992-12-15 Trutzchler Gmbh & Co. Kg Apparatus for cleaning the surface of textile fiber bales

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4993117A (en) * 1989-02-03 1991-02-19 Hergeth Hollingsworth Gmbh Opening device with metal detector and stop-off
US5105508A (en) * 1989-04-26 1992-04-21 Maschinenfabrik Rieter Ag Method and apparatus for the opening of fiber flocks from fiber bales
US5170534A (en) * 1989-12-19 1992-12-15 Trutzchler Gmbh & Co. Kg Apparatus for cleaning the surface of textile fiber bales

Similar Documents

Publication Publication Date Title
JPH0614194A (en) Image processor
US5956432A (en) Image processing apparatus and method
JP3031994B2 (en) Image processing device
JPH03274863A (en) Image processing method
US7843608B2 (en) Image processing apparatus capable of preventing pseudo coutour
JPH0981754A (en) Movement detecting circuit
Marcel et al. An efficient algorithm for removal of impulse noise using Adaptive Fuzzy Switching Weighted Median Filter
JP4122665B2 (en) Image processing device
JPH0698157A (en) Halftone image forming device
US6842267B1 (en) Image processing method
JP3256267B2 (en) Image processing device
JP3039654B2 (en) Image reduction apparatus and method
JP3051144B2 (en) Halftone image processing device
JP2716618B2 (en) Image coding method
JP2702593B2 (en) Isolated point removal device
Arivarasi et al. A simple fuzzy method to remove mixed Gaussian-impulsive noise from colour images
JPH04120975A (en) Picture processor
JPH01170270A (en) Picture processor
JPS59163960A (en) Picture processing method
JPH04220080A (en) Binarizing method
JPH05227432A (en) Picture processor
JPS62165477A (en) Image processor
JPH0671308B2 (en) Image signal processing method
JPS62237589A (en) Binarization device
JPH09102869A (en) Image processor