JP5444065B2 - Compound eye imaging apparatus and control method thereof - Google Patents

Compound eye imaging apparatus and control method thereof Download PDF

Info

Publication number
JP5444065B2
JP5444065B2 JP2010064830A JP2010064830A JP5444065B2 JP 5444065 B2 JP5444065 B2 JP 5444065B2 JP 2010064830 A JP2010064830 A JP 2010064830A JP 2010064830 A JP2010064830 A JP 2010064830A JP 5444065 B2 JP5444065 B2 JP 5444065B2
Authority
JP
Japan
Prior art keywords
image
inclination
image data
tilt
imaging device
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
JP2010064830A
Other languages
Japanese (ja)
Other versions
JP2011197452A (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.)
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 JP2010064830A priority Critical patent/JP5444065B2/en
Publication of JP2011197452A publication Critical patent/JP2011197452A/en
Application granted granted Critical
Publication of JP5444065B2 publication Critical patent/JP5444065B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cameras In General (AREA)
  • Stereoscopic And Panoramic Photography (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Description

この発明は,複眼撮像装置およびその制御方法に関する。   The present invention relates to a compound eye imaging apparatus and a control method thereof.

複眼撮像装置における基本問題の一つは,レンズ,撮像素子(CCDなど)等の光学部材の位置(方向)ズレによって画像間に傾きズレが生じることである。複眼撮像装置は複数の光学部材(撮像手段)を備え,通常,複数の光学部材は工場生産工程において比較的精密に位置決めされるが,複数の光学部材の位置(方向)ズレを完全に無くすことは困難である。また経時劣化によって位置ズレが発生または増大することもある。   One of the basic problems in a compound-eye imaging apparatus is that an inclination shift occurs between images due to a position (direction) shift of an optical member such as a lens or an image pickup device (CCD or the like). A compound-eye imaging device is provided with a plurality of optical members (imaging means), and usually the plurality of optical members are positioned relatively precisely in the factory production process, but the position (direction) deviation of the plurality of optical members is completely eliminated. It is difficult. In addition, positional displacement may occur or increase due to deterioration with time.

特許文献1には調整パターンを撮像することによって得られる撮像画像を用いて回転ズレ量θ等を算出することが記載されている。特許文献2には立方体を被写体として撮像することによって得られる画像を用いてカメラの設置位置のズレを調整するものが記載されている。特許文献1,2においては専用の調整パターンまたは調整用被写体(立方体)の撮像を必須とし,ズレの調整に時間と手間がかかる。   Japanese Patent Application Laid-Open No. H10-228561 describes that the rotational shift amount θ and the like are calculated using a captured image obtained by capturing an adjustment pattern. Japanese Patent Application Laid-Open No. H10-228561 describes a technique for adjusting the displacement of the camera installation position using an image obtained by capturing an image of a cube as a subject. In Patent Documents 1 and 2, it is essential to capture a dedicated adjustment pattern or adjustment subject (cube), and it takes time and effort to adjust the displacement.

特許文献3には,一対(左右)の画像を一致する方向に調整する射影行列を用いるものが記載されている。調整方向に何らの基準も無く,したがって誤った(違和感が生じる)方向(向き)に一対の画像が調整されるおそれがある。   Patent Document 3 describes using a projection matrix that adjusts a pair of (left and right) images in a matching direction. There is no reference in the adjustment direction, so there is a possibility that a pair of images may be adjusted in the wrong direction (direction).

特開平10−307352号公報JP-A-10-307352 特開平8−251627号公報JP-A-8-251627 特開2004−334819号公報JP 2004-334819 A

この発明は,調整用パターンまたは調整用被写体を用いることなく,複数の画像間の傾きズレの抑制を図ることを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to suppress an inclination shift between a plurality of images without using an adjustment pattern or an adjustment subject.

この発明はまた,傾きズレが調整された後の画像に,傾きズレの調整による違和感を生じさせないようにすることを目的とする。   It is another object of the present invention to prevent the image after the tilt shift is adjusted from causing a sense of incongruity due to the tilt shift adjustment.

この発明による複眼撮像装置は,共通する領域を撮像可能な位置に設けられかつ異なる位置から被写体を撮像する,固体撮像素子を含む少なくとも二つの撮像手段,上記撮像手段によって得られる少なくとも二つの画像データをそれぞれ独立に回転させる画像回転手段,上記少なくとも二つの画像データのうちの一つである基準画像データによって表される基準画像に対する,残りの画像データである非基準画像データによって表される非基準画像のそれぞれの傾きズレ角度量を検出する傾きズレ検出手段,および上記傾きズレ検出手段によって検出された傾きズレ角度量に応じた角度分上記非基準画像のそれぞれが回転するように上記画像回転手段を制御する第1の傾き制御手段を備える。   The compound-eye imaging device according to the present invention has at least two imaging means including a solid-state imaging device, which are provided at positions where a common area can be imaged and images a subject from different positions, and at least two image data obtained by the imaging means. Image rotating means for independently rotating the image, non-reference represented by non-reference image data as remaining image data with respect to a reference image represented by reference image data that is one of the at least two image data Inclination deviation detecting means for detecting each inclination deviation angle amount of the image, and the image rotation means so that each of the non-reference images is rotated by an angle corresponding to the inclination deviation angle amount detected by the inclination deviation detection means. First tilt control means for controlling

この発明による複眼撮像装置の制御方法は,共通する領域を撮像可能な位置に設けられかつ異なる位置から被写体を撮像する,固体撮像素子を含む少なくとも二つの撮像手段を有する複眼撮像装置を制御方法であって,傾きズレ検出手段が,上記少なくとも二つの撮像手段による撮像によって得られる少なくとも二つの画像データのうちの一つである基準画像データによって表される基準画像に対する,残りの画像データである非基準画像データによって表される非基準画像のそれぞれの傾きズレ角度量を検出し,傾き制御手段が,上記傾きズレ検出手段によって検出された傾きズレ角度量に応じた角度分上記非基準画像のそれぞれが回転するように,上記撮像手段によって得られる少なくとも二つの画像データをそれぞれ独立に回転させる画像回転手段を,制御するものである。   A control method for a compound eye image pickup device according to the present invention is a method for controlling a compound eye image pickup device including at least two image pickup means including a solid-state image pickup element that is provided at a position where a common region can be imaged and picks up an object from different positions. In this case, the tilt deviation detecting means is the remaining image data for the reference image represented by the reference image data which is one of at least two image data obtained by imaging by the at least two imaging means. Each inclination deviation angle amount of the non-reference image represented by the reference image data is detected, and each inclination control means detects an angle corresponding to the inclination deviation angle amount detected by the inclination deviation detection means. Rotate at least two image data obtained by the imaging means independently so that The image rotation unit, and controls.

少なくとも二つの撮像手段のそれぞれによって少なくとも二つの画像データが得られ,このうちの一つが基準画像データとして扱われる。基準画像データ以外の残りの画像データが非基準基準画像データである。この発明によると,複数の画像データのうちの一つである基準画像データによって表される基準画像に対する,残りの画像データによって表される非基準画像のそれぞれの傾きズレ角度量が検出され,検出された傾きズレ角度量に応じた角度分,非基準画像が回転させられる。傾きズレ角度量は大きさおよび方向を含む。非基準画像の傾きが基準画像の傾きに近づくまたは一致するので,基準画像および非基準画像間の傾きズレを抑制または解消することができる。傾き調整のための特別な調整パターンまたは特別な調整用被写体を用いることなく,基準画像および非基準画像間の傾きズレを抑制または解消することができる。また,この発明によると,非基準画像が回転し,基準画像は回転しないので,撮像によって得られた複数の画像データのすべては回転しない。複眼撮像装置を使用するユーザの意図(画像構図)を破綻させる可能性は低い。   At least two image data are obtained by each of at least two imaging means, and one of them is treated as reference image data. The remaining image data other than the reference image data is non-reference reference image data. According to the present invention, the amount of inclination deviation angle of each non-reference image represented by the remaining image data with respect to the reference image represented by the reference image data that is one of the plurality of image data is detected and detected. The non-reference image is rotated by an angle corresponding to the tilt angle angle amount. The amount of tilt angle includes the size and direction. Since the inclination of the non-reference image approaches or matches the inclination of the reference image, it is possible to suppress or eliminate the inclination deviation between the reference image and the non-reference image. Without using a special adjustment pattern for adjusting the tilt or a special adjustment subject, it is possible to suppress or eliminate the tilt shift between the reference image and the non-reference image. In addition, according to the present invention, the non-reference image rotates and the reference image does not rotate, so that all of the plurality of image data obtained by imaging do not rotate. There is a low possibility that the intention (image composition) of the user who uses the compound-eye imaging device is broken.

一実施態様では,上記撮像手段によって得られる少なくとも二つの画像データのそれぞれについて,上記画像データによって表される画像中に含まれる直線線分を検出する線分検出手段,ならびに上記線分検出手段によって検出された直線線分のうち,上記固体撮像素子に含まれる水平画素の方向および垂直画素の方向にそれぞれ対応する水平方向および垂直方向のいずれかに最も近い方向を向く直線線分を基準線として決定する基準線決定手段を備え,上記傾きズレ検出手段は,上記基準線決定手段によって決定された上記基準線を含む被写体像を上記基準画像として選択するものであり,上記傾きズレ検出手段はさらに,上記基準画像中の上記基準線に対する,上記非基準画像中の上記基準線に対応する対応線のそれぞれの傾きズレ角度量を検出する。   In one embodiment, for each of at least two pieces of image data obtained by the imaging means, a line segment detecting means for detecting a straight line segment included in the image represented by the image data, and the line segment detecting means. Among the detected straight line segments, a straight line segment that is closest to one of the horizontal direction and the vertical direction corresponding to the horizontal pixel direction and the vertical pixel direction included in the solid-state image sensor is used as a reference line. A reference line determination means for determining, wherein the inclination deviation detection means selects a subject image including the reference line determined by the reference line determination means as the reference image, and the inclination deviation detection means further includes , Each inclination deviation angle of the corresponding line corresponding to the reference line in the non-reference image with respect to the reference line in the reference image To detect.

複数(少なくとも二つの)撮像手段は共通する領域を撮像可能な位置に設けられているので,撮像手段によって得られる複数の画像データによって表される複数の画像には同一の被写体像が含まれる。複数の画像中のそれぞれに含まれる被写体像中に存在する直線線分であって,水平方向および垂直方向のいずれかに最も近い方向を向く直線線分が基準線とされる。この基準線を含む画像が基準画像として位置づけられる。非基準画像中の上記基準線に対応する線分(対応線)の傾きが,上記基準画像中の基準線の傾きに近づくように,非基準画像が回転させられる。   Since the plurality of (at least two) imaging units are provided at positions where a common area can be imaged, the plurality of images represented by the plurality of image data obtained by the imaging unit include the same subject image. A straight line segment existing in a subject image included in each of a plurality of images and directed to a direction closest to either the horizontal direction or the vertical direction is set as a reference line. An image including this reference line is positioned as a reference image. The non-reference image is rotated so that the inclination of the line segment (corresponding line) corresponding to the reference line in the non-reference image approaches the inclination of the reference line in the reference image.

調整パターンまたは調整用被写体を用いた傾き調整のメリットは,傾きズレの無い理想的な状態を調整パターン等を用いて把握(認識)して,この理想的な状態が撮像可能になるように複数のカメラ等の位置または角度を調整することにより,複数のカメラ間(複数の画像間)の傾きズレを調整できる点にある。他方,この発明は調整パターン等を用いずに傾きズレの抑制を図るものであるから,調整パターンを用いた傾きズレの調整と比べるとその精度が良いとは必ずしも言えない。しかしながら,写真撮影等では,水平方向にのびる境界を含むもの(たとえば,水平線を含む画像など),垂直方向にのびる境界線を含むもの(たとえば,樹木を含む画像など)が撮影されることが統計的に多い。この実施態様では,この統計的事実に着目して,撮像によって得られた画像中に含まれる水平方向または垂直方向に近い直線線分が基準線とされ,この基準線の方向に近づくようにして傾きズレを抑制ないし解消することができる。あたかも調整パターンを用いるのと同様の精度によって,傾きズレを抑制ないし解消することができる。   The merit of tilt adjustment using an adjustment pattern or an adjustment subject can be grasped (recognized) using an adjustment pattern or the like so that an ideal state without tilt deviation can be grasped and imaged in such an ideal state. By adjusting the position or angle of the camera or the like, the tilt deviation between a plurality of cameras (a plurality of images) can be adjusted. On the other hand, since the present invention is intended to suppress the tilt shift without using the adjustment pattern or the like, it cannot necessarily be said that the accuracy is better than the tilt shift adjustment using the adjustment pattern. However, in photography, it is statistically possible that images including boundaries that extend in the horizontal direction (for example, images that include horizontal lines) and images that include boundaries that extend in the vertical direction (for example, images that include trees) are taken. Many. In this embodiment, paying attention to this statistical fact, a straight line segment close to the horizontal direction or the vertical direction included in the image obtained by imaging is set as the reference line, and the direction of the reference line is approached. Tilt deviation can be suppressed or eliminated. Tilt deviation can be suppressed or eliminated with the same accuracy as using the adjustment pattern.

好ましくは,上記線分検出手段によって検出された直線線分のすべてが,上記水平方向の近傍角度範囲および上記垂直方向の近傍角度範囲の方向を向いていない場合に,上記傾きズレ検出手段による傾きズレ角度量の検出,および上記第1の傾き制御手段による上記画像回転手段の制御を停止させる停止手段をさらに備える。高い精度で傾きズレの抑制を図ることができる可能性が低い場合に傾きズレの調整自体を回避することによって,誤調整の発生の可能性を低めるためである。   Preferably, when all of the straight line segments detected by the line segment detection unit are not oriented in the horizontal vicinity angle range and the vertical vicinity angle range, the inclination by the inclination deviation detection unit is determined. The apparatus further comprises stop means for stopping the detection of the shift angle amount and the control of the image rotation means by the first tilt control means. This is to reduce the possibility of misadjustment by avoiding the adjustment of the inclination deviation itself when the possibility of suppressing the inclination deviation is low with high accuracy.

他の実施態様では,上記撮像装置は,上記基準線および上記対応線の方向が一致するかどうかを判断する基準線/対応線判断手段を備え,上記基準線/対応線判断手段によって,上記基準線および上記対応線の方向の一致が判断された場合に,一致する方向の対応線を含む非基準画像について,上記傾きズレ検出手段による傾きズレ角度量の検出および上記第1の傾き制御手段による上記画像回転手段の制御を停止させる停止手段をさらに備える。基準画像中の基準線と非基準画像中の対応線の方向が一致している場合,基準画像とその非基準画像の間に傾きズレは無いと考えられる。この場合にはその後の処理が停止されるので,無駄な処理および電力消費を避けることができる。   In another embodiment, the imaging apparatus includes a reference line / corresponding line determination unit that determines whether or not directions of the reference line and the corresponding line coincide with each other, and the reference line / corresponding line determination unit performs the reference line / corresponding line determination unit. When the coincidence of the direction of the line and the corresponding line is determined, the non-reference image including the corresponding line in the matching direction is detected by the inclination deviation detecting unit by the inclination deviation detecting unit and by the first inclination controlling unit. The image forming apparatus further includes stop means for stopping the control of the image rotation means. If the directions of the reference line in the reference image and the corresponding line in the non-reference image match, it is considered that there is no tilt shift between the reference image and the non-reference image. In this case, since the subsequent processing is stopped, useless processing and power consumption can be avoided.

好ましくは,上記第1の傾き制御手段は,上記傾き検出手段によって検出された傾きズレ角度量に1よりも小さい所定係数を乗算することによって得られる角度量分上記非基準画像が回転するように上記画像回転手段を制御する。傾きズレを一気に解消するのではなく,緩やかに抑制することによって,たとえ傾きズレ角度量の算出に誤りがあったとしても,画像破綻の発生を防止することができる。   Preferably, the first inclination control means rotates the non-reference image by an angle amount obtained by multiplying the inclination deviation angle amount detected by the inclination detection means by a predetermined coefficient smaller than 1. The image rotation means is controlled. Rather than canceling the tilt shift at once, it is possible to prevent the occurrence of image failure even if there is an error in the calculation of the tilt shift angle amount by suppressing it gently.

もちろん,傾きズレを一気に解消するようにしてもよい。この場合,一実施態様では,上記第1の傾き制御手段は,上記傾き検出手段によって検出された傾きズレ角度量と,傾きズレ角度量に1よりも小さい所定係数を乗算することによって得られる角度量との差分の角度量分上記非基準画像がさらに回転するように上記画像回転手段を制御する。   Of course, the tilt deviation may be eliminated at once. In this case, in one embodiment, the first inclination control means obtains an angle obtained by multiplying the inclination deviation angle amount detected by the inclination detection means by a predetermined coefficient smaller than 1 by the inclination deviation angle quantity. The image rotation means is controlled so that the non-reference image is further rotated by the angle amount of the difference from the amount.

好ましくは,上記撮像手段によって得られる少なくとも二つの被写体像を表す画像データのそれぞれについて,前回までの画像回転において用いられた上記傾きズレ角度量の累積値を記憶する累積値記憶手段,および上記第1の傾き制御手段による上記画像回転手段の制御よりも前に,上記累積値記憶手段に記憶された傾きズレ角度量の累積値に応じた角度分上記非基準画像が回転するように上記画像回転手段を制御する第2の傾き制御手段を備える。過去の調整結果を利用することができるので,傾きズレを次第に減少させて,最終的には無くすようにすることができる。   Preferably, for each of the image data representing at least two subject images obtained by the imaging means, a cumulative value storage means for storing a cumulative value of the tilt deviation angle amount used in the previous image rotation, and the first Prior to the control of the image rotation means by one inclination control means, the image rotation is performed so that the non-reference image is rotated by an angle corresponding to the cumulative value of the inclination deviation angle amount stored in the cumulative value storage means. Second inclination control means for controlling the means is provided. Since past adjustment results can be used, it is possible to gradually reduce the inclination deviation and finally eliminate it.

一実施態様では,上記画像回転手段は,上記撮像手段のそれぞれを独立に回転させる撮像手段回転アクチュエータである。撮像手段自体を回転させることによって,その後に得られる画像データによって表される非基準画像の傾きが,基準画像の傾きに近づくまたは一致する。   In one embodiment, the image rotation means is an imaging means rotation actuator that rotates each of the imaging means independently. By rotating the imaging means itself, the inclination of the non-reference image represented by the image data obtained thereafter approaches or matches the inclination of the reference image.

他の実施態様では,上記画像回転手段は,上記撮像手段によって得られる画像データを回転変換することによって被写体像を回転させる画像データ回転処理手段である。アフィン変換,射影変換などの画像回転処理によって,その後に得られる画像データによって表される非基準画像の傾きが,基準画像の傾きに近づくまたは一致する。   In another embodiment, the image rotation means is image data rotation processing means for rotating a subject image by rotationally converting image data obtained by the imaging means. By image rotation processing such as affine transformation and projective transformation, the inclination of the non-reference image represented by the image data obtained thereafter approaches or coincides with the inclination of the reference image.

一実施態様では,上記複眼撮像装置は,傾き調整フラグを記憶する傾き調整フラグ記憶手段,上記傾き調整フラグをオン/オフする傾き調整フラグ制御手段,および上記傾き調整フラグがオンであるときに,上記傾きズレ検出手段による傾きズレ角度量の検出,および上記第1の傾き制御手段による上記画像回転手段の制御を許す画像回転許可手段をさらに備える。傾き調整フラグがオフされているときに傾き調整を実行しないようにすることによって,小電力化が図られ,かつ連続した誤調整も回避することができる。   In one embodiment, the compound-eye imaging device has an inclination adjustment flag storage means for storing an inclination adjustment flag, an inclination adjustment flag control means for turning on / off the inclination adjustment flag, and when the inclination adjustment flag is on. The image processing apparatus further includes image rotation permission means for permitting detection of an inclination deviation angle amount by the inclination deviation detection means and control of the image rotation means by the first inclination control means. By preventing the inclination adjustment from being executed when the inclination adjustment flag is turned off, it is possible to reduce the power consumption and to avoid consecutive erroneous adjustments.

好ましくは,上記傾き調整フラグ制御手段は,上記画像回転手段によって画像データが回転されたことに応じて上記傾き調整フラグ記憶手段に記憶されている傾き調整フラグをオフする。その後,所定の条件のときに,傾き調整フラグをオンにすればよい。   Preferably, the inclination adjustment flag control means turns off the inclination adjustment flag stored in the inclination adjustment flag storage means in response to the image data being rotated by the image rotation means. Thereafter, the tilt adjustment flag may be turned on under a predetermined condition.

傾き調整フラグをオンする条件としては,上記複眼撮像装置の電源が入れられたとき,上記複眼撮像装置の設定が変更されたとき,上記画像回転手段によって画像データが回転された後,所定の時間が経過しているとき,などがある。   The condition for turning on the tilt adjustment flag is as follows: when the compound eye imaging device is turned on, when the setting of the compound eye imaging device is changed, after image data is rotated by the image rotating means, for a predetermined time. When the period is over.

ディジタル・スチル・カメラの電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of a digital still camera. 第1実施例のキャリブレーション処理を示すフローチャートである。It is a flowchart which shows the calibration process of 1st Example. 調整フラグ設定処理の一例を示すフローチャートである。It is a flowchart which shows an example of an adjustment flag setting process. 調整フラグ設定処理の他の例を示すフローチャートである。It is a flowchart which shows the other example of an adjustment flag setting process. 調整フラグ設定処理のさらに他の例を示すフローチャートである。It is a flowchart which shows the further another example of an adjustment flag setting process. (A),(B)は,線分検出処理の前後の画像の一例をそれぞれ示す。(A) and (B) show examples of images before and after the line segment detection processing, respectively. 線分検出処理後の画像の一例を示す。An example of the image after a line segment detection process is shown. (A),(B)および(C)は,キャリブレーション処理によって画像回転される様子をそれぞれ示す。(A), (B), and (C) show how the image is rotated by the calibration process. 第1実施例の変形例のキャリブレーション処理を示すフローチャートである。It is a flowchart which shows the calibration process of the modification of 1st Example. 第2実施例のキャリブレーション処理を示すフローチャートである。It is a flowchart which shows the calibration process of 2nd Example. (A),(B)および(C)は,累積調整パラメータを示す。(A), (B), and (C) show cumulative adjustment parameters. (A),(B)および(C)は,キャリブレーション処理によって画像回転される様子をそれぞれ示す。(A), (B), and (C) show how the image is rotated by the calibration process. 第2実施例のキャリブレーション処理を示すフローチャートである。It is a flowchart which shows the calibration process of 2nd Example. 第3実施例のキャリブレーション処理を示すフローチャートである。It is a flowchart which shows the calibration process of 3rd Example. 第3実施例のキャリブレーション処理を示すフローチャートである。It is a flowchart which shows the calibration process of 3rd Example. 第3実施例のキャリブレーション処理を示すフローチャートである。It is a flowchart which shows the calibration process of 3rd Example.

[第1実施例]
図1はディジタル・スチル・カメラの電気的構成を示すブロック図である。図1に示すブロック図は,第1実施例のみならず,後述する第2および第3実施例にも援用する。また,ディジタル・スチル・カメラに限らず,ディジタル・ムービ・カメラにも,この発明の実施例は適用することができる。
[First embodiment]
FIG. 1 is a block diagram showing an electrical configuration of a digital still camera. The block diagram shown in FIG. 1 is applied not only to the first embodiment but also to second and third embodiments described later. The embodiment of the present invention can be applied not only to a digital still camera but also to a digital movie camera.

ディジタル・スチル・カメラの全体的な動作はCPU1によって統括される。   The overall operation of the digital still camera is controlled by the CPU 1.

ディジタル・スチル・カメラは,人間の視差に相当する距離だけ離間して設けられた2つの光学部材(撮像部材)10L,10Rを備え,2つの光学部材10L,10Rによって位置の異なる2つの視点からの画像(2視点画像)を表す画像データを得ることができる,いわゆる複眼カメラである。2視点画像によって立体視可能な画像(以下,立体画像という)を再生することができる。分かりやすくするために,以下の説明では2つの光学部材10L,10Rを,それぞれ左側光学部材10L,右側光学部材10Rと呼び区別する。左側光学部材10Lおよび右側光学部材10Rは,ディジタル・スチル・カメラにおいて共通する領域を撮像可能な位置に設けられている。   The digital still camera is provided with two optical members (imaging members) 10L and 10R that are separated by a distance corresponding to human parallax, and the two optical members 10L and 10R are used from two viewpoints whose positions are different. This is a so-called compound-eye camera that can obtain image data representing two images (two-viewpoint images). An image that can be viewed stereoscopically (hereinafter, referred to as a stereoscopic image) can be reproduced using the two viewpoint images. For the sake of clarity, in the following description, the two optical members 10L and 10R are called and distinguished from the left optical member 10L and the right optical member 10R, respectively. The left optical member 10L and the right optical member 10R are provided at positions where a common area can be imaged in the digital still camera.

左側光学部材10Lは固体撮像素子,ここではCCD15Lを備え,CCD15Lの前方に撮像レンズ11L,絞り12L,赤外線カット・フィルタ13Lおよび光学的ロウパス・フィルタ(OLPF)14Lが設けられている。右側光学部材10Rも同様に,CCD15Rを備え,CCD15Rの前方に撮像レンズ11R,絞り12R,赤外線カット・フィルタ13Rおよび光学的ロウパス・フィルタ14Rが設けられている。   The left optical member 10L includes a solid-state imaging device, here a CCD 15L, and an imaging lens 11L, an aperture 12L, an infrared cut filter 13L, and an optical low-pass filter (OLPF) 14L are provided in front of the CCD 15L. Similarly, the right optical member 10R includes a CCD 15R, and an imaging lens 11R, an aperture 12R, an infrared cut filter 13R, and an optical low-pass filter 14R are provided in front of the CCD 15R.

左側光学部材10Lおよび右側光学部材10Rのそれぞれに,光学部材回転アクチュエータ30L,30Rがそれぞれ設けられている。光学部材回転アクチュエータ30L,30Rは,光学部材30L,30Rのそれぞれの傾き(姿勢)を独立に制御するものである。   Optical member rotation actuators 30L and 30R are provided on the left optical member 10L and the right optical member 10R, respectively. The optical member rotation actuators 30L and 30R independently control the inclinations (postures) of the optical members 30L and 30R.

ディジタル・スチル・カメラには操作器2が含まれている。操作器2には電源ボタン,モード設定ダイアル,二段ストローク・タイプのシャッタ・レリーズ・ボタンなどが含まれる。操作器2から出力される操作信号はCPU1に入力する。モード設定ダイアルによって設定されるモードには撮影モード,再生モードなどがある。撮影モードにおいてさらに詳細に設定されるモードに,オートモード,マニュアルモードなどがある。   The digital still camera includes an operation unit 2. The operation device 2 includes a power button, a mode setting dial, a two-stroke type shutter release button, and the like. An operation signal output from the controller 2 is input to the CPU 1. The mode set by the mode setting dial includes a shooting mode and a playback mode. The modes set in more detail in the shooting mode include an auto mode and a manual mode.

ディジタル・スチル・カメラには,ストロボ撮像のための発光装置6,および発光装置6からの出射光の反射光を受光するための受光装置7が設けられている。   The digital still camera is provided with a light-emitting device 6 for strobe imaging and a light-receiving device 7 for receiving reflected light of light emitted from the light-emitting device 6.

ディジタル・スチル・カメラの電源がオンされ,撮影モードが設定されると,被写体像を表す光線束が左側光学部材10Lおよび右側光学部材10Rの両方に入射する。左側光学部材10Lにおいて,光線束は撮像レンズ11L,絞り12L,赤外線カット・フィルタ13Lおよび光学的ロウパス・フィルタ14Lを介してCCD15Lの受光面上に入射する。CCD15Lの受光面上に被写体像が結像し,被写体像を表すアナログ信号がCCD15Lから出力する。CCD15Lによって一定周期で被写体が撮像され,一定周期で被写体像を表す映像信号が1フレーム分ずつCCD15Lから出力される。右側光学部材10Rも同様である。撮像レンズ11R,絞り12R,赤外線カット・フィルタ13Rおよび光学的ロウパス・フィルタ14Rを介してCCD15Rの受光面上に被写体像が結像し,被写体像を表すアナログ信号がCCD15Rから出力する。左側光学部材10L中のCCD15Lと,右側光学部材10R中のCCD15Rは同期動作する。   When the power source of the digital still camera is turned on and the photographing mode is set, the light beam representing the subject image enters both the left optical member 10L and the right optical member 10R. In the left optical member 10L, the light beam is incident on the light receiving surface of the CCD 15L through the imaging lens 11L, the stop 12L, the infrared cut filter 13L, and the optical low-pass filter 14L. A subject image is formed on the light receiving surface of the CCD 15L, and an analog signal representing the subject image is output from the CCD 15L. A subject is imaged by the CCD 15L at a constant cycle, and a video signal representing the subject image is output from the CCD 15L frame by frame at a constant cycle. The same applies to the right optical member 10R. A subject image is formed on the light receiving surface of the CCD 15R via the imaging lens 11R, aperture 12R, infrared cut filter 13R, and optical low-pass filter 14R, and an analog signal representing the subject image is output from the CCD 15R. The CCD 15L in the left optical member 10L and the CCD 15R in the right optical member 10R operate synchronously.

アナログ信号処理装置16には,相関二重サンプリング回路,信号増幅器などが含まれている。CCD15L,15Rから出力された被写体像を表すアナログ信号はアナログ信号処理装置16に入力し,相関二重サンプリング,信号増幅などが行われる。アナログ信号処理装置16から出力されたアナログ映像信号はアナログ/ディジタル変換回路18に入力し,ディジタル画像データに変換される。左側光学部材10Lおよび右側光学部材10Rのそれぞれからの2つのディジタル画像データが得られる。以下,この2つの画像データをそれぞれ左画像データ,右画像データと呼び,左画像データおよび右画像データの組を立体画像データと呼ぶ。立体画像データはメモリ制御回路19の制御のもとメイン・メモリ20に一時的に記録される。   The analog signal processing device 16 includes a correlated double sampling circuit, a signal amplifier, and the like. Analog signals representing the subject images output from the CCDs 15L and 15R are input to the analog signal processing device 16, where correlated double sampling, signal amplification, and the like are performed. The analog video signal output from the analog signal processing device 16 is input to the analog / digital conversion circuit 18 and converted into digital image data. Two digital image data from each of the left optical member 10L and the right optical member 10R are obtained. Hereinafter, these two image data are referred to as left image data and right image data, respectively, and a set of left image data and right image data is referred to as stereoscopic image data. The stereoscopic image data is temporarily recorded in the main memory 20 under the control of the memory control circuit 19.

立体画像データはメイン・メモリ20から読出されてディジタル信号処理回路21に入力する。ディジタル信号処理回路21では白バランス調整,ガンマ補正などの所定のディジタル信号処理が行われる。ディジタル信号処理回路21においてディジタル信号処理が行われたデータは表示制御回路26に与えられる。表示制御回路26によって表示装置27が制御されることにより表示画面上に被写体像(立体画像)が表示される。   The stereoscopic image data is read from the main memory 20 and input to the digital signal processing circuit 21. The digital signal processing circuit 21 performs predetermined digital signal processing such as white balance adjustment and gamma correction. The data subjected to the digital signal processing in the digital signal processing circuit 21 is given to the display control circuit 26. By controlling the display device 27 by the display control circuit 26, a subject image (stereoscopic image) is displayed on the display screen.

シャッタ・レリーズ・ボタンの第一段階の押下があると,レンズ駆動回路5L,5Rによってレンズ11R,11Lが駆動されて焦点合わせが行われる。メイン・メモリ20から読出される左画像データまたは右画像データの少なくともいずれか一方に基づいてディジタル信号処理回路21において輝度データが得られる。輝度データは積算回路23に入力し積算される。積算値を表すデータはCPU1に与えられて露出量が算出される。算出された露出量となるように絞り12L,12Rの開口が絞り駆動回路4L,4Rによって制御され,CCD15L,15Rのシャッタ速度が撮像素子駆動回路3L,3Rによって制御される。   When the shutter release button is pressed in the first stage, the lenses 11R and 11L are driven by the lens driving circuits 5L and 5R to perform focusing. Luminance data is obtained in the digital signal processing circuit 21 based on at least one of left image data and right image data read from the main memory 20. The luminance data is input to the integration circuit 23 and integrated. Data representing the integrated value is given to the CPU 1 to calculate the exposure amount. The apertures of the apertures 12L and 12R are controlled by the aperture drive circuits 4L and 4R so that the calculated exposure amount is obtained, and the shutter speeds of the CCDs 15L and 15R are controlled by the image sensor drive circuits 3L and 3R.

シャッタ・レリーズ・ボタンの第二段階の押下があると,アナログ/ディジタル変換回路18から出力された立体画像データはメイン・メモリ20に記録される。メイン・メモリ20から読み出された立体画像データに対し,上述のように所定のディジタル信号処理が行われる。ディジタル信号処理回路21から出力された立体画像データは圧縮伸張処理回路22においてデータ圧縮される。圧縮された立体画像データが外部メモリ制御回路24の制御によってメモリ・カード25に記録される。   When the shutter release button is pressed in the second stage, the stereoscopic image data output from the analog / digital conversion circuit 18 is recorded in the main memory 20. Predetermined digital signal processing is performed on the stereoscopic image data read from the main memory 20 as described above. The stereoscopic image data output from the digital signal processing circuit 21 is compressed by the compression / decompression processing circuit 22. The compressed stereoscopic image data is recorded on the memory card 25 under the control of the external memory control circuit 24.

再生モードが設定されると,メモリ・カード25に記録されている圧縮立体画像データが読み取られる。読取られた圧縮立体画像データは圧縮伸張処理回路22において伸張され表示制御回路26に与えられる。表示装置27の表示画面上に再生画像(立体画像)が表示される。   When the reproduction mode is set, the compressed stereoscopic image data recorded on the memory card 25 is read. The read compressed stereoscopic image data is expanded in the compression / expansion processing circuit 22 and is given to the display control circuit 26. A reproduced image (stereoscopic image) is displayed on the display screen of the display device 27.

ディジタル・スチル・カメラによって得られる立体画像データは,上述のように一組の左画像データおよび右画像データを含む。光学部材10L,10Rは人間の視差に相当する距離だけ離間して設けられているので,左画像データおよび右画像データは視差ズレを含み,この視差ズレによって遠近感が生じ,立体画像データによって表される表示画像(再生画像)を立体視することができる。しかしながら,この視差ズレ以外の傾きズレが,左画像と右画像との間に含まれていると,立体視に違和感が生じることがある。   The stereoscopic image data obtained by the digital still camera includes a set of left image data and right image data as described above. Since the optical members 10L and 10R are spaced apart by a distance corresponding to human parallax, the left image data and the right image data include parallax shift, and the parallax shift causes a sense of perspective, which is represented by stereoscopic image data. The displayed image (reproduced image) can be stereoscopically viewed. However, if a tilt shift other than the parallax shift is included between the left image and the right image, a sense of incongruity may occur in the stereoscopic view.

第1実施例のディジタル・スチル・カメラは,左画像および右画像間の傾きズレを,上記光学部材10L,10Rの回転制御によって低減するものである。以下の説明では,上述の傾きズレを解消することをキャリブレーションと呼ぶ。   In the digital still camera of the first embodiment, the tilt deviation between the left image and the right image is reduced by controlling the rotation of the optical members 10L and 10R. In the following description, eliminating the above-described tilt deviation is referred to as calibration.

図2は第1実施例におけるディジタル・スチル・カメラにおけるキャリブレーション処理の手順を示すフローチャートである。図3〜図5はキャリブレーション処理における調整フラグの設定処理を,3つの異なる態様でそれぞれ示すフローチャートである。キャリブレーション処理は一般にCPU1による制御によって行われるが,その一部または全部をディジタル信号処理回路21によって行わせてもよい。たとえば,メイン・メモリ20に記憶されたキャリブレーション処理実行プログラムがCPU1において実行されることによって,ディジタル・スチル・カメラにおいて,図2に示すキャリブレーション処理が行われる。   FIG. 2 is a flowchart showing the procedure of calibration processing in the digital still camera in the first embodiment. 3 to 5 are flowcharts showing the adjustment flag setting process in the calibration process in three different modes. The calibration process is generally performed by control by the CPU 1, but part or all of the calibration process may be performed by the digital signal processing circuit 21. For example, the calibration processing execution program stored in the main memory 20 is executed by the CPU 1, whereby the calibration processing shown in FIG. 2 is performed in the digital still camera.

図1を参照して,キャリブレーション処理は調整フラグがオンであることを条件に行われる(ステップ42)。調整フラグはオンまたはオフのいずれかを示すフラグであり,メイン・メモリ20に記憶されている。調整フラグがオンされているとキャリブレーション処理が開始される(ステップ42でYES )。調整フラグがオフであるとキャリブレーション処理は行われない(ステップ42でNO)。調整フラグがオンされていることによって実行されるキャリブレーション処理はその処理の最後で調整フラグをオフにする(ステップ51)。   Referring to FIG. 1, the calibration process is performed on condition that the adjustment flag is on (step 42). The adjustment flag is a flag indicating either on or off, and is stored in the main memory 20. When the adjustment flag is turned on, the calibration process is started (YES in step 42). If the adjustment flag is off, the calibration process is not performed (NO in step 42). The calibration process executed when the adjustment flag is turned on turns off the adjustment flag at the end of the process (step 51).

調整フラグのオン/オフの判断の前に調整フラグの設定処理が行われる(ステップ41)。図3〜図5を参照して,調整フラグは様々なタイミングでオンにすることができる。図3を参照して,一例では撮影モードが設定されているディジタル・スチル・カメラの電源がオンされたときに,調整フラグがオンされる(ステップ41aでYES ,ステップ41b)。図4を参照して,撮影モードが設定されているディジタル・スチル・カメラの電源がオンされていることを条件にしてその設定モードが変更されたとき,たとえばオートモードからマニュアルモードに切り替えられたときに調整フラグをオンするようにしてもよい(ステップ41cでYES ,ステップ41b)。図5を参照して,撮影モードが設定されているディジタル・スチル・カメラの電源がオンされていることを条件にして,前回キャリブレーション処理が実行された後に所定時間が経過した,またはすでに経過しているときに調整フラグをオンするようにしてもよい(ステップ41dでYES ,ステップ41b)。所定時間の経過に応じて調整フラグをオンする場合(図5),キャリブレーション処理の実行終了の日時がメイン・メモリ20に記録され,その日時を基準にして所定時間が経過すると調整フラグがオンされる。図3〜図5に示す調整フラグのオンの設定処理は適宜組合わせてもよい。   An adjustment flag setting process is performed before determining whether the adjustment flag is on or off (step 41). 3 to 5, the adjustment flag can be turned on at various timings. Referring to FIG. 3, in one example, when the power of the digital still camera for which the photographing mode is set is turned on, the adjustment flag is turned on (YES in step 41a, step 41b). Referring to FIG. 4, when the setting mode is changed on condition that the power of the digital still camera for which the shooting mode is set is turned on, for example, the mode is switched from the auto mode to the manual mode. Sometimes the adjustment flag may be turned on (YES in step 41c, step 41b). Referring to FIG. 5, on the condition that the power of the digital still camera for which the shooting mode is set is turned on, a predetermined time has elapsed or has already elapsed since the previous calibration process was executed. In this case, the adjustment flag may be turned on (YES in step 41d, step 41b). When the adjustment flag is turned on as the predetermined time elapses (FIG. 5), the date and time when the calibration process is finished is recorded in the main memory 20, and the adjustment flag is turned on when the predetermined time elapses with reference to the date and time. Is done. The adjustment flag ON setting processing shown in FIGS. 3 to 5 may be combined as appropriate.

図2に戻って,メイン・メモリ20において調整フラグがオンされていると,上述のようにキャリブレーション処理が開始される(ステップ42でYES )。   Returning to FIG. 2, if the adjustment flag is turned on in the main memory 20, the calibration process is started as described above (YES in step 42).

キャリブレーション処理は,立体画像データ,すなわち,左画像データおよび右画像データの存在を前提とする。撮影モードが設定されているディジタル・スチル・カメラの電源がオンされると,光学部材10L,10Rによって立体画像データが撮像されてスルー画像が表示装置27に表示される。このスルー画像を表す立体画像データをキャリブレーション処理の対象とすることができる。もっとも,シャッタ・レリーズ・ボタンが一段階押下されたときの立体画像データ,またはシャッタ・レリーズ・ボタンが二段階押下されたときの立体画像データをキャリブレーション処理の対象としてもよい。いずれにしても,同期動作する光学部材10L,10Rによって同時に得られた立体画像データ(左画像データおよび右画像データ)がキャリブレーション処理の対象である。キャリブレーション処理の対象の立体画像データはメイン・メモリ20に入力し一時的に記憶される(ステップ43)。   The calibration process is premised on the presence of stereoscopic image data, that is, left image data and right image data. When the power of the digital still camera for which the photographing mode is set is turned on, stereoscopic image data is captured by the optical members 10L and 10R, and a through image is displayed on the display device 27. Stereoscopic image data representing this through image can be the target of calibration processing. However, the stereoscopic image data when the shutter release button is pressed in one step or the stereoscopic image data when the shutter release button is pressed in two steps may be the target of the calibration process. In any case, the stereoscopic image data (left image data and right image data) obtained simultaneously by the optical members 10L and 10R that operate in synchronization are the targets of the calibration process. The stereoscopic image data to be calibrated is input to the main memory 20 and temporarily stored (step 43).

左画像データによって表される左画像Lおよび右画像データによって表される右画像Rのそれぞれについて直線の線分検出処理が行われる(ステップ44)。線分検出処理では,左画像Lおよび右画像Rのそれぞれについてエッジ画素(たとえば輝度勾配が所定値よりも大きい画素)が検出され,隣接するエッジ画素同士が結ばれる(線分化される)。線分画像において直線を構成する線分のみが抽出され,曲線を構成する線分は除外(またはマスク)される。直線の線分検出処理の詳細については,上記した特開2004−334819号公報等に記載されている。   A straight line segment detection process is performed for each of the left image L represented by the left image data and the right image R represented by the right image data (step 44). In the line segment detection process, edge pixels (for example, pixels whose luminance gradient is larger than a predetermined value) are detected for each of the left image L and the right image R, and adjacent edge pixels are connected (line-divided). Only line segments constituting straight lines are extracted from the line segment image, and line segments constituting curves are excluded (or masked). Details of the straight line segment detection processing are described in Japanese Patent Application Laid-Open No. 2004-334819 described above.

図6(A)および図6(B)は線分検出処理の前後の画像の一例を示している。線分検出処理によって図6(A)に示す画像から図6(B)に示す線分画像が得られる。図6(B)に示すように,図6(A)に示す画像からは9本の直線線分が検出されている。   6A and 6B show examples of images before and after the line segment detection process. The line segment image shown in FIG. 6B is obtained from the image shown in FIG. 6A by the line segment detection process. As shown in FIG. 6B, nine straight line segments are detected from the image shown in FIG.

さらに,好ましくは,図7に示すように,検出された直線線分のうち所定の長さ以上の長さを持つ直線線分のみが抽出される。この場合,所定の長さに満たない長さを持つ直線線分は除外(マスク)される。   Further, preferably, as shown in FIG. 7, only the straight line segments having a length equal to or longer than a predetermined length are extracted from the detected straight line segments. In this case, straight line segments having a length less than the predetermined length are excluded (masked).

図2に戻って,左画像データおよび右画像データは同期撮像によって得られたものであり,左画像データおよび右画像データは共通する領域を撮像するような位置に設けられた左側光学部材10L,右側光学部材10Rによって撮像されて得られたものであるから,左画像Lに直線線分が含まれていれば右画像Rにも対応する直線線分が含まれる。左画像Lおよび右画像Rのそれぞれで検出された直線線分について,水平方向またはこれに近い方向を向く直線線分があるかどうか,および垂直方向またはこれに近い方向を向く直線線分があるかどうかが判断される(ステップ45)。水平方向および垂直方向はいずれもCCD15L,15Rの画素配列(水平方向画素および垂直方向画素)に対応するもので,得られた左画像Lおよび右画像Rについて言えば左画像Lおよび右画像Rにおける左右方向および上下方向に対応する。たとえば,水平方向から±10度の角度範囲内の傾きを持つ直線は水平方向線分として扱われる。垂直方向から±10度の角度範囲内の傾きを持つ直線は垂直方向線分として扱われる。   Returning to FIG. 2, the left image data and the right image data are obtained by synchronous imaging, and the left image data and the right image data are provided on the left optical member 10 </ b> L provided at a position for imaging a common area. Since the image is obtained by being picked up by the right optical member 10R, if the left image L includes a straight line segment, the right image R also includes a corresponding straight line segment. For the straight line segments detected in each of the left image L and the right image R, whether there is a straight line segment that points in the horizontal direction or a direction close thereto, and there is a straight line segment that points in the vertical direction or a direction close thereto. Is determined (step 45). Both the horizontal direction and the vertical direction correspond to the pixel arrays (horizontal pixels and vertical pixels) of the CCDs 15L and 15R. Regarding the obtained left image L and right image R, in the left image L and the right image R, Corresponds to the horizontal and vertical directions. For example, a straight line having an inclination within an angle range of ± 10 degrees from the horizontal direction is treated as a horizontal line segment. A straight line having an inclination within an angle range of ± 10 degrees from the vertical direction is treated as a vertical line segment.

水平方向線分または垂直方向線分が存在しない場合,キャリブレーション処理は終了する(ステップ45でNO)。   If there is no horizontal line segment or vertical line segment, the calibration process ends (NO in step 45).

水平方向線分または垂直方向線分が存在する場合(ステップ45でYES ),検出された水平方向線分および垂直方向線分のうち,最も水平方向または垂直方向を向いている一の線分が基準線として決定される(ステップ46)。図6(A)に示す画像の場合,樹木の幹の左側境界線に対応する画像部分が,基準線として決定されることになる(図7参照)。   If there is a horizontal line segment or a vertical line segment (YES in step 45), one of the detected horizontal line segments and vertical line segments that points most horizontally or vertically is A reference line is determined (step 46). In the case of the image shown in FIG. 6A, the image portion corresponding to the left boundary line of the tree trunk is determined as the reference line (see FIG. 7).

左画像Lおよび右画像Rは視差ズレ以外のズレ,たとえば傾きズレがないのが理想である。左側光学部材10Lおよび右側光学部材10Rは,工場出荷時には,傾きズレが生じないようにほぼ正確に傾き調整される。しかしながら,その後の経時劣化等によって光学部材の傾きが変動すると,左画像Lおよび右画像Rとの間に傾きズレが生じることがある。   Ideally, the left image L and the right image R have no shift other than the parallax shift, for example, no tilt shift. The left optical member 10L and the right optical member 10R are tilted almost accurately at the time of shipment from the factory so as not to tilt. However, if the tilt of the optical member fluctuates due to subsequent deterioration over time, a tilt shift may occur between the left image L and the right image R.

図8(A)および図8(B)は,左側光学部材10Lと右側光学部材10Rとの間に傾きズレが存在するときに得られる左画像Lおよび右画像Rの一例をそれぞれ示している。樹木の幹の左側境界線(太線で強調して示す)が,左画像Lにおいては垂直方向から時計回り3度傾いているのに対し,右画像Rでは垂直方向から反時計回りに5度傾いている。以下の説明では時計回りの角度を+で表し,反時計回りの角度を−で表す。   FIGS. 8A and 8B show examples of the left image L and the right image R, respectively, obtained when there is an inclination shift between the left optical member 10L and the right optical member 10R. The left border of the trunk of the tree (highlighted with bold lines) is inclined 3 degrees clockwise from the vertical direction in the left image L, while it is inclined 5 degrees counterclockwise from the vertical direction in the right image R. ing. In the following description, the clockwise angle is represented by +, and the counterclockwise angle is represented by-.

図8(C)はキャリブレーション処理の結果を表すもので,キャリブレーション処理によって図8(B)の右画像Rの傾きが左画像Lの傾きに近づくように,ディジタル・スチル・カメラが制御されることによって得られる画像を示している。以下の説明では,図8(A),図8(B)および図8(C)を適宜参照する。   FIG. 8C shows the result of the calibration process, and the digital still camera is controlled so that the inclination of the right image R in FIG. 8B approaches the inclination of the left image L by the calibration process. The image obtained by this is shown. In the following description, FIG. 8A, FIG. 8B, and FIG.

図2に戻って,基準線を含む画像が基準画像として選択される(ステップ47)。基準線は,上述のように,左画像Lおよび右画像Rのそれぞれにおいて検出された水平方向線分および垂直方向線分のうち,最も水平方向または垂直方向を向いている一の直線である。図8(A)および(B)に示す左画像Lおよび右画像Rの場合,左画像L中の樹木の幹の左側境界線が最も垂直方向を向いている。したがって,左画像L中の樹木の幹の左側境界線が基準線とされる。基準線を含む画像は左画像Lであるので左画像Lが基準画像とされる。右画像Rが非基準画像とされる。   Returning to FIG. 2, an image including a reference line is selected as a reference image (step 47). As described above, the reference line is one straight line that is most directed in the horizontal direction or the vertical direction among the horizontal direction line segment and the vertical direction line segment detected in each of the left image L and the right image R. In the case of the left image L and the right image R shown in FIGS. 8A and 8B, the left boundary line of the trunk of the tree in the left image L is oriented most vertically. Therefore, the left boundary line of the trunk of the tree in the left image L is used as the reference line. Since the image including the reference line is the left image L, the left image L is set as the reference image. The right image R is a non-reference image.

非基準画像中の上記基準線に対応する線分(以下,対応線という)の傾きを,基準画像中の基準線の傾きに一致させるための変換パラメータが算出される(ステップ48)。図8(A)および図8(B)に示す例では,上述のように基準画像が左画像L,非基準画像が右画像Rであり,右画像中Rの樹木の幹の左側境界線から得られる線分(対応線)を,左画像L中の基準線に一致させるのが変換パラメータである。変換パラメータは基準線と対応線との間の傾きの差(傾きズレ角度量)(大きさおよび方向(時計回りであるか,反時計回りであるか)を含む)を表す。なお,基準線に対応する対応線の検出処理についても,上記した特開2004−334819号公報等に記載されている。   A conversion parameter for matching the inclination of the line segment corresponding to the reference line in the non-reference image (hereinafter referred to as the corresponding line) with the inclination of the reference line in the reference image is calculated (step 48). In the example shown in FIG. 8A and FIG. 8B, the reference image is the left image L and the non-reference image is the right image R as described above, from the left boundary line of the tree trunk of R in the right image. The conversion parameter is to match the obtained line segment (corresponding line) with the reference line in the left image L. The conversion parameter represents the difference in inclination between the reference line and the corresponding line (inclination deviation angle amount) (including the magnitude and direction (clockwise or counterclockwise)). Note that the corresponding line detection process corresponding to the reference line is also described in Japanese Patent Application Laid-Open No. 2004-334819 described above.

図8(A)および図8(B)に示す例では,左画像L中の基準線は垂直方向から+3度傾いている。他方,右画像R中の対応線は垂直方向から−3度傾いている。右画像R中の対応線は,右画像Rを時計回りに8度回転させると左画像L中の基準線と一致する傾きとなる。変換パラメータとして,非基準画像中の対応線の傾きを基準画像中の基準線の傾きに一致させるための回転データ,上述の例では,右画像Rに対する,時計回り8度の回転を表すデータ(以下,「右+8度」と表記する)が,決定される。   In the example shown in FIGS. 8A and 8B, the reference line in the left image L is inclined +3 degrees from the vertical direction. On the other hand, the corresponding line in the right image R is inclined by −3 degrees from the vertical direction. The corresponding line in the right image R has an inclination that matches the reference line in the left image L when the right image R is rotated clockwise by 8 degrees. As the conversion parameter, rotation data for matching the inclination of the corresponding line in the non-reference image with the inclination of the reference line in the reference image, in the above example, data representing the clockwise rotation of 8 degrees with respect to the right image R ( Hereinafter, “right + 8 degrees”) is determined.

決定された変換パラメータに係数α(0<α<1)が乗算される(ステップ49)。係数αが乗算された変換パラメータを,以下,調整パラメータと呼ぶ。たとえば,係数α=0.6であり,変換パラメータが「右+8度」であるとすると,調整パラメータは「右+4.8度」となる。算出された調整パラメータが用いられて,非基準画像,ここでは右画像Rの傾きを調整する処理が行われる。変換パラメータそのものを用いて傾きを調整せずに,変換パラメータよりも小さい調整パラメータを用いて傾きを調整するのは,たとえば,基準線の検出が不正確なために変換パラメータの精度が悪いときに,その悪影響をキャリブレーション処理において強く及ぼさないようにするためである。   The determined conversion parameter is multiplied by a coefficient α (0 <α <1) (step 49). The conversion parameter multiplied by the coefficient α is hereinafter referred to as an adjustment parameter. For example, if the coefficient α is 0.6 and the conversion parameter is “right + 8 degrees”, the adjustment parameter is “right + 4.8 degrees”. Using the calculated adjustment parameter, a process of adjusting the inclination of the non-reference image, here, the right image R is performed. The reason for adjusting the tilt using an adjustment parameter smaller than the conversion parameter without adjusting the tilt using the conversion parameter itself is, for example, when the accuracy of the conversion parameter is poor due to inaccurate reference line detection. This is to prevent the adverse effect from being exerted strongly in the calibration process.

ディジタル・スチル・カメラは,上述のように,左側光学部材10Lおよび右側光学部材10Rのそれぞれの傾きを独立に制御する光学部材回転アクチュエータ30L,30Rを備えている(図1参照)。左画像Lおよび右画像Rの傾き調整は,光学部材回転アクチュエータ30L,30Rを制御して左側光学部材10Lまたは右側光学部材10Rの傾きを調整することによって,行われる。調整パラメータ「右+4.8度」にしたがって,CPU1は,光軸方向を基準にして右画像光学部材10Rを時計回りに+4.8度回転させる制御信号を光学部材回転アクチュエータ30Rに与える。これにより,光学部材回転アクチュエータ30Rによって右側光学部材10Rが時計回りに4.8度分回転する。左画像Lおよび右画像Rの間の傾きズレの抑制が図られる(ステップ50)。図8(A)〜(C)に示す例の場合,左画像L中の基準線と右画像Rの対応線との間にあった8度分の傾きズレ(図8(A)と図8(B)を対比せよ)が,3.2度分の傾きズレ(図8(A)と図8(C)を対比せよ)に減少する。   As described above, the digital still camera includes optical member rotation actuators 30L and 30R that independently control the inclinations of the left optical member 10L and the right optical member 10R (see FIG. 1). The tilt adjustment of the left image L and the right image R is performed by controlling the optical member rotation actuators 30L and 30R to adjust the tilt of the left optical member 10L or the right optical member 10R. In accordance with the adjustment parameter “right + 4.8 degrees”, the CPU 1 gives a control signal for rotating the right image optical member 10R clockwise by +4.8 degrees with respect to the optical axis direction to the optical member rotation actuator 30R. As a result, the right optical member 10R is rotated clockwise by 4.8 degrees by the optical member rotation actuator 30R. Inclination deviation between the left image L and the right image R is suppressed (step 50). In the case of the example shown in FIGS. 8A to 8C, an inclination shift of 8 degrees between the reference line in the left image L and the corresponding line in the right image R (see FIGS. 8A and 8B). ) Is reduced to an inclination shift of 3.2 degrees (compare FIGS. 8A and 8C).

その後,上述した調整パラメータのフラグがオフされて,キャリブレーション処理が終了する(ステップ51)。傾きズレが抑制された左画像Lおよび右画像Rが,その後の撮像によってディジタル・スチル・カメラによって得られることになる。   Thereafter, the above-described adjustment parameter flag is turned off, and the calibration process is terminated (step 51). The left image L and the right image R in which the tilt deviation is suppressed are obtained by the digital still camera by subsequent imaging.

第1実施例のキャリブレーション処理は,傾き調整された左側光学部材10Lまたは右側光学部材10Rが,電源がオフされてもそのまま保持されるディジタル・スチル・カメラに好適である。ディジタル・スチル・カメラが使われれば使われるほど立体画像(左画像Lおよび右画像R)における傾きズレを小さくすることができる。もちろん,第1実施例のキャリブレーション処理は,電源がオフされたときに傾き調整された左側光学部材10Lまたは右側光学部材10Rが初期状態に復帰するディジタル・スチル・カメラであっても適用可能である。   The calibration process of the first embodiment is suitable for a digital still camera in which the left optical member 10L or the right optical member 10R whose tilt is adjusted is held as it is even when the power is turned off. The more the digital still camera is used, the smaller the tilt shift in the stereoscopic image (the left image L and the right image R). Of course, the calibration process of the first embodiment can be applied even to a digital still camera in which the left optical member 10L or the right optical member 10R whose inclination is adjusted when the power is turned off returns to the initial state. is there.

