JPH0591325A - Printing processing method for picture data - Google Patents

Printing processing method for picture data

Info

Publication number
JPH0591325A
JPH0591325A JP3276568A JP27656891A JPH0591325A JP H0591325 A JPH0591325 A JP H0591325A JP 3276568 A JP3276568 A JP 3276568A JP 27656891 A JP27656891 A JP 27656891A JP H0591325 A JPH0591325 A JP H0591325A
Authority
JP
Japan
Prior art keywords
line
line segment
isolated
segment
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP3276568A
Other languages
Japanese (ja)
Inventor
Shinichi Tanaka
伸一 田中
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP3276568A priority Critical patent/JPH0591325A/en
Publication of JPH0591325A publication Critical patent/JPH0591325A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To automatically repair the disconnection part of picture data like a read ruled line in a facsimile equipment. CONSTITUTION:Each time an isolated segment A in picture data of a noticed line (n) is detected, the presence or the absence of a close segment B which has the start in a position, which is separated from the end of the isolated segment A in the main scanning direction by the prescribed number SM of picture elements or less, on a preceding line (n-1) or a next line (n+1) is discriminated; and in the case of the presence of the close segment B, black picture elements are added to the end of the isolated segment A to extend this segment so that the isolated segment A and the close segment B overlap. The noticed line (n) is successively scanned to repeat this processing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ファクシミリ装置に用
いられる画像データの印字処理方法に係り、更に詳しく
は、読み込まれた罫線などの画像データの断線部分を自
動的に修復するようにしたことに特徴を有したものに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of printing image data used in a facsimile machine, and more particularly, to automatically repair broken lines of image data such as read ruled lines. Relating to those having features.

【0002】[0002]

【従来の技術】一般に、ファクシミリ装置の画像データ
の読み込み処理は、図12の(a),(b)に示したよ
うに、副走査方向T1側に搬送される送信原稿Pに描か
れた画像データDをライン光源Lで照射し、反射光をC
CDなどの固体撮像素子で成るラインセンサSで受け
て、反射光量に応じた信号を主走査方向T2について求
め、求めた電気信号を白黒2値化処理して各ライン毎の
画像データを得るようになっている。このため、描かれ
た罫線DがラインセンサSの読取方向と平行になるよう
に送信原稿Pが副走査されたときには、図13の(a)
に示したように、ラインセンサSによってnライン目が
1本の黒画素として読み込まれて図13の(a’)に示
した正常な画像データが得られる。
2. Description of the Related Art Generally, as shown in FIGS. 12 (a) and 12 (b), an image data read process of a facsimile machine is performed on an image drawn on a transmission original P conveyed in the sub-scanning direction T1. The data D is emitted by the line light source L, and the reflected light is C
A line sensor S composed of a solid-state image sensor such as a CD receives a signal corresponding to the amount of reflected light in the main scanning direction T2, and the obtained electric signal is subjected to black and white binarization to obtain image data for each line. It has become. Therefore, when the transmission document P is sub-scanned so that the drawn ruled line D is parallel to the reading direction of the line sensor S, (a) of FIG.
As shown in FIG. 13, the line sensor S reads the nth line as one black pixel, and the normal image data shown in (a ′) of FIG. 13 is obtained.

【0003】ところが、図13の(b)に示したよう
に、罫線Dの描かれた送信原稿Pが僅かに傾斜してファ
クシミリ装置に読み込まれたり、送信原稿Pの読込状態
は正常でも描かれている罫線Dが傾斜しているような場
合には、ラインセンサSによる読込ラインがn−1とn
の2ラインに渡るため、罫線Dの中央部でn−1ライン
目とnライン目にまたがる部分は、1画素における黒の
占める割合が閾値よりも低くなり、図13の(b’)に
示したように白画素と判別された部分が途切れてしまっ
ていた。
However, as shown in FIG. 13 (b), a transmission document P having a ruled line D is read with a slight inclination and read by a facsimile apparatus, or the transmission document P is drawn even if the reading state is normal. If the ruled line D is inclined, the read lines by the line sensor S are n−1 and n.
13B, the proportion of black in one pixel is lower than the threshold value in the portion of the center of the ruled line D that straddles the n−1th line and the nth line, as shown in (b ′) of FIG. As you can see, the part that was identified as a white pixel was cut off.

【0004】同様に、図13の(c)に示したように、
ラインセンサSの読取方向に対する罫線の傾斜が更に大
きくなると、図13の(c’)に示したように罫線の途
切れる頻度も増加していた。
Similarly, as shown in FIG. 13 (c),
When the inclination of the ruled line with respect to the reading direction of the line sensor S further increased, the frequency of breaks in the ruled line also increased as shown in (c ′) of FIG.

【0005】このため、上記図13の(a)に示した正
常な状態で読み込まれた画像データを印字出力すると、
図14の(a)に示したように正常な印字出力が行なわ
れるが(L1は線幅0.3ミリメートル、L2は線幅
0.15ミリメートル)、図13の(b),(c)に示
した状態で読み込まれた画像データを印字出力すると、
図14の(b),(c)に示したように細い罫線が途切
れてしまうことになり、画像情報の印字品質を著しく低
下させていた。
Therefore, when the image data read in the normal state shown in FIG. 13A is printed out,
Normal printout is performed as shown in (a) of FIG. 14 (L1 has a line width of 0.3 mm and L2 has a line width of 0.15 mm). However, in (b) and (c) of FIG. When the image data read in the state shown is printed out,
As shown in (b) and (c) of FIG. 14, the thin ruled lines are cut off, which significantly deteriorates the print quality of the image information.

【0006】[0006]

【発明が解決しようとする課題】本発明は、上記事情に
鑑みて提案されるもので、読み込まれた罫線などの画像
データの断線部分を自動的に修復するようにして、印字
品質を向上させた画像データの印字処理方法を提供する
ことを目的としている。
SUMMARY OF THE INVENTION The present invention has been proposed in view of the above circumstances, and improves the print quality by automatically repairing broken portions of image data such as read ruled lines. It is an object of the present invention to provide a method for printing image data.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に提案される本発明は、注目ラインの画像データ中の孤
立線分を検出する毎に、該孤立線分の終端から主走査方
向に所定画素数内の前ラインまたは次ライン上に始端を
有する近接線分の有無を判別し、近接線分が存在すると
きには、上記孤立線分と近接線分とがオーバーラップす
るように、孤立線分の終端に黒画素を付加して延長加工
する処理を、注目ラインを順次走査しながら繰り返し実
行するようにされている。ここに、孤立線分とは、注目
ラインの画像データの中で、所定数以上の黒画素の連続
で成り、且つ、前ラインおよび次ラインから孤立した1
本の黒画素の連続で成る線分を言い、また、近接線分も
所定数以上の黒画素の連続で成る線分を言う。
According to the present invention proposed to achieve the above object, every time an isolated line segment in image data of a line of interest is detected, the isolated line segment is moved from the end to the main scanning direction. The presence or absence of a near line segment having a start end on the previous line or the next line within a predetermined number of pixels is determined, and when there is a near line segment, the isolated line segment and the adjacent line segment are overlapped so as to overlap each other. The process of adding a black pixel to the end of the minute and performing extension processing is repeatedly executed while sequentially scanning the line of interest. Here, the isolated line segment is made up of a succession of black pixels of a predetermined number or more in the image data of the target line and is isolated from the previous line and the next line.
A line segment made up of a series of black pixels in a book, and an adjacent line segment is also a line segment made up of a predetermined number or more of black pixels.

【0008】[0008]

【作用】本発明では、注目ラインの画像データの中で、
所定数以上の黒画素の連続で成り、且つ、前ラインおよ
び次ラインから孤立した1本の黒画素で成る孤立線を検
出する毎に、検出した孤立線分の終端から主走査方向に
所定画素数内の前ラインまたは次ライン上に始端を有す
る所定数以上の黒画素の連続で成る近接線分の有無を判
別する。そして、判別の結果、近接線分が存在するとき
には、上記孤立線分と近接線分とがオーバーラップする
ように、孤立線分の終端に黒画素を付加して延長加工す
る処理を、注目ラインを順次変えて繰り返し実行するよ
うにされている。このため、読み込まれた画像データの
罫線などが途切れていても自動的に修復処理されるの
で、印字品質を向上させることができる。
In the present invention, in the image data of the line of interest,
Every time an isolated line consisting of a succession of a predetermined number of black pixels and consisting of one black pixel isolated from the previous line and the next line is detected, a predetermined pixel from the end of the detected isolated line segment in the main scanning direction The presence / absence of a near line segment consisting of a succession of a predetermined number or more of black pixels having a start end on the previous line or the next line in the number is determined. Then, as a result of the determination, when there are adjacent line segments, a process of adding a black pixel to the end of the isolated line segment and performing extension processing is performed so that the isolated line segment and the adjacent line segment overlap each other. Are sequentially changed and executed repeatedly. Therefore, even if the ruled line of the read image data is interrupted, the restoration process is automatically performed, so that the printing quality can be improved.

【0009】[0009]

【実施例】以下に、図面を参照して本発明の実施例を説
明する。図1は、本発明の画像データの印字処理方法の
概略をフローチャートをもって示したもので、図2の
(a)〜(c)に示した画像データの模式図を参照して
動作を説明する。 注目ラインnの画像データの先頭から孤立線分A(後
述するように、連続黒画素数がLM以上の1本の線分)
の有無を判別する(図2の(a)参照)。この判別の結
果、注目ラインn中に孤立線分Aが検出されない場合に
は、注目ラインnの処理を終了し、注目ラインnを1ラ
イン繰り上げて同一の処理を繰り返して行う。 一方、判別の結果、孤立線分Aを検出した場合には、
その都度、孤立線分Aの終端Eから所定画素数SM内の
前ライン(n−1)または次ライン(n+1)上に始端
を有する近接線分B(後述するように、連続黒画素数が
LM以上の1本の線分)の有無を判別する(図2の
(b)参照)。この判別の結果、孤立線分Aに対応した
近接線分Bが検出されない場合には、再び上記の処理
に戻る。 一方、判別の結果、前ライン(n−1)または次ライ
ン(n+1)上に近接線分Bを検出した場合には、孤立
線分Aと近接線分Bとがオーバーラップするように、孤
立線分Aの終端Eに黒画素を付加して延長加工を施す
(図2の(c)参照)。 注目ラインnについて、上記〜の処理を終了する
と、注目ラインnを1ライン繰り上げ、同様の処理を1
ページ分の画像データについて繰り返して行う。(以
上、図1ステップ100〜105参照)。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a flow chart showing the outline of the image data print processing method according to the present invention. The operation will be described with reference to the schematic diagrams of the image data shown in FIGS. An isolated line segment A from the beginning of the image data of the line of interest n (one line segment whose number of continuous black pixels is LM or more, as described later)
It is determined whether or not (see (a) of FIG. 2). As a result of this determination, when the isolated line segment A is not detected in the attention line n, the processing of the attention line n is ended, the attention line n is moved up by one line, and the same processing is repeated. On the other hand, when the isolated line segment A is detected as a result of the discrimination,
Each time, from the end E of the isolated line segment A, the adjacent line segment B having a start end on the previous line (n-1) or the next line (n + 1) within the predetermined number of pixels SM (as described later, the number of continuous black pixels is It is determined whether or not there is one line segment equal to or larger than LM (see (b) of FIG. 2). As a result of this determination, if the adjacent line segment B corresponding to the isolated line segment A is not detected, the process returns to the above. On the other hand, as a result of the discrimination, when the close line segment B is detected on the previous line (n−1) or the next line (n + 1), the isolated line segment A and the close line segment B are overlapped so as to overlap each other. A black pixel is added to the end E of the line segment A and extension processing is performed (see (c) of FIG. 2). When the processes 1 to 3 are completed for the line of interest n, the line of interest n is moved up by one line, and the same process is performed.
Repeatedly for the image data of pages. (These are steps 100 to 105 in FIG. 1).

【0010】このように、本発明の処理方法によれば、
罫線が断線したと見なされるような孤立線分Aと近接線
分Bとを検出したときには、自動的にこれらをオーバー
ラップするように延長加工を施すので、罫線が途切れて
画像品質が劣化することを効果的に防止することができ
る。
Thus, according to the processing method of the present invention,
When an isolated line segment A and a proximate line segment B that are considered to have broken ruled lines are detected, extension processing is automatically performed so as to overlap them, so that the ruled lines are interrupted and the image quality deteriorates. Can be effectively prevented.

【0011】以上は、本発明方法の概略動作を示したも
のであるが、次に、上述した孤立線分A、近接線分Bの
判別処理動作を詳細に示した図3のフローチャートと、
図4〜図8に示した画像データの模式処理図を参照して
本発明方法の動作を詳細に説明する。 1ページ分の画像データについて後述するグリッチ処
理を施し、これによって、画像データの孤立点を除去す
る。 孤立線分Aおよび近接線分Bの連続黒画素数の最小値
LMと、孤立線分Aおよび近接線分Bの間の最大画素数
SMを設定する。 注目ラインn上において連続した黒画素の数をカウン
トし(図4の(a)参照)、このカウント値L1が設定
値LMを越えているか否か判別する。この判別の結果、
図4の(a)に示したように、カウント値L1が設定値
LM以上であれば、その連続黒画素が孤立した1本の連
続黒画素であるか否かの判別処理(ステップ205)に
進むが、図4の(b)に示したようにカウント値L1’
が設定値LMを越えていないときには、その連続黒画素
が孤立線分にはなり得ないと判別して次の孤立線分の判
別処理(ステップ212)に進む。 上記の処理で判別されたL1個の連続黒画素の内、
前ライン(n−1)および次ライン(n+1)から孤立
(上下、および、斜め上、斜め下の画素が白の部分)し
た連続黒画素数を終端E側からカウントし(図5の
(a)参照)、この連続黒画素数のカウント値L2が設
定値LMを越えているか否か判別する。この判別の結
果、図5の(a)に示したように、カウント値L2が設
定値LM以上であれば、上記の処理によって検出され
たL1の連続黒画素を孤立線分Aとして定め、この後、
近接線分判別のための処理(ステップ207)に進む
が、図5の(b)に示したように、カウント値L2’が
設定値LMを越えていないときには、その連続黒画素が
孤立線分にはなり得ないと判別して次の孤立線分の判別
処理(ステップ212)に進む。 上記,の処理によって得られた孤立線分Aの終端
Eから、前ライン(n−1)または次ライン(n+1)
上の連続黒画素の始端までの画素数S1をカウントし
(図6の(a),(b)参照)、このカウント値S1が
設定値SM以下であるか否かを判別する。この判別の結
果、図6の(a)に示したように、孤立線分Aの終端E
から前ラインの連続黒画素の始端Pまでのカウント値S
1が設定値SM以下である場合や、図6の(b)に示し
たように、孤立線分Aの終端Eから次ラインの連続黒画
素の始端Nまでのカウント値S1’が設定値SM以下で
ある場合には連続黒画素数の判別処理(ステップ20
9)に進むが、図6の(c)に示したように、孤立線分
Aの終端Eから前ライン(n−1)の連続黒画素の始端
Pまでのカウント値S1”が設定値SMを越える場合に
は、近接線分にはなり得ないと判別して次の孤立線分の
判別処理(ステップ212)に進む。 上記の処理において、前ラインまたは次ライン上に
連続黒画素が検出された場合には、その連続黒画素数を
カウントし(図7の(a)参照)、このカウント値L3
が設定値LM以上であるか否か判別する。この判別の結
果、図7の(a)に示したように、前ライン(n−1)
の連続黒画素数L3が設定値LM以上である場合や、図
7の(b)に示したように、次ライン(n+1)の連続
黒画素数L3’が設定値LM以上である場合には、連続
黒画素を先の孤立線分Aに対応した近接線分Bとして画
像データの延長処理(ステップ211)に進むが、図7
の(c)に示したように、前ライン(n−1)の連続黒
画素数L3”が設定値LMより少ない場合には、近接線
分にはなり得ないと判別して次の孤立線分の判別処理
(ステップ212)に進む。 上記の処理によって近接線分Bが検出されると、図
8の(a),(b)に示したように、孤立線分Aと前ラ
インまたは次ラインの近接線分Bとがα画素(本実施例
では2画素)だけオーバーラップするように、孤立線分
Aの終端Eに黒画素を順次付加し、これら一連の処理に
よって、一つの孤立線分Aと近接線分Bとの断線の修復
処理が完了する。 この後、黒画素のカウント値をリセットし、再び上記
の処理に戻って注目ラインnの処理が終了するまで同
一処理を繰り返して行う。このようにして、注目ライン
の処理が終了すれば、注目ライン番号nを1だけインク
リメントした後に、再び上記の処理に戻って1ページ
分の画像データの処理が終了するまで同一処理を繰り返
して行う。(以上、図3ステップ200〜214参
照)。
The above is the outline of the operation of the method of the present invention. Next, the flowchart of FIG. 3 showing in detail the operation of the above-described discriminating process of the isolated line segment A and the adjacent line segment B,
The operation of the method of the present invention will be described in detail with reference to the schematic processing diagrams of the image data shown in FIGS. Glitch processing, which will be described later, is performed on the image data for one page, and thereby the isolated points of the image data are removed. The minimum value LM of the number of continuous black pixels of the isolated line segment A and the adjacent line segment B and the maximum number of pixels SM between the isolated line segment A and the adjacent line segment B are set. The number of consecutive black pixels on the line of interest n is counted (see (a) of FIG. 4), and it is determined whether or not the count value L1 exceeds the set value LM. As a result of this determination,
As shown in FIG. 4A, if the count value L1 is equal to or larger than the set value LM, the determination processing (step 205) is performed to determine whether the continuous black pixel is one isolated continuous black pixel. However, as shown in FIG. 4B, the count value L1 ′
Does not exceed the set value LM, it is determined that the continuous black pixel cannot be an isolated line segment, and the process proceeds to the next isolated line segment determination process (step 212). Of the L1 continuous black pixels determined by the above process,
The number of continuous black pixels isolated from the previous line (n-1) and the next line (n + 1) (the upper and lower and diagonally upper and lower diagonal pixels are white) is counted from the terminal E side ((a in FIG. 5). )), It is determined whether or not the count value L2 of the number of continuous black pixels exceeds the set value LM. As a result of this determination, as shown in FIG. 5A, if the count value L2 is greater than or equal to the set value LM, the continuous black pixel of L1 detected by the above process is set as the isolated line segment A, and rear,
The process proceeds to the process for determining the adjacent line segment (step 207), but as shown in FIG. 5B, when the count value L2 ′ does not exceed the set value LM, the continuous black pixel is an isolated line segment. When it is determined that the line segment cannot be obtained, the process proceeds to the next isolated line segment determination process (step 212). From the end E of the isolated line segment A obtained by the above process, the previous line (n-1) or the next line (n + 1)
The number S1 of pixels up to the start end of the upper continuous black pixels is counted (see (a) and (b) of FIG. 6), and it is determined whether or not the count value S1 is less than or equal to the set value SM. As a result of this determination, as shown in FIG. 6A, the end E of the isolated line segment A
To the start value P of continuous black pixels on the previous line to the count value S
1 is less than or equal to the set value SM, or, as shown in FIG. 6B, the count value S1 ′ from the end E of the isolated line segment A to the start end N of the continuous black pixels of the next line is the set value SM. If it is less than or equal to:
9), as shown in FIG. 6C, the count value S1 ″ from the end E of the isolated line segment A to the start P of the continuous black pixels of the previous line (n−1) is the set value SM. If it exceeds, it is determined that the line segment cannot be a near line segment and the process proceeds to the next isolated line segment determination process (step 212) In the above process, continuous black pixels are detected on the previous line or the next line. If it is, the number of continuous black pixels is counted (see (a) of FIG. 7), and the count value L3
Is greater than or equal to the set value LM. As a result of this determination, as shown in FIG. 7A, the previous line (n-1)
7 is greater than or equal to the set value LM, or as shown in FIG. 7B, the consecutive black pixel number L3 ′ in the next line (n + 1) is greater than or equal to the set value LM. , The continuous black pixel is set as the adjacent line segment B corresponding to the isolated line segment A, and the process proceeds to the image data extension process (step 211).
(C), if the number L3 ″ of continuous black pixels in the previous line (n−1) is smaller than the set value LM, it is determined that the line segment cannot be a neighboring line segment, and the next isolated line is determined. If the proximity line segment B is detected by the above process, the isolated line segment A and the previous line or the next line are detected as shown in (a) and (b) of FIG. Black pixels are sequentially added to the end E of the isolated line segment A so that the adjacent line segment B of the line overlaps by α pixels (two pixels in this embodiment), and one isolated line is obtained by the series of these processes. The process of repairing the disconnection between the segment A and the adjacent line segment B is completed.After that, the count value of the black pixels is reset, the process returns to the above process, and the same process is repeated until the process of the attention line n is completed. In this way, when the processing of the line of interest is completed, the line of interest number After incrementing n by 1, the process is returned to the above process, and the same process is repeated until the processing of the image data for one page is completed (above, refer to steps 200 to 214 in FIG. 3).

【0012】図9の(a),(b)は、このような本発
明の印字処理によって罫線の遮断が修復される様子を示
したもので、読み込まれた画像データが図9の(a)に
示したようにC1,C2で断線している場合でも、本発
明の印字処理を施すことによって図9の(b)に示した
ようにオーバーラップされて外見上接続されたように印
字出力される。また、図10の(a),(b)も、同様
に本発明の印字処理方法によって罫線の遮断が修復され
様子を示したもので、図9の場合に比べて、罫線の傾斜
が大きい場合であっても、効果的に罫線の遮断部分が修
復されることが分かる。
9 (a) and 9 (b) show the manner in which the interruption of the ruled line is restored by the printing process of the present invention, and the read image data is shown in FIG. 9 (a). Even if the wire is disconnected at C1 and C2 as shown in FIG. 9, the print processing of the present invention causes the print output to be overlapped as shown in FIG. It 10 (a) and 10 (b) also show how the interruption of the ruled line is restored by the print processing method of the present invention, and when the inclination of the ruled line is larger than that in the case of FIG. However, it can be seen that even the broken portion of the ruled line is effectively repaired.

【0013】尚、断線部分が設定値SMより長い場合
や、孤立線分Aに近接した線分が設定値LMより短かい
ために近接線分Bとして判別されないような場合には、
本発明の罫線の延長処理が行われないが、設定値LMお
よびSMの値を適当に調整することによって、画像デー
タに合致した効果的な断線修復処理を行わせることが可
能となる。また、上記説明では、孤立線分Aの設定値L
Mと近接線分Bの設定値LMとを同一としているが、必
要に応じて異なった値に設定することも可能である。
Incidentally, when the broken line portion is longer than the set value SM, or when the line segment close to the isolated line segment A is shorter than the set value LM and cannot be discriminated as the close line segment B,
Although the ruled line extension process of the present invention is not performed, it is possible to perform an effective disconnection repair process that matches the image data by appropriately adjusting the set values LM and SM. Further, in the above description, the set value L of the isolated line segment A is
Although M and the set value LM of the adjacent line segment B are the same, they can be set to different values as necessary.

【0014】最後に、上述した本発明の印字処理を行う
に当たって予め実行されるグリッチ処理について説明す
る。ここに、グリッチ(GRITTY)とは、図11の(a)
に示したように、読取ラインのnライン目とn+1ライ
ン目にまたがった罫線Kの画像データを読み込むような
場合に、罫線Kの線幅の変動に起因して線幅が僅かに減
少した部分で、図11の(b)に示したような白画素が
混入(白画素として読み取られる)する現象を言い(図
のW1〜W3)、このようなグリッチが発生すると、本
来黒画素の連続であるべき罫線Kに白画素が混入して罫
線Kが断線することになる。このため罫線Kが連続して
おれば孤立線分Aや近接線分Bとなり得るときでも、グ
リッチが生じると、連続黒画素が所定画素数に満たない
ために孤立線分Aや近接線分Bと見なされないことが頻
繁に生じて、本発明の印字処理を効果的に実施すること
ができなくなる。
Lastly, a glitch process which is executed in advance in performing the above-described printing process of the present invention will be described. Here, the glitch (GRITTY) means (a) in FIG.
As shown in FIG. 5, when the image data of the ruled line K straddling the nth line and the (n + 1) th line of the read line is read, the line width is slightly reduced due to the variation of the line width of the ruled line K. 11B shows a phenomenon in which white pixels are mixed (read as white pixels) as shown in FIG. 11B (W1 to W3 in the figure). When such a glitch occurs, the black pixels are originally continuous. White pixels are mixed in the ruled line K that should be present, and the ruled line K is broken. Therefore, even if the ruled lines K are continuous, the isolated line segment A or the adjacent line segment B may be formed, but if a glitch occurs, the number of continuous black pixels is less than a predetermined number of pixels, so that the isolated line segment A or the adjacent line segment B is not formed. It often happens that the printing process of the present invention is not performed effectively.

【0015】そこで、本実施例では、図11の(b)に
示したように、注目ラインn上の連続黒画素が1本の孤
立した線分であれば、孤立点W1,W2,W3について
前後の画素に合わせるように画素を変更するグリッチ処
理を施すようにしており、このグリッチ処理によって図
11の(c)に示したように白画素の孤立点を除去した
罫線Kの画像データを求めた後に、本発明の印字処理を
施すようにしている。
Therefore, in the present embodiment, as shown in FIG. 11B, if the continuous black pixel on the line of interest n is one isolated line segment, the isolated points W1, W2 and W3 are determined. A glitch process for changing the pixel is performed so as to match the preceding and succeeding pixels, and the image data of the ruled line K from which the isolated points of the white pixels are removed is obtained by this glitch process as shown in FIG. After that, the printing process of the present invention is performed.

【0016】尚、上記説明では、連続黒画素が1本の孤
立した線分であるときのグリッチ処理について述べた
が、このような処理とは異なって、例えば、連続黒画素
が1本の孤立した線分でないときには、孤立点W1,W
2,W3の前後および上下の画素を参照して、黒画素が
3以上であればその画素を黒画素に置き換え、黒画素お
よび白画素が2個づつであれば画素の置き換えを行わず
そのままの状態を維持し、逆に白画素が3以上であれ
ば、その画素を白画素に置き換えるようなグリッチ処理
を施すことも可能である。
In the above description, the glitch processing when the continuous black pixel is one isolated line segment has been described. However, unlike such processing, for example, the continuous black pixel has one isolated black pixel. If the line segment is not a broken line, isolated points W1 and W
2. Referring to the pixels before and after and W3 and above and below, if there are three or more black pixels, the pixel is replaced with a black pixel, and if there are two black pixels and two white pixels, the pixel is not replaced and is left as it is. If the state is maintained and conversely the number of white pixels is 3 or more, it is also possible to perform a glitch process for replacing the pixel with a white pixel.

【0017】[0017]

【発明の効果】以上の説明から理解されるように、本発
明の画像データの印字処理方法によれば、送信原稿に記
載された罫線などが傾斜して読み込まれたために、得ら
れた画像データが途切れるような場合であっても、途切
れた部分を修復するように自動的に延長処理が施される
ので、記録紙の印字品質を著しく向上させることができ
る。
As can be understood from the above description, according to the image data print processing method of the present invention, since the ruled lines and the like described in the transmission original are read with an inclination, the obtained image data is obtained. Even if there is a break, the extension processing is automatically performed so as to repair the broken part, so that the printing quality of the recording paper can be significantly improved.

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

【図1】本発明の画像データの印字処理方法の概略を説
明するフローチャートである。
FIG. 1 is a flowchart illustrating an outline of a print processing method for image data according to the present invention.

【図2】(a)〜(c)は、本発明方法の概略動作を模
式的に示した説明図である。
2 (a) to (c) are explanatory views schematically showing a schematic operation of the method of the present invention.

【図3】本発明の画像データの印字処理方法を詳細に説
明するフローチャートである。
FIG. 3 is a flowchart illustrating in detail a method of printing image data according to the present invention.

【図4】(a),(b)は、孤立線分の判別のために、
連続黒画素数を求める動作を模式的に示した説明図であ
る。
4 (a) and (b) are for distinguishing an isolated line segment,
It is explanatory drawing which showed the operation | movement which calculates | requires the continuous black pixel number typically.

【図5】(a),(b)は、孤立線分の判別のために、
孤立した連続黒画素数を求める動作を模式的に示した説
明図である。
5 (a) and 5 (b) are for discriminating an isolated line segment.
It is explanatory drawing which showed typically the operation | movement which calculates | requires the isolated continuous black pixel number.

【図6】(a)〜(c)は、近接線分の判別のために、
孤立線分から所定範囲内の黒画素の有無を判別する動作
を模式的に示した説明図である。
6 (a) to 6 (c) are diagrams for discriminating adjacent line segments;
It is explanatory drawing which showed typically the operation | movement which determines the presence or absence of the black pixel within a predetermined range from an isolated line segment.

【図7】(a)〜(c)は、近接線分の判別のために、
連続黒画素数を求める動作を模式的に示した説明図であ
る。
7 (a) to 7 (c) are diagrams for discriminating adjacent line segments.
It is explanatory drawing which showed the operation | movement which calculates | requires the continuous black pixel number typically.

【図8】(a),(b)は、孤立線分および近接線分を
検出した場合の延長処理を模式的に示した説明図であ
る。
8A and 8B are explanatory diagrams schematically showing extension processing when an isolated line segment and an adjacent line segment are detected.

【図9】(a),(b)は、画像データに本発明の印字
処理を施した場合の罫線の修復される様子の説明図であ
る。
9A and 9B are explanatory diagrams showing how ruled lines are restored when image data is printed according to the present invention.

【図10】(a),(b)は、画像データに本発明の印
字処理を施した場合の罫線の修復される様子の説明図で
ある。
10A and 10B are explanatory diagrams showing how ruled lines are restored when the print processing of the present invention is applied to image data.

【図11】(a)〜(c)は、グリッチおよびグリッチ
処理の説明図である。
11A to 11C are explanatory diagrams of a glitch and a glitch process.

【図12】(a),(b)は、送信原稿に記載された画
像データの読み込み方法の説明図である。
12A and 12B are explanatory diagrams of a method of reading image data described in a transmission document.

【図13】(a),(a’)〜(c),(c’)は、罫
線が傾斜して読み込まれた場合に、画像データが途切れ
る原理説明図である。
13 (a), (a ') to (c), (c') are diagrams for explaining the principle of interruption of image data when a ruled line is read with an inclination.

【図14】(a)〜(c)は、罫線が傾斜して読み込ま
れた場合に、画像データが途切れる状態を示した説明図
である。
14A to 14C are explanatory diagrams showing a state in which image data is interrupted when a ruled line is read while being inclined.

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

A・・・孤立線分 B・・・近接線分 n・・・注目ライン n−1・・・前ライン n+1・・・次ライン A ... Isolated line segment B ... Proximity line segment n ... Line of interest n-1 ... Previous line n + 1 ... Next line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】注目ラインの画像データ中の孤立線分を検
出する毎に、該孤立線分の終端から主走査方向に所定画
素数内の前ラインまたは次ライン上に始端を有する近接
線分の有無を判別し、近接線分が存在するときには、上
記孤立線分と近接線分とがオーバーラップするように、
孤立線分の終端に黒画素を付加して延長加工する処理
を、注目ラインを順次走査しながら繰り返し行う画像デ
ータの印字処理方法。
1. Whenever an isolated line segment in image data of a line of interest is detected, a proximity line segment having a start end on a previous line or a next line within a predetermined number of pixels in the main scanning direction from the end of the isolated line segment. If there is a near line segment, so that the isolated line segment and the near line segment overlap,
A method for printing image data in which black pixels are added to the end of an isolated line segment and extended processing is performed repeatedly while sequentially scanning the target line.
JP3276568A 1991-09-27 1991-09-27 Printing processing method for picture data Withdrawn JPH0591325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3276568A JPH0591325A (en) 1991-09-27 1991-09-27 Printing processing method for picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3276568A JPH0591325A (en) 1991-09-27 1991-09-27 Printing processing method for picture data

Publications (1)

Publication Number Publication Date
JPH0591325A true JPH0591325A (en) 1993-04-09

Family

ID=17571297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3276568A Withdrawn JPH0591325A (en) 1991-09-27 1991-09-27 Printing processing method for picture data

Country Status (1)

Country Link
JP (1) JPH0591325A (en)

Similar Documents

Publication Publication Date Title
US5214470A (en) Method and apparatus for compensating for dirt or etched areas on a document platen
US5687006A (en) Image regenerating apparatus having improved character resolution and pattern gradation
JP3706800B2 (en) Image processing system, method, and storage medium
JP3807891B2 (en) Image information area discrimination method and apparatus
EP0618717A2 (en) Apparatus for distinguishing image portions through image expansion
JPH0591325A (en) Printing processing method for picture data
JP3073837B2 (en) Image region separation device and image region separation method
JPH0721313A (en) Image processor
JP3480887B2 (en) Image processing apparatus and image processing method
JP3426747B2 (en) Color halftone area determination device
JPH0730752A (en) Image area discriminating device
JP3336046B2 (en) Image area separation device
JPH06303428A (en) Image reader
JP7114768B2 (en) Image reading device and image forming device
JP3251119B2 (en) Image processing device
JP3629959B2 (en) Image recognition device
JP6681033B2 (en) Image processing device
JP3451490B2 (en) Image information processing method
JP3080110B2 (en) Image reading device
JPH09130600A (en) Image reader
JP2006025090A (en) Image forming apparatus and method
JPH09247436A (en) Image area discrimination device and image processor
JP3748366B2 (en) Binarization and binarization threshold determination method
JP3277461B2 (en) Image processing device
JP5875551B2 (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981203