JPH0594529A - Method for expanding graphic - Google Patents

Method for expanding graphic

Info

Publication number
JPH0594529A
JPH0594529A JP28049591A JP28049591A JPH0594529A JP H0594529 A JPH0594529 A JP H0594529A JP 28049591 A JP28049591 A JP 28049591A JP 28049591 A JP28049591 A JP 28049591A JP H0594529 A JPH0594529 A JP H0594529A
Authority
JP
Japan
Prior art keywords
graphic
expansion
image
pixel
information
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
JP28049591A
Other languages
Japanese (ja)
Inventor
Koji Matsumoto
幸治 松本
Manabu Aisaka
学 逢坂
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.)
Ezel Inc
Original Assignee
Ezel Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ezel Inc filed Critical Ezel Inc
Priority to JP28049591A priority Critical patent/JPH0594529A/en
Publication of JPH0594529A publication Critical patent/JPH0594529A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To obtain an expansion method capable of expanding a graphic without generating a topology change. CONSTITUTION:The near-by information of a background picture element adjacent to a boundary picture element on a binary image is extracted, the near-by information of respective background picture elements is registered in a memory, and when plural discontinued graphic picture elements exist in the neary-by information, a mask image is formed by the corresponding background picture elements and the mask image is used as an inhibition area to expand the binary image.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は図形膨張方法に係り、
特に図形のトポロジーを保存しつつ図形を膨張し得る膨
張方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic expansion method,
In particular, it relates to an expansion method capable of expanding a graphic while preserving the topology of the graphic.

【0002】[0002]

【従来技術】図形膨張は収縮の処理との併用により図形
周縁の微小凹凸を除去するノイズ除去に有効な処理とし
て広く知られている。しかし膨張の結果、隣接図形の融
合が生じる可能性があり、トポロジーが変化することが
あった。画像融合はその後の処理によっては有益な効果
であるが、トポロジーすなわちグループ数や穴数を保持
しつつ膨張図形を得ようとする場合には好ましくない。
2. Description of the Related Art Graphic expansion is widely known as a process effective in noise removal for removing minute irregularities on the periphery of a graphic in combination with contraction processing. However, as a result of expansion, fusion of adjacent figures may occur and the topology may change. Image fusion is a beneficial effect depending on the subsequent processing, but it is not preferable when trying to obtain an expanded figure while maintaining the topology, that is, the number of groups and the number of holes.

【0003】[0003]

【発明が解決しようとする課題】この発明はこのような
従来の問題点を解消すべく創案されたもので、トポロジ
ー変化を生じさせることなく図形を膨張し得る膨張方法
を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention was devised to solve such conventional problems, and an object thereof is to provide an expansion method capable of expanding a figure without causing a topology change. To do.

【0004】[0004]

【課題を解決する手段】この発明に係る図形膨張方法
は、図形境界に隣接する背景画素についてその近傍情報
を求め、この近傍情報に基づいて膨張禁止領域を与える
マスク画像を生成するものである。
A graphic expansion method according to the present invention obtains neighborhood information of a background pixel adjacent to a graphic boundary, and generates a mask image giving an expansion prohibited area based on the neighborhood information.

【0005】[0005]

【実施例】次に、この発明に係る図形膨張方法の1実施
例を図面に基づいて説明する。図1は同実施例のフロー
チャートを示すものであり、処理対象となる画像はビデ
オカメラ等の入力手段により取込まれ(ステップ1−
1)、2値化され(ステップ1−2)、一旦メモリに登
録される(ステップ1−3)。この2値画像について、
所定サイズのコンボリューションごとに、近傍情報を求
める(ステップ1−4)。ここにいう近傍情報とは、連
結数類似の概念であり、周囲画素がいくつのグループに
分割できるかを示す数値である。連結数においては、中
央画素が図形画素であることが前提となるが、ここでは
中央画素が背景画素であることが前提となる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, one embodiment of a graphic expansion method according to the present invention will be described with reference to the drawings. FIG. 1 shows a flow chart of the embodiment, in which an image to be processed is taken in by an input means such as a video camera (step 1-
1) Binarized (step 1-2) and once registered in the memory (step 1-3). For this binary image,
Neighborhood information is obtained for each convolution of a predetermined size (step 1-4). The neighborhood information mentioned here is a concept similar to the number of connections and is a numerical value indicating how many groups the surrounding pixels can be divided into. Regarding the number of connections, it is premised that the central pixel is a graphic pixel, but here it is premised that the central pixel is a background pixel.

【0006】中央画素の周囲に複数グループの図形画素
が存在するとき、膨張の結果、中央の背景画素が図形画
素に変換されると、中央画素によって周囲の図形が連結
され、トポロジーが変わることになる。このトポロジー
の変化を防止するために、中央画素が背景画素であり、
かつ周囲に複数グループの図形画素が存在する場合、そ
の中央画素を膨張の対象から除外する。以上の判断は、
ステップ1−5〜1−6において実行され、除外条件に
適合した場合には、膨張の禁止を示す濃度をマスクプレ
ーンに書込む(ステップ1−7)。背景画素の濃度を
「0」、図形画素の濃度を「1」とすると、膨張禁止を
示す濃度はその他の濃度、例えば「255」が採用され
る。1画像全体について以上の処理が終了したときに
(ステップ1−8)、生成されたマスクプレーンを参照
しつつ、原画像について膨張の処理を施す(ステップ1
−9)。
When a plurality of groups of graphic pixels are present around the central pixel and the background pixel at the center is converted into a graphical pixel as a result of expansion, the central pixel connects the surrounding graphics and changes the topology. Become. To prevent this topology change, the central pixel is the background pixel,
If there are a plurality of groups of graphic pixels in the surroundings, the central pixel is excluded from the expansion target. The above judgment is
If the exclusion conditions are met in steps 1-5 to 1-6, a density indicating prohibition of expansion is written on the mask plane (step 1-7). When the density of the background pixel is "0" and the density of the graphic pixel is "1", another density, for example, "255" is adopted as the density indicating expansion prohibition. When the above process is completed for the entire one image (step 1-8), the expansion process is performed on the original image while referring to the generated mask plane (step 1).
-9).

【0007】図2は中央画素が膨張の対象とすべきでな
い例を示し、図3は膨張の対象とすべき例を示す。図2
では画素A、Fが図形画素であり、これらは相互に離間
している。一方、図3は隣接した画素A、Bが図形画素
である。
FIG. 2 shows an example in which the central pixel should not be the target of expansion, and FIG. 3 shows an example of not being the target of expansion. Figure 2
In, pixels A and F are graphic pixels, and these are separated from each other. On the other hand, in FIG. 3, adjacent pixels A and B are graphic pixels.

【0008】なお以上の処理において、1グループの図
形に凹部が存在した場合(図4)、凹部の中間部分を見
るコンボリューションC1においては周囲画素には複数
グループの図形画素が存在する。しかし、凹部の底部を
捕らえるコンボリューションC2では周囲画素が1グル
ープであることが判明し、ここから膨張を進めて行け
ば、ついには凹部を埋めることができる。すなわち、疑
似的な複数グループの存在も膨張の反復により解消し得
ることが分かる。
In the above process, when a concave portion is present in one group of graphics (FIG. 4), in the convolution C1 for looking at the middle portion of the concave portion, a plurality of groups of graphic pixels are present in the surrounding pixels. However, in the convolution C2 that catches the bottom of the recess, it is found that the surrounding pixels are one group, and if the expansion is advanced from here, the recess can be finally filled. That is, it can be understood that the existence of pseudo multiple groups can be eliminated by repeating expansion.

【0009】[0009]

【発明の効果】以上のように、本発明によれば図形画像
のトポロジーを変化させることなく図形を膨張し得ると
いう効果を有する。
As described above, according to the present invention, it is possible to expand a graphic without changing the topology of the graphic image.

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

【図1】本発明の1実施例を説明するためのフローチャ
ートである。
FIG. 1 is a flow chart for explaining an embodiment of the present invention.

【図2】膨張処理を施さない不連続な図形画素の1例で
ある。
FIG. 2 is an example of discontinuous graphic pixels that are not subjected to expansion processing.

【図3】膨張処理を施す連続する図形画素の1例であ
る。
FIG. 3 is an example of continuous graphic pixels to which expansion processing is applied.

【図4】図形に凹部が存在する例を示す図である。FIG. 4 is a diagram showing an example in which a figure has a recess.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2値画像の境界画素に隣接する背景画素
の近傍情報を抽出し、各背景画素についてその近傍情報
をメモリに登録し、この近傍情報に不連続な複数の図形
画素が存在するときに、対応する背景画素によってマス
ク画像を生成し、このマスク画像を禁止領域として前記
2値画像を膨張することを特徴とする図形膨張方法。
1. The neighborhood information of a background pixel adjacent to a boundary pixel of a binary image is extracted, the neighborhood information of each background pixel is registered in a memory, and the neighborhood information includes a plurality of discontinuous graphic pixels. Sometimes, a mask image is generated by the corresponding background pixel, and the binary image is expanded using the mask image as a prohibited area.
JP28049591A 1991-10-01 1991-10-01 Method for expanding graphic Pending JPH0594529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28049591A JPH0594529A (en) 1991-10-01 1991-10-01 Method for expanding graphic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28049591A JPH0594529A (en) 1991-10-01 1991-10-01 Method for expanding graphic

Publications (1)

Publication Number Publication Date
JPH0594529A true JPH0594529A (en) 1993-04-16

Family

ID=17625883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28049591A Pending JPH0594529A (en) 1991-10-01 1991-10-01 Method for expanding graphic

Country Status (1)

Country Link
JP (1) JPH0594529A (en)

Similar Documents

Publication Publication Date Title
JP7596455B2 (en) Training and upscaling large size images
CN111402111B (en) Image blurring method, device, terminal and computer-readable storage medium
US6148114A (en) Ring dilation and erosion techniques for digital image processing
JPH0594529A (en) Method for expanding graphic
JPS63238684A (en) Picture binarizing device
JPH02161571A (en) Method for processing image
JPH0594534A (en) Method for separating graphic
JPH0425980A (en) Noise removing method
JPS6219970A (en) Image processing device
JPH06251148A (en) Outline extracting method
JPS6336482A (en) Area dividing system for image
JP2003189090A (en) Image processing apparatus and method, image processing program and storage medium
JP3157860B2 (en) How to extract figure area of manuscript
JPH0594527A (en) Method for reducing graphic
JP3157861B2 (en) Area division method
van de Weijer et al. Color mode filtering
JPH07254981A (en) Data managing device for image magnifying processor
JP2613589B2 (en) Mask processing method
JPH0224786A (en) Method for shaping character pattern
JPS63280379A (en) Processor for pore like flaw picture
JPH06259551A (en) Method for separating graphics
JP2784591B2 (en) Drawing method
JPH0589242A (en) Object area segmenting device for image
JPH01217578A (en) Image processing device
JPS63168787A (en) Line thickening processor