第1実施例のキャリブレーション処理では,上述のように,垂直方向または水平方向に近い線分を基準線に用いて,この基準線に他方の画像の対応線が近づくようにして立体画像(左画像Lおよび右画像R)の傾きズレを解消する。写真撮影では,一般に水平方向または垂直方向に沿う境界線を持つ被写体が高い頻度で撮られる。傾きズレの調整は,その水平方向または垂直方向に沿う境界線が,より水平方向または垂直方向に近づくように行われる。このため,傾きズレの調整が行われても違和感が生じる可能性が少ない。   In the calibration process according to the first embodiment, as described above, a line segment close to the vertical direction or the horizontal direction is used as a reference line, and the corresponding line of the other image approaches this reference line so that the stereoscopic image (left The inclination deviation between the image L and the right image R) is eliminated. In photography, a subject having a boundary line along the horizontal direction or the vertical direction is generally taken with high frequency. The tilt deviation is adjusted such that the boundary line along the horizontal direction or the vertical direction is closer to the horizontal direction or the vertical direction. For this reason, there is little possibility that a sense of incongruity will occur even if the tilt deviation is adjusted.

また,第1実施例のキャリブレーション処理において,左側光学部材10Lまたは右側光学部材10Rの傾き制御に代えて,画像回転処理,たとえばアフィン変換,射影変換によって非基準画像を回転させることによって,傾きズレを抑制するようにしてもよい。この場合には,左側光学部材10Lおよび右側光学部材10Rのそれぞれの傾きを制御する光学部材回転アクチュエータ30L,30Rは,ディジタル・スチル・カメラに必ずしも必要とされない。   Further, in the calibration process of the first embodiment, in place of the tilt control of the left optical member 10L or the right optical member 10R, the tilt shift is caused by rotating the non-reference image by image rotation processing, for example, affine transformation or projective transformation. You may make it suppress. In this case, the optical member rotation actuators 30L and 30R for controlling the inclinations of the left optical member 10L and the right optical member 10R are not necessarily required for the digital still camera.

