JP4183499B2 - Video file processing method and video processing method - Google Patents
Video file processing method and video processing method Download PDFInfo
- Publication number
- JP4183499B2 JP4183499B2 JP2002364395A JP2002364395A JP4183499B2 JP 4183499 B2 JP4183499 B2 JP 4183499B2 JP 2002364395 A JP2002364395 A JP 2002364395A JP 2002364395 A JP2002364395 A JP 2002364395A JP 4183499 B2 JP4183499 B2 JP 4183499B2
- Authority
- JP
- Japan
- Prior art keywords
- video
- file
- stereoscopic
- control information
- planar
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 33
- 238000009877 rendering Methods 0.000 claims description 2
- 238000000034 method Methods 0.000 description 34
- 230000004888 barrier function Effects 0.000 description 7
- 239000004973 liquid crystal related substance Substances 0.000 description 6
- 230000033001 locomotion Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 239000011521 glass Substances 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Description
【0001】
【産業上の利用分野】
この発明は、映像ファイル処理方法及び映像処理方法に関する。
【0002】
【従来の技術】
立体視技術としては、従来よりパララックスバリアを用いる眼鏡無し立体視方法、偏光眼鏡や液晶シャッタ眼鏡などを用いる眼鏡有り立体視方法などが知られている。また、立体視させる映像についても、実写の映像だけでなく、コンピュータグラフィックスを用い、仮想空間上に配置したオブジェクトを平面に投影して描画処理する3D描画による映像がある。更には、前記描画処理を二視点において行なうことで、右眼映像と左眼映像を作成することができる。また、2次元映像信号から抽出された奥行き情報と2次元映像信号とに基づいて立体映像を生成する立体映像受信装置及び立体映像システムが提案されている(特許文献1参照)。2次元映像と奥行き情報とからなる映像ファイルを作成すれば、このファイルを開いたときに、立体映像を生成することができる。また、二つの映像を1チャンネルの映像として放送し、受信機側で立体視が行なえる方法が提案されている(特許文献2参照)。二つの映像からなる映像ファイルを作成すれば、このファイルを開いたときに、立体映像を生成することができる。
【0003】
【特許文献1】
特開2000−78611号公報
【特許文献1】
特開平10−174064号公報
【0004】
【発明が解決しようとする課題】
ところで、このような映像ファイルにおいて、これを開いたときに作成者の意図が反映されて映像表示されることが望まれる。
【0005】
この発明は、上記の事情に鑑み、映像ファイルを開いたときに作成者の意図を反映した映像表示を行なうことができる映像ファイル処理方法を提供することを目的とする。描画処理の処理負担を軽減できる映像処理方法を提供する。
【0006】
【課題を解決するための手段】
この発明の映像ファイル処理方法は、上記の課題を解決するために、動画映像ファイル又は静止画映像ファイル又はコンピュータグラフィックス映像ファイルに基づいて映像を生成する映像ファイル処理方法であって、ファイルが開かれた際に表示する映像を立体視映像とするのか平面視映像とするのかを示す制御情報が当該ファイルに記録されているかどうかを検出し、制御情報を検出した場合に、当該制御情報に基づいて立体視映像又は平面視映像を生成することを特徴とする。
【0007】
上記の構成であれば、映像ファイルの作成者は、例えば、初期映像を平面視映像とし、視聴者の操作で立体視映像を表示させたい意図で映像ファイルを作成する場合には、ファイルが開かれた際に表示する映像を平面視映像とすることを示す制御情報をファイルに書き込んでおけばよく、このファイルを受け取った側の装置が上記映像ファイル処理方法を実行することで、ファイルが開かれた際の初期映像を平面視映像として表示することができる。
【0008】
また、この発明の映像ファイル処理方法は、動画映像ファイルに基づいて映像を生成する映像ファイル処理方法であって、フレームごと又はシーンの切り替わりごとに立体視映像とするのか平面視映像とするのかを示す制御情報がファイルに記録されているかどうかを検出し、制御情報を検出した場合に、当該制御情報に基づいて立体視映像又は平面視映像を生成することを特徴とする。
【0009】
上記の構成であれば、映像ファイルの作成者は、例えば、動きの激しい映像を平面視映像として表示させたい意図で映像ファイルを作成する場合には、動きの激しい映像のフレームごとやシーンの切り替わりごとに映像を平面視映像とすることを示す制御情報をファイルに書き込んでおけばよく、このファイルを受け取った側の装置が上記映像ファイル処理方法を実行することで、動きの激しい映像の箇所では映像を平面視映像として表示することができる。
【0010】
また、この発明の映像ファイル処理方法は、動画映像ファイル又は静止画映像ファイル又はコンピュータグラフィックス映像ファイルに基づいて映像を生成する映像ファイル処理方法であって、立体視映像又は平面視映像とする表示維持時間を示す制御情報がファイルに記録されているかどうかを検出し、制御情報を検出した場合に、当該制御情報に基づいて立体視映像又は平面視映像を生成することを特徴とする。
【0011】
上記の構成であれば、映像ファイルの作成者は、例えば、ファイルを開いた当初の3秒間だけ映像を平面視映像とし、その後は立体視映像を表示させたい意図で映像ファイルを作成する場合には、ファイルが開かれてから3秒間だけ映像を平面視映像とすることを示す制御情報をファイルに書き込んでおけばよく、このファイルを受け取った側の装置が上記映像ファイル処理方法を実行することで、ファイルが開かれた際の当初の3秒間だけ映像を平面視映像として表示することができる。また、所定時間間隔で平面視映像と立体視映像とを繰り返して表示させるといったことも可能となる。
【0012】
上述したいずれかに記載の映像ファイル処理方法において、ファイルに記録されていた制御情報がユーザ操作によって変更された場合に、この変更された制御情報を当該ファイルに記録するようになっていてもよい。これによれば、ユーザ側の好みを反映させた編集が行なえることになる。
【0013】
また、この発明の映像ファイル処理方法は、動画映像ファイル又は静止画映像ファイル又はコンピュータグラフィックス映像ファイルに基づいて映像を生成する映像ファイル処理方法であって、ファイルの再生映像表示が立体視映像の状態なのか或いは平面視映像の状態なのかを示す状態情報を当該ファイル自体に或いは別の管理ファイルに格納することを特徴とする。上記状態情報を持つことにより、映像ファイルの管理(立体視映像としてファイルの再生映像表示を行なっているのか或いは、平面視映像としてファイルの再生映像表示を行なっているのかの管理)が行い易くなる。
【0014】
上記の映像ファイル処理方法において、ファイルを再生するときには前記状態情報を読み出し、この状態情報に基づいて立体視映像又は平面視映像を生成するようになっていてもよい。これによれば、ファイルが閉じられた後、再びファイルを開いたときにも、前回の状態が分かることになり、例えば、前回が立体視映像としてファイルの再生映像表示を行なっていたのであれば、今回のファイルの映像再生においても、立体視映像としてファイルの再生映像表示を行なうことができることになる。
【0015】
また、この発明の映像処理方法は、映像を構成している各オブジェクトについて立体視映像とするのか平面視映像とするのかを示す制御情報が記録されているかどうかを検出し、制御情報を検出した場合に、立体視映像を示す制御情報を持つオブジェクトについては立体視用映像とするために視点位置が異なる二つの方向からの描画処理を実行し、平面視映像を示す制御情報を持つオブジェクトについては一つの方向からの描画処理を実行することを特徴とする。
【0016】
また、この発明の映像処理方法は、動画又は静止画映像ファイルに基づいて映像を生成する映像ファイル処理方法であって、映像を構成している各オブジェクトについてその奥行き位置を検出し、奥行き位置が所定位置よりも手前側であるオブジェクトについては立体視用映像とするために視点位置が異なる二つの方向からの描画処理を実行し、奥行き位置が所定位置よりも奥側であるオブジェクトについては一つの方向からの描画処理を実行することを特徴とする。
【0017】
これらの映像処理方法であれば、映像を構成している全てのオブジェクトについて視点位置が異なる二つの方向からの描画処理を実行する場合に比べ、処理負担が軽減され、描画速度の向上が図れる。
【0018】
【発明の実施の形態】
以下、この発明の映像ファイル処理方法を図1乃至図3に基づいて説明していく。
【0019】
まず、図1に基づいてこの発明の実施形態の映像ファイル処理方法について説明していく。なお、この図においては、インターネット2上のサーバなどとして構成される送信側装置1と、ネット接続環境を備えたパーソナルコンピュータや携帯電話等の受信側装置3とからなるシステムとして説明する。
【0020】
送信側装置1の図示しない記録媒体には、動画又は静止画の映像ファイル(例えば、2次元映像と奥行き情報、或いは、左眼用映像と右眼用映像から成る二眼立体視映像等)が存在している。この映像ファイルが、MPEGのファイルであれば、それを示す識別子が付与され、また、モーションJPEGのファイルであれば、それを示す識別子が付与される。また、HTMLファイルのなかの映像ファイルとすることもできる。
【0021】
受信側装置3は、例えば画面手前位置に液晶バリアを備えることにより、平面視映像の表示及び立体視映像の表示の両方が行なえるようになっている。立体視映像が、例えば、右眼映像と左眼映像とを交互に縦ストライプ状に配置したものであれば、図示しない制御部(CPU)の制御により、液晶バリアにおいて、縦ストライプ状の遮光領域が形成される。また、画面上の一部領域(ファイル再生のウィンドウ部分、或いは、HTMLファイルのなかの一部映像部分)において立体視映像を表示することとなるのであれば、前記制御部により、前記ウィンドウや一部映像部分の表示座標及び大きさに基づいて前記縦ストライプ状の遮光領域の大きさ及び形成位置が制御される。また、受信側装置3は、MPEGプレーヤソフトウェアやブラウザソフトウェア等を搭載しており、映像ファイルを開いて画面に映像を表示することができる。なお、右眼映像と左眼映像とを交互に縦ストライプ状に配置した立体視映像に限らず、例えば、右眼映像と左眼映像とを斜め配置した立体視映像としてもよく(特許第3096613号公報参照)、この場合には、液晶バリアにおいて斜めバリアを形成する。
【0022】
受信側装置3は、映像ファイルに基づいて画面に映像を表示するとき、図2のフローチャートに示す処理を実行する。なお、このフローチャートでは動画映像ファイルに対する処理を示しているが、静止画ファイルでも同様の処理を行なえばよい。受信側装置3の制御部は、まず、映像ファイルに制御情報が存在しているかどうかを検出する(ステップS1)。ここで、制御情報には、下記に示す第1制御情報と第2制御情報と第3制御情報とがあるものとする。なお、制御情報は映像ファイルのヘッダ部などに格納しておけばよく、映像ファイルを受信した受信側装置3で当該ファイルを開くときに前記制御情報が認識できるのであれば、どのような付加の仕方でもよい。
【0023】
第1制御情報:ファイルが開かれた際に表示する映像を立体視映像とするのか平面視映像とするのかを示す。
第2制御情報:フレームごと又はシーンの切り替わりごとに立体視映像とするのか平面視映像とするのかを示す。
第3制御情報:立体視映像又は平面視映像とする表示維持時間を示す。
【0024】
映像ファイルに制御情報が存在しないときには(ステップS1でNO)、通常のファイル再生処理を実行する(ステップS23)。一方、映像ファイルに制御情報が存在しており(ステップS1でYES)、この制御情報が、第1制御情報である場合、この第1制御情報に基づいて初期映像を立体視映像とするのか平面視映像とするのかを判断する(ステップS2)。立体視映像の場合には立体映像表示処理を実行し(ステップS3)、平面視映像の場合には平面映像表示処理を実行する(ステップS6)。そして、立体視映像の場合にはユーザによって平面指示がなされたかどうかを判断し(ステップS4)、平面視映像の場合にはユーザによって立体指示がなされたかどうかを判断する(ステップS7)。なお、例えばMPEGプレーヤの操作ボタンとして「立体」「平面」のボタンを設けておく場合には、ユーザはマウス操作等で前記ボタンを操作して平面指示や立体指示を行なうことができる。
【0025】
ユーザによって平面指示がなされた場合には平面表示処理を行ない(ステップS6)、ユーザによって立体指示がなされた場合には立体表示処理を行なう(ステップS3)。通常、平面映像表示の状態から立体映像表示に切り替わる方が見る者の印象度は高くなる。ユーザによって平面指示がなされない場合や立体指示がなされない場合には全フレームの再生が終了したかどうかを判断する(ステップS5,ステップS8)。全フレームが終了していなければ、ステップS3又はステップS6に進む。一方、終了したならば、最終状態情報(平面表示であったか或いは立体表示であったか)を取得し(ステップS9)、ファイルに記録する(ステップS10)。このように、最終状態情報をファイルに格納することで、映像ファイルの管理(次にファイルを開くときの設定)が行い易くなる。なお、映像表示時における状態情報を保持すれば、立体視映像としてファイルの再生映像表示を行なっているのか或いは平面視映像としてファイルの再生映像表示を行なっているのかの管理も行なえ、複数の画像を表示し、且つ平面と立体の表示が混在する場合、表示状態を管理するのに役立つ。同じウィンドウ内に複数の画像がある場合は特に便利である。状態情報をまとめて別ファイルで管理してもよいが、個々のファイルに格納しておくと、前述のように、ファイルを開く時に前回の最終状態を知ることができ、ファイルに元々与えられていた制御情報よりも状態情報を優先するといった処理が可能となる。
【0026】
映像ファイルに制御情報が存在しており(ステップS1でYES)、この制御情報が、第2制御情報である場合、この第2制御情報に基づいて立体視映像とするのか平面視映像とするのかを判断する(ステップS11)。立体視映像の場合には立体映像表示処理を実行し(ステップS12)、平面視映像の場合には平面映像表示処理を実行する(ステップS13)。そして、全フレームの再生が終了したかどうかを判断する(ステップS14)。全フレームが終了していなければ、ステップS11に進む。第2制御情報は、前述したように、フレームごと又はシーンの切り替わりごとに立体視映像とするのか平面視映像とするのかを示す情報である。映像ファイルの作成者は、例えば、動きの激しい映像を平面視映像として表示させたい意図で映像ファイルを作成する場合には、動きの激しい映像のフレームごとやシーンの切り替わりごとに映像を平面視映像とすることを示す第2制御情報をファイルに書き込んでおけばよく、このファイルを受け取った受信装置3が上記処理を実行することで、動きの激しい映像の箇所では映像を平面視映像として表示することができる。なお、フレームごとに第2制御情報を付加する場合は、各フレームのヘッダなどに第2制御情報を付加しておければよい。また、シーンの切り替わりごとに第2制御情報を付加する場合は、シーン切り替わのフレームのヘッダなどに第2制御情報を付加しておけばよい。このような映像ファイルの作成においては、例えば、フレーム間の映像の近似度(類似度)を算出し、近似度が所定基準値(閾値)より上である場合にはシーン同一と判断し、近似度が所定基準値(閾値)より下である場合にはシーンが切り替わったと判断する方法などを採用できる。また、例えば、図示しない映像編集装置上で人が映像を見ながらシーンの切り替わりを検出して立体指示ボタン又は平面指示ボタンを操作し、この操作に基づいて映像編集装置が前記制御情報を付加することとしてもよい。
【0027】
映像ファイルに制御情報が存在しており(ステップS1でYES)、この制御情報が、第3制御情報である場合、この第3制御情報で示される時間に基づいた処理を実行すべくタイマーをスタートさせると共に(ステップS15)、立体視映像とするのか平面視映像とするのかを判断する(ステップS16)。立体視映像の場合には立体映像表示処理を実行し(ステップS17)、平面視映像の場合には平面映像表示処理を実行する(ステップS20)。そして、第3制御情報で示される時間が経過したかどうかを判断する(ステップS18,S21)。立体視映像の表示状態で指定時間となれば(ステップS18でYES)、平面視映像表示処理を実行し(ステップS20)、平面視映像の表示状態で指定時間となれば(ステップS21でYES)、立体視映像表示処理を実行する(ステップS17)。立体視映像の表示状態で全フレーム終了でなければ(ステップS19でNO)、ステップS17に進み、平面視映像の表示状態で全フレーム終了でなければ(ステップS22でNO)、ステップS20に進む。第3制御情報は、前述したように、立体視映像又は平面視映像とする表示維持時間を示す情報である。映像ファイルの作成者は、例えば、ファイルを開いた当初の3秒間だけ映像を平面視映像とし、その後は立体視映像を表示させたい意図で映像ファイルを作成する場合には、ファイルが開かれてから3秒間だけ映像を平面視映像とすることを示す第3制御情報をファイルに書き込んでおけばよく、このファイルを受け取った側の装置が上記映像ファイル処理方法を実行することで、ファイルが開かれた際の当初の3秒間だけ映像を平面視映像として表示することができる。また、所定時間間隔で平面視映像と立体視映像とを繰り返して表示させるといったことも可能となる。例えば、ネットショッピングのHTML画面上で商品の映像が所定時間間隔で平面視映像と立体視映像とを繰り返すと、閲覧者の目を引きやすい。なお、スクロール操作によって立体視映像させる商品の映像位置がシフトしていく場合には、当該商品の映像位置に対応して液晶バリアにおけるストライプ形成領域もシフトしていく。また、立体視映像と平面視映像の繰り返しに同期して、液晶バリアにおけるストライプ領域のON/OFFが実行される。
【0028】
また、例えば、MPEGプレーヤでの映像ファイル再生において、停止操作を行なうことで、任意のフレームの表示状態とさせることができる。この表示状態で操作ボタンとして「立体」のボタンが操作された場合、前記表示中のフレームに対して「立体」という制御情報を対応付けることができる。すなわち、そのフレームのヘッダに上記制御情報を記録する。MPEGプレーヤは、「立体」という制御情報が付されたフレーム以降の映像表示では立体映像表示を行なう。このような処理により、ユーザ側で所望の部分を立体視することを設定した映像ファイルの作成(編集)が可能となる。
【0029】
図3はコンピュータグラフィックス処理により、仮想座標空間上にオブジェクトA,B,Cが配置されている様子を示した説明図である。各オブジェクトはポリゴン画像の集合体である。この仮想空間を映像表示する場合には、視線方向D1から見た状態に対応させて平面に前記オブジェクトを投影させる描画処理を実行し、この描画処理により得た2次元画像を画面表示することになる。また、この仮想空間を立体視する場合には、更に、視線方向D2から見た状態に対応させて平面に前記オブジェクトを投影させる描画処理を実行し、この描画処理により得た2次元画像を右眼映像とし、前記視線方向D1に基づく2次元映像を左眼映像として、立体映像表示を行なえばよいことになる。例えば、ゲーム装置として構成されいている映像表示装置は、ゲーム操作部(ジョイスティック等)からの指令に基づいて表示すべき空間に配置されるべきオブジェクトを記憶部(CD−ROMやROMカセット等)から読み出し、描画処理部にて描画処理を実行し、映像信号生成部にて映像信号を生成することになる。
【0030】
前記オブジェクトA,B,Cには、当該オブジェクトを立体視映像とするのか平面視映像とするのかを示す制御情報が対応付けられている。映像表示装置は記憶部から読み出したオブジェクトに付加されている制御情報に基づいて立体視映像とするのか平面視映像とするのかを判断する。ここで、オブジェクトA,Bには立体視映像とする制御情報が付加されており、オブジェクトCには平面視映像とする制御情報が付加されているものとする。映像表示装置は、上記仮想空間を立体視させる場合、まず、視線方向D1から見た状態に対応させて2次元平面に前記オブジェクトA,B,Cを投影させる描画処理を実行する。そして、視線方向D2から見た状態に対応させて2次元平面に前記オブジェクトA,Bを投影させる描画処理を実行する。視線方向D2から見た映像におけるオブジェクトCについては、視線方向D1の処理により得られたオブジェクトCの画像を単に数画素分水平移動させたものを用いればよい。例えば、ゲームソフトの作成者側において、背景のような平面的に表示されても問題のないオブジェクトや遠くに位置して表示されることになるオブジェクトに対し、平面視映像とする制御情報を付加することになる。これにより、描画処理速度が向上する。
【0031】
映像表示装置は記憶部から読み出したオブジェクトに制御情報が付加されていない場合でも、オブジェクトのZ値情報(奥行き情報)を取得し、Z値情報が所定の閾値(Z値)よりも奥側か手前側かによって、当該オブジェクトを立体視映像とするのか平面視映像とするのかを決定することができる。すなわち、映像表示装置は、上記仮想空間を立体視させる場合、まず、視線方向D1から見た状態に対応させて2次元平面に前記オブジェクトA,B,Cを投影させる描画処理を実行する。そして、視線方向D2から見た状態に対応させて2次元平面に前記オブジェクトA,BCを投影させるときには、各々のZ値情報に基づき、Z値情報が所定の閾値よりも手前側であるオブジェクトついてだけ描画処理を実行する。視線方向D2の描画処理で処理対象外とされたオブジェクトについては、視線方向D1の処理により得られたオブジェクトの画像を単に数画素分水平移動させたものを用いればよい。また、上記処理において、各オブジェクトに対し、各オブジェクトが立体視映像として処理されているか或いは平面視映像として処理されているのかを示す状態情報を保持するようにしてもよい。画面手前位置から画面奥方向に飛行していくようなオブジェクトについては、途中までは立体視映像として処理され、それ以降は平面視映像として処理されることになり、状態情報は変化する。
【0032】
なお、上記描画処理において、視線方向D1からの描画でオブジェクトCが他のオブジェクトによって全部又は一部隠れることになり、視線方向D2からの描画では前記隠れる部分が描かれるべきものとなる場合がある。そこで、以下の処理を行なうようにしてもよい。
【0033】
他の描画処理(その1)
▲1▼平面視映像又はZ値情報が所定の閾値よりも奥側の映像(以下、平面視映像等という)となるオブジェクトだけをまず描画する。この描画によって当該オブジェクトの全体描画データが得られる(隠れている部分が無い)。この描画の視線方向はD1でもよいし、D2でもよい。また、D1とD2の真ん中に視線方向を設定してもよい。
▲2▼平面視映像等以外となるオブジェクトについて、視線方向D1及び視線方向D2の描画処理を行ない、二つの映像を得る。
▲3▼各映像に前記平面視映像等となるオブジェクトの描画データを合成する。この描画データは平面視映像等以外となるオブジェクトの後ろに配置される。また、二つの映像において、平面視映像等となるオブジェクトの配置位置はずれたものとなる。すなわち、水平ずらしで視差を付けたものとなる。
【0034】
他の描画処理(その2)
▲1▼平面視映像等となるオブジェクトだけをまず描画する(上記と同様)。
▲2▼この描画結果を平らな背景画像として配置し、その前に平面視映像等以外となるオブジェクトを配置する。
▲3▼この状態で視線方向D1及び視線方向D2の描画処理を行なう。
【0035】
いずれの描画処理においても、平面視映像等以外となるオブジェクトについては視点位置が異なる二つの方向からの描画処理を実行し、平面視映像等となるオブジェクトについては一つの方向からの描画処理を実行する。
【0036】
図4は「ずらし量」の算出例を示した説明図である。平面視映像等のオブジェクトの代表的な距離をLとし、視線方向D1の画角が望む範囲(全体映像の水平画素数)をWとし、視線方向D1と視線方向D2の光軸間距離をPとして表している。平面視映像等のオブジェクトの描画画像の水平画素数をNとすると、ずらしの比率はP/Wとなり、ずらし量(画素数)は、N×P/Wとなる。
【0037】
【発明の効果】
以上説明したように、この発明によれば、映像ファイルを開いたときに作成者の意図を反映した映像表示を行なうことができる。また、描画処理速度を向上できるという効果を奏する。
【図面の簡単な説明】
【図1】この発明の実施形態の映像ファイル処理方法が利用されるシステムを示した説明図である。
【図2】この発明の実施形態の映像ファイル処理方法を示すフローチャートである。
【図3】仮想空間上のオブジェクトを示した説明図である。
【図4】ずらし量の算出例を示した説明図である。
【符号の説明】
1 送信側装置
2 インターネット
3 受信側装置[0001]
[Industrial application fields]
The present invention relates to a video file processing method and a video processing method.
[0002]
[Prior art]
Conventionally, as a stereoscopic technique, a stereoscopic method without glasses using a parallax barrier, a stereoscopic method with glasses using polarized glasses, liquid crystal shutter glasses, and the like are known. In addition, as a stereoscopic image, there is not only a live-action image but also a 3D drawing image in which an object placed in a virtual space is projected onto a plane and drawn using computer graphics. Furthermore, a right-eye image and a left-eye image can be created by performing the drawing process from two viewpoints. In addition, a stereoscopic video receiving apparatus and a stereoscopic video system that generate a stereoscopic video based on depth information extracted from a two-dimensional video signal and the two-dimensional video signal have been proposed (see Patent Document 1). If a video file composed of two-dimensional video and depth information is created, a stereoscopic video can be generated when this file is opened. In addition, a method has been proposed in which two videos are broadcast as one-channel video and can be stereoscopically viewed on the receiver side (see Patent Document 2). If a video file composed of two videos is created, a stereoscopic video can be generated when the file is opened.
[0003]
[Patent Document 1]
JP 2000-78611 A [Patent Document 1]
Japanese Patent Laid-Open No. 10-174064
[Problems to be solved by the invention]
By the way, in such a video file, it is desired that when the file is opened, the video is displayed reflecting the intention of the creator.
[0005]
In view of the above circumstances, an object of the present invention is to provide a video file processing method capable of displaying a video reflecting the creator's intention when the video file is opened. Provided is a video processing method capable of reducing the processing load of drawing processing.
[0006]
[Means for Solving the Problems]
The video file processing method according to the present invention is a video file processing method for generating video based on a video video file, a still video video file, or a computer graphics video file in order to solve the above-mentioned problem. If the control information indicating whether the video to be displayed is a stereoscopic video or a planar video is recorded in the file, and the control information is detected, the control information is based on the control information. And generating a stereoscopic video or a planar video.
[0007]
With the above configuration, the creator of the video file, for example, if the initial video is a planar video and the video file is created with the intention of displaying a stereoscopic video by the viewer's operation, the file is opened. It is only necessary to write control information indicating that the video to be displayed as a planar view video is written in the file, and when the device receiving the file executes the video file processing method, the file is opened. It is possible to display the initial image when it is displayed as a planar view image.
[0008]
The video file processing method of the present invention is a video file processing method for generating a video based on a moving picture video file. Whether the video file processing method is a stereoscopic video or a planar video for each frame or scene change. It is detected whether or not the control information to be recorded is recorded in a file, and when the control information is detected, a stereoscopic video or a planar video is generated based on the control information.
[0009]
With the above configuration, the creator of the video file, for example, when creating a video file with the intention of displaying a video with intense motion as a planar view video, for each frame or scene switching of the video with intense motion. It is only necessary to write control information indicating that the image is to be a planar view image every time, and the device on the side of receiving this file executes the above-mentioned image file processing method. The image can be displayed as a planar view image.
[0010]
The video file processing method of the present invention is a video file processing method for generating a video based on a moving image video file, a still image video file, or a computer graphics video file, which is displayed as a stereoscopic video or a planar video. Whether or not control information indicating the maintenance time is recorded in the file is detected, and when the control information is detected, a stereoscopic video or a planar video is generated based on the control information.
[0011]
With the above configuration, the creator of the video file, for example, creates a video file with the intention of displaying a stereoscopic video image for the first 3 seconds after the file is opened and then displaying a stereoscopic video image. In this case, it is only necessary to write in the file control information indicating that the image is to be a plane view image for 3 seconds after the file is opened, and the device that receives this file executes the above-mentioned image file processing method. Thus, the video can be displayed as a planar video for only the first 3 seconds when the file is opened. It is also possible to repeatedly display a planar video and a stereoscopic video at predetermined time intervals.
[0012]
In the video file processing method described above, when the control information recorded in the file is changed by a user operation, the changed control information may be recorded in the file. . According to this, editing reflecting the user's preference can be performed.
[0013]
The video file processing method according to the present invention is a video file processing method for generating video based on a video video file, a still video video file, or a computer graphics video file, wherein the playback video display of the file is a stereoscopic video. State information indicating whether the state is a state or a state of a planar view video is stored in the file itself or in another management file. Having the status information makes it easy to manage video files (whether the file playback video is displayed as a stereoscopic video or the file playback video is displayed as a planar video). .
[0014]
In the above video file processing method, when reproducing a file, the state information may be read, and a stereoscopic video or a planar video may be generated based on the status information. According to this, when the file is closed and then opened again, the previous state can be understood. For example, if the previous time was displaying the playback video of the file as a stereoscopic video, Even in the video playback of the file this time, the playback video of the file can be displayed as a stereoscopic video.
[0015]
Further, the video processing method of the present invention detects whether or not control information indicating whether the object constituting the video is a stereoscopic video or a planar video is recorded, and the control information is detected. In this case, for an object having control information indicating a stereoscopic video image, a rendering process is performed from two directions with different viewpoint positions to obtain a stereoscopic video image. A drawing process from one direction is executed.
[0016]
The video processing method of the present invention is a video file processing method for generating a video based on a moving image or a still image video file, wherein the depth position of each object constituting the video is detected, and the depth position is determined. For an object on the near side of the predetermined position, drawing processing from two directions with different viewpoint positions is executed to obtain a stereoscopic image, and one object is obtained for the object whose depth position is on the far side of the predetermined position. A drawing process from a direction is executed.
[0017]
With these video processing methods, the processing load is reduced and the drawing speed can be improved as compared with the case where drawing processing from two directions with different viewpoint positions is executed for all objects constituting the video.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
The video file processing method of the present invention will be described below with reference to FIGS.
[0019]
First, a video file processing method according to an embodiment of the present invention will be described with reference to FIG. In this figure, a description will be given of a system including a
[0020]
On the recording medium (not shown) of the
[0021]
For example, the reception-
[0022]
The receiving
[0023]
First control information: indicates whether a video to be displayed when a file is opened is a stereoscopic video or a planar video.
Second control information: indicates whether the image is a stereoscopic image or a planar image for each frame or scene change.
Third control information: Indicates a display maintenance time for stereoscopic video or planar video.
[0024]
When control information does not exist in the video file (NO in step S1), normal file reproduction processing is executed (step S23). On the other hand, if the control information exists in the video file (YES in step S1) and this control information is the first control information, it is determined whether the initial video is a stereoscopic video based on the first control information. It is determined whether or not the video is to be viewed (step S2). In the case of a stereoscopic video, a stereoscopic video display process is executed (step S3), and in the case of a planar video, a flat video display process is executed (step S6). Then, in the case of a stereoscopic video, it is determined whether or not a planar instruction has been given by the user (step S4), and in the case of a planar video, it is determined whether or not a stereoscopic instruction has been given by the user (step S7). For example, in the case where “stereoscopic” and “planar” buttons are provided as operation buttons of the MPEG player, the user can perform a plane instruction and a stereoscopic instruction by operating the buttons by a mouse operation or the like.
[0025]
When the user gives a plane instruction, a plane display process is performed (step S6), and when the user gives a stereoscopic instruction, a stereoscopic display process is performed (step S3). Usually, the viewer's impression is higher when switching from the state of flat image display to stereoscopic image display. When the plane instruction is not given by the user or when the stereoscopic instruction is not given, it is determined whether or not the reproduction of all the frames has been completed (steps S5 and S8). If all the frames have not been completed, the process proceeds to step S3 or step S6. On the other hand, if the processing is completed, final state information (whether it was flat display or stereoscopic display) is acquired (step S9) and recorded in a file (step S10). As described above, by storing the final state information in the file, it becomes easy to manage the video file (setting when the file is opened next time). If state information at the time of video display is held, it is possible to manage whether a playback video display of a file is displayed as a stereoscopic video or a playback video display of a file as a planar video, and a plurality of images can be managed. Is displayed and it is useful for managing the display state when a plane and a solid display are mixed. This is especially convenient when there are multiple images in the same window. The status information may be managed in a separate file, but if it is stored in individual files, as described above, the last final status can be known when opening the file, and it is originally given to the file. Processing such as giving priority to status information over control information becomes possible.
[0026]
If the control information exists in the video file (YES in step S1) and this control information is the second control information, whether the video is a stereoscopic video or a planar video based on the second control information. Is determined (step S11). In the case of a stereoscopic video, a stereoscopic video display process is executed (step S12), and in the case of a planar video, a flat video display process is executed (step S13). Then, it is determined whether or not all frames have been reproduced (step S14). If all the frames have not been completed, the process proceeds to step S11. As described above, the second control information is information indicating whether a stereoscopic video or a planar video is used for each frame or scene change. For example, if the creator of the video file creates a video file with the intention of displaying a video with a lot of movement as a flat-view video, the video file is a plane-view video for every frame of a video with a high movement or every scene change. It is sufficient to write the second control information indicating that the image is to be written into the file, and the receiving
[0027]
If control information exists in the video file (YES in step S1) and this control information is the third control information, a timer is started to execute processing based on the time indicated by the third control information. (Step S15) and it is determined whether the image is a stereoscopic image or a planar image (Step S16). In the case of a stereoscopic video, a stereoscopic video display process is executed (step S17), and in the case of a planar video, a flat video display process is executed (step S20). Then, it is determined whether or not the time indicated by the third control information has elapsed (steps S18 and S21). If the designated time is reached in the stereoscopic video display state (YES in step S18), the planar video display processing is executed (step S20), and if the designated time is reached in the planar video display state (YES in step S21). Then, a stereoscopic video display process is executed (step S17). If all the frames are not finished in the stereoscopic video display state (NO in step S19), the process proceeds to step S17. If all the frames are not finished in the planar video display state (NO in step S22), the process proceeds to step S20. As described above, the third control information is information indicating a display maintenance time for a stereoscopic video or a planar video. The creator of a video file, for example, when creating a video file with the intention of displaying a stereoscopic video for the first 3 seconds after opening the file and then displaying a stereoscopic video, the file is opened. It is only necessary to write third control information indicating that the image is to be a planar view image for 3 seconds from the beginning of the file, and when the device receiving this file executes the above-mentioned image file processing method, the file is opened. The image can be displayed as a planar view image only for the first 3 seconds. It is also possible to repeatedly display a planar video and a stereoscopic video at predetermined time intervals. For example, if the video of a product repeats a planar video and a stereoscopic video at predetermined time intervals on an online shopping HTML screen, the viewer's eyes are easily caught. Note that when the video position of a product to be stereoscopically viewed is shifted by the scroll operation, the stripe formation region in the liquid crystal barrier is also shifted corresponding to the video position of the product. In addition, the stripe area in the liquid crystal barrier is turned on / off in synchronization with the repetition of the stereoscopic video and the planar video.
[0028]
Further, for example, when a video file is played back on an MPEG player, an arbitrary frame can be displayed by performing a stop operation. When a “stereoscopic” button is operated as an operation button in this display state, control information “solid” can be associated with the frame being displayed. That is, the control information is recorded in the header of the frame. The MPEG player performs stereoscopic video display in the video display after the frame to which the control information “stereoscopic” is attached. By such processing, it is possible to create (edit) a video file in which the user side is set to stereoscopically view a desired portion.
[0029]
FIG. 3 is an explanatory diagram showing a state in which objects A, B, and C are arranged in the virtual coordinate space by computer graphics processing. Each object is a collection of polygon images. When the virtual space is displayed as a video, a drawing process for projecting the object onto a plane corresponding to the state seen from the line-of-sight direction D1 is executed, and a two-dimensional image obtained by the drawing process is displayed on the screen. Become. Further, when the virtual space is stereoscopically viewed, a drawing process for projecting the object onto a plane corresponding to the state viewed from the line-of-sight direction D2 is executed, and a two-dimensional image obtained by the drawing process is displayed on the right side. A stereoscopic video display may be performed using an eye image and a two-dimensional image based on the line-of-sight direction D1 as a left eye image. For example, in a video display device configured as a game device, an object to be arranged in a space to be displayed based on a command from a game operation unit (joystick, etc.) is stored from a storage unit (CD-ROM, ROM cassette, etc.). Reading and drawing processing are executed by the drawing processor, and a video signal is generated by the video signal generator.
[0030]
Control information indicating whether the object is a stereoscopic video or a planar video is associated with the objects A, B, and C. The video display device determines whether the video is a stereoscopic video or a planar video based on the control information added to the object read from the storage unit. Here, it is assumed that control information for stereoscopic video is added to the objects A and B, and control information for planar video is added to the object C. When the video display apparatus stereoscopically views the virtual space, first, the video display apparatus executes a drawing process for projecting the objects A, B, and C onto a two-dimensional plane in correspondence with the state viewed from the line-of-sight direction D1. Then, a drawing process for projecting the objects A and B onto a two-dimensional plane is executed in correspondence with the state viewed from the line-of-sight direction D2. For the object C in the video viewed from the line-of-sight direction D2, an image obtained by simply moving the image of the object C obtained by the process in the line-of-sight direction D1 by several pixels may be used. For example, on the game software creator side, control information to be viewed in plane view is added to objects that do not have a problem even if they are displayed in a plane, such as the background, or objects that will be displayed far away. Will do. Thereby, the drawing processing speed is improved.
[0031]
Even when the control information is not added to the object read from the storage unit, the video display device acquires the Z value information (depth information) of the object, and whether the Z value information is behind the predetermined threshold (Z value). Whether the object is a stereoscopic video or a planar video can be determined depending on whether the object is on the near side. That is, when stereoscopically viewing the virtual space, the video display device first executes a drawing process for projecting the objects A, B, and C onto a two-dimensional plane in correspondence with the state viewed from the line-of-sight direction D1. Then, when projecting the objects A and BC on the two-dimensional plane in correspondence with the state viewed from the line-of-sight direction D2, based on the respective Z value information, the object whose Z value information is on the near side of a predetermined threshold value. Only perform the drawing process. For an object that is not subject to processing in the line-of-sight direction D2 drawing process, an object image obtained by the line-of-sight direction D1 process may be simply moved horizontally by several pixels. In the above processing, status information indicating whether each object is processed as a stereoscopic video or a planar video may be held for each object. An object that flies from the front position of the screen toward the back of the screen is processed as a stereoscopic video until halfway, and is processed as a planar video after that, and the state information changes.
[0032]
In the drawing process, the object C may be completely or partially hidden by another object in the drawing from the line-of-sight direction D1, and the hidden part may be drawn in the drawing from the line-of-sight direction D2. . Therefore, the following processing may be performed.
[0033]
Other drawing processing (part 1)
{Circle around (1)} Only an object that is a plane view image or an image whose Z value information is behind the predetermined threshold (hereinafter referred to as a plane view image or the like) is first drawn. By this drawing, the entire drawing data of the object is obtained (there is no hidden part). The drawing line-of-sight direction may be D1 or D2. Further, the line-of-sight direction may be set in the middle of D1 and D2.
{Circle around (2)} An object other than a planar view image or the like is drawn in the line-of-sight direction D1 and the line-of-sight direction D2 to obtain two images.
{Circle around (3)} The drawing data of the object to be the above-mentioned planar view video is synthesized with each video. This drawing data is arranged behind an object other than a planar view video or the like. In addition, in the two videos, the arrangement positions of the objects that are the planar video and the like are shifted. In other words, the parallax is given by shifting horizontally.
[0034]
Other drawing processing (part 2)
{Circle around (1)} Only an object that becomes a planar view image or the like is first drawn (same as above).
{Circle around (2)} This drawing result is arranged as a flat background image, and an object other than a planar view image is arranged before that.
{Circle around (3)} In this state, drawing processing in the line-of-sight direction D1 and the line-of-sight direction D2 is performed.
[0035]
In any drawing processing, drawing processing from two directions with different viewpoint positions is executed for an object other than a planar video and the like, and drawing processing from one direction is executed for an object that is a planar video and the like. To do.
[0036]
FIG. 4 is an explanatory diagram showing an example of calculating the “shift amount”. A typical distance of an object such as a planar image is L, a range in which the angle of view in the line-of-sight direction D1 is desired (the number of horizontal pixels in the entire image) is W, and a distance between the optical axes in the line-of-sight direction D1 and the line-of-sight direction D2 is P. It represents as. When the number of horizontal pixels of a drawn image of an object such as a planar video is N, the shift ratio is P / W, and the shift amount (number of pixels) is N × P / W.
[0037]
【The invention's effect】
As described above, according to the present invention, it is possible to display a video reflecting the creator's intention when the video file is opened. In addition, the drawing processing speed can be improved.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram showing a system in which a video file processing method according to an embodiment of the present invention is used.
FIG. 2 is a flowchart showing a video file processing method according to the embodiment of the present invention.
FIG. 3 is an explanatory diagram showing objects in a virtual space.
FIG. 4 is an explanatory diagram showing a calculation example of a shift amount.
[Explanation of symbols]
1 Sending
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002364395A JP4183499B2 (en) | 2002-12-16 | 2002-12-16 | Video file processing method and video processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002364395A JP4183499B2 (en) | 2002-12-16 | 2002-12-16 | Video file processing method and video processing method |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008118535A Division JP4827881B2 (en) | 2008-04-30 | 2008-04-30 | Video file processing method and video transmission / reception playback system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004200813A JP2004200813A (en) | 2004-07-15 |
| JP4183499B2 true JP4183499B2 (en) | 2008-11-19 |
Family
ID=32762271
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002364395A Expired - Fee Related JP4183499B2 (en) | 2002-12-16 | 2002-12-16 | Video file processing method and video processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4183499B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4695664B2 (en) | 2008-03-26 | 2011-06-08 | 富士フイルム株式会社 | 3D image processing apparatus, method, and program |
| KR101539935B1 (en) * | 2008-06-24 | 2015-07-28 | 삼성전자주식회사 | Method and apparatus for processing 3D video image |
| US8934757B2 (en) | 2010-06-23 | 2015-01-13 | Panasonic Corporation | Content distribution system, playback device, distribution server, playback method, and distribution method |
| JP2012028934A (en) * | 2010-07-21 | 2012-02-09 | Sharp Corp | Three-dimensional display device, display method, program, and recording medium |
| WO2013145326A1 (en) | 2012-03-30 | 2013-10-03 | 富士通株式会社 | Determination device, determination program, and determination method |
-
2002
- 2002-12-16 JP JP2002364395A patent/JP4183499B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004200813A (en) | 2004-07-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6747610B1 (en) | Stereoscopic image display apparatus capable of selectively displaying desired stereoscopic image | |
| US8472702B2 (en) | Method and apparatus for processing three-dimensional images | |
| US6496598B1 (en) | Image processing method and apparatus | |
| JP4903888B2 (en) | Image display device, image display method, and image correction method | |
| JP3749227B2 (en) | Stereoscopic image processing method and apparatus | |
| US20110096155A1 (en) | Display apparatus and image display method therein | |
| WO2003081921A1 (en) | 3-dimensional image processing method and device | |
| JP2005295004A (en) | Stereoscopic image processing method and apparatus thereof | |
| JP3857988B2 (en) | Stereoscopic image processing method and apparatus | |
| JP2004221700A (en) | Stereoscopic image processing method and apparatus | |
| JP2004221699A (en) | Stereoscopic image processing method and apparatus | |
| JP4183499B2 (en) | Video file processing method and video processing method | |
| JP2009169334A (en) | Image processing apparatus and method, program, and recording medium | |
| JP2004220127A (en) | Stereoscopic image processing method and device | |
| JP4827881B2 (en) | Video file processing method and video transmission / reception playback system | |
| JP2004104742A (en) | Method and apparatus for generating three-dimensional video data | |
| JP5222407B2 (en) | Image display device, image display method, and image correction method | |
| WO2011108180A1 (en) | Stereoscopic image output device and method of outputting stereoscopic image | |
| JPH1139508A (en) | Stereoscopic image display device and method and computer readable record medium recording stereoscopic image display program | |
| KR100480007B1 (en) | System for producing and displaying three dimensional image and method for the same | |
| JPH07222201A (en) | Method for conversion from two-dimensional image to three-dimensional image | |
| JP2024148528A (en) | Image processing device, image processing method, and program | |
| JPH07240942A (en) | Recording method for stereoscopic image information | |
| MXPA00002201A (en) | Image processing method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050602 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20071128 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071211 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080208 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080311 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080430 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080508 |
|
| A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20080529 |
|
| 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: 20080805 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080902 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110912 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110912 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110912 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120912 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130912 Year of fee payment: 5 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |