JPS6284390A - Area extraction system - Google Patents

Area extraction system

Info

Publication number
JPS6284390A
JPS6284390A JP60225208A JP22520885A JPS6284390A JP S6284390 A JPS6284390 A JP S6284390A JP 60225208 A JP60225208 A JP 60225208A JP 22520885 A JP22520885 A JP 22520885A JP S6284390 A JPS6284390 A JP S6284390A
Authority
JP
Japan
Prior art keywords
area
reduction
enlargement
extracted
operations
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
JP60225208A
Other languages
Japanese (ja)
Inventor
Takashi Torio
隆 鳥生
Noboru Ozaki
暢 尾崎
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 JP60225208A priority Critical patent/JPS6284390A/en
Publication of JPS6284390A publication Critical patent/JPS6284390A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To speedily repeat enlarging and reducing operations of an area at high accuracy and to extract a pattern area by repeating said operations by the prescribed times after a basic area is extracted. CONSTITUTION:When an extractable pattern area is inputted to an area enlargement and reduction part 2 by binarization processing, a control part 3, first, gives instructions that the area enlargement and reduction part 2 reduces the area Q-times, then gives m-times instructions that the part 2 enlarges the area, and finally gives n-times instructions that the part 2 reduces the area. Thus, the area enlargement and reduction part 2 sufficiently removes noise components by the reduction operations Q-times, after which it enlarges the area by the enlargement operations m-times to link the extracted areas, extracts a dropped out part, and finally returns the area to its original size by the reduction operations n-times.

Description

【発明の詳細な説明】 [概 要] 画像処理装置において画像中の繰返し模様の存在する領
域の抽出方式であって、基本領域を抽出した後、領域の
縮小、拡大処理を所定回数繰り返すことによって、雑音
を除去し、未抽出の領域を含めて繰返し模様の存在する
領域を高速且つ高精度に抽出することが可能となった。
[Detailed Description of the Invention] [Summary] This is a method for extracting a region where a repeating pattern exists in an image in an image processing device. , it has become possible to remove noise and extract regions with repeating patterns, including unextracted regions, at high speed and with high precision.

[産業上の利用分野] 本発明は、画像処理装置に係わり、特に画像処理におい
て繰返し模様が存在する領域を抽出する方式に関するも
のである。
[Industrial Field of Application] The present invention relates to an image processing apparatus, and particularly to a method for extracting an area where a repeating pattern exists in image processing.

[従来の技術] 図形認識における領域抽出方式として、従来はその領域
に特をな色彩、若しくは濃淡のレベルの範囲を予め求め
ておき、入力画像から色彩若しくは濃淡のレベルがその
範囲にあるような領域を抽出、即ち二値化符号で“■”
として他の領域から区別するというものであった。
[Prior Art] Conventionally, as a region extraction method for figure recognition, a range of colors or shading levels that are particular to the region is determined in advance, and then a range of colors or shading levels that are unique to the region is found in advance, and then a range of colors or shading levels that are within that range is extracted from the input image. Extract the area, i.e. “■” in binary code
This was to distinguish it from other areas.

[発明が解決しようとする問題点] 上記の従来の方式は、抽出の対象となる領域が一様であ
るときには有効であるが、色彩若しくは濃淡のレベルが
規則的に変化するような繰返し模様がある領域を抽出し
ようとすると、模様に応じて領域の一部が規則的に欠落
するという欠点があった。
[Problems to be Solved by the Invention] The above-mentioned conventional method is effective when the area to be extracted is uniform; When attempting to extract a certain area, there is a drawback that part of the area is regularly omitted depending on the pattern.

本発明は、このような従来方式の欠点を解消した新規な
領域抽出方式を提供しようとするものである。
The present invention aims to provide a novel area extraction method that eliminates the drawbacks of such conventional methods.

[問題点を解決するための手段] 第1図は本発明の領域抽出方式の原理ブロック図を示す
[Means for Solving the Problems] FIG. 1 shows a block diagram of the principle of the region extraction method of the present invention.

第1図において、1は基本領域抽出部であって、その領
域に特有な色彩、若しくは濃淡のレベルに闇値を設け、
この範囲内の画素を抽出する。
In FIG. 1, reference numeral 1 denotes a basic area extraction unit, which sets a darkness value to the color or shading level unique to that area.
Extract pixels within this range.

例えば、R,G、B三原色成分ののうちRのレベルがあ
る値以上、G、B成分のレベルがある値以下という闇値
を設定しておき、これを満足する画素を抽出する。
For example, a dark value is set such that the level of R among the three primary color components R, G, and B is above a certain value, and the level of the G and B components is below a certain value, and pixels satisfying this value are extracted.

2は領域縮小拡大部であって、制御口部3の指示により
領域の周辺画素を削除して領域を縮小、若しくは領域の
周辺に画素を付加して領域を拡大する処理を行う。
Reference numeral 2 denotes a region reduction/enlargement section which performs processing to reduce the region by deleting peripheral pixels of the region or to enlarge the region by adding pixels around the region according to instructions from the control port 3.

3は制御部であって、基本領域抽出部1により抽出した
領域を0回縮小した後、該縮小された領域をm回拡大し
、該拡大された領域を再び0回縮小するよう領域縮小・
拡大部に指示を与える。
3 is a control unit that reduces the area extracted by the basic area extraction unit 1 0 times, enlarges the reduced area m times, and reduces the area again 0 times.
Give instructions to the magnifying section.

第2図は領域の縮小、拡大処理を説明する図である。FIG. 2 is a diagram illustrating area reduction and enlargement processing.

第2図(a)は領域の周辺部の画素を削除する縮小処理
を示し、同図(blは領域の周辺部に画素を付は加える
拡大処理を示す。
FIG. 2(a) shows a reduction process for deleting pixels at the periphery of a region, and FIG. 2(a) shows an enlargement process for adding or adding pixels to the periphery of the region.

これらの処理は、画像処理分野においては周知の処理で
ある。
These processes are well known in the field of image processing.

Q、m、nの縮小または拡大の回数は、抽出すべき領域
の模様により設定する。
The number of times Q, m, and n are reduced or enlarged is set depending on the pattern of the area to be extracted.

最初に、抽出された基本領域の周辺部の画素を削除する
処理を0回繰り返すことによって、面積の小さい雑音成
分を除去する。
First, noise components having a small area are removed by repeating the process of deleting pixels in the peripheral area of the extracted basic region 0 times.

次に、生き残った領域の周辺に画素を付は加える処理を
m回繰り返すことによって、領域を拡大して、二値化処
理で抽出できなかった規則的な欠落部分を抽出する。
Next, the process of adding and adding pixels around the surviving area is repeated m times to enlarge the area and extract regular missing parts that could not be extracted by the binarization process.

最後に、拡大された領域の周辺部の画素を削除する処理
をn回繰り返すことによって、拡大された領域を縮小し
て、本来の大きさに戻すものである。
Finally, by repeating the process of deleting pixels on the periphery of the enlarged area n times, the enlarged area is reduced and returned to its original size.

[作用] 上記の構成によって、従来方式では抽出困難であった繰
返し模様の領域を抽出することが可能となった。
[Operation] The above configuration makes it possible to extract a repeating pattern area that is difficult to extract using conventional methods.

即ち、二値化処理により抽出可能な模様部分を抽出し、
0回の縮小処理により雑音成分を充分除去した後、m回
の拡大処理により領域を拡大して抽出領域を結合させて
欠落部分を抽出し、最後にn回の縮小処理により本来の
大きさに戻すものである。
That is, extract the pattern part that can be extracted by binarization processing,
After sufficiently removing noise components through 0 reduction processes, the area is enlarged by m enlargement processes, the extracted areas are combined to extract missing parts, and finally the size is returned to the original size by n reduction processes. It is something to return.

[実施例コ 以下第3図および第4図に示す実施例により、本発明を
さらに具体的に説明する。
[Example] The present invention will be explained in more detail with reference to an example shown in FIGS. 3 and 4.

第3図は本発明の実施例のプロ・ンク図である。FIG. 3 is a schematic diagram of an embodiment of the present invention.

第3図において、第1図と同一の符号(1〜3)は同一
の対象物を示す。
In FIG. 3, the same symbols (1 to 3) as in FIG. 1 indicate the same objects.

4は入力部であって、画像をテレビジョン・カメラで撮
像して、512X512、R,G、B各8ビットのディ
ジタル画像に変換する。
4 is an input unit which captures an image with a television camera and converts it into a 512×512, 8-bit R, G, B digital image.

基本領域抽出部1は閾値設定部11と二値化回路12と
で構成され、闇値設定部11では、抽出すべき繰返し模
様を構成するいくつかの色彩のうち1つを選び、その色
彩に対応するR、G、Hの各成分のレベル範囲を二値化
の闇値として設定する。
The basic area extraction section 1 is composed of a threshold value setting section 11 and a binarization circuit 12, and the darkness value setting section 11 selects one of several colors that make up the repetitive pattern to be extracted, The level range of the corresponding R, G, and H components is set as the dark value for binarization.

二値化回路12では、入力画像のR,G、Bの各成分の
レベルが闇値設定部11で設定された闇値の範囲内であ
る画素の画素値を“1”、それ以外の画素の画素値を“
0”に変換する。
In the binarization circuit 12, the pixel value of the pixel whose level of each R, G, and B component of the input image is within the range of the darkness value set by the darkness value setting unit 11 is set to "1", and the pixel value of the other pixels is set to "1". The pixel value of “
Convert to 0”.

5は画像メモリであって、処理の各段階の画像を格納す
る。
An image memory 5 stores images at each stage of processing.

制御部3は、領域縮小拡大部2に対して、まず領域を縮
小する指示をQ回出し、次に領域を拡大する指示をm回
出し、最後に領域を縮小する指示をn回出す。
The control unit 3 first issues an instruction to reduce the area to the area reduction/enlargement unit 2 Q times, then issues an instruction to enlarge the area m times, and finally issues an instruction to reduce the area n times.

領域縮小拡大部2では、制御部3から領域縮小の指示を
受けたときは、画像上を3×3のウィンドウで走査し、
ウィンドウ内の少なくとも1つの画素が“0”であると
きに、ウィンドウ中央の画素の画素値を“0”とし、そ
れ以外のときに“1”とする。
When the area reduction/enlargement unit 2 receives an instruction to reduce the area from the control unit 3, it scans the image with a 3×3 window,
When at least one pixel within the window is "0", the pixel value of the pixel at the center of the window is set to "0", and at other times it is set to "1".

また、制御部3から領域拡大の指示を受けたときは、画
像上を3×3のウィンドウで走査し、ウィンドウ内の少
なくとも1つの画素が“1”であるときに、ウィンドウ
中央の画素の画素値を“1′とし、それ以外のときに“
O”とする処理を行う。
When an instruction to enlarge the area is received from the control unit 3, the image is scanned with a 3×3 window, and when at least one pixel in the window is “1”, the pixel at the center of the window is Set the value to “1′, and set the value to “1” at other times.
Processing to set the value to "O" is performed.

縮小回数Qは、雑音が除去され、抽出した基本領域が必
ず残るよう、抽出すべき領域の模様により設定する。
The number of reductions Q is set depending on the pattern of the area to be extracted so that noise is removed and the extracted basic area remains.

拡大回数mは、領域拡大により基本領域同士が結合する
よう設定する。
The number of enlargements m is set so that basic regions are combined with each other by region enlargement.

縮小回数nは、本来の大きさに戻すよう、従って、 n=m−Q となる。The number of reductions n is set to return to the original size, therefore, n=m-Q becomes.

第4図は、本発明の実施例による処理を例示する図であ
る。
FIG. 4 is a diagram illustrating processing according to an embodiment of the present invention.

第4図の(a)は、テレビジョン・カメラで撮像た画像
であって、本例では画像中の測量棒■、■、■を抽出し
ようとするものである。
FIG. 4(a) is an image captured by a television camera, and in this example, surveying rods ■, ■, ■ are to be extracted from the image.

測量棒■、■、■は、赤と白に交互に彩色してあり、闇
値設定部においてR成分のレベルの闇値を、例えば10
0以上、G、 B成分のレベルの闇値を10以下と設定
して測量棒の赤部分を抽出する。
The surveying rods ■, ■, ■ are colored alternately red and white, and the darkness value setting section sets the darkness value of the R component level to 10, for example.
The red part of the surveying rod is extracted by setting the darkness value of the levels of 0 or more and G and B components to 10 or less.

同図(b)は、画像の赤部分を抽出した結果であり、測
量棒の他に雑音を含んでいる。
Figure (b) shows the result of extracting the red part of the image, which includes noise in addition to the surveying rod.

同図(C)は、Q回の縮小処理の結果、雑音が除去され
たことを示している。
FIG. 4C shows that noise has been removed as a result of the reduction process Q times.

同図(dlは、m回の拡大処理の結果、領域が拡大して
結合した状況を示している。
In the same figure, dl indicates a situation in which the regions have been expanded and combined as a result of the enlargement process m times.

同図(e)は、3回の縮小処理の結果、本来の大きさの
測量棒金体の画像が抽出されたことを示している。
FIG. 6(e) shows that as a result of the three reduction processes, an image of the surveying rod of the original size has been extracted.

[発明の効果] 以上説明のように本発明によれば、比較的単純な処理論
理によって、雑音の除去および未抽出の領域の再抽出が
でき、高速且つ高精度に繰返し模様領域の抽出が可能と
なり、その実用上の効果は大きい。
[Effects of the Invention] As explained above, according to the present invention, noise can be removed and unextracted areas can be re-extracted using relatively simple processing logic, and repetitive pattern areas can be extracted at high speed and with high precision. Therefore, the practical effect is great.

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

第1図は本発明の原理ブロック図、 第2図は領域の縮小、拡大処理を例示する図、第3図は
本発明の実施例のブロック図、第4図は本発明の実施例
による処理を例示する図である。 図面において、 1は基本領域抽出部、   2は領域縮小拡大部、3は
制御部、       4は人力部、5は画像メモリ、
    11は闇値設定部、12は二値化回路、 をそれぞれ示す。 (a)噛 ・1・ (b]1ム梃 命1す或0剰言、l・、櫨す;Eイダ・1示■ろ7第 
2 図 本S−日月の実ヤ邑イタ弓07”177図勺色  3 
  同 (1))               CC)   
         (、tメ)           
   (0′本会日月の実方知イラ・jによるZ国司し
乞イタ・j示1ろ図第 4 図
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a diagram illustrating area reduction and enlargement processing, Fig. 3 is a block diagram of an embodiment of the present invention, and Fig. 4 is a processing according to an embodiment of the present invention. FIG. In the drawings, 1 is a basic region extraction section, 2 is an area reduction/enlargement section, 3 is a control section, 4 is a human power section, 5 is an image memory,
Reference numeral 11 indicates a dark value setting section, and reference numeral 12 indicates a binarization circuit. (a) Chew ・1・ (b) 1 mu force 1 s or 0 syllable, l...
2 Illustrated book S - Sun and Moon no Mi Yamura Itayu 07" 177 illustration 3
Same (1)) CC)
(, t mail)
(0'Z Kokushi Shibei Ita-j by Ira-j of the Honkai Sun-Moon) Figure 4

Claims (1)

【特許請求の範囲】 画像中の規則的な繰返し模様の領域を抽出する方式であ
って、 色彩若しくは濃淡レベルが予め定めた範囲内である領域
を抽出する基本領域抽出部(1)と、領域の周辺画素を
削除して領域を縮小し、または領域の周辺に画素を付加
して領域を拡大する領域縮小拡大部(2)と、 前記基本領域抽出部の抽出した基本領域を予め設定した
回数縮小した後、該縮小された領域を予め設定した回数
拡大し、該拡大された領域を再び、予め設定した回数縮
小するよう前記領域縮小拡大部(2)に指示を与える制
御部(3)を、 備えるよう構成したことを特徴とする領域抽出方式。
[Scope of Claim] A method for extracting a region of a regular repeating pattern in an image, comprising: a basic region extraction unit (1) for extracting a region whose color or shade level is within a predetermined range; an area reduction/enlargement unit (2) that reduces the area by deleting peripheral pixels of the area or enlarges the area by adding pixels around the area; and a preset number of basic areas extracted by the basic area extraction unit. After the reduction, the control unit (3) instructs the area reduction/enlargement unit (2) to enlarge the reduced area a preset number of times and to reduce the enlarged area again a preset number of times. , A region extraction method characterized in that it is configured to include.
JP60225208A 1985-10-09 1985-10-09 Area extraction system Pending JPS6284390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60225208A JPS6284390A (en) 1985-10-09 1985-10-09 Area extraction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60225208A JPS6284390A (en) 1985-10-09 1985-10-09 Area extraction system

Publications (1)

Publication Number Publication Date
JPS6284390A true JPS6284390A (en) 1987-04-17

Family

ID=16825674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60225208A Pending JPS6284390A (en) 1985-10-09 1985-10-09 Area extraction system

Country Status (1)

Country Link
JP (1) JPS6284390A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0383179A (en) * 1989-08-28 1991-04-09 Toto Ltd Image processor
JP2008232814A (en) * 2007-03-20 2008-10-02 Shimadzu Corp Device for inspecting x-ray foreign matter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0383179A (en) * 1989-08-28 1991-04-09 Toto Ltd Image processor
JP2008232814A (en) * 2007-03-20 2008-10-02 Shimadzu Corp Device for inspecting x-ray foreign matter

Similar Documents

Publication Publication Date Title
US6226400B1 (en) Defining color borders in a raster image by identifying and breaking contrast ties
EP0841636A3 (en) Method and apparatus of inputting and outputting color pictures and continually-changing tone pictures
US6728399B1 (en) Method and apparatus for defining color borders in a raster image by identifying and breaking contrast ties
JP6056511B2 (en) Image processing apparatus, method, program, and imaging apparatus
JPS6284390A (en) Area extraction system
WO1999067745A1 (en) A method and apparatus for defining color borders in a raster image
JPH05258054A (en) Device for actualizing two-dimensional digital filter
JPH0362177A (en) Picture processor
JPH11341295A (en) Image processing method
JPS6219970A (en) Mask processing system
JPH08123901A (en) Character extraction device and character recognition device using this device
JPH06301775A (en) Picture processing method, picture identification method and picture processor
EP0801362A3 (en) Method and apparatus for converting image representation format
JP3976436B2 (en) Median extraction circuit and image processing apparatus using the same
JP2938217B2 (en) Image processing device
JP2832019B2 (en) Image processing device
KR100332753B1 (en) Image processing method of image processing system
JP2601156B2 (en) Image processing device
JPH0229782A (en) Automatic generation system for outline font
JPH0773328A (en) Color image processor
JPH0520455A (en) Picture processing method
JPS6170673A (en) Image processor
JP3109237B2 (en) Line segment constituent pixel extraction method and line segment judgment method in image
JPH05135163A (en) Image processing method
JPH0122953B2 (en)