JP2004104332A - Image processor, image processing method, recording medium, and program - Google Patents
Image processor, image processing method, recording medium, and program Download PDFInfo
- Publication number
- JP2004104332A JP2004104332A JP2002261543A JP2002261543A JP2004104332A JP 2004104332 A JP2004104332 A JP 2004104332A JP 2002261543 A JP2002261543 A JP 2002261543A JP 2002261543 A JP2002261543 A JP 2002261543A JP 2004104332 A JP2004104332 A JP 2004104332A
- Authority
- JP
- Japan
- Prior art keywords
- image
- stereoscopic
- eye
- button
- block
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Stereoscopic And Panoramic Photography (AREA)
- Processing Or Creating Images (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、画像処理装置および方法、記録媒体、並びにプログラムに関し、例えば、左眼用の画像と右眼用の画像を元にして立体視画像を生成する場合に用いて好適な画像処理装置および方法、記録媒体、並びにプログラムに関する。
【0002】
【従来の技術】
従来、人の左右の眼がそれぞれ取得する網膜像の空間的ずれ(両眼視差)を利用して、2次元の画像を立体的に視認させる方法(以下、立体視の方法と記述する)が数多く知られている。
【0003】
立体視の方法としては、特殊なメガネを利用するアナグリフ方式、カラーアナグリフ方式、偏光フィルタ方式、時分割立体テレビジョン方式等と、特殊なメガネを利用しないレンチキュラ方式等が知られている(いずれについても、例えば、非特許文献1参照)。
【0004】
アナグリフ方式は、例えば、左眼用の画像(以下、L画像と記述する)を赤色モノトーン画像に変換し、右眼用の画像(以下、R画像と記述する)を青色モノトーン画像に変換して、赤色モノトーン画像と青色モノトーン画像を重ね合わせる。そして、その画像を、左側に赤色フィルタ、右側に青色フィルタが配置されたメガネ(以下、赤青メガネと記述する)を用いて見る方法である。アナグリフ方式は、比較的容易で安価に実施できることが、画像全体がモノトーンとなってしまう。
【0005】
カラーアナグリフ方式は、アナグリフ方式の短所を補うものであり、L画像とR画像を重ね合わせたとき、それぞれの画像において対応する箇所がずれる部分(すなわち、視差が大きい部分)については、アナグリフ方式と同様に、例えば、L画像を赤色モノトーン画像に変換し、R画像を青色モノトーン画像に変換して重ね合わせる。それぞれの画像の対応する箇所がずれない部分(すなわち、視差が小さい部分)については、本来の色の状態で重ね合わせる。そして、その画像を、赤青メガネを用いて見る方法である。
【0006】
カラーアナグリフ方式では、画像全体のうち、視差が少ない部分については、本来の色を再現することができる。なお、カラーアナグリフ方式には、視差が少ない部分に用いる色の違いにより、複数のバリエーションが存在する。以下、視差が小さい部分に本来の色を用いる方式を、第1のカラーアナグリフ方式と記述する。また、視差が小さい部分に本来の色を用いない方式を、第2のカラーアナグリフ方式と記述する。
【0007】
偏光フィルタ方式は、例えば、垂直方向の直線偏光によって投影されたL画像と、水平方向の直線偏光によって投影されたR画像を重ね合わせる。そして、その画像を、左側に垂直方向の直線偏光フィルタ、右側に水平方向の直線偏光フィルタが配置された偏光フィルタメガネを用いて見る方法である。偏光フィルタ方式は、色の再現性がよく、解像度が高いことが長所であるが、偏光フィルタを利用することにより画像が暗くなってしまう短所がある。
【0008】
時分割立体テレビジョン方式は、テレビジョン受像機に、L画像とR画像を、フィールド周期毎に交互に表示するようにし、その映像を、テレビジョン受像機のフィールド周期に同期して左眼側と右眼側を交互に開閉する液晶シャッタメガネを用いて見る方法である。時分割立体テレビジョン方式は、液晶シャッタメガネの開閉動作を高い精度で制御することが重要となる。
【0009】
レンチキュラ方式は、画面を縦方向のストライプ状の領域に区分し、各ストライプ上の領域に交互に、L画像とR画像を表示し、その映像を、レンチキュラスクリーンと称されるレンズで覆う方法である。
【0010】
ところで、上述したさまざまな立体視の方法を実現するためには、L画像とR画像を取得する必要がある。L画像とR画像を取得するためには、同一の被写体を、カメラの位置を人の両眼の間隔だけ移動して2回撮影する方法が最も容易である。
【0011】
また、1回の撮影でL画像とR画像を取得する方法として、例えば、図1に示すように、ミラーなどから構成される光学アダプタ11を、カメラ1の撮影レンズ3の外側に取り付ける方法が知られている(例えば、特許文献1参照)。
【0012】
図2は、光学アダプタ11の構造を模式的に表している。単一の採光窓から入射される右眼用の光学像は、ミラー21によってミラー22に向けて反射され、ミラー22によって撮影レンズ3に向けて反射された後、撮影レンズ3によって集光される。単一の採光窓から入射される左眼用の光学像は、ミラー21,22によって反射されることなく、撮影レンズ3によって集光される。
【0013】
光学アダプタ11を介して入射された光学像は、図3に示すように、左眼用の領域および右眼用の領域からなる画像(以下、視差画像と記述する)として撮影される。この左眼用の領域がL画像として利用され、右眼用の領域がR画像として利用される。
【0014】
【非特許文献1】
泉武博監修、NHK放送技術研究所編「3次元映像の基礎」オーム出版、平成7年6月5日発行
【特許文献1】
特開平11−46373号公報
【0015】
【発明が解決しようとする課題】
ところで、様々な立体視の方法において、L画像およびR画像とを相互に取り違えて利用してしまった場合、その画像を立体的に視認することはできない。したがって、そのような事態が生じた場合を想定して、L画像とR画像を相互に置換できるように仕組みを備えていれば便利である。
【0016】
しかしながら、立体視を実現する従来の装置には、L画像とR画像を相互に速やかに置換する仕組みは備えられていない課題があった。
【0017】
本発明はこのような状況に鑑みてなされたものであり、立体視画像の元となるL画像とR画像とを、速やかに相互に置換できるようにすることを目的とする。
【0018】
【課題を解決するための手段】
本発明の画像処理装置は、第1の画像を左眼用の画像とし、第2の画像を右眼用の画像として、左眼用の画像および右眼用の画像データを用いて、立体視画像を表示するための画像データを生成する生成手段と、ユーザの操作を受け付ける受付手段と、受付手段によって受け付けられたユーザの操作に対応して、第2の画像を左眼用の画像とし、第1の画像を右眼用の画像として、立体視画像を表示するための画像データを再生成させる生成制御手段とを含むことを特徴とする。
【0019】
前記生成手段は、立体視画像の奇数ラインについては左眼用の画像および右眼用の画像のうちの一方の画像データを優先的に用い、立体視画像の偶数ラインについては左眼用の画像および右眼用の画像のうちの他方の画像データを優先的に用いて、立体視画像を表示するための画像データを生成するようにすることができる。
【0020】
前記生成手段は、立体視画像の奇数ラインについては左眼用の画像および右眼用の画像のうちの一方の画像データを用い、立体視画像の偶数ラインについては左眼用の画像および右眼用の画像のうちの他方の画像データを用いて、立体視画像を表示するための画像データを生成するようにすることができる。
【0021】
本発明の画像処理方法は、第1の画像を左眼用の画像とし、第2の画像を右眼用の画像として、左眼用の画像および右眼用の画像データを用いて、立体視画像を表示するための画像データを生成する生成ステップと、ユーザの操作を受け付ける受付ステップと、受付ステップの処理で受け付けられたユーザの操作に対応して、第2の画像を左眼用の画像とし、第1の画像を右眼用の画像として、立体視画像を表示するための画像データを再生成させる生成制御ステップとを含むことを特徴とする。
【0022】
本発明の記録媒体のプログラムは、第1の画像を左眼用の画像とし、第2の画像を右眼用の画像として、左眼用の画像および右眼用の画像データを用いて、立体視画像を表示するための画像データを生成する生成ステップと、ユーザの操作を受け付ける受付ステップと、受付ステップの処理で受け付けられたユーザの操作に対応して、第2の画像を左眼用の画像とし、第1の画像を右眼用の画像として、立体視画像を表示するための画像データを再生成させる生成制御ステップとを含むことを特徴とする。
【0023】
本発明のプログラムは、第1の画像を左眼用の画像とし、第2の画像を右眼用の画像として、左眼用の画像および右眼用の画像データを用いて、立体視画像を表示するための画像データを生成する生成ステップと、ユーザの操作を受け付ける受付ステップと、受付ステップの処理で受け付けられたユーザの操作に対応して、第2の画像を左眼用の画像とし、第1の画像を右眼用の画像として、立体視画像を表示するための画像データを再生成させる生成制御ステップとを含む処理をコンピュータに実行させることを特徴とする。
【0024】
本発明の画像処理装置および方法、並びにプログラムにおいては、第1の画像が左眼用の画像とされ、第2の画像が右眼用の画像とされて、左眼用の画像および右眼用の画像データが用いられて立体視画像を表示するための画像データが生成される。また、ユーザの操作に対応して、第2の画像が左眼用の画像とされ、第1の画像が右眼用の画像とされて、立体視画像を表示するための画像データが再生成させられる。
【0025】
【発明の実施の形態】
図4は、本発明を適用した立体視システムの構成例を示している。この立体視システムは、主に、立体視画像を生成するパーソナルコンピュータ(PC)31、表示された立体視画像を見るときにユーザが使用するフィルタメガネ41、およびパーソナルコンピュータ31の表示部57の表示面外側に配置するライン偏光43から構成される。
【0026】
パーソナルコンピュータ31は、図1に示されたように、光学アダプタ11が装着された状態のカメラ(ディジタルスチルカメラ)1によって撮影された視差画像、光学アダプタ11が装着されていない状態で撮影された画像などを取り込み、視差画像または連続的に撮影された2枚の画像からなる画像対を元にして立体視画像を生成して表示する。なお、ディジタルスチルカメラ1からパーソナルコンピュータ31に取り込まれる視差画像等の画像データには、撮影された日時、撮影された順序を示すシリアルなファイル番号、連写モードで撮影されたか否かを示す連写モードフラグなどの属性情報が付与されている。
【0027】
フィルタメガネ41は、パーソナルコンピュータ31に接続された支持棒42により、パーソナルコンピュータ31のキーボード付近の上方空間に位置するように支持されている。フィルタメガネ41の左側の枠には、垂直方向の直線偏光フィルタが配置されている。また、右側の枠には、水平方向の直線偏光フィルタが配置されている。
【0028】
パーソナルコンピュータ31の表示部57の表示面外側に配置するライン偏光板43は、水平方向の偶数ラインに垂直方向の直線偏光フィルタが、水平方向の奇数ラインに水平方向の直線偏光フィルタが配置されている。
【0029】
フィルタメガネ41、支持棒42、およびライン偏光板43は、例えば、図1の光学アダプタ11、並びに画像処理プログラム65(図10を参照して後述する)などとセットにされて販売される。
【0030】
次に、パーソナルコンピュータ31によって立体視画像が生成される過程の概要について、図5乃至図8を参照して説明する。
【0031】
図5は、光学アダプタ11が装着されたディジタルスチルカメラ1によって撮影された視差画像を示している。同図において、視差画像の右眼用の領域は、ミラーによって反射されているものであり、左眼用の領域は、ミラーによって反射されていないものであるとする。そこで、以下においては、視差画像の右眼用の領域をミラー画像、左眼用の領域をスルー画像と記述する。
【0032】
上述したように、ミラー画像は、スルー画像に比較して、画質(輝度、彩度、解像度等)が劣化している。特に、ミラー画像の周辺部(上辺部、下辺部、および左辺部)は、中心部に比較して輝度が低下している。また、ミラー画像は、本来、矩形である画像が台形に歪んだものとなる。そこで、始めにミラー画像の画質が補正され(詳細については、図14を参照して後述する)、画像の形状の歪みが補正される。次に、図6に示すように、ミラー画像およびスルー画像がそれぞれトリミングされて、R画像およびL画像が生成される。
【0033】
次に、図7に示すように、次式(1)に従って、L画像とR画像が合成されて、図8に示すような立体視画像が生成される。
【0034】
以上で、立体視画像が生成される過程の概要についての説明を終了する。生成された立体視画像は、表示部57に表示される。図9に示すように、ユーザは、表示部57に表示された立体視画像を、フィルタメガネ41およびライン偏光板43を介して見ることになる。したがって、ユーザの左眼は、立体視画像の偶数ライン、すなわち、1ライン置きのL画像を見ることになり、ユーザの右眼は、立体視画像の奇数ライン、すなわち、1ライン置きのR画像を見ることになる。よって、ユーザは、立体視画像を立体的に視認することが可能となる。
【0035】
次に、図10は、画像処理プログラム65を実行することにより、立体視画像を生成する処理等を実行するパーソナルコンピュータ31の構成例を示している。
【0036】
パーソナルコンピュータ31は、CPU(Central Processing Unit)51を内蔵している。CPU51には、バス54を介して、入出力インタフェース55が接続されている。バス54には、ROM(Read Only Memory)52およびRAM(Random Access
Memory)53が接続されている。
【0037】
入出力インタフェース55には、ユーザが操作コマンドを入力するキーボード、マウスなどの入力デバイスよりなる操作入力部56、GUI(Graphical User Interface)や生成される立体視画像等を表示するLCD(Liquid Crystal Display)等よりなる表示部57、各種のプログラムやデータを格納するハードディスクドライブなどよりなる記憶部58、およびインタネット等のネットワークを介してデータを通信する通信部59が接続されている。また、入出力インタフェース55には、磁気ディスク61、光ディスク62、光磁気ディスク63、および半導体メモリ64などの記録媒体に対してデータを読み書きするドライブ60が接続されている。
【0038】
CPU51は、ROM52に記憶されているプログラム、または磁気ディスク61乃至半導体メモリ64から読み出されて記憶部65に記憶され、記憶部65からRAM53にロードされたプログラムに従って各種の処理を実行する。RAM53にはまた、CPU51が各種の処理を実行する上において必要なデータなども適宜記憶される。
【0039】
このパーソナルコンピュータに立体視画像を生成する処理等を実行させる画像処理プログラム65は、磁気ディスク61(フレキシブルディスクを含む)、光ディスク62(CD−ROM(Compact Disc−Read Only Memory)、DVD(Digital Versatile Disc)を含む)、光磁気ディスク63(MD(Mini Disc)を含む)、もしくは半導体メモリ64に格納された状態でパーソナルコンピュータ31に供給され、ドライブ60によって読み出されて記憶部58に内蔵されるハードディスクドライブにインストールされている。記憶部58にインストールされている画像処理プログラム65は、操作入力部56に入力されるユーザからのコマンドに対応するCPU51の指令によって、記憶部58からRAM53にロードされて実行される。
【0040】
図11は、CPU51が画像処理プログラムを実行することによって実現される機能ブロックの構成例示している。
【0041】
GUIブロック71は、GUIに対するユーザの操作に対応して、画像管理部72乃至表示制御部76を制御する。画像管理ブロック72は、GUIブロック71からの制御に従い、ディジタルカメラ1から取り込まれて記憶部58等に記憶されている視差画像などの画像データを、画像処理プログラム65が取り扱うデータとして管理する。また、画像管理ブロック72は、視差画像に付加されている属性情報に、サムネイル画像(縮小画像)の画像データ、トリミングされる領域の位置を示す情報、画質が補正されるときの設定値を示す情報、上下方向の位置が調整されるときの調整値を示す情報等を追加する。
【0042】
画像取得ブロック73は、GUIブロック71からの制御に従い、画像管理ブロック72によって管理されている視差画像などの画像データを取得し、ベース画像選択ブロック74に出力する。ベース画像選択ブロック74は、ユーザの操作に対応するGUIブロック71からの制御に従い、画像処理ブロック73から入力される画像のうち、ユーザによって選択された視差画像または画像対を立体視画像生成ブロック75に出力する。また、ベース画像選択ブロック74は、ユーザの操作に対応するGUIブロック71からの制御に従い、画像処理ブロック73から入力される画像のうち、立体視画像の元とすることができる画像対を選択して、立体視画像生成ブロック75に出力する。
【0043】
立体視画像生成ブロック75は、GUIブロック71からの制御に従い、ベース画像選択ブロック74から入力される視差画像または画像対を元に、立体視画像を生成して表示制御ブロック76に出力する。表示制御ブロック76は、GUIブロック71からの制御に従い、GUIおよび生成される立体視画像の表示を制御する。
【0044】
次に、視差画像を元にして立体視画像を生成する立体視画像生成処理について説明するが、その前に、画像処理プログラム65に対応するウィンドウと当該ウィンドウ上のGUIについて、図12および図13を参照して説明する。
【0045】
図12は、画像処理プログラム65が起動されたときに表示されるウィンドウ101の表示例を示している。ウィンドウ101には、処理の対象とする画像のサムネイルなどが表示されるメインエリア102、および「立体視」ボタン104乃至「エンド」ボタン107が設けられている。
【0046】
「画像取得」ボタン103は、立体視画像の元とする視差画像および画像対を選択するためのサムネイルをメインエリア102に表示させるときに押下される。「立体視画像」ボタン104は、選択された立体視画像(または画像対)を元にして立体視画像の生成を開始させるときに押下される。「LR置換」ボタン105は、立体視画像の元となるL画像とR画像を置換させるときに押下される。「印刷」ボタン106は、生成された立体視画像などをプリントアウトするときに押下される。「エンド」ボタン107は、画像処理プログラムを終了させるときに押下される。
【0047】
図13は、「画像取得」ボタン103が押下されたときのウィンドウ101の表示例を示している。メインエリア102には、ディジタルカメラ1から取り込まれた視差画像、通常の画像(連続的に撮影された画像対含む)などのサムネイル画像が表示される。メインエリア102の上側には、「視差画像選択」ボタン111、「画像対選択」ボタン112、および「画像対自動選択」ボタン113が設けられる。
【0048】
「視差画像選択」ボタン111は、メインエリア102に表示されているサムネイル画像のうち、視差画像に対応するものを選択するときに押下される。すなわち、ユーザは、「視差画像選択」ボタン111を押下した後、視差画像に対応するサムネイルを1つだけ選択することができる。
【0049】
「画像対選択」ボタン112は、メインエリア102に表示されているサムネイル画像のうち、立体視画像の元とする画像対に対応するものを選択するときに押下される。すなわち、ユーザは、「画像対選択」ボタン112を押下した後、画像対に対応するサムネイルを2つ選択することができる。
【0050】
「画像対自動選択」ボタン113は、メインエリア102に表示されているサムネイル画像のうち、立体視画像の元とする画像対を自動的に選択させるときに押下される。
【0051】
次に、視差画像を元にして立体視画像を生成する立体視画像生成処理について、図14のフローチャートを参照して説明する。この立体視画像生成処理は、図13に示されたメインエリア102のサムネイルのうち、視差画像に対応するものがユーザによって選択された後、「立体視画像」ボタン104が押下されたときに開始される。
【0052】
ステップS1において、ベース画像選択ブロック74は、画像処理ブロック73から入力される画像データのうち、GUIブロック71からの制御に従い、ユーザが選択する視差画像の画像データを立体視画像生成ブロック75に出力する。
【0053】
ステップS2において、立体視画像生成ブロック75は、ミラー画像の周辺部の輝度を、実験結果に基づくルックアップテーブル(または関数)を用いて補正する。この補正に関する情報は、画像管理ブロック72に出力され、画像管理ブロック72により、視差画像の属性情報に追加される。
【0054】
ここで、実験とは、画像処理プログラム65の開発者側によって実施されたものである。具体的には、光学アダプタ11を装着した状態のディジタルカメラ1で画角の全体を占める白壁等を撮影し、得られた視差画像のうちのミラー画像について、中心部と周辺部の画素の輝度を比較する。そして、その比較結果に基づき、周辺部の画素の輝度が、中心部の画素の輝度と一致するように、例えば、周辺部の座標を入力とし、当該座標に対する補正値を出力するようなルックアップテーブル(関数でもよい)を生成する。または、周辺部の輝度を入力とし、当該輝度に対する補正値を出力するようなルックアップテーブルを生成する。そして、生成したルックアップテーブルを画像処理プログラム65に組み込むようにすればよい。画像処理プログラム65には、ディジタルカメラ1の機種に対応して複数のルックアップテーブルを組み込むようにしてもよい。
【0055】
なお、ステップS2において、スルー画像の輝度も修正するようにしてもよい。
【0056】
また、ステップS2において、立体視画像生成ブロック75は、台形に歪んでいるミラー画像の形状を補正する。なお、このミラー画像の形状の補正については、本出願人が特開2002−34054号として既に提案済であるので、その説明は省略する。
【0057】
ステップS3において、立体視画像生成ブロック75は、補正済のミラー画像とスルー画像との全体的な輝度を比較して、その比較結果に基づいて、ミラー画像の輝度を補正する。具体的には、ミラー画像とスルー画像のそれぞれにおいて、所定の複数(例えば、4点)のサンプリング点の輝度を加算し、ミラー画像における輝度の加算値と、スルー画像の輝度の加算値を比較して、その差がなくなるように、ミラー画像を補正する。この補正に関する情報も、画像管理ブロック72に出力され、画像管理ブロック72により、視差画像の属性情報に追加される。
【0058】
例えば、ミラー画像における4サンプリング点の輝度の加算値が350であり、スルー画像の4サンプリング点の輝度の加算値が500である場合、その差150をサンプリング点の数で除算した値(150/4)を、ミラー画像の全ての画素の輝度に加算する。
【0059】
また、ステップS3において、立体視画像生成ブロック75は、ミラー画像とスルー画像の全体的な彩度が一致するように、ミラー画像の色差を補正する。この補正に関する情報も、画像管理ブロック72に出力され、画像管理ブロック72により、視差画像の属性情報に追加される。
【0060】
ステップS4において、立体視画像生成ブロック75は、ミラー画像に対し、所定のエッジ強調処理を施して、画像の全体的なぼけを補正する。ステップS5において、立体視画像生成ブロック75は、ユーザの操作に対応するGUIブロック71からの制御に従い、ミラー画像とスルー画像をそれぞれトリミングして、それぞれを、L画像とR画像に設定する。このトリミング位置に関する情報は、画像管理ブロック72に出力され、画像管理ブロック72により、視差画像の属性情報に追加される。
【0061】
ステップS6において、立体視画像生成ブロック75は、ユーザの操作に対応するGUIブロック71からの制御に従い、L画像とR画像の上下方向の位置を調整する。なお、L画像とR画像の上下方向の位置を調整する過程の情報は、表示制御ブロック76に出力されて、その調整の様子がメインエリア102に表示される(詳細は図16のフローチャートを参照して後述する)。
【0062】
ステップS7において、立体視画像生成ブロック75は、ステップS6の処理で上下方向の位置が調整されたL画像およびR画像を、式(1)に従って合成し、立体視画像を生成する。生成された立体視画像は、メインエリア102に表示される。また、生成された立体視画像の画像データは、画像管理ブロック72により、元となった視差画像に対応付けて記憶される。
【0063】
なお、ユーザからの所定の操作により、生成された立体視画像を表示部57の全体を占めるように表示させることも可能である。以上で、立体視画像生成処理の説明を終了する。
【0064】
ところで、画像処理プログラム65によれば、2枚の画像からなる画像対を元にしても、立体視画像を生成することができる。この画像対は、図13に示された「画像対選択」ボタン112を押下して、メインエリア102に表示されているサムネイル画像のうちの2つを選択することにより、ユーザが任意に選択することができる。
【0065】
画像対が選択された後、「立体視画像」ボタン104が押下された場合、画像対の一方がL画像とされ、他方がR画像とされて、上述したステップS6以降の処理が開始されて、立体視画像が生成される。生成された立体視画像の画像データは、画像管理ブロック72により、元となった画像対に対応付けて記憶される。
【0066】
なお、立体視画像の元とする画像対を自動的に選択させることもできる。画像対を自動的に選択する処理について、図15のフローチャートを参照して説明する。この画像対自動選択処理は、図13に示された「画像対自動選択」113が押下されたときに開始される。また、この画像対自動選択処理は、画像処理ブロック73からベース画像選択ブロック74に入力される画像が1つずつ処理対象とされて実行される。
【0067】
ステップS11において、ベース画像選択ブロック74は、処理対象の画像が連写モードで撮影されたものであるか否かを、属性情報に含まれる連写フラグを参照して判定する。処理対象の画像が連写モードで撮影されたものではないと判定された場合、処理はステップS12に進む。
【0068】
ステップS12において、ベース画像選択ブロック74は、処理対象の画像と、1枚後に撮影された画像との撮影日時の差が所定の閾値(例えば、数秒)以内であるか否かを判定する。撮影日時の差が所定の閾値以内であると判定された場合、処理はステップS13に進む。
【0069】
ステップS13において、ベース画像選択ブロック74は、処理対象の画像と、1枚後に撮影された画像との類似度を算出し、類似度が所定の閾値以内であるか否かを判定する。ここで、2枚の画像の類似度としては、例えば、それぞれから所定の1ライン分の画素を抽出し、対応する画素同士の差分の総和を算出するようにする。
【0070】
処理対象の画像と1枚後に撮影された画像との類似度が所定の閾値以内であると判定された場合、処理対象の画像と1枚後に撮影された画像とは、同一の被写体を連続して撮影したものであると判断できるので、処理対象の画像と1枚後に撮影された画像とを画像対に設定する。
【0071】
画像対に設定された2枚の画像のサムネイルは、画像対に設定されたことをユーザに通知するために、メインエリア102において、例えば、単一の太枠で囲まれる。また、画像対の情報は、画像管理ブロック72に出力され、画像対のそれぞれの画像データの付加情報に、画像対の相手を示す情報(シリアル番号等)が追加される。あるいは、画像対をなす2つの画像データとそれぞれの属性情報を新たなフォルダを生成して記憶するようにしてもよい。
【0072】
なお、ステップS11において、処理対象の画像が連写モードで撮影されたものであると判定された場合、ステップS12はスキップされ、処理はステップS13に進む。
【0073】
ステップS12において、処理対象の画像と、1枚後に撮影された画像との撮影日時の差が所定の閾値以内ではないと判定された場合、この2枚の画像は、立体視画像の元とする画像対に適していないので、画像対自動選択処理は終了される。
【0074】
ステップS13において、処理対象の画像と、1枚後に撮影された画像との類似度が所定の閾値以内ではないと判定された場合にも、この2枚の画像は、立体視画像の元とする画像対に適していないので、画像対自動選択処理は終了される。以上で、画像対自動選択処理の説明を終了する。
【0075】
この画像対自動選択処理が、画像処理ブロック73からベース画像選択ブロック74に入力される全ての画像を処理対象として実行された後に、複数の画像対が設定されている場合、ユーザは設定された複数の画像対のうち、1つの画像対を選択することができる。画像対がユーザによって選択された後、「立体視画像」ボタン104が押下された場合、上述したステップS6以降の処理が開始されて、立体視画像が生成される。生成された立体視画像の画像データは、画像管理ブロック72により、元となった画像対に対応付けて記憶される。
【0076】
ただし、画像対を元にして立体視画像を生成した場合、画像対の一方をL画像とし、他方をR画像とする設定が適切ではなかった場合(逆であった場合)、立体的に視認することはできない。このとき、ユーザが「LR置換」ボタン105を押下すれば、L画像とR画像が置換されて、立体的に視認できる立体視画像が再生成される。
【0077】
また、「LR置換」ボタン105を押下して立体視画像を再生成させることは、表示された立体視画像に対して、ライン偏光板43が1ライン分だけ上下方向にずれて設置されている場合にも有効に作用する。
【0078】
次に、図14のステップS6の処理、すなわち、L画像とR画像の上下方向の位置を調整する処理の詳細について、図16のフローチャートおよび図17を参照して説明する。
【0079】
ステップS21において、立体視画像生成ブロック75は、ステップS6の処理で設定したL画像およびR画像のサムネイル画像を、画像管理ブロック72から取得する。ステップS22において、立体視画像生成ブロック75は、L画像のサムネイル画像とR画像のサムネイル画像の同じ座標の画素を50%ずつ加算して合成画像を生成する。
【0080】
このとき、ウィンドウ101の表示は、例えば、図17に示すようなものとなる。すなわち、メインエリア102には、L画像が表示されたL画像表示エリア121、R画像が表示されたR画像表示エリア122、および合成画像が表示された合成画像表示エリア123が設けられる。
【0081】
メインエリア102の上方には、L画像に対するR画像の相対的な位置を上方に移動させて合成画像を再生成させるときに操作させる「R画像上方移動」ボタン124、L画像に対するR画像の相対的な位置を下方に移動させ合成画像を再生成させるときに操作される「R画像下方移動」ボタン125、およびL画像に対するR画像の相対的な位置の調整が終了したとき操作される「位置調整終了」ボタン126が設けられる。
【0082】
図14に戻る。ステップS23において、GUIブロック71は、「R画像上方移動」ボタン124または「R画像下方移動」ボタン125が押下されたか否かを判定する。「R画像上方移動」ボタン124または「R画像下方移動」ボタン125が押下されたと判定された場合、処理はステップS24に進む。ステップS24において、立体視画像生成ブロック75は、ユーザの操作に従うGUIブロック71からの制御に基づき、L画像に対するR画像の相対的な位置を上方または下方に移動させて、合成画像を再生成する。
【0083】
このとき、合成画像表示エリア123の表示は、再生成された合成画像に更新される。なお、ステップS23において、「R画像上方移動」ボタン124および「R画像下方移動」ボタン125が押下されていない判定された場合、ステップS24はスキップされ、処理はステップS25に進む。
【0084】
ステップS25において、GUIブロック71は、「位置調整終了」ボタン126が押下されたか否かを判定する。「位置調整終了」ボタン126が押下されていないと判定された場合、ステップS23に戻り、それ以降の処理が繰り返される。
【0085】
従って、ユーザは、合成画像表示エリア123に表示される合成画像を見ながら、「R画像上方移動」ボタン124または「R画像下方移動」ボタン125を押下することにより、L画像とR画像の上下方向の位置を調整することができる。なお、再生成されて表示される合成画像は、データ量の少ない縮小された画像であるので、この再生成の処理は速やかに実行される。
【0086】
ステップS25において、「位置調整終了」ボタン126が押下されたと判定された場合、処理はステップS26に進む。ステップS26において、立体視画像生成ブロック75は、L画像とR画像の上下方向の位置の調整値を画像管理ブロック72に出力する。画像管理ブロック72は、この上下方向の位置の調整値を、視差画像の属性情報に追加する。なお、画像対がL画像とR画像とされている場合、この上下方向の位置の調整値は、画像対の両方の属性情報に追加される。この後、処理は、上述した図14のステップS7に戻ることとなる。
【0087】
以上で、L画像とR画像の上下方向の位置を調整する処理の説明を終了する。
【0088】
なお、上述した説明においては、「R画像上方移動」ボタン124または「R画像下方移動」ボタン125を押下することにより、L画像に対するR画像の相対的な位置を上方または下方に移動させるようにしたが、例えば、合成画像表示エリア123に表示されている合成画像を、マウス(操作入力部56)を用いて、上方または下方にドラッグアンドドロップすることにより、L画像に対するR画像の相対的な位置を上方または下方に移動させるようにしてもよい。
【0089】
次に、図18は、立体視画像が生成されたときのウィンドウ101の表示例を示している。メインエリア102には、生成された立体視画像が表示される。メインエリア102の上側には、メインエリア102の表示を、立体視画像から、立体視画像の元となったL画像およびR画像を用いて従来の立体視の方法によって立体的に視認することができる画像に変換させるときに押下される「アナグリフ」ボタン131乃至「液晶シャッタメガネ」135が設けられている。また、メインエリア102の左側には、生成された立体視画像に任意の文字、記号などを書き込むときに押下される「テキスト入力」ボタン136が追加して設けられている。
【0090】
「アナグリフ」ボタン131は、立体視画像の元となったL画像およびR画像を用いてアナグリフ方式の画像(以下、アナグリフ画像と記述する)を生成させるときに押下される。「カラーアナグリフ1」ボタン132は、立体視画像の元となったL画像およびR画像を用いて第1のカラーアナグリフ方式の画像(以下、第1のカラーアナグリフ画像と記述する)を生成させるときに押下される。「カラーアナグリフ2」ボタン133は、立体視画像の元となったL画像およびR画像を用いて第2のカラーアナグリフ方式の画像(以下、第2のカラーアナグリフ画像と記述する)を生成させるときに押下される。これらの場合、ユーザは、赤青メガネを用いて画像を見る必要がある。
【0091】
「レンチキュラ」ボタン134は、立体視画像の元となったL画像およびR画像を用いてレンチキュラ方式の画像(以下、第1のレンチキュラ画像と記述する)を生成させるときに押下される。この場合、ユーザは、レンチキュラスクリーンを介して画像を見る必要がある。
【0092】
「液晶シャッタメガネ」ボタン135は、立体視画像の元となったL画像およびR画像を時分割立体テレビジョン方式で表示させるときに押下される。この場合、ユーザは、表示部57のフィールド周期に同期して左眼側と右眼側を交互に開閉する液晶シャッタメガネを用いて画像を見る必要がある。
【0093】
次に、メインエリア102に表示されている立体視画像を、ユーザの操作に対応して変換する処理について、図19のフローチャートを参照して説明する。
【0094】
この立体視画像変換処理は、立体視画像が生成され、図18に示されたようなウィンドウ101が表示されたときに開始される。
【0095】
ステップS31において、GUIブロック71は、「LR置換」ボタン105が押下されたか否かを判定する。「LR置換」ボタン105が押下されたと判定された場合、処理はステップS32に進む。ステップS32において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、現在生成されている立体視画像の元となったL画像とR画像を置換して、立体視画像を再生成する。表示制御ブロック76は、再生成された立体視画像を、メインエリア102に表示させる。この後、処理はステップS43に進む。
【0096】
ステップS31において、「LR置換」ボタン105が押下されていないと判定された場合、処理はステップS33に進む。ステップS33において、GUIブロック71は、「アナグリフ」ボタン131が押下されたか否かを判定する。「アナグリフ」ボタン131が押下されたと判定された場合、処理はステップS34に進む。ステップS34において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、現在生成されている立体視画像の元となったL画像とR画像を用い、アナグリフ画像を生成する。表示制御ブロック76は、生成されたアナグリフ画像をメインエリア102に表示させる。この後、処理はステップS45に進む。
【0097】
ステップS33において、「アナグリフ」ボタン131が押下されていないと判定された場合、処理はステップS35に進む。ステップS35において、GUIブロック71は、「カラーアナグリフ1」ボタン132が押下されたか否かを判定する。「カラーアナグリフ1」ボタン132が押下されたと判定された場合、処理はステップS36に進む。ステップS36において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、現在生成されている立体視画像の元となったL画像とR画像を用い、第1のカラーアナグリフ画像を生成する。表示制御ブロック76は、生成された第1のカラーアナグリフ画像をメインエリア102に表示させる。この後、処理はステップS45に進む。
【0098】
ステップS35において、「カラーアナグリフ1」ボタン132が押下されていないと判定された場合、処理はステップS37に進む。ステップS37において、GUIブロック71は、「カラーアナグリフ2」ボタン133が押下されたか否かを判定する。「カラーアナグリフ2」ボタン133が押下されたと判定された場合、処理はステップS38に進む。ステップS38において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、現在生成されている立体視画像の元となったL画像とR画像を用い、第2のカラーアナグリフ画像を生成する。表示制御ブロック76は、生成された第2のカラーアナグリフ画像をメインエリア102に表示させる。この後、処理はステップS45に進む。
【0099】
ステップS37において、「カラーアナグリフ2」ボタン133が押下されていないと判定された場合、処理はステップS39に進む。ステップS39において、GUIブロック71は、「レンチキュラ」ボタン134が押下されたか否かを判定する。「レンチキュラ」ボタン134が押下されたと判定された場合、処理はステップS40に進む。ステップS40において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、現在生成されている立体視画像の元となったL画像とR画像を用い、レンチキュラ画像を生成する。表示制御ブロック76は、生成されたレンチキュラ画像をメインエリア102に表示させる。この後、処理はステップS45に進む。
【0100】
ステップS39において、「レンチキュラ」ボタン134が押下されていないと判定された場合、処理はステップS41に進む。ステップS41において、GUIブロック71は、「液晶シャッタメガネ」ボタン135が押下されたか否かを判定する。「液晶シャッタメガネ」ボタン135が押下されたと判定された場合、処理はステップS42に進む。ステップS42において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、現在生成されている立体視画像の元となったL画像とR画像を表示制御ブロック76に供給する。表示制御ブロック76は、GUIブロック71からの制御に従い、L画像とR画像を、表示部57のフィールド周期に同期して交互にメインエリア102に表示させる。この後、処理はステップS43に進む。
【0101】
ステップS43において、GUIブロック71は、何らかのボタンが押下されるまで待機する。何らかのボタンが押下されたと判定された場合、処理はステップS44に進む。ステップS44において、GUIブロック71は、「エンド」ボタン107が押下されたか否かを判定する。「エンド」ボタン107が押下されたと判定された場合、立体視画像変換処理は終了され、さらに、実行されている画像処理プログラム65も終了される。
【0102】
ステップS44において、「エンド」ボタン107が押下されてないと判定された場合、ステップS31に戻り、それ以降の処理が繰り返される。
【0103】
ステップS34,S36,S38、またはS40の処理の後に実行されるステップS45において、GUIブロック71は、何らかのボタンが押下されるまで待機する。何らかのボタンが押下されたと判定された場合、処理はステップS46に進む。ステップS46において、GUIブロック71は、「印刷」ボタン106が押下されたか否かを判定する。「印刷」ボタン106が押下されたと判定された場合、処理はステップS47に進む。ステップS47において、表示制御ブロック76は、GUIブロック71からの制御に従い、メインエリア102に表示されているアナグリフ画像、第1のカラーアナグリフ画像、第2のアナグリフ画像、またはレンチキュラ画像の画像データをプリンタ(不図示)に出力して印刷させる。
【0104】
印刷されたアナグリフ画像、第1のカラーアナグリフ画像、または第2のアナグリフ画像は、赤青メガネを用いることにより、立体的に視認することができる。印刷されたレンチキュラ画像は、レンチキュラパネルを介することにより、立体的に視認することができる。以上で、立体視画像変換処理の説明を終了する。
【0105】
次に、図20は、「テキスト入力」ボタン136が押下されたときのウィンドウ101の表示例を示している。メインエリア102の上側には、メインエリア102に表示されている立体視画像に重畳して、任意の文字、記号等を表示させるためのテキスト入力エリア141が設けられている。テキスト入力エリア141に入力される文字等は、立体的に視認されるように立体視画像に重畳される。ユーザは、マウス(操作入力部56)を用いてドラッグアンドドロップすることにより、テキスト入力エリア141を任意の位置に移動することができる。
【0106】
メインエリア102の上側には、テキスト入力エリア141に入力された文字等の立体視したときの遠近感を近づけるときに押下される「近く」ボタン142、およびテキスト入力エリア141に入力される文字等の立体視したときの遠近感を遠ざけるときに押下される「遠く」ボタン143が設けられている。
【0107】
ここで、テキスト入力処理について、図21のフローチャートを参照して説明する。このテキスト入力処理は、「テキスト入力」ボタン136が押下されたときに開始される。
【0108】
ステップS51において、表示制御ブロック76は、メインエリア102に表示されている立体視画像に重畳して、テキスト入力エリア141を表示する。ユーザがテキスト入力エリア141に任意の文字等を入力すると、立体視画像生成ブロック75は、入力された文字等が所定の遠近感で立体的に視認されるように、立体視画像に文字等を重畳する。
【0109】
ステップS52において、GUIブロック71は、「近く」ボタン142が押下されたか否かを判定する。「近く」ボタン142が押下されたと判定された場合、処理はステップS53に進む。ステップS53において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、入力された文字等の遠近感がより近くで立体的に視認されるように、立体視画像に文字等を重畳する。なお、ステップS52において、「近く」ボタン142が押下されていないと判定された場合、ステップS53の処理はスキップされる。
【0110】
ステップS54において、GUIブロック71は、「遠く」ボタン143が押下されたか否かを判定する。「遠く」ボタン143が押下されたと判定された場合、処理はステップS55に進む。ステップS55において、立体視画像生成ブロック75は、GUIブロック71からの制御に従い、入力された文字等の遠近感がより遠くで立体的に視認されるように、立体視画像等に文字等を重畳する。なお、ステップS54において、「遠く」ボタン143が押下されていないと判定された場合、ステップS55の処理はスキップされる。
【0111】
ステップS56において、GUIブロック71は、「テキスト入力」ボタン13642が再び押下されたか否かを判定する。「テキスト入力」ボタン136が再び押下されていないと判定された場合、ステップS52に戻り、それ以降の処理が繰り返される。
【0112】
ステップS56において、「テキスト入力」ボタン13642が再び押下されたと判定された場合、処理はステップS57に進む。ステップS57において、立体視画像生成ブロック75は、入力された文字等のテキスト情報、文字等の立体視画像上の座標情報、文字等の立体視における遠近の情報を画像管理ブロック72に出力する。画像管理ブロック72は、立体視画像の画像データに対応付けて記録する。以上で、テキスト入力処理の説明を終了する。
【0113】
なお、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に従って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。
【0114】
また、本明細書において、システムとは、複数の装置により構成される装置全体を表すものである。
【0115】
【発明の効果】
以上のように、本発明によれば、立体視画像の元となるL画像とR画像とを、速やかに相互に置換することが可能となる。
【図面の簡単な説明】
【図1】光学アダプタをカメラに取り付けた状態を示す図である。
【図2】図1の光学アダプタの構成例を示す図である。
【図3】光学アダプタ取り付けた状態のカメラによって撮影される視差画像を示す図である。
【図4】本発明を適用した立体視システムの構成例を示す図である。
【図5】ミラー画像とスルー画像から構成される視差画像を示す図である。
【図6】ミラー画像とスルー画像からトリミングされるL画像とR画像を示す図である。
【図7】L画像とR画像を合成して立体視画像生成する処理を説明するための図である。
【図8】立体視画像を示す図である。
【図9】立体視画像を立体的に視認する概要を説明するための図である。
【図10】図4のパーソナルコンピュータの構成例を示すブロック図である。
【図11】図10のCPUが画像処理プログラムを実行すること実現する機能ブロックの構成例を示す図である。
【図12】画像処理プログラムに対応するウィンドウの表示例を示す図である。
【図13】図12の「画像取得」ボタンが押下されたときのウィンドウの表示例を示す図である。
【図14】立体視画像生成処理を説明するフローチャートである。
【図15】画像対自動選択処理を説明するフローチャートである。
【図16】L画像とR画像の上下方向の位置調整処理を説明するフローチャートである。
【図17】L画像とR画像の上下方向の位置調整処理におけるウィンドウの表示例を示す図である。
【図18】立体視画像が生成されたときのウィンドウの表示例を示す図である。
【図19】立体視画像変換処理を説明するフローチャートである。
【図20】図18の「テキスト入力」ボタンが押下されたときのウィンドウの表示例を示す図である。
【図21】テキスト入力処理を説明するフローチャートである。
【符号の説明】
1 ディジタルスチルカメラ, 11 光学アダプタ, 31 パーソナルコンピュータ, 41 フィルタメガネ, 43 ライン偏光板, 51 CPU,61 磁気ディスク, 62 光ディスク, 63 光磁気ディスク, 64半導体メモリ, 65 画像処理プログラム, 71 GUIブロック, 72画像管理ブロック, 73 画像取得ブロック, 74 ベース画像選択ブロック, 75 立体視画像生成ブロック, 76 表示制御ブロック[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus and method, a recording medium, and a program, for example, an image processing apparatus and a suitable image processing apparatus suitable for use in generating a stereoscopic image based on an image for the left eye and an image for the right eye The present invention relates to a method, a recording medium, and a program.
[0002]
[Prior art]
Conventionally, there is a method of stereoscopically viewing a two-dimensional image using spatial displacement (binocular disparity) of retinal images obtained by the left and right eyes of a person (hereinafter, referred to as a stereoscopic method). Many are known.
[0003]
Known stereoscopic methods include an anaglyph method using special glasses, a color anaglyph method, a polarizing filter method, a time-division stereoscopic television method, and a lenticular method using no special glasses. For example, see Non-Patent Document 1).
[0004]
In the anaglyph method, for example, an image for the left eye (hereinafter, described as an L image) is converted into a red monotone image, and an image for the right eye (hereinafter, described as an R image) is converted into a blue monotone image. And superimpose the red monotone image and the blue monotone image. Then, the image is viewed using glasses with red filters on the left and blue filters on the right (hereinafter referred to as red-blue glasses). The anaglyph method is relatively easy and can be implemented at low cost, but the whole image becomes monotone.
[0005]
The color anaglyph method compensates for the disadvantages of the anaglyph method, and when the L image and the R image are superimposed, the corresponding portion of each image is shifted (that is, the portion where the parallax is large). Similarly, for example, the L image is converted to a red monotone image, and the R image is converted to a blue monotone image and superimposed. A portion where the corresponding portion of each image does not shift (that is, a portion where parallax is small) is superimposed in an original color state. Then, the image is viewed using red-blue glasses.
[0006]
In the color anaglyph method, an original color can be reproduced for a portion having a small parallax in the entire image. Note that the color anaglyph method has a plurality of variations depending on the color used for a portion having a small parallax. Hereinafter, a method of using an original color for a portion having a small parallax is referred to as a first color anaglyph method. In addition, a method in which an original color is not used in a portion where parallax is small is referred to as a second color anaglyph method.
[0007]
In the polarization filter method, for example, an L image projected by linearly polarized light in the vertical direction and an R image projected by linearly polarized light in the horizontal direction are superimposed. Then, the image is viewed using polarizing filter glasses in which a vertical linear polarization filter is arranged on the left side and a horizontal linear polarization filter is arranged on the right side. The polarizing filter method has advantages in that color reproducibility is good and resolution is high, but there is a disadvantage that an image is darkened by using a polarizing filter.
[0008]
In the time-division stereoscopic television system, an L image and an R image are alternately displayed on a television receiver every field cycle, and the video is synchronized with the field cycle of the television receiver on the left eye side. And the liquid crystal shutter glasses that alternately open and close the right eye side and the right eye side. In the time-division stereoscopic television system, it is important to control the opening and closing operation of the liquid crystal shutter glasses with high accuracy.
[0009]
The lenticular method is a method in which a screen is divided into vertical stripe-shaped regions, an L image and an R image are alternately displayed on the regions on each stripe, and the image is covered with a lens called a lenticular screen. is there.
[0010]
By the way, in order to realize the various stereoscopic viewing methods described above, it is necessary to acquire an L image and an R image. In order to acquire the L image and the R image, it is easiest to take the same subject twice by moving the camera position by the distance between both eyes of a person.
[0011]
As a method of acquiring the L image and the R image in one photographing, for example, as shown in FIG. 1, a method of attaching an
[0012]
FIG. 2 schematically illustrates the structure of the
[0013]
The optical image incident via the
[0014]
[Non-patent document 1]
Supervised by Takehiro Izumi, edited by NHK Science and Technical Research Laboratories, "Basics of 3D Video" Ohm Publishing, published June 5, 1995 [Patent Document 1]
JP-A-11-46373
[Problems to be solved by the invention]
By the way, in various stereoscopic viewing methods, if the L image and the R image are used interchangeably, the image cannot be viewed stereoscopically. Therefore, assuming that such a situation occurs, it is convenient if a mechanism is provided so that the L image and the R image can be replaced with each other.
[0016]
However, the conventional apparatus for realizing stereoscopic vision has a problem in that a mechanism for quickly replacing the L image and the R image with each other is not provided.
[0017]
The present invention has been made in view of such a situation, and it is an object of the present invention to quickly replace an L image and an R image that are the basis of a stereoscopic image with each other.
[0018]
[Means for Solving the Problems]
The image processing apparatus according to the present invention is configured to perform stereoscopic viewing by using a first image as a left-eye image, a second image as a right-eye image, and using a left-eye image and a right-eye image data. A generating unit that generates image data for displaying an image, a receiving unit that receives a user operation, and a second image corresponding to the user operation received by the receiving unit, the second image being an image for the left eye, Generating control means for regenerating image data for displaying a stereoscopic image using the first image as an image for the right eye.
[0019]
The generation means preferentially uses one image data of an image for a left eye and an image for a right eye for an odd line of a stereoscopic image, and an image for a left eye for an even line of a stereoscopic image. Image data for displaying a stereoscopic image can be generated by preferentially using the other image data of the right-eye image and the right-eye image.
[0020]
The generation means uses one image data of an image for a left eye and an image for a right eye for an odd line of a stereoscopic image, and an image for a left eye and a right eye for an even line of a stereoscopic image. Image data for displaying a stereoscopic image can be generated by using the other image data of the image for use.
[0021]
The image processing method according to the present invention provides stereoscopic viewing using a first image as a left-eye image, a second image as a right-eye image, and a left-eye image and a right-eye image data. A generating step of generating image data for displaying an image, a receiving step of receiving a user operation, and a second image corresponding to the user operation received in the processing of the receiving step. And a generation control step of regenerating image data for displaying a stereoscopic image using the first image as an image for the right eye.
[0022]
The program of the recording medium according to the present invention uses the first image as a left-eye image and the second image as a right-eye image, using the left-eye image and the right-eye image data to generate a three-dimensional image. A generating step of generating image data for displaying a visual image, a receiving step of receiving a user operation, and a second image for the left eye corresponding to the user operation received in the processing of the receiving step. And a generation control step of regenerating image data for displaying a stereoscopic image using the first image as an image for the right eye.
[0023]
The program of the present invention uses the left-eye image and the right-eye image data to generate a stereoscopic image using the first image as the left-eye image and the second image as the right-eye image. A generating step of generating image data for display, a receiving step of receiving a user operation, and a second image corresponding to the user operation received in the processing of the receiving step, wherein the second image is an image for the left eye, The computer is configured to execute a process including a generation control step of regenerating image data for displaying a stereoscopic image using the first image as an image for the right eye.
[0024]
In the image processing apparatus and method and the program according to the present invention, the first image is an image for the left eye, the second image is an image for the right eye, and the image for the left eye and the image for the right eye are used. Is used to generate image data for displaying a stereoscopic image. Further, in response to the user's operation, the second image is set to the image for the left eye, the first image is set to the image for the right eye, and the image data for displaying the stereoscopic image is regenerated. Let me do.
[0025]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 4 shows a configuration example of a stereoscopic vision system to which the present invention is applied. The stereoscopic system mainly includes a personal computer (PC) 31 for generating a stereoscopic image, filter glasses 41 used by a user when viewing the displayed stereoscopic image, and display on a
[0026]
As shown in FIG. 1, the
[0027]
The filter glasses 41 are supported by a support rod 42 connected to the
[0028]
The
[0029]
The filter glasses 41, the support bar 42, and the
[0030]
Next, an outline of a process of generating a stereoscopic image by the
[0031]
FIG. 5 shows a parallax image captured by the digital
[0032]
As described above, the mirror image has deteriorated image quality (luminance, saturation, resolution, etc.) as compared with the through image. In particular, the peripheral portion (upper side, lower side, and left side) of the mirror image has lower luminance than the central portion. Further, the mirror image is an image which is originally rectangular and is distorted into a trapezoid. Therefore, first, the image quality of the mirror image is corrected (the details will be described later with reference to FIG. 14), and the distortion of the image shape is corrected. Next, as shown in FIG. 6, the mirror image and the through image are trimmed, respectively, to generate an R image and an L image.
[0033]
Next, as shown in FIG. 7, the L image and the R image are combined according to the following equation (1) to generate a stereoscopic image as shown in FIG.
[0034]
This is the end of the description of the outline of the process of generating a stereoscopic image. The generated stereoscopic image is displayed on the
[0035]
Next, FIG. 10 illustrates a configuration example of a
[0036]
The
[0037]
The input /
[0038]
The
[0039]
An
[0040]
FIG. 11 illustrates a configuration example of a functional block realized by the
[0041]
The
[0042]
The
[0043]
The stereoscopic
[0044]
Next, a stereoscopic image generation process for generating a stereoscopic image based on a parallax image will be described. Before that, a window corresponding to the
[0045]
FIG. 12 shows a display example of a
[0046]
An “acquire image”
[0047]
FIG. 13 shows a display example of the
[0048]
The “select parallax image”
[0049]
The “select image pair”
[0050]
The “automatic image pair selection”
[0051]
Next, a stereoscopic image generation process for generating a stereoscopic image based on a parallax image will be described with reference to the flowchart in FIG. This stereoscopic image generation processing is started when the “stereoscopic image”
[0052]
In step S1, the base
[0053]
In step S2, the stereoscopic
[0054]
Here, the experiment was performed by the developer of the
[0055]
In step S2, the luminance of the through image may be corrected.
[0056]
In step S2, the stereoscopic
[0057]
In step S3, the stereoscopic
[0058]
For example, if the sum of the luminances of the four sampling points in the mirror image is 350 and the sum of the luminances of the four sampling points of the through image is 500, a value obtained by dividing the difference 150 by the number of sampling points (150/150) 4) is added to the luminance of all pixels of the mirror image.
[0059]
In step S3, the stereoscopic
[0060]
In step S4, the stereoscopic
[0061]
In step S6, the stereoscopic
[0062]
In step S7, the stereoscopic
[0063]
In addition, it is also possible to display the generated stereoscopic image so as to occupy the
[0064]
By the way, according to the
[0065]
When the “stereoscopic image”
[0066]
It should be noted that an image pair serving as a source of a stereoscopic image can be automatically selected. Processing for automatically selecting an image pair will be described with reference to the flowchart in FIG. This image pair automatic selection process is started when the “image pair automatic selection” 113 shown in FIG. 13 is pressed. In addition, this image pair automatic selection processing is executed by processing the images input from the
[0067]
In step S11, the base
[0068]
In step S12, the base
[0069]
In step S13, the base
[0070]
If it is determined that the similarity between the image to be processed and the image captured one image later is within a predetermined threshold, the image to be processed and the image captured one image later are the same subject continuously. Therefore, the image to be processed and the image captured one image after are set as an image pair.
[0071]
The thumbnails of the two images set in the image pair are surrounded by, for example, a single thick frame in the
[0072]
If it is determined in step S11 that the image to be processed has been shot in the continuous shooting mode, step S12 is skipped and the process proceeds to step S13.
[0073]
If it is determined in step S12 that the difference between the shooting date and time of the image to be processed and the image taken one image after is not within a predetermined threshold, the two images are used as the source of the stereoscopic image. Since the image is not suitable for the image pair, the image pair automatic selection process ends.
[0074]
In step S13, even when it is determined that the similarity between the image to be processed and the image captured one image later is not within the predetermined threshold, the two images are used as the source of the stereoscopic image. Since the image is not suitable for the image pair, the image pair automatic selection process ends. This concludes the description of the image pair automatic selection process.
[0075]
When this image pair automatic selection process is performed on all images input from the
[0076]
However, when a stereoscopic image is generated based on an image pair, if one of the image pairs is set to be an L image and the other is set to be an R image (if the setting is not reversed), the image is viewed stereoscopically. I can't. At this time, if the user presses the “LR replacement”
[0077]
Depressing the “LR replacement”
[0078]
Next, the details of the process of step S6 in FIG. 14, that is, the process of adjusting the vertical position of the L image and the R image will be described with reference to the flowchart of FIG. 16 and FIG.
[0079]
In step S21, the stereoscopic
[0080]
At this time, the display of the
[0081]
Above the
[0082]
It returns to FIG. In step S23, the
[0083]
At this time, the display of the composite
[0084]
In step S25, the
[0085]
Accordingly, the user presses the “move R image upward”
[0086]
If it is determined in step S25 that the “end position adjustment”
[0087]
This concludes the description of the processing for adjusting the vertical position of the L image and the R image.
[0088]
In the above description, the relative position of the R image with respect to the L image is moved upward or downward by pressing the “R image upward move”
[0089]
Next, FIG. 18 illustrates a display example of the
[0090]
The “anaglyph”
[0091]
The “Lenticular”
[0092]
The “liquid crystal shutter glasses”
[0093]
Next, a process of converting a stereoscopic image displayed in the
[0094]
This stereoscopic image conversion processing is started when a stereoscopic image is generated and a
[0095]
In step S31, the
[0096]
If it is determined in step S31 that the “LR replacement”
[0097]
If it is determined in step S33 that the “anaglyph”
[0098]
If it is determined in step S35 that the “
[0099]
If it is determined in step S37 that the “color anaglyph 2”
[0100]
If it is determined in step S39 that the “lenticular”
[0101]
In step S43, the
[0102]
If it is determined in step S44 that the "end"
[0103]
In step S45 executed after the processing of step S34, S36, S38 or S40, the
[0104]
The printed anaglyph image, the first color anaglyph image, or the second anaglyph image can be viewed three-dimensionally by using red and blue glasses. The printed lenticular image can be visually recognized three-dimensionally via the lenticular panel. This is the end of the description of the stereoscopic image conversion processing.
[0105]
Next, FIG. 20 shows a display example of the
[0106]
Above the
[0107]
Here, the text input processing will be described with reference to the flowchart in FIG. This text input processing is started when the “text input”
[0108]
In step S51, the
[0109]
In step S52, the
[0110]
In step S54, the
[0111]
In step S56, the
[0112]
If it is determined in step S56 that the “text input” button 13642 has been pressed again, the process proceeds to step S57. In step S57, the stereoscopic
[0113]
In this specification, the steps of describing a program recorded on a recording medium include, in addition to processing performed in chronological order according to the described order, not only chronological processing but also parallel or individual processing. This includes the processing to be executed.
[0114]
Also, in this specification, a system refers to an entire device including a plurality of devices.
[0115]
【The invention's effect】
As described above, according to the present invention, it is possible to quickly replace the L image and the R image that are the basis of the stereoscopic image with each other.
[Brief description of the drawings]
FIG. 1 is a diagram showing a state where an optical adapter is attached to a camera.
FIG. 2 is a diagram illustrating a configuration example of an optical adapter in FIG. 1;
FIG. 3 is a diagram illustrating a parallax image captured by a camera with an optical adapter attached.
FIG. 4 is a diagram showing a configuration example of a stereoscopic vision system to which the present invention is applied.
FIG. 5 is a diagram illustrating a parallax image including a mirror image and a through image.
FIG. 6 is a diagram showing an L image and an R image trimmed from a mirror image and a through image.
FIG. 7 is a diagram illustrating a process of generating a stereoscopic image by combining an L image and an R image.
FIG. 8 is a diagram showing a stereoscopic image.
FIG. 9 is a diagram for describing an overview of stereoscopically viewing a stereoscopic image.
10 is a block diagram illustrating a configuration example of the personal computer in FIG.
11 is a diagram illustrating a configuration example of a functional block that is implemented when the CPU of FIG. 10 executes an image processing program.
FIG. 12 is a diagram illustrating a display example of a window corresponding to an image processing program.
FIG. 13 is a diagram showing a display example of a window when an “image acquisition” button in FIG. 12 is pressed.
FIG. 14 is a flowchart illustrating a stereoscopic image generation process.
FIG. 15 is a flowchart illustrating an image pair automatic selection process.
FIG. 16 is a flowchart illustrating a vertical position adjustment process of an L image and an R image.
FIG. 17 is a diagram illustrating a display example of a window in a vertical position adjustment process of an L image and an R image.
FIG. 18 is a diagram illustrating a display example of a window when a stereoscopic image is generated.
FIG. 19 is a flowchart illustrating a stereoscopic image conversion process.
FIG. 20 is a diagram illustrating a display example of a window when the “text input” button in FIG. 18 is pressed.
FIG. 21 is a flowchart illustrating a text input process.
[Explanation of symbols]
Claims (6)
第1の画像を前記左眼用の画像とし、第2の画像を前記右眼用の画像として、前記左眼用の画像および前記右眼用の画像データを用いて、前記立体視画像を表示するための画像データを生成する生成手段と、
ユーザの操作を受け付ける受付手段と、
前記受付手段によって受け付けられた前記ユーザの操作に対応して、前記第2の画像を前記左眼用の画像とし、前記第1の画像を前記右眼用の画像として、前記立体視画像を表示するための画像データを再生成させる生成制御手段と
を含むことを特徴とする画像処理装置。An image processing apparatus that generates image data for displaying a stereoscopic image based on an image for the left eye and an image for the right eye,
The first image is used as the image for the left eye, and the second image is used as the image for the right eye. The stereoscopic image is displayed using the image for the left eye and the image data for the right eye. Generating means for generating image data for performing
Receiving means for receiving a user operation;
Displaying the stereoscopic image with the second image as the image for the left eye and the first image as the image for the right eye in response to the operation of the user received by the receiving unit. And a generation control unit for regenerating image data for performing image processing.
ことを特徴とする請求項1に記載の画像処理装置。The generating means preferentially uses one image data of the image for the left eye and the image for the right eye for an odd line of the stereoscopic image, and the image data for an even line of the stereoscopic image. The image data for displaying the stereoscopic image is generated by preferentially using the other image data of the image for the left eye and the image for the right eye. Image processing device.
ことを特徴とする請求項1に記載の画像処理装置。The generating means uses one image data of the image for the left eye and the image for the right eye for an odd line of the stereoscopic image, and uses the image data for the left eye for an even line of the stereoscopic image. The image processing apparatus according to claim 1, wherein image data for displaying the stereoscopic image is generated using the other image data of the image for the right eye and the image for the right eye.
第1の画像を前記左眼用の画像とし、第2の画像を前記右眼用の画像として、前記左眼用の画像および前記右眼用の画像データを用いて、前記立体視画像を表示するための画像データを生成する生成ステップと、
ユーザの操作を受け付ける受付ステップと、
前記受付ステップの処理で受け付けられた前記ユーザの操作に対応して、前記第2の画像を前記左眼用の画像とし、前記第1の画像を前記右眼用の画像として、前記立体視画像を表示するための画像データを再生成させる生成制御ステップと
を含むことを特徴とする画像処理方法。In an image processing method of an image processing apparatus that generates image data for displaying a stereoscopic image based on an image for a left eye and an image for a right eye,
The first image is used as the image for the left eye, and the second image is used as the image for the right eye. The stereoscopic image is displayed using the image for the left eye and the image data for the right eye. A generating step of generating image data for performing
A receiving step of receiving a user operation;
In response to the operation of the user accepted in the process of the accepting step, the stereoscopic image is obtained by setting the second image as the image for the left eye and the first image as the image for the right eye. A generation control step of regenerating image data for displaying the image data.
第1の画像を前記左眼用の画像とし、第2の画像を前記右眼用の画像として、前記左眼用の画像および前記右眼用の画像データを用いて、前記立体視画像を表示するための画像データを生成する生成ステップと、
ユーザの操作を受け付ける受付ステップと、
前記受付ステップの処理で受け付けられた前記ユーザの操作に対応して、前記第2の画像を前記左眼用の画像とし、前記第1の画像を前記右眼用の画像として、前記立体視画像を表示するための画像データを再生成させる生成制御ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。A program for generating image data for displaying a stereoscopic image based on a left-eye image and a right-eye image,
The first image is used as the image for the left eye, and the second image is used as the image for the right eye. The stereoscopic image is displayed using the image for the left eye and the image data for the right eye. A generating step of generating image data for performing
A receiving step of receiving a user operation;
In response to the operation of the user accepted in the process of the accepting step, the stereoscopic image is obtained by setting the second image as the image for the left eye and the first image as the image for the right eye. And a generation control step of regenerating image data for displaying a computer-readable recording medium.
第1の画像を前記左眼用の画像とし、第2の画像を前記右眼用の画像として、前記左眼用の画像および前記右眼用の画像データを用いて、前記立体視画像を表示するための画像データを生成する生成ステップと、
ユーザの操作を受け付ける受付ステップと、
前記受付ステップの処理で受け付けられた前記ユーザの操作に対応して、前記第2の画像を前記左眼用の画像とし、前記第1の画像を前記右眼用の画像として、前記立体視画像を表示するための画像データを再生成させる生成制御ステップと
を含む処理を実行させることを特徴とするプログラム。A computer that generates image data for displaying a stereoscopic image based on the image for the left eye and the image for the right eye,
The first image is used as the image for the left eye, and the second image is used as the image for the right eye. The stereoscopic image is displayed using the image for the left eye and the image data for the right eye. A generating step of generating image data for performing
A receiving step of receiving a user operation;
In response to the operation of the user accepted in the process of the accepting step, the stereoscopic image is obtained by setting the second image as the image for the left eye and the first image as the image for the right eye. And a generation control step of regenerating image data for displaying the image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002261543A JP4129787B2 (en) | 2002-09-06 | 2002-09-06 | Image processing apparatus and method, recording medium, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002261543A JP4129787B2 (en) | 2002-09-06 | 2002-09-06 | Image processing apparatus and method, recording medium, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004104332A true JP2004104332A (en) | 2004-04-02 |
JP4129787B2 JP4129787B2 (en) | 2008-08-06 |
Family
ID=32261889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002261543A Expired - Fee Related JP4129787B2 (en) | 2002-09-06 | 2002-09-06 | Image processing apparatus and method, recording medium, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4129787B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010122344A (en) * | 2008-11-18 | 2010-06-03 | Sony Corp | Image display apparatus and image display method |
-
2002
- 2002-09-06 JP JP2002261543A patent/JP4129787B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010122344A (en) * | 2008-11-18 | 2010-06-03 | Sony Corp | Image display apparatus and image display method |
Also Published As
Publication number | Publication date |
---|---|
JP4129787B2 (en) | 2008-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4072674B2 (en) | Image processing apparatus and method, recording medium, and program | |
US8791989B2 (en) | Image processing apparatus, image processing method, recording method, and recording medium | |
JP5355208B2 (en) | Three-dimensional display device and digital zoom correction method | |
JP5266126B2 (en) | Image display apparatus and method, and program | |
JP4251952B2 (en) | Stereoscopic image display apparatus and stereoscopic image display method | |
WO2012011341A1 (en) | Imaging device, method for controlling same, and program | |
JP5039182B2 (en) | Stereoscopic image output apparatus and backlight control method | |
US10356383B2 (en) | Adjustment of perceived roundness in stereoscopic image of a head | |
CN102959974B (en) | Stereoscopic image reproducing device, its disparity adjustment method and camera | |
US20130162764A1 (en) | Image processing apparatus, image processing method, and non-transitory computer-readable medium | |
JP2004129186A (en) | Device and program for processing stereoscopic image data, and recording medium | |
JP2011211450A (en) | Three-dimensional video display device, three-dimensional video photographing device, and three-dimensional video display method | |
JPH1127703A (en) | Display device and its control method | |
CN102972036B (en) | Replay device, compound eye imaging device, playback method and program | |
JP4129786B2 (en) | Image processing apparatus and method, recording medium, and program | |
JP2012257105A (en) | Stereoscopic image obtaining apparatus | |
JP4200718B2 (en) | Image processing apparatus and method, recording medium, and program | |
JP4165158B2 (en) | Image processing apparatus and method, recording medium, and program | |
JP4200717B2 (en) | Image processing apparatus and method, recording medium, and program | |
JP2004356997A (en) | Device, method and program for managing stereoscopic view image | |
JP5580486B2 (en) | Image output apparatus, method and program | |
JP4129787B2 (en) | Image processing apparatus and method, recording medium, and program | |
JP4668602B2 (en) | Stereoscopic image generation apparatus and method, and program | |
JP2004266862A (en) | Camera for photographing stereoscopic image and stereoscopic image processing apparatus | |
JP2011044828A (en) | Stereoscopic image generator, stereoscopic image printing device, and stereoscopic image generation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050810 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20071220 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071226 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080220 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080313 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080407 |
|
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: 20080428 |
|
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: 20080511 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110530 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |