JP2011199425A - Panoramic image generator, panoramic image generation method, panoramic image generation program, imaging apparatus - Google Patents

Panoramic image generator, panoramic image generation method, panoramic image generation program, imaging apparatus Download PDF

Info

Publication number
JP2011199425A
JP2011199425A JP2010061615A JP2010061615A JP2011199425A JP 2011199425 A JP2011199425 A JP 2011199425A JP 2010061615 A JP2010061615 A JP 2010061615A JP 2010061615 A JP2010061615 A JP 2010061615A JP 2011199425 A JP2011199425 A JP 2011199425A
Authority
JP
Japan
Prior art keywords
image data
mode
image
panoramic
panorama
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010061615A
Other languages
Japanese (ja)
Other versions
JP5364627B2 (en
Inventor
Koya Kato
康哉 加藤
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 JP2010061615A priority Critical patent/JP5364627B2/en
Publication of JP2011199425A publication Critical patent/JP2011199425A/en
Application granted granted Critical
Publication of JP5364627B2 publication Critical patent/JP5364627B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stereoscopic And Panoramic Photography (AREA)
  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a digital camera for generating a panoramic image without sense of incongruity even when an image has parallax.SOLUTION: The digital camera includes a panoramic synthesis part 19 which acquires n (n is a natural number ≥2) pieces of image data obtained by continuous shooting, calculates a moving vector between the (k-1)-th (k is a natural number of 2 to n) image data and the k-th image data adjacent to each other in time series, and sets the boundary position between the (k-1)-th image data and the k-th image data in the middle between the center of the (k-1)-th image data and the center of the k-th image data, based on the moving vector, to perform panoramic synthesis of the (k-1)-th image data and the k-th image data.

Description

本発明は、パノラマ画像生成装置、パノラマ画像生成方法、パノラマ画像生成プログラム、撮像装置に関する。   The present invention relates to a panorama image generation apparatus, a panorama image generation method, a panorama image generation program, and an imaging apparatus.

複数回の撮像を行って得られる画像データを貼り合わせることでパノラマ画像データを生成する方法が知られている(例えば特許文献1〜5参照)。   A method for generating panoramic image data by pasting together image data obtained by performing imaging a plurality of times is known (see, for example, Patent Documents 1 to 5).

特許文献3,4,5には、画像データ間の移動ベクトルに応じて、画像データの切り出し範囲を決定する方法が記載されている。しかし、これらの方法は、画像データ間の視差を考慮したものとなっていないため、画像同士の継ぎ目で段差が発生し、良好なパノラマ画像を得ることができない。以下、具体例を挙げて、この理由を説明する。   Patent Documents 3, 4, and 5 describe a method for determining a cutout range of image data in accordance with a movement vector between image data. However, since these methods do not consider the parallax between the image data, a step occurs at the joint between the images, and a good panoramic image cannot be obtained. Hereinafter, this reason will be described with a specific example.

図9は、ある建物をカメラの向きを変えながら3回に分けて分割撮像したときの各撮像により得られた画像A,B,Cを示す図である。画像A〜Cを見てわかるように、カメラを回転させながら複数回の撮像を行うと、各撮像の撮像方向が異なるため、画像Aと画像B間、画像Bと画像C間には視差(本明細書では、カメラ−被写体間の距離の変化のことを示す)が生じる。例えば、画像Aの建物の稜線R1は右上がりの直線になっているのに対し、画像Bの稜線R2は水平の直線になっている。また、画像Bの稜線R2に対し、画像Cの稜線R3は右下がりの直線になっている。   FIG. 9 is a diagram showing images A, B, and C obtained by each imaging when a certain building is divided and imaged in three times while changing the direction of the camera. As can be seen from the images A to C, if the imaging is performed a plurality of times while rotating the camera, the imaging direction of each imaging is different, so that the parallax between the images A and B and between the images B and C ( In this specification, the change in the distance between the camera and the subject occurs. For example, the ridgeline R1 of the building in the image A is a straight line rising to the right, while the ridgeline R2 of the image B is a horizontal straight line. Further, the ridge line R3 of the image C is a straight line descending to the right with respect to the ridge line R2 of the image B.

この画像A,B,Cを、特許文献4に記載の方法で重ね合わせた画像を図10に示した。図10では、画像Aと画像Bが重なっている部分(A+B)において、画像Bと重なっていて本来見えないはずの画像Aが見えるように、画像Bに透過処理を施している。また、画像Bと画像Cが重なっている部分(B+C)において、画像Cと重なっていて本来見えないはずの画像Bが見えるように、画像Cに透過処理を施している。   An image obtained by superimposing these images A, B, and C by the method described in Patent Document 4 is shown in FIG. In FIG. 10, the image B is subjected to a transmission process so that the image A that should overlap with the image B and cannot be seen in the portion where the image A and the image B overlap (A + B) can be seen. Further, in the portion (B + C) where the image B and the image C overlap with each other, the image C is subjected to the transmission process so that the image B which is supposed to be invisible due to the overlap with the image C can be seen.

図10に示した破線位置P1は、画像Aと画像Bの視差がゼロになる位置である。また、破線位置P2は、画像Bと画像Cの視差がゼロになる位置である。この位置P1においては、稜線R1と稜線R2の交点が存在し、位置P2においては、稜線R2と稜線R3の交点が存在する。このため、この位置P1までは画像Aを使用し、位置P1から位置P2までは画像Bを使用し、位置P2以降は画像Cを使用すれば、画像AB間と画像BC間で段差の少ない良好なパノラマ画像を得ることができる。   A broken line position P1 illustrated in FIG. 10 is a position where the parallax between the image A and the image B becomes zero. The broken line position P2 is a position where the parallax between the image B and the image C becomes zero. At this position P1, there is an intersection between the ridge line R1 and the ridge line R2, and at the position P2, there is an intersection between the ridge line R2 and the ridge line R3. For this reason, if the image A is used up to the position P1, the image B is used from the position P1 to the position P2, and the image C is used from the position P2 onward, the difference between the images AB and the image BC is good. Panoramic images can be obtained.

しかし、特許文献4に記載の方法では、この位置P1,P2で画像が接合されないため、画像Aと画像Bの境界において、稜線R1と稜線R2に段差ができ、画像Bと画像Cとの境界において、稜線R2と稜線R3に段差ができてしまう。したがって、この方法では、視差のある画像については良好なパノラマ画像を生成することができない。   However, in the method described in Patent Document 4, since the images are not joined at the positions P1 and P2, there is a step between the ridge line R1 and the ridge line R2 at the boundary between the image A and the image B, and the boundary between the image B and the image C. Therefore, a step is formed between the ridgeline R2 and the ridgeline R3. Therefore, with this method, a good panoramic image cannot be generated for an image with parallax.

図11は、特許文献5に記載のパノラマ画像生成方法を説明するための図である。図11では、図9に示した画像A,B,Cを模式的に示している。   FIG. 11 is a diagram for explaining the panoramic image generation method described in Patent Document 5. FIG. 11 schematically shows the images A, B, and C shown in FIG.

この方法では、まず、画像Aの中心から左側の領域A1を画像Aからトリミングする。次に、画像Bの中心から左側に、画像Aと画像B間の移動量aの長さの領域B1を画像Bからトリミングする。次に、画像Cの中心から左側に、画像Bと画像C間の移動量bの長さの領域C1を画像Cからトリミングする。そして、領域A1と領域B1と領域C1をこの順に繋ぎ合わせてパノラマ画像Dを生成する。   In this method, first, a region A1 on the left side from the center of the image A is trimmed from the image A. Next, a region B1 having a length of a movement amount a between the images A and B is trimmed from the image B on the left side from the center of the image B. Next, a region C1 having a length of a movement amount b between the image B and the image C is trimmed from the image C on the left side from the center of the image C. Then, the region A1, the region B1, and the region C1 are connected in this order to generate a panoramic image D.

このような方法でも、図11に示すように、領域B1の中心には、視差がゼロとなる位置P1が存在し、領域C1の中心には、視差がゼロとなる位置P2が存在している。このため、領域A1と領域B1の境界で稜線同士に段差があり、領域B1と領域C1の境界で稜線同士に段差がある画像となってしまう。また、この方法では、例えば移動量bが画像Cの水平方向の1/2よりも大きくなると、領域C1と領域B1との間の情報が欠落してしまう。   Even in such a method, as shown in FIG. 11, the position P1 where the parallax is zero exists at the center of the region B1, and the position P2 where the parallax is zero exists at the center of the region C1. . For this reason, there is a step between the ridgelines at the boundary between the region A1 and the region B1, and an image with a step between the ridgelines at the boundary between the region B1 and the region C1. In this method, for example, when the movement amount b is larger than ½ of the horizontal direction of the image C, information between the region C1 and the region B1 is lost.

図12は、特許文献5に記載の方法で図9に示した画像A,B,Cをパノラマ合成して得た画像を示す図である。図12に示すように、画像同士の境界120,121において、建物の直線部分には段差が生じてしまい、この方法では良好なパノラマ画像を得ることができない。   12 is a diagram showing an image obtained by panoramic synthesis of the images A, B, and C shown in FIG. 9 by the method described in Patent Document 5. In FIG. As shown in FIG. 12, at the boundaries 120 and 121 between the images, a step occurs in the straight portion of the building, and a good panoramic image cannot be obtained by this method.

特開2005−328497号公報JP 2005-328497 A 特開2006−172163号公報JP 2006-172163 A 特開2008−167092号公報JP 2008-167092 A 特開平6−326965号公報JP-A-6-326965 特開平6−284321号公報JP-A-6-284321

本発明は、上記事情に鑑みてなされたものであり、視差のある画像でも違和感のないパノラマ画像を生成することが可能なパノラマ画像生成装置、パノラマ画像生成方法、パノラマ画像生成プログラム、及び撮像装置を提供することを目的とする。   The present invention has been made in view of the above circumstances, and is capable of generating a panoramic image that is comfortable even with parallax images, a panoramic image generating method, a panoramic image generating program, and an imaging device. The purpose is to provide.

本発明のパノラマ画像生成装置は、連続して撮像して得られたn(nは2以上の自然数)個の画像データを取得する画像データ取得部と、時系列で隣り合う(k−1)番目(kは2以上n以下の自然数)の前記画像データとk番目の前記画像データの間の移動ベクトルを算出する移動ベクトル算出部と、前記(k−1)番目の画像データと前記k番目の画像データとの境界位置を、前記移動ベクトルに基づいて前記(k−1)番目の画像データの中心と前記k番目の画像データの中心との中間に設定して、前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第一の処理を行うパノラマ合成部とを備えるものである。   The panoramic image generation apparatus of the present invention is adjacent in time series to an image data acquisition unit that acquires n (n is a natural number of 2 or more) pieces of image data obtained by continuous imaging (k−1). A movement vector calculation unit for calculating a movement vector between the image data of the th (k is a natural number of 2 or more and n or less) and the kth image data, the (k−1) th image data and the kth A boundary position between the center of the (k−1) -th image data and the center of the k-th image data based on the movement vector, A panorama synthesizing unit that performs a first process of panorama synthesizing the k th image data and the k th image data.

本発明の撮像装置は、前記パノラマ画像生成装置と、前記n個の画像データを取得するための固体撮像素子とを備えるものである。   The imaging device of the present invention includes the panoramic image generation device and a solid-state imaging device for acquiring the n pieces of image data.

本発明のパノラマ画像生成方法は、連続して撮像して得られたn(nは2以上の自然数)個の画像データを取得する画像データ取得ステップと、時系列で隣り合う(k−1)番目(kは2以上n以下の自然数)の前記画像データとk番目の前記画像データの間の移動ベクトルを算出する移動ベクトル算出ステップと、前記(k−1)番目の画像データと前記k番目の画像データとの境界位置を、前記移動ベクトルに基づいて前記(k−1)番目の画像データの中心と前記k番目の画像データの中心との中間に設定して、前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第一の処理を行うパノラマ合成ステップとを備えるものである。   The panoramic image generation method of the present invention is adjacent in time series to an image data acquisition step of acquiring n (n is a natural number of 2 or more) image data obtained by continuous imaging (k-1). A movement vector calculating step for calculating a movement vector between the image data (k is a natural number greater than or equal to 2 and less than or equal to n) and the kth image data, the (k−1) th image data and the kth image data A boundary position between the center of the (k−1) -th image data and the center of the k-th image data based on the movement vector, A panorama synthesizing step for performing a first process of panorama synthesizing the k th image data and the k th image data.

本発明のパノラマ画像生成プログラムは、コンピュータに、前記パノラマ画像生成方法を実行させるためのプログラムである。   The panorama image generation program of the present invention is a program for causing a computer to execute the panorama image generation method.

本発明によれば、視差のある画像でも違和感のないパノラマ画像を生成することが可能なパノラマ画像生成装置、パノラマ画像生成方法、パノラマ画像生成プログラム、及び撮像装置を提供することができる。   According to the present invention, it is possible to provide a panorama image generation device, a panorama image generation method, a panorama image generation program, and an imaging device that can generate a panorama image that does not feel strange even with an image with parallax.

本発明の一実施形態を説明するための撮像装置の一例であるデジタルカメラの概略構成を示す図The figure which shows schematic structure of the digital camera which is an example of the imaging device for describing one Embodiment of this invention 図1に示すデジタルカメラのパノラマ撮像モード時の使用方法を説明する図The figure explaining the usage method at the time of the panorama imaging mode of the digital camera shown in FIG. 図1に示すデジタルカメラにおけるパノラマ合成部の処理の具体例を説明するための図The figure for demonstrating the specific example of the process of the panorama synthetic | combination part in the digital camera shown in FIG. 図9に示した画像A,B,Cを、図3で説明した方法でパノラマ合成して得られるパノラマ画像を示した図The figure which showed the panoramic image obtained by carrying out the panorama synthesis | combination of the image A, B, C shown in FIG. 9 by the method demonstrated in FIG. 図1に示したデジタルカメラのパノラマ撮像モード時の動作を説明するためのフローチャートThe flowchart for demonstrating operation | movement at the time of the panorama imaging mode of the digital camera shown in FIG. 図1に示したデジタルカメラの第一の変形例におけるパノラマ撮像モード時の動作を説明するためのフローチャートThe flowchart for demonstrating the operation | movement at the time of the panoramic imaging mode in the 1st modification of the digital camera shown in FIG. 図1に示したデジタルカメラの第二の変形例におけるパノラマ撮像モード時の動作を説明するためのフローチャートThe flowchart for demonstrating the operation | movement at the time of the panorama imaging mode in the 2nd modification of the digital camera shown in FIG. 図1に示したデジタルカメラの第三の変形例におけるパノラマ撮像モード時の動作を説明するためのフローチャートThe flowchart for demonstrating operation | movement at the time of the panoramic imaging mode in the 3rd modification of the digital camera shown in FIG. ある建物をカメラの向きを変えながら3回に分けて分割撮像したときの各撮像により得られた画像A,B,Cを示す図The figure which shows the images A, B, and C obtained by each imaging when a certain building is divided and imaged in three times while changing the direction of the camera 図9に示す画像A,B,Cを、それぞれの画像間の移動量分だけずらして重ね合わせた画像を示す図The figure which shows the image which shifted and overlap | superposed the image A, B, C shown in FIG. 9 by the movement amount between each image. 特許文献5に記載のパノラマ画像生成方法を説明するための図The figure for demonstrating the panorama image generation method of patent document 5 特許文献5に記載の方法で図9に示した画像A,B,Cをパノラマ合成して得た画像を示す図The figure which shows the image obtained by carrying out panorama synthesis | combination of the image A, B, C shown in FIG. 9 by the method of patent document 5

以下、本発明の実施形態について図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の一実施形態を説明するための撮像装置の一例であるデジタルカメラの概略構成を示す図である。   FIG. 1 is a diagram showing a schematic configuration of a digital camera which is an example of an imaging apparatus for explaining an embodiment of the present invention.

図示するデジタルカメラ100の撮像系は、撮影レンズ1と、固体撮像素子5と、この両者の間に設けられた絞り2と、赤外線カットフィルタ3と、光学ローパスフィルタ4とを備える。   The imaging system of the illustrated digital camera 100 includes a photographic lens 1, a solid-state imaging device 5, a diaphragm 2 provided between them, an infrared cut filter 3, and an optical low-pass filter 4.

デジタルカメラ100の電気制御系全体を統括制御するシステム制御部11は、レンズ駆動部8を制御して撮影レンズ1の位置をフォーカス位置に調整したりズーム調整を行ったりし、絞り駆動部9を介し絞り2の開口量を制御して露光量調整を行う。   A system control unit 11 that performs overall control of the entire electric control system of the digital camera 100 controls the lens driving unit 8 to adjust the position of the photographing lens 1 to a focus position or to perform zoom adjustment. Then, the exposure amount is adjusted by controlling the aperture amount of the aperture 2.

また、システム制御部11は、撮像素子駆動部10を介して固体撮像素子5を駆動し、撮影レンズ1を通して撮像した被写体像を撮像信号として出力させる。システム制御部11には、操作部14を通してユーザからの指示信号が入力される。   In addition, the system control unit 11 drives the solid-state imaging device 5 via the imaging device driving unit 10 and outputs a subject image captured through the photographing lens 1 as an imaging signal. An instruction signal from the user is input to the system control unit 11 through the operation unit 14.

デジタルカメラ100の電気制御系は、更に、固体撮像素子5の出力に接続された相関二重サンプリング処理等のアナログ信号処理を行うアナログ信号処理部6と、このアナログ信号処理部6から出力されたRGBの色信号をデジタル信号に変換するA/D変換回路7とを備え、これらはシステム制御部11によって制御される。   The electrical control system of the digital camera 100 further outputs an analog signal processing unit 6 that performs analog signal processing such as correlated double sampling processing connected to the output of the solid-state imaging device 5 and the analog signal processing unit 6. And an A / D conversion circuit 7 for converting RGB color signals into digital signals, which are controlled by the system control unit 11.

更に、このデジタルカメラ100の電気制御系は、メインメモリ16と、メインメモリ16に接続されたメモリ制御部15と、撮像信号に対し、補間演算やガンマ補正演算,RGB/YC変換処理等を行って画像データを生成するデジタル信号処理部17と、デジタル信号処理部17で生成された画像データをJPEG形式に圧縮したり圧縮画像データを伸張したりする圧縮伸張処理部18と、時系列で連続して撮像して得られたn個(nは2以上の自然数)の画像データを合成してパノラマ画像データを生成するパノラマ合成部19と、着脱自在の記録媒体21が接続される外部メモリ制御部20と、カメラ背面等に搭載された液晶表示部23が接続される表示制御部22とを備える。   Furthermore, the electric control system of the digital camera 100 performs interpolation calculation, gamma correction calculation, RGB / YC conversion processing, and the like on the main memory 16, the memory control unit 15 connected to the main memory 16, and the imaging signal. A digital signal processing unit 17 for generating image data, a compression / decompression processing unit 18 for compressing the image data generated by the digital signal processing unit 17 into a JPEG format or decompressing the compressed image data, and time series. The external memory control to which the panorama synthesis unit 19 that generates panorama image data by synthesizing n (n is a natural number of 2 or more) image data obtained by imaging and the removable recording medium 21 is connected Unit 20 and a display control unit 22 to which a liquid crystal display unit 23 mounted on the back of the camera or the like is connected.

メモリ制御部15、デジタル信号処理部17、圧縮伸張処理部18、パノラマ合成部19、外部メモリ制御部20、及び表示制御部22は、制御バス24及びデータバス25によって相互に接続され、システム制御部11からの指令によって制御される。   The memory control unit 15, digital signal processing unit 17, compression / decompression processing unit 18, panorama synthesis unit 19, external memory control unit 20, and display control unit 22 are mutually connected by a control bus 24 and a data bus 25, and system control is performed. It is controlled by a command from the unit 11.

このデジタルカメラ100は、デジタルカメラ100本体をユーザが図2に示すように回転させながら向きを変えて複数回の撮像を連続して行い、各撮像により得られた画像データからパノラマ画像データを生成して記録媒体21に記録するパノラマ撮像モードを有するものとなっている。   In this digital camera 100, the user rotates the digital camera 100 main body as shown in FIG. 2 to change the orientation and continuously perform imaging a plurality of times, and generate panoramic image data from the image data obtained by each imaging. Thus, a panoramic imaging mode for recording on the recording medium 21 is provided.

以下では、パノラマ合成部19の処理内容について詳述する。なお、各撮像によりデジタル信号処理部17で生成された画像データはメインメモリ16に一時記憶されるものとする。   Below, the processing content of the panorama composition part 19 is explained in full detail. It is assumed that image data generated by the digital signal processing unit 17 by each imaging is temporarily stored in the main memory 16.

パノラマ合成部19は、連続して撮像して得られたn個の画像データをメインメモリ16から取得する機能と、取得した画像データの中から時系列で隣り合う(k−1)番目(kは2以上n以下の自然数)の画像データとk番目の画像データの間の移動ベクトルを算出する機能と、(k−1)番目の画像データとk番目の画像データとの境界位置を、算出した移動ベクトルに基づいて(k−1)番目の画像データの中心とk番目の画像データの中心との中間に設定して、(k−1)番目の画像データとk番目の画像データをパノラマ合成する処理を行う機能とを有する。   The panorama synthesizing unit 19 acquires the n pieces of image data obtained by continuously capturing images from the main memory 16 and the (k−1) th (k) adjacent in time series from the acquired image data. Is a natural number between 2 and n) and the k-th image data, and the boundary position between the (k-1) -th image data and the k-th image data. Based on the moved vector, the center of the (k−1) th image data and the center of the kth image data is set, and the (k−1) th image data and the kth image data are panorama. And a function of performing a process of combining.

これらの機能は、図示しないROMに記憶されたパノラマ画像生成プログラムをシステム制御部11が実行することにより実現される。   These functions are realized by the system control unit 11 executing a panoramic image generation program stored in a ROM (not shown).

移動ベクトルは、例えば、(k−1)番目の画像データとk番目の画像データとから同一の特徴点を抽出し、これらを結ぶベクトルを求めることで算出することができる。以下、パノラマ合成部19の処理内容を、具体例を挙げて説明する。   The movement vector can be calculated, for example, by extracting the same feature point from the (k−1) th image data and the kth image data and obtaining a vector connecting them. Hereinafter, the processing content of the panorama composition unit 19 will be described with a specific example.

図3は、図1に示すデジタルカメラにおけるパノラマ合成部の処理の具体例を説明するための図である。図3では、n=3とし、1番目の画像データを画像データA、2番目の画像データを画像データB、3番目の画像データを画像データCとしている。また、図3の例では、デジタルカメラ100を水平方向に回転させながら撮像を行ったものとして説明する。   FIG. 3 is a diagram for explaining a specific example of processing of the panorama synthesizing unit in the digital camera shown in FIG. In FIG. 3, n = 3, the first image data is image data A, the second image data is image data B, and the third image data is image data C. In the example of FIG. 3, description will be made assuming that imaging is performed while the digital camera 100 is rotated in the horizontal direction.

まず、パノラマ合成部19は、画像データA,B,Cをメインメモリ16から取得する。次に、パノラマ合成部19は、画像データAと画像データBの間の移動ベクトルU1、画像データBと画像データCの間の移動ベクトルU2をそれぞれ算出する。   First, the panorama composition unit 19 acquires the image data A, B, and C from the main memory 16. Next, the panorama composition unit 19 calculates a movement vector U1 between the image data A and the image data B and a movement vector U2 between the image data B and the image data C, respectively.

移動ベクトルは、向きと移動量を含む情報のことを言う。画像データは水平だけでなく垂直にも動く可能性があるため、移動ベクトルには、水平成分(デジタルカメラの鉛直方向に直交する方向の成分)と水平成分に直交する垂直成分が含まれる。   The movement vector refers to information including the direction and the amount of movement. Since the image data may move not only horizontally but also vertically, the movement vector includes a horizontal component (component in a direction orthogonal to the vertical direction of the digital camera) and a vertical component orthogonal to the horizontal component.

本明細書において、移動ベクトルとは、上記水平成分のことを意味するものとする。移動ベクトルU1は、その方向が右方向であり、その移動量がaであるものとする。また、移動ベクトルU2は、その方向が右方向であり、その移動量がbであるものとする。   In this specification, the movement vector means the horizontal component. It is assumed that the direction of the movement vector U1 is the right direction and the movement amount is a. Further, it is assumed that the movement vector U2 has a right direction and a movement amount b.

次に、パノラマ合成部19は、画像データAの中心点を通る直線であって、移動ベクトルU1の方向(右方向)に垂直な方向の直線(中心線)を画像データAに設定し、この中心線から移動ベクトルU1の方向に向かってa/2の距離に、画像データBとの境界位置を設定する(図中の破線で示す位置)。   Next, the panorama composition unit 19 sets a straight line (center line) passing through the center point of the image data A and perpendicular to the direction of the movement vector U1 (right direction) to the image data A. A boundary position with the image data B is set at a distance of a / 2 from the center line toward the movement vector U1 (position indicated by a broken line in the figure).

また、パノラマ合成部19は、画像データBの中心点を通る直線であって、移動ベクトルU1の方向に垂直な方向の直線(中心線)を画像データBに設定し、この中心線から移動ベクトルU1の方向とは逆方向に向かってa/2の距離に、画像データAとの境界位置を設定する(図中の破線で示す位置)。   Further, the panorama composition unit 19 sets a straight line (center line) passing through the center point of the image data B and perpendicular to the direction of the movement vector U1 to the image data B, and the movement vector from the center line is set. A boundary position with the image data A is set at a distance a / 2 in the direction opposite to the direction U1 (position indicated by a broken line in the figure).

次に、パノラマ合成部19は、画像データBに設定した境界位置よりも移動ベクトルU1の方向にある領域B1を画像データBからトリミングする。そして、画像データAに設定した境界位置よりも移動ベクトルU1の方向にある画像データAの領域A2に、領域B1を重ね合わせて画像データAと画像データBのパノラマ合成を完了する。   Next, the panorama composition unit 19 trims, from the image data B, a region B1 that is in the direction of the movement vector U1 from the boundary position set in the image data B. Then, the region B1 is superimposed on the region A2 of the image data A that is in the direction of the movement vector U1 from the boundary position set in the image data A, and the panorama composition of the image data A and the image data B is completed.

なお、領域A2のデータは、領域B1のデータによって上書きする。   The data in area A2 is overwritten with the data in area B1.

次に、パノラマ合成部19は、画像データBの中心線から移動ベクトルU2の方向(右方向)に向かってb/2の距離に、画像データCとの境界位置を設定する(図中の一点鎖線で示す位置)。   Next, the panorama composition unit 19 sets a boundary position with the image data C at a distance of b / 2 from the center line of the image data B in the direction of the movement vector U2 (right direction) (one point in the figure). Position indicated by a chain line).

また、パノラマ合成部19は、画像データCの中心点を通る直線であって、移動ベクトルU2の方向に垂直な方向の直線(中心線)を画像データCに設定し、この中心線から移動ベクトルU2の方向とは逆方向に向かってb/2の距離に、画像データBとの境界位置を設定する(図中の一点鎖線で示す位置)。   Further, the panorama composition unit 19 sets a straight line (center line) that passes through the center point of the image data C and is perpendicular to the direction of the movement vector U2 to the image data C, and the movement vector from the center line. A boundary position with the image data B is set at a distance of b / 2 in the direction opposite to the direction U2 (position indicated by a one-dot chain line in the figure).

次に、パノラマ合成部19は、画像データCに設定した境界位置よりも移動ベクトルU2の方向にある領域C1を画像データCからトリミングする。   Next, the panorama composition unit 19 trims, from the image data C, a region C1 that is in the direction of the movement vector U2 from the boundary position set in the image data C.

そして、領域B1に設定した境界位置よりも移動ベクトルU2の方向にある画像データBの領域B2に、領域C1を重ね合わせて画像データBと画像データCのパノラマ合成を完了する。   Then, the region C1 is overlaid on the region B2 of the image data B in the direction of the movement vector U2 from the boundary position set in the region B1, and the panorama synthesis of the image data B and the image data C is completed.

なお、領域B2のデータは、領域C1のデータによって上書きする。   The data in area B2 is overwritten with the data in area C1.

以上の処理により、パノラマ画像データDを得る。   Through the above processing, panoramic image data D is obtained.

なお、移動ベクトルに含まれる移動量に誤差があると、パノラマ画像データDにおいて、領域A1と領域B1の境界、領域B1と領域C1の境界のそれぞれにおいて、色差や位置ずれが発生する場合もある。このため、パノラマ合成部19では、この境界位置における画質を調整する画質調整機能を有していることが好ましい。   If there is an error in the amount of movement included in the movement vector, in the panoramic image data D, there may be a color difference or a positional shift at each of the boundary between the area A1 and the area B1 and the boundary between the area B1 and the area C1. . For this reason, it is preferable that the panorama composition unit 19 has an image quality adjustment function for adjusting the image quality at the boundary position.

画質調整処理は、(k−1)番目の画像データとk番目の画像データの境界位置からそれぞれ所定画素分の範囲30,31に対して行う。   The image quality adjustment processing is performed on the ranges 30 and 31 corresponding to predetermined pixels from the boundary position between the (k−1) th image data and the kth image data.

画質調整処理としては、領域30,31内の色差がそれぞれ均一になるように補正する色補正処理、領域30,領域31の高周波成分を高周波カットフィルタによりカットして画像をぼかすぼかし処理等が例として挙げられる。これらの処理は単独で実施してもよいし、併せて実施してもよい。   Examples of image quality adjustment processing include color correction processing for correcting the color differences in the regions 30 and 31 to be uniform, and blur processing for cutting the high-frequency components in the regions 30 and 31 with a high-frequency cut filter to blur the image. As mentioned. These treatments may be performed alone or in combination.

また、図3の説明では、画像データAについてはトリミングしないものとしたが、画像データAから領域A1をトリミングし、この領域A1と領域B1とを双方に設定されている境界位置で接合する処理を行うことで、画像データAと画像データBのパノラマ合成を行ってもよい。   In the description of FIG. 3, the image data A is not trimmed. However, the process of trimming the area A1 from the image data A and joining the area A1 and the area B1 at the boundary position set in both. , Panoramic synthesis of the image data A and the image data B may be performed.

また、領域B1から領域B2を除く領域をトリミングし、この領域の右端と領域C1の左端とを接合して、画像データBと画像データCのパノラマ合成を行ってもよい。   Alternatively, the region excluding the region B2 from the region B1 may be trimmed, and the right end of this region and the left end of the region C1 may be joined to perform panoramic synthesis of the image data B and the image data C.

また、図3の説明では、画像データBから領域B1をトリミングするものとしたが、画像データBをトリミングせずに、画像データBから領域B1の各画素のアドレスを決定し、決定した各画素のデータを、領域A1の右端に配置することを指定したデータを生成することで画像データAと画像データBのパノラマ合成を行ってもよい。   In the description of FIG. 3, the region B1 is trimmed from the image data B. However, without trimming the image data B, the address of each pixel in the region B1 is determined from the image data B, and each determined pixel is determined. The panorama composition of the image data A and the image data B may be performed by generating data designating that the data is arranged at the right end of the area A1.

同様に、画像データCをトリミングせずに、画像データCから領域C1の各画素のアドレスを決定し、決定した各画素のデータを、領域B2の右端から配置することを指定したデータを生成することで画像データBと画像データCのパノラマ合成を行ってもよい。   Similarly, without trimming the image data C, the address of each pixel in the area C1 is determined from the image data C, and data specifying that the determined pixel data is to be arranged from the right end of the area B2 is generated. Thus, panoramic synthesis of the image data B and the image data C may be performed.

また、以上の説明では、画像データAと画像データBのパノラマ合成が終了してから、画像データBと画像データCのパノラマ合成を行うものとしたが、領域A1、領域B1、領域B2、領域C1を全て決めてから、領域A1、領域B1、領域C1を纏めて合成してもよい。また、移動ベクトルU2の算出は、画像データAと画像データBのパノラマ合成が終了してから行ってもよい。   In the above description, the panorama composition of the image data B and the image data C is performed after the panorama composition of the image data A and the image data B is finished. However, the area A1, the area B1, the area B2, and the area After determining all of C1, region A1, region B1, and region C1 may be combined together. The movement vector U2 may be calculated after the panoramic synthesis of the image data A and the image data B is completed.

図3の画像データA,Bに設定した境界位置(破線)と、画像データB,Cに設定した境界位置(一点鎖線)とは、それぞれ、画像データA,B間の視差が最も小さくなる位置、画像データB,C間の視差が最も小さくなる位置に相当する。   The boundary position (dashed line) set for the image data A and B in FIG. 3 and the boundary position (dashed line) set for the image data B and C are positions where the parallax between the image data A and B is the smallest, respectively. This corresponds to the position where the parallax between the image data B and C is the smallest.

つまり、パノラマ合成部19は、(k−1)番目の画像データとk番目の画像データ間の視差が最も小さくなる位置を境界位置として、(k−1)番目の画像データとk番目の画像データをパノラマ合成するものとなっている。このため、パノラマ画像データDにおいて、視差が最も小さくなる位置で画像が切り替わることになり、境界位置での段差の発生を防ぐことができる。   That is, the panorama composition unit 19 uses the position where the parallax between the (k−1) th image data and the kth image data is the smallest as the boundary position, and the (k−1) th image data and the kth image. The data is panorama synthesized. For this reason, in the panorama image data D, the images are switched at a position where the parallax is the smallest, and the occurrence of a step at the boundary position can be prevented.

図4は、図9に示した画像A,B,Cを、図3で説明した方法でパノラマ合成して得られるパノラマ画像を示した図である。図4と図12を比較してわかるように、図4では、画像同士の境界120,121での段差がなく、良好なパノラマ画像を得ることができる。   4 is a view showing a panoramic image obtained by performing panoramic synthesis on the images A, B, and C shown in FIG. 9 by the method described with reference to FIG. As can be seen by comparing FIG. 4 and FIG. 12, in FIG. 4, there is no step at the boundaries 120 and 121 between images, and a good panoramic image can be obtained.

次に、図1に示したデジタルカメラ100のパノラマ撮像モード時の動作について説明する。   Next, the operation of the digital camera 100 shown in FIG. 1 in the panoramic imaging mode will be described.

図5は、図1に示したデジタルカメラのパノラマ撮像モード時の動作を説明するためのフローチャートである。   FIG. 5 is a flowchart for explaining the operation of the digital camera shown in FIG. 1 in the panoramic imaging mode.

まず、ユーザは、パノラマ撮像モードを設定した後、例えば操作部14に含まれるシャッタボタンを押下して撮像開始指示を行う。そして、この状態のままデジタルカメラを所定位置まで回転させ、当該所定位置でシャッタボタンから指を離して撮像終了指示を行う。   First, after setting the panorama imaging mode, the user presses a shutter button included in the operation unit 14, for example, and issues an imaging start instruction. Then, in this state, the digital camera is rotated to a predetermined position, and the finger is released from the shutter button at the predetermined position to give an instruction to end imaging.

このような操作により、撮像開始指示の時点から撮像終了指示の時点までの間、固体撮像素子5により連続撮像又は動画撮像が行われる(ステップS51)。この連続撮像又は動画撮像によって得られる複数の画像データはメインメモリ16に順次記憶される。   By such an operation, continuous imaging or moving image imaging is performed by the solid-state imaging device 5 from the time point of the imaging start instruction to the time point of the imaging end instruction (step S51). A plurality of image data obtained by this continuous imaging or moving image imaging is sequentially stored in the main memory 16.

次に、パノラマ合成部19が、メインメモリ16に記憶されている各画像データ間の移動ベクトルを算出する(ステップS52)。   Next, the panorama synthesis unit 19 calculates a movement vector between the image data stored in the main memory 16 (step S52).

次に、パノラマ合成部19が、算出した移動ベクトルに基づいて、メインメモリ16に記憶されている各画像データに対し、境界位置を決定する(ステップS53)。   Next, the panorama synthesizing unit 19 determines a boundary position for each image data stored in the main memory 16 based on the calculated movement vector (step S53).

次に、パノラマ合成部19は、決定した境界位置にしたがって、メインメモリ16に記憶されている各画像データをパノラマ合成する(ステップS54)。   Next, the panorama synthesizing unit 19 panorama synthesizes each image data stored in the main memory 16 according to the determined boundary position (step S54).

次に、パノラマ撮像モードの終了指示があった場合は処理を終了し、指示がない場合はステップS51の前に処理を戻して、撮像待機状態となる。   Next, if there is an instruction to end the panoramic imaging mode, the process ends. If there is no instruction, the process returns to step S51 to enter an imaging standby state.

以上のように、デジタルカメラ100によれば、視差のある画像同士であっても、段差のない良好なパノラマ画像データを生成することができる。   As described above, according to the digital camera 100, it is possible to generate good panoramic image data without a step even between images having parallax.

図2に示すような方法で複数回の撮像を行うとき、デジタルカメラ100と被写体との距離は各撮像毎に変化する。それほど遠くない位置にある被写体を撮像する場合には、複数の撮像におけるデジタルカメラ100と被写体との距離の変化が特に大きくなる。このため、上述してきたパノラマ画像データの生成方法は、図2に示すような方法でパノラマ撮像を行うときに特に有効なものとなる。   When imaging is performed a plurality of times by the method shown in FIG. 2, the distance between the digital camera 100 and the subject changes for each imaging. When imaging a subject that is not so far away, the change in the distance between the digital camera 100 and the subject in a plurality of imaging is particularly large. Therefore, the panoramic image data generation method described above is particularly effective when panoramic imaging is performed by the method shown in FIG.

なお、パノラマ合成部19が行う処理は、パノラマ画像生成プログラムをインストールしたコンピュータによっても行うことができる。   The processing performed by the panorama composition unit 19 can also be performed by a computer in which a panorama image generation program is installed.

次に、デジタルカメラ100の変形例について説明する。   Next, a modified example of the digital camera 100 will be described.

(第一の変形例)
この変形例では、図1に示したデジタルカメラ100におけるパノラマ合成部19が、パノラマ合成処理として、図3で説明した処理を行う高精度モードの他に、移動ベクトルを用いずにパノラマ合成を行う高速モードを実施する。そして、パノラマ合成部19が、この高精度モードと高速モードとのいずれかをマニュアル操作にしたがって設定するものとしている。
(First modification)
In this modification, the panorama synthesizing unit 19 in the digital camera 100 shown in FIG. 1 performs panorama synthesis without using a movement vector in addition to the high-accuracy mode in which the processing described in FIG. 3 is performed as panorama synthesis processing. Implement high-speed mode. The panorama synthesizing unit 19 sets either the high accuracy mode or the high speed mode according to a manual operation.

移動ベクトルを用いずにパノラマ合成を行う方法としては、時系列で隣り合う2つの画像データ同士の重ね合わせ位置(2つの画像データの境界位置)を固定にして画像データを重ねていく方法がある。この方法によれば、移動ベクトルの算出が不要となり、処理速度を高速化することができる。   As a method of performing panoramic synthesis without using a movement vector, there is a method of superimposing image data by fixing the overlapping position of two adjacent image data in time series (the boundary position of two image data). . According to this method, it is not necessary to calculate a movement vector, and the processing speed can be increased.

すなわち、(k−1)番目の画像データとk番目の画像データをパノラマ合成するときには、これらの2つの画像データ間の移動ベクトルが一定値であるとして合成処理を行う。   That is, when panoramic synthesizing the (k-1) th image data and the kth image data, the synthesizing process is performed assuming that the movement vector between these two image data is a constant value.

例えば、(k−1)番目の画像データの中心線を境界位置とし、k番目の画像データの当該移動ベクトルの方向の逆方向の端部を境界位置として、これら境界位置同士が一致するように(k−1)番目の画像データにk番目の画像データを重ね合わせることで、パノラマ合成を行う。   For example, with the center line of the (k−1) th image data as the boundary position and the end of the kth image data in the direction opposite to the direction of the movement vector as the boundary position, these boundary positions are matched. Panorama composition is performed by superimposing the k-th image data on the (k-1) -th image data.

なお、(k−1)番目の画像データとk番目の画像データの移動ベクトルの方向の情報は、例えば、デジタルカメラにジャイロセンサを設けておき、このセンサから情報を取得すればよい。または、パノラマ撮像モード時にデジタルカメラの回転方向をユーザによって指定させておき、この指定された方向の情報をパノラマ合成部19が取得すればよい。   Note that the information on the direction of the movement vector of the (k-1) -th image data and the k-th image data may be obtained by providing a gyro sensor in a digital camera, for example. Alternatively, the rotation direction of the digital camera may be designated by the user in the panorama imaging mode, and the panorama composition unit 19 may acquire information on the designated direction.

図6は、図1に示したデジタルカメラの第一の変形例におけるパノラマ撮像モード時の動作を説明するためのフローチャートである。図6において図5と同じ処理には同一符号を付してある。   FIG. 6 is a flowchart for explaining the operation in the panoramic imaging mode in the first modification of the digital camera shown in FIG. In FIG. 6, the same processes as those in FIG.

ユーザは、パノラマ撮像モードを設定した後、例えば操作部14に含まれるシャッタボタンを押下して撮像開始指示を行う。そして、この状態のままデジタルカメラを所定位置まで回転させ、当該所定位置でシャッタボタンから指を離して撮像終了指示を行う。   After setting the panoramic imaging mode, the user presses a shutter button included in the operation unit 14, for example, and issues an imaging start instruction. Then, in this state, the digital camera is rotated to a predetermined position, and the finger is released from the shutter button at the predetermined position to give an instruction to end imaging.

このような操作により、撮像開始指示の時点から撮像終了指示の時点までの間、固体撮像素子5により連続撮像又は動画撮像が行われる(ステップS61)。この連続撮像又は動画撮像によって得られる複数の画像データはメインメモリ16に順次記憶される。   By such an operation, continuous imaging or moving image imaging is performed by the solid-state imaging device 5 from the time point of the imaging start instruction to the time point of the imaging end instruction (step S61). A plurality of image data obtained by this continuous imaging or moving image imaging is sequentially stored in the main memory 16.

次に、パノラマ合成部19は、設定されているモードを判定し、高精度モードが設定されていた場合(ステップS62:高精度モード)は、ステップS53以降の処理、即ち高精度モードでパノラマ合成を実施する。   Next, the panorama composition unit 19 determines the set mode, and when the high accuracy mode is set (step S62: high accuracy mode), the panorama composition is performed in the processing after step S53, that is, the high accuracy mode. To implement.

一方、高速モードが設定されていた場合(ステップS62:高速モード)、パノラマ合成部19は、移動ベクトルの算出を省略し、メインメモリ16に記憶されている各画像データの境界位置を固定値に設定する(ステップS63)。ステップS63の後、パノラマ合成部19は、決定した境界位置にしたがって、各画像データをパノラマ合成する(ステップS54)。   On the other hand, when the high-speed mode is set (step S62: high-speed mode), the panorama composition unit 19 omits the calculation of the movement vector and sets the boundary position of each image data stored in the main memory 16 to a fixed value. Set (step S63). After step S63, the panorama composition unit 19 performs panorama composition of each image data according to the determined boundary position (step S54).

以上のように、図1に示すデジタルカメラの第一の変形例によれば、山や森等のデジタルカメラを移動させる方向に直線成分の少ないシーンにおいては、処理速度を優先して高速モードでパノラマ合成し、建物等のデジタルカメラを移動させる方向に直線成分の多いシーンにおいては、画質を優先して高精度モードでパノラマ合成することができる。   As described above, according to the first modification of the digital camera shown in FIG. 1, in a scene with few linear components in the direction in which the digital camera is moved, such as mountains and forests, the processing speed is given priority in the high-speed mode. Panorama scenes can be combined in a high-accuracy mode with priority on image quality in scenes with many linear components in the direction of moving a digital camera such as a building.

高速モードでは、演算量の削減、処理速度の向上が可能となる。このため、常に高精度モードでパノラマ合成を行うデジタルカメラと比較して、消費電力の低減、高速なパノラマ画像生成処理が可能となる。   In the high-speed mode, the amount of calculation can be reduced and the processing speed can be improved. For this reason, compared with a digital camera that always performs panorama composition in the high-accuracy mode, it is possible to reduce power consumption and perform high-speed panoramic image generation processing.

なお、図6のステップS52の処理は、ステップS62とステップS61の間に行ってもよい。この場合は、ステップS62で高精度モードと判定したときには、この算出した移動ベクトルを使ってステップS53の処理を実施すればよい。また、ステップS62で高速モードと判定したときには、ステップS63の処理を実施すればよい。この場合でも、高速モードにおいては、移動ベクトルを用いて境界位置を決める演算を省略できるため、演算量の削減、処理速度の向上といった効果を得ることができる。   Note that the process of step S52 of FIG. 6 may be performed between step S62 and step S61. In this case, when it is determined in step S62 that the high-accuracy mode is selected, the processing in step S53 may be performed using the calculated movement vector. If it is determined in step S62 that the high-speed mode is selected, the process in step S63 may be performed. Even in this case, in the high-speed mode, since the calculation for determining the boundary position using the movement vector can be omitted, it is possible to obtain the effects of reducing the calculation amount and improving the processing speed.

(第二の変形例)
この変形例では、図1に示したデジタルカメラにおけるパノラマ合成部19が、パノラマ合成処理として、第一の変形例と同様に、高精度モードの他に高速モードを実施するものとなっており、この高精度モードと高速モードとを被写体に応じて自動で切り替えるものとしている。
(Second modification)
In this modification, the panorama composition unit 19 in the digital camera shown in FIG. 1 performs the high-speed mode in addition to the high-accuracy mode, as in the first modification, as the panorama composition processing. The high-accuracy mode and the high-speed mode are automatically switched according to the subject.

以上の説明では、図2に示す方法でパノラマ撮像を行うことを前提とした。しかし、図2に示す方法であっても、遠くの山等の被写体を撮像する場合には、デジタルカメラ100と被写体との距離の変化はそれほど大きくならず、画像データ間の視差は少ない。したがって、このような場合には、高速モードでパノラマ合成処理を行っても、良好なパノラマ画像データを生成することができる。   In the above description, it is assumed that panoramic imaging is performed by the method shown in FIG. However, even in the method shown in FIG. 2, when imaging a subject such as a distant mountain, the change in the distance between the digital camera 100 and the subject is not so large, and the parallax between image data is small. Therefore, in such a case, good panorama image data can be generated even if the panorama synthesis process is performed in the high-speed mode.

また、パノラマ撮像の方法としては、デジタルカメラ100を回転させずに、被写体に対して並行移動させて複数回の撮像を行う方法もある。この方法によれば、各撮像時におけるデジタルカメラと被写体の距離は変化せず、画像データ間の視差は発生しない。したがって、このような場合には、高速モードでパノラマ合成処理を行っても、良好なパノラマ画像データを生成することができる。   Further, as a panoramic imaging method, there is a method of performing imaging a plurality of times by moving the digital camera 100 in parallel without rotating the digital camera 100. According to this method, the distance between the digital camera and the subject at the time of each imaging does not change, and no parallax occurs between the image data. Therefore, in such a case, good panorama image data can be generated even if the panorama synthesis process is performed in the high-speed mode.

この変形例では、パノラマ合成部19が、パノラマ合成処理対象となる各画像データ間に一定以上の視差が発生しているか否かを判定し、一定以上の視差が発生していた場合には、高精度モードでパノラマ合成処理を行い、一定以上の視差が発生していなかった場合には、高速モードでパノラマ合成処理を行う。   In this modification, the panorama synthesizing unit 19 determines whether or not a certain amount of parallax has occurred between the respective image data to be subjected to the panorama synthesizing process. The panorama synthesis process is performed in the high-accuracy mode, and the panorama synthesis process is performed in the high-speed mode when a certain amount of parallax has not occurred.

合成処理対象となる画像データ間に一定以上の視差が発生しているか否かの判定は次のようにして行う。まず、デジタルカメラ100に、被写体までの距離を測定する測距センサを設けておく。測距センサは、例えばバス25に接続しておく。   The determination as to whether or not a certain amount of parallax occurs between the image data to be combined is performed as follows. First, the digital camera 100 is provided with a distance measuring sensor that measures the distance to the subject. The distance measuring sensor is connected to the bus 25, for example.

そして、パノラマ合成処理対象となる各画像データを得るための撮像が行われる毎に、システム制御部11が、この測距センサで測定された距離情報を取得し、その撮像で得られた画像データに、その距離情報を対応付けてメインメモリ16に記憶する。   Each time imaging for obtaining each image data to be panorama synthesis processing is performed, the system control unit 11 acquires distance information measured by the distance measuring sensor, and the image data obtained by the imaging is acquired. And the distance information is stored in the main memory 16 in association with each other.

パノラマ合成部19は、メインメモリ16の各画像データに対応する距離情報を読み出し、時系列で隣り合う2つの画像データの各々に対応する距離情報の差分の絶対値を求める。そして、この距離情報の差分の絶対値が閾値を越える画像データの組があった場合には、一定以上の視差が発生していると判定する。一方、距離情報の差分の絶対値が閾値を越える画像データの組がなかった場合には、一定以上の視差が発生していないと判定する。   The panorama composition unit 19 reads the distance information corresponding to each image data in the main memory 16 and obtains the absolute value of the difference between the distance information corresponding to each of two adjacent image data in time series. If there is a set of image data in which the absolute value of the difference between the distance information exceeds the threshold value, it is determined that a certain amount of parallax has occurred. On the other hand, when there is no set of image data in which the absolute value of the distance information difference exceeds the threshold value, it is determined that a certain amount of parallax has not occurred.

なお、被写体までの距離の情報は、画像データを得るための撮像が行われたときの合焦位置の情報によって取得してもよい。   Note that the information on the distance to the subject may be acquired based on the information on the in-focus position when imaging for obtaining image data is performed.

図7は、図1に示したデジタルカメラの第二の変形例におけるパノラマ撮像モード時の動作を説明するためのフローチャートである。図7において図6と同じ処理には同一符号を付してある。   FIG. 7 is a flowchart for explaining the operation in the panoramic imaging mode in the second modification of the digital camera shown in FIG. In FIG. 7, the same processes as those in FIG. 6 are denoted by the same reference numerals.

ステップS61で撮像が行われると、システム制御部11は測距センサで測定された距離情報を、その撮像で得られた画像データと対応付けてメモリ16に記憶する。(ステップS71)。   When imaging is performed in step S61, the system control unit 11 stores the distance information measured by the distance measuring sensor in the memory 16 in association with the image data obtained by the imaging. (Step S71).

次に、パノラマ合成部19は、上記距離情報から、パノラマ合成処理対象となる各画像データ間に一定以上の視差が発生しているか否かを判定する(ステップS72)。   Next, the panorama composition unit 19 determines from the distance information whether or not a certain amount of parallax has occurred between the image data to be subjected to the panorama composition processing (step S72).

一定以上の視差が発生していた場合は(ステップS72:YES)、高精度モードでパノラマ合成を行う。即ち、ステップS52以降の処理を行う。   If a certain amount of parallax has occurred (step S72: YES), panorama composition is performed in the high accuracy mode. That is, the process after step S52 is performed.

一方、一定以上の視差が発生してしない場合は(ステップS72:NO)、高速モードでパノラマ合成を行う。即ち、ステップS63以降の処理を行う。   On the other hand, when the parallax exceeding a certain level does not occur (step S72: NO), panorama composition is performed in the high speed mode. That is, the process after step S63 is performed.

以上のように、図1に示すデジタルカメラの第二の変形例によれば、高速モードと高精度モードのどちらが最適かをカメラが自動で判断して切り替えることができる。このため、特別な操作なく、消費電力、処理速度、及び画質の最適化を図ることができる。   As described above, according to the second modification of the digital camera shown in FIG. 1, the camera can automatically determine and switch between the high-speed mode and the high-accuracy mode. Therefore, power consumption, processing speed, and image quality can be optimized without any special operation.

なお、図7のステップS52の処理は、ステップS71とステップS72の間に行ってもよい。この場合は、ステップS72で視差ありと判定したときには、この算出した移動ベクトルを使ってステップS53の処理を実施すればよい。また、ステップS72で視差なしと判定したときには、ステップS63の処理を実施すればよい。この場合でも、ステップS63においては、移動ベクトルを用いて境界位置を決める演算を省略できるため、演算量の削減、処理速度の向上といった効果を得ることができる。   In addition, you may perform the process of FIG.7 S52 between step S71 and step S72. In this case, when it is determined in step S72 that there is parallax, the process of step S53 may be performed using the calculated movement vector. If it is determined in step S72 that there is no parallax, the process of step S63 may be performed. Even in this case, in step S63, since the calculation for determining the boundary position using the movement vector can be omitted, it is possible to obtain the effects of reducing the calculation amount and improving the processing speed.

(第三の変形例)
この変形例では、図1に示したデジタルカメラにおけるパノラマ合成部19が、パノラマ合成処理として、第一の変形例と同様に、高精度モードの他に高速モードを実施するものとなっており、この高精度モードと高速モードとをデジタルカメラの1フレームあたりの回転角度に応じて自動で切り替えるものとしている。
(Third modification)
In this modification, the panorama composition unit 19 in the digital camera shown in FIG. 1 performs the high-speed mode in addition to the high-accuracy mode, as in the first modification, as the panorama composition processing. The high accuracy mode and the high speed mode are automatically switched according to the rotation angle per frame of the digital camera.

また、このデジタルカメラでは、図1に示した構成にジャイロセンサ等のデジタルカメラの回転角度を検出するセンサを設けたものとなっている。   Further, in this digital camera, a sensor for detecting a rotation angle of the digital camera such as a gyro sensor is provided in the configuration shown in FIG.

この変形例では、パノラマ撮像モードにおいて複数回の撮像が行われると、パノラマ合成部19が、当該複数回の撮像を開始した時点からそれを終了した時点までのデジタルカメラの回転角度を、ジャイロセンサから取得する。また、パノラマ合成部19は、当該複数の撮像を行ったときの固体撮像素子5のフレームレート(1秒あたりのフレーム数)をシステム制御部11から取得する。ここで言うフレームレートとは、パノラマ合成に使用する画像データを得たフレームが1秒あたりにいくつ含まれるかを示す情報である。   In this modified example, when a plurality of times of imaging is performed in the panorama imaging mode, the panorama composition unit 19 determines the rotation angle of the digital camera from the time when the imaging is started to the time when the imaging is ended, to the gyro sensor. Get from. Further, the panorama composition unit 19 acquires from the system control unit 11 the frame rate (the number of frames per second) of the solid-state imaging device 5 when the plurality of images are taken. The frame rate referred to here is information indicating how many frames from which image data used for panorama composition is obtained are included per second.

