JP2011258153A - Stereoscopic vision image formation device, stereoscopic vision image formation method, control program, and readable storage medium - Google Patents
Stereoscopic vision image formation device, stereoscopic vision image formation method, control program, and readable storage medium Download PDFInfo
- Publication number
- JP2011258153A JP2011258153A JP2010134542A JP2010134542A JP2011258153A JP 2011258153 A JP2011258153 A JP 2011258153A JP 2010134542 A JP2010134542 A JP 2010134542A JP 2010134542 A JP2010134542 A JP 2010134542A JP 2011258153 A JP2011258153 A JP 2011258153A
- Authority
- JP
- Japan
- Prior art keywords
- depth value
- data
- stereoscopic image
- unit
- computer graphic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
【課題】三次元グラフィック処理機構に高い能力を要求せず、同時に正確な立体感を得る。
【解決手段】一枚の画像から、立体視用の複数の画像データ(右目用画像データと左目用画像データ)を生成する視差画像生成機能としての立体視画像生成回路11と、GPUからなるコンピュータグラフィック生成部としてのCG生成回路7に対し、GPUが生成した一つの視点からの画像および、GPUの三次元CG生成処理の過程で計算された各画素に対する奥行き情報(Zバッファ値)を、視差画像生成機能としての立体視画像生成回路11に渡して、立体視画像生成回路11が立体視用の複数の画像を生成する制御を行っている。
【選択図】図1An object of the present invention is to obtain an accurate stereoscopic effect at the same time without requiring a high capability for a three-dimensional graphic processing mechanism.
A stereoscopic image generation circuit as a parallax image generation function for generating a plurality of stereoscopic image data (right-eye image data and left-eye image data) from a single image, and a computer comprising a GPU For the CG generation circuit 7 as a graphic generation unit, the image from one viewpoint generated by the GPU and the depth information (Z buffer value) for each pixel calculated in the process of the 3D CG generation process of the GPU The stereoscopic image generation circuit 11 performs control to generate a plurality of images for stereoscopic viewing, passing to the stereoscopic image generation circuit 11 as an image generation function.
[Selection] Figure 1
Description
本発明は、立体視向けの三次元コンピュータグラフィックを生成する立体視用画像生成装置およびこれを用いた立体視用画像生成方法、この立体視用画像生成方法の各ステップをコンピュータに実行させるための制御プログラム、この制御プログラムが格納されたコンピュータ読み取り可能な可読記憶媒体に関する。 The present invention relates to a stereoscopic image generating apparatus that generates a three-dimensional computer graphic for stereoscopic vision, a stereoscopic image generating method using the same, and a computer for executing the steps of the stereoscopic image generating method. The present invention relates to a control program and a computer-readable readable storage medium storing the control program.
この種の従来の立体視用画像生成システムにおいて、立体視は、右目視点での映像と、左目視点での映像それぞれを、右目と左目とに個別に提示することにより、人間にその映像を現実的な立体として感じさせる仕組みである。これらの右目視点および左目視点の映像は、実写の場合、例えば右目と左目の間隔に相当する一定の距離を置いた二つの視点から、同時に被写体対象を撮影することにより作成することができる。
コンピュータを用いて右目視点および左目視点の映像を作成する場合、コンピュータ内に構成した三次元空間を、右目視点および左目視点を模した二つの視点から見て、それぞれの結果をコンピュータグラフィック化(レンダリング)することにより作成することができる。
In this type of conventional stereoscopic image generation system, stereoscopic vision is realized by presenting the video for the right eye and the left eye separately to the right eye and the left eye, respectively. It is a mechanism that makes you feel like a three-dimensional. In the case of actual shooting, these right-eye viewpoint and left-eye viewpoint videos can be created, for example, by photographing a subject object at the same time from two viewpoints at a certain distance corresponding to the interval between the right eye and the left eye.
When creating images for the right-eye and left-eye viewpoints using a computer, the three-dimensional space configured in the computer is viewed from two viewpoints simulating the right-eye and left-eye viewpoints, and the results are converted into computer graphics (rendering). ).
一方で、映像を構成する画素の特徴に着目して、一枚の映像から立体視に適した右目用と左目用の映像を生成する機構が発明されている。例えば、特許文献1には、原画像の各画素の色成分から奥行き値を計算し、その奥行き値から、右目用の映像および左目用の映像をそれぞれ生成する立体視画像作成方法が開示されている。これを図4に示している。 On the other hand, a mechanism for generating right-eye and left-eye images suitable for stereoscopic viewing from a single image has been invented by paying attention to the characteristics of pixels constituting the image. For example, Patent Document 1 discloses a stereoscopic image creation method that calculates a depth value from color components of each pixel of an original image and generates a right-eye video and a left-eye video from the depth value, respectively. Yes. This is shown in FIG.
図4は、特許文献1に開示されている従来の立体視画像形成装置のハード構成例を示すブロック図である。 FIG. 4 is a block diagram illustrating a hardware configuration example of a conventional stereoscopic image forming apparatus disclosed in Patent Document 1.
図4に示すように、制御部としてのCPU(中央処理装置)101は、従来の立体視画像形成装置100の各部の動作を制御し、立体視用画像データ作成処理などの各種処理を実行する。ROM(リード・オンリ・メモリ)102は、起動時などに実行されるプログラムや参照データなどを格納する。RAM(ランダム・アクセス・メモリ)103は、CPU101のワークエリアなどを実現するためのものである。
As shown in FIG. 4, a CPU (central processing unit) 101 as a control unit controls the operation of each unit of a conventional stereoscopic
キャラクタジェネレータ104は、図形文字の表示データ(フォントデータ)を発生する。時計回路105は現在時刻を出力する。インタフェース106は、立体視画像形成装置100をインターネットINETに接続するためのものである。伝送制御部107は、インタフェース106を介してインターネットINETに接続された端末装置との間でデータの授受を行う。
The
磁気ディスク装置108は、立体視画像形成装置100で実行される各種処理やオペレーティングシステムなどのプログラムデータを記憶すると共に、各種処理により作成される各種データなどを記憶する記憶装置である。CD−ROMドライブ109は、CD−ROM110に記憶されている画像データを読み出すためのものである。表示部111は、例えばCRTやLCDなどであり、表示制御部112の制御の下、その表示画面上に画像を表示する。
The
キーボード113はフルキー配列のキーボードであり、ユーザはキーボード113を用いて指示内容を入力する。画面指示装置114は、タッチパネルなどの入力デバイスであり、ユーザはタッチパネルを押圧することにより各種指示内容を入力することができる。入力制御部115は、キーボード113および画面指示装置114から入力された各指示内容を取り込み。CPU101に出力する。
The
これらのCPU101、ROM102、RAM103、キャラクタジェネレータ104、時計回路105、伝送制御部107、磁気ディスク装置108、CD−ROMドライブ109、表示制御部112および入力制御部115は、内部バス116に接続されている。これらの各種要素間のデータのやりとりは、この内部バス116を介して行われる。
The
立体視用画像データを作成するに当たり、CPU101によって、例えばROM102内の立体視画像表示用のアプリケーションが実行される。
In creating the stereoscopic image data, the
これによって、立体視画像形成装置100では、図5に示すように、まず、三次元グラフィック処理機構であるグラフィック・プロセッシング・ユニットGPUが、一枚の三次元CG(コンピュータグラフィック)データから三次元CG画像を生成する。次に、視差画像生成機能が、グラフィック・プロセッシング・ユニットGPUが生成した三次元CG画像のグレースケール値に基づいて奥行き値(Z値)を算出する。このZ値に対して、逆転判定処理、平滑化処理、分布補正処理および局所補正処理などを施す。この求めたZ値に基づいて視差を決定し、この決定した視差に応じた分だけ、各画素を移動させる処理を行うことにより、左目画像と右目画像の視差画像の立体視画像データを生成する。
Thereby, in the stereoscopic
しかしながら、上記特許文献1に開示されている従来の立体視画像形成装置100では、一枚の三次元CGデータから立体視に適した三次元画像データを生成する際に、視差画像生成機能は、グラフィック・プロセッシング・ユニットGPUが生成し三次元画像のグレースケール値に基づいて奥行き値(Z値)を計算するため、その視差画像生成機能が生成する奥行き値(Z値)が、三次元CGデータの期待する奥行き値と一致しないことがあった。この結果として、立体映像として人間の両眼に提示されたとき、正確な立体感を得ることができなかった。また、一枚の映像の中で、コンピュータグラフィックの領域(例えばキャラクタ領域)と、そうでない領域(例えば背景領域)での奥行き値を個別に扱うことができなかった。
However, in the conventional stereoscopic
この他、図6に示すように、グラフィック・プロセッシング・ユニットGPUが、三次元CGデータから、立体視用の右目用二次元CG画像と左目用二次元CG画像とを生成する場合に、右目と左目それぞれの視点から見たグラフィックを生成する必要がある。一組の立体視用の画像(右目画像と左目画像)を作成するためには、グラフィック・プロセッシング・ユニットGPUが、三次元グラフィック処理を二回実施する必要がある。これは、リアルタイム表示のために、複雑な三次元グラフィックから二次元グラフィックにリアルタイムに生成する必要がある場合には、グラフィック・プロセッシング・ユニットGPUに高い処理能力を要求しなければならなかった。 In addition, as shown in FIG. 6, when the graphics processing unit GPU generates a right-eye two-dimensional CG image and a left-eye two-dimensional CG image for stereoscopic viewing from three-dimensional CG data, It is necessary to generate graphics from the viewpoint of each left eye. In order to create a set of stereoscopic images (right-eye image and left-eye image), the graphics processing unit GPU needs to perform three-dimensional graphics processing twice. For real-time display, when it is necessary to generate a complex three-dimensional graphic into a two-dimensional graphic in real time, the graphic processing unit GPU has to require high processing power.
本発明は、上記従来の問題を解決するもので、三次元グラフィック処理機構に高い能力を要求せず、同時に正確な立体感を得ることができる立体視用画像生成装置およびこれを用いた立体視用画像生成方法、この立体視用画像生成方法の各ステップをコンピュータに実行させるための制御プログラム、この制御プログラムが格納されたコンピュータ読み取り可能な可読記憶媒体を提供することを目的とする。 The present invention solves the above-described conventional problems, and does not require a high capability for a three-dimensional graphic processing mechanism, and at the same time, a stereoscopic image generation apparatus capable of obtaining an accurate stereoscopic effect and a stereoscopic vision using the same An object of the present invention is to provide an image generation method, a control program for causing a computer to execute each step of the stereoscopic image generation method, and a computer-readable readable storage medium storing the control program.
本発明の立体視用画像生成装置は、データ記憶部内のコンピュータグラフィック生成データから、一つの視点でのコンピュータグラフィック画像の各画素データを生成すると共に、該コンピュータグラフィック画像の各画素に対応付けられる奥行き値を求めるコンピュータグラフィック生成部と、該各画素データおよび該奥行き値を用いて立体視用の複数の画像データを生成する立体視画像生成部とを有する立体視用画像生成装置であって、該コンピュータグラフィック生成部で生成した該各画素データおよび該奥行き値を該データ記憶部に一旦記憶させた後に、立体視画像生成時に、該立体視画像生成部に該各画素データおよび該奥行き値を転送するように制御する制御部を有したものであり、そのことにより上記目的が達成される。 The stereoscopic image generation apparatus of the present invention generates each pixel data of a computer graphic image from one viewpoint from computer graphic generation data in a data storage unit, and the depth associated with each pixel of the computer graphic image A stereoscopic image generation apparatus comprising a computer graphic generation unit for obtaining a value, and a stereoscopic image generation unit that generates a plurality of stereoscopic image data using the pixel data and the depth value, The pixel data and the depth value generated by the computer graphic generation unit are temporarily stored in the data storage unit, and then the pixel data and the depth value are transferred to the stereoscopic image generation unit when generating a stereoscopic image. Thus, the above-described object is achieved.
また、好ましくは、本発明の立体視用画像生成装置において、前記コンピュータグラフィック生成データの奥行き値と、前記立体視画像生成部が生成する立体視用の複数の画像データにおける奥行き値とが一致している。 Preferably, in the stereoscopic image generating apparatus of the present invention, the depth value of the computer graphic generation data matches the depth value of the plurality of stereoscopic image data generated by the stereoscopic image generation unit. ing.
さらに、好ましくは、本発明の立体視用画像生成装置における制御部は、該データ記憶部内のコンピュータグラフィック生成データを前記コンピュータグラフィック生成部に転送するグラフィックデータ転送手段と、該コンピュータグラフィック生成部により生成したコンピュータグラフィック画像の各画素データおよび、該コンピュータグラフィック画像の各画素に対応付けられる奥行き値を該データ記憶部にそれぞれ書き込む画素データ・奥行き値転送手段と、立体視画像生成開始時に、該データ記憶部内の該画素データおよび該奥行き値を前記立体視画像生成部に転送する立体視画像生成制御手段とを有する。 Still preferably, in a stereoscopic image generating apparatus according to the present invention, the control unit generates graphic data transfer means for transferring computer graphic generation data in the data storage unit to the computer graphic generation unit, and the computer graphic generation unit generates the control unit. Pixel data / depth value transfer means for writing each pixel data of the computer graphic image and a depth value associated with each pixel of the computer graphic image to the data storage unit, and storing the data at the start of stereoscopic image generation Stereoscopic image generation control means for transferring the pixel data and the depth value in the unit to the stereoscopic image generation unit.
さらに、好ましくは、本発明の立体視用画像生成装置におけるデータ記憶部は、一つの視点データおよび複数の三次元座標データを含むコンピュータグラフィック生成データを記憶する第1データ記憶部と、該コンピュータグラフィック画像の各画素データおよび該各画素に対応付けられる奥行き値を記憶可能とする第2データ記憶部とを有する。 Further preferably, the data storage unit in the stereoscopic image generation apparatus of the present invention includes a first data storage unit that stores computer graphic generation data including one viewpoint data and a plurality of three-dimensional coordinate data, and the computer graphic. A second data storage unit capable of storing each pixel data of the image and a depth value associated with each pixel;
さらに、好ましくは、本発明の立体視用画像生成装置におけるコンピュータグラフィック生成部は、前記データ記憶部に記憶されたコンピュータグラフィック生成データからコンピュータグラフィック画像の各画素データに変換する画素データ変換部と、該コンピュータグラフィック生成データから、コンピュータグラフィック画像の各画素に対する奥行き値を計算する奥行き値計算部とを有する。 Further preferably, the computer graphic generation unit in the stereoscopic image generation apparatus of the present invention includes a pixel data conversion unit that converts computer graphic generation data stored in the data storage unit into pixel data of a computer graphic image; A depth value calculation unit for calculating a depth value for each pixel of the computer graphic image from the computer graphic generation data.
さらに、好ましくは、本発明の立体視用画像生成装置における複数の画像データは右目用画像データと左目用画像データからなる視差画像データである。 Further preferably, the plurality of image data in the stereoscopic image generating apparatus of the present invention is parallax image data including right-eye image data and left-eye image data.
さらに、好ましくは、本発明の立体視用画像生成装置における第2データ記憶部は、前記奥行き値の有無を示す奥行き値存在可否フラグを記憶しており、前記立体視画像生成部は、処理する各画素に対して、該奥行き値存在可否フラグの情報に基づいて、該奥行き値があると判定された場合、当該奥行き値を用い、該奥行き値がないと判定された場合、該画素を含む一つ以上の画素から得られる情報を元に計算した奥行き値を用いる。 Still preferably, in a stereoscopic image generation apparatus according to the present invention, the second data storage unit stores a depth value presence / absence flag indicating the presence / absence of the depth value, and the stereoscopic image generation unit performs processing. For each pixel, if it is determined that there is the depth value based on the information on the presence / absence flag of the depth value, use the depth value, and if it is determined that there is no depth value, include the pixel A depth value calculated based on information obtained from one or more pixels is used.
さらに、好ましくは、本発明の立体視用画像生成装置における立体視画像生成部は、前記画素データから一つ以上の画素を読み出して新たな奥行き値を生成する奥行き値生成回部と、前記奥行き値の存在可否フラグが「有」のときに当該奥行き値を出力し、該奥行き値の存在可否フラグが「無」のときに該新たな奥行き値を出力する奥行き値存在可否検出部と、該奥行き値存在可否検出部からの奥行き値に基づいて立体視用の左目および右目画像を生成する左目および右目画像生成部とを有する。 Further preferably, the stereoscopic image generation unit in the stereoscopic image generation apparatus of the present invention reads out one or more pixels from the pixel data and generates a new depth value, and the depth A depth value presence / absence detecting unit that outputs the depth value when the value presence / absence flag is “present” and outputs the new depth value when the depth value presence / absence flag is “none”; A left-eye and right-eye image generation unit configured to generate a left-eye image and a right-eye image for stereoscopic viewing based on a depth value from the depth value presence / absence detection unit;
さらに、好ましくは、本発明の立体視用画像生成装置における画素データ変換部と前記奥行き値計算部は、グラフィック・プロセッシング・ユニットにより構成されている。 Further preferably, the pixel data conversion unit and the depth value calculation unit in the stereoscopic image generation apparatus of the present invention are configured by a graphic processing unit.
さらに、好ましくは、本発明の立体視用画像生成装置における第2データ記憶部は、一つのデータ保持機構内の保持領域を分割して利用することにより実現されている。 Further, preferably, the second data storage unit in the stereoscopic image generation apparatus of the present invention is realized by dividing and using a holding area in one data holding mechanism.
本発明の立体視用画像生成方法は、制御部が、コンピュータグラフィック生成部に対して画像の描画開始を指示するステップと、該制御部が、データ記憶部内のコンピュータグラフィック生成データを該コンピュータグラフィック生成部に転送するステップと、該コンピュータグラフィック生成部が、該コンピュータグラフィック生成データから、一つの視点でのコンピュータグラフィック画像の各画素データを生成すると共に、該コンピュータグラフィック画像の各画素に対応付けられる奥行き値を求めるコンピュータグラフィック生成ステップと、該制御部が該各画素データおよび該奥行き値を該データ記憶部の所定領域にそれぞれ書き込むように制御するステップと、該制御部が、立体視画像生成時に、データ記憶部に記憶された各画素データおよび奥行き値を立体視画像生成部に転送するステップと、該立体視画像生成部が当該各画素データおよび当該奥行き値を用いて立体視用の複数の画像データを生成する立体視画像生成ステップとを有するものであり、そのことにより上記目的が達成される。 In the stereoscopic image generation method of the present invention, the control unit instructs the computer graphic generation unit to start drawing an image, and the control unit generates the computer graphic generation data in the data storage unit. And the computer graphic generation unit generates each pixel data of the computer graphic image from one viewpoint from the computer graphic generation data, and the depth associated with each pixel of the computer graphic image A computer graphic generation step for obtaining a value, a step for controlling the control unit to write the pixel data and the depth value in a predetermined area of the data storage unit, and the control unit at the time of generating a stereoscopic image, Each image stored in the data storage Transferring the data and the depth value to a stereoscopic image generating unit; and a stereoscopic image generating step in which the stereoscopic image generating unit generates a plurality of image data for stereoscopic viewing using the pixel data and the depth value. With this, the above-mentioned object is achieved.
また、好ましくは、本発明の立体視用画像生成方法において、前記コンピュータグラフィック生成データの奥行き値と、前記立体視画像生成部が生成する立体視用の複数の画像データにおける奥行き値とが一致している。 Preferably, in the stereoscopic image generation method of the present invention, the depth value of the computer graphic generation data matches the depth value of the plurality of stereoscopic image data generated by the stereoscopic image generation unit. ing.
さらに、好ましくは、本発明の立体視用画像生成方法におけるコンピュータグラフィック生成ステップは、画素データ変換部が、前記データ記憶部に記憶されたコンピュータグラフィック生成データからコンピュータグラフィック画像の各画素データに変換する画素データ変換ステップと、奥行き値計算部が、該コンピュータグラフィック生成データから、コンピュータグラフィック画像の各画素に対する奥行き値を計算する奥行き値計算ステップとを有する。 Further preferably, in the computer graphic generation step in the stereoscopic image generation method of the present invention, the pixel data conversion unit converts the computer graphic generation data stored in the data storage unit into each pixel data of the computer graphic image. The pixel data conversion step, and the depth value calculation unit includes a depth value calculation step of calculating a depth value for each pixel of the computer graphic image from the computer graphic generation data.
さらに、好ましくは、本発明の立体視用画像生成方法における立体視画像生成ステップにおいて、処理する各画素に対して、前記奥行き値の有無を示す奥行き値存在可否フラグの情報に基づいて、該奥行き値があると判定された場合、当該奥行き値を用い、該奥行き値がないと判定された場合、該画素を含む一つ以上の画素から得られる情報を元に計算した奥行き値を用いる。 Further preferably, in the stereoscopic image generation step of the stereoscopic image generation method of the present invention, for each pixel to be processed, based on information on a depth value presence / absence flag indicating the presence / absence of the depth value, the depth When it is determined that there is a value, the depth value is used. When it is determined that there is no depth value, a depth value calculated based on information obtained from one or more pixels including the pixel is used.
さらに、好ましくは、本発明の立体視用画像生成方法における立体視画像生成ステップは、奥行き値生成部が、前記画素データから一つ以上の画素を読み出して新たな奥行き値を生成する奥行き値生成ステップと、奥行き値存在可否検出部が、前記奥行き値の存在可否フラグが「有」のときに当該奥行き値を出力し、該奥行き値の存在可否フラグが「無」のときに該新たな奥行き値を出力する奥行き値存在可否検出ステップと、左目および右目画像生成部が、該奥行き値存在可否検出部からの奥行き値に基づいて立体視用の左目および右目画像を生成する左目および右目画像生成ステップとを有する。 Further preferably, the stereoscopic image generation step in the stereoscopic image generation method of the present invention is such that the depth value generation unit reads out one or more pixels from the pixel data and generates a new depth value. And the depth value presence / absence detection unit outputs the depth value when the presence / absence flag of the depth value is “present”, and the new depth when the presence / absence flag of the depth value is “none”. A depth value presence / absence detection step for outputting a value, and a left eye and right eye image generation unit that generates a left eye and a right eye image for stereoscopic viewing based on a depth value from the depth value presence / absence detection unit Steps.
本発明の制御プログラムは、本発明の上記立体視用画像生成方法の各ステップをコンピュータに実行させるための処理手順が記述されたものであり、そのことにより上記目的が達成される。 The control program according to the present invention describes a processing procedure for causing a computer to execute each step of the stereoscopic image generation method according to the present invention, thereby achieving the above object.
本発明の可読記憶媒体は、本発明の上記制御プログラムが格納されたコンピュータ読み取り可能なものであり、そのことにより上記目的が達成される。 The readable storage medium of the present invention is a computer-readable storage medium storing the control program of the present invention, thereby achieving the above object.
上記構成により、以下、本発明の作用を説明する。 With the above configuration, the operation of the present invention will be described below.
本発明においては、コンピュータグラフィック生成部で生成した各画素データおよび奥行き値をデータ記憶部に一旦記憶させた後に、立体視画像生成時に、立体視画像生成部に各画素データおよびその奥行き値を転送するように制御する制御部と、これらの各画素データおよび奥行き値を用いて立体視用の複数の画像データを生成する立体視画像生成部とを有している。この場合、コンピュータグラフィック生成データの奥行き値と、立体視画像生成部が生成する立体視用の複数の画像データにおける奥行き値とが一致している。 In the present invention, after each pixel data and depth value generated by the computer graphic generation unit is temporarily stored in the data storage unit, each pixel data and its depth value are transferred to the stereoscopic image generation unit when generating a stereoscopic image. And a stereoscopic image generation unit that generates a plurality of image data for stereoscopic viewing using each of the pixel data and the depth value. In this case, the depth value of the computer graphic generation data matches the depth value in the plurality of stereoscopic image data generated by the stereoscopic image generation unit.
これによって、コンピュータグラフィック生成部において三次元グラフィックデータ(コンピュータグラフィック生成データ)から生成した各画素データおよび奥行き値を用いて、立体視画像生成部が立体視用の複数(右目用と左目用)の画像データを生成するため、三次元グラフィック処理機構としての立体視画像生成部に高い能力を要求せず、同時に正確な立体感を得ることができる。 Accordingly, the stereoscopic image generation unit uses a plurality of stereoscopic image generation units (for the right eye and the left eye) using each pixel data and depth value generated from the three-dimensional graphic data (computer graphic generation data) in the computer graphic generation unit. Since image data is generated, a stereoscopic image generation unit as a three-dimensional graphic processing mechanism does not require high ability, and an accurate stereoscopic effect can be obtained at the same time.
また、画像内の三次元コンピュータグラフィックとそれ以外の画像が混在する場合に対しても、より正確な立体感の立体視用の映像を生成することが可能となる。 In addition, even when a three-dimensional computer graphic in an image and other images are mixed, it is possible to generate a stereoscopic video with a more accurate stereoscopic effect.
以上により、本発明によれば、コンピュータグラフィック生成部において三次元グラフィックデータ(コンピュータグラフィック生成データ)から生成した各画素データおよび奥行き値を用いて、立体視画像生成部が立体視用の複数(右目用と左目用)の画像データを生成するため、三次元グラフィック処理機構としての立体視画像生成部に高い能力を要求せず、同時に正確な立体感を得ることができる。 As described above, according to the present invention, the stereoscopic image generation unit uses the pixel data and the depth value generated from the three-dimensional graphic data (computer graphic generation data) in the computer graphic generation unit. Therefore, it is possible to obtain an accurate stereoscopic effect at the same time without requiring a high capability for the stereoscopic image generation unit as a three-dimensional graphic processing mechanism.
また、画像内の三次元コンピュータグラフィックとそれ以外の画像が混在する場合に対しても、より正確な立体感の立体視用の映像を生成することができる。 In addition, even when a three-dimensional computer graphic in an image and other images are mixed, it is possible to generate a stereoscopic video with a more accurate stereoscopic effect.
以下に、本発明の立体視画像形成システムの実施形態1、2について図面を参照しながら詳細に説明する。 Embodiments 1 and 2 of the stereoscopic image forming system of the present invention will be described below in detail with reference to the drawings.
(実施形態1)
図1は、本発明に係る立体視用画像生成システムの実施形態1における要部ハード構成例を示すブロック図である。
(Embodiment 1)
FIG. 1 is a block diagram illustrating an exemplary hardware configuration of a main part in the first embodiment of the stereoscopic image generation system according to the present invention.
図1において、本実施形態1の立体視用画像生成システム20は、本実施形態の立体視用画像生成装置1と、立体視用画像生成装置1で生成した立体視用画像データを表示画面上に表示する表示部21とを有している。
In FIG. 1, the stereoscopic image generation system 20 of the first embodiment displays the stereoscopic image generation device 1 of the present embodiment and the stereoscopic image data generated by the stereoscopic image generation device 1 on a display screen. And a
本実施形態の立体視用画像生成装置1は、データおよびワークメモリが記憶されるメモリ2と、CG生成回路7と、全体の制御を行う制御部としてのCPU10(中央演算処理装置)と、立体視画像生成回路11と、画像出力部12と、操作部13とを有しており、これらのメモリ2、CG生成回路7、CPU10、立体視画像生成回路11および操作部13がバス14に接続されている。
The stereoscopic image generation apparatus 1 of the present embodiment includes a
メモリ2は、起動時にROM(図示せず)から制御プログラムおよびそのデータなどが読み出されて、CPU10による制御毎にデータを記憶するワークメモリとして働く記憶部(RAM)である。メモリ2の第1データ記憶部としての記憶領域に、一つの視点データおよび複数の三次元座標データを含むコンピュータグラフィック生成データ(三次元グラフィックデータ3)を記憶すると共に、プログラムコード6の制御プログラムおよびそのデータを記憶する。また、メモリ2の第2データ記憶部としての記憶領域に、CG生成回路7で生成されたコンピュータグラフィック画像データの各画素データ4(RGBデータ)および各画素に対応付けられる奥行き値5を記憶する。
The
CG生成回路7は、メモリ2内のコンピュータグラフィック生成データ(三次元グラフィックデータ3)からコンピュータグラフィック画像の各画素データに変換するデータ変換部としての画素計算回路8と、メモリ2内のコンピュータグラフィック生成データ(三次元グラフィックデータ3)から、コンピュータグラフィック画像の各画素に対する奥行き値を計算する奥行き値計算部としての奥行き計算回路9とを有している。
The CG generation circuit 7 includes a
即ち、CG生成回路7は、CPU10からのグラフィックデータ転送指令に基づいて、メモリ2の三次元グラフィックデータ3(コンピュータグラフィック生成データ)を読み出して、画素計算回路8を用いて一つの視点でのコンピュータグラフィック画像(視覚化された二次元画像)の各画素データ4を生成し、この各画素データ4をメモリ2の第2データ記憶部に書き込む。また、CG生成回路7は、奥行き計算回路9を用いてコンピュータグラフィック画像の各画素に対応付けられる奥行き値を生成し、この各画素に対応付けられる奥行き値5(奥行き値生成結果)をメモリ2の第2データ記憶部に書き込む。さらに、CG生成回路7からCPU10に、描画の完了を通知する。この描画完了通知の結果、画素データ4の記憶領域(メモリ2)には、一つの視点から見た三次元グラフィック画像の各画素データが格納される。また、奥行き値5の記憶領域(メモリ2)には、画素データ4に格納された各画素に対応する奥行き値が格納される。
That is, the CG generation circuit 7 reads out the three-dimensional graphic data 3 (computer graphic generation data) in the
CPU10は、メモリ2に格納されたプログラムコードを読み出して、プログラムコードの制御プログラムに基づいて、メモリ2のデータ読み出しおよびデータ書き込みを制御すると共に、CG生成回路7および立体視画像生成回路11を制御する。
The
即ち、CPU10は、メモリ2の第1データ記憶部に記憶されたプログラムコードの制御プログラムに基づいて、CG生成回路7に画像の描画開始を指示し、メモリ2に格納された三次元グラフィックデータ3(コンピュータグラフィック生成データ)をCG生成回路7に転送するグラフィックデータ転送手段10Aと、読み出された三次元グラフィックデータ3(コンピュータグラフィック生成データ)に基づいてCG生成回路7で一つの視点位置を計算したコンピュータグラフィック画像の各画素データおよび、コンピュータグラフィック画像の各画素に対応付けられる奥行き値をメモリ2の各所定格納領域にそれぞれ書き込む画素データ・奥行き値転送手段10Bと、CG生成回路7からの描画完了の通知をCPU10が受けた後に、メモリ2に格納された画素データ4および奥行き値5を立体視画像生成回路11に転送し、立体視画像生成回路11に立体視画像生成開始を指示して、画素データ4および奥行き値5を用いて立体視画像(視差画像)を生成する立体視画像生成制御手段10Cとの各機能を実行する。
That is, the
立体視画像生成回路11は、各画素データ4および奥行き値5をメモリ2から読み出し、奥行き値5に従って各画素データから立体視用の右目用画像および左目用画像(視差画像)を生成し、生成された各視差画像を画像出力回路12に出力する。
The stereoscopic image generation circuit 11 reads out each
画像出力回路12は、右目用画像および左目用画像を電気信号に変換し、二つの画像を表示装置に適する形式の信号として表示部21に出力する。
The
操作部13は、CPU10に対して入力指令を行うためのキーボード、マウス、タッチパネルおよびペン入力装置、さらには通信ネットワーク(例えばインターネットやイントラネット)を介して受信入力する入力装置などである。
The operation unit 13 is a keyboard, a mouse, a touch panel, and a pen input device for issuing an input command to the
ROMは、ここでは図示していないが、制御プログラムおよびそのデータなどが記憶されたコンピュータ読み出し可能な可読記録媒体であって、具体的には、ハードディスクの他、形態自在な光ディスク、光磁気ディスク、磁気ディスクおよびICメモリなどで構成されていてもよい。この制御プログラムおよびそのデータなどがROMに記憶されるが、この制御プログラムおよびそのデータは、他の可読記録媒体から、または、無線、有線またはインターネットなどを介してROM4にダウンロードされてもよい。
The ROM is a computer-readable readable recording medium in which a control program and its data are stored, although not shown here. Specifically, in addition to a hard disk, a ROM is a formable optical disk, a magneto-optical disk, It may be composed of a magnetic disk and an IC memory. This control program and its data are stored in the ROM, but this control program and its data may be downloaded to the
上記構成の立体視用画像生成装置1の動作について説明する。 The operation of the stereoscopic image generating apparatus 1 having the above configuration will be described.
まず、操作部13からの立体視用画像生成指令がCPU10に入力され、CPU10は、メモリ2に格納されたプログラムコードを読み出して、プログラムコードの制御プログラムおよびそのデータに基づいて、CG生成回路7に画像の描画開始を指示する。
First, a stereoscopic image generation command from the operation unit 13 is input to the
次に、CPU10は、プログラムコードの制御プログラムに基づいて、グラフィックデータ転送手段10Aによりメモリ2に格納された三次元グラフィックデータ3(コンピュータグラフィック生成データ)をCG生成回路7に転送する。
Next, the
続いて、CPU10は、プログラムコードの制御プログラムに基づいて、画素データ・奥行き値転送手段10Bにより、読み出された三次元グラフィックデータ3(コンピュータグラフィック生成データ)からCG生成回路7で一つの視点位置を計算した各画素データおよび奥行き値をメモリ2の各所定格納領域にそれぞれ書き込むように制御する。
Subsequently, the
さらに、CPU10は、CG生成回路7からの描画完了の通知をCPU10が受けた後に、プログラムコードの制御プログラムに基づいて、立体視画像生成制御手段10Cにより、メモリ2に格納された各画素データ4および奥行き値5を立体視画像生成回路11に転送すると共に立体視画像生成回路11に立体視画像生成開始を指示して、画素データ4および奥行き値5を用いて立体視画像を生成する。
Further, after the
このように、本実施形態1の立体視用画像生成方法は、CPU10が、コンピュータグラフィック生成部としてのCG生成回路7に対して画像の描画開始を指示するステップと、CPU10が、データ記憶部としてのメモリ2内の三次元グラフィックデータ3(コンピュータグラフィック生成データ)をCG生成回路7に転送するステップと、CG生成回路7が、三次元グラフィックデータ3(コンピュータグラフィック生成データ)から、一つの視点でのコンピュータグラフィック画像の各画素データを生成すると共に、コンピュータグラフィック画像の各画素に対応付けられる奥行き値を求めるコンピュータグラフィック生成ステップと、CPU10が、該CG生成回路7で生成した各画素データおよび奥行き値をメモリ2の所定領域にそれぞれ書き込むように制御するステップと、CPU10が、立体視画像生成時に、メモリ2に記憶された各画素データおよび奥行き値を立体視画像生成回路11に転送するステップと、立体視画像生成回路11が各画素データおよび奥行き値を用いて立体視用の複数の画像データ(右目用画像データと左目用画像データ)を生成する立体視画像生成ステップとを有している。これを1フレーム毎に繰り返して動画像を生成して表示部21の表示画面上に表示する。
As described above, in the stereoscopic image generation method according to the first embodiment, the
以上により、本実施形態1において、図3に示すように、一枚の画像から、立体視用の複数の画像データ(右目用画像データと左目用画像データ)を生成する視差画像生成機能としての立体視画像生成回路11と、GPUからなるコンピュータグラフィック生成部としてのCG生成回路7に対し、GPUが生成した一つの視点からの画像および、GPUの三次元CG生成処理の過程で計算された各画素に対する奥行き情報(Zバッファ値)を、視差画像生成機能としての立体視画像生成回路11に渡して、立体視画像生成回路11が立体視用の複数の画像を生成する制御を行っている。このとき、従来において、視差画像生成機能は、グラフィック・プロセッシング・ユニットGPUが生成し三次元画像のグレースケール値に基づいて奥行き値(Z値)を計算しているため、視差画像生成機能が生成する奥行き値(Z値)が、三次元CGデータの期待する奥行き値と一致しなかったが、本実施形態1では、三次元グラフィックデータ3(コンピュータグラフィック生成データ)の奥行き値と、視差画像生成機能としての立体視画像生成回路11が生成する立体視用の複数の画像データ(右目用画像データと左目用画像データ)における奥行き値とが同じ奥行き値で互いに一致するため、立体視画像としてより正確な奥行き値を持った立体感を得ることができる。 As described above, in the first embodiment, as illustrated in FIG. 3, as a parallax image generation function for generating a plurality of stereoscopic image data (right-eye image data and left-eye image data) from a single image. For a stereoscopic image generation circuit 11 and a CG generation circuit 7 as a computer graphic generation unit made of a GPU, each image calculated from a single viewpoint generated by the GPU and each of the three-dimensional CG generation processing of the GPU are calculated. The depth information (Z buffer value) for the pixel is passed to the stereoscopic image generation circuit 11 as a parallax image generation function, and the stereoscopic image generation circuit 11 performs control to generate a plurality of images for stereoscopic viewing. At this time, conventionally, the parallax image generation function is generated by the graphics processing unit GPU and calculates the depth value (Z value) based on the grayscale value of the three-dimensional image. However, in the first embodiment, the depth value of the three-dimensional graphic data 3 (computer graphic generation data) and the generation of the parallax image are not matched with the expected depth value of the three-dimensional CG data. Since the depth values in the plurality of stereoscopic image data (right-eye image data and left-eye image data) generated by the stereoscopic image generation circuit 11 as a function match each other with the same depth value, the stereoscopic image is more A three-dimensional effect with an accurate depth value can be obtained.
したがって、本実施形態1によれば、CG生成回路7において三次元グラフィックデータ3(コンピュータグラフィック生成データ)から生成した各画素データおよび奥行き値を用いて、立体視画像生成回路11が立体視用の複数(右目用と左目用)の画像データを生成するため、従来のように三次元グラフィック処理機構としての立体視画像生成回路11に高い能力を要求せず、立体視画像として正確な立体感を得ることができる。 Therefore, according to the first embodiment, the stereoscopic image generation circuit 11 uses the pixel data and the depth value generated from the three-dimensional graphic data 3 (computer graphic generation data) in the CG generation circuit 7 for stereoscopic viewing. In order to generate a plurality of image data (for right eye and left eye), the stereoscopic image generation circuit 11 as a three-dimensional graphic processing mechanism does not require high ability as in the conventional case, and an accurate stereoscopic effect is provided as a stereoscopic image. Obtainable.
(実施形態2)
本実施形態2では、1枚の画像(1フレームの画像)の中に奥行き値がある画像(三次元グラフィックデータ3の部分)と奥行き値がない画像(背景画像など、動かない画像の他に動く画像も想定される)とが混在している場合について説明する。
(Embodiment 2)
In the second embodiment, in addition to an image that has a depth value in one image (image of one frame) (part of the three-dimensional graphic data 3) and an image that does not have a depth value (such as a background image) A case where moving images are also assumed) will be described.
図2は、本発明に係る立体視用画像生成システムの実施形態2として、図1の立体視画像生成回路11の一構成例を示すブロック図である。
FIG. 2 is a block diagram showing a configuration example of the stereoscopic image generation circuit 11 of FIG. 1 as
なお、本実施形態2においても図1の構成を用いる。即ち、図1において、本実施形態2の立体視用画像生成システム20Aは、本実施形態の立体視用画像生成装置1Aと、立体視用画像生成装置1Aで生成した立体視用画像データを表示画面上に表示する表示部21とを有している。本実施形態2の立体視用画像生成装置1Aは、データおよびワークメモリが記憶されるメモリ2と、CG生成回路7と、全体の制御を行う制御部としてのCPU10(中央演算処理装置)と、立体視画像生成回路11Dと、画像出力部12と、操作部13とを有しており、これらのメモリ2、CG生成回路7、CPU10、立体視画像生成回路11Dおよび操作部13がバス14に接続されている。
The configuration of FIG. 1 is also used in the second embodiment. That is, in FIG. 1, the stereoscopic image generation system 20A of the second embodiment displays the stereoscopic image generation device 1A of the present embodiment and the stereoscopic image data generated by the stereoscopic image generation device 1A. And a
図2において、本実施形態2の立体視画像生成回路11Dは、奥行き値5の存在可否フラグ5Aが「有」のときに奥行き値5を出力し、奥行き値5の存在可否フラグ5Aが「無」のときに奥行き値生成回路11Bからの奥行き値を出力する奥行き値存在可否検出回路11Aと、画素データ4から一つ以上の画素を読み出して奥行き値を生成する奥行き値生成回路11Bと、奥行き値存在可否検出回路11Aからの奥行き値に基づいて立体視用の左目・右目画像を生成する左目・右目画像生成回路11Cとを有している。なお、上記実施形態1では、これらの奥行き値存在可否検出回路11Aおよび奥行き値生成回路11Bがない。
In FIG. 2, the stereoscopic image generation circuit 11D according to the second embodiment outputs a
即ち、本実施形態2の立体視画像生成回路11Dは、処理する各画素に対して、奥行き値の有無を示す存在可否フラグ5Aの情報に基づいて、その処理画素に奥行き値がない場合、その処理画素を含む一つ以上の画素から得られる情報を元に計算した奥行き値を、奥行き値5の代わりに用い、また、その処理画素に奥行き値がある場合、奥行き値5を用いて、各画素データから立体視用の複数の視差画像データを生成する。
In other words, the stereoscopic image generation circuit 11D according to the second embodiment, for each pixel to be processed, based on the information on the presence /
ここで、上記図2の立体視画像生成回路11Dの動作について説明する。 Here, the operation of the stereoscopic image generation circuit 11D of FIG. 2 will be described.
まず、奥行き値生成回路11Bは、画素データ4から一つ以上の画素を読み出し、奥行き値を生成し、その奥行き値を奥行き値存在可否判断回路11Aに出力する。
次に、奥行き値存在可否検出回路11Aは、奥行き値5から読み出した一つの奥行き値と奥行き値生成回路11Bからの出力とを受け取る。奥行き値の中に存在可否フラグ5Aがあり、奥行き値存在可否検出回路11Aは、この存在可否フラグ5Aから奥行き値が存在すると検出した場合は、奥行き値5から読み出した奥行き値を左目・右目画像生成回路11Cに出力する。また、奥行き値存在可否検出回路11Aは、奥行き値の中に存在可否フラグ5Aから、奥行き値が存在しないと検出した場合には、奥行き値生成回路11Bからの奥行き値を出力する。
その後、右目・左目画像生成回路11Cは、奥行き値存在可否検出回路11Aからの奥行き値を受け取り、画素データ4からの各画素データを読み取って、立体視用の右目画像および左目画像を生成する。
First, the depth
Next, the depth value presence /
Thereafter, the right-eye / left-eye image generation circuit 11C receives the depth value from the depth value presence /
以上により、本実施形態2においても、図3に示すように、一枚の画像(1フレーム画像)から、立体視用の複数の画像データ(右目用画像データと左目用画像データ)を生成する視差画像生成機能としての立体視画像生成回路11Dと、GPUからなるコンピュータグラフィック生成部としてのCG生成回路7に対し、GPUが生成した一つの視点からの画像(二次元画像)の各画素データおよび、GPUの三次元CGデータからの二次元画像生成処理の過程で計算された各画素に対する奥行き情報(Zバッファ値)を、視差画像生成機能としての立体視画像生成回路11Dに渡して、立体視画像生成回路11Dが立体視用の複数の視差画像を生成する制御を行っている。 As described above, also in the second embodiment, as shown in FIG. 3, a plurality of stereoscopic image data (right-eye image data and left-eye image data) are generated from one image (one frame image). With respect to the stereoscopic image generation circuit 11D as a parallax image generation function and the CG generation circuit 7 as a computer graphic generation unit including a GPU, each pixel data of an image (two-dimensional image) from one viewpoint generated by the GPU, and , The depth information (Z buffer value) for each pixel calculated in the process of 2D image generation processing from 3D CG data of the GPU is passed to the stereoscopic image generation circuit 11D as a parallax image generation function to The image generation circuit 11D performs control to generate a plurality of parallax images for stereoscopic viewing.
したがって、本実施形態2によれば、CG生成回路7において、一枚の三次元コンピュータグラフィックデータ3から、視覚化された二次元画像の各画素データを生成する際に計算した奥行き値を、一枚の画像(1フレーム画像)から立体視用の複数の視差画像データ(右目用画像データと左目用画像データ)を生成する視差画像生成機能としての立体視画像生成回路11Dに渡すことにより、立体視画像生成回路11Dにおいて、三次元コンピュータグラフィックデータ3から、視覚化された二次元画像の各画素データを生成するCG生成回路7による生成処理を削減しつつ、三次元グラフィックデータ3(コンピュータグラフィック生成データ)の奥行き値と、立体視画像生成回路11Dが生成する立体視用の複数の画像データ(右目用画像データと左目用画像データ)における奥行き値とを一致させて、正確な立体視用の画像を生成する立体視用画像生成機構を構成することができる。また、この場合、特に、画像内の三次元コンピュータグラフィックデータ3とそれ以外の画像(例えば背景画像)とが1フレーム画像に混在する場合であっても、より正確な立体感の立体視用の映像を生成することができる。
Therefore, according to the second embodiment, the CG generation circuit 7 uses the depth value calculated when generating each pixel data of the visualized two-dimensional image from one piece of the three-dimensional computer
なお、本実施形態1、2では、特に説明しなかったが、メモリ2内の三次元グラフィックデータ3から、一つの視点でのコンピュータグラフィック画像の各画素データを生成すると共に、メモリ2内の三次元グラフィックデータ3から、コンピュータグラフィック画像の各画素に対応付けられる奥行き値を求めるCG生成回路7と、各画素データおよび奥行き値を用いて立体視用の複数の画像データを生成する立体視画像生成回路11とを有する立体視用画像生成装置1または1Aであって、CG生成回路7で生成した各画素データおよび奥行き値をメモリ2に一旦記憶させた後に、立体視画像生成時に、立体視画像生成回路11に各画素データおよび奥行き値を転送するように制御するCPU10を有することにより、三次元グラフィック処理機構に高い能力を要求せず、同時に正確な立体感を得ることができる本発明の目的を達成することができる。
Although not particularly described in the first and second embodiments, each pixel data of a computer graphic image from one viewpoint is generated from the three-dimensional
なお、本実施形態1、2では、制御部10(CPU)が、例えば、立体視画像生成時に、データ記憶部に記憶された各画素データおよび奥行き値を立体視画像生成部に転送する構成としたが、これに限らず、制御部が、制御部10(CPU)の他に、コンピュータグラフィック生成部としてのCG生成回路7の制御部や立体視画像生成部としての立体視画像生成回路11または11Dの制御部を含んでいてもよい。要するに、この制御部の動作を、制御部10(CPU)が行ってもよいのはもちろんのこと、この制御部の動作をコンピュータグラフィック生成部としてのCG生成回路7の制御部が行ってもよく、この制御部の動作を立体視画像生成部としての立体視画像生成回路11または11Dの制御部が行ってもよい。即ち、制御部10(CPU)、コンピュータグラフィック生成部および立体視画像生成部のうちの少なくともいずれかの制御部が、例えば、立体視画像生成時に、データ記憶部に記憶された各画素データおよび奥行き値を立体視画像生成部(立体視画像生成機構)に転送するように制御してもよい。 In the first and second embodiments, the control unit 10 (CPU), for example, transfers each pixel data and depth value stored in the data storage unit to the stereoscopic image generation unit when generating the stereoscopic image. However, the present invention is not limited to this, and the control unit is not limited to the control unit 10 (CPU), but the control unit of the CG generation circuit 7 as a computer graphic generation unit or the stereoscopic image generation circuit 11 as a stereoscopic image generation unit or An 11D control unit may be included. In short, the operation of the control unit may be performed by the control unit 10 (CPU), and the operation of the control unit may be performed by the control unit of the CG generation circuit 7 as a computer graphic generation unit. The operation of this control unit may be performed by the control unit of the stereoscopic image generation circuit 11 or 11D as the stereoscopic image generation unit. That is, at least one of the control unit 10 (CPU), the computer graphic generation unit, and the stereoscopic image generation unit performs, for example, each pixel data and depth stored in the data storage unit when generating a stereoscopic image. The value may be controlled to be transferred to a stereoscopic image generation unit (stereoscopic image generation mechanism).
以上のように、本発明の好ましい実施形態1、2を用いて本発明を例示してきたが、本発明は、この実施形態1、2に限定して解釈されるべきものではない。本発明は、特許請求の範囲によってのみその範囲が解釈されるべきであることが理解される。当業者は、本発明の具体的な好ましい実施形態1、2の記載から、本発明の記載および技術常識に基づいて等価な範囲を実施することができることが理解される。本明細書において引用した特許、特許出願および文献は、その内容自体が具体的に本明細書に記載されているのと同様にその内容が本明細書に対する参考として援用されるべきであることが理解される。
As mentioned above, although this invention was illustrated using
本発明は、立体視向けの三次元コンピュータグラフィックを生成する立体視用画像生成装置およびこれを用いた立体視用画像生成方法、この立体視用画像生成方法の各ステップをコンピュータに実行させるための制御プログラム、この制御プログラムが格納されたコンピュータ読み取り可能な可読記憶媒体の分野において、コンピュータグラフィック生成部において三次元グラフィックデータ(コンピュータグラフィック生成データ)から生成した各画素データおよび奥行き値を用いて、立体視画像生成部が立体視用の複数(右目用と左目用)の画像データを生成するため、三次元グラフィック処理機構としての立体視画像生成部に高い能力を要求せず、同時に正確な立体感を得ることができる。 The present invention relates to a stereoscopic image generating apparatus that generates a three-dimensional computer graphic for stereoscopic vision, a stereoscopic image generating method using the same, and a computer for executing the steps of the stereoscopic image generating method. In the field of a control program and a computer-readable storage medium storing the control program, a 3D graphic data (computer graphic generation data) is generated from three-dimensional graphic data (computer graphic generation data) by a computer graphic generation unit. Since the visual image generation unit generates a plurality of image data (for right eye and left eye) for stereoscopic viewing, the stereoscopic image generation unit as a three-dimensional graphic processing mechanism does not require high capability, and at the same time, accurate stereoscopic effect Can be obtained.
1、1A 立体視用画像生成装置
2 メモリ(データ記憶部)
3 三次元グラフィックデータ(コンピュータグラフィック生成データ)
4 画素データ
5 奥行き値(奥行き情報)
5A 存在可否フラグ
6 プログラムコード(制御プログラムおよびそのデータ)
7 CG生成回路(コンピュータグラフィック生成部)
8 画素計算回路
9 奥行き計算回路
10 CPU(制御部)
10A グラフィックデータ転送手段
10B 画素データ・奥行き値転送手段
10C 立体視画像生成制御手段
11,11D 立体視画像生成回路(立体視画像生成部)
11A 奥行き値存在可否検出回路
11B 奥行き値生成回路
11C 左目・右目画像生成回路
12 画像出力部
13 操作部
14 バス
20,20A 立体視用画像生成システム
21 表示部
1, 1A Stereoscopic
3 Three-dimensional graphic data (computer graphic generation data)
4
5A presence /
7 CG generation circuit (computer graphic generation unit)
8
10A Graphic data transfer means 10B Pixel data / depth value transfer means 10C Stereoscopic image generation control means 11, 11D Stereoscopic image generation circuit (stereoscopic image generation unit)
11A Depth value presence /
Claims (17)
該各画素データおよび該奥行き値を用いて立体視用の複数の画像データを生成する立体視画像生成部とを有する立体視用画像生成装置であって、
該コンピュータグラフィック生成部で生成した該各画素データおよび該奥行き値を該データ記憶部に一旦記憶させた後に、立体視画像生成時に、該立体視画像生成部に該各画素データおよび該奥行き値を転送するように制御する制御部を有した立体視用画像生成装置。 A computer graphic generation unit that generates pixel data of a computer graphic image at a single viewpoint from computer graphic generation data in the data storage unit, and calculates a depth value associated with each pixel of the computer graphic image;
A stereoscopic image generation apparatus including a stereoscopic image generation unit that generates a plurality of stereoscopic image data using the pixel data and the depth value;
After the pixel data and the depth value generated by the computer graphic generation unit are temporarily stored in the data storage unit, the stereoscopic image generation unit receives the pixel data and the depth value when generating a stereoscopic image. A stereoscopic image generation apparatus having a control unit that controls to transfer.
該データ記憶部内のコンピュータグラフィック生成データを前記コンピュータグラフィック生成部に転送するグラフィックデータ転送手段と、
該コンピュータグラフィック生成部により生成したコンピュータグラフィック画像の各画素データおよび、該コンピュータグラフィック画像の各画素に対応付けられる奥行き値を該データ記憶部にそれぞれ書き込む画素データ・奥行き値転送手段と、
立体視画像生成開始時に、該データ記憶部内の該画素データおよび該奥行き値を前記立体視画像生成部に転送する立体視画像生成制御手段とを有する請求項1に記載の立体視用画像生成装置。 The controller is
Graphic data transfer means for transferring computer graphic generation data in the data storage unit to the computer graphic generation unit;
Pixel data / depth value transfer means for writing each pixel data of the computer graphic image generated by the computer graphic generation unit and a depth value associated with each pixel of the computer graphic image to the data storage unit;
The stereoscopic image generation apparatus according to claim 1, further comprising: a stereoscopic image generation control unit that transfers the pixel data and the depth value in the data storage unit to the stereoscopic image generation unit at the start of stereoscopic image generation. .
一つの視点データおよび複数の三次元座標データを含むコンピュータグラフィック生成データを記憶する第1データ記憶部と、
該コンピュータグラフィック画像の各画素データおよび該各画素に対応付けられる奥行き値を記憶可能とする第2データ記憶部とを有する請求項1に記載の立体視用画像生成装置。 The data storage unit
A first data storage unit for storing computer graphic generation data including one viewpoint data and a plurality of three-dimensional coordinate data;
The stereoscopic image generating apparatus according to claim 1, further comprising: a second data storage unit capable of storing each pixel data of the computer graphic image and a depth value associated with each pixel.
前記データ記憶部に記憶されたコンピュータグラフィック生成データからコンピュータグラフィック画像の各画素データに変換する画素データ変換部と、
該コンピュータグラフィック生成データから、コンピュータグラフィック画像の各画素に対する奥行き値を計算する奥行き値計算部とを有する請求項1に記載の立体視用画像生成装置。 The computer graphic generation unit
A pixel data conversion unit that converts computer graphic generation data stored in the data storage unit into pixel data of a computer graphic image;
The stereoscopic image generation apparatus according to claim 1, further comprising a depth value calculation unit that calculates a depth value for each pixel of the computer graphic image from the computer graphic generation data.
該制御部が、データ記憶部内のコンピュータグラフィック生成データを該コンピュータグラフィック生成部に転送するステップと、
該コンピュータグラフィック生成部が、該コンピュータグラフィック生成データから、一つの視点でのコンピュータグラフィック画像の各画素データを生成すると共に、該コンピュータグラフィック画像の各画素に対応付けられる奥行き値を求めるコンピュータグラフィック生成ステップと、
該制御部が該各画素データおよび該奥行き値を該データ記憶部の所定領域にそれぞれ書き込むように制御するステップと、
該制御部が、立体視画像生成時に、データ記憶部に記憶された各画素データおよび奥行き値を立体視画像生成部に転送するように制御するステップと、
該立体視画像生成部が当該各画素データおよび当該奥行き値を用いて立体視用の複数の画像データを生成する立体視画像生成ステップとを有する立体視用画像生成方法。 A step in which the control unit instructs the computer graphic generation unit to start drawing an image;
Transferring the computer graphic generation data in the data storage unit to the computer graphic generation unit;
A computer graphic generation step in which the computer graphic generation unit generates each pixel data of a computer graphic image from one viewpoint from the computer graphic generation data and obtains a depth value associated with each pixel of the computer graphic image When,
Controlling the control unit to write the pixel data and the depth value in predetermined areas of the data storage unit,
The control unit controlling to transfer each pixel data and depth value stored in the data storage unit to the stereoscopic image generation unit when generating the stereoscopic image;
A stereoscopic image generation method, wherein the stereoscopic image generation unit includes a stereoscopic image generation step of generating a plurality of stereoscopic image data using the pixel data and the depth value.
画素データ変換部が、前記データ記憶部に記憶されたコンピュータグラフィック生成データからコンピュータグラフィック画像の各画素データに変換する画素データ変換ステップと、
奥行き値計算部が、該コンピュータグラフィック生成データから、コンピュータグラフィック画像の各画素に対する奥行き値を計算する奥行き値計算ステップとを有する請求項11に記載の立体視用画像生成方法。 The computer graphic generation step includes:
A pixel data conversion unit that converts the computer graphic generation data stored in the data storage unit into pixel data of a computer graphic image;
The stereoscopic image generation method according to claim 11, wherein the depth value calculation unit includes a depth value calculation step of calculating a depth value for each pixel of the computer graphic image from the computer graphic generation data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010134542A JP2011258153A (en) | 2010-06-11 | 2010-06-11 | Stereoscopic vision image formation device, stereoscopic vision image formation method, control program, and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010134542A JP2011258153A (en) | 2010-06-11 | 2010-06-11 | Stereoscopic vision image formation device, stereoscopic vision image formation method, control program, and readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2011258153A true JP2011258153A (en) | 2011-12-22 |
Family
ID=45474224
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010134542A Withdrawn JP2011258153A (en) | 2010-06-11 | 2010-06-11 | Stereoscopic vision image formation device, stereoscopic vision image formation method, control program, and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2011258153A (en) |
-
2010
- 2010-06-11 JP JP2010134542A patent/JP2011258153A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3646284B1 (en) | Screen sharing for display in vr | |
| TWI817335B (en) | Stereoscopic image playback apparatus and method of generating stereoscopic images thereof | |
| CN111489429B (en) | Image rendering control method, terminal equipment and storage medium | |
| JP5160741B2 (en) | 3D graphic processing apparatus and stereoscopic image display apparatus using the same | |
| CN103440677A (en) | Multi-view free stereoscopic interactive system based on Kinect somatosensory device | |
| JP2000267649A (en) | Three-dimensional image generator and generation method | |
| CN103544441A (en) | Moving image generation device | |
| JP7353782B2 (en) | Information processing device, information processing method, and program | |
| CN111295693B (en) | Image processing method and device | |
| TWI694355B (en) | Tracking system, tracking method for real-time rendering an image and non-transitory computer-readable medium | |
| CN108038916B (en) | Augmented reality display method | |
| CN113206993A (en) | Method for adjusting display screen and display device | |
| JP2013243610A (en) | Image data transmission apparatus, image data reception apparatus, image data transmission system, image data transmission method, image data reception method, transmission image data, and program | |
| US20200066234A1 (en) | VR Drawing Method, Device, and System | |
| JP2012234411A (en) | Image generation device, image generation system, image generation program and image generation method | |
| JPH09298761A (en) | Stereoscopic image display device | |
| KR20170006219A (en) | Method for three dimensions modeling service and Apparatus therefor | |
| KR101242764B1 (en) | Apparatus and method for creating 3-dimensional augmented reality image using 3d image and gpu | |
| JP5328852B2 (en) | Image processing apparatus, image processing method, program, and information storage medium | |
| TWI874851B (en) | Electronic device and method for generating stereoscopic light-field data | |
| JP2011258153A (en) | Stereoscopic vision image formation device, stereoscopic vision image formation method, control program, and readable storage medium | |
| JP2004201004A (en) | Three-dimensional video display device, program, and recording medium | |
| JP2009064355A (en) | Program, information storage medium, and image producing system | |
| JP2010239177A (en) | Image generation method | |
| JPH1139507A (en) | Stereoscopic image display device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20130903 |