JP2011082757A - Display mode determination device and method, and imaging device and method - Google Patents

Display mode determination device and method, and imaging device and method Download PDF

Info

Publication number
JP2011082757A
JP2011082757A JP2009232653A JP2009232653A JP2011082757A JP 2011082757 A JP2011082757 A JP 2011082757A JP 2009232653 A JP2009232653 A JP 2009232653A JP 2009232653 A JP2009232653 A JP 2009232653A JP 2011082757 A JP2011082757 A JP 2011082757A
Authority
JP
Japan
Prior art keywords
image data
subject
display mode
image
dimensional display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2009232653A
Other languages
Japanese (ja)
Inventor
Mikio Watanabe
幹緒 渡邉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2009232653A priority Critical patent/JP2011082757A/en
Publication of JP2011082757A publication Critical patent/JP2011082757A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Cameras In General (AREA)
  • Stereoscopic And Panoramic Photography (AREA)
  • Indication In Cameras, And Counting Of Exposures (AREA)
  • Processing Or Creating Images (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To determine which one of three-dimensional display and two-dimensional display is suitable for displaying the image data. <P>SOLUTION: A digital camera that is an imaging device, photographs a subject from different points of viewing concurrently. With respect to photographing, strobe photographing and non-strobe photographing are performed in this order. Two sets of images with parallaxes are prepared through respective photographings. From one set of images, a parallax amount ΔP1 of a main subject and a parallax amount ΔP2 of a background are calculated (S18). When a parallax amount difference ΔX (=¾ΔP1-ΔP2¾) is less than a threshold TH1, a difference of images obtained by the strobe photographing and the non-strobe photographing is taken, and a shadow pixel number SS composing a shadow of the subject is calculated. When the shadow pixel number SS is equal to or more than a threshold TH2, it is determined that the image data is suitable for being displaced in a three-dimensional display mode. When the shadow pixel number SS is less than the threshold TH2, it is determined that the image data is suitable for being displayed in a two-dimensional display mode. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、3次元画像を作成するために異なる視点から撮影した複数の画像を取り扱う装置及び方法、更に詳しくは、複数の画像が3次元表示モードに適するか否かを判定する表示モード判定装置及び方法、並びにこれらを有する撮像装置及び方法に関する。   The present invention relates to an apparatus and method for handling a plurality of images taken from different viewpoints in order to create a three-dimensional image, and more specifically, a display mode determination device for determining whether or not a plurality of images are suitable for a three-dimensional display mode. And an imaging apparatus and method having the same.

2つの撮影部によって異なる視点から同時に被写体を撮影し、立体視が可能な2つの2次元画像を作成する3次元デジタルカメラが知られている(例えば、非特許文献1参照)。3次元デジタルカメラによって作成された2つの2次元画像は視差を有する。   A three-dimensional digital camera that captures a subject at the same time from two different viewpoints using two photographing units and creates two two-dimensional images that can be stereoscopically viewed is known (for example, see Non-Patent Document 1). Two two-dimensional images created by a three-dimensional digital camera have parallax.

デジタルフォトフレームや3次元デジタルカメラに設けられたLCDパネルなどの表示装置は、観察者の左右の目により別々に観察されるように、2つの2次元画像をそれぞれ表示する(以下、3次元表示モードと称する)。この3次元表示モードにより、立体視が可能となる。更に、この表示装置は、3次元デジタルカメラにより撮影された2つの2次元画像のうちいずれか一方のみを表示すれば、従来の2次元画像として表示させる(以下、2次元表示モードと称する)ことも可能である。   A display device such as an LCD panel provided in a digital photo frame or a three-dimensional digital camera displays two two-dimensional images so as to be separately observed by the left and right eyes of the observer (hereinafter, three-dimensional display). Called mode). This three-dimensional display mode enables stereoscopic viewing. Furthermore, this display device displays only one of two two-dimensional images taken by a three-dimensional digital camera as a conventional two-dimensional image (hereinafter referred to as a two-dimensional display mode). Is also possible.

3次元デジタルカメラ(http://fujifilm.jp/personal/3d/camera/finepixreal3dw1/index.html)3D digital camera (http://fujifilm.jp/personal/3d/camera/finepixreal3dw1/index.html)

上述した表示装置には、その画像に適した表示モードで表示する機能が求められている。こうした要望に応えるため、3次元デジタルカメラにより得られた撮影画像が3次元表示モードに適しているか否かを判定する方法(以下、表示モード判定方法と称する)の開発が進められている。   The display device described above is required to have a function of displaying in a display mode suitable for the image. In order to meet these demands, development of a method for determining whether or not a captured image obtained by a three-dimensional digital camera is suitable for a three-dimensional display mode (hereinafter referred to as a display mode determination method) has been underway.

3次元表示モードの適性の指標として、遠近差が用いられる。具体的には、被写体ごとの遠近差、または、主要被写体及び背景の遠近差が大きくなるに従い、3次元表示モードの適性は高くなる。一方、被写体ごとの遠近差、または、主要被写体及び背景の遠近差が小さくなるに従い、3次元表示モードの適性は低くなる。そして、ステレオマッチング法によって得られた各視差量の差を、各遠近差とすることで、画像の3次元表示モードの適性を容易に判定することができる。   A perspective difference is used as an index of suitability of the three-dimensional display mode. Specifically, the suitability of the three-dimensional display mode increases as the perspective difference for each subject or the perspective difference between the main subject and the background increases. On the other hand, as the perspective difference for each subject or the perspective difference between the main subject and the background becomes smaller, the suitability of the three-dimensional display mode becomes lower. And the difference of each parallax amount obtained by the stereo matching method is set as each perspective difference, whereby the suitability of the image three-dimensional display mode can be easily determined.

しかしながら、スタジオ撮影のように、背景が無地の場合には、背景の視差量は小さい値となってしまう。この結果、算出された視差量の差は、主要被写体及び背景における実質上の遠近差を反映しているものとはいえない。   However, when the background is plain as in studio shooting, the amount of parallax of the background becomes a small value. As a result, the calculated difference in the amount of parallax cannot be said to reflect a substantial perspective difference between the main subject and the background.

また、マクロ撮影の場合には、主要被写体にピントをあわせることにより、背景のピントが合わなくなる。この結果得られる視差量の差が、主要被写体及び背景における実質上の遠近差よりも小さくなる場合がある。   In the case of macro photography, focusing on the main subject makes it impossible to focus on the background. As a result, the difference in the amount of parallax obtained may be smaller than the substantial perspective difference between the main subject and the background.

このように、ステレオマッチング法により得られた視差量の差のみを指標として、表示モード判定方法を行うことに限界がある。   As described above, there is a limit to performing the display mode determination method using only the difference in the amount of parallax obtained by the stereo matching method as an index.

本発明はこのような課題を解決するものであり、それぞれの画像に適した表示モードを判定する表示モード判定装置及び方法、並びに、この表示モード判定装置及び方法を有する撮像装置及び方法を提供することを目的とする。   The present invention solves such problems, and provides a display mode determination apparatus and method for determining a display mode suitable for each image, and an imaging apparatus and method having the display mode determination apparatus and method. For the purpose.

本発明の表示モード判定装置は、被写体を異なる視点から同時に撮影して得られた複数の画像データに基づいて、第1の被写体についての第1の視差量及び第2の被写体についての第2の視差量を算出する視差量算出手段と、前記第1の視差量及び前記第2の視差量の差が第1の閾値以上である場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記視差量の差が前記第1の閾値未満である場合には、前記複数の画像データの判定を保留にする第1の表示モード判定手段と、前記視差量の差が前記第1の閾値未満である場合には、前記画像データを成す画素のうち前記被写体の影を成す画素の数を算出する影画素数算出手段と、前記算出された影の画素の数が第2の閾値以上の場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記算出された影の画素の数が前記第2の閾値未満の場合には、前記複数の画像データを3次元表示の適正なしと判定する第2の表示モード判定手段とを有することを特徴とする。   The display mode determination apparatus according to the present invention uses a first parallax amount for a first subject and a second for a second subject based on a plurality of image data obtained by simultaneously photographing the subject from different viewpoints. When the difference between the first parallax amount and the second parallax amount is equal to or greater than a first threshold value, the plurality of image data are appropriate for three-dimensional display. And when the difference in the amount of parallax is less than the first threshold, the first display mode determination unit that puts the determination of the plurality of image data on hold, and the difference in the amount of parallax is the first difference. If it is less than the threshold value of 1, the shadow pixel number calculating means for calculating the number of pixels forming the shadow of the subject among the pixels forming the image data, and the calculated number of shadow pixels is the second If the threshold value is exceeded, the plurality of image data are displayed in three dimensions. Second display mode determining means for determining that the image is appropriate and, when the calculated number of shadow pixels is less than the second threshold, determining that the plurality of image data are not appropriate for three-dimensional display; It is characterized by having.

前記影画素数算出手段は、前記被写体へ光を照射していないときの前記画像データを基準とした場合の、前記被写体へ光を照射したときの前記画像データのコントラスト差を画素ごとに算出し、前記コントラスト差が0未満である画素の総数を前記影の画素の数とすることが好ましい。また、3次元表示の適正ありと判定された前記複数の画像データに3次元表示用識別子を付与し、前記表示モード判定装置により3次元表示の適正なしと判定された前記複数の画像データに2次元表示用識別子を付与する識別子付与手段を有することが好ましい。更に、前記3次元表示用識別子を含む前記複数の画像データを3次元画像として表示し、前記2次元表示用識別子を含む前記複数の画像データを2次元画像として表示する表示装置を有することが好ましい。   The shadow pixel number calculating means calculates, for each pixel, the contrast difference of the image data when the subject is irradiated with light when the image data when the subject is not irradiated with light is used as a reference. It is preferable that the total number of pixels having the contrast difference of less than 0 be the number of shadow pixels. Further, an identifier for 3D display is assigned to the plurality of image data determined to be appropriate for 3D display, and 2 is added to the plurality of image data determined to be inappropriate for 3D display by the display mode determination device. It is preferable to have an identifier assigning means for assigning a dimension display identifier. Furthermore, it is preferable to have a display device that displays the plurality of image data including the three-dimensional display identifier as a three-dimensional image and displays the plurality of image data including the two-dimensional display identifier as a two-dimensional image. .

前記複数の画像データに前記3次元表示用識別子が付与されている場合には、前記複数の画像データを記憶し、前記複数の画像データに前記2次元表示用識別子が付与されている場合には、前記複数の画像データのうち少なくともいずれか一方を記憶する記録手段を有することが好ましい。また、前記記録手段は、前記複数の画像データに前記2次元表示用識別子が付与されている場合にも、前記複数の画像データの両方を記憶することが好ましい。   When the three-dimensional display identifier is given to the plurality of image data, the plurality of image data is stored, and when the two-dimensional display identifier is given to the plurality of image data It is preferable to have a recording means for storing at least one of the plurality of image data. The recording unit preferably stores both the plurality of image data even when the two-dimensional display identifier is assigned to the plurality of image data.

本発明の撮影装置は、前記被写体の画像を結像する複数の光学系がデジタルカメラ本体に露呈するように設けられ、前記結合した前記画像を画像データとして取り込む撮像素子、及び上記の表示モード判定装置が前記デジタルカメラ本体に内蔵され、前記被写体へ前記光を放つ発光装置は第1の光学系とにより第2の光学系を挟む位置に配されたことを特徴とする。   The imaging device of the present invention is provided with a plurality of optical systems that form an image of the subject so as to be exposed to a digital camera body, an imaging device that captures the combined image as image data, and the display mode determination described above A device is built in the digital camera body, and the light emitting device that emits the light to the subject is disposed at a position sandwiching the second optical system by the first optical system.

本発明の表示モード判定方法は、被写体を異なる視点から同時に撮影して得られた複数の画像データに基づいて、第1の被写体についての第1の視差量及び第2の被写体についての第2の視差量を算出する視差量算出ステップと、前記第1の視差量及び前記第2の視差量の差が第1の閾値以上である場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記視差量の差が前記第1の閾値未満である場合には、前記複数の画像データの判定を保留にする第1の表示モード判定ステップと、前記視差量の差が前記第1の閾値未満である場合には、前記画像データを成す画素のうち前記被写体の影を成す画素の数を算出する影画素数算出ステップと、前記算出された影の画素の数が第2の閾値以上の場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記算出された影の画素の数が前記第2の閾値未満の場合には、前記複数の画像データを3次元表示の適正なしと判定する第2の表示モード判定ステップとを有することを特徴とする。   According to the display mode determination method of the present invention, the first parallax amount for the first subject and the second for the second subject are based on a plurality of image data obtained by simultaneously photographing the subject from different viewpoints. If the difference between the parallax amount calculating step for calculating the parallax amount and the difference between the first parallax amount and the second parallax amount is equal to or greater than a first threshold value, the plurality of image data are appropriate for three-dimensional display. And when the difference between the parallax amounts is less than the first threshold, the first display mode determination step for holding the determination of the plurality of image data, and the difference between the parallax amounts If the threshold value is less than 1, the shadow pixel number calculating step for calculating the number of pixels forming the shadow of the subject among the pixels forming the image data; and the calculated number of shadow pixels is a second value. If the threshold value is exceeded, the plurality of image data A second display that determines that the three-dimensional display is appropriate, and determines that the plurality of image data are not appropriate for the three-dimensional display when the calculated number of shadow pixels is less than the second threshold value. And a mode determination step.

本発明の撮影方法は、上記の表示モード判定方法と、光が照射された前記被写体を異なる視点から同時に撮影して照射画像データを生成する照射撮影ステップと、前記光の照射を終えた後の前記被写体を異なる視点から同時に撮影して非照射画像データを生成する非照射撮影ステップとを有し、前記照射撮影ステップ及び前記非照射撮影ステップは前記影画素数算出ステップの前に行われ、前記影画素数算出ステップでは、前記非照射画像データを基準とした場合の前記照射画像データのコントラスト差を画素ごとに算出するコントラスト差算出ステップと、前記コントラスト差が0未満である画素の数を前記影の画素の数とする画素数ステップとを行うことを特徴とする。   The photographing method of the present invention includes the display mode determination method, an irradiation photographing step of simultaneously photographing the subject irradiated with light from different viewpoints to generate irradiation image data, and after the light irradiation is finished. A non-irradiation photographing step of simultaneously photographing the subject from different viewpoints to generate non-irradiation image data, and the irradiation photographing step and the non-irradiation photographing step are performed before the shadow pixel number calculating step, In the shadow pixel number calculating step, a contrast difference calculating step for calculating, for each pixel, a contrast difference of the irradiation image data when the non-irradiation image data is used as a reference, and the number of pixels in which the contrast difference is less than 0 And a pixel number step which is the number of shadow pixels.

本発明によれば、各被写体の視差量の差のみならず、被写体の影の大きさに基づいて、当該画像データの3次元表示モードの適性を評価するため、高精度で評価することができる。   According to the present invention, the suitability of the three-dimensional display mode of the image data is evaluated based on not only the difference in the amount of parallax of each subject but also the size of the shadow of the subject, so that it can be evaluated with high accuracy. .

前面側からみたときのデジタルカメラの斜視図である。It is a perspective view of a digital camera when viewed from the front side. 背面側からみたときのデジタルカメラの斜視図である。It is a perspective view of a digital camera when viewed from the back side. デジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of a digital camera. 表示モード判定部の構成を示すブロック図である。It is a block diagram which shows the structure of a display mode determination part. デジタルカメラによる第1の撮影手順を示すフローチャートである。It is a flowchart which shows the 1st imaging | photography procedure with a digital camera. 第1撮像部のストロボ撮影により得られた画像の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the image obtained by strobe imaging | photography of a 1st imaging part. 第2撮像部のストロボ撮影により得られた画像の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the image obtained by flash photography of the 2nd imaging part. 第1撮像部の非ストロボ撮影により得られた画像の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the image obtained by the non-strobe imaging | photography of a 1st imaging part. 第2撮像部の非ストロボ撮影により得られた画像の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the image obtained by the non-stroboscopic imaging | photography of a 2nd imaging part. ストロボ撮影の画像と非ストロボ撮影の画像との差分画像の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the difference image of the image of strobe photography, and the image of non-strobe photography. 差分画像を構成する画素のコントラストのヒストグラムを示す説明図である。It is explanatory drawing which shows the histogram of the contrast of the pixel which comprises a difference image. 画像データの表示手順を示すフローチャートである。It is a flowchart which shows the display procedure of image data. デジタルカメラによる第2の撮影手順を示すフローチャートである。It is a flowchart which shows the 2nd imaging | photography procedure with a digital camera.

図1に示すように、本発明のデジタルカメラ11は、水平方向において離れて配置された第1撮影部12L及び第2撮影部12Rによって同一の被写体を異なる視点から同時に撮像し、視差を有する2つの画像を作成するものである。デジタルカメラ本体11aの前面には、第1撮影部12L、第2撮影部12R及びストロボ13が設けられる。   As shown in FIG. 1, the digital camera 11 of the present invention captures the same subject from different viewpoints at the same time by using a first photographing unit 12L and a second photographing unit 12R that are spaced apart in the horizontal direction, and has 2 parallaxes. One image is created. A first photographing unit 12L, a second photographing unit 12R, and a strobe 13 are provided on the front surface of the digital camera body 11a.

第1撮影部12Lは、被写体の画像を結像する光学系14Rと、結像した画像から画像データを得る撮像素子(後述する)と、各種制御部(後述する)を有する。同様に、第2撮影部12Rは、光学系14Lと撮像素子と各種制御部を有する。光学系14R、14Lは、デジタルカメラ本体11aの前面に露呈して設けられる。撮像素子及び各種制御部は、デジタルカメラ本体11aに内蔵される。ストロボ13は、光学系14Lとにより、光学系14Rを挟む位置に設けられる。なお、ストロボ13は、光学系14L及び光学系14Rのうち少なくとも一方よりも上方に設けられることが好ましく、光学系14L及び光学系14Rの両者よりも上方に設けられることが更に好ましい。   The first photographing unit 12L includes an optical system 14R that forms an image of a subject, an image sensor (described later) that obtains image data from the formed image, and various control units (described later). Similarly, the second imaging unit 12R includes an optical system 14L, an image sensor, and various control units. The optical systems 14R and 14L are provided to be exposed on the front surface of the digital camera body 11a. The image sensor and various control units are built in the digital camera body 11a. The strobe 13 is provided at a position sandwiching the optical system 14R by the optical system 14L. The strobe 13 is preferably provided above at least one of the optical system 14L and the optical system 14R, and more preferably provided above both the optical system 14L and the optical system 14R.

図2に示すように、デジタルカメラ本体11aの背面には、撮影時にはビューファインダとして、撮影後には画像表示用のモニタとして用いられるLCDパネル20と、デジタルカメラ11の各種操作に用いられる操作ボタン21、22とが設けられる。デジタルカメラ本体11aの上面には、電源/モードスイッチ27と、レリーズボタン28とが設けられている。デジタルカメラ11の一方の側面には、画像データ記録用のメモリカード29が装填されるカードスロット30が設けられている。   As shown in FIG. 2, an LCD panel 20 used as a viewfinder at the time of shooting and an image display monitor after shooting, and operation buttons 21 used for various operations of the digital camera 11 are provided on the back of the digital camera body 11a. , 22 are provided. A power / mode switch 27 and a release button 28 are provided on the top surface of the digital camera body 11a. A card slot 30 in which a memory card 29 for recording image data is loaded is provided on one side surface of the digital camera 11.

電源/モードスイッチ27は、デジタルカメラ11の電源のオン/オフの切り替え、及びデジタルカメラ11の動作モード(再生モード及び撮影モード)を切り換える。電源/モードスイッチ27がオンになると、デジタルカメラ11の各部への電力の供給が開始され、所定の撮影モードの選択が可能になる。デジタルカメラ11の各種の動作が開始される。また、電源/モードスイッチ27がオフになると、デジタルカメラ11の各部への電力の供給が停止される。   The power / mode switch 27 switches on / off the power of the digital camera 11 and switches the operation mode (reproduction mode and photographing mode) of the digital camera 11. When the power / mode switch 27 is turned on, power supply to each part of the digital camera 11 is started, and a predetermined shooting mode can be selected. Various operations of the digital camera 11 are started. When the power / mode switch 27 is turned off, the supply of power to each part of the digital camera 11 is stopped.

電源/モードスイッチ27の操作により、デジタルカメラ11の撮影モードを切り替えることができる。電源/モードスイッチ27の操作により設定される撮影モードとしては、例えば、2次元の静止画を撮影する2次元静止画撮影モード、3次元の静止画を撮影する3次元静止画撮影モード等がある。   The photographing mode of the digital camera 11 can be switched by operating the power / mode switch 27. Examples of the shooting mode set by operating the power / mode switch 27 include a two-dimensional still image shooting mode for shooting a two-dimensional still image, a three-dimensional still image shooting mode for shooting a three-dimensional still image, and the like. .

レリーズボタン28は、いわゆる「半押し」と「全押し」とからなる2段ストローク式のスイッチで構成されている。レリーズボタン28が半押しされると、撮影準備処理(例えば、AE(Automatic Exposure:自動露出)処理、AF(Auto Focus:自動焦点合わせ)処理、AWB(Automatic White Balance:自動ホワイトバランス)処理)が行われる。また、レリーズボタン28が全押しされると、静止画の撮影・記録処理が行われる。   The release button 28 is formed of a two-stage stroke type switch composed of a so-called “half press” and “full press”. When the release button 28 is pressed halfway, shooting preparation processing (for example, AE (Automatic Exposure) processing, AF (Auto Focus) processing, AWB (Automatic White Balance) processing) is performed. Done. When the release button 28 is fully pressed, still image shooting / recording processing is performed.

操作ボタン21、22の操作により、ストロボ発光モードがオンの状態及びオフの状態を切り替えることができる。ストロボ発光モードがオンの状態で、レリーズボタン28が全押しされると、ストロボ13は発光する。一方、ストロボ発光モードがオフの状態で、レリーズボタン28が全押しされても、ストロボ13は発光しない。   By operating the operation buttons 21 and 22, the flash emission mode can be switched between the on state and the off state. When the release button 28 is fully pressed while the flash emission mode is on, the flash 13 emits light. On the other hand, even if the release button 28 is fully pressed in a state where the flash emission mode is off, the flash 13 does not emit light.

LCDパネル20は、パララックスバリア式、あるいはレンチキュラーレンズ式の3次元モニタであり、撮影時及び再生時には第1撮影部12L及び第2撮影部12Rにより作成された2つの2次元画像を用いて、3次元表示モード及び2次元表示モードから選択された表示モードに基づく画像を表示する。   The LCD panel 20 is a parallax barrier type or lenticular lens type three-dimensional monitor, and uses two two-dimensional images created by the first photographing unit 12L and the second photographing unit 12R during photographing and reproduction, An image based on a display mode selected from the three-dimensional display mode and the two-dimensional display mode is displayed.

図3に示すように、デジタルカメラ11は、第1撮影部12Lや第2撮影部12R、操作部31の他、メインCPU(以下、CPUと称する)35等を有する。操作部31は、ユーザが各種の操作入力を行うための手段であり、上述した電源/モードスイッチ27、レリーズボタン28、及び操作ボタン21、22等を含んでいる。   As shown in FIG. 3, the digital camera 11 includes a first CPU 12L, a second camera 12R, an operation unit 31, a main CPU (hereinafter referred to as a CPU) 35, and the like. The operation unit 31 is a means for the user to perform various operation inputs, and includes the power / mode switch 27, the release button 28, the operation buttons 21, 22 and the like described above.

メインCPU(以下、CPUと称する)35は、操作部31からの入力に基づき所定の制御プログラムに従ってデジタルカメラ11全体の動作を統括制御する。CPU35には、システムバス36を介してROM37、EEPROM38及びワークメモリ39が接続されている。ROM37には、CPU35が実行する制御プログラム及び制御に必要な各種データ等が格納される。EEPROM38には、ユーザ設定情報等のデジタルカメラ11の動作に関する各種設定情報等が格納される。ワークメモリ39は、CPU35の演算作業用領域及び画像データの一時記憶領域を含んでいる。   A main CPU (hereinafter referred to as CPU) 35 performs overall control of the entire operation of the digital camera 11 in accordance with a predetermined control program based on an input from the operation unit 31. A ROM 37, EEPROM 38, and work memory 39 are connected to the CPU 35 via a system bus 36. The ROM 37 stores a control program executed by the CPU 35 and various data necessary for control. The EEPROM 38 stores various setting information relating to the operation of the digital camera 11 such as user setting information. The work memory 39 includes a calculation work area for the CPU 35 and a temporary storage area for image data.

撮影モードとして2次元静止画撮影モードが設定されると、撮影モード管理フラグ45に、2次元静止画撮影モードであることを示すフラグが設定される。また、撮影モードとして3次元静止画撮影モードが設定されると、撮影モード管理フラグ45に、3次元静止画撮影モードであることを示すフラグが設定される。CPU35は、撮影モード管理フラグ45を参照して、設定されている撮影モードを判別する。   When the two-dimensional still image shooting mode is set as the shooting mode, a flag indicating the two-dimensional still image shooting mode is set in the shooting mode management flag 45. When the three-dimensional still image shooting mode is set as the shooting mode, a flag indicating the three-dimensional still image shooting mode is set in the shooting mode management flag 45. The CPU 35 refers to the shooting mode management flag 45 to determine the set shooting mode.

次に、第1撮影部12L及び第2撮影部12Rの詳細について説明する。なお、図3では、各撮影部12L及び12R内の各部にそれぞれ符号L及びRを付して区別しているが、各部の機能は略同様であるため、以下の説明では、符号L及びRを省略して説明する。   Next, details of the first imaging unit 12L and the second imaging unit 12R will be described. In FIG. 3, each of the imaging units 12 </ b> L and 12 </ b> R is distinguished from each other by adding symbols L and R. However, since the functions of the components are substantially the same, the symbols L and R are used in the following description. The description is omitted.

撮影部12は、光学系14と、撮像素子50と、その他各部品とを有する。光学系14は、ズームレンズ、フォーカスレンズ及び絞りを備える。ズームレンズ及びフォーカスレンズは、各撮影部の光軸(図中のLL及びLR)に沿って前後に移動する。CPU35は、測距制御部52を介して不図示のズームアクチュエータの駆動を制御することにより、ズームレンズの位置やフォーカスレンズの位置を制御する。ズームレンズの位置の制御によりズーミングが可能となり、フォーカスレンズの位置の制御によりフォーカシングが可能となる。また、CPU35は、測距制御部52を介して絞り制御53を駆動することにより、絞りの開口量(絞り値)を制御し、撮像素子50への入射光量を制御する。   The imaging unit 12 includes an optical system 14, an image sensor 50, and other components. The optical system 14 includes a zoom lens, a focus lens, and a diaphragm. The zoom lens and the focus lens move back and forth along the optical axis (LL and LR in the drawing) of each photographing unit. The CPU 35 controls the position of the zoom lens and the position of the focus lens by controlling the driving of a zoom actuator (not shown) via the distance measurement control unit 52. Zooming can be performed by controlling the position of the zoom lens, and focusing can be performed by controlling the position of the focus lens. Further, the CPU 35 controls the aperture amount (aperture value) of the aperture by driving the aperture control 53 via the distance measurement control unit 52 and controls the amount of light incident on the image sensor 50.

3次元静止画撮影モードで撮影する場合、CPU35は、各撮影部12L及び12Rの光学系14L及び14Rを同期させて駆動する。光学系14L及び14Rは、常に同じ焦点距離(ズーム倍率)及び同じ入射光量(絞り値)となるように調整される。更に、3次元静止画撮影モード時には、常に主要被写体にピントが合うように焦点調節が行われる。   When shooting in the three-dimensional still image shooting mode, the CPU 35 drives the optical systems 14L and 14R of the shooting units 12L and 12R in synchronization. The optical systems 14L and 14R are always adjusted to have the same focal length (zoom magnification) and the same incident light quantity (aperture value). Further, in the three-dimensional still image shooting mode, focus adjustment is performed so that the main subject is always in focus.

ストロボ13は、例えば、放電管(キセノン管)により構成され、暗い被写体を撮影する場合や逆光時等に必要に応じて発光される。充電/発光制御部57は、ストロボ13を発光させるための電流を供給するためのメインコンデンサを含んでいる。CPU35は、充電/発光制御部57にフラッシュ発光指令を送信して、メインコンデンサの充電制御、ストロボ13の放電(発光)のタイミング及び放電時間の制御等を行う。なお、ストロボ13としては、発光ダイオードを用いてもよい。   The strobe 13 is composed of, for example, a discharge tube (xenon tube), and emits light as necessary when photographing a dark subject or in backlight. The charging / light emission control unit 57 includes a main capacitor for supplying a current for causing the strobe 13 to emit light. The CPU 35 transmits a flash light emission command to the charge / light emission control unit 57, and performs charge control of the main capacitor, discharge (light emission) timing of the strobe 13, and control of the discharge time. A light emitting diode may be used as the strobe 13.

撮影部12は、被写体に光を照射するための距離用発光素子61(例えば、発光ダイオード)と、上記距離用発光素子61により光が照射された被写体の画像(測距用画像)を撮影する距離用撮像素子62とを備えている。距離用駆動/制御回路63は、CPU35からの指令に基づいて、所定のタイミングで距離用発光素子61を発光させるとともに、距離用撮像素子62を制御して測距用画像を撮影させる。   The imaging unit 12 captures a distance light emitting element 61 (for example, a light emitting diode) for irradiating the subject with light, and an image of the subject irradiated with light by the distance light emitting element 61 (ranging image). A distance image sensor 62. The distance driving / control circuit 63 causes the distance light emitting element 61 to emit light at a predetermined timing based on a command from the CPU 35 and controls the distance imaging element 62 to photograph a distance measuring image.

距離用撮像素子62によって撮影された測距用画像は、A/D変換器66によりデジタルデータに変換されて、距離情報処理回路67に入力される。距離情報処理回路67は、距離用撮像素子62から取得した測距用画像を用いて、いわゆる三角測距の原理に基づいて、撮影部12L及び12Rによって撮影された主要被写体とデジタルカメラ11との間の距離(被写体距離)を算出する。距離情報処理回路67によって算出された被写体距離は、距離情報記録回路68に記録される。   The distance measurement image captured by the distance image sensor 62 is converted into digital data by the A / D converter 66 and input to the distance information processing circuit 67. The distance information processing circuit 67 uses the distance measurement image acquired from the distance image sensor 62 and based on the principle of so-called triangulation, the main subject captured by the imaging units 12L and 12R and the digital camera 11. The distance between them (subject distance) is calculated. The subject distance calculated by the distance information processing circuit 67 is recorded in the distance information recording circuit 68.

なお、被写体距離の算出方法としては、距離用発光素子61が発光してから、距離用発光素子61によって照射された光が主要被写体によって反射され、距離用撮像素子62に届くまでの光の飛行時間(遅れ時間)と光の速度から被写体距離を算出するTOF(Time of Flight)法を用いてもよい。   As a method for calculating the subject distance, the flight of light from the time when the distance light emitting element 61 emits light until the light irradiated by the distance light emitting element 61 is reflected by the main subject and reaches the distance image sensor 62. A TOF (Time of Flight) method for calculating the subject distance from the time (delay time) and the speed of light may be used.

また、撮影部15は、間隔/輻輳角駆動回路71及び間隔/輻輳角検出回路72を備えている。間隔/輻輳角駆動回路71L及び71Rは、それぞれ光学系14Lと14Rを駆動する。CPU35は、間隔/輻輳角制御回路73を介して間隔/輻輳角駆動回路71L及び71Rを動作させて、光学系14Lと14Rとの間隔及び輻輳角を調整する。   The imaging unit 15 includes an interval / convergence angle driving circuit 71 and an interval / convergence angle detection circuit 72. The interval / convergence angle driving circuits 71L and 71R drive the optical systems 14L and 14R, respectively. The CPU 35 operates the interval / convergence angle drive circuits 71L and 71R via the interval / convergence angle control circuit 73 to adjust the interval and the convergence angle between the optical systems 14L and 14R.

間隔/輻輳角検出回路72L及び72Rは、例えば、電波を送受信する手段を含んでいる。CPU35は、間隔/輻輳角制御回路73を介して間隔/輻輳角検出回路72L及び72Rを動作させて、電波を相互に送受信させることにより、光学系14Lと14Rとの間隔及び輻輳角を測定する。光学系14Lと14Rとの間隔及び輻輳角の測定結果は、レンズ間隔・輻輳角記憶回路74に記憶される。   The interval / convergence angle detection circuits 72L and 72R include means for transmitting and receiving radio waves, for example. The CPU 35 operates the interval / convergence angle detection circuits 72L and 72R via the interval / convergence angle control circuit 73 to transmit and receive radio waves, thereby measuring the interval and the convergence angle between the optical systems 14L and 14R. . The measurement results of the interval between the optical systems 14L and 14R and the convergence angle are stored in the lens interval / convergence angle storage circuit 74.

撮像素子50は、例えば、CCDにより構成されている。撮像素子50の受光面には、多数のフォトダイオードが2次元的に配列されており、各フォトダイオードには所定の配列で3原色(R、G、B)のカラーフィルタが配置されている。光学系14によって撮像素子50の受光面上に結像された被写体の光学像は、このフォトダイオードによって入射光量に応じた信号電荷に変換される。各フォトダイオードに蓄積された信号電荷は、CPU35の指令に従ってTG77から与えられる駆動パルスに基づいて信号電荷に応じた電圧信号(R、G、B信号)として撮像素子50から順次読み出される。撮像素子50は、電子シャッタ機能を備えており、フォトダイオードへの電荷蓄積時間を制御することにより、露光時間(シャッタ速度)が制御される。なお、撮像素子50としては、CMOSセンサ等のCCD以外の撮像素子を用いることもできる。   The image sensor 50 is constituted by, for example, a CCD. A large number of photodiodes are two-dimensionally arranged on the light receiving surface of the image sensor 50, and color filters of three primary colors (R, G, B) are arranged in a predetermined arrangement in each photodiode. The optical image of the subject formed on the light receiving surface of the image sensor 50 by the optical system 14 is converted into signal charges corresponding to the amount of incident light by the photodiode. The signal charge accumulated in each photodiode is sequentially read out from the image sensor 50 as a voltage signal (R, G, B signal) corresponding to the signal charge based on a drive pulse given from the TG 77 according to a command of the CPU 35. The image sensor 50 has an electronic shutter function, and the exposure time (shutter speed) is controlled by controlling the charge accumulation time in the photodiode. As the image sensor 50, an image sensor other than a CCD such as a CMOS sensor can be used.

アナログ信号処理部80は、撮像素子50から出力されたR、G、B信号に含まれるリセットノイズ(低周波)を除去するための相関2重サンプリング回路(CDS)、R、G、B信号を増幅して一定レベルの大きさにコントロールするためのAGS回路を含んでいる。撮像素子50から出力されるアナログのR、G、B信号は、アナログ信号処理部80によって相関2重サンプリング処理されるとともに増幅される。アナログ信号処理部80から出力されたアナログのR、G、B信号は、A/D変換器81によってデジタルのR、G、B信号に変換されて、画像入力コントローラ(バッファメモリ)82に入力される。   The analog signal processing unit 80 outputs correlated double sampling circuits (CDS), R, G, and B signals for removing reset noise (low frequency) included in the R, G, and B signals output from the image sensor 50. An AGS circuit for amplifying and controlling to a certain level is included. Analog R, G, B signals output from the image sensor 50 are subjected to correlated double sampling processing and amplified by the analog signal processing unit 80. The analog R, G, B signals output from the analog signal processing unit 80 are converted into digital R, G, B signals by the A / D converter 81 and input to the image input controller (buffer memory) 82. The

デジタル信号処理部85は、同時化回路(単板CCDのカラーフィルタ配列に伴う色信号の空間的なズレを補間して色信号を同時式に変換する処理回路)、ホワイトバランス調整回路、階調変換処理回路(ガンマ補正回路)、輪郭補正回路、輝度・色差信号生成回路等を含んでいる。画像入力コントローラ82に入力されたデジタルのR、G、B信号は、デジタル信号処理部85によって、同時化処理、ホワイトバランス調整、階調変換及び輪郭補正等の所定の処理が施されるとともに、輝度信号(Y信号)及び色差信号(Cr、Cb信号)からなるY/C信号に変換される。Y/C信号は、ワークメモリ39に記憶される。   The digital signal processing unit 85 includes a synchronization circuit (a processing circuit that converts a color signal into a simultaneous type by interpolating a spatial shift of the color signal associated with the color filter array of a single CCD), a white balance adjustment circuit, a gradation A conversion processing circuit (gamma correction circuit), a contour correction circuit, a luminance / color difference signal generation circuit, and the like are included. The digital R, G, and B signals input to the image input controller 82 are subjected to predetermined processing such as synchronization processing, white balance adjustment, gradation conversion, and contour correction by the digital signal processing unit 85. It is converted into a Y / C signal composed of a luminance signal (Y signal) and a color difference signal (Cr, Cb signal). The Y / C signal is stored in the work memory 39.

スルー画をLCDパネル20に表示する場合、デジタル信号処理部85において生成されたY/C信号がバッファメモリ88に順次供給される。表示コントローラ89は、バッファメモリ88に供給されたY/C信号を読み出してYC−RGB変換部90に出力する。YC−RGB変換部90は、表示コントローラ89から入力されたY/C信号をR、G、B信号に変換してドライバ91を介してLCDパネル20に出力する。これにより、LCDパネル20にスルー画が表示される。   When displaying the through image on the LCD panel 20, the Y / C signal generated in the digital signal processing unit 85 is sequentially supplied to the buffer memory 88. The display controller 89 reads the Y / C signal supplied to the buffer memory 88 and outputs it to the YC-RGB converter 90. The YC-RGB converter 90 converts the Y / C signal input from the display controller 89 into R, G, and B signals and outputs them to the LCD panel 20 via the driver 91. As a result, a through image is displayed on the LCD panel 20.

再生モード時には、メモリカード29に記録されている最終の画像データ(最後に記録された画像データ)が、メモリコントローラ94によりインターフェース部(I/F)95を介してバッファメモリ96に読み出され、圧縮・伸張処理部97によって非圧縮のY/C信号に伸張された後、バッファメモリ88に入力される。表示コントローラ89は、バッファメモリ88に供給されたY/C信号、及び当該画像データに含まれる表示モード識別子を読み出し、表示モード識別子に応じた表示モードに従ってYC−RGB変換部90に出力する。YC−RGB変換部90は、表示コントローラ89から入力されたY/C信号をR、G、B信号に変換してドライバ91を介してLCDパネル20に出力する。これにより、メモリカード29に記録されている画像データがLCDパネル20に表示される。   In the playback mode, the final image data recorded on the memory card 29 (last recorded image data) is read by the memory controller 94 to the buffer memory 96 via the interface unit (I / F) 95, The data is decompressed to an uncompressed Y / C signal by the compression / expansion processing unit 97 and then input to the buffer memory 88. The display controller 89 reads the Y / C signal supplied to the buffer memory 88 and the display mode identifier included in the image data, and outputs it to the YC-RGB converter 90 according to the display mode corresponding to the display mode identifier. The YC-RGB converter 90 converts the Y / C signal input from the display controller 89 into R, G, and B signals and outputs them to the LCD panel 20 via the driver 91. As a result, the image data recorded on the memory card 29 is displayed on the LCD panel 20.

表示モード判定部100は、システムバス36を介して、CPU35等と接続する。図4に示すように、表示モード判定部100は、3次元静止画撮影モードにより得られた複数の画像データが、3次元表示に適しているか否かを判定するものであり、視差量算出回路102と、第1判定回路103と、差分回路105と、影画素数算出回路106と、第2判定回路107とを有する。視差量算出回路102は、3次元静止画撮影モードにより得られた複数の画像について視差量を被写体ごとに算出する。第1判定回路103は得られた各視差量の差を算出する。更に、第1判定回路103は、得られた視差量の差が第1閾値TH1以上であるか否かを判定する。差分回路105は、複数の画像間のコントラスト差ΔCを画素毎に算出する。影画素数算出回路106は、コントラスト差ΔCが0未満の画素数(以下、影画素数と称する)を算出する。第2判定回路107は、得られた影画素数が第2閾値TH2以上であるか否かを判定する。   The display mode determination unit 100 is connected to the CPU 35 and the like via the system bus 36. As shown in FIG. 4, the display mode determination unit 100 determines whether or not a plurality of image data obtained in the three-dimensional still image shooting mode is suitable for three-dimensional display. 102, a first determination circuit 103, a difference circuit 105, a shadow pixel number calculation circuit 106, and a second determination circuit 107. The parallax amount calculation circuit 102 calculates the parallax amount for each subject for a plurality of images obtained in the three-dimensional still image shooting mode. The first determination circuit 103 calculates a difference between the obtained parallax amounts. Further, the first determination circuit 103 determines whether or not the obtained difference in parallax amount is equal to or greater than a first threshold value TH1. The difference circuit 105 calculates a contrast difference ΔC between a plurality of images for each pixel. The shadow pixel number calculation circuit 106 calculates the number of pixels whose contrast difference ΔC is less than 0 (hereinafter referred to as the number of shadow pixels). The second determination circuit 107 determines whether or not the obtained number of shadow pixels is greater than or equal to the second threshold value TH2.

CPU35は、表示モード判定部100による判定結果に応じて、当該画像データに所定の識別子を付与する。第1判定回路103により視差量が第1閾値TH1以上であると判定された場合、または第2判定回路107により視差量が第2閾値TH1以上であると判定された場合、CPU35は、当該画像データに3次元表示用識別子を付与する。一方、第1判定回路103により視差量が第1閾値TH1未満であると判定され、かつ、第2判定回路107により視差量が第2閾値TH2未満であると判定された場合、CPU35は、当該画像データに2次元表示用識別子を付与する。   The CPU 35 assigns a predetermined identifier to the image data according to the determination result by the display mode determination unit 100. When the first determination circuit 103 determines that the amount of parallax is greater than or equal to the first threshold TH1, or when the second determination circuit 107 determines that the amount of parallax is greater than or equal to the second threshold TH1, the CPU 35 A three-dimensional display identifier is assigned to the data. On the other hand, when the first determination circuit 103 determines that the amount of parallax is less than the first threshold TH1 and the second determination circuit 107 determines that the amount of parallax is less than the second threshold TH2, the CPU 35 A two-dimensional display identifier is assigned to the image data.

次に、画像の撮影及び記録処理について説明する。2次元静止画撮影モード時には、所定の1つの撮影部(例えば、12L)により記録用の画像が撮影される。2次元静止画撮影モード時に、撮影部12Lによって撮影された画像は、圧縮・伸張処理部97Lによって圧縮される。この圧縮画像データは、メモリコントローラ94及びI/F95を介して、所定形式の画像データとしてメモリカード29に記録される。例えば、静止画についてはJPEG(Joint Photographic Experts Group)、動画についてはMPEG2又はMPEG4、H.264規格に準拠した圧縮画像データとして記録される。   Next, image capturing and recording processing will be described. In the two-dimensional still image shooting mode, a recording image is shot by a predetermined one shooting unit (for example, 12L). In the two-dimensional still image shooting mode, an image shot by the shooting unit 12L is compressed by the compression / expansion processing unit 97L. The compressed image data is recorded on the memory card 29 as image data in a predetermined format via the memory controller 94 and the I / F 95. For example, JPEG (Joint Photographic Experts Group) for still images, MPEG2 or MPEG4 for moving images, and H.264. It is recorded as compressed image data conforming to the H.264 standard.

次に、3次元静止画撮影モードでの画像の撮影及び記録処理について説明する。図5に示すように、レリーズボタン28が全押しされる(S10)と、撮影準備処理(S12)、ストロボ撮影(S14)、及び非ストロボ撮影(S16)が順次行われる。なお、非ストロボ撮影の後にストロボ撮影を行ってもよいが、赤目防止の点から、ストロボ撮影の後に非ストロボ撮影を行ったほうが好ましい。   Next, image capturing and recording processing in the three-dimensional still image capturing mode will be described. As shown in FIG. 5, when the release button 28 is fully pressed (S10), shooting preparation processing (S12), strobe shooting (S14), and non-strobe shooting (S16) are sequentially performed. Although flash photography may be performed after non-flash photography, it is preferable to perform non-flash photography after flash photography from the viewpoint of preventing red-eye.

撮影準備処理(S12)では、ズーミング、フォーカシング、撮像素子50への入射光量の調節、AE処理及びAWB処理等を行う。   In the shooting preparation process (S12), zooming, focusing, adjustment of the amount of light incident on the image sensor 50, AE processing, AWB processing, and the like are performed.

ストロボ撮影(S14)では、ストロボ13が発光した状態で、撮影部12L及び12Rによる撮影が同時に行われる。各撮影部12L及び12Rによって撮影された2つのストロボON画像120L(図6参照)、120R(図7参照)は、デジタル信号処理部85による各種画像処理を経てワークメモリ39に書き込まれる。   In the flash photography (S14), photography by the photographing units 12L and 12R is performed simultaneously with the flash 13 emitting light. Two strobe ON images 120L (see FIG. 6) and 120R (see FIG. 7) photographed by the photographing units 12L and 12R are written in the work memory 39 through various image processing by the digital signal processing unit 85.

非ストロボ撮影(S16)では、ストロボ13が発光しない状態で、撮影部12L及び12Rによる撮影が同時に行われる。各撮影部12L及び12Rによって撮影された2つのストロボOFF画像121L(図8参照)、121R(図9参照)は、デジタル信号処理部85による各種画像処理を経てワークメモリ39に書き込まれる。   In non-flash photography (S16), photography by the photography units 12L and 12R is performed simultaneously with the flash 13 not emitting light. Two strobe OFF images 121L (see FIG. 8) and 121R (see FIG. 9) photographed by the photographing units 12L and 12R are written in the work memory 39 through various image processing by the digital signal processing unit 85.

非ストロボ撮影(S16)の後に、視差量算出回路102(図4参照)は、ストロボOFF画像121L及び121Rの視差量を算出する視差量算出処理を行う(S18)。   After the non-strobe shooting (S16), the parallax amount calculation circuit 102 (see FIG. 4) performs a parallax amount calculation process for calculating the parallax amounts of the strobe OFF images 121L and 121R (S18).

視差量算出処理(S18)では、まず、ステレオマッチング等の手法を用いて画像121L、121R間の相互に対応する対応点を抽出する。次に、画像121L及び121Rのいずれか一方を基準画像とし、他方を探索画像と規定する。第3に、基準画像内からエッジ等の特徴点を複数抽出し、基準画像を複数の領域(ブロック)に分割する。第4に、分割した領域をテンプレート画像として、探索画像の中からテンプレート画像に対応する領域を探索する。この対応領域の探索には、画素値の差の2乗和を求めるSSD(Sum of Squared Difference)、画素値の差の絶対値の総和を求めるSAD(Sum of Absolute Difference)等を用いることができる。第5に、見つかった探索領域内から基準画像の特徴点に対応する対応点を抽出する。第6に、特徴点と対応点との座標から視差量を算出することができる。   In the parallax amount calculation process (S18), first, corresponding points corresponding to each other between the images 121L and 121R are extracted using a technique such as stereo matching. Next, one of the images 121L and 121R is defined as a reference image, and the other is defined as a search image. Third, a plurality of feature points such as edges are extracted from the reference image, and the reference image is divided into a plurality of regions (blocks). Fourth, using the divided area as a template image, an area corresponding to the template image is searched from the search image. For the search of the corresponding region, SSD (Sum of Squared Difference) for obtaining the sum of squares of pixel value differences, SAD (Sum of Absolute Difference) for obtaining the sum of absolute values of pixel value differences, or the like can be used. . Fifth, corresponding points corresponding to the feature points of the reference image are extracted from the found search area. Sixth, the amount of parallax can be calculated from the coordinates of the feature points and the corresponding points.

図8及び図9には、画像121Lを基準画像、画像121Rを探索画像として特徴点及び対応点を抽出した例を示しており、基準画像121Lの特徴点P_L(xL,y)に対し、探索画像121Rの対応点P_R(xR,y)が抽出されている。視差量測定回路100は、特徴点P_L(xL,y)と対応点P_R(xR,y)との間の距離、例えば「xL−xR」の絶対値を視差量ΔPとして算出する。なお、図8及び9では、図面の煩雑化を避けるため、特徴点及び対応点を1点ずつしか図示していないが、実際には多数の特徴点及び対応点が抽出され、各点の間の視差量が算出される。こうして、視差量算出処理(S18)により、主要被写体Obの視差量ΔP1及び背景Bgの視差量ΔP2が得られる。   8 and 9 show an example in which feature points and corresponding points are extracted using the image 121L as a reference image and the image 121R as a search image. A search is performed on the feature point P_L (xL, y) of the reference image 121L. Corresponding points P_R (xR, y) of the image 121R are extracted. The parallax amount measurement circuit 100 calculates a distance between the feature point P_L (xL, y) and the corresponding point P_R (xR, y), for example, an absolute value of “xL−xR” as the parallax amount ΔP. In FIGS. 8 and 9, only one feature point and corresponding point are shown in order to avoid complicating the drawing. However, in actuality, a large number of feature points and corresponding points are extracted and the points between the points are extracted. Is calculated. In this manner, the parallax amount ΔP1 of the main subject Ob and the parallax amount ΔP2 of the background Bg are obtained by the parallax amount calculation process (S18).

まず、第1判定回路103は、視差量差ΔX(=|ΔP1−ΔP2|)を算出する(S20)。次に、第1判定回路103は、視差量差ΔXが第1閾値TH1以上であるか否かを判定する第1判定処理を行う(S22)。第1閾値TH1は、予めROM37に格納されている。視差量差ΔXが第1閾値TH1以上である場合には、CPU35が画像121L、121Rに3次元表示用識別子を付与する(S24)。その後、画像121L、121Rは、3次元表示用識別子とともに、メモリカード29へ画像データとして記録される(S26)。   First, the first determination circuit 103 calculates a parallax amount difference ΔX (= | ΔP1−ΔP2 |) (S20). Next, the first determination circuit 103 performs a first determination process for determining whether or not the parallax amount difference ΔX is greater than or equal to the first threshold value TH1 (S22). The first threshold TH1 is stored in the ROM 37 in advance. When the parallax amount difference ΔX is greater than or equal to the first threshold value TH1, the CPU 35 assigns a three-dimensional display identifier to the images 121L and 121R (S24). Thereafter, the images 121L and 121R are recorded as image data in the memory card 29 together with the three-dimensional display identifier (S26).

ROM37に格納する第1閾値TH1は、1個のみならず、2個以上であってもよい。ROM37に格納する第1閾値TH1が複数の場合には、選択された第1閾値TH1に基づいて、第1判定処理が行われる。複数の第1閾値TH1のうちから一の第1閾値TH1を選択する操作は、操作部31により可能である。したがって、操作部31の操作により、所望の第1閾値TH1に基づいて、第1判定処理を行うことができる。   The first threshold value TH1 stored in the ROM 37 may be not only one but two or more. When there are a plurality of first threshold values TH1 stored in the ROM 37, a first determination process is performed based on the selected first threshold value TH1. An operation of selecting one first threshold TH1 from among the plurality of first thresholds TH1 can be performed by the operation unit 31. Therefore, the first determination process can be performed based on the desired first threshold value TH1 by operating the operation unit 31.

第1判定処理(S22)において、視差量差ΔXが第1閾値TH1未満であると判定された場合には、差分回路105は、画像120R及び121Rの間のコントラスト差ΔCを画素毎に算出するコントラスト差算出処理を行う(S30)。コントラスト差ΔCは、画像121Rを構成する画素のうち座標(i,j)にある画素G121(図9参照)のコントラストC1と画像120Rを構成する画素のうち座標(i,j)にある画素G120(図7参照)のコントラストC0との差(C1−C0)である。各画素のコントラスト差ΔCを当該画素の対応位置に並べると、図10に示すような差分画像ΔRが得られる。   In the first determination process (S22), when it is determined that the parallax amount difference ΔX is less than the first threshold TH1, the difference circuit 105 calculates the contrast difference ΔC between the images 120R and 121R for each pixel. Contrast difference calculation processing is performed (S30). The contrast difference ΔC is the contrast C1 of the pixel G121 (see FIG. 9) at the coordinates (i, j) among the pixels constituting the image 121R and the pixel G120 at the coordinates (i, j) among the pixels constituting the image 120R. This is a difference (C1−C0) from the contrast C0 of FIG. When the contrast difference ΔC of each pixel is arranged at the corresponding position of the pixel, a difference image ΔR as shown in FIG. 10 is obtained.

次に、影画素数算出回路106は、影画素数SSを算出する影画素数算出処理(S32)を行う。図11に示すように、影画素数SSは、差分画像ΔRを構成する画素のうち、コントラスト差ΔCが0未満の画素の総数である。コントラスト差ΔCが0未満の画素の数を算出することにより、ストロボ撮影に起因する影画素数SSを算出することができる。   Next, the shadow pixel number calculation circuit 106 performs a shadow pixel number calculation process (S32) for calculating the shadow pixel number SS. As shown in FIG. 11, the shadow pixel number SS is the total number of pixels having a contrast difference ΔC of less than 0 among the pixels constituting the difference image ΔR. By calculating the number of pixels where the contrast difference ΔC is less than 0, it is possible to calculate the number of shadow pixels SS resulting from flash photography.

第2判定回路107は、得られた影画素数SSが第2閾値TH2以上であるか否かを判定する第2判定処理を行う(S34)。第2閾値TH2は、予めROM37に格納されている。影画素数SSが第2閾値TH2以上である場合には、画像121L、121Rには3次元表示用識別子が付与される(S22)。一方、影画素数SSが第2閾値TH2未満である場合には、画像121L、121Rには2次元表示用識別子が付与される(S36)。その後、画像121L、121Rは、付与された識別子とともに、メモリカード29へ画像データとして記録される(S26)。   The second determination circuit 107 performs a second determination process for determining whether or not the obtained number of shadow pixels SS is greater than or equal to the second threshold TH2 (S34). The second threshold value TH2 is stored in the ROM 37 in advance. If the number of shadow pixels SS is equal to or greater than the second threshold TH2, a three-dimensional display identifier is assigned to the images 121L and 121R (S22). On the other hand, when the number of shadow pixels SS is less than the second threshold value TH2, a two-dimensional display identifier is assigned to the images 121L and 121R (S36). Thereafter, the images 121L and 121R are recorded as image data in the memory card 29 together with the assigned identifier (S26).

ROM37に格納する第2閾値TH2は、1個のみならず、2個以上であってもよい。ROM37に格納する第2閾値TH2が複数の場合には、選択された第2閾値TH2に基づいて、第2判定処理が行われる。複数の第2閾値TH2のうちから一の第2閾値TH2を選択する操作は、操作部31により可能である。したがって、操作部31の操作により、所望の第2閾値TH2に基づいて、第2判定処理を行うことができる。   The second threshold TH2 stored in the ROM 37 may be not only one but two or more. When there are a plurality of second threshold values TH2 stored in the ROM 37, a second determination process is performed based on the selected second threshold value TH2. An operation of selecting one second threshold value TH2 from the plurality of second threshold values TH2 can be performed by the operation unit 31. Therefore, the second determination process can be performed based on the desired second threshold value TH2 by operating the operation unit 31.

次に、画像データをLCDパネル20に表示する場合のフローを説明する。図12に示すように、まず、メモリカード29に記録されている画像データを読む(S40)。CPU35は、画像データに付与される識別子が、3次元表示用識別子であるか否かを判定する(S42)。画像データに付与される識別子が3次元表示用識別子である場合には、表示コントローラ89は、3次元表示モードで当該画像をLCDパネル20に表示する(S44)。一方、画像データに付与される識別子が2次元表示用識別子である場合には、表示コントローラ89は、2次元表示モードで当該画像をLCDパネル20に表示する(S50)。次の画像データを読み込む場合にはS40へ戻る(S46)。一方、次の画像データを読み込まない場合にはフローは終了する(S46)。   Next, a flow for displaying image data on the LCD panel 20 will be described. As shown in FIG. 12, first, the image data recorded on the memory card 29 is read (S40). The CPU 35 determines whether or not the identifier given to the image data is a three-dimensional display identifier (S42). If the identifier assigned to the image data is a three-dimensional display identifier, the display controller 89 displays the image on the LCD panel 20 in the three-dimensional display mode (S44). On the other hand, when the identifier given to the image data is a two-dimensional display identifier, the display controller 89 displays the image on the LCD panel 20 in the two-dimensional display mode (S50). When the next image data is read, the process returns to S40 (S46). On the other hand, if the next image data is not read, the flow ends (S46).

本発明は、画像データに含まれる被写体の影の大きさに基づいて当該画像データの3次元表示モードの適性を判定するため、視差量の差のみによる方法に比べ高精度で、3次元表示モードの適性を判定することができる。例えば、スタジオ撮影のように背景が無地の場合であっても、本発明によれば、被写体の影の大きさにより被写体と背景との遠近差を評価することが可能となる結果、3次元表示モードの適性の判定を高精度で行うことができる。また、画像全体において被写体が占める割合が大きい場合には、迫力が出る点で3次元表示モードのほうが好ましいが、本発明によれば、このような場合にも3次元表示モードの適性の判定を高精度で行うことができる。   Since the present invention determines the suitability of the 3D display mode of the image data based on the size of the shadow of the subject included in the image data, the 3D display mode is more accurate than the method based only on the difference in parallax amount. Can be determined. For example, even when the background is plain as in the case of studio photography, according to the present invention, the perspective difference between the subject and the background can be evaluated based on the size of the shadow of the subject. The suitability of the mode can be determined with high accuracy. In addition, when the proportion of the subject in the entire image is large, the 3D display mode is preferable in terms of power. However, according to the present invention, the suitability of the 3D display mode is determined even in such a case. It can be done with high accuracy.

また、本発明は、この判定結果に基づいた識別子を画像データに付与するため、当該画像データを再生するときに、3次元表示に適する画像データを3次元で表示し、2次元表示に適する画像データを2次元で表示することができる。したがって、本発明によれば、画像の特性に応じて、3次元表示及び2次元表示を自動で切り替えることが可能になる。   In addition, since the present invention assigns an identifier based on the determination result to the image data, when reproducing the image data, the image data suitable for three-dimensional display is displayed in three dimensions, and the image is suitable for two-dimensional display. Data can be displayed in two dimensions. Therefore, according to the present invention, it is possible to automatically switch between the three-dimensional display and the two-dimensional display according to the characteristics of the image.

3次元表示用識別子が付与された2つの画像データを個別に保存してよいし、1つの画像データとして合成したものを保存してもよい。3次元表示用識別子が付与された2つの画像データを1つの画像データとして合成したものを保存する場合には、元の2つの画像データをバックアップ用として保存してもよい。2次元示用識別子が付与された2つの画像データのうちいずれか一方のみを保存してよいし、両方の画像データを保存してもよい。2つの画像データのうちいずれか一方のみを保存する場合、他方をバックアップ用として保存してもよい。これにより、本発明により適性ありと判定された表示モードと異なる表示モードで当該画像を表示することが可能となる。   Two pieces of image data to which a three-dimensional display identifier is assigned may be saved individually, or a combination of the pieces of image data may be saved. When storing a combination of two pieces of image data to which a three-dimensional display identifier is assigned as one piece of image data, the original two pieces of image data may be stored for backup. Only one of the two image data to which the two-dimensional display identifier is assigned may be stored, or both image data may be stored. When only one of the two image data is stored, the other may be stored for backup. Accordingly, the image can be displayed in a display mode different from the display mode determined to be appropriate by the present invention.

上記実施形態では、視差量算出処理(図5のS18)にて、各被写体の視差量が全て算出される場合に限って説明したが、視差量算出処理にて各被写体の視差量が算出できない場合においても、本発明を適用することができる。この場合のフローチャートを、図13に示す。なお、図13のフローチャートの説明は、上記実施形態と異なる部分のみについて行い、上記実施形態と同様の部分には、同一の符号を付し、詳細の説明を省略する。   In the above embodiment, the description has been given only in the case where all the parallax amounts of each subject are calculated in the parallax amount calculation processing (S18 in FIG. 5). Even in this case, the present invention can be applied. A flowchart in this case is shown in FIG. The description of the flowchart in FIG. 13 is performed only for parts different from the above embodiment, and the same parts as those in the above embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

レリーズボタン28が全押しされる(S10)と、撮影準備処理(S12)、ストロボ撮影(S14)、及び非ストロボ撮影(S16)が順次行われる。視差量算出処理(S18)では、ストロボOFF画像121L及び121Rの視差量を算出する。そして、視差量算出処理にて、全ての被写体の視差量が算出できなかった場合には、両方の画像データを保存し、処理を終了する。一方、複数の被写体のうち、視差量が算出できたものと、視差量が算出できなかったものとが混在する場合には、視差量が算出できた被写体の視差量には算出値を設定し、視差量が算出できなかった被写体の視差量には、当該被写体の視差量が算出できなかった旨を表す値(例えば、負の値)を設定する。   When the release button 28 is fully pressed (S10), shooting preparation processing (S12), strobe shooting (S14), and non-strobe shooting (S16) are sequentially performed. In the parallax amount calculation process (S18), the parallax amounts of the strobe OFF images 121L and 121R are calculated. If the parallax amount of all subjects cannot be calculated in the parallax amount calculation process, both image data are saved, and the process ends. On the other hand, when there are a plurality of subjects for which the amount of parallax can be calculated and those for which the amount of parallax could not be calculated, a calculated value is set for the amount of parallax of the subject for which the amount of parallax has been calculated. A value (for example, a negative value) indicating that the parallax amount of the subject could not be calculated is set as the parallax amount of the subject whose parallax amount could not be calculated.

次に、視差量算出処理で算出された各被写体の視差量のうち、視差量が算出できなかったものがあるか否かの判定をする算出値判定処理(S60)を行う。算出値判定処理において、視差量算出処理で算出された各被写体の視差量に、視差量が算出できなかったものが含まれていないと判定された場合には、視差量差ΔXを算出する(S20)。一方、算出値判定処理において、視差量算出処理で算出された各被写体の視差量に、視差量が算出できなかったものが含まれていると判定された場合には、コントラスト差算出処理が行われる(S30)。   Next, a calculation value determination process (S60) is performed to determine whether or not there is a parallax amount that could not be calculated among the parallax amounts of each subject calculated in the parallax amount calculation process. In the calculated value determination process, when it is determined that the parallax amount of each subject calculated in the parallax amount calculation process does not include a parallax amount that could not be calculated, a parallax amount difference ΔX is calculated ( S20). On the other hand, in the calculated value determination process, when it is determined that the parallax amount of each subject calculated in the parallax amount calculation process includes a parallax amount that could not be calculated, the contrast difference calculation process is performed. (S30).

このように、視差量算出処理(S18)及び視差量差ΔXの算出(S20)の間にて算出値判定処理(S60)を行うことにより、視差量算出処理で算出された各被写体の視差量に、視差量が算出できなかったものが含まれていないと判定された場合であっても、3次元表示モードの適性を判定することができる。   Thus, the parallax amount of each subject calculated in the parallax amount calculation processing is performed by performing the calculation value determination processing (S60) between the parallax amount calculation processing (S18) and the calculation of the parallax amount difference ΔX (S20). Therefore, even if it is determined that the parallax amount cannot be calculated, it is possible to determine the suitability of the three-dimensional display mode.

上記実施形態では、ストロボOFF画像を保存したが、本発明はこれに限られず、ストロボON画像を保存してもよい。   In the above embodiment, the strobe OFF image is stored. However, the present invention is not limited to this, and the strobe ON image may be stored.

上記実施形態では、差分画像ΔRの影画素数を用いて第2判定処理を行ったが、本発明はこれに限られず、第2撮影部により得られる画像の差分画像ΔRの影画素数を用いて第2判定処理を行ってもよい。また、差分画像ΔL、差分画像ΔRそれぞれの影画素数SS、SSを算出した後、影画素数SS、SSのうちいずれか大きいほうを用いて、第2判定処理を行ってもよい。 In the above embodiment, the second determination process is performed using the number of shadow pixels of the difference image ΔR. However, the present invention is not limited to this, and the number of shadow pixels of the difference image ΔR of the image obtained by the second imaging unit is used. Then, the second determination process may be performed. Further, the difference image [Delta] L, the difference image ΔR each shadow pixel number SS L, after calculating the SS R, shadow pixel number SS L, using the greater one of SS R, even if the second determination process Good.

上記実施形態では、影画素数の算出に差分画像ΔRを用いたが、本発明はこれに限られず、影画素数の算出にストロボON画像を用いてもよい。この場合には、非ストロボ撮影(図5のS16)、及びコントラスト差ΔC算出(図5のS30)を省略することができる。   In the above embodiment, the difference image ΔR is used for calculating the number of shadow pixels. However, the present invention is not limited to this, and a strobe ON image may be used for calculating the number of shadow pixels. In this case, non-flash photography (S16 in FIG. 5) and contrast difference ΔC calculation (S30 in FIG. 5) can be omitted.

上記実施形態では、視差量ΔPの算出に用いる画像として2つのストロボOFF画像を用いたが、本発明はこれに限られず、視差量ΔPの算出に用いる画像として2つのストロボON画像を用いてもよいし、差分画像ΔL、差分画像ΔR2を用いてもよい。   In the above embodiment, two strobe OFF images are used as images used for calculating the parallax amount ΔP. However, the present invention is not limited to this, and two strobe ON images may be used as images used for calculating the parallax amount ΔP. Alternatively, the difference image ΔL and the difference image ΔR2 may be used.

上記実施形態では、主要被写体及び背景を含む被写体において、視差量の差ΔXを、主要被写体の視差量及び背景の視差量の差としたが、本発明はこれに限られず、複数の主要被写体を含む被写体において、第1の主要被写体の視差量及び第2の主要被写体の視差量の差としてもよい。   In the above embodiment, the difference ΔX in the amount of parallax between the main subject and the subject including the background is the difference in the amount of parallax between the main subject and the background.However, the present invention is not limited to this, and a plurality of main subjects In the including subject, the difference between the parallax amount of the first main subject and the parallax amount of the second main subject may be used.

11 デジタルカメラ
12 デジタルフォトフレーム
12L 第1撮影部
12R 第2撮影部
14L 光学系
14R 光学系
35 メインCPU
50R 撮像素子
50L 撮像素子
100 表示モード判定部
102 視差量算出回路
103 第1判定回路
105 差分回路
106 影画素数算出回路
107 第2判定回路
DESCRIPTION OF SYMBOLS 11 Digital camera 12 Digital photo frame 12L 1st imaging | photography part 12R 2nd imaging | photography part 14L Optical system 14R Optical system 35 Main CPU
50R image sensor 50L image sensor 100 display mode determination unit 102 parallax amount calculation circuit 103 first determination circuit 105 difference circuit 106 shadow pixel number calculation circuit 107 second determination circuit

Claims (9)

被写体を異なる視点から同時に撮影して得られた複数の画像データに基づいて、第1の被写体についての第1の視差量及び第2の被写体についての第2の視差量を算出する視差量算出手段と、
前記第1の視差量及び前記第2の視差量の差が第1の閾値以上である場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記視差量の差が前記第1の閾値未満である場合には、前記複数の画像データの判定を保留にする第1の表示モード判定手段と、
前記視差量の差が前記第1の閾値未満である場合には、前記画像データを成す画素のうち前記被写体の影を成す画素の数を算出する影画素数算出手段と、
前記算出された影の画素の数が第2の閾値以上の場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記算出された影の画素の数が前記第2の閾値未満の場合には、前記複数の画像データを3次元表示の適正なしと判定する第2の表示モード判定手段とを有することを特徴とする表示モード判定装置。
Parallax amount calculation means for calculating a first parallax amount for the first subject and a second parallax amount for the second subject based on a plurality of image data obtained by simultaneously photographing the subject from different viewpoints. When,
When the difference between the first parallax amount and the second parallax amount is greater than or equal to a first threshold, the plurality of image data is determined to be appropriate for three-dimensional display, and the difference between the parallax amounts A first display mode determination unit that puts the determination of the plurality of image data on hold when it is less than a first threshold;
When the difference in parallax amount is less than the first threshold value, the number of shadow pixels calculating means for calculating the number of pixels forming the shadow of the subject among the pixels forming the image data;
When the calculated number of shadow pixels is equal to or greater than a second threshold, the plurality of image data are determined to be appropriate for three-dimensional display, and the calculated number of shadow pixels is the second number. A display mode determination apparatus comprising: a second display mode determination unit that determines that the plurality of pieces of image data are not appropriate for three-dimensional display when less than a threshold value.
前記影画素数算出手段は、前記被写体へ光を照射していないときの前記画像データを基準とした場合の、前記被写体へ光を照射したときの前記画像データのコントラスト差を画素ごとに算出し、前記コントラスト差が0未満である画素の総数を前記影の画素の数とすることを特徴とする請求項1記載の表示モード判定装置。   The shadow pixel number calculating means calculates, for each pixel, the contrast difference of the image data when the subject is irradiated with light when the image data when the subject is not irradiated with light is used as a reference. 2. The display mode determination apparatus according to claim 1, wherein the total number of pixels having the contrast difference of less than 0 is set as the number of shadow pixels. 3次元表示の適正ありと判定された前記複数の画像データに3次元表示用識別子を付与し、前記表示モード判定装置により3次元表示の適正なしと判定された前記複数の画像データに2次元表示用識別子を付与する識別子付与手段を有することを特徴とする請求項1または2記載の表示モード判定装置。   A three-dimensional display identifier is assigned to the plurality of image data determined to be appropriate for three-dimensional display, and two-dimensional display is performed for the plurality of image data determined to be inappropriate for three-dimensional display by the display mode determination device. The display mode determination apparatus according to claim 1, further comprising an identifier providing unit that assigns an identifier for use. 前記3次元表示用識別子を含む前記複数の画像データを3次元画像として表示し、前記2次元表示用識別子を含む前記複数の画像データを2次元画像として表示する表示装置を有することを特徴とする請求項3記載の表示モード判定装置。   A display device that displays the plurality of image data including the three-dimensional display identifier as a three-dimensional image and displays the plurality of image data including the two-dimensional display identifier as a two-dimensional image is provided. The display mode determination apparatus according to claim 3. 前記複数の画像データに前記3次元表示用識別子が付与されている場合には、前記複数の画像データを記憶し、前記複数の画像データに前記2次元表示用識別子が付与されている場合には、前記複数の画像データのうち少なくともいずれか一方を記憶する記録手段を有することを特徴とする請求項3または4記載の表示モード判定装置。   When the three-dimensional display identifier is given to the plurality of image data, the plurality of image data is stored, and when the two-dimensional display identifier is given to the plurality of image data 5. A display mode determination apparatus according to claim 3, further comprising recording means for storing at least one of the plurality of image data. 前記記録手段は、前記複数の画像データに前記2次元表示用識別子が付与されている場合にも、前記複数の画像データの両方を記憶することを特徴とする請求項5記載の表示モード判定装置。   6. The display mode determination apparatus according to claim 5, wherein the recording unit stores both the plurality of image data even when the two-dimensional display identifier is assigned to the plurality of image data. . 前記被写体の画像を結像する複数の光学系がデジタルカメラ本体に露呈するように設けられ、
前記結合した前記画像を画像データとして取り込む撮像素子、及び請求項2ないし6のうちいずれか1項記載の表示モード判定装置が前記デジタルカメラ本体に内蔵され、
前記被写体へ前記光を放つ発光装置は第1の光学系とにより第2の光学系を挟む位置に配されたことを特徴とする撮影装置。
A plurality of optical systems that form an image of the subject are provided to be exposed to the digital camera body,
An image sensor that captures the combined image as image data, and a display mode determination device according to any one of claims 2 to 6, are incorporated in the digital camera body,
The light-emitting device that emits the light to the subject is disposed at a position sandwiching the second optical system by the first optical system.
被写体を異なる視点から同時に撮影して得られた複数の画像データに基づいて、第1の被写体についての第1の視差量及び第2の被写体についての第2の視差量を算出する視差量算出ステップと、
前記第1の視差量及び前記第2の視差量の差が第1の閾値以上である場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記視差量の差が前記第1の閾値未満である場合には、前記複数の画像データの判定を保留にする第1の表示モード判定ステップと、
前記視差量の差が前記第1の閾値未満である場合には、前記画像データを成す画素のうち前記被写体の影を成す画素の数を算出する影画素数算出ステップと、
前記算出された影の画素の数が第2の閾値以上の場合には、前記複数の画像データを3次元表示の適正ありと判定し、前記算出された影の画素の数が前記第2の閾値未満の場合には、前記複数の画像データを3次元表示の適正なしと判定する第2の表示モード判定ステップとを有することを特徴とする表示モード判定方法。
A parallax amount calculating step of calculating a first parallax amount for the first subject and a second parallax amount for the second subject based on a plurality of image data obtained by simultaneously photographing the subject from different viewpoints. When,
When the difference between the first parallax amount and the second parallax amount is greater than or equal to a first threshold, the plurality of image data is determined to be appropriate for three-dimensional display, and the difference between the parallax amounts If it is less than the first threshold, a first display mode determination step for holding the determination of the plurality of image data;
When the difference in the amount of parallax is less than the first threshold value, a shadow pixel number calculating step for calculating the number of pixels forming the shadow of the subject among the pixels forming the image data;
When the calculated number of shadow pixels is equal to or greater than a second threshold, the plurality of image data are determined to be appropriate for three-dimensional display, and the calculated number of shadow pixels is the second number. A display mode determination method, comprising: a second display mode determination step of determining that the plurality of image data are not appropriate for three-dimensional display when the image data is less than the threshold value.
請求項8記載の表示モード判定方法と、
光が照射された前記被写体を異なる視点から同時に撮影して照射画像データを生成する照射撮影ステップと、
前記光の照射を終えた後の前記被写体を異なる視点から同時に撮影して非照射画像データを生成する非照射撮影ステップとを有し、
前記照射撮影ステップ及び前記非照射撮影ステップは前記影画素数算出ステップの前に行われ、
前記影画素数算出ステップでは、
前記非照射画像データを基準とした場合の前記照射画像データのコントラスト差を画素ごとに算出するコントラスト差算出ステップと、
前記コントラスト差が0未満である画素の数を前記影の画素の数とする画素数ステップとを行うことを特徴とする撮影方法。
A display mode determination method according to claim 8,
An irradiation photographing step of simultaneously photographing the subject irradiated with light from different viewpoints to generate irradiation image data;
A non-irradiation photographing step of simultaneously photographing the subject after the irradiation of light from different viewpoints and generating non-irradiation image data;
The irradiation photographing step and the non-irradiation photographing step are performed before the shadow pixel number calculating step,
In the shadow pixel number calculating step,
A contrast difference calculating step for calculating, for each pixel, a contrast difference of the irradiated image data when the non-irradiated image data is used as a reference;
And a pixel number step in which the number of pixels having a contrast difference of less than 0 is set as the number of shadow pixels.
JP2009232653A 2009-10-06 2009-10-06 Display mode determination device and method, and imaging device and method Withdrawn JP2011082757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009232653A JP2011082757A (en) 2009-10-06 2009-10-06 Display mode determination device and method, and imaging device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009232653A JP2011082757A (en) 2009-10-06 2009-10-06 Display mode determination device and method, and imaging device and method

Publications (1)

Publication Number Publication Date
JP2011082757A true JP2011082757A (en) 2011-04-21

Family

ID=44076359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009232653A Withdrawn JP2011082757A (en) 2009-10-06 2009-10-06 Display mode determination device and method, and imaging device and method

Country Status (1)

Country Link
JP (1) JP2011082757A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014531860A (en) * 2011-09-29 2014-11-27 クゥアルコム・インコーポレイテッドQualcomm Incorporated Method and apparatus for conditional display of stereoscopic image pairs

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014531860A (en) * 2011-09-29 2014-11-27 クゥアルコム・インコーポレイテッドQualcomm Incorporated Method and apparatus for conditional display of stereoscopic image pairs
US9402065B2 (en) 2011-09-29 2016-07-26 Qualcomm Incorporated Methods and apparatus for conditional display of a stereoscopic image pair
US10171791B2 (en) 2011-09-29 2019-01-01 Qualcomm Incorporated Methods and apparatus for conditional display of a stereoscopic image pair

Similar Documents

Publication Publication Date Title
JP5249149B2 (en) Stereoscopic image recording apparatus and method, stereoscopic image output apparatus and method, and stereoscopic image recording and output system
JP4737573B2 (en) 3D image output apparatus and method
US9077976B2 (en) Single-eye stereoscopic image capturing device
JP5096048B2 (en) Imaging apparatus, stereoscopic image reproduction apparatus, and stereoscopic image reproduction program
JP5269252B2 (en) Monocular stereoscopic imaging device
JP5371845B2 (en) Imaging apparatus, display control method thereof, and three-dimensional information acquisition apparatus
US8284294B2 (en) Compound-eye image pickup apparatus
JP2011045039A (en) Compound-eye imaging apparatus
JP5415170B2 (en) Compound eye imaging device
JP4763827B2 (en) Stereoscopic image display device, compound eye imaging device, and stereoscopic image display program
US20110050856A1 (en) Stereoscopic imaging apparatus
JP4764854B2 (en) Imaging apparatus, image reproducing apparatus, imaging method, system, and program
RU2567438C1 (en) Image forming device and method of controlling same
US20110025824A1 (en) Multiple eye photography method and apparatus, and program
JP4748398B2 (en) Imaging apparatus, imaging method, and program
JP2010103949A (en) Apparatus, method and program for photographing
JP2010237582A (en) Three-dimensional imaging apparatus and three-dimensional imaging method
JP2014036362A (en) Imaging device, control method therefor, and control program
JP2011097451A (en) Three-dimensional image display device and method
JP4748399B2 (en) Image processing system, image processing apparatus, and image processing method
JP5001960B2 (en) 3D image display apparatus and method
JP4833947B2 (en) Image recording apparatus, image editing apparatus, and image recording method
WO2013005477A1 (en) Imaging device, three-dimensional image capturing method and program
JP2011211717A (en) Three-dimensional image output device and method
JP2011082757A (en) Display mode determination device and method, and imaging device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120524

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20130422