パノラマ合成部19は、上記取得した回転角度とフレームレートから、パノラマ撮像時の単位フレーム(例えば1フレーム)あたりの回転角度を算出し、算出した値と閾値とを比較する。   The panorama synthesizing unit 19 calculates a rotation angle per unit frame (for example, one frame) at the time of panoramic imaging from the acquired rotation angle and frame rate, and compares the calculated value with a threshold value.

そして、パノラマ合成部19は、算出した値が閾値よりも大きいときには高精度モードを設定し、算出した値が閾値以下のときには高速モードを設定する。   The panorama synthesizing unit 19 sets the high accuracy mode when the calculated value is larger than the threshold value, and sets the high speed mode when the calculated value is equal to or less than the threshold value.

なお、この閾値は、これよりも回転角度が大きいと、隣接する画像データ間の視差が大きくなり、高速モードでは、合成される画像データ間の段差が目だってしまう値のことを示す。   Note that this threshold value is a value at which the parallax between adjacent image data increases when the rotation angle is larger than this, and in the high-speed mode, the step between the image data to be synthesized is noticeable.

図8は、図1に示したデジタルカメラの第三の変形例におけるパノラマ撮像モード時の動作を説明するためのフローチャートである。図8において図6と同じ処理には同一符号を付してある。   FIG. 8 is a flowchart for explaining the operation in the panoramic imaging mode in the third modification of the digital camera shown in FIG. In FIG. 8, the same processes as those in FIG. 6 are denoted by the same reference numerals.

ステップS61の後、パノラマ合成部19は、ステップS61の撮像開始から撮像終了までのデジタルカメラの回転角度をジャイロセンサから取得し、また、このときの固体撮像素子5のフレームレートをシステム制御部11から取得する(ステップS81)。   After step S61, the panorama synthesizing unit 19 obtains the rotation angle of the digital camera from the imaging start to the imaging end of step S61 from the gyro sensor, and also determines the frame rate of the solid-state imaging device 5 at this time as the system control unit 11. (Step S81).

次に、パノラマ合成部19は、取得した回転角度とフレームレートから単位フレームあたりの回転角度を算出し、これを閾値と比較する。   Next, the panorama composition unit 19 calculates a rotation angle per unit frame from the acquired rotation angle and frame rate, and compares this with a threshold value.

算出した値が閾値より大きかった場合(ステップS82:Y)は、メインメモリ16に記憶された各画像データに対し高精度モードでパノラマ合成を行う。即ち、ステップS52以降の処理を行う。   If the calculated value is larger than the threshold value (step S82: Y), panorama synthesis is performed in the high accuracy mode for each image data stored in the main memory 16. That is, the process after step S52 is performed.

一方、算出した値が閾値以下であった場合(ステップS82:N)は、メインメモリ16に記憶された各画像データに対し、高速モードでパノラマ合成を行う。即ち、ステップS63以降の処理を行う。   On the other hand, if the calculated value is equal to or less than the threshold value (step S82: N), panorama synthesis is performed in the high speed mode for each image data stored in the main memory 16. That is, the process after step S63 is performed.

以上のように、図1に示すデジタルカメラの第三の変形例によれば、高速モードと高精度モードのどちらが最適かをカメラが自動で判断して切り替えることができる。このため、特別な操作なく、消費電力、処理速度、及び画質の最適化を図ることができる。   As described above, according to the third modification of the digital camera shown in FIG. 1, the camera can automatically determine and switch between the high-speed mode and the high-accuracy mode. Therefore, power consumption, processing speed, and image quality can be optimized without any special operation.

なお、図8のステップS52の処理は、ステップS81とステップS82の間に行ってもよい。この場合は、ステップS82で回転角度が閾値より大きいと判定したときには、この算出した移動ベクトルを使ってステップS53の処理を実施すればよい。また、ステップS82で回転角度が閾値以下と判定したときには、ステップS63の処理を実施すればよい。この場合でも、ステップS63においては、移動ベクトルを用いて境界位置を決める演算を省略できるため、演算量の削減、処理速度の向上といった効果を得ることができる。   Note that the process of step S52 of FIG. 8 may be performed between step S81 and step S82. In this case, when it is determined in step S82 that the rotation angle is larger than the threshold value, the process of step S53 may be performed using the calculated movement vector. If it is determined in step S82 that the rotation angle is equal to or smaller than the threshold value, the process of step S63 may be performed. Even in this case, in step S63, since the calculation for determining the boundary position using the movement vector can be omitted, it is possible to obtain the effects of reducing the calculation amount and improving the processing speed.

以上のように本明細書には次の事項が開示されている。   As described above, the following items are disclosed in this specification.

開示されたパノラマ画像生成装置は、連続して撮像して得られたn(nは2以上の自然数)個の画像データを取得する画像データ取得部と、時系列で隣り合う(k−1)番目(kは2以上n以下の自然数)の前記画像データとk番目の前記画像データの間の移動ベクトルを算出する移動ベクトル算出部と、前記(k−1)番目の画像データと前記k番目の画像データとの境界位置を、前記移動ベクトルに基づいて前記(k−1)番目の画像データの中心と前記k番目の画像データの中心との中間に設定して、前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する処理を行うパノラマ合成部とを備えるものである。   The disclosed panoramic image generation apparatus is adjacent in time series to an image data acquisition unit that acquires n (n is a natural number of 2 or more) pieces of image data obtained by continuous imaging (k−1). A movement vector calculation unit for calculating a movement vector between the image data of the th (k is a natural number of 2 or more and n or less) and the kth image data, the (k−1) th image data and the kth A boundary position between the center of the (k−1) -th image data and the center of the k-th image data based on the movement vector, A panorama synthesizing unit for performing panorama synthesizing of the image data and the k-th image data.

この構成により、(k−1)番目の画像データの中心とk番目の画像データの中心との中間に境界位置が設定されるため、視差が最も少ない位置で(k−1)番目の画像データとk番目の画像データとが合成されることになり、良好なパノラマ画像を生成することができる。   With this configuration, since the boundary position is set in the middle between the center of the (k−1) th image data and the center of the kth image data, the (k−1) th image data is at the position with the smallest parallax. And k-th image data are combined, and a good panoramic image can be generated.

開示されたパノラマ画像生成装置は、前記パノラマ合成部が、前記(k−1)番目の画像データの中心から前記移動ベクトルの方向である第一の方向に向かって前記移動ベクトルの前記第一の方向の移動量の半分の距離に前記境界位置を設定し、前記k番目の画像データの中心から前記第一の方向と逆の第二の方向に向かって前記移動量の半分の距離に前記境界位置を設定し、前記(k−1)番目の画像データの前記境界位置よりも前記第一の方向にある領域に、前記k番目の画像データの前記境界位置よりも前記第一の方向にある領域を上書きすることで、前記第一の処理を行い、前記第一の処理後の画像データの前記境界位置における画質を調整する画像処理を実施する画質調整部を備えるものである。   In the disclosed panoramic image generation apparatus, the panorama synthesis unit is configured to make the first of the movement vectors from the center of the (k−1) th image data toward the first direction that is the direction of the movement vector. The boundary position is set to a distance that is half the movement amount in the direction, and the boundary is set to a distance that is half the movement amount from the center of the k-th image data toward the second direction opposite to the first direction. A position is set, and the region in the first direction from the boundary position of the (k−1) th image data is in the first direction from the boundary position of the kth image data. The image processing apparatus includes an image quality adjustment unit that performs the first process by overwriting the area and performs image processing for adjusting the image quality at the boundary position of the image data after the first process.

開示されたパノラマ画像生成装置は、前記画像処理が色補正処理を含むものである。   In the disclosed panoramic image generation apparatus, the image processing includes color correction processing.

開示されたパノラマ画像生成装置は、前記画像処理がぼかし処理を含むものである。   In the disclosed panoramic image generation apparatus, the image processing includes blurring processing.

開示された撮像装置は、前記パノラマ画像生成装置と、前記n個の画像データを取得するための固体撮像素子とを備えるものである。   The disclosed imaging device includes the panoramic image generation device and a solid-state imaging device for acquiring the n pieces of image data.

開示された撮像装置は、前記パノラマ合成部が、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを有し、前記第一のモードと前記第二のモードを自動で切り替えるモード切替部を備えるものである。   In the disclosed imaging device, the panorama synthesis unit performs the (k−1) th in a method other than the first mode in which the first process is performed and the first process in which the movement vector is not used. It has a second mode for panoramic synthesis of image data and the k-th image data, and includes a mode switching unit that automatically switches between the first mode and the second mode.

開示された撮像装置は、前記モード切替部が、前記画像データ間に一定以上の視差が発生しているか否かを判定し、前記一定以上の視差が発生していると判定した場合に前記第一のモードを設定し、前記一定以上の視差が発生していないと判定した場合に、前記第二のモードを設定するものである。   In the disclosed imaging device, the mode switching unit determines whether or not a certain amount of parallax has occurred between the image data, and determines that the certain amount of parallax has occurred. One mode is set, and the second mode is set when it is determined that the above-mentioned parallax is not generated.

開示された撮像装置は、連続して撮像を実施するパノラマ撮像モードを有し、前記パノラマ撮像モード時に、前記撮像の開始から終了までの間の前記撮像装置の回転角度とフレームレートを取得する取得部を備え、前記モード切替部は、前記回転角度と前記フレームレートから求まる単位フレームあたりの回転角度が閾値よりも大きいときに前記第一のモードを設定し、当該回転角度が前記閾値以下のときに前記第二のモードを設定するものである。   The disclosed imaging apparatus has a panoramic imaging mode that continuously performs imaging, and obtains a rotation angle and a frame rate of the imaging apparatus from the start to the end of the imaging in the panoramic imaging mode The mode switching unit sets the first mode when a rotation angle per unit frame obtained from the rotation angle and the frame rate is greater than a threshold value, and the rotation angle is equal to or less than the threshold value. To set the second mode.

開示された撮像装置は、前記パノラマ合成部が、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを有し、前記第一のモードと前記第二のモードをマニュアル設定にしたがって切り替えるモード切替部を備えるものである。   In the disclosed imaging device, the panorama synthesis unit performs the (k−1) th in a method other than the first mode in which the first process is performed and the first process in which the movement vector is not used. It has a second mode for panoramic synthesizing the image data and the k-th image data, and includes a mode switching unit that switches between the first mode and the second mode according to manual settings.

開示されたパノラマ画像生成方法は、連続して撮像して得られたn(nは2以上の自然数)個の画像データを取得する画像データ取得ステップと、時系列で隣り合う(k−1)番目(kは2以上n以下の自然数)の前記画像データとk番目の前記画像データの間の移動ベクトルを算出する移動ベクトル算出ステップと、前記(k−1)番目の画像データと前記k番目の画像データとの境界位置を、前記移動ベクトルに基づいて前記(k−1)番目の画像データの中心と前記k番目の画像データの中心との中間に設定して、前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第一の処理を行うパノラマ合成ステップとを備えるものである。   The disclosed panoramic image generation method is adjacent in time series to an image data acquisition step of acquiring n (n is a natural number of 2 or more) image data obtained by continuous imaging (k−1). A movement vector calculating step for calculating a movement vector between the image data (k is a natural number greater than or equal to 2 and less than or equal to n) and the kth image data, the (k−1) th image data and the kth image data A boundary position between the center of the (k−1) -th image data and the center of the k-th image data based on the movement vector, A panorama synthesizing step for performing a first process of panorama synthesizing the k th image data and the k th image data.

開示されたパノラマ画像生成方法は、前記パノラマ合成ステップでは、前記(k−1)番目の画像データの中心から前記移動ベクトルの方向である第一の方向に向かって前記移動ベクトルの第一の方向の移動量の半分の距離に前記境界位置を設定し、前記k番目の画像データの中心から前記第一の方向と逆の第二の方向に向かって前記移動量の半分の距離に前記境界位置を設定し、前記(k−1)番目の画像データの前記境界位置よりも前記第一の方向にある領域に、前記k番目の画像データの前記境界位置よりも前記第一の方向にある領域を上書きすることで、前記第一の処理を行い、前記第一の処理後の画像データの前記境界位置における画質を調整する画像処理を実施する画質調整ステップを備えるものである。   In the disclosed panoramic image generation method, in the panorama synthesizing step, the first direction of the movement vector from the center of the (k−1) th image data toward the first direction that is the direction of the movement vector. The boundary position is set at a distance that is half of the movement amount, and the boundary position is set at a distance that is half the movement amount from the center of the k-th image data toward the second direction opposite to the first direction. And the region in the first direction from the boundary position of the kth image data in the region in the first direction from the boundary position of the (k-1) th image data Is overwritten, and includes an image quality adjustment step of performing the first process and performing an image process for adjusting the image quality at the boundary position of the image data after the first process.

開示されたパノラマ画像生成方法は、前記画像処理が色補正処理を含むものである。   In the disclosed panoramic image generation method, the image processing includes color correction processing.

開示されたパノラマ画像生成方法は、前記画像処理がぼかし処理を含むものである。   In the disclosed panoramic image generation method, the image processing includes blurring processing.

開示されたパノラマ画像生成方法は、前記パノラマ合成ステップでは、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを自動で切り替えるものである。   In the disclosed panorama image generation method, in the panorama synthesis step, the (k-1) is performed by a method other than the first mode in which the first process is performed and the first process in which the movement vector is not used. The second image data and the second mode for panoramic composition of the kth image data are automatically switched.

開示されたパノラマ画像生成方法は、前記パノラマ合成ステップでは、前記画像データ間に一定以上の視差が発生しているか否かを判定し、前記一定以上の視差が発生していると判定した場合に前記第一のモードを実施し、前記一定以上の視差が発生していないと判定した場合に、前記第二のモードを実施するものである。   In the disclosed panoramic image generation method, in the panorama synthesis step, it is determined whether or not a certain amount of parallax has occurred between the image data, and when it is determined that the certain amount of parallax has occurred or not The second mode is performed when the first mode is performed and when it is determined that the predetermined parallax has not occurred.

開示されたパノラマ画像生成方法は、前記n個の撮像データを得るための撮像の開始から終了までの間の、当該撮像を行った撮像装置の回転角度とフレームレートを取得するステップを備え、前記パノラマ合成ステップでは、前記回転角度と前記フレームレートから求まる単位フレームあたりの回転角度が閾値よりも大きいときに前記第一のモードを実施し、当該回転角度が前記閾値以下のときに前記第二のモードを実施するものである。   The disclosed panoramic image generation method includes a step of acquiring a rotation angle and a frame rate of an imaging apparatus that has performed the imaging from the start to the end of imaging to obtain the n imaging data, In the panorama synthesis step, the first mode is performed when the rotation angle per unit frame obtained from the rotation angle and the frame rate is larger than a threshold value, and when the rotation angle is equal to or less than the threshold value, the second mode is performed. The mode is to be implemented.

開示されたパノラマ画像生成方法は、前記パノラマ合成ステップでは、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを、マニュアル設定にしたがって切り替えるものである。   In the disclosed panorama image generation method, in the panorama synthesis step, the (k-1) is performed by a method other than the first mode in which the first process is performed and the first process in which the movement vector is not used. The second mode for panoramic composition of the kth image data and the kth image data is switched according to the manual setting.

開示されたパノラマ画像生成プログラムは、コンピュータに、前記パノラマ画像生成方法を実行させるためのプログラムである。   The disclosed panoramic image generation program is a program for causing a computer to execute the panoramic image generation method.

100 デジタルカメラ
19 パノラマ合成部
A 1番目の画像データ
B 2番目の画像データ
C 3番目の画像データ
D パノラマ画像データ
100 Digital Camera 19 Panorama Composition Unit A First Image Data B Second Image Data C Third Image Data D Panorama Image Data

Claims (18)

連続して撮像して得られたn(nは2以上の自然数)個の画像データを取得する画像データ取得部と、
時系列で隣り合う(k−1)番目(kは2以上n以下の自然数)の前記画像データとk番目の前記画像データの間の移動ベクトルを算出する移動ベクトル算出部と、
前記(k−1)番目の画像データと前記k番目の画像データとの境界位置を、前記移動ベクトルに基づいて前記(k−1)番目の画像データの中心と前記k番目の画像データの中心との中間に設定して、前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第一の処理を行うパノラマ合成部とを備えるパノラマ画像生成装置。
An image data acquisition unit for acquiring n (n is a natural number of 2 or more) image data obtained by continuously capturing images;
A movement vector calculation unit that calculates a movement vector between the (k−1) th (k is a natural number of 2 to n) adjacent in time series and the kth image data;
The boundary position between the (k−1) th image data and the kth image data is determined based on the movement vector, and the center of the (k−1) th image data and the center of the kth image data. And a panorama image generation apparatus including a panorama composition unit that performs a first process of panorama compositing the (k−1) th image data and the kth image data.
請求項1記載のパノラマ画像生成装置であって、
前記パノラマ合成部が、前記(k−1)番目の画像データの中心から前記移動ベクトルの方向である第一の方向に向かって前記移動ベクトルの前記第一の方向の移動量の半分の距離に前記境界位置を設定し、前記k番目の画像データの中心から前記第一の方向と逆の第二の方向に向かって前記移動量の半分の距離に前記境界位置を設定し、前記(k−1)番目の画像データの前記境界位置よりも前記第一の方向にある領域に、前記k番目の画像データの前記境界位置よりも前記第一の方向にある領域を上書きすることで、前記第一の処理を行い、
前記第一の処理後の画像データの前記境界位置における画質を調整する画像処理を実施する画質調整部を備えるパノラマ画像生成装置。
The panoramic image generating apparatus according to claim 1,
The panorama synthesizing unit moves the distance from the center of the (k−1) -th image data to a first direction that is the direction of the movement vector by a half of the movement amount of the movement vector in the first direction. The boundary position is set, the boundary position is set at a distance half the movement amount from the center of the k-th image data in the second direction opposite to the first direction, and the (k− 1) By overwriting the region in the first direction with respect to the boundary position of the k-th image data in the region in the first direction with respect to the boundary position of the first image data, the first One process,
A panoramic image generation apparatus including an image quality adjustment unit that performs image processing for adjusting image quality at the boundary position of the image data after the first processing.
請求項2記載のパノラマ画像生成装置であって、
前記画像処理が色補正処理を含むパノラマ画像生成装置。
The panoramic image generation apparatus according to claim 2,
A panoramic image generation apparatus in which the image processing includes color correction processing.
請求項2又は3記載のパノラマ画像生成装置であって、
前記画像処理がぼかし処理を含むパノラマ画像生成装置。
The panoramic image generation device according to claim 2 or 3,
A panoramic image generation apparatus in which the image processing includes blurring processing.
請求項1〜4のいずれか1項記載のパノラマ画像生成装置と、
前記n個の画像データを取得するための固体撮像素子とを備える撮像装置。
A panoramic image generation apparatus according to any one of claims 1 to 4,
An imaging apparatus comprising: a solid-state imaging device for acquiring the n pieces of image data.
請求項5記載の撮像装置であって、
前記パノラマ合成部が、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを有し、
前記第一のモードと前記第二のモードを自動で切り替えるモード切替部を備える撮像装置。
The imaging apparatus according to claim 5, wherein
The panorama synthesizing unit performs a method other than the first mode in which the first process is performed and the first process that does not use the movement vector, and the (k−1) th image data and the kth image data. A second mode for panoramic synthesis of image data,
An imaging apparatus comprising a mode switching unit that automatically switches between the first mode and the second mode.
請求項6記載の撮像装置であって、
前記モード切替部が、前記画像データ間に一定以上の視差が発生しているか否かを判定し、前記一定以上の視差が発生していると判定した場合に前記第一のモードを設定し、前記一定以上の視差が発生していないと判定した場合に、前記第二のモードを設定する撮像装置。
The imaging apparatus according to claim 6,
The mode switching unit determines whether or not a certain amount of parallax has occurred between the image data, and sets the first mode when it is determined that the certain amount or more of parallax has occurred, An imaging device that sets the second mode when it is determined that the predetermined parallax has not occurred.
請求項6記載の撮像装置であって、
連続して撮像を実施するパノラマ撮像モードを有し、
前記パノラマ撮像モード時に、前記撮像の開始から終了までの間の前記撮像装置の回転角度とフレームレートを取得する取得部を備え、
前記モード切替部は、前記回転角度と前記フレームレートから求まる単位フレームあたりの回転角度が閾値よりも大きいときに前記第一のモードを設定し、当該回転角度が前記閾値以下のときに前記第二のモードを設定する撮像装置。
The imaging apparatus according to claim 6,
It has a panoramic imaging mode that performs continuous imaging,
An acquisition unit that acquires a rotation angle and a frame rate of the imaging apparatus between the start and end of the imaging in the panoramic imaging mode;
The mode switching unit sets the first mode when a rotation angle per unit frame obtained from the rotation angle and the frame rate is greater than a threshold value, and sets the second mode when the rotation angle is equal to or less than the threshold value. Imaging device for setting the mode.
請求項5記載の撮像装置であって、
前記パノラマ合成部が、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを有し、
前記第一のモードと前記第二のモードをマニュアル設定にしたがって切り替えるモード切替部を備える撮像装置。
The imaging apparatus according to claim 5, wherein
The panorama synthesizing unit performs a method other than the first mode in which the first process is performed and the first process that does not use the movement vector, and the (k−1) th image data and the kth image data. A second mode for panoramic synthesis of image data,
An imaging apparatus comprising a mode switching unit that switches between the first mode and the second mode according to a manual setting.
連続して撮像して得られたn(nは2以上の自然数)個の画像データを取得する画像データ取得ステップと、
時系列で隣り合う(k−1)番目(kは2以上n以下の自然数)の前記画像データとk番目の前記画像データの間の移動ベクトルを算出する移動ベクトル算出ステップと、
前記(k−1)番目の画像データと前記k番目の画像データとの境界位置を、前記移動ベクトルに基づいて前記(k−1)番目の画像データの中心と前記k番目の画像データの中心との中間に設定して、前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第一の処理を行うパノラマ合成ステップとを備えるパノラマ画像生成方法。
An image data acquisition step of acquiring n (n is a natural number of 2 or more) image data obtained by continuously imaging;
A movement vector calculation step of calculating a movement vector between the (k−1) th (k is a natural number of 2 to n) adjacent in time series and the kth image data;
The boundary position between the (k−1) th image data and the kth image data is determined based on the movement vector, and the center of the (k−1) th image data and the center of the kth image data. A panorama image generation method comprising: a panorama composition step for performing a first process for panorama composition of the (k-1) th image data and the kth image data.
請求項10記載のパノラマ画像生成方法であって、
前記パノラマ合成ステップでは、前記(k−1)番目の画像データの中心から前記移動ベクトルの方向である第一の方向に向かって前記移動ベクトルの前記第一の方向の移動量の半分の距離に前記境界位置を設定し、前記k番目の画像データの中心から前記第一の方向と逆の第二の方向に向かって前記移動ベクトルの前記第一の方向の移動量の半分の距離に前記境界位置を設定し、前記(k−1)番目の画像データの前記境界位置よりも前記第一の方向にある領域に、前記k番目の画像データの前記境界位置よりも前記第一の方向にある領域を上書きすることで、前記第一の処理を行い、
前記第一の処理後の画像データの前記境界位置における画質を調整する画像処理を実施する画質調整ステップを備えるパノラマ画像生成方法。
The panoramic image generation method according to claim 10,
In the panorama synthesizing step, the distance from the center of the (k−1) -th image data to a first direction which is the direction of the movement vector is a half of the movement amount of the movement vector in the first direction. The boundary position is set, and the boundary is set to a distance that is half of the movement amount of the movement vector in the first direction from the center of the k-th image data toward the second direction opposite to the first direction. A position is set, and the region in the first direction from the boundary position of the (k−1) th image data is in the first direction from the boundary position of the kth image data. Performing the first process by overwriting the area,
A panoramic image generation method comprising an image quality adjustment step of performing image processing for adjusting image quality at the boundary position of the image data after the first processing.
請求項11記載のパノラマ画像生成方法であって、
前記画像処理が色補正処理を含むパノラマ画像生成方法。
The panoramic image generation method according to claim 11,
A panoramic image generation method in which the image processing includes color correction processing.
請求項11又は12記載のパノラマ画像生成方法であって、
前記画像処理がぼかし処理を含むパノラマ画像生成方法。
A panoramic image generation method according to claim 11 or 12,
A panoramic image generation method in which the image processing includes blurring.
請求項10〜13のいずれか1項記載のパノラマ画像生成方法であって、
前記パノラマ合成ステップでは、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを自動で切り替えるパノラマ画像生成方法。
A panoramic image generation method according to any one of claims 10 to 13,
In the panorama synthesis step, the (k−1) -th image data and the k-th image are obtained by a method other than the first mode in which the first process is performed and the first process that does not use the movement vector. A panoramic image generation method for automatically switching between a second mode for panoramic composition of image data.
請求項14記載のパノラマ画像生成方法であって、
前記パノラマ合成ステップでは、前記画像データ間に一定以上の視差が発生しているか否かを判定し、前記一定以上の視差が発生していると判定した場合に前記第一のモードを実施し、前記一定以上の視差が発生していないと判定した場合に、前記第二のモードを実施するパノラマ画像生成方法。
The panoramic image generation method according to claim 14,
In the panorama synthesis step, it is determined whether or not a certain amount of parallax has occurred between the image data, and when it is determined that the certain amount or more of parallax has occurred, the first mode is performed, A panoramic image generation method for executing the second mode when it is determined that the predetermined parallax has not occurred.
請求項14記載のパノラマ画像生成方法であって、
前記n個の撮像データを得るための撮像の開始から終了までの間の、当該撮像を行った撮像装置の回転角度とフレームレートを取得するステップを備え、
前記パノラマ合成ステップでは、前記回転角度と前記フレームレートから求まる単位フレームあたりの回転角度が閾値よりも大きいときに前記第一のモードを実施し、当該回転角度が前記閾値以下のときに前記第二のモードを実施するパノラマ画像生成方法。
The panoramic image generation method according to claim 14,
Obtaining a rotation angle and a frame rate of an imaging apparatus that has performed the imaging from the start to the end of imaging to obtain the n imaging data,
In the panorama synthesis step, the first mode is performed when a rotation angle per unit frame obtained from the rotation angle and the frame rate is larger than a threshold value, and when the rotation angle is equal to or less than the threshold value, the second mode is performed. Panorama image generating method for implementing the mode of the above.
請求項10〜13のいずれか1項記載のパノラマ画像生成方法であって、
前記パノラマ合成ステップでは、前記第一の処理を実施する第一のモードと、前記移動ベクトルを利用しない前記第一の処理以外の方法で前記(k−1)番目の画像データと前記k番目の画像データをパノラマ合成する第二のモードとを、マニュアル設定にしたがって切り替えるパノラマ画像生成方法。
A panoramic image generation method according to any one of claims 10 to 13,
In the panorama synthesis step, the (k−1) -th image data and the k-th image are obtained by a method other than the first mode in which the first process is performed and the first process that does not use the movement vector. A panoramic image generation method for switching a second mode for panoramic synthesis of image data according to a manual setting.
コンピュータに、請求項10〜17のいずれか1項記載のパノラマ画像生成方法を実行させるためのパノラマ画像生成プログラム。   A panorama image generation program for causing a computer to execute the panorama image generation method according to any one of claims 10 to 17.
JP2010061615A 2010-03-17 2010-03-17 Panorama image generation method, panorama image generation program, and imaging apparatus Expired - Fee Related JP5364627B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010061615A JP5364627B2 (en) 2010-03-17 2010-03-17 Panorama image generation method, panorama image generation program, and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010061615A JP5364627B2 (en) 2010-03-17 2010-03-17 Panorama image generation method, panorama image generation program, and imaging apparatus

