JP3521049B2 - Curve generating device and curve generating method - Google Patents

Curve generating device and curve generating method

Info

Publication number
JP3521049B2
JP3521049B2 JP30368796A JP30368796A JP3521049B2 JP 3521049 B2 JP3521049 B2 JP 3521049B2 JP 30368796 A JP30368796 A JP 30368796A JP 30368796 A JP30368796 A JP 30368796A JP 3521049 B2 JP3521049 B2 JP 3521049B2
Authority
JP
Japan
Prior art keywords
curve
division
shape
curvature
point
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.)
Expired - Fee Related
Application number
JP30368796A
Other languages
Japanese (ja)
Other versions
JPH10134199A (en
Inventor
知生 光永
琢 横山
卓志 戸塚
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 JP30368796A priority Critical patent/JP3521049B2/en
Publication of JPH10134199A publication Critical patent/JPH10134199A/en
Application granted granted Critical
Publication of JP3521049B2 publication Critical patent/JP3521049B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【目次】以下の順序で本発明を説明する。 発明の属する技術分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 発明の実施の形態 (1)全体構成(図1) (2)曲線生成部の構成(図2) (2−1)入力座標分割部の構成(図3及び図4) (2−1−1)曲率算出回路の構成(図5〜図7) (2−1−2)曲率判別回路及び分割点検出回路の構成
(図8及び図9) (2−2)連結条件算出部の構成(図10及び図11) (2−3)曲線近似部の構成(図12) (2−4)実施例の動作及び効果(図13及び図14) (3)他の実施例(図15〜図19) 発明の効果
[Table of Contents] The present invention will be described in the following order. TECHNICAL FIELD OF THE INVENTION Conventional Technology Means for Solving Problems to be Solved by the Invention Embodiments of the Invention (1) Overall Configuration (FIG. 1) (2) Configuration of Curve Generation Unit (FIG. 2) (2) -1) Configuration of Input Coordinate Division Unit (FIGS. 3 and 4) (2-1-1) Configuration of Curvature Calculation Circuit (FIGS. 5 to 7) (2-1-2) Curvature Discrimination Circuit and Division Point Detection Circuit (FIGS. 8 and 9) (2-2) Configuration of connection condition calculation unit (FIGS. 10 and 11) (2-3) Configuration of curve approximation unit (FIG. 12) (2-4) Operation of embodiment And Effects (FIGS. 13 and 14) (3) Other Embodiments (FIGS. 15 to 19)

【0002】[0002]

【発明の属する技術分野】本発明は曲線生成装置及び曲
線生成方法に関し、例えば画像中に存在する対象物の輪
郭として離散的に獲得した複数の座標データからなる形
状データより連続的なデータとしての曲線を生成する際
に適用して好適なものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a curve generation device and a curve generation method, for example, as continuous data from shape data composed of a plurality of coordinate data discretely acquired as an outline of an object existing in an image. It is suitable for application when generating a curve.

【0003】[0003]

【従来の技術】従来、離散的な複数の座標データからな
る形状データ(以下、これを座標リストと呼ぶ)を連続
的なデータとしての曲線に変換する技術は、補間法又は
近似法としてデータ解析等の様々な分野において利用さ
れている。ここで座標リストとは、複数の座標データが
順序付きで格納されたデータを表し、単なる配列、リス
ト構造、線図形2値画像等、格納形式は問わない。また
曲線はその形状を1つ又は複数の数式で表されるものを
指し、例えば次項の係数値を格納するなどの方法で記述
できる。曲線に関しても格納形式は問わない。
2. Description of the Related Art Conventionally, a technique for converting shape data composed of a plurality of discrete coordinate data (hereinafter referred to as a coordinate list) into a curve as continuous data is a data analysis as an interpolation method or an approximation method. It is used in various fields such as. Here, the coordinate list represents data in which a plurality of coordinate data is stored in order, and the storage format does not matter, such as a simple array, a list structure, and a line graphic binary image. A curve refers to a shape represented by one or more mathematical expressions, and can be described by a method of storing the coefficient value of the next term, for example. The storage format of the curve does not matter.

【0004】この補間法又は近似法は、「数値計算ハン
ドブツク」(大野豊、磯田和男、オーム社、1990)に記
載されているように、様々なものがあり、これらを原理
の背景から分類すると、多項式補間法、区分多項式補間
法及び最小2乗法による多項式近似法がある。
There are various interpolating methods or approximation methods as described in "Numerical calculation handbook" (Yutaka Ono, Kazuo Isoda, Ohmsha, 1990), and they are classified from the background of the principle. , Polynomial interpolation method, piecewise polynomial interpolation method and polynomial approximation method by least square method.

【0005】また「コンピユータデイスプレイによる形
状処理工学[I][II]」(山口富士夫、日刊工業新聞
社、1982)及び「Computer Graphics Principles and P
ractice 」(Foly、VanDam、Feiner、and Hughes、Addi
son Wesley社、1990)によれば、区分多項式を用いた曲
線表現はコンピユータグラフイツクスやCAD(Comput
er Aided Design )の分野で多用されており、与えられ
た座標リストから区分多項式を近似的に得る方法が幾つ
か知られている。このような区分多項式表現は、補間法
や近似法とは異なつた性質ももつことができる。ここで
は最も代表的なB−スプライン多項式による曲線近似法
について説明する。
In addition, "Shape processing engineering by computer display [I] [II]" (Fujio Yamaguchi, Nikkan Kogyo Shimbun, 1982) and "Computer Graphics Principles and P"
practice "(Foly, VanDam, Feiner, and Hughes, Addi
According to Son Wesley, 1990), curve representations using piecewise polynomials are computer graphics and CAD (Comput).
er Aided Design), there are several known methods for approximating a piecewise polynomial from a given coordinate list. Such a piecewise polynomial expression can have properties different from those of the interpolation method and the approximation method. Here, the most typical curve approximation method using a B-spline polynomial will be described.

【0006】多項式補間法は、n個の座標からなる座標
リストが与えられたとき、全座標リストを通過する1つ
の多項式を求める操作を行うものである。一般に知られ
ている多項式補間法は、n+1個の座標を通過するn次
多項式を求めるものである。この方法は、必ず座標リス
トを通過させたいときに有効であるが、座標の個数が多
くなるに従つて多項式の次数が大きくなり、曲線が振動
し易くなる問題がある。多項式補間法の代表的なものと
してはラグランジユ(Lagrange)補間がある。
In the polynomial interpolation method, when a coordinate list consisting of n coordinates is given, one polynomial that passes through all coordinate lists is calculated. A generally known polynomial interpolation method is to obtain an n-th degree polynomial that passes through n + 1 coordinates. This method is effective when it is always desired to pass through the coordinate list, but there is a problem that the degree of the polynomial increases as the number of coordinates increases and the curve easily vibrates. A typical polynomial interpolation method is Lagrange interpolation.

【0007】区分多項式補間法は、n個の座標からなる
座標が与えられたとき、全座標リストの小区間毎に別個
の多項式を当てはめて各区分間を滑らかに連結させた曲
線を生成するものである。例えばある小区間の座標デー
タ数がk個の場合、この小区間における区分多項式はk
−1次の多項式で表すことができる。従つて各小区間で
は曲線の形状はk−1次である。この区分多項式補間法
も必ず座標リストを通過し、1つの多項式を用いる多項
式近似と比較して個々の多項式の次数が小さいので余分
な振動がないことが利点である。区分多項式補間法の代
表的なものとしては自然スプライン(natural spline)
がある。
In the piecewise polynomial interpolation method, when a coordinate consisting of n pieces of coordinates is given, a separate polynomial is applied to each small section of the whole coordinate list to generate a curve in which the sections are smoothly connected. is there. For example, when the number of coordinate data in a certain small section is k, the piecewise polynomial in this small section is k
It can be expressed by a polynomial of degree −1. Therefore, in each small section, the shape of the curve is the k-1 order. This piecewise polynomial interpolation method also always passes through the coordinate list, and the degree of each polynomial is smaller than that of the polynomial approximation using one polynomial, so that there is an advantage that there is no extra vibration. Natural spline is a typical piecewise polynomial interpolation method.
There is.

【0008】B−スプライン多項式による曲線近似法
は、区分多項式を用いて、与えられた座標リストを通過
させずにその近傍を滑らかに通過するような曲線を生成
することができる。代表的なものにB−スプライン近似
法がある。例えばある小区間の座標データ数がk個の場
合、この小区間における区分多項式はk−1次の多項式
で表すことができ、各小区間を滑らかに連結させた曲線
を生成する。従つて各小区間では曲線の形状はk−1次
である。
The curve approximation method using the B-spline polynomial can generate a curve that smoothly passes through a given coordinate list without passing through it, using a piecewise polynomial. A typical example is the B-spline approximation method. For example, when the number of coordinate data of a certain small section is k, the piecewise polynomial in this small section can be expressed by a polynomial of degree k−1, and a curve in which each small section is smoothly connected is generated. Therefore, in each small section, the shape of the curve is the k-1 order.

【0009】このB−スプラインは、与えられた座標リ
ストを平滑化したような曲線を得たいときに有効な方法
である。またB−スプラインには局所一意性という性質
がある。ここで局所一意性とは、座標リスト中の任意の
1つを変更しても、局所的な曲線の変化で済むという性
質である。この性質は、2つの曲線を連結する際に有効
な性質であり、ラグランジユ曲線や自然スプライン曲線
にはない性質である。
This B-spline is an effective method for obtaining a curve obtained by smoothing a given coordinate list. Also, B-splines have the property of local uniqueness. Here, the local uniqueness is a property that even if any one of the coordinate list is changed, only a local curve change is required. This property is a property that is effective when connecting two curves, and is a property that is not present in Lagrangian curves or natural spline curves.

【0010】最小2乗法による近似法は、与えられた座
標リストと、座標リストがなす形状との誤差を想定し、
誤差の2乗和が最小になるような曲線を求める方法であ
る。通常の最小2乗法は、その曲線の関数の形は任意で
あるが、多項式による最小2乗近似法は、計算が簡単な
ために多用されている。この方法では、近似する曲線式
の形を予め設定するので、曲線の次数は予め決定される
ことになり、座標データの数には依存しない。
The approximation method by the least squares method assumes an error between a given coordinate list and the shape formed by the coordinate list,
This is a method of obtaining a curve that minimizes the sum of squared errors. In the usual least squares method, the form of the function of the curve is arbitrary, but the least squares approximation method using a polynomial is widely used because of its simple calculation. In this method, since the shape of the curve equation to be approximated is set in advance, the order of the curve is determined in advance and does not depend on the number of coordinate data.

【0011】[0011]

【発明が解決しようとする課題】ところで、与えられた
座標リストの形状が高次で未知であり、与えられた座標
リストのデータ数と形状の次数が無関係であり、与えら
れた座標リストにはノイズが含まれており、できる限り
効率良く曲線近似を行うという4つの条件の下で上述の
ような従来の補間法又は近似法を用いて曲線近似を行つ
た場合、以下のような問題があつた。
By the way, the shape of a given coordinate list is high-order and unknown, and the number of data of the given coordinate list and the degree of the shape are irrelevant. When the curve approximation is performed using the conventional interpolation method or approximation method as described above under the four conditions that noise is included and the curve approximation is performed as efficiently as possible, the following problems occur. It was

【0012】すなわちラグランジユ補間のような1つの
多項式で曲線を表す方法では、座標リストの座標データ
数によつて多項式の次数が決定するので、本来求めたい
形状の次数と曲線の次数が一致せず、効率良く曲線近似
を行うことができない問題があつた。また多項式補間法
は全ての座標リストを通過する曲線を生成するが、ここ
で対象とする座標リストにはノイズが含まれているの
で、全座標リストを通過することは逆に曲線近似の精度
を低下させることになる。すなわち不必要な屈曲を生じ
やすい問題があつた。
That is, in the method of expressing a curve by one polynomial such as Lagrangian interpolation, the degree of the polynomial is determined by the number of coordinate data in the coordinate list, so that the degree of the shape originally desired and the degree of the curve do not match. However, there is a problem that the curve approximation cannot be performed efficiently. In addition, the polynomial interpolation method generates a curve that passes through all coordinate lists, but since the target coordinate list contains noise, passing through the entire coordinate list reverses the accuracy of curve approximation. Will be lowered. That is, there is a problem that unnecessary bending is likely to occur.

【0013】自然スプラインのような区分多項式による
補間法は、比較的低次な多項式で曲線を構成することが
できるが、全座標リストを通過させるので、ラグランジ
ユ補間と同様に、座標リストに含まれるノイズに起因し
て不必要な振動が生ずることを避け得ない。また小区間
の座標データ数によつて区分多項式の次数が決まるの
で、曲線の次数と求めたい形状の次数が一致せず、効率
良く曲線近似を行うことができない問題があつた。
An interpolation method using a piecewise polynomial such as a natural spline can form a curve with a relatively low-order polynomial, but since it passes through the entire coordinate list, it is included in the coordinate list as in the Lagrangian interpolation. It is unavoidable that unnecessary vibration is caused by noise. Further, since the degree of the piecewise polynomial is determined by the number of coordinate data of the small section, the degree of the curve does not match the degree of the shape to be obtained, and there is a problem that the curve cannot be approximated efficiently.

【0014】B−スプラインでは、得られる曲線は座標
リストを平滑化したような形状になるので、座標データ
に含まれるノイズを低減させることができるが、個々の
区分多項式を決定する局所的な座標の数と、求めたい形
状の次数が一致しないので、自然スプラインのような区
分多項式補間と同様に、効率良く曲線近似を行うことが
できない問題があつた。
In the B-spline, since the obtained curve has a shape obtained by smoothing the coordinate list, noise included in the coordinate data can be reduced, but local coordinates that determine individual piecewise polynomials are used. Since the number of and the degree of the desired shape do not match, there is a problem that the curve approximation cannot be performed efficiently as in the case of the piecewise polynomial interpolation like the natural spline.

【0015】最小2乗法による曲線近似は、原理上ノイ
ズを含む座標リストの曲線近似に適する方法である。ま
た最小2乗法による曲線近似は、座標リストのデータ数
に関係なく、近似する形状の次数を決定することができ
るので、決定した次数次第で効率的な近似を行うことが
できる利点がある。しかしながら座標リストを何次の形
状で近似するのが適当であるかを予め調べる必要がある
ため、その分曲線近似の作業が煩雑になる問題があつ
た。
The curve approximation by the method of least squares is a method suitable in principle for curve approximation of a coordinate list including noise. Further, the curve approximation by the least squares method can determine the order of the shape to be approximated regardless of the number of data in the coordinate list, and thus has an advantage that efficient approximation can be performed depending on the determined order. However, since it is necessary to check in advance what order the shape of the coordinate list is to be approximated, there is a problem that the curve approximation work becomes complicated.

【0016】本発明は以上の点を考慮してなされたもの
で、曲線近似の効率を向上し得る曲線生成装置及び曲線
生成方法を提案しようとするものである。
The present invention has been made in consideration of the above points, and an object thereof is to propose a curve generation device and a curve generation method capable of improving the efficiency of curve approximation.

【0017】[0017]

【課題を解決するための手段】かかる課題を解決するた
め本発明においては、複数の離散的な座標データより、
当該座標データが示す形状の近似曲線を生成する曲線生
成装置において、形状を複数のセグメントに分割する分
割点を算出する分割点算出手段と、各分割点毎に、隣接
するセグメントを連結するための連結条件を算出する連
結条件算出手段と、少なくとも各連結条件を考慮して、
各分割点における連結条件を満たすように各セグメント
を曲線近似する曲線近似手段とを具え、分割点算出手段
は、座標データからサンプリングされた3点の座標デー
タに基づき求められる所定線分の長さを求め、該線分の
長さに基づき分割点を算出するか否かを判定するように
した。
In order to solve such a problem, in the present invention, a plurality of discrete coordinate data
In a curve generation device that generates an approximate curve of the shape indicated by the coordinate data, a division point calculation unit that calculates a division point that divides the shape into a plurality of segments, and a connection point that connects adjacent segments for each division point Considering at least each consolidation condition, and the consolidation condition calculation means for calculating the consolidation condition,
Curve division means for curve-approximating each segment so as to satisfy the connection condition at each division point, and the division point calculation means has a length of a predetermined line segment obtained based on coordinate data of three points sampled from the coordinate data. Then, it is determined whether or not the division point is calculated based on the length of the line segment.

【0018】本発明によれば、形状を複数のセグメント
に分割する分割点を算出する際、3点の座標データに基
づき求められる所定線分の長さに基づいて分割するか否
かを判定し、その判定結果の各分割点における連結条件
を満たすように各セグメントを曲線近似するようにした
ことにより、各セグメントを連結するとき所定の近似精
度でなる曲率近似を効率良く行うことができる。
According to the present invention, when the division points for dividing the shape into a plurality of segments are calculated, it is determined whether or not the division is performed based on the length of a predetermined line segment obtained based on the coordinate data of the three points. By performing the curve approximation of each segment so as to satisfy the connection condition at each division point of the determination result, it is possible to efficiently perform the curvature approximation with a predetermined approximation accuracy when connecting each segment.

【0019】[0019]

【発明の実施の形態】以下、図面について本発明の一実
施例を詳述する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described in detail below with reference to the drawings.

【0020】(1)全体構成 図1において、1は全体として本発明を適用したキー信
号生成装置を示し、連続した複数の画像中に存在する対
象物のソフトキーを生成する。キー信号生成装置1は、
輪郭抽出部2及びキー算出部3により構成されており、
輪郭抽出部2において算出した対象物の輪郭曲線と、対
象物の輪郭のグラデイエントベクトルとに基づいて、キ
ー算出部3において対象物のソフトキーを生成する。
(1) Overall Structure In FIG. 1, reference numeral 1 denotes a key signal generating apparatus to which the present invention is applied as a whole, and generates a soft key of an object existing in a plurality of continuous images. The key signal generator 1 is
It is composed of a contour extraction unit 2 and a key calculation unit 3,
Based on the contour curve of the object calculated by the contour extraction unit 2 and the gradient vector of the contour of the object, the key calculation unit 3 generates a soft key of the object.

【0021】キー信号生成装置1は、入力手段としてマ
ウス4を用いてオペレータによつて入力された、輪郭の
おおまかな形状を示す線分情報、折れ線情報、曲線情
報、又は太い筆でなぞつたようなマスク画像情報S1
を、輪郭抽出部2の推定輪郭算出部5で受ける。推定輪
郭算出部5は、線分情報、折れ線情報、曲線情報又はマ
スク画像情報S1に基づいて対象物の輪郭の推定形状
(以下、これを推定輪郭と呼ぶ)に応じた推定輪郭情報
S2を得、当該推定輪郭情報S2を輪郭候補領域決定部
6に送出する。
The key signal generating device 1 uses the mouse 4 as an input means to input the line information indicating the rough shape of the contour, the broken line information, the curve information, or the traced information with a thick brush, which is input by the operator. Mask image information S1
Is received by the estimated contour calculation unit 5 of the contour extraction unit 2. The estimated contour calculation unit 5 obtains the estimated contour information S2 corresponding to the estimated shape of the contour of the object (hereinafter referred to as the estimated contour) based on the line segment information, polygonal line information, curve information or mask image information S1. , And sends the estimated contour information S2 to the contour candidate area determination unit 6.

【0022】輪郭候補領域決定部6は、推定輪郭情報S
2に基づいて、輪郭が存在すると考えられる領域(以
下、これを輪郭候補領域と呼ぶ)を算出すると共にエツ
ジの位置及びエツジの方向を算出し、当該輪郭候補領域
に応じた輪郭候補領域情報S3と、エツジの位置情報と
してエツジ位置e及びエツジの方向情報としてエツジ方
向dをグラデイエントベクトル算出部7に送出する。
The contour candidate area determining section 6 estimates the estimated contour information S.
Based on 2, the area in which a contour is considered to exist (hereinafter, referred to as a contour candidate area) is calculated, the edge position and the edge direction are calculated, and the contour candidate area information S3 corresponding to the contour candidate area is calculated. Then, the edge position e as the edge position information and the edge direction d as the edge direction information are sent to the gradient vector calculation unit 7.

【0023】グラデイエントベクトル算出部7は、輪郭
候補領域情報S3に基づいて輪郭候補領域におけるグラ
デイエント強度値を算出することにより輪郭のグラデイ
エントベクトル情報Ii を生成し、当該グラデイエント
ベクトル情報Ii を輪郭経路探査部8及びキー算出部3
に送出する。
The gradient vector calculation unit 7 generates the gradient gradient vector information I i by calculating the gradient intensity value in the contour candidate region based on the contour candidate region information S3, and the gradient vector information I i. The contour path search unit 8 and the key calculation unit 3
Send to.

【0024】輪郭経路探査部8は、グラデイエントベク
トル情報Ii に基づいて、輪郭の中心を通過する画素の
リストP (以下、これを座標リストP と呼ぶ)を生成
し、当該座標リストP を曲線生成部9に送出する。曲線
生成部9は、座標リストP に基づいて曲線群Cを生成
し、当該曲線群に応じた輪郭曲線情報Cをキー算出部3
に送出する。ここで座標リストは、2次元座標(x、
y)上の位置を表し、曲線生成部9は2次元座標上の曲
線を表すデータを出力する。
The contour path search unit 8 generates a list P of pixels passing through the center of the contour (hereinafter, referred to as a coordinate list P) based on the gradient vector information I i, and sets the coordinate list P. It is sent to the curve generator 9. The curve generation unit 9 generates a curve group C based on the coordinate list P, and obtains the contour curve information C corresponding to the curve group from the key calculation unit 3
Send to. Here, the coordinate list is a two-dimensional coordinate (x,
y), the curve generation unit 9 outputs data representing a curve on two-dimensional coordinates.

【0025】ここでこのキー信号生成装置1において
は、線分情報、折れ線情報、曲線情報又はマスク画像情
報S1より推定輪郭情報S2を得る方法とは別に、1つ
前のフレームである画像i−1の輪郭曲線情報Cを用
い、動きベクトル推定処理によつて画像i−1の輪郭曲
線が現画像iにおいてどこに移動したかを推定すること
により、現画像iにおける推定輪郭情報S2を得ること
ができるようになされている。
Here, in the key signal generating apparatus 1, apart from the method of obtaining the estimated contour information S2 from the line segment information, the broken line information, the curve information or the mask image information S1, the image i- which is the previous frame. By using the contour curve information C of No. 1 and estimating where the contour curve of the image i-1 has moved in the current image i by the motion vector estimation process, the estimated contour information S2 in the current image i can be obtained. It is made possible.

【0026】すなわち動きベクトル推定部10は、1つ
前の画像i−1について、輪郭候補領域決定部6、グラ
デイエントベクトル算出部7、輪郭経路探査部8、曲線
生成部9を介して得られる輪郭曲線情報Cを用いて、当
該輪郭曲線情報Cに応じた輪郭曲線が現画像iにおいて
どこに移動したかを推定し、この結果を推定輪郭情報S
2として輪郭候補領域決定部6に送出する。この場合、
輪郭候補領域決定部6から曲線生成部9までの処理は、
上述と同様の方法で行われる。従つて推定輪郭情報S2
を得る方法として動きベクトル推定部10が選択された
場合、曲線生成部9は、輪郭曲線情報Cを遅延回路11
を介して動きベクトル推定部10にフイードバツクする
ようになされている。
That is, the motion vector estimation unit 10 is obtained for the previous image i-1 via the contour candidate region determination unit 6, the gradient vector calculation unit 7, the contour route search unit 8, and the curve generation unit 9. The contour curve information C is used to estimate where the contour curve corresponding to the contour curve information C has moved in the current image i, and the result is estimated contour information S
2 is sent to the contour candidate area determination unit 6. in this case,
The processing from the contour candidate area determination unit 6 to the curve generation unit 9 is
The method is similar to that described above. Therefore, the estimated contour information S2
When the motion vector estimation unit 10 is selected as a method for obtaining the following, the curve generation unit 9 outputs the contour curve information C to the delay circuit 11
The motion vector estimating unit 10 is fed back via the.

【0027】キー算出部3は、グラデイエントベクトル
情報Ii 及び輪郭曲線情報Cを両端曲線算出部12で受
ける。両端曲線算出部12は、グラデイエントベクトル
情報Ii 及び輪郭曲線情報Cに基づいて、輪郭の両端を
表す2本の曲線(以下、これを両端曲線と呼ぶ)間の幅
を算出し、当該両端曲線間の幅に応じた両端曲線情報S
4をソフトキー生成部13に送出する。ソフトキー生成
部13は、両端曲線情報S4に基づいて、2本の両端曲
線間に高さが「0」から「1」まで滑らかに変化する曲
面を生成し、この曲面の高さをソフトキーの値として画
像に書き込む処理を行つてソフトキーを算出し出力す
る。
The key calculator 3 receives the gradient vector information I i and the contour curve information C at the two-end curve calculator 12. The both-end curve calculation unit 12 calculates the width between two curves (hereinafter, referred to as both-end curves) representing both ends of the contour based on the gradient vector information I i and the contour curve information C, and the both ends. Both-end curve information S according to the width between curves
4 is sent to the soft key generation unit 13. The softkey generation unit 13 generates a curved surface whose height smoothly changes from “0” to “1” between the two curved edges based on the curved edge information S4, and the height of this curved surface is softkeyed. The soft key is calculated and output by performing a process of writing the value as a value in the image.

【0028】かくしてこのキー信号生成装置1は、画像
中に存在する対象物のソフトキーを生成することができ
るようになされている。
Thus, the key signal generating device 1 can generate the soft key of the object existing in the image.

【0029】(2)曲線生成部の構成 本発明の実施例による曲線生成部9の構成を図2に示
す。図2に示すように、曲線生成部9は、複数の離散的
な座標データからなる形状データとして輪郭経路探査部
8から供給される座標リストP を入力座標分割部21、
連結条件算出部22及び曲線近似部23で受ける。
(2) Structure of Curve Generating Unit FIG. 2 shows the structure of the curve generating unit 9 according to the embodiment of the present invention. As shown in FIG. 2, the curve generation unit 9 inputs the coordinate list P supplied from the contour route search unit 8 as shape data composed of a plurality of discrete coordinate data into the input coordinate division unit 21,
The connection condition calculation unit 22 and the curve approximation unit 23 receive it.

【0030】入力座標分割部21は、分割点算出手段と
して、座標リストP によつて表される形状を分割する分
割点の座標のリスト(以下、これを分割点座標リストと
呼ぶ)Eを生成し、これを連結条件算出部22及び曲線
近似部23に送出する。ここで分割点の座標データ(以
下、これを単に座標と呼ぶ)は、座標リストP によつて
表される形状を複数のセグメントに分割したときの端点
を表し、従つて分割点座標リストEは座標リストP のサ
ブセツトとなる。また入力座標分割部21は、後述する
ように、個々のセグメントが効率的に曲線近似されるよ
うに座標リストP を分割する。
The input coordinate dividing unit 21 generates a list of coordinates of dividing points (hereinafter referred to as a dividing point coordinate list) E which divides the shape represented by the coordinate list P, as dividing point calculating means. Then, this is sent to the connection condition calculation unit 22 and the curve approximation unit 23. Here, the coordinate data of the division points (hereinafter, simply referred to as coordinates) represent the end points when the shape represented by the coordinate list P is divided into a plurality of segments, and accordingly the division point coordinate list E is It is a subset of the coordinate list P. Further, the input coordinate dividing unit 21 divides the coordinate list P 1 so that each segment can be efficiently approximated by a curve, as will be described later.

【0031】連結条件算出部22は、連結条件算出手段
として、座標リストP 及び分割点座標リストEに基づい
て、各分割点ei における連結条件、すなわちG1連続
性を満たす連結条件を算出し、連結条件リストRVとし
て曲線近似部23に送出する。すなわち連結条件算出部
22は、後述するように、各分割点ei の連結位置を一
致させるための連結位置の座標ri と、連結位置におけ
る速度方向を一致させるための速度ベクトルvi との対
を連結条件リストRVとして算出する。この場合、連結
位置の座標ri と分割点の座標ei とは必ずしも一致し
ない。
The linking condition calculating unit 22 as linking condition calculating means calculates linking conditions at each dividing point e i , that is, linking conditions satisfying G1 continuity, based on the coordinate list P and the dividing point coordinate list E, The connection condition list RV is sent to the curve approximation unit 23. That connection condition calculating unit 22, as will be described later, of the coordinate r i connecting position for matching the coupling position of each division point e i, a velocity vector v i for matching the velocity direction in the connecting position The pair is calculated as the connection condition list RV. In this case, the coordinate r i of the connection position and the coordinate e i of the division point do not necessarily match.

【0032】曲線近似部23は、曲線近似手段として、
座標リストP 、分割点座標リストE及び連結条件リスト
RVに基づいて、分割点ei と分割点ei+1 とで区切ら
れる座標リストP が示す形状のセグメントを、分割点e
i 及び分割点ei+1 間における連結条件を満たすように
曲線近似することにより、分割点ei 及び分割点ei+1
間における近似曲線ci (すなわちi番目のセグメント
における近似曲線)を算出し、近似曲線群Cを輪郭曲線
情報Cとして両端曲線算出部12に送出する。以下、入
力座標分割部21、連結条件算出部22及び曲線近似部
23の具体的な構成を順に説明する。
The curve approximating unit 23, as a curve approximating means,
Based on the coordinate list P, the division point coordinate list E, and the connection condition list RV, the segment of the shape indicated by the coordinate list P divided by the division point e i and the division point e i + 1 is set to the division point e.
By performing curve approximation so as to satisfy the connection condition between i and the division point e i + 1 , the division point e i and the division point e i + 1
An approximated curve c i (that is, an approximated curve in the i-th segment) is calculated, and the approximated curve group C is sent to the both-ends curve calculation unit 12 as contour curve information C. Hereinafter, specific configurations of the input coordinate division unit 21, the connection condition calculation unit 22, and the curve approximation unit 23 will be described in order.

【0033】(2−1)入力座標分割部の構成 入力座標分割部21の構成を図3に示し、入力座標分割
部21における座標リストP の分割処理について図4に
示すフローチヤートを用いて説明する。入力座標分割部
21は、ステツプSP1より座標リストP の分割処理を
開始し、ステツプSP2において、座標リストP を曲率
算出回路31で受ける。次いで入力座標分割部21は、
ステツプSP3において、各座標pi (i=0〜n−
1)における曲率ρi (i=0〜n−1)を算出し、こ
れら曲率ρでなる曲率リストΡを曲率算出回路31にお
いて生成して曲率判別回路32に送出する。
(2-1) Configuration of Input Coordinate Division Unit The configuration of the input coordinate division unit 21 is shown in FIG. 3, and the division processing of the coordinate list P in the input coordinate division unit 21 will be described using the flow chart shown in FIG. To do. The input coordinate division unit 21 starts the division processing of the coordinate list P 1 at step SP1, and the curvature calculation circuit 31 receives the coordinate list P 1 at step SP2. Next, the input coordinate dividing unit 21
At step SP3, each coordinate p i (i = 0 to n−
The curvature ρ i (i = 0 to n−1) in 1) is calculated, the curvature list Ρ formed by these curvatures ρ is generated in the curvature calculation circuit 31, and is sent to the curvature determination circuit 32.

【0034】ここでこのような離散点列からの曲率計算
方法に関しては、「離散点で表された曲線の曲率の計算
について」(小野直樹、瀧山龍三、信学技報、IE93-74
、pp.7-14 、1993)に3つの方法が説明されている。
この文献によれば、離散点列のある点における座標は、
その近傍の前後等距離にサンプルされた点が分かれば算
出することができると記載されている。従つて曲率算出
回路31においては、与えられた座標リストP の各座標
i において、等間隔で前後の座標をサンプルし、離散
点列の曲率計算手法を利用することによつて各座標pi
の曲率ρi を算出する。
Here, regarding the curvature calculation method from such a sequence of discrete points, "On the calculation of the curvature of the curve represented by the discrete points" (Naoki Ono, Ryuzo Takiyama, IEICE Technical Report, IE93-74)
, Pp.7-14, 1993), three methods are described.
According to this document, the coordinates at a point in the sequence of discrete points are
It is described that it can be calculated if the points sampled equidistantly in the front and rear of the vicinity are known. Therefore, in the curvature calculation circuit 31, for each coordinate p i of the given coordinate list P 1, the front and rear coordinates are sampled at equal intervals, and the curvature calculation method of the discrete point sequence is used to calculate each coordinate p i.
The curvature ρ i of is calculated.

【0035】続いて入力座標分割部21は、ステツプS
P4において、座標リストP 及び曲率リストΡに基づい
て、各座標pi における曲率ρi の判別結果τi (i=
0〜n−1)を曲率判別回路32において算出すると共
に、これら判別結果τi でなる判別結果リストΤを分割
点検出回路33に送出する。ここで判別結果リストΤ
は、後述する判別アルゴリズムに従つて分類された結果
を示す離散的な値である。
Then, the input coordinate dividing section 21 determines the step S.
In P4, based on the coordinate list P and the curvature list Ρ, the determination result τ i (i = i) of the curvature ρ i at each coordinate p i
0 to n-1) are calculated in the curvature determination circuit 32, and the determination result list T including these determination results τ i is sent to the division point detection circuit 33. Here, the discrimination result list Τ
Is a discrete value indicating the result of classification according to the discrimination algorithm described later.

【0036】次いで入力座標分割部21は、ステツプS
P5において、座標リストP 、曲率リストΡ及び判別結
果リストΤを基に、分割点検出回路33において、座標
リストP によつて表される形状を分割する分割点座標e
0 、e1 、……、em-1 を座標リストP から抽出するこ
とにより分割点座標リストEを生成し、ステツプSP6
において分割点座標リストEを連結条件算出部22に送
出し、ステツプSP7において座標リストP の分割処理
を終了する。
Next, the input coordinate dividing section 21 determines the step S
In P5, based on the coordinate list P 1, the curvature list Ρ, and the discrimination result list Τ, the division point detection circuit 33 divides the shape represented by the coordinate list P 1 into division point coordinates e.
0 , e 1 , ..., E m-1 are extracted from the coordinate list P to generate a division point coordinate list E, and step SP6
At, the division point coordinate list E is sent to the connection condition calculation unit 22, and the division processing of the coordinate list P is ended at step SP7.

【0037】(2−1−1)曲率算出回路の構成 曲率の算出方法は、上述した文献「離散点で表された曲
線の曲率の計算について」に記載されている手法に限定
されることはない。ここではこの文献に記載されている
手法と同程度の近似精度を得ることができる手法を図5
及び図6を用いて説明した後、当該手法を用いた場合の
曲率算出回路31における曲率算出処理について説明す
る。
(2-1-1) Constitution of Curvature Calculation Circuit The calculation method of the curvature is not limited to the method described in the above-mentioned document "Calculation of the curvature of the curve represented by discrete points". Absent. Here, a method capable of obtaining an approximation accuracy similar to that described in this document is shown in FIG.
6 and FIG. 6, the curvature calculation process in the curvature calculation circuit 31 when the method is used will be described.

【0038】図5(A)は連続した曲線データにおける
曲率の定義を示し、図5(B)は離散点列における曲率
の定義を示す。図5(A)において、曲線上の点sから
距離dsだけ離れた点s+dsの間における接線方向の
変化をdθとすると、点sにおける曲率κ(s)は、d
θの極限、すなわち次式
FIG. 5A shows the definition of curvature in continuous curve data, and FIG. 5B shows the definition of curvature in a sequence of discrete points. In FIG. 5A, if the change in the tangential direction between points s + ds separated by a distance ds from the point s on the curve is dθ, the curvature κ (s) at the point s is d
The limit of θ, that is,

【数1】 によつて定義される。ここで lim[s→0]は、sを
「0」に近づけた極限を意味する。
[Equation 1] Is defined by Here, lim [s → 0] means the limit where s is brought close to “0”.

【0039】一方、図5(B)において、点列上の点p
i と、点pi の前後の点pi-j 及び点pi+j が等間隔d
sで得られたとすると、点pi-j と点pi とを結ぶ線分
を点pi-j と点pi との中点での接線と考えることがで
きる。同様に点pi と点pi+j との中点の接線は、点p
i と点pi+j を結ぶ線分で与えられる。この接線方向の
変化をdθとする。離散点列では極限がとれないので、
得られる最小のdsのdθを極限値の代わりとすると、
離散点列の曲率の定義は、次式
On the other hand, in FIG. 5B, the point p on the point sequence is
and i, p ij and the point in terms of before and after the point p i p i + j is equal intervals d
When obtained in s, it can be considered a line segment connecting the point p ij and the point p i and the tangent at the midpoint between the point p ij and the point p i. Similarly, the tangent line between the points p i and p i + j is the point p
It is given by the line segment connecting i and the point p i + j . The change in the tangential direction is dθ. Since the limit cannot be taken with a sequence of discrete points,
If dθ of the minimum ds obtained is substituted for the limit value,
The curvature of a sequence of discrete points is defined by

【数2】 で与えられる。従つて離散点列では最小の間隔dsと角
度変化dθを求めれば、曲率を計算することができる。
[Equation 2] Given in. Therefore, in the discrete point sequence, the curvature can be calculated by obtaining the minimum distance ds and the angle change dθ.

【0040】このdθを三角関数を用いずに、近似計算
で求める手法を図6(A)及び図6(B)を用いて説明
する。図6(A)は曲率計算の手法を表しており、得ら
れる最小の間隔dsとそのときのθを与える点pi 、点
i-j 及び点pi+j が与えられたとき、点pi-j と点p
i+j を結ぶ線分に対して点pi から下ろした垂線の長さ
φを求める。図6(B)は垂線の長さφとθの関係を示
すグラフであり、0からπ/2までのθの変化はほぼ2
φで近似できることが分かる。例えばθ=π/2におけ
る近似誤差は約10〔%〕である。
A method for obtaining dθ by approximation calculation without using a trigonometric function will be described with reference to FIGS. 6 (A) and 6 (B). FIG. 6A shows a method of calculating curvature, and when a point p i , a point p ij, and a point p i + j that give the minimum distance ds obtained and θ at that time are given, a point p ij And point p
The length φ of the perpendicular line drawn from the point p i with respect to the line segment connecting i + j is obtained. FIG. 6B is a graph showing the relationship between the perpendicular length φ and θ, and the change in θ from 0 to π / 2 is almost 2
It can be seen that φ can be approximated. For example, the approximation error at θ = π / 2 is about 10%.

【0041】ここで曲率算出回路31における曲率算出
処理について図7に示すフローチヤートを用いて説明す
る。曲率算出回路31は、曲率算出手段として、ステツ
プSP1より曲率算出処理を開始し、ステツプSP2に
おいて、輪郭経路探査部8から座標リストP を受ける。
続いて曲率算出回路31は、ステツプSP3において、
各座標pi において、予め設定した間隔jで座標pi
前後の座標pi-j 及びpi+j をサンプルし、座標pi
座標pi-j 及び座標pi+j に基づいてサンプル座標の間
隔ds(この場合、間隔jとなる)を算出する。
Now, the curvature calculation processing in the curvature calculation circuit 31 will be described using the flow chart shown in FIG. The curvature calculation circuit 31, as a curvature calculation means, starts the curvature calculation process from step SP1 and receives the coordinate list P from the contour route search unit 8 at step SP2.
Subsequently, the curvature calculation circuit 31 determines in step SP3 that
In each coordinate p i, samples the coordinates p ij and p i + j before and after the coordinate p i at intervals j set in advance, the coordinates p i,
Based on the coordinates p ij and the coordinates p i + j , the sample coordinate interval ds (in this case, the interval j) is calculated.

【0042】この後、曲率算出回路31は、座標pi
座標pi-j 及び座標pi+j に基づいて、座標pi-j と座
標pi+j とを結ぶ線分に対して座標pi から下ろした垂
線の長さφを算出すると共に、この垂線の長さφを2倍
した後、2φ/dsを算出することにより、座標pi
おける曲率ρi を求めて曲率リストΡを生成し、ステツ
プSP4において、当該曲率リストΡを曲率判別部32
に送出し、ステツプSP5において曲率算出処理を終了
する。
Thereafter, the curvature calculating circuit 31 determines the coordinates p i ,
Based on the coordinates p ij and coordinates p i + j, and calculates the length φ of a perpendicular line drawn from the coordinate p i with respect to a line segment connecting the coordinates p ij and the coordinates p i + j, the length of the perpendicular line After doubling the length φ, 2φ / ds is calculated to obtain the curvature ρ i at the coordinate p i to generate the curvature list Ρ. In step SP4, the curvature list Ρ is calculated.
And the curvature calculation process is ended in step SP5.

【0043】ここでノイズのある離散点列では、信頼性
の高い最小の間隔dsが与えられるときのサンプル間隔
jは、必ずしも「1」ではない。また座標リストP はほ
ぼ等間隔にデータが与えられているとしてサンプル間隔
をjで定めたが、計算精度を向上させるために、できる
限りサンプル間隔jを等間隔にするようなルールを設定
してサンプル間隔jを可変に決めるようにしてもよい。
In the case of a noisy sequence of discrete points, the sample interval j when the minimum reliable interval ds is given is not necessarily "1". Also, the coordinate list P defines the sample intervals as j, assuming that the data are given at almost equal intervals, but in order to improve the calculation accuracy, a rule is set to make the sample intervals j equal to each other as much as possible. The sample interval j may be variably determined.

【0044】(2−1−2)曲率判別回路及び分割点検
出回路の構成 曲率判別回路32及び分割点検出回路33における処理
について図8に示すフローチヤートを用いて説明する。
入力座標分割部21は、ステツプSP1より曲率を用い
た座標リストP の分割処理を曲率判別回路32及び分割
点検出回路33において開始し、ステツプSP2におい
て、曲率算出回路31から供給される曲率リストΡを曲
率判別回路32で受ける。
(2-1-2) Constitution of Curvature Discrimination Circuit and Division Point Detection Circuit The processing in the curvature discrimination circuit 32 and division point detection circuit 33 will be described using the flow chart shown in FIG.
The input coordinate dividing unit 21 starts the division processing of the coordinate list P using the curvature from step SP1 in the curvature discriminating circuit 32 and the division point detecting circuit 33, and in step SP2, the curvature list Ρ supplied from the curvature calculating circuit 31. Is received by the curvature determination circuit 32.

【0045】続いてステツプSP3において、入力座標
分割部21は、曲率判別手段としての曲率判別回路32
において、各座標pi における曲率ρi の絶対値(|ρ
i |)の大きさに対して、予め設定したしきい値T を用
いてしきい値処理することにより得られる2値化した値
を判別結果τi として算出すると共に判別結果リストΤ
を生成する。次いでステツプSP4において、入力座標
分割部21は、分割点検出手段としての分割点検出回路
33において、判別結果リストΤを基に、判別結果τの
値が変化する点を分割点として検出し、この分割点の座
標でなる分割点座標リストEを生成する。これにより座
標リストP によつて表される形状をほぼ直線と曲線に分
割することができる。
Subsequently, in step SP3, the input coordinate dividing section 21 causes the curvature discriminating circuit 32 as the curvature discriminating means.
, The absolute value of the curvature ρ i at each coordinate p i (| ρ
i )), a binarized value obtained by performing threshold processing using a preset threshold T is calculated as the discrimination result τ i , and the discrimination result list Τ
To generate. Next, at step SP4, the input coordinate dividing section 21 detects a point where the value of the discrimination result τ changes as a division point on the basis of the discrimination result list T in the division point detecting circuit 33 as the division point detecting means. A division point coordinate list E including the coordinates of the division points is generated. As a result, the shape represented by the coordinate list P can be divided into almost straight lines and curved lines.

【0046】すなわち入力座標分割部21は、分割点検
出回路33において、座標リストPによつて表される形
状を分割点で分割することにより得られるセグメントの
端点を表す分割点座標リストEを生成する。次いで入力
座標分割部21は、ステツプSP5において、当該分割
点座標リストEを連結条件算出部22に送出し、ステツ
プSP6において処理を終了する。
That is, the input coordinate division unit 21 generates a division point coordinate list E representing the end points of the segment obtained by dividing the shape represented by the coordinate list P at the division points in the division point detection circuit 33. To do. Next, the input coordinate division unit 21 sends the division point coordinate list E to the connection condition calculation unit 22 in step SP5, and ends the process in step SP6.

【0047】ここでこの実施例の場合、曲率ρi の絶対
値(|ρi |)と所定の値以下のしきい値として「0」
に近いしきい値T とを用いて判別結果τi を算出する。
この曲率ρi の絶対値(|ρi |)と「0」に近いしき
い値T とを用いて座標リストP を分割する方法を図9を
用いて説明する。
In the case of this embodiment, the absolute value (| ρ i |) of the curvature ρ i and the threshold value equal to or smaller than a predetermined value are set to “0”.
The discriminant result τ i is calculated using a threshold value T 1 which is close to.
A method of dividing the coordinate list P using the absolute value (| ρ i |) of the curvature ρ i and the threshold value T close to “0” will be described with reference to FIG.

【0048】図9(A)の曲線は座標リストP によつて
表される形状を示すものとする。この形状は2箇所で屈
曲しているので、3次曲線によつて比較的良好に近似す
ることができる。しかしながら直線的な部分が長いの
で、この直線的な部分を1次、すなわち直線で近似する
と共に、屈曲部を3次曲線で近似すれば、それぞれの近
似精度を向上させることができる。
The curve of FIG. 9A shows the shape represented by the coordinate list P. Since this shape is bent at two points, it can be relatively well approximated by a cubic curve. However, since the linear portion is long, it is possible to improve the approximation accuracy of each by linearly approximating the linear portion, that is, by approximating the curved portion by the cubic curve.

【0049】ここで図9(B)に示すような位置Xで分
割すると、分割した右側の曲線部分にはまだ直線的な部
分が残つているので、近似精度を考えれば、図9(C)
に示すような位置X1でさらに分割する必要がある。し
かしなから図9(C)に示すように、位置X及び位置X
1で分割すると、1つの直線で近似されるべき直線的な
部分を2つの部分で分割することになるので近似効率が
良くない。従つてこの実施例の場合には、曲率リストΡ
に基づいて、形状が屈曲する領域と屈曲のない領域とを
判別し、これらの境界で座標リストP によつて表される
形状を分割する。これにより、図9(D)に示すように
直線と曲線とに分割することができ、近似効率を向上さ
せることができる。
Here, when dividing at the position X as shown in FIG. 9 (B), a linear portion still remains in the divided right-hand curved portion. Therefore, considering the approximation accuracy, FIG. 9 (C)
Further division is required at the position X1 as shown in. However, as shown in FIG. 9C, position X and position X
If it is divided by 1, the linear portion that should be approximated by one straight line will be divided by two portions, so the approximation efficiency is not good. Therefore, in the case of this embodiment, the curvature list Ρ
On the basis of the above, the region where the shape is bent and the region where the shape is not bent are discriminated, and the shape represented by the coordinate list P is divided at these boundaries. Accordingly, as shown in FIG. 9D, the line can be divided into a straight line and a curved line, and the approximation efficiency can be improved.

【0050】かくしてこの入力座標分割部21は、各座
標pにおける曲率ρを算出し、曲率ρをしきい値処理し
て曲率ρの大きさを基準として、座標リストP によつて
表される形状を分割する分割点を検出することにより、
座標データ数に依存せずに座標リストP によつて表され
る形状を効率良く分割し得ると共に、座標リストP によ
つて表される形状を少ない次数で表すことのできる形状
に分割し得るようになされている。
Thus, the input coordinate division unit 21 calculates the curvature ρ at each coordinate p, thresholds the curvature ρ, and uses the magnitude of the curvature ρ as a reference to form the shape represented by the coordinate list P. By detecting the split points that split
The shape represented by the coordinate list P can be efficiently divided without depending on the number of coordinate data, and the shape represented by the coordinate list P can be divided into shapes that can be represented by a small order. Has been done.

【0051】(2−2)連結条件算出部の構成 連結条件算出部22の構成を図10に示し、連結条件算
出部22における連結条件算出処理について図11に示
すフローチヤートを用いて説明する。連結条件算出部2
2は、ステツプSP1より連結条件算出処理を開始し、
それぞれステツプSP2及びステツプSP3において、
座標リストP 及び分割点座標リストEを分割点曲線近似
回路41で受ける。
(2-2) Structure of the connection condition calculation unit The structure of the connection condition calculation unit 22 is shown in FIG. 10, and the connection condition calculation processing in the connection condition calculation unit 22 will be described using the flow chart shown in FIG. Connection condition calculation unit 2
2 starts the connection condition calculation processing from step SP1,
In step SP2 and step SP3 respectively,
The division point curve approximation circuit 41 receives the coordinate list P and the division point coordinate list E.

【0052】続くステツプSP4において、連結条件算
出部22は、分割点曲線近似手段としての分割点曲線近
似回路41において、分割点座標リストEを基に各分割
点ei において、当該分割点ei の前後j個の座標を座
標リストP よりサンプルし、これらj個のサンプル座標
を用いて、座標リストP によつて表される形状のうち分
割点ei 近傍における領域の形状に近似してなる曲線c
i を算出し、各曲線cei でなる曲線リストCeを接
線算出回路42に送出する。この近似処理は、局所的な
形状を推定するためのものなので、近似する曲線の次数
は適当に低い値に設定してもよい。曲線cei はパラメ
ータt(0<=t<=1)によつて表現され、例えばt
=0.5 で分割点ei の近傍を通過するように求めてお
く。
[0052] In the following step SP4, coupling condition calculating unit 22, the division point curve approximation circuit 41 as a dividing point curve approximation means, at each division point e i based on the division point coordinate list E, the division point e i The j coordinates before and after are sampled from the coordinate list P, and these j sample coordinates are used to approximate the shape of the region in the vicinity of the division point e i among the shapes represented by the coordinate list P. Curve c
e i is calculated, and the curve list Ce including each curve ce i is sent to the tangent line calculation circuit 42. Since this approximation processing is for estimating a local shape, the degree of the curve to be approximated may be set to an appropriately low value. The curve ce i is represented by a parameter t (0 <= t <= 1), for example, t
= 0.5, it is required to pass near the division point e i .

【0053】曲線近似の具体的な方法については、上述
の「数値計算ハンドブツク」、「コンピユータデイスプ
レイによる形状処理工学[I][II]」及び「Computer
Graphics Principles and Practice 」に記載されてい
る。ここで座標リストP にノイズが含まれている場合に
は、曲線近似する際に最小2乗法を用いることによりノ
イズに影響されない曲線cei を得ることができ、また
スプライン近似を用いることにより曲線近似の計算を簡
略化することができるので、状況に応じて使い分けるよ
うにすればよい。
As for the concrete method of curve approximation, the above-mentioned "numerical calculation handbook", "shape processing engineering by computer display [I] [II]" and "Computer" are used.
Graphics Principles and Practice ". If the coordinate list P contains noise, the least squares method can be used for curve approximation to obtain a curve ce i that is not affected by noise, and the spline approximation can be used for curve approximation. Since the calculation of can be simplified, it can be used properly according to the situation.

【0054】次いでステツプSP5において、連結条件
算出部22は、接線算出手段としての接線算出回路42
において、曲線リストCeを基に各曲線cei 毎に、各
曲線cei において分割点ei の近傍を通過する位置を
連結位置ri として算出すると共に、当該連結位置ri
における速度ベクトル(接線方向ベクトル)vi を算出
し、ステツプSP6において、各曲線cei 毎に算出し
た連結位置ri と速度ベクトルvi との対を連結条件リ
ストRVとして曲線近似部23に送出し、ステツプSP
7において連結条件算出処理を終了する。ここで上述の
ように曲線cei をパラメータtで求めているので、曲
線cei(t= 0.5)の連結位置ri と速度ベクトルv
i を計算すればよい。
Next, at step SP5, the connection condition calculation unit 22 causes the tangent line calculation circuit 42 as a tangent line calculation means.
In the basis of the curve list Ce for each curve ce i, to calculate the position passing through the vicinity of the division point e i in curves ce i as the connecting position r i, the connecting position r i
The velocity vector (tangential direction vector) v i is calculated, and in step SP6, the pair of the coupling position r i and velocity vector v i calculated for each curve ce i is sent to the curve approximation unit 23 as the coupling condition list RV. And step SP
In 7, the linking condition calculation process ends. Since here sought curve ce i as described above in the parameter t, the curve ce i (t = 0.5) connecting position r i and the velocity vector v of
Just calculate i .

【0055】かくして連結条件算出回路22は、座標リ
ストP によつて表される形状を分割する分割点ei 近傍
における曲線cei の位置ri と接線方向ベクトルvi
とを局所的な曲線近似によつて算出することにより、G
1連続性を満たすような連結条件を算出し得ると共に、
局所的な曲線近似を最小2乗法を用いて行うことによ
り、座標リストP にノイズが含まれている場合でも連結
条件を確実に算出し得るようになされている。
[0055] Thus connected condition calculating circuit 22, the position r i and the tangential direction vector v i of the curve ce i at the division point e i vicinity of dividing a shape expressed Te coordinate list P Niyotsu
By calculating and by local curve approximation, G
It is possible to calculate connection conditions that satisfy one continuity, and
By performing the local curve approximation using the least-squares method, the connection condition can be surely calculated even when the coordinate list P contains noise.

【0056】(2−3)曲線近似部の構成 曲線近似部23は、座標リストP 、分割点座標リストE
及び連結条件リストRVに基づいて、各分割点間を近似
する曲線を生成する。この実施例においては、座標リス
トP にノイズが含まれていると仮定し、最小2乗法を用
いた近似法について説明する。また近似する曲線式は、
連結条件を考慮した3次ベジエ(Bezier)曲線を用いた
場合について説明する。
(2-3) Constitution of curve approximation unit The curve approximation unit 23 has a coordinate list P and a division point coordinate list E.
And a curve that approximates the respective division points is generated based on the connection condition list RV. In this embodiment, assuming that the coordinate list P contains noise, an approximation method using the least square method will be described. The approximate curve equation is
The case of using a cubic Bezier curve considering the connection condition will be described.

【0057】一般に、3次のベジエ曲線は、次式In general, the cubic Bezier curve is

【数3】 によつて表すことができる。ここでf、q0、q1、q
2及びq3は、2次元平面(x、y)上のベクトルと
し、a**bはaのb乗を表す。
[Equation 3] Can be represented by Where f, q0, q1, q
2 and q3 are vectors on a two-dimensional plane (x, y), and a ** b represents a to the power b.

【0058】曲線の分割点の連結条件により、連結位置
q0、q3 と接線方向ベクトルu0、u3が与えられ
ると、(3)式は次式
When the connecting positions q0 and q3 and the tangential direction vectors u0 and u3 are given by the connecting condition of the dividing points of the curve, the equation (3) is given by

【数4】 のように表すことができる。ここでh及びkはスカラで
ある。座標データf(t)を与え、最小2乗法によつて
このスカラh及びkを求めることによつて曲線式を作成
することができる。すなわち最小2乗法によつて次式
[Equation 4] Can be expressed as Here, h and k are scalars. A curve equation can be created by giving coordinate data f (t) and obtaining the scalars h and k by the least square method. That is, according to the method of least squares,

【数5】 の連立方程式を解く問題に変換することができる。[Equation 5] Can be converted into a problem to solve the simultaneous equations of.

【0059】ここでA及びFは、座標データf(t)と
tによつて決まる値であり、B、C、D、E、G、H、
I及びJは、q0、q3、u0、u3の内積値で決まる
値である。従つてスカラh及びkは、u0とu3が直交
するときには、次式
Here, A and F are values determined by the coordinate data f (t) and t, and B, C, D, E, G, H,
I and J are values determined by the inner product value of q0, q3, u0, u3. Therefore, when h0 and u3 are orthogonal, the scalars h and k are

【数6】 によつて求めることができ、これ以外のときには、次式[Equation 6] Can be obtained by

【数7】 によつて求めることができる。この場合、2次、1次の
近似では曲線f∧(t)が簡単になる。
[Equation 7] Can be obtained by In this case, the curve f∧ (t) is simplified by the quadratic and linear approximations.

【0060】ここで曲線近似部23における曲線近似処
理について図12に示すフローチヤートを用いて説明す
る。曲線近似部23は、ステツプSP1より曲線近似処
理を開始し、ステツプSP2、ステツプSP3及びステ
ツプSP4において、それぞれ座標リストP 、端点座標
リストE及び連結条件リストRVを受ける。
Here, the curve approximation processing in the curve approximation unit 23 will be described with reference to the flow chart shown in FIG. The curve approximating unit 23 starts the curve approximating process from step SP1 and receives the coordinate list P, the end point coordinate list E and the connection condition list RV at steps SP2, SP3 and SP4, respectively.

【0061】続いて曲線近似部23は、ステツプSP5
において、各分割点で分割された座標リストP につい
て、上述した最小2乗法によるベジエ曲線近似を行う。
すなわち曲線近似部23は、まず座標リストP によつて
表される形状において分割点ei と分割点ei+1 で区切
られるセグメントをデータf(t)としてサンプルす
る。このときtは、f(0)=ei 、f(1)=ei+1
となるように適当に決める。
Subsequently, the curve approximating section 23 determines the step SP5.
In, the Bezier curve approximation by the above-mentioned least square method is performed on the coordinate list P 1 divided at each division point.
That is, the curve approximating unit 23 first samples, as the data f (t), a segment delimited by the division points e i and e i + 1 in the shape represented by the coordinate list P 1 . At this time, t is f (0) = e i , f (1) = e i + 1
Determine appropriately so that

【0062】その後、曲線近似部23は、連結条件リス
トRVに基づいて上述のq0、q3、u0及びu3を決
定した後、q0、q3、u0及びu3より、最小2乗法
の計算手法に従つて、上述のA、B、C、D、E、F、
G、H、I及びJを算出する。次いで曲線近似部23
は、算出したA、B、C、D、E、F、G、H、I及び
Jより、(6)式又は(7)式を用いてスカラk及びh
を算出する。
Thereafter, the curve approximating unit 23 determines q0, q3, u0 and u3 based on the linking condition list RV, and then uses q0, q3, u0 and u3 in accordance with the method of least squares calculation. , The above A, B, C, D, E, F,
Calculate G, H, I and J. Next, the curve approximation unit 23
Is a scalar k and h from the calculated A, B, C, D, E, F, G, H, I and J using the equation (6) or the equation (7).
To calculate.

【0063】次いで曲線近似部23は、スカラk及びh
と(4)式から曲線f∧(t)を算出し、算出結果をi
番目のセグメントにおける近似曲線ci としステツプS
P5における処理を終了する。曲線近似部23は、ステ
ツプSP6において、ステツプSP5において算出した
各近似曲線ci でなる近似曲線群Cを輪郭曲線情報Cと
して出力し、ステツプSP7において曲線近似処理を終
了する。
Next, the curve approximating unit 23 receives the scalars k and h.
And the curve f∧ (t) is calculated from the equation (4), and the calculation result is i
The approximate curve c i in the th segment and step S
The process in P5 ends. In step SP6, the curve approximating unit 23 outputs the approximate curve group C composed of the approximate curves c i calculated in step SP5 as the contour curve information C, and ends the curve approximating process in step SP7.

【0064】(2−4)実施例の動作及び効果 以上の構成において、曲線生成部9は、図13に示すス
テツプSP1より曲線生成処理を開始し、ステツプSP
2において、例えば図14(A)に示すような離散デー
タからなる座標リストP を輪郭経路探査部8から受け
る。図14(A)〜図14(C)において、点線は求め
るべき座標リストP が示す形状を表す。ここで座標リス
トP にはノイズが含まれているので、座標リストP で与
えられる各座標pの点は、点線で示す求めるべき形状に
必ずしも一致しない。また座標の数と点線で示した求め
るべき形状の次数は一致していない。
(2-4) Operations and Effects of the Embodiment With the above configuration, the curve generation unit 9 starts the curve generation processing from step SP1 shown in FIG.
2, the coordinate list P 2 composed of discrete data as shown in FIG. 14A is received from the contour route search unit 8. 14 (A) to 14 (C), the dotted line represents the shape indicated by the coordinate list P to be obtained. Here, since the coordinate list P contains noise, the point of each coordinate p given in the coordinate list P does not necessarily match the shape to be obtained indicated by the dotted line. Further, the number of coordinates does not match the order of the shape to be obtained indicated by the dotted line.

【0065】次いで曲線生成部9は、ステツプSP3に
おいて、座標リストP を基に分割点座標リストEを作成
する。すなわち曲線生成部9は、座標リストP の離散的
な並びから、求める形状の次数を局所的に推定する。こ
の場合、図14(B)に示すように、座標リストP は分
割された各セグメントにおける形状の次数が大きくなら
ないように分割される。すなわち算出した曲率の大きさ
を基準として曲線の次数が決定されるので、座標データ
数に依存せずに各セグメントにおける次数が決定され
る。従つて各セグメントにおける次数が大きくなること
を未然に防止することができる。
Next, the curve generator 9 creates a division point coordinate list E based on the coordinate list P in step SP3. That is, the curve generation unit 9 locally estimates the order of the shape to be obtained from the discrete arrangement of the coordinate list P 1. In this case, as shown in FIG. 14B, the coordinate list P is divided so that the degree of the shape of each divided segment does not increase. That is, since the order of the curve is determined based on the magnitude of the calculated curvature, the order in each segment is determined without depending on the number of coordinate data. Therefore, it is possible to prevent the order in each segment from increasing.

【0066】続いて曲線生成部9は、ステツプSP4に
おいて、各分割点ei における連結条件ri 、vi を算
出する。すなわち曲線生成部9は、図14(C)に示す
ように、ステツプSP3において算出した各分割点ei
近傍における形状に近似した近似曲線cei を算出し、
当該近似曲線cei における分割点ei 近傍での接線r
i 、vi を算出し、これら各接線を各セグメントを曲線
近似するための連結条件とする。この場合、最小2乗法
を用いて連結条件が算出されるので、分割点座標近傍に
おいてノイズが存在する場合でも、連結条件を確実に得
ることができる。
Subsequently, the curve generator 9 calculates the connection conditions r i and v i at each division point e i in step SP4. That is, the curve generation unit 9 determines, as shown in FIG. 14C, each division point e i calculated in step SP3.
Calculate an approximate curve ce i that approximates the shape in the neighborhood,
Tangent r at division point e i vicinity of the approximate curve ce i
i , v i are calculated, and these tangents are used as connection conditions for curve approximation of each segment. In this case, since the connection condition is calculated using the least squares method, the connection condition can be reliably obtained even when there is noise near the division point coordinates.

【0067】次いで曲線生成部9は、ステツプSP5に
おいて、隣接する分割点ei 及びei+1 で区切られるセ
グメントを、両端点における連結条件を満たすように最
小2乗法を用いて曲線近似することにより近似曲線ci
を算出し、ステツプSP6において、近似曲線ci でな
る近似曲線群Cを輪郭曲線情報Cとして出力し、ステツ
プSP7において曲線生成処理を終了する(図14
(D))。
Then, in step SP5, the curve generator 9 approximates the segments delimited by the adjacent division points e i and e i + 1 using the least squares method so as to satisfy the connection condition at both end points. Approximate curve c i
Is calculated, the approximate curve group C formed of the approximate curves c i is output as the contour curve information C in step SP6, and the curve generation processing is ended in step SP7 (FIG. 14).
(D)).

【0068】この場合、隣接する分割点(すなわちセグ
メントの両端点)における連結条件として各近似曲線c
i における分割点ei 近傍での接線ri 、vi を算出
し、当該連結条件を維持するように曲線近似が行われる
ので、各セグメントを滑らかに連結することができ、こ
れによつて各曲線の形状を全体的に一致させることがで
きる。
In this case, each approximated curve c is used as a connection condition at adjacent division points (that is, both end points of the segment).
calculating a tangent r i, v i at the division point e i vicinity of e i, because curve approximation is performed so as to maintain the coupling condition can be smoothly connected to each segment, Yotsute thereto The shape of each curve can be entirely matched.

【0069】また最小2乗法を用いて曲線近似が行われ
るので、座標リストP にノイズが含まれている場合で
も、ノイズを含んだ座標リストP から座標データ数に依
存せずに、得たい次数の曲線を求めることができる。ま
たノイズに起因して発生する振動を回避することができ
るので、曲線近似の精度の低下を回避し得ると共に、座
標リストを何次の形状で近似するのが適当かを予め調べ
る必要がないので、曲線近似の作業を簡単にすることが
できる。
Since the curve approximation is performed by using the least squares method, even if the coordinate list P contains noise, the desired order can be obtained from the coordinate list P containing noise without depending on the number of coordinate data. The curve of can be obtained. In addition, since it is possible to avoid vibrations caused by noise, it is possible to avoid a decrease in the accuracy of curve approximation and it is not necessary to check in advance what order the coordinate list should be approximated by. , It is possible to simplify the work of curve approximation.

【0070】かくして、この曲線生成部9は、座標リス
トP の形状が高次で未知であり、座標リストP のデータ
数と形状の次数が無関係であり、かつ座標リストP にノ
イズが含まれている場合でも、曲線近似を効率良く行う
ことができる。
Thus, the curve generation unit 9 has a high-order unknown shape of the coordinate list P, the number of data of the coordinate list P is irrelevant, and the coordinate list P contains noise. Even if there is, the curve can be approximated efficiently.

【0071】以上の構成によれば、曲率の大きさを基準
に座標リストP によつて表される形状を分割して各セグ
メントの次数を決定すると共に、各近似曲線cei にお
ける分割点ei 近傍での接線を連結条件として算出し、
当該連結条件を満たすように各曲線cei を曲線近似す
ることにより、座標リストP によつて表される形状が高
次で未知であり、座標リストP の座標データ数と形状の
次数が無関係であり、かつ座標リストP にノイズが含ま
れている場合でも、曲線近似を効率良く行うことができ
る。かくして曲線近似の効率を向上し得る曲線生成部9
及び曲線生成方法を実現することができる。
With the above arrangement, the shape represented by the coordinate list P is divided on the basis of the magnitude of curvature to determine the order of each segment, and the division points e i in each approximate curve ce i are divided. Calculate the tangent line in the neighborhood as the connection condition,
By approximating each curve ce i so as to satisfy the connection condition, the shape represented by the coordinate list P is unknown in a high order, and the number of coordinate data in the coordinate list P and the order of the shape are irrelevant. Even if there is and the coordinate list P contains noise, curve approximation can be performed efficiently. Thus, the curve generation unit 9 capable of improving the efficiency of curve approximation
And a curve generation method can be realized.

【0072】(3)他の実施例 なお上述の実施例においては、曲率ρi の絶対値|ρi
|の大きさに対して、所定の値以下の「0」に近いしき
い値T を用いてしきい値処理することにより得られる値
を判別結果τi として算出し、当該判別結果τi に基づ
いて座標リストP によつて表される形状を分割する分割
点を算出した場合について述べたが、本発明はこれに限
らず、図8のステツプSP3に示すように、算出した曲
率ρi の大きさに対して、値が「0」のしきい値T を用
いてしきい値処理することにより得られる値を判別結果
τi として算出し、当該判別結果τi に基づいて座標リ
ストP によつて表される形状を分割する分割点を算出す
るようにしてもよい。
(3) Other Embodiments In the above embodiment, the absolute value of the curvature ρ i | ρ i
For the magnitude of |, a value obtained by thresholding using a threshold value T 1 close to “0” which is equal to or smaller than a predetermined value is calculated as the discrimination result τ i , and the discrimination result τ i is calculated. it has dealt with the case of calculating the subdividing points for subdividing a shape expressed Te coordinate list P Niyotsu based, the present invention is not limited to this, as shown in step SP3 in FIG. 8, the calculated curvature [rho i of with respect to the size, value was calculated as the determination result tau i a value obtained by thresholding using a threshold value T of "0", the coordinate list P on the basis of the determination result tau i You may make it calculate the division | segmentation point which divides the shape represented by this.

【0073】すなわち各近似曲線cei を滑らかに連結
するためには、用いる連結条件が安定している位置で座
標リストP によつて表される形状を分割する方がよい。
従つて曲率ρi が「0」となる位置が最も接線方向が安
定しているので、座標リストP が表す形状において曲率
ρi が「0」となる点、すわなち座標リストP によつて
表される形状における屈曲点を分割点として算出するこ
とにより、各近似曲線cei を一段と滑らかに連結する
ことができる。
[0073] That is for making seamless connection between each approximated curve ce i, it is better to divide the shape coupling conditions are represented Te coordinate list P Niyotsu at the position is stable to be used.
Therefore, the position where the curvature ρ i is “0” is the most stable in the tangential direction, and therefore the point where the curvature ρ i is “0” in the shape represented by the coordinate list P, that is, the coordinate list P is By calculating the bending points in the shape shown as the division points, the approximate curves ce i can be connected more smoothly.

【0074】また図8のステツプSP3に示すように、
曲率ρi の絶対値|ρi |の大きさに対して、所定の値
以上のしきい値T を用いてしきい値処理することにより
得られる値を判別結果τi として算出し、当該判別結果
τi に基づいて座標リストPによつて表される形状を分
割する分割点を算出するようにしてもよい。この場合、
座標リストP によつて表される形状において曲率ρi
ピークとなる点が分割点として算出される。
Further, as shown in step SP3 of FIG.
A value obtained by thresholding the absolute value of the curvature ρ i | ρ i | using a threshold value T equal to or greater than a predetermined value is calculated as a discrimination result τ i , and the discrimination is performed. It is also possible to calculate division points for dividing the shape represented by the coordinate list P based on the result τ i . in this case,
In the shape represented by the coordinate list P 1, a point where the curvature ρ i has a peak is calculated as a division point.

【0075】ここで図3との対応部分に同一符号を付し
た図15に示す入力座標分割部50のように、しきい値
設定手段34を設け、形状データにおけるしきい値処理
する範囲を指定すると共に、当該指定した範囲に応じて
しきい値T の値を設定するようにしてもよい。すなわち
しきい値T を座標データ(x、y)の関数として設定し
得るようにすることにより、しきい値T の値及びしきい
値処理する範囲を自由に設定でき、これにより形状デー
タによつて表される形状の位置に応じてしきい値処理を
行うことができる。この場合、しきい値関数T (x、
y)を座標リストP の関数T (P )という離散的な関数
としてもよい。
Here, like the input coordinate dividing unit 50 shown in FIG. 15 in which parts corresponding to those in FIG. 3 are assigned the same reference numerals, threshold setting means 34 is provided to specify the range to be thresholded in the shape data. At the same time, the value of the threshold T may be set according to the specified range. That is, by setting the threshold value T 1 as a function of the coordinate data (x, y), the value of the threshold value T 2 and the range to be thresholded can be set freely, which allows the shape data to be set. Thresholding can be performed according to the position of the shape represented by In this case, the threshold function T (x,
y) may be a discrete function called the function T (P) of the coordinate list P 1.

【0076】また図15との対応部分に同一符号を付し
た図16に示す入力座標分割部60のように、曲率算出
部31と曲率判別部32との間に曲率平滑化部61を設
けて、ノイズに起因する曲率ρi の微小変動を回避する
ようにしてもよい。ここで入力座標分割部60における
座標リストP の分割処理について図17に示すフローチ
ヤートを用いて説明する。
A curvature smoothing unit 61 is provided between the curvature calculating unit 31 and the curvature discriminating unit 32 as in the input coordinate dividing unit 60 shown in FIG. 16 in which the portions corresponding to those in FIG. , Small variations in the curvature ρ i due to noise may be avoided. Here, the division processing of the coordinate list P 1 in the input coordinate division unit 60 will be described using the flow chart shown in FIG.

【0077】入力座標分割部60は、ステツプSP1よ
り座標リストP の分割処理を開始し、ステツプSP2に
おいて曲率算出部31で生成した曲率リストΡを曲率平
滑化部61で受ける。次いでステツプSP3において、
入力座標分割部60は、曲率平滑化手段としての曲率平
滑化部61において、曲率リストΡに対して平滑化処理
を行い曲率リストΡsとして曲率判別部32に送出す
る。この場合、平滑化は積和計算で与えられる線形な平
滑化フイルタや、メデイアンフイルタのような非線形フ
イルタを用いて平滑化処理を行う。これにより、曲率ρ
i にノイズによる微小変動が生じている場合でもノイズ
による影響を除去することができ、分割点の精度を一段
と向上させることができる。
The input coordinate division unit 60 starts the division process of the coordinate list P at step SP1 and receives the curvature list Ρ generated by the curvature calculation unit 31 at step SP2 at the curvature smoothing unit 61. Then in step SP3,
The input coordinate division unit 60 performs smoothing processing on the curvature list Ρ in the curvature smoothing unit 61 as the curvature smoothing means, and sends it to the curvature determination unit 32 as the curvature list Ρs. In this case, the smoothing is performed using a linear smoothing filter given by the sum of products calculation or a non-linear filter such as a median filter. This gives the curvature ρ
Even if a slight change in i occurs due to noise, the effect of noise can be removed, and the precision of the division points can be further improved.

【0078】次いでステツプSP4において、入力座標
分割部60は、曲率判別部32において、曲率が増加す
る方向と、曲率が減少する方向で異なるようなヒステリ
シス特性を有するようにしきい値T の値を指定手段34
によつて設定し、平滑化された曲率リストΡsに対し
て、このしきい値T を用いてしきい値処理を行つて判別
結果リストΤを生成する。これにより、ステツプSP4
に示すようなヒステリシスな入出力をもつようになるの
で、しきい値付近における微小変動を回避することがで
き、分割点の精度を一段と向上させることができる。
Next, at step SP4, the input coordinate dividing section 60 specifies the value of the threshold value T so that the curvature discriminating section 32 has a hysteresis characteristic such that the curvature increasing direction and the curvature decreasing direction have different hysteresis characteristics. Means 34
Then, threshold value processing is performed using the threshold value T 1 for the curvature list Ρs that has been set and smoothed to generate the determination result list Τ. As a result, step SP4
Since the input / output has a hysteresis as shown in (3), it is possible to avoid minute fluctuations in the vicinity of the threshold value and further improve the accuracy of the division points.

【0079】続いてステツプSP5において、入力座標
分割部60は、分割点検出部33において、判別結果リ
ストΤに基づいて分割点座標リストEを生成し、ステツ
プSP6において当該分割点座標リストEを出力し、ス
テツプSP7において、入力座標リストP の分割処理を
終了する。
Subsequently, in step SP5, the input coordinate division section 60 generates the division point coordinate list E based on the discrimination result list T in the division point detection section 33, and outputs the division point coordinate list E in step SP6. Then, in step SP7, the division processing of the input coordinate list P 1 is completed.

【0080】ここで入力座標分割部60においては、各
曲率ρを平滑化し、平滑化した各曲率ρに対して、ヒス
テリシス特性を有するしきい値T を用いてしきい値処理
を行うことよりノイズによる曲率の微小変動を回避した
場合について述べたが、本発明はこれに限らず、各曲率
ρを平滑化するか、又はヒステリシス特性を有するしき
い値T を用いて各曲率ρに対してしきい値処理を行うか
のいずれか一方の処理を行うことにより、ノイズによる
曲率の微小変動を回避するようにしてもよい。
Here, in the input coordinate dividing unit 60, each curvature ρ is smoothed, and the smoothed curvature ρ is subjected to thresholding processing using a threshold value T having a hysteresis characteristic. However, the present invention is not limited to this, and each curvature ρ is smoothed, or a threshold value T having a hysteresis characteristic is used for each curvature ρ. By performing either one of the threshold processing, it is possible to avoid the minute fluctuation of the curvature due to noise.

【0081】また上述の実施例においては、連結条件算
出手段として図10に示すような連結条件算出部22を
用いた場合について述べたが、本発明はこれに限らず、
図10との対応部分に同一符号を付した図18に示すよ
うな連結条件算出部70を連結条件算出手段として用い
てもよい。
In the above embodiment, the case where the connection condition calculation unit 22 as shown in FIG. 10 is used as the connection condition calculation means has been described, but the present invention is not limited to this.
A connection condition calculating unit 70 as shown in FIG. 18 in which the same parts as those in FIG. 10 are denoted by the same reference numerals may be used as the connection condition calculating means.

【0082】連結条件算出部70における連結条件算出
処理について図19に示すフローチヤートを用いて説明
する。連結条件算出部70は、ステツプSP1より連結
条件算出処理を開始し、それぞれステツプSP2及びス
テツプSP3において、座標リストP 及び分割点座標リ
ストEを分割点曲率算出回路71及び分割点曲線近似回
路41で受ける。続いてステツプSP4において、連結
条件算出部70は、分割点曲率算出手段としての分割点
曲率算出回路71において、各分割点ei における曲率
ρi を算出する。ここで分割点曲率算出回路71は、上
述の曲率算出部31における曲率算出方法と同様の方法
で各分割点ei における曲率ρi を算出しサンプル範囲
算出回路72に送出する。
The connection condition calculation processing in the connection condition calculation unit 70 will be described using the flow chart shown in FIG. The connection condition calculation unit 70 starts the connection condition calculation processing from step SP1, and in step SP2 and step SP3, the coordinate list P and the division point coordinate list E are divided by the division point curvature calculation circuit 71 and the division point curve approximation circuit 41, respectively. receive. Then, in step SP4, the connection condition calculation unit 70 calculates the curvature ρ i at each division point e i in the division point curvature calculation circuit 71 as the division point curvature calculation means. Here, the division point curvature calculation circuit 71 calculates the curvature ρ i at each division point e i by the same method as the curvature calculation method in the curvature calculation unit 31 described above, and sends it to the sample range calculation circuit 72.

【0083】次いでステツプSP5において、連結条件
算出部70は、座標データ抽出範囲算出手段としてのサ
ンプル範囲算出回路72において、例えば図19のステ
ツプSP5に示すような関数を用いて、曲率ρに基づい
て、各分割点ei 近傍の座標データを座標リストP から
抽出する抽出範囲(サンプル範囲)jを算出し、当該サ
ンプル範囲jを分割点曲線近似回路41に送出する。こ
の関数のようにサンプル範囲jを算出することにより、
曲率ρの大きなところではそのサンプル範囲を小さくし
て、なるべく低い次数の曲線で近似することができる。
Then, in step SP5, the linking condition calculating unit 70 uses the function shown in step SP5 of FIG. 19 in the sample range calculating circuit 72 as the coordinate data extraction range calculating means, based on the curvature ρ. , An extraction range (sample range) j for extracting coordinate data in the vicinity of each division point e i from the coordinate list P 1, and sends the sample range j to the division point curve approximation circuit 41. By calculating the sample range j like this function,
Where the curvature ρ is large, the sample range can be made small so that the curve can be approximated by a curve of a low order.

【0084】すなわち曲線近似において2次以上の近似
の場合、最小2乗法でもスプライン近似でもマトリクス
計算が必要となるため計算が煩雑になるので、直線近似
を行うことにより計算を簡略化することができる。また
直線近似によつて接線を近似するときは、座標リストP
によつて表される形状において屈曲した部分をサンプル
範囲に入れないようにサンプル範囲を制御することによ
り、曲線近似の精度を維持することができる。
That is, in the case of quadratic or higher approximation in the curve approximation, the calculation becomes complicated because the least squares method and the spline approximation require matrix calculation. Therefore, the linear approximation can simplify the calculation. . When approximating a tangent line by linear approximation, the coordinate list P
The accuracy of curve approximation can be maintained by controlling the sample range so that the bent portion in the shape represented by the above does not fall within the sample range.

【0085】続いてステツプSP6において、連結条件
算出部70は、分割点曲線近似回路41において、各分
割点e1 近傍の座標データをサンプル範囲ji によつて
抽出し、抽出した座標データを用いて曲線近似すること
により近似曲線cei を生成する。ここで例えばサンプ
ルした座標の両端を結ぶ線分で近似するなどの簡単な方
法でも、近似の精度が悪化しないようにサンプル範囲j
i が決定されている。
Subsequently, in step SP6, the connection condition calculating unit 70 extracts the coordinate data in the vicinity of each dividing point e 1 in the dividing point curve approximating circuit 41 by using the sample range j i and uses the extracted coordinate data. And approximates the curve to generate an approximated curve ce i . Here, even with a simple method such as approximation with a line segment connecting both ends of the sampled coordinates, the sampling range j
i has been determined.

【0086】次いでステツプSP7において、連結条件
算出部70は、接線算出回路42において、各近似曲線
cei における各分割点ei 近傍での接線ri 、vi
算出し、ステツプSP8において当該各接線のリストR
Vを出力し、ステツプSP9において連結条件算出処理
を終了する。
Next, in step SP7, the connection condition calculating section 70 calculates the tangent lines r i , v i in the vicinity of each dividing point e i in each approximate curve ce i in the tangent line calculating circuit 42, and in step SP8 the relevant tangent lines r i , v i are calculated. Tangent list R
V is output, and the connection condition calculation process is ended in step SP9.

【0087】従つてこの連結条件算出部70は、座標リ
ストP によつて表される形状における屈曲した部分をサ
ンプル範囲に入れないようにサンプル範囲を制御してい
るので、簡易な曲線近似計算でも誤差の少ない連結条件
を算出することができる。
Therefore, since the connection condition calculating unit 70 controls the sample range so that the bent portion in the shape represented by the coordinate list P is not included in the sample range, even in a simple curve approximation calculation. It is possible to calculate a connection condition with a small error.

【0088】さらに上述の実施例においては、各座標デ
ータにおける曲率ρを算出し、当該算出した曲率ρの大
きさに基づいて、座標リストP によつて表される形状を
分割する分割点を算出した場合について述べたが、本発
明はこれに限らず、座標リストP によつて表される形状
を分割する分割点を、座標リストP によつて表される形
状に基づいて、座標データ数に依存せずに、オペレータ
が視覚的に指定するようにしてもよく、要は座標データ
数に依存せずにかつ各セグメントの次数が大きくならな
いように座標リストP によつて表される形状を分割する
ことができれば、この他種々の方法で座標リストP によ
つて表される形状を分割するようにしてもよい。
Further, in the above-mentioned embodiment, the curvature ρ in each coordinate data is calculated, and the division points for dividing the shape represented by the coordinate list P are calculated based on the calculated curvature ρ. However, the present invention is not limited to this, and the division point for dividing the shape represented by the coordinate list P is set to the number of coordinate data based on the shape represented by the coordinate list P. The shape may be specified visually by the operator without depending on it. The point is to divide the shape represented by the coordinate list P so that it does not depend on the number of coordinate data and the order of each segment does not increase. If possible, the shape represented by the coordinate list P may be divided by various other methods.

【0089】さらに上述の実施例においては、本発明を
キー信号生成装置に適用した場合について述べたが、本
発明はこれに限らず、物体認識装置、物体追尾装置や画
像合成装置等、要は複数の離散的な座標データからなる
形状データより曲線を生成する必要のあるものであれ
ば、この他種々のものに本発明を適用し得る。特に実施
例のように、画像処理においては、画像で表された8近
傍線図形を曲線に変換する処理が必要となり、このよう
な線図形は画素格子による量子化誤差を含むため特に有
効である。
Further, in the above-mentioned embodiment, the case where the present invention is applied to the key signal generating device has been described, but the present invention is not limited to this, and the essential points such as an object recognizing device, an object tracking device, an image synthesizing device, The present invention can be applied to various other items as long as it is necessary to generate a curve from shape data composed of a plurality of discrete coordinate data. In particular, in the image processing as in the embodiment, it is necessary to convert the 8-neighbor line figure represented by the image into a curve, and such a line figure is particularly effective because it includes a quantization error due to a pixel grid. .

【0090】[0090]

【発明の効果】上述のように本発明によれば、形状を複
数のセグメントに分割する分割点を算出する際、3点の
座標データに基づき求められる所定線分の長さに基づい
て分割するか否かを判定し、その判定結果の各分割点に
おける連結条件を満たすように各セグメントを曲線近似
するようにしたことにより、各セグメントを連結すると
き所定の近似精度でなる曲率近似を効率良く行うことが
できる。
As described above, according to the present invention, when a division point for dividing a shape into a plurality of segments is calculated, division is performed based on the length of a predetermined line segment obtained based on coordinate data of three points. It is determined whether or not it is, and the curve approximation is performed for each segment so that the connection condition at each division point of the determination result is satisfied. Therefore, when connecting each segment, the curvature approximation with a predetermined approximation accuracy can be efficiently performed. It can be carried out.

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

【図1】本発明を適用したキー信号生成装置の全体構成
を示すブロツク図である。
FIG. 1 is a block diagram showing an overall configuration of a key signal generation device to which the present invention is applied.

【図2】実施例による曲線生成部の構成を示すブロツク
図である。
FIG. 2 is a block diagram showing a configuration of a curve generation unit according to an embodiment.

【図3】入力座標分割部の構成を示すブロツク図であ
る。
FIG. 3 is a block diagram showing a configuration of an input coordinate division unit.

【図4】座標リストの分割処理の処理手順の説明に供す
るフローチヤートである。
FIG. 4 is a flowchart for explaining a processing procedure of coordinate list division processing.

【図5】連続曲線と離散点列における曲率計算の説明に
供する略線図である。
FIG. 5 is a schematic diagram for explaining a curvature calculation in a continuous curve and a sequence of discrete points.

【図6】離散点列における近似曲率の計算の説明に供す
る略線図(A)及びグラフ(B)である。
6A and 6B are schematic diagrams (A) and graphs (B) for explaining calculation of approximate curvature in a sequence of discrete points.

【図7】曲率算出処理の処理手順の説明に供するフロー
チヤートである。
FIG. 7 is a flowchart for explaining a processing procedure of curvature calculation processing.

【図8】判別回路及び分割点検出回路における処理手順
の説明に供するフローチヤートである。
FIG. 8 is a flow chart for explaining a processing procedure in a discrimination circuit and a division point detection circuit.

【図9】座標リストの分割方法の説明に供するフローチ
ヤートである。
FIG. 9 is a flowchart for explaining a method of dividing a coordinate list.

【図10】連結条件算出部の構成を示すブロツク図であ
る。
FIG. 10 is a block diagram showing the configuration of a connection condition calculation unit.

【図11】連結条件算出処理の処理手順の説明に供する
フローチヤートである。
FIG. 11 is a flowchart for explaining the processing procedure of the connection condition calculation processing.

【図12】曲線近似処理の処理手順の説明に供するフロ
ーチヤートである。
FIG. 12 is a flowchart for explaining a processing procedure of curve approximation processing.

【図13】曲線生成処理の処理手順の説明に供するフロ
ーチヤートである。
FIG. 13 is a flowchart for explaining a processing procedure of curve generation processing.

【図14】曲線生成過程の様子を示す略線図である。FIG. 14 is a schematic diagram showing a state of a curve generation process.

【図15】他の実施例による入力座標分割部の構成を示
すブロツク図である。
FIG. 15 is a block diagram showing a configuration of an input coordinate dividing unit according to another embodiment.

【図16】他の実施例による入力座標分割部の構成を示
すブロツク図である。
FIG. 16 is a block diagram showing a configuration of an input coordinate division unit according to another embodiment.

【図17】他の実施例による座標リストの分割処理の処
理手順を示すフローチヤートである。
FIG. 17 is a flow chart showing a processing procedure of coordinate list division processing according to another embodiment.

【図18】他の実施例による連結条件算出部の構成を示
すブロツク図である。
FIG. 18 is a block diagram showing a configuration of a connection condition calculation unit according to another embodiment.

【図19】他の実施例による連結条件算出処理の処理手
順の説明に供するフローチヤートである。
FIG. 19 is a flowchart for explaining the processing procedure of the connection condition calculation processing according to another embodiment.

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

1……キー信号生成装置、2……輪郭抽出部、3……キ
ー算出部、4……入力手段、5……推定輪郭算出部、6
……輪郭候補領域決定部、7……グラデイエントベクト
ル算出部、8……輪郭経路探査部、9……曲線生成部、
10……動きベクトル推定部、11……遅延回路、12
……両端曲線算出部、13……ソフトキー生成部、2
1、50、60……入力座標分割部、22、70……連
結条件算出部、23……曲線近似部、31……曲率算出
回路、32……曲率判別回路、33……分割点検出回
路、34……しきい値設定手段、41……分割点曲線近
似回路、42……接線算出回路、61……曲率平滑化
部、71……分割点曲率算出回路、72……サンプル範
囲算出回路。
1 ... Key signal generation device, 2 ... Contour extraction unit, 3 ... Key calculation unit, 4 ... Input means, 5 ... Estimated contour calculation unit, 6
...... Contour candidate region determination unit, 7 …… Gradient vector calculation unit, 8 …… Contour route search unit, 9 …… Curve generation unit,
10 ... Motion vector estimation unit, 11 ... Delay circuit, 12
...... End curve calculation part, 13 ...... soft key generation part, 2
1, 50, 60 ... Input coordinate division unit, 22, 70 ... Connection condition calculation unit, 23 ... Curve approximation unit, 31 ... Curvature calculation circuit, 32 ... Curvature discrimination circuit, 33 ... Division point detection circuit , 34 ... Threshold setting means, 41 ... Dividing point curve approximation circuit, 42 ... Tangent calculating circuit, 61 ... Curvature smoothing section, 71 ... Dividing point curvature calculating circuit, 72 ... Sample range calculating circuit .

フロントページの続き (56)参考文献 特開 平5−290159(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 11/00 - 11/20 G06T 7/00,7/60 Continuation of front page (56) Reference JP-A-5-290159 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06T 11/00-11/20 G06T 7 / 00,7 / 60

Claims (12)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の離散的な座標データより、当該座標
データが示す形状の近似曲線を生成する曲線生成装置に
おいて、 上記形状を複数のセグメントに分割する分割点を算出す
る分割点算出手段と、 上記各分割点毎に、隣接する上記セグメントを連結する
ための連結条件を算出する連結条件算出手段と、 少なくとも上記各連結条件を考慮して、上記各分割点に
おける上記連結条件を満たすように上記各セグメントを
曲線近似する曲線近似手段とを具え、 上記分割点算出手段は、上記座標データからサンプリン
グされた3点の座標データに基づき求められる所定線分
の長さを求め、当該線分の長さに基づき分割点を算出す
るか否かを判定することを特徴とする曲線生成装置。
1. A curve generation device for generating an approximate curve of a shape indicated by the coordinate data from a plurality of discrete coordinate data, and dividing point calculation means for calculating a dividing point for dividing the shape into a plurality of segments. A connection condition calculating means for calculating a connection condition for connecting the adjacent segments for each of the division points, and at least the connection conditions are taken into consideration so that the connection condition at each of the division points is satisfied. Curve dividing means for curve approximating each of the segments, and the dividing point calculating means for sampling from the coordinate data.
A curve generation device, characterized in that a length of a predetermined line segment obtained based on coordinated data of three drawn points is obtained, and whether or not a division point is calculated is determined based on the length of the line segment.
【請求項2】複数の離散的な座標データより、当該座標
データが示す形状の近似曲線を生成する曲線生成装置に
おいて、 上記形状を複数のセグメントに分割する分割点を算出す
る分割点算出手段と、 上記各分割点毎に、隣接する上記セグメントを連結する
ための連結条件を算出する連結条件算出手段と、 少なくとも上記各連結条件を考慮して、上記各分割点に
おける上記連結条件を満たすように上記各セグメントを
曲線近似する曲線近似手段とを具え、 上記連結条件算出手段は、 上記各分割点近傍の座標データを上記形状データから抽
出し、当該抽出した座標データを用いて、上記形状デー
タによって表される形状のうちそれぞれ上記各分割点近
傍における形状に近似した近似曲線を生成する分割点曲
線近似手段と、 上記分割点曲線近似手段によって生成された上記各近似
曲線における上記分割点近傍での接線を上記各分割点に
おける連結条件として算出する接線算出手段とを具える
ことを特徴とする曲線生成装置。
2. A curve generation device for generating an approximate curve of a shape indicated by the coordinate data from a plurality of discrete coordinate data, and dividing point calculation means for calculating a dividing point for dividing the shape into a plurality of segments. A connection condition calculating means for calculating a connection condition for connecting the adjacent segments for each of the division points, and at least the connection conditions are taken into consideration so that the connection condition at each of the division points is satisfied. A curve approximating means for approximating each segment by a curve, and the connection condition calculating means extracts coordinate data in the vicinity of each division point from the shape data, and uses the extracted coordinate data to convert the shape data according to the shape data. Dividing point curve approximation means for generating an approximation curve approximate to the shape in the vicinity of each dividing point among the shapes shown, and the dividing point curve approximation Curve generation apparatus characterized by comprising a tangent in the vicinity of the division point in each of the approximation curve generated by stage and tangent calculating means for calculating as a coupling condition in the above division point.
【請求項3】上記分割点算出手段は、 上記形状データに基づいて上記各座標データにおける曲
率を算出する曲率算出手段と、 上記曲率算出手段によって算出された上記各座標データ
における上記各曲率に対してしきい値処理する曲率判別
手段と、 上記曲率判別手段の判別結果に基づいて上記形状データ
から上記分割点を検出する分割点検出手段とを具えるこ
とを特徴とする請求項1又は2に記載の曲線生成装置。
3. The division point calculating means calculates a curvature in each coordinate data based on the shape data, and a curvature calculating means for each curvature in each coordinate data calculated by the curvature calculating means. 3. A curvature discriminating means for threshold value processing, and a division point detecting means for detecting the division point from the shape data based on the discrimination result of the curvature discriminating means. The described curve generator.
【請求項4】上記しきい値は、 所定の値以下のしきい値、「0」のしきい値、所定の値
以上のしきい値、又はヒステリシス特性を有するしきい
値の少なくとも一つの条件を満たすことを特徴とする請
求項3に記載の曲線生成装置。
4. The threshold value is at least one of a threshold value below a predetermined value, a threshold value of “0”, a threshold value above a predetermined value, or a threshold value having a hysteresis characteristic. The curve generation device according to claim 3, wherein:
【請求項5】上記分割点算出手段は、 上記形状データにおける上記しきい値処理する範囲を指
定すると共に、上記形状データにおける上記しきい値処
理する範囲に応じて上記しきい値の値を設定するしきい
値設定手段を具えることを特徴とする請求項4に記載の
曲線生成装置。
5. The division point calculation means specifies the range to be thresholded in the shape data, and sets the threshold value according to the range to be thresholded in the shape data. 5. The curve generation device according to claim 4, further comprising a threshold value setting means for performing the setting.
【請求項6】上記分割点算出手段は、 上記曲率算出手段によって算出された上記各座標データ
における上記各曲率を平滑化する曲率平滑化手段を具
え、 上記曲率判別手段は、上記曲率平滑化手段によって平滑
化された上記各曲率に対して上記しきい値処理を行うこ
とを特徴とする請求項3に記載の曲線生成装置。
6. The dividing point calculating means includes a curvature smoothing means for smoothing each curvature in the coordinate data calculated by the curvature calculating means, and the curvature discriminating means is the curvature smoothing means. The curve generation device according to claim 3, wherein the threshold processing is performed on each of the curvatures smoothed by.
【請求項7】上記連結条件算出手段は、 上記各分割点近傍の座標データを上記形状データから抽
出し、当該抽出した座標データを用いて、上記形状デー
タによって表される形状のうちそれぞれ上記各分割点近
傍における形状に近似した近似曲線を生成する分割点曲
線近似手段と、 上記分割点曲線近似手段によって生成された上記各近似
曲線における上記分割点近傍での接線を上記各分割点に
おける連結条件として算出する接線算出手段とを具える
ことを特徴とする請求項1に記載の曲線生成装置。
7. The connection condition calculating means extracts coordinate data near each of the division points from the shape data, and uses the extracted coordinate data to extract each of the shapes represented by the shape data. A dividing point curve approximating means for generating an approximate curve approximate to a shape near the dividing point, and a tangent line in the vicinity of the dividing point in each of the approximate curves generated by the dividing point curve approximating means is a connecting condition at each of the dividing points. The curve generation device according to claim 1, further comprising: a tangent calculation unit that calculates
【請求項8】上記分割点曲線近似手段は、 最小2乗法又はスプライン近似法を用いて上記近似曲線
を生成することを特徴とする請求項2又は7に記載の曲
線生成装置。
8. The curve generation device according to claim 2, wherein the dividing point curve approximating means generates the approximation curve by using a least square method or a spline approximation method.
【請求項9】上記連結条件算出手段は、 上記分割点曲率算出手段の算出結果に基づいて、上記形
状データから上記各分割点近傍の座標データを抽出する
抽出範囲を算出する座標データ抽出範囲算出手段を具
え、 上記分割点曲線近似手段は、上記座標データ抽出範囲算
出手段によって上記各分割点毎に算出された上記各抽出
範囲に存在する上記座標データを用いて、上記形状デー
タによって表される形状のうちそれぞれ上記各分割点近
傍における形状に近似した近似曲線を生成することを特
徴とする請求項7に記載の曲線生成装置。
9. The coordinate data extraction range calculation means for calculating the extraction range for extracting the coordinate data in the vicinity of each of the division points from the shape data based on the calculation result of the division point curvature calculation means. The dividing point curve approximating means is represented by the shape data using the coordinate data existing in each of the extraction ranges calculated for each of the dividing points by the coordinate data extraction range calculating means. The curve generation device according to claim 7, wherein an approximate curve that approximates the shape near each of the division points of the shape is generated.
【請求項10】上記曲線近似手段は、 最小2乗法を用いて上記各セグメントを曲線近似するこ
とを特徴とする請求項1又は2に記載の曲線生成装置。
10. The curve generating device according to claim 1, wherein the curve approximating means approximates the respective curves by a least square method.
【請求項11】情報処理装置に、複数の離散的な座標デ
ータより、当該座標データが示す形状の近似曲線を生成
させる曲線生成方法において、 情報処理装置に、上記形状を複数のセグメントに分割す
る分割点を算出する分割点算出ステップ、を実行させ、 情報処理装置に、隣接する上記セグメントを連結するた
めの連結条件を上記各分割点毎に算出する連結条件算出
ステップ、を実行させ、 情報処理装置に、少なくとも上記各連結条件を考慮し
て、上記各分割点における上記連結条件を満たすように
上記各セグメントを曲線近似する曲線近似ステップ、を
実行させ、 上記分割点算出ステップでは、上記座標データからサン
プリングされた3点の座標データに基づき求められる所
定線分の長さを求め、当該線分の長さに基づき分割点を
算出するか否かが判定されることを特徴とする曲線生成
方法。
11. A curve generation method for causing an information processing apparatus to generate an approximate curve of a shape indicated by the coordinate data from a plurality of discrete coordinate data, wherein the information processing apparatus divides the shape into a plurality of segments. A division point calculation step of calculating a division point, and causing an information processing apparatus to execute a connection condition calculation step of calculating a connection condition for connecting adjacent segments for each of the division points. The apparatus is caused to execute a curve approximation step of curve-approximation of each segment so as to satisfy the connection condition at each division point in consideration of at least each connection condition, and in the division point calculation step, the coordinate data is obtained. From Sun
A method for generating a curve, characterized in that a length of a predetermined line segment obtained based on coordinated data of three pulled points is determined, and whether or not to calculate a division point is determined based on the length of the line segment.
【請求項12】情報処理装置に、複数の離散的な座標デ
ータより、当該座標データが示す形状の近似曲線を生成
させる曲線生成方法において、 情報処理装置に、上記形状を複数のセグメントに分割す
る分割点を算出する分割点算出ステップ、を実行させ、 情報処理装置に、隣接する上記セグメントを連結するた
めの連結条件を上記各分割点毎に算出する連結条件算出
ステップ、を実行させ、 情報処理装置に、少なくとも上記各連結条件を考慮し
て、上記各分割点における上記連結条件を満たすように
上記各セグメントを曲線近似する曲線近似ステップ、を
実行させ、さらに、上記連結条件算出ステップでは、 上記各分割点近傍の座標データを上記形状データから抽
出し、当該抽出した座標データを用いて、上記形状デー
タによって表される形状のうちそれぞれ上記各分割点近
傍における形状に近似した近似曲線を生成する分割点曲
線近似ステップが実行され、 上記分割点曲線近似ステップによって生成された上記各
近似曲線における上記分割点近傍での接線を上記各分割
点における連結条件として算出する接線算出ステップが
実行されることを特徴とする曲線生成方法。
12. A curve generation method for causing an information processing device to generate an approximate curve of a shape indicated by the coordinate data from a plurality of discrete coordinate data, wherein the information processing device divides the shape into a plurality of segments. A division point calculation step of calculating a division point, and causing an information processing apparatus to execute a connection condition calculation step of calculating a connection condition for connecting adjacent segments for each of the division points. In the apparatus, at least the connection conditions are considered, and a curve approximation step of curve-applying the segments is performed so as to satisfy the connection conditions at the division points, and further, in the connection condition calculation step, Coordinate data in the vicinity of each division point is extracted from the shape data, and is represented by the shape data using the extracted coordinate data. A division point curve approximation step that generates an approximation curve that approximates the shape near each of the division points of the shape is executed, and a tangent line near the division point in each of the approximation curves generated by the division point curve approximation step The method for generating a curve is characterized in that a tangent line calculation step for calculating as a connection condition at each of the division points is executed.
JP30368796A 1996-10-29 1996-10-29 Curve generating device and curve generating method Expired - Fee Related JP3521049B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30368796A JP3521049B2 (en) 1996-10-29 1996-10-29 Curve generating device and curve generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30368796A JP3521049B2 (en) 1996-10-29 1996-10-29 Curve generating device and curve generating method

Publications (2)

Publication Number Publication Date
JPH10134199A JPH10134199A (en) 1998-05-22
JP3521049B2 true JP3521049B2 (en) 2004-04-19

Family

ID=17924038

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30368796A Expired - Fee Related JP3521049B2 (en) 1996-10-29 1996-10-29 Curve generating device and curve generating method

Country Status (1)

Country Link
JP (1) JP3521049B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3588557B2 (en) * 1998-12-18 2004-11-10 株式会社東芝 Graphic contour point sequence thinning method, electrical characteristic evaluation device using this method, and recording medium recording graphic contour point sequence thinning procedure
CN102118584B (en) * 2009-12-31 2015-02-18 新奥特(北京)视频技术有限公司 Method and device for generating caption moving pictures with curve extension dynamic effect

Also Published As

Publication number Publication date
JPH10134199A (en) 1998-05-22

Similar Documents

Publication Publication Date Title
JP4392886B2 (en) Image extraction method and apparatus
US6452637B1 (en) Image frame fusion by velocity estimation using region merging
US7113617B2 (en) Method of computing sub-pixel Euclidean distance maps
JP2806961B2 (en) Image coding method
JP5157768B2 (en) Image processing apparatus and method, and program
KR20080066671A (en) Bi-directional tracking using trajectory segment analysis
CN111598796B (en) Image processing method and device, electronic equipment and storage medium
EP0600709A2 (en) Range-image processing apparatus and method
CN108305268B (en) Image segmentation method and device
Pok et al. Efficient block matching for removing impulse noise
CN110458773B (en) Anisotropic diffusion noise processing method based on edge enhancement operator
US5548695A (en) Image figure editing system for manipulating figure elements given in terms of image data
KR102352942B1 (en) Method and device for annotating object boundary information
JP3521049B2 (en) Curve generating device and curve generating method
US7978914B2 (en) Image processing system
US8520951B2 (en) Image processing method, image processing apparatus, and computer readable storage medium
CN114708145A (en) Method and device for determining ocean current flow field of GOCI water color image
CN110532826B (en) Bar code recognition device and method based on artificial intelligence semantic segmentation
CN109993756B (en) General medical image segmentation method based on graph model and continuous stepwise optimization
Kalayeh et al. Adaptive relaxation labeling
Mishra et al. Accurate boundary localization using dynamic programming on snakes
JP2009289295A (en) Image extraction method and apparatus
CN108073924A (en) Image processing method and device
JP2596276B2 (en) Slice image sequence interpolation device
JPH09330403A (en) Template matching method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040116

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040129

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080213

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090213

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100213

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees