JPH0785275A - Method and device for extracting image - Google Patents

Method and device for extracting image

Info

Publication number
JPH0785275A
JPH0785275A JP5185549A JP18554993A JPH0785275A JP H0785275 A JPH0785275 A JP H0785275A JP 5185549 A JP5185549 A JP 5185549A JP 18554993 A JP18554993 A JP 18554993A JP H0785275 A JPH0785275 A JP H0785275A
Authority
JP
Japan
Prior art keywords
image
color coordinate
histogram
extraction
coordinate system
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
JP5185549A
Other languages
Japanese (ja)
Inventor
Norio Niitsuma
規夫 新妻
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 General Ltd
Original Assignee
Fujitsu General 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 General Ltd filed Critical Fujitsu General Ltd
Priority to JP5185549A priority Critical patent/JPH0785275A/en
Publication of JPH0785275A publication Critical patent/JPH0785275A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately extract an image to be extracted without executing complicated procedure even when fine ruggedness exists on a boundary or a small hole-like non-extraction area exists in the picture. CONSTITUTION:A rough outline 50 like (b) is displayed so as to be superposed to an original picture 42 in (a) and a corresponding area in the picture 42 is extracted and displayed on an outline 52 obtained by thinning the rough outline 50. The histograms of components in a color coordinate system for picture elements in the extracted original picture area 54 are found out like (d) to (f) and a point A for an extraction area and a point B for a non-extraction area in the area 54 are specified like (g). Thereby a component histogram showing that the components of the picture elements on the specified points A, B are close to the peak position of the histogram and are mutually separated is selected out of plural component histograms, the extraction area is distinguished from the non-extraction area by a threshold on the selected component histogram and a real picture extraction area 54a like (h) is extracted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、景観シミュレーション
やデザインシミュレーション等のイメージシミュレーシ
ョン、画像データベースシステムまたは電子カタログ等
の展示システム等で用いられる画像抽出方法および装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image extraction method and apparatus used in image simulations such as landscape simulations and design simulations, image database systems or exhibition systems such as electronic catalogs.

【0002】[0002]

【従来の技術】従来の画像抽出方法および装置には、抽
出対象領域の輪郭線を求め、その内部を抽出する方法お
よび装置や、いわゆるクロマキー手法を用いた方法およ
び装置が知られている。
2. Description of the Related Art As conventional image extracting methods and apparatuses, there are known a method and an apparatus for obtaining an outline of an extraction target area and extracting the outline thereof, and a method and an apparatus using a so-called chroma key method.

【0003】前者の輪郭線を求めて画像を抽出するもの
には、図4に示すような装置を用いて図5に示すような
方法で画像を抽出するものが知られている。すなわち、
画像入力部(例えばテレビカメラやイメージスキャナ)
10を用いて取り込んだ図5の(a)に示すような原画
像(または元画像ともいう)12を、画像処理部として
のマイクロプロセッサ14で画像処理してRAM(例え
ばVRAM)16内の原画像記憶部16aに記憶すると
ともに画像表示部としてのCRTディスプレイ18で表
示する。
As the former method of extracting an image by obtaining the contour line, there is known a method of extracting an image by a method shown in FIG. 5 using an apparatus shown in FIG. That is,
Image input section (for example, TV camera or image scanner)
An original image (also referred to as an original image) 12 as shown in FIG. 5A captured by using the image processing unit 10 is image-processed by a microprocessor 14 as an image processing unit, and an original image in a RAM (for example, VRAM) 16 is stored. The image is stored in the image storage unit 16a and displayed on the CRT display 18 as an image display unit.

【0004】ついで、ポインティングデバイスの一例と
してのタブレット20からの位置情報入力によって、C
RTディスプレイ18が表示中の原画像12の中に図5
の(b)に示すような粗輪郭線(例えば線幅が数画素の
輪郭線)22を描くとともに、マイクロプロセッサ14
内の内部メモリ(図示省略)やRAM16内の輪郭線記
憶部16bに図5の(c)に示すような粗輪郭線画像情
報23を書き込む。すなわち、粗輪郭線22の存在する
領域の画素のデータを全て論理「1」とし、その他の領
域の画素のデータを論理「0」として表したパターン情
報としての粗輪郭線画像情報23を書き込む。
Then, by inputting position information from a tablet 20 as an example of a pointing device, C
The original image 12 being displayed on the RT display 18 is shown in FIG.
While drawing a rough contour line (for example, a contour line having a line width of several pixels) 22 as shown in (b) of FIG.
The rough contour image information 23 as shown in FIG. 5C is written in the internal memory (not shown) in the inside or the contour storage part 16b in the RAM 16. That is, the rough contour line image information 23 is written as pattern information in which the data of the pixels in the region where the rough contour line 22 exists is all logic "1" and the data of the pixels in the other regions is logic "0".

【0005】ついで、ROM25に格納された細線化処
理用プログラムを実行するマイクロプロセッサ14の細
線化処理機能によって、原画像12の中の粗輪郭線22
を図5の(d)に示すような細線化処理された輪郭線
(例えば線幅が1画素の輪郭線)24にするとともに、
マイクロプロセッサ14の内部メモリや輪郭線記憶部1
6b内の粗輪郭線画像情報23を細線化処理し、ついで
同図の(e)に示すようなラベル付けをする。
Then, by the thinning processing function of the microprocessor 14 which executes the thinning processing program stored in the ROM 25, the rough contour line 22 in the original image 12 is obtained.
To a thinned contour line 24 (for example, a contour line having a line width of 1 pixel) 24 as shown in FIG.
Internal memory of the microprocessor 14 and contour line storage unit 1
The rough contour image information 23 in 6b is thinned and then labeled as shown in (e) of FIG.

【0006】すなわち、輪郭線24の存在する領域の画
素にはラベル「1」を付与し、輪郭線24で囲まれた領
域内の画素にはラベル「2」を付与し、その他の領域の
画素にはラベル「0」を付与した、図5の(e)に示す
細線化輪郭線情報27を輪郭線記憶部16bに記憶す
る。
That is, the label "1" is given to the pixels in the region where the contour 24 exists, the label "2" is given to the pixels in the region surrounded by the contour 24, and the pixels in the other regions are given. In FIG. 5, the thinned contour line information 27 shown in FIG. 5E is stored in the contour storage unit 16b.

【0007】ついで、ROM25に格納された画像抽出
処理用プログラムを実行するマイクロプロセッサ14の
画像抽出機能によって、原画像12の中から輪郭線24
内に含まれる画像(すなわち抽出対象画像)を抽出し、
CRTディスプレイ18は図5の(f)に示すような抽
出画像12aを表示する。すなわち、同図の(e)にラ
ベル付けして表した細線化輪郭線情報27のラベル
「2」の部分に対応した領域を、同図の(a)または
(d)に示した原画像12の中から切り出して抽出し、
その抽出画像12aを表示する。
Then, the contour line 24 is extracted from the original image 12 by the image extracting function of the microprocessor 14 which executes the image extracting processing program stored in the ROM 25.
Extract the image contained in (that is, the image to be extracted),
The CRT display 18 displays the extracted image 12a as shown in FIG. That is, the area corresponding to the portion of the label "2" of the thinned outline information 27 labeled and shown in (e) of the same figure is the original image 12 shown in (a) or (d) of the same figure. Cut out from the
The extracted image 12a is displayed.

【0008】また、後者のクロマキー手法を用いて画像
を抽出するものには、予め抽出すべき対象を特定の色
(例えば青色)の背景に置いた画像を作っておき、その
画像から色情報に基づいて対象画像を切り出すようにし
たものが知られている。
Further, in the latter method of extracting an image using the chroma key method, an image in which an object to be extracted is placed on a background of a specific color (for example, blue) is made in advance, and color information is converted from the image. It is known that a target image is cut out on the basis of this.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上述し
た従来の輪郭線を求めて画像を抽出するものは、タブレ
ット20を用いた手入力で表示中の原画像12の中に粗
輪郭線22を描いてしまえば、後はマイクロプロセッサ
14の細線化処理機能によって自動的に画像抽出用の輪
郭線24が得られ、パラメータの調整が不要であるとい
う特徴を有るが、手入力の手間と時間を省くために線幅
の広い粗輪郭線22を入力し、それを自動的に細線化す
るようにしていたので、次のような問題点があった。
However, in the above-mentioned conventional method for extracting an image by obtaining a contour line, the rough contour line 22 is drawn in the original image 12 being displayed by manual input using the tablet 20. After that, the characteristic feature is that the contour line 24 for image extraction is automatically obtained by the thinning processing function of the microprocessor 14 and the parameter adjustment is not necessary, but the time and effort of manual input are saved. For this reason, the rough contour line 22 having a wide line width is input and the line is automatically thinned, so that the following problems occur.

【0010】図6の(a)に示すように、人物の髪の
毛、鉄塔の骨格、自転車の車輪のスポークのような、表
示画像である対象物30の境界に細かい凹凸がある場
合、重畳して表示した粗輪郭線(例えば線幅が4画素の
輪郭線)32を細線化処理した輪郭線(例えば線幅が1
画素の輪郭線)34が、同図の(b)に示すように、対
象物30の境界外の領域36を非抽出領域に属させるよ
うに囲むことができず、対象物30以外の不要な領域3
6も抽出してしまうことになるという問題点があった。
なお、図中において38は1画素の大きさを表す。
As shown in FIG. 6 (a), when there are fine irregularities at the boundaries of the object 30 which is the display image, such as the hair of a person, the skeleton of a steel tower, the spokes of a bicycle wheel, they are superimposed. The displayed rough contour line (for example, a contour line having a line width of 4 pixels) 32 is a thinned contour line (for example, a line width is 1
As shown in (b) of the figure, the area 36 outside the boundary of the target object 30 cannot be enclosed so that the pixel contour line 34 belongs to the non-extracted area, and unnecessary parts other than the target object 30 are unnecessary. Area 3
There was a problem that 6 would also be extracted.
In the figure, 38 represents the size of one pixel.

【0011】さらに、図7に示すように、表示画像であ
る対象物30aの内部に小さい孔状の非抽出領域(すな
わち対象外領域、例えば1画素程度の大きさの領域)4
0があるとき、このような非抽出領域40を粗輪郭線3
2aで指定することができないという問題点があった。
Further, as shown in FIG. 7, a small hole-shaped non-extracted region (that is, a non-target region, for example, a region having a size of about 1 pixel) 4 inside the object 30a which is a display image.
When there is 0, such a non-extracted area 40 is set as the rough contour line 3
There is a problem that it cannot be specified by 2a.

【0012】また、従来のクロマキー手法を用いて画像
を抽出するものは、対象と背景の色空間での分布が完全
に分離していれば、細かい部分の抽出も問題なく行なう
ことができるが、予め対象を特定の背景においた画像を
作っておく必要があり、自然画像に適用できないという
大きな問題点があった。
Further, in the conventional image extracting method using the chroma key method, if the distribution of the object and the background in the color space is completely separated, the fine portion can be extracted without any problem. There is a big problem that it is necessary to create an image with the target on a specific background in advance, which cannot be applied to a natural image.

【0013】このような問題点を克服し、クロマキー的
な色空間での閾値(しきい値、以下同様)による領域の
分割を自然画像に適用するため、「繰り返し閾値法」と
いう方法が考案され、実際に適用もされているが、手続
きが煩雑であり、大量のメモリ容量が必要になるなど、
あまり実用的な方法とはいえないという問題点があっ
た。
In order to overcome such a problem and to apply a region division by a threshold value (threshold value, the same applies hereinafter) in a chroma key-like color space to a natural image, a method called "repeated threshold method" has been devised. Although it is actually applied, the procedure is complicated and requires a large amount of memory capacity.
There was a problem that it was not a very practical method.

【0014】本発明は上述の問題点に鑑みなされたもの
で、煩雑な手続きをすることなく、境界に細かい凹凸領
域があったり、内部に小さい孔状の非抽出領域があって
も、抽出対象画像を正確に抽出することのできる画像抽
出方法および装置を提供することを目的とするものであ
る。
The present invention has been made in view of the above-mentioned problems. Even if there is a fine uneven region at the boundary or a small hole-shaped non-extracted region inside, the extraction target is achieved without complicated procedures. It is an object of the present invention to provide an image extraction method and device capable of accurately extracting an image.

【0015】[0015]

【課題を解決するための手段】請求項1に記載の発明
は、(1)画像表示部で表示中の原画像にポインティン
グデバイスからの入力に基づいて粗輪郭線を重畳して表
示し、(2)この粗輪郭線を細線化した輪郭線内の原画
像の画素について、予め設定した色空間の複数の構成成
分のそれぞれを変量とする複数種類のヒストグラムを求
め、(3)前記ポインティングデバイスからの入力に基
づいて、前記細線化輪郭線内の原画像における抽出領域
内の点Aと非抽出領域内の点Bとを指定し、(4)前記
指定点A、Bの画素が前記(2)で求めた複数種類のヒ
ストグラム上の如何なる位置に相当するかを検出し、
(5)この検出値に基づいて、前記(2)で求めた複数
種類のヒストグラムの中から、前記指定点A、Bの画素
がヒストグラムの異なるピーク位置に近く、しかもヒス
トグラム上で可能な限り離れて位置するようなヒストグ
ラムを選択し、(6)前記(5)で選択したヒストグラ
ム上で前記指定点A、Bの画素が属する領域を区分する
ための閾値を求め、(7)前記(6)で求めた閾値に基
づいて前記色空間を抽出領域と非抽出領域に分割し、こ
の分割した抽出領域に対応した原画像の領域を抽出する
ことを特徴とするものである。
According to a first aspect of the present invention, (1) a rough contour line is superimposed and displayed on an original image being displayed on an image display unit based on an input from a pointing device, 2) For the pixels of the original image within the contour line obtained by thinning the rough contour line, a plurality of types of histograms in which each of a plurality of constituent components of a preset color space is used as a variable are obtained, and (3) from the pointing device. Based on the input of, the point A in the extraction area and the point B in the non-extraction area in the original image in the thinned contour line are designated, and (4) the pixels of the designated points A and B are ) Detecting which position on the multiple types of histograms obtained in
(5) Based on this detection value, the pixels of the designated points A and B are close to different peak positions of the histogram from the plurality of types of histograms obtained in (2), and are separated as much as possible on the histogram. (6) A threshold for segmenting the region to which the pixels of the designated points A and B belong is determined on the histogram selected in (5) above, and (7) above (6) above is selected. The color space is divided into an extraction region and a non-extraction region based on the threshold value obtained in step 1, and the region of the original image corresponding to the divided extraction region is extracted.

【0016】請求項2に記載の発明は、前記請求項1に
記載の発明において予め設定する色空間は、(R、G、
B)色座標系、(Y、I、Q)色座標系、(H、S、
I)色座標系、これらの色座標系を適当に座標変換した
色座標系、またはこれらの色座標系のいくつかを併用し
た色座標系のうちの1つとしてなることを特徴とするも
のである。
In a second aspect of the invention, the color space preset in the first aspect of the invention is (R, G,
B) color coordinate system, (Y, I, Q) color coordinate system, (H, S,
I) A color coordinate system, a color coordinate system obtained by appropriately converting these color coordinate systems, or a color coordinate system using some of these color coordinate systems together. is there.

【0017】請求項3に記載の発明は、原画像記憶部に
記憶した原画像を画像表示部で表示し、この表示画像中
にポインティングデバイスからの入力に基づいて粗輪郭
線を描き、この粗輪郭線を細線化した輪郭線を用いて原
画像の所定領域を抽出するようにした画像抽出装置にお
いて、前記細線化輪郭線内の原画像の画素について予め
設定した色空間の複数の構成成分のそれぞれを変量とし
た複数種類のヒストグラムを求める第1手段と、前記ポ
インティングデバイスからの入力に基づいて前記細線化
輪郭線内の原画像における抽出領域内の点Aと非抽出領
域内の点Bとを指定する第2手段と、前記指定点A、B
の画素が前記第1手段で求めた複数種類のヒストグラム
上の如何なる位置に相当するかを検出する第3手段と、
この第3手段で検出した検出値に基づいて、前記第1手
段で求めた複数種類のヒストグラムの中から、前記第2
手段で指定した点A、Bの画素がヒストグラムの異なる
ピーク位置に近く、しかもヒストグラム上で可能な限り
離れて位置するようなヒストグラムを選択する第4手段
と、この第4手段で選択したヒストグラム上で前記指定
点A、Bの画素が属する領域を区分する閾値を求める第
5手段と、この第5手段で求めた閾値に基づいて前記色
空間を抽出領域と非抽出領域に分割し、この分割した抽
出領域に対応した原画像の領域を抽出する第6手段とを
具備してなることを特徴とするものである。
According to a third aspect of the present invention, the original image stored in the original image storage section is displayed on the image display section, and a rough contour line is drawn in the displayed image based on the input from the pointing device. In an image extracting device adapted to extract a predetermined region of an original image using a contour line obtained by thinning the contour line, a plurality of constituent components of a color space preset for pixels of the original image within the thinning contour line First means for obtaining a plurality of types of histograms, each of which is a variable, and a point A in the extraction area and a point B in the non-extraction area in the original image in the thinned contour line based on the input from the pointing device. Second means for designating the designated points and the designated points A and B
Means for detecting which position on the plurality of types of histograms obtained by the first means corresponds to, the third means;
On the basis of the detection value detected by the third means, from the plurality of types of histograms obtained by the first means, the second
A fourth means for selecting a histogram in which the pixels of the points A and B designated by the means are close to different peak positions of the histogram, and are located as far apart as possible on the histogram, and on the histogram selected by the fourth means. And a fifth means for obtaining a threshold value that divides the area to which the pixels of the designated points A and B belong, and the color space is divided into an extraction area and a non-extraction area based on the threshold value obtained by the fifth means. A sixth means for extracting a region of the original image corresponding to the extracted region is provided.

【0018】請求項4に記載の発明は、前記請求項3に
記載の発明の第1手段で予め設定する色空間は、(R、
G、B)色座標系、(Y、I、Q)色座標系、(H、
S、I)色座標系、これらの色座標系を適当に座標変換
した色座標系、またはこれらの色座標系のいくつかを併
用した色座標系のうちの1つとしてなることを特徴とす
るものである。
In a fourth aspect of the invention, the color space preset by the first means of the third aspect of the invention is (R,
G, B) color coordinate system, (Y, I, Q) color coordinate system, (H,
S, I) One of a color coordinate system, a color coordinate system obtained by appropriately converting these color coordinate systems, or a color coordinate system using some of these color coordinate systems in combination. It is a thing.

【0019】[0019]

【作用】請求項3の発明による画像抽出装置は、第1手
段によって、細線化輪郭線内の原画像の画素について予
め設定した色空間の複数の構成成分のそれぞれを変量と
した複数種類のヒストグラムが求められ、第2手段によ
って、ポインティングデバイスからの入力に基づく細線
化輪郭線内の原画像における抽出領域内の点Aと非抽出
領域内の点Bとが指定され、第3手段によって、指定点
A、Bの画素が第1手段で求めた複数種類のヒストグラ
ム上の如何なる位置に相当するかが検出される。
According to the third aspect of the present invention, in the image extracting apparatus according to the first aspect, a plurality of types of histograms in which the plurality of constituent components of the color space preset for the pixels of the original image within the thinned contour line are used as variables are provided by the first means. The second means specifies the point A in the extraction area and the point B in the non-extraction area in the original image in the thinned contour line based on the input from the pointing device, and the third means It is detected which position on the plurality of types of histograms obtained by the first means the pixels of the points A and B correspond to.

【0020】ついで、第4手段は、第3手段で検出した
検出値に基づいて、第1手段で求めた複数種類のヒスト
グラムの中から、第2手段で指定した点A、Bの画素が
ヒストグラムの異なるピーク位置に近く、しかもヒスト
グラム上で可能な限り離れて位置するようなヒストグラ
ムを選択し、第5手段は、第4手段で選択したヒストグ
ラム上で指定点A、Bの画素が属する領域を区分する閾
値を求め、第6手段は、第5手段で求めた閾値に基づい
て色空間を抽出領域と非抽出領域に分割し、この分割し
た抽出領域に対応した原画像の領域を抽出する。
Next, the fourth means selects the histogram of the points A and B designated by the second means from the plurality of types of histograms obtained by the first means based on the detection value detected by the third means. Of the peaks different from each other and located as far apart as possible on the histogram, the fifth means selects the area to which the pixels of the designated points A and B belong on the histogram selected by the fourth means. The sixth means calculates the threshold to be divided, and the sixth means divides the color space into the extraction area and the non-extraction area based on the threshold calculated by the fifth means, and extracts the area of the original image corresponding to the divided extraction area.

【0021】請求項4の発明による画像抽出装置では、
請求項3の発明の第1手段で予め設定される色空間は、
(R、G、B)色座標系、(Y、I、Q)色座標系、
(H、S、I)色座標系、これらの色座標系を適当に座
標変換した色座標系、またはこれらの色座標系のいくつ
かを併用した色座標系の中から、1つが選択される。
In the image extracting apparatus according to the invention of claim 4,
The color space preset by the first means of the invention of claim 3 is
(R, G, B) color coordinate system, (Y, I, Q) color coordinate system,
One is selected from the (H, S, I) color coordinate system, a color coordinate system in which these color coordinate systems are appropriately coordinate-converted, or a color coordinate system in which some of these color coordinate systems are used in combination. .

【0022】[0022]

【実施例】以下、本発明による画像抽出方法および装置
の一実施例を図1および図2を用いて説明する。これら
の図において図4、図5と同一部分は同一符号とする。
図1は画像抽出方法を実施する装置の概略構成図を示す
もので、この図において、10はテレビカメラやイメー
ジスキャナ等を主体としてなる画像入力部で、この画像
入力部10は、図2の(a)に示した原画像42を取り
込んで、対応した画像データを出力するように構成され
ている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image extracting method and apparatus according to the present invention will be described below with reference to FIGS. In these figures, the same parts as those in FIGS. 4 and 5 are designated by the same reference numerals.
FIG. 1 shows a schematic configuration diagram of an apparatus for carrying out an image extracting method. In this figure, 10 is an image input section mainly composed of a television camera, an image scanner, etc., and this image input section 10 is shown in FIG. The original image 42 shown in (a) is taken in and the corresponding image data is output.

【0023】14は画像処理部の一例としてのマイクロ
プロセッサで、このマイクロプロセッサ14には、画像
表示部の一例としてのCRTディスプレイ18と、ポイ
ンティングデバイスとしてのタブレット20とは結合さ
れるとともに、RAM(例えばVRAM)44が結合さ
れている。このRAM44内には、従来例と同様な原画
像記憶部16aおよび輪郭線記憶部16bが設けられて
いるとともに、ヒストグラム記憶部46が設けられてい
る。
Reference numeral 14 denotes a microprocessor as an example of an image processing section. The microprocessor 14 is connected with a CRT display 18 as an example of an image display section and a tablet 20 as a pointing device, and a RAM ( VRAM) 44 is coupled. In the RAM 44, an original image storage unit 16a and a contour line storage unit 16b similar to those in the conventional example are provided, and a histogram storage unit 46 is provided.

【0024】48は前記マイクロプロセッサ14に結合
したROMで、このROM48内には、従来例を示す図
4のROM25と同様な、前記マイクロプロセッサ14
によって細線化処理および抽出処理を行なわせるための
プログラムが格納されている。前記ROM48内には、
さらに、前記マイクロプロセッサ14によってつぎの
(a)〜(f)に示すような処理を行なわせるためのプ
ログラムが格納されている。
Reference numeral 48 is a ROM coupled to the microprocessor 14, and in this ROM 48, the same microprocessor 14 as the ROM 25 shown in FIG.
A program for performing the thinning processing and the extraction processing is stored. In the ROM 48,
Further, a program for causing the microprocessor 14 to perform the processing shown in the following (a) to (f) is stored.

【0025】(a)細線化処理機能および抽出処理機能
によって求めた輪郭線内の原画像の画素について、予め
設定した色空間の複数の構成成分のそれぞれを変量とし
た複数種類のヒストグラムを求める機能(第1手段によ
って達成される機能に対応)。ここで色空間とは、
(R、G、B)色座標系、(Y、I、Q)色座標系、
(H、S、I)色座標系、これらの色座標系を適当に座
標変換した色座標系、またはこれらの色座標系のいくつ
かを併用した色座標系などをさし、これら複数の色座標
系のうちの1つ(例えば(R、G、B)色座標系)が、
操作者によるキーボード等からの指示によって選択、設
定される。
(A) A function of obtaining a plurality of types of histograms in which a plurality of constituent components of a preset color space are used as variables for the pixels of the original image within the contour obtained by the thinning processing function and the extraction processing function (Corresponding to the function achieved by the first means). Here, the color space is
(R, G, B) color coordinate system, (Y, I, Q) color coordinate system,
(H, S, I) color coordinate system, a color coordinate system in which these color coordinate systems are appropriately coordinate-converted, or a color coordinate system in which some of these color coordinate systems are used in combination, and the like. One of the coordinate systems (eg (R, G, B) color coordinate system)
It is selected and set by an instruction from the keyboard or the like by the operator.

【0026】そして、(R、G、B)色座標系はR(赤
色)、G(緑色)、B(青色)を構成成分とする色座標
系を表し、(Y、I、Q)色座標系はY(輝度)、I
(色度図のI軸方向の色度信号)、Q(色度図のQ軸方
向の色度信号)を構成成分とする色座標系を表し、
(H、S、I)色座標系はH(色相)、S(彩度)、I
(明度)を構成成分とする色座標系を表わす。
The (R, G, B) color coordinate system represents a color coordinate system having R (red), G (green) and B (blue) as constituent components, and (Y, I, Q) color coordinates. System is Y (luminance), I
A chromaticity signal in the I-axis direction of the chromaticity diagram and a color coordinate system having Q (chromaticity signal in the Q-axis direction of the chromaticity diagram) as constituent components
(H, S, I) color coordinate system is H (hue), S (saturation), I
It represents a color coordinate system having (lightness) as a constituent component.

【0027】(b)タブレット20からの入力に基づい
て、細線化輪郭線内の原画像54における抽出領域用の
点Aと非抽出領域用の点Bを指定する機能(第2手段で
達成される機能に対応する)。 (c)前記(b)で指定した指定点A、Bの画素が前記
(a)で求めた複数種類(例えばR、G、B成分)のヒ
ストグラム上の如何なる位置に相当するかを検出する機
能(第3手段で達成される機能に対応)。
(B) A function of designating the point A for the extraction area and the point B for the non-extraction area in the original image 54 within the thinned contour line based on the input from the tablet 20 (achieved by the second means). Corresponding to the function). (C) A function of detecting what position on the histogram of the plurality of types (for example, R, G, B components) the pixels of the specified points A and B specified in (b) correspond to in (a). (Corresponding to the function achieved by the third means).

【0028】(d)前記(c)で検出した検出値に基づ
いて、前記(a)で求めた複数種類のヒストグラムの中
から、前記(b)で指定した点A、Bの画素がヒストグ
ラムの異なるピーク位置に近く、しかもヒストグラム上
で可能な限り離れて位置するようなヒストグラム(例え
ばR成分ヒストグラム)を選択する機能(第4手段で達
成される機能に対応)。
(D) Based on the detection values detected in (c) above, from among the plurality of types of histograms obtained in (a) above, the pixels at points A and B specified in (b) above are histograms. A function (corresponding to the function achieved by the fourth means) of a histogram (for example, an R component histogram) that is close to different peak positions and is located as far as possible on the histogram.

【0029】(e)前記(d)で選択したヒストグラム
上で指定点A、Bの画素が属する領域を区分する閾値
(例えばRt)を求める機能(第5手段で達成される機
能に対応)。 (f)前記(e)で求めた閾値に基づいて色空間を抽出
領域と非抽出領域に分割し、この分割した抽出領域に対
応した原画像42の領域を抽出する機能(第6手段で達
成される機能に対応)。
(E) A function (corresponding to the function achieved by the fifth means) of obtaining a threshold value (for example, Rt) that divides the region to which the pixels of the designated points A and B belong on the histogram selected in (d) above. (F) A function of dividing the color space into an extraction region and a non-extraction region based on the threshold value obtained in (e), and extracting a region of the original image 42 corresponding to the divided extraction region (achieved by sixth means). Corresponding to the function that will be).

【0030】つぎに、図1の実施例の作用を図2を併用
して説明する。 (イ)まず、従来例と同様にして、マイクロプロセッサ
14は、ROM48の対応したプログラムに基づく機能
によって、画像入力部10で取り込んだ原画像42につ
いての画像情報をRAM44内の原画像記憶部16aに
書き込むとともに、図2の(a)に示すように、CRT
ディスプレイ18で原画像42を表示せしめる。
Next, the operation of the embodiment shown in FIG. 1 will be described with reference to FIG. (A) First, similarly to the conventional example, the microprocessor 14 uses the function based on the corresponding program of the ROM 48 to obtain the image information of the original image 42 captured by the image input unit 10 from the original image storage unit 16a in the RAM 44. In addition to writing to the CRT, as shown in FIG.
The original image 42 is displayed on the display 18.

【0031】そして、従来例と同様にして、マイクロプ
ロセッサ14は、ROM48の対応したプログラムに基
づく機能によって、タブレット20からの入力に基づい
た粗輪郭線50についての画像情報をRAM44内の輪
郭線記憶部16bに書き込むとともに、図2の(b)に
示すように、CRTディスプレイ18で粗輪郭線50を
表示せしめる。
Then, similarly to the conventional example, the microprocessor 14 stores the image information of the rough contour line 50 based on the input from the tablet 20 in the RAM 44 by the function based on the corresponding program of the ROM 48. While writing in the portion 16b, the rough contour line 50 is displayed on the CRT display 18 as shown in FIG.

【0032】また、従来例と同様にして、マイクロプロ
セッサ14は、ROM48の細線化処理用および抽出処
理用プログラムに基づく細線化処理および抽出処理機能
によって、輪郭線記憶部16bの粗輪郭線50について
の画像情報を細線化し、その細線化した輪郭線52内に
原画像42の対応した領域(例えば鉄塔54aを含む領
域)54を抽出し、図2の(c)に示すように、CRT
ディスプレイ18で表示せしめる。なお、上述の細線化
処理は、エッジ強度の大きな点を残す方法または中心線
を求める方法によって行なわれる。
Further, similarly to the conventional example, the microprocessor 14 uses the thinning processing and extraction processing functions based on the thinning processing and extraction processing programs of the ROM 48 to detect the rough contour 50 in the contour storage unit 16b. Image information is thinned, a corresponding area (for example, an area including the steel tower 54a) 54 of the original image 42 is extracted in the thinned contour line 52, and the CRT is displayed as shown in (c) of FIG.
Display it on the display 18. The above-described thinning processing is performed by a method of leaving a point having a large edge strength or a method of obtaining a center line.

【0033】(ロ)ついで、図示を省略した端末装置
(例えばキーボード)によって、(R、G、B)色座標
系、(Y、I、Q)色座標系、(H、S、I)色座標
系、これらの色座標系を適当に座標変換した色座標系、
またはこれらの色座標系のいくつかを併用した色座標系
のうちから1つの色座標系を選択し、色空間として設定
する。例えば、(R、G、B)色座標系を選択して設定
する(以下、説明の便宜上(R、G、B)色座標系を色
空間として選択して設定したものとする)。
(B) Next, using a terminal device (not shown) (keyboard, for example), the (R, G, B) color coordinate system, the (Y, I, Q) color coordinate system, the (H, S, I) color system. Coordinate system, color coordinate system obtained by appropriately converting these color coordinate systems,
Alternatively, one color coordinate system is selected from the color coordinate systems in which some of these color coordinate systems are used together, and is set as the color space. For example, the (R, G, B) color coordinate system is selected and set (hereinafter, for convenience of description, it is assumed that the (R, G, B) color coordinate system is selected and set as a color space).

【0034】すると、マイクロプロセッサ14は、RO
M48のヒストグラム演算用プログラムに基づくヒスト
グラム演算機能によって、前記(イ)で抽出した原画像
領域54内の画素について、図2の(d)、(e)、
(f)のような、(R、G、B)色座標系の構成成分で
あるR、G、B成分についてのヒストグラムを求める。
このR、G、B成分ヒストグラムは、原画像領域54内
の画素のR、G、B成分をそれぞれ8ビットのデジタル
値(0〜255)で表した場合のデジタル値を横軸方向
の変量とし、各デジタル値の画素数を縦軸方向の度数と
している。
Then, the microprocessor 14 causes the RO
2 (d), (e) of FIG. 2 for the pixels in the original image region 54 extracted in (a) above by the histogram calculation function based on the histogram calculation program of M48.
A histogram is obtained for the R, G, and B components that are the constituent components of the (R, G, B) color coordinate system as in (f).
In this R, G, B component histogram, the R, G, B components of the pixels in the original image area 54 are represented by 8-bit digital values (0 to 255), and the digital values are set as the horizontal variable. , The number of pixels of each digital value is the frequency in the vertical axis direction.