Publications (2)

Publication Number Publication Date
JP2011199425A true JP2011199425A (en) 2011-10-06
JP5364627B2 JP5364627B2 (en) 2013-12-11

Family

ID=44877113

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010061615A Expired - Fee Related JP5364627B2 (en) 2010-03-17 2010-03-17 Panorama image generation method, panorama image generation program, and imaging apparatus

Country Status (1)

Country Link
JP (1) JP5364627B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016537903A (en) * 2013-08-21 2016-12-01 ジョーント・インコーポレイテッドJaunt Inc. Connecting and recognizing virtual reality content
CN103731605B (en) * 2013-12-16 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Photographing method and terminal
CN106572287A (en) * 2012-07-26 2017-04-19 豪威科技股份有限公司 Image processing system and method using multiple imagers for providing extended view
JP2018152803A (en) * 2017-03-15 2018-09-27 オムロン株式会社 Image composition device, image composition method, and image composition program
CN109246422A (en) * 2016-06-15 2019-01-18 联发科技股份有限公司 The method and apparatus of the honorable image of processing cube
CN114928696A (en) * 2022-05-11 2022-08-19 北京有竹居网络技术有限公司 Shooting method and device and shooting equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09321972A (en) * 1996-05-28 1997-12-12 Canon Inc Image synthesis device and method
JPH10155109A (en) * 1996-11-22 1998-06-09 Canon Inc Image pickup method, device and storage medium
JPH11146243A (en) * 1997-09-03 1999-05-28 Casio Comput Co Ltd Electronic still camera and image reproducing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09321972A (en) * 1996-05-28 1997-12-12 Canon Inc Image synthesis device and method
JPH10155109A (en) * 1996-11-22 1998-06-09 Canon Inc Image pickup method, device and storage medium
JPH11146243A (en) * 1997-09-03 1999-05-28 Casio Comput Co Ltd Electronic still camera and image reproducing method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572287A (en) * 2012-07-26 2017-04-19 豪威科技股份有限公司 Image processing system and method using multiple imagers for providing extended view
CN106572287B (en) * 2012-07-26 2019-02-01 豪威科技股份有限公司 Using multiple image pick-up devices to provide the image processing system and method that extend the visual field
JP2016537903A (en) * 2013-08-21 2016-12-01 ジョーント・インコーポレイテッドJaunt Inc. Connecting and recognizing virtual reality content
CN103731605B (en) * 2013-12-16 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Photographing method and terminal
CN109246422A (en) * 2016-06-15 2019-01-18 联发科技股份有限公司 The method and apparatus of the honorable image of processing cube
CN109246422B (en) * 2016-06-15 2020-06-30 联发科技股份有限公司 Method and apparatus for processing cube face images
US10972730B2 (en) 2016-06-15 2021-04-06 Mediatek Inc. Method and apparatus for selective filtering of cubic-face frames
JP2018152803A (en) * 2017-03-15 2018-09-27 オムロン株式会社 Image composition device, image composition method, and image composition program
CN114928696A (en) * 2022-05-11 2022-08-19 北京有竹居网络技术有限公司 Shooting method and device and shooting equipment

Also Published As

Publication number Publication date
JP5364627B2 (en) 2013-12-11

Similar Documents

Publication Publication Date Title
US9210408B2 (en) Stereoscopic panoramic image synthesis device, image capturing device, stereoscopic panoramic image synthesis method, recording medium, and computer program
JP6263623B2 (en) Image generation method and dual lens apparatus
JP4787906B1 (en) Imaging apparatus, method and program
JP5754312B2 (en) Image processing apparatus, image processing method, and program
KR101784176B1 (en) Image photographing device and control method thereof
JP6821339B2 (en) Image shake correction device, tilt correction device, control method of image shake correction device, control method of tilt correction device
JP5364627B2 (en) Panorama image generation method, panorama image generation program, and imaging apparatus
JP4356621B2 (en) Imaging apparatus and imaging method
KR20090093817A (en) Imaging apparatus provided with panning mode for taking panned image
JP2009232471A (en) Image pickup apparatus
JPWO2012002046A1 (en) Stereoscopic panorama image synthesis device, compound eye imaging device, and stereo panorama image synthesis method
JP2011250125A (en) Image processing apparatus and method thereof
JP5952782B2 (en) Image processing apparatus, control method therefor, program, and storage medium
JP2009124340A (en) Imaging apparatus, photographing support method, and photographing support program
JP2014123917A (en) Image processor, image processing method and program
JP2007104248A (en) Electronic camera and program
JP6155471B2 (en) Image generating apparatus, imaging apparatus, and image generating method
JP2014154907A (en) Stereoscopic imaging apparatus
JP6732440B2 (en) Image processing apparatus, image processing method, and program thereof
JP2017143504A5 (en)
JP2017143504A (en) Imaging device
JP5364625B2 (en) Imaging device
JP2016208118A (en) Image processing apparatus, image processing method, and program
JP2011029719A5 (en)
JP2014049960A (en) Imaging device, control method therefor, and program

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20111216

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120620

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20120914

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20121004

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130423

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130509

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130909

R150 Certificate of patent or registration of utility model

Ref document number: 5364627

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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