JP3024975B2 - Reduction conversion method - Google Patents

Reduction conversion method

Info

Publication number
JP3024975B2
JP3024975B2 JP1-119539A JP11953989A JP3024975B2 JP 3024975 B2 JP3024975 B2 JP 3024975B2 JP 11953989 A JP11953989 A JP 11953989A JP 3024975 B2 JP3024975 B2 JP 3024975B2
Authority
JP
Japan
Prior art keywords
pixel
pixels
conversion
thin line
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.)
Expired - Lifetime
Application number
JP1-119539A
Other languages
Japanese (ja)
Other versions
JPH02290369A (en
Inventor
佳織 若林
文夫 安達
忠嗣 市川
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP1-119539A priority Critical patent/JP3024975B2/en
Priority to US07/482,660 priority patent/US5054099A/en
Priority to CA002010637A priority patent/CA2010637C/en
Priority to EP90400498A priority patent/EP0401058B1/en
Priority to DE69029429T priority patent/DE69029429T2/en
Priority to KR1019900002313A priority patent/KR940001049B1/en
Publication of JPH02290369A publication Critical patent/JPH02290369A/en
Application granted granted Critical
Publication of JP3024975B2 publication Critical patent/JP3024975B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (発明の属する技術分野) 本発明は、白黒2値で表現された画像に対する画品質
劣化の少ない縮小変換方法に関するものである。特に、
ファクシミリなどの画像読み取り装置から画像を読み取
った場合に生じる凸凹な細線に対しても、切れが発生し
ないように細線の消失を防止した縮小変換方法である。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reduction conversion method for an image expressed in black and white binary with little image quality deterioration. In particular,
This is a reduction conversion method that prevents the disappearance of a fine line so as not to generate a cut even for an irregular fine line generated when an image is read from an image reading device such as a facsimile.

(従来の技術) 従来の2値画像の縮小変換法として、SPC法(Selecti
ve Processing Conversion:画像電子学会第7回全国大
会予稿集、予稿No.10、昭和50年5月19日)や領域判定
法(信学技報PRL81−92、昭和57年2月19日)などが発
表されている。
(Prior Art) As a conventional binary image reduction conversion method, an SPC method (Selecti
ve Processing Conversion: Proceedings of the 7th Annual Conference of the Institute of Image Electronics Engineers of Japan, Proceedings No. 10, May 19, 1975, and area determination methods (IEICE Technical Report PRL81-92, February 19, 1982) Has been announced.

SPC法は変換画像を原画像に写像したとき、求める変
換画像の画素(変換画素)に最も近い位置の原画像の画
素(原画素)の値((註)画素または細線を構成する画
素が例えば白、黒の2値で表される場合の白または黒を
表す値−−本明細書においては同様に「値」という)を
代入する方法である。また、領域判定法では、変換画素
に最近傍の4個の原画素を選択し、それら4個の原画素
が変換画素位置に投影する平均濃度を算出し、閾値処理
をして変換画素の値とする方法である。
In the SPC method, when the converted image is mapped to the original image, the value of the pixel (original pixel) of the original image (original pixel) closest to the pixel (or converted pixel) of the converted image to be obtained is, for example, This is a method of substituting a value representing white or black in the case of being represented by two values of white and black --- similarly referred to as "value" in the present specification. In the area determination method, the four original pixels closest to the converted pixel are selected, the average density of the four original pixels projected onto the converted pixel position is calculated, threshold processing is performed, and the value of the converted pixel is calculated. It is a method.

しかし、これらの変換法では、原画上に黒あるいは白
の細線がある場合、その細線が変換画素位置に最も近い
原画素でないときや、また、4個の原画素の投影する平
均濃度を閾値処理した結果、その細線の位置に最も近い
変換画素の値がその細線の値と一致しないときには、変
換画面上で該当する細線が消失してしまうことがある。
However, in these conversion methods, if there is a black or white thin line on the original image, the thin line is not the original pixel closest to the converted pixel position, or the average density projected by the four original pixels is thresholded. As a result, when the value of the conversion pixel closest to the position of the thin line does not match the value of the thin line, the corresponding thin line may disappear on the conversion screen.

細線が消失する例を第14図に示す。第14図は白黒2値
画像の縮小変換における原画素と変換画素の対応関係
を、水平方向の変換比率αがα=1/4の場合について示
している。ここで、Pi-4〜Pi+3は原画素を、Qj-1〜Qj+1
は変換画素を示している。○は白い値の原画素であり、
●は黒い値の原画素である。また、原画素間の距離を1
としており、変換画素間の距離は1/αで表される。
FIG. 14 shows an example in which the thin line disappears. FIG. 14 shows a correspondence relationship between original pixels and converted pixels in the black-and-white binary image reduction conversion when the conversion ratio α in the horizontal direction is α = 1/4. Here, P i−4 to P i + 3 represent the original pixels, and Q j−1 to Q j + 1
Indicates a converted pixel. ○ is the original pixel of white value,
● is the original pixel of the black value. The distance between the original pixels is set to 1
And the distance between the conversion pixels is represented by 1 / α.

SPC法や領域判定法では、第14図の例において、Qj-1
にはPi-4、QjにはPi、Qj+1にはPi+3の値がそれぞれ代入
され、その結果、Qj-1とQjとQj+1とがすべて白値とな
り、黒い細線の値を保存する変換画素がないために第14
図(a)と第14図(b)の両方の場合において細線の消
失が発生してしまう。すなわち、第14図(a)ではQj
左側に位置する線幅3画素の細線が消失し、第14図
(b)ではQjの右側に位置する線幅2画素の細線が消失
する。このように、これらの変換法では黒の細線が消失
するための切れ、かすれが発生し、また、白の細線が消
失するためのつぶれが発生し、画品質が良くない欠点が
あった。
The SPC method or area determination method, in the example of Figure 14, Q j-1
Is assigned the value of P i-4 , Q j is assigned the value of P i , and Q j + 1 is assigned the value of P i + 3 , so that Q j−1 , Q j and Q j + 1 are all white. Value, and there is no converted pixel to save the value of the black thin line.
In both cases (a) and (b) of FIG. 14, the disappearance of the thin line occurs. That is, in FIG. 14A, a thin line having a line width of 3 pixels located on the left side of Q j disappears, and in FIG. 14B, a thin line having a line width of 2 pixels located on the right side of Q j disappears. As described above, these conversion methods have a disadvantage that the image quality is not good because the black fine line disappears and the blur is generated, and the white fine line disappears.

また、黒の細線が消失することを防止するために複数
の原画素の論理和の演算を行い、その演算結果を変換画
素に代入する方法(論理和法)も考えられている(ファ
クシミリ線密度変換の一検討、画電学会誌、Vo17、197
8)。しかし、この論理和法では、原画上に白い細線が
ある場合にその白い細線が変換画上では消失してしまう
ことがあり、つぶれが発生して画品質劣化が生じる欠点
があった。
In addition, in order to prevent the black thin line from disappearing, a method of calculating a logical sum of a plurality of original pixels and assigning the calculation result to a converted pixel (logical sum method) has been considered (facsimile line density). Examination of conversion, IEEJ Journal, Vo17, 197
8). However, in the logical sum method, when a white thin line is present on the original image, the white thin line may disappear on the converted image, and there is a disadvantage that the image quality is deteriorated due to collapse.

また、原画上に線幅1画素の黒い細線がある場合、そ
の細線を挟む形で位置する2つの変換画素の値がともに
黒となることが発生し、その結果、変換画上のその細線
の方が縮小変換を行っているにもかかわらず太くなり、
画品質劣化が生じる欠点があった。
Also, when there is a black thin line having a line width of 1 pixel on the original image, the values of the two converted pixels positioned so as to sandwich the thin line may both be black, and as a result, the value of the thin line on the converted image It is thicker even though it is performing reduction conversion,
There is a drawback that image quality deteriorates.

また、前述の変換法の欠点を解決するために、細線を
判定し、細線がある場合には細線の値を変換画素へ代入
して細線の線幅の消失を防ぐTP法(Thin Line Preserva
tion Method:細線消失防止縮小変換法、信学技範ED84−
26、昭和59年6月22日)が提案されている。しかし、TP
法では細線の線幅として1画素のみを対象としているた
め、変換比率が小さくなると細線の消失が生じる。第14
図(a)および(b)の場合、TP法においても細線の値
(図中では●)を保存する変換画素がないために細線の
消失が発生する。このように、TP法では線幅2画素以上
の細線が消失してしまい、画品質劣化が生じる欠点があ
った。
In addition, in order to solve the drawbacks of the above-described conversion method, a thin line is determined, and if there is a thin line, the value of the thin line is substituted into a conversion pixel to prevent the line width of the thin line from disappearing (Thin Line Preserva- tion).
tion Method: Fine line loss prevention reduction conversion method, IEICE ED84-
26, June 22, 1984). But TP
Since the method targets only one pixel as the line width of the thin line, the thin line disappears when the conversion ratio decreases. 14th
In the cases of FIGS. 9A and 9B, even in the TP method, the thin line disappears because there is no converted pixel for storing the value of the thin line (in the figure, ●). As described above, in the TP method, a thin line having a line width of 2 pixels or more disappears, and there is a disadvantage that image quality is deteriorated.

さらに、前述の変換法の欠点を解決するために、線幅
1画素以上の細線を判定し、細線がある場合には細線の
値を変換画素へ代入して細線の線幅の消失を防ぐ縮小変
換方法(特願昭62−236087号、昭和62年9月22日、以下
X法と呼ぶことにいる)が提案されている。
Furthermore, in order to solve the drawbacks of the above-mentioned conversion method, a thin line having a line width of 1 pixel or more is determined, and if there is a thin line, the value of the thin line is substituted for the converted pixel to prevent the line width of the thin line from disappearing. A conversion method (Japanese Patent Application No. 62-236087, hereinafter referred to as the X method on September 22, 1987) has been proposed.

X法では第15図に示した参照画素を用いて細線の判定
を行っている。すなわち、細線の判定条件として、着目
変換画素に最短距離の原画素を中心に水平方向、垂直方
向とともに1列2(n+1)=8個の原画素を参照して
いる。しかし、X法の参照画素を用いたとき細線に凸凹
がある場合に細線の消失が生じることがある。その例を
第16図に示す。
In the X method, the thin line is determined using the reference pixels shown in FIG. That is, as the thin line determination condition, two (n + 1) = 8 original pixels in one column are referred to in the horizontal and vertical directions centering on the original pixel at the shortest distance to the conversion pixel of interest. However, when a fine line has irregularities when using a reference pixel of the X method, the fine line may disappear. An example is shown in FIG.

第16図は、P−4,1からP1,1まで水平方向に線幅1画
素の細線が存在し、かつP−3,0,P0,0,とに凸が2個あ
る場合を示している。第16図においてX法ではP−3,0,
P−2,0,P−1,0,P0.0の値から、P−2,0とP−1,0の線幅
2画素の垂直方向の白い細線が存在すると判定し、着目
変換画素に白値が代入され、P−4,1からP1,1までの水
平方向の線幅1画素の細線が消失してしまう。このよう
に、細線に凸凹が存在する場合には、細線の保存が行わ
れないことがあり、画品質劣化が生じる欠点があった。
FIG. 16 shows a case where a thin line having a line width of 1 pixel exists in the horizontal direction from P −4,1 to P 1,1 and there are two protrusions at P −3,0 , P 0,0 . Is shown. In FIG. 16, in the X method, P −3,0 ,
P -2,0, P -1, 0, the value of P 0.0, determines that the vertical white thin line having a line width of 2 pixels P -2,0 and P -1, 0 present, to the target converted pixel A white value is substituted, and a thin line with a horizontal line width of one pixel from P −4,1 to P 1,1 disappears. As described above, when the fine lines have irregularities, the fine lines may not be preserved, and there is a disadvantage that the image quality is deteriorated.

(発明の目的) 本発明は、前述の縮小変換法の欠点を解決するため、
変換比率αが1/n>α≧1/(n+1)の場合に消失の可
能性がある線幅n画素以下の細線のすべてを判定できる
ように参照画素を変換比率に応じて選び出し、その参照
画素を用いて細線を判定し、それらの細線を消失しない
ように変換画面上に保存して画品質劣化を防ぐととも
に、ファクシミリなどの画像読み取り装置から画像を読
みみ取った場合に生じる凸凹な細線に対しても、切れが
発生しないように細線の消失を防止できる縮小変換法を
提供することにある。
(Object of the Invention) The present invention solves the above-mentioned drawbacks of the reduction conversion method.
When the conversion ratio α is 1 / n> α ≧ 1 / (n + 1), a reference pixel is selected according to the conversion ratio so that all thin lines having a line width of n pixels or less that can be lost can be determined. Judge thin lines using pixels, save them on the conversion screen so that they do not disappear, prevent image quality degradation, and create uneven lines that occur when images are read from image reading devices such as facsimile. Another object of the present invention is to provide a reduction conversion method capable of preventing the disappearance of a thin line so as not to cause disconnection.

(発明の構成) 本発明は、水平方向および垂直方向の変換比率α
αが 1/nx>α≧1/(nx+1)、 1/ny>α≧1/(ny+1)、 ただし、nx、nyは自然数 の場合、変換画素を中心として、 水平方向2(nx+1)個×垂直方向2(ny+1)個か
らなる合計4(nx+1)×(ny+1)個の原画素を全て
もしくは一部参照し、原画像での線幅が水平方向の線幅
nx画素以下および垂直方向の線幅ny画素以下の細線であ
り、かつ水平・垂直・斜め方向に予め定めた値以上の長
さの細線を検出し、細線検出時には細線に最短距離の変
換画素へ細線の値を、当該細線が消失しないようにする
ために当該細線を代表させる形で、代入することを特徴
としている。
(Constitution of the Invention) The present invention provides a conversion ratio α x in the horizontal direction and the vertical direction,
If α y is 1 / n x > α x ≧ 1 / (n x +1), 1 / ny > α y ≧ 1 / (n y +1), where nx and ny are natural numbers, mainly refers horizontal 2 (n x +1) pieces × vertical 2 (n y +1) total 4 (n x +1) consisting of pieces × (n y +1) all pieces of original pixels or part, the original The line width in the image is the horizontal line width
n x pixels is less and vertical line width n y pixels below a thin line, and detects the fine line of the horizontal, vertical and diagonal directions to a predetermined value or more in length, at the time of thin line detection and conversion of the shortest distance to the fine line It is characterized in that a value of a thin line is substituted into a pixel in a form representing the thin line so that the thin line does not disappear.

前記TP法とX法を除く従来の縮小変換法とは、細線を
判定し、判定した細線を保存する手段を有することが異
なる。
The difference between the TP method and the conventional reduced conversion method except the X method is that a thin line is determined and a unit for storing the determined thin line is provided.

また、TP法は細線を判定して細線を保存する手段を有
しているが、その細線の判定条件は線幅1画素の細線の
みしか対象としていないことに対し、本発明では線幅1
画素の細線のみでなく、縮小変換比率に応じて原画素の
参照する領域を変化させ、消失する可能性のある水平方
向の線幅nx画素以下および垂直方向の線幅ny画素以下の
全ての細線を判定の対象としている点が異なる。
Further, the TP method has means for judging a thin line and storing the thin line. However, the condition for judging the thin line is limited to only a thin line having a line width of 1 pixel.
Not only the thin line of the pixel but also the area of reference of the original pixel is changed according to the reduction conversion ratio, and all of the horizontal line width nx pixels or less and the vertical line width ny pixels or less that may be lost The difference is that the thin line is used as a determination target.

また、X法は細線の長さを判定する手段を有していな
いために細線に凸凹が存在する場合において細線が消失
してしまう。これに対し、本発明では水平・垂直・斜め
方向に予め定めた値以上の長さを持つものを細線とする
ことにより、細線に凸凹が存在する場合についても細線
の判定を行う手段を有しており凸凹のある細線の消失を
防止する点が異なる。
Further, since the X method has no means for determining the length of the fine line, the fine line disappears when the fine line has irregularities. On the other hand, in the present invention, a thin line having a length equal to or more than a predetermined value in the horizontal / vertical / diagonal direction is used as a thin line, and a means for determining a thin line even when there is unevenness in the thin line is provided. The difference is that the uneven fine line is prevented from disappearing.

以上から、従来の変換法と比較して、細線に凸凹があ
る場合においても水平方向の線幅nx画素以下および垂直
方向の線幅ny画素以下である水平・垂直・斜め方向の細
線の消失を防止できる点が異なる。
From the above, as compared with the conventional conversion method, the horizontal line width n x pixels or less and vertical line widths n y of the horizontal, vertical and diagonal directions at pixels or less fine line even if there is unevenness in the fine line The difference is that the loss can be prevented.

(実施例) 第1図は、本発明の一実施例のブロック図を示し、1
は原画像を読み出す原画像読み出し手段、2は各変換画
素を原画像に写像したときの変換画素と原画素との位置
関係を求める変換画素位置検出手段、3は着目変換画素
を中心として水平方向2(nx+1)個×垂直方向2(ny
+1)個の原画素の値を読み出す参照画素読み出し手
段、4は前記手段3により読み出した参照画素の値から
線幅nx画素以下である垂直方向の細線および線幅ny画素
以下である水平方向の細線を検出する細線の検出手段、
5は前記手段4により検出した細線に対して最短距離の
変換画素を求める手段、6は前記手段5により着目変換
画素が細線に最短距離の変換画素である場合に前記細線
の値を前記着目変換画素へ代入する手段、7は前記手段
4により細線を検出しない場合および細線を検出しても
細線に最短距離の変換画素が前記着目変換画素でない場
合に、予め定めた論理演算方法により前記着目変換画素
の値を算出する変換画素の値の算出手段、8は前記手段
6および手段7から変換画素の値を決定する変換画素の
値の決定手段である。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of the present invention.
Is an original image reading means for reading the original image, 2 is a converted pixel position detecting means for obtaining a positional relationship between the converted pixels and the original pixels when each converted pixel is mapped to the original image, and 3 is a horizontal direction centering on the converted pixel of interest. 2 (n x +1) × vertical 2 (n y
+1) reference pixel reading means for reading the value of the original pixels, 4 is less fine lines and line width n y pixels in the vertical direction is less than the value from the line width n x pixels of the reference pixels read out by said means 3 horizontal A thin line detecting means for detecting a thin line in the direction,
5 is a means for obtaining a conversion pixel having the shortest distance from the thin line detected by the means 4, and 6 is a means for converting the value of the thin line by the means 5 when the conversion pixel of interest is the conversion pixel having the shortest distance to the thin line. Means 7 for substituting into the pixel, when the fine line is not detected by the means 4 and when the converted pixel of the shortest distance to the fine line is not the converted pixel of interest even if the thin line is detected, the conversion of interest is performed by a predetermined logical operation method. The conversion pixel value calculation means 8 for calculating the pixel value is a conversion pixel value determination means for determining the conversion pixel value from the means 6 and 7.

第2図は、本発明による縮小変換法の流れの例を示す
ものである。縮小変換処理は、一定のきまりに従って順
に変換画素の値を決定し、それを繰り返し行うことによ
り変換画を作成する。以下、第1図の実施例を第2図に
従い本発明の縮小変換法を説明する。
FIG. 2 shows an example of the flow of the reduction conversion method according to the present invention. In the reduction conversion process, a value of a conversion pixel is determined in order according to a fixed rule, and the conversion image is created by repeatedly performing the determination. Hereinafter, the reduction conversion method of the present invention will be described with reference to the embodiment of FIG. 1 and FIG.

水平方向と垂直方向の変換比率が異なる場合について
は、水平方向と垂直方向をそれぞれ分けて変換を行うこ
とにより実現できる。以下の説明では、水平方向と垂直
方向の変換比率を同一とし、その変換比率αを 1/n>α≧1/(n+1) ただしnは自然数 として説明する。
When the conversion ratio in the horizontal direction is different from the conversion ratio in the vertical direction, it can be realized by performing the conversion separately in the horizontal direction and the vertical direction. In the following description, it is assumed that the conversion ratio in the horizontal direction and the vertical direction is the same, and the conversion ratio α is 1 / n> α ≧ 1 / (n + 1), where n is a natural number.

原画像読み出し手段1で原画像を読み出し、変換画素
位置検出手段2により最初、変換画像を原画像へ写像
し、着目する変換画素の原画像上における位置を求め
る。
The original image is read by the original image reading means 1, the converted image is first mapped onto the original image by the converted pixel position detecting means 2, and the position of the focused converted pixel on the original image is obtained.

次に、参照画素読み出し手段3により着目変換画素を
中心として、水平方向2(n+1)個×垂直方向2(n
+1)個の原画像を参照画素として読み出す。読み出す
原画像を、変換比率αが1/3>α≧1/4の場合の例につい
て第3図に示す。
Next, the reference pixel reading means 3 sets 2 (n + 1) pixels in the horizontal direction × 2 (n) in the vertical direction around the conversion pixel of interest.
Read out +1) original images as reference pixels. FIG. 3 shows an example of an original image to be read when the conversion ratio α is 1/3> α ≧ 1/4.

第3図に示すように着目変換画素を中心として水平方
向2(n+1)個×垂直方向2(n+1)個=8×8=
64個の原画像を参照する。具体的な参照方法の例として
は、着目する変換画素の原画像上における位置を検出
し、原画像の2(n+1)ライン分のラインメモリの内
容から、着目変換画素を中心として水平方向2(n+
1)個×垂直方向2(n+1)個の原画像を順次読み出
すことにより実現できる。
As shown in FIG. 3, 2 (n + 1) horizontal directions × 2 (n + 1) vertical directions = 8 × 8 =
Refers to 64 original images. As a specific example of the reference method, the position of the conversion pixel of interest in the original image is detected, and the contents of the line memory for 2 (n + 1) lines of the original image are stored in the horizontal direction 2 ( n +
This can be realized by sequentially reading 1) × 2 (n + 1) original images in the vertical direction.

次に、予め設定した線幅n画素以下の細線の判定条件
により、参照画素の中に存在する細線を細線の検出手段
4により検出する。
Next, a thin line existing in the reference pixel is detected by the thin line detecting means 4 according to a predetermined thin line determination condition of a line width of n pixels or less.

第4図に変換比率αが1/2>α≧1/3の場合において、
本発明による細線の判定条件の具体例その1(A法と呼
ぶことにする。)を示す。
FIG. 4 shows that when the conversion ratio α is 1/2> α ≧ 1/3,
A specific example 1 (referred to as a method A) of a thin line determination condition according to the present invention is shown.

第4図においてQ0は着目変換画素の位置を示す。この
着目変換画素Q0の位置は、Q0を囲む最近傍4個の原画像
との位置関係から、4個の原画素P0,0,P−1,0,P0,1,P
−1,1に最短距離である場合の計4通りに分類できる。
In FIG. 4, Q 0 indicates the position of the conversion pixel of interest. The position of the conversion pixel Q 0 of interest is determined based on the positional relationship with the four nearest original images surrounding Q 0 , and the four original pixels P 0,0 , P −1,0 , P 0,1 , P
Classification can be made in a total of four types when the shortest distance is -1 , 1 .

着目変換画素Q0の位置が最近傍4個の原画素の内隣接
する2個と等距離である場合、または最近傍4個の全て
と等距離の場合が存在するが、この場合は、適宜最短距
離の原画素を定めることにより、着目変換画素Q0の位置
は前述の4通りに分類できる。
There is a case where the position of the conversion pixel Q 0 of interest is equidistant from two adjacent pixels among the four nearest neighbor original pixels, or a case where the position is equidistant from all the four nearest neighbors. By determining the shortest distance original pixel, the position of the conversion pixel Q 0 of interest can be classified into the four types described above.

第4図以降、この4通りの分類にしたがって細線の判
定条件式を示すことにする。A法は、同一の値を持つ原
画像がm(ただしmはn以下の自然数とする)個連続
し、かつそのm個の両側の原画像がm個の原画素の値と
異なり、さらに線幅m画素の細線が2画素以上の長さを
持って存在するとき細線と判断する方法である。
From FIG. 4 onward, a thin line determination condition formula will be shown according to these four classifications. In the A method, m original images having the same value are continuous (where m is a natural number equal to or less than n), and the m original images on both sides thereof are different from the values of the m original pixels. In this method, when a thin line having a width of m pixels has a length of 2 pixels or more, the thin line is determined.

第4図は、変換比率αが1/2>α≧1/3の場合につい
て、参照画素と細線の判定条件を示している。A法で
は、取り出した水平方向2(n+1)個×垂直方向2
(n+1)個の参照画素の内、4(2n+1)個の参照画
素を細線の判定条件に用いている。
FIG. 4 shows the reference pixel and thin line determination conditions when the conversion ratio α is 1/2> α ≧ 1/3. In method A, 2 (n + 1) horizontal directions × 2 vertical directions
Of the (n + 1) reference pixels, 4 (2n + 1) reference pixels are used for the thin line determination condition.

すなわち、変換比率αが1/2>α≧1/3の場合は20個の
参照画素を用いている。具体的な細線の判定条件の例を
図中に示す。
That is, when the conversion ratio α is 1/2> α ≧ 1/3, 20 reference pixels are used. A specific example of a thin line determination condition is shown in the figure.

第4図(1)〜(4)の式A−(1)〜式A−
(4)、式A−(7)〜式A−(10)、式A−(13)〜
式A−(16)、式A−(19)〜式A−(22)は線幅1画
素の細線の判定条件式である。また第4図(1)〜
(4)の式A−(5)、式A−(6)、式A−(11)、
式A−(12)、式A−(17)、式A−(18)、式A−
(23)、式A−(24)は線幅2画素の細線の判定条件で
ある。着目変換画素Q0の位置が近傍4個の原画素P0,0,
P−1,0,P0,1,P−1,1のどれに最短距離であるかを判定
し、判定に応じて第4図(1)〜(4)の中から1つを
選択する。選択した第4図(1)〜(4)のいずれかに
おいて式A−(1)〜式A−(24)の条件が成立するか
否かを調べ、成立する式があれば細線が存在するとし、
成立する式がない場合は細線が存在しないとすることに
より長さ2画素以上の細線の検出が可能である。
Equations A- (1) to A- in FIGS. 4 (1) to (4)
(4), Formulas A- (7) to A- (10), Formulas A- (13) to
Equations A- (16), A- (19) to A- (22) are conditions for determining a thin line having a line width of one pixel. Fig. 4 (1)-
Formulas A- (5), A- (6), A- (11) of (4),
Formula A- (12), Formula A- (17), Formula A- (18), Formula A-
(23), Expression A- (24) are conditions for determining a thin line having a line width of 2 pixels. The position of the conversion pixel Q 0 of interest is located near the four original pixels P 0,0 ,
P -1,0, P 0,1, determines whether the shortest distance to any of the P -1,1, Fig. 4 according to the determination (1) for selecting one of the - (4) . It is checked whether the conditions of the expressions A- (1) to A- (24) are satisfied in any of the selected FIGS. 4 (1) to (4). And
If there is no formula that holds, it is possible to detect a thin line having a length of 2 pixels or more by determining that there is no thin line.

第5図は、変換比率αが1/3>α≧1/4について、本発
明A法による参照画素と細線の判定条件を示している。
この場合は、取り出した水平方向2(n+1)個×垂直
方向2(n+1)個の参照画素の内、4(2n+1)個の
参照画素を、すなわち28個の参照画素を用いている。
FIG. 5 shows the reference pixel and thin line determination conditions according to the method A of the present invention when the conversion ratio α is 1/3> α ≧ 1/4.
In this case, of the 2 (n + 1) × 2 (n + 1) reference pixels extracted in the horizontal direction, 4 (2n + 1) reference pixels, that is, 28 reference pixels are used.

具体的な細線の判定条件の例を図中に示す。第5図
(1)〜(12)の式A−(25)〜式A−(30)、式A−
(37)〜式A−(42)、式A−(49)〜A−(54)、式
A−(61)〜−(66)は線幅1画素の細線の判定条件式
である。
A specific example of a thin line determination condition is shown in the figure. Formulas A- (25) to A- (30), A-
Expressions (37) to A- (42), Expressions A- (49) to A- (54), and Expressions A- (61) to-(66) are conditions for determining a thin line having a line width of one pixel.

また、第5図(1)〜(12)の式A−(31)〜式A−
(34)、式A−(43)〜式A−(46)、式A−(55)〜
A−(58)、式A−(67)〜式A−(70)は線幅2画素
の細線の判定条件式である。
In addition, the equations A- (31) to A- of FIGS. 5 (1) to (12) are used.
(34), Formulas A- (43) to A- (46), Formulas A- (55) to
A- (58) and Expressions A- (67) to A- (70) are conditions for determining a thin line having a line width of 2 pixels.

また第5図(1)〜(12)の式A−(35)〜式A−
(36)、式A−(47)〜式A−(48)、式A−(59)〜
A−(60)、式A−(71)〜−(72)は線幅3画素の細
線の判定条件式である。
In addition, equations A- (35) to A- in FIGS. 5 (1) to (12) are used.
(36), Formulas A- (47) to A- (48), Formulas A- (59) to
A- (60) and Expressions A- (71) to-(72) are conditions for determining a thin line having a line width of 3 pixels.

着目変換画素Q0の位置が近傍4個の原画素P0,0,P
−1,0,P0,1,P−1,1のどれに最短距離であるかを判定
し、判定に応じて第5図(1)〜(12)の中から1つを
選択する。選択した第5図(1)〜(12)のいずれかに
おいて式A−(25)〜式A−(72)の条件が成立するか
否かを調べ、成立する式があれば細線が存在するとし、
成立する式がない場合は細線が存在しないとすることに
より長さ2画素以上の細線の検出が1/3>α≧1/4の場合
に可能である。
The position of the conversion pixel Q 0 of interest is located near the four original pixels P 0,0 , P
-1, 0, P 0, 1, determines whether the shortest distance to any of the P -1,1, Figure 5 in accordance with the determination (1) for selecting one of the - (12). It is checked whether or not the conditions of Expressions A- (25) to A- (72) are satisfied in any of the selected FIGS. 5 (1) to (12). And
When there is no formula that holds, it is possible to detect a thin line having a length of 2 pixels or more when 1/3> α ≧ 1/4 by determining that there is no thin line.

本発明A法に対して、変換比率がαが1/2>α≧1/3と
1/3>α≧1/4の場合について説明したが、一般的に1/n
>α≧1/(n+1)の場合についても、上記の方法と同
様にして細線の検出が可能である。
Compared with the method A of the present invention, the conversion ratio α is 1/2> α ≧ 1/3.
Although the case where 1/3> α ≧ 1/4 has been described, generally 1 / n
In the case of> α ≧ 1 / (n + 1), a thin line can be detected in the same manner as in the above method.

第6図に変換比率αが1/1>α≧1/2の場合における、
本発明による細線の判定条件の具体例その2(B法と呼
ぶことにする。)を示す。
In FIG. 6, when the conversion ratio α is 1/1> α ≧ 1/2,
7 shows a specific example 2 (referred to as a method B) of a thin line determination condition according to the present invention.

B法は、線幅m画素の細線が存在し、かつその線幅m
画素の細線が3画素以上の長さを持って存在するときに
細線を判断する方法である。
In the method B, a thin line having a line width of m pixels exists and the line width is m.
This is a method of determining a thin line when a thin line of pixels exists with a length of 3 pixels or more.

第6図は、変換比率αが1/1>α≧1/2の場合につい
て、参照画素と細線の判定条件を示している。B法で
は、取り出した水平方向2(n+1)個×垂直方向2
(n+1)個の参照画素の内、2(n+2)(n+1)
個の参照画素を細線の判定条件に用いている。
FIG. 6 shows the reference pixel and thin line determination conditions when the conversion ratio α is 1/1> α ≧ 1/2. In the B method, 2 (n + 1) horizontal directions × 2 vertical directions
2 (n + 2) (n + 1) of (n + 1) reference pixels
The reference pixels are used as the thin line determination condition.

すなわち、変換比率αが1/1>α≧1/2の場合は、12個
の参照画素を用いている。具体的な細線の判定条件の例
を図中に示す。式B−(1)〜式B−(8)は線幅1画
素の細線の判定条件式である。
That is, when the conversion ratio α is 1/1> α ≧ 1/2, 12 reference pixels are used. A specific example of a thin line determination condition is shown in the figure. Equations B- (1) to B- (8) are conditions for determining a thin line having a line width of one pixel.

着目変換画素Q0の位置が近傍4個の原画素P0,0,P
−1,0,P0,1,P−1,1のどれに最短距離であるかを判定
し、判定に応じて判定条件式を選択する。判定条件式B
−(1)〜式B−(8)の中で選択した判定条件の条件
が成立するか否かを調べ、成立する式があれば細線が存
在するとし、成立する式がない場合は細線が存在しない
とすることにより長さ3画素以上の細線の検出が可能で
ある。
The position of the conversion pixel Q 0 of interest is located near the four original pixels P 0,0 , P
-1, 0, P 0, 1, determines whether the shortest distance to any of the P -1,1, selects a determination condition expression in accordance with the determination. Judgment condition formula B
It is checked whether or not the condition of the determination condition selected from-(1) to Expression B- (8) is satisfied. If there is an expression that is satisfied, it is determined that a thin line exists. By making it absent, a thin line having a length of 3 pixels or more can be detected.

第7図は、変換比率αが1/2>α≧1/3の場合につい
て、本発明B法による参照画素と細線の判定条件を示し
ている。
FIG. 7 shows the reference pixel and thin line determination conditions according to the method B of the present invention when the conversion ratio α is 1/2> α ≧ 1/3.

B法では、取り出した水平方向2(n+1)個×垂直
方向2(n+1)個の参照画素の内、2(n+2)(n
+1)個の参照画素、すなわち、変換比率αが1/2>α
≧1/3の場合は24個の参照画素を用いている。具体的な
細線の判定条件の例を図中に示す。第7図(1)〜
(4)の式B−(9)〜B−(12)、式B−(15)〜B
−(18)、式B−(21)〜B−(24)、式B−(27)〜
B−(30)は線幅1画素の細線の判定条件式である。第
7図(1)〜(4)の式B−(13)〜式B−(14)、式
B−(19)〜B−(20)、式B−(25)〜B−(26)、
式B−(31)〜B−(32)は線幅2画素の細線の判定条
件式である。
In the method B, 2 (n + 2) (n) of 2 (n + 1) × 2 (n + 1) reference pixels extracted in the horizontal direction
+1) reference pixels, that is, the conversion ratio α is 1/2> α
If ≧ 1 /, 24 reference pixels are used. A specific example of a thin line determination condition is shown in the figure. Fig. 7 (1)-
Formulas B- (9) to B- (12) and B- (15) to B- (4)
-(18), Formulas B- (21) to B- (24), Formulas B- (27) to
B- (30) is a conditional expression for determining a thin line having a line width of one pixel. Equations B- (13) to B- (14), B- (19) to B- (20), and B- (25) to B- (26) in FIGS. 7 (1) to (4) ,
Expressions B- (31) to B- (32) are conditions for determining a thin line having a line width of 2 pixels.

着目変換画素Q0の位置が近傍4個の原画素P0,0,P
−1,0,P0,1,P−1,1のどれに最短距離であるかを判定
し、判定に応じて第7図(1)〜(4)から1つを選択
する。選択した第7図(1)〜(4)のいずれかにおい
て式B−(9)〜B−(32)の条件が成立するか否かを
調べ、成立する式があれば細線が存在するとし、成立す
る式がない場合は細線が存在しないとすることにより長
さ3画素以上の細線の検出が可能である。
The position of the conversion pixel Q 0 of interest is located near the four original pixels P 0,0 , P
-1, 0, P 0, 1, determines whether the shortest distance to any of the P -1,1, Figure 7 according to the determination (1) selects - one from (4). It is checked whether or not the conditions of equations B- (9) to B- (32) are satisfied in any of the selected FIGS. 7 (1) to (4). If there is no formula that holds, it is possible to detect a thin line having a length of 3 pixels or more by assuming that there is no thin line.

第8図は、変換比率αが1/3>α≧1/4の場合につい
て、本発明B法による参照画素と細線の判定条件を示し
ている。B法では、取り出した水平方向2(n+1)個
×垂直方向2(n+1)個の参照画素の内、2(n+
2)(n+1)個の参照画素、すなわち、変換比率αが
1/3>α≧1/4の場合は40個の参照画素を用いている。具
体的な細線の判定条件の例を図中に示す。
FIG. 8 shows the reference pixel and thin line determination conditions according to the method B of the present invention when the conversion ratio α is 1/3> α ≧ 1/4. In the method B, 2 (n + 1) of 2 (n + 1) × 2 (n + 1) reference pixels extracted in the horizontal direction are extracted.
2) (n + 1) reference pixels, that is, the conversion ratio α is
When 1/3> α ≧ 1/4, 40 reference pixels are used. A specific example of a thin line determination condition is shown in the figure.

第8図(1)〜(12)の式B−(33)〜式B−(3
8)、式B−(45)〜式B−(50)、式B−(57)〜式
B−(62)式B−(69)〜式B−(74)は線幅1画素の
細線の判定条件である。
Equations B- (33) to B- (3) in FIGS. 8 (1) to (12)
8), Formula B- (45) to Formula B- (50), Formula B- (57) to Formula B- (62), Formula B- (69) to Formula B- (74) are thin lines having a line width of 1 pixel. Is the determination condition.

また、第8図(1)〜(12)の式B−(33)〜式B−
(38)、式B−(45)〜式B−(50)、式B−(57)〜
式B−(62)、式B−(69)〜式B−(74)は線幅1画
素の細線の判定条件式である。
Also, equations B- (33) to B- in FIGS. 8 (1) to (12) are used.
(38), Formula B- (45) to Formula B- (50), Formula B- (57)
Equations B- (62), B- (69) to B- (74) are conditions for determining a thin line having a line width of one pixel.

また、第8図(1)〜(12)の式B−(39)〜式B−
(42)、式B−(51)〜式B−(54)、式B−(63)〜
式B−(66)式B−(75)〜式B−(78)は線幅2画素
の細線の判定条件式である。
In addition, equations B- (39) to B- in FIGS. 8 (1) to (12) are used.
(42), Formula B- (51) to Formula B- (54), Formula B- (63)
Formula B- (66) Formula B- (75) to Formula B- (78) are conditions for determining a thin line having a line width of 2 pixels.

また、第8図(1)〜(12)の式B−(43)〜式B−
(44)、式B−(55)〜式B−(56)、式B−(67)〜
式B−(68)式B−(79)〜式B−(80)は線幅3画素
の細線の判定条件式である。着目変換画素Q0の位置が近
傍4個の原画素P0,0,P−1,0,P0,1,P−1,1のどれに最短
距離であるかを判定し、判定に応じて第8図(1)〜
(12)から1つを選択する。選択した第8図(1)〜
(12)のいずれかにおいて式B−(33)〜式B−(80)
の条件が成立する式が成立するか否かを調べ、成立する
式があれば細線が存在するとし、成立する式がない場合
は細線が存在しないとすることにより長さ3画素以上の
細線の検出が可能である。
In addition, equations B- (43) to B- in FIGS. 8 (1) to (12) are used.
(44), Formula B- (55) to Formula B- (56), Formula B- (67)
Formula B- (68) Formula B- (79) to Formula B- (80) are conditions for determining a thin line having a line width of 3 pixels. It is determined to which of the four neighboring original pixels P 0,0 , P −1,0 , P 0,1 , P −1,1 the position of the conversion pixel Q 0 of interest is closest, and according to the determination, Fig. 8 (1)-
Select one from (12). Selected Fig. 8 (1)-
In any one of (12), the formulas B- (33) to B- (80)
It is checked whether or not an expression that satisfies the condition is satisfied. If there is an expression that is satisfied, it is assumed that a thin line exists. If there is no expression that is satisfied, it is determined that there is no thin line. Detection is possible.

本発明B法に対して、変換比率αが1/1>α≧1/2、1/
2>α≧1/3、1/3>α≧1/4の場合について説明したが、
一般的に1/n>α≧1(n+1)の場合についても上記
に示した方法により同様に細線の検出が可能である。
For the method B of the present invention, the conversion ratio α is 1/1> α ≧ 1/2, 1 /
2> α ≧ 1/3, 1/3> α ≧ 1/4
In general, also in the case of 1 / n> α ≧ 1 (n + 1), a thin line can be similarly detected by the method described above.

第9図に変換比率αが1/1>α≧1/2の場合における、
本発明による細線の判定条件の具体例その3(C法と呼
ぶことにする。)を示す。
In FIG. 9, when the conversion ratio α is 1/1> α ≧ 1/2,
A specific example 3 (referred to as a C method) of a thin line determination condition according to the present invention is shown.

C法は、線幅m画素の細線が存在し、かつその細線m
画素の細線が垂直・水平・斜め方向に3画素以上の長さ
を持って存在するときまたは斜め方向に線幅1画素の細
線が2画素以上の長さを持って存在するときに細線と判
断する方法である。
In the C method, a thin line having a line width of m pixels exists and the thin line m
When a thin line of pixels exists in the vertical, horizontal, and oblique directions with a length of 3 pixels or more, or when a thin line with a line width of 1 pixel exists in the diagonal direction with a length of 2 pixels or more, it is determined to be a thin line. How to

第9図は、変換比率αが1/1>α≧1/2の場合につい
て、参照画素と細線の判定条件を示している。C法で
は、変換比率αが1/1>α≧1/2の場合は16個の参照画素
を用いている。具体的な細線の判定条件の例を図中に示
す。
FIG. 9 shows reference pixel and thin line determination conditions when the conversion ratio α is 1/1> α ≧ 1/2. In the C method, 16 reference pixels are used when the conversion ratio α is 1/1> α ≧ 1/2. A specific example of a thin line determination condition is shown in the figure.

第9図の式C−(1)〜式C−(12)は線幅1画素の
細線の判定条件式である。なお、式C−(3)、式C−
(6)、式C−(9)、式C−(12)は、斜め方向に線
幅1画素の細線が2画素以上の長さを持って存在する細
線の判定条件式である。
Equations C- (1) to C- (12) in FIG. 9 are conditions for determining a thin line having a line width of one pixel. In addition, Formula C- (3), Formula C-
(6), Expression C- (9), and Expression C- (12) are conditions for determining a thin line in which a thin line having a line width of 1 pixel exists in a diagonal direction with a length of 2 pixels or more.

また着目変換画素Q0の位置が近傍4個の原画素P0,0,
P−1,0,P0,1,P−1,1のどれに最短距離であるかを判定
し、判定に応じて判定条件を選択する。判定条件式C−
(1)〜式C−(12)の中で選択した判定条件式の条件
が成立するか否を調べ、成立する式があれば細線が存在
するとし、成立する式がない場合細線が存在しないとす
ることにより、垂直・水平・斜め方向に長さ3画素以上
の細線の検出が可能であり、斜め方向に線幅1画素の長
さ2画素以上の細線の検出が可能である。
In addition, the position of the conversion pixel Q 0 of interest is located near four original pixels P 0,0 ,
P -1,0, P 0,1, to determine whether it is the shortest distance to any of the P -1,1, to select the judgment conditions in accordance with the determination. Judgment condition formula C-
It is checked whether or not the condition of the judgment condition formula selected from (1) to C- (12) is satisfied. If there is a formula that is satisfied, a thin line exists. If there is no formula, no thin line exists. By doing so, it is possible to detect a thin line having a length of 3 pixels or more in the vertical, horizontal and oblique directions, and to detect a thin line having a line width of 1 pixel and a length of 2 pixels or more in the oblique direction.

第10図は、変換比率αが1/2α≧1/3の場合について、
本発明C法による参照画素と細線の判定条件を示してい
る。C法では、変換比率αが1/2>α≧1/3の場合は取り
出した水平方向2(n+1)個×垂直方向2(n+1)
個の参照画素の内、4(n+1)−4個の参照画素、
すなわち、32個の参照画素を用いている。具体的な細線
の判定条件の例を図中に示す。
FIG. 10 shows the case where the conversion ratio α is 1 / 2α ≧ 1/3,
9 illustrates a reference pixel and a thin line determination condition according to the method C of the present invention. In the C method, when the conversion ratio α is >> α ≧ 1 /, the extracted horizontal direction is 2 (n + 1) × vertical direction 2 (n + 1)
Of the 4 reference pixels, 4 (n + 1) 2 -4 reference pixels,
That is, 32 reference pixels are used. A specific example of a thin line determination condition is shown in the figure.

第10図(1)〜(14)の式C−(13)〜式C−(1
6)、式C−(20)〜式C−(23)、式C−(27)〜式
C−(30)、式C−(34)〜式C−(37)は線幅1画素
で垂直・水平・斜め方向の長さ3画素以上の細線の判定
条件式である。
Equations C- (13) to C- (1) in FIGS. 10 (1) to (14)
6), Formula C- (20) to Formula C- (23), Formula C- (27) to Formula C- (30), Formula C- (34) to Formula C- (37) have a line width of one pixel. This is a determination condition formula for a thin line having a length of 3 pixels or more in the vertical, horizontal, and oblique directions.

また、第10図(1)〜(4)の式C−(17)〜式C−
(18)、式C−(24)〜式C−(25)、式C−(31)〜
式C−(32)、式C−(38)〜式C−(39)は線幅2画
素で垂直・水平・斜め方向の長さ3画素以上の細線の判
定条件式である。
Further, the equations C- (17) to C- in FIGS. 10 (1) to (4) are used.
(18), Formula C- (24) to Formula C- (25), Formula C- (31)
Expressions C- (32) and C- (38) to C- (39) are conditions for determining a thin line having a line width of 2 pixels and a length of 3 pixels or more in vertical, horizontal, and oblique directions.

また、第10図(1)〜(4)の式C−(19)、式C−
(26)、式C−(33)、式C−(40)は線幅1画素で斜
め方向の長さ2画素以上の細線の判定条件式である。
Further, the equations C- (19) and C- in FIGS. 10 (1) to (4) are used.
(26), Equations C- (33) and C- (40) are conditions for determining a thin line having a line width of 1 pixel and a diagonal length of 2 pixels or more.

着目変換画素Q0の位置が最近傍4個の原画素P0,0,P
−1,0,P0,1,P−1,1のどれに最短距離であるかを判定
し、判定に応じて第10図(1)〜(4)から1つを選択
する。選択した第10図(1)〜(4)のいずれかにおい
て式C−(13)〜式C−(40)の条件が成立するか否か
を調べ、成立する式があれば細線が存在するとし、成立
する式がない場合は細線が存在しないとすることによ
り、垂直・水平・斜め方向に長さ3画素以上の細線の検
出、および斜め方向に線幅1画素の長さ2画素以上の細
線の検出が可能である。
The position of the conversion pixel Q 0 of interest is the nearest four original pixels P 0,0 , P
-1, 0, P 0, 1, determines whether the shortest distance to any of the P -1,1, Figure 10 according to the determination (1) selecting one from - (4). It is checked whether or not the conditions of the expressions C- (13) to C- (40) are satisfied in any of the selected FIGS. 10 (1) to (4). If there is no formula that holds, it is determined that there is no thin line, so that a thin line having a length of 3 pixels or more in the vertical, horizontal, and oblique directions is detected, and a line width of 1 pixel and a length of 2 pixels or more in the oblique direction are detected. Detection of fine lines is possible.

第11図に、第10図(1)の場合に本変換法C法により
細線が保存される例を示す。第11図(a)例その1は、
式C−(13)を満足する細線の例であり、線幅が1画素
でありかつ垂直方向と斜め左上がり方向である長さ3個
の連結画素の場合を示している。
FIG. 11 shows an example in which thin lines are stored by the present conversion method C in the case of FIG. 10 (1). FIG. 11 (a) Example 1
This is an example of a thin line that satisfies the expression C- (13), and shows a case of a connected pixel having a line width of 1 pixel and a length of 3 in the vertical direction and the diagonally up left direction.

第11図(b)例その2は、式C−(15)を満足する細
線の例であり、線幅が1画素であり、かつ斜め右上がり
方向である長さ3個の連結画素の場合を示している。
FIG. 11 (b) Example 2 is an example of a thin line satisfying the expression C- (15), where the line width is 1 pixel and the length of the connected pixels is 3 in the obliquely rightward upward direction. Is shown.

第11図(c)例その3は、式C−(17)を満足する細
線の例であり、線幅が2画素であり垂直方向2個の連結
画素と線幅が1画素であり斜め右上がり方向1個である
合計の長さ3個の連結画素の場合を示している。
FIG. 11 (c) Example No. 3 is an example of a thin line satisfying the expression C- (17), which has a line width of 2 pixels, two connected pixels in the vertical direction, a line width of 1 pixel, and a diagonally right line. This figure shows a case of three connected pixels having a total length of one ascending direction.

第11図(d)例その4は、式C−(19)を満足する細
線の例であり、線幅が1画素でありかつ斜め左上がり方
向である長さ2個の連結画素の場合を示している。
Example 4 of FIG. 11 (d) is an example of a thin line satisfying the expression C- (19). In the case of a connected pixel having a line width of 1 pixel and a length of 2 pixels which is obliquely ascending to the left. Is shown.

第11図では、第10図(1)の場合に本変換方法C法に
より細線が保存されている一例を示したが、それ以外の
第10図(2)〜(4)のいずれにおいても同様な細線の
保存が行なわれる。
FIG. 11 shows an example in which thin lines are preserved by the present conversion method C in the case of FIG. 10 (1), but the same applies to all other FIGS. 10 (2) to (4). The thin line is preserved.

以上、本発明C法に対して、変換比率αが1/1>α≧1
/2、1/2>α≧1/3の場合に細線の検出について説明した
が、一般的に1/n>α≧1/(n+1)の場合についても
上記に示した方法により同様に細線の検出が可能であ
る。
As described above, the conversion ratio α is 1/1> α ≧ 1 with respect to the method C of the present invention.
Although the detection of a thin line has been described in the case of / 2, 1/2> α ≧ 1/3, the case of 1 / n> α ≧ 1 / (n + 1) is generally similar to the detection of a thin line in the same manner as described above. Can be detected.

X法では細線が消失する前記第16図の例において、A
法、B法およびC法は垂直方向に長さが2画素または3
画素以上を細線とすることから、P−2,0とP−1,0を白
い細線とは判定せず、着目変換画素に黒の値が代入され
て水平方向の細線が保存できる。同様に一定の値を定め
て、その値以上の長さの細線のみを細線とすることによ
り、凸凹の箇所を細線と検出することなく本来の細線を
検出できる。したがって、本発明により凸凹な細線が存
在する原画においても良好に細線の検出が可能となる。
In the example of FIG. 16 in which thin lines disappear by the X method,
Method, method B and method C have a vertical length of 2 pixels or 3 pixels.
Since pixels or more are thin lines, P− 2,0 and P− 1,0 are not determined as white thin lines, and a black value is substituted for the conversion pixel of interest, so that a horizontal thin line can be preserved. Similarly, a fixed value is determined, and only a thin line having a length equal to or longer than that value is set as a thin line. Thus, an original thin line can be detected without detecting an uneven portion as a thin line. Therefore, according to the present invention, fine lines can be detected well even in an original image having uneven lines.

なお、原画上に黒あるいは白の細線がある場合、その
細線が変換画素位置に最も近い原画素であるときや、ま
た、4個の原画素の投影する平均濃度を閾値処理した結
果その細線の位置に最も近い変換画素の値がその細線の
値と一致するときには、SPC法や領域判定法において変
換画面上で該当する細線が消失してしまうことはない。
すなわち、前記第14図の例において示したように、消失
する可能性がある線幅mの細線は、Qjに最短距離の原画
素Piを含む形で存在するのではなく、Piの右側または左
側に(あるいは変換画素の上側または下側に)位置す
る。このため、細線の判定条件は、水平・垂直方向それ
ぞれ変換画素を中心に水平方向2(n+1)個×垂直方
向2(n+1)個の原画素について線幅mの細線を判定
することにより、Piの近くの消失する線幅n画素以下の
細線の検出が可能となる。
When there is a black or white thin line on the original image, when the thin line is the original pixel closest to the conversion pixel position, or when the average density projected by the four original pixels is thresholded, the thin line When the value of the conversion pixel closest to the position matches the value of the thin line, the thin line does not disappear on the conversion screen in the SPC method or the area determination method.
That is, as shown in the example of the FIG. 14, thin lines of line width m that may be missing, instead of in the form including the original pixels P i of the shortest distance to Q j, the P i It is located on the right or left side (or above or below the conversion pixel). For this reason, a thin line determination condition is determined by determining a thin line having a line width m with respect to 2 (n + 1) original pixels in the horizontal direction and 2 (n + 1) original pixels in the vertical direction centering on the converted pixel in each of the horizontal and vertical directions. It becomes possible to detect a thin line having a line width of n pixels or less near i which disappears.

細線を検出した場合、細線に最短距離の変換画素算出
手段5により着目変換画素が検出した細線に最短距離の
変換画素であるか否かを調べ、最短距離の変換画素の場
合には代入手段6により細線の値を変換画素へ代入す
る。
When a thin line is detected, the conversion pixel calculating means 5 for the shortest distance to the thin line checks whether or not the conversion pixel of interest is the shortest distance conversion pixel for the detected thin line. To substitute the value of the thin line into the converted pixel.

細線に対し着目変換画素が他の変換画素より近傍であ
ることの判定は、次の方法により可能である。検出した
細線の中心線を算出する。細線の中心線から近傍の各変
換画素までの距離を比較して最近傍の変換画素を検出
し、該最近傍の変換画素が着目変換画素であるか否かの
判定を行うことにより可能である。また、原画素間の距
離を1とすると変換画素間の距離は1/αであり、変換画
素間の中心は両変換画素から1/(2α)の位置であるた
め、着目変換画素から左右へあるいは上下へ距離1/(2
α)の領域内に細線の中心線が含まれているか否かを判
定することによっても細線に最短距離の変換画素である
か否かを調べることができる。
The determination that the conversion pixel of interest is closer to the thin line than the other conversion pixels can be made by the following method. The center line of the detected thin line is calculated. This is possible by comparing the distance from the center line of the thin line to each of the neighboring converted pixels, detecting the nearest converted pixel, and determining whether the nearest converted pixel is the target converted pixel. . If the distance between the original pixels is 1, the distance between the converted pixels is 1 / α, and the center between the converted pixels is 1 / (2α) from both converted pixels. Or up / down distance 1 / (2
By determining whether or not the center line of the thin line is included in the region of α), it can be checked whether or not the thin line is the shortest distance conversion pixel.

一方、細線を検出しない場合は、細線を検出しても着
目変換画素が検出した細線に最短距離の変換画素でない
場合には、算出手段7から予め定めた論理演算方法によ
り変換画素の値を算出する。論理演算方法の具体例とし
て、前述のPSC法や、領域判定法などを用いることがで
きる。
On the other hand, when the thin line is not detected, when the converted pixel of interest is not the shortest distance converted pixel to the detected thin line even if the thin line is detected, the value of the converted pixel is calculated from the calculating means 7 by a predetermined logical operation method. I do. As a specific example of the logical operation method, the above-described PSC method, area determination method, or the like can be used.

以上の方法により、変換画素に値を手段8で決定する
ことができ、全ての変換画素に対して繰り返し処理を行
うことにより、細線を保存した変換画を作成できる。
By the above method, the value of the converted pixel can be determined by the means 8, and the converted image in which the thin line is preserved can be created by repeatedly performing the process on all the converted pixels.

本実施例では、水平方向2(n+1)個×垂直方向2
(n+1)個の全ての原画素を読み出しその一部を用い
て細線を検出する方法を示したが、細線の検出に必要な
原画素のみを読み出す方法でも変換画の作成が可能であ
る。
In this embodiment, 2 (n + 1) horizontal directions × 2 vertical directions
Although the method of reading all (n + 1) original pixels and detecting a thin line by using a part thereof has been described, a converted image can be created by a method of reading only the original pixels necessary for detecting the thin line.

上記において細線の存在の有無を検出することについ
て説明したが、以上をまとめると、 例えば第4図(1)左上図を例にとって、画素P
−1,0に着目し、画素P−1,0の右画素P0,0と左画素P
−2,0とが共に、画素P−1,0とは異なる値を持ち、かつ
画素P−1,0と同じ値を持つ画素が例えば垂直方向の画
素P−1,1の如く存在する場合、画素P−1,0と画素P
−1,1とからなる縦細線があるとみなし 例えば第4図(1)左下図を例にとって、水平方向
に存在する画素P−2,0と画素P−1,0との如く同一値を
もつ連結画素が連結してその両端の画素P−3,0と画素
0,0とが連結画素とは異なる値をもち(即ち水平連結
画素が存在し)、当該連結する画素P−2,0,P−1,0の個
数が2以上nx以下であり、その水平連結画素と同じ値を
もつ画素が垂直方向あるいは斜め方向に、例えばP
−2,1あるいはP−1,1に、所定個数以上存在する場合、
画素P−2,0と画素P−1,0とからなる水平連結画素が存
在するとみなす。
The detection of the presence / absence of a thin line has been described above. To summarize the above, for example, in the example shown in FIG.
Paying attention to -1, 0, right pixels of the pixel P -1,0 P 0,0 and the left pixel P
-2,0 are both, if present as different has a value, and the pixels having the same value as the pixel P -1, 0, for example, in the vertical direction of the pixel P -1,1 the pixel P -1, 0 , Pixel P− 1,0 and pixel P
Considers that there is a vertical thin line consisting -1,1 Metropolitan example 4 (1) lower left diagram of an example, the same value as the pixel P -2,0 pixel P -1, 0 existing in the horizontal direction different values and pixels P -3,0 pixel P 0,0 of both ends and is connected pixels connected pixels are connected with rice (i.e. there are horizontal connected pixels), pixel P -2 to the coupling, 0, the number of P -1, 0 is less than 2 or more n x, the pixels in the vertical direction or an oblique direction having the same value as the horizontal connected pixels, for example, P
-2,1 or P- 1,1 , if there is more than a predetermined number,
It is assumed that there is a horizontally connected pixel including the pixel P− 2,0 and the pixel P− 1,0 .

この検出手法が、水平方向の細線を検出するものとし
て本願特許請求の範囲第(2)項に記述されている。ま
た、垂直方向の細線を検出するものとして本願特許請求
の範囲第(3)項に記述されている。また本願特許請求
の範囲(4)項は「予め定めた個数」を規定している。
This detection method is described in claim (2) of the present application as detecting a thin line in the horizontal direction. The detection of a vertical thin line is described in claim (3) of the present application. Claim (4) of the present application defines “a predetermined number”.

第12図は、原画(1)を本発明による縮小変換画
(2)の例である。比較のため、(3)に示す従来の変
換法であるSPC法とX法、本発明のA法およびB法の変
換画例をあわせて示している。本発明のA法およびB法
の変換画例が凸凹のある細線の消失を防止して最も良好
な変換画であることがわかる。
FIG. 12 is an example of a reduced converted image (2) of the original image (1) according to the present invention. For comparison, examples of conversion images of the SPC method and the X method, which are the conventional conversion methods shown in (3), and the A method and the B method of the present invention are also shown. It can be seen that the conversion images of the methods A and B of the present invention are the best conversion images by preventing the disappearance of uneven fine lines.

第13図は、原画(1)を水平・垂直・斜め方向の細線
に対する本発明C法による縮小変換画(2)の例であ
る。比較のため、(3)に示す従来の方法であるSPC
法、本発明のB法の変換画例をあわせて示している。本
発明のC法の変換画例が水平・垂直・斜め方向の細線の
消失を防止して最も良好な変換画であることがわかる。
FIG. 13 is an example of a reduced converted image (2) of the original image (1) for the horizontal, vertical and oblique thin lines by the method C of the present invention. For comparison, the conventional method shown in (3), SPC
And the conversion image examples of the method B of the present invention. It can be seen that the converted image example of the method C of the present invention is the best converted image by preventing the disappearance of thin lines in the horizontal, vertical, and oblique directions.

(発明の効果) 以上説明したように、本発明によれば縮小する場合に
原画に存在する細線を判定し、これらの細線を消失する
ことなく変換画面上へ保存することが可能であるから、
ファクシミリなどの画像読み取り装置から画像を読み取
った場合に生じる凸凹な細線に対しても細線の消失を防
止して、画品質劣化の少ない変換画を得ることができ
る。また、水平・垂直・斜め方向の細線に対しても細線
の消失を防止して良好な変換画を得ることができる。
(Effects of the Invention) As described above, according to the present invention, it is possible to determine the thin lines existing in the original image when the image is reduced, and to save these thin lines on the conversion screen without disappearing.
It is possible to prevent the disappearance of the fine line even when the image is read from an image reading device such as a facsimile, and to obtain a converted image with little image quality deterioration. In addition, it is possible to prevent the disappearance of fine lines in horizontal, vertical, and oblique directions, thereby obtaining a good converted image.

なお、水平方向と垂直方向との変換比率が同一な場合
のみについて説明したが、本発明によれば、水平方向と
垂直方向との変換比率が異なる任意の縮小変換が可能で
あることはもちろん、その片方向を変換しない場合ある
いは拡大変換する場合にも適用可能である。
Although only the case where the conversion ratio between the horizontal direction and the vertical direction is the same has been described, according to the present invention, any reduction conversion with a different conversion ratio between the horizontal direction and the vertical direction is of course possible. The present invention can be applied to a case where the one direction is not converted or a case where the enlargement conversion is performed.

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

第1図は本発明を実現するための縮小変換機能ブロック
図、第2図は本発明の変換処理の流れを説明する図、第
3図は本発明により参照する原画素の一具体例図、第4
図および第5図は本発明のA法による細線の判定方法を
示す図、第6図,第7図および第8図は本発明のB法に
よる細線の判定方法を示す図、第9図および第10図は本
発明のC法による細線の判別方法を示す図、第11図は本
発明C法により細線が保存される例を示す図、第12図お
よび第13図は本発明による変換画例を示す図、第14図
(a)(b)は細線が消失する例を説明するための原画
素と変換画素の配置図、第15図はX法の参照画素の例を
示す図、第16図はX法で細線が消失する例を示す図であ
る。 1……原画読み出し手段、2……変換画素位置検出手
段、3……参照画素読み出し手段、4……細線の検出手
段、5……細線に最短距離の変換画素算出手段、6……
細線の値を変換画素へ代入する手段、7……変換画素の
値の算出手段、8……変換画素の値の決定手段。
FIG. 1 is a block diagram of a reduced conversion function for realizing the present invention, FIG. 2 is a diagram for explaining the flow of a conversion process of the present invention, FIG. 3 is a specific example diagram of an original pixel referred to by the present invention, 4th
FIG. 5 and FIG. 5 are diagrams showing a method for judging a thin line according to the method A of the present invention, and FIGS. 6, 7, and 8 are diagrams showing a method for judging a thin line according to the method B according to the present invention. FIG. 10 is a diagram showing a method of discriminating fine lines by the method C of the present invention, FIG. 11 is a diagram showing an example in which fine lines are stored by the method C of the present invention, and FIGS. 12 and 13 are conversion images according to the present invention. FIGS. 14 (a) and 14 (b) are diagrams showing an arrangement of original pixels and converted pixels for explaining an example in which a thin line disappears, and FIG. 15 is a diagram showing an example of reference pixels in the X method. FIG. 16 is a diagram showing an example in which thin lines disappear by the X method. 1 ... Original image reading means, 2 ... Converted pixel position detecting means, 3 ... Reference pixel reading means, 4 ... Fine line detecting means, 5 ... Converted pixel calculating means with the shortest distance to the thin line, 6 ...
... Means for substituting the value of the thin line into the converted pixel, 7... Means for calculating the value of the converted pixel, 8... Means for determining the value of the converted pixel.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−196976(JP,A) 特開 昭61−199376(JP,A) 特開 昭61−147668(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/387 - 1/393 G06T 3/40 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-62-196976 (JP, A) JP-A-61-1199376 (JP, A) JP-A-61-147668 (JP, A) (58) Field (Int.Cl. 7 , DB name) H04N 1/387-1/393 G06T 3/40

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2値の原画像を水平方向に1より小さい変
換比率α、垂直方向に1より小さい変換比率α αは1/nx>α≧1/(nx+1) αは1/ny>α≧1/(ny+1) ただし、nx、nyは自然数 で縮小を行い変換画像を得る変換方法であって、 変換画像を原画像に写像したときの変換画像上の着目変
換画素と原画像上の原画素との位置関係を求め、 着目変換画素の位置を中心として水平方向および垂直方
向にそれぞれ1辺が2(nx+1)および2(ny+1)個
の原画素からなる矩形領域を設定し、 当該矩形領域内の4(nx+1)×(ny+1)個の全ての
原画素または一部の原画素を用いて、特定の値をもって
1つの座標方向に並ぶn(但し1≦n≦nx又nyの正整
数)個の画素群に対して前記1つの座標方向の両端にお
いて隣接する2つの画素が異なる値をもって存在しかつ
前記特定の値をもつ画素群と同一値をもつ画素が前記1
つの座標方向に対して直交する座標方向あるいは斜め方
向に予め定めた値以上連結するとき、当該矩形領域内に
所定の幅でかつ所定の長さを持つ線分が存在するものと
判定し、 当該矩形領域内に線分が存在し、前記着目変換画素がこ
の検出した線分に最も近い変換画素であるときは着目変
換画素の値を当該線分の画素の値とする ことを特徴とする縮小変換方法。
The conversion ratio α x of a binary original image smaller than 1 in the horizontal direction and the conversion ratio α y α x smaller than 1 in the vertical direction are 1 / n x > α x ≧ 1 / (n x +1). α y is 1 / ny > α y ≧ 1 / ( ny + 1), where nx and ny are conversion methods to obtain a converted image by reducing by a natural number. When the converted image is mapped to the original image obtains the positional relationship between the target conversion pixels and the original image having original pixels on the conversion image, respectively one side in the horizontal direction and the vertical direction about the position of the target converted pixel is 2 (n x +1) and 2 (n y +1 ) sets a rectangular region consisting of pieces of original pixels, using 4 (n x +1) × ( n y +1) pieces all original pixels or part of the original pixels in the rectangular area, with a specific value neighboring at both ends of said one coordinate direction relative to the number of pixel groups (positive integer where 1 ≦ n ≦ n x the n y) arranged in one coordinate direction n Two pixels are present with different values and pixels having the same value as the pixel group having the specific value is the that 1
When connecting a predetermined value or more in a coordinate direction or a diagonal direction orthogonal to the two coordinate directions, it is determined that a line segment having a predetermined width and a predetermined length exists in the rectangular area. When a line segment exists in the rectangular area and the conversion pixel of interest is the conversion pixel closest to the detected line segment, the value of the conversion pixel of interest is set to the pixel value of the line segment. Conversion method.
【請求項2】上記線分の有無の判定は、原画像におい
て、 特定の値を持つ1つの画素が、左右に値の異なる隣接
画素を持って存在し、特定の値を持つ1つの当該画素と
同一値の画素が上記当該画素と垂直方向あるいは斜め方
向に予め定めた値以上連結するとき、あるいは、 水平方向に同一値の画素が連結し、当該連結の両端に
連結画素とは値の異なる隣接画素を持つような水平連結
画素が存在し、連結する画素数が2以上、nx以下であ
り、当該水平連結画素と同一値の画素が水平連結画素と
垂直方向あるいは斜め方向に予め定めた個数以上連結す
るとき、 原画像に線分があると判定する ことを特徴とする請求項(1)記載の縮小変換方法。
2. The method according to claim 1, wherein one pixel having a specific value exists in the original image with adjacent pixels having different values on the left and right, and one pixel having a specific value exists in the original image. When a pixel having the same value is connected to the pixel in the vertical or oblique direction by a predetermined value or more, or a pixel having the same value is connected in the horizontal direction, and the value of the connected pixel is different at both ends of the connection. There is a horizontally connected pixel having an adjacent pixel, and the number of connected pixels is 2 or more and nx or less, and a pixel having the same value as the horizontally connected pixel is predetermined in the vertical direction or the oblique direction with the horizontally connected pixel. The reduction conversion method according to claim 1, wherein it is determined that a line segment exists in the original image when the number of connected lines is equal to or larger than the number of lines.
【請求項3】前記線分の有無の判定は、原画像におい
て、 特定の値を持つ1つの画素が、上下に値の異なる隣接
画素を持って存在し、特定の値を持つ1つの当該画素と
同一値の画素が上記当該画素と水平方向あるいは斜め方
向に予め定めた値以上連結するとき、あるいは、 垂直方向に同一値の画素が連結し、当該連結の両端に
連結画素とは値の異なる隣接画素を持つような垂直連結
画素が存在し、連結する画素数が2以上、ny以下であ
り、当該垂直連結画素と同一値の画素が垂直連結画素と
水平方向あるいは斜め方向に予め定めた個数以上連結す
るとき、 原画像に線分があると判定する ことを特徴とする請求項(1)記載の縮小変換方法。
3. The method according to claim 1, wherein one pixel having a specific value exists in the original image with adjacent pixels having different values above and below, and one pixel having a specific value exists in the original image. When a pixel having the same value is connected to the pixel by a predetermined value in the horizontal or diagonal direction, or a pixel having the same value is connected in the vertical direction, and the value of the connected pixel is different at both ends of the connection. There is a vertically connected pixel having an adjacent pixel, and the number of connected pixels is 2 or more and ny or less, and a pixel having the same value as the vertical connected pixel is predetermined in the horizontal or oblique direction with the vertical connected pixel. The reduction conversion method according to claim 1, wherein it is determined that a line segment exists in the original image when the number of connected lines is equal to or larger than the number of lines.
【請求項4】前記予め定めた個数は、原画像上で少なく
とも2画素分の大きさであることを特徴とする請求項
(2)または(3)記載の縮小変換方法。
4. The reduction conversion method according to claim 2, wherein the predetermined number is at least two pixels in the original image.
JP1-119539A 1989-02-23 1989-05-12 Reduction conversion method Expired - Lifetime JP3024975B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP1-119539A JP3024975B2 (en) 1989-02-23 1989-05-12 Reduction conversion method
US07/482,660 US5054099A (en) 1989-02-23 1990-02-21 Binary image reduction method
CA002010637A CA2010637C (en) 1989-02-23 1990-02-22 Binary image reduction method
EP90400498A EP0401058B1 (en) 1989-02-23 1990-02-22 Binary image reduction method
DE69029429T DE69029429T2 (en) 1989-02-23 1990-02-22 Binary image reduction process
KR1019900002313A KR940001049B1 (en) 1989-02-23 1990-02-23 Compressing conversion method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP4153389 1989-02-23
JP1-41533 1989-02-23
JP1-119539A JP3024975B2 (en) 1989-02-23 1989-05-12 Reduction conversion method

Publications (2)

Publication Number Publication Date
JPH02290369A JPH02290369A (en) 1990-11-30
JP3024975B2 true JP3024975B2 (en) 2000-03-27

Family

ID=

Similar Documents

Publication Publication Date Title
US6049635A (en) Dotted image area detecting apparatus and dotted image area detecting method
US7689004B2 (en) Method and apparatus for evaluating the quality of document images
JP4065155B2 (en) Image processing apparatus and image processing program
JP4936108B2 (en) Apparatus and method for detecting image formation prevention document
EP0401058A2 (en) Binary image reduction method
EP2315425B1 (en) Compressing and restoring method of image data
US5473444A (en) Image processing device having function of detecting dotted-image area
JP3024975B2 (en) Reduction conversion method
JP4013478B2 (en) Image processing device
JP2616386B2 (en) Image processing device
JP2705934B2 (en) Image reduction conversion method
US6091858A (en) Method of converting continuous tone image into pseudo-halftone binary image
JP4197768B2 (en) Information reading system
JP2754954B2 (en) Image signal correlation detection and interpolation device
JP2525768B2 (en) Image reduction conversion method
JP3789243B2 (en) Image processing apparatus and method
US7177051B2 (en) Halftoning method and apparatus, and computer-readable recording medium in which halftoning program is recorded
JP3480887B2 (en) Image processing apparatus and image processing method
JP2001094951A (en) Scanning line interpolation method
JP2001119575A (en) Image processing unit
JP3451490B2 (en) Image information processing method
JP2019017099A (en) Image processing device, image processing method, and program
US5771313A (en) Apparatus for and method of detecting dotted image area using two types of judging areas
JPH11220618A (en) Color picture processor and color picture processing method
JP4087946B2 (en) Image processing device