【0035】(ハ)ついで、マイクロプロセッサ14
は、ROM48の領域指定用プログラムに基づく領域指
定機能によって、、図2の(g)に示すように、タブレ
ット20からの入力位置に対応した、前記(ロ)で抽出
した原画像領域54内における抽出領域である鉄塔54
aの一部である点Aと、非抽出領域54b内の点Bを指
定する。
(C) Next, the microprocessor 14
The area designation function based on the area designation program of the ROM 48 causes the area within the original image area 54 extracted in (b) corresponding to the input position from the tablet 20, as shown in (g) of FIG. Tower 54 which is the extraction area
A point A which is a part of a and a point B in the non-extraction area 54b are designated.

【0036】(ニ)ついで、マイクロプロセッサ14
は、ROM48の位置検出用プログラムに基づく位置検
出機能によって、前記(ハ)で指定した指定点A、Bが
R、G、B成分ヒストグラム上の如何なる位置に相当す
るかを検出する。
(D) Next, the microprocessor 14
Detects the position of the designated points A and B designated in (c) above on the R, G, and B component histograms by the position detection function based on the position detection program of the ROM 48.

【0037】例えば、図2の(d)に示すように、指定
点AのR成分であるRaはR成分ヒストグラムの一方の
ピーク位置近く(例えばデジタル値77)に位置し、指
定点BのR成分であるRbはR成分ヒストグラムの他方
のピーク位置近く(例えばデジタル値210)に位置す
るものとする。同様に指定点A、BのG成分であるG
a、Gbは図2の(e)に示すようなG成分ヒストグラ
ム上に位置し、指定点A、BのB成分であるBa、Bb
は図2の(e)に示すようなB成分ヒストグラム上に位
置するものとする。
For example, as shown in FIG. 2D, the R component Ra of the designated point A is located near one peak position of the R component histogram (for example, a digital value 77), and the R of the designated point B is R. The component Rb is located near the other peak position of the R component histogram (for example, digital value 210). Similarly, G which is the G component of the designated points A and B
a and Gb are located on the G component histogram as shown in (e) of FIG. 2 and are B and Bb which are B components of designated points A and B.
Is located on the B component histogram as shown in FIG.

【0038】(ホ)すると、マイクロプロセッサ14
は、ROM48のヒストグラム選択用プログラムに基づ
くヒストグラム選択機能によって、前記(ロ)で演算し
たR、G、B成分ヒストグラムの中から、前記(ハ)の
指定点A、Bの画素がヒストグラムの異なるピーク位置
に近く、しかもヒストグラム上で可能な限り離れて位置
するヒストグラムであるR成分ヒストグラム(図2の
(d))を選択する。
(E) Then, the microprocessor 14
Is a peak selected from the R, G, and B component histograms calculated in (b) above by the histogram selection function based on the histogram selection program of the ROM 48. An R component histogram ((d) in FIG. 2) that is a histogram located close to the position and located as far as possible on the histogram is selected.

【0039】(ヘ)ついで、マイクロプロセッサ14
は、ROM48の閾値演算用プログラムに基づく閾値演
算機能によって、前記(ホ)で選択したR成分ヒストグ
ラム上で指定点A、Bの画素が属する領域を区分する閾
値Rtを演算する。この閾値Rtは、これに限るもので
はないが、指定点A、BのR成分であるRa、Rbの中
点を求める演算によって求められる。
(F) Next, the microprocessor 14
Calculates the threshold value Rt that divides the area to which the pixels of the designated points A and B belong on the R component histogram selected in (e) above by the threshold value calculation function based on the threshold value calculation program of the ROM 48. The threshold value Rt is not limited to this, but is calculated by calculating the midpoint of Ra and Rb which are the R components of the designated points A and B.

【0040】(ト)ついで、マイクロプロセッサ14
は、ROM48の分割抽出用プログラムに基づく分割抽
出機能によって、前記(ヘ)で演算した閾値Rtに基づ
いて、(R、G、B)色座標系の色空間を抽出領域と非
抽出領域とに分割し、この分割した抽出領域に対応した
原画像領域を抽出する。すなわち、図2の(h)に示す
ように、前記(ロ)で抽出した原画像領域54内の抽出
領域である鉄塔54aを抽出し、CRTディスプレイ1
8で表示せしめる。
(G) Next, the microprocessor 14
Uses the division extraction function based on the division extraction program of the ROM 48 to set the color space of the (R, G, B) color coordinate system into the extraction area and the non-extraction area based on the threshold value Rt calculated in (f) above. The original image area corresponding to the divided extraction area is extracted. That is, as shown in (h) of FIG. 2, the steel tower 54a, which is the extraction area in the original image area 54 extracted in (b) above, is extracted, and the CRT display 1 is displayed.
Display at 8.

【0041】前記実施例では、色空間として(R、G、
B)色座標系を選択して設定し、抽出領域と非抽出領域
を区分するための閾値として指定点A、Bの色空間での
距離の中点Rtを求めるようにしたが、本発明はこれに
限るものでなく、例えば、(Y、I、Q)色座標系、
(H、S、I)色座標系、これらの色座標系を適当に座
標変換した色座標系、またはこれらの色座標系のいくつ
かを併用した色座標系のうちの1つを選択して設定し、
閾値として指定点A、Bを含むピーク間の極小点を求め
るようにしてもよい。
In the above embodiment, the color space (R, G,
B) The color coordinate system is selected and set, and the midpoint Rt of the distance between the designated points A and B in the color space is obtained as a threshold for distinguishing the extraction region and the non-extraction region. The present invention is not limited to this. For example, a (Y, I, Q) color coordinate system,
Select one of the (H, S, I) color coordinate system, a color coordinate system in which these color coordinate systems are appropriately coordinate-converted, or a color coordinate system in which some of these color coordinate systems are used in combination. Set,
The minimum point between the peaks including the designated points A and B may be obtained as the threshold value.

【0042】例えば、図3の(a)から(h)までに示
すように、色空間として(Y、I、Q)色座標系を選択
して設定し、抽出領域と非抽出領域を区分するための閾
値として指定点A、Bを含むピーク間の極小点を求める
ようにしてもよい。
For example, as shown in FIGS. 3A to 3H, the (Y, I, Q) color coordinate system is selected and set as the color space, and the extraction region and the non-extraction region are divided. The minimum point between the peaks including the designated points A and B may be obtained as a threshold for this.

【0043】すなわち、まず、従来例と同様にして、画
像入力部10で取り込んだ原画像42を図3の(a)に
示すようにCRTディスプレイ18で表示せしめ、タブ
レット20からの入力に基づいた粗輪郭線50を同図の
(b)に示すようにCRTディスプレイ18で表示せし
め、この粗輪郭線50を細線化した輪郭線52内に原画
像42の対応した領域54を抽出し、同図の(c)に示
すようにCRTディスプレイ18で表示せしめる。
That is, first, similarly to the conventional example, the original image 42 captured by the image input unit 10 is displayed on the CRT display 18 as shown in FIG. 3A, and based on the input from the tablet 20. The rough contour line 50 is displayed on the CRT display 18 as shown in (b) of the figure, and the corresponding area 54 of the original image 42 is extracted in the contour line 52 obtained by thinning the rough contour line 50. The CRT display 18 is displayed as shown in FIG.

【0044】ついで、端末装置(例えばキーボード)に
よって(Y、I、Q)色座標系を選択し、色空間として
設定する。すると、ヒストグラム演算機能によって、細
線化輪郭線で抽出した原画像領域54内の画素につい
て、図3の(d)、(e)、(f)のような、(Y、
I、Q)色座標系の構成成分であるY、I、Q成分につ
いてのヒストグラムを求める。
Then, the (Y, I, Q) color coordinate system is selected by the terminal device (eg, keyboard) and set as the color space. Then, for the pixels in the original image region 54 extracted by the thinned contour line by the histogram calculation function, as shown in (d), (e), and (f) of FIG.
(I, Q) A histogram is obtained for the Y, I, Q components that are the constituent components of the color coordinate system.

【0045】ついで、タブレット20からの入力に基づ
いて、図3の(g)に示すように、原画像領域54内に
おける抽出領域54a内の点Aと非抽出領域54b内の
点Bを指定すると、位置検出機能によって指定点A、B
がY、I、Q成分ヒストグラム上の如何なる位置に相当
するかを検出する。
Then, based on the input from the tablet 20, as shown in FIG. 3G, a point A in the extraction area 54a and a point B in the non-extraction area 54b in the original image area 54 are designated. , The specified point A, B by the position detection function
Which position on the Y, I, and Q component histogram corresponds to is detected.

【0046】例えば、図3の(d)に示すように、指定
点AのY成分であるYaはY成分ヒストグラムの一方の
ピーク位置に位置し、指定点BのY成分であるYbはY
成分ヒストグラムの他方のピーク位置に位置するものと
する。同様に指定点A、BのI成分であるIa、Ibは
図3の(e)に示すようなI成分ヒストグラム上に位置
し、指定点A、BのQ成分であるQa、Qbは図3の
(e)に示すようなQ成分ヒストグラム上に位置するも
のとする。
For example, as shown in FIG. 3D, the Y component Ya of the designated point A is located at one peak position of the Y component histogram, and the Y component Yb of the designated point B is Y.
It shall be located at the other peak position of the component histogram. Similarly, the I components Ia and Ib of the designated points A and B are located on the I component histogram as shown in (e) of FIG. 3, and the Q components Qa and Qb of the designated points A and B are shown in FIG. It is assumed to be located on the Q component histogram as shown in (e) of.

【0047】すると、ヒストグラム選択機能によって、
Y、I、Q成分ヒストグラムの中から、指定点A、Bの
画素がヒストグラムの異なるピーク位置に近く、しかも
ヒストグラム上で可能な限り離れて位置するようなヒス
トグラムであるY成分ヒストグラムを選択する。
Then, by the histogram selection function,
From the Y, I, and Q component histograms, a Y component histogram that is a histogram in which the pixels at the designated points A and B are close to different peak positions in the histogram and located as far apart as possible on the histogram is selected.

【0048】ついで、閾値演算機能によって、選択した
Y成分ヒストグラム上で指定点A、Bの画素が属する領
域を区分する閾値Ytを演算する。この閾値Ytは、こ
れに限るものではないが、指定点A、Bを含むピーク間
の極小点を演算することによって求められる。
Next, the threshold value calculation function calculates a threshold value Yt for dividing the area to which the pixels of the designated points A and B belong on the selected Y component histogram. The threshold value Yt is not limited to this, but is calculated by calculating a minimum point between peaks including the designated points A and B.

【0049】ついで、分割抽出機能によって、演算で求
めた閾値Ytに基づいて、(Y、I、Q)色座標系の色
空間を抽出領域と非抽出領域とに分割し、この分割した
抽出領域に対応した原画像領域を抽出する。すなわち、
図3の(h)に示すように、原画像領域54内における
抽出領域54aを抽出し、CRTディスプレイ18で表
示せしめる。
Then, the division extraction function divides the color space of the (Y, I, Q) color coordinate system into an extraction area and a non-extraction area based on the threshold value Yt calculated, and the divided extraction area is divided. The original image area corresponding to is extracted. That is,
As shown in FIG. 3H, the extraction area 54 a in the original image area 54 is extracted and displayed on the CRT display 18.

【0050】前記実施例では、ポインティングデバイス
はタブレットとしたが、本発明はこれに限るものでな
く、タブレット以外のポインティングデバイス(例えば
マウス、トラックボール)であってもよい。
In the above embodiment, the pointing device is a tablet, but the present invention is not limited to this, and a pointing device other than a tablet (for example, a mouse or a trackball) may be used.

【0051】前記実施例では、画像表示部をCRTディ
スプレイで形成するようにしたが、本発明はこれに限る
ものでなく、画像表示部を液晶ディスプレイ、プラズマ
ディスプレイまたはエレクトロルミネッセントディスプ
レイ等で形成するようにしてもよい。
In the above embodiment, the image display section is formed by a CRT display, but the present invention is not limited to this, and the image display section is formed by a liquid crystal display, a plasma display, an electroluminescent display or the like. You may do it.

【0052】前記実施例では、ROMに各種処理用のプ
ログラムを格納し、これらのプログラムを実行すること
によって対応した機能を達成させるようにしたが、本発
明はこれに限るものでなく、ROM以外の記憶媒体(例
えばハードディスク、フロッピーディスクなど)に各種
処理用のプログラムを格納し、これらのプログラムの実
行で対応した機能を達成させるようにしてもよい。
In the above embodiment, the programs for various processes are stored in the ROM and the corresponding functions are achieved by executing these programs. However, the present invention is not limited to this, and other than the ROM. The programs for various processes may be stored in the storage medium (for example, hard disk, floppy disk, etc.) and the corresponding functions may be achieved by executing these programs.

【0053】[0053]

【発明の効果】請求項1、3の発明による画像抽出方法
および装置は、上記のように、粗輪郭線の入力によって
粗輪郭線を細線化した輪郭線内に原画像の対応した領域
を抽出し、この細線化輪郭線内に抽出した原画像画素に
ついて複数種類のヒストグラムを求め、細線化輪郭線内
の原画像について抽出領域用の点Aと非抽出領域用の点
Bとを指定し、この指定点A、Bの画素が複数種類のヒ
ストグラム上の如何なる位置に相当するかを検出し、こ
の検出値に基づいて複数種類のヒストグラムの中から最
良のヒストグラムを選択し、この選択したヒストグラム
上で指定点A、Bの画素が属する領域を区分するための
閾値を求め、この閾値に基づいて指定点Aで指定した抽
出領域に対応した原画像の領域を抽出するように構成し
た。
As described above, the image extracting method and apparatus according to the first and third aspects of the present invention extracts the corresponding region of the original image within the contour line obtained by thinning the rough contour line by inputting the rough contour line. Then, a plurality of types of histograms are obtained for the original image pixels extracted in the thinned contour line, and the point A for the extraction area and the point B for the non-extraction area are specified for the original image in the thinned contour line, It is detected which position on the plural kinds of histograms the pixels of the designated points A and B correspond to, and the best histogram is selected from the plural kinds of histograms based on the detected value. The threshold for dividing the region to which the pixels of the designated points A and B belong is obtained, and the region of the original image corresponding to the extraction region designated by the designated point A is extracted based on this threshold.

【0054】このため、大まかな抽出領域を決めるため
の粗輪郭線入力と、厳密な(正確な)抽出領域を決める
ための指定点入力という簡単な操作で、すなわち煩雑な
手続きをすることなく、境界に細かい凹凸領域があった
り、内部に小さい孔状の非抽出領域があっても、抽出対
象画像を正確に抽出することのできる
Therefore, a simple operation of inputting a rough contour line for determining a rough extraction region and inputting a designated point for determining a strict (accurate) extraction region, that is, without performing a complicated procedure, The extraction target image can be accurately extracted even if there is a fine uneven area at the boundary or a small hole-shaped non-extraction area inside.

【0055】請求項2、4の発明による画像抽出方法お
よび装置は、前記請求項1、3の発明の効果を有する外
に、つぎのような効果を有する。すなわち、予め設定す
る色空間を、馴染のある色座標系である(R、G、B)
色座標系、(Y、I、Q)色座標系、(H、S、I)色
座標系、これらの色座標系を適当に座標変換した色座標
系、またはこれらの色座標系のいくつかを併用した色座
標系のうちの1つとしたので、細線化輪郭線で決めた大
まかな画像抽出領域内において、真に抽出したい特定領
域を指定する操作をより簡単にすることができる。
The image extracting method and apparatus according to the second and fourth aspects of the invention have the following effects in addition to the effects of the first and third aspects of the invention. That is, the preset color space is a familiar color coordinate system (R, G, B).
Color coordinate system, (Y, I, Q) color coordinate system, (H, S, I) color coordinate system, color coordinate system obtained by appropriately converting these color coordinate systems, or some of these color coordinate systems Since one of the color coordinate systems is used in combination, it is possible to further simplify the operation of designating the specific region to be truly extracted in the rough image extraction region determined by the thinned contour line.

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

【図1】本発明による画像抽出方法および装置の一実施
例を示すもので、本発明方法を実施する装置の概略構成
図である。
FIG. 1 shows an embodiment of an image extraction method and apparatus according to the present invention, and is a schematic configuration diagram of an apparatus for carrying out the method of the present invention.

【図2】図1の作用を説明する説明図で、(a)はCR
Tディスプレイで原画像を表示している状態を説明する
説明図、(b)は(a)の表示画像中に粗輪郭線を重畳
表示した状態を説明する説明図、(c)は(b)の粗輪
郭線を細線化し、その細線化輪郭線内に原画像の対応領
域を抽出した状態を説明する説明図、(d)、(e)、
(f)は、それぞれ(R、G、B)色座標系の色空間に
おけるR、G、B成分のヒストグラムの説明図、(g)
は(c)の大まかな抽出領域内において指定された抽出
領域用の点Aと非抽出領域用の点Bを説明する説明図、
(h)は最終的な抽出領域を説明する説明図である。
FIG. 2 is an explanatory view for explaining the operation of FIG. 1, in which (a) is CR
Explanatory drawing explaining the state which is displaying the original image on T display, (b) is explanatory drawing explaining the state which superimposed and displayed the rough outline in the display image of (a), (c) is (b). (D), (e), which illustrates a state in which the rough contour line is thinned and the corresponding region of the original image is extracted in the thinned contour line.
(F) is an explanatory diagram of a histogram of R, G, B components in the color space of the (R, G, B) color coordinate system, respectively, (g)
Is an explanatory view for explaining a point A for an extraction area and a point B for a non-extraction area designated in the rough extraction area of (c),
(H) is an explanatory view explaining a final extraction region.

【図3】本発明による画像抽出方法の他の実施例を説明
する説明図で、(a)はCRTディスプレイで原画像を
表示している状態を説明する説明図、(b)は(a)の
表示画像中に粗輪郭線を重畳表示した状態を説明する説
明図、(c)は(b)の粗輪郭線を細線化し、その細線
化輪郭線内に原画像の対応領域を抽出した状態を説明す
る説明図、(d)、(e)、(f)は、それぞれ(Y、
I、Q)色座標系の色空間におけるY、I、Q成分のヒ
ストグラムの説明図、(g)は(c)の大まかな抽出領
域内において指定された抽出領域用の点Aと非抽出領域
用の点Bを説明する説明図、(h)は最終的な抽出領域
を説明する説明図である。
3A and 3B are explanatory views illustrating another embodiment of the image extraction method according to the present invention, FIG. 3A is an explanatory view illustrating a state where an original image is displayed on a CRT display, and FIG. An explanatory view for explaining a state in which a rough contour line is superimposed and displayed in the display image of FIG. 7, (c) is a state in which the rough contour line of (b) is thinned and the corresponding region of the original image is extracted in the thinned contour line. (D), (e), (f) are explanatory views for explaining (Y,
(I, Q) an explanatory diagram of a histogram of Y, I, Q components in the color space of the color coordinate system, (g) is a point A for the extraction area designated in the rough extraction area of (c) and a non-extraction area FIG. 3B is an explanatory diagram illustrating a point B for use, and FIG. 3H is an explanatory diagram illustrating a final extraction region.

【図4】従来画像抽出方法を実施する装置の概略構成図
である。
FIG. 4 is a schematic configuration diagram of an apparatus that implements a conventional image extraction method.

【図5】図4の作用を説明する説明図で、(a)は原画
像を表示している状態を説明する説明図、(b)は原画
像上に画像抽出用の粗輪郭線を表示している状態を説明
する説明図、(c)はマイクロプロセッサの内部メモリ
や輪郭線記憶部に記憶された粗輪郭線情報に対応したパ
ターン情報を説明する説明図、(d)は細線化処理によ
って(b)の粗輪郭線を細線化した状態を説明する説明
図、(e)は細線化処理によって(c)の粗輪郭線につ
いてのパターン情報を細線化しラベル付けしたパターン
情報を説明する説明図、(f)は抽出画像を表示してい
る状態を説明する説明図である。
5A and 5B are explanatory diagrams illustrating the operation of FIG. 4, in which FIG. 5A is an explanatory diagram illustrating a state in which an original image is displayed, and FIG. Of the pattern information corresponding to the rough contour line information stored in the internal memory of the microprocessor or the contour line storage unit, and (d) is the thinning process. 4B is an explanatory view for explaining a state in which the rough contour line in (b) is thinned, and (e) is a description for explaining pattern information in which the pattern information about the rough contour line in (c) is thinned and labeled by the thinning process. FIG. 6F is an explanatory diagram illustrating a state in which the extracted image is displayed.

【図6】図4の装置を用いて、境界に細かい凹凸部分が
ある抽出対象画像を抽出する場合の説明図で、(a)は
細線化処理前を説明する説明図、(b)は細線化処理後
を説明する説明図である。
6A and 6B are explanatory views when an extraction target image having fine irregularities on a boundary is extracted using the apparatus of FIG. 4, FIG. 6A is an explanatory view for explaining before thinning processing, and FIG. It is an explanatory view explaining after conversion processing.

【図7】図4の装置を用いて、内部に小さな孔状の非抽
出部分を有する抽出対象画像を抽出する場合の説明図で
ある。
FIG. 7 is an explanatory diagram of a case where an extraction target image having a small hole-shaped non-extraction portion inside is extracted using the apparatus of FIG.

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

10…画像入力部、 14…マイクロプロセッサ、16
a…原画像記憶部、 16b…輪郭線記憶部、18…C
RTディスプレイ(画像表示部の一例)、20…タブレ
ット(ポインティングデバイスの一例)、42…原画
像、 44…RAM、46…ヒストグラム記憶部、48
…ROM、 50…粗輪郭線、52…粗輪郭線50を細
線化処理した輪郭線、54…輪郭線52内に抽出した原
画像42の対応領域、54a…原画像領域54内の抽出
領域、54b…原画像領域54内の非抽出領域、A…抽
出領域用の指定点、 B…非抽出領域用の指定点R、
G、B…(R、G、B)色座標系の色空間の構成成分、
Ra、Rb…指定点A、BのR成分、Rt…R成分ヒス
トグラム上の抽出領域と非抽出領域を区分する閾値、G
a、Gb…指定点A、BのG成分、Ba、Bb…指定点
A、BのB成分、Y、I、Q…(Y、I、Q)色座標系
の色空間の構成成分、Ya、Yb、…指定点A、BのY
成分、Ia、Ib、…指定点A、BのI成分、Qa、Q
b、…指定点A、BのQ成分。
10 ... Image input unit, 14 ... Microprocessor, 16
a ... Original image storage unit, 16b ... Contour line storage unit, 18 ... C
RT display (an example of an image display unit), 20 ... Tablet (an example of a pointing device), 42 ... Original image, 44 ... RAM, 46 ... Histogram storage unit, 48
ROM, 50 ... Coarse contour line, 52 ... Contour line obtained by thinning the rough contour line 50, 54 ... Corresponding region of the original image 42 extracted in the contour line 52, 54a ... Extraction region in the original image region 54, 54b ... Non-extracted area in original image area 54, A ... Designated point for extraction area, B ... Designated point R for non-extraction area,
G, B ... (R, G, B) color space constituents of the color coordinate system,
Ra, Rb ... R component of designated points A and B, Rt ... R component, threshold value for distinguishing extracted region and non-extracted region on the histogram, G
a, Gb ... G component of designated points A and B, Ba, Bb ... B component of designated points A and B, Y, I, Q ... (Y, I, Q) component of color space of color coordinate system, Ya , Yb, ... Y of designated points A and B
Component, Ia, Ib, ... I component of designated points A, B, Qa, Q
b, ... Q component of designated points A and B.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 (1)画像表示部で表示中の原画像にポ
インティングデバイスからの入力に基づいて粗輪郭線を
重畳して表示し、(2)この粗輪郭線を細線化した輪郭
線内の原画像の画素について、予め設定した色空間の複
数の構成成分のそれぞれを変量とする複数種類のヒスト
グラムを求め、(3)前記ポインティングデバイスから
の入力に基づいて、前記細線化輪郭線内の原画像におけ
る抽出領域内の点Aと非抽出領域内の点Bとを指定し、
(4)前記指定点A、Bの画素が前記(2)で求めた複
数種類のヒストグラム上の如何なる位置に相当するかを
検出し、(5)この検出値に基づいて、前記(2)で求
めた複数種類のヒストグラムの中から、前記指定点A、
Bの画素がヒストグラムの異なるピーク位置に近く、し
かもヒストグラム上で可能な限り離れて位置するような
ヒストグラムを選択し、(6)前記(5)で選択したヒ
ストグラム上で前記指定点A、Bの画素が属する領域を
区分するための閾値を求め、(7)前記(6)で求めた
閾値に基づいて前記色空間を抽出領域と非抽出領域に分
割し、この分割した抽出領域に対応した原画像の領域を
抽出することを特徴とする画像抽出方法。
(1) A rough contour line is superimposed and displayed on an original image being displayed on an image display unit based on an input from a pointing device, and (2) within the contour line obtained by thinning the rough contour line. For the pixels of the original image, a plurality of types of histograms, each having a plurality of constituent components of a preset color space as variables, are obtained, and (3) based on the input from the pointing device, Specify a point A in the extraction area and a point B in the non-extraction area in the original image,
(4) It is detected which position on the plural types of histograms obtained in (2) the pixels of the designated points A and B correspond to, and (5) in (2) based on the detected value. From the obtained plural types of histograms, the designated point A,
Select a histogram in which the B pixel is close to different peak positions of the histogram, and located as far as possible on the histogram, and (6) select the specified points A and B on the histogram selected in (5) above. A threshold for dividing an area to which a pixel belongs is obtained, and (7) the color space is divided into an extraction area and a non-extraction area based on the threshold obtained in (6), and an original corresponding to the divided extraction area is obtained. An image extraction method characterized by extracting a region of an image.
【請求項2】 予め設定する色空間は、(R、G、B)
色座標系、(Y、I、Q)色座標系、(H、S、I)色
座標系、これらの色座標系を適当に座標変換した色座標
系、またはこれらの色座標系のいくつかを併用した色座
標系のうちの1つとしてなる請求項1記載の画像抽出方
法。
2. The preset color space is (R, G, B)
Color coordinate system, (Y, I, Q) color coordinate system, (H, S, I) color coordinate system, color coordinate system obtained by appropriately converting these color coordinate systems, or some of these color coordinate systems The image extracting method according to claim 1, wherein the image extracting method is one of color coordinate systems in which
【請求項3】 原画像記憶部に記憶した原画像を画像表
示部で表示し、この表示画像中にポインティングデバイ
スからの入力に基づいて粗輪郭線を描き、この粗輪郭線
を細線化した輪郭線を用いて原画像の所定領域を抽出す
るようにした画像抽出装置において、前記細線化輪郭線
内の原画像の画素について予め設定した色空間の複数の
構成成分のそれぞれを変量とした複数種類のヒストグラ
ムを求める第1手段と、前記ポインティングデバイスか
らの入力に基づいて前記細線化輪郭線内の原画像におけ
る抽出領域内の点Aと非抽出領域内の点Bとを指定する
第2手段と、前記指定点A、Bの画素が前記第1手段で
求めた複数種類のヒストグラム上の如何なる位置に相当
するかを検出する第3手段と、この第3手段で検出した
検出値に基づいて、前記第1手段で求めた複数種類のヒ
ストグラムの中から、前記第2手段で指定した点A、B
の画素がヒストグラムの異なるピーク位置に近く、しか
もヒストグラム上で可能な限り離れて位置するようなヒ
ストグラムを選択する第4手段と、この第4手段で選択
したヒストグラム上で前記指定点A、Bの画素が属する
領域を区分する閾値を求める第5手段と、この第5手段
で求めた閾値に基づいて前記色空間を抽出領域と非抽出
領域に分割し、この分割した抽出領域に対応した原画像
の領域を抽出する第6手段とを具備してなることを特徴
とする画像抽出装置。
3. An original image stored in an original image storage unit is displayed on an image display unit, a rough contour line is drawn in the displayed image based on an input from a pointing device, and the rough contour line is thinned. In an image extraction device adapted to extract a predetermined region of an original image using lines, a plurality of types in which each of a plurality of constituent components of a color space preset for pixels of the original image within the thinned contour line is a variable And a second means for designating a point A in the extraction region and a point B in the non-extraction region in the original image in the thinned contour line based on the input from the pointing device. , Third means for detecting what position on the plurality of types of histograms the pixels at the designated points A and B correspond to, and the detection value detected by the third means, Points A and B designated by the second means are selected from a plurality of types of histograms obtained by the first means.
Means for selecting a histogram in which the pixels in the histogram are located close to different peak positions in the histogram and as far as possible from each other on the histogram, and the designated points A and B on the histogram selected by the fourth means. Fifth means for obtaining a threshold value for dividing an area to which a pixel belongs, and the color space is divided into an extraction area and a non-extraction area based on the threshold value obtained by the fifth means, and an original image corresponding to the divided extraction area. And a sixth means for extracting the area of FIG.
【請求項4】 第1手段で予め設定する色空間は、
(R、G、B)色座標系、(Y、I、Q)色座標系、
(H、S、I)色座標系、これらの色座標系を適当に座
標変換した色座標系、またはこれらの色座標系のいくつ
かを併用した色座標系のうちの1つとしてなる請求項3
記載の画像抽出装置。
4. The color space preset by the first means is
(R, G, B) color coordinate system, (Y, I, Q) color coordinate system,
One of a (H, S, I) color coordinate system, a color coordinate system obtained by appropriately converting these color coordinate systems, or a color coordinate system using some of these color coordinate systems together. Three
The image extraction device described.
JP5185549A 1993-06-29 1993-06-29 Method and device for extracting image Pending JPH0785275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5185549A JPH0785275A (en) 1993-06-29 1993-06-29 Method and device for extracting image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5185549A JPH0785275A (en) 1993-06-29 1993-06-29 Method and device for extracting image

Publications (1)

Publication Number Publication Date
JPH0785275A true JPH0785275A (en) 1995-03-31

Family

ID=16172756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5185549A Pending JPH0785275A (en) 1993-06-29 1993-06-29 Method and device for extracting image

Country Status (1)

Country Link
JP (1) JPH0785275A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006082979A1 (en) * 2005-02-07 2006-08-10 Matsushita Electric Industrial Co., Ltd. Image processing device and image processing method
KR101538369B1 (en) * 2015-01-09 2015-07-22 한국산업기술대학교산학협력단 Apparatus and method for producing crop art image

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006082979A1 (en) * 2005-02-07 2006-08-10 Matsushita Electric Industrial Co., Ltd. Image processing device and image processing method
KR101538369B1 (en) * 2015-01-09 2015-07-22 한국산업기술대학교산학협력단 Apparatus and method for producing crop art image

Similar Documents

Publication Publication Date Title
US5475507A (en) Color image processing method and apparatus for same, which automatically detects a contour of an object in an image
US10148895B2 (en) Generating a combined infrared/visible light image having an enhanced transition between different types of image information
EP0558054B1 (en) Image filing method
EP3249605A1 (en) Inverse tone mapping method and corresponding device
KR100591608B1 (en) Method for searching matching point in image matching
JPH05250472A (en) Method and device for preparing fine mask of boundary on image in concerned area so as to separate area from remaining parts of image
JP3126046B2 (en) Color adjustment method and color adjustment device for color image
US6728407B1 (en) Method for automatically determining trackers along contour and storage medium storing program for implementing the same
CN113989336A (en) Visible light image and infrared image registration method and device
JP3659426B2 (en) Edge detection method and edge detection apparatus
JPH0785275A (en) Method and device for extracting image
JP2936599B2 (en) Color image processing equipment
US10083516B2 (en) Method for segmenting a color image and digital microscope
JPH07146937A (en) Pattern matching method
CN113674177A (en) Automatic makeup method, device, equipment and storage medium for portrait lips
JPH08123940A (en) Method and device for extracting picture area
JPH07225848A (en) Image extracting method
JPH05128224A (en) Color extracting device for color picture and method therefor
JP2002208013A (en) Device for extracting image area and method for the same
JPH012177A (en) Color image contour detection method
JP3943678B2 (en) Image color extraction method and image processing apparatus using the method
JPH07140966A (en) Method of extracting image
JP3304381B2 (en) Image processing device having contour extraction function
JPH07121710A (en) Method and device for image segmentation
JPH06162180A (en) Area extraction system