JP2000251083A - Device and method for extracting contour and program recording medium - Google Patents

Device and method for extracting contour and program recording medium

Info

Publication number
JP2000251083A
JP2000251083A JP11051866A JP5186699A JP2000251083A JP 2000251083 A JP2000251083 A JP 2000251083A JP 11051866 A JP11051866 A JP 11051866A JP 5186699 A JP5186699 A JP 5186699A JP 2000251083 A JP2000251083 A JP 2000251083A
Authority
JP
Japan
Prior art keywords
projection axis
color
contour
color projection
edge
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.)
Withdrawn
Application number
JP11051866A
Other languages
Japanese (ja)
Inventor
Tomotaka Ogino
友隆 荻野
Takahiro Ishii
隆寛 石井
Takushi Totsuka
卓志 戸塚
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP11051866A priority Critical patent/JP2000251083A/en
Priority to US09/510,082 priority patent/US6621924B1/en
Priority to CA002299578A priority patent/CA2299578A1/en
Priority to GB0004550A priority patent/GB2352916B/en
Publication of JP2000251083A publication Critical patent/JP2000251083A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a device and a method for extracting contour capable of presenting plural pieces of candidate data capable of subjectivity evaluation to a user so as to select any one concerning data processing for which the evaluation based on the subjectivity of the user is requested to the output result. SOLUTION: A color shading axis candidate calculating part 32' calculates plural color shading axes. A contour curve generating part 33 generates a contour curve candidate list corresponding to the list of candidates of the said plural color shading axes. The contour curve candidate list generated by this contour curve generating part 33 is displayed on a display device. Then, the user is made select any axis by a candidate list selecting part 71 and the color shading axis selected by the user is sent to the contour curve generating part 33. In the contour curve generating part 33, a new contour curve in an update block is generated from an image, a representative point 1, a representative point 2 and the color shading axis. In an update block synthesizing part 34, the contour curve of the updated block is synthesized with a closed curve and generated as a new closed contour curve.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像中から注目す
る対象物の輪郭を抽出する輪郭抽出装置及び方法に関す
る。並びに、プログラム記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a contour extracting apparatus and method for extracting a contour of an object of interest from an image. Also, the present invention relates to a program recording medium.

【0002】[0002]

【従来の技術】画像中から注目する対象物の輪郭を抽出
する輪郭抽出処理において、オペレータの介在入力によ
ってより正確に領域抽出ができるように動作する従来手
法としては、大きく分けて2種類のものがある。
2. Description of the Related Art In a contour extraction process for extracting a contour of an object of interest from an image, there are roughly two types of conventional methods which operate so that an area can be extracted more accurately by an operator's intervention input. There is.

【0003】第1の従来技術は、何らかの処理によって
自動的に抽出された輪郭情報に対し、自動抽出されたが
不要な情報であったり、自動抽出はできなかったが必要
である情報などをオペレータが判断してそれらの削除又
は追加操作を行う種類のものである。これに属する従来
技術の具体例としては、「画像輪郭検出方法」(特開平
3−291770)、「画像編集装置」(特開平1−1
75076)がある。
[0003] In the first prior art, contour information automatically extracted by some processing is automatically extracted but unnecessary information, or information that could not be automatically extracted but is required is identified by an operator. Is a type that determines and performs an operation of deleting or adding them. As specific examples of the prior art belonging to this, “Image contour detection method” (Japanese Patent Laid-Open No. 3-291770), “Image editing device” (Japanese Patent Laid-Open No.
75076).

【0004】第2の従来技術は、輪郭抽出処理を行うた
めの入力情報について、初期入力が十分でなかったとこ
ろをオペレータが判断して、さらに正確な入力を与えて
再計算するように動作する種類のものである。これに属
する従来技術の具体例としては、「画像輪郭検出方法」
(特開平4−152481)、「絵柄のマスク作成方
法」(特開平1−155476)、「切り抜きマスク作
成方法」(特開平4−68763)、「Intelligent Sc
issors for Image Composition」(Eric N. Mortensen
and William A. Barrett,Computer Graphics Proceedin
g, Annual Conference Series, 1995, ACM SIGGRAPH, p
p.191-198)がある。
In the second prior art, an operator determines that initial input is not sufficient for input information for performing a contour extraction process, and operates so as to provide a more accurate input and recalculate. Kind of thing. As a specific example of the prior art belonging to this, "Image contour detection method"
(Japanese Unexamined Patent Publication No. 4-152481), "Pattern Mask Creation Method" (Japanese Unexamined Patent Publication No. 1-155476), "Cut-out Mask Creation Method" (Japanese Unexamined Patent Publication No. 4-68763), "Intelligent Sc"
issors for Image Composition ”(Eric N. Mortensen
and William A. Barrett, Computer Graphics Proceedin
g, Annual Conference Series, 1995, ACM SIGGRAPH, p
p.191-198).

【0005】上記従来技術のそれぞれの動作について、
簡単に説明する。
[0005] For each operation of the above prior art,
A brief description will be given.

【0006】「画像輪郭検出方法」(特開平3−291
770)は、最初の自動抽出ではエッジ検出オペレータ
を用いて輪郭を抽出し、エッジ検出処理では抽出できな
かった輪郭については、オペレータがその両端を指定す
ることによって、それを結ぶ線分が輪郭として追加され
るように動作する。
"Image contour detection method" (Japanese Patent Laid-Open No. 3-291
770), an edge is extracted using an edge detection operator in the first automatic extraction, and for an outline that could not be extracted by the edge detection processing, the operator designates both ends of the outline, and a line segment connecting the two ends as an outline. Works to be added.

【0007】「画像編集装置」(特開平1−17507
6)は、予め色量子化によって領域分割しておいた画像
中の領域のうち、オペレータが概略線で囲んだ領域を対
象物領域として抽出する処理を行う。そして、もし抽出
ミスがあったときに、オペレータが該当する領域を一つ
一つ指定して、その領域を対象物領域に追加するか、削
除するかの修正ができるようになっている。
"Image editing apparatus" (Japanese Patent Laid-Open No. 1-150707)
Step 6) performs a process of extracting, as an object region, a region surrounded by a schematic line by an operator among regions in an image which has been divided into regions by color quantization in advance. Then, if there is an extraction error, the operator can specify the corresponding areas one by one and correct whether the areas are added to or deleted from the target object area.

【0008】「絵柄のマスク作成方法」(特開平1−1
55476)、「切り抜きマスク作成方法」(特開平4
−68763)はクロマキーに類似の技術であり、輪郭
の両端の色すなわち前景色と背景色のどちらかあるいは
両方を入力することにより、輪郭領域の色の境目を検出
するように動作する。もし必要ならば、部分的に色入力
を変更して動作できるようになっている。
[0008] "Picture mask making method" (Japanese Patent Laid-Open No. 1-1)
55476), “Cut-out mask making method” (Japanese Unexamined Patent Application Publication No.
-68763) is a technique similar to chroma key, and operates so as to detect the boundary between the colors of the outline area by inputting the colors at both ends of the outline, that is, one or both of the foreground and background colors. If necessary, it can be operated by partially changing the color input.

【0009】「Intelligent Scissors for Image Compo
sition」は、輪郭上の中継点を幾つか与えることによ
り、その間の輪郭点を探索して抽出するように動作する
ものである。この探索手法は画像のエッジ情報を利用し
た探査ルールに基づき、なるべくエッジ上を通過するよ
うに中継点を結ぶような経路を探査するものである。か
なり複雑な輪郭形状を自動的に抽出することができる。
このため、この手法は比較的少数の中継点で輪郭を抽出
できるという利点をもっている。
[0009] "Intelligent Scissors for Image Compo"
"sition" operates to search for and extract contour points between them by giving some relay points on the contour. This search method searches for a route connecting relay points so as to pass over the edge as much as possible, based on a search rule using edge information of an image. Quite complicated contour shapes can be automatically extracted.
Therefore, this method has an advantage that a contour can be extracted with a relatively small number of relay points.

【0010】「画像輪郭検出方法」(特開平4−152
481)も輪郭上の中継点を幾つか与えることにより、
その間の輪郭点を探査して抽出するように動作するもの
である。この手法はその輪郭探査をおこなうときに中継
点の位置によって探査方向のバイアスをかけるように動
作する。そのため、中継点を変更することによって所望
の方向に進む輪郭を抽出しやすいようになっている。
"Image contour detection method" (JP-A-4-152)
481) also gives some relay points on the contour,
It operates to search for and extract contour points between them. This method operates to apply a bias in the search direction depending on the position of the relay point when performing the contour search. Therefore, by changing the relay point, it is easy to extract a contour that advances in a desired direction.

【0011】上記第1の従来技術は、最終的な輪郭の正
確さが最初の自動抽出の正確さに大きく依存し、その後
のオペレータの修正操作で輪郭をより正確にすることに
あまり期待できないという問題があった。
In the first prior art, the accuracy of the final contour largely depends on the accuracy of the first automatic extraction, and it cannot be expected that the contour will be made more accurate by the subsequent correction operation of the operator. There was a problem.

【0012】例えば、「画像輪郭検出方法」(特開平3
−291770)は、上述したように、手動による輪郭
の追加は線分でしかできないため、形状の正確さに難点
がある。
[0012] For example, "Image contour detection method" (Japanese Patent Laid-Open No.
-291770), as described above, has a drawback in the accuracy of the shape, since manual addition of a contour can only be performed with a line segment.

【0013】また、「画像編集装置」(特開平1−17
5076)では、修正操作が煩雑にならないためには最
初に分割しておいた領域があまり小さくならないように
しなければならない。そのためには、色量子化は適度に
粗くする必要がある。ところが、色量子化を粗くする
と、領域分割された領域の形状と、真の物体輪郭形状と
が一致しなくなりやすく、自動抽出される輪郭形状の正
確さが失われてしまうという問題がある。
An "image editing apparatus" (Japanese Patent Laid-Open No. 1-17 / 1990)
In 5076), it is necessary to make the area divided first not too small so that the correction operation is not complicated. For that purpose, the color quantization needs to be moderately coarse. However, if the color quantization is made coarse, the shape of the region obtained by the region division and the true object outline shape are likely to be inconsistent, and the accuracy of the automatically extracted outline shape is lost.

【0014】一方、上記第2の従来技術では、自動抽出
の結果が十分でなかった領域に対してより正確な入力を
あたえて再計算を行うので、輪郭の正確さに関しては有
利である。しかしながら、第2の従来技術では以下に説
明する問題がある。
On the other hand, in the second prior art, recalculation is performed by giving a more accurate input to a region where the result of automatic extraction is not sufficient, which is advantageous in terms of contour accuracy. However, the second conventional technique has the following problem.

【0015】「絵柄のマスク作成方法」(特開平1−1
55476)、「切り抜きマスク作成方法」(特開平4
−68763)におけるオペレータ修正は、前述のよう
に、部分的に背景色又は前景色の入力を変更し、その部
分における輪郭抽出を再計算することにより輪郭形状を
修正するように動作する。しかしながら色入力操作は、
クロマキー装置でいえばキーのレベル調整をモニタ画面
を監視しながら行う操作に匹敵する。この種の操作は輪
郭形状についての情報を直接入力するものではないた
め、オペレータが直感的に正しい入力を行うことが難し
く、所望の輪郭形状を得るために何回かの試行錯誤が伴
う。
"Picture mask making method" (Japanese Patent Laid-Open No. 1-1)
55476), “Cut-out mask making method” (Japanese Unexamined Patent Application Publication No.
The operator correction in -68763) operates to correct the contour shape by partially changing the input of the background color or the foreground color and recalculating the contour extraction in that part, as described above. However, the color input operation is
Speaking of the chroma key device, it is equivalent to the operation of adjusting the key level while monitoring the monitor screen. Since this type of operation does not directly input information on the contour shape, it is difficult for the operator to intuitively perform correct input, and several trials and errors are required to obtain a desired contour shape.

【0016】それに対し、「画像輪郭検出方法」(特開
平4−152481)、「Intelligent Scissors for I
mage Composition」(以下、中継点を入力する従来技
術)では、オペレータの修正操作は輪郭上の中継点を操
作することであり、修正した中継点に関する輪郭形状が
再計算されるように動作する。この手法では直接輪郭形
状に関する入力を与えるため、オペレータが直感的に正
しい入力を行うことが比較的に容易である。
On the other hand, "Image contour detection method" (Japanese Patent Laid-Open No. 4-152481) and "Intelligent Scissors for I"
In the “mage Composition” (hereinafter, a conventional technique of inputting a relay point), an operator's correction operation is to operate a relay point on a contour, and an operation is performed so that a contour shape related to the corrected relay point is recalculated. In this method, since an input regarding a contour shape is directly provided, it is relatively easy for an operator to intuitively perform a correct input.

【0017】[0017]

【発明が解決しようとする課題】しかし、求められた曲
線がエッジ上を通っているかどうかの評価基準はユーザ
の主観評価に委ねられるため、以下のような問題が発生
する。
However, since the criterion for evaluating whether or not the obtained curve passes on the edge is left to the subjective evaluation of the user, the following problems occur.

【0018】図21(A)のバットを持った少年の画像
の場合を例に挙げて説明する。図21(A)において、
点p1と点p2が置かれたとき、ユーザはどのエッジを
通る曲線を期待しているのかについて議論となる。
An example of an image of a boy holding a bat shown in FIG. 21A will be described. In FIG. 21A,
When the points p1 and p2 are placed, it becomes controversial about which edge the user expects the curve to pass through.

【0019】ユーザの目的が、「少年全体を囲んだ輪郭
を得たい」場合は、ユーザの期待する輪郭曲線は図21
(B)の通りになる。
If the user's purpose is "to obtain a contour surrounding the entire boy", the contour curve expected by the user is shown in FIG.
(B) is as follows.

【0020】一方で、ユーザの目的が「少年のユニホー
ムの色を変更するため、ユニホームのみを囲んだ輪郭を
得たい」という場合は、ユーザの期待する輪郭曲線は図
21(C)となる。
On the other hand, if the user's purpose is “to change the color of the boy's uniform and want to obtain a contour surrounding only the uniform”, the contour curve expected by the user is as shown in FIG. 21 (C).

【0021】ユーザがどのエッジを通る輪郭曲線を期待
しているかは、ユーザの主観・目的によって変化するこ
とが多く、一意に定められない。このため、ある自動計
算アルゴリズムが正常に動作した正当な結果であって
も、ユーザの意図に沿わない場合があることは十分想定
し得る。
Which edge a user expects a contour curve to pass through often varies depending on the subjectivity and purpose of the user, and is not uniquely determined. For this reason, it can be fully assumed that even if the result of a certain automatic calculation algorithm that operates normally is correct, it may not meet the user's intention.

【0022】つまり、図22に示すように出力結果にユ
ーザの主観による評価が要求されるデータ処理部100
に対し、単一のアルゴリズムによる単一の出力結果が用
いられているため、主観や目的によって変化し得るユー
ザの希望に常時沿うことができない、という問題が発生
する。
That is, as shown in FIG. 22, the data processing unit 100 requires the output result to be subjectively evaluated by the user.
On the other hand, since a single output result by a single algorithm is used, there is a problem that it is not always possible to meet a user's desire that may change depending on the subjectivity and purpose.

【0023】本発明は、上記実情に鑑みてなされたもの
であり、出力結果にユーザの主観による評価が要求され
るデータ処理に対し、主観評価可能な複数の候補データ
をユーザに提示し、選択させることのできる輪郭抽出装
置及び方法の提供を目的とする。
The present invention has been made in view of the above circumstances, and presents a plurality of subjectively evaluable candidate data to a user for data processing in which the output result requires subjective evaluation by the user. It is an object of the present invention to provide a contour extraction device and method capable of causing the contour extraction.

【0024】[0024]

【課題を解決するための手段】本発明に係る輪郭抽出装
置は、上記課題を解決するために、画像中から対象物の
輪郭を抽出する輪郭抽出装置において、上記対象物のエ
ッジ上の代表点の座標と初期閉曲線から更新区間を挟み
込む一組の代表点を求める更新区間抽出手段と、上記更
新区間抽出手段で求められた一組の代表点と上記画像か
ら更新区間内の色射影軸候補を複数求め、この複数の色
射影軸候補を操作者による主観評価可能なデータに変換
して操作者に提示し、操作者による補助的な入力により
色射影軸を決定する色射影軸計算手段と、上記色射影軸
計算手段で求められた色射影軸と上記更新区間抽出手段
で求められた一組の代表点を上記画像から更新区間内の
輪郭曲線を生成する輪郭曲線生成手段と、上記輪郭曲線
生成手段で生成された更新区間内の輪郭曲線を閉曲線に
合成し、新たな輪郭閉曲線を生成する輪郭閉曲線合成手
段とを備える。
According to the present invention, there is provided a contour extracting apparatus for extracting a contour of an object from an image, the method comprising extracting a representative point on an edge of the object. Update section extracting means for obtaining a set of representative points sandwiching the update section from the coordinates and the initial closed curve; and a set of representative points obtained by the update section extracting means and a color projection axis candidate in the update section from the image. A plurality of color projection axis calculating means for converting the plurality of color projection axis candidates into data that can be subjectively evaluated by the operator, presenting the data to the operator, and determining the color projection axis by auxiliary input by the operator; Contour curve generating means for generating a contour curve in an update section from the image by using the color projection axis calculated by the color projection axis calculation means and the set of representative points determined by the update section extraction means; Generated by the generation means The contour curve in the update interval synthesized closed curve has, and a contour closed curve synthesizing means for generating a new contour closed curve.

【0025】また、本発明に係る輪郭抽出方法は、上記
課題を解決するために、画像中から対象物の輪郭を抽出
するための輪郭抽出方法において、上記対象物のエッジ
上の代表点の座標と初期閉曲線から更新区間を挟み込む
一組の代表点を求める更新区間抽出工程と、上記更新区
間抽出工程で求められた一組の代表点と上記画像から更
新区間内の色射影軸候補を複数求め、この複数の色射影
軸候補を操作者による主観評価可能なデータに変換して
操作者に提示し、操作者による補助的な入力により色射
影軸を決定する色射影軸計算工程と、上記色射影軸計算
工程で求められた色射影軸と上記更新区間抽出手段で求
められた一組の代表点を上記画像から更新区間内の輪郭
曲線を生成する輪郭曲線生成工程と、上記輪郭曲線生成
工程で生成された更新区間内の輪郭曲線を閉曲線に合成
し、新たな輪郭閉曲線を生成する輪郭閉曲線合成工程と
を備える。
According to a second aspect of the present invention, there is provided a contour extracting method for extracting a contour of an object from an image, the coordinate of a representative point on an edge of the object. And an update interval extraction step of obtaining a set of representative points sandwiching the update interval from the initial closed curve, and obtaining a plurality of color projection axis candidates in the update interval from the set of representative points obtained in the update interval extraction step and the image. Converting the plurality of color projection axis candidates into data that can be subjectively evaluated by the operator, presenting the data to the operator, and determining the color projection axis by auxiliary input by the operator; A contour curve generating step of generating a contour curve in an update section from the image using the color projection axis determined in the projection axis calculation step and the set of representative points determined by the update section extracting means; Generated by The contour curve in the new segment synthesized closed curve, and a contour closed curve synthesizing step of generating a new contour closed curve.

【0026】すなわち、パラメータを変えたアルゴリズ
ム、或いは複数のアルゴリズムによって生成された複数
の結果を、主観評価可能なデータに変換し、候補として
ユーザに提示、ユーザに選択させることで、ユーザの期
待する結果を得ることができる。
That is, an algorithm with changed parameters or a plurality of results generated by a plurality of algorithms is converted into data that can be subjectively evaluated, presented to the user as a candidate, and made to be selected by the user, thereby allowing the user to expect. The result can be obtained.

【0027】このため、キー生成装置に代表される、出
力結果にユーザの主観による評価が要求されるデータ処
理に対し、複数のアルゴリズム・複数のパラメータによ
って生成された複数の結果を、主観評価可能なデータに
変換し、候補としてユーザに提示、ユーザに選択させる
ことで、ユーザの期待する結果を得ることが可能とな
る。
Therefore, for data processing, such as a key generation device, in which output results require subjective evaluation by the user, a plurality of results generated by a plurality of algorithms and a plurality of parameters can be subjectively evaluated. By converting the data into simple data, presenting it to the user as a candidate, and causing the user to select the data, it is possible to obtain the result expected by the user.

【0028】[0028]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照しながら説明する。この実施の形態は、本
発明に係る輪郭抽出装置を用いて抽出した輪郭領域を基
にソフトキーを生成する、図1に示すキー生成装置であ
る。
Embodiments of the present invention will be described below with reference to the drawings. This embodiment is a key generation device shown in FIG. 1, which generates a soft key based on a contour area extracted using the contour extraction device according to the present invention.

【0029】輪郭閉曲線生成部21で得られた輪郭閉曲
線から、両端閉曲線生成部22が両端閉曲線を生成し、
ソフトキー生成部23がその両端閉曲線からキー画像を
生成する。
From the closed contour curve obtained by the closed contour curve generation section 21, the both end closed curve generation section 22 generates a both end closed curve,
The soft key generation unit 23 generates a key image from the closed curve at both ends.

【0030】輪郭閉曲線生成部21が本発明に係る輪郭
抽出装置の具体例であり、画像と初期形状の閉曲線、エ
ッジ上の代表点の座標を入力とし、複数のアルゴリズ
ム、複数のパラメータによって生成された複数の結果
を、主観評価可能なデータに変換し、候補としてユーザ
に提示、ユーザに選択させて、ユーザの希望に沿った輪
郭閉曲線を生成する。
The contour closed curve generating unit 21 is a specific example of the contour extracting apparatus according to the present invention. The closed contour generating unit 21 receives an image, a closed curve of an initial shape, and coordinates of a representative point on an edge, and generates the closed curve by a plurality of algorithms and a plurality of parameters. The plurality of results are converted into data that can be subjectively evaluated, presented to the user as candidates, selected by the user, and a closed contour curve according to the user's desire is generated.

【0031】この輪郭閉曲線生成部21の動作原理につ
いて図2を参照しながら説明する。概念的にはデータ処
理部10と、データ変換部11と、表示装置12と、操
作装置13と、出力データ選択部14を備えている。
The principle of operation of the closed contour generating section 21 will be described with reference to FIG. Conceptually, it includes a data processing unit 10, a data conversion unit 11, a display device 12, an operation device 13, and an output data selection unit 14.

【0032】データ処理部10は、入力データに対し、
複数のアルゴリズム、パラメータを適用して、複数の出
力データの候補リストを提示する。データ変換部11は
上記候補リストから人間が見て主観評価可能なデータの
候補リストを生成する。この候補リストは表示装置12
上に表示される。
The data processing unit 10 processes the input data
A plurality of output data candidate lists are presented by applying a plurality of algorithms and parameters. The data conversion unit 11 generates a candidate list of data that can be subjectively evaluated by humans from the candidate list. This candidate list is displayed on the display device 12.
Displayed above.

【0033】表示装置12を見ながら操作装置13を使
ってユーザが希望に沿った候補を選択すると、選択され
た候補の番号が出力データ選択部14に送られ、出力デ
ータ選択部14はユーザの希望に沿った出力データを再
度表示装置12に送る。これにより、ユーザは期待する
結果を得ることができる。
When the user selects a desired candidate using the operating device 13 while looking at the display device 12, the number of the selected candidate is sent to the output data selecting unit 14, and the output data selecting unit 14 The output data as desired is sent to the display device 12 again. As a result, the user can obtain an expected result.

【0034】この本発明を適用した輪郭閉曲線生成部2
1の機能の詳細、すなわち複数のアルゴリズム・複数の
パラメータによって生成された複数の結果を、主観評価
可能なデータに変換し、候補としてユーザに提示、ユー
ザに選択させて、ユーザの希望に沿った輪郭閉曲線を生
成するという、機能の詳細については後述するとして、
先ず、輪郭閉曲線生成部21が一つの輪郭閉曲線を生成
する際に適用できる、新しい技術を説明しておく。
The contour closed curve generator 2 to which the present invention is applied
The details of the function 1, ie, a plurality of results generated by a plurality of algorithms and a plurality of parameters, are converted into data that can be subjectively evaluated, presented to the user as candidates, and made to be selected by the user, to meet the user's wishes. The details of the function of generating a contour closed curve will be described later,
First, a new technique that can be applied when the contour closed curve generating unit 21 generates one closed contour curve will be described.

【0035】図3には輪郭閉曲線生成部21の詳細な構
成を示す。この輪郭閉曲線生成部21は、更新区間抽出
部31と、最適色射影軸計算部32と、輪郭曲線生成部
33、更新区間合成部34とからなる。
FIG. 3 shows a detailed configuration of the contour closed curve generator 21. The contour closed curve generator 21 includes an update section extractor 31, an optimal color projection axis calculator 32, a contour curve generator 33, and an update section synthesizer 34.

【0036】更新区間抽出部31はユーザから代表点が
指定されることにより、曲線の更新区間を抽出し、更新
区間を過不足なく挟み込む代表点1,2を求める。具体
的にはユーザが図示しないマウスやタブレットなどの2
次元ポインティングデバイスを入力手段として使い、画
像のエッジ上に代表点を指定するとエッジ上の代表点の
座標が更新区間抽出部31に供給される。また、例えば
丸、四角或いは多角形の閉曲線も初期形状として更新区
間抽出部31に与えられる。これらエッジ上の代表点の
座標と初期形状を用いて更新区間抽出部31が更新区間
を過不足無く挟み込む代表点1,代表点2を求める。
When the representative point is designated by the user, the update section extraction section 31 extracts the update section of the curve, and obtains the representative points 1 and 2 which sandwich the update section without excess or deficiency. More specifically, the user may use a mouse or tablet (not shown).
When a representative point is specified on the edge of the image using the dimensional pointing device as input means, the coordinates of the representative point on the edge are supplied to the update section extraction unit 31. In addition, for example, a closed curve such as a circle, a square, or a polygon is also provided to the update section extraction unit 31 as an initial shape. Using the coordinates of the representative points on the edge and the initial shape, the update section extraction unit 31 obtains representative points 1 and 2 that sandwich the update section without excess or deficiency.

【0037】最適色射影軸計算部32では、代表点1,
2と画像を基に、更新区間におけるエッジ周囲のコント
ラストを最大にする色空間射影軸を求める。この最適色
射影軸計算部30については詳細を後述する。
In the optimum color projection axis calculation unit 32, the representative points 1,
2 and the image, a color space projection axis that maximizes the contrast around the edge in the update section is determined. The details of the optimum color projection axis calculation unit 30 will be described later.

【0038】輪郭曲線生成部33では、画像、代表点
1,2、色射影軸から更新区間内の新しい輪郭曲線を生
成する。この輪郭曲線生成部33についても詳細を後述
する。
The contour curve generator 33 generates a new contour curve in the update section from the image, the representative points 1 and 2, and the color projection axis. The details of the contour curve generation unit 33 will also be described later.

【0039】更新区間合成部34では、更新された区間
の輪郭曲線を閉曲線に合成し、新たな輪郭閉曲線として
生成する。ユーザによる代表点の移動・追加・削除など
により、更新が発生する間は、輪郭閉曲線も更新され続
ける。
The update section synthesizing section 34 synthesizes the contour curve of the updated section with a closed curve and generates a new contour closed curve. While the update occurs due to the movement, addition, or deletion of the representative point by the user, the contour closed curve is also updated.

【0040】更新区間合成部34で生成された輪郭閉曲
線の具体例を図4に示す。すなわち、輪郭閉曲線は図4
に示すように、ユーザが直接座標を指定するエッジ上の
代表点と、それらを通りエッジ上を通るスプライン曲線
から構成される。
FIG. 4 shows a specific example of the contour closed curve generated by the update section synthesizing section 34. That is, the contour closed curve is shown in FIG.
As shown in (1), it is composed of representative points on the edge for which the user directly specifies coordinates, and spline curves passing through the edges and passing through them.

【0041】図5には、最適色射影軸計算部32の詳細
図を示す。最適色射影軸計算部32は、代表点1及び代
表点2の近傍領域内で近傍最適色射影軸を計算する、代
表点近傍最適色射影軸計算部41及び代表点近傍最適色
射影軸計算部41と、上記二つの計算部41,41から
の色射影軸1及び色射影軸2を用いて色射影軸を合成す
る色射影軸合成部42からなる。
FIG. 5 is a detailed diagram of the optimum color projection axis calculator 32. The optimum color projection axis calculation unit 32 calculates a neighborhood optimum color projection axis in the vicinity area of the representative point 1 and the representative point 2, and calculates an optimum color projection axis calculation unit 41 near the representative point and an optimum color projection axis calculation unit near the representative point 41, and a color projection axis synthesizing section 42 for synthesizing the color projection axis using the color projection axis 1 and the color projection axis 2 from the two calculation sections 41, 41.

【0042】代表点近傍最適色射影軸計算部41では、
代表点の近傍領域内に含まれるエッジ周囲のコントラス
トを最大にする近傍最適色射影軸を求める。今、図6に
示すように、代表点1(p0)と代表点2(p1)が指
定されたとする。このとき、代表点近傍色射影軸計算部
41は代表点p0の近傍領域A1内に含まれるエッジの
内、コントラストが最大となる色射影軸(1)B0を計
算により求める。また、代表点近傍色射影軸計算部41
は代表点p1の近傍領域A2内に含まれるエッジの内、
コントラストが最大となる色射影軸(2)B1を計算に
より求める。この代表点近傍色射影軸計算部41の詳細
な構成については後述する。
In the optimum color projection axis calculation unit 41 near the representative point,
A neighborhood optimum color projection axis that maximizes the contrast around the edge included in the neighborhood area of the representative point is obtained. Assume that a representative point 1 (p0) and a representative point 2 (p1) are designated as shown in FIG. At this time, the representative point color projection axis calculation unit 41 calculates the color projection axis (1) B0 at which the contrast is maximum among the edges included in the vicinity area A1 of the representative point p0. Further, the color projection axis calculation unit 41 near the representative point
Is an edge included in the area A2 near the representative point p1,
The color projection axis (2) B1 at which the contrast becomes maximum is obtained by calculation. The detailed configuration of the color projection axis calculation unit 41 near the representative point will be described later.

【0043】色射影軸合成部42では、代表点1,2の
近傍領域でそれぞれ別々に求められた近傍最適色射影軸
(1)B0、近傍最適色射影軸(2)B1を合成し、更
新区間のエッジのコントラストを最大にする1本の色射
影軸を求める。ここでの合成方法は、例えば色射影軸の
平均ベクトルを合成後の軸としてよい。但し、この場合
二つの色射影軸のベクトルが鈍角を成しているときには
以下の図7で説明することに注意する必要がある。
The color projection axis synthesizing section 42 synthesizes and updates the neighborhood optimum color projection axis (1) B0 and the neighborhood optimum color projection axis (2) B1 which are separately obtained in the vicinity areas of the representative points 1 and 2. One color projection axis that maximizes the contrast of the edge of the section is determined. The combining method here may use, for example, the average vector of the color projection axes as the combined axis. However, in this case, when the vectors of the two color projection axes form an obtuse angle, it should be noted that the description will be made with reference to FIG. 7 below.

【0044】図7(A)に示すように、更新区間の両端
の上記エッジ上の代表点で求められた色射影軸ベクトル
をv0、v1とする。このとき、以下の式で定義され
る、v0,v1の合成ベクトルcを区間の色射影軸とす
ると、このcはv0,v1の双方に対してほぼ垂直方向
を向いており、区間の色射影軸として適さない。
As shown in FIG. 7A, the color projection axis vectors obtained at the representative points on the above-mentioned edges at both ends of the update section are defined as v0 and v1. At this time, assuming that a composite vector c of v0 and v1 defined by the following equation is a color projection axis of the section, this c is substantially perpendicular to both v0 and v1, and the color projection axis of the section is Not suitable as an axis.

【0045】c=v0+v1 これは、v0,v1が鈍角を成しているためである。鈍
角の場合、すなわち内積v0・v1が負のときは、図7
(B)に示すように、いずれか片方のベクトル、例えば
v0を反転させたv0’とv1について、以下の式のよ
うに、合成ベクトルc’を求め、それを色射影軸として
用いる。
C = v0 + v1 This is because v0 and v1 form an obtuse angle. In the case of an obtuse angle, that is, when the inner product v0 · v1 is negative, FIG.
As shown in (B), for one of the vectors, for example, v0 'and v1 obtained by inverting v0, a combined vector c' is obtained as in the following equation, and is used as a color projection axis.

【0046】v0’=−v0 c’=v0’+v1 これにより、v0、v1のいずれにも水平に近い軸を得
ることができる。
V0 '=-v0 c' = v0 '+ v1 As a result, an axis nearly horizontal to both v0 and v1 can be obtained.

【0047】次に、順序が逆になるが、上記代表点近傍
色射影軸計算部41の詳細な構成について図8を用いて
説明する。代表点近傍最適色射影軸計算部41は、直線
エッジ検出部51と、エッジ周囲の色情報取得部52
と、色射影軸計算部53とからなる。
Next, although the order is reversed, the detailed configuration of the above-described representative point vicinity color projection axis calculation unit 41 will be described with reference to FIG. The optimal color projection axis calculation unit 41 near the representative point includes a straight edge detection unit 51 and a color information acquisition unit 52 around the edge.
And a color projection axis calculation unit 53.

【0048】例えば、代表点1の近傍の色射影軸を計算
により求める代表点近傍最適色射影軸計算部41内部
の、直線エッジ検出部51は、画像と代表点1と隣接点
(隣の代表点2)を基に、図6に示した代表点1(p
0)の近傍領域A0内に含まれる直線的なエッジ成分を
検出し、その直線の方程式を求める。直線エッジが近傍
領域A0の画像内に複数含まれる場合は、例えば最もエ
ッジが強いものを採用する。
For example, the straight-line edge detection unit 51 in the optimum color projection axis calculating unit 41 near the representative point for calculating the color projection axis near the representative point 1 calculates the image, the representative point 1 and the adjacent point (neighboring representative point). Based on the point 2), the representative point 1 (p
A linear edge component included in the neighborhood A0 of (0) is detected, and an equation of the straight line is obtained. When a plurality of straight edges are included in the image of the vicinity area A0, for example, the one having the strongest edge is adopted.

【0049】また、代表点2の近傍の色射影軸を計算に
より求める代表点近傍最適色射影軸計算部41内部の、
直線エッジ検出部51は、画像と代表点2と隣接点(隣
の代表点1)を基に、図6に示した代表点2(p1)の
近傍領域A1内に含まれる直線的なエッジ成分を検出
し、その直線の方程式を求める。ここでも直線エッジが
近傍領域A1の画像内に複数含まれる場合は、例えば最
もエッジが強いものを採用する。
The optimum color projection axis calculator 41 near the representative point for calculating the color projection axis near the representative point 2 is as follows.
The straight-line edge detection unit 51 calculates a linear edge component included in the vicinity area A1 of the representative point 2 (p1) shown in FIG. 6 based on the image, the representative point 2, and the adjacent point (neighboring representative point 1). Is detected, and the equation of the straight line is obtained. Here, if a plurality of straight edges are included in the image of the neighboring area A1, for example, the one with the strongest edge is adopted.

【0050】さらに詳しく、直線エッジ検出部51の動
作原理、詳細な構成について図9〜図11を用いて以下
に説明する。
More specifically, the operation principle and the detailed configuration of the straight edge detection unit 51 will be described below with reference to FIGS.

【0051】図9には代表点(アンカーポイント)p0
が画像のエッジからわずかに外れている様子を示す。こ
のようにエッジ上からはずれて代表点が置かれることは
多いため、操作性を向上するためには直線エッジ検出部
51にこのような場合でもエッジの位置と方向を見積も
らせる必要がある。
FIG. 9 shows a representative point (anchor point) p0.
Shows a slight deviation from the edge of the image. Since the representative point is often placed off the edge as described above, in order to improve the operability, it is necessary to make the linear edge detection unit 51 estimate the position and direction of the edge even in such a case.

【0052】さらに、図9においては、代表点p0の近
傍のエッジは唯一に定まらず、E1、E2と複数のエッ
ジ候補が存在しうる。このため、直線エッジ検出部51
の出力は本来は一つではなく、優先順位によって順序付
けられた、直線のリストとするのが自然である。
Further, in FIG. 9, the edge near the representative point p0 is not uniquely determined, and a plurality of edge candidates such as E1 and E2 may exist. For this reason, the straight edge detection unit 51
Is not originally one, but is naturally a list of straight lines ordered by priority.

【0053】次に、代表点の近傍という局所領域におい
ては、エッジは直線的なものが多くなることに着目し、
Hough変換を用いてエッジの位置・方向を見積もる
推定方法について図10を用いて説明する。
Next, in a local area near the representative point, attention is paid to the fact that edges are often linear.
An estimation method for estimating the position and direction of an edge using the Hough transform will be described with reference to FIG.

【0054】図10(A)に示すように、代表点(アン
カーポイント)の近傍に直線的なエッジが存在する場
合、エッジ上のピクセルにおけるグラディエント方向
は、エッジに垂直となる。このグラディエント方向の角
度をθ、エッジとアンカーポイントとの符号付き距離を
ρとすると、同じエッジ上に存在するピクセルはすべて
互いに近い、θ,ρを持つため、θ,ρ空間上でプロッ
トすると、図10(B)のように局所領域に集中する。
As shown in FIG. 10A, when a linear edge exists near the representative point (anchor point), the gradient direction of the pixel on the edge is perpendicular to the edge. Assuming that the angle in the gradient direction is θ and the signed distance between the edge and the anchor point is ρ, all the pixels existing on the same edge have θ and ρ which are close to each other. It concentrates on a local area as shown in FIG.

【0055】これを利用して、θ,ρ空間における2次
元ヒストグラムを作成し、その度数を用いて直線部分を
検出する。
By utilizing this, a two-dimensional histogram in the θ, ρ space is created, and a linear part is detected using the frequency.

【0056】図11には直線エッジ検出部51の詳細な
構成を示す。先ず、近傍領域切り出し部81では、アン
カーポイントの近傍の局所領域を切り出した部分画像を
生成する。
FIG. 11 shows the detailed configuration of the straight edge detecting section 51. First, the nearby area cutout unit 81 generates a partial image obtained by cutting out a local area near an anchor point.

【0057】モノクロ画像生成部82では、ある適当な
色射影軸、例えば輝度軸に射影したモノクロ画像を生成
する。ここでは粗い見積もりとして利用するため、最適
な軸である必要はない。
The monochrome image generator 82 generates a monochrome image projected on a certain appropriate color projection axis, for example, a luminance axis. Here, since it is used as a rough estimate, it does not need to be the optimal axis.

【0058】グラディエント画像生成部83では、モノ
クロ画像にソベル(Sobel)フィルタなどを適用し、グ
ラディエント画像を生成する。
The gradient image generation unit 83 generates a gradient image by applying a Sobel filter or the like to the monochrome image.

【0059】ρ・θの2次元ヒストグラム生成部84で
は、グラディエント画像の全ピクセルについてρ・θを
計算し、ヒストグラムを生成する。アンカーポントを原
点とし、あるピクセルP(x,y)におけるグラディエ
ントベクトルを(gx,gy)とすると、ρ,θは ρ=−(gx・x+gy・y)/sqrt(gx^2+
gy^2) θ=arctan(gy/gx) と求められる。ただし、gx>0とし、sqrtは平方
根を表す。
The ρ · θ two-dimensional histogram generator 84 calculates ρ · θ for all the pixels of the gradient image to generate a histogram. Assuming that the anchor point is the origin and the gradient vector at a certain pixel P (x, y) is (gx, gy), ρ, θ is ρ = − (gx · x + gy · y) / sqrt (gx ^ 2 +
gy ^ 2) θ = arctan (gy / gx). Here, gx> 0, and sqrt represents a square root.

【0060】優先順位生成部85では、ヒストグラムの
度数やρの値、隣接アンカーポイントへの方向などを用
いて優先順位付けを行う。
The priority generation unit 85 assigns a priority using the frequency of the histogram, the value of ρ, the direction to the adjacent anchor point, and the like.

【0061】直線方程式係数計算部86では、θ・ρの
値を基に直線方程式の係数を求める。直線方程式をax
+bx+c=0とすると、 a=cosθ b=sinθ c=−ρ となる。
The linear equation coefficient calculating section 86 calculates the coefficient of the linear equation based on the value of θ · ρ. Ax is a straight line equation
If + bx + c = 0, then a = cos θ b = sin θ c = −ρ.

【0062】このようにして直線エッジ検出部51は、
直線の方程式を求めることができ、求めた直線の方程式
をエッジ周囲色情報取得部52に送る。なお、図9にお
いて説明したように、代表点p0の近傍のエッジが唯一
に定まらず、複数のエッジ候補が存在しうるときには、
直線エッジ検出部51の出力は一つではなく、優先順位
によって順序付けられた、直線のリストを出力するのが
自然である。
As described above, the straight edge detecting section 51
A straight line equation can be obtained, and the obtained straight line equation is sent to the edge surrounding color information acquisition unit 52. As described with reference to FIG. 9, when the edge near the representative point p0 is not uniquely determined and a plurality of edge candidates may exist,
The output of the straight line edge detection unit 51 is not one, but it is natural to output a list of straight lines ordered according to the priority.

【0063】次に、図8のエッジ周囲色情報取得部52
では、エッジ検出部51で検出された直線方程式(エッ
ジ)の周囲をサンプリングし、エッジの片側と反対側に
分類された色分布のヒストグラムを生成する。具体的に
は、直線からのある固定距離の位置において、直径、数
ピクセルの領域内の色を取得する方法がある。この方法
によるエッジ周囲色情報取得部52の動作について図1
2を用いて説明する。
Next, the edge surrounding color information acquiring section 52 shown in FIG.
Then, the periphery of the linear equation (edge) detected by the edge detection unit 51 is sampled, and a histogram of the color distribution classified into one side and the other side of the edge is generated. Specifically, there is a method of acquiring a color within a region of a diameter and several pixels at a position at a certain fixed distance from a straight line. FIG. 1 shows the operation of the edge surrounding color information acquisition unit 52 by this method.
2 will be described.

【0064】図12に示すように、画像のエッジ上にエ
ッジを近似する直線Lが置かれているとする。このと
き、L上の点Pを通り、直線に垂直方向に距離hだけ離
れた位置に、中心Q0,中心Q1を持つ半径rの円を置
き、この領域内の色をサンプリングする。これにより、
点Pの近傍において、エッジ周囲の色情報を取得するこ
とができる。
As shown in FIG. 12, it is assumed that a straight line L approximating the edge is placed on the edge of the image. At this time, a circle having a radius r having a center Q0 and a center Q1 is placed at a position passing through a point P on L and perpendicularly to the straight line by a distance h, and samples colors in this area. This allows
In the vicinity of the point P, color information around the edge can be obtained.

【0065】図8に戻り、色射影軸計算部53では、エ
ッジ周囲色情報取得部52の色分布ヒストグラムから、
エッジのコントラストを最大にする色射影軸を求める。
例えば色空間におけるエッジ片側・反対側のそれぞれの
分布の重心を結ぶベクトルを軸として採用する方法であ
る。
Referring back to FIG. 8, the color projection axis calculation unit 53 calculates the color distribution histogram of the edge surrounding color information acquisition unit 52 from the color distribution histogram.
Find a color projection axis that maximizes edge contrast.
For example, there is a method in which a vector connecting the centers of gravity of distributions on one side and the other side of an edge in a color space is used as an axis.

【0066】この色射影軸計算部53での色射影軸の計
算動作について図13を用いて以下に説明する。
The operation of calculating the color projection axis in the color projection axis calculation section 53 will be described below with reference to FIG.

【0067】エッジ周囲の色分布は、一般に図13
(A),図13(B)のように輝度軸方向に伸びたバナ
ナ形状をすることが知られている。
In general, the color distribution around the edge is shown in FIG.
It is known to form a banana extending in the direction of the luminance axis as shown in FIG.

【0068】このとき、図13(A)のように、輝度軸
方向の軸Axis1を色射影軸とすると、前景領域の色
分布CfはWf1の範囲に射影される。一方、背景領域
の色分布CbはWb1の範囲に射影される。これでは、
Cf,Cbそれぞれの領域内の色変化が大きく、Cf,
Cb間の色変化は小さくなる。画像のエッジ領域の色変
化はCf・Cb間の色変化になるため、Axis1は求
める色射影軸ではない。
At this time, assuming that the axis Axis1 in the luminance axis direction is the color projection axis as shown in FIG. 13A, the color distribution Cf of the foreground area is projected in the range of Wf1. On the other hand, the color distribution Cb of the background area is projected in the range of Wb1. In this,
The color change in each area of Cf and Cb is large,
The color change between Cb is small. Since the color change in the edge region of the image is a color change between Cf and Cb, Axis1 is not the color projection axis to be obtained.

【0069】図13(B)のように、輝度軸方向にほぼ
垂直な軸Axis2を色射影軸とした場合、CfはWf
2、CbはWb2に射影されるため、Cf,Cbそれぞ
れの領域内の色変化が小さく、Cf・Cb間の色変化は
大きくなるため、求める色射影軸に近いものとなる。
As shown in FIG. 13B, when the axis Axis2 substantially perpendicular to the luminance axis direction is set as the color projection axis, Cf becomes Wf
2. Since Cb is projected onto Wb2, the color change in each area of Cf and Cb is small, and the color change between Cf and Cb is large, so that it is close to the desired color projection axis.

【0070】以下に、これを定式化する。色射影軸ベク
トルをa、色分布Cf・Cbのそれぞれにおける級内平
方和行列の和をQw、色分布Cf・Cb間の級間平方和
行列をQbとすると、Cf,Cbの級内分散はaTQw
a、Cf・Cb間の級間分散はaTQbaとなる。ただ
しaTはaの転置をあらわす。
Hereinafter, this is formulated. Assuming that the color projection axis vector is a, the sum of the class sum of squares matrices in each of the color distributions Cf and Cb is Qw, and the class sum of squares matrix between the color distributions Cf and Cb is Qb, the class dispersion of Cf and Cb is aTQw
The interclass dispersion between a, Cf and Cb is aTQba. Here, aT represents transposition of a.

【0071】色射影軸計算部53で求めるのは、級内分
散に対する級間分散の比をできるだけ大きくする軸aで
ある。
The color projection axis calculation unit 53 obtains the axis a for increasing the ratio of the interclass dispersion to the intraclass dispersion as much as possible.

【0072】Cfの平均をF*、Cbの平均をB*、Qw
の逆行列をIwとすると上記aは、 a=Iw(F*−B*) で表される。これを色射影軸として用いる。
The average of Cf is F * , the average of Cb is B * , Qw
The above a is represented by a = Iw (F * -B * ), where Iw is an inverse matrix of Iw. This is used as a color projection axis.

【0073】以上が図3中の最適色射影軸計算部32の
具体例の詳細な説明である。なお、最適色射影軸計算部
32は、他の方法により最適色射影軸を求めてもよい。
図14には他の方法により上記最適色射影軸を求めるた
めの原理動作を示す。
The above is a detailed description of a specific example of the optimum color projection axis calculation unit 32 in FIG. Note that the optimum color projection axis calculation unit 32 may obtain the optimum color projection axis by another method.
FIG. 14 shows the principle operation for obtaining the optimum color projection axis by another method.

【0074】図14(A)のように、画像のエッジ上に
アンカーポイントp0と隣接アンカーポイントp1が置
かれているとする。このとき、エッジはp0とp1を結
ぶ線分上から大きく外れている可能性があるため、線分
p0p1上の線分長Lに対し等間隔、例えばL/4の間
隔毎に、置かれた点q0,q1,q2のそれぞれについ
て、p0p1と垂直な方向の線分上、長さHの範囲で最
も色変化の大きな領域の探索を行う。
Assume that an anchor point p0 and an adjacent anchor point p1 are located on the edge of the image as shown in FIG. At this time, since the edge may be largely off the line segment connecting p0 and p1, the edge is placed at equal intervals, for example, at intervals of L / 4 with respect to the line segment length L on the line segment p0p1. For each of the points q0, q1, and q2, a search is made for an area having the largest color change in the range of the length H on a line segment perpendicular to p0p1.

【0075】ある点rについての色をC(r)とする
と、色変化ベクトルはdC/dr、その大きさは|dC
/dr|で定義される。この値が最大値となるrを求め
る。
Assuming that the color at a certain point r is C (r), the color change vector is dC / dr and the magnitude is | dC
/ Dr |. The value r at which this value becomes the maximum value is obtained.

【0076】探索の結果、図14(B)のようにr0,
r1,r2が求められたとする。このとき、r0,r
1,r2においてそれぞれ色変化ベクトルdC/drを
求め、その平均値を最適色射影軸とする。
As a result of the search, as shown in FIG.
It is assumed that r1 and r2 have been obtained. At this time, r0, r
The color change vector dC / dr is determined for each of the color difference vectors 1 and r2, and the average value is set as the optimal color projection axis.

【0077】また、色変化ベクトルは以下のように求め
てもよい。r0の場合、線分p0p1に垂直な直線上
で、r0を中心に持ち、互いに距離幅hだけ離れた点s
00,s01について、色C(s00),C(s01)
を求め、その差分ベクトルΔC=C(s01)−C(s
00)を色変化ベクトルで代用する。r1,r2につい
ても同様である。
The color change vector may be obtained as follows. In the case of r0, on a straight line perpendicular to the line segment p0p1, a point s having r0 as a center and separated from each other by a distance width h.
For 00 and s01, colors C (s00) and C (s01)
And the difference vector ΔC = C (s01) −C (s
00) is substituted for the color change vector. The same applies to r1 and r2.

【0078】次に、図3中の輪郭曲線生成部33の詳細
について図15を参照しながら説明する。この輪郭曲線
生成部33は、ハイコントラストモノクロ画像生成部6
1と、グラディエントベクトル場生成部62と、最小コ
スト経路探索部63と、スプライン曲線生成部64から
なる。
Next, details of the contour curve generator 33 in FIG. 3 will be described with reference to FIG. The contour curve generation unit 33 includes a high contrast monochrome image generation unit 6
1, a gradient vector field generation unit 62, a minimum cost path search unit 63, and a spline curve generation unit 64.

【0079】ハイコントラストモノクロ画像生成部61
では、画像の各ピクセルにおける色、入力された色射影
軸に射影した、モノクロ画像を生成する。
High-contrast monochrome image generator 61
Then, a monochrome image is generated by projecting the color at each pixel of the image and the input color projection axis.

【0080】グラディエントベクトル場生成部62で
は、モノクロ画像にグラディエント検出オペレータを適
用し、XY2次元のグラディエントベクトル場を生成す
る。
The gradient vector field generator 62 generates an XY two-dimensional gradient vector field by applying a gradient detection operator to a monochrome image.

【0081】最小コスト経路探索部63では、グラディ
エントベクトル場においてエッジの強い部分をコストの
低い箇所とし、累積コストが最小になるような経路を表
す離散的なピクセル列を求める。
The minimum cost path search unit 63 determines a part having a strong edge in the gradient vector field as a low cost part, and obtains a discrete pixel string representing a path that minimizes the accumulated cost.

【0082】スプライン曲線生成部64では、ピクセル
列から滑らかなスプライン曲線を生成する。
The spline curve generator 64 generates a smooth spline curve from the pixel sequence.

【0083】ここまでが、新しい技術を用いて輪郭閉曲
線を生成する図1中の輪郭閉曲線生成部21の詳細であ
る。以上に説明した、輪郭閉曲線生成部21を用いたキ
ー生成装置(構成的には図1に示すキー生成装置と同様
である)は、輪郭閉曲線生成部21で生成された図4に
示すような輪郭閉曲線と、画像から両端閉曲線を生成す
る両端閉曲線生成部22と、この両端閉曲線生成部22
で生成された両端閉曲線からキー画像を生成するソフト
キー生成部23を内蔵している。
The above is the details of the closed contour generation unit 21 in FIG. 1 for generating the closed contour using a new technique. The key generation device using the closed contour generating unit 21 described above (the configuration is the same as the key generating device shown in FIG. 1) is as shown in FIG. 4 generated by the closed contour generating unit 21. A contour closed curve, a both-end closed curve generation unit 22 for generating a both-end closed curve from an image, and the both-end closed curve generation unit 22
And a soft key generation unit 23 for generating a key image from the closed-end curve generated in step (1).

【0084】輪郭閉曲線生成部22では、上記輪郭閉曲
線から両端閉曲線を生成する。具体的には、本件出願人
が特開平10−164436号公報で開示した「輪郭抽
出方法」を用いて両端閉曲線を生成する。
The closed contour generating section 22 generates a closed-end curve from the closed contour. Specifically, the present applicant generates a closed-ended curve using the “contour extraction method” disclosed in Japanese Patent Application Laid-Open No. 10-164436.

【0085】この「輪郭抽出方法」は、対象物の輪郭に
ついての輪郭領域を決定し、輪郭領域におけるグラディ
エントベクトルを算出し、輪郭領域におけるグラディエ
ントベクトルに基づき、輪郭領域のエッジに沿ってエッ
ジの内側及び外側における境界位置をそれぞれ複数抽出
し、当該各境界位置を表す境界座標情報をエッジの内側
及び外側毎に生成し、各境界座標情報によって表される
各形状を近似する2本の境界曲線を対象物の両端輪郭閉
曲線として生成する。
This “contour extraction method” determines a contour area for the contour of the object, calculates a gradient vector in the contour area, and, based on the gradient vector in the contour area, moves along the edge of the edge along the edge of the contour area. And a plurality of boundary positions on the outside are extracted, and boundary coordinate information representing the respective boundary positions is generated for each of the inside and outside of the edge, and two boundary curves approximating each shape represented by each boundary coordinate information are obtained. It is generated as a closed curve at both ends of the object.

【0086】さらに、輪郭閉曲線生成部22は、本件出
願人による特願平10−268687の明細書、図面に
より開示されている、曲線変形技術により幅・オフセッ
ト値を反映した形状に変形された両端閉曲線を生成して
もよい。
Further, the contour closed curve generation unit 22 is formed by the two ends of the shape which reflect the width / offset value by the curve deformation technique disclosed in the specification and drawings of Japanese Patent Application No. 10-268687 filed by the present applicant. A closed curve may be generated.

【0087】この曲線変形技術は、画像に含まれる対象
物の輪郭における内側及び外側の境界位置を表す2本の
曲線を点列に変換して、各曲線についての点列を生成
し、上記各曲線についての点列を連係させて各点の座標
を変更し、上記座標が変更された各点の座標から2本の
曲線、すなわち両端輪郭閉曲線を再構成する。
This curve transformation technique converts two curves representing the inner and outer boundary positions in the outline of an object included in an image into a series of points, generates a series of points for each curve, and The coordinates of each point are changed by linking a series of points on the curve, and two curves, that is, closed contours at both ends are reconstructed from the coordinates of each point whose coordinates have been changed.

【0088】ソフトキー生成部23では、両端閉曲線生
成部22で生成された、両端曲線を基にキー信号のα軸
を加えた3次元曲面を生成し、両端曲線で挟まれる領域
をα値がなめらかに変化するソフトキー画像を生成す
る。
The soft key generation unit 23 generates a three-dimensional surface to which the α axis of the key signal is added based on the both-end curve generated by the both-end closed-curve generation unit 22, and that the region between the both-end curves has an α value of Generate a soft key image that changes smoothly.

【0089】しかし、以上に説明した、一本の輪郭閉曲
線を生成する輪郭閉曲線生成部21を用いている、キー
生成装置においては上記図22を用いて説明したよう
に、データ処理の各段階において、一種類の入力に対す
る出力はただ一通りとなっているため、両端のエッジ代
表点が定まると、その区間内の輪郭曲線は一意に定まっ
てしまう。その一意な結果が、ユーザの主観に合わない
場合、エッジ代表点の位置変更、追加、削除などにより
対応するしかなかった。
However, in the key generation device using the contour closed curve generating section 21 for generating one closed contour curve described above, as described with reference to FIG. Since there is only one type of output for one type of input, once the edge representative points at both ends are determined, the contour curve in that section is uniquely determined. If the unique result does not match the user's subjectivity, the only option is to change the position, add, or delete the edge representative point.

【0090】例えば、上記図8に示した代表点近傍色射
影軸計算部41を例にとると、直線エッジ検出部51で
得られる直線は、最もエッジが強いものが一つのみであ
るが、本来は図9、図11で説明したように何らかの評
価値により複数得られるものである。
For example, taking the color projection axis calculation unit 41 near the representative point shown in FIG. 8 as an example, the straight line obtained by the straight line edge detection unit 51 has only one strongest edge. Originally, as described in FIGS. 9 and 11, a plurality of evaluation values are obtained.

【0091】そこで、上記図1中の輪郭閉曲線生成部2
1を上記図2で説明した原理に基づいて、上記図3の構
成から図16に示す構成の輪郭閉曲線生成部21’に変
更し、ユーザに複数の候補を提示してユーザの選択を補
助的な入力として使用させる。
Therefore, the contour closed curve generation unit 2 shown in FIG.
1 is changed from the configuration of FIG. 3 to the contour closed curve generation unit 21 ′ of the configuration shown in FIG. 16 based on the principle described in FIG. 2, and a plurality of candidates are presented to the user to assist the selection of the user. To be used as an important input.

【0092】この輪郭閉曲線生成部201’は、上記図
16に示すように、上記図3に示したのと同じ構成の更
新区間抽出部31と輪郭曲線生成部33と更新区間合成
部34の他、破線で囲む候補選択機能追加変更部分を備
えている。
As shown in FIG. 16, the contour closed curve generation unit 201 'includes an update section extraction unit 31, a contour curve generation unit 33, and an update section synthesis unit 34 having the same configuration as that shown in FIG. , A candidate selection function addition / change portion surrounded by a broken line.

【0093】この候補選択機能追加変更部分は、複数の
色射影軸を計算する色射影軸候補計算部32’と、上記
複数の色射影軸候補リストに応じた輪郭曲線候補リスト
を生成する輪郭曲線生成部33と、この輪郭曲線生成部
33で生成された輪郭曲線候補リストを図2に示したよ
うな表示装置12に表示し、ユーザに選択させる、候補
リスト選択部71とを備える。候補リスト選択部71は
ユーザにより選択された色射影軸を輪郭曲線生成部33
に送る。
The candidate selection function addition and change part includes a color projection axis candidate calculation unit 32 'for calculating a plurality of color projection axes, and a contour curve for generating a contour curve candidate list corresponding to the plurality of color projection axis lists. It includes a generation unit 33 and a candidate list selection unit 71 for displaying the contour curve candidate list generated by the contour curve generation unit 33 on the display device 12 as shown in FIG. The candidate list selection unit 71 converts the color projection axis selected by the user into the contour curve generation unit 33.
Send to

【0094】色射影軸候補計算部32’の詳細な構成を
図17に示す。色射影軸候補計算部32’は、代表点1
及び代表点2の近傍最適色射影軸の候補を複数計算す
る、代表点近傍最適射影軸候補計算部41’及び代表点
近傍最適射影軸候補計算部41’と、上記二つの計算部
41’,41’からの色射影軸候補のリスト1及び色射
影軸候補のリスト2を用いて色射影軸合成候補を生成す
る色射影軸合成候補生成部42’からなる。上記二つの
計算部41’,41’からの色射影軸候補のリスト1に
n本の候補があり、色射影軸候補のリスト2にm本の候
補があると、色射影軸合成候補生成部42’はn×m本
の候補のリストを生成する。
FIG. 17 shows a detailed configuration of the color projection axis candidate calculation unit 32 '. The color projection axis candidate calculation unit 32 ′ calculates the representative point 1
A representative point neighboring optimum projection axis candidate calculating unit 41 ′ and a representative point neighboring optimum projecting axis candidate calculating unit 41 ′ for calculating a plurality of candidates for the nearest optimum color projection axis of the representative point 2; It comprises a color projection axis synthesis candidate generation unit 42 'for generating a color projection axis synthesis candidate using the color projection axis candidate list 1 and the color projection axis candidate list 2 from 41'. If there are n candidates in the list 1 of color projection axis candidates from the two calculation units 41 ′ and 41 ′ and there are m candidates in the list 2 of color projection axis candidates, the color projection axis synthesis candidate generation unit 42 ′ generates a list of n × m candidates.

【0095】代表点近傍最適射影軸候補計算部41’
は、複数の色射影軸候補を直線方程式によりリストにし
て出力する。
Optimum projection axis candidate calculation unit 41 ′ near a representative point
Outputs a list of a plurality of color projection axis candidates by a linear equation.

【0096】図18には上記代表点近傍最適射影軸候補
計算部41’の詳細な構成を示す。代表点近傍最適射影
軸候補計算部41’は、直線エッジ候補検出部51’
と、エッジ周囲の色情報取得部52、色射影軸計算部5
3とからなる。
FIG. 18 shows a detailed configuration of the above-mentioned optimal projection axis candidate calculating unit 41 'near the representative point. The representative point neighborhood optimal projection axis candidate calculation unit 41 ′ includes a straight edge candidate detection unit 51 ′.
And the color information acquisition unit 52 around the edge and the color projection axis calculation unit 5
3

【0097】例えば、代表点1の近傍の色射影軸候補を
計算により求める代表点近傍色射影軸候補計算部41’
内部の、直線エッジ候補検出部51’は、画像と代表点
1と隣接点(隣の代表点2)を基に、図6に示した代表
点1(p0)の近傍領域A0内に含まれる直線的なエッ
ジ成分を複数検出し、その直線の方程式を求め、複数の
直線方程式の候補リストを生成する。
For example, a candidate color projection axis candidate calculating unit 41 'for calculating a candidate color projection axis near the representative point 1 is shown.
The internal straight edge candidate detection unit 51 ′ is included in the vicinity area A0 of the representative point 1 (p0) illustrated in FIG. 6 based on the image, the representative point 1, and the adjacent point (adjacent representative point 2). A plurality of linear edge components are detected, a straight line equation is obtained, and a list of a plurality of straight line equation candidates is generated.

【0098】また、代表点2の近傍の色射影軸候補を計
算により求める代表点近傍色射影軸候補計算部41’内
部の、直線エッジ候補検出部51’は、画像と代表点2
と隣接点(隣の代表点1)を基に、図6に示した代表点
2(p1)の近傍領域A1内に含まれる直線的なエッジ
成分を複数検出し、その直線の方程式を求め、複数の直
線方程式の候補リストを生成する。
Further, a candidate for a color projection axis in the vicinity of the representative point 2, which is obtained by calculation, calculates a candidate for a color projection axis in the vicinity of the representative point adjacent color projection axis.
And a plurality of linear edge components included in the neighboring area A1 of the representative point 2 (p1) shown in FIG. 6 based on and the adjacent point (neighboring representative point 1), an equation of the straight line is obtained, Generate a list of candidate linear equations.

【0099】エッジ周囲の色情報取得部52や、色射影
軸計算部53も複数候補のリストを出力する。
The color information acquisition section 52 around the edge and the color projection axis calculation section 53 also output a list of a plurality of candidates.

【0100】このため、上記図16に示した、輪郭閉曲
線生成部21’内の色射影軸候補計算部32’は、色射
影軸候補リストを、輪郭曲線生成部33及び候補リスト
選択部70に送ることができる。
For this reason, the color projection axis candidate calculation section 32 ′ in the contour closed curve generation section 21 ′ shown in FIG. 16 transmits the color projection axis candidate list to the contour curve generation section 33 and the candidate list selection section 70. Can be sent.

【0101】輪郭曲線生成部33は、上記図15に示し
た構成と同様であるが、上記色射影軸候補リストに対応
して複数の輪郭曲線候補リストを生成し、表示装置に表
示する。すなわち、輪郭曲線生成部33は、複数の色射
影軸候補をユーザが主観評価可能なデータに変換し、上
記図2に示した表示装置12に、例えば、複数の輪郭曲
線を切り換え可能に表示する。或いは、複数の輪郭曲線
を重ねて表示してもよいし、複数ウィンドウを使って一
度に表示してもよい。
The contour curve generator 33 has the same configuration as that shown in FIG. 15, but generates a plurality of contour curve candidate lists corresponding to the color projection axis candidate lists and displays them on a display device. That is, the contour curve generation unit 33 converts the plurality of color projection axis candidates into data that can be subjectively evaluated by the user, and displays the plurality of contour curves on the display device 12 shown in FIG. . Alternatively, a plurality of contour curves may be displayed in an overlapping manner, or may be displayed at once using a plurality of windows.

【0102】ユーザは表示装置12に表示された複数の
輪郭曲線から希望に沿った輪郭曲線を選択することがで
きる。ユーザの選択結果は候補リスト選択部71に入力
される。候補リスト選択部71は、ユーザが選択した表
示装置12上の輪郭曲線を形成する色射影軸を候補リス
トから選択し、元々、輪郭閉曲線生成部21’を形成し
ている輪郭曲線生成部33に供給する。
The user can select a desired contour curve from the plurality of contour curves displayed on the display device 12. The user's selection result is input to the candidate list selection unit 71. The candidate list selection unit 71 selects a color projection axis that forms a contour curve on the display device 12 selected by the user from the candidate list, and sends the color projection axis to the contour curve generation unit 33 that originally forms the contour closed curve generation unit 21 ′. Supply.

【0103】輪郭曲線生成部33は候補リスト選択部7
1で選択された色射影軸を元に、輪郭曲線を計算し、更
新区間合成部34に供給する。
The contour curve generating section 33 includes the candidate list selecting section 7
The contour curve is calculated based on the color projection axis selected in step 1 and supplied to the update section synthesis unit 34.

【0104】更新区間合成部34は、上述したように、
更新された区間の輪郭曲線を閉曲線に合成し、新たな輪
郭閉曲線として生成する。ユーザによる代表点の移動・
追加・削除などにより、更新が発生する間は、輪郭閉曲
線も更新され続ける。
As described above, the update section synthesizing unit 34
The contour curve of the updated section is combined with a closed curve to generate a new contour closed curve. Moving representative points by user
While the update occurs due to addition or deletion, the contour closed curve is also updated.

【0105】以上、輪郭閉曲線生成部21’について説
明した。この輪郭閉曲線生成部21’は、上記図1に示
すキー生成装置を構成している、輪郭閉曲線生成部21
の代わりに用いられる。
The outline closed curve generator 21 'has been described above. The contour closed curve generation unit 21 'constitutes the key generation device shown in FIG.
Used instead of

【0106】この場合のキー生成装置の動作について図
19を用いて説明する。
The operation of the key generation device in this case will be described with reference to FIG.

【0107】エッジ上代表点p1,p2がユーザにより
指定された後、経路c1,c2が候補の輪郭として図1
9(A)に示すように表示装置12に提示される。図1
9(B)は、そのうちユーザがc1を選択するため、マ
ウスカーソルをc1の近辺に移動させた状態である。そ
して、ユーザによりクリック操作が行われると、図19
(C)に示すように、c1が確定する。
After the representative points p1 and p2 on the edge are designated by the user, the paths c1 and c2 are used as candidate contours in FIG.
The information is presented on the display device 12 as shown in FIG. FIG.
9 (B) shows a state in which the mouse cursor has been moved to the vicinity of c1 because the user selects c1. When the user performs a click operation, FIG.
As shown in (C), c1 is determined.

【0108】既存の方法では、期待する輪郭曲線が得ら
れなかった場合は、エッジ代表点の位置変更・追加・削
除しか方法がなかった。これに対して、図19を用いて
動作を説明した上記キー生成装置では、期待する輪郭曲
線を得るための操作は希望の輪郭上で1回クリックす
る、という1ステップの操作で済んでいるため、望みの
輪郭曲線を得るまでの操作を軽減できていることが分か
る。
In the existing method, when the expected contour curve cannot be obtained, there is no other method than to change, add or delete the position of the edge representative point. On the other hand, in the above-described key generation device whose operation has been described with reference to FIG. 19, the operation for obtaining the expected contour curve is a one-step operation of clicking once on the desired contour. It can be seen that the operation for obtaining the desired contour curve can be reduced.

【0109】また、上記キー生成装置では、本発明の輪
郭抽出装置をハードウェア的に輪郭閉曲線生成部21’
に用いて説明したが、本発明の輪郭抽出方法をソフトウ
ェアプログラムで実現し、例えば、図20に示すような
コンピュータシステムで処理してもよい。
Further, in the above-described key generation device, the contour extraction device of the present invention is implemented by hardware in the form of a contour closed curve generation unit 21 '.
However, the contour extraction method of the present invention may be realized by a software program and processed by, for example, a computer system as shown in FIG.

【0110】このコンピュータシステムは、演算処理装
置1、プログラムメモリ2、データメモリ3、フレーム
メモリ4、画像表示装置5、入力装置6、外部記憶装置
7をバス8に接続してなる。
This computer system comprises an arithmetic processing unit 1, a program memory 2, a data memory 3, a frame memory 4, an image display device 5, an input device 6, and an external storage device 7 connected to a bus 8.

【0111】プログラムメモリ2は、上記輪郭抽出方法
をソフトウェアプログラムとして記録している。演算処
理装置1は、プログラムメモリ2から上記ソフトウェア
プログラムを逐次取り出して実行する。データメモリ3
は、演算処理装置1で処理途中のデータを格納する。
The program memory 2 stores the above-described contour extraction method as a software program. The arithmetic processing unit 1 sequentially retrieves the software program from the program memory 2 and executes it. Data memory 3
Stores data that is being processed by the arithmetic processing unit 1.

【0112】フレームメモリ4は、演算処理装置1が上
記ソフトウェアプログラムを実行し、データメモリ3を
使って求めた画像データを画像表示のためにに格納す
る。フレームメモリ4に格納された画像データは画像表
示装置5に表示されて、ユーザが見ることが出来る。画
像表示装置5は、マルチウィンドウ表示が可能で、複数
の画像を同時に表示することができる。
The frame memory 4 stores the image data obtained by the arithmetic processing unit 1 executing the software program and using the data memory 3 for image display. The image data stored in the frame memory 4 is displayed on the image display device 5 and can be viewed by the user. The image display device 5 can perform multi-window display, and can simultaneously display a plurality of images.

【0113】入力装置6は例えばマウスやキーボードを
用いられ、ユーザによりデータが入力される。外部記憶
装置7には画像データ等が格納されている。バス8は上
記各部を接続し、プログラムコードやデータを相互に移
動させる。
As the input device 6, a mouse or a keyboard is used, for example, and data is input by the user. The external storage device 7 stores image data and the like. The bus 8 connects the above-described units, and moves program codes and data to and from each other.

【0114】画像データはデータメモリ3に格納されて
おり、入力装置6を通してユーザから輪郭曲線を求める
区間を示す2点の座標が入力されると、演算処理装置1
において輪郭曲線の候補リストが求められ、画像化され
た後、フレームメモリ4を通して画像表示装置5に出力
される。
The image data is stored in the data memory 3. When the user inputs the coordinates of two points indicating the section for which the contour curve is to be obtained through the input device 6, the arithmetic processing device 1
In step (1), a candidate list of contour curves is obtained, imaged, and output to the image display device 5 through the frame memory 4.

【0115】画像表示装置5に表示された候補を基に、
ユーザが自分の期待に沿う輪郭曲線を入力装置6を通し
て入力すると、最もユーザの期待に沿う輪郭曲線がデー
タメモリ3に格納される。データメモリ3に格納された
画像データ・輪郭曲線はユーザの指示に応じて画像化さ
れ、フレームメモリ4を通して画像表示装置5に出力さ
れる。上記図16に示した輪郭閉曲線生成部21’内の
色射影軸候補計算部32’では、同じアルゴリズムを使
いながら、パラメータを変えた複数の候補を計算する具
体例を示した。例えばアルゴリズムとして、図5〜図1
3を用いて示した代表点近傍領域内の色射影軸を求める
方法や、図14に示した代表点を結ぶ直線を等分する方
法をそれぞれ単独に使い、パラメータを変えるものであ
る。
On the basis of the candidates displayed on the image display device 5,
When the user inputs a contour curve that meets his / her expectation through the input device 6, the contour curve that best meets the user's expectation is stored in the data memory 3. The image data and the contour curve stored in the data memory 3 are formed into an image according to a user's instruction, and output to the image display device 5 through the frame memory 4. In the color projection axis candidate calculation unit 32 'in the contour closed curve generation unit 21' shown in FIG. 16, a specific example of calculating a plurality of candidates with different parameters while using the same algorithm has been described. For example, as an algorithm, FIGS.
In this method, the parameters are changed by independently using the method of finding the color projection axis in the region near the representative point shown by using No. 3 and the method of equally dividing the straight line connecting the representative points shown in FIG.

【0116】色射影軸候補計算部32’は、上記二つの
アルゴリズムを含め、複数のアルゴリズムで複数の色射
影軸候補を計算し、これをユーザに提示するようにして
もよい。
The color projection axis candidate calculation section 32 'may calculate a plurality of color projection axis candidates by a plurality of algorithms including the above two algorithms, and present them to the user.

【0117】また、エッジ検出時の場合に限らず、複数
候補を出力することができ、それを主観評価可能なデー
タに変換することのできる全てのデータ処理に適用する
ことができる。
Further, the present invention is not limited to the case of edge detection, and can be applied to all data processing that can output a plurality of candidates and convert them into data that can be subjectively evaluated.

【0118】[0118]

【発明の効果】本発明によれば、出力結果にユーザの主
観による評価が要求されるデータ処理に対し、主観評価
可能な複数の候補データをユーザに提示し、選択させる
ことができる輪郭抽出装置及び方法を提供できる。
According to the present invention, a contour extraction device capable of presenting and selecting a plurality of candidate data that can be subjectively evaluated to a user for data processing in which the output result requires subjective evaluation by the user. And methods can be provided.

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

【図1】本発明の実施の形態となるキー生成装置のブロ
ック図である。
FIG. 1 is a block diagram of a key generation device according to an embodiment of the present invention.

【図2】上記キー生成装置に適用される、本発明の輪郭
抽出装置の具体例となる輪郭閉曲線生成部の動作原理を
説明するためのブロック図である。
FIG. 2 is a block diagram for explaining an operation principle of a contour closed curve generation unit as a specific example of the contour extraction device of the present invention applied to the key generation device.

【図3】一つの輪郭閉曲線を生成するときの上記輪郭閉
曲線生成部の構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of the contour closed curve generation unit when one contour closed curve is generated.

【図4】上記図3に示した輪郭閉曲線生成部で生成され
た輪郭閉曲線の具体例を示す図である。
FIG. 4 is a diagram showing a specific example of an outline closed curve generated by the outline closed curve generation unit shown in FIG. 3;

【図5】上記図3に示した輪郭閉曲線生成部を構成す
る、最適色射影軸計算部の詳細な構成を示すブロック図
である。
FIG. 5 is a block diagram showing a detailed configuration of an optimum color projection axis calculation unit that forms the contour closed curve generation unit shown in FIG. 3;

【図6】上記図5に示した最適色射影軸計算部を構成す
る、代表点近傍最適色射影軸計算部の動作原理を説明す
るための図である。
FIG. 6 is a diagram for explaining the operation principle of the optimum color projection axis calculation unit near the representative point, which constitutes the optimum color projection axis calculation unit shown in FIG. 5;

【図7】上記図5に示した最適色射影軸計算部を構成す
る、色射影軸合成部の動作原理を説明するための図であ
る。
FIG. 7 is a diagram for explaining the principle of operation of a color projection axis synthesizing unit constituting the optimum color projection axis calculation unit shown in FIG. 5;

【図8】上記図5に示した最適色射影軸計算部を構成す
る、代表点近傍最適色射影軸計算部の構成を示すブロッ
ク図である。
8 is a block diagram showing a configuration of an optimum color projection axis calculation unit near a representative point, which constitutes the optimum color projection axis calculation unit shown in FIG. 5;

【図9】上記図8に示した代表点近傍最適色射影軸計算
部を構成する、直線エッジ検出部の動作原理を説明する
ための図である。
FIG. 9 is a diagram for explaining the operation principle of the straight-line edge detection unit constituting the optimal color projection axis calculation unit near the representative point shown in FIG. 8;

【図10】上記図8に示した代表点近傍最適色射影軸計
算部を構成する、直線エッジ検出部がエッジの位置、方
向を見積もる推定方法の動作原理を説明するための図で
ある。
FIG. 10 is a diagram for explaining the principle of operation of an estimation method for estimating the position and direction of an edge by a straight-line edge detector, which constitutes the optimum color projection axis calculator near the representative point shown in FIG.

【図11】上記図8に示した代表点近傍最適色射影軸計
算部を構成する、直線エッジ検出部の構成を示すブロッ
ク図である。
FIG. 11 is a block diagram showing a configuration of a straight-line edge detection unit constituting the optimum color projection axis calculation unit near the representative point shown in FIG. 8;

【図12】上記図8に示した代表点近傍最適色射影軸計
算部を構成する、エッジ周囲の色情報取得部の動作原理
を説明するための図である。
FIG. 12 is a diagram for explaining the operation principle of a color information acquisition unit around an edge, which constitutes the optimal color projection axis calculation unit near the representative point shown in FIG. 8;

【図13】上記図8に示した代表点近傍最適色射影軸計
算部を構成する、色射影軸計算部の動作原理を説明する
ための図である。
FIG. 13 is a diagram for explaining the operation principle of the color projection axis calculation unit constituting the optimum color projection axis calculation unit near the representative point shown in FIG. 8;

【図14】上記図3に示した輪郭閉曲線生成部を構成す
る、最適色射影軸計算部の他の動作原理を説明するため
の図である。
FIG. 14 is a diagram for explaining another principle of operation of the optimum color projection axis calculation unit constituting the contour closed curve generation unit shown in FIG. 3;

【図15】上記図3に示した輪郭閉曲線生成部を構成す
る、輪郭曲線生成部の構成を示すブロック図である。
FIG. 15 is a block diagram illustrating a configuration of a contour curve generation unit included in the contour closed curve generation unit illustrated in FIG. 3;

【図16】ユーザに選択させるための複数の輪郭曲線候
補を提示する輪郭閉曲線生成部の構成を示すブロック図
である。
FIG. 16 is a block diagram illustrating a configuration of a contour closed curve generation unit that presents a plurality of contour curve candidates to be selected by a user.

【図17】上記図16に示した輪郭閉曲線生成部を構成
する、最適色射影軸候補計算部のブロック図である。
FIG. 17 is a block diagram of an optimum color projection axis candidate calculation unit that constitutes the closed contour curve generation unit shown in FIG. 16;

【図18】上記図17に示した色射影軸候補計算部を構
成する、代表点近傍最適色射影軸候補計算部のブロック
図である。
18 is a block diagram of a candidate color projection axis candidate calculating unit near a representative point, which constitutes the color projection axis candidate calculating unit shown in FIG. 17;

【図19】上記図16に示した輪郭閉曲線生成部を有し
ているキー生成装置の動作を説明するための図である。
FIG. 19 is a diagram for explaining the operation of the key generation device having the closed contour generation unit shown in FIG. 16;

【図20】本発明の輪郭抽出方法をソフトウェアプログ
ラムとして用いるコンピュータシステムのブロック図で
ある。
FIG. 20 is a block diagram of a computer system that uses the contour extraction method of the present invention as a software program.

【図21】従来の輪郭抽出方法による課題を説明するた
めの図である。
FIG. 21 is a diagram for explaining a problem caused by a conventional contour extraction method.

【図22】従来の輪郭抽出方法による課題を一般化した
図である。
FIG. 22 is a diagram generalizing the problem of the conventional contour extraction method.

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

21’ 輪郭曲線生成部、31 更新区間抽出部、3
2’ 最適色射影軸候補計算部、33 輪郭曲線生成
部、34 更新区間合成部、41’ 代表点近傍最適色
射影軸候補計算部、42’ 色射影軸合成候補生成部、
51’ 直線エッジ候補検出部、52 エッジ周囲の色
情報取得部、53 色射影軸計算部
21 'contour curve generator, 31 update section extractor, 3
2 ′ optimal color projection axis candidate calculation unit, 33 contour curve generation unit, 34 update section synthesis unit, 41 ′ representative point neighborhood optimum color projection axis candidate calculation unit, 42 ′ color projection axis synthesis candidate generation unit,
51 'straight edge candidate detection unit, 52 color information acquisition unit around the edge, 53 color projection axis calculation unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 戸塚 卓志 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5C023 AA40 BA02 CA01 CA08 DA01 5L096 AA02 AA06 DA02 EA35 EA43 FA03 FA06 FA13 FA15 FA33 FA35 FA38 FA60 GA38 JA01 ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Takushi Totsuka 6-35, Kita-Shinagawa, Shinagawa-ku, Tokyo Sony Corporation F-term (reference) 5C023 AA40 BA02 CA01 CA08 DA01 5L096 AA02 AA06 DA02 EA35 EA43 FA03 FA06 FA13 FA15 FA33 FA35 FA38 FA60 GA38 JA01

Claims (24)

【特許請求の範囲】[Claims] 【請求項1】 画像中から対象物の輪郭を抽出する輪郭
抽出装置において、 上記対象物のエッジ上の代表点の座標と初期閉曲線から
更新区間を挟み込む一組の代表点を求める更新区間抽出
手段と、 上記更新区間抽出手段で求められた一組の代表点と上記
画像から更新区間内の色射影軸候補を複数求め、この複
数の色射影軸候補を操作者による主観評価可能なデータ
に変換して操作者に提示し、操作者による補助的な入力
により色射影軸を決定する色射影軸計算手段と、 上記色射影軸計算手段で求められた色射影軸と上記更新
区間抽出手段で求められた一組の代表点を上記画像から
更新区間内の輪郭曲線を生成する輪郭曲線生成手段と、 上記輪郭曲線生成手段で生成された更新区間内の輪郭曲
線を閉曲線に合成し、新たな輪郭閉曲線を生成する輪郭
閉曲線合成手段とを備えることを特徴とする輪郭抽出装
置。
1. A contour extraction device for extracting a contour of an object from an image, wherein an update section extracting means for obtaining a set of representative points sandwiching the update section from coordinates of a representative point on an edge of the object and an initial closed curve. And obtaining a plurality of color projection axis candidates in the update section from the set of representative points obtained by the update section extraction means and the image, and converting the plurality of color projection axis candidates into data that can be subjectively evaluated by the operator. Color projection axis calculation means for determining the color projection axis by the auxiliary input by the operator, and the color projection axis obtained by the color projection axis calculation means and the update section extraction means A contour curve generating means for generating a contour curve in the update section from the set of representative points obtained from the image; Generate a closed curve Contour extraction apparatus characterized by comprising a contour closed curve synthesizing means.
【請求項2】 上記色射影軸計算手段は、パラメータを
変えたアルゴリズム、或いは複数のアルゴリズムを適用
して色射影軸候補を複数求め、この複数の色射影軸候補
を操作者による主観評価可能なデータに変換して操作者
に提示し、操作者による補助的な入力により色射影軸を
決定することを特徴とする請求項1記載の輪郭抽出装
置。
2. The color projection axis calculation means obtains a plurality of color projection axis candidates by applying an algorithm with changed parameters or a plurality of algorithms, and allows the operator to subjectively evaluate the plurality of color projection axis candidates. 2. The contour extracting apparatus according to claim 1, wherein the contour extracting apparatus converts the data into data and presents the data to an operator, and determines a color projection axis by auxiliary input by the operator.
【請求項3】 上記色射影軸計算手段は、 上記更新区間抽出手段で求められた一組の代表点と上記
画像から更新区間内の色射影軸候補を複数求める色射影
軸候補計算手段と、 上記色射影軸計算手段で求められた複数の色射影軸候補
のそれぞれを含む輪郭曲線を生成する輪郭曲線生成手段
と、 上記輪郭曲線生成手段で生成された複数の輪郭曲線を操
作者が見て主観評価により選択した輪郭曲線に含まれる
色射影軸を選択する色射影軸選択手段とを備えてなるこ
とを特徴とする請求項2記載の輪郭抽出装置。
3. The color projection axis calculation means for calculating a plurality of color projection axis candidates in an update section from the set of representative points obtained by the update section extraction means and the image, An operator looks at a plurality of contour curves generated by the color projection axis calculation means and generates a contour curve including each of the plurality of color projection axis candidates obtained by the color projection axis calculation means. 3. The contour extraction device according to claim 2, further comprising: a color projection axis selection unit that selects a color projection axis included in the contour curve selected by the subjective evaluation.
【請求項4】 上記色射影軸候補計算手段は、 上記一組の代表点のそれぞれの近傍領域内で最適色射影
軸候補を複数計算する近傍領域内最適色射影軸候補計算
手段と、 上記近傍領域内最適色射影軸候補計算手段で計算された
最適色射影軸候補を用いて更新区間内のエッジ周囲のコ
ントラストを最大にする色射影軸候補を合成する色射影
軸合成候補手段とを備えてなることを特徴とする請求項
3記載の輪郭抽出装置。
4. The color projection axis candidate calculating means, comprising: calculating a plurality of optimum color projection axis candidates in each of the neighboring areas of the set of representative points; Color projection axis synthesis candidate means for synthesizing a color projection axis candidate that maximizes the contrast around the edge in the update interval using the optimum color projection axis candidate calculated by the intra-region optimum color projection axis candidate calculation means. 4. The contour extracting device according to claim 3, wherein:
【請求項5】 上記近傍領域内最適色射影軸候補計算手
段は、 上記それぞれの近傍領域内で上記画像と代表点を基に直
線的なエッジ成分候補を複数検出する直線エッジ検出手
段と、 上記直線エッジ検出手段で検出された直線的な複数のエ
ッジ成分候補の周囲の色情報を取得する色情報取得手段
と、 上記色情報取得手段で取得された色情報から色射影軸の
複数の候補を求める色射影軸候補計算手段とを備えてな
ることを特徴とする請求項4記載の輪郭抽出装置。
5. The near-region optimum color projection axis candidate calculating means, the straight-line edge detecting means for detecting a plurality of linear edge component candidates based on the image and the representative point in each of the near regions, A color information acquisition unit that acquires color information around a plurality of linear edge component candidates detected by the straight line edge detection unit; and a plurality of color projection axis candidates from the color information acquired by the color information acquisition unit. 5. The contour extracting apparatus according to claim 4, further comprising: a color projection axis candidate calculating means for calculating.
【請求項6】 上記直線エッジ検出手段は、 上記画像と代表点から代表点の近傍領域の部分画像を切
り出す近傍領域切り出し手段と、 上記近傍領域切り出し手段で切り出された部分画像のモ
ノクロ画像を生成するモノクロ画像生成手段と、 上記モノクロ画像生成手段で生成されたモノクロ画像か
らグラディエント画像を生成するグラディエント画像生
成手段と、 上記グラディエント画像生成手段で生成されたグラディ
エント画像から、グラディエント方向の角度θと、エッ
ジと代表点との符号付き距離ρの2次元ヒストグラムを
生成する2次元ヒストグラム生成手段と、 上記2次元ヒストグラム生成手段で生成された角度θ、
符号付き距離ρの優先順位付けを行う優先順位生成手段
と、 上記優先順位生成手段で優先順位の付けられた角度θ、
符号付き距離ρの値を基に直線エッジの直線方程式の係
数を求める直線方程式係数計算手段とを備えてなること
を特徴とする請求項5記載の輪郭抽出装置。
6. The straight-line edge detecting means includes: a near-region extracting means for extracting a partial image of a nearby area of a representative point from the image and the representative point; and a monochrome image of the partial image cut by the near-area extracting means. A monochrome image generating unit, a gradient image generating unit that generates a gradient image from the monochrome image generated by the monochrome image generating unit, and a gradient direction angle θ from the gradient image generated by the gradient image generating unit. A two-dimensional histogram generating means for generating a two-dimensional histogram of a signed distance ρ between the edge and the representative point; an angle θ generated by the two-dimensional histogram generating means;
Priority generating means for prioritizing the signed distance ρ, and the angles θ, which are prioritized by the priority generating means,
6. The contour extracting apparatus according to claim 5, further comprising a straight line equation coefficient calculating means for calculating a coefficient of a straight line equation of a straight edge based on the value of the signed distance ρ.
【請求項7】 上記色情報取得手段は、上記直線エッジ
検出手段で検出された直線的なエッジ成分の周囲をサン
プリングし、エッジの片側と反対側に分類された色分布
のヒストグラムを生成することを特徴とする請求項5記
載の輪郭抽出装置。
7. The color information obtaining means samples the periphery of the linear edge component detected by the straight edge detection means, and generates a histogram of color distribution classified into one side and the other side of the edge. 6. The contour extraction device according to claim 5, wherein:
【請求項8】 上記色情報取得手段は、画像のエッジ上
にエッジを近似する直線が置かれているとき、この直線
上の点を通り、直線に垂直方向に所定距離だけ離れた両
側の位置に同じ半径を持つ二つの円を置き、この円の領
域内の色をサンプリングすることを特徴とする請求項7
記載の輪郭抽出装置。
8. The color information acquisition means, when a straight line approximating an edge is placed on an edge of an image, passes through a point on the straight line, and is positioned on both sides separated by a predetermined distance in a direction perpendicular to the straight line. 8. A method according to claim 7, further comprising: placing two circles having the same radius on a circle, and sampling colors in an area of the circle.
The contour extraction device as described.
【請求項9】 上記色射影軸候補計算手段は、上記色情
報取得手段で取得された色分布情報の色空間におけるエ
ッジの片側、反対側のそれぞれの分布の重心を結ぶベク
トルを色射影軸候補として計算することを特徴とする請
求項3記載の輪郭抽出装置。
9. The color projection axis candidate calculating means converts a vector connecting the centroids of the distributions on one side and the other side of the edge in the color space of the color distribution information acquired by the color information acquiring means to the color projection axis candidate. The contour extracting device according to claim 3, wherein the calculation is performed as follows.
【請求項10】 上記色射影軸候補計算手段は、上記色
情報取得手段で取得された色分布情報の色空間における
エッジの片側、反対側のそれぞれの分布の級内分散と級
間分散の比を最大にする軸を色射影軸候補として計算す
ることを特徴とする請求項3記載の輪郭抽出装置。
10. The color projection axis candidate calculating means calculates a ratio between the intra-class variance and the inter-class variance of the distribution of the color distribution information obtained by the color information obtaining means on one side and the other side of the edge in the color space. 4. The contour extracting apparatus according to claim 3, wherein an axis that maximizes the distance is calculated as a color projection axis candidate.
【請求項11】 上記色射影軸候補計算手段は、上記画
像のエッジ上に置かれた一組の代表点を結ぶ線分上で等
間隔に置かれた複数の点のそれぞれについて、線分と垂
直な方向で線分の両側に所定長さで引かれた垂直線分上
で最も色変化の大きな領域を探索して上記色射影軸を計
算により求めることを特徴とする請求項3記載の輪郭抽
出装置。
11. The color projection axis candidate calculating means, for each of a plurality of equally spaced points on a line connecting a set of representative points placed on the edge of the image, 4. The contour according to claim 3, wherein an area having the largest color change is searched on a vertical line segment drawn on both sides of the line segment by a predetermined length in a vertical direction, and the color projection axis is calculated by calculation. Extraction device.
【請求項12】 上記色射影軸候補計算手段は、上記垂
直線分上で色変化ベクトルを求め、その大きさが最大と
なる色変化最大点を求め、この色変化最大点の平均値か
ら上記色射影軸を計算により求めることを特徴とする請
求項11記載の輪郭抽出装置。
12. The color projection axis candidate calculating means obtains a color change vector on the vertical line segment, obtains a color change maximum point having a maximum size, and calculates the color change maximum point from the average value of the color change maximum points. 12. The contour extraction device according to claim 11, wherein the color projection axis is obtained by calculation.
【請求項13】 画像中から対象物の輪郭を抽出するた
めの輪郭抽出方法において、 上記対象物のエッジ上の代表点の座標と初期閉曲線から
更新区間を挟み込む一組の代表点を求める更新区間抽出
工程と、 上記更新区間抽出工程で求められた一組の代表点と上記
画像から更新区間内の色射影軸候補を複数求め、この複
数の色射影軸候補を操作者による主観評価可能なデータ
に変換して操作者に提示し、操作者による補助的な入力
により色射影軸を決定する色射影軸計算工程と、 上記色射影軸計算工程で求められた色射影軸と上記更新
区間抽出手段で求められた一組の代表点を上記画像から
更新区間内の輪郭曲線を生成する輪郭曲線生成工程と、 上記輪郭曲線生成工程で生成された更新区間内の輪郭曲
線を閉曲線に合成し、新たな輪郭閉曲線を生成する輪郭
閉曲線合成工程とを備えることを特徴とする輪郭抽出方
法。
13. A contour extraction method for extracting a contour of an object from an image, wherein an update section for obtaining a set of representative points sandwiching the update section from coordinates of a representative point on an edge of the object and an initial closed curve. An extraction step, a plurality of color projection axis candidates in the update section are obtained from the set of representative points obtained in the update section extraction step and the image, and the plurality of color projection axis candidates are data that can be subjectively evaluated by an operator. And presents it to the operator. The color projection axis calculation step of determining the color projection axis by the auxiliary input by the operator, the color projection axis obtained in the color projection axis calculation step and the update section extracting means A contour curve generating step of generating a contour curve in the update section from the image using the set of representative points obtained in the step; and combining the contour curve in the update section generated in the contour curve generating step into a closed curve, Contour closed curve Contour extraction method characterized by comprising the product contour closed curve synthetic steps.
【請求項14】 上記色射影軸計算工程は、パラメータ
を変えたアルゴリズム、或いは複数のアルゴリズムを適
用して色射影軸候補を複数求め、この複数の色射影軸候
補を操作者による主観評価可能なデータに変換して操作
者に提示し、操作者による補助的な入力により色射影軸
を決定することを特徴とする請求項13記載の輪郭抽出
方法。
14. The color projection axis calculation step obtains a plurality of color projection axis candidates by applying an algorithm with changed parameters or a plurality of algorithms, and allows the operator to subjectively evaluate the plurality of color projection axis candidates. 14. The contour extraction method according to claim 13, wherein the color projection axis is converted into data and presented to the operator, and the color projection axis is determined by an auxiliary input by the operator.
【請求項15】 上記色射影軸計算工程は、 上記更新区間抽出工程で求められた一組の代表点と上記
画像から更新区間内の色射影軸候補を複数求める色射影
軸候補計算工程と、 上記色射影軸計算工程で求められた複数の色射影軸候補
のそれぞれを含む輪郭曲線を生成する輪郭曲線生成工程
と、 上記輪郭曲線生成工程で生成された複数の輪郭曲線を操
作者が見て主観評価により選択した輪郭曲線に含まれる
色射影軸を選択する色射影軸選択工程とを備えてなるこ
とを特徴とする請求項13記載の輪郭抽出方法。
15. The color projection axis calculation step, comprising: calculating a plurality of color projection axis candidates in an update section from the set of representative points obtained in the update section extraction step and the image; An outline curve generating step of generating an outline curve including each of the plurality of color projection axis candidates obtained in the color projection axis calculation step, and an operator viewing the plurality of outline curves generated in the outline curve generation step. 14. The contour extraction method according to claim 13, further comprising a color projection axis selection step of selecting a color projection axis included in the contour curve selected by the subjective evaluation.
【請求項16】 上記色射影軸候補計算工程は、 上記一組の代表点のそれぞれの近傍領域内で最適色射影
軸候補を複数計算する近傍領域内最適色射影軸候補計算
工程と、 上記近傍領域内最適色射影軸候補計算工程で計算された
最適色射影軸候補を用いて更新区間内のエッジ周囲のコ
ントラストを最大にする色射影軸候補を合成する色射影
軸合成候補工程とを備えてなることを特徴とする請求項
15記載の輪郭抽出方法。
16. The color projection axis candidate calculating step includes: calculating a plurality of optimum color projection axis candidates in each of the neighboring areas of the set of representative points; A color projection axis synthesis candidate step of synthesizing a color projection axis candidate that maximizes the contrast around an edge in the update section using the optimal color projection axis candidate calculated in the intra-region optimal color projection axis candidate calculation step. 16. The contour extracting method according to claim 15, wherein:
【請求項17】 上記近傍領域内最適色射影軸候補計算
工程は、 上記それぞれの近傍領域内で上記画像と代表点を基に直
線的なエッジ成分候補を複数検出する直線エッジ検出工
程と、 上記直線エッジ検出工程で検出された直線的な複数のエ
ッジ成分候補の周囲の色情報を取得する色情報取得工程
と、 上記色情報取得工程で取得された色情報から色射影軸の
複数の候補を求める色射影軸候補計算工程とを備えてな
ることを特徴とする請求項16記載の輪郭抽出方法。
17. The near-region optimal color projection axis candidate calculating step includes: detecting a plurality of linear edge component candidates based on the image and the representative point in each of the neighboring regions; A color information acquisition step of acquiring color information around a plurality of linear edge component candidates detected in the straight edge detection step; and a plurality of color projection axis candidates from the color information acquired in the color information acquisition step. 17. The contour extraction method according to claim 16, further comprising a step of calculating a candidate color projection axis.
【請求項18】 上記色情報取得工程は、上記直線エッ
ジ検出工程で検出された直線的なエッジ成分の周囲をサ
ンプリングし、エッジの片側と反対側に分類された色分
布のヒストグラムを生成することを特徴とする請求項1
7記載の輪郭抽出方法。
18. The color information acquiring step includes sampling a periphery of the linear edge component detected in the linear edge detecting step, and generating a histogram of a color distribution classified into one side and the other side of the edge. Claim 1 characterized by the following:
7. The contour extraction method according to 7.
【請求項19】 上記色情報取得工程は、画像のエッジ
上にエッジを近似する直線が置かれているとき、この直
線上の点を通り、直線に垂直方向に所定距離だけ離れた
両側の位置に同じ半径を持つ二つの円を置き、この円の
領域内の色をサンプリングすることを特徴とする請求項
18記載の輪郭抽出方法。
19. The color information obtaining step includes the steps of: when a straight line approximating an edge is placed on an edge of an image, passing through a point on the straight line, and being separated from the straight line by a predetermined distance in the vertical direction. 19. A contour extraction method according to claim 18, wherein two circles having the same radius are placed in the circle, and colors in the area of the circle are sampled.
【請求項20】 上記色射影軸候補計算工程は、上記色
情報取得工程で取得された色分布情報の色空間における
エッジの片側、反対側のそれぞれの分布の重心を結ぶベ
クトルを色射影軸候補として計算することを特徴とする
請求項17記載の輪郭抽出方法。
20. The color projection axis candidate calculating step includes the steps of connecting the centroids of the distributions on one side and the other side of the edge in the color space of the color distribution information obtained in the color information obtaining step to the color projection axis candidate. 18. The contour extraction method according to claim 17, wherein the calculation is performed as follows.
【請求項21】 上記色射影軸候補計算工程は、上記色
情報取得工程で取得された色分布情報の色空間における
エッジの片側、反対側のそれぞれの分布の級内分散と級
間分散の比を最大にする軸を色射影軸候補として計算す
ることを特徴とする請求項17記載の輪郭抽出方法。
21. The color projection axis candidate calculating step, wherein the ratio between the intra-class variance and the inter-class variance of the distribution on one side and the other side of the edge in the color space of the color distribution information acquired in the color information acquiring step. 18. The contour extraction method according to claim 17, wherein an axis that maximizes the following is calculated as a color projection axis candidate.
【請求項22】 上記色射影軸計算工程は、上記画像の
エッジ上に置かれた一組の代表点を結ぶ線分上で等間隔
に置かれた複数の点のそれぞれについて、線分と垂直な
方向で線分の両側に所定長さで引かれた垂直線分上で最
も色変化の大きな領域を探索して上記色射影軸を計算に
より求めることを特徴とする請求項15記載の輪郭抽出
方法。
22. The color projection axis calculation step includes the steps of: computing a plurality of equally spaced points on a line connecting a set of representative points placed on an edge of the image; 16. The contour extraction according to claim 15, wherein an area having the largest color change is searched for on a vertical line segment drawn on both sides of the line segment in a predetermined length in a predetermined direction, and the color projection axis is calculated by calculation. Method.
【請求項23】 上記色射影軸候補計算工程は、上記垂
直線分上で色変化ベクトルを求め、その大きさが最大と
なる色変化最大点を求め、この色変化最大点の平均値か
ら上記色射影軸を計算により求めることを特徴とする請
求項15記載の輪郭抽出方法。
23. The color projection axis candidate calculating step obtains a color change vector on the vertical line segment, obtains a color change maximum point having a maximum size, and calculates the color change maximum point from an average value of the color change maximum points. The method according to claim 15, wherein the color projection axis is obtained by calculation.
【請求項24】 画像中から対象物の輪郭を抽出するた
めの輪郭抽出プログラムを記録しているプログラム記録
媒体において、 上記対象物のエッジ上の代表点の座標と初期閉曲線から
更新区間を挟み込む一組の代表点を求める更新区間抽出
工程と、 上記更新区間抽出工程で求められた一組の代表点と上記
画像から更新区間内の色射影軸候補を複数求め、この複
数の色射影軸候補を操作者による主観評価可能なデータ
に変換して操作者に提示し、操作者による補助的な入力
により色射影軸を決定する色射影軸計算工程と、 上記色射影軸計算工程で求められた色射影軸と上記更新
区間抽出手段で求められた一組の代表点を上記画像から
更新区間内の輪郭曲線を生成する輪郭曲線生成工程と、 上記輪郭曲線生成工程で生成された更新区間内の輪郭曲
線を閉曲線に合成し、新たな輪郭閉曲線を生成する輪郭
閉曲線合成工程とを備えるプログラムを記録しているこ
とを特徴とするプログラム記録媒体。
24. A program recording medium which records a contour extraction program for extracting a contour of an object from an image, wherein an update section is inserted from coordinates of a representative point on an edge of the object and an initial closed curve. An update section extraction step of obtaining a set of representative points, and a plurality of color projection axis candidates in the update section are obtained from the set of representative points and the image obtained in the update section extraction step, and the plurality of color projection axis candidates are A color projection axis calculation step of converting the data into data that can be subjectively evaluated by the operator, presenting the data to the operator, and determining a color projection axis by an auxiliary input by the operator; and a color obtained in the color projection axis calculation step. A contour curve generating step of generating a contour curve in the update section from the image using the projection axis and the set of representative points obtained by the update section extracting means; and a contour in the update section generated in the contour curve generating step. Program recording medium by combining a line closed curve, characterized in that it records a program and a contour closed curve synthesizing step of generating a new contour closed curve.
JP11051866A 1999-02-26 1999-02-26 Device and method for extracting contour and program recording medium Withdrawn JP2000251083A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP11051866A JP2000251083A (en) 1999-02-26 1999-02-26 Device and method for extracting contour and program recording medium
US09/510,082 US6621924B1 (en) 1999-02-26 2000-02-22 Contour extraction apparatus, a method thereof, and a program recording medium
CA002299578A CA2299578A1 (en) 1999-02-26 2000-02-25 A contour extraction apparatus, a method thereof, and a program recording medium
GB0004550A GB2352916B (en) 1999-02-26 2000-02-25 A contour extraction apparatus and method and a program recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11051866A JP2000251083A (en) 1999-02-26 1999-02-26 Device and method for extracting contour and program recording medium

Publications (1)

Publication Number Publication Date
JP2000251083A true JP2000251083A (en) 2000-09-14

Family

ID=12898809

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11051866A Withdrawn JP2000251083A (en) 1999-02-26 1999-02-26 Device and method for extracting contour and program recording medium

Country Status (1)

Country Link
JP (1) JP2000251083A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002224116A (en) * 2001-01-31 2002-08-13 Matsushita Electric Ind Co Ltd Ultrasonic diagnostic apparatus and image processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002224116A (en) * 2001-01-31 2002-08-13 Matsushita Electric Ind Co Ltd Ultrasonic diagnostic apparatus and image processor
JP4614548B2 (en) * 2001-01-31 2011-01-19 パナソニック株式会社 Ultrasonic diagnostic equipment

Similar Documents

Publication Publication Date Title
US6714689B1 (en) Image synthesizing method
US8059889B2 (en) Position and orientation measurement apparatus and control method thereof
JP2856229B2 (en) Image clipping point detection method
JP2000307949A (en) Image interpolating method, image processing method, image displaying method, image processor, image display device and computer program storage medium
US5727093A (en) Image processing method and apparatus therefor
US6621924B1 (en) Contour extraction apparatus, a method thereof, and a program recording medium
JP2022522279A (en) How to merge point clouds to identify and retain priorities
EP3367334B1 (en) Depth estimation method and depth estimation apparatus of multi-view images
WO2001001347A1 (en) Method and apparatus for performing geo-spatial registration using a euclidean representation
JPH10164436A (en) Device and method for detecting contour and generating key signal
JP2003510702A (en) How to build a 3D scene by analyzing a series of images
JPH0935061A (en) Image processing method
US20160005221A1 (en) Photometric optimization with t-splines
US7196707B2 (en) Tangent balancing
JP2000251086A (en) Device and method for generating curve and program providing medium
US5974170A (en) Method of detecting relief contours in a pair of stereoscopic images
US11798227B2 (en) Image processing apparatus and image processing method
CN115546027B (en) Image suture line determination method, device and storage medium
JP2000251083A (en) Device and method for extracting contour and program recording medium
JP2001209796A (en) Image processor, area extracting method and recording medium
US6298155B1 (en) Apparatus and method for generating time-series data, apparatus and method for editing curves and recording medium having program recorded thereon
JPH10198824A (en) Video generation and processing device, and structure data preparing device for preparing structured data to be used for the same
Jini et al. Image Inpainting Using Image Interpolation-An Analysis
JP2000251084A (en) Device and method for extracting contour and program recording medium
JP2870465B2 (en) Three-dimensional reference image clipping method and device, and object determination device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060509