JP6230266B2 - Imaging apparatus, image processing apparatus, and control method - Google Patents

Imaging apparatus, image processing apparatus, and control method Download PDF

Info

Publication number
JP6230266B2
JP6230266B2 JP2013106081A JP2013106081A JP6230266B2 JP 6230266 B2 JP6230266 B2 JP 6230266B2 JP 2013106081 A JP2013106081 A JP 2013106081A JP 2013106081 A JP2013106081 A JP 2013106081A JP 6230266 B2 JP6230266 B2 JP 6230266B2
Authority
JP
Japan
Prior art keywords
image
parallax
aspect ratio
subject
parallax amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2013106081A
Other languages
Japanese (ja)
Other versions
JP2014229974A5 (en
JP2014229974A (en
Inventor
慎二 久本
慎二 久本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013106081A priority Critical patent/JP6230266B2/en
Publication of JP2014229974A publication Critical patent/JP2014229974A/en
Publication of JP2014229974A5 publication Critical patent/JP2014229974A5/ja
Application granted granted Critical
Publication of JP6230266B2 publication Critical patent/JP6230266B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stereoscopic And Panoramic Photography (AREA)
  • Processing Or Creating Images (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Description

本発明は、立体映像処理が可能な撮像装置、画像処理装置、および制御方法に関する。
The present invention relates to an imaging apparatus , an image processing apparatus, and a control method that can perform stereoscopic video processing.

近年、3次元(3D)シネマや3Dディスプレイ等、立体映像関連機器の普及が急速に進んでいる。立体映像撮影は従来からフィルム式カメラ等でも行われてきたが、デジタル撮像装置の普及に伴い、デジタルカメラやデジタルビデオカメラ等により立体映像を生成するための元画像が撮影されるようになってきている。   In recent years, three-dimensional (3D) cinema, 3D display, and other 3D video related devices are rapidly spreading. Although stereoscopic video shooting has been conventionally performed with a film camera or the like, with the widespread use of digital imaging devices, original images for generating stereoscopic video with a digital camera, a digital video camera, and the like have been captured. ing.

立体映像をユーザが鑑賞する仕組みとしては、対象物を左目で見た像及び右目で見た像に対応するように、左右方向に視差を持たせた、左目用画像データと右目用画像データが用意される。各画像をユーザが左目と右目でそれぞれ見ることで立体視可能である。その方法には、視差バリア方式やレンチキュラ方式等のように鑑賞対象の映像を視差分割する方法がある。また左右で特性の異なるフィルタを介して、ユーザの左目と右目に異なる映像を提示する方法等が知られている。   As a mechanism for a user to view a stereoscopic video, left-eye image data and right-eye image data that have a parallax in the left-right direction so as to correspond to an image viewed from the left eye and an image viewed from the right eye are provided. Prepared. A user can view each image stereoscopically by viewing the image with the left eye and the right eye. As such a method, there is a method of dividing an image to be viewed, such as a parallax barrier method or a lenticular method, into a parallax. There is also known a method for presenting different images to the left and right eyes of the user through filters having different characteristics on the left and right.

一方、立体映像として鑑賞可能な画像の撮影方法として、異なる視点での画像を同時に撮影する方法が、特許文献1および2に開示されている。特許文献1は、複数の微小レンズが形成され、該微小レンズの各々に近接して、対を成すフォトダイオードが1対以上配置されている固体撮像素子を開示する。フォトダイオード対のうち、一方のフォトダイオードの出力から第1の画像信号が得られ、他方のフォトダイオードの出力から第2の画像信号が得られる。第1及び第2の画像信号に基づく左目用画像、右目用画像をそれぞれ用いることで、ユーザは立体映像の鑑賞が可能となる。   On the other hand, Patent Documents 1 and 2 disclose a method for simultaneously capturing images from different viewpoints as a method for capturing an image that can be viewed as a stereoscopic video. Patent Document 1 discloses a solid-state imaging device in which a plurality of microlenses are formed, and one or more pairs of photodiodes are arranged in proximity to each of the microlenses. A first image signal is obtained from the output of one of the photodiode pairs, and a second image signal is obtained from the output of the other photodiode. By using the left-eye image and the right-eye image based on the first and second image signals, the user can view a stereoscopic video.

また、特許文献2は、第1の画像のそれぞれの画素に適用されるべきシフトに対応する出力値を持つ出力要素を有する出力視差マップを開示する。この出力視差マップと第1の画像とに基づいて、第2の画像を生成することができる。   Patent Document 2 discloses an output parallax map having an output element having an output value corresponding to a shift to be applied to each pixel of the first image. A second image can be generated based on the output parallax map and the first image.

特開昭58−24105号公報JP-A-58-24105 特表2008−518317号公報Special table 2008-518317

立体映像を鑑賞するには、ユーザが左目で鑑賞するための左目用画像と、右目で鑑賞するための右目用画像を用意する必要がある。一方、撮影画像の縦横比、すなわちアスペクト比を選択可能なデジタルカメラでは、アスペクト比に応じて、撮像後の画像処理の手前でトリミング加工を施す方法や、画像処理後の記録画像に対してトリミング加工を施す方法がある。   In order to view a stereoscopic image, it is necessary to prepare a left-eye image for a user to view with a left eye and a right-eye image for a user to view with a right eye. On the other hand, for digital cameras that can select the aspect ratio of the shot image, that is, the aspect ratio, trimming can be performed on the recorded image after image processing, or by performing a trimming process before image processing after imaging according to the aspect ratio. There is a method of processing.

立体視表示が可能な映像を出力できるカメラにおいて、アスペクト比を複数設定できる機能を備える場合、設定されたアスペクト比によっては、表示画像の立体感が得られなくなる場合が生じ得る。以下、その理由について図9を参照して説明する。   When a camera capable of outputting an image capable of stereoscopic display has a function of setting a plurality of aspect ratios, the stereoscopic effect of the display image may not be obtained depending on the set aspect ratio. Hereinafter, the reason will be described with reference to FIG.

図9は撮影画像を模式的に示す図であり、カメラからの距離が異なる3つの被写体を例示する。図9(C)の矢印Zは奥行き方向を表し、被写体1105はカメラから最も遠い被写体を表す。被写体1107はカメラに最も近い被写体を表し、被写体1106は、被写体1105と1107との間の距離に位置する被写体を表す。被写体1107が最も右に位置し、被写体1105が最も左に位置する。   FIG. 9 is a diagram schematically showing a photographed image, and illustrates three subjects with different distances from the camera. The arrow Z in FIG. 9C represents the depth direction, and the subject 1105 represents the subject farthest from the camera. A subject 1107 represents a subject closest to the camera, and a subject 1106 represents a subject located at a distance between the subjects 1105 and 1107. The subject 1107 is located on the rightmost side, and the subject 1105 is located on the leftmost side.

図9(A)は、アスペクト比を、例えば3:2に設定して画像枠1103a内で被写体を撮影した構図を例示する。画像枠1103a内にて、各被写体像には被写体1105、1106、1107と同じ符号を使用しており、上から符号の順に並んでいる。図9(B)は、アスペクト比を、例えば1:1に設定して画像枠1103b内で被写体を撮影した構図を例示する。つまり、画像枠1103aに対して、上下方向の線1101および線1102の内側の画像だけが撮影されるので、画像枠1103bは、画像枠1103aに比べて左右方向の撮影範囲が狭い。よって、画像枠1103aに写っている被写体1107の画像は、画像枠1103bから削除される。画像枠1103aの場合と同様の立体画像処理により、画像枠1103bの構図について処理を行った場合、被写体1107が画角から外れてしまう。このため、被写体1105および1106についての奥行き量が計算され、画像枠1103aの場合に比べて十分な立体感が得られなくなる可能性がある。   FIG. 9A illustrates a composition in which the subject is photographed within the image frame 1103a with the aspect ratio set to 3: 2, for example. Within the image frame 1103a, the same reference numerals are used for the subject images as the subjects 1105, 1106, and 1107, and they are arranged in the order of the symbols from the top. FIG. 9B illustrates a composition in which the subject is photographed within the image frame 1103b with the aspect ratio set to 1: 1, for example. In other words, since only the image inside the vertical line 1101 and the line 1102 is captured with respect to the image frame 1103a, the image frame 1103b has a narrow lateral imaging range compared to the image frame 1103a. Therefore, the image of the subject 1107 in the image frame 1103a is deleted from the image frame 1103b. When processing is performed on the composition of the image frame 1103b by the same stereoscopic image processing as in the case of the image frame 1103a, the subject 1107 deviates from the angle of view. For this reason, the depth amounts for the subjects 1105 and 1106 are calculated, and there is a possibility that sufficient stereoscopic effect may not be obtained as compared with the case of the image frame 1103a.

そこで、本発明の目的は、アスペクト比の設定に応じて視差補正を行うことで立体感を損なわない画像処理を行う装置およびその制御方法を提供することである。
An object of the present invention is to provide an image processing line USo location and a control method which does not impair the stereoscopic effect by performing parallax correction in accordance with the setting of the aspect ratio.

上記課題を解決するために、本発明の一実施形態に係る装置は、複数の光電変換部の出力信号から異なる視点の画像信号を取得する取得手段と、前記異なる視点の画像信号を合成して合成画像データを生成する画像処理手段と、前記異なる視点の画像信号から被写体の視差量を算出する視差量算出手段と、撮影した画像に係る第1アスペクト比から、画像の記録又は再生に係る第2アスペクト比への変更により画像枠から除外される画像範囲が存在する場合、異なる視点の画像における被写体の視差量を補正する視差補正手段を備える。前記視差補正手段は、前記第1アスペクト比および前記第2アスペクト比から決定される補正パラメータにより前記視差量を補正する際、前記第1アスペクト比での画像のうち、前記第2アスペクト比への変更により前記画像枠から除外される画像範囲が大きいほど、前記視差量を大きくする。
In order to solve the above-mentioned problem, an apparatus according to an embodiment of the present invention combines an acquisition unit that acquires image signals of different viewpoints from output signals of a plurality of photoelectric conversion units, and an image signal of the different viewpoints. An image processing unit that generates composite image data, a parallax amount calculating unit that calculates a parallax amount of the subject from the image signals of different viewpoints, and a first aspect ratio related to the captured image, are used for recording or reproducing an image. When there is an image range that is excluded from the image frame due to the change to the two aspect ratio, a parallax correction unit that corrects the parallax amount of the subject in the images of different viewpoints is provided. When the parallax correction unit corrects the parallax amount by a correction parameter determined from the first aspect ratio and the second aspect ratio, the parallax correction unit converts the parallax correction unit to the second aspect ratio among the images having the first aspect ratio. The larger the image range excluded from the image frame due to the change, the larger the parallax amount.

本発明によれば、アスペクト比の設定に応じて視差補正を行うことにより、立体感を損なわない画像処理を行える。   According to the present invention, by performing parallax correction in accordance with the setting of the aspect ratio, it is possible to perform image processing that does not impair the stereoscopic effect.

図2ないし図8と併せて本発明の実施形態を説明するために、撮像素子の全体構成を概略的に例示した図である。FIG. 9 is a diagram schematically illustrating an entire configuration of an image sensor in order to describe an embodiment of the present invention in conjunction with FIGS. 2 to 8. 撮像素子の1画素の構成例(A)、および画素アレイ(B)の配置を概略的に示す図である。It is a figure which shows schematically the structural example (A) of 1 pixel of an image pick-up element, and arrangement | positioning of a pixel array (B). 物体の結像関係を模式的に示す図である。It is a figure which shows typically the imaging relationship of an object. 撮像装置の概略構成例を示す図である。It is a figure which shows the example of schematic structure of an imaging device. ステレオ画像を模式的に例示した図である。It is the figure which illustrated the stereo image typically. ステレオ表示装置での鑑賞時の様子を模式的に例示した図である。It is the figure which illustrated typically the mode at the time of appreciation with a stereo display apparatus. 視差補正処理について概念的に例示した図である。It is the figure which illustrated conceptually about the parallax correction process. 撮像装置の処理例を示すフローチャートである。It is a flowchart which shows the process example of an imaging device. アスペクト比の設定に応じた構図を概念的に例示した図である。It is the figure which illustrated notionally the composition according to the setting of an aspect ratio.

以下に、本発明の実施形態を、添付図面に基づいて詳細に説明する。   Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

図1は、本実施形態の撮像装置で使用する撮像素子の構成例を概略的に示す図である。撮像素子100は、画素アレイ101と、画素アレイ101における行を選択する垂直選択回路102と、画素アレイ101における列を選択する水平選択回路104を含む。読み出し回路103は、画素アレイ101中の画素のうち垂直選択回路102によって選択される画素の信号を読み出す。読み出し回路103は、信号を蓄積するメモリ、ゲインアンプ、AD変換器等を列毎に有する。   FIG. 1 is a diagram schematically illustrating a configuration example of an imaging element used in the imaging apparatus of the present embodiment. The image sensor 100 includes a pixel array 101, a vertical selection circuit 102 that selects a row in the pixel array 101, and a horizontal selection circuit 104 that selects a column in the pixel array 101. The readout circuit 103 reads out the signal of the pixel selected by the vertical selection circuit 102 among the pixels in the pixel array 101. The reading circuit 103 includes a memory for accumulating signals, a gain amplifier, an AD converter, and the like for each column.

シリアルインターフェース(SI)部105は、各回路の動作モード等を外部回路からの指示に従って決定する。垂直選択回路102は、画素アレイ101の複数の行を順次選択し、読み出し回路103に画素信号を取り出す。また水平選択回路104は、読み出し回路103によって読み出された複数の画素信号を列毎に順次選択する。なお、撮像素子100には、図1に示す構成要素以外に、例えば、垂直選択回路102、水平選択回路104、読み出し回路103等にタイミング信号を提供するタイミングジェネレータや、制御回路等が存在するが、これらの詳細な説明は省略する。   The serial interface (SI) unit 105 determines an operation mode of each circuit according to an instruction from an external circuit. The vertical selection circuit 102 sequentially selects a plurality of rows in the pixel array 101 and extracts pixel signals to the readout circuit 103. The horizontal selection circuit 104 sequentially selects a plurality of pixel signals read by the reading circuit 103 for each column. In addition to the components shown in FIG. 1, the imaging device 100 includes a timing generator that provides timing signals to the vertical selection circuit 102, the horizontal selection circuit 104, the readout circuit 103, and the like, a control circuit, and the like. Detailed description thereof will be omitted.

図2は撮像素子100の画素の構成例を示す図である。図2(A)は1画素の構成を概略的に示す。図2(B)は画素アレイ101の配置を示す。図2(A)に示す画素201は、光学素子としてのマイクロレンズ202と、受光素子としての複数のフォトダイオード(以下、PDと略記する)とを有する。   FIG. 2 is a diagram illustrating a configuration example of pixels of the image sensor 100. FIG. 2A schematically shows the configuration of one pixel. FIG. 2B shows the arrangement of the pixel array 101. A pixel 201 illustrated in FIG. 2A includes a microlens 202 as an optical element and a plurality of photodiodes (hereinafter abbreviated as PD) as light receiving elements.

図2(A)には、1画素に左側のPD203と右側のPD204の2個を設けた例を示すが、3個以上(例えば、4個または9個)のPDを用いてもよい。PD203は、受光した光束を光電変換して左目用画像の信号を出力する。PD204は、受光した光束を光電変換して右目用画像の信号を出力する。なお、画素201は、図示の構成要素以外にも、例えば、PD信号を読み出し回路103に取り出す画素増幅アンプや、行選択スイッチ、PD信号のリセットスイッチ等を備える。   FIG. 2A illustrates an example in which two pixels, the left PD 203 and the right PD 204, are provided in one pixel, but three or more (for example, four or nine) PDs may be used. The PD 203 photoelectrically converts the received light beam and outputs a left-eye image signal. The PD 204 photoelectrically converts the received light beam and outputs a right eye image signal. The pixel 201 includes, for example, a pixel amplification amplifier that extracts a PD signal to the readout circuit 103, a row selection switch, a PD signal reset switch, and the like in addition to the illustrated components.

画素アレイ101は、2次元画像を提供するため、図2(B)に示す多数の画素301から304のように、2次元アレイ状に配列して構成される。画素301から304にて、PD301L、302L、303L、304Lは、図2(A)中のPD203に相当する。また、PD301R、302R、303R、304Rは、図2(A)中のPD204に相当する。すなわち、各画素において、左目用画像データを出力する第1の光電変換部(PD203)と、右目用画像データを出力する第2の光電変換部(PD204)とを有する。   In order to provide a two-dimensional image, the pixel array 101 is arranged in a two-dimensional array like a large number of pixels 301 to 304 shown in FIG. In the pixels 301 to 304, PDs 301L, 302L, 303L, and 304L correspond to the PD 203 in FIG. PDs 301R, 302R, 303R, and 304R correspond to the PD 204 in FIG. That is, each pixel has a first photoelectric conversion unit (PD 203) that outputs image data for the left eye and a second photoelectric conversion unit (PD 204) that outputs image data for the right eye.

次に、図2(B)に示す画素構成を有する撮像素子100の受光について説明する。図3は撮影レンズの射出瞳から出た光束が撮像素子100に入射する様子を表した概念図である。   Next, light reception of the imaging element 100 having the pixel configuration illustrated in FIG. FIG. 3 is a conceptual diagram showing a state where a light beam emitted from the exit pupil of the photographing lens is incident on the image sensor 100.

画素アレイ101は、マイクロレンズ202と、カラーフィルタ403と、PD404および405を有する。PD404、PD405は、図2(A)中のPD203、PD204にそれぞれ相当する。   The pixel array 101 includes a microlens 202, a color filter 403, and PDs 404 and 405. PD 404 and PD 405 correspond to PD 203 and PD 204 in FIG.

図3において、各マイクロレンズ202に対して、撮影レンズの射出瞳406から出た光束の中心を光軸409とする。射出瞳406から出た光は、光軸409を中心として撮像素子100に入射する。一部領域407、408は、撮影レンズの射出瞳406の領域である。光線410、411は、一部領域407を通過する光の最外周の光線である。光線412、413は、一部領域408を通過する光の最外周の光線である。   In FIG. 3, the center of the light beam emitted from the exit pupil 406 of the photographing lens is defined as the optical axis 409 for each microlens 202. The light emitted from the exit pupil 406 enters the image sensor 100 with the optical axis 409 as the center. Partial areas 407 and 408 are areas of the exit pupil 406 of the photographing lens. Light rays 410 and 411 are the outermost light rays of the light passing through the partial region 407. Light rays 412 and 413 are the outermost light rays of the light passing through the partial region 408.

射出瞳406から出る光束のうち、光軸409を境界線として、図3の上側の光束はPD405に入射し、下側の光束はPD404に入射する。つまり、PD404とPD405は、撮影光学系の射出瞳の異なる領域からの光束をそれぞれ受光する。   Among the light beams emitted from the exit pupil 406, with the optical axis 409 as a boundary line, the upper light beam in FIG. 3 is incident on the PD 405, and the lower light beam is incident on the PD 404. That is, PD 404 and PD 405 receive light beams from different regions of the exit pupil of the photographing optical system.

図4は、本実施形態の撮像装置の構成例を示す図である。以下、図4を参照してデジタルカメラへの適用例について説明する。撮像光学系を構成するレンズ部501は、被写体からの光を撮像素子505に結像する。撮像素子505は、図1に示す撮像素子100に相当し、図2(B)に示す画素構成を有する。   FIG. 4 is a diagram illustrating a configuration example of the imaging apparatus according to the present embodiment. Hereinafter, an application example to a digital camera will be described with reference to FIG. The lens unit 501 constituting the imaging optical system forms an image of light from the subject on the imaging element 505. The imaging element 505 corresponds to the imaging element 100 illustrated in FIG. 1 and has a pixel configuration illustrated in FIG.

レンズ駆動装置502は、ズーム制御、フォーカス制御、絞り制御等を行う。メカニカルシャッタ503は、シャッタ駆動装置504によって制御される。撮像素子505は、レンズ部501により結像した被写体像を画像信号に変換する。撮像信号処理回路506は、撮像素子505の出力する画像信号に対して各種の処理や補正、データ圧縮等を行う。タイミング発生部507は、撮像素子505や撮像信号処理回路506に必要なタイミング信号を出力する。   The lens driving device 502 performs zoom control, focus control, aperture control, and the like. The mechanical shutter 503 is controlled by a shutter driving device 504. The image sensor 505 converts the subject image formed by the lens unit 501 into an image signal. The imaging signal processing circuit 506 performs various processes, corrections, data compression, and the like on the image signal output from the imaging element 505. The timing generator 507 outputs a timing signal necessary for the image sensor 505 and the image signal processing circuit 506.

システム制御部509は各種演算を行い、撮像装置全体を制御する制御手段であり、不図示のCPU(中央演算処理装置)がプログラムを実行することで処理を行う。システム制御部509は、画像合成回路513によって生成される合成画像と、視差マップ生成回路514によって生成される視差マップとに基づいて、立体視表示に使用する左目用画像と右目用画像の各データを生成する。また、システム制御部509は、左目用画像と右目用画像の再生制御を行うことで、ユーザは表示画面上で立体画像を鑑賞できる。なお、システム制御部509は、左目用画像データと右目用画像データに基づいて位相差を検出して、位相差AF(オートフォーカス)を実現することもできる。   A system control unit 509 is a control unit that performs various calculations and controls the entire imaging apparatus, and performs processing by a CPU (central processing unit) (not shown) executing a program. Based on the composite image generated by the image composition circuit 513 and the parallax map generated by the parallax map generation circuit 514, the system control unit 509 uses the left-eye image data and the right-eye image data used for stereoscopic display. Is generated. In addition, the system control unit 509 performs playback control of the left-eye image and the right-eye image, so that the user can view a stereoscopic image on the display screen. Note that the system control unit 509 can also realize phase difference AF (autofocus) by detecting a phase difference based on the left-eye image data and the right-eye image data.

記憶部508は、画像データを一時的に記憶するメモリを備える。記録媒体制御インターフェース部(以下、I/F部と略記する)510は、記録媒体511に画像データ等を記録し、または読み出すために設けられる。撮像装置に着脱可能な記録媒体511は、半導体メモリ等である。外部I/F部512は、外部装置との間でデータを送受する。表示部518は、表示制御回路517からの表示用データに従って、各種情報や撮影画像を表示する。   The storage unit 508 includes a memory that temporarily stores image data. A recording medium control interface unit (hereinafter abbreviated as I / F unit) 510 is provided for recording or reading image data or the like on the recording medium 511. The recording medium 511 that can be attached to and detached from the imaging apparatus is a semiconductor memory or the like. The external I / F unit 512 transmits / receives data to / from an external device. The display unit 518 displays various information and captured images in accordance with the display data from the display control circuit 517.

撮像信号処理回路506は、撮像素子505が出力する撮像データを左目用画像データと右目用画像データに振り分けて画像処理を行う。記憶部508は、撮像信号処理回路506の出力データ、画像合成回路513によって生成された合成画像データ、視差マップ生成回路514によって生成された視差マップデータを記憶する。   The imaging signal processing circuit 506 performs image processing by distributing imaging data output from the imaging element 505 into left-eye image data and right-eye image data. The storage unit 508 stores the output data of the imaging signal processing circuit 506, the synthesized image data generated by the image synthesis circuit 513, and the parallax map data generated by the parallax map generation circuit 514.

画像合成回路513は、左目用画像と右目用画像とを合成し、合成画像データを生成する。視差マップ生成回路514は視差量算出処理を行う。視差マップ生成回路514は、合成画像での被写体像の位置を基準として左目用画像/右目用画像での被写体像の位置ずれ量を視差量として算出する。算出した視差量に関する情報は視差マップデータとして記憶部508に記憶される。視差補正回路515は、視差マップ生成回路514で算出した視差量と補正パラメータを用いて視差量を補正する。視差量の補正処理の詳細については後述する。測光装置516は、露出制御に用いる測光値を取得してシステム制御部509に出力する。   The image composition circuit 513 synthesizes the left-eye image and the right-eye image to generate composite image data. The parallax map generation circuit 514 performs a parallax amount calculation process. The parallax map generation circuit 514 calculates, as a parallax amount, a positional deviation amount of the subject image in the left-eye image / right-eye image based on the position of the subject image in the composite image. Information about the calculated amount of parallax is stored in the storage unit 508 as parallax map data. The parallax correction circuit 515 corrects the parallax amount using the parallax amount calculated by the parallax map generation circuit 514 and the correction parameter. Details of the parallax amount correction processing will be described later. The photometric device 516 acquires a photometric value used for exposure control and outputs it to the system control unit 509.

次に、本実施形態における撮影時のデジタルカメラの動作について図8を参照して説明する。
メイン電源が投入されると、制御系回路部の電源がオン状態となる。更に撮像信号処理回路506等の撮像処理系回路の電源がオン状態となり、カメラシステムがスタンバイ状態となる(S1301)。システム制御部509は、ユーザが図示しないレリーズボタンを操作したか否かを判定する(S1302)。撮影動作を開始させる操作指示があった場合、S1303に進み、当該操作指示がない場合、S1302の判定処理が繰り返される。
Next, the operation of the digital camera at the time of shooting in this embodiment will be described with reference to FIG.
When the main power supply is turned on, the power supply of the control system circuit unit is turned on. Further, the power of the imaging processing system circuit such as the imaging signal processing circuit 506 is turned on, and the camera system is in a standby state (S1301). The system control unit 509 determines whether or not the user has operated a release button (not shown) (S1302). If there is an operation instruction to start the shooting operation, the process proceeds to S1303. If there is no operation instruction, the determination process of S1302 is repeated.

システム制御部509は、撮像素子505からの出力データに基づいて焦点状態検出および焦点調節動作に係る演算処理を行う(S1303)。この演算処理では、カメラから被写体までの距離に応じた合焦位置等が算出され、フォーカスレンズの駆動量が算出される。システム制御部509は、演算結果に従ってレンズ駆動装置502を介してレンズ部501の駆動制御を行う。次に、S1303の演算処理が終了したか否かについて判定され(S1304)、処理が終了した場合、撮影動作が開始し、S1305に進む。また、S1303の演算処理が終了していない場合、S1304の判定処理が繰り返されて待ち処理となる。   The system control unit 509 performs arithmetic processing related to focus state detection and focus adjustment operations based on output data from the image sensor 505 (S1303). In this calculation process, a focus position or the like corresponding to the distance from the camera to the subject is calculated, and the driving amount of the focus lens is calculated. The system control unit 509 performs drive control of the lens unit 501 via the lens driving device 502 according to the calculation result. Next, it is determined whether or not the calculation process of S1303 has been completed (S1304). If the process has been completed, the shooting operation is started, and the process proceeds to S1305. If the calculation process of S1303 has not ended, the determination process of S1304 is repeated to enter a waiting process.

S1305で撮影動作が終了すると、撮像信号処理回路506は、撮像素子505が出力した画像信号に画像処理を施す。システム制御部509はステレオ画像(左目用画像と右目用画像)のデータを取得して、記憶部508に書き込む制御を行う。S1306にてシステム制御部509はステレオ画像のデータ取得が終了したか否かを判定し、データ取得が終了した場合、S1307に処理を進め、データ取得が未終了の場合、S1306の判定処理が繰り返される。S1307にてシステム制御部509は、S1303での演算結果に基づいてカメラから被写体までの距離(被写体距離)を算出する。次のS1308でシステム制御部509は、S1307で算出した被写体距離と、撮影レンズの焦点距離等の情報を用いて撮影時の画角を求め、画角に応じた補正パラメータを算出する。補正パラメータの算出方法については後述する。   When the photographing operation is finished in step S1305, the imaging signal processing circuit 506 performs image processing on the image signal output from the imaging element 505. The system control unit 509 performs control to acquire data of a stereo image (left-eye image and right-eye image) and write the data to the storage unit 508. In step S1306, the system control unit 509 determines whether the acquisition of stereo image data has ended. If the data acquisition has ended, the system control unit 509 proceeds to step S1307. If the data acquisition has not ended, the determination processing in step S1306 is repeated. It is. In step S1307, the system control unit 509 calculates the distance from the camera to the subject (subject distance) based on the calculation result in step S1303. In next step S1308, the system control unit 509 obtains an angle of view at the time of photographing using information such as the subject distance calculated in step S1307 and the focal length of the photographing lens, and calculates a correction parameter corresponding to the angle of view. A method for calculating the correction parameter will be described later.

次に、視差マップ生成回路514は視差量の検出、および視差マップの生成処理を行う(S1309)。視差マップ生成回路514が検出した視差量と前記補正パラメータにより、視差補正回路515は、左目用画像と右目用画像の各々に対して、視差量補正を行う(S1310)。これにより、視差マップデータが修正される(S1311)。次のS1312でシステム制御部509は撮影終了について判定し、撮影終了の指示があった場合、S1313に処理を進め、また撮影動作を続行する場合、S1312の判定処理が繰り返される。S1313でシステム制御部509は、撮像装置への電源供給を停止し、必要な情報を記憶部508に保存するシャットダウン処理を実行する。   Next, the parallax map generation circuit 514 performs a parallax amount detection process and a parallax map generation process (S1309). Based on the amount of parallax detected by the parallax map generation circuit 514 and the correction parameter, the parallax correction circuit 515 corrects the amount of parallax for each of the left-eye image and the right-eye image (S1310). Thereby, the parallax map data is corrected (S1311). In next step S1312, the system control unit 509 determines whether or not to end the shooting. If there is an instruction to end the shooting, the process proceeds to S1313. If the shooting operation is continued, the determination process in S1312 is repeated. In step S <b> 1313, the system control unit 509 stops the power supply to the imaging device and executes a shutdown process that stores necessary information in the storage unit 508.

次に、本実施形態における画像処理について説明する。
撮像素子505は、PDからの全ての画像信号を出力する。図2(B)に示す例では、各PD、つまり301L、301R、302L、302R、303L、303R、304L、304Rという具合に、画像信号が順番に出力される。撮像信号処理回路506は、撮像素子505の出力信号から画像データを取得し、左目用画像データと右目用画像データへのデータ分離処理を行う。左目用画像のデータは、図2(B)におけるPD301L、302L、303L、304Lの出力(左PD出力)のみを選択的に処理した画像データである。また、右目用画像データは、図2(B)におけるPD301R、302R、303R、304Rの出力(右PD出力)のみを選択的に処理した画像データである。左目用画像データと右目用画像データは別々に記憶部508に保持される。
Next, image processing in this embodiment will be described.
The image sensor 505 outputs all image signals from the PD. In the example shown in FIG. 2B, image signals are sequentially output in the order of PDs, that is, 301L, 301R, 302L, 302R, 303L, 303R, 304L, and 304R. The imaging signal processing circuit 506 acquires image data from the output signal of the imaging element 505 and performs data separation processing into left-eye image data and right-eye image data. The left-eye image data is image data obtained by selectively processing only the outputs of PDs 301L, 302L, 303L, and 304L (left PD output) in FIG. The right-eye image data is image data obtained by selectively processing only the outputs (right PD output) of PDs 301R, 302R, 303R, and 304R in FIG. The left-eye image data and the right-eye image data are stored in the storage unit 508 separately.

記憶部508に記憶された左目用画像データおよび右目用画像データは、画像合成回路513に送られて合成画像データが生成される。生成された合成画像データは記憶部508に保存される。画像合成回路513が実行する画像処理は、左目用画像データと右目用画像データに対して画素毎の加算平均値を求める処理である。撮像素子505から読み出した画像データにて、左目用画像と右目用画像とで被写体の形状が異なって撮影された場合でも、画像合成処理によって被写体の形状が補間されて、正しい形状の画像データが生成される。   The left-eye image data and right-eye image data stored in the storage unit 508 are sent to the image composition circuit 513 to generate composite image data. The generated composite image data is stored in the storage unit 508. The image processing executed by the image composition circuit 513 is a process for obtaining an addition average value for each pixel for the left-eye image data and the right-eye image data. Even when the image data read from the image sensor 505 is photographed with different shapes of the subject for the left-eye image and the right-eye image, the shape of the subject is interpolated by the image composition processing, and image data with the correct shape is obtained. Generated.

次に、視差マップ生成回路514は左目用画像データと右目用画像データを用いて、視差マップを生成する。求められた視差マップデータは記憶部508に保存される。視差マップに保存される情報について、図5を用いて説明する。   Next, the parallax map generation circuit 514 generates a parallax map using the left-eye image data and the right-eye image data. The obtained parallax map data is stored in the storage unit 508. Information stored in the parallax map will be described with reference to FIG.

図5は撮影画像を模式的に示す図である。図5(A)は、画像枠601内にて、カメラからの距離が異なる3つの被写体602、603、604を撮影した画像を示す。各被写体と相似の小図形は、顔位置等に相当するそれぞれの特徴点を例示する。図5(C)の矢印Zは奥行き方向を表し、被写体602はカメラから最も遠い被写体を表す。被写体604はカメラに最も近い被写体を表し、被写体603は、被写体602と604との間の距離に位置する被写体を表す。   FIG. 5 is a diagram schematically showing a captured image. FIG. 5A shows images obtained by photographing three subjects 602, 603, and 604 with different distances from the camera in the image frame 601. Small figures similar to each subject exemplify feature points corresponding to face positions and the like. An arrow Z in FIG. 5C represents the depth direction, and a subject 602 represents a subject farthest from the camera. A subject 604 represents a subject closest to the camera, and a subject 603 represents a subject located at a distance between the subjects 602 and 604.

図5(B)は、図5(A)の画像枠601で示す構図を撮影した場合に得られるステレオ画像を、画像枠605、606にそれぞれ示す。画像枠605内の画像は左目用画像であり、画像枠606内の画像は右目用画像である。画像枠605内の左目用画像には、各被写体602、603、604に各々相当する像607L、608L、609Lが写っている。また画像枠606内の右目用画像には、各被写体602、603、604に各々相当する像607R、608R、609Rが写っている。図中の一点鎖線は、画像枠605、606における被写体像の位置関係を表しており、左目用画像と右目用画像での被写体像のシフト量を視差量と定義する。視差量610は、被写体602に関する、左目用画像と右目用画像での位置ずれ量、つまり像607Lと607Rの視差を表す。同様に視差量611は被写体604に関し、像609Lと609Rの位置ずれ量を表す。なお、被写体603については、左目用画像と右目用画像との間で、視差量がゼロの状態を示している。   FIG. 5B shows stereo images obtained when the composition shown by the image frame 601 in FIG. 5A is captured, in the image frames 605 and 606, respectively. The image in the image frame 605 is a left-eye image, and the image in the image frame 606 is a right-eye image. The left-eye image in the image frame 605 includes images 607L, 608L, and 609L corresponding to the subjects 602, 603, and 604, respectively. The right-eye image in the image frame 606 includes images 607R, 608R, and 609R corresponding to the subjects 602, 603, and 604, respectively. A one-dot chain line in the figure represents the positional relationship between the subject images in the image frames 605 and 606, and the shift amount of the subject image between the left-eye image and the right-eye image is defined as a parallax amount. The parallax amount 610 represents the positional deviation amount between the left-eye image and the right-eye image regarding the subject 602, that is, the parallax between the images 607L and 607R. Similarly, the parallax amount 611 represents the positional deviation amount of the images 609L and 609R with respect to the subject 604. The subject 603 shows a state in which the amount of parallax is zero between the left-eye image and the right-eye image.

視差マップ生成回路514は視差量を求める際、画像枠605内の左目用画像と画像枠606内の右目用画像に含まれる被写体像の位置を検出し、被写体像同士のシフト量を求めることで視差量を算出する。具体的には、視差マップ生成回路514に左目用画像データと右目用画像データが入力された場合、視差量610と611が算出される。そして、合成画像における被写体像の重心、つまり左目用画像での重心と右目用画像での重心との中点を基準として、左目用画像または右目用画像での被写体像の重心までの距離が演算により求められる。視差量610の半分の量612を示すデータと、視差量611の半分の量613を示すデータが、視差マップの情報として記憶部508に保存される。
図5(B)に示す視差量610は、カメラから最も遠い被写体の立体映像を表示させた場合の、見かけ上の奥行き量に対応する。また、視差量611は、カメラから最も近い被写体の立体映像を表示させた場合の、見かけ上の飛び出し量に対応する。つまり、左目用画像と右目用画像との視差量は、被写体を右目と左目で見た場合の視差を表しており、見かけ上の奥行き量や飛び出し量を決定する。
When obtaining the parallax amount, the parallax map generation circuit 514 detects the position of the subject image included in the left-eye image in the image frame 605 and the right-eye image in the image frame 606, and obtains the shift amount between the subject images. The amount of parallax is calculated. Specifically, when left-eye image data and right-eye image data are input to the parallax map generation circuit 514, parallax amounts 610 and 611 are calculated. Then, the distance to the center of gravity of the subject image in the left-eye image or right-eye image is calculated based on the center point of the subject image in the composite image, that is, the midpoint between the center of gravity in the left-eye image and the center of gravity in the right-eye image. Is required. Data indicating a half amount 612 of the parallax amount 610 and data indicating a half amount 613 of the parallax amount 611 are stored in the storage unit 508 as parallax map information.
A parallax amount 610 illustrated in FIG. 5B corresponds to an apparent depth amount when a stereoscopic image of a subject farthest from the camera is displayed. Further, the parallax amount 611 corresponds to an apparent pop-out amount when a stereoscopic image of the subject closest to the camera is displayed. That is, the parallax amount between the left-eye image and the right-eye image represents the parallax when the subject is viewed with the right eye and the left eye, and determines the apparent depth amount and pop-out amount.

図6を参照して、左目用画像および右目用画像がステレオ表示装置に表示された場合に、観察者に立体感を与える、一般的な視覚効果について説明する。
図6はステレオ表示装置での鑑賞時の様子を模式的に示し、ステレオ表示装置と観察者を上から俯瞰した図である。観察者902は、ステレオ表示装置のスクリーン面901を観察し、その左目903Lと右目903Rの位置をそれぞれに示す。スクリーン面901に映し出される各被写体像が、右目903Lと右目903Rに投影される様子を点線で模式的に示す。
With reference to FIG. 6, a general visual effect that gives a viewer a stereoscopic effect when a left-eye image and a right-eye image are displayed on a stereo display device will be described.
FIG. 6 schematically shows a state of viewing on a stereo display device, and is a view of the stereo display device and an observer viewed from above. The observer 902 observes the screen surface 901 of the stereo display device, and indicates the positions of the left eye 903L and the right eye 903R, respectively. A dotted line schematically shows how each subject image projected on the screen surface 901 is projected onto the right eye 903L and the right eye 903R.

スクリーン面901には、左目用画像、右目用画像が表示されて、観察者の左目903L、右目903Rのみに各々投影される。図6では、異なる被写体像の特徴点904LおよびR、905LおよびR、906LおよびRをそれぞれ例示し、これらは観察者の注視点に対応している。つまり、左目用画像における被写体の特徴点904L、905L、906Lの映像は左目903Lに投影され、右目用画像における被写体の特徴点904R、905R、906Rの映像は右目903Rに投影される。観察者には、左目用画像での特徴点904Lと右目用画像での特徴点904Rに対応する被写体像の位置904が、スクリーン面901よりも奥に見える。また、観察者には、左目用画像での特徴点905Lと右目用画像での特徴点905Rに対応する被写体像の位置905が、スクリーン面901上に見える。さらに、観察者には、左目用画像での特徴点906Lと右目用画像での特徴点906Rに対応する被写体像の位置906が、スクリーン面901よりも手前に飛び出して見える。これらの被写体像の奥行き量や飛び出し量は、左目用画像と右目用画像における被写体像の視差量に依存する。   A left-eye image and a right-eye image are displayed on the screen surface 901, and are projected only on the left eye 903L and the right eye 903R of the observer, respectively. FIG. 6 illustrates feature points 904L and R, 905L and R, and 906L and R of different subject images, which correspond to the observer's gaze point, respectively. That is, the video of the subject feature points 904L, 905L, and 906L in the left-eye image is projected onto the left eye 903L, and the video of the subject feature points 904R, 905R, and 906R in the right-eye image is projected onto the right eye 903R. For the observer, the position 904 of the subject image corresponding to the feature point 904L in the left-eye image and the feature point 904R in the right-eye image appears behind the screen surface 901. In addition, the observer can see the position 905 of the subject image corresponding to the feature point 905L in the left-eye image and the feature point 905R in the right-eye image on the screen surface 901. Further, the observer sees the position 906 of the subject image corresponding to the feature point 906L in the image for the left eye and the feature point 906R in the image for the right eye, which pops out before the screen surface 901. The depth amount and the pop-out amount of these subject images depend on the parallax amount of the subject image in the left-eye image and the right-eye image.

次に、アスペクト比の設定情報に応じた視差補正処理について説明する。なお、画像の記録時または再生時におけるアスペクト比の設定については、システム制御部509が画角や構図等に応じて自動的に設定するか、またはユーザの操作指示に従って設定する。
視差補正回路515は、例えば、下表1に示す補正パラメータを使って視差補正の演算処理を行う。補正パラメータの値は、撮影画像に係る第1アスペクト比から、画像の記録時または再生時の第2アスペクト比へ変更した場合に画像枠からトリミングにより除外される画像範囲が存在すると判定された場合に、視差量を補正するために決定される。
Next, parallax correction processing according to aspect ratio setting information will be described. The aspect ratio setting at the time of image recording or reproduction is automatically set by the system control unit 509 according to the angle of view, composition, or the like, or is set according to a user operation instruction.
For example, the parallax correction circuit 515 performs a parallax correction calculation process using the correction parameters shown in Table 1 below. When it is determined that there is an image range that is excluded from the image frame by trimming when the value of the correction parameter is changed from the first aspect ratio of the captured image to the second aspect ratio at the time of image recording or playback In addition, it is determined to correct the parallax amount.

Figure 0006230266
Figure 0006230266

表1に例示する参照テーブルは、補正パラメータとして、変更後の第2アスペクト比と視差量の情報を含む。例えば、第2アスペクト比の種類は、列1001に複数記載され、また、各アスペクト比に対応する視差量が列1002に記載されている。撮影した画像、つまり第1アスペクト比での画像のうち、変更後の画像枠内に入りきらずにデータが削除される範囲が大きい第2アスペクト比ほど、視差量は大きい値に設定されている。視差補正回路515は、第1アスペクト比および第2アスペクト比から決定した補正パラメータに基づいて視差量を補正する。例えば、表1中の行1003には、第2アスペクト比が1:1の場合におけるパラメータ値が記載されている。以下、補正パラメータ1006の値に基づく視差補正処理について、図7を参照して説明する。   The reference table exemplified in Table 1 includes the changed second aspect ratio and parallax information as correction parameters. For example, a plurality of types of the second aspect ratio are described in the column 1001, and the parallax amount corresponding to each aspect ratio is described in the column 1002. The parallax amount is set to a larger value as the second aspect ratio has a larger range in which data is deleted without entering the image frame after the change in the photographed image, that is, the image with the first aspect ratio. The parallax correction circuit 515 corrects the parallax amount based on the correction parameter determined from the first aspect ratio and the second aspect ratio. For example, a row 1003 in Table 1 describes parameter values when the second aspect ratio is 1: 1. Hereinafter, the parallax correction processing based on the value of the correction parameter 1006 will be described with reference to FIG.

図7(A)は、画像枠704内に示す複数の被写体を撮影して得られる構図を例示する。画像枠704内には、各被写体像707と708を示す。各被写体と相似の小図形は特徴点を例示する。図7(B)は画像枠705内に左目用画像を示し、被写体像707Lおよび708Lは図7(A)の被写体像707と708にそれぞれ相当する。図7(C)は画像枠706内に右目用画像を示し、被写体像707Rおよび708Rは、図7(A)の被写体像707と708にそれぞれ対応する。但し、被写体像708の視差量はゼロとする。図7(D)および(E)はアスペクト比が1:1に設定された場合の画像枠1201および1202をそれぞれ示す。図7(D)の画像枠1201内には、視差補正された左目用画像を示し、図7(E)の画像枠1202内には、視差補正された右目用画像を示す。   FIG. 7A illustrates a composition obtained by photographing a plurality of subjects shown in the image frame 704. In the image frame 704, subject images 707 and 708 are shown. Small figures similar to each subject illustrate feature points. FIG. 7B shows a left-eye image in an image frame 705, and subject images 707L and 708L correspond to the subject images 707 and 708 in FIG. 7A, respectively. FIG. 7C shows the right-eye image in the image frame 706, and subject images 707R and 708R correspond to the subject images 707 and 708 in FIG. 7A, respectively. However, the parallax amount of the subject image 708 is zero. FIGS. 7D and 7E show image frames 1201 and 1202 when the aspect ratio is set to 1: 1, respectively. In the image frame 1201 in FIG. 7D, the parallax-corrected image for the left eye is shown, and in the image frame 1202 in FIG. 7E, the parallax-corrected image for the right eye is shown.

視差補正回路515には、図7(B)に示す画像枠705内の左目用画像のデータと、図7(C)に示す画像枠706内の右目用画像のデータが入力される。ここで、視差補正回路515は、前記補正パラメータに応じた視差量に補正するために、各々の画像枠内で被写体像のシフト処理を行う。被写体像707についての視差を補正する場合を、具体的に説明する。画像枠705内での被写体像と画像枠706内での被写体像には、視差量709が存在する。この視差量709は、画像枠内での被写体像707Lと707Rとの位置差に相当し、補正パラメータに基づいて視差補正が行われる。視差補正回路515は、表1の行1003に示すアスペクト比1:1に対応する補正パラメータ1006の値を参照して図7(D)および図7(E)に示すように被写体像のシフト操作を行う。つまり、図7(D)では、被写体像707Lを図7の左側へ移動させるシフト操作により被写体像1203Lに変更され、図7(E)では、被写体像707Rを図7の右側へ移動させるシフト操作により被写体像1203Rに変更される。これらの図では、奥行き量をさらに強調するための、被写体像のシフト操作を示す。ここで、視差量1205は視差補正後の視差量を示しており、表1の補正パラメータ1006の値に基づいて決定される。例えば、補正パラメータ1006の値については直接に視差量1205を示すデータを使用するか、あるいはシフト比率を示すデータを使用してもよい。シフト比率の場合、視差量1205の値を視差量709の値で除算した数値が補正パラメータ1006の値となり、視差補正時にて視差量に乗算する係数として使用される。また、補正パラメータ1006については一定の比率であってもよいし、映像の見かけ上の飛び出し量および奥行き量に応じた数次の関数式で表してもよい。補正パラメータ1006が最終的な飛び出し量および奥行き量を決定する要素であれば、算出形態の如何は問わない。   To the parallax correction circuit 515, data of the left-eye image in the image frame 705 illustrated in FIG. 7B and data of the right-eye image in the image frame 706 illustrated in FIG. 7C are input. Here, the parallax correction circuit 515 performs a subject image shift process within each image frame in order to correct the parallax amount according to the correction parameter. A case where the parallax for the subject image 707 is corrected will be specifically described. A parallax amount 709 exists between the subject image in the image frame 705 and the subject image in the image frame 706. This amount of parallax 709 corresponds to the position difference between the subject images 707L and 707R within the image frame, and parallax correction is performed based on the correction parameter. The parallax correction circuit 515 refers to the value of the correction parameter 1006 corresponding to the aspect ratio 1: 1 shown in the row 1003 of Table 1 and shifts the subject image as shown in FIGS. 7D and 7E. I do. That is, in FIG. 7D, the subject image 707L is changed to the subject image 1203L by the shift operation for moving the subject image 707L to the left in FIG. 7, and in FIG. 7E, the shift operation for moving the subject image 707R to the right in FIG. Thus, the subject image 1203R is changed. In these drawings, an object image shift operation for further emphasizing the depth amount is shown. Here, the parallax amount 1205 indicates the parallax amount after parallax correction, and is determined based on the value of the correction parameter 1006 in Table 1. For example, as the value of the correction parameter 1006, data indicating the parallax amount 1205 may be used directly, or data indicating the shift ratio may be used. In the case of the shift ratio, a numerical value obtained by dividing the value of the parallax amount 1205 by the value of the parallax amount 709 becomes the value of the correction parameter 1006, and is used as a coefficient for multiplying the parallax amount at the time of parallax correction. Further, the correction parameter 1006 may be a fixed ratio, or may be expressed by a function expression of several orders according to the apparent pop-out amount and depth amount of the video. As long as the correction parameter 1006 is an element that determines the final pop-out amount and depth amount, the calculation form does not matter.

図7の例では、視差補正方法として左目用画像および右目用画像での被写体像の単純なシフト操作を説明したが、これは例示であって補正方法を限定するものではない。例えば、視差補正回路515によりアフィン変換等を用いて、空間的に立体感を強調する処理を行うこともできる。視差補正回路515は、アスペクト比に対応する補正パラメータに基づいて左目用画像と右目用画像に係る視差量補正を行う。視差補正回路515により補正された視差量のデータは記憶部508に保存される。   In the example of FIG. 7, the simple shift operation of the subject image in the left-eye image and the right-eye image has been described as the parallax correction method, but this is an example and the correction method is not limited. For example, it is possible to perform a process of spatially enhancing a stereoscopic effect using affine transformation or the like by the parallax correction circuit 515. The parallax correction circuit 515 performs parallax amount correction related to the left-eye image and the right-eye image based on the correction parameter corresponding to the aspect ratio. Data on the amount of parallax corrected by the parallax correction circuit 515 is stored in the storage unit 508.

記憶部508には、画像合成回路513によって生成された合成画像データと、視差マップ生成回路514によって生成され、視差補正回路515で視差量が補正された視差マップデータが記憶されている。システム制御部509は記録媒体制御I/F部510を制御して、合成画像データおよび視差マップデータを半導体メモリ等の着脱可能な記録媒体511に記録する処理を行う。また、外部I/F部512がコンピュータ等の外部機器にデータを出力することにより、画像加工処理を行うことができる。   The storage unit 508 stores the combined image data generated by the image combining circuit 513 and the parallax map data generated by the parallax map generating circuit 514 and corrected by the parallax correction circuit 515. The system control unit 509 controls the recording medium control I / F unit 510 to perform processing for recording the composite image data and the parallax map data on a removable recording medium 511 such as a semiconductor memory. Further, image processing can be performed by the external I / F unit 512 outputting data to an external device such as a computer.

画像データの再生時には、システム制御部509は記録媒体制御I/F部510を制御して合成画像データと視差マップデータを読み出して記憶部508に保存し、これらのデータから左目用画像データと右目用画像データが生成される。視差マップの情報は、合成画像における被写体像の重心位置と、左目用画像または右目用画像における当該被写体像の重心位置との間の視差量を示す。具体的には、図5(B)で説明したように、視差量610の2分の1に相当する視差量612と、視差量611の2分の1に相当する視差量613が使用される。合成画像での被写体像は、視差量に従って左目用画像での重心位置に移動されて、左目用画像データが生成される。同様に、視差マップが示す視差量の符号を反転させれば、右目用画像での重心までの視差量となる。これより、合成画像での被写体像は、符号反転した視差量に従って右目用画像での重心位置に移動され、右目用画像データが生成される。   When reproducing the image data, the system control unit 509 controls the recording medium control I / F unit 510 to read out the composite image data and the parallax map data and store them in the storage unit 508. From these data, the left-eye image data and the right-eye image data are read. Image data is generated. The information on the parallax map indicates the amount of parallax between the centroid position of the subject image in the composite image and the centroid position of the subject image in the left-eye image or the right-eye image. Specifically, as described with reference to FIG. 5B, a parallax amount 612 corresponding to one-half of the parallax amount 610 and a parallax amount 613 corresponding to one-half of the parallax amount 611 are used. . The subject image in the composite image is moved to the position of the center of gravity in the left-eye image according to the amount of parallax, and left-eye image data is generated. Similarly, if the sign of the parallax amount indicated by the parallax map is inverted, the parallax amount up to the center of gravity in the right-eye image is obtained. Thus, the subject image in the composite image is moved to the position of the center of gravity in the right-eye image in accordance with the sign-inverted parallax amount, and right-eye image data is generated.

本実施形態では、撮像素子505から読み出した画像データを左目用画像データと右目用画像データに振り分けるデータ分離処理を撮像信号処理回路506が担当し、左目用画像データと右目用画像データの加算合成処理を画像合成回路513が担当する。これに限らず、撮像信号処理回路506がデータ分離処理と合成処理を行う形態でも構わない。また、視差マップ生成回路514による視差マップデータの生成後に、視差補正回路515がアスペクト比に応じた視差量補正を行ったが、視差マップ生成回路514が視差マップの生成および視差補正処理を行う構成でもよい。   In this embodiment, the imaging signal processing circuit 506 performs data separation processing for distributing image data read from the image sensor 505 into left-eye image data and right-eye image data, and addition synthesis of the left-eye image data and right-eye image data. The image composition circuit 513 takes charge of the processing. The present invention is not limited to this, and the imaging signal processing circuit 506 may perform a data separation process and a synthesis process. In addition, after the parallax map generation circuit 514 generates the parallax map data, the parallax correction circuit 515 performs the parallax amount correction according to the aspect ratio, but the parallax map generation circuit 514 performs the parallax map generation and the parallax correction processing. But you can.

以上、本実施形態によれば、アスペクト比の設定に応じたトリミング加工により、奥行き感を表現する被写体像を含む画像範囲が画像枠から除外される場合、視差量の補正によって、映像の立体感が損なわれないようにステレオ画像処理を実現できる。   As described above, according to the present embodiment, when the image range including the subject image expressing the sense of depth is excluded from the image frame by the trimming process according to the aspect ratio setting, the stereoscopic effect of the video is corrected by correcting the parallax amount. Stereo image processing can be realized so as not to damage the image.

501 レンズ部
505 撮像素子
506 撮像信号処理回路
508 記憶部
509 システム制御部
513 画像合成回路
514 視差マップ生成回路
515 視差補正回路
501 Lens unit 505 Imaging device 506 Imaging signal processing circuit 508 Storage unit 509 System control unit 513 Image composition circuit 514 Parallax map generation circuit 515 Parallax correction circuit

Claims (9)

複数の光電変換部の出力信号から異なる視点の画像信号を取得する取得手段と、
前記異なる視点の画像信号を合成して合成画像データを生成する画像処理手段と、
前記異なる視点の画像信号から被写体の視差量を算出する視差量算出手段と、
撮影した画像に係る第1アスペクト比から、画像の記録又は再生に係る第2アスペクト比への変更により画像枠から除外される画像範囲が存在する場合、異なる視点の画像における被写体の視差量を補正する視差補正手段を備え
前記視差補正手段は、前記第1アスペクト比および前記第2アスペクト比から決定される補正パラメータにより前記視差量を補正する際、前記第1アスペクト比での画像のうち、前記第2アスペクト比への変更により前記画像枠から除外される画像範囲が大きいほど、前記視差量を大きくすることを特徴とする撮像装置。
Acquisition means for acquiring image signals of different viewpoints from output signals of a plurality of photoelectric conversion units;
Image processing means for generating composite image data by combining the image signals of the different viewpoints;
Parallax amount calculating means for calculating the parallax amount of the subject from the image signals of the different viewpoints;
When there is an image range that is excluded from the image frame due to a change from the first aspect ratio related to the captured image to the second aspect ratio related to image recording or playback, the parallax amount of the subject in the images of different viewpoints is corrected comprising a parallax correction means for,
When the parallax correction unit corrects the parallax amount by a correction parameter determined from the first aspect ratio and the second aspect ratio, the parallax correction unit converts the parallax correction unit to the second aspect ratio among the images having the first aspect ratio. An image pickup apparatus , wherein the amount of parallax is increased as the image range excluded from the image frame due to the change is larger .
複数の光電変換部の出力信号から異なる視点の画像信号を取得する取得手段と、
前記異なる視点の画像信号を合成して合成画像データを生成する画像処理手段と、
前記異なる視点の画像信号から被写体の視差量を算出する視差量算出手段と、
撮影した画像に係る第1アスペクト比から、画像の記録又は再生に係る第2アスペクト比への変更により画像枠から除外される画像範囲が存在する場合、異なる視点の画像における被写体の視差量を補正する視差補正手段を備え
前記視差量算出手段は、前記画像処理手段により生成された合成画像データにおける被写体像の位置を基準として、前記異なる視点の画像における当該被写体像の位置ずれ量を視差量として算出し、該視差量を含む視差マップデータを記憶手段に記憶させることを特徴とする撮像装置。
Acquisition means for acquiring image signals of different viewpoints from output signals of a plurality of photoelectric conversion units;
Image processing means for generating composite image data by combining the image signals of the different viewpoints;
Parallax amount calculating means for calculating the parallax amount of the subject from the image signals of the different viewpoints;
When there is an image range that is excluded from the image frame due to a change from the first aspect ratio related to the captured image to the second aspect ratio related to image recording or playback, the parallax amount of the subject in the images of different viewpoints is corrected comprising a parallax correction means for,
The parallax amount calculating means calculates a positional deviation amount of the subject image in the images of different viewpoints as a parallax amount with reference to the position of the subject image in the composite image data generated by the image processing means, and the parallax amount An imaging apparatus characterized by storing parallax map data including
前記視差補正手段は、前記第1アスペクト比および前記第2アスペクト比から決定される補正パラメータにより前記視差量を補正する際、前記第1アスペクト比での画像のうち、前記第2アスペクト比への変更により前記画像枠から除外される画像範囲が大きいほど、前記視差量を大きくすることを特徴とする請求項に記載の撮像装置。 When the parallax correction unit corrects the parallax amount by a correction parameter determined from the first aspect ratio and the second aspect ratio, the parallax correction unit converts the parallax correction unit to the second aspect ratio among the images having the first aspect ratio. The imaging apparatus according to claim 2 , wherein the parallax amount is increased as the image range excluded from the image frame due to the change is larger . 前記補正パラメータは、前記第2アスペクト比での被写体の視差量を、前記第1アスペクト比での被写体の視差量で除算した比率を示し、
前記視差補正手段は、前記視差量算出手段が算出した視差量に対して前記比率を乗算して視差補正を行い、補正した視差量を含む視差マップデータを記憶手段に記憶させることを特徴とする請求項1または請求項3に記載の撮像装置。
The correction parameter indicates a ratio obtained by dividing the parallax amount of the subject at the second aspect ratio by the parallax amount of the subject at the first aspect ratio;
The parallax correction unit performs parallax correction by multiplying the parallax amount calculated by the parallax amount calculation unit by the ratio, and stores parallax map data including the corrected parallax amount in the storage unit. The imaging device according to claim 1 or 3 .
各マイクロレンズに対して撮像光学系の射出瞳の異なる領域をそれぞれ通過した光束を受光して光電変換する複数の光電変換部を有する撮像手段を備えることを特徴とする請求項1乃至4のいずれか1項に記載の撮像装置。   5. The imaging device according to claim 1, further comprising: an imaging unit having a plurality of photoelectric conversion units that receive and photoelectrically convert light beams respectively passing through different areas of the exit pupil of the imaging optical system for each microlens. The imaging apparatus of Claim 1. 複数の光電変換部の出力信号から異なる視点の画像信号を取得する取得手段と、
前記異なる視点の画像信号を合成して合成画像データを生成する画像処理手段と、
前記異なる視点の画像信号から被写体の視差量を算出する視差量算出手段と、
撮影した画像に係る第1アスペクト比から、画像の記録又は再生に係る第2アスペクト比への変更により画像枠から除外される画像範囲が存在する場合、異なる視点の画像における被写体の視差量を補正する視差補正手段を備え
前記視差補正手段は、前記第1アスペクト比および前記第2アスペクト比から決定される補正パラメータにより前記視差量を補正する際、前記第1アスペクト比での画像のうち、前記第2アスペクト比への変更により前記画像枠から除外される画像範囲が大きいほど、前記視差量を大きくすることを特徴とする画像処理装置。
Acquisition means for acquiring image signals of different viewpoints from output signals of a plurality of photoelectric conversion units;
Image processing means for generating composite image data by combining the image signals of the different viewpoints;
Parallax amount calculating means for calculating the parallax amount of the subject from the image signals of the different viewpoints;
When there is an image range that is excluded from the image frame due to a change from the first aspect ratio related to the captured image to the second aspect ratio related to image recording or playback, the parallax amount of the subject in the images of different viewpoints is corrected comprising a parallax correction means for,
When the parallax correction unit corrects the parallax amount by a correction parameter determined from the first aspect ratio and the second aspect ratio, the parallax correction unit converts the parallax correction unit to the second aspect ratio among the images having the first aspect ratio. The image processing apparatus , wherein the amount of parallax is increased as the image range excluded from the image frame due to the change is larger .
複数の光電変換部の出力信号から異なる視点の画像信号を取得する取得手段と、
前記異なる視点の画像信号を合成して合成画像データを生成する画像処理手段と、
前記異なる視点の画像信号から被写体の視差量を算出する視差量算出手段と、
撮影した画像に係る第1アスペクト比から、画像の記録又は再生に係る第2アスペクト比への変更により画像枠から除外される画像範囲が存在する場合、異なる視点の画像における被写体の視差量を補正する視差補正手段を備え
前記視差量算出手段は、前記画像処理手段により生成された合成画像データにおける被写体像の位置を基準として、前記異なる視点の画像における当該被写体像の位置ずれ量を視差量として算出し、該視差量を含む視差マップデータを記憶手段に記憶させることを特徴とする画像処理装置。
Acquisition means for acquiring image signals of different viewpoints from output signals of a plurality of photoelectric conversion units;
Image processing means for generating composite image data by combining the image signals of the different viewpoints;
Parallax amount calculating means for calculating the parallax amount of the subject from the image signals of the different viewpoints;
When there is an image range that is excluded from the image frame due to a change from the first aspect ratio related to the captured image to the second aspect ratio related to image recording or playback, the parallax amount of the subject in the images of different viewpoints is corrected comprising a parallax correction means for,
The parallax amount calculating means calculates a positional deviation amount of the subject image in the images of different viewpoints as a parallax amount with reference to the position of the subject image in the composite image data generated by the image processing means, and the parallax amount An image processing apparatus characterized in that parallax map data including is stored in a storage means.
撮像装置または画像処理装置にて実行される制御方法であって、
複数の光電変換部の出力信号から異なる視点の画像信号を取得するデータ取得ステップと、
前記異なる視点の画像信号を合成して合成画像データを生成する画像合成ステップと、
前記異なる視点の画像信号から被写体の視差量を算出する視差量算出ステップと、
撮影した画像に係る第1アスペクト比から、画像の記録又は再生に係る第2アスペクト比への変更により画像枠から除外される画像範囲が存在する場合、異なる視点の画像における被写体の視差量を補正する視差補正ステップを有し、
前記視差補正ステップでは、前記第1アスペクト比および前記第2アスペクト比から決定される補正パラメータにより前記視差量を補正する際、前記第1アスペクト比での画像のうち、前記第2アスペクト比への変更により前記画像枠から除外される画像範囲が大きいほど、前記視差量を大きくする処理が行われることを特徴とする制御方法。
A control method executed by an imaging device or an image processing device ,
A data acquisition step of acquiring image signals of different viewpoints from output signals of a plurality of photoelectric conversion units;
An image synthesizing step of generating synthesized image data form if the image signal of the different viewpoints,
A parallax amount calculating step of calculating the parallax amount of the subject from the image signals of the different viewpoints;
When there is an image range that is excluded from the image frame due to a change from the first aspect ratio related to the captured image to the second aspect ratio related to image recording or playback, the parallax amount of the subject in the images of different viewpoints is corrected have a parallax correction step of,
In the parallax correction step, when the parallax amount is corrected by a correction parameter determined from the first aspect ratio and the second aspect ratio, among the images having the first aspect ratio, the second aspect ratio is corrected. the higher the image area is large are excluded from the image frames, processing to increase the amount of parallax to that control method characterized by being performed by changes.
撮像装置または画像処理装置にて実行される制御方法であって、
複数の光電変換部の出力信号から異なる視点の画像信号を取得するデータ取得ステップと、
前記異なる視点の画像信号を合成して合成画像データを生成する画像合成ステップと、
前記異なる視点の画像信号から被写体の視差量を算出する視差量算出ステップと、
撮影した画像に係る第1アスペクト比から、画像の記録又は再生に係る第2アスペクト比への変更により画像枠から除外される画像範囲が存在する場合、異なる視点の画像における被写体の視差量を補正する視差補正ステップを有し、
前記視差量算出ステップでは、前記画像合成ステップで生成された合成画像データにおける被写体像の位置を基準として、前記異なる視点の画像における当該被写体像の位置ずれ量を視差量として算出し、該視差量を含む視差マップデータを記憶手段に記憶させる処理が行われることを特徴とする制御方法。
A control method executed by an imaging device or an image processing device ,
A data acquisition step of acquiring image signals of different viewpoints from output signals of a plurality of photoelectric conversion units;
An image synthesizing step of generating synthesized image data form if the image signal of the different viewpoints,
A parallax amount calculating step of calculating the parallax amount of the subject from the image signals of the different viewpoints;
When there is an image range that is excluded from the image frame due to a change from the first aspect ratio related to the captured image to the second aspect ratio related to image recording or playback, the parallax amount of the subject in the images of different viewpoints is corrected have a parallax correction step of,
In the parallax amount calculating step, the positional deviation amount of the subject image in the image of the different viewpoint is calculated as the parallax amount with reference to the position of the subject image in the composite image data generated in the image synthesizing step, and the parallax amount The control method characterized by performing the process which memorize | stores the parallax map data containing this in a memory | storage means.
JP2013106081A 2013-05-20 2013-05-20 Imaging apparatus, image processing apparatus, and control method Expired - Fee Related JP6230266B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013106081A JP6230266B2 (en) 2013-05-20 2013-05-20 Imaging apparatus, image processing apparatus, and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013106081A JP6230266B2 (en) 2013-05-20 2013-05-20 Imaging apparatus, image processing apparatus, and control method

Publications (3)

Publication Number Publication Date
JP2014229974A JP2014229974A (en) 2014-12-08
JP2014229974A5 JP2014229974A5 (en) 2016-06-30
JP6230266B2 true JP6230266B2 (en) 2017-11-15

Family

ID=52129482

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013106081A Expired - Fee Related JP6230266B2 (en) 2013-05-20 2013-05-20 Imaging apparatus, image processing apparatus, and control method

Country Status (1)

Country Link
JP (1) JP6230266B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011146828A (en) * 2010-01-13 2011-07-28 Sony Corp Data structure, recording apparatus and recording method, playback apparatus and playback method, and program
WO2012032826A1 (en) * 2010-09-10 2012-03-15 富士フイルム株式会社 Three-dimensional imaging device and three-dimensional imaging method
JP5814692B2 (en) * 2011-08-15 2015-11-17 キヤノン株式会社 Imaging apparatus, control method therefor, and program

Also Published As

Publication number Publication date
JP2014229974A (en) 2014-12-08

Similar Documents

Publication Publication Date Title
US9341935B2 (en) Image capturing device
CN103493484B (en) Imaging device and formation method
US10587860B2 (en) Imaging apparatus and method for controlling same
JP5127787B2 (en) Compound eye photographing apparatus and control method thereof
RU2567438C1 (en) Image forming device and method of controlling same
JP5627438B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6053276B2 (en) Imaging apparatus, control method therefor, and image processing apparatus
JP6004741B2 (en) Image processing apparatus, control method therefor, and imaging apparatus
JP5924943B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP5864992B2 (en) Imaging apparatus and control method thereof, and image processing apparatus and control method thereof
JP2014022888A (en) Image pickup device and image pickup device manufacturing method
JP6230266B2 (en) Imaging apparatus, image processing apparatus, and control method
JP2012124650A (en) Imaging apparatus, and imaging method
JP2012094997A (en) Imaging device
JP5911276B2 (en) Imaging apparatus, control method therefor, and image processing apparatus
JP6433474B2 (en) Imaging apparatus and control method thereof
JP6366793B2 (en) Image processing apparatus, control method therefor, and imaging apparatus
JP6177305B2 (en) Imaging apparatus and control method thereof, and image processing apparatus and control method thereof
JP2014204299A (en) Imaging apparatus and method for controlling the same
JP6172949B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGE PROCESSING DEVICE, AND IMAGE PROCESSING DEVICE CONTROL METHOD
JP2014090252A (en) Image processing device and control method for the same, image pickup device and control method for the same and image processing program
JP2016154360A (en) Imaging apparatus and control method therefor
JP2013157726A (en) Imaging apparatus and method for controlling imaging apparatus
JP2014146962A (en) Image pickup device and control method of the same
JP2013187878A (en) Imaging apparatus and control method of the same

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160517

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170314

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170324

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: 20170919

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171017

R151 Written notification of patent or utility model registration

Ref document number: 6230266

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees