JPH03224071A - Line thinning system for binary image - Google Patents

Line thinning system for binary image

Info

Publication number
JPH03224071A
JPH03224071A JP1984490A JP1984490A JPH03224071A JP H03224071 A JPH03224071 A JP H03224071A JP 1984490 A JP1984490 A JP 1984490A JP 1984490 A JP1984490 A JP 1984490A JP H03224071 A JPH03224071 A JP H03224071A
Authority
JP
Japan
Prior art keywords
thinning
screen
line
image
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1984490A
Other languages
Japanese (ja)
Inventor
Katsuo Fukazawa
克夫 深沢
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1984490A priority Critical patent/JPH03224071A/en
Publication of JPH03224071A publication Critical patent/JPH03224071A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To prevent the shift of a line thinned image at a boundary part by performing the parallel line thinning processing only in an area where the boundary parts of plural divided screens overlap with each other and thinning the lines in sequence in other areas. CONSTITUTION:A screen dividing means 11 divides the data on an image data store part 14 storing the image data on an entire screen into the pieces of a prescribed size so that these divided data overlap each other at a boundary part. Then the image data included in an area of a divided screen to undergo the line thinning processing is loaded into a memory 16. A parallel line thinning processing means 12 applies the parallel line thinning processing to the data on the overlapping areas. Then a sequential line thinning processing means 13 is started to apply the sequential line thinning processing to the data on the parts except the overlapping area in a divided area. In this case, the line thinning result obtained in the overlapping area by the means 12 is stored in the memory 16. When the contour of a graphic obtained via the sequential line thinning processing is tracked, the continuous reference is given to the line thinning result of the overlapping area. Thus the shift of a thin line is prevented.

Description

【発明の詳細な説明】 [概要] 処理対象画面を複数の領域に分割して、各分割画面の画
像について細線化を行って得られた各細線化分割画像を
統合して全体の細線化画像を得る二値画像の細線化方式
に関し。
[Detailed Description of the Invention] [Summary] A screen to be processed is divided into a plurality of regions, and each thinned divided image obtained by thinning the image of each divided screen is integrated to obtain an entire thinned image. Concerning a thinning method for binary images to obtain .

画面分割による細線化を行う際に逐次型細線化処理を使
用しながら分割画面の重畳領域における細線化の結果と
、隣接する分割画面の細線化の結果にずれが生しない二
値画像の細線化方式を提供することを目的とし 画面全体のイメージデータをイメージデータ格納部に備
え、処理部は、隣接する分割画像と重畳領域を持つよう
画面全体を所定の大きさに分割して分割テーブルに格納
する画面分割手段と1分割画面のイメージデータをメモ
リに取り出して各分副画面の重畳領域の画像について並
列型at線化を行う並列型細線化処理手段と、各分割画
面の重畳領域を除く領域について逐次型の細線化を行う
と共に上記並列型細線化により得られた処理結果との結
合を行う逐次型細線化処理手段とを備えるよう構成する
Line thinning of a binary image using sequential thinning processing when performing line thinning by splitting the screen so that there is no discrepancy between the thinning result in the overlapping area of the split screen and the thinning result of the adjacent split screen. For the purpose of providing a method, the image data of the entire screen is stored in the image data storage section, and the processing section divides the entire screen into predetermined sizes so as to have areas that overlap with adjacent divided images and stores them in a division table. a parallel thinning processing means that retrieves the image data of one divided screen into a memory and performs parallel AT line processing on the image of the overlapping area of each sub-screen; and an area excluding the overlapping area of each divided screen. The apparatus is configured to include a sequential thinning processing means for performing sequential thinning on the line and combining the processing results obtained by the parallel thinning.

[産業上の利用分野J 本発明は処理対象画面を複数の領域に分割して。[Industrial Application Field J The present invention divides the processing target screen into multiple areas.

各分割画面の画像について細線化を行って得られた各細
線化分割画像を統合して全体の細線化画像を得る二値画
像の細線化方式に関する。
The present invention relates to a binary image thinning method that obtains an entire thinned image by integrating thinned divided images obtained by thinning each split screen image.

近年2紙に書かれた図面や文書等を計算機に入力して活
用することが盛んに行われるようになった。特にスキャ
ナ等で図面を読み込んだ後、自動的に折れ線近似を行っ
て計算機の入力とする凹面入力装置が用いられるように
なってきた。このような装置において、細線化処理は折
れ線近似を行うための前処理の手法の一つとして重要で
ある。
In recent years, it has become popular to input drawings, documents, etc. written on paper into computers and utilize them. In particular, concave input devices have come into use that automatically perform polygonal line approximation after reading a drawing using a scanner or the like and provide input to a computer. In such devices, line thinning processing is important as one of the preprocessing techniques for performing polygonal line approximation.

細線化処理とは、スキャナ等で読み込んだ時に得られる
イメージデータを、その線幅が1になるように細めてい
く処理であるが、イメージデータ全体を一度に細線化し
ようとすると、当然のことだがそのイメージデータをロ
ードするためのメモリが必要となる。この時1例えばA
3サイズの図面を400dpi  (ドツト・パー・イ
ンチ)で入力すると約4M(メガ)バイト、AOサイズ
の図面を400dpiで入力すると31Mハイドのメモ
リが必要になる。このため、近年、入力イメージデータ
を複数の領域に分割しておのおのを個別にメモリにロー
ドすることにより必要なメモリ量を削減する方法が用い
られるようになった。
Line thinning is a process that thins the image data obtained when reading it with a scanner etc. so that the line width becomes 1, but if you try to thin the entire image data at once, However, memory is required to load the image data. At this time 1 For example, A
Inputting 3 sizes of drawings at 400 dpi (dots per inch) requires approximately 4 M (mega) bytes, and inputting AO size drawings at 400 dpi requires 31 M bytes of memory. For this reason, in recent years, methods have been used to reduce the amount of memory required by dividing input image data into a plurality of regions and loading each region individually into memory.

ところが、この画面分割による細線化をした後分割され
た画像を相互に接続する時に問題が生じその改善が望ま
れている。
However, after thinning the screen by dividing the screen, a problem arises when connecting the divided images to each other, and an improvement is desired.

[従来の技術] 第7図は分割細線化の例9第8図は重畳領域を設けた画
面分割の説明図、第9図は重畳領域を設けた分割画面の
細線化の例、第10図は細線化の概要図、第11図は逐
次型細線化方式の問題説明図である。
[Prior Art] Fig. 7 is an example of dividing line thinning; Fig. 8 is an explanatory diagram of screen division with an overlapping area provided; Fig. 9 is an example of dividing line thinning with an overlapping area provided; Fig. 10. 11 is a schematic diagram of line thinning, and FIG. 11 is an explanatory diagram of problems in the sequential type line thinning method.

従来1画面中の画像を細線化する為には1画像メモリに
図面イメージデータ全体をロードし、このイメージデー
タに対して一度に細線化を行っていた。この方法は一番
簡単であるが、上記したように大きな図面を400dp
 iで入力した時イメージデータを格納するメモリとし
て大容量が必要となる。
Conventionally, in order to thin an image on one screen, the entire drawing image data was loaded into one image memory, and line thinning was performed on this image data all at once. This method is the simplest, but as mentioned above, you can print large drawings at 400dp.
When input with i, a large capacity memory is required to store the image data.

この方法ではメモリ量が多いため装置のコストが増大す
るので2画面全体を一度にメモリにロードするのではな
く、イメージデータを適当な大きさに分割し1個別にメ
モリにロードして処理を行う手法が用いられるようにな
った。イメージデータを分割することにより、必要なメ
モリ量は分割したひとつひとつのイメージデータの必要
量だけあればよいので装置に必要なメモリ量を従来のも
のに比べ大幅に削減することが可能となる。
This method requires a large amount of memory, which increases the cost of the device, so rather than loading the entire two screens into memory at once, the image data is divided into appropriate sizes and loaded into memory individually for processing. method is now in use. By dividing the image data, the amount of memory required for each piece of divided image data is sufficient, making it possible to significantly reduce the amount of memory required for the device compared to conventional systems.

両面分割を行うためには2分割して処理を行った後処理
結果を再び統合することが必要となる。
In order to perform double-sided division, it is necessary to divide the image into two, perform processing, and then integrate the processing results again.

この分割の方法を第7図により説明すると、A。This division method will be explained with reference to FIG.

に示す画面を上・下の2つに単純に分割してそれぞれで
細線化を実行した場合、B、に示すように分割された画
像の端部の線が細線化処理により消えたり、線の位置が
不安定になる(線の最端部はその先のデータが無いため
細線化処理が困難)。
If the screen shown in Figure B is simply divided into upper and lower parts and line thinning is performed on each, the lines at the edges of the divided image may disappear due to the thinning process, or the lines may be thinned, as shown in Figure B. The position becomes unstable (thinning is difficult at the end of the line because there is no data beyond that point).

この場合1分割した2つの画面を統合する時に2つの画
面の接続する位置に細線が無くなったり。
In this case, when merging two screens that have been split into one, a thin line may disappear at the position where the two screens connect.

細線があったとしても位置が合わなくなるという問題が
生じた。
A problem arose in that even if there were thin lines, the positions would not match.

これを解決するための手法の一つに1発明の名称「画面
分割による線図形折線近似化方式」 (特開昭63−1
18887号公報参照)が提案されている。
One of the methods to solve this problem is the title of the invention: ``Line figure broken line approximation method by screen division''
18887) has been proposed.

この方式を第8図及び第9図により説明すると。This method will be explained with reference to FIGS. 8 and 9.

第8図のA、に示すように画面が複数に分割する時、各
分割画面の境界線に対して画像の最大細線化回数(画像
の表現に使用される線幅に対応)以上の幅dを持つ重畳
領域を設けておく。A、の例では5画面全体を■乃至■
の3つに分割した場合であり、各分割画面は境界線より
さらに幅dだけ広い部分を含めた領域のイメージデータ
について細線化を行う(従って互いに境界線を中心にし
て2dの幅の共通の重畳領域を持つことになる)。
When the screen is divided into multiple parts as shown in A of Fig. 8, the width d of the border line of each divided screen is equal to or greater than the maximum number of times the image is thinned (corresponding to the line width used to express the image). An overlapping area with . In example A, the entire 5 screens are
This is the case where the image data is divided into three parts, and each divided screen thins the image data of the area including the part wider by width d than the border line (therefore, the image data is divided into three parts with a common width of 2d around the border line). (will have an overlapping area).

すなわち、各隣接する分割画面においてそれぞれが幅d
だけ広い領域のイメージデータについて細線化処理を行
う。第8図B、には左側、右側及び下側に隣接画面があ
る時の分割画面の例が示されそれぞれ隣接画面に対して
重畳領域が設けられている。
That is, each adjacent split screen has a width d.
Line thinning processing is performed on image data in a wide area. FIG. 8B shows an example of a split screen when there are adjacent screens on the left side, right side, and bottom side, and overlapping areas are provided for each adjacent screen.

このような重畳領域を設けた場合の分割の例を第9図に
より説明すると1図の左側に示す全体画面90を重畳領
域を設けて2分割すると1図の境界線より幅dだけ相互
に拡大した重畳領域を持つように分割されて、2つの画
面91.92が得られる。次にこの分割画面91.92
の画像に対してそれぞれ細線化処理を行うと第9図の右
側に示すように細線化画面91’、92が得られる。
An example of division when such an overlapping area is provided is explained with reference to FIG. 9. When the entire screen 90 shown on the left side of FIG. The screen is divided into two screens 91 and 92 having overlapping areas. Next this split screen 91.92
When thinning processing is performed on each of the images, thinning screens 91' and 92 are obtained as shown on the right side of FIG.

この図に示されるように境界上で細線化画像が一致し、
上記第7図の重畳領域を設けない場合に比べて良好な結
果が得られる。
The thinned images match on the boundary as shown in this figure,
A better result can be obtained than in the case of not providing the overlapping region shown in FIG. 7 above.

一方、イメージデータを細線化する手法には従来大きく
わけて逐次型細線化と並列型細線化の2つがあり、第1
0図に細線化の概要図が示されている。
On the other hand, there are two conventional methods for thinning image data: sequential thinning and parallel thinning.
A schematic diagram of line thinning is shown in Figure 0.

逐次型細線化は、第1O図のA、に示すように。Sequential thinning is shown at A in FIG. 1O.

図形の輪郭を追跡しながらマスク演算を行って輪郭画素
を削ってゆく方式である。図中の矢印が輪郭追跡をする
様子を示す。なお、マスク演算とは。
This method performs mask calculations while tracing the outline of a figure to remove outline pixels. The arrows in the figure indicate contour tracking. Furthermore, what is mask operation?

3×3(中心ドツトその中心ドツトに対して上。3x3 (center dot up against that center dot.

下、左、右および4つの斜め方向)のマスクパターンを
用いて1画像の注目画素に対して周囲の画素(ドツト)
の分布を照合演算して、線の形状や幅を検出するもので
ある。
Using mask patterns (down, left, right, and four diagonal directions), surrounding pixels (dots) are used for the pixel of interest in one image.
The shape and width of the line are detected by comparing and calculating the distribution of the lines.

そして1図形の線の軌跡に従って各ドツトを1つずつ調
べ、線幅が複数ドツトで構成すると1ドνトづつ削るこ
とにより行う。
Then, each dot is examined one by one according to the line locus of one figure, and if the line width consists of a plurality of dots, the dots are removed one by one.

この逐次型細線化処理の特徴は、演算量が比較的に少な
いので、汎用プロセッサ上で実現しやすいことである。
A feature of this sequential thinning process is that the amount of calculation is relatively small, so it is easy to implement on a general-purpose processor.

次に並列型細線化は、第10図B、に概略を示すように
9図形を含む画面(画像)の最上部の水平方向に、マス
クパターンを用いて左端から右端へ走査(スキャン)し
ながら演算を行い、これが終了するとlドツト下の水平
方向について同じ走査・演算を行って、最下部まで順次
同様の処理を繰り返しながら、線幅の検出と細線化の処
理を行う方式である。この方式では、処理に影響を与え
ないように細線化途中の結果は9例えば別のイメージメ
モリ等に保存される。細線化結果の例を第10図C1に
示す。但しこの図は縮小化された図である。
Next, parallel thinning is performed by scanning the top of the screen (image) containing nine figures in the horizontal direction from the left end to the right end using a mask pattern, as schematically shown in Figure 10B. In this method, the calculation is performed, and when the calculation is completed, the same scanning and calculation is performed in the horizontal direction below the L dot, and the same process is sequentially repeated until the bottom of the dot, and the line width is detected and the line thinning process is performed. In this method, the results of line thinning are stored in, for example, another image memory, so as not to affect the processing. An example of the thinning result is shown in FIG. 10 C1. However, this figure is a scaled-down figure.

この並列型細線化は、処理が単純であり、演算量が多い
ためハードウェア化に適している。また。
This parallel thinning is suitable for hardware implementation because the processing is simple and the amount of calculation is large. Also.

細線化途中の画像が処理に影響を与えないようになって
いるので、細線化画像は常に同じものになっている。(
これは、同しイメージメモリ上に細線化の途中結果を書
込むと、以前の段階の図形が消えてしまい、必ずしも細
線化の結果が同じにならない。) [発明が解決しようとする課題] 上記した従来の画面を複数の領域に分割して細線化を行
う方式では、細線化処理の後で分割画面を統合した時に
隣接する画面の線の位置を常に一致させるため、細線化
の結果が常に一定している並列型の細線化方式を行う必
要があるが、汎用プロセッサで実現したときは処理時間
がかかるという問題があった。
Since the image that is being thinned does not affect the processing, the thinned image is always the same. (
This is because if an intermediate result of line thinning is written into the same image memory, the figure at the previous stage will disappear, and the result of line thinning will not necessarily be the same. ) [Problems to be Solved by the Invention] In the above-described conventional method of dividing a screen into multiple areas and thinning the lines, it is difficult to determine the position of lines on adjacent screens when the divided screens are integrated after the thinning process. In order to always match them, it is necessary to use a parallel thinning method that always yields a constant thinning result, but when implemented on a general-purpose processor, there is a problem in that it takes a long processing time.

一方、逐次型細線化方弐の場合は、処理量が並列型細線
化に比べて限定されている(処理の対象となる個所は画
面中の図形部分だけ)ので、汎用プロセッサの処理に適
しているが、追跡開始点によって得られる細線化画像が
異なってしまうという問題があった。
On the other hand, in the case of sequential thinning method 2, the amount of processing is limited compared to parallel thinning (the processing target is only the graphic part on the screen), so it is not suitable for processing by general-purpose processors. However, there is a problem in that the thinned image obtained differs depending on the tracking starting point.

この問題を第11図により説明すると、第11図のA、
にドツト構成の図形(一部)の例が示されている。この
図形を■に示すように左上から右下に向かってマスク演
算により細線化を行って。
To explain this problem using Fig. 11, A in Fig. 11,
An example (partial) of a figure with a dot configuration is shown in . This figure is thinned by mask operation from the upper left to the lower right as shown in ■.

A、の中のaで示すドツト(二重まる)を対象に細線化
を行う場合、その右隣にもドントが存在するのでaを消
去して細線化を行うと、第11図のB、のような図形に
なる。他方A、において■で示す方向、すなわち図形の
下から右側にそって上に向かって処理を行うと、bで示
すドントが細線化により消去して細線化(斜め方向の線
幅を1ドツトにする)が行われてC0のようになる。こ
の結果、B、とCでは異なる図形となる。
When performing line thinning on the dot (double circle) indicated by a in A, there is also a dot to the right of it, so if you delete a and perform line thinning, B in Figure 11, It will look like this. On the other hand, when processing is performed in the direction indicated by ■ in A, that is, from the bottom of the figure to the right side and upward, the dots indicated by b are erased by thinning and the line is thinned (the line width in the diagonal direction is reduced to one dot). ) is performed and becomes like C0. As a result, B and C have different shapes.

このように細線化画像が追跡開始点で異なると分割した
画面に対して逐次型細線化をした後で。
In this way, after performing sequential thinning on the divided screens, the thinning images differ at the tracking start point.

画面を統合する時に隣接画像と細線が一致しなくなると
いう問題がある。
There is a problem that when merging screens, adjacent images and thin lines no longer match.

本発明は画面分割による細線化を行う際に逐次型細線化
処理を使用しながら分割画面の重畳領域における細線化
の結果と、隣接する分割画面の細線化の結果にずれが生
しない二値画像の細線化方式を提供することを目的とす
る。
The present invention provides a binary image in which there is no discrepancy between the thinning results in the superimposed area of a split screen and the thinning results of an adjacent split screen while using sequential thinning processing when performing line thinning by splitting the screen. The purpose is to provide a method for thinning wires.

[課題を解決するための手段] 第1図は本発明の原理構成図である。[Means to solve the problem] FIG. 1 is a diagram showing the principle configuration of the present invention.

第1図において、10は処理部、11は画面分割手段、
12は並列型細線化処理手段、13は逐次型細線化処理
手段、14はイメージデータ格納部、15は分割テーブ
ル、16はメモリを表す。
In FIG. 1, 10 is a processing section, 11 is a screen dividing means,
Reference numeral 12 represents a parallel thinning processing means, 13 a sequential thinning processing means, 14 an image data storage section, 15 a partitioning table, and 16 a memory.

本発明は複数の分割画面の境界部分で重複する領域につ
いてのみ並列型細線化処理を行い、それ以外の領域では
逐次型細線化を行うことにより細線化処理を高速化する
と共に境界部分での細線化画像のずれの発生を防止する
ものである。
The present invention performs parallel line thinning processing only on areas that overlap at the boundaries of multiple split screens, and performs sequential line thinning on other areas, thereby speeding up line thinning processing and reducing thin lines at the border areas. This prevents misalignment of the converted image.

[作用] 処理部10において、最初に全体画面のイメージデータ
が格納されたイメージデータ格納部14のデータについ
て2画面分割手段11により境界部分で重畳するように
所定の大きさに分割する。
[Operation] In the processing unit 10, the data in the image data storage unit 14 in which the image data of the entire screen is initially stored is divided into predetermined sizes by the two-screen dividing means 11 so that they overlap at the boundary.

重畳部分の幅は細線化すべき線の幅に対応して。The width of the overlapping part corresponds to the width of the line to be thinned.

線幅が広い場合重畳部分の幅が広くなる。各分割画面の
領域のデータは分割テーブル15に格納される。
When the line width is wide, the width of the overlapping part becomes wide. The data of each split screen area is stored in the split table 15.

次に、細線化の処理が行われるが、細線化の対象となる
1つの分割画面の領域に含まれるイメージデータがイメ
ージデータ格納部14からメモリ16にロードされ、先
ず重畳領域のデータに対して並列型細線化処理手段12
により並列型細線化処理が実行される。この並列型細線
化処理手段12は従来と同様の方式で5重畳領域のデー
タに対してマスクパターンによる走査を行って細線化処
理を行う。この細線化結果はメモリ16内に格納される
。この場合1重畳領域の元のデータを細線化処理結果に
より書き換えるか、細線化処理結果をメモリ16内の別
の領域に格納するかの何れの方法でもよい。
Next, line thinning processing is performed, and the image data included in one split screen area to be thinned is loaded from the image data storage unit 14 to the memory 16, and first, the data in the superimposed area is Parallel thinning processing means 12
Parallel thinning processing is executed. This parallel type thinning processing means 12 performs line thinning processing by scanning the data of the five overlapping areas using a mask pattern in the same manner as in the conventional method. This thinning result is stored in the memory 16. In this case, either method may be used, such as rewriting the original data of one overlapping area with the thinning process result or storing the thinning process result in another area within the memory 16.

重畳領域の細線化処理が終了すると1次に逐次型細線化
処理手段13が起動して2分割領域の中の重畳領域を除
いた部分のデータについて従来と同様の方法により逐次
型細線化処理が行われる。
When the thinning process of the superimposed area is completed, the sequential line thinning processing means 13 is activated as a primary step, and performs the sequential line thinning process on the data of the portion of the two-divided area excluding the superimposed area using the same method as before. It will be done.

この時、上記並列型細線化処理手段12による重畳領域
の細線化結果がメモリ16に格納されており、この逐次
型細線化処理による図形の輪郭を追跡する時に重畳領域
の細線化処理結果を連続して参照する。この場合2重畳
領域の部分は既に細線化されているので1逐次型細線化
処理の対象となるデータと並列型細線化処理が実行され
たデータとが連続して処理されて1両領域の線の連続性
が保たれる。
At this time, the thinning result of the superimposed area by the parallel thinning processing means 12 is stored in the memory 16, and when tracing the outline of the figure by this sequential thinning process, the thinning process result of the superimposed area is continuously used. and refer to it. In this case, since the portion of the double overlapping area has already been thinned, the data subject to the one-sequential thinning process and the data for which the parallel thinning process has been executed are processed consecutively, and the line in the one double area is continuity is maintained.

逐次型細線化処理手段13による処理の結果はメモリ1
6に格納されている。
The results of the processing by the sequential thinning processing means 13 are stored in the memory 1.
It is stored in 6.

[実施例] 第2図は実施例の折線近似化装置の構成図、第3図は分
割の具体例を示す図、第4図は画面分割テーブルの例を
示す回、第5図は実施例の処理フロー図、第6図(a)
は並列型細線化処理の具体例第6図(b)は重複領域の
処理を変えた逐次型細線化処理の具体例である。
[Example] Fig. 2 is a block diagram of the broken line approximation device of the embodiment, Fig. 3 is a diagram showing a specific example of division, Fig. 4 is a diagram showing an example of a screen division table, and Fig. 5 is an example. Processing flow diagram, Figure 6(a)
A specific example of parallel thinning processing FIG. 6(b) is a specific example of sequential thinning processing in which the processing of overlapping areas is changed.

第2図において920は原画像データを格納する磁気デ
ィスク、21は処理の流れを制御する制御部、22は原
画の大きさや原画中の線幅の情報から画面分割テーブル
を作成する画面分割テーブル作成部、23は分割テーブ
ルに従ってイメージメモリ27に画像データをロードす
る画像ロード部524は並列型細線化部、25は逐次型
細線化部、26は細線化された画像から折線近イ以を行
う折線近偵部、27はイメージメモリである。
In FIG. 2, 920 is a magnetic disk that stores original image data, 21 is a control unit that controls the flow of processing, and 22 is a screen division table creator that creates a screen division table from information about the size of the original image and the line width in the original image. 23 is an image loading section 524 that loads image data into the image memory 27 according to the division table; 25 is a sequential thinning section; and 26 is a broken line that performs near-line processing from the thinned image. 27 is an image memory.

動作を説明すると、入力されたイメージデータは、−時
的に磁気ディスク20に格納される。これは通常の細線
化機構であればイメージメモリに一度にロードできるが
2本発明ではイメージメモリとして容量が少ないものを
使用するので、磁気ディスク20に一時的な格納のため
必要となる。
To explain the operation, input image data is temporarily stored on the magnetic disk 20. This can be loaded into the image memory at once with a normal wire thinning mechanism, but since the present invention uses an image memory with a small capacity, it is necessary for temporary storage on the magnetic disk 20.

次に1画面分割テーブル作成部22において人力された
イメージデータの大きさ1個々の分割画面間の必要な重
畳領域の大きさ(重畳領域の線幅に比例)、及びイメー
ジメモリ27の実装サイズとから、入力イメージデータ
を分割する情報である画面分割テーブルを作成する。
Next, the size of the image data manually created in the one-screen split table creation unit 22, the size of the necessary superimposed area between each split screen (proportional to the line width of the superimposed area), and the implementation size of the image memory 27. From this, a screen division table, which is information for dividing input image data, is created.

画面分割の例を第3図に示す。An example of screen division is shown in FIG.

第3図のA、は画面全体を示し、これを6つに分割する
場合、各分割画面の境界線に対して、それぞれ幅dだけ
拡張した部分を含めて分割画面を構成する。分割画面の
例は同図のB、に示されA、の中央・上部の部分を表す
。これに示すように、境界線の内・外の幅dの帯状の領
域が隣接する分割画面と重畳しており、この例では図に
示すように並列型細線化領域1〜3に対して並列型細線
化処理が行われる。
A in FIG. 3 shows the entire screen, and when this is divided into six parts, each divided screen includes a portion expanded by a width d with respect to the boundary line of each divided screen. An example of a split screen is shown in B in the figure and represents the center/upper part of A. As shown in this figure, a band-shaped area with a width d inside and outside the boundary line overlaps with the adjacent split screen, and in this example, it is parallel to the parallel thinning areas 1 to 3 as shown in the figure. Type thinning processing is performed.

画面分割テーブルの例を第4図に示す。An example of the screen division table is shown in FIG.

分割テーブル40には複数の各分割画面に対応して分割
テーブル1(41)〜分割テーブルN(4N)が設けら
れ、各分割テーブルには個々の分割画面の領域情報が格
納されている。第4図には分割テーブル1(41)に格
納された情報の内容が示されている。
The division table 40 is provided with division tables 1 (41) to N (4N) corresponding to each of the plurality of division screens, and each division table stores area information of each division screen. FIG. 4 shows the contents of the information stored in the partition table 1 (41).

即ち、最初にこの分割画面が未処理が処理済かを表すフ
ラグ4111分割画面の全領域を表す情報として分割画
面の左上座標と右下座標412次にのりしろを含まない
領域(分割画面の境界線から外部にdだけ張り出した部
分をのりしろという)の左上座標と右下座標4131次
に逐次型細線化を行う領域(分割領域内の重複領域を除
いた内部の領域)の左上座標と右下座標414.さらに
並列型細線化を行う領域(隣接領域と重複する領域)と
して上、下、左、右の4つの領域1〜4(それぞれ長方
形)のそれぞれの左上座標と右下座標415〜418と
が格納される。
That is, first, there is a flag 4111 indicating whether this split screen has been processed or not, upper left coordinates and lower right coordinates 412 of the split screen as information representing the entire area of the split screen, and then an area that does not include the margin (boundary line of the split screen). 4131 Upper left and lower right coordinates of the area that is to be thinned sequentially (inner area excluding overlapping areas within the divided area) 414. Furthermore, the upper left coordinates and lower right coordinates 415 to 418 of each of the four regions 1 to 4 (each rectangular) on the top, bottom, left, and right are stored as regions for parallel thinning (regions that overlap with adjacent regions). be done.

ここで、他の分割画面との重複部分は、上記したように
上下左右の4個所に生じる可能性があるため、この分割
テーブルには4個所用の領域がとられているが1例えば
第3図のA、のように6分割した時の、B、に示す分割
画面に対応する分割テーブルには左、下、右の3個所に
のみ隣り合う分割画面との重複部分が存在する。この分
割テーブルが分割画面の枚数骨2画面分割テーブル作成
部22(第2回)によって作成される。
Here, as mentioned above, overlapping parts with other split screens may occur in four locations, top, bottom, left, and right, so areas for these four locations are reserved in this split table; When the screen is divided into six as shown in A in the figure, the division table corresponding to the divided screen shown in B has overlapped portions with adjacent divided screens only in three places: left, bottom, and right. This split table is created by the split screen number frame two screen split table creation unit 22 (second time).

画面分割テーブルが作成された後は、このテーブルに登
録された個々の領域毎に細線化を行ってゆく。
After the screen division table is created, thinning is performed for each area registered in this table.

この処理フローの実施例を第5図に示す。An example of this processing flow is shown in FIG.

このフローはYACチャートと呼ばれる公知のフローを
表現する図であり1例えばrlF、の場合、その条件の
内容が右側に示され1条件を満たす場合はrYESJと
いうrlFJの文字の右下に示す方向に進み、NOの場
合は、rlFJの文字の先端から下へ向かって次のrI
FJや「DOJの処理に進むようになっている。
This flow is a diagram expressing a well-known flow called a YAC chart. 1For example, in the case of rlF, the contents of the condition are shown on the right side, and if one condition is satisfied, the direction is shown at the bottom right of the letters rlFJ as rYESJ. If NO, proceed to the next rI from the tip of the letter rlFJ downwards.
We are now proceeding to FJ and DOJ processing.

以下に第5図の処理フローの内容を第2図乃至第4図を
参照しながら説明する。
The contents of the processing flow shown in FIG. 5 will be explained below with reference to FIGS. 2 to 4.

まず、制御部21が未処理の領域が画面分割テーブルに
残っているかを第4図に示す分割テーブル1〜Nの各フ
ラグ411を参照して判断しく第5図の51)、未処理
の分割画面が存在しないと。
First, the control unit 21 determines whether or not an unprocessed area remains in the screen division table by referring to each flag 411 of division tables 1 to N shown in FIG. 4 (51) in FIG. The screen doesn't exist.

[THINN−END )へ進み細線化が終了しく同5
2)存在する場合は、その未処理の分割テーブルで示す
部分を画像ロード部23により磁気ディスク20からイ
メージメモリ27にロードする(同53)。
Proceed to [THINN-END) to complete thinning.
2) If it exists, the portion indicated by the unprocessed partitioned table is loaded from the magnetic disk 20 into the image memory 27 by the image loading unit 23 (53).

イメージメモリ27にロードされた画像の細線化処理の
流れは、第5図の54から始まり68で終了する細線化
ループにおいて実行され、最初に並列型細線化処理が行
われ(第5図の54〜6l)2次に逐次型細線化処理が
実行される(第5図の62〜66)。
The flow of thinning processing for the image loaded into the image memory 27 is executed in a thinning loop starting from 54 and ending at 68 in FIG. ~6l) Second, sequential thinning processing is executed (62 to 66 in FIG. 5).

並列型細線化処理は、第2図の並列型細線化部24にお
いて実行され、まず分割画面の上部に重複領域があるか
否かを判定しく第5図の54)。
The parallel thinning process is executed in the parallel thinning unit 24 shown in FIG. 2, and first it is determined whether there is an overlapping area in the upper part of the split screen (54 in FIG. 5).

ある場合その重複領域に並列型の細線化を実行し。If there is, perform parallel thinning on the overlapping area.

削除画素にフラグをつける(同55)。このフラグは実
際に対象となる画素を削除すると、並列型細線化を行う
領域と逐次型細線化を行う領域との境界部分が正しい細
線化画像にならないからである。
A flag is attached to the deleted pixel (55). This flag is used because if the target pixel is actually deleted, the boundary between the area to be subjected to parallel thinning and the area to be subjected to sequential thinning will not be a correct thinned image.

分割画面の上部の重複領域についての細線化が終了する
と(または上部に重複領域がない場合)次に分割画面の
下部に重複領域があるか否かを判定しく同56)、ある
場合は同様に並列型の細線化処理を行う(同57)。以
下1分割画面の右部左部について同様に並列型の細線化
処理を行う(同58〜61)。
When the thinning of the overlapping area at the top of the split screen is completed (or if there is no overlapping area at the top), it is then determined whether there is an overlapping area at the bottom of the split screen (see 56), and if there is, the same process is performed. Performs parallel thinning processing (57). Thereafter, parallel line thinning processing is similarly performed on the right and left parts of one split screen (steps 58 to 61).

この後、第2図の逐次型細線化部25において逐次型細
線化処理が開始される。この処理は1画面内の全ての図
形について2図形の輪祁を一周するよう、追跡を行いな
がら逐次型の細線化処理を行う(同62.63)。もし
この追跡において重複領域に入った場合は(同64)、
追跡だけを行うが、上記の並列型細線化処理においてフ
ラグが付された画素を検出するとその画素を削除しく同
65)1重畳領域でないと逐次型細線化を行う(同66
)。そして1画面の全てに対してまだ細線化可能な点が
存在するか否かを判定し、ある場合は、再び54に戻っ
て細線化のループを再開する(同67.68)。
Thereafter, the sequential thinning process is started in the sequential thinning section 25 shown in FIG. This process performs sequential line thinning processing while performing tracing so that all the figures in one screen go around the circle of two figures (62.63). If this tracking enters the overlapping area (ibid. 64),
Only tracking is performed, but if a flagged pixel is detected in the above parallel thinning process, that pixel is deleted (see 65). If it is not a single overlapping area, sequential thinning is performed (see 66).
). Then, it is determined whether or not there are still points that can be thinned for all of one screen, and if there are, the process returns to 54 and restarts the thinning loop (67.68).

最後に細線化可能な点がなくなると、折線返信処理が第
2図の折線近似部26において実行され(同69)、そ
の後他の未処理の分割画面についての処理に移る(同7
0)。
Finally, when there are no more points that can be thinned, the broken line reply process is executed in the broken line approximation unit 26 in FIG.
0).

次に細線化処理の内容を第6図(a)、第6図(1))
に示す具体例を用いて説明する。
Next, the details of the thinning process are shown in Figure 6 (a) and Figure 6 (1)).
This will be explained using a specific example shown in .

第6図(a)は、並列型細線化処理の具体例を示し。FIG. 6(a) shows a specific example of parallel thinning processing.

第6図(b)は逐次型細線化処理の具体例を示す。FIG. 6(b) shows a specific example of sequential thinning processing.

第6図(a)においてA、は細線化する前の原画の画像
データであり1画像を示す■は画素値1の黒画素を示し
、その他の白画素は図示しない。
In FIG. 6(a), A indicates the image data of the original picture before thinning, and the symbol ``■'' indicating one image indicates a black pixel with a pixel value of 1, and other white pixels are not shown.

第5図の並列型細線化処理が実行されると、並列型細線
化部24(第2図)により重畳領域で1画素分の細線化
処理を行い1重畳領域の情報は画面分割テーブル(第4
図)に格納されており、これを参照することにより並列
型の細線化を行う領域を設定する。並列型の細線化では
、実際の画素の削除は行わず、第6図(a)のB、に示
すように削除される画素の画素値を変える(フラグを付
す)だけとする。図の例では画素値を■に変更している
When the parallel line thinning process shown in FIG. 4
(Figure), and by referring to it, the area for parallel thinning is set. In parallel type thinning, pixels are not actually deleted, but only the pixel values of the pixels to be deleted are changed (flags are attached) as shown in B of FIG. 6(a). In the example shown in the figure, the pixel value is changed to ■.

このように3画素値を変更するには並列型細線化処理を
行う領域の各画素は9通常は1ビツトで表すのに対して
少なくとも2ピント(2ピント目はフラグに対応)を割
当てればよい。
In order to change 3 pixel values in this way, each pixel in the area where parallel thinning processing is performed should be assigned at least 2 focus points (the 2nd focus corresponds to a flag), whereas each pixel in the area where parallel thinning processing is performed is usually represented by 1 bit. good.

次に逐次型細線化処理では9重複領域以外の内部の画像
データについて細線化処理を行う。この場合は削除対象
の画素は実際に削除し9重複領域を追跡中に細線化によ
ってフラグの付いた画素を検出すると追跡を行いつつそ
の画素を削除する。
Next, in the sequential thinning process, the internal image data other than the nine overlapping areas are thinned. In this case, the pixel to be deleted is actually deleted, and if a flagged pixel is detected by thinning while tracing the overlapping area, that pixel is deleted while tracking.

この様子を第6図(a)のC0及びり、に示す。This situation is shown at C0 and C0 in FIG. 6(a).

このような処理を1画面中の全ての図形について、これ
以上細線化されるものが無くなるまで繰り返し行うこと
により境界部分で食い違いのない細線化を行うことがで
きる。
By repeating this process for all the figures in one screen until there are no more lines to be thinned, it is possible to thin lines without discrepancies at the boundaries.

上記の第2図の実施例の構成では、並列型細線化部24
と逐次型細線化部25を別々の処理部として示したが、
汎用プロセッサによって構成しファームウェアを切り換
えることで一つの処理部として構成することは可能であ
り、装置のコスト上は一つにする方が有利である。
In the configuration of the embodiment shown in FIG. 2 above, the parallel thinning section 24
Although the and sequential thinning unit 25 are shown as separate processing units,
It is possible to configure it as one processing unit by using a general-purpose processor and switching the firmware, but it is more advantageous to have one processing unit in terms of the cost of the device.

さらに、上記の実施例では、並列型細線化処理(第5図
の55.57.59.61)で削除画素にフラグをつけ
ていたが、その方式では1画素を削除対象の画素か否か
を区別するため各画素に最低2ピントを割当てる必要が
あるため、イメージメモリの容量が増大する。これを避
けるため1画素にフラグを付けない方法を第6図ら)を
用いて説明する。
Furthermore, in the above embodiment, a flag was attached to the deletion pixel in the parallel thinning process (55, 57, 59, 61 in FIG. Since it is necessary to allocate at least two focal points to each pixel in order to distinguish between the two, the capacity of the image memory increases. In order to avoid this, a method of not attaching a flag to one pixel will be explained using FIG. 6 et al.

第6図(b)のA、に示す原画の画像データに対して並
列型細線化を実行した時、境界部分以外の重複領域につ
いては細線化により削除対象となった画素を削除するが
、同図のB、に示すように境界部分(図の点線で区切る
部分)については、細線化結果(削除対象のデータと削
除されないデータとからなる)のみを−旦別のワーキン
グメモリ(1示せず)に退避する。
When parallel thinning is performed on the image data of the original image shown in A of FIG. 6(b), the pixels targeted for deletion by thinning are deleted in the overlapping areas other than the border areas, but the same As shown in B in the figure, for the boundary part (the part separated by the dotted line in the figure), only the thinning results (consisting of data to be deleted and data not to be deleted) are stored in different working memories (1 not shown). evacuate to.

この後、逐次型細線化処理が実行されるが2重複領域に
ついては第6図(ト))のC9のように追跡だけが行わ
れ(第5図の65において、フラグについての処理は行
われない)、逐次型細線化が終了した後、上記ワーキン
グメモリに退避した境界部分の画素を元の境界部分に戻
して同図り、のような最終状態が得られる。この方式に
より得られた結果は、第6図(a)に示す方式と同しに
なることば図により明らかである。
After this, sequential thinning processing is executed, but for the two overlapping regions, only tracking is performed as shown in C9 in Fig. 6 (G) (in 65 in Fig. 5, flag processing is not performed). After the sequential thinning is completed, the pixels in the boundary area saved in the working memory are returned to the original boundary area to obtain the final state shown in the same figure. The results obtained by this method are clear from the word diagram, which is the same as the method shown in FIG. 6(a).

[発明の効果] 本発明によれば大きな図面を計算機に入力するだめの細
線化処理を大容量のイメージメモリを使用することなく
実現すると同時に分割画面の細線化を行うと隣接画面と
の境界において発生する細線のずれを防止することがで
きる。
[Effects of the Invention] According to the present invention, line thinning processing that requires inputting a large drawing into a computer can be realized without using a large capacity image memory, and at the same time thinning of a split screen can be performed at the boundary between adjacent screens. It is possible to prevent the thin lines from shifting.

さらに画面分割による細線化において、汎用プロセッサ
による処理に適した逐次型細線化で行うことができ、処
理速度の向上とハードウェアを使用せずに済むなどの効
果がある。
Furthermore, line thinning by screen division can be performed by sequential line thinning suitable for processing by a general-purpose processor, which has the effect of improving processing speed and eliminating the need for hardware.

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

第1図は本発明の原理構成図、第2図は実施例の折線近
似化装置の構成図1第3図は分割の具体例を示す図、第
4図は画面分割テーブルの例を示す図、第5図は実施例
の処理フロー図、第6図(a)は並列型細線化処理の具
体例、第6図(b)は逐次型細線化処理の具体例、第7
図は分割細線化の例、第8図は重畳領域を設けた画面分
割の説明図、第9図は重畳領域を設けた分割画面の細線
化の例、第10図は細線化の概要図、第11図は逐次型
細線化方式の問題説明図である。 第1図中。 】0:処理部 11:画像分割手段 12:並列型細線化処理手段 I3:逐次型細線化処理手段 14:イメージデータ格納部 15:分割テーブル 16:メモリ
Fig. 1 is a diagram showing the principle configuration of the present invention, Fig. 2 is a diagram showing the configuration of a broken line approximation device according to an embodiment, Fig. 3 is a diagram showing a specific example of division, and Fig. 4 is a diagram showing an example of a screen division table. , FIG. 5 is a processing flow diagram of the embodiment, FIG. 6(a) is a specific example of parallel thinning processing, FIG. 6(b) is a specific example of sequential thinning processing, and FIG.
The figure is an example of dividing thinning, FIG. 8 is an explanatory diagram of screen division with an overlapping area, FIG. 9 is an example of thinning of a divided screen with an overlapping area, and FIG. 10 is a schematic diagram of line thinning. FIG. 11 is an explanatory diagram of problems in the sequential thinning method. In Figure 1. ] 0: Processing section 11: Image dividing means 12: Parallel thinning processing means I3: Sequential thinning processing means 14: Image data storage section 15: Division table 16: Memory

Claims (1)

【特許請求の範囲】 処理対象画面を複数の領域に分割して、各分割画面の画
像について細線化を行って得られた各細線化分割画像を
統合して全体の細線化画像を得る二値画像の細線化方式
において、画面全体のイメージデータをイメージデータ
格納部(14)に備え、 処理部(10)は、隣接する分割画像と重畳領域を持つ
よう画面全体を所定の大きさに分割して分割テーブル(
15)に格納する画面分割手段(11)と、分割画面の
イメージデータをメモリ(16)に取り出して各分割画
面の重畳領域の画像について並列型細線化を行う並列型
細線化処理手段(12)と、各分割画面の重畳領域を除
く領域について逐次型の細線化を行うと共に上記並列型
細線化により得られた処理結果との結合を行う逐次型細
線化処理手段(13)とを備えることを特徴とする二値
画像の細線化方式。
[Claims] A binary method that divides the processing target screen into a plurality of regions, performs thinning on the image of each divided screen, and integrates each thinned divided image to obtain an entire thinned image. In the image thinning method, the image data of the entire screen is stored in the image data storage section (14), and the processing section (10) divides the entire screen into predetermined sizes so as to have regions that overlap with adjacent divided images. partitioned table (
15); and parallel thinning processing means (12) that retrieves the image data of the split screen into the memory (16) and performs parallel thinning on the image in the superimposed area of each split screen. and sequential line thinning processing means (13) that performs sequential line thinning on areas other than the overlapping area of each split screen and combines the processing results obtained by the parallel line thinning. Features a thinning method for binary images.
JP1984490A 1990-01-30 1990-01-30 Line thinning system for binary image Pending JPH03224071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1984490A JPH03224071A (en) 1990-01-30 1990-01-30 Line thinning system for binary image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1984490A JPH03224071A (en) 1990-01-30 1990-01-30 Line thinning system for binary image

Publications (1)

Publication Number Publication Date
JPH03224071A true JPH03224071A (en) 1991-10-03

Family

ID=12010570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1984490A Pending JPH03224071A (en) 1990-01-30 1990-01-30 Line thinning system for binary image

Country Status (1)

Country Link
JP (1) JPH03224071A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100867163B1 (en) * 2007-06-20 2008-11-06 성균관대학교산학협력단 Image processing device capable of realtime thinning and method thereof
JP2008287551A (en) * 2007-05-18 2008-11-27 Oki Electric Ind Co Ltd Image processing circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008287551A (en) * 2007-05-18 2008-11-27 Oki Electric Ind Co Ltd Image processing circuit
KR100867163B1 (en) * 2007-06-20 2008-11-06 성균관대학교산학협력단 Image processing device capable of realtime thinning and method thereof

Similar Documents

Publication Publication Date Title
JPH07104958B2 (en) How to activate a data display system
JP2591984B2 (en) Pattern recognition device
JPS6180374A (en) Microprocessing method and apparatus for veriable scanning area
JP3995114B2 (en) Switch image display method
JPH03189878A (en) Edit control system for image processing device
KR0167616B1 (en) Image processing apparatus and method of the same
US4910611A (en) Method for doing interactive image processing operations on large images
JPH0320882A (en) Method for displaying, extracting, and segmenting interested area
JP2681367B2 (en) Graphic processing method and apparatus thereof
JP2676116B2 (en) Image data processing method and apparatus
JPH03224071A (en) Line thinning system for binary image
US6496198B1 (en) Color editing system
JPH0767136B2 (en) Image processing device
JP2993007B2 (en) Image area identification device
JP3093906B2 (en) Image processing apparatus and method
US5583955A (en) Image processing apparatus
CN111951367B (en) Character rendering method, character processing method and device
JP2577276B2 (en) Line break detection method
JP2559710B2 (en) Image processing method
JP3330803B2 (en) Image data processing method
JPS63109650A (en) Picture reader
JPH05143733A (en) Contour extracting device
JP2954218B2 (en) Image processing method and apparatus
JPH01191272A (en) Picture data processing method
JPS60231268A (en) Picture area processor