JPH012178A - Color image region extraction method - Google Patents
Color image region extraction methodInfo
- Publication number
- JPH012178A JPH012178A JP62-156460A JP15646087A JPH012178A JP H012178 A JPH012178 A JP H012178A JP 15646087 A JP15646087 A JP 15646087A JP H012178 A JPH012178 A JP H012178A
- Authority
- JP
- Japan
- Prior art keywords
- color image
- image
- color
- dimensional
- target area
- 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.)
- Granted
Links
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
(産業上の利用分野)
この発明は、カラー画像の特定対象領域を色情報により
抽出する画像処理方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image processing method for extracting a specific target area of a color image using color information.
(従来の技術)
従来、カラー画像の特定対象領域の抽出方法としては、
例えばR,G、Bの3原色について夫々の分布頻度を計
算し、多値の上下限のしきい値を求めて特定の色の領域
を抜き出す方法があった。(Prior art) Conventionally, as a method for extracting a specific target area from a color image,
For example, there is a method of calculating the distribution frequency of each of the three primary colors R, G, and B, determining the upper and lower thresholds of the multivalue, and extracting a specific color area.
(発明が解決しようとする問題点)
従来例でカラー画像の例えば、R,G、Bの3原色につ
いて夫々のヒストグラムを計算してそれぞれの上下限の
しきい値を定める方法では、色空間上で重なり合った分
布を有する領域の分離が難しかった。(Problems to be Solved by the Invention) In the conventional method, for example, the histograms of the three primary colors R, G, and B of a color image are calculated to determine the upper and lower thresholds for each. It was difficult to separate regions with overlapping distributions.
第4図にRおよびG軸の2つの色に対する画像の分布の
一例を示す。第4図でR−0面での作図の下側の図はこ
れをG軸上に投影した頻度分布であり、左側の図はR軸
上に投影した頻度分布である。第4図の場合RおよびG
軸に投影した頻度分布でしきい値を定め、画像の特定対
象領域を分離することは不可能であり、投影する軸を変
更したり、順次RあるいはG軸の範囲を限定して分布を
調べ、しきい値を定める方法を用いても、自然画像のよ
うに多くの対象物を含み、色の分布が複雑な画像に対し
ては、特定の領域の抽出が的確に行なわれるに至ってい
ない。FIG. 4 shows an example of image distribution for two colors on the R and G axes. In FIG. 4, the lower diagram of the drawing on the R-0 plane is the frequency distribution projected onto the G axis, and the left diagram is the frequency distribution projected onto the R axis. In the case of Figure 4, R and G
It is impossible to set a threshold value based on the frequency distribution projected onto the axis and isolate a specific target area of the image, so it is necessary to change the axis of projection or sequentially limit the range of the R or G axis to examine the distribution. Even if a method of determining a threshold value is used, extraction of a specific region cannot be performed accurately for an image that includes many objects and has a complex color distribution, such as a natural image.
そこで本発明の目的は、上述の如き従来技術の欠点に鑑
み、複数の2次元ヒストグラムの分布状態より、対話的
に抽出対象領域の分布する範囲を指定することにより、
複雑な情景のカラー画像についても容易に対象領域の抽
出できるカラー画像の領域抽出方法を提供せんとするも
のである。SUMMARY OF THE INVENTION In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to interactively specify the distribution range of the extraction target region from the distribution state of a plurality of two-dimensional histograms.
It is an object of the present invention to provide a color image region extraction method that can easily extract a target region even in a color image of a complex scene.
(問題点を解決するための手段)
この目的を達成するため本発明カラー画像の領域抽出方
法は、カラー画像から特定の対象領域を抽出するにあた
り、前記カラー画像と前記カラー画像の色成分に関する
複数の2次元ヒストグラムを表示し、該表示されたカラ
ー画像の抽出対象領域内の代表点の2次元色平面上に対
応する位置と、前記表示された複数の2次元ヒストグラ
ムを参照して平面上のしきい値を指示し、複雑な情景の
画像から前記特定の対象領域を対話的に抽出することを
特徴とするものである。(Means for Solving the Problems) To achieve this object, the color image region extraction method of the present invention provides a method for extracting a region of interest from a color image. The two-dimensional histogram of the displayed color image is displayed, and the corresponding position on the two-dimensional color plane of the representative point in the extraction target area of the displayed color image is determined on the plane by referring to the plurality of displayed two-dimensional histograms. This method is characterized by specifying a threshold value and interactively extracting the specific target area from an image of a complex scene.
(実施例)
以下添付図面を参考し実施例により本発明方法を詳細に
説明する。(Example) The method of the present invention will be described in detail below with reference to the accompanying drawings.
第1図に本発明領域抽出方法を具現するに好適なハード
構成実施例のブロック線図を示す。FIG. 1 shows a block diagram of an embodiment of a hardware configuration suitable for implementing the region extraction method of the present invention.
画像入力装置1はカラー画像を装置に入力してR成分、
G成分、B成分を画像メモリ2に書込む。An image input device 1 inputs a color image to the device and outputs an R component,
Write the G component and B component to the image memory 2.
2次元ヒストグラム作成手段3は画像メモリ2から画素
データを1画素ず\続出し、画素の2つの色の組合わせ
の分布頻度を計算し、2次元ヒストグラムメモリ4に書
込む。表示装置5は画像メモリ2および2次元ヒストグ
ラムメモリ4の内容を表示する。The two-dimensional histogram creation means 3 sequentially outputs pixel data from the image memory 2 pixel by pixel, calculates the distribution frequency of the combination of two colors of pixels, and writes it into the two-dimensional histogram memory 4. The display device 5 displays the contents of the image memory 2 and the two-dimensional histogram memory 4.
2次元ヒストグラム表示の1例を第2図に示す。An example of a two-dimensional histogram display is shown in FIG.
第2図において各チャートにおける頻度は、こ\では斜
線の密度で示したが、実際の表示装置上では明るさで表
示される。ポインティング装置6は表示装置5で表示さ
れたカラー画像および2次元ヒストグラムを参照して、
画像の代表点および2次元しきい値の指定を行なう。第
2図でこのしきい値の指定は例えば破線領域11.12
.13でそれぞれ示される。2次元しきい値メモリ7は
ポインティング装置6で指定した2次元しきい値を記憶
する。カラー座標検出手段8はポインティング装置6で
指定した画像の代表点に対応する2次元色平面上の位置
の計算、および2次元しきい値メモリ7の内容に従って
画像領域の抽出を行なう。CPU9はプログラム・ワー
キングメモリ10に格納されている制御プログラムに従
って各種装置の制御を行なう。In FIG. 2, the frequency in each chart is shown by the density of diagonal lines, but on an actual display device, it is shown by brightness. The pointing device 6 refers to the color image and two-dimensional histogram displayed on the display device 5, and
The representative point of the image and the two-dimensional threshold are specified. In Figure 2, this threshold value can be specified, for example, in the dashed line area 11.12.
.. 13, respectively. The two-dimensional threshold memory 7 stores the two-dimensional threshold specified by the pointing device 6. The color coordinate detection means 8 calculates the position on the two-dimensional color plane corresponding to the representative point of the image designated by the pointing device 6, and extracts an image area according to the contents of the two-dimensional threshold memory 7. The CPU 9 controls various devices according to control programs stored in the program working memory 10.
次に第3図を用いて本発明方法に関わる領域抽出方法の
フローチャートを説明する。Next, a flowchart of a region extraction method related to the method of the present invention will be explained using FIG.
ステップ21で画像メモリ2に格納されているカラー画
像から2次元ヒストグラムを計算する。次にステップ2
2において表示装置5に表示されている画像を参照し、
ポインティング装置6を用いて抽出対象領域の1個乃至
複数個の代表点の位置座標を指示する。ステップ23で
は代表点のR,G。In step 21, a two-dimensional histogram is calculated from the color image stored in the image memory 2. Next step 2
2 with reference to the image displayed on the display device 5,
The pointing device 6 is used to indicate the position coordinates of one or more representative points in the extraction target area. In step 23, R and G of the representative points are determined.
Bの値から表示装置5に表示されている2次元ヒストグ
ラム上の対応する位置について表示する色を変えて例示
する。次に2次元ヒストグラムおよび例示した代表点の
色事面上の位置を参照し、ステップ24においてポイン
ティング装置6により2次元しきい値を指示し、ステッ
プ25でカラー座標検出手段8により上記指示範囲に含
まれる画素を画像から抽出する。An example will be given in which the colors displayed at the corresponding positions on the two-dimensional histogram displayed on the display device 5 are changed based on the value of B. Next, referring to the two-dimensional histogram and the position of the illustrated representative point on the color plane, in step 24 the pointing device 6 indicates a two-dimensional threshold value, and in step 25 the color coordinate detection means 8 detects the indicated range. Extract the included pixels from the image.
上述の操作で抽出された領域が不満足な場合、あるいは
既に抽出された領域以外に特定する対象領域がある場合
には、ステップ22に戻って改めて抽出をやりなおす。If the area extracted by the above operation is unsatisfactory, or if there is a target area to be specified other than the already extracted area, the process returns to step 22 and the extraction is performed again.
上述の例では、画像のR,G、Bの3原色を使用したが
、2次元≠ストグラム上でより分離のすぐれた座標系、
あるいは明度、彩度1色相との対応のよい座標系に変換
して本操作を実行してもよいし、また3種の2次元ヒス
トグラムを用いる例を示したが、これを2種にしてもよ
い。In the above example, the three primary colors of the image, R, G, and B, were used, but two-dimensional ≠ coordinate system with better separation on the stogram,
Alternatively, this operation may be performed by converting to a coordinate system that has good correspondence with brightness, saturation, and hue.Also, although the example using three types of two-dimensional histograms was shown, it is also possible to convert this to two types. good.
(発明の効果)
以上述べてきたように本発明抽出方法を使用することに
より、画像の色情報について2次元のヒストグラムを作
成し、2次元の色事面上の分布と、操作者が指定した抽
出対象領域の代表点に対応する色事面上の位置を表示し
て、対話的に2次元のしきい値を指定してz■域を抽出
するため、複雑な情景の画像に対しても効果的に正しく
対象物を抽出できるという効果を有する。(Effects of the Invention) As described above, by using the extraction method of the present invention, a two-dimensional histogram is created for the color information of an image, and the distribution on the two-dimensional color surface and the information specified by the operator are The position on the color plane corresponding to the representative point of the extraction target area is displayed and the z area is extracted by interactively specifying a two-dimensional threshold, making it suitable for images with complex scenes. This has the effect that the target object can be extracted effectively and correctly.
第1図は、本発明方法を具現するに好適なハード構成実
施例のブロック線図を示し、
第2図は、本発明に関わる2次元ヒストグラムとそのし
きい値の1例を示し、
第3図は、本発明に関わる処理フローチャートを示し、
第4図は、従来例によるカラー画像の包子面上の分布の
1例を示す。
1・・・画像入力装置 2・・・画像メモリ3・・
・2次元ヒストグラム作成手段
4・・・2次元ヒストグラムメモリ
5・・・表示装置 6・・・ボインティング装
置7・・・2次元しきい値メモリ
8・・・カラー座標検出手段
9・・・cpu
10・・・ワーキングメモリ・プログラム第4図
→GFIG. 1 shows a block diagram of an embodiment of a hardware configuration suitable for implementing the method of the present invention, FIG. 2 shows an example of a two-dimensional histogram and its threshold value related to the present invention, and FIG. The figure shows a processing flowchart related to the present invention, and FIG. 4 shows an example of the distribution of a color image on the envelope surface according to a conventional example. 1... Image input device 2... Image memory 3...
- Two-dimensional histogram creation means 4... Two-dimensional histogram memory 5... Display device 6... Pointing device 7... Two-dimensional threshold memory 8... Color coordinate detection means 9... CPU 10... Working memory program Figure 4 → G
Claims (1)
、前記カラー画像と前記カラー画像の色成分に関する複
数の2次元ヒストグラムを表示し、該表示されたカラー
画像の抽出対象領域内の代表点の2次元色平面上に対応
する位置と、前記表示された複数の2次元ヒストグラム
を参照して平面上のしきい値を指示し、複雑な情景の画
像から前記特定の対象領域を対話的に抽出することを特
徴とするカラー画像の領域抽出方法。1. When extracting a specific target area from a color image, display the color image and a plurality of two-dimensional histograms regarding the color components of the color image, and calculate two representative points within the extraction target area of the displayed color image. The specific target area is interactively extracted from an image of a complex scene by instructing a threshold value on the plane by referring to the corresponding position on the dimensional color plane and the plurality of displayed two-dimensional histograms. A color image region extraction method characterized by the following.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62156460A JPH087787B2 (en) | 1987-06-25 | 1987-06-25 | Color image area extraction method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62156460A JPH087787B2 (en) | 1987-06-25 | 1987-06-25 | Color image area extraction method |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JPS642178A JPS642178A (en) | 1989-01-06 |
| JPH012178A true JPH012178A (en) | 1989-01-06 |
| JPH087787B2 JPH087787B2 (en) | 1996-01-29 |
Family
ID=15628232
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62156460A Expired - Lifetime JPH087787B2 (en) | 1987-06-25 | 1987-06-25 | Color image area extraction method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH087787B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6186064A (en) * | 1984-10-05 | 1986-05-01 | Nippon Light Metal Co Ltd | Method for producing metallic composite containing inorganic fibers |
| JP4830501B2 (en) * | 2005-02-21 | 2011-12-07 | オムロン株式会社 | Substrate inspection method and apparatus, and inspection logic setting method and apparatus thereof |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6074874A (en) * | 1983-09-30 | 1985-04-27 | Fujitsu Ltd | Picture color separating system |
| JPS61213975A (en) * | 1985-03-18 | 1986-09-22 | Fujitsu Ltd | Area detecting system |
-
1987
- 1987-06-25 JP JP62156460A patent/JPH087787B2/en not_active Expired - Lifetime
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8130244B2 (en) | Image processing system | |
| US20190098277A1 (en) | Image processing apparatus, image processing method, image processing system, and storage medium | |
| US5247583A (en) | Image segmentation method and apparatus therefor | |
| US6914599B1 (en) | Image processing apparatus | |
| US20020118217A1 (en) | Apparatus, method, program code, and storage medium for image processing | |
| CN101751672A (en) | Image processing system | |
| CN105069754B (en) | System and method based on unmarked augmented reality on the image | |
| GB2465793A (en) | Estimating camera angle using extrapolated corner locations from a calibration pattern | |
| JP6293386B2 (en) | Data processing apparatus, data processing method, and data processing program | |
| CN114860184A (en) | Processing device, system and method for blackboard writing display | |
| JP3126046B2 (en) | Color adjustment method and color adjustment device for color image | |
| EP0780003B1 (en) | Method and apparatus for determining the location of a reflective object within a video field | |
| JP3659426B2 (en) | Edge detection method and edge detection apparatus | |
| CN110188640B (en) | Face recognition method, apparatus, server and computer readable medium | |
| JPH012178A (en) | Color image region extraction method | |
| US6879704B2 (en) | Image processing apparatus, image processing method and recording medium | |
| JPH087787B2 (en) | Color image area extraction method | |
| KR100466587B1 (en) | Method of Extrating Camera Information for Authoring Tools of Synthetic Contents | |
| JPH07146937A (en) | Pattern matching method | |
| JPH08123940A (en) | Method and device for extracting picture area | |
| JP2786261B2 (en) | Color image processing method | |
| JP2576336B2 (en) | Image division method and apparatus | |
| JPH0225989A (en) | Moving object extracting method | |
| JP2005309777A (en) | Image processing method | |
| JPS62198968A (en) | Image processing method |