[第1実施例の変形例]
図9は第1実施例の変形例におけるキャリブレーション処理の手順を示すフローチャートである。図2に示すフローチャートとは,左画像Lおよび右画像Rの傾きが一致していると判断された場合に,その後のキャリブレーション処理を行わずに処理を終了させるステップ(ステップ52)が追加されている点が,異なる。
[Modification of the first embodiment]
FIG. 9 is a flowchart showing the procedure of the calibration process in a modification of the first embodiment. The flowchart shown in FIG. 2 includes a step (step 52) for ending the process without performing the subsequent calibration process when it is determined that the inclinations of the left image L and the right image R are the same. Is different.

左画像Lおよび右画像Rのそれぞれにおいて水平方向線分または垂直方向線分が存在する場合(ステップ45でYES ),続いて左画像Lにおいて最も水平方向または垂直方向を向く線分と,右画像Rにおいて最も水平方向または垂直方向を向く線分が,左画像Lおよび右画像Rにおいて同じ傾きで存在するか(同じ方向を向いているか)どうかが判断される(ステップ52)。同じ傾きであれば,左画像Lおよび右画像Rは,キャリブレーション処理を行うまでもなく傾きズレは無いものと扱われる。この場合,キャリブレーション処理のその後の処理はスキップされる(ステップ52でYES )。異なる傾きであれば,第1実施例と同様,最も水平方向または垂直方向を向く線分が基準線として決定され,その基準線を含む画像が基準画像として選択される(ステップ52でNO,ステップ46,47)。   If there is a horizontal line segment or a vertical line segment in each of the left image L and the right image R (YES in step 45), then the line segment that points most horizontally or vertically in the left image L and the right image It is determined whether or not the line segment that points most horizontally or vertically in R exists in the left image L and the right image R with the same inclination (or faces in the same direction) (step 52). If the inclination is the same, the left image L and the right image R are treated as having no inclination deviation without performing the calibration process. In this case, the subsequent processing of the calibration processing is skipped (YES in step 52). If the inclinations are different, the line segment that is most horizontally or vertically oriented is determined as the reference line as in the first embodiment, and an image including the reference line is selected as the reference image (NO in step 52, step 46, 47).

[第2実施例]
図10は第2実施例のキャリブレーション処理の手順を示すフローチャートである。第2実施例のキャリブレーション処理では,前回以前(過去)のキャリブレーション処理によって得られた調整パラメータ(以下,累積調整パラメータという)を用いて事前に傾き調整が行われること(ステップ61,62),および累積調整パラメータがメイン・メモリ20に記憶されて保持されること(ステップ63,64)が,第1実施例のキャリブレーション処理(図2)と異なる。図2に示すフローチャートに示すステップと同一のステップには同一符号を付し,重複説明を避ける。
[Second Embodiment]
FIG. 10 is a flowchart showing the procedure of the calibration process of the second embodiment. In the calibration process of the second embodiment, the tilt adjustment is performed in advance using the adjustment parameters (hereinafter referred to as cumulative adjustment parameters) obtained by the calibration process before (previous) the previous time (steps 61 and 62). , And that the cumulative adjustment parameter is stored and held in the main memory 20 (steps 63 and 64) is different from the calibration process (FIG. 2) of the first embodiment. The same steps as those shown in the flowchart of FIG.

第2実施例のキャリブレーション処理は,電源がオフされると傾き調整された左側光学部材10Lおよび右側光学部材10Rが初期状態に復帰するディジタル・スチル・カメラに好適である。図11(A),(B)および(C)は累積調整パラメータの更新の様子を示している。累積調整パラメータはメイン・メモリ20に記憶される。図12(A)〜(C)は第2実施例におけるキャリブレーション処理の様子をそれぞれ示している。   The calibration process of the second embodiment is suitable for a digital still camera in which the left optical member 10L and the right optical member 10R, whose inclinations are adjusted, are restored to the initial state when the power is turned off. 11A, 11B, and 11C show how the cumulative adjustment parameter is updated. The cumulative adjustment parameter is stored in the main memory 20. FIGS. 12A to 12C show the calibration process in the second embodiment.

第2実施例のキャリブレーション処理は,撮影モードが設定されたディジタル・スチル・カメラの電源がオンされるとスタートする。   The calibration process of the second embodiment starts when the power of the digital still camera for which the photographing mode is set is turned on.

初期状態において(傾き調整が未だ行われていない状態)では,メイン・メモリ20に累積調整パラメータは記憶されていない(0度)(図11(A))。この場合には,第1実施例と同様に,変換パラメータが算出され,変換パラメータに係数αが乗算されて調整パラメータが算出され,調整パラメータにしたがって左側光学部材10Lまたは右側光学部材10Rの傾き調整が行われる(ステップ41〜ステップ50,図8(A)〜(C)参照)。   In the initial state (the state in which the tilt adjustment has not been performed yet), the cumulative adjustment parameter is not stored in the main memory 20 (0 degree) (FIG. 11A). In this case, as in the first embodiment, the conversion parameter is calculated, the conversion parameter is multiplied by the coefficient α, the adjustment parameter is calculated, and the tilt adjustment of the left optical member 10L or the right optical member 10R is performed according to the adjustment parameter. (Step 41 to Step 50, see FIGS. 8A to 8C).

算出された調整パラメータを用いた累積調整パラメータの更新処理が行われる(ステップ63)。累積調整パラメータの更新処理は,左画像L(左側光学部材10L)および右画像R(右側光学部材10R)のそれぞれについて,式1にしたがって算出される。   The cumulative adjustment parameter is updated using the calculated adjustment parameter (step 63). The cumulative adjustment parameter update process is calculated according to Equation 1 for each of the left image L (left optical member 10L) and the right image R (right optical member 10R).

更新後の累積調整パラメータ=累積調整パラメータ+調整パラメータ ・・・式1   Cumulative adjustment parameter after update = cumulative adjustment parameter + adjustment parameter Equation 1

たとえば,第1実施例において説明した例(図8(A)〜(C))では「右+4.8度」が調整パラメータとして算出されているので,右画像Rについての累積調整パラメータが「右+4.8度」になる。左画像Lについての累積調整パラメータは0度のままである(図11(B))。   For example, in the example described in the first embodiment (FIGS. 8A to 8C), “right + 4.8 degrees” is calculated as the adjustment parameter, so the cumulative adjustment parameter for the right image R is “right +4.8 degrees ". The cumulative adjustment parameter for the left image L remains 0 degrees (FIG. 11B).

第2実施例のディジタル・スチル・カメラは,上述のように,電源がオフされると傾き調整された左側光学部材10Lおよび右側光学部材10Rが初期状態に復帰するものを前提とする。ディジタル・スチル・カメラの電源がオフされ,その後再び電源オンされたとき,ディジタル・スチル・カメラの左側光学部材10Lおよび右側光学部材10Rは初期状態にある。   As described above, the digital still camera of the second embodiment is based on the assumption that when the power is turned off, the left optical member 10L and the right optical member 10R whose inclinations are adjusted return to the initial state. When the power of the digital still camera is turned off and then turned on again, the left optical member 10L and the right optical member 10R of the digital still camera are in the initial state.

電源オンされたデジタル・スチル・カメラのメイン・メモリ20に累積調整パラメータが記憶されている場合,はじめに,この累積調整パラメータを用いた光学部材の傾き調整が行われる。すなわち,累積調整パラメータがメイン・メモリ20から読出され(ステップ61),読出された累積調整パラメータにしたがって光学部材の傾きが調整される(ステップ62)。図8(A)〜(C)および図11(B)を参照して,累積調整パラメータとして「右+4.8度」が格納されている場合,累積調整パラメータを用いた光学部材の傾き調整によって右側光学部材10Rが時計回りに4.8度分回転する。図12(A),(B)の状態の左画像Lおよび右画像Rがそれぞれ得られる。   When the cumulative adjustment parameter is stored in the main memory 20 of the digital still camera that is powered on, first, the tilt adjustment of the optical member is performed using the cumulative adjustment parameter. That is, the cumulative adjustment parameter is read from the main memory 20 (step 61), and the inclination of the optical member is adjusted according to the read cumulative adjustment parameter (step 62). Referring to FIGS. 8A to 8C and FIG. 11B, when “right + 4.8 degrees” is stored as the cumulative adjustment parameter, the tilt adjustment of the optical member using the cumulative adjustment parameter is performed. The right optical member 10R rotates clockwise by 4.8 degrees. The left image L and the right image R in the states shown in FIGS. 12A and 12B are obtained.

その後,第1実施例と同様の処理によってキャリブレーション処理が実行される。図12(A),(B)に示す例では,左画像Lの樹木の幹の左側境界線が垂直方向から+3度傾いているのに対し,右画像Rでは−0.2度傾いている。右画像Rの樹木の幹の左側境界線が垂直方向により近いので,右画像Rが基準画像として選択される(ステップ47)。左画像Lが傾き調整対象の非基準画像になる。   Thereafter, the calibration process is executed by the same process as in the first embodiment. In the example shown in FIGS. 12A and 12B, the left boundary line of the tree trunk of the left image L is inclined +3 degrees from the vertical direction, whereas the right image R is inclined -0.2 degrees. . Since the left border of the tree trunk of the right image R is closer to the vertical direction, the right image R is selected as the reference image (step 47). The left image L becomes a non-reference image for tilt adjustment.

図12(A),(B)に示す例において,左画像L中の対応線の傾きを右画像R中の基準線の傾きに一致させるための変換パラメータは−3.2度である。この変換パラメータに所定係数α(=0.6)を乗算した調整パラメータは−1.92度になる。左画像Rが反時計回りに1.92度回転するように左側光学部材10Lが回転制御される(ステップ50)(図12(C)参照)。   In the example shown in FIGS. 12A and 12B, the conversion parameter for matching the slope of the corresponding line in the left image L with the slope of the reference line in the right image R is −3.2 degrees. An adjustment parameter obtained by multiplying the conversion parameter by a predetermined coefficient α (= 0.6) is −1.92 degrees. The left optical member 10L is rotationally controlled so that the left image R rotates 1.92 degrees counterclockwise (step 50) (see FIG. 12C).

左画像L(左側光学部材10L)についての調整パラメータが算出されたので,左画像Lについての累積調整パラメータが更新される(ステップ63,64)。式1にしたがって,左画像Lについての累積調整パラメータが0度から−1.92度に更新される(図11(C)参照)。   Since the adjustment parameter for the left image L (left optical member 10L) has been calculated, the cumulative adjustment parameter for the left image L is updated (steps 63 and 64). According to Equation 1, the cumulative adjustment parameter for the left image L is updated from 0 degrees to -1.92 degrees (see FIG. 11C).

次回のキャリブレーション処理では,図11(C)に示す累積調整パラメータにしたがって,左側光学部材10Lが反時計回りに1.92度回転させられ,かつ右側光学部材10Rが時計回りに4.8度分回転されることになる(ステップ61,62)。   In the next calibration process, the left optical member 10L is rotated 1.92 degrees counterclockwise and the right optical member 10R is 4.8 degrees clockwise according to the cumulative adjustment parameter shown in FIG. It is rotated by a minute (steps 61 and 62).

このようにして,傾き調整された左側光学部材10Lおよび右側光学部材10Rがディジタル・スチル・カメラの電源がオフされるたびに初期状態に復帰するものであっても,累積調整パラメータを用いて,前回以前(過去)の調整結果を表す累積調整パラメータを用いて光学部材を傾き調整することができ,これに続いて調整パラメータにしたがう再度の傾き調整が行われる。光学部材の傾きズレを次第に解消させることができ,最終的には傾きズレを無くすことができる。   Thus, even if the left optical member 10L and the right optical member 10R that have been tilt-adjusted return to the initial state each time the digital still camera is turned off, the cumulative adjustment parameter is used. The tilt adjustment of the optical member can be performed using the cumulative adjustment parameter representing the previous (previous) adjustment result, and then the tilt adjustment is performed again according to the adjustment parameter. The tilt shift of the optical member can be gradually eliminated, and finally the tilt shift can be eliminated.

[第2実施例の変形例]
図13は第2実施例の変形例を示すもので,キャリブレーション処理の流れを示すフローチャートである。図11に示す第2実施例のフローチャートとは,傾きズレを無くす(抑制する)ための傾き調整が,光学部材を回転駆動することによる調整ではなく,画像処理,典型的にはアフィン変換または射影変換を用いた画像変換処理によって行われている点が異なる。
[Modification of Second Embodiment]
FIG. 13 shows a modification of the second embodiment, and is a flowchart showing the flow of calibration processing. The flowchart of the second embodiment shown in FIG. 11 is that the tilt adjustment for eliminating (suppressing) the tilt shift is not the adjustment by rotating the optical member, but image processing, typically affine transformation or projection. The difference is that it is performed by image conversion processing using conversion.

前回までの傾き調整結果を表す累積調整パラメータがメイン・メモリ20に記憶されている。したがって,累積調整パラメータにしたがって左画像Lおよび右画像Rを画像回転処理すれば,傾きズレが抑制された立体画像を得ることができ,その傾きズレは次第に少なくなる。第2実施例の変形例ではメイン・メモリ20に入力した左画像Lおよび右画像Rに対して,累積調整パラメータ(図11(B),(C)参照)にしたがって画像回転処理が行われる(ステップ71)。図11(C)に示す累積調整パラメータがメイン・メモリ20に記憶されている場合には,メイン・メモリ20に入力した左画像Lを表す左画像データおよび右画像Rを表す右画像データのそれぞれに対し,アフィン変換または射影変換によって,左画像データについては反時計回りに1.92度の画像回転処理が行われ,右画像データについては時計回りに4.8度の画像回転処理が行われる。   Cumulative adjustment parameters representing the inclination adjustment results up to the previous time are stored in the main memory 20. Therefore, if the left image L and the right image R are subjected to image rotation processing according to the cumulative adjustment parameter, a stereoscopic image in which the inclination deviation is suppressed can be obtained, and the inclination deviation gradually decreases. In a modification of the second embodiment, image rotation processing is performed on the left image L and right image R input to the main memory 20 in accordance with the cumulative adjustment parameter (see FIGS. 11B and 11C) (see FIG. 11B). Step 71). When the cumulative adjustment parameters shown in FIG. 11C are stored in the main memory 20, the left image data representing the left image L and the right image data representing the right image R input to the main memory 20, respectively. On the other hand, by affine transformation or projective transformation, 1.92 degree image rotation processing is performed counterclockwise for the left image data, and 4.8 degree image rotation processing is performed clockwise for the right image data. .

その後,回転処理された左画像Lおよび右画像Rを処理対象にして,調整パラメータを用いた傾き調整が実行される。調整パラメータに基づく傾き調整も画像回転処理(アフィン変換または射影変換)による(ステップ44〜49,72)。   Thereafter, the tilt adjustment using the adjustment parameters is executed on the left image L and the right image R that have been subjected to the rotation processing. The tilt adjustment based on the adjustment parameter is also performed by image rotation processing (affine transformation or projective transformation) (steps 44 to 49, 72).

なお,アフィン変換または射影変換による画像回転処理によって傾き調整する場合,累積調整パラメータは,式1に代えて,以下の式2によって算出(更新)される。   In the case of adjusting the inclination by image rotation processing by affine transformation or projective transformation, the cumulative adjustment parameter is calculated (updated) by the following equation 2 instead of equation 1.

更新後の累積調整パラメータ=累積調整パラメータ・調整パラメータ 式2   Cumulative adjustment parameter after update = cumulative adjustment parameter / adjustment parameter Equation 2

画像回転処理によって傾き調整する場合には,左側光学部材10Lおよび右側光学部材10Rの傾きを調整する光学部材回転アクチュエータ30L,30Rは,ディジタル・スチル・カメラに必ずしも必要とされない。   When tilt adjustment is performed by image rotation processing, the optical member rotation actuators 30L and 30R for adjusting the tilt of the left optical member 10L and the right optical member 10R are not necessarily required for the digital still camera.

また,画像回転処理によって傾き調整する場合には,上記キャリブレーション処理によって画像回転処理された左画像データおよび右画像データがメイン・メモリ20に記憶される。傾き調整された後の立体画像が表示装置27に表示される。メモリ・カード25にも,傾き調整された後の立体画像データ(左画像データおよび右画像データの組)が記録される。   When the tilt adjustment is performed by the image rotation process, the left image data and the right image data subjected to the image rotation process by the calibration process are stored in the main memory 20. The stereoscopic image after the inclination adjustment is displayed on the display device 27. Also on the memory card 25, stereoscopic image data (a set of left image data and right image data) after tilt adjustment is recorded.

[第3実施例]
図14,図15および図16は第3実施例のキャリブレーション処理の流れを示すフローチャートである。
[Third embodiment]
FIG. 14, FIG. 15 and FIG. 16 are flowcharts showing the flow of the calibration process of the third embodiment.

上述した第1実施例のキャリブレーション処理(図2)では係数α(0<α<1)によって変換パラメータを小さくした調整パラメータを用いてキャリブレーション処理を行うことにより,非基準画像(その対応線)の傾きを基準画像(その基準線)の傾きに近づける処理を行う。第2実施例のキャリブレーション処理(図10)では累積調整パラメータを用いて前回以前(過去)のキャリブレーション処理の結果(累積調整パラメータ)に基づく傾き調整をあらかじめ実行することで,非基準画像(その対応線)の傾きを基準画像(その基準線)の傾きに次第に一致させている。第3実施例のキャリブレーション処理はさらに,キャリブレーション処理が行われるたびに,非基準画像(その対応線)の傾きを基準画像(その基準線)の傾きに完全に一致させる点が,第1,2実施例と異なる。   In the calibration process (FIG. 2) of the first embodiment described above, the calibration process is performed using the adjustment parameter in which the conversion parameter is reduced by the coefficient α (0 <α <1), so that the non-reference image (its corresponding line) is obtained. ) To approximate the inclination of the reference image (its reference line). In the calibration process (FIG. 10) according to the second embodiment, the inclination adjustment based on the result of the previous calibration process (cumulative adjustment parameter) (cumulative adjustment parameter) is performed in advance using the cumulative adjustment parameter. The inclination of the corresponding line) is gradually matched with the inclination of the reference image (the reference line). The calibration process of the third embodiment is further characterized in that each time the calibration process is performed, the inclination of the non-reference image (its corresponding line) is completely matched with the inclination of the reference image (its reference line). , Different from the second embodiment.

図14は第1実施例のキャリブレーション処理(図2)に,さらに非基準画像の傾きを基準画像の傾きに完全に一致させるためのステップ(ステップ81〜85)が追加されたものである。図15は第2実施例のキャリブレーション処理(図10)に,さらに非基準画像の傾きを基準画像の傾きに完全に一致させるためのステップ(ステップ81〜85)が追加されたものである。図16は第2実施例の変形例のキャリブレーション処理(図13)に,さらに非基準画像の傾きを基準画像の傾きに完全に一致させるためのステップ(ステップ81,82,84,86,87)が追加されたものである。   FIG. 14 is obtained by adding steps (steps 81 to 85) for completely matching the inclination of the non-reference image with the inclination of the reference image in the calibration process (FIG. 2) of the first embodiment. FIG. 15 is obtained by adding steps (steps 81 to 85) for completely matching the inclination of the non-reference image with the inclination of the reference image in the calibration process (FIG. 10) of the second embodiment. FIG. 16 shows a step (steps 81, 82, 84, 86, 87) for completely matching the inclination of the non-reference image with the inclination of the reference image in the calibration process (FIG. 13) of the modified example of the second embodiment. ) Is added.

図14を参照して,第3実施例は,第1実施例および第2実施例と異なり,調整フラグがオフされている場合(ステップ42でNO),および水平方向線分または垂直方向線分が左画像Lおよび右画像R中に存在しない場合(ステップ45でNO)にも,傾き調整が行われる。調整フラグがオフされている場合(ステップ42でNO)および水平方向線分または垂直方向線分が存在しない場合(ステップ45でNO)のいずれも場合も,ステップ48がスキップされるので変換パラメータは算出されていない状態である。第3実施例では,変換パラメータが算出されていないことを条件にして,ステップ43〜ステップ48の処理を実行して変換パラメータを算出する(ステップ84)。すなわち,調整フラグがオフであっても左画像データおよび右画像データがメイン・メモリ20に入力され(ステップ43),左画像Lおよび右画像Rのそれぞれにおいて直線成分が検出される(ステップ44)。水平方向線分(水平方向から±10度の角度範囲内の傾きを持つ直線成分)または垂直方向線分(垂直方向から±10度の角度範囲内の傾きを持つ直線成分)が左画像Lおよび右画像Rに存在しなくても,最も水平または垂直に近い線分が基準線として決定され,基準線を含む画像が基準画像として選択される(ステップ46,47)。非基準画像中の対応線の傾きを,基準画像中の基準線の傾きに一致させる変換パラメータが算出される(ステップ48)。   Referring to FIG. 14, the third embodiment differs from the first and second embodiments in the case where the adjustment flag is turned off (NO in step 42), and the horizontal or vertical line segment. Is not present in the left image L and the right image R (NO in step 45), tilt adjustment is performed. In both cases where the adjustment flag is off (NO in step 42) and there is no horizontal or vertical line segment (NO in step 45), step 48 is skipped, so the conversion parameter is It has not been calculated. In the third embodiment, on the condition that the conversion parameter is not calculated, the processing of step 43 to step 48 is executed to calculate the conversion parameter (step 84). That is, even if the adjustment flag is off, the left image data and the right image data are input to the main memory 20 (step 43), and a linear component is detected in each of the left image L and the right image R (step 44). . A horizontal line segment (a straight line component having an inclination within an angle range of ± 10 degrees from the horizontal direction) or a vertical line segment (a straight line component having an inclination within an angle range of ± 10 degrees from the vertical direction) is the left image L and Even if it does not exist in the right image R, the most horizontal or vertical line segment is determined as the reference line, and an image including the reference line is selected as the reference image (steps 46 and 47). A conversion parameter is calculated that matches the slope of the corresponding line in the non-reference image with the slope of the reference line in the reference image (step 48).

第1実施例とは異なり,調整パラメータではなく,変換パラメータ自体が用いられて非基準画像に対応する光学部材の傾きが調整される(ステップ85)。たとえば,図8(A)および図8(B)に示す左画像Lおよび右画像Rがキャリブレーション処理の対象である場合には,右画像R中の対応線の傾きを左画像L中の基準線に一致させる変換パラメータは「右+8度」であるので,右画像Rに対して時計回り8度分回転が行われるように右側光学部材10Rが光学部材回転アクチュエータ30Rによって回転制御される。これにより,右画像R中の対応線の傾きは左画像L中の基準線の傾きに完全に一致する。傾きズレが解消された左画像Lおよび右画像Rが,その後撮像によってディジタル・スチル・カメラによって得られる。   Unlike the first embodiment, not the adjustment parameter but the conversion parameter itself is used to adjust the inclination of the optical member corresponding to the non-reference image (step 85). For example, when the left image L and the right image R shown in FIGS. 8A and 8B are objects of calibration processing, the slope of the corresponding line in the right image R is set as the reference in the left image L. Since the conversion parameter matched with the line is “right + 8 degrees”, the right optical member 10R is controlled to rotate by the optical member rotation actuator 30R so that the right image R is rotated clockwise by 8 degrees. Thereby, the inclination of the corresponding line in the right image R completely matches the inclination of the reference line in the left image L. The left image L and the right image R from which the tilt shift is eliminated are obtained by a digital still camera by imaging thereafter.

他方,変換パラメータが算出されて上述した調整パラメータによる傾き調整が既に行われている場合(ステップ81でYES ),さらに差分パラメータが算出されて差分パラメータを用いた傾き調整処理が行われる(ステップ82,83)。差分パラメータは次式によって算出される。   On the other hand, when the conversion parameter is calculated and the inclination adjustment using the adjustment parameter described above has already been performed (YES in step 81), the difference parameter is further calculated and the inclination adjustment process using the difference parameter is performed (step 82). , 83). The difference parameter is calculated by the following equation.

差分パラメータ=(1−α)・変換パラメータ ・・・式3   Difference parameter = (1−α) · Conversion parameter Equation 3

式3において,係数αは,式1で調整パラメータの算出に用いられた係数と同じであり,0<α<1の範囲の数値である。   In Expression 3, the coefficient α is the same as the coefficient used for calculating the adjustment parameter in Expression 1, and is a numerical value in the range of 0 <α <1.

たとえば,係数α=0.6,変換パラメータ=右+8度である場合,差分パラメータは(1−0.6)・右+8度=右+3.2度となる。右画像Rに対して時計回りに3.2度分の回転が行われるように,右側光学部材10Rが光学部材回転アクチュエータ30Rによってさらに回転制御される。   For example, when the coefficient α = 0.6 and the conversion parameter = right + 8 degrees, the difference parameter is (1−0.6) · right + 8 degrees = right + 3.2 degrees. The right optical member 10R is further controlled to rotate by the optical member rotation actuator 30R so that the right image R is rotated by 3.2 degrees clockwise.

調整パラメータにしたがう時計回り4.8度の回転制御に加えて,さらに時計回り3.2度の回転制御が行われるので,右側光学部材10Rは合計8度分回転する。これにより,右画像R中の対応線は左画像L中の基準線の傾きに完全に一致する。傾きズレが解消された左画像Lおよび右画像Rが,その後撮像によってディジタル・スチル・カメラによって得られる。   In addition to the rotation control of 4.8 degrees clockwise according to the adjustment parameter, the rotation control of 3.2 degrees clockwise is further performed, so the right optical member 10R rotates by a total of 8 degrees. As a result, the corresponding line in the right image R completely matches the inclination of the reference line in the left image L. The left image L and the right image R from which the tilt shift is eliminated are obtained by a digital still camera by imaging thereafter.

図14に示すキャリブレーション処理は,傾き調整された左側光学部材10Lおよび右側光学部材10Rを電源がオフされてもそのまま保持するディジタル・スチル・カメラにも,初期状態に復帰させるディジタル・スチル・カメラにも適用することができる。   In the calibration process shown in FIG. 14, the digital still camera that returns the initial state to the digital still camera that holds the left-side optical member 10L and the right-side optical member 10R whose tilts are adjusted even when the power is turned off. It can also be applied to.

図15を参照して,図15に示すキャリブレーション処理は,上述したように,第2実施例のキャリブレーション処理(図10)にステップ81〜85を追加したものであり,電源がオフされると傾き調整された左側光学部材10Lおよび右側光学部材10Rが初期状態に復帰するディジタル・スチル・カメラに好適なものである。第2実施例において説明したように,メイン・メモリ20に前回までの傾き調整の結果(累積調整パラメータ)が記憶されているので,この累積調整パラメータにしたがって,ディジタル・スチル・カメラにおいて電源が入れられるたびに前回まで傾き調整結果(累積調整パラメータ)にしたがう傾き調整が実行され(ステップ61,62),その後残りの傾きズレが調整パラメータにしたがって調整される(ステップ41〜51)。   Referring to FIG. 15, the calibration process shown in FIG. 15 is obtained by adding steps 81 to 85 to the calibration process (FIG. 10) of the second embodiment as described above, and the power is turned off. This is suitable for a digital still camera in which the left optical member 10L and the right optical member 10R whose inclination is adjusted are restored to the initial state. As described in the second embodiment, the result of the previous tilt adjustment (cumulative adjustment parameter) is stored in the main memory 20, so that the digital still camera is turned on according to the cumulative adjustment parameter. Each time the tilt adjustment is performed according to the tilt adjustment result (cumulative adjustment parameter) until the previous time (steps 61 and 62), the remaining tilt deviation is adjusted according to the adjustment parameter (steps 41 to 51).

図14と同様に,図15のキャリブレーション処理においても,調整フラグがオフされている場合(ステップ42でNO),および水平方向線分または垂直方向線分が存在しない場合(ステップ45でNO)にも傾き調整が行われ,その場合には調整パラメータではなく,変換パラメータ自体が用いられて,非基準画像に対応する光学部材の傾きが調整される(ステップ84,85)。   Similarly to FIG. 14, also in the calibration process of FIG. 15, when the adjustment flag is turned off (NO in step 42), and when there is no horizontal or vertical line segment (NO in step 45). In this case, the tilt adjustment is performed, and in this case, not the adjustment parameter but the conversion parameter itself is used to adjust the tilt of the optical member corresponding to the non-reference image (steps 84 and 85).

たとえば,図8(A)および図8(B)に示す左画像Lおよび右画像Rがキャリブレーション処理の対象である場合であって,メイン・メモリ20に図11(B)に示す累積調整パラメータ(右+4.8度)が記憶されている場合,累積調整パラメータにしたがって,右画像Rが時計回りに4.8度回転するように右側光学部材10Rが光学部材回転アクチュエータ30Rによって回転制御される。図8(A)および図8(B)に示す左画像Lおよび右画像Rは,図12(A)および図12(B)に示すものになる(ステップ61,62)。   For example, in the case where the left image L and the right image R shown in FIGS. 8A and 8B are objects of calibration processing, the cumulative adjustment parameter shown in FIG. 11B is stored in the main memory 20. When (right + 4.8 degrees) is stored, the right optical member 10R is rotationally controlled by the optical member rotation actuator 30R so that the right image R rotates 4.8 degrees clockwise according to the cumulative adjustment parameter. . The left image L and the right image R shown in FIGS. 8A and 8B are those shown in FIGS. 12A and 12B (steps 61 and 62).

第2実施例において説明したように,図12(A)および図12(B)において,左画像L中の対応線の傾きを右画像R中の基準線に一致させる変換パラメータは「左−3.2度」である。調整フラグがオフされている場合(ステップ42でNO),および水平方向線分または垂直方向線分が存在しない場合(ステップ45でNO),変換パラメータ「左−3.2度」にしたがって,左画像Lに対して反時計回りに3.2度分の回転が行われるように左側光学部材10Lが光学部材回転アクチュエータ30Lによって回転制御される(ステップ81のNO,ステップ84,85)。左画像R中の対応線は右画像L中の基準線の傾きに完全に一致する。傾きズレが解消された左画像Lおよび右画像Rが,その後の撮像によってディジタル・スチル・カメラによって得られる。   As described in the second embodiment, in FIGS. 12A and 12B, the conversion parameter for matching the slope of the corresponding line in the left image L with the reference line in the right image R is “left-3. .2 degrees ". If the adjustment flag is off (NO in step 42), and if there is no horizontal or vertical line segment (NO in step 45), left according to the conversion parameter "left -3.2 degrees" The left optical member 10L is rotationally controlled by the optical member rotation actuator 30L so that the image L is rotated counterclockwise by 3.2 degrees (NO in step 81, steps 84 and 85). The corresponding line in the left image R completely matches the inclination of the reference line in the right image L. The left image L and the right image R in which the tilt deviation is eliminated are obtained by a digital still camera by subsequent imaging.

他方,変換パラメータが算出されて上述した調整パラメータによる傾き調整が既に行われている場合(ステップ81でYES ),調整パラメータにしたがう傾き調整(ステップ50)によって,図12(A)に示す左画像Lが反時計回りに1.92度回転するように,左側光学部材10Lが反時計回りに回転制御される(図12(C))。さらに,上述した差分パラメータが算出されて差分パラメータを用いた傾き調整処理が行われる(ステップ82,83)。たとえば,係数α=0.6で,変換パラメータ=左−3.2度である場合,上述の式3から,差分パラメータは(1−0.6)・左−3.2度=左−1.28度となる。左画像Rに対して反時計回りに1.28度分の回転が行われるように,左側光学部材10Lが光学部材回転アクチュエータ30Lによって回転制御される。これにより,左画像R中の対応線の傾きは右画像L中の基準線の傾きに完全に一致する。傾きズレが解消された左画像Lおよび右画像Rが,その後の撮像によってディジタル・スチル・カメラによって得られる。   On the other hand, when the conversion parameter is calculated and the inclination adjustment using the adjustment parameter described above has already been performed (YES in step 81), the left image shown in FIG. 12A is obtained by the inclination adjustment according to the adjustment parameter (step 50). The left optical member 10L is controlled to rotate counterclockwise so that L rotates 1.92 degrees counterclockwise (FIG. 12C). Further, the above-described difference parameter is calculated, and tilt adjustment processing using the difference parameter is performed (steps 82 and 83). For example, when the coefficient α = 0.6 and the conversion parameter = left−3.2 degrees, the difference parameter is (1−0.6) · left−3.2 degrees = left−1 from Equation 3 above. .28 degrees. The left optical member 10L is rotationally controlled by the optical member rotation actuator 30L so that the left image R is rotated counterclockwise by 1.28 degrees. Thereby, the inclination of the corresponding line in the left image R completely matches the inclination of the reference line in the right image L. The left image L and the right image R in which the tilt deviation is eliminated are obtained by a digital still camera by subsequent imaging.

図16を参照して,図16に示すキャリブレーション処理は,上述したように,第2実施例の変形例のキャリブレーション処理(図13)に,傾きズレを完全に無くすステップを追加したものであり,光学部材を回転駆動することによる傾きズレの調整ではなく,画像回転処理,典型的にはアフィン変換または射影変換によって傾きズレの調整が行われる。図15と同様,変換パラメータが算出されていない場合であっても(ステップ81でNO),変換パラメータが算出されている場合であっても(ステップ81でYES ),画像処理によって非基準画像中の対応線の傾きが基準画像中の基準線の傾きに完全に一致させられ(ステップ82および86,ステップ84および87),傾きズレが解消された左画像Lおよび右画像Rが,その後の撮像によってディジタル・スチル・カメラによって得られる。   Referring to FIG. 16, the calibration process shown in FIG. 16 is obtained by adding a step of completely eliminating the tilt deviation to the calibration process (FIG. 13) of the modified example of the second embodiment as described above. Yes, the tilt shift is adjusted not by adjusting the tilt shift by rotationally driving the optical member, but by image rotation processing, typically affine transformation or projective transformation. As in FIG. 15, even if the conversion parameter is not calculated (NO in step 81) or the conversion parameter is calculated (YES in step 81), the non-reference image is displayed by image processing. The left image L and the right image R from which the inclination deviation is eliminated are obtained by making the inclination of the corresponding line completely match the inclination of the reference line in the reference image (steps 82 and 86, steps 84 and 87). Is obtained by a digital still camera.

上述した第1〜第3実施例において,ディジタル・スチル・カメラは左側光学部材10Lおよび右側光学部材10Rを備えたいわゆる2眼のディジタル・スチル・カメラを前提としているが,この発明は2眼のみならず,3眼以上(光学部材が3組以上設けられたもの)であっても,適用することができる。たとえば,3眼であれば,3つの同期撮像された画像(左画像,中画像,右画像)のうちの一つが基準画像となり,残りの2つが非基準画像として扱われる。累積調整パラメータ(図11(A)〜(C)を参照)を利用する実施例(第2実施例および第3実施例の一部)では,左画像,中画像および右画像(3つの光学部材のそれぞれ)のそれぞれに対応して,3つの累積調整パラメータがメイン・メモリ20に記憶される。   In the first to third embodiments described above, the digital still camera is premised on a so-called two-lens digital still camera provided with a left optical member 10L and a right optical member 10R. Of course, the present invention can be applied even to three or more eyes (three or more sets of optical members are provided). For example, in the case of three eyes, one of three images (left image, middle image, and right image) that have been captured synchronously becomes a reference image, and the remaining two are treated as non-reference images. In the embodiment (a part of the second embodiment and the third embodiment) using the cumulative adjustment parameter (see FIGS. 11A to 11C), the left image, the middle image, and the right image (three optical members) Corresponding to each of the three), three cumulative adjustment parameters are stored in the main memory 20.

また,上述した実施例では,基準線の決定,変換パラメータの算出,調整パラメータの算出等をCPU1(またはディジタル画像処理回路21)によって実行する例を説明したが,もちろん,これらの処理を行うハードウェア(回路)をディジタル・スチル・カメラに設けてもよい。   In the above-described embodiment, the example in which the CPU 1 (or the digital image processing circuit 21) executes determination of the reference line, calculation of the conversion parameter, calculation of the adjustment parameter, and the like has been described. Wear (circuit) may be provided in the digital still camera.

1 CPU
10L 左側光学部材
10R 右側光学部材
15R,15L CCD
20 メイン・メモリ
21 ディジタル信号処理回路
30R,30L 光学部材回転アクチュエータ
1 CPU
10L Left side optical member
10R Right optical member
15R, 15L CCD
20 Main memory
21 Digital signal processing circuit
30R, 30L Optical member rotation actuator

Claims (14)

共通する領域を撮像可能な位置に設けられかつ異なる位置から被写体を撮像する,固体撮像素子を含む少なくとも二つの撮像手段,
上記撮像手段によって得られる少なくとも二つの画像データをそれぞれ独立に回転させる画像回転手段,
上記少なくとも二つの画像データのうちの一つである基準画像データによって表される基準画像に対する,残りの画像データである非基準画像データによって表される非基準画像の傾きズレ角度量を検出する傾きズレ検出手段
上記傾きズレ検出手段によって検出された傾きズレ角度量に応じた角度分上記非基準画像が回転するように上記画像回転手段を制御する第1の傾き制御手段,
上記撮像手段によって得られる少なくとも二つの被写体像を表す画像データのそれぞれについて,前回までの画像データ回転において用いられた傾きズレ角度量の累積値を記憶する累積値記憶手段,および
上記1の傾き制御手段による上記画像回転手段の制御よりも前に,上記累積値記憶手段に記憶された傾きズレ角度量の累積値に応じた角度分上記非基準画像が回転するように上記画像回転手段を制御する第2の傾き制御手段,
を備える複眼撮像装置。
At least two imaging means including a solid-state imaging device, which are provided at a position where a common area can be imaged and which image a subject from different positions
Image rotating means for independently rotating at least two image data obtained by the imaging means;
With respect to a reference image represented by the reference image data which is one of said at least two image data, detects a tilt-out shift angle of the non-reference image represented by the non-reference image data which is the remaining image data Tilt deviation detecting means ,
First inclination control means angular amount the non-reference picture image corresponding to the inclination angular deviation amount detected by the inclination shift detecting means for controlling said image rotation means to rotate,
A cumulative value storage means for storing a cumulative value of an inclination angle amount used in the previous image data rotation for each of image data representing at least two subject images obtained by the imaging means; and
Prior to the control of the image rotation means by the first inclination control means, the image is so rotated that the non-reference image is rotated by an angle corresponding to the cumulative value of the tilt deviation angle amount stored in the cumulative value storage means. Second tilt control means for controlling the rotation means;
A compound eye imaging apparatus.
上記撮像手段によって得られる少なくとも二つの画像データのそれぞれについて,上記画像データによって表される画像中に含まれる直線線分を検出する線分検出手段,ならびに
上記線分検出手段によって検出された直線線分のうち,上記固体撮像素子に含まれる水平画素の方向および垂直画素の方向にそれぞれ対応する水平方向および垂直方向のいずれかに最も近い方向を向く直線線分を基準線として決定する基準線決定手段を備え,
上記傾きズレ検出手段は,
上記基準線決定手段によって決定された上記基準線を含む画像を上記基準画像として選択するものであり,
上記傾きズレ検出手段はさらに,
上記基準画像中の上記基準線に対する,上記非基準画像中の上記基準線に対応する対応線のそれぞれの傾きズレ角度量を検出する,
請求項1に記載の複眼撮像装置。
For each of at least two image data obtained by the imaging means, a line segment detecting means for detecting a straight line segment included in the image represented by the image data, and a straight line detected by the line segment detecting means Of the minutes, a reference line determination is made to determine, as a reference line, a straight line segment that is closest to either the horizontal direction or the vertical direction corresponding to the horizontal pixel direction and the vertical pixel direction included in the solid-state imaging device, respectively. With means,
The inclination deviation detecting means is
An image including the reference line determined by the reference line determination means is selected as the reference image;
The tilt deviation detecting means further includes
Detecting an inclination angle amount of each corresponding line corresponding to the reference line in the non-reference image with respect to the reference line in the reference image;
The compound eye imaging device according to claim 1.
上記線分検出手段によって検出された直線線分のすべてが,上記水平方向の近傍角度範囲および上記垂直方向の近傍角度範囲の方向を向いていない場合に,上記傾きズレ検出手段による傾きズレ角度量の検出,および上記第1の傾き制御手段による上記画像回転手段の制御を停止させる停止手段をさらに備える,
請求項2に記載の複眼撮像装置。
When all of the straight line segments detected by the line segment detection means are not oriented in the direction of the horizontal vicinity angle range and the vertical vicinity angle range, the inclination deviation angle amount by the inclination deviation detection means A stop means for stopping the detection of the image rotation means and the control of the image rotation means by the first tilt control means,
The compound eye imaging device according to claim 2.
上記基準線および上記対応線の方向が一致するかどうかを判断する基準線/対応線判断手段を備え,
上記基準線/対応線判断手段によって,上記基準線および上記対応線の方向の一致が判断された場合に,一致する方向の対応線を含む非基準画像について,上記傾きズレ検出手段による傾きズレ角度量の検出および上記第1の傾き制御手段による上記画像回転手段の制御を停止させる停止手段をさらに備える,
請求項2に記載の複眼撮像装置。
A reference line / corresponding line judging means for judging whether or not the directions of the reference line and the corresponding line match,
When the reference line / corresponding line determination means determines that the reference lines and the corresponding lines are in the same direction, the inclination deviation angle by the inclination deviation detection means for the non-reference image including the corresponding lines in the matching direction. Stop means for stopping detection of the amount and control of the image rotation means by the first tilt control means;
The compound eye imaging device according to claim 2.
上記第1の傾き制御手段は,上記傾き検出手段によって検出された傾きズレ角度量に1よりも小さい所定係数を乗算することによって得られる角度量分上記非基準画像が回転するように上記画像回転手段を制御する,
請求項1に記載の複眼撮像装置。
The first inclination control means rotates the image so that the non-reference image is rotated by an angle amount obtained by multiplying the inclination deviation angle amount detected by the inclination detection means by a predetermined coefficient smaller than 1. Control means,
The compound eye imaging device according to claim 1.
上記第1の傾き制御手段は,上記傾き検出手段によって検出された傾きズレ角度量と,傾きズレ角度量に1よりも小さい所定係数を乗算することによって得られる角度量との差分の角度量分上記非基準画像がさらに回転するように上記画像回転手段を制御する,
請求項5に記載の複眼撮像装置。
The first tilt control means is an angle amount of a difference between the tilt deviation angle amount detected by the tilt detection means and an angle amount obtained by multiplying the tilt deviation angle amount by a predetermined coefficient smaller than 1. Controlling the image rotation means so that the non-reference image is further rotated;
The compound eye imaging device according to claim 5.
上記画像回転手段は,上記撮像手段のそれぞれを独立に回転させる撮像手段回転アクチュエータである,請求項1に記載の複眼撮像装置。   The compound-eye imaging apparatus according to claim 1, wherein the image rotation means is an imaging means rotation actuator that independently rotates each of the imaging means. 上記画像回転手段は,上記撮像手段によって得られる画像データを回転変換する画像データ回転処理手段である,
請求項1に記載の複眼撮像装置。
The image rotation means is image data rotation processing means for rotating and converting image data obtained by the imaging means.
The compound eye imaging device according to claim 1.
傾き調整フラグを記憶する傾き調整フラグ記憶手段,
上記傾き調整フラグをオン/オフする傾き調整フラグ制御手段,ならびに
上記傾き調整フラグがオンであるときに,上記傾きズレ検出手段による傾きズレ角度量の検出,および上記第1の傾き制御手段による上記画像回転手段の制御を許す画像回転許可手段,
をさらに備える請求項1に記載の複眼撮像装置。
Inclination adjustment flag storage means for storing an inclination adjustment flag;
Inclination adjustment flag control means for turning on / off the inclination adjustment flag, and when the inclination adjustment flag is on, detection of the inclination deviation angle amount by the inclination deviation detection means, and the above-mentioned by the first inclination control means. Image rotation permission means for allowing control of the image rotation means;
The compound eye imaging device according to claim 1, further comprising:
上記傾き調整フラグ制御手段は,上記画像回転手段によって画像データが回転されたことに応じて,上記傾き調整フラグ記憶手段に記憶されている傾き調整フラグをオフする,
請求項に記載の複眼撮像装置。
The inclination adjustment flag control means turns off the inclination adjustment flag stored in the inclination adjustment flag storage means in response to the image data being rotated by the image rotation means.
The compound eye imaging device according to claim 9 .
上記傾き調整フラグ制御手段は,上記複眼撮像装置の電源が入れられたときに上記傾き調整フラグ記憶手段に記憶されている傾き調整フラグをオンする,
請求項に記載の複眼撮像装置。
The inclination adjustment flag control means turns on the inclination adjustment flag stored in the inclination adjustment flag storage means when the compound eye imaging device is powered on;
The compound eye imaging device according to claim 9 .
上記傾き調整フラグ制御手段は,上記複眼撮像装置の設定が変更されたときに上記傾き調整フラグ記憶手段に記憶されている傾き調整フラグをオンする,
請求項に記載の複眼撮像装置。
The inclination adjustment flag control means turns on the inclination adjustment flag stored in the inclination adjustment flag storage means when the setting of the compound eye imaging device is changed;
The compound eye imaging device according to claim 9 .
上記傾き調整フラグ制御手段は,上記画像回転手段によって画像データが回転された後所定の時間が経過しているときに上記傾き調整フラグ記憶手段に記憶されている傾き調整フラグをオンする,
請求項に記載の複眼撮像装置。
The inclination adjustment flag control means turns on the inclination adjustment flag stored in the inclination adjustment flag storage means when a predetermined time has elapsed after the image data is rotated by the image rotation means;
The compound eye imaging device according to claim 9 .
共通する領域を撮像可能な位置に設けられかつ異なる位置から被写体を撮像する,固体撮像素子を含む少なくとも二つの撮像手段を有する複眼撮像装置の制御方法であって,
傾きズレ検出手段が,上記少なくとも二つの撮像手段による撮像によって得られる少なくとも二つの画像データのうちの一つである基準画像データによって表される基準画像に対する,残りの画像データである非基準画像データによって表される非基準画像の傾きズレ角度量を検出し,
第1の傾き制御手段が,上記傾きズレ検出手段によって検出された傾きズレ角度量に応じた角度分上記非基準画像が回転するように,上記撮像手段によって得られる少なくとも二つの画像データをそれぞれ独立に回転させる画像回転手段を制
累積値記憶手段が,上記撮像手段によって得られる少なくとも二つの被写体像を表す画像データのそれぞれについて,前回までの画像データ回転において用いられた傾きズレ角度量の累積値を記憶し,
第2の傾き制御手段が,上記1の傾き制御手段による上記画像回転手段の制御よりも前に,上記累積値記憶手段に記憶された傾きズレ角度量の累積値に応じた角度分上記非基準画像が回転するように上記画像回転手段を制御する,
複眼撮像装置の制御方法。
A control method for a compound eye imaging device having at least two imaging means including a solid-state imaging device, which is provided at a position where a common area can be imaged and images a subject from different positions,
The non-reference image data which is the remaining image data with respect to the reference image represented by the reference image data which is one of the at least two image data obtained by the at least two image pickup means by the inclination deviation detection means. detecting the inclination-out shift angle of the non-reference image represented by,
First gradient control means, so that the angle component corresponding to the inclination angular deviation amount detected by the inclination shift detecting means above the non-reference picture image is rotated, at least two of the image data obtained by the image pickup means, respectively image rotation means for rotating independently control and control,
A cumulative value storage means stores, for each of the image data representing at least two subject images obtained by the imaging means, a cumulative value of the tilt angle amount used in the previous image data rotation,
The second inclination control means performs the non-reference by an angle corresponding to the accumulated value of the inclination deviation angle amount stored in the accumulated value storage means before the control of the image rotation means by the first inclination control means. Controlling the image rotation means so that the image rotates,
Control method of compound eye imaging apparatus.
JP2010064830A 2010-03-19 2010-03-19 Compound eye imaging apparatus and control method thereof Expired - Fee Related JP5444065B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010064830A JP5444065B2 (en) 2010-03-19 2010-03-19 Compound eye imaging apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010064830A JP5444065B2 (en) 2010-03-19 2010-03-19 Compound eye imaging apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2011197452A JP2011197452A (en) 2011-10-06
JP5444065B2 true JP5444065B2 (en) 2014-03-19

Family

ID=44875724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010064830A Expired - Fee Related JP5444065B2 (en) 2010-03-19 2010-03-19 Compound eye imaging apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5444065B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101930235B1 (en) 2012-05-15 2018-12-18 삼성전자 주식회사 Method, device and system for digital image stabilization
JPWO2019082700A1 (en) * 2017-10-26 2020-11-19 パイオニア株式会社 Control devices, control methods, programs and storage media

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3113389B2 (en) * 1992-05-29 2000-11-27 三洋電機株式会社 Video camera
JP4172554B2 (en) * 1998-03-12 2008-10-29 富士重工業株式会社 Stereo camera adjustment device
JP4172555B2 (en) * 1998-03-12 2008-10-29 富士重工業株式会社 Stereo camera adjustment device
JP4147656B2 (en) * 1998-12-08 2008-09-10 船井電機株式会社 Image processing device
JP3280001B2 (en) * 1999-09-16 2002-04-30 富士重工業株式会社 Stereo image misalignment adjustment device
JP2002077947A (en) * 2000-09-05 2002-03-15 Sanyo Electric Co Ltd Method for correcting stereoscopic image and stereoscopic image apparatus using the same
JP2004282686A (en) * 2003-01-20 2004-10-07 Minolta Co Ltd Imaging apparatus
JP4279790B2 (en) * 2005-02-24 2009-06-17 株式会社日立製作所 Car number recognition device
JP2008045983A (en) * 2006-08-15 2008-02-28 Fujifilm Corp Adjustment device for stereo camera
JP2008252483A (en) * 2007-03-30 2008-10-16 Nikon Corp Camera with projector

Also Published As

Publication number Publication date
JP2011197452A (en) 2011-10-06

Similar Documents

Publication Publication Date Title
JP4875225B2 (en) Stereo imaging device
US9560341B2 (en) Stereoscopic image reproduction device and method, stereoscopic image capturing device, and stereoscopic display device
US8885026B2 (en) Imaging device and imaging method
JP5380184B2 (en) Compound eye camera and control method thereof
JP4897940B2 (en) Stereo imaging device
WO2013027343A1 (en) Three-dimensional image capture device, lens control device, and program
US8878907B2 (en) Monocular stereoscopic imaging device
WO2011162227A1 (en) Stereoscopic panoramic image synthesis device, image capturing device, stereoscopic panoramic image synthesis method, recording medium, and computer program
JP4914420B2 (en) Imaging device, compound eye imaging device, and imaging control method
US20110280564A1 (en) Interchangeable lens unit, imaging device, method for controlling interchangeable lens unit, program, and storage medium storing program
WO2012002307A1 (en) Single-lens stereoscopic image capture device
JP5166650B2 (en) Stereo imaging device, image playback device, and editing software
WO2007010939A1 (en) 3d image file, imaging device, image reproducing device, image processing device
JPH11341522A (en) Stereoscopic image photographing device
US9310672B2 (en) Stereoscopic image capturing device and method of controlling thereof
US20130027520A1 (en) 3d image recording device and 3d image signal processing device
US20150288949A1 (en) Image generating apparatus, imaging apparatus, and image generating method
US20130050532A1 (en) Compound-eye imaging device
JP2011048120A (en) Twin lens digital camera
JP2012090259A (en) Imaging apparatus
JP2010135984A (en) Compound-eye imaging apparatus and imaging method
JP5444065B2 (en) Compound eye imaging apparatus and control method thereof
JP2010237582A (en) Three-dimensional imaging apparatus and three-dimensional imaging method
JP2010103949A (en) Apparatus, method and program for photographing
JP2011146815A (en) Deviation correcting device, three-dimensional digital camera with the same, deviation correcting method and deviation correcting program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130822

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130903

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131018

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131220

R150 Certificate of patent or registration of utility model

Ref document number: 5444065

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees