JPH0997354A - Modeling system - Google Patents

Modeling system

Info

Publication number
JPH0997354A
JPH0997354A JP7253055A JP25305595A JPH0997354A JP H0997354 A JPH0997354 A JP H0997354A JP 7253055 A JP7253055 A JP 7253055A JP 25305595 A JP25305595 A JP 25305595A JP H0997354 A JPH0997354 A JP H0997354A
Authority
JP
Japan
Prior art keywords
image
model
dimensional
dimensional shape
shape 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.)
Granted
Application number
JP7253055A
Other languages
Japanese (ja)
Other versions
JP3429400B2 (en
Inventor
Masanori Watanabe
正規 渡辺
Shuichi Shiitani
秀一 椎谷
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP25305595A priority Critical patent/JP3429400B2/en
Publication of JPH0997354A publication Critical patent/JPH0997354A/en
Application granted granted Critical
Publication of JP3429400B2 publication Critical patent/JP3429400B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate a more accurate three-dimensional model without increasing the operation load on operator. SOLUTION: The modeling system which generates a three-dimensional shape model M for a body on the basis of a two-dimensional image G1 including solid structure information on the body O is provided with a display control means which displays the monitor image GM2 composed of the latest projection image of the three-dimensional shape model M and the two-dimensional image G1, a manual correcting means which corrects the three-dimensional shape model according to instruction given by operator, and an automatic correcting means which corrects the three-dimensional shape model according to the result of an analysis of the two-dimensional image G1.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、3次元コンピュー
タグラフィックスにおける形状モデルを生成するための
モデリングシステムに関する。
TECHNICAL FIELD The present invention relates to a modeling system for generating a shape model in three-dimensional computer graphics.

【0002】3次元コンピュータグラフィックスは、実
在する物体又は架空の物体をその3次元形状モデルに基
づいて画面上に立体的に表示する技術であり、任意の視
点から見た物体をリアルタイムで表示できるので、景観
シミュレーションやプレゼンテーションなどに応用され
ている。
[0002] Three-dimensional computer graphics is a technique for stereoscopically displaying a real object or a fictitious object on a screen based on its three-dimensional shape model, and an object viewed from an arbitrary viewpoint can be displayed in real time. Therefore, it is applied to landscape simulations and presentations.

【0003】[0003]

【従来の技術】実在する物体の3次元形状モデルを、そ
の物体を撮影した実写画像を利用して生成する形状モデ
リング手法が知られている。対象物体の3次元形状モデ
ル(以下、「物体モデル」という)の原型として立方体
・円柱・球などの基本形状の3次元形状モデル(以下、
「基本モデル」という)を用意しておき、基本モデルを
修正して物体モデルを生成することにより、モデリング
の効率を高めることができる。
2. Description of the Related Art A shape modeling method is known in which a three-dimensional shape model of an existing object is generated by using a photographed image of the object. As a prototype of the three-dimensional shape model of the target object (hereinafter referred to as “object model”), a three-dimensional shape model of basic shapes such as a cube, a cylinder, and a sphere (hereinafter,
By preparing a "basic model") and modifying the basic model to generate an object model, modeling efficiency can be improved.

【0004】従来のモデリングシステムは、オペレータ
の指示に従って基本モデルを修正するように構成されて
いた(特開平3−138784号)。従来のモデリング
の手順は以下のとおりである。
A conventional modeling system is configured to correct a basic model according to an operator's instruction (Japanese Patent Laid-Open No. 3-138784). The conventional modeling procedure is as follows.

【0005】モデリングシステムは、実写画像と基本
モデルの投影像とを画面上に並べて表示する。 オペレータは、実写画像と投影像とを見比べて、両者
の位置の対応関係を指定する。例えば、基本モデルの頂
点に対応する実写画像中の画素の座標を入力する。その
際、オペレータは、仮想空間内での基本モデルの配置位
置を変更することによって、対応関係の理解が容易にな
るように投影像の視点位置を調整することができる。
The modeling system displays a real image and a projected image of the basic model side by side on the screen. The operator compares the photographed image with the projected image and specifies the correspondence between the positions of the two. For example, the coordinates of the pixel in the photographed image corresponding to the vertex of the basic model are input. At that time, the operator can adjust the viewpoint position of the projected image so that the correspondence can be easily understood by changing the arrangement position of the basic model in the virtual space.

【0006】モデリングシステムは、オペレータから
与えられた対応関係情報を透視変換の関係式に適用する
ことによって基本モデルの座標の修正値を算出し、基本
モデルを修正する。
The modeling system calculates the correction value of the coordinates of the basic model by applying the correspondence information given by the operator to the relational expression of the perspective transformation, and corrects the basic model.

【0007】[0007]

【発明が解決しようとする課題】従来では、オペレータ
からの入力情報のみに基づいて基本モデルが修正される
ので、モデリングの精度がオペレータの判断に依存する
という問題があった。正確な物体モデルが必要な場合に
は、オペレータに対して厳密な判断が要求されることか
ら、作業負担が増大するとともに作業時間が長くなっ
た。実写画像に不鮮明な部分がある場合には、正確な物
体モデルの生成が困難であった。なお、コンピュータビ
ジョンの手法を用いてオペレータの判断に依存しないモ
デリングを実現することが考えられる。しかし、現状で
は実用の上で十分な精度を望めない。
Conventionally, since the basic model is modified only on the basis of the input information from the operator, the accuracy of modeling depends on the operator's judgment. When an accurate object model is required, the operator is required to make a rigorous judgment, which increases the work load and lengthens the work time. It is difficult to generate an accurate object model when the real image has a blur. Note that it is conceivable to implement modeling that does not depend on the judgment of the operator by using the method of computer vision. However, at present, it is not possible to expect sufficient accuracy in practical use.

【0008】本発明は、上述の問題に鑑みてなされたも
ので、オペレータの作業負担を増大することなく、より
正確な3次元形状モデルを生成することを目的としてい
る。
The present invention has been made in view of the above problems, and an object thereof is to generate a more accurate three-dimensional shape model without increasing the work load on the operator.

【0009】[0009]

【課題を解決するための手段】種々の物体のモデリング
においては、オペレータによる手動のモデリングによっ
て十分な精度が得られる場合も、データ処理手段による
画像解析が有用な場合も起こりうる。手動モデリング機
能と自動モデリング機能とを設けることによって、モデ
リングシステムの実用性を高めることができる。
In modeling various objects, there may be cases where sufficient accuracy can be obtained by manual modeling by an operator, and cases where image analysis by a data processing means is useful. By providing the manual modeling function and the automatic modeling function, the practicality of the modeling system can be enhanced.

【0010】手動のモデリングの結果を踏まえて、2次
元画像の特定部分に注目して画像解析を行うようにすれ
ば、2次元画像の全体を解析する場合に比べて、画像処
理の無駄を軽減することができ、効率的に2次元画像か
ら特徴情報を抽出することができる。
If the image analysis is performed by paying attention to the specific portion of the two-dimensional image based on the result of the manual modeling, the waste of image processing is reduced as compared with the case of analyzing the entire two-dimensional image. The feature information can be efficiently extracted from the two-dimensional image.

【0011】請求項1の発明のシステムは、物体の立体
構造情報を含む2次元画像に基づいて前記物体の3次元
形状モデルを生成するためのモデリングシステムであっ
て、最新の3次元形状モデルの投影像と前記2次元画像
とを合成したモニター画像を表示する表示制御手段と、
オペレータから与えられる指示に従って前記3次元形状
モデルを修正する手動修正手段と、前記2次元画像に対
する画像解析の結果に基づいて前記3次元形状モデルを
修正する自動修正手段とを有する。
The system of the invention of claim 1 is a modeling system for generating a three-dimensional shape model of an object based on a two-dimensional image containing three-dimensional structure information of the object. Display control means for displaying a monitor image in which a projected image and the two-dimensional image are combined;
It has a manual correction means for correcting the three-dimensional shape model according to an instruction given by an operator, and an automatic correction means for correcting the three-dimensional shape model based on a result of image analysis on the two-dimensional image.

【0012】請求項2の発明のシステムにおいて、前記
自動修正手段は、2次元画像の内の前記モニター画像に
おける前記3次元形状モデルの辺を含む一部の領域を対
象に画像解析を行い、当該辺の端点の修正目標を設定
し、当該辺の端点を前記修正目標に近づけるように前記
3次元形状モデルを修正する。
According to a second aspect of the present invention, the automatic correction means performs an image analysis on a partial region including a side of the three-dimensional shape model in the monitor image in the two-dimensional image, A correction target of the end point of the side is set, and the three-dimensional shape model is corrected so that the end point of the side approaches the correction target.

【0013】請求項3の発明のシステムにおいて、前記
自動修正手段は、前記3次元形状モデルの修正量を、3
次元形状モデルのパラメータの修正前の値と前記パラメ
ータの前記修正目標に対応した値との差に基づいて算出
する。
In the system of the third aspect of the present invention, the automatic correction means sets the correction amount of the three-dimensional shape model to 3
It is calculated based on the difference between the value of the parameter of the three-dimensional shape model before correction and the value of the parameter corresponding to the correction target.

【0014】請求項4の発明のシステムにおいて、前記
表示制御手段は、前記3次元形状モデルをワイヤフレー
ム形式で図式化し、且つ前記3次元形状モデルの内の前
記2次元画像と重なる部分の表示色を画素毎に前記2次
元画像と異なる色に設定する。
In the system according to the present invention, the display control means visualizes the three-dimensional shape model in a wireframe format and displays a display color of a portion of the three-dimensional shape model which overlaps with the two-dimensional image. For each pixel is set to a color different from the two-dimensional image.

【0015】[0015]

【発明の実施の形態】図1は本発明に係るモデリングシ
ステム1の構成図である。モデリングシステム1は、シ
ステム制御と画像データ処理とを担うCPU10、キー
ボード21、マウス22、ディスプレイ30、ハードデ
ィスクに代表される媒体を備えたメモリ装置40、及び
イメージリーダ50から構成されている。CPU10に
は、形状モデリングのためのソフトウェアが組み込まれ
ている。マウス22に代えてトラックボールなどの他の
ポインティングデバイスを用いてもよい。イメージリー
ダ50に代えてビデオカメラを用いて物体の画像情報を
CPU10に入力してもよい。光ディスクなどの記憶媒
体から画像をCPU10に供給することも可能である。
1 is a block diagram of a modeling system 1 according to the present invention. The modeling system 1 includes a CPU 10 that performs system control and image data processing, a keyboard 21, a mouse 22, a display 30, a memory device 40 including a medium represented by a hard disk, and an image reader 50. Software for shape modeling is incorporated in the CPU 10. Instead of the mouse 22, another pointing device such as a trackball may be used. Instead of the image reader 50, a video camera may be used to input the image information of the object to the CPU 10. It is also possible to supply the image to the CPU 10 from a storage medium such as an optical disk.

【0016】図2はCPU10の機能ブロック図であ
る。CPU10は、イメージリーダ50が出力する画素
単位の画像データを取り込む画像入力部11、メモリ装
置40から基本モデル(物体モデルの原型)を読み出す
形状データ入力部12、基本モデルを修正して物体モデ
ルを生成する作業部13、及び生成された物体モデルの
出力制御を担う形状データ出力部14を有している。物
体モデルの出力とは、メモリ装置40への格納、又は他
のシステム(例えばテクスチャ生成システム)への転送
を意味する。なお、CPU10に、物体モデルに貼り付
けるテクスチャを生成する機能を加えてもよい。
FIG. 2 is a functional block diagram of the CPU 10. The CPU 10 includes an image input unit 11 that captures image data in pixel units output from the image reader 50, a shape data input unit 12 that reads a basic model (prototype of the object model) from the memory device 40, and the basic model is modified to generate the object model. It has a working unit 13 for generating and a shape data output unit 14 for controlling output of the generated object model. The output of the object model means storage in the memory device 40 or transfer to another system (for example, a texture generation system). The CPU 10 may be provided with a function of generating a texture to be attached to the object model.

【0017】作業部13は、表示制御部131、手動修
正部132、及び自動修正部132から構成されてい
る。表示制御部131は、修正段階における最新の物体
モデルの投影像と画像入力部11が読み込んだ手本画像
とを合成し、得られた合成画像をモデリングのモニター
画像として表示する。物体モデルの投影像は、ローカル
座標系(ボディ座標系ともいう)で表現された物体モデ
ルを、グローバル座標空間(ワールド座標空間ともい
う)に手本画像とともに配置し、手本画像を含む平面に
物体モデルを投影したときの像である。
The working unit 13 is composed of a display control unit 131, a manual correction unit 132, and an automatic correction unit 132. The display control unit 131 synthesizes the latest projected image of the object model at the correction stage with the model image read by the image input unit 11, and displays the obtained synthetic image as a modeling monitor image. The projected image of the object model is obtained by arranging the object model expressed in the local coordinate system (also called the body coordinate system) in the global coordinate space (also called the world coordinate space) together with the model image and setting it on a plane including the model image. It is an image when the object model is projected.

【0018】手動修正部132は、オペレータから与え
られる指示に従って物体モデルを修正する。自動修正部
133は、入力画像に対する画像解析を行って修正目標
を設定し、モデリングのパラメータの修正量を算定して
物体モデルを修正する。
The manual correction unit 132 corrects the object model according to an instruction given by the operator. The automatic correction unit 133 corrects the object model by performing image analysis on the input image, setting a correction target, calculating a correction amount of modeling parameters, and correcting the object model.

【0019】図3はモデリングの概略を示すフローチャ
ートである。オペレータは、イメージリーダ50を介し
て、モデリング対象の物体の立体構造情報をもつ2次元
画像をモデリングの手本画像(情報源)としてモデリン
グシステム1に入力する(#1)。手本画像としては物
体を撮影した実写画像(自然画像)が一般的である。た
だし、フリーハンドのスケッチ、2次元CADによる設
計図などの画像も手本画像として利用可能である。
FIG. 3 is a flowchart showing the outline of modeling. The operator inputs a two-dimensional image having three-dimensional structure information of an object to be modeled into the modeling system 1 as a model image (information source) for modeling via the image reader 50 (# 1). A real image (natural image) of an object is generally used as the model image. However, images such as freehand sketches and design drawings by two-dimensional CAD can also be used as model images.

【0020】続いて、オペレータは、あらかじめ用意さ
れている複数種の基本モデルの中から、物体に類似した
1つ又は複数の基本モデルを物体モデルの原型として選
択する(#2)。複数の基本モデルを組み合わせること
により、複雑な物体モデルを生成することができる。基
本形状としては、直方体、円柱、角柱、円錐、角錐、
球、正n面体などがある。オペレータは、これらの形状
の名称又はシンボル図形を一覧表示させた後、適当な形
状を選ぶ。
Then, the operator selects one or a plurality of basic models similar to an object as a prototype of the object model from a plurality of types of basic models prepared in advance (# 2). A complex object model can be generated by combining a plurality of basic models. Basic shapes include cuboid, cylinder, prism, cone, pyramid,
There are a sphere and a regular n-face. The operator displays a list of names of these shapes or symbolic figures and then selects an appropriate shape.

【0021】モデリングシステム1は、ディスプレイ3
0の画面上にモニター画像を表示する(#3)。最初に
表示されるモニター画像における投影像は、未修正の物
体モデル(つまり原型として選択された基本モデル)に
対応する。基本モデルが、円柱・円錐・球などの回転体
のモデルの場合には、補助線としてローカル座標軸が点
線で表示される。
The modeling system 1 includes a display 3
A monitor image is displayed on the screen of 0 (# 3). The projected image in the initially displayed monitor image corresponds to the unmodified object model (ie the basic model selected as the prototype). When the basic model is a rotating body model such as a cylinder, a cone, or a sphere, the local coordinate axes are displayed as dotted lines as auxiliary lines.

【0022】モニター画像において手本画像が表す物体
と物体モデルの投影像とが完全に重なっている場合、す
なわち手本画像と物体モデルとが一致している場合は、
物体モデルを修正する必要はない(#4)。その場合に
はモデリングシステム1が物体モデルの出力(#8)を
終えた時点でモデリングが完了する。
In the monitor image, when the object represented by the model image and the projected image of the object model completely overlap each other, that is, when the model image and the object model match,
There is no need to modify the object model (# 4). In that case, the modeling is completed when the modeling system 1 finishes outputting the object model (# 8).

【0023】手本画像と物体モデルとが一致していない
場合には、オペレータは、適切な修正操作を行う(#
5)。手本画像と物体モデルとが大幅にくい違うときに
は手動修正が好ましい。オペレータは、グローバル座標
空間内の物体モデルに対して移動・回転・拡大・縮小な
どの修正を加える旨の指示を、モデリングシステム1に
与える。例えば物体モデルを定義するパラメータの変更
を指定し、マウス22を移動させてパラメータ値の増減
を指示する。パラメータとしては、姿勢と位置とを規定
するグローバル座標系に対するローカル座標系の位置、
向きの変位、透視変換のための焦点距離、部分伸縮率な
どがある。物体モデルの特定部位をマウス22によって
ドラッグすることで、物体モデルの変形を指示すること
もできる。その際、ドラッグが有効な特定部位は、輝度
の格差や点滅によって強調表示される。
If the model image and the object model do not match, the operator performs an appropriate correction operation (#
5). Manual correction is preferred when the model image and the object model are very difficult and different. The operator gives an instruction to the modeling system 1 to modify the object model in the global coordinate space such as movement, rotation, enlargement / reduction. For example, the change of the parameter defining the object model is designated, and the mouse 22 is moved to instruct the increase or decrease of the parameter value. As parameters, the position of the local coordinate system with respect to the global coordinate system that defines the posture and position,
Orientation displacement, perspective distance for perspective transformation, partial expansion / contraction rate, etc. It is also possible to instruct the deformation of the object model by dragging a specific portion of the object model with the mouse 22. At that time, the specific portion where the dragging is effective is highlighted by a difference in brightness or blinking.

【0024】モデリングシステム1は、指示に則して物
体モデルを定義するパラメータを修正する(#6)。修
正毎に、モニター画像は、手本画像と修正後の最新の物
体モデルとの関係を示す画像に更新される。なお、手動
修正モードにおいて、オペレータは、物体モデルの配置
状態の理解を容易にするために、球のワイヤフレームモ
デル(ガイドポリゴン)をモニター画像に重ねて表示さ
せることができる。
The modeling system 1 corrects the parameters defining the object model according to the instruction (# 6). For each modification, the monitor image is updated to an image showing the relationship between the model image and the latest object model after modification. In the manual correction mode, the operator can display the wire frame model (guide polygon) of the sphere on the monitor image in order to facilitate understanding of the arrangement state of the object model.

【0025】オペレータが自動修正を指示すると、モデ
リングシステム1は、手本画像の解析によって手本画像
と物体モデルの投影像とのズレを数値化し、ズレが最小
となる修正量を算定して物体モデルを修正する(#
7)。
When the operator gives an instruction for automatic correction, the modeling system 1 digitizes the deviation between the model image and the projected image of the object model by analyzing the model image, and calculates the correction amount that minimizes the deviation to calculate the object. Modify the model (#
7).

【0026】以下、具体例を挙げてモデリングシステム
1の機能を説明する。図4は物体Oと手本画像G1とを
示す図である。ここでは、図4(A)に示す略直方体の
建物Oが、モデリング対象の物体である。建物Oの物体
モデル(3次元形状モデル)を図4(B)に示す手本画
像G1を利用して生成する。手本画像G1は建物Oの外
面S1に向かって右側の位置VP1から建物Oを撮影し
た写真である。なお、手本画像G1では外面S1の一部
が欠けている。したがって、物体モデルにおける外面S
1の水平方向の長さを確定するには、外面S1の全域の
情報をもつ手本画像(例えば図5の画像G3)が必要で
ある。
The functions of the modeling system 1 will be described below with reference to specific examples. FIG. 4 is a diagram showing the object O and the model image G1. Here, the substantially rectangular parallelepiped building O shown in FIG. 4A is an object to be modeled. An object model (three-dimensional shape model) of the building O is generated using the model image G1 shown in FIG. The model image G1 is a photograph of the building O taken from a position VP1 on the right side of the outer surface S1 of the building O. In the model image G1, a part of the outer surface S1 is missing. Therefore, the outer surface S in the object model
In order to determine the horizontal length of 1, the model image (for example, the image G3 in FIG. 5) having information on the entire area of the outer surface S1 is required.

【0027】図5はディスプレイ30の表示例を示す図
であり、図3のステップ#2が終了した段階の画面(ス
クリーン)31の内容を示している。なお、画面31に
は、図示しないアイコンやメッセージを表示する領域が
存在する。
FIG. 5 is a diagram showing a display example of the display 30, and shows the contents of the screen 31 at the stage when step # 2 of FIG. 3 is completed. The screen 31 has an area for displaying icons and messages (not shown).

【0028】画面31の下半部に、イメージリーダ50
によって読み取られた4つの手本画像G1〜4が並べら
れている。画像G2〜4も建物Oを撮影した写真であ
る。画面31の上半部の左側に、種々の基本形状の中か
ら選択された基本モデル(直方体のワイヤフレームモデ
ル)が建物Oの現時点の物体モデルM0 として表示され
ている。オペレータが手動修正モードを指定すると、画
面31内にモニター画像を表示するための領域(ウイン
ドウ)Awが設定される。
The image reader 50 is provided in the lower half of the screen 31.
The four model images G1 to G4 read by are arranged. Images G2 to 4 are also photographs of the building O. On the left side of the upper half of the screen 31, a basic model (a rectangular wireframe model) selected from various basic shapes is displayed as the object model M 0 of the building O at the present time. When the operator designates the manual correction mode, an area (window) Aw for displaying the monitor image is set in the screen 31.

【0029】図6は手動修正におけるモニター画像GM
1,2の変化を示す図、図7は物体モデルM0 と手本画
像G1との位置関係の模式図、図8は物体モデルM0
表現例を示す図である。
FIG. 6 shows a monitor image GM in manual correction.
Shows the change in 1,2, 7 is a schematic diagram of a positional relationship between the object model M 0 and model image G1, FIG. 8 is a diagram showing an example representation of the object model M 0.

【0030】手動修正の開始時点において、領域Awに
は、手本画像G1と物体モデルM0との関係を示すモニ
ター画像GM1が表示される〔図6(A)〕。このと
き、物体モデルM0 の表示色は、手本画像G1との識別
が容易なように画素単位で設定される。例えば、基本の
表示色を赤色とし、手本画像G1内の赤色の画素と重な
る部分の表示色を赤色以外の色(例えば赤色の補色)と
する。ワイヤフレームの内のいわゆる隠れ線部分を他の
部分と異なる色とする色分け表示は、物体モデルM0
示す立体構造の理解に役立つ。
At the start of the manual correction, a monitor image GM1 showing the relationship between the model image G1 and the object model M 0 is displayed in the area Aw [FIG. 6 (A)]. At this time, the display color of the object model M 0 is set on a pixel-by-pixel basis so that it can be easily distinguished from the model image G1. For example, the basic display color is red, and the display color of the portion overlapping the red pixel in the model image G1 is a color other than red (for example, a complementary color of red). The color-coded display in which the so-called hidden line portion in the wire frame is colored differently from other portions is useful for understanding the three-dimensional structure represented by the object model M 0 .

【0031】図6における物体モデルM0 の像は、グロ
ーバル座標空間に配置された物体モデルM0 の画面31
への投影像である(図7参照)。オペレータは、目視判
断に基づいて、グローバル座標空間内での物体モデルM
0 の配置状態(位置、傾き)の調整を行うとともに、物
体モデルM0 の変形(幅、高さ、奥行きの相対比の変
更)を行う。適切な修正操作によって、手本画像G1中
の物体とほぼ一致する物体モデルM1 が得られる。画面
31には得られた物体モデルM1 と手本画像G1との関
係を示すモニター画像GM2が表示される〔図6
(B)〕。
The image of the object model M 0 in FIG. 6 is a screen 31 of the object model M 0 arranged in the global coordinate space.
Is a projected image (see FIG. 7). The operator determines the object model M in the global coordinate space based on the visual judgment.
The arrangement state (position, inclination) of 0 is adjusted, and the object model M 0 is deformed (the relative ratio of width, height, and depth is changed). By an appropriate correction operation, an object model M 1 that substantially matches the object in the model image G1 is obtained. Monitor image GM2 showing the relationship between object models M 1 and model image G1 obtained is displayed on the screen 31 [6
(B)].

【0032】図8のように、物体モデルM0 は番号0〜
5の6つのポリゴンで表現される。図8では便宜上ポリ
ゴンの番号を括弧つきの数字で示してある。ポリゴンは
いずれも四角形であり、それぞれに4つの頂点が対応す
る。頂点は、物体モデルM0を定義するための直交座標
系であるローカル座標系の座標(x,y,z)で表現さ
れる。
As shown in FIG. 8, the object model M 0 has numbers 0 to 0.
It is represented by 5 polygons. In FIG. 8, for convenience, the polygon numbers are shown in parentheses. Each polygon is a quadrangle, and four vertices correspond to each. The vertices are represented by coordinates (x, y, z) in a local coordinate system which is an orthogonal coordinate system for defining the object model M 0 .

【0033】図9は自動修正の手順を示す図である。図
9においては、手本画像G1の中の建物Oに対応する部
分にハッチングを付してある。自動修正部133は、手
動修正で得られた物体モデルM1 の1つの辺E26に注目
する〔図9(A)〕。辺E26の端点は頂点P2,P6で
ある。手本画像G1に対する画像解析は、モニター画像
GM2(つまり画面31)での辺E26を含む部分画像G
10を対象として行われる。図9(B)のように、部分
画像G10は、辺E26を中心線とする矩形領域A26内の
画像である。矩形領域A26における辺E 26と直交する方
向の外形寸法は、画素数に換算して10に選定されてい
る(ただし、10に限定する必要はない)。部分画像G
10の画素値の分布を解析し、手本画像G1(厳密には
部分画像G10)における建物Oと背景Bとの境界に合
致する直線L1を求める〔図9(C)〕。
FIG. 9 is a diagram showing a procedure of automatic correction. Figure
9, the part corresponding to the building O in the model image G1
The minutes are hatched. The automatic correction unit 133
Object model M obtained by dynamic correction1One side of E26Pay attention to
(FIG. 9 (A)). Side E26End points are at vertices P2 and P6
is there. Image analysis for the model image G1 is performed on the monitor image.
Edge E on GM2 (ie screen 31)26Partial image G containing
It is performed for 10. As shown in FIG.
Image G10 shows side E26Rectangular area A with the center line26Inside
It is an image. Rectangular area A26Edge E at 26One orthogonal to
The external dimensions in the horizontal direction have been selected to be 10 in terms of the number of pixels.
(However, it is not necessary to limit to 10). Partial image G
By analyzing the distribution of 10 pixel values, the model image G1 (strictly speaking,
It matches the boundary between building O and background B in partial image G10).
A matching straight line L1 is obtained [FIG. 9 (C)].

【0034】辺E26に対する処理と同様に、頂点P6,
P7に対応する辺E67に注目して手本画像G1を部分的
に解析し、建物Oの稜線(背景Bとの境界)に合致する
直線L2を求める〔図9(D)〕。そして、直線L1と
直線L2との交点Q6を求める。
Similar to the processing for the side E 26 , the vertex P6,
Focusing on the side E 67 corresponding to P7, the model image G1 is partially analyzed to obtain a straight line L2 that matches the ridgeline of the building O (boundary with the background B) [FIG. 9 (D)]. Then, an intersection Q6 between the straight line L1 and the straight line L2 is obtained.

【0035】画面31上で頂点P6が交点Q6と重なる
ように物体モデルM1 を修正する必要がある。つまり、
交点Q6が頂点P6の修正目標である。他の頂点P4,
P5,P7のいずれかが手本画像G1の建物Oとずれて
いる場合には、そのズレをも無くす必要がある。自動修
正部133は、頂点P4〜7のズレが全体として最小と
なるように、物体モデルM1 を定義するパラメータを修
正する。
It is necessary to correct the object model M 1 so that the vertex P6 overlaps the intersection Q6 on the screen 31. That is,
The intersection Q6 is the correction target of the vertex P6. Other vertex P4
If any of P5 and P7 deviates from the building O of the model image G1, it is necessary to eliminate the deviation. The automatic correction unit 133 corrects the parameters defining the object model M 1 so that the deviations of the vertices P4 to P7 are minimized as a whole.

【0036】以下、自動修正部133が実行する演算の
内容をさらに詳しく説明する。 〔画像解析〕 部分画像G10から建物Oのエッジ(境界)を抽出す
るため、部分画像G10における水平方向(X方向)及
び垂直方向(Y方向)の画像値の変化を調べ、X方向及
びY方向のエッジ評価値Ex,Eyを得る。辺E26に沿
った方向のエッジ評価値Eθを(1)式によって算出す
る。
The contents of the calculation executed by the automatic correction unit 133 will be described in more detail below. [Image Analysis] In order to extract the edge (boundary) of the building O from the partial image G10, changes in the image values in the horizontal direction (X direction) and the vertical direction (Y direction) in the partial image G10 are examined, and the X direction and the Y direction. Edge evaluation values Ex and Ey of The edge evaluation value Eθ in the direction along the side E 26 is calculated by the equation (1).

【0037】 Eθ=|−Ex・sinθ+Ey・cosθ| …(1) θ:X方向に対する辺の傾斜角度 エッジ評価値Eθに基づいて直線L1を求める。部分
画像G10内の座標(X,Y)の点がEθXYのエッジで
あった場合、直線L1は、最小二乗法を適用することに
よって(2)式で特定される。
Eθ = | −Ex · sin θ + Ey · cos θ | (1) θ: Inclination angle of side with respect to X direction The straight line L1 is obtained based on the edge evaluation value Eθ. When the point at the coordinates (X, Y) in the partial image G10 is the edge of Eθ XY , the straight line L1 is specified by the equation (2) by applying the least square method.

【0038】 −X・sinφ+Y・cosφ=h …(2) h:−Xave ・sinφ+Yave ・cosφ φ:(1/2)・tan-1(2A/B) 〔B・cos2φ+2A・sin2φ>0〕 A:Σ(X・EθXY−Xave )(Y・EθXY−Yave ) B:Σ(X・EθXY−Xave )2 −Σ(Y・EθXY−Y
ave )2 Xave :Σ(X・EθXY)/ΣEθXY Yave :Σ(Y・EθXY)/ΣEθXY 〔修正量の算出〕物体モデルM1 のパラメータの修正量
は、画面31上で頂点P4〜7が修正目標と一致すると
きのパターニング値と現時点のパターニング値との差で
ある。
−X · sin φ + Y · cos φ = h (2) h: −Xave · sin φ + Yave · cos φ φ: (1/2) · tan −1 (2A / B) [B · cos 2 φ + 2 A · sin 2 φ> 0] A: Σ (X · Eθ XY −Xave) (Y · Eθ XY −Yave) B: Σ (X · Eθ XY −Xave) 2 −Σ (Y · Eθ XY −Y
ave) 2 Xave: Σ (X · Eθ XY ) / ΣEθ XY Yave: Σ (Y · Eθ XY ) / ΣEθ XY [Calculation of correction amount] The correction amount of the parameter of the object model M 1 is the vertex P4 on the screen 31. Is the difference between the patterning value when ˜7 matches the correction target and the current patterning value.

【0039】パラメータをΠi (i=1〜n)とし、そ
れによって特定される画面31上の頂点Pj (j=1〜
m)と修整目標点Qj のX座標の差を表す式をFj(Π
1 ,Π2 ,…Πn )、Y座標の差を表す式をGj
(Π1 ,Π2 ,…Πn )とする。
The parameter is Π i (i = 1 to n), and the vertex P j (j = 1 to 1) on the screen 31 specified by it
m) and an X coordinate between the target point for modification Q j and F j
1 , Π 2 , ... Π n ), Gj is an expression representing the difference in Y coordinates.
1 , Π 2 , ... Π n ).

【0040】現時点のパラメータ値Πi についてFj
(Π1 ,Π2 ,…Πn )とGj(Π1,Π2 ,…Πn
とをテーラー展開し、1次項を取り出す。各パラメータ
の修整量をΔΠi とすると、Fj(Π1 ,Π2 ,…
Πn ),Gj(Π1 ,Π2 ,…Πn)は次式で表され
る。
Fj for the current parameter value Π i
1 , Π 2 , ... Π n ) and Gj (Π 1 , Π 2 , ... Π n )
Taylor expansion of and and take out the first-order term. If the amount of modification of each parameter is ΔΠ i , then Fj (Π 1 , Π 2 , ...
Π n ), Gj (Π 1 , Π 2 , ... Π n ) are represented by the following equations.

【0041】 Fj(Π1 ,Π2 ,…Πn )=(dF/dΠ1 )ΔΠ1 +(dF/dΠ2 )ΔΠ2 ・・・+(dF/dΠn )ΔΠn …(3) Gj(Π1 ,Π2 ,…Πn )=(dG/dΠ1 )ΔΠ1 +(dG/dΠ2 )ΔΠ2 ・・・+(dG/dΠn )ΔΠn …(4) (3)式及び(4)式のΔΠi を未知数として連立方程
式を解けば修正量を得ることができる。修整量ΔΠi
現時点のパラメータ値Πi に加えた結果が、修正後の物
体モデルM2 のパラメータ値である。
Fj (Π 1 , Π 2 , ... Π n ) = (dF / dΠ 1 ) ΔΠ 1 + (dF / dΠ 2 ) ΔΠ 2 ... + (dF / dΠ n ) ΔΠ n ... (3) Gj (Π 1 , Π 2 , ... Π n ) = (dG / dΠ 1 ) ΔΠ 1 + (dG / dΠ 2 ) ΔΠ 2 ... + (dG / dΠ n ) ΔΠ n (4) Equation (3) and The correction amount can be obtained by solving the simultaneous equations using ΔΠ i in the equation (4) as an unknown number. The result of adding the modification amount ΔΠ i to the current parameter value Π i is the parameter value of the corrected object model M 2 .

【0042】以上、建物Oの外面S1の一部の情報が欠
けた手本画像G1を用いたモデリング作業を説明した
が、モデルの用途によっては他の手本画像を用いる必要
がある。その場合、他の手本画像を用いて物体モデルに
おける外面S1に対応するポリゴンの縦横比を手動で定
めた後、手本画像G1を用いて手動及び自動のモデル修
正を行ってもよいし、逆の順序で物体モデルを完成させ
てもよい。例示のように実際の物体が直方体の場合は、
隣接する2つのポリゴンに対応する情報を有した画像
(例えば正面の全域と側面の全域とが写った建物Oの全
景写真など)を用いれば、1枚の画像で物体モデルを完
成させることが可能である。種々の撮影アングルの写真
を利用すれば、より物体モデルの精度を高めることがで
きる。
The modeling work using the model image G1 in which some information on the outer surface S1 of the building O is missing has been described above, but it is necessary to use another model image depending on the purpose of the model. In that case, after manually determining the aspect ratio of the polygon corresponding to the outer surface S1 in the object model using another model image, manual and automatic model correction may be performed using the model image G1. The object model may be completed in the reverse order. If the actual object is a rectangular parallelepiped as shown in the example,
If an image having information corresponding to two adjacent polygons (for example, a panoramic photograph of the building O showing the entire front surface and the entire side surface) is used, the object model can be completed with one image. Is. The accuracy of the object model can be further improved by using photographs at various shooting angles.

【0043】[0043]

【発明の効果】請求項1乃至請求項4の発明によれば、
オペレータの作業負担を増大することなく、より正確な
3次元形状モデルを生成することができる。
According to the first to fourth aspects of the present invention,
It is possible to generate a more accurate three-dimensional shape model without increasing the work load on the operator.

【0044】請求項2及び請求項3の発明によれば、画
像処理の負担を軽減し、モデリングの効率化を図ること
ができる。請求項4の発明によれば、オペレータが3次
元形状モデルを容易に認識することができる。
According to the second and third aspects of the present invention, the burden of image processing can be reduced and the efficiency of modeling can be improved. According to the invention of claim 4, the operator can easily recognize the three-dimensional shape model.

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

【図1】本発明に係るモデリングシステムの構成図であ
る。
FIG. 1 is a configuration diagram of a modeling system according to the present invention.

【図2】CPUの機能ブロック図である。FIG. 2 is a functional block diagram of a CPU.

【図3】モデリングの概略を示すフローチャートであ
る。
FIG. 3 is a flowchart showing an outline of modeling.

【図4】物体と手本画像とを示す図である。FIG. 4 is a diagram showing an object and a model image.

【図5】ディスプレイの表示例を示す図である。FIG. 5 is a diagram showing a display example of a display.

【図6】手動修正におけるモニター画像の変化を示す図
である。
FIG. 6 is a diagram showing changes in a monitor image in manual correction.

【図7】物体モデルと手本画像との位置関係の模式図で
ある。
FIG. 7 is a schematic diagram of a positional relationship between an object model and a model image.

【図8】物体モデルの表現例を示す図である。FIG. 8 is a diagram showing a representation example of an object model.

【図9】自動修正の手順を示す図である。FIG. 9 is a diagram showing a procedure of automatic correction.

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

1 モデリングシステム 131 表示制御部(表示制御手段) 132 手動修正部(手動修正手段) 133 自動修正部(自動修正手段) E26 辺 G1 手本画像(2次元画像) G10 部分画像(一部の領域) GM1,GM2 モニター画像 M1 物体モデル(3次元形状モデル) O 建物(物体) P6,P7 頂点(端点) Q6 交点(修正目標)1 Modeling System 131 Display Control Unit (Display Control Unit) 132 Manual Correction Unit (Manual Correction Unit) 133 Automatic Correction Unit (Automatic Correction Unit) E 26 Side G1 Model Image (2D Image) G10 Partial Image (Partial Area) ) GM1, GM2 monitor image M 1 object model (3D shape model) O building (object) P6, P7 vertex (end point) Q6 intersection (correction target)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】物体の立体構造情報を含む2次元画像に基
づいて前記物体の3次元形状モデルを生成するためのモ
デリングシステムであって、 最新の3次元形状モデルの投影像と前記2次元画像とを
合成したモニター画像を表示する表示制御手段と、 オペレータから与えられる指示に従って前記3次元形状
モデルを修正する手動修正手段と、 前記2次元画像に対する画像解析の結果に基づいて前記
3次元形状モデルを修正する自動修正手段と、 を有したことを特徴とするモデリングシステム。
1. A modeling system for generating a three-dimensional shape model of an object based on a two-dimensional image including three-dimensional structure information of the object, the projection image of the latest three-dimensional shape model and the two-dimensional image. Display control means for displaying a monitor image in which the three-dimensional shape model is combined, manual correction means for correcting the three-dimensional shape model according to an instruction given by an operator, and the three-dimensional shape model based on a result of image analysis on the two-dimensional image. A modeling system characterized by having an automatic correction means for correcting.
【請求項2】前記自動修正手段は、2次元画像の内の前
記モニター画像における前記3次元形状モデルの辺を含
む一部の領域を対象に画像解析を行い、当該辺の端点の
修正目標を設定し、当該辺の端点を前記修正目標に近づ
けるように前記3次元形状モデルを修正する請求項1記
載のモデリングシステム。
2. The automatic correction means performs image analysis on a part of the two-dimensional image including the side of the three-dimensional shape model in the monitor image, and sets a correction target of the end point of the side. The modeling system according to claim 1, wherein the three-dimensional geometric model is set so that the end point of the side is closer to the correction target.
【請求項3】前記自動修正手段は、前記3次元形状モデ
ルの修正量を、3次元形状モデルのパラメータの修正前
の値と前記パラメータの前記修正目標に対応した値との
差に基づいて算出する請求項2記載のモデリングシステ
ム。
3. The automatic correction means calculates a correction amount of the three-dimensional shape model based on a difference between a value of a parameter of the three-dimensional shape model before correction and a value of the parameter corresponding to the correction target. The modeling system according to claim 2.
【請求項4】前記表示制御手段は、前記3次元形状モデ
ルをワイヤフレーム形式で図式化し、且つ前記3次元形
状モデルの内の前記2次元画像と重なる部分の表示色を
画素毎に前記2次元画像と異なる色に設定する請求項1
乃至請求項3のいずれかに記載のモデリングシステム。
4. The display control means visualizes the three-dimensional shape model in a wireframe format, and displays the display color of a portion of the three-dimensional shape model overlapping with the two-dimensional image for each pixel. The color different from that of the image is set.
The modeling system according to claim 3.
JP25305595A 1995-09-29 1995-09-29 Modeling system Expired - Fee Related JP3429400B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25305595A JP3429400B2 (en) 1995-09-29 1995-09-29 Modeling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25305595A JP3429400B2 (en) 1995-09-29 1995-09-29 Modeling system

Publications (2)

Publication Number Publication Date
JPH0997354A true JPH0997354A (en) 1997-04-08
JP3429400B2 JP3429400B2 (en) 2003-07-22

Family

ID=17245863

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25305595A Expired - Fee Related JP3429400B2 (en) 1995-09-29 1995-09-29 Modeling system

Country Status (1)

Country Link
JP (1) JP3429400B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001222726A (en) * 1999-12-22 2001-08-17 Lucent Technol Inc Method and device for image processing
WO2003001460A1 (en) * 2001-06-20 2003-01-03 Zenrin Co., Ltd. Three-dimensional electronic map data creation method
US6559841B2 (en) 1998-02-27 2003-05-06 Fujitsu Limited Three-dimensional shape extracting method, apparatus and computer memory product
US7535469B2 (en) * 2002-05-03 2009-05-19 Samsung Electronics Co., Ltd. Apparatus and method for creating three-dimensional caricature
JP2012104023A (en) * 2010-11-12 2012-05-31 Nintendo Co Ltd Display control program, display control device, display control system and display control method
US8884987B2 (en) 2010-09-22 2014-11-11 Nintendo Co., Ltd. Storage medium having stored thereon display control program, display control apparatus, display control system, and display control method for setting and controlling display of a virtual object using a real world image
JP2016184331A (en) * 2015-03-26 2016-10-20 サイトセンシング株式会社 3d model creation device, 3d model creation method, and 3d model creation program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6559841B2 (en) 1998-02-27 2003-05-06 Fujitsu Limited Three-dimensional shape extracting method, apparatus and computer memory product
JP2001222726A (en) * 1999-12-22 2001-08-17 Lucent Technol Inc Method and device for image processing
WO2003001460A1 (en) * 2001-06-20 2003-01-03 Zenrin Co., Ltd. Three-dimensional electronic map data creation method
US7343268B2 (en) 2001-06-20 2008-03-11 Zenrin Co., Ltd. Three-dimensional electronic map data creation method
US7535469B2 (en) * 2002-05-03 2009-05-19 Samsung Electronics Co., Ltd. Apparatus and method for creating three-dimensional caricature
US8884987B2 (en) 2010-09-22 2014-11-11 Nintendo Co., Ltd. Storage medium having stored thereon display control program, display control apparatus, display control system, and display control method for setting and controlling display of a virtual object using a real world image
JP2012104023A (en) * 2010-11-12 2012-05-31 Nintendo Co Ltd Display control program, display control device, display control system and display control method
JP2016184331A (en) * 2015-03-26 2016-10-20 サイトセンシング株式会社 3d model creation device, 3d model creation method, and 3d model creation program

Also Published As

Publication number Publication date
JP3429400B2 (en) 2003-07-22

Similar Documents

Publication Publication Date Title
JP3634677B2 (en) Image interpolation method, image processing method, image display method, image processing apparatus, image display apparatus, and computer program storage medium
US5990900A (en) Two-dimensional to three-dimensional image converting system
JP3148045B2 (en) 3D object CG creation device
JP3619063B2 (en) Stereoscopic image processing apparatus, method thereof, stereoscopic parameter setting apparatus, method thereof and computer program storage medium
US6081273A (en) Method and system for building three-dimensional object models
US7746377B2 (en) Three-dimensional image display apparatus and method
EP2546806B1 (en) Image based rendering for ar - enabling user generation of 3d content
JPH05210745A (en) Method and device for processing three-dimensional graphics
JP3744039B2 (en) Perspective drawing creation support method
JP3104638B2 (en) 3D image creation device
JP2007233971A (en) Image compositing method and device
JP3245336B2 (en) Modeling method and modeling system
JP4456029B2 (en) 3D information restoration device for rotating body
JP3855053B2 (en) Image processing apparatus, image processing method, and image processing program
JP3429400B2 (en) Modeling system
JPH0997344A (en) Method and system for texture generation
JP3459401B2 (en) Stereoscopic image generation method using Z buffer
JPH06348815A (en) Method for setting three-dimensional model of building aspect in cg system
JP2832463B2 (en) 3D model reconstruction method and display method
JP3577202B2 (en) Video production equipment
JP3309841B2 (en) Synthetic moving image generating apparatus and synthetic moving image generating method
JP4269951B2 (en) 3D computer graphics modeling system
JP2002015338A (en) Model deforming method and modeling device
JP4017351B2 (en) 3D model generation apparatus and 3D model generation program
JP2005322097A (en) Device, method and program for displaying animation of object image model

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20021022

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030430

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

Free format text: PAYMENT UNTIL: 20080516

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090516

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090516

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100516

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100516

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110516

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120516

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees