Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4702811B2 - Lattice point model deformation / movement method, apparatus and program - Google Patents
[go: Go Back, main page]

JP4702811B2 - Lattice point model deformation / movement method, apparatus and program - Google Patents

Lattice point model deformation / movement method, apparatus and program Download PDF

Info

Publication number
JP4702811B2
JP4702811B2 JP2008151080A JP2008151080A JP4702811B2 JP 4702811 B2 JP4702811 B2 JP 4702811B2 JP 2008151080 A JP2008151080 A JP 2008151080A JP 2008151080 A JP2008151080 A JP 2008151080A JP 4702811 B2 JP4702811 B2 JP 4702811B2
Authority
JP
Japan
Prior art keywords
movement
moving
lattice
lattice point
model
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
JP2008151080A
Other languages
Japanese (ja)
Other versions
JP2009295128A (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.)
NTT Inc
NTT Inc USA
Original Assignee
Nippon Telegraph and Telephone Corp
NTT Inc USA
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 Nippon Telegraph and Telephone Corp, NTT Inc USA filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2008151080A priority Critical patent/JP4702811B2/en
Publication of JP2009295128A publication Critical patent/JP2009295128A/en
Application granted granted Critical
Publication of JP4702811B2 publication Critical patent/JP4702811B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Description

本発明は、数値シミュレーション、コンピュータグラフィックス(CG)、デジタル編集等の分野において、静止画内の所定の対象を別の動画の動きに合わせて変形・移動させる技術に関するものである。   The present invention relates to a technique for deforming and moving a predetermined target in a still image in accordance with the movement of another moving image in the fields of numerical simulation, computer graphics (CG), digital editing, and the like.

数値シミュレーション、CG、デジタル編集等の分野において、物体の変形と移動に関する表現方法は、さまざまなモデルが知られているが、特に、空気や液体などの流体と物体との相互作用表現を計算していくためには、安定性と計算時間に関して多くの課題が残されている。   In the fields of numerical simulation, CG, digital editing, etc., various models are known as representation methods related to the deformation and movement of an object. In particular, it calculates the interaction expression between a fluid such as air or liquid and the object. Many challenges remain with respect to stability and computation time.

数値シミュレーションモデルでは、高度な数値モデルが存在する一方で、安定した計算を実現するために計算時間のステップ幅を小さくとる必要があり、計算時間が膨大にかかる問題がある。また、固定点がなく、移動しながら変形と相互作用を加味するモデルの場合は、不安定な計算になりがちである。   In the numerical simulation model, while an advanced numerical model exists, in order to realize stable calculation, it is necessary to reduce the step width of the calculation time, and there is a problem that the calculation time is enormous. In addition, in the case of a model that does not have a fixed point and takes into account deformation and interaction while moving, the calculation tends to be unstable.

CGにおいても、高速化したモデルが知られているが、移動を伴わない変形モデル(非特許文献1)となっているなど、自由度が極めて少なくなっている問題がある。デジタル編集においても、簡便に表現できるモデルが必要とされている。   Even in CG, a model with a high speed is known, but there is a problem that the degree of freedom is extremely small, such as a deformed model that does not involve movement (Non-Patent Document 1). In digital editing, a model that can be expressed easily is required.

これらの多くは格子点が連結されたままのモデルであることと、大型数値演算を必要とする表現の限界があった。衝突(非特許文献1)、移動、変形を同時に含む場合の簡便な表現(モデル)はほとんど見られない。   Many of these are models in which grid points are still connected, and there is a limit of expression that requires large-scale numerical computation. A simple expression (model) in the case of simultaneously including collision (Non-patent Document 1), movement, and deformation is hardly seen.

画像から対象の動き場を推定するオプティカルフロー法にはさまざまなものがあるが、剛体のような対象へのものがほとんどであった(非特許文献2)。そのため、流体のように短い周期で輝度が変化していくような対象については、非特許文献2では、正しい動きがほとんど検出できない問題があった。   There are various optical flow methods for estimating a motion field of an object from an image, but most of them are for an object such as a rigid body (Non-Patent Document 2). For this reason, Non-Patent Document 2 has a problem that almost no correct motion can be detected for an object whose luminance changes in a short cycle such as a fluid.

S.Schaefer,T.Mcphail,and J.Warren "Image Deformation Using Moving Least Squares" ACM Proc,SIGGRAPH pp.533-540,2006.S. Schaefer, T. Mcphail, and J. Warren "Image Deformation Using Moving Least Squares" ACM Proc, SIGGRAPH pp. 533-540, 2006. 大塚、掘越、安達、鈴木、「時空間中の運動軌跡に基づくオプティカルフローの推定」、電子情報通信学会、D-II、81、9、pp.2061-2073,1998.Otsuka, Minegoshi, Adachi, Suzuki, "Estimation of optical flow based on motion trajectory in space and time", IEICE, D-II, 81, 9, pp.2061-2073, 1998.

本発明の目的は、静止画内の所定の対象を別の動画の動きに合わせて変形・移動させる場合に、数理方程式を用いることなく、対象の剛体性、弾性、流体性などに依存しない共通モデル表現ができるようにすることである。   The object of the present invention is to use a common object that does not depend on the rigidity, elasticity, fluidity, etc. of the object without using mathematical equations when a predetermined object in a still image is deformed / moved in accordance with the movement of another moving image It is to be able to express the model.

上記目的を達成するため、請求項1にかかる発明の格子点モデル変形・移動方法は、格子点モデル変形・移動装置により、変形・移動させようとする対象を含む静止画および該対象と類似の動きをする動画を準備し、前記動画から動き推定法により動き場を求め、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定し、該各格子点を独立に前記求めた動き場に応じて移動させる移動フェーズと移動後の各格子点を仮想的な連結によって初期と類似の関係に戻す変形フェーズとを時間幅の中で繰り返すことによって、前記対象の変形と移動の両方を表現する格子点モデル変形・移動方法であって、前記変形フェーズは、移動後の各格子点の位置を、格子点間の距離の移動前後の変位がゼロに近づくようにx成分とy成分のそれぞれについて連結方向に沿って修正する処理と、格子点がなす角度の移動前後の変位がゼロに近づくように修正する処理とを含むことを特徴とする。
請求項2にかかる発明の格子点モデル変形・移動装置は、変形・移動させようとする対象を含む静止画および該対象と類似の動きをする動画を入力し蓄積するデータ入力・蓄積手段と、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定する格子点設定手段と、前記動画から動き推定法により動き場を求める動き場設定手段と、前記各格子点を独立に前記求めた動き場に応じて変形した後に仮想的な連結によって初期と類似の関係に戻す格子点移動手段と、を備え、前記格子点移動手段は、移動後の各格子点の位置を、格子点間の距離の移動前後の変位がゼロに近づくようにx成分とy成分のそれぞれについて連結方向に沿って修正するとともに、格子点がなす角度の移動前後の変位がゼロに近づくように修正することを特徴とする。
請求項3にかかる発明は、請求項2に記載の格子点モデル変形・移動装置において、前記対象の移動・変形結果と前記動画とを重ねて表示する表示手段を備えたことを特徴とする。
請求項4にかかる発明は、請求項2又は3に記載の格子点モデル変形・移動装置において、前記各格子点は、連結関係がなく、前記初期と類似の関係に戻す仮想的な連結と前記動き場に応じて変形する解放を時間幅の中で繰り返し、前記動画内の近傍流体との相互作用を含めたモデルであることを特徴とする。
請求項5にかかる発明は、請求項2又は3に記載の格子点モデル変形・移動装置において、前記動き場設定手段は、流体系のオプティカルフローモデルを適用した手段であることを特徴とする。
請求項6にかかる発明は、請求項5に記載の格子点モデル変形・移動装置において、前記オプティカルフローモデルは、画像フレーム間の輝度変動を考慮して動き場を求めるモデルであることを特徴とする格子点モデル変形・移動装置。
請求項7にかかる発明の格子点モデル変形・移動プログラムは、変形・移動させようとする対象を含む静止画および該対象と類似の動きをする動画を準備するステップと、前記動画から動き推定法により動き場を求めるステップと、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定するステップと、各格子点を独立に前記求めた動き場に応じて移動させる移動フェーズと移動後の各格子点を仮想的な連結によって初期と類似の関係に戻すように移動させる変形フェーズとを時間幅の中で繰り返すステップと、を格子点モデル変形・移動装置に実行させるためのプログラムであって、前記変形フェーズは、移動後の各格子点の位置を、格子点間の距離の移動前後の変位がゼロに近づくようにx成分とy成分のそれぞれについて連結方向に沿って修正する処理と、格子点がなす角度の移動前後の変位がゼロに近づくように修正する処理とを含むことを特徴とする。
In order to achieve the above object, a lattice point model deformation / movement method of the invention according to claim 1 is similar to a still image including an object to be deformed / moved by a lattice point model deformation / movement device and a similar object . Preparing a moving moving image, obtaining a motion field from the moving image by a motion estimation method, setting a plurality of grid points not connected to the object in the still image, and independently obtaining the grid points. By repeating the movement phase for moving according to the motion field and the deformation phase for returning each lattice point after movement to a similar relationship by virtual connection within the time range, the deformation and movement of the object are repeated. A lattice point model deformation / movement method that expresses both , wherein the deformation phase changes the position of each lattice point after the movement so that the displacement before and after the movement of the distance between the lattice points approaches zero. Each of the ingredients And processing for correcting along the connecting direction for the movement of the front and rear displacement angles lattice points formed is characterized in that it comprises a process modified to approach zero.
The lattice point model deformation / movement device of the invention according to claim 2 is a data input / accumulation means for inputting and accumulating a still image including an object to be deformed / moved and a moving image similar to the object; A grid point setting unit that sets a plurality of grid points that are not connected to the target in the still image, a motion field setting unit that obtains a motion field from the moving image by a motion estimation method, and each grid point independently Grid point moving means for deforming according to the obtained motion field and returning it to a similar relationship by initial connection by virtual connection, and the grid point moving means determines the position of each moved grid point as a grid The x component and the y component are corrected along the connecting direction so that the displacement before and after the movement of the distance between the points approaches zero, and the displacement before and after the movement of the angle formed by the lattice points is corrected to approach zero. That features To.
According to a third aspect of the present invention, in the lattice point model deforming / moving device according to the second aspect of the present invention, the lattice point model deforming / moving device includes display means for displaying the moving / deformed result of the target and the moving image in an overlapping manner.
According to a fourth aspect of the present invention, in the lattice point model deforming / moving device according to the second or third aspect, each of the lattice points has no connection relationship, and the virtual connection for returning to a similar relationship to the initial state and the lattice point model The model is characterized in that the release including deformation according to the motion field is repeated within the time width, and the model includes the interaction with the nearby fluid in the moving image.
According to a fifth aspect of the present invention, in the lattice point model deforming / moving device according to the second or third aspect, the motion field setting means is a means to which an optical flow model of a fluid system is applied.
The invention according to claim 6 is the lattice point model deforming / moving device according to claim 5, wherein the optical flow model is a model for obtaining a motion field in consideration of luminance fluctuation between image frames. Lattice point model transformation / movement device.
A lattice point model deformation / movement program according to claim 7 is a method of preparing a still image including a target to be deformed / moved and a moving image that moves similar to the target, and a motion estimation method based on the moving image. Determining a motion field by the step, setting a plurality of grid points that are not connected to the object in the still image, and a movement phase for independently moving each grid point according to the determined motion field A program for causing a lattice point model deformation / movement device to execute a step of repeating a deformation phase in which each lattice point after movement is moved so as to return to a similar relationship with the initial state by virtual connection , and a lattice point model deformation / movement device In the deformation phase, the position of each lattice point after the movement is determined for each of the x component and the y component so that the displacement before and after the movement of the distance between the lattice points approaches zero. And processing for correcting along the forming direction, the movement of the front and rear displacement angles lattice points formed is characterized in that it comprises a process modified to approach zero.

本発明によれば、各格子点を独立に動き場に応じて移動させる移動フェーズと移動後の各格子点をほぼ初期の関係に戻す変形フェーズとを時間幅の中で繰り返すことによって、近傍流体との相互作用を含めた簡易なモデル表現を実現できるので、対象の剛体性、弾性、流体性などに依存しない共通モデルを記述でき、流体表現との相互作用表現を実現できる。また、複雑な数理方程式を解くことが不要となる。さらに、1枚の画像から動画化までについての新しい処理の流れを実現できる。さらに、格子点の数の増大に関わりなく、演算時間を増大を抑制することができる。   According to the present invention, by repeating a movement phase in which each lattice point is independently moved in accordance with a motion field and a deformation phase in which each lattice point after movement is returned to a substantially initial relationship within a time width, Since a simple model expression including the interaction with the object can be realized, it is possible to describe a common model that does not depend on the target rigid body, elasticity, fluidity, etc., and to realize an interaction expression with the fluid expression. In addition, it becomes unnecessary to solve complicated mathematical equations. Furthermore, it is possible to realize a new flow of processing from one image to animation. Further, the increase in the calculation time can be suppressed regardless of the increase in the number of lattice points.

本発明は、変形・移動させようとする対象を含む静止画および該対象と似たような動きをする動画を準備し、前記動画から流体モデルに基づいたオプティカルフロー法等の動き推定法により動き場を求め、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定し、該各格子点を独立に前記求めた動き場に応じて移動させる移動フェーズと移動後の各格子点をほぼ初期の関係に戻す変形フェーズとを時間幅の中で繰り返すことによって、前記対象の変形と移動の両方を表現するものである。   The present invention prepares a still image including a target to be deformed and moved and a moving image similar to the target, and uses the motion estimation method such as an optical flow method based on a fluid model from the moving image. Determining a field, setting a plurality of grid points not connected to the object in the still image, and moving each grid point independently according to the determined motion field and each grid after movement By repeating the deformation phase for returning the points to a substantially initial relationship within a time width, both the deformation and movement of the object are expressed.

これを実現するための装置構成の実施例を図1に示す。本装置は、変形・移動させようとする対象を含む静止画および該対象と似たような動きをする動画を入力し蓄積するデータ入力・蓄積手段101と、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定する格子点設定手段102と、前記動画から流体モデルに基づいたオプティカルフロー法等の動き推定法により動き場を求める動き場設定手段103と、前記各格子点を独立に前記求めた動き場に応じて変形した後にほぼ初期の関係に戻す格子点移動手段104と、前記対象の移動・変形結果と前記動画とを重ねて表示する表示手段105と、を備える。   An embodiment of the device configuration for realizing this is shown in FIG. This apparatus includes a data input / storage unit 101 for inputting and storing a still image including a target to be deformed / moved and a moving image similar to the target, and the target in the still image. A grid point setting unit 102 for setting a plurality of grid points having no connection relationship; a motion field setting unit 103 for obtaining a motion field from the moving image by a motion estimation method such as an optical flow method based on a fluid model; and each grid point Grid point moving means 104 that returns the image to a substantially initial relationship after being deformed independently according to the obtained motion field, and display means 105 that displays the moving / deformation result of the object and the moving image in an overlapping manner. .

これらの手段は、演算処理装置、外部記憶装置、メモリ等を備えたコンピュータにより実現できるものであり、本実施例の格子点モデル変形・移動の処理はプログラムによって実効される。このプログラムはコンピュータの外部記憶装置に記憶されており、記録媒体に記録することも、ネットワークを介して提供することも可能である。   These means can be realized by a computer having an arithmetic processing unit, an external storage device, a memory, and the like, and the lattice point model deformation / movement processing of this embodiment is executed by a program. This program is stored in an external storage device of a computer, and can be recorded on a recording medium or provided via a network.

このプログラムは、変形・移動させようとする対象を含む静止画および該対象と似たような動きをする動画を準備するステップと、前記動画から流体モデルに基づいたオプティカルフロー法等の動き推定法により動き場を求めるステップと、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定するステップと、各格子点を独立に前記求めた動き場に応じて移動させる移動フェーズと移動後の各格子点をほぼ初期の関係に戻すように移動させる変形フェーズとを時間幅の中で繰り返すステップと、前記対象の移動・変形結果と前記動画とを重ねて表示するステップとを備える。   The program includes a step of preparing a still image including a target to be deformed / moved and a moving image similar to the target, and a motion estimation method such as an optical flow method based on a fluid model from the moving image. Determining a motion field by the step, setting a plurality of grid points that are not connected to the object in the still image, and a movement phase for independently moving each grid point according to the determined motion field A step of repeating a deformation phase for moving each lattice point after movement so as to return to an almost initial relationship within a time width, and a step of displaying the moving / deformation result of the object and the moving image in an overlapping manner. .

ここでは、上記のように連結関係がない格子点モデルを扱う。すなわち、格子点の仮想的な連結と解放を時間幅の中で繰り返し行い、近傍流体との相互作用を含めた簡易なモデル表現を実現する。対象は2次元もしくは3次元である。また、動画からその動き場を求めるには、流体系のオプティカルフロー法を適用する。   Here, a lattice point model having no connection relationship as described above is handled. That is, the virtual connection and release of the lattice points are repeatedly performed within the time width, and a simple model expression including the interaction with the neighboring fluid is realized. The object is two-dimensional or three-dimensional. Moreover, in order to obtain the motion field from a moving image, a fluid optical flow method is applied.

図2(a)は本実施例における連結関係のない格子点モデルの説明図である。ここでは、ある画像の特定の対象上に配置された4つの格子点201〜204のみを示す。各格子点201〜204は相互に仮想的な連結関係が設定されているものとする。この時刻をtとし、結合ONと呼ぶ。   FIG. 2A is an explanatory diagram of a lattice point model having no connection relationship in the present embodiment. Here, only four grid points 201 to 204 arranged on a specific target of a certain image are shown. It is assumed that each of the lattice points 201 to 204 has a virtual connection relationship with each other. This time is set to t and is called coupling ON.

次に、動き場として近傍の流速場が与えられたとして、それぞれの格子点201〜204を、独立にその流速場の速度に従って移動させる。これを移動フェーズとし、結合OFFと呼ぶ。   Next, assuming that a nearby flow velocity field is given as a motion field, each of the lattice points 201 to 204 is moved independently according to the velocity of the flow velocity field. This is referred to as a movement phase and is referred to as coupling OFF.

次に、各格子点201〜204がほぼ初期の格子点間の距離と角度に戻るように、結合ONにおける変形フェーズで格子点を移動させていく。この時刻をt+1とする。必要な時間まで、この結合ON、結合OFFの過程を繰り返す。ほぼ初期の状態に戻す変形フェーズでは、例えば格子点201,202については、その間隔がほぼ初期の距離になるように、図2(b)に示すように変位調整を行う。さらに例えば格子点201〜203については、図2(c)に示すようにほぼ初期の角度になるように角度調整を行う。以上は、他の格子点についても同様である。   Next, the lattice points are moved in the deformation phase in the connection ON so that the lattice points 201 to 204 return to the distance and angle between the lattice points at the initial stage. This time is t + 1. This coupling ON and coupling OFF process is repeated until the required time. In the deformation phase for returning to an almost initial state, for example, the lattice points 201 and 202 are adjusted for displacement as shown in FIG. Further, for example, with respect to the lattice points 201 to 203, the angle adjustment is performed so that the angle is almost the initial angle as shown in FIG. The above is the same for other lattice points.

ここでは、離散化された時刻t、t+1の中間に、仮想的な時間を取り入れている。格子点同士の相対的な位置関係を初期の格子点のデータから決定するのである。各格子点は、流れ場による移動と変形の2つの過程が必要となるため、変形フェーズについては仮想的な時間の中で処理する。変形と移動が開始された後、初期値とのずれ(誤差)の具合を様々に調整して、容易に、見かけの硬さや柔らかさを変更できる。この誤差が小さいときは剛体、大きいときは弾性体のように、自由自在に変更できる。イメージとしては、複数の人が手をつないだまま移動するとき、一度手を離して、それぞれの人の場所での流れ場に従って移動し、再度元の組み合わせの相手と手をつなぐことを繰り返す、というもにである。   Here, a virtual time is taken in between the discretized times t and t + 1. The relative positional relationship between the lattice points is determined from the initial lattice point data. Since each lattice point requires two processes of movement and deformation by the flow field, the deformation phase is processed in a virtual time. After the start of deformation and movement, the apparent hardness and softness can be easily changed by variously adjusting the degree of deviation (error) from the initial value. When this error is small, it can be freely changed, such as a rigid body and when it is large, an elastic body. As an image, when multiple people move while holding hands, release their hands once, move according to the flow field at each person's location, and repeat the connection with the original combination opponent, Even so.

図2(d)は変形フェーズの詳細を示す図である。格子点201,202,204をそれぞれA,B,Cとする。時刻tでは、A(t),B(t),C(t)の位置にある。すなわち、2次元xy座標では、A(t)=(x、yt、B(t)=(xb、ybt、C(t)=(xc、yctである。また、Lab(t)は時刻tでのA,B間の距離、Lbc(t)は時刻tでのB,C間の距離、θabc(t)は時刻tでのA,B,Cの3点がなす角度である。 FIG. 2D shows details of the deformation phase. Assume that the lattice points 201, 202, and 204 are A, B, and C, respectively. At time t, they are at positions A (t) , B (t) , and C (t) . That is, in the two-dimensional xy coordinates, A (t) = (x a , y a ) t , B (t) = (x b , y b ) t , C (t) = (x c , y c ) t is there. L ab (t) is the distance between A and B at time t, L bc (t) is the distance between B and C at time t, and θ abc (t) is A, B, at time t. This is the angle formed by the three points of C.

これが、時刻t+1になると、各格子点201,202,204は、(A(t),B(t),C(t))→(A(t+1),B(t+1),C(t+1))の位置に変位し、A,B間の距離はLab(t)→Lab(t+1)に変化し、B,C間の距離はLbc(t)→Lbc(t+1)に変化し、A,B,Cの3点がなす角度はθabc(t)→θabc(t+1)に変化する。 When this is time t + 1, each of the lattice points 201, 202, 204 becomes (A (t) , B (t) , C (t) ) → (A (t + 1) , B (t + 1) , C (t + 1) ), the distance between A and B changes from L ab (t) → L ab (t + 1) , and the distance between B and C becomes L bc (t) → L It changes to bc (t + 1) , and the angle formed by the three points A, B, and C changes from θ abc (t) → θ abc (t + 1) .

このとき、A,B間が短くなったとすると、
ΔLab=|Lab(t+1)−Lab(t)| (1)
だけ変位し、
B,C間が長くなったとすると、
ΔLbc=|Lbc(t+1)−Lbc(t)| (2)
だけ変位する。この変位をゼロに近づけるよう、AとB、BとCの連結方向に沿って修正する。
At this time, if the distance between A and B is shortened,
ΔL ab = | L ab (t + 1) −L ab (t) | (1)
Only displaced and
If the distance between B and C is long,
ΔL bc = | L bc (t + 1) -L bc (t) | (2)
Displace only. Correction is made along the connecting direction of A and B and B and C so that this displacement approaches zero.

次に、連結方向については、ベクトル表現により、容易に得られる。すなわち、座標値より単位ベクトルを作る。まず、AとB間の単位ベクトルeabは、

Figure 0004702811
で表される。 Next, the connection direction can be easily obtained by vector expression. That is, a unit vector is created from the coordinate values. First, the unit vector e ab between A and B is
Figure 0004702811
It is represented by

以上により、A点の位置修正は、B点より離れるように行うが、B点はC点とも連結されているので、x成分については、
a ← xa−ΔLab・eab・0.5
b ← xb+ΔLab・eab・0.5 (4)
となる。係数0.5は2点間の移動量を半分にするためのものであり、任意である。式(4)の左辺のxa、xbが修正後の位置である。複数の格子点が連結していため、|ΔLab|<ε1、|ΔLbc|<ε1と、予め決めた値ε1より小さくなるまで反復計算を例えば10回程度繰り返す。これは、xcについても同様であり、y成分についも同様である。
As described above, the position of the point A is corrected so as to be farther from the point B, but the point B is also connected to the point C.
x a ← x a −ΔL ab · e ab · 0.5
x b ← x b + ΔL ab・ e ab・ 0.5 (4)
It becomes. The coefficient 0.5 is for halving the amount of movement between the two points, and is arbitrary. X a and x b on the left side of Equation (4) are corrected positions. Since a plurality of lattice points are connected, iterative calculation is repeated, for example, about 10 times until | ΔL ab | <ε 1 , | ΔL bc | <ε 1 and smaller than a predetermined value ε 1 . The same applies to xc , and the same applies to the y component.

次に、角度の修正は、角度がある角度からさらに開いた場合を想定すると、
Δθabc=|θabc(t+1)−θabc(t)| (5)
となる。角度補正は、回転行列Rを用いればよい。

Figure 0004702811
図2(e)のように、AからA’に修正する場合は、
Figure 0004702811
となる。ただし、θ=Δθabc/2である。このΔθabcも予め決めたε2以下になるまで、反復的に補正を行う。 Next, assuming that the angle is further opened from a certain angle,
Δθabc = | θ abc (t + 1) −θ abc (t) | (5)
It becomes. For the angle correction, the rotation matrix R may be used.
Figure 0004702811
As shown in FIG. 2 (e), when correcting from A to A ′,
Figure 0004702811
It becomes. However, θ = Δθ abc / 2. Correction is repeatedly performed until this Δθ abc is also equal to or less than a predetermined ε 2 .

図3はある静止画内の変形・移動を行う対象を設定する説明図である。図3(a)は複数の落葉を含む静止画図を示す。この静止画中から図3(b)に示すように7枚の落葉を人為的に選択し、その落葉のマスク画像301〜307を対象として設定し、各マスク画像301〜307に格子点を配置する。図3(c)に、1枚のマスク画像304について、格子点310をお互いの距離が等間隔になるようにランダムな位置に配置した例を示す。他のマスク画像301〜302,304〜307についても同様である。必要に応じて、人為的に、格子点を不等間隔に配置してもよい。   FIG. 3 is an explanatory diagram for setting an object to be deformed / moved within a still image. FIG. 3 (a) shows a still image including a plurality of fallen leaves. As shown in FIG. 3B, seven fallen leaves are artificially selected from the still image, mask images 301 to 307 of the fallen leaves are set as targets, and lattice points are arranged in the respective mask images 301 to 307. To do. FIG. 3 (c) shows an example in which lattice points 310 are arranged at random positions so that the distances between the mask images 304 are equal to each other. The same applies to the other mask images 301 to 302 and 304 to 307. If necessary, the lattice points may be artificially arranged at unequal intervals.

図4は2枚の連続した画像401,402から動き場403を推定する方法の説明図である。動き場を複雑に設定できるほど、変形する対象の動きはよりリアルになる。そのため、川の流れなど、実際の動画を用いて、動き推定することが好ましい。   FIG. 4 is an explanatory diagram of a method for estimating the motion field 403 from two consecutive images 401 and 402. The more complex the motion field is set, the more realistic the target object will be transformed. Therefore, it is preferable to perform motion estimation using an actual moving image such as a river flow.

その方法としては、オプティカルフロー法によるものが挙げられる。流体状のパターンの場合は、それに即した物理モデルの適用が妥当である。2枚の画像を用いて、オプティカルフローを推定するモデルを式(8)に示す。Iは2次元画像、Δは空間1次微分、Itは時間1次微分、(i、j)は画像上の座標を示す。また、α〜αはフレーム間の輝度変動に重みを付けるための係数である。uは推定されるオプティカルフローの2次元ベクトルである。

Figure 0004702811
An example of the method is an optical flow method. In the case of a fluid pattern, it is appropriate to apply a physical model corresponding to the pattern. A model for estimating the optical flow using two images is shown in Equation (8). I is a two-dimensional image, Δ is a spatial first derivative, It is a time first derivative, and (i, j) are coordinates on the image. Α 1 to α 3 are coefficients for weighting the luminance fluctuation between frames. u is a two-dimensional vector of the estimated optical flow.
Figure 0004702811

式(8)はある画像領域において、εi,jが最小になるための必要条件から、オプティカルフローが推定される。即ち、未知数(u、v)についての目的関数Eの最小化問題に帰着する。

Figure 0004702811
この式(9)から、線形連立1次方程式を求めて解くことで、画像上の動きベクトル、即ち、オプティカルフローが推定される。 In Equation (8), the optical flow is estimated from the necessary condition for ε i, j to be minimum in a certain image region. That is, it results in a minimization problem of the objective function E for unknowns (u, v).
Figure 0004702811
From this equation (9), a linear simultaneous linear equation is obtained and solved to estimate a motion vector on the image, that is, an optical flow.

なお、従来のオプティカルフロー法(参考文献:徐剛、辻三郎、「3次元ビジョン」、共立出版、112−113頁、2001)は、

Figure 0004702811
で表されるのもであった。すなわち、式(8)のように、三角関数による画像フレーム間の輝度変動に対応したものではなく、画像フレーム間での輝度恒常性が仮定されていた。これに対し本実施例では、画像フレーム間の輝度変動に重み付けを行って動き場を求めているので、精度を高めることができる。 The conventional optical flow method (references: Xugang, Saburo Tsubame, “3D Vision”, Kyoritsu Shuppan, pages 112-113, 2001)
Figure 0004702811
It was also represented by. That is, as in the equation (8), it does not correspond to the luminance fluctuation between image frames due to the trigonometric function, but the luminance constancy between the image frames is assumed. On the other hand, in this embodiment, since the motion field is obtained by weighting the luminance variation between the image frames, the accuracy can be improved.

図5はさまざまな対象に対する変形と移動の実験例である。図5(a)〜(c)では、背景の川の激流501から動き場を各時刻ごとに推定する。複数の落葉502を別の1枚の画像から切り出し、各落葉502の初期の格子点間の距離と角度を基準量として、各落葉502を激流501に流す表現を行った。その結果、それぞれの落葉502はその場の激流501の流れ速度に応じた変形を行いながら、下流へと流れていった。   FIG. 5 shows experimental examples of deformation and movement for various objects. 5 (a) to 5 (c), the motion field is estimated at each time from the torrent 501 of the background river. A plurality of fallen leaves 502 were cut out from another image, and the expression of flowing each fallen leaf 502 into the torrent 501 was performed using the distance and angle between the initial lattice points of each fallen leaf 502 as a reference amount. As a result, each fallen leaf 502 flowed downstream while performing deformation according to the flow velocity of the torrent 501 on the spot.

次に、図5(d)〜(f)において、複数の円形状の粒子503を激流501に流した例を示す。そのとき、図5(g)〜(i)に示すように、格子モデルへ貼り付けるテクスチャ(粒子503)を半透明状の赤血球504に類似するようにした。また、背景には血管505をイメージできるように、激流501から置き換えた。その結果、個々の赤血球504が変形しながら、移動していくようになった。また、流れながら衝突する表現も適切にできた。   Next, an example in which a plurality of circular particles 503 are caused to flow in the turbulent flow 501 in FIGS. At that time, as shown in FIGS. 5 (g) to (i), the texture (particles 503) to be attached to the lattice model was made similar to the translucent red blood cells 504. Further, the torrent 501 was replaced so that the blood vessel 505 could be imaged in the background. As a result, the individual red blood cells 504 moved while deforming. Moreover, the expression which collides while flowing was also able to be done appropriately.

図6は対象同士の衝突についての説明図である。上述したように、本実施例では、変形と移動を同じ1つのモデルで表現できている。これに加えて、衝突についても容易にモデルを拡張できる利点がある。   FIG. 6 is an explanatory diagram of collision between objects. As described above, in this embodiment, deformation and movement can be expressed by the same single model. In addition to this, there is an advantage that the model can be easily extended for collision.

ここには、例として2個の対象601,602があり、それぞれに、事前に複数の格子点603,604が割り付けられているものとする。それぞれのある時刻における重心を星印605,606として、対象601,602を構成している格子点603,604の重心を求める。各対象601,602について、それぞれ星印605,606をいままで述べた対象内の格子点とみなすことができる。即ち、2つの星印605,606の間の距離を初期値として設定しておくことで、対象601,602のそれぞれが変形と移動を行うとき、2つの星印605,606の距離が一定以上(衝突時の距離以上)になるように、対象601の各格子点、対象602の各格子点を平行移動させる。これを図2(a)で説明したように、時刻tと時刻t+1の間で行うことで、衝突を表現する。   Here, there are two objects 601 and 602 as examples, and it is assumed that a plurality of grid points 603 and 604 are allocated in advance. The centroids of the lattice points 603 and 604 constituting the objects 601 and 602 are obtained with the centroids at certain times as stars 605 and 606, respectively. For each object 601, 602, the star marks 605, 606 can be regarded as the lattice points in the object described so far. That is, by setting the distance between the two stars 605 and 606 as an initial value, when the objects 601 and 602 are deformed and moved, the distance between the two stars 605 and 606 is a certain distance or more. Each grid point of the object 601 and each grid point of the object 602 are translated so that the distance is equal to or greater than the distance at the time of collision. As described with reference to FIG. 2 (a), a collision is expressed by performing between time t and time t + 1.

図7に従来の数理モデルと本実施例による手法との性能評価比較実験の結果を示す。従来の数理モデルとして、最も簡単な表現はフック則に基づいた弾性モデルである。格子点間を仮想的なバネで連結し、弾性係数を5.0と設定し、本実施例と同じ格子点数と対象を構成した。図5(a)〜(c)で説明した激流501に落葉502を流し、上流から下流まで流れていくときの格子点の数に対する演算時間の比較実験を行った。本実施例では格子点の数が10から10の8乗のオーダまではほとんど演算時間は増大しなかった。これに対して、従来法では指数関数的に演算時間が増大した、このことから、本実施例の演算効率性が高いことが示された。   FIG. 7 shows the results of a performance evaluation comparison experiment between the conventional mathematical model and the method according to this embodiment. As a conventional mathematical model, the simplest expression is an elastic model based on the hook rule. The lattice points were connected by virtual springs, the elastic coefficient was set to 5.0, and the same number of lattice points and objects as in this example were configured. Experiments were performed to compare the calculation time with respect to the number of lattice points when the fallen leaves 502 were caused to flow in the torrent 501 described with reference to FIGS. 5 (a) to 5 (c) and flowed from upstream to downstream. In this embodiment, the calculation time hardly increased until the number of grid points was on the order of 10 to the 10th power. On the other hand, in the conventional method, the calculation time increased exponentially. This indicates that the calculation efficiency of this embodiment is high.

本発明の装置構成の実施例のブロック図である。It is a block diagram of the Example of the apparatus structure of this invention. 本実施例の連結関係のない格子点モデルの説明図である。It is explanatory drawing of the lattice point model without a connection relation of a present Example. ある静止画内の変形を行う対象を設定する説明図である。It is explanatory drawing which sets the object which deform | transforms in a certain still image. 2枚の連続した動画から動き場を推定する説明図である。It is explanatory drawing which estimates a motion field from two continuous moving images. まざまな対象に対する変形と移動の実験例の説明図である。It is explanatory drawing of the experiment example of the deformation | transformation with respect to various objects, and a movement. 対象同士の衝突の説明図である。It is explanatory drawing of the collision between objects. 従来の数理モデルと本実施例の手法との性能評価比較実験の結果を示す特性図である。It is a characteristic view which shows the result of the performance evaluation comparison experiment with the conventional mathematical model and the method of a present Example.

符号の説明Explanation of symbols

101:データ入力・蓄積手段、102:格子点設定手段、103:動き場設定手段、104:格子点移動手段、105:表示手段
201〜204:格子点
301〜307:落葉のマスク画像、310:格子点
401,402:画像、403:動き場
501:激流、502:落葉、503:粒子、504:赤血球、505:血管
601,602:対象、603,604:格子、605,606:重心
101: Data input / accumulation means, 102: Grid point setting means, 103: Motion field setting means, 104: Grid point moving means, 105: Display means 201-204: Grid points 301-307: Mask image of fallen leaves, 310: Grid points 401, 402: Image, 403: Motion field 501: Rapid flow, 502: Fallen leaves, 503: Particles, 504: Red blood cells, 505: Blood vessels 601, 602: Object, 603, 604: Grid, 605, 606: Center of gravity

Claims (7)

格子点モデル変形・移動装置により、変形・移動させようとする対象を含む静止画および該対象と類似の動きをする動画を準備し、前記動画から動き推定法により動き場を求め、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定し、該各格子点を独立に前記求めた動き場に応じて移動させる移動フェーズと移動後の各格子点を仮想的な連結によって初期と類似の関係に戻す変形フェーズとを時間幅の中で繰り返すことによって、前記対象の変形と移動の両方を表現する格子点モデル変形・移動方法であって、
前記変形フェーズは、移動後の各格子点の位置を、格子点間の距離の移動前後の変位がゼロに近づくようにx成分とy成分のそれぞれについて連結方向に沿って修正する処理と、格子点がなす角度の移動前後の変位がゼロに近づくように修正する処理とを含むことを特徴とする格子点モデル変形・移動方法。
A still image including a target to be deformed / moved by a lattice point model deforming / moving device and a moving image similar to the target are prepared, a motion field is obtained from the moving image by a motion estimation method, and the still image A plurality of grid points that are not connected to the object in the object are set, and each grid point is moved according to the obtained motion field independently, and each grid point after the movement is virtually connected A lattice point model deformation / movement method that expresses both deformation and movement of the object by repeating a deformation phase that returns to a similar relationship with the initial time within a time width ,
The deformation phase includes a process of correcting the position of each lattice point after movement along the connecting direction for each of the x component and the y component so that the displacement before and after the movement of the distance between the lattice points approaches zero, A method of deforming and moving a lattice point model , comprising: correcting so that a displacement before and after movement of an angle formed by a point approaches zero .
変形・移動させようとする対象を含む静止画および該対象と類似の動きをする動画を入力し蓄積するデータ入力・蓄積手段と、前記静止画中の前記対象に対し連結関係のない複数の格子点を設定する格子点設定手段と、前記動画から動き推定法により動き場を求める動き場設定手段と、前記各格子点を独立に前記求めた動き場に応じて変形した後に仮想的な連結によって初期と類似の関係に戻す格子点移動手段と、を備え
前記格子点移動手段は、移動後の各格子点の位置を、格子点間の距離の移動前後の変位がゼロに近づくようにx成分とy成分のそれぞれについて連結方向に沿って修正するとともに、格子点がなす角度の移動前後の変位がゼロに近づくように修正することを特徴とする格子点モデル変形・移動装置。
Data input / storage means for inputting and storing a still image including a target to be deformed / moved and a moving image similar to the target, and a plurality of grids not connected to the target in the still image Grid point setting means for setting points, motion field setting means for obtaining a motion field from the moving image by a motion estimation method, and virtual connection after deforming each grid point independently according to the obtained motion field Grid point moving means for returning to a similar relationship with the initial stage ,
The grid point moving means corrects the position of each grid point after movement along the connecting direction for each of the x component and the y component so that the displacement before and after the movement of the distance between the grid points approaches zero, An apparatus for deforming and moving a lattice point model, wherein the displacement before and after the movement of the angle formed by the lattice points is corrected to approach zero .
請求項2に記載の格子点モデル変形・移動装置において、
前記対象の移動・変形結果と前記動画とを重ねて表示する表示手段を備えたことを特徴とする格子点モデル変形・移動装置。
In the lattice point model deformation / movement apparatus according to claim 2,
A lattice point model deforming / moving device comprising display means for displaying the moving / deforming result of the object and the moving image in an overlapping manner.
請求項2又は3に記載の格子点モデル変形・移動装置において、
前記各格子点は、連結関係がなく、前記初期と類似の関係に戻す仮想的な連結と前記動き場に応じて変形する解放を時間幅の中で繰り返し、前記動画内の近傍流体との相互作用を含めたモデルであることを特徴とする格子点モデル変形・移動装置。
In the lattice point model transformation / movement apparatus according to claim 2 or 3,
Each of the lattice points has no connection relationship, and repeats virtual connection that returns to a relationship similar to the initial state and release that deforms in accordance with the motion field within a time range, so that each of the lattice points interacts with neighboring fluids in the moving image. Lattice point model transformation / movement device characterized by being a model including action.
請求項2又は3に記載の格子点モデル変形・移動装置において、
前記動き場設定手段は、流体系のオプティカルフローモデルを適用した手段であることを特徴とする格子点モデル変形・移動装置。
In the lattice point model transformation / movement apparatus according to claim 2 or 3,
The lattice point model deforming / moving apparatus according to claim 1, wherein the motion field setting means is a means to which an optical flow model of a fluid system is applied.
請求項5に記載の格子点モデル変形・移動装置において、
前記オプティカルフローモデルは、画像フレーム間の輝度変動を考慮して動き場を求めるモデルであることを特徴とする格子点モデル変形・移動装置。
In the lattice point model deformation / movement device according to claim 5,
The lattice point model deforming / moving apparatus according to claim 1, wherein the optical flow model is a model for obtaining a motion field in consideration of a luminance variation between image frames.
変形・移動させようとする対象を含む静止画および該対象と類似の動きをする動画を準備するステップと、
前記動画から動き推定法により動き場を求めるステップと、
前記静止画中の前記対象に対し連結関係のない複数の格子点を設定するステップと、
各格子点を独立に前記求めた動き場に応じて移動させる移動フェーズと移動後の各格子点を仮想的な連結によって初期と類似の関係に戻すように移動させる変形フェーズとを時間幅の中で繰り返すステップと、
格子点モデル変形・移動装置に実行させるためのプログラムであって、
前記変形フェーズは、移動後の各格子点の位置を、格子点間の距離の移動前後の変位がゼロに近づくようにx成分とy成分のそれぞれについて連結方向に沿って修正する処理と、格子点がなす角度の移動前後の変位がゼロに近づくように修正する処理とを含むことを特徴とする格子点モデル変形・移動プログラム。
Preparing a still image including a target to be deformed / moved and a moving image similar to the target;
Obtaining a motion field from the video by a motion estimation method;
Setting a plurality of grid points not connected to the object in the still image;
A movement phase in which each grid point is independently moved in accordance with the obtained motion field and a deformation phase in which each grid point after movement is moved so as to return to a similar relationship by initial connection by virtual connection are included in the time width. Repeat the steps in
Is a program for causing the lattice point model transformation / movement device to execute
The deformation phase includes a process of correcting the position of each lattice point after movement along the connecting direction for each of the x component and the y component so that the displacement before and after the movement of the distance between the lattice points approaches zero, A lattice point model transformation / movement program characterized by including a process for correcting the displacement of the angle formed by the points before and after the movement to approach zero .
JP2008151080A 2008-06-09 2008-06-09 Lattice point model deformation / movement method, apparatus and program Expired - Fee Related JP4702811B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008151080A JP4702811B2 (en) 2008-06-09 2008-06-09 Lattice point model deformation / movement method, apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008151080A JP4702811B2 (en) 2008-06-09 2008-06-09 Lattice point model deformation / movement method, apparatus and program

Publications (2)

Publication Number Publication Date
JP2009295128A JP2009295128A (en) 2009-12-17
JP4702811B2 true JP4702811B2 (en) 2011-06-15

Family

ID=41543223

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008151080A Expired - Fee Related JP4702811B2 (en) 2008-06-09 2008-06-09 Lattice point model deformation / movement method, apparatus and program

Country Status (1)

Country Link
JP (1) JP4702811B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5961589B2 (en) * 2013-07-10 2016-08-02 日本電信電話株式会社 Video generation apparatus, method, and program
JP6039527B2 (en) * 2013-10-18 2016-12-07 楽天株式会社 Movie generation device, movie generation method, and movie generation program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4199214B2 (en) * 2005-06-02 2008-12-17 エヌ・ティ・ティ・コミュニケーションズ株式会社 Movie generation device, movie generation method, movie generation program

Also Published As

Publication number Publication date
JP2009295128A (en) 2009-12-17

Similar Documents

Publication Publication Date Title
JP6349418B2 (en) Object positioning by high-precision monocular movement
US10467791B2 (en) Motion edit method and apparatus for articulated object
CN102750704B (en) Step-by-step video camera self-calibration method
KR100707841B1 (en) Surface Deformation Apparatus Using 3D Target Curve and Its Method
CN105302974A (en) Real-time cutting simulation method of flexible object on the basis of finite element and time-variant modal analysis
KR20130003170A (en) Method and apparatus for expressing rigid area based on expression control points
WO2016127421A1 (en) Real-time motion simulation method for hair and object collisions
KR20120041086A (en) Processing apparatus and method for creating avatar
CN106707967B (en) Three-D profile error estimation and device based on approximate test expansion
CN105807093B (en) A kind of acceleration measurement method and device based on Particle Image Velocimetry
JP4702811B2 (en) Lattice point model deformation / movement method, apparatus and program
CN116229005B (en) Method and device for determining geodesic line of three-dimensional roadway model
KR101586007B1 (en) Data processing apparatus and method
CN110111356B (en) Rotation axis direction and rotation angular velocity calculation method of moving rotating object
KR20230048617A (en) Method and system for visualization and simulation of flow phenomena
CN105095555B (en) It is a kind of based on particle image velocimetry method and device of the velocity field without scattered smoothing processing
KR102822464B1 (en) Apparatus and method for estimating pose
KR20140122401A (en) Method and apparatus for gernerating 3 dimension face image
CN109671152B (en) A method for estimating geometric properties of line and point clouds based on Gaussian weighted discrete derivatives
CN107221033A (en) A kind of method that rigid deformation is carried out to threedimensional model
Figueroa et al. A combined approach toward consistent reconstructions of indoor spaces based on 6D RGB-D odometry and KinectFusion
JP6752054B2 (en) Component point calculation device and program for component point calculation of the shape after springback
Wang et al. Structure and motion recovery based on spatial-and-temporal-weighted factorization
US10565328B2 (en) Method and apparatus for modeling based on particles for efficient constraints processing
CN111144064B (en) Character deformation method, medium, equipment and device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110210

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110302

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110302

R150 Certificate of patent or registration of utility model

Ref document number: 4702811

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees