JPH1153561A - Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program - Google Patents

Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program

Info

Publication number
JPH1153561A
JPH1153561A JP9204862A JP20486297A JPH1153561A JP H1153561 A JPH1153561 A JP H1153561A JP 9204862 A JP9204862 A JP 9204862A JP 20486297 A JP20486297 A JP 20486297A JP H1153561 A JPH1153561 A JP H1153561A
Authority
JP
Japan
Prior art keywords
curve
points
image
contour
point sequence
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
JP9204862A
Other languages
Japanese (ja)
Inventor
Tomoo Mitsunaga
知生 光永
Migaku Yokoyama
琢 横山
Takushi Totsuka
卓志 戸塚
Hidehiro Hirase
英弘 平瀬
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 JP9204862A priority Critical patent/JPH1153561A/en
Publication of JPH1153561A publication Critical patent/JPH1153561A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To exactly detect a contour through the simple operation of an opera tor. SOLUTION: The route searching device is provided with a two-point selecting means 151 for selecting two continuous points from a dot sequence data storage means 16, route search processing optimizing means 152 for calculating a parameter for optimizing a route search processing optimizing method from these two points and image data from an image data storage means 17, route searching means 153 for determining the route search processing method based on that parameter, connecting these two points, calculating route data passing the contour on the image and holding them in a route data storage means 23, and curve approximating means 154 for preparing curve data, which express the shape of the contour by the curve approximation of route data, and holding them in a curve data storage means 18. With this route searching device, and a contour curve generator to be used for this device, a contour curve editor is constituted.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像上の特定の領
域を抽出する画像処理などに利用される、経路探査装置
および方法、輪郭曲線生成装置および方法、輪郭曲線編
集装置および方法、並びにこれらのプログラムを記録し
た記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a path searching apparatus and method, a contour curve generating apparatus and method, a contour curve editing apparatus and method, and those used in image processing for extracting a specific area on an image. And a recording medium storing the program.

【0002】[0002]

【従来の技術】物体の認識や追尾、画像合成などの画像
処理のために、画像上の特定の領域を抽出する処理が行
われる。画像上の領域を抽出する方法は、画像処理技術
において基本的かつ重要であるため種々提案されてお
り、画像上の領域を正確に抽出することよりも自動的に
抽出することに主眼をおいた方法と、オペレータの入力
を介在としてより正確に領域を抽出することに主眼をお
いた方法とに大別できる。
2. Description of the Related Art A process for extracting a specific area on an image is performed for image processing such as object recognition, tracking, and image synthesis. Various methods for extracting a region on an image have been proposed because they are fundamental and important in image processing technology, and the focus has been on automatic extraction rather than accurate extraction of a region on an image. The method can be broadly divided into a method and a method that mainly focuses on extracting a region more accurately with the input of an operator.

【0003】例えば、画像上の物体の輪郭を抽出する処
理に際して、オペレータの介在入力によって、より正確
な領域抽出を行うために提案されている従来の方法は、
以下の2種類に大別される。
For example, in a process of extracting a contour of an object on an image, a conventional method proposed to extract a more accurate region by an operator's intervention input is as follows.
It is roughly classified into the following two types.

【0004】第1の方法は、何らかの処理によって画像
から自動的に抽出された輪郭情報に対して、オペレータ
が、削除または追加操作を行うものである。このとき、
オペレータは、自動抽出された輪郭情報を不要と判断し
たり自動抽出されなかったが必要である輪郭情報などを
判断して、上記の操作を行う。
[0004] In the first method, an operator performs a deletion or addition operation on contour information automatically extracted from an image by some processing. At this time,
The operator determines that the automatically extracted contour information is unnecessary or determines the contour information that is not automatically extracted but is necessary, and performs the above operation.

【0005】このような方法としては、特開平3−29
1770号公報記載の「画像輪郭検出方法」、特開平1
−175076号公報記載の「画像編集装置」などに具
体例に示される技術がある。
[0005] Such a method is disclosed in Japanese Unexamined Patent Publication No. 3-29.
No. 1770, “Image contour detection method”,
There is a technique shown in a specific example in "Image Editing Apparatus" described in JP-A-175076.

【0006】第2の方法は、輪郭抽出処理のための初期
入力情報が十分でなかった部分を、オペレータが判断し
て、さらに正確な入力を与えて再計算を行うものであ
る。
In the second method, the operator judges a portion where the initial input information for the contour extraction processing is insufficient, and gives a more accurate input to perform the recalculation.

【0007】このような方法としては、特開平4−15
2481号公報記載の「画像輪郭検出方法」、特開平1
−155476号公報記載の「絵柄のマスク作成方
法」、特開平4−68763号公報記載の「切抜きマス
ク作成方法」、および文献「Intelligent Scissors for
Image Composition」(Eric N. Mortensen and Willia
mA. Barrett, Computer Graphics Proceedings, Annual
Conference Series, 1995, ACM SIGGRAPH, pp.191-19
8)などに具体例に示される技術がある。
As such a method, Japanese Patent Laid-Open No.
2481, “Image contour detection method”
No. 155,476, entitled "Pattern Mask Creation Method", Japanese Unexamined Patent Publication No. 4-68763, "Cutout Mask Creation Method", and the document "Intelligent Scissors for
Image Composition ”(Eric N. Mortensen and Willia
mA. Barrett, Computer Graphics Proceedings, Annual
Conference Series, 1995, ACM SIGGRAPH, pp.191-19
8) is a technique shown in a specific example.

【0008】次に、上記の文献等に記載されている各技
術について簡単に説明する。
Next, each technique described in the above-mentioned documents and the like will be briefly described.

【0009】特開平3−291770号公報記載の「画
像輪郭検出方法」には、最初の自動抽出ではエッジ検出
により輪郭を抽出し、エッジ検出処理によっては抽出で
きなかった輪郭については、オペレータがその両端を指
定することにより、それを結ぶ線分が輪郭として追加さ
れるようにする技術が開示されている。
Japanese Patent Laid-Open Publication No. Hei 3-291770 discloses an "image outline detection method". In the first automatic extraction, an outline is extracted by edge detection. A technique has been disclosed in which by designating both ends, a line segment connecting them is added as a contour.

【0010】特開平1−175076号公報記載の「画
像編集装置」には、予め色量子化によって領域分割して
おいた画像中の領域のうち、オペレータが概略線で囲ん
だ領域を対象物領域として抽出する処理を行い、抽出ミ
スがあったときには、オペレータが、該当する領域を1
つずつ指定して、その領域を対象物領域に追加または削
除することにより修正できるようにした技術が開示され
ている。
An "image editing apparatus" described in Japanese Patent Application Laid-Open No. 1-175076 discloses an image editing apparatus in which a region surrounded by a schematic line by an operator among regions in an image previously divided by color quantization is a target region. When there is an extraction error, the operator sets the corresponding area as 1
There has been disclosed a technique in which a region can be specified and modified by adding or deleting the region to or from an object region.

【0011】また、特開平1−155476号公報記載
の「絵柄のマスク作成方法」および特開平4−6876
3号公報記載の「切抜きマスク作成方法」には、クロマ
キーに類似の技術であり、輪郭の両側の色すなわち前景
色と背景色のどちらかあるいは両方を入力することによ
り輪郭領域の色の境目を検出し、必要ならば部分的に色
入力を変更できるようにした技術が開示されている。
Also, a "method of creating a pattern mask" described in JP-A-1-155476 and JP-A-4-6876.
The “cut-out mask creation method” described in Japanese Patent Publication No. 3 is a technique similar to chroma key, and a color boundary of a contour area is determined by inputting a color on both sides of a contour, that is, one or both of a foreground color and a background color. A technique has been disclosed which enables the color input to be detected and partially changed if necessary.

【0012】さらに、前記の文献「Intelligent Scisso
rs for Image Composition」には、輪郭上の中継点を幾
つか与えることにより、その間の輪郭点を探査して抽出
するようにした技術が記載されている。この探査方法
は、画像のエッジ情報を利用した探査ルールに基づい
て、なるべくエッジ上を通過するように中継点間を結ぶ
ような経路を探査するものであり、かなり複雑な輪郭形
状をも自動的に抽出できる。このため、この方法は比較
的少数の中継点で輪郭を抽出できるという利点を有して
いる。
Further, the above-mentioned reference "Intelligent Scisso
"rs for Image Composition" describes a technique in which a number of relay points on a contour are given to search and extract a contour point therebetween. This search method searches for a path connecting relay points so as to pass over the edge as much as possible, based on a search rule using the edge information of the image. Can be extracted. Therefore, this method has an advantage that a contour can be extracted with a relatively small number of relay points.

【0013】なお、上述した特開平3−291770号
公報記載の「画像輪郭検出方法」も、輪郭上の中継点を
幾つか与えることにより、その間の輪郭点を探査して抽
出するものである。この方法は、輪郭探査を行う際に、
中継点の位置によって探査方向のバイアスをかけるよう
にするものである。このため、中継点を変更することに
より所望の方向に進む輪郭を抽出しやすいという特徴を
有する。
The "image contour detection method" described in Japanese Patent Laid-Open Publication No. Hei 3-291770 described above also searches for and extracts contour points between them by giving some relay points on the contour. This method is used when performing contour search.
The search direction is biased depending on the position of the relay point. For this reason, there is a feature that it is easy to extract a contour traveling in a desired direction by changing the relay point.

【0014】しかし、以上説明した従来の方法には、以
下のような問題があった。
However, the conventional method described above has the following problems.

【0015】前記の第1の方法は、最終的に得られる輪
郭の正確さが、最初の自動抽出の正確さに大きく依存す
るため、その後のオペレータの修正操作により輪郭をよ
り正確にすることが困難であるという問題がある。
According to the first method, since the accuracy of the finally obtained contour largely depends on the accuracy of the first automatic extraction, the contour can be made more accurate by a subsequent correction operation by the operator. There is a problem that it is difficult.

【0016】例えば、特開平3−291770号公報記
載の「画像輪郭検出方法」では、前述したように、手動
による輪郭の追加を線分でしか行えないため、得られる
輪郭形状の正確さに欠けるという問題がある。
For example, in the "image contour detecting method" described in Japanese Patent Application Laid-Open No. 3-291770, as described above, the contour can be manually added only by a line segment, so that the obtained contour shape lacks accuracy. There is a problem.

【0017】また、特開平1−175076号公報記載
の「画像編集装置」では、修正操作が煩雑にならないよ
うにするためには、最初に分割しておく領域をあまり小
さくできない。従って、色量子化を適度に粗くする必要
がある。ところが、色量子化を粗くすると、領域分割さ
れた領域の形状と、真の物体輪郭形状とが一致しなくな
りやすく、自動抽出される輪郭形状の正確さが失われて
しまうという問題がある。
In the "image editing apparatus" described in Japanese Patent Application Laid-Open No. 1-175076, the area to be initially divided cannot be too small in order to prevent the correction operation from becoming complicated. Therefore, it is necessary to make the color quantization appropriately 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.

【0018】一方、前記の第2の方法は、輪郭の自動抽
出結果が十分でなかった領域に対してより正確な入力を
与えて再計算を行うため、得られる輪郭の正確さに関し
ては有利である。しかし、この方法には、以下のような
問題がある。
On the other hand, the above-described second method is advantageous in terms of the accuracy of the obtained contour, because re-calculation is performed by giving a more accurate input to a region where the result of automatic extraction of the contour is not sufficient. is there. However, this method has the following problems.

【0019】特開平1−155476号公報記載の「絵
柄のマスク作成方法」、特開平4−68763号公報記
載の「切抜きマスク作成方法」におけるオペレータによ
る輪郭形状の修正は、前述のように、部分的に背景色ま
たは前景色の入力を変更し、その部分における輪郭抽出
を再計算することにより行うものである。しかし、色入
力操作は、クロマキー装置でいえば、モニタ画面を監視
しながらキーのレベル調整を行う操作に相当する。この
種の操作は、輪郭形状についての情報を直接入力するも
のではないため、オペレータが直感的に正しい入力を行
うことが難しく、所望の輪郭形状を得るために試行錯誤
を要するという問題がある。
The modification of the contour shape by the operator in the "method of creating a picture mask" described in JP-A-1-155476 and the "method of creating a cutout mask" described in JP-A-4-68763 is performed as described above. This is performed by changing the input of the background color or the foreground color, and recalculating the outline extraction in that part. However, the color input operation corresponds to an operation of adjusting a key level while monitoring a monitor screen in a chroma key device. 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 there is a problem that trial and error is required to obtain a desired contour shape.

【0020】これ対し、特開平4−152481号公報
記載の「画像輪郭検出方法」、および文献「Intelligen
t Scissors for Image Composition」に記載の技術(以
下では、中継点を入力する従来技術という。)では、オ
ペレータの修正操作は、輪郭上の中継点を操作するもの
であり、修正された中継点に関する輪郭形状が再計算さ
れる。この方法は、直接輪郭形状に関する入力を与える
ようにされているため、オペレータが直感的に正しい入
力を行うことが比較的容易である。
On the other hand, "Image contour detection method" described in Japanese Patent Application Laid-Open No. 4-152481 and a document "Intelligen"
In the technique described in “t Scissors for Image Composition” (hereinafter, referred to as a conventional technique of inputting a relay point), an operator's correction operation is to operate a relay point on a contour. The contour shape is recalculated. In this method, since an input relating to a contour shape is directly provided, it is relatively easy for an operator to intuitively perform a correct input.

【0021】しかし、これらの従来技術にも以下の問題
がある。
However, these conventional techniques also have the following problems.

【0022】中継点を入力する従来技術では、オペレー
タが、輪郭が通過してほしいと思う位置あるいはその近
傍に中継点を設定することにより輪郭形状を所望の形状
にできるが、所望する輪郭を必ずしも得られない場合が
ある。
In the prior art for inputting a relay point, the operator can set a desired contour by setting the relay point at or near a position where the contour is desired to pass. May not be obtained.

【0023】図28は、中継点を入力する従来の方法に
おいて、オペレータの所望する輪郭が得られにくい場合
の一例を示している。
FIG. 28 shows an example in which it is difficult to obtain a contour desired by an operator in the conventional method of inputting a relay point.

【0024】図28(A)は、抽出しようとする輪郭の
形状を示しており、ここでは、輪郭が、a,b,c,d
の4つの部分からなり、それぞれのエッジ検出強弱が異
なっているとする。具体的には、a,c,dはエッジ検
出によって強く検出され、bはあまり強く検出されない
とする。一方、オペレータは、画像全体を把握すること
によって、a,b,cが得られるべき輪郭であると判断
したとする。
FIG. 28A shows the shape of a contour to be extracted. In this case, the contours are a, b, c, and d.
It is assumed that the edge detection strength differs from each other. Specifically, it is assumed that a, c, and d are strongly detected by edge detection, and b is not detected so strongly. On the other hand, it is assumed that the operator grasps the entire image and determines that a, b, and c are contours to be obtained.

【0025】ところが、本来得られるべき輪郭が、必ず
しもエッジ検出によって強く検出されるとは限らない。
However, the contour to be originally obtained is not always detected strongly by edge detection.

【0026】図28(B)は、中継点を入力する従来の
方法によって抽出される輪郭の一例を示している。中継
点を入力する方法は、いずれもその過程においてエッジ
検出を行い、検出されたエッジ上をなるべく通過するよ
うに輪郭形状を決定する。そのため、図28(B)のよ
うに、中継点がp1とp2の位置とに設定された場合に
は、オペレータの意図に反し、エッジが強く検出される
a,d,cを通過するような輪郭e1が出力される。
FIG. 28B shows an example of a contour extracted by a conventional method of inputting a relay point. In any of the methods for inputting a relay point, edge detection is performed in the process, and a contour shape is determined so as to pass through the detected edge as much as possible. For this reason, as shown in FIG. 28B, when the relay point is set at the positions of p1 and p2, the edge passes through a, d, and c where edges are strongly detected, contrary to the intention of the operator. The contour e1 is output.

【0027】図28(C)は、オペレータが図28
(B)の輪郭抽出結果を修正するために、p3の位置に
中継点をおいた場合の、中継点を入力する従来の方法に
よる出力結果の一例を示している。輪郭b上に中継点p
3が設定されたので、その近傍を通過するように輪郭形
状が修正される。
FIG. 28C shows that the operator
An example of an output result by a conventional method of inputting a relay point when a relay point is placed at the position of p3 in order to correct the contour extraction result of (B) is shown. Relay point p on contour b
Since 3 is set, the contour shape is corrected so as to pass in the vicinity.

【0028】ところが、エッジ検出の結果が変化したわ
けではないので、a,b,d間の境界付近では、図28
(B)の輪郭抽出結果と同様に、輪郭が、強く検出され
るエッジdの方に一旦進むように抽出されてしまう。
b,c,d間の境界でも同様の理由により、間違った形
状の輪郭e2 を抽出してしまう。
However, since the result of edge detection has not changed, near the boundary between a, b, and d, FIG.
Similarly to the contour extraction result of (B), the contour is extracted so as to temporarily advance toward the edge d that is strongly detected.
At the boundary between b, c and d, the contour e2 having the wrong shape is extracted for the same reason.

【0029】結局、中継点p4,p5,p6,p7にお
いて、図28(C)のような修正を繰り返すことによっ
て、図28(D)に示すように、オペレータの意図する
a,b,cの輪郭e3を得ることになる。
After all, at the relay points p4, p5, p6, and p7, by repeating the correction as shown in FIG. 28C, as shown in FIG. The contour e3 is obtained.

【0030】このように、オペレータが所望する輪郭形
状を得るために、多数の中継点を細かく設定しなければ
ならない場合がしばしばあり不便であった。
As described above, in order to obtain a desired contour shape by an operator, it is often inconvenient that many relay points must be set finely.

【0031】前述した中継点を入力する従来技術では、
オペレータが、輪郭が通過してほしいと思う位置あるい
はその近傍に中継点を設定することによって、輪郭形状
を所望の形状にすることが可能になる。ところが、以下
に説明するような状況では、必ずしも所望の輪郭が得ら
れない場合がある。
In the prior art for inputting the above-mentioned relay point,
By setting the relay point at or near the position where the operator wants the outline to pass, the outline can be formed into a desired shape. However, in a situation described below, a desired contour may not always be obtained.

【0032】図29は、中継点を入力する従来技術で正
確な輪郭が得られにくい状況の一例を示している。
FIG. 29 shows an example of a situation where it is difficult to obtain an accurate contour with the prior art for inputting a relay point.

【0033】図29(A)は、抽出しようとする輪郭a
の形状を示している。ここでは、輪郭aのエッジが、十
分に検出されているものとする。
FIG. 29A shows a contour a to be extracted.
Is shown. Here, it is assumed that the edge of the contour a has been sufficiently detected.

【0034】図29(B)は、オペレータがp1,p
2,p3,p4の位置に中継点を設定した場合に抽出さ
れる輪郭形状の様子を示す。中継点p1,p2,p3,
p4はいずれも正確に輪郭a上であるので、抽出される
輪郭e1は輪郭aと等しい。
FIG. 29B shows that the operators p1, p
The state of the contour shape extracted when the relay point is set at the position of 2, 2, p3, p4 is shown. Relay points p1, p2, p3
Since p4 is exactly on the contour a, the extracted contour e1 is equal to the contour a.

【0035】ところが、図29(C)に示すように、輪
郭aからはずれた、正確でない中継点p5,p6,p
7,p8を設定した場合に抽出される輪郭e2は、各中
継点の付近で刺状の不正確な形状になってしまう。これ
は、検出されたエッジ上をなるべく通過するように輪郭
抽出が行われるために、中継点の近傍まではエッジ点を
たどり、中継点に最も近いエッジ点から中継点に向かっ
て急激に方向を変化させる経路が最適な経路とされてし
まうことが原因である。この現象が生じないようにする
ためには、オペレータが、図29(B)のように正確に
輪郭上に中継点を設定しなければならなかった。
However, as shown in FIG. 29C, incorrect relay points p5, p6, p
The contour e2 extracted when 7, p8 is set has an inaccurate stab shape near each relay point. This is because the contour is extracted so as to pass through the detected edge as much as possible, so that the edge point is traced to the vicinity of the relay point, and the direction from the edge point closest to the relay point to the relay point rapidly changes. This is because the path to be changed is determined to be the optimum path. In order to prevent this phenomenon from occurring, the operator must accurately set the relay point on the contour as shown in FIG.

【0036】前記の「画像輪郭検出方法」は、中継点上
を必ず通過しない経路を探査するが、中継点に向かって
経路探査するという処理であるため、本質的に上記の問
題を抱えている。この方法では、中継点上を必ず通過し
ないよう、中継点近傍まで探査が進んだら、後続の中継
点に探査方向を切り替えることによって、上記の現象が
多少緩和されるようになっている。しかしながら、後続
の中継点に探査方向を切り替える判断の具体的方法が明
示されていなかった。
The above-mentioned "image contour detection method" searches for a route that does not necessarily pass over a relay point, but it is a process of searching for a route toward the relay point, and thus essentially has the above problem. . In this method, the above-described phenomenon is somewhat alleviated by switching the search direction to a subsequent relay point after the search has proceeded to the vicinity of the relay point so that the search point does not necessarily pass over the relay point. However, a specific method of determining the switching of the search direction to a subsequent relay point has not been specified.

【0037】[0037]

【発明が解決しようとする課題】以上説明したように、
画像上の特定の領域を抽出するための従来の方法におい
ては、オペレータの入力を介在として、より正確に領域
を抽出することに主眼をおいた領域抽出処理のなかで
は、オペレータが輪郭上の中継点を入力する方法が、他
の処理方法に比べて利点があった。
As described above,
In a conventional method for extracting a specific area on an image, in an area extraction process that focuses on extracting an area more accurately with an operator's input as an intermediary, a relay on an outline is performed. The method of inputting points has advantages over other processing methods.

【0038】しかし、中継点を入力する方法では、オペ
レータの入力が結果に反映され難かったり、正確な中継
点入力が要求されるなどの状況が生じる場合があり、所
望の輪郭形状が得られ難くなるという問題があった。
However, in the method of inputting a relay point, there may be situations where it is difficult for an operator's input to be reflected in a result or an accurate relay point input is required, and it is difficult to obtain a desired contour shape. There was a problem of becoming.

【0039】本発明は、このような問題を解決するため
に行われたものであり、オペレータの簡単な操作によ
り、正確な輪郭検出を行うことができる経路探査装置お
よび方法、輪郭曲線生成装置および方法、輪郭曲線編集
装置および方法、並びにプログラムを記録した記録媒体
を提供することを目的としている。
The present invention has been made to solve such a problem, and a path search apparatus and method, a contour curve generation apparatus, and a path search method capable of performing accurate contour detection by a simple operation of an operator. It is an object to provide a method, a contour curve editing device and method, and a recording medium on which a program is recorded.

【0040】[0040]

【課題を解決するための手段】上記の課題を解決するた
めに提案する本発明の経路探査装置は、画像上の曲線の
経路を探査する経路探査装置において、画像を入力する
画像入力手段と、上記画像上の2点を選択する点選択手
段と、上記画像情報と上記2点の情報とを用いて、予め
設定された経路探査計算を最適化するように経路探査パ
ラメータを変更する経路探査処理最適化手段と上記最適
化された経路探査パラメータを用いて上記2点間の輪郭
の近傍経路を計算する経路探査手段とを備えることを特
徴とするものである。
According to a first aspect of the present invention, there is provided a route searching apparatus for searching for a curved path on an image, comprising: an image input unit for inputting an image; Path search processing for changing a path search parameter so as to optimize a preset path search calculation using point selection means for selecting two points on the image, and the image information and the information on the two points. It is characterized by comprising optimization means and path search means for calculating a nearby path of the contour between the two points using the optimized path search parameters.

【0041】上記の課題を解決するために提案する本発
明の経路探査方法は、画像上の曲線の経路を探査する経
路探査方法において、画像を入力する画像入力工程と、
上記画像上の2点を選択する点選択工程と、上記画像情
報と上記2点の情報とを用いて、予め設定された経路探
査計算を最適化するように経路探査パラメータを変更す
る経路探査処理最適化工程と、上記最適化された経路探
査パラメータを用いて上記2点間の輪郭の近傍経路を計
算する経路探査工程とを有することを特徴とするもので
ある。
According to a route search method of the present invention proposed to solve the above-mentioned problem, in a route search method for searching a curved route on an image, an image inputting step of inputting an image,
A point selection step of selecting two points on the image, and a path search process of changing a path search parameter so as to optimize a preset path search calculation using the image information and the information of the two points. An optimization step; and a path search step of calculating a nearby path of the contour between the two points using the optimized path search parameters.

【0042】上記の課題を解決するために提案する本発
明の記録媒体は、画像上の曲線の経路を探査する経路探
査プログラムを記録した記録媒体であり、上記経路探査
プログラムは、画像を入力する画像入力工程と、上記画
像上の2点を順次選択する点選択工程と、上記画像情報
と上記2点の情報とを用いて、予め設定された経路探査
計算が最適に処理されるように、経路探査パラメータを
上記2点が選択される毎に変更する経路探査処理最適化
工程と、上記最適化された経路探査パラメータを用いて
上記2点間の輪郭を近傍経路を計算する経路探査工程と
を有することを特徴とするものである。
A recording medium of the present invention proposed to solve the above-mentioned problem is a recording medium on which a path search program for searching for a curved path on an image is recorded, and the path search program inputs an image. An image input step, a point selection step of sequentially selecting two points on the image, and a preset path search calculation is optimally processed using the image information and the information of the two points, A path search processing optimizing step of changing a path search parameter each time the two points are selected; and a path search step of calculating a nearby path of a contour between the two points using the optimized path search parameters. It is characterized by having.

【0043】上記の課題を解決するために提案する本発
明の輪郭曲線生成装置は、画像上の物体の輪郭を示す曲
線を生成する輪郭曲線生成装置において、画像を入力す
る画像入力手段と、上記画像上の物体の輪郭上の中継点
列を入力する中継点列入力手段と、上記中継点列の互い
に隣り合う各2点間について、上記画像情報と上記2点
の情報とを用いて、予め設定された経路探査計算を最適
化するように経路探査パラメータを変更する経路探査処
理最適化手段と、上記最適化された経路探査パラメータ
を用いて上記各2点間の輪郭の近傍経路を計算する経路
探査手段と、上記経路探査の計算結果を用いて曲線を生
成する曲線生成手段とを備えることを特徴とするもので
ある。
A contour curve generating device according to the present invention proposed to solve the above-mentioned problem is a contour curve generating device for generating a curve indicating a contour of an object on an image. Relay point sequence input means for inputting a sequence of relay points on an outline of an object on an image; and between the two adjacent points of the sequence of relay points, using the image information and the information of the two points in advance. Path search processing optimization means for changing the path search parameters so as to optimize the set path search calculation; and calculating a nearby path of the contour between each of the two points using the optimized path search parameters It is characterized by comprising a route search means and a curve generation means for generating a curve using the calculation result of the route search.

【0044】上記の課題を解決するために提案する本発
明の輪郭曲線生成方法は、画像上の物体の輪郭を示す曲
線を生成する輪郭曲線生成方法において、画像を入力す
る画像入力工程と、上記画像上の物体の輪郭上の中継点
列を入力する中継点列入力工程と、上記中継点列の互い
に隣り合う各2点間について、上記画像情報と上記2点
の情報とを用いて、予め設定された経路探査計算を最適
化するように経路探査パラメータを変更する経路探査処
理最適化工程と、上記最適化された経路探査パラメータ
を用いて上記各2点間の輪郭の近傍経路を計算する経路
探査工程と、上記経路探査の計算結果を用いて曲線を生
成する曲線生成工程とを有することを特徴とするもので
ある。
A contour curve generating method according to the present invention proposed to solve the above-mentioned problem is a contour curve generating method for generating a curve indicating the contour of an object on an image. A relay point sequence inputting step of inputting a relay point sequence on an outline of an object on an image, and, between each two adjacent points of the relay point sequence, using the image information and the information of the two points in advance. A path search processing optimization step of changing a path search parameter so as to optimize the set path search calculation, and calculating a neighboring path of a contour between each of the two points using the optimized path search parameter It is characterized by having a route searching step and a curve generating step of generating a curve using the calculation result of the path searching.

【0045】上記の課題を解決するために提案する本発
明の記録媒体は、画像上の物体の輪郭を示す曲線を生成
する輪郭曲線生成プログラムを記録した記録媒体であ
り、上記輪郭曲線生成プログラムは、画像を入力する画
像入力工程と、上記画像上の物体の輪郭上の中継点列を
入力する中継点列入力工程と、上記中継点列の互いに隣
り合う各2点間について、上記画像情報と上記2点の情
報とを用いて、予め設定された経路探査計算を最適化す
るように経路探査パラメータを変更する経路探査処理最
適化工程と、上記最適化された経路探査パラメータを用
いて上記各2点間の輪郭の近傍経路を計算する経路探査
工程と、上記経路探査の計算結果を用いて曲線を生成す
る曲線生成工程とを有することを特徴とするものであ
る。
A recording medium of the present invention proposed to solve the above-mentioned problem is a recording medium on which a contour curve generating program for generating a curve indicating a contour of an object on an image is recorded. An image inputting step of inputting an image, a relaying point sequence inputting step of inputting a relaying point sequence on an outline of an object on the image, and the image information for each of two adjacent points of the relaying point sequence. A path search processing optimization step of changing a path search parameter so as to optimize a preset path search calculation using the information of the above two points, and each of the above-described steps using the optimized path search parameters. The method includes a path searching step of calculating a nearby path of a contour between two points, and a curve generating step of generating a curve using the calculation result of the path searching.

【0046】上記の課題を解決するために提案する本発
明の輪郭曲線生成装置は、画像上の物体の輪郭を示す輪
郭曲線を生成する輪郭曲線生成装置であって、画像を入
力する画像入力手段と、上記画像上の物体輪郭曲線を近
似する外部入力曲線を入力として曲線から適当な中継点
列を生成する点列生成手段と、上記生成された中継点列
を入力として、上記中継点列の互いに隣り合う各2点間
について、上記画像情報と上記2点の情報とを用いて、
予め設定された経路探査計算を最適化するように最適化
される経路探査パラメータを用いて上記各2点間の輪郭
の近傍経路を計算し、その計算結果を用いて曲線を生成
する曲線再構成手段とを備えることを特徴とするもので
ある。
A contour curve generating apparatus according to the present invention proposed to solve the above-mentioned problem is a contour curve generating apparatus for generating a contour curve indicating a contour of an object on an image, and an image input means for inputting an image. Point sequence generating means for generating an appropriate sequence of relay points from a curve by inputting an external input curve approximating an object contour curve on the image; and inputting the generated sequence of relay points By using the image information and the information of the two points between each two points adjacent to each other,
Curve reconstruction for calculating a nearby route of the contour between each of the two points using a route search parameter optimized so as to optimize a preset route search calculation, and generating a curve using the calculation result Means.

【0047】上記の課題を解決するために提案する本発
明の輪郭曲線生成方法は、画像上の物体の輪郭を示す輪
郭曲線を生成する方法であって、画像を入力する画像入
力工程と、上記画像上の物体輪郭曲線を近似する外部入
力曲線を入力として曲線から適当な中継点列を生成する
点列生成工程と、上記生成された中継点列を入力とし
て、上記中継点列の互いに隣り合う各2点間について、
上記画像情報と上記2点の情報とを用いて、予め設定さ
れた経路探査計算を最適化するように最適化される経路
探査パラメータを用いて上記各2点間の輪郭の近傍経路
を計算し、その計算結果を用いて曲線を生成する曲線再
構成工程とを有することを特徴とするものである。
A contour curve generating method according to the present invention proposed to solve the above-mentioned problem is a method for generating a contour curve indicating a contour of an object on an image, comprising: an image inputting step of inputting an image; A point sequence generating step of inputting an external input curve approximating an object contour curve on an image to generate an appropriate relay point sequence from the curve, and inputting the generated relay point sequence as an input and adjoining the relay point sequence About each two points,
Using the image information and the information of the two points, a route near the contour between the two points is calculated using a route search parameter optimized so as to optimize a preset route search calculation. And a curve reconstructing step of generating a curve using the calculation result.

【0048】上記の課題を解決するために提案する本発
明の記録媒体は、画像上の物体の輪郭を示す輪郭曲線を
生成するプログラムを記録した記録媒体であり、上記輪
郭曲線を生成するプログラムは、画像を入力する画像入
力工程と、上記画像上の物体輪郭曲線を近似する外部入
力曲線を入力として曲線から適当な中継点列を生成する
点列生成工程と、上記生成された中継点列を入力とし
て、上記中継点列の互いに隣り合う各2点間について、
上記画像情報と上記2点の情報とを用いて、予め設定さ
れた経路探査計算を最適化するように最適化される経路
探査パラメータを用いて上記各2点間の輪郭の近傍経路
を計算し、その計算結果を用いて曲線を生成する曲線再
構成工程とを有することを特徴とするものである。
A recording medium of the present invention proposed to solve the above-mentioned problem is a recording medium on which a program for generating a contour curve indicating a contour of an object on an image is recorded. An image input step of inputting an image, a point sequence generating step of generating an appropriate relay point sequence from a curve by inputting an external input curve approximating an object contour curve on the image, and the generated relay point sequence. As an input, between each two adjacent points of the relay point sequence,
Using the image information and the information of the two points, a route near the contour between the two points is calculated using a route search parameter optimized so as to optimize a preset route search calculation. And a curve reconstructing step of generating a curve using the calculation result.

【0049】上記の課題を解決するために提案する本発
明の輪郭曲線編集装置は、中継点列に基づいて抽出され
た輪郭曲線に追加操作を行うことができる輪郭曲線編集
装置であって、画像を入力する画像入力手段と、上記画
像上で中継点を任意の位置に操作する点操作入力手段
と、上記点操作入力を保持されている中継点列データに
反映させる点列編集手段と、上記保持されている中継点
列データの互いに隣り合う各2点間について、上記画像
情報と上記2点の情報とを用いて予め設定された経路探
査計算を最適化するように変更される経路探査パラメー
タを用いて計算される上記各2点間の輪郭の近傍経路計
算結果を用いて曲線を生成する曲線生成手段とを備える
ことを特徴とするものである。
A contour curve editing apparatus according to the present invention proposed to solve the above-mentioned problem is a contour curve editing apparatus capable of performing an additional operation on a contour curve extracted based on a sequence of relay points. Image input means for inputting, a point operation input means for operating a relay point at an arbitrary position on the image, a point sequence editing means for reflecting the point operation input to held relay point sequence data, A path search parameter that is changed so as to optimize a predetermined path search calculation using the image information and the information of the two points between two adjacent points of the held relay point sequence data. And a curve generating means for generating a curve using a result of calculation of a neighboring path of the contour between each of the two points calculated using the above.

【0050】上記の課題を解決するために提案する本発
明の輪郭曲線編集方法は、中継点列に基づいて抽出され
た輪郭曲線に追加操作を行うことができる輪郭曲線編集
方法であって、画像を入力する画像入力工程と、上記画
像上で中継点を任意の位置に操作する点操作入力工程
と、上記点操作入力を、保持されている中継点列データ
に反映させる点列編集工程と、上記保持されている中継
点列データの互いに隣り合う各2点間について、上記画
像情報と上記2点の情報とを用いて予め設定された経路
探査計算を最適化するように変更される経路探査パラメ
ータを用いて計算される上記各2点間の輪郭の近傍経路
計算結果を用いて曲線を生成する曲線生成工程とを有す
ることを特徴とするものである。
The contour curve editing method of the present invention proposed to solve the above-mentioned problem is a contour curve editing method capable of performing an additional operation on a contour curve extracted based on a sequence of relay points. An image input step of inputting, a point operation input step of operating a relay point at an arbitrary position on the image, and a point sequence editing step of reflecting the point operation input on the held relay point sequence data, A path search that is changed so as to optimize a preset path search calculation using the image information and the information of the two points between each two adjacent points of the held relay point sequence data. A curve generating step of generating a curve using a result of calculation of a neighboring path of the contour between the two points calculated using the parameters.

【0051】上記の課題を解決するために提案する本発
明の記録媒体は、中継点列に基づいて抽出された輪郭曲
線に追加操作を行う輪郭曲線編集プログラムを記録した
記録媒体であり、上記輪郭曲線編集プログラムは、画像
を入力する画像入力工程と、上記画像上で中継点を任意
の位置に操作する点操作入力工程と、上記点操作入力
を、保持されている中継点列データに反映させる点列編
集工程と、上記保持されている中継点列データの互いに
隣り合う各2点間について、上記画像情報と上記2点の
情報とを用いて予め設定された経路探査計算を最適化す
るように変更される経路探査パラメータを用いて計算さ
れる上記各2点間の輪郭の近傍経路計算結果を用いて曲
線を生成する曲線生成工程とを有することを特徴とする
ものである。
The recording medium of the present invention proposed to solve the above-mentioned problem is a recording medium in which a contour curve editing program for performing an additional operation on a contour curve extracted based on a relay point sequence is recorded. The curve editing program includes an image input step of inputting an image, a point operation input step of operating a relay point at an arbitrary position on the image, and reflecting the point operation input on held relay point sequence data. In the point sequence editing step, between the two points adjacent to each other in the held relay point sequence data, the route search calculation set in advance is optimized using the image information and the information of the two points. And a curve generating step of generating a curve using a result of calculation of a neighboring path of the contour between the two points calculated using the path search parameter changed to (a).

【0052】上記の本発明によれば、オペレータの簡単
な操作により、正確な輪郭検出を行うことができる経路
探査装置および方法、輪郭曲線生成装置および方法、輪
郭曲線編集装置および方法、並びにプログラムを記録し
た記録媒体を提供することができる。
According to the present invention described above, a path searching apparatus and method, a contour curve generating apparatus and method, a contour curve editing apparatus and method, and a program which can perform accurate contour detection by a simple operation of an operator are provided. A recorded recording medium can be provided.

【0053】[0053]

【発明の実施の形態】以下に、本発明の好ましい実施の
形態について、図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings.

【0054】まず、本発明の実施の一形態としての経路
探査装置および経路探査方法について説明する。
First, a route searching device and a route searching method according to an embodiment of the present invention will be described.

【0055】図1は、本発明に係る経路探査装置の主要
部の構成例を示すブロック図である。この経路探査装置
は、画像から物体の輪郭を抽出して、その輪郭形状を示
す曲線を生成し、また抽出された輪郭に対して、オペレ
ータが修正操作を加えることにより、所望の輪郭が得ら
れるように輪郭曲線の再計算がなされるようになってい
る。
FIG. 1 is a block diagram showing a configuration example of a main part of a route search device according to the present invention. This path finding apparatus extracts a contour of an object from an image, generates a curve indicating the contour shape, and performs a correction operation on the extracted contour to obtain a desired contour. Thus, the recalculation of the contour curve is performed.

【0056】具体的には、この経路探査装置は、画像上
の曲線の経路を探査する機能を有し、2点選択手段15
1、経路探査処理最適化手段152、経路探査手段15
3、曲線近似手段154からなる各処理手段と、経路デ
ータ格納手段23を備えて構成されている。
More specifically, this route searching device has a function of searching for a curved route on an image, and has a function of selecting two points.
1. Route search processing optimization means 152, path search means 15
3. Each processing unit including the curve approximation unit 154 and the route data storage unit 23.

【0057】2点選択手段151は、点列データ格納手
段16から連続する2点を選択して出力する。
The two-point selecting means 151 selects and outputs two consecutive points from the point sequence data storing means 16.

【0058】経路探査処理最適化手段152は、上記の
選択された2点と画像データ格納手段17からの画像デ
ータとから、経路探査方法を最適化するパラメータを算
出して経路探査手段153に送る。
The route search processing optimizing means 152 calculates parameters for optimizing the route searching method from the selected two points and the image data from the image data storage means 17 and sends them to the route searching means 153. .

【0059】経路探査手段153は、経路探査処理最適
化手段152が算出したパラメータに基づいて経路探査
処理方法を決定し、上記の選択された2点を結び、画像
中の輪郭上を通過する経路を算出して経路データ格納手
段23に保持する。
The route search means 153 determines a route search processing method based on the parameters calculated by the route search processing optimization means 152, connects the two selected points, and passes a route passing on the contour in the image. Is calculated and stored in the route data storage means 23.

【0060】ここで、経路データとは、上記の2点を結
ぶ8近傍線図形を表す画素座標のリストである。経路探
査手段153は、図1中に破線で示されるように、2点
選択手段151に制御情報を送り、次の2点を選択する
ようにする。従って、点列データ格納手段16の各点間
について経路探査が行われ、その全てが経路データ格納
手段23に蓄積されるようになっている。
Here, the path data is a list of pixel coordinates representing eight near-line figures connecting the above two points. The route searching means 153 sends control information to the two-point selecting means 151 so as to select the next two points, as indicated by a broken line in FIG. Therefore, a path search is performed between points in the point sequence data storage means 16, and all of them are stored in the path data storage means 23.

【0061】2点選択手段151が、点列の最後まで選
択し終り新しい2点を出力できなくなったとき、図1中
に破線で示されるように曲線近似手段154に対して制
御情報を送り、曲線近似手段154の動作を促す。曲線
近似手段154は、経路データ格納手段23に蓄積され
た経路を曲線近似し、輪郭形状を表す曲線データを作成
して曲線データ格納手段18に保持する。
When the two-point selecting means 151 selects all the points to the end of the point sequence and cannot output new two points, it sends control information to the curve approximating means 154 as shown by the broken line in FIG. The operation of the curve approximation means 154 is prompted. The curve approximating means 154 approximates the path stored in the path data storing means 23 with a curve, creates curve data representing a contour shape, and holds the curve data in the curve data storing means 18.

【0062】次に、本発明に係る経路探査方法につい
て、図2および図1の経路探査装置の構成を参照しなが
ら説明する。
Next, a route search method according to the present invention will be described with reference to the configuration of the route search device shown in FIGS.

【0063】図2は、本発明に係る経路探査方法の基本
的な処理手順を示すフローチャートである。
FIG. 2 is a flowchart showing a basic processing procedure of the route searching method according to the present invention.

【0064】まず、ステップS1で、2点選択手段15
1が、点列データ格納手段16の中から連続する2点を
選択して出力する。
First, in step S1, the two-point selecting means 15
1 selects and outputs two consecutive points from the point sequence data storage means 16.

【0065】次に、ステップS2で、経路探査パラメー
タの最適化が行われる。点選択手段151により選択さ
れた2点と画像とをもとに、経路探査処理最適化手段1
52で経路探査パラメータが算出される。
Next, in step S2, optimization of the route search parameters is performed. On the basis of the two points selected by the point selection unit 151 and the image, the route search processing optimization unit 1
At 52, route search parameters are calculated.

【0066】次に、ステップS3で、経路探査が行われ
る。経路探査手段153は、第2のステップで得られた
経路探査パラメータをもとに経路探査方法を決定し、上
記の2点を結ぶ輪郭を8近傍経路の形で抽出する。
Next, in step S3, a route search is performed. The route search means 153 determines a route search method based on the route search parameters obtained in the second step, and extracts a contour connecting the above two points in the form of an eight-neighbor route.

【0067】そして、ステップS4で、全ての中継点間
の経路探査が終了したかどうかが判断され、終了してい
なければステップS1に戻り、前回選択された2点から
1点ずらした2点を選択して、ステップS2、ステップ
S3を繰り返す。一方、ステップS4で、全ての中継点
間の経路探査が終了したと判断されたときは、ステップ
S5に進む。
Then, in step S4, it is determined whether or not the route search between all the relay points has been completed. If not, the process returns to step S1, and two points shifted by one point from the two points selected last time are determined. Select and repeat steps S2 and S3. On the other hand, if it is determined in step S4 that the route search between all the relay points has been completed, the process proceeds to step S5.

【0068】ステップS5では、8近傍経路を近似する
輪郭曲線を生成して、処理を終了する。曲線近似手段1
54は、経路データ格納手段23に蓄積された経路デー
タを曲線近似して輪郭形状を表す曲線データを作成す
る。
In step S5, a contour curve approximating the eight neighboring routes is generated, and the process ends. Curve approximation means 1
A curve 54 approximates the path data stored in the path data storage means 23 to create curve data representing a contour shape.

【0069】ここで、本実施の形態における曲線近似手
段154は、本願出願人が特願平8−303687号公
報「曲線生成装置及び曲線生成方法」で開示した技術に
よって実現することができる。この技術は、座標リスト
を近似する曲線を得る方法であり、いわゆる曲線近似方
法の一つであり、入力データの次数を、十分近似できる
範囲で分割しながら近似する方法によって、従来の曲線
近似よりもノイズにロバストでかつ効率がよい方法であ
る。
Here, the curve approximating means 154 in the present embodiment can be realized by the technique disclosed in Japanese Patent Application No. 8-303687, entitled "Curve Generating Apparatus and Method". This technique is a method of obtaining a curve that approximates a coordinate list, and is one of the so-called curve approximation methods. Is also a robust and efficient method for noise.

【0070】しかし、本実施の形態における曲線近似手
段154は、一連の座標リストを曲線近似する方法であ
ればよく、一般的に用いられているB−スプライン(sp
line)曲線を生成するなどの方法により実現してもよ
い。
However, the curve approximating means 154 in this embodiment may be any method as long as it is a method of approximating a series of coordinate lists with a curve, and a commonly used B-spline (sp
line) may be realized by a method such as generating a curve.

【0071】なお、一般的な曲線近似・補間方法につい
ては、「数値計算ハンドブック」(大野豊,磯田和男,
オーム社,1990)、「コンピュータディスプレイによる
形状処理工学 [I][II]」(山口富士夫,日刊工業新聞
社,1982)、「Computer Graphics Principles and Pra
ctice」(Foly, vanDam, Feiner, and Hughes, Addison
Wesley社, 1990 )等の文献に詳しく記載されている。
For a general curve approximation / interpolation method, see “Numerical Calculation Handbook” (Yutaka Ohno, Kazuo Isoda,
Ohmsha, 1990), "Shape processing engineering by computer display [I] [II]" (Fujio Yamaguchi, Nikkan Kogyo Shimbun, 1982), "Computer Graphics Principles and Pra
ctice "(Foly, vanDam, Feiner, and Hughes, Addison
Wesley, 1990).

【0072】次に、経路探査処理最適化手段152およ
び経路探査手段153について、さらに詳細に説明す
る。
Next, the path search processing optimizing means 152 and the path search means 153 will be described in more detail.

【0073】図3は、本発明に係る経路探査装置の経路
探査を行う部分を抜き出したブロック図である。
FIG. 3 is a block diagram showing a portion of the route search device according to the present invention where a route search is performed.

【0074】この経路探査装置の特徴は、経路探査処理
最適化手段152を備えることにより、入力された2点
に最適化された経路探査処理を行うようにされている点
である。ここでは、経路探査処理最適化手段152は、
後述する2種類の経路探査パラメータを出力するように
なっている。
The feature of this route search device is that the route search process optimizing means 152 is provided so that the route search process optimized for the two input points is performed. Here, the route search processing optimization means 152
Two types of route search parameters to be described later are output.

【0075】図4は、経路探査処理最適化手段152の
内部構成を示している。
FIG. 4 shows the internal configuration of the route search processing optimizing means 152.

【0076】経路探査処理最適化手段152は、通過コ
スト計算範囲決定手段156と通過コスト計算決定最適
化手段157により構成される。
The route search processing optimizing means 152 is composed of a passing cost calculation range determining means 156 and a passing cost calculation determining optimizing means 157.

【0077】通過コスト計算範囲決定手段156は、選
択された2点を入力として計算範囲パラメータを出力す
る。
The passing cost calculation range determining means 156 outputs a calculation range parameter with the selected two points as inputs.

【0078】また、通過コスト計算最適化手段157
は、選択された2点と画像データとから通過コスト計算
パラメータを出力する。
The passing cost calculation optimizing means 157
Outputs a passing cost calculation parameter from the selected two points and the image data.

【0079】そして、これら2種類の経路探査パラメー
タは、経路探査手段153に入力されて経路探査方法を
決定するのに用いられる。
Then, these two types of route search parameters are input to the route search means 153 and used to determine a route search method.

【0080】図5は、経路探査処理最適化手段152に
おける処理手順を示すフローチャートである。
FIG. 5 is a flowchart showing a processing procedure in the route search processing optimizing means 152.

【0081】まず、ステップS11で、通過コスト計算
パラメータの最適化が行われる。通過コスト計算最適化
手段157では、選択された2点(点1および点2)と
画像とから通過コスト計算パラメータが計算される。
First, in step S11, optimization of the passing cost calculation parameter is performed. The passing cost calculation optimizing means 157 calculates a passing cost calculation parameter from the selected two points (point 1 and point 2) and the image.

【0082】次に、ステップS12で、通過コスト計算
範囲パラメータの最適化が行われ、処理を終了する。通
過コスト計算範囲決定手段156により選択された2点
を入力として計算範囲パラメータを算出する。
Next, in step S12, optimization of the passing cost calculation range parameter is performed, and the process ends. The calculation range parameter is calculated using the two points selected by the passing cost calculation range determining means 156 as inputs.

【0083】図6は、図4中の通過コスト計算パラメー
タに関する処理を行う部分をさらに詳細に示したブロッ
ク図である。
FIG. 6 is a block diagram showing, in more detail, a portion for performing processing relating to the passing cost calculation parameter in FIG.

【0084】通過コスト計算最適化手段157は、グラ
ディエントパラメータ決定手段158を備えて構成され
る。
The passing cost calculation optimizing means 157 is provided with a gradient parameter determining means 158.

【0085】また、経路探査手段153は、通過コスト
計算手段159、最小コスト経路算出手段161、およ
び後述する通過コストマップというデータを格納するた
めの通過コストマップ格納手段160を備えて構成され
る。
The route search means 153 includes a passing cost calculating means 159, a minimum cost route calculating means 161, and a passing cost map storing means 160 for storing data called a passing cost map to be described later.

【0086】グラディエントパラメータ決定手段158
は、画像と2点を入力とし、上記2点間の輪郭を抽出す
るのに最適なグラディエントパラメータを算出し、経路
探査手段153の通過コスト計算手段159に出力す
る。
Gradient parameter determining means 158
Takes an image and two points as input, calculates a gradient parameter optimal for extracting a contour between the two points, and outputs the gradient parameter to the passage cost calculating means 159 of the path searching means 153.

【0087】通過コスト計算手段159は、画像と点1
と前記グラディエントパラメータと、図4で示す通過コ
スト計算範囲決定手段156が出力する計算範囲パラメ
ータとを入力とし、通過コストマップを算出する。
The passing cost calculating means 159 calculates the image and the point 1
And the gradient parameters and the calculation range parameter output by the passing cost calculation range determining means 156 shown in FIG.

【0088】最小コスト経路算出手段161は、通過コ
ストマップと点2とを入力とし、点1と点2との間を、
輪郭をたどって連結する経路を算出する。
The minimum cost route calculating means 161 receives the passing cost map and the point 2 as inputs, and
Calculate a path that follows and connects the contours.

【0089】図7は、経路探査手段153における処理
手順を示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure in the route search means 153.

【0090】まず、ステップS21で、後述する通過コ
スト計算手段159が、通過コストマップを計算する。
First, in step S21, a passing cost calculating means 159, which will be described later, calculates a passing cost map.

【0091】次に、ステップS22で、最小コスト経路
算出手段161が、最小コスト経路を算出する。この動
作の詳細については後述する。
Next, in step S22, the minimum cost route calculating means 161 calculates the minimum cost route. Details of this operation will be described later.

【0092】図8は、上述した通過コスト計算パラメー
タに関する処理を行う部分の構成をさらに詳しく示して
いる。
FIG. 8 shows in more detail the configuration of the part that performs the processing relating to the above-mentioned passing cost calculation parameters.

【0093】本実施の形態では、通過コスト計算パラメ
ータとは、画像のグラディエントを計算する上で必要な
2種類のパラメータである。第1のパラメータは輪郭の
進む方向とは垂直な方向を示す法線ベクトルであり、第
2のパラメータは輪郭を横切る方向に観測したときの画
素値の変化を示す画素値色変化ベクトルである。
In the present embodiment, the passing cost calculation parameters are two kinds of parameters necessary for calculating the gradient of an image. The first parameter is a normal vector indicating a direction perpendicular to the direction in which the contour advances, and the second parameter is a pixel value color change vector indicating a change in pixel value when observed in a direction crossing the contour.

【0094】また、経路探査手段153は、物体輪郭は
グラディエント強度が強いことを利用して、グラディエ
ント強度がより強いところをなるべく通過するような画
像上の経路を抽出する処理を行う。
The path searching means 153 performs processing for extracting a path on an image that passes through a place where the gradient intensity is higher as much as possible, utilizing the fact that the object contour has a higher gradient intensity.

【0095】通過コスト計算手段159は、以上の処理
を行うために、グラディエント算出手段164と、通過
コストマップ算出手段165と、グラディエントデータ
格納手段21から構成される。
The passing cost calculating means 159 comprises a gradient calculating means 164, a passing cost map calculating means 165, and the gradient data storing means 21 for performing the above processing.

【0096】グラディエント算出手段164は、画像の
グラディエントを計算し、通過コストマップ算出手段1
65は、得られたグラディエントをもとに、グラディエ
ント強度がより強いところを通過するとコストが安くな
るような通過コストマップを算出する。通過コストマッ
プ算出手段165には、点1の位置が入力され、通過コ
ストマップの起点は点1に設定される。
The gradient calculating means 164 calculates the gradient of the image, and calculates the passing cost map calculating means 1.
65 calculates a passing cost map based on the obtained gradient such that the cost is reduced when passing through a place where the gradient intensity is higher. The position of point 1 is input to the passing cost map calculating means 165, and the starting point of the passing cost map is set to point 1.

【0097】ここで、グラディエント算出手段164
は、本願出願人が特願平7−134420号公報「エッ
ジ検出方法及びエッジ検出装置」で開示した技術を用い
て、必要な輪郭のグラディエント成分のみを選択的に検
出する。このグラディエント算出手段164により、入
力された2点間を連結するように延びる輪郭のグラディ
エントを選択的に抽出するようにグラディエントが計算
される。
Here, the gradient calculating means 164
Uses the technology disclosed by the present applicant in Japanese Patent Application No. Hei 7-134420, "Edge Detection Method and Edge Detector", to selectively detect only a gradient component of a necessary contour. The gradient calculating means 164 calculates a gradient so as to selectively extract a gradient of a contour extending so as to connect the two input points.

【0098】次に、上述した2種類の経路探査パラメー
タの計算過程について詳細に説明する。
Next, the process of calculating the above two types of route search parameters will be described in detail.

【0099】まず、通過コスト計算パラメータの計算
と、それが利用される過程について説明する。
First, the calculation of the passing cost calculation parameter and the process in which it is used will be described.

【0100】図9は、グラディエントパラメータ決定手
段158における処理手順を示すフローチャートであ
る。
FIG. 9 is a flowchart showing a processing procedure in the gradient parameter determining means 158.

【0101】ステップS31で、法線ベクトル計算手段
162が、入力された点1と点2を結ぶ方向に垂直な法
線ベクトルを算出して出力する。
In step S31, the normal vector calculation means 162 calculates and outputs a normal vector perpendicular to the direction connecting the input points 1 and 2.

【0102】ステップS32で、画素値変化ベクトル計
算手段が、画像上の点1と点2の近傍領域において、2
点を結ぶ方向とは垂直な方向に観測したときの画像の画
素値の変化、例えば色変化方向を計算し、それを色変化
ベクトルとして出力する。
In step S32, the pixel value change vector calculation means calculates the value of 2 in the area near point 1 and point 2 on the image.
A change in the pixel value of the image when observed in a direction perpendicular to the direction connecting the points, for example, a color change direction is calculated and output as a color change vector.

【0103】ここで、通過コストマップとは各画素にお
いて、最小の通過コストでその画素位置に進入する方向
が記録された情報である。
Here, the passing cost map is information in which the direction in which each pixel enters the pixel position with the minimum passing cost is recorded.

【0104】図10は、簡単な通過コストマップの一例
を示している。
FIG. 10 shows an example of a simple passing cost map.

【0105】通過コストマップは、前記の通過コスト計
算範囲パラメータで指定された画像中の一範囲について
作成される。ここでは、ある小さな4辺形領域に作成さ
れた例を示している。
The passing cost map is created for one range in the image specified by the passing cost calculation range parameter. Here, an example is shown in which the image is created in a certain small quadrilateral region.

【0106】図10(A)では、前記の各画素における
最小の通過コストでその画素位置に進入する方向を矢印
で示す。この方向は、各画素にただ一つ決まるように計
算される。各画素に記された値は、前記最小の通過コス
ト方向に従って進入したときの通過コストの累積値であ
る。この累積値は経路探査の起点となる点1を累積値0
として求められる。
In FIG. 10A, the direction in which each pixel enters the pixel position with the minimum passing cost is indicated by an arrow. This direction is calculated so that only one is determined for each pixel. The value described for each pixel is the cumulative value of the passing cost when the vehicle enters the vehicle in the minimum passing cost direction. This accumulated value is calculated from the point 1 which is the starting point of the route search to the accumulated value 0.
Is required.

【0107】図10(B)は、図10(A)のように通
過コストマップが得られたときに、最小コスト経路算出
手段161が経路を求める過程を示している。
FIG. 10B shows a process in which the minimum cost route calculating means 161 obtains a route when the passing cost map is obtained as shown in FIG. 10A.

【0108】最小コスト経路算出手段161は、通過コ
ストマップと点2を入力とし、点2から通過コストマッ
プの最小の通過コスト方向を逆にたどることによって、
点1から点2にいたる最小コストの経路を求める。例え
ば、図10(B)で示される位置(累積コストが22)
に点2があった場合、そこから矢印をたどることにより
(図10(A)とは逆方向に書かれている)、斜線で示
されるような点1までの経路を求める。
The minimum cost route calculating means 161 receives the passing cost map and the point 2 as inputs, and traces the minimum passing cost direction of the passing cost map from the point 2 in reverse.
The path with the minimum cost from point 1 to point 2 is found. For example, the position shown in FIG. 10B (the accumulated cost is 22)
If there is a point 2, a path to the point 1 as shown by oblique lines is obtained by following the arrow from the point 2 (written in a direction opposite to that of FIG. 10A).

【0109】次に、上述したような通過コストマップを
高速に算出する手段について説明する。
Next, a means for calculating the above-mentioned passage cost map at high speed will be described.

【0110】通過コストマップの算出は、一般に最適化
問題の一種として知られ、動的計画法などを用いて計算
する方法が良く知られている。前述の文献「Intelligen
t Scissors for Image Composition」にも動的計画法を
用いた方法が記載されている。
The calculation of the passing cost map is generally known as a kind of optimization problem, and a calculation method using dynamic programming or the like is well known. The aforementioned reference `` Intelligen
t Scissors for Image Composition "also describes a method using dynamic programming.

【0111】図11は、動的計画法を用いた最短経路探
査アルゴリズムに関する記述の例を示している。なお、
この記述は、上記の文献「Intelligent Scissors for I
mageComposition」に記載されているものから、記号等
を一部変えたものである。
FIG. 11 shows an example of a description regarding a shortest path search algorithm using dynamic programming. In addition,
This description is based on the above-mentioned document "Intelligent Scissors for I
mageComposition ”, with some symbols and the like changed.

【0112】次に、計算範囲パラメータの計算と、それ
が利用される過程について説明する。
Next, the calculation of the calculation range parameter and the process of using it will be described.

【0113】図12は、図4中の計算範囲パラメータに
関する処理を行う部分を、さらに詳細に示すブロック図
である。
FIG. 12 is a block diagram showing, in more detail, a portion for performing processing relating to the calculation range parameter in FIG.

【0114】通過コスト計算範囲決定手段156は、距
離算出手段167と計算範囲幅算出手段168と計算範
囲長算出手段169と計算範囲算出手段170とを備え
て構成される。
The passing cost calculation range determining means 156 comprises distance calculating means 167, calculation range width calculating means 168, calculation range length calculating means 169, and calculation range calculating means 170.

【0115】距離算出手段167は、点1、点2を入力
として、その2点間の距離と2点を結ぶ方向とを算出す
る。
The distance calculating means 167 receives points 1 and 2 as inputs and calculates the distance between the two points and the direction connecting the two points.

【0116】計算範囲長算出手段169は、得られた2
点間の距離を入力として計算範囲長を算出する。
The calculation range length calculation means 169 calculates the obtained 2
The calculation range length is calculated using the distance between the points as input.

【0117】計算範囲幅算出手段168は、得られた2
点間の距離を入力として計算範囲幅を算出する。
The calculation range width calculation means 168 calculates the obtained 2
The calculation range width is calculated using the distance between the points as input.

【0118】計算範囲算出手段170は、上記の計算範
囲長と計算範囲幅および距離算出手段167が出力した
2点間を結ぶ方向とをもとに、計算範囲の形状を定める
計算範囲パラメータを算出して、経路探査手段153の
通過コスト計算手段159に入力する。通過コスト計算
手段159は、計算範囲パラメータで示された範囲で、
通過コストマップを算出する。
The calculation range calculation means 170 calculates calculation range parameters for determining the shape of the calculation range based on the calculation range length, the calculation range width, and the direction connecting the two points output by the distance calculation means 167. Then, it is input to the passage cost calculation means 159 of the route search means 153. The passing cost calculation means 159 sets the
Calculate the passing cost map.

【0119】図13は、図12の通過コスト計算範囲決
定手段156における処理手順を示すフローチャートで
ある。
FIG. 13 is a flowchart showing a processing procedure in the passing cost calculation range determining means 156 of FIG.

【0120】まず、ステップS41で、距離算出手段1
67が、点1および点2を入力として、その2点間の距
離と2点を結ぶ方向とを算出する。
First, at step S41, the distance calculating means 1
67 inputs the points 1 and 2 and calculates the distance between the two points and the direction connecting the two points.

【0121】次に、ステップS42で、上記の2点間の
距離を入力として、計算範囲幅が算出される。ここで、
計算範囲幅算出手段168は、2点間の距離の大きさに
対する計算範囲幅の大きさの規則を、計算式あるいは参
照テーブル等の形式でその内部に持っており、その規則
に従って計算範囲幅を決定する。例えば、オペレータ
が、所望の輪郭を得るために短い間隔で詳細に中継点を
設定しようとしても、探査された経路が中継点間で蛇行
してしまい所望の輪郭の形状と異なってしまう問題は、
前記計算範囲幅を決定する規則を、2点間の距離が小さ
いほど幅が小さくなるような規則にすることにより解決
することができる。
Next, in step S42, the calculation range width is calculated using the distance between the two points as an input. here,
The calculation range width calculation means 168 has therein a rule of the size of the calculation range width for the size of the distance between two points in the form of a calculation formula or a lookup table, and calculates the calculation range width according to the rule. decide. For example, even if the operator tries to set relay points in detail at short intervals in order to obtain a desired contour, the problem that the searched path meanders between the relay points and differs from the desired contour shape is a problem.
This can be solved by setting the rule for determining the calculation range width such that the smaller the distance between the two points, the smaller the width.

【0122】このとき、短い間隔で詳細に設定された中
継点間の計算範囲幅は、非常に狭くなるように決定さ
れ、中継点をほぼ直線で結ぶように経路探査が行われ、
オペレータの所望の輪郭形状が得られる。
At this time, the calculation range width between the relay points set in detail at short intervals is determined to be very narrow, and a route search is performed so as to connect the relay points with a substantially straight line.
The contour shape desired by the operator is obtained.

【0123】次に、ステップS43で、計算範囲長算出
手段169が、2点間の距離から計算範囲長を計算す
る。ここで、計算範囲長は、2点間の距離よりも予め定
められたマージン長だけ長くなるように決定される。
Next, in step S43, the calculation range length calculation means 169 calculates the calculation range length from the distance between the two points. Here, the calculation range length is determined to be longer than the distance between two points by a predetermined margin length.

【0124】最後に、ステップS44で、計算範囲算出
手段170が、計算範囲幅と計算範囲長と2点を結ぶ方
向とから、計算範囲パラメータを計算する。ここで、計
算範囲は、入力される2点を囲み、2点を結ぶ方向に傾
いているような矩形であり、計算範囲パラメータはその
矩形の4隅の位置を示す。
Finally, in step S44, the calculation range calculation means 170 calculates the calculation range parameters from the calculation range width, the calculation range length, and the direction connecting the two points. Here, the calculation range is a rectangle that surrounds two input points and is inclined in a direction connecting the two points, and the calculation range parameter indicates the positions of the four corners of the rectangle.

【0125】次に、点列生成手段12について説明す
る。
Next, the point sequence generation means 12 will be described.

【0126】点列生成手段12は、曲線を入力とし、そ
の形状を再現する点列とその点列によって再構成された
再構成曲線を出力するものである。生成された点列と再
構成曲線は、第1の実施例の構成により、その後の曲線
編集作業に用いられる。
The point sequence generating means 12 receives a curve as input and outputs a point sequence reproducing its shape and a reconstructed curve reconstructed by the point sequence. The generated point sequence and the reconstructed curve are used in the subsequent curve editing work by the configuration of the first embodiment.

【0127】図14は、点列生成手段12の構成例を示
すブロック図である。
FIG. 14 is a block diagram showing an example of the configuration of the point sequence generation means 12. As shown in FIG.

【0128】この点列生成手段12は、初期点列生成手
段171、曲線再構成手段172、差分検出手段17
3、点列編集手段14と、画像データ格納手段17、点
列データ格納手段16、再構成曲線データ格納手段19
を備えて構成される。
The point sequence generating means 12 includes an initial point sequence generating means 171, a curve reconstructing means 172, a difference detecting means 17
3. Point sequence editing means 14, image data storage means 17, point sequence data storage means 16, reconstruction curve data storage means 19
It is comprised including.

【0129】初期点列生成手段171は、入力曲線と画
像とを入力として初期点列を生成する。初期点列は、点
列データ格納手段16に格納される。
The initial point sequence generating means 171 generates an initial point sequence using an input curve and an image as inputs. The initial point sequence is stored in the point sequence data storage unit 16.

【0130】曲線再構成手段172は、点列と画像とを
入力とし、点列を通過し画像上の輪郭上を通過するよう
な曲線を生成する。
The curve reconstructing means 172 receives a sequence of points and an image, and generates a curve that passes through the sequence of points and passes over a contour on the image.

【0131】差分検出手段173は、入力曲線と再構成
曲線とを入力とし、両者の形状の差を差分として出力す
る。
The difference detection means 173 receives the input curve and the reconstructed curve as inputs, and outputs the difference between the two shapes as a difference.

【0132】点列編集手段14は、差分検出手段173
の出力した差分をもとに、点列データ格納手段16中の
点列データを操作する。
The point sequence editing means 14 includes a difference detecting means 173
The point sequence data in the point sequence data storage means 16 is operated on the basis of the difference output by.

【0133】図15は、点列生成手段12における処理
手順を示すフローチャートである。
FIG. 15 is a flowchart showing a processing procedure in the point sequence generation means 12.

【0134】まず、ステップS51で、初期点列生成手
段171が入力曲線の特徴点抽出を行い、抽出された特
徴点を初期点列として点列データ格納手段16に格納す
る。
First, in step S51, the initial point sequence generating means 171 extracts the characteristic points of the input curve, and stores the extracted characteristic points in the point sequence data storage means 16 as an initial point sequence.

【0135】上記の曲線上の特徴点抽出には、特開平8
−335270号公報記載の「動きベクトル推定方法」
に示されている特徴点抽出方法を用いることができる。
この方法は、曲線の始端から終端までの各点で微小区間
屈曲角を計算し、その総和を累積屈曲角とし、累積屈曲
角が予め定めたしきい値より大きいときに最大の微小区
間屈曲角をとる点を特徴点とするものである。さらに、
特徴点で分割された曲線に対して同様の特徴点抽出処理
を再帰的に行うようにする。
The feature point extraction on the curve is described in
"Motion vector estimation method" described in JP-A-335270
Can be used.
In this method, a minute section bending angle is calculated at each point from the beginning to the end of the curve, and the sum thereof is defined as a cumulative bending angle. When the cumulative bending angle is larger than a predetermined threshold, the maximum minute section bending angle is calculated. Is a feature point. further,
Similar feature point extraction processing is performed recursively on the curve divided by the feature points.

【0136】次に、ステップS52で、曲線再構成手段
172が、点列から前述した本発明に係る経路探査装置
における処理と同様の処理によって再構成曲線を算出す
る。
Next, in step S52, the curve reconstructing means 172 calculates a reconstructed curve from the point sequence by the same processing as the above-described processing in the route searching apparatus according to the present invention.

【0137】次に、ステップS53で、差分検出手段1
73が、入力曲線と再構成曲線の差分を算出する。この
差分検出処理は、再構成曲線上に適当な間隔で差分検出
点をとり、その差分検出点から入力曲線までの距離を測
定して差分値とする。
Next, in step S53, the difference detecting means 1
73 calculates the difference between the input curve and the reconstructed curve. In this difference detection processing, difference detection points are taken at appropriate intervals on the reconstructed curve, and the distance from the difference detection point to the input curve is measured to obtain a difference value.

【0138】次に、ステップS54で、差分検出手段1
73が、予め設定しておいたしきい値よりも大きい差分
値があるかどうかを調べる。もし、上記のしきい値より
大きい差分値がなければ、点列生成手段12の処理は終
了し、その時点の点列データ格納手段16と再構成曲線
データ格納手段19にあるデータが出力となる。一方、
上記のしきい値より大きい差分値があれば、ステップS
55に進む。
Next, at step S54, the difference detecting means 1
73 checks whether there is a difference value larger than a preset threshold value. If there is no difference value larger than the above threshold value, the processing of the point sequence generation means 12 ends, and the data in the point sequence data storage means 16 and the reconstructed curve data storage means 19 at that time are output. . on the other hand,
If there is a difference value larger than the above threshold value, step S
Go to 55.

【0139】ステップS55では、点列編集手段14が
得られた差分をもとに点列データを編集する。差分値が
しきい値より大きいと判断された各差分検出点におい
て、その差分値検出点から一番近い入力曲線上の点に新
たな中継点をおき、点列データ格納手段16に格納す
る。
In step S55, the point sequence editing means 14 edits the point sequence data based on the obtained difference. At each difference detection point where the difference value is determined to be larger than the threshold value, a new relay point is set at a point on the input curve closest to the difference value detection point and stored in the point sequence data storage means 16.

【0140】ステップS55の終了後は、ステップS5
2に戻り、ステップS54で入力曲線と再構成曲線との
差分がしきい値よりも小さくなるまで処理が繰り返され
る。
After the end of step S55, step S5
2, the process is repeated until the difference between the input curve and the reconstructed curve becomes smaller than the threshold value in step S54.

【0141】上記の処理では、初期点列を最初は少なめ
に設定しておき、足りないところに適宜追加するように
するが、初期点列を多めに設定しておき、不必要な点を
削除するようにしてもよい。その場合には、初期点列生
成手段171で入力曲線を十分に折線近似できる程度に
初期点列を生成し、曲線の再構成の後に、差分検出手段
173で、周囲の差分値がしきい値よりも十分に小さい
中継点を選んで削除するようにする。
In the above-described processing, the initial point sequence is set to be small at first, and is appropriately added to places where the initial point sequence is insufficient. However, the initial point sequence is set to be large and unnecessary points are deleted. You may make it. In this case, the initial point sequence generating means 171 generates an initial point sequence to such an extent that the input curve can be sufficiently approximated by a broken line. Select and delete a relay point that is sufficiently smaller than.

【0142】なお、図15に示す処理手順は、より少な
い点で再構成が完了するのでその後の曲線編集しやすさ
が利点であるのに対し、後述する処理手順は、経路探査
を行う中継点間隔を小さくできるために処理時間を短く
できる利点がある。
The processing procedure shown in FIG. 15 is advantageous in that subsequent reconstruction is easy because the reconstruction is completed with fewer points. On the other hand, the processing procedure described later is a relay point for performing a path search. There is an advantage that the processing time can be shortened because the interval can be reduced.

【0143】次に、本発明の実施の一形態としての輪郭
曲線生成装置および輪郭曲線生成方法について説明す
る。なお、以下の説明においても、前述の経路探査装置
の各部と共通する部分には、同一の指示符号を付す。
Next, a contour curve generating device and a contour curve generating method according to an embodiment of the present invention will be described. Note that, in the following description, the same reference numerals are given to portions common to the respective portions of the above-described route search device.

【0144】図16は、本発明に係る輪郭曲線生成装置
の主要部の構成例を示すブロック図である。
FIG. 16 is a block diagram showing a configuration example of a main part of the contour curve generating device according to the present invention.

【0145】この輪郭曲線生成装置は、画像上の物体の
輪郭を示す曲線を生成するためのものであり、図1に示
した経路探査装置を用いて構成されている。
This contour curve generating device is for generating a curve indicating the contour of an object on an image, and is configured using the path search device shown in FIG.

【0146】具体的には、点列補正手段174aと補正
点列データ格納手段20とが追加されており、入力点列
は、点列補正手段174aによって、より良い輪郭曲線
が得られるように補正され、補正点列データ格納手段2
0に格納される。その補正点列に対し、前述した本発明
に係る経路探査装置における処理と同様の曲線生成処理
が行われる。これにより、経路探査において中継点列か
ら生成される輪郭曲線が中継点上を必ずしも通過しなく
てもよいようにすることもできる。
Specifically, a point sequence correcting means 174a and a corrected point sequence data storage means 20 are added, and the input point sequence is corrected by the point sequence correcting means 174a so that a better contour curve can be obtained. And the correction point sequence data storage means 2
0 is stored. A curve generation process similar to the above-described process in the route search device according to the present invention is performed on the correction point sequence. This makes it possible to prevent the contour curve generated from the sequence of relay points in the route search from necessarily passing through the relay points.

【0147】次に、本発明に係る輪郭曲線生成方法につ
いて、図16の輪郭曲線生成装置の構成および図17を
参照しながら説明する。
Next, the contour curve generating method according to the present invention will be described with reference to the configuration of the contour curve generating device of FIG. 16 and FIG.

【0148】図17は、本発明に係る輪郭曲線生成方法
における基本的な処理手順を示すフローチャートであ
る。
FIG. 17 is a flowchart showing a basic processing procedure in the contour curve generating method according to the present invention.

【0149】まず、ステップS61で、点列補正手段1
74aが、入力点列をより良い輪郭曲線が得られるよう
に補正して補正点列データ格納手段20に格納する。
First, in step S61, the point sequence correcting means 1
74a corrects the input point sequence so that a better contour curve is obtained and stores the corrected input point sequence in the corrected point sequence data storage means 20.

【0150】ステップS62以降は、前述した本発明に
係る経路探査方法における処理手順と同様の手順で、補
正点列から曲線が生成される。
After step S62, a curve is generated from the correction point sequence in the same procedure as the above-described processing procedure in the route search method according to the present invention.

【0151】すなわち、ステップS62で、2点選択手
段151が、点列データ格納手段16の中から連続する
2点を選択して出力する。
That is, in step S62, the two-point selecting means 151 selects and outputs two consecutive points from the point sequence data storage means 16.

【0152】次に、ステップS63で、経路探査パラメ
ータの最適化が行われる。点選択手段151により選択
された2点と画像とをもとに、経路探査処理最適化手段
152で経路探査パラメータが算出される。
Next, in step S63, optimization of the route search parameters is performed. Based on the two points selected by the point selection unit 151 and the image, the route search processing optimization unit 152 calculates the route search parameters.

【0153】次に、ステップS64で、経路探査が行わ
れる。経路探査手段153は、第2のステップで得られ
た経路探査パラメータをもとに経路探査方法を決定し、
上記の2点を結ぶ輪郭を8近傍経路の形で抽出する。
Next, in step S64, a route search is performed. The route search means 153 determines a route search method based on the route search parameters obtained in the second step,
The contour connecting the above two points is extracted in the form of an 8-neighbor path.

【0154】そして、ステップS65で、全ての中継点
間の経路探査が終了したかどうかが判断され、終了して
いなければステップS62に戻り、前回選択された2点
から1点ずらした2点を選択して、ステップS63、ス
テップS64を繰り返す。一方、ステップS65で、全
ての中継点間の経路探査が終了したと判断されたとき
は、ステップS67に進む。
Then, in step S65, it is determined whether or not the route search between all the relay points has been completed. If the route search has not been completed, the process returns to step S62, and two points shifted by one point from the previously selected two points are determined. Select and repeat steps S63 and S64. On the other hand, when it is determined in step S65 that the route search between all the relay points has been completed, the process proceeds to step S67.

【0155】ステップS67では、8近傍経路を近似す
る輪郭曲線を生成して、処理を終了する。
In step S67, a contour curve approximating the eight neighboring routes is generated, and the process ends.

【0156】次に、本発明に係る輪郭曲線生成装置につ
いてさらに詳細に説明する。
Next, the contour curve generating device according to the present invention will be described in more detail.

【0157】図18は、本発明に係る輪郭曲線生成装置
の点列補正手段174aの構成例を表すブロック図であ
る。
FIG. 18 is a block diagram showing an example of the configuration of the point sequence correcting means 174a of the contour curve generating device according to the present invention.

【0158】この点列補正手段174aは、1点選択手
段175、グラディエント算出手段164、最大強度点
抽出手段176、グラディエント算出範囲指定手段17
7と、点列データ格納手段16、画像データ格納手段1
7、グラディエントデータ格納手段21、グラディエン
ト算出範囲データ格納手段22、補正点列データ格納手
段20を備えて構成される。
The point sequence correcting means 174a includes a one point selecting means 175, a gradient calculating means 164, a maximum intensity point extracting means 176, and a gradient calculating range specifying means 17
7, point sequence data storage means 16, image data storage means 1
7. Gradient data storage means 21, gradient calculation range data storage means 22, and correction point sequence data storage means 20.

【0159】1点選択手段175は、点列データ格納手
段16から中継点を順番に1点ずつ選択する。
The one-point selecting means 175 selects the relay points from the point sequence data storage means 16 one by one in order.

【0160】グラディエント算出範囲指定手段177
は、オペレータからの入力により、グラディエント算出
手段164において行われる計算が画像上のどの範囲で
行われるかを決定し、グラディエント算出範囲データ格
納手段22に保持する。
Gradient calculation range designating means 177
Determines the range on the image in which the calculation performed by the gradient calculating unit 164 is performed based on the input from the operator, and stores it in the gradient calculating range data storage unit 22.

【0161】グラディエント算出手段164は、画像を
入力とし、予め設定されたグラディエント算出範囲の指
定する領域の画像のグラディエントを算出する。
The gradient calculating means 164 receives the image and calculates the gradient of the image in the area specified by the preset gradient calculation range.

【0162】最大強度点抽出手段176は、算出された
グラディエントをもとにグラディエント強度が最大とな
る点を1点抽出し、補正点列データ格納手段20に保持
する。また、最大強度点抽出手段176は、処理終了後
に1点抽出手段に対して制御信号を送る。1点選択手段
175は、その制御信号により、次の中継点の選択を開
始する。
The maximum intensity point extracting means 176 extracts one point at which the gradient intensity is maximum based on the calculated gradient, and holds the extracted point in the correction point sequence data storage means 20. Further, the maximum intensity point extracting means 176 sends a control signal to the one point extracting means after the processing is completed. The one-point selecting means 175 starts selecting the next relay point according to the control signal.

【0163】図19は、点列補正手段174aにおける
処理手順を示すフローチャートである。なお、ここで
は、グラディエント算出範囲の指定が、予めオペレータ
の入力によってなされたものとして説明する。
FIG. 19 is a flowchart showing a processing procedure in the point sequence correcting means 174a. Here, the description will be given on the assumption that the gradient calculation range is specified in advance by the input of the operator.

【0164】まず、ステップS71で、1点選択手段1
75が点列データ格納手段16から中継点を1点選択す
る。
First, in step S71, the one-point selecting means 1
75 selects one relay point from the point sequence data storage means 16.

【0165】次に、ステップS72で、グラディエント
算出手段164が、予め設定されたグラディエント算出
範囲により指定される画像上の領域のグラディエントを
算出する。
Next, in step S72, the gradient calculating means 164 calculates the gradient of the area on the image specified by the preset gradient calculation range.

【0166】次に、ステップS73で、最大強度点抽出
手段176が、算出されたグラディエントをもとにグラ
ディエント強度が最大となる点を1点抽出する。
Next, in step S73, the maximum intensity point extracting means 176 extracts one point at which the gradient intensity becomes maximum based on the calculated gradient.

【0167】次に、ステップS74で、最大グラディエ
ント強度点が補正点列に追加される。
Next, in step S74, the maximum gradient intensity point is added to the correction point sequence.

【0168】そして、ステップS75で、全ての中継点
についての処理が終了したかどうかが判断される。全て
の中継点についての処理が終了していないときは、ステ
ップS71に戻り、1点選択手段175が次の中継点の
選択を開始する。一方、全ての中継点についての処理が
終了しているときには以上の処理を終了する。
Then, in step S75, it is determined whether or not the processing has been completed for all the relay points. If the processing has not been completed for all the relay points, the process returns to step S71, and the one-point selecting means 175 starts selecting the next relay point. On the other hand, when the processing for all relay points has been completed, the above processing is completed.

【0169】次に、上述した輪郭曲線生成装置の別の実
施の形態について説明する。
Next, another embodiment of the above-described contour curve generating device will be described.

【0170】図20は、本発明に係る輪郭曲線生成装置
の別の構成例(以下では、第2の輪郭曲線生成装置とい
う。)を示すブロック図である。
FIG. 20 is a block diagram showing another configuration example (hereinafter, referred to as a second contour curve generating device) of the contour curve generating device according to the present invention.

【0171】この第2の輪郭曲線生成装置は、2点選択
手段151、経路探査処理最適化手段152、経路探査
手段153、点列補正手段174b、曲線近似手段15
4と、点列データ格納手段16、補正点列データ格納手
段20、画像データ格納手段17、経路データ格納手段
23、曲線データ格納手段18とを備えて構成されてお
り、上述した輪郭曲線生成装置と同様の機能を有してい
る。
The second contour curve generating device includes a two-point selecting means 151, a path searching processing optimizing means 152, a path searching means 153, a point sequence correcting means 174b, and a curve approximating means 15.
4 and a point sequence data storage unit 16, a correction point sequence data storage unit 20, an image data storage unit 17, a path data storage unit 23, and a curve data storage unit 18. It has the same function as.

【0172】この第2の輪郭曲線生成装置では、処理の
開始時に、点列データが補正点列データ格納手段20に
そのままコピーされる。2点選択手段151は、点列デ
ータ格納手段16の中から連続する2点を選択して出力
する。
In the second contour curve generating device, at the start of the processing, the point sequence data is copied to the correction point sequence data storage means 20 as it is. The two-point selecting unit 151 selects and outputs two consecutive points from the point sequence data storage unit 16.

【0173】経路探査処理最適化手段152は、上記の
選択された2点と画像データとから経路探査方法を最適
化するパラメータを算出して経路探査手段153に送
る。
The route search processing optimizing means 152 calculates parameters for optimizing the route search method from the selected two points and the image data, and sends them to the route search means 153.

【0174】経路探査手段153は、経路探査処理最適
化手段152が算出したパラメータをもとに経路探査方
法を決定し、前記選択した2点を結び、画像中の輪郭上
を通過する経路を算出し、経路データ格納手段23に保
持する。
The path searching means 153 determines a path searching method based on the parameters calculated by the path searching processing optimizing means 152, connects the selected two points, and calculates a path passing on the contour in the image. Then, it is stored in the route data storage unit 23.

【0175】経路探査手段153は、破線で示されるよ
うに2点選択手段151に制御情報を送り、次の2点を
選択するようにする。従って、点列データ格納手段16
の各点間について経路探査が行われ、その全てが経路デ
ータ格納手段23に蓄積されるようになっている。
The route searching means 153 sends control information to the two-point selecting means 151 as shown by a broken line, and selects the next two points. Therefore, the point sequence data storage means 16
The route search is performed between the points (1) and (2), and all of them are stored in the route data storage means 23.

【0176】2点選択手段151が点列の最後まで選択
し終り、新しい2点を出力できなくなったとき、破線で
示されるように点列補正手段174bに対して制御情報
を送るようになっている。
When the two-point selecting means 151 has selected all the points up to the end of the point sequence and cannot output new two points, control information is sent to the point-sequence correcting means 174b as shown by the broken line. I have.

【0177】制御情報を受けた点列補正手段174b
は、生成された経路をもとに点列位置を補正し、補正点
列データ格納手段20中に格納されている点列データを
編集する。補正量が0であると判断されたとき、破線で
示されるように点列補正手段は曲線近似手段154に対
して制御情報を送るようになっている。
Point sequence correcting means 174b receiving control information
Corrects the point sequence position based on the generated route, and edits the point sequence data stored in the corrected point sequence data storage means 20. When it is determined that the correction amount is 0, the point sequence correction unit sends control information to the curve approximation unit 154 as indicated by a broken line.

【0178】曲線近似手段154は、得られている経路
を曲線近似して輪郭曲線を生成し、曲線データ格納手段
18に保持する。
The curve approximating means 154 approximates the obtained path by a curve to generate a contour curve, and stores the contour curve in the curve data storing means 18.

【0179】図21は、本発明に係る第2の輪郭曲線生
成装置における処理手順を示すフローチャートである。
FIG. 21 is a flowchart showing a processing procedure in the second contour curve generating device according to the present invention.

【0180】まず、ステップS81で、2点選択手段1
51による点選択が行われる。2点選択手段151は、
点列データ格納手段16の中から連続する2点を選択し
て出力する。
First, in step S81, the two-point selecting means 1
Point selection by 51 is performed. The two-point selection means 151
Two consecutive points are selected from the point sequence data storage means 16 and output.

【0181】次に、ステップS82で、経路探査パラメ
ータの最適化が行われる。点列選択手段178により選
択された2点と画像とをもとに、経路探査処理最適化手
段152により経路探査パラメータが算出される。
Next, in step S82, optimization of the route search parameters is performed. Based on the two points selected by the point sequence selection unit 178 and the image, the route search processing optimizing unit 152 calculates route search parameters.

【0182】次に、ステップS83で、経路探査が行わ
れる。経路探査手段153は、第2のステップで得られ
た経路探査パラメータをもとに経路探査方法を決定し、
上記の2点を結ぶ輪郭を8近傍経路の形で抽出する。
Next, in step S83, a route search is performed. The route search means 153 determines a route search method based on the route search parameters obtained in the second step,
The contour connecting the above two points is extracted in the form of an 8-neighbor path.

【0183】そして、ステップS84で、全ての中継点
間の経路探査が終了したかどうかが判断され、終了して
いなければ、ステップS81に戻り、前回選択された2
点から1点ずらした2点を選択して、ステップS82、
ステップS83を繰り返す。一方、ステップS84で、
全ての中継点間の経路探査が終了したと判断されたとき
は、ステップS85に進む。
Then, in step S84, it is determined whether or not the route search between all the relay points has been completed. If not, the flow returns to step S81 to return to the previously selected 2
Two points shifted by one point from the point are selected, and step S82,
Step S83 is repeated. On the other hand, in step S84,
If it is determined that the route search between all the relay points has been completed, the process proceeds to step S85.

【0184】ステップS85で、繰り返しによって、全
ての中継点間の経路探査がなされた後、点列補正手段1
74bが点列位置を補正し、補正点列データ格納手段2
0に格納されている補正点列データを更新する。
In step S85, after the route search between all the relay points is repeatedly performed, the point sequence correcting means 1
74b corrects the point sequence position, and stores the corrected point sequence data storage means 2
The correction point sequence data stored in 0 is updated.

【0185】そして、ステップS86で、上記の補正量
が予め定めたしきい値以上かどうかが判断される。補正
量がしきい値以上ならば、ステップS81からステップ
S85までを繰り返す。一方、補正量がしきい値以下な
らば、ステップ87に進む。
Then, in a step S86, it is determined whether or not the correction amount is equal to or larger than a predetermined threshold value. If the correction amount is equal to or larger than the threshold, steps S81 to S85 are repeated. On the other hand, if the correction amount is equal to or smaller than the threshold, the process proceeds to step 87.

【0186】ステップS87では、曲線近似手段154
が、経路データを曲線に近似することによって輪郭曲線
を生成する。
In the step S87, the curve approximation means 154
Generates a contour curve by approximating the path data to a curve.

【0187】図22は、第2の輪郭曲線生成装置の点列
補正手段174bの構成例を示すブロック図である。
FIG. 22 is a block diagram showing a configuration example of the point sequence correcting means 174b of the second contour curve generating device.

【0188】この点列補正手段174bは、重複検出手
段179、重複解消手段180、重複検出範囲指定手段
181および重複検出範囲データ格納手段24とを備え
て構成される。
The point sequence correcting means 174b is provided with an overlap detecting means 179, an overlapping eliminating means 180, an overlapping detection range designating means 181 and an overlapping detection range data storage means 24.

【0189】重複検出手段179は、経路データと、補
正点列データ格納手段20中の中継点と、重複検出範囲
データとを入力とし、各中継点から重複検出範囲で示さ
れる領域の中で経路が2度以上通過している画素位置を
検出し、それを重複範囲として出力する。
The duplication detecting means 179 receives the path data, the relay points in the correction point sequence data storage means 20, and the duplication detection range data as input, and sets a path in each of the relay points in the area indicated by the duplication detection range. Detects the pixel position where has passed twice or more, and outputs it as the overlapping range.

【0190】重複解消手段180は、上記の重複範囲が
経路から除外されるように各中継点を移動させる。移動
した中継点位置は補正点として補正点列データ格納手段
20に格納される。
The duplication eliminating means 180 moves each relay point so that the above-mentioned duplication range is excluded from the route. The moved relay point position is stored in the correction point sequence data storage means 20 as a correction point.

【0191】重複検出範囲指定手段181は、オペレー
タからの入力により、重複検出手段179で行われる計
算が画像上のどの範囲で行われるかを決定し、重複検出
範囲データ格納手段24に保持する。
The duplication detection range designating unit 181 determines the range on the image where the calculation performed by the duplication detection unit 179 is performed based on the input from the operator, and stores it in the duplication detection range data storage unit 24.

【0192】図23は、点列補正手段174bにおける
処理手順を示すフローチャートである。なお、ここで
は、重複検出範囲の指定が、予めオペレータの入力によ
ってされるものとして説明する。
FIG. 23 is a flowchart showing a processing procedure in the point sequence correcting means 174b. Here, a description will be given assuming that the duplication detection range is specified in advance by an operator's input.

【0193】まず、ステップS91で、1つの重複検出
範囲が選択される。
First, in step S91, one overlap detection range is selected.

【0194】次に、ステップS92で、重複検出手段1
79が経路の重複の有無が検出される。ここで重複が検
出されなければステップS93、ステップS94をスキ
ップする。一方、ステップS92で経路の重複が検出さ
れた場合には、ステップS93、ステップS94を実行
する。
Next, at step S92, the duplication detecting means 1
79 detects the presence or absence of overlapping of the routes. Here, if no duplication is detected, steps S93 and S94 are skipped. On the other hand, when the duplication of the route is detected in step S92, steps S93 and S94 are executed.

【0195】ステップS93では、重複解消位置が計算
される。
In step S93, the duplication elimination position is calculated.

【0196】次に、ステップS94で、重複解消手段1
80が、ステップS93で計算された重複範囲を経路か
ら除外するように中継点を移動させる。
Next, in step S94, the duplication eliminating means 1
80 moves the relay point so that the overlapping range calculated in step S93 is excluded from the route.

【0197】ステップS94終了後は、ステップS91
に戻り、次の重複検出範囲についてステップS92から
ステップS94を繰り返す。
After step S94 is completed, step S91 is performed.
And repeat steps S92 to S94 for the next overlap detection range.

【0198】そして、ステップS95で、予め指定され
た重複検出範囲について検出を終了したことを判断する
と以上の処理を終了する。
When it is determined in step S95 that detection has been completed for the duplication detection range specified in advance, the above processing is terminated.

【0199】次に、本発明の実施の一形態としての輪郭
曲線編集装置および輪郭曲線編集方法について説明す
る。なお、以下の説明においても、前述の経路探査装置
および輪郭曲線生成装置の各部と共通する部分には、同
一の指示符号を付す。
Next, a contour curve editing apparatus and a contour curve editing method according to an embodiment of the present invention will be described. In the following description, the same reference numerals are given to the parts common to the respective parts of the above-described route search device and contour curve generating device.

【0200】図24は、本発明に係る輪郭曲線編集装置
の構成例を示すブロック図である。
FIG. 24 is a block diagram showing a configuration example of a contour curve editing device according to the present invention.

【0201】この輪郭曲線編集装置は、中継点列に基づ
いて抽出された輪郭曲線に、移動、削除などの追加操作
を行うことができる機能を有し、本発明に係る経路探査
装置および輪郭曲線生成装置を用いて構成されている。
The contour curve editing device has a function of performing an additional operation such as moving or deleting the contour curve extracted based on the relay point sequence. It is configured using a generating device.

【0202】具体的には、この輪郭曲線編集装置は、曲
線入力手段11、点列生成手段12、点操作入力手段1
3、点列編集手段14、曲線生成手段15からなる4つ
の処理手段と、点列データ格納手段16、画像データ格
納手段17、曲線データ格納手段18からなる3つのデ
ータ格納手段を備えている。
More specifically, this contour curve editing apparatus includes a curve input unit 11, a point sequence generation unit 12, and a point operation input unit 1.
3, four processing means consisting of point sequence editing means 14 and curve generating means 15 and three data storage means consisting of point sequence data storage means 16, image data storage means 17, and curve data storage means 18.

【0203】点操作入力手段13は、マウスやタブレッ
トペンなどのポインティングデバイスなどであり、オペ
レータが指定した画像上の対象物の輪郭位置を受付けそ
れを点列編集手段14に送る手段である。
The point operation input means 13 is a pointing device such as a mouse or a tablet pen, and is a means for receiving the contour position of the object on the image designated by the operator and transmitting it to the point sequence editing means 14.

【0204】点列編集手段14は、上記の点操作入力手
段13からの操作入力に基づいて、点列データ格納手段
16に格納されるデータを変更する。
The point sequence editing means 14 changes the data stored in the point sequence data storage means 16 based on the operation input from the point operation input means 13 described above.

【0205】曲線生成手段15は、点列データ格納手段
16に保持されている点列データと画像データ格納手段
17に保持されている画像データとをもとに、点列の各
点を通過して画像上の輪郭上をたどるような曲線を生成
し、そのデータを曲線データ格納手段18に保持する。
オペレータは、必要な点操作を適宜繰り返すことによ
り、曲線が所望の輪郭上を通過するように変形していく
ことができる。
The curve generator 15 passes each point of the point sequence based on the point sequence data held in the point sequence data storage 16 and the image data stored in the image data storage 17. Thus, a curve that follows the contour on the image is generated, and the data is stored in the curve data storage unit 18.
The operator can deform the curve so as to pass over the desired contour by appropriately repeating necessary point operations.

【0206】さらに、タブレットペンなどの曲線入力手
段11は、ポインティングデバイスであり、オペレータ
が所望の輪郭形状をなぞった軌跡を受付けて、それを点
列生成手段12に送る。
Further, the curve input means 11 such as a tablet pen is a pointing device. The operator receives a locus tracing a desired contour shape and sends it to the point sequence generating means 12.

【0207】点列生成手段12は、その入力軌跡と画像
とをもとに、入力軌跡の形状を再現することができる点
列を生成し、そのデータを点列データ格納手段16に保
持する。したがって、オペレータが曲線形状によって所
望の輪郭を入力した場合にも、それが点列に変換されて
編集可能になる。
The point sequence generation means 12 generates a point sequence capable of reproducing the shape of the input trajectory based on the input trajectory and the image, and stores the data in the point sequence data storage means 16. Therefore, even when the operator inputs a desired contour with a curved shape, it is converted into a point sequence and can be edited.

【0208】なお、点操作入力手段13は、ポインティ
ングデバイスであるとしたが、例えば、外部記憶装置と
記憶媒体とを利用して構成することによって、予めファ
イルに記憶された入力点列を取り込めるようにしてもよ
い。同様に、曲線入力手段11も、入力曲線がファイル
から入力されるようにしてもよい。
The point operation input means 13 has been described as a pointing device. However, for example, by using an external storage device and a storage medium, an input point sequence previously stored in a file can be taken. It may be. Similarly, the curve input unit 11 may be configured to input an input curve from a file.

【0209】なお、この輪郭曲線編集装置は、曲線入力
手段11と点列生成手段12が省略された構成としても
よい。
The contour curve editing apparatus may have a configuration in which the curve input means 11 and the point sequence generating means 12 are omitted.

【0210】次に、本発明に係る輪郭曲線編集方法につ
いて、図24の輪郭曲線編集装置の構成および図25を
参照しながら説明する。
Next, the contour curve editing method according to the present invention will be described with reference to the configuration of the contour curve editing apparatus shown in FIG. 24 and FIG.

【0211】図25は、本発明に係る輪郭曲線編集方法
の基本的な処理手順を示すフローチャートである。
FIG. 25 is a flowchart showing a basic processing procedure of the contour curve editing method according to the present invention.

【0212】ステップS101では、まず、オペレータ
が「操作終了」を指示したがどうかが判断され、「操作
終了」が入力されていなければステップS102以下の
処理を実行する。
In step S101, it is first determined whether or not the operator has instructed "end of operation". If "end of operation" has not been input, the process from step S102 is executed.

【0213】ステップS102では、次の入力が点列操
作または曲線入力のいずれかであるかを判断して、曲線
入力であればステップS103に進み、点列操作であれ
ばステップS104に進む。
In step S102, it is determined whether the next input is a point sequence operation or a curve input. If it is a curve input, the process proceeds to step S103. If it is a point sequence operation, the process proceeds to step S104.

【0214】ステップS103では、点列生成手段12
により、曲線入力手段11からの入力曲線をもとに点列
データが生成され、点列データ格納手段16に保持され
る。
In step S103, the point sequence generation means 12
As a result, point sequence data is generated based on the input curve from the curve input unit 11 and is stored in the point sequence data storage unit 16.

【0215】一方、ステップS104では、点列編集手
段14において、点列操作が点列データ格納手段に格納
されている点列データに反映される。
On the other hand, in step S104, the point sequence editing means 14 reflects the point sequence operation on the point sequence data stored in the point sequence data storage means.

【0216】そして、ステップS105で、曲線生成手
段15により、点列データから曲線が生成される。
Then, in step S105, the curve generation means 15 generates a curve from the point sequence data.

【0217】そして、ステップS105で、全ての点列
についての処理が終了したかどうかが判断され、終了し
ていなければステップS101に戻り、次の入力を待
つ。一方、全ての点列についての処理が終了していれ
ば、上記の処理を終了する。
Then, in step S105, it is determined whether or not the processing has been completed for all the point sequences. If not, the flow returns to step S101 to wait for the next input. On the other hand, if the processing for all the point sequences has been completed, the above processing is completed.

【0218】なお、以上の説明では、経路探査を最適化
するパラメータとして、通過コスト計算パラメータと計
算範囲パラメータの2種類を用いるものとしたが、本発
明ではどちらか片方でも機能し得ることはもちろんであ
る。さらに、本発明では、通過コスト計算パラメータと
してグラディエント検出のためのパラメータでなくても
よい。例えば、通過コスト計算のために、ラプラシアン
フィルタとガウシアンフィルタを用いたエッジ検出を用
いるようにして、ガウシアンフィルタのパラメータを中
継点の間隔から最適化することができる。ガウシアンフ
ィルタによって、エッジ検出がどのくらい複雑な形状の
エッジに敏感になるかを調節することが可能なので、オ
ペレータが与える中継点の間隔から所望の輪郭形状の複
雑さを推定することにより最適化する。
In the above description, two parameters, the pass cost calculation parameter and the calculation range parameter, are used as parameters for optimizing the route search. However, in the present invention, either one of them can function. It is. Further, in the present invention, the passing cost calculation parameter need not be a parameter for gradient detection. For example, for the calculation of the passing cost, the parameters of the Gaussian filter can be optimized based on the interval between the relay points by using the edge detection using the Laplacian filter and the Gaussian filter. The Gaussian filter allows to adjust how sensitive the edge detection is to the edge of a complicated shape. Therefore, the optimization is performed by estimating the complexity of the desired contour shape from the interval between the relay points provided by the operator.

【0219】さらに、本発明に係る点列補正手段におい
て、点列補正を行う範囲をオペレータが指定できる構成
としたが、指定手段を省略して、範囲を固定としてもよ
い。
Further, in the point sequence correcting means according to the present invention, the range in which the point sequence correction is performed can be specified by the operator. However, the specifying means may be omitted and the range may be fixed.

【0220】さらに、本発明に係る輪郭曲線編集装置
は、図26に示すような構成として、曲線を編集する毎
に点列も自動的に輪郭上に乗るようにすることも可能で
ある。この構成を用いた場合、オペレータは、中継点を
正確に輪郭上に設定する必要から解放され、作業負荷を
減らすことができる。
Furthermore, the contour curve editing apparatus according to the present invention can be configured as shown in FIG. 26 so that a point sequence is automatically put on the contour each time a curve is edited. When this configuration is used, the operator is not required to accurately set the relay point on the contour, and the work load can be reduced.

【0221】なお、図26における曲線生成手段15
は、前述したような点列補正手段を有する本発明に係る
輪郭曲線生成装置を用いることができる。
The curve generating means 15 shown in FIG.
Can use the contour curve generating device according to the present invention having the point sequence correcting means as described above.

【0222】図27は、本発明に係る経路探査装置、輪
郭曲線生成装置、および輪郭曲線編集装置の基本的な構
成を例示している。
FIG. 27 exemplifies the basic configuration of a path search device, a contour curve generating device, and a contour curve editing device according to the present invention.

【0223】これらの装置は、いずれも、オペレータと
の間の入出力インタフェースであるポインティングデバ
イス1およびモニタ2と、CPU3、内部記憶装置4、
外部記憶装置5、およびこれらを互いに接続するBUS
6を備えて構成される。
Each of these devices includes a pointing device 1 and a monitor 2, which are input / output interfaces with an operator, a CPU 3, an internal storage device 4,
External storage device 5 and BUS connecting these to each other
6 is provided.

【0224】ポインティングデバイス1は、オペレータ
からの入力を取り込む手段であり、マウスやタブレット
ペン等が使用される。モニタ2は、オペレータに対して
画像や図形等のデータを表示する手段であり、CRTな
どが使用される。
The pointing device 1 is a means for receiving an input from an operator, and a mouse, a tablet pen, or the like is used. The monitor 2 is means for displaying data such as images and graphics to the operator, and a CRT or the like is used.

【0225】CPU3は、本発明における計算と制御の
処理を担当する中央演算処理装置である。内部記憶装置
4は、後述するような本発明に係る種々の計算処理を行
う際に必要なデータを一時的に格納するデータ格納手段
である。
The CPU 3 is a central processing unit in charge of calculation and control processing in the present invention. The internal storage device 4 is a data storage unit that temporarily stores data necessary for performing various calculation processes according to the present invention as described below.

【0226】外部記憶装置5は、上記の計算処理に必要
なデータを格納する際の補助格納手段として、また計算
処理結果等のデータの入出力先としても使用される。
The external storage device 5 is used as auxiliary storage means for storing data necessary for the above-mentioned calculation processing, and also as an input / output destination of data such as calculation processing results.

【0227】以上説明した本発明に係る経路探査装置お
よび方法、輪郭曲線生成装置および方法、輪郭曲線編集
装置および方法は、オペレータの入力を介在としてより
画像上の領域を正確に領域を抽出するために大きな効力
を発揮するものであり、画像中の特定の領域を抽出する
処理に広く利用できるものである。
The route searching apparatus and method, the contour curve generating apparatus and method, and the contour curve editing apparatus and method according to the present invention described above extract a region on an image more accurately by inputting an operator's input. Therefore, it can be widely used for a process of extracting a specific area in an image.

【0228】[0228]

【発明の効果】本発明によれば、画像と画像上の2点を
入力とし、前記2点の情報と画像の情報を用いて、予め
設定された経路探査計算方法を最適に動作するように経
路探査のパラメータを変更する経路探査処理最適化を行
うようにしたことにより、オペレータの入力を介在とし
てより画像上の領域を正確に領域を抽出できるようにな
る。
According to the present invention, an image and two points on the image are input, and a predetermined route search calculation method is operated optimally using the information of the two points and the image information. By optimizing the path search processing for changing the parameters of the path search, the area on the image can be more accurately extracted through the input of the operator.

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

【図1】本発明に係る経路探査装置の主要部の構成例を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration example of a main part of a route search device according to the present invention.

【図2】本発明に係る経路探査方法の基本的な処理手順
を示すフローチャートである。
FIG. 2 is a flowchart showing a basic processing procedure of the route searching method according to the present invention.

【図3】本発明に係る経路探査装置の経路探査を行う部
分について説明するための図である。
FIG. 3 is a diagram for explaining a portion of the route search device according to the present invention that performs a route search.

【図4】経路探査処理最適化手段の内部構成を説明する
ための図である。
FIG. 4 is a diagram for explaining an internal configuration of a route search processing optimization unit.

【図5】経路探査処理最適化手段における処理手順を説
明するためのフローチャートである。
FIG. 5 is a flowchart for explaining a processing procedure in a route search processing optimization unit.

【図6】経路探査処理最適化手段の通過コスト計算パラ
メータに関する処理を行う部分について説明するための
図である。
FIG. 6 is a diagram for describing a portion of a route search processing optimization unit that performs processing relating to a passing cost calculation parameter.

【図7】経路探査手段における処理手順を説明するため
のフローチャートである。
FIG. 7 is a flowchart for explaining a processing procedure in the route searching means.

【図8】選択的グラディエント検出を利用した通過コス
ト計算パラメータに関する処理を行う部分の構成を詳細
に説明するための図である。
FIG. 8 is a diagram for explaining in detail a configuration of a portion that performs processing relating to a passing cost calculation parameter using selective gradient detection.

【図9】通過コスト最適化手段における処理手順を説明
するためのフローチャートである。
FIG. 9 is a flowchart for explaining a processing procedure in a passing cost optimization unit.

【図10】経路探査の通過コストマップの一例を示す図
である。
FIG. 10 is a diagram showing an example of a passage cost map for route search.

【図11】動的計画法を用いた最短経路探査アルゴリズ
ムの一例を示す図である。
FIG. 11 is a diagram illustrating an example of a shortest path search algorithm using dynamic programming.

【図12】経路探査処理最適化手段の計算範囲最適化に
関する処理を行う部分を詳細に説明するための図であ
る。
FIG. 12 is a diagram for explaining in detail a portion that performs processing related to optimization of a calculation range by a path search processing optimization unit.

【図13】計算範囲最適化手段における処理手順を説明
するためのフローチャートである。
FIG. 13 is a flowchart illustrating a processing procedure in a calculation range optimizing unit.

【図14】点列生成手段の構成例を示すブロック図であ
る。
FIG. 14 is a block diagram illustrating a configuration example of a point sequence generation unit.

【図15】点列生成手段における処理手順を説明するた
めのフローチャートである。
FIG. 15 is a flowchart illustrating a processing procedure in a point sequence generation unit.

【図16】本発明に係る輪郭曲線生成装置の主要部の構
成例を示すブロック図である。
FIG. 16 is a block diagram illustrating a configuration example of a main part of a contour curve generation device according to the present invention.

【図17】本発明に係る輪郭曲線生成方法における基本
的な処理手順を示すフローチャートである。
FIG. 17 is a flowchart showing a basic processing procedure in the contour curve generation method according to the present invention.

【図18】本発明に係る輪郭曲線生成装置の点列補正手
段の構成例を表すブロック図である。
FIG. 18 is a block diagram illustrating a configuration example of a point sequence correction unit of the contour curve generation device according to the present invention.

【図19】本発明に係る輪郭曲線生成装置の点列補正手
段における処理手順を説明するためのフローチャートで
ある。
FIG. 19 is a flowchart illustrating a processing procedure in a point sequence correction unit of the contour curve generation device according to the present invention.

【図20】本発明に係る第2の輪郭曲線生成装置の構成
例を示すブロック図である。
FIG. 20 is a block diagram illustrating a configuration example of a second contour curve generation device according to the present invention.

【図21】本発明に係る第2の輪郭曲線生成装置におけ
る処理手順を示すフローチャートである。
FIG. 21 is a flowchart showing a processing procedure in the second contour curve generating device according to the present invention.

【図22】本発明に係る第2の輪郭曲線生成装置におけ
る点列補正手段の構成例を示すブロック図である。
FIG. 22 is a block diagram illustrating a configuration example of a point sequence correction unit in the second contour curve generation device according to the present invention.

【図23】本発明に係る第2の輪郭曲線生成装置の点列
補正手段における処理手順を説明するためのフローチャ
ートである。
FIG. 23 is a flowchart for explaining a processing procedure in a point sequence correction unit of the second contour curve generation device according to the present invention.

【図24】本発明に係る輪郭曲線編集装置の構成例を示
すブロック図である。
FIG. 24 is a block diagram illustrating a configuration example of a contour curve editing device according to the present invention.

【図25】本発明に係る輪郭曲線編集方法の基本的な処
理手順を示すフローチャートである。
FIG. 25 is a flowchart showing a basic processing procedure of the contour curve editing method according to the present invention.

【図26】本発明に係る輪郭曲線編集装置の別の構成例
を示すブロック図である。
FIG. 26 is a block diagram showing another configuration example of the contour curve editing device according to the present invention.

【図27】本発明に係る経路探査装置、輪郭曲線生成装
置、輪郭曲線編集装置を構成するための各装置を示す図
である。
FIG. 27 is a diagram showing each device for configuring a path searching device, a contour curve generating device, and a contour curve editing device according to the present invention.

【図28】従来技術において、所望の輪郭が正しく抽出
されない場合について説明するための図である。
FIG. 28 is a diagram for describing a case where a desired contour is not correctly extracted in the related art.

【図29】従来技術において、所望の輪郭が正しく抽出
されない場合について説明するための図である。
FIG. 29 is a diagram illustrating a case where a desired contour is not correctly extracted in the related art.

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

16 点列データ格納手段、 17 画像データ格納手
段、 18 曲線データ格納手段、 23 経路データ
格納手段、 151 2点選択手段、 152経路探査
処理最適化手段、 153 経路探査手段、 154
曲線近似手段
16 point sequence data storage means, 17 image data storage means, 18 curve data storage means, 23 route data storage means, 151 two-point selection means, 152 route search processing optimization means, 153 route search means, 154
Curve approximation means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 平瀬 英弘 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 ──────────────────────────────────────────────────の Continuation of the front page (72) Inventor Hidehiro Hirase 6-7-35 Kita Shinagawa, Shinagawa-ku, Tokyo Inside Sony Corporation

Claims (34)

【特許請求の範囲】[Claims] 【請求項1】 画像上の曲線の経路を探査する経路探査
装置において、 画像を入力する画像入力手段と、 上記画像上の2点を選択する点選択手段と、 上記画像情報と上記2点の情報とを用いて、予め設定さ
れた経路探査計算を最適化するように経路探査パラメー
タを変更する経路探査処理最適化手段と、 上記最適化された経路探査パラメータを用いて上記2点
間の輪郭の近傍経路を計算する経路探査手段とを備える
ことを特徴とする経路探査装置。
An apparatus for searching for a path of a curve on an image, comprising: an image input unit for inputting an image; a point selecting unit for selecting two points on the image; Route search processing optimizing means for changing a route search parameter so as to optimize a preset route search calculation using the information; and a contour between the two points using the optimized route search parameter. And a route searching means for calculating a nearby route.
【請求項2】 上記経路探査処理最適化手段は、上記画
像上の2点の位置情報を用いて上記画像上の各点におけ
る通過コストを最小にする通過コスト計算最適化手段を
備えることを特徴とする請求項1記載の経路探査装置。
2. The apparatus according to claim 1, wherein said route search processing optimizing means includes a pass cost calculation optimizing means for minimizing a pass cost at each point on said image using positional information of two points on said image. The route search device according to claim 1, wherein
【請求項3】 上記通過コスト計算最適化手段は上記画
像上の2点の位置情報を用いて画像のグラディエントを
計算するためのパラメータを決定するグラディエントパ
ラメータ決定手段を備え、上記経路探査手段は上記グラ
ディエント計算パラメータを入力として上記画像上の各
点の通過コストを計算する通過コスト計算手段を備える
ことを特徴とする請求項2記載の経路探査装置。
3. The passing cost calculation optimizing means includes gradient parameter determining means for determining a parameter for calculating a gradient of an image using position information of two points on the image. 3. The route search device according to claim 2, further comprising a passing cost calculation unit that calculates a passing cost of each point on the image by using the gradient calculation parameter as an input.
【請求項4】 上記グラディエント計算パラメータ決定
手段は、上記画像上の2点を結ぶ直線と直行する法線方
向ベクトルを計算する法線ベクトル計算手段と、上記2
点の近傍領域で上記法線方向に移動したときの画像の画
素値の変化方向を示す画素値変化ベクトルを計算する画
素値変化ベクトル計算手段とを備え、上記通過コスト計
算手段は、上記法線方向ベクトルと上記画素値変化ベク
トルとを入力として上記2種類のベクトルで規定される
グラディエント成分を算出するグラディエント算出手段
と、上記算出されたグラディエント成分を用いて通過コ
ストを計算する通過コストマップ算出手段とを備えるこ
とを特徴とする請求項3記載の経路探査装置。
4. The gradient calculation parameter determination means includes: a normal vector calculation means for calculating a normal direction vector orthogonal to a straight line connecting two points on the image;
Pixel value change vector calculation means for calculating a pixel value change vector indicating a change direction of a pixel value of an image when the image moves in the normal direction in a region near a point, and the passing cost calculation means includes: Gradient calculating means for calculating a gradient component defined by the two types of vectors using a direction vector and the pixel value change vector as inputs, and a passing cost map calculating means for calculating a passing cost using the calculated gradient component The route searching device according to claim 3, comprising:
【請求項5】 上記経路探査処理最適化手段は、上記画
像上の2点の位置情報を用いて通過コストを計算する画
像上の範囲を決定する通過コスト計算範囲決定手段をさ
らに備えることを特徴とする請求項2記載の経路探査装
置。
5. The path exploration processing optimizing means further includes a passing cost calculation range determining means for determining a range on an image for calculating a passing cost using position information of two points on the image. The route search device according to claim 2, wherein
【請求項6】 上記通過コスト計算範囲決定手段は、上
記画像上の2点の距離および方向を算出する距離算出手
段と、上記通過コスト計算範囲の上記2点間の方向に対
する垂直方向に広がる幅を上記2点間の距離の大きさに
より制御する計算範囲幅算出手段を備えることを特徴と
する請求項5記載の経路探査装置。
6. The passing cost calculation range determining means calculates a distance and a direction of two points on the image, and a width of the passing cost calculation range extending in a direction perpendicular to the direction between the two points. 6. A route searching device according to claim 5, further comprising a calculation range width calculating means for controlling the distance according to the magnitude of the distance between the two points.
【請求項7】 画像上の曲線の経路を探査する経路探査
方法において、 画像を入力する画像入力工程と、 上記画像上の2点を選択する点選択工程と、 上記画像情報と上記2点の情報とを用いて、予め設定さ
れた経路探査計算を最適化するように経路探査パラメー
タを変更する経路探査処理最適化工程と、 上記最適化された経路探査パラメータを用いて上記2点
間の輪郭の近傍経路を計算する経路探査工程とを有する
ことを特徴とする経路探査方法。
7. A path searching method for searching for a path of a curve on an image, comprising: an image inputting step of inputting an image; a point selecting step of selecting two points on the image; A path search processing optimizing step of changing a path search parameter so as to optimize a preset path search calculation using the information, and a contour between the two points using the optimized path search parameter A route searching step of calculating a nearby route of the route.
【請求項8】 上記経路探査処理最適化工程は、上記画
像上の2点の位置情報を用いて計算される画像上の各点
における通過コストを最小にする通過コスト計算最適化
工程を有することを特徴とする請求項7記載の経路探査
方法。
8. The path search processing optimizing step includes a pass cost calculation optimizing step of minimizing a pass cost at each point on the image calculated using position information of two points on the image. The route searching method according to claim 7, wherein:
【請求項9】 上記経路探査処理最適化工程は、通過コ
ストが計算される画像上の範囲を決定する通過コスト計
算範囲決定工程をさらに有することを特徴とする請求項
8記載の経路探査方法。
9. The route searching method according to claim 8, wherein the route searching process optimizing step further includes a passing cost calculation range determining step of determining a range on the image where the passing cost is calculated.
【請求項10】 画像上の曲線の経路を探査する経路探
査プログラムを記録した記録媒体であって、上記経路探
査プログラムは、 画像を入力する画像入力工程と、 上記画像上の2点を順次選択する点選択工程と、 上記画像情報と上記2点の情報とを用いて、予め設定さ
れた経路探査計算が最適に処理されるように、経路探査
パラメータを上記2点が選択される毎に変更する経路探
査処理最適化工程と、 上記最適化された経路探査パラメータを用いて上記2点
間の輪郭を近傍経路を計算する経路探査工程とを有する
ことを特徴とする記録媒体。
10. A recording medium recording a path search program for searching for a curved path on an image, the path search program comprising: an image input step of inputting an image; and sequentially selecting two points on the image. A point selection step to be performed, and using the image information and the information of the two points, a path search parameter is changed every time the two points are selected so that a preset path search calculation is optimally processed. A recording medium comprising: a path searching process optimizing step of performing a path searching step of calculating a nearby path of a contour between the two points by using the optimized path searching parameters.
【請求項11】 画像上の物体の輪郭を示す曲線を生成
する輪郭曲線生成装置において、 画像を入力する画像入力手段と、 上記画像上の物体の輪郭上の中継点列を入力する中継点
列入力手段と、 上記中継点列の互いに隣り合う各2点間について、上記
画像情報と上記2点の情報とを用いて、予め設定された
経路探査計算を最適化するように経路探査パラメータを
変更する経路探査処理最適化手段と、 上記最適化された経路探査パラメータを用いて上記各2
点間の輪郭の近傍経路を計算する経路探査手段と、 上記経路探査の計算結果を用いて曲線を生成する曲線生
成手段とを備えることを特徴とする輪郭曲線生成装置。
11. A contour curve generating device for generating a curve indicating a contour of an object on an image, comprising: image input means for inputting an image; and a sequence of relay points for inputting a sequence of relay points on the outline of the object on the image. Input means, and for each of two adjacent points in the relay point sequence, using the image information and the information of the two points, changing a path search parameter so as to optimize a predetermined path search calculation. Route search processing optimizing means, and each of the above two using the optimized route search parameters
A contour curve generation device comprising: a path search unit that calculates a nearby path of a contour between points; and a curve generation unit that generates a curve using the calculation result of the path search.
【請求項12】 上記中継点列の近傍の情報に基づいて
上記中継点列を補正する点列補正手段をさらに備えるこ
とを特徴とする請求項11記載の輪郭曲線生成装置。
12. The contour curve generating device according to claim 11, further comprising a point sequence correction unit that corrects the relay point sequence based on information near the relay point sequence.
【請求項13】 上記点列補正手段は、入力中継点列の
各中継点の近傍で画像のグラディエントを計算するグラ
ディエント算出手段と、上記各中継点の近傍のグラディ
エントを比較してグラディエント強度が最大の点を検出
する最大強度点抽出手段とを備え、上記経路探査手段は
画像上のグラディエント強度が大きい位置を通過するよ
うに経路探査することを特徴とする請求項12記載の輪
郭曲線生成装置。
13. The point sequence correcting means compares the gradient in the vicinity of each relay point with the gradient calculating means for calculating the gradient of the image near each relay point in the input relay point sequence, and obtains the maximum gradient intensity. 13. The contour curve generating apparatus according to claim 12, further comprising a maximum intensity point extracting means for detecting the point (a), wherein the path searching means performs a path search so as to pass through a position where the gradient intensity on the image is large.
【請求項14】 上記点列補正手段は、入力中継点列と
上記経路探査手段から出力される経路とを入力として入
力中継点列の近傍に生じる経路の重複を検出する重複検
出手段と、上記検出された重複経路を解消するように入
力中継点列の位置を補正する重複解消手段とを備えるこ
とを特徴とする請求項12記載の輪郭曲線生成装置。
14. The point sequence correction means, comprising: an input relay point sequence and a route output from the route search means as inputs, and a duplication detection means for detecting a route duplication occurring near the input relay point sequence; 13. The contour curve generation device according to claim 12, further comprising: an overlap eliminating unit that corrects a position of the input relay point sequence so as to eliminate the detected overlapping route.
【請求項15】 上記点列補正手段は、各中継点列にお
ける補正処理範囲を指定する重複検出範囲指定手段を備
えることを特徴とする請求項12記載の輪郭曲線生成装
置。
15. The contour curve generating apparatus according to claim 12, wherein said point sequence correcting means includes an overlapping detection range specifying means for specifying a correction processing range in each relay point sequence.
【請求項16】 画像上の物体の輪郭を示す曲線を生成
する輪郭曲線生成方法において、 画像を入力する画像入力工程と、 上記画像上の物体の輪郭上の中継点列を入力する中継点
列入力工程と、 上記中継点列の互いに隣り合う各2点間について、上記
画像情報と上記2点の情報とを用いて、予め設定された
経路探査計算を最適化するように経路探査パラメータを
変更する経路探査処理最適化工程と、 上記最適化された経路探査パラメータを用いて上記各2
点間の輪郭の近傍経路を計算する経路探査工程と、 上記経路探査の計算結果を用いて曲線を生成する曲線生
成工程とを有することを特徴とする輪郭曲線生成方法。
16. A contour curve generating method for generating a curve indicating a contour of an object on an image, comprising: an image inputting step of inputting an image; and a relay point sequence for inputting a sequence of relay points on the outline of the object on the image. An input step, and for each of two adjacent points in the relay point sequence, using the image information and the information of the two points, changing a path search parameter so as to optimize a predetermined path search calculation. Using the optimized path search parameters, and using the optimized path search parameters
A contour curve generating method, comprising: a path searching step of calculating a nearby path of a contour between points; and a curve generating step of generating a curve using the calculation result of the path searching.
【請求項17】 上記中継点列の近傍の情報に基づいて
上記中継点列を補正する点列補正工程をさらに有するこ
とを特徴とする請求項16記載の輪郭曲線生成方法。
17. The contour curve generating method according to claim 16, further comprising a point sequence correction step of correcting the relay point sequence based on information near the relay point sequence.
【請求項18】 画像上の物体の輪郭を示す曲線を生成
する輪郭曲線生成プログラムを記録した記録媒体であっ
て、上記輪郭曲線生成プログラムは、 画像を入力する画像入力工程と、 上記画像上の物体の輪郭上の中継点列を入力する中継点
列入力工程と、 上記中継点列の互いに隣り合う各2点間について、上記
画像情報と上記2点の情報とを用いて、予め設定された
経路探査計算を最適化するように経路探査パラメータを
変更する経路探査処理最適化工程と、 上記最適化された経路探査パラメータを用いて上記各2
点間の輪郭の近傍経路を計算する経路探査工程と、 上記経路探査の計算結果を用いて曲線を生成する曲線生
成工程とを有することを特徴とする記録媒体。
18. A recording medium recording a contour curve generating program for generating a curve indicating a contour of an object on an image, wherein the contour curve generating program comprises: an image inputting step of inputting an image; A relay point sequence inputting step of inputting a relay point sequence on an outline of an object; and a preset between the two adjacent points of the relay point sequence using the image information and the information of the two points. A path search processing optimizing step of changing a path search parameter so as to optimize the path search calculation; and each of the above two steps using the optimized path search parameter.
A recording medium comprising: a path searching step of calculating a nearby path of a contour between points; and a curve generating step of generating a curve using the calculation result of the path searching.
【請求項19】 画像上の物体の輪郭を示す輪郭曲線を
生成する輪郭曲線生成装置であって、 画像を入力する画像入力手段と、 上記画像上の物体輪郭曲線を近似する外部入力曲線を入
力として曲線から適当な中継点列を生成する点列生成手
段と、 上記生成された中継点列を入力として、上記中継点列の
互いに隣り合う各2点間について、上記画像情報と上記
2点の情報とを用いて、予め設定された経路探査計算を
最適化するように最適化される経路探査パラメータを用
いて上記各2点間の輪郭の近傍経路を計算し、その計算
結果を用いて曲線を生成する曲線再構成手段とを備える
ことを特徴とする輪郭曲線生成装置。
19. A contour curve generating apparatus for generating a contour curve indicating a contour of an object on an image, comprising: an image input means for inputting an image; and an external input curve approximating the object contour curve on the image. A sequence of point sequence generating means for generating an appropriate sequence of relay points from a curve, and the image information and the two points between each two adjacent points of the sequence of relay points, with the generated sequence of relay points as inputs. Using the information and the route search parameters optimized so as to optimize the preset route search calculation, a nearby route of the contour between each of the above two points is calculated, and a curve is formed using the calculation result. And a curve reconstructing means for generating the contour curve.
【請求項20】 上記点列生成手段は十分な細かさで曲
線上の中継点を標本化する機能を有し、上記点列編集手
段は上記検出される差分がある所定の値以下を保つ間
は、点列中の中継点数を少なくするように編集すること
を特徴とする請求項19記載の輪郭曲線生成装置。
20. The point sequence generating means has a function of sampling a relay point on a curve with sufficient fineness, and the point sequence editing means operates while the detected difference keeps a certain value or less. 20. The contour curve generating apparatus according to claim 19, wherein the editing is performed so as to reduce the number of relay points in the point sequence.
【請求項21】 上記点列生成手段は輪郭曲線上の特徴
点を標本化する機能を有し、上記点列編集手段は上記検
出される差分が所定の値以上を保つ間は、点列中の中継
点数を増やすように編集することを特徴とする請求項2
0記載の輪郭曲線生成装置。
21. The point sequence generating means has a function of sampling characteristic points on a contour curve, and the point sequence editing means determines whether or not the detected difference has a predetermined value or more. 3. Editing is performed to increase the number of relay points.
0. The contour curve generation device according to 0.
【請求項22】 画像上の物体の輪郭を示す輪郭曲線を
生成する方法であって、 画像を入力する画像入力工程と、 上記画像上の物体輪郭曲線を近似する外部入力曲線を入
力として曲線から適当な中継点列を生成する点列生成工
程と、 上記生成された中継点列を入力として、上記中継点列の
互いに隣り合う各2点間について、上記画像情報と上記
2点の情報とを用いて、予め設定された経路探査計算を
最適化するように最適化される経路探査パラメータを用
いて上記各2点間の輪郭の近傍経路を計算し、その計算
結果を用いて曲線を生成する曲線再構成工程とを有する
ことを特徴とする輪郭曲線生成方法。
22. A method for generating a contour curve indicating a contour of an object on an image, comprising: an image input step of inputting an image; and an external input curve approximating the object contour curve on the image as an input. A point sequence generating step of generating an appropriate relay point sequence; and, using the generated relay point sequence as an input, the image information and the information of the two points between each two adjacent points of the relay point sequence. Using the route search parameters optimized so as to optimize the preset route search calculation, a nearby route of the contour between the two points is calculated, and a curve is generated using the calculation result. A contour reconstructing step.
【請求項23】 上記点列生成工程では十分な細かさで
曲線上の中継点を標本化し、上記点列編集手段では上記
検出される差分がある所定の値以下を保つ間は、点列中
の中継点数を少なくするように編集することを特徴とす
る請求項22記載の輪郭曲線生成方法。
23. In the point sequence generating step, the relay points on the curve are sampled with sufficient fineness, and the point sequence editing means performs the processing in the point sequence while the detected difference is kept below a certain predetermined value. 23. The contour curve generating method according to claim 22, wherein editing is performed so as to reduce the number of relay points.
【請求項24】 上記点列生成工程では輪郭曲線上の特
徴点を標本化し、上記点列編集工程では上記検出される
差分が所定の値以上を保つ間は、点列中の中継点数を増
やすように編集することを特徴とする請求項23記載の
輪郭曲線生成方法。
24. In the point sequence generating step, the characteristic points on the contour curve are sampled, and in the point sequence editing step, the number of relay points in the point sequence is increased while the detected difference keeps a predetermined value or more. 24. The contour curve generating method according to claim 23, wherein the editing is performed as follows.
【請求項25】 画像上の物体の輪郭を示す輪郭曲線を
生成するプログラムを記録した記録媒体であって、上記
輪郭曲線を生成するプログラムは、 画像を入力する画像入力工程と、 上記画像上の物体輪郭曲線を近似する外部入力曲線を入
力として曲線から適当な中継点列を生成する点列生成工
程と、 上記生成された中継点列を入力として、上記中継点列の
互いに隣り合う各2点間について、上記画像情報と上記
2点の情報とを用いて、予め設定された経路探査計算を
最適化するように最適化される経路探査パラメータを用
いて上記各2点間の輪郭の近傍経路を計算し、その計算
結果を用いて曲線を生成する曲線再構成工程とを有する
ことを特徴とする記録媒体。
25. A recording medium recording a program for generating a contour curve indicating the contour of an object on an image, wherein the program for generating the contour curve comprises: an image inputting step of inputting an image; A point sequence generating step of generating an appropriate sequence of relay points from a curve by inputting an external input curve approximating an object contour curve; and each of two adjacent points of the sequence of relay points using the generated sequence of relay points as input. For the interval, using the above-described image information and the information of the two points, using a path search parameter optimized so as to optimize a preset path search calculation, a route near the contour between the two points is used. And a curve reconstructing step of generating a curve using the calculation result.
【請求項26】 中継点列に基づいて抽出された輪郭曲
線に追加操作を行うことができる輪郭曲線編集装置であ
って、 画像を入力する画像入力手段と、 上記画像上で中継点を任意の位置に操作する点操作入力
手段と、 上記点操作入力を保持されている中継点列データに反映
させる点列編集手段と、 上記保持されている中継点列データの互いに隣り合う各
2点間について、上記画像情報と上記2点の情報とを用
いて予め設定された経路探査計算を最適化するように変
更される経路探査パラメータを用いて計算される上記各
2点間の輪郭の近傍経路計算結果を用いて曲線を生成す
る曲線生成手段とを備えることを特徴とする輪郭曲線編
集装置。
26. A contour curve editing device capable of performing an additional operation on a contour curve extracted based on a sequence of relay points, comprising: image input means for inputting an image; Point operation input means for operating a position; point sequence editing means for reflecting the point operation input to the held relay point sequence data; and between each two adjacent points of the held relay point sequence data. Calculating a neighboring route of a contour between each of the two points calculated using a path search parameter changed so as to optimize a predetermined path search calculation using the image information and the information of the two points. And a curve generating means for generating a curve using the result.
【請求項27】 上記曲線生成手段は、入力される中継
点列を補正することにより上記生成される輪郭曲線を補
正する点列補正手段を有する曲線生成手段を備え、曲線
生成の前後において上記保持された中継点列が変化しな
いようにすることを特徴とする請求項26記載の輪郭曲
線編集装置。
27. The curve generating means includes a curve generating means having a point sequence correcting means for correcting the generated contour curve by correcting an input relay point sequence, and wherein the holding is performed before and after the curve is generated. 27. The contour curve editing device according to claim 26, wherein the performed relay point sequence is not changed.
【請求項28】 上記曲線生成手段は、入力される中継
点列を補正することにより上記生成される輪郭曲線を補
正する点列補正手段を有する曲線生成手段を備え、曲線
生成後に上記点列補正手段によって補正された点列を新
たに保持することを特徴とする請求項26記載の輪郭曲
線編集装置。
28. The curve generating means includes a curve generating means having a point sequence correcting means for correcting the generated contour curve by correcting an input relay point sequence, and the point sequence correcting after the curve generation. 27. The contour curve editing apparatus according to claim 26, wherein the point sequence corrected by the means is newly stored.
【請求項29】 画像上の任意の位置に存在する曲線形
状を入力する曲線入力手段と、 上記入力曲線から適当な中継点列を生成する点列生成手
段と、 上記生成された中継点列を入力として、その互いに隣り
合う各2点間について、上記画像情報と上記画像上の2
点の情報とを用いて、予め設定された経路探査計算を最
適化するように経路探査パラメータを変更する経路探査
処理最適化し、上記最適化された経路探査パラメータを
用いて上記各2点間の輪郭の近傍経路を計算し、上記経
路探査の計算結果を用いて曲線を生成し、上記生成され
た再構成曲線と入力曲線との差分を検出し、上記検出さ
れた差分に応じて上記中継点列に編集操作を加えて中継
点列を生成する点列生成手段とを備えることを特徴とす
る請求項26記載の輪郭曲線編集装置。
29. Curve input means for inputting a curve shape existing at an arbitrary position on an image, point sequence generating means for generating an appropriate relay point sequence from the input curve, and generating the generated relay point sequence As an input, the image information and the two points on the image between each two adjacent points are input.
Using the information on the points, the path search processing is optimized to change the path search parameters so as to optimize the path search calculation set in advance, and between the two points using the optimized path search parameters Calculate a path near the contour, generate a curve using the calculation result of the path search, detect a difference between the generated reconstructed curve and the input curve, and calculate the relay point according to the detected difference. 27. The contour curve editing device according to claim 26, further comprising: a point sequence generation unit configured to generate a relay point sequence by performing an editing operation on the sequence.
【請求項30】 中継点列に基づいて抽出された輪郭曲
線に追加操作を行うことができる輪郭曲線編集方法であ
って、 画像を入力する画像入力工程と、 上記画像上で中継点を任意の位置に操作する点操作入力
工程と、 上記点操作入力を、保持されている中継点列データに反
映させる点列編集工程と、 上記保持されている中継点列データの互いに隣り合う各
2点間について、上記画像情報と上記2点の情報とを用
いて予め設定された経路探査計算を最適化するように変
更される経路探査パラメータを用いて計算される上記各
2点間の輪郭の近傍経路計算結果を用いて曲線を生成す
る曲線生成工程とを有することを特徴とする輪郭曲線編
集方法。
30. A contour curve editing method capable of performing an additional operation on a contour curve extracted based on a sequence of relay points, comprising: an image inputting step of inputting an image; A point operation inputting step of operating a position; a point sequence editing step of reflecting the point operation input to the held relay point sequence data; and a point sequence editing process between the two adjacent points of the held relay point sequence data. , A neighboring route of the contour between each of the two points calculated using a route search parameter changed so as to optimize a preset route search calculation using the image information and the information of the two points A curve generation step of generating a curve using the calculation result.
【請求項31】 上記曲線生成工程は、入力される中継
点列を補正することにより上記生成される輪郭曲線を補
正する点列補正工程を含む曲線生成工程を有し、曲線生
成の前後において上記保持された中継点列が変化しない
ようにすることを特徴とする請求項30記載の輪郭曲線
編集方法。
31. The curve generation step includes a curve generation step including a point sequence correction step of correcting the generated contour curve by correcting an input relay point sequence, and before and after the curve generation. 31. The contour curve editing method according to claim 30, wherein the held relay point sequence is not changed.
【請求項32】 上記曲線生成手段は、入力される中継
点列を補正することにより上記生成される輪郭曲線を補
正する点列補正工程を含む曲線生成工程を有し、曲線生
成後に補正された点列を新たに保持することを特徴とす
る請求項30記載の輪郭曲線編集方法。
32. The curve generation means includes a curve generation step including a point sequence correction step of correcting the generated contour curve by correcting the input relay point sequence, and the correction is performed after the curve generation. 31. The contour curve editing method according to claim 30, wherein a point sequence is newly held.
【請求項33】 画像上の任意の位置に存在する曲線形
状を入力する曲線入力工程と、 上記入力曲線から適当な中継点列を生成する点列生成工
程と、 上記生成された中継点列を入力として、その互いに隣り
合う各2点間について、上記画像情報と上記画像上の2
点の情報とを用いて、予め設定された経路探査計算を最
適化するように経路探査パラメータを変更する経路探査
処理最適化し、上記最適化された経路探査パラメータを
用いて上記各2点間の輪郭の近傍経路を計算し、上記経
路探査の計算結果を用いて曲線を生成し、上記生成され
た再構成曲線と入力曲線との差分を検出し、上記検出さ
れた差分に応じて上記中継点列に編集操作を加えて中継
点列を生成する点列生成工程とを有することを特徴とす
る請求項30記載の輪郭曲線編集方法。
33. A curve inputting step of inputting a curve shape existing at an arbitrary position on an image; a point sequence generating step of generating an appropriate relay point sequence from the input curve; As an input, the image information and the two points on the image between each two adjacent points are input.
Using the information on the points, the path search processing is optimized to change the path search parameters so as to optimize the path search calculation set in advance, and between the two points using the optimized path search parameters Calculate a path near the contour, generate a curve using the calculation result of the path search, detect a difference between the generated reconstructed curve and the input curve, and calculate the relay point according to the detected difference. 31. The contour curve editing method according to claim 30, further comprising a step of generating a relay point sequence by adding an editing operation to the sequence.
【請求項34】 中継点列に基づいて抽出された輪郭曲
線に追加操作を行う輪郭曲線編集プログラムを記録した
記録媒体であって、上記輪郭曲線編集プログラムは、 画像を入力する画像入力工程と、 上記画像上で中継点を任意の位置に操作する点操作入力
工程と、 上記点操作入力を、保持されている中継点列データに反
映させる点列編集工程と、 上記保持されている中継点列データの互いに隣り合う各
2点間について、上記画像情報と上記2点の情報とを用
いて予め設定された経路探査計算を最適化するように変
更される経路探査パラメータを用いて計算される上記各
2点間の輪郭の近傍経路計算結果を用いて曲線を生成す
る曲線生成工程とを有することを特徴とする記録媒体。
34. A recording medium recording a contour curve editing program for performing an addition operation to a contour curve extracted based on a relay point sequence, wherein the contour curve editing program comprises: an image inputting step of inputting an image; A point operation input step of operating a relay point at an arbitrary position on the image; a point sequence editing step of reflecting the point operation input to held relay point sequence data; and the held relay point sequence Between each two points adjacent to each other in the data, calculated using a path search parameter changed so as to optimize a path search calculation set in advance using the image information and the information of the two points. A curve generating step of generating a curve using a result of calculation of a neighboring path of a contour between each two points.
JP9204862A 1997-07-30 1997-07-30 Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program Withdrawn JPH1153561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9204862A JPH1153561A (en) 1997-07-30 1997-07-30 Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9204862A JPH1153561A (en) 1997-07-30 1997-07-30 Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program

Publications (1)

Publication Number Publication Date
JPH1153561A true JPH1153561A (en) 1999-02-26

Family

ID=16497636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9204862A Withdrawn JPH1153561A (en) 1997-07-30 1997-07-30 Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program

Country Status (1)

Country Link
JP (1) JPH1153561A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146278A (en) * 2006-12-08 2008-06-26 National Institute Of Advanced Industrial & Technology Cell outline extraction device, cell outline extraction method and program
JP2015088155A (en) * 2013-09-25 2015-05-07 日本電信電話株式会社 Data analyzer, data analysis method, and program
CN114638962A (en) * 2022-03-29 2022-06-17 联影智能医疗科技(成都)有限公司 Method and system for labeling region of interest in medical imaging

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146278A (en) * 2006-12-08 2008-06-26 National Institute Of Advanced Industrial & Technology Cell outline extraction device, cell outline extraction method and program
JP2015088155A (en) * 2013-09-25 2015-05-07 日本電信電話株式会社 Data analyzer, data analysis method, and program
CN114638962A (en) * 2022-03-29 2022-06-17 联影智能医疗科技(成都)有限公司 Method and system for labeling region of interest in medical imaging

Similar Documents

Publication Publication Date Title
US20030025794A1 (en) Moving object detecting method, apparatus and computer program product
US20220270232A1 (en) Apparatus for adjusting parameter related to defect detection for image processing for image processing, method for information processing, and program
JP3237898B2 (en) Image figure editing apparatus and processing method of image figure editing apparatus
JP2000251086A (en) Device and method for generating curve and program providing medium
JP2932193B2 (en) Graphic processing unit
KR100396357B1 (en) Method for automatically determining trackers along contour and storage medium storing program for implementing the same
US6806878B2 (en) Graphic editing apparatus for adding or deleting curve to/from graphics by interactive processing
JPH1153561A (en) Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program
CN116342745A (en) Editing method and device for lane line data, electronic equipment and storage medium
JPH0981740A (en) Diagram input device
RU2470368C2 (en) Image processing method
JP3963033B2 (en) Time-series data generation apparatus and method, curve editing apparatus and method, and recording medium recording program
JP3305395B2 (en) Figure division device
JP2661554B2 (en) Correction method of plate material processing figure data
US6690988B2 (en) Producing an object-based description of an embroidery pattern from a bitmap
JP2773127B2 (en) Image editing method
JPH0795385A (en) Method and device for clipping picture
JPH10254991A (en) Ruled line erasing method and mechanically readable medium
JP5128384B2 (en) Coloring method and program for line drawing
JP3096123B2 (en) Document processing apparatus and method
JP2005056010A (en) Device, method and program for defining business form
JP3679467B2 (en) Image processing method and apparatus
JP3239830B2 (en) Transfer instruction optimization apparatus and method
JP2588758B2 (en) Image reduction apparatus and method
JPH06223183A (en) Outline tracing method

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: 20041005