JPH0571989B2 - - Google Patents

Info

Publication number
JPH0571989B2
JPH0571989B2 JP23759984A JP23759984A JPH0571989B2 JP H0571989 B2 JPH0571989 B2 JP H0571989B2 JP 23759984 A JP23759984 A JP 23759984A JP 23759984 A JP23759984 A JP 23759984A JP H0571989 B2 JPH0571989 B2 JP H0571989B2
Authority
JP
Japan
Prior art keywords
line
figures
binary image
circuit
thinning
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
JP23759984A
Other languages
Japanese (ja)
Other versions
JPS61117664A (en
Inventor
Akio Okazaki
Shigeyoshi Shimotsuji
Kazuhiro Mori
Takashi Kondo
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP23759984A priority Critical patent/JPS61117664A/en
Publication of JPS61117664A publication Critical patent/JPS61117664A/en
Publication of JPH0571989B2 publication Critical patent/JPH0571989B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は、2値画像変換装置に係り、特に線
図形と面図形とが混在する2値画像を変換処理す
る2値画像変換装置に関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a binary image conversion device, and particularly relates to a binary image conversion device that converts a binary image containing a mixture of line figures and area figures. be.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

設計図面、地図、天気図等の画像情報をコンピ
ユータ・システムにフアイルしたり、パターン認
識したりする場合、これらの画像情報を2値化
し、得られた2値画像について、データ圧縮した
り、特徴抽出を行つたりする。しかし、これらの
画像情報には、ベタ塗りの面図形と、本来、形状
情報を持たない線図形とが混在しているのが普通
である。第2図に、面図形と線図形とが混在した
例を示す。
When file image information such as design drawings, maps, weather maps, etc. to a computer system or perform pattern recognition, this image information is binarized, and the resulting binary image is compressed and characterized. Perform extraction. However, this image information usually includes a mixture of solid area figures and line figures that originally do not have shape information. FIG. 2 shows an example in which area figures and line figures are mixed.

線情報を効率的に抽出するために、入力された
2値画像を線巾1の画像に変換する方法が、従来
用いられているが、この方法は像の細線化処理と
呼ばれている。2値画像の細線化処理について
は、田村秀行著「細線化法についての諸考察」
(電子通信学会技術研究報告,PRL研究会資料
PRL75−66,1975年)、特開昭58−163078号公報
等に記載されている。
In order to efficiently extract line information, a method has conventionally been used in which an input binary image is converted into an image with a line width of 1, and this method is called image thinning processing. Regarding line thinning processing for binary images, see "Various considerations on line thinning methods" by Hideyuki Tamura.
(IEICE Technical Research Report, PRL Study Group Materials
PRL75-66, 1975), Japanese Unexamined Patent Publication No. 163078/1983, etc.

通常、細線化処理理は、対象とする画像を2値
化し、得られた2値画像の輪郭点を順次削ること
で行われる。この細線化処理を、第2図に示した
ような面図形と線図形とが混在した画像に適用し
た場合には、第3図に示すように、面図形につい
ては、もとの形状情報が失なわれてしまう。
Normally, line thinning processing is performed by binarizing a target image and sequentially removing contour points of the obtained binary image. When this thinning process is applied to an image containing a mixture of area figures and line figures as shown in Figure 2, the original shape information of area figures is lost as shown in Figure 3. It gets lost.

一方、富永他2名著「2値図形の境界線追跡に
よる2次元ブロツク伝送の提案」(昭和49年電子
通信学会全国大会No.1330)等に記載されている輪
郭追跡処理を行つた場合には、面図形の形状情報
は保存されて抽出されるが、余分な線図形部の輪
郭までも追跡することになるので、処時間の点で
問題点があつた。
On the other hand, when performing the contour tracking process described in Tominaga et al.'s ``Proposal of Two-dimensional Block Transmission by Boundary Line Tracing of Binary Figures'' (1971 Institute of Electronics and Communication Engineers National Conference No. 1330), Although the shape information of the surface figure is saved and extracted, the outline of the extra line figure part is also traced, which poses a problem in terms of processing time.

〔発明の目的〕[Purpose of the invention]

この発明は、前記問題点を解決する為になされ
たもので、線図形と面図形とが混在する2値画像
に対して、データ圧縮、特徴抽出を効果的に可能
ならしめることを目的とするものである。
This invention was made in order to solve the above-mentioned problems, and aims to enable data compression and feature extraction to be effectively performed on binary images in which line figures and area figures coexist. It is something.

〔発明の概要〕[Summary of the invention]

この発明は、線図形と面図形とが混在する2値
画像を、線巾1の図形に変換する細線化手段と2
値画像から面図形部を検出する面図形部検出手段
の2系統の処理を用いて変換し、両系統の処理結
果を合成することにより、線図形部のみが線巾1
の図形に変換さた画像を得るようにしたものであ
る。
This invention includes a thinning means for converting a binary image containing a mixture of line figures and area figures into a figure with a line width of 1;
By converting the value image using two processing systems, the area figure detection means, which detects the area figure part, and combining the processing results of both systems, only the line figure part has a line width of 1.
This is to obtain an image converted into a figure.

〔発明の効果〕〔Effect of the invention〕

この発明によれば、面図形と線図形とが区別さ
れた2値画像を得ることができるので、データ圧
縮、特徴抽出を効果的に行うことが可能となるば
かりでなく、簡単な回路構成により2値画像の変
換処理が可能となる。
According to this invention, since it is possible to obtain a binary image in which area figures and line figures are distinguished, it is possible not only to perform data compression and feature extraction effectively, but also to use a simple circuit configuration. It becomes possible to perform conversion processing on binary images.

〔発明の実施例〕[Embodiments of the invention]

第1図は、この発明による2値画像変換装置の
一実施例を説明するための図である。
FIG. 1 is a diagram for explaining an embodiment of a binary image conversion device according to the present invention.

この2値画像変換装置は、細線化回路1、面図
形部検出回路2と合成回路3からなる。面図形と
線図形とが混在する画像は、CCDセンサ等の光
電変換装置を用いて読み取られ、2値化処理する
ことにより、M×N個の画素からなる2値画像デ
ータに変換される。fijはM×Nの2値画像におけ
るjライン目でかつi番目の画素の値を示し、各
画像データは順次、細線化回路1と面図形部検出
回路2に、ライン入力される。
This binary image conversion device includes a thinning circuit 1, a surface figure detection circuit 2, and a compositing circuit 3. An image containing a mixture of area figures and line figures is read using a photoelectric conversion device such as a CCD sensor, and is converted into binary image data consisting of M×N pixels by binarization processing. f ij indicates the value of the j-th line and i-th pixel in the M×N binary image, and each image data is sequentially input into the line thinning circuit 1 and the surface figure detection circuit 2.

ライン入力された2値画像データは、細線化回
路1により、線巾1の図形に変換され、面図形部
検出回路2により面図形情報が抽出される。これ
らの出力結果に基づき、合成回路3で符号化する
ことにより、線図形情報のみが線巾1の図形に変
換された画像と面図形情報を抽出して得られた画
像とからなる画像データCijが出力される。
The line-input binary image data is converted into a figure with a line width of 1 by the line thinning circuit 1, and the plane figure information is extracted by the plane figure detection circuit 2. Based on these output results, the synthesis circuit 3 encodes the image data C, which consists of an image in which only the line figure information is converted into a figure with a line width of 1, and an image obtained by extracting the surface figure information. ij is output.

第4図aは、第1図の細線化回路1を詳細に説
明するための図である。
FIG. 4a is a diagram for explaining the thinning circuit 1 of FIG. 1 in detail.

細線化回路1は3×3のマスク(フイルタリン
グテーブル)からなる論理フイルタリングを用い
て、n段のパイプライン処理をすることにより実
現される。パイプライン40の段数nは、線図形
の巾により決まるので、線巾の上限を仮定し、こ
の線巾の線図形を細線化処理するに充分な大きさ
に設定すばよい。
The thinning circuit 1 is realized by performing n-stage pipeline processing using logical filtering consisting of a 3×3 mask (filtering table). Since the number of stages n of the pipeline 40 is determined by the width of the line figure, it is sufficient to assume an upper limit of the line width and set it to a size sufficient to thin the line figure of this line width.

第4図bは、パイプライン40の各段を構成す
る回路を詳細に説明するための図である。
FIG. 4b is a diagram for explaining in detail the circuits forming each stage of the pipeline 40.

パイプライン40の各段を構成する回路は、ラ
インバツフア41、シフトレジスタ42、アドレ
スレジスタ43とフイルタリングテーブル44か
らなる。この実施例では、3×3のマスクからな
る輪理フイルタリングを用いているので、入力信
号は3段で構成されるラインバツフ41に入力さ
れ、シフトレジスタ42に3×3の2値画像信号
が記憶される。シフトレジスタ42に記憶された
2値画像信号は、アドレスレジスタ43によつて
順次、読み出さ、3×3のフイルタリングテーブ
ル44によつて処理される。
The circuits forming each stage of the pipeline 40 include a line buffer 41, a shift register 42, an address register 43, and a filtering table 44. In this embodiment, ring filtering consisting of a 3 x 3 mask is used, so the input signal is input to a line buffer 41 consisting of three stages, and a 3 x 3 binary image signal is input to a shift register 42. be remembered. The binary image signals stored in the shift register 42 are sequentially read out by an address register 43 and processed by a 3×3 filtering table 44.

第5図は、第1図の面図形部検出回路2を詳細
に説明するための図である。
FIG. 5 is a diagram for explaining in detail the surface figure portion detection circuit 2 of FIG. 1.

この面図形部検出回路2は、2n段のパイプラ
イン50からなり、n段のパイプライン処理によ
り、n画素収縮したのち、同じくn段のパイプラ
イン処理により、n画素拡張を行う。パイプライ
ンの各段を構成する回路には第4図bに示したも
のと同様の回路を用いる。このように収縮したの
ちに、拡張を行うことにより、2値画像の凸部を
滑らかにする。即ち、線図形部を消去し、面図形
部を検出することが可能となる。
The surface graphic portion detection circuit 2 is composed of a 2n-stage pipeline 50, and after shrinking by n pixels through the pipeline processing through the n stages, it expands by n pixels through the pipeline processing through the same n stages. A circuit similar to that shown in FIG. 4b is used for each stage of the pipeline. After shrinking in this manner, expansion is performed to smooth out convex portions of the binary image. That is, it is possible to erase the line figure part and detect the area figure part.

第6図a及び第6図bは、第1図の合成回路3
を詳細に説明するための図である。
6a and 6b show the synthesis circuit 3 of FIG.
FIG. 2 is a diagram for explaining in detail.

この合成回路3は、ラインバツフア61、アド
レスレジスタ62、変換テーブル63からなる。
細線化回路1の出力Aと面図形部検出回路2の出
力Bとを、この合成回路3に入力して、両出力デ
ータを合成するが、両出力データのタイミング調
整を行うために、出力A側にラインバツフア61
を設ける。タイミングを合わせられた出力データ
Aと出力データBは、アドレスレジスタ62によ
り、順次、読み出され、変換テーブル63を用い
て、符号変換され、背景と線図形部と面図形部と
を区別して符号化された画像データCijが出力さ
れる。
This synthesis circuit 3 includes a line buffer 61, an address register 62, and a conversion table 63.
The output A of the thinning circuit 1 and the output B of the surface figure detection circuit 2 are input to this synthesis circuit 3 and both output data are synthesized. In order to adjust the timing of both output data, the output A Line buffer 61 on the side
will be established. The output data A and the output data B whose timings have been matched are sequentially read out by the address register 62, and are code-converted using the conversion table 63, and the background, line figure part, and surface figure part are distinguished and coded. The converted image data C ij is output.

第6図bに変換テーブル63の内容を示す。こ
の変換テーブル63により、線図形情報は“1”
に、面図形情報は“2”に符号化される。
FIG. 6b shows the contents of the conversion table 63. According to this conversion table 63, the line figure information is “1”
In this case, the surface graphic information is encoded as "2".

この変換テーブル63では細線化された結果の
出力Aと面図形抽出された結果の出力Bとの関係
で、出力Aが“1”で、出力Bが“1”の時、つ
まり細線化処理の過程で面図形に対しても細線化
処理されたものは、出力Bが優先されるように合
成出力Cijは“2”となるように設定されている。
In this conversion table 63, in the relationship between output A as a result of thinning and output B as a result of area figure extraction, when output A is "1" and output B is "1", that is, when the thinning process In the case where the surface figure is also thinned in the process, the composite output C ij is set to be "2" so that the output B is prioritized.

第7図に、n=3とした場合の2値画像の変換
例を示す。同図aは入力2値画像、bは画素収縮
を行つた結果の画画像、cは画素拡張を行つた結
果の画像、dは合成回路により符号変換した結果
の画像を示す。
FIG. 7 shows an example of conversion of a binary image when n=3. In the figure, a shows an input binary image, b shows an image as a result of pixel contraction, c shows an image as a result of pixel expansion, and d shows an image as a result of code conversion by a synthesis circuit.

第7図aの入力2値画像と、同図dの変換され
た画像を比較すれば明らかなように、この発明に
よる画像変換を行うことにより、図形情報から特
徴を抽出することが、極めて容易となる。例え
ば、C,Fのような線図形の端点、あるいはD,
Eのような線図形と面図形との接点の検出が容易
に行える。また、面図形の形状情報の抽出はコー
ド“2”の部分の輪郭を求めることにより容易に
行うことができ、さらに面図形相互の接続関係は
コードが“1”となつている画素をたどることに
より容易に行うことができる。
As is clear from a comparison between the input binary image in Figure 7a and the converted image in Figure 7d, it is extremely easy to extract features from graphical information by performing image conversion according to the present invention. becomes. For example, end points of line figures such as C and F, or D,
It is easy to detect points of contact between line figures such as E and area figures. In addition, the shape information of a surface figure can be easily extracted by finding the outline of the part with the code "2", and furthermore, the connection relationship between the surface figures can be determined by tracing the pixels whose code is "1". This can be easily done by

〔発明の他の実施例〕[Other embodiments of the invention]

第8図は、この発明による2値画像変換装置の
他の実施例を説明するための図である。
FIG. 8 is a diagram for explaining another embodiment of the binary image conversion device according to the present invention.

図面に現わる面図形が、例えば第8図aに示す
ような大きさが一定の黒丸に限定されている場合
には、第5図に示した面図形部検出回路2は、さ
らに簡単化することができ、第8図bにその一例
を示す。
If the area figure appearing in the drawing is limited to a black circle with a constant size as shown in FIG. 8a, for example, the area figure part detection circuit 2 shown in FIG. 5 can be further simplified. An example of this is shown in FIG. 8b.

この面図形部検出回路2は、黒画素数カウント
回路81と、比較回路82と、m画素拡張回路8
3と、ラインバツフア84とAND回路85とか
らなる。2値画像データfijは、黒画素数カウント
回路81に入力され、2m×2mのウインドウ内に
存在する黒画素数がカウントされる。カウントさ
れた結果は比較回路82により、しきい値Tと比
較され、黒丸の中心が検出される。即ち、黒丸の
中心付近に画素が検出された場合に、2m×2mの
ウインドウ内の黒画素数がしきい値Tより大きく
なるように、しきい他Tが設定されている。次
に、m画素拡張回路83により、m画素拡張した
のち、AND回路85により、入力2値画像デー
タfijとのANDをとり、余分な拡張部分を削除す
る。また、タイミング調整をとるために、ライン
バツフア84を介して、入力2値画素データを
AND回路85に入力する。
This surface figure detection circuit 2 includes a black pixel count circuit 81, a comparison circuit 82, and an m pixel expansion circuit 8.
3, a line buffer 84, and an AND circuit 85. The binary image data f ij is input to a black pixel number counting circuit 81, and the number of black pixels existing within a 2m×2m window is counted. The counted result is compared with a threshold value T by a comparison circuit 82, and the center of the black circle is detected. That is, the threshold value T is set so that when a pixel is detected near the center of a black circle, the number of black pixels within a 2m x 2m window becomes greater than the threshold value T. Next, the m-pixel expansion circuit 83 expands the data by m pixels, and then the AND circuit 85 performs an AND operation with the input binary image data f ij and deletes the redundant expanded portion. In addition, in order to adjust the timing, input binary pixel data is input via a line buffer 84.
Input to AND circuit 85.

なお、この発明による2値画像変換装置は、前
記各実施例に限定されるものではない。即ち、例
えば、パイプライン処理を用いずに、2値画像全
体を、先ず画像メモリに入力したのち、像メモリ
にアクセスすることによつても可能である。この
場合には、画像メモリにアクセスし、細線化手
段、面図形部検出手段を用いた処理を個々に行
い、その結果を別々のメモリに格納したのち、両
メモリにアクセスすることにより、合成処理を行
えばよい。また、合成回路としては、単なるOR
回路で充分な場合も有り得る。
Note that the binary image conversion device according to the present invention is not limited to the above embodiments. That is, for example, it is also possible to first input the entire binary image to the image memory and then access the image memory without using pipeline processing. In this case, the image memory is accessed, the processing using the thinning means and the surface figure detection means is performed individually, the results are stored in separate memories, and then both memories are accessed to perform the compositing process. All you have to do is Also, as a synthesis circuit, it can be used as a simple OR
There may be cases where a circuit is sufficient.

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

第1図は、この発明による2値画像変換装置の
一実施例を説明するための図、第2図及び第3図
は従来技術を説明するための図、第4図は第1図
における細線化回路を詳細に説明するための図、
第5図は第1図における面図形部検出回路を詳細
に説明するための図、第6図は第1図における合
成回路を詳細に説明するための図、第7図はこの
発明による2値画像変換処理結果の一例を示す
図、第8図はこの発明による2値画像変換装置の
他の実施例を説明するための図である。 図において、1……細線化回路、2……面図形
部検出回路、3……合成回路、41,61……ラ
インバツフア、42……シフトレジスタ、43,
62……アドレスレジスタ、44……フイルタリ
ングテーブル、63……変換テーブル、81……
黒画素数カウント回路、82……比較回路、83
……m画素拡張回路、84……ラインバツフア、
85……AND回路。
FIG. 1 is a diagram for explaining an embodiment of a binary image conversion device according to the present invention, FIGS. 2 and 3 are diagrams for explaining the prior art, and FIG. 4 is a diagram showing thin lines in FIG. 1. A diagram to explain the circuit in detail,
FIG. 5 is a diagram for explaining in detail the surface figure detection circuit in FIG. 1, FIG. 6 is a diagram for explaining in detail the synthesis circuit in FIG. 1, and FIG. FIG. 8, which is a diagram showing an example of the result of image conversion processing, is a diagram for explaining another embodiment of the binary image conversion apparatus according to the present invention. In the figure, 1... line thinning circuit, 2... surface figure detection circuit, 3... synthesis circuit, 41, 61... line buffer, 42... shift register, 43,
62... Address register, 44... Filtering table, 63... Conversion table, 81...
Black pixel count circuit, 82... Comparison circuit, 83
... m pixel expansion circuit, 84 ... line buffer,
85...AND circuit.

Claims (1)

【特許請求の範囲】 1 面図形と線図形とが混在する2値画像を処理
する2値画像変換装置において、 前記2値画像を線幅1の図形に細線化する細線
化手段と、 前記2値画像から面図形部分のみを抽出する面
図形部検出手段と、 前記細線化手段において細線化された図形のデ
ータと、前記面図形部検出手段において抽出され
た面図形部分のデータとに基づいて符号化して合
成する合成手段とを備え、 前記合成手段における符号化に際し、変換テー
ブルを用い、この変換テーブルによつて、前記細
線化手段において細線化された図形のうち前記面
図形部検出手段によつて抽出された面図形部分に
該当する部分を除いたデータと、前記面図形部検
出手段において抽出された面図形部分のデータと
が区別して符号化されるように設定されてなるこ
とを特徴とする2値画像変換装置。 2 面図形部検出手段は、前記2値画像に対し線
図形のみが消去し得るn画素分の収縮を行い、し
かる後n画素分の拡張を行うよう設定されてなる
ことを特徴とする特許請求の範囲第1項記載の2
値画像変換装置。
[Scope of Claims] 1. A binary image conversion device for processing a binary image containing a mixture of area figures and line figures, comprising: thinning means for thinning the binary image into figures with a line width of 1; A plane figure detection means for extracting only a plane figure part from a value image; based on the data of the figure thinned by the thinning means and the data of the plane figure extracted by the plane figure detection means. compositing means for encoding and compositing, using a conversion table during encoding in the compositing means, and using the conversion table, among the figures thinned by the thinning means, the area figure part detection means The data excluding the portion corresponding to the surface figure portion thus extracted and the data of the surface figure portion extracted by the surface figure portion detecting means are set to be encoded separately. A binary image conversion device. 2. A patent claim characterized in that the plane figure detection means is set to perform contraction of the binary image by n pixels so that only line figures can be erased, and then expand it by n pixels. Range of 2 described in item 1
Value image conversion device.
JP23759984A 1984-11-13 1984-11-13 Binary picture converting device Granted JPS61117664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23759984A JPS61117664A (en) 1984-11-13 1984-11-13 Binary picture converting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23759984A JPS61117664A (en) 1984-11-13 1984-11-13 Binary picture converting device

Publications (2)

Publication Number Publication Date
JPS61117664A JPS61117664A (en) 1986-06-05
JPH0571989B2 true JPH0571989B2 (en) 1993-10-08

Family

ID=17017707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23759984A Granted JPS61117664A (en) 1984-11-13 1984-11-13 Binary picture converting device

Country Status (1)

Country Link
JP (1) JPS61117664A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4832031B2 (en) * 2005-09-08 2011-12-07 オリンパスイメージング株式会社 Image processing method and image processing apparatus

Also Published As

Publication number Publication date
JPS61117664A (en) 1986-06-05

Similar Documents

Publication Publication Date Title
JP2940936B2 (en) Tablespace identification method
JPH0546591B2 (en)
JP2000207489A (en) Character extraction method, apparatus and recording medium
JPS62254282A (en) Method and apparatus for separating overlapped pattern
US5361309A (en) Character recognition apparatus and method with low-resolution storage for character extraction
JPH0571989B2 (en)
JP2993007B2 (en) Image area identification device
JPS58197581A (en) Method and device for recognizing character and figure
JPS5851301B2 (en) Image input processing device
JPS641827B2 (en)
JPH03269780A (en) Fingerprint data binarizing method
JP2910295B2 (en) Contour information extraction device
JP3341097B2 (en) Optical character reader
JPS63182780A (en) Picture processing method for drawing reading device
JPH0225553B2 (en)
JPH03104480A (en) Image encoding circuit
JPS62247473A (en) Image processing device
JPS6279580A (en) Image processing device
JPS6020785B2 (en) Character pattern buffer
CN120640016A (en) Real-time processing method of dynamic windowing for large array detectors facing space moving targets
CN113808225A (en) Lossless coding method for image
JPS60123970A (en) Picture reader
JPS61125687A (en) Pattern extraction method
JPS61196382A (en) Character segmenting system
JPH03252779A (en) Diagram recognizing device