JP5598569B2 - Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus - Google Patents

Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus Download PDF

Info

Publication number
JP5598569B2
JP5598569B2 JP2013105782A JP2013105782A JP5598569B2 JP 5598569 B2 JP5598569 B2 JP 5598569B2 JP 2013105782 A JP2013105782 A JP 2013105782A JP 2013105782 A JP2013105782 A JP 2013105782A JP 5598569 B2 JP5598569 B2 JP 5598569B2
Authority
JP
Japan
Prior art keywords
image
motion
amount
motion amount
images
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
JP2013105782A
Other languages
Japanese (ja)
Other versions
JP2013219787A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2013105782A priority Critical patent/JP5598569B2/en
Publication of JP2013219787A publication Critical patent/JP2013219787A/en
Application granted granted Critical
Publication of JP5598569B2 publication Critical patent/JP5598569B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Circuits (AREA)
  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)

Description

本発明は画像を複数回に分けて撮影し、撮影した画像を結合することで、画角の小さなレンズ・モジュールからなるカメラ・モジュールを備える電子機器においても画角の大きなパノラマ画像を撮影可能とするための技術に関する。   The present invention can shoot a panoramic image with a large angle of view even in an electronic device including a camera module composed of a lens module with a small angle of view by capturing the image in a plurality of times and combining the captured images. It relates to technology.

ディジタル・カメラ付き小型電子機器向けのカメラ・モジュールは、一般的に小型化を優先するため小型のレンズ・モジュールを使用することが多く、画角の小さな画像のみ撮影可能である。このような小型のレンズ・モジュールを備えるディジタル・カメラを用いて、風景写真などの広角な撮影対象を撮影したい場合、複数回に分けて撮影した、部分的に重なり合った複数の画像を、一枚の画像に結合することで実現される。   A camera module for a small electronic device with a digital camera generally uses a small lens module in order to prioritize miniaturization, and can only capture images with a small angle of view. When using a digital camera equipped with such a small lens module to capture a wide-angle subject, such as a landscape photograph, multiple partially overlapping images taken in multiple shots This is realized by combining the images.

部分的に重なり合った画像において結合すべき位置を特定する必要があるため、複数の画像を撮影する際、撮影者はファインダ画面上に表示されるガイドに従い、装置を正確な方向に合わせた上で撮影操作を行うことを繰り返すことで結合対象の複数の画像を得る。   Since it is necessary to specify the position to be combined in the partially overlapping images, the photographer must follow the guide displayed on the viewfinder screen and align the device in the correct direction when shooting multiple images. By repeating the photographing operation, a plurality of images to be combined are obtained.

下記特許文献1では、部分的に重なり合った複数の画像間の、設定された位置合わせ量と接合部分とに基づき、複数の画像を貼り合わせる技術が開示されている。   Japanese Patent Application Laid-Open No. 2004-228561 discloses a technique for combining a plurality of images based on a set alignment amount and a joint portion between a plurality of partially overlapping images.

特開2004−236910号公報JP 2004-236910 A

従来の技術において、画像を複数回に分けて撮影し、撮影した画像を結合することで、画角の小さなレンズ・モジュールからなるカメラ・モジュールを備える電子機器においても画角の大きな画像を撮影可能とするための処理を行う際、撮影者はファインダ画面上に表示されるガイドに従い、装置を正確な方向に合わせた上で撮影操作を行うことを繰り返す必要があり、操作が煩雑であることに加えて、操作に不慣れな撮影者が装置を正確な方向に合わせることに失敗した場合は、接合部の画像がずれた結合画像となる場合があった。   With conventional technology, images can be taken multiple times, and the captured images can be combined to capture images with a large angle of view even in electronic devices with a camera module consisting of a lens module with a small angle of view. The photographer needs to repeat the shooting operation after aligning the device in the correct direction according to the guide displayed on the viewfinder screen, and the operation is complicated. In addition, when a photographer who is unfamiliar with the operation fails to align the apparatus in the correct direction, a combined image in which the image of the joint portion is shifted may be obtained.

また、動画として撮影した連続画像からパノラマ画像を合成することも考えられるが、動画の連続画像中には様々な動きの人物又は物体等が入り込んでくるため、単純に隣接画像を合成するだけではうまくパノラマ画像を合成できない可能性が大きい。   Also, it is conceivable to synthesize panoramic images from continuous images taken as moving images, but since various moving people or objects enter the continuous images of moving images, simply combining adjacent images There is a high possibility that the panorama image cannot be synthesized well.

本発明の課題は、結合対象の画像を撮影する際に、より簡略化された手順で撮影可能となり、撮影者の負担を軽減することおよび、操作に不慣れな撮影者によるずれた結合画像となる撮影手順の失敗を軽減することにある。   It is an object of the present invention to be able to shoot with a simplified procedure when shooting an image to be combined, to reduce the burden on the photographer, and to become a combined image shifted by a photographer who is unfamiliar with the operation. It is to reduce the failure of the shooting procedure.

本発明は、カメラ・モジュールにて撮影した連続画像からパノラマ画像を合成するための装置又は方法、また当該パノラマ撮影装置を搭載したカメラユニットを前提とする。
以下は、本発明をパノラマ撮影装置として実現した場合の態様について示す。
The present invention is premised on an apparatus or method for synthesizing panoramic images from continuous images captured by a camera module, and a camera unit equipped with the panoramic imaging apparatus.
The following will describe aspects when the present invention is realized as a panoramic photographing apparatus.

動きベクトル算出手段(201)は、撮影中の連続画像の位置差分情報を取得する。
動きベクトル品質判定手段(202)は、動きベクトル算出手段が取得した位置差分情報の有用性を判断する。
The motion vector calculation means (201) acquires position difference information of the continuous images being shot.
The motion vector quality determination means (202) determines the usefulness of the position difference information acquired by the motion vector calculation means.

動き量算出手段(203)は、動きベクトル品質判定手段によって画像の動き量算出可能と判断された場合に画像の動き量を算出する。この動き量算出手段は、例えば、カメラ・モジュールから入力された連続画像のマクロブロックごとの動きベクトルを元に画像間の動き量を算出する。また、上記動き量算出手段は、例えば、動き量を算出する際に、マクロブロックごとの動きベクトルの平均値を求め、平均値に対して一定以上の誤差を持つ動きベクトルは動き量の算出対象より除外する。また、上記動き量算出手段は、例えば、動き量を算出する際に、有効な動きベクトルが少なく動き量が算出不能である場合に、以前の画像において算出した動き量を再利用することによって算出不能であった動き量を補完する。   The motion amount calculation means (203) calculates the motion amount of the image when the motion vector quality determination means determines that the motion amount of the image can be calculated. For example, the motion amount calculation means calculates a motion amount between images based on a motion vector for each macroblock of a continuous image input from a camera module. In addition, the motion amount calculation unit obtains an average value of motion vectors for each macroblock, for example, when calculating the motion amount, and a motion vector having a certain error or more with respect to the average value is a target of motion amount calculation. Exclude more. Further, the motion amount calculation means calculates the motion amount by, for example, reusing the motion amount calculated in the previous image when there are few effective motion vectors and the motion amount cannot be calculated. Compensate for the amount of movement that was impossible.

画像選択手段(205)は、動き量を元に処理対象の画像を選択する。この画像選択手段は、例えば、動き量算出手段が算出した一定の動き量が累計された場合に、結合対象の画像を選択する。   The image selection means (205) selects an image to be processed based on the amount of movement. For example, the image selection unit selects an image to be combined when a certain amount of motion calculated by the motion amount calculation unit is accumulated.

画像結合手段(206)は、画像選択手段が選択する部分的に重なり合った複数の画像を用いて重なり合う部分を結合し1枚の画像に合成する。   The image combining means (206) combines the overlapping portions using a plurality of partially overlapping images selected by the image selecting means and combines them into one image.

本発明によれば、結合対象の画像を撮影する際に、より簡略化された手順で撮影可能であり、撮影者の負担を軽減することおよび、操作に不慣れな撮影者によるずれた結合画像となる撮影手順の失敗を軽減することが可能である。   According to the present invention, when taking an image to be combined, it is possible to shoot with a more simplified procedure, reducing the burden on the photographer, and a combined image shifted by a photographer unfamiliar with the operation It is possible to reduce the failure of the shooting procedure.

特に、動画として撮影された連続画像から、様々な動きをする人物・物体等を動きベクトルを介して適切に処理しながら、最適なパノラマ画像を合成することが可能となる。   In particular, it is possible to synthesize an optimal panoramic image from a continuous image captured as a moving image while appropriately processing people / objects that move in various ways through motion vectors.

本発明の実施形態によるディジタル・カメラ・モジュールおよび画像処理プロセッサを備える電子機器の構成を示す図である。It is a figure which shows the structure of the electronic device provided with the digital camera module and image processor by embodiment of this invention. 本発明の実施形態によるディジタル・カメラ・モジュールおよび画像処理プロセッサを備える電子機器の撮影操作を示す図である。It is a figure which shows imaging | photography operation of an electronic device provided with the digital camera module and image processing processor by embodiment of this invention. 動きベクトル算出部の入力画像および出力結果について示す図である。It is a figure shown about the input image and output result of a motion vector calculation part. 動きベクトル品質判定部によって実行される、画像の動き量が算出可能かどうかを判定するための動作フローチャートである。It is an operation | movement flowchart for determining whether the motion amount of an image is computable performed by the motion vector quality determination part. 動き量算出部によって実行される、画像の動き量を算出するための動作フローチャートである。It is an operation | movement flowchart for calculating the motion amount of an image performed by the motion amount calculation part. 動き量算出補完部によって実行される、画像の動き量を算出するための動作フローチャートである。It is an operation | movement flowchart for calculating the motion amount of an image performed by the motion amount calculation complement part. 画像選択部によって実行される、連続画像から結合対象となる画像を選択し、結合対象画像間の位置関係を算出するための動作フローチャートである。It is an operation | movement flowchart for selecting the image used as a joint target from the continuous image, and calculating the positional relationship between a joint target image performed by the image selection part. 動き量算出部、および動き量算出補完部、および画像選択部、および画像結合部、によって実行される実行される連続画像の動き量の算出、および結合対象の画像の選択、および動き量累計値の算出、および画像の結合を示す動作説明図である。Motion amount calculation unit, motion amount calculation complementing unit, image selection unit, and image combination unit are executed to calculate the amount of motion of continuous images to be executed, to select images to be combined, and to accumulate motion amount It is operation | movement explanatory drawing which shows calculation of this, and the coupling | bonding of an image.

以下、図面を参照しながら、本発明を実施するための最良の形態を詳細に説明する。
図面において、同様の構成要素には同じ参照番号が付されている。
図1は、本実施形態による、カメラ・モジュール10を備える電子機器1の構成を示している。電子機器1は、さらに画像処理プロセッサ(CPU)20と、記録部30と、入力装置401(例えばキー)およびディスプレイ402に結合されたユーザ・インタフェース(I/F)40と、を備えている。
The best mode for carrying out the present invention will be described below in detail with reference to the drawings.
In the drawings, similar components are given the same reference numerals.
FIG. 1 shows a configuration of an electronic apparatus 1 including a camera module 10 according to the present embodiment. The electronic device 1 further includes an image processing processor (CPU) 20, a recording unit 30, and a user interface (I / F) 40 coupled to an input device 401 (for example, a key) and a display 402.

カメラ・モジュール10は、レンズ・モジュール101、撮像用のCCD/CMOSセンサ102、アナログ−ディジタル変換器(ADC)103、ディジタル信号プロセッサ(DSP)104、からなる。   The camera module 10 includes a lens module 101, a CCD / CMOS sensor 102 for imaging, an analog-digital converter (ADC) 103, and a digital signal processor (DSP) 104.

画像処理プロセッサ20は、画像中のマクロブロックと呼ぶ小矩形範囲ごとに前画像に対する位置差分を算出する動きベクトル算出部201、画像選択の計算対象となる動きベクトルを取捨選択し、動き量が算出可能かどうかを判定する動きベクトル品質判定部202、動きベクトル情報より画像の動き量を算出する動き量算出部203、動き量算出のために必要な情報が得られなかった場合に過去の算出履歴より動き量を推定する動き量算出補完部204、算出された動き量より動き量累計値および結合対象の画像を決定する画像選択部205、結合対象の画像の重なり合う部分を接合し1枚の画像に結合する画像結合部206、からなる。画像処理プロセッサ20は、例えば集積回路として少なくとも一部がハードウェアの形態で実装されていてもよく、またはプロセッサ上で動作するプログラムとして少なくとも一部がソフトウェアの形態で実装されていてもよい。   The image processor 20 calculates a motion amount by selecting a motion vector calculation unit 201 for calculating a position difference with respect to the previous image for each small rectangular area called a macroblock in the image, and selecting a motion vector to be calculated for image selection. Motion vector quality determination unit 202 that determines whether or not it is possible, motion amount calculation unit 203 that calculates the amount of motion of an image from motion vector information, and past calculation history when information necessary for motion amount calculation is not obtained A motion amount calculation complementing unit 204 that estimates a motion amount, an image selection unit 205 that determines a motion amount accumulated value and a combination target image from the calculated motion amount, and an overlapping portion of the combination target images are joined to form one image The image combining unit 206 is combined with the image combining unit 206. For example, at least a part of the image processor 20 may be implemented in the form of hardware as an integrated circuit, or at least a part of the image processor 20 may be implemented in the form of software as a program operating on the processor.

記録部30は、連続画像領域301、選択画像および動き量累計値領域302、結合画像領域303を備える。連続画像領域301はカメラ・モジュール10にて一定時間間隔
ごとに取得した複数の画像が格納される。選択画像および動き量累計値領域302は結合対象となる複数の画像および、画像間の相対位置を示す動き量累計値を格納する。結合画像領域303は画像処理された出力画像を格納する。
The recording unit 30 includes a continuous image area 301, a selected image and accumulated motion amount value area 302, and a combined image area 303. The continuous image area 301 stores a plurality of images acquired by the camera module 10 at regular time intervals. The selected image and accumulated motion amount value area 302 stores a plurality of images to be combined and a accumulated motion amount value indicating a relative position between the images. The combined image area 303 stores the output image that has undergone image processing.

ユーザ・インタフェース40は、キーを含む入力装置401とディスプレイ402に結合されており、撮影者のキー入力をカメラ・モジュール10に供給し、撮影画像および処理済みの画像をディスプレイ402に表示する。   The user interface 40 is coupled to an input device 401 including a key and a display 402, supplies a photographer's key input to the camera module 10, and displays a captured image and a processed image on the display 402.

図1において、カメラ・モジュール10は撮影者による撮影開始ボタン押下に対して連続的な複数画像の撮影を開始し、連続画像領域301に前記複数画像データを格納する。撮影者は連続画像を撮影の間、電子機器1を平行移動させることにより、風景写真などの広角な撮影対象の画像をカメラ・モジュール10に入力する。動きベクトル算出部201は入力された連続画像について画像中のマクロブロックと呼ぶ16x16画素の区画ごとに、動きベクトルと呼ぶ前画像との位置差分情報を算出する。動きベクトル品質判定部202は全マクロブロックの動きベクトルについて、処理に必要な動きベクトルのみを取捨選択し、動き量が算出可能かどうかを判定する。動き量算出部203は動きベクトル品質判定部202において選択された動きベクトルを元に、画像の動き量を算出する。動き量算出補完部204は取捨選択された結果、有効な動きベクトルが少ない場合に、過去に算出した動き量を用いて処理を行う。画像選択部205は動き量を累計し、一定の動き量が累計された時点での画像を結合対象として選択する。画像結合部206は選択された結合対象画像を結合し、出力結果となる広角な画像を結合画像領域303に格納する。   In FIG. 1, the camera module 10 starts continuous image capturing in response to the photographer pressing the image capturing start button, and stores the image data in a continuous image area 301. A photographer inputs an image of a wide-angle photographing object such as a landscape photograph to the camera module 10 by translating the electronic apparatus 1 during photographing of continuous images. The motion vector calculation unit 201 calculates position difference information from the previous image called a motion vector for each 16 × 16 pixel section called a macroblock in the image for the input continuous image. The motion vector quality determination unit 202 selects only the motion vectors necessary for processing from the motion vectors of all macroblocks, and determines whether the motion amount can be calculated. The motion amount calculation unit 203 calculates the motion amount of the image based on the motion vector selected by the motion vector quality determination unit 202. When the number of effective motion vectors is small as a result of the selection, the motion amount calculation complementing unit 204 performs processing using the motion amount calculated in the past. The image selection unit 205 accumulates the motion amount, and selects an image at the time when a certain amount of motion is accumulated as a combination target. The image combining unit 206 combines the selected images to be combined, and stores a wide-angle image as an output result in the combined image area 303.

図2は本実施形態による電子機器1の撮影操作を図示したものである。電子機器1は撮影者による撮影開始ボタン押下に対して連続的な複数画像の撮影を開始し、連続画像領域301に撮影された複数の画像データを格納する。撮影者は連続画像撮影の間、電子機器1を平行移動させることにより、風景写真などの広角な撮影対象の画像をカメラ・モジュール10に入力する。図中の(a)〜(c)はそれぞれ撮影開始時の電子機器1の位置、撮影中の電子機器1の位置、撮影終了時点の電子機器1の位置である。   FIG. 2 illustrates a photographing operation of the electronic apparatus 1 according to the present embodiment. In response to the photographer pressing the shooting start button, the electronic device 1 starts shooting a plurality of continuous images, and stores a plurality of image data captured in the continuous image region 301. The photographer inputs an image of a wide-angle shooting target such as a landscape photograph to the camera module 10 by translating the electronic device 1 during continuous image shooting. In the figure, (a) to (c) respectively indicate the position of the electronic device 1 at the start of shooting, the position of the electronic device 1 during shooting, and the position of the electronic device 1 at the end of shooting.

図3は動きベクトル算出部201の入力画像および出力結果について図示したものである。動きベクトル算出部は連続画像領域301からの連続画像の入力を元に、マクロブロックと呼ぶ16x16画素の区画ごとに、動きベクトルと呼ぶ2次元値を持つ前画像(d)と現画像(e)との位置差分情報を算出する。マクロブロックによっては動きベクトルが算出不能である場合もあり、動きベクトルを算出不能であるマクロブロックをイントラマクロブロックと呼ぶ。(f)はマクロブロックに区画された画像とマクロブロックごとの動きベクトルを示す。   FIG. 3 illustrates the input image and the output result of the motion vector calculation unit 201. The motion vector calculation unit is based on the input of the continuous image from the continuous image region 301, and the previous image (d) and the current image (e) having a two-dimensional value called a motion vector for each 16 × 16 pixel section called a macroblock. And position difference information is calculated. In some macroblocks, a motion vector cannot be calculated, and a macroblock incapable of calculating a motion vector is called an intra macroblock. (f) shows an image partitioned into macroblocks and a motion vector for each macroblock.

図4は、本実施形態による、画像処理プロセッサ20の動きベクトル品質判定部202、によって実行される、画像の動き量が算出可能かどうかを判定するためのフローチャートを示している。   FIG. 4 is a flowchart for determining whether or not the motion amount of an image can be calculated, which is executed by the motion vector quality determination unit 202 of the image processor 20 according to the present embodiment.

ステップS501〜S502において、動きベクトル品質判定部202は動きベクトル算出部201の処理の結果得られる画像中のマクロブロック毎の動きベクトルを読みだす。マクロブロックによっては動きベクトルを持たないイントラマクロブロックである場合があり、また、撮影中に動きのある撮影対象がフレームインする場合があるため、画像の上下左右端のマクロブロックおよびイントラマクロブロックは画像の動き量の算出には用いない。ステップS503において、動き量の算出に必要な一定数以上のマクロブロックが存在するか判定する。ステップS503において動き量の算出に必要な一定数以上のマクロブロックが存在しないと判定された場合、ステップS508において対象の画像の動き量は算出不能であると判定する。   In steps S501 to S502, the motion vector quality determination unit 202 reads a motion vector for each macroblock in the image obtained as a result of the processing of the motion vector calculation unit 201. Some macroblocks may be intra macroblocks that do not have motion vectors, and moving subjects that are moving during shooting may frame in, so the macroblocks and intra macroblocks at the top, bottom, left, and right edges of the image are It is not used for calculating the amount of motion of an image. In step S503, it is determined whether there are a predetermined number or more of macroblocks necessary for calculating the motion amount. If it is determined in step S503 that there are no more than a certain number of macroblocks necessary for calculating the motion amount, it is determined in step S508 that the motion amount of the target image cannot be calculated.

ステップS503において動き量の算出に必要な一定数以上のマクロブロックが存在すると判定された場合、対象の画像の動き量は算出可能であると判定し、ステップS504〜S505において画像中の上下左右端以外かつイントラマクロブロックでないマクロブロックの動きベクトルの平均値μおよび、分散値ρを算出する。平均値μから±ρの範囲を超えた動きベクトルを持つマクロブロックについては、映像のノイズや撮影中に動きのある撮影対象がフレームインしたことによるものであると判断し、画像の動き量の算出には用いない。ステップS506において、動き量の算出の対象となる、動きベクトルがμ±ρの範囲にあるマクロブロックが一定数以上存在するか判定する。ステップS506において動き量の算出に必要な一定数以上のマクロブロックが存在しないと判定された場合、ステップS508において対象の画像の動き量は算出不能であると判定する。ステップS506において動き量の算出に必要な一定数以上のマクロブロックが存在すると判定された場合、ステップS507において対象の画像の動き量は算出可能であると判定する。   If it is determined in step S503 that there is a certain number or more of macroblocks necessary for calculating the amount of motion, it is determined that the amount of motion of the target image can be calculated, and in steps S504 to S505, the top, bottom, left, and right edges of the image. The average value μ and the variance value ρ of the motion vectors of the macroblocks other than the non-intra macroblock are calculated. For macroblocks with motion vectors that exceed the average value μ to ± ρ, it is determined that this is due to noise in the video or a moving subject that is moving during shooting. Not used for calculation. In step S506, it is determined whether or not there are a certain number or more of macroblocks whose motion vectors are in the range of μ ± ρ, which are targets of motion amount calculation. If it is determined in step S506 that there are no more than a certain number of macroblocks necessary for calculating the motion amount, it is determined in step S508 that the motion amount of the target image cannot be calculated. If it is determined in step S506 that there is a certain number or more of macroblocks necessary for calculating the motion amount, it is determined in step S507 that the motion amount of the target image can be calculated.

図5は本実施形態による、画像処理プロセッサ20の動き量算出部203、によって実行される、画像の動き量を算出するためのフローチャートを示している。
動きベクトル品質判定部202によって画像の動き量が算出可能であると判定された場合に、動き量検出部203は画像の動き量の算出を行う。ステップS511において、動き量検出部203は画像中のマクロブロック毎の動きベクトルを読みだす。ステップS511において、マクロブロックによっては動きベクトルを持たないイントラマクロブロックである場合があり、また、撮影中に動きのある撮影対象がフレームインする場合があるため、画像の上下左右端のマクロブロックおよびイントラマクロブロックは画像の動き量の算出には用いない。ステップS512において画像中の上下左右端以外かつイントラマクロブロックでないマクロブロックの動きベクトルの平均値μおよび、分散値ρを算出する。平均値μから±ρの範囲を超えた動きベクトルを持つマクロブロックについては、映像のノイズや撮影中に動きのある撮影対象がフレームインしたことによるものであると判断し、画像の動き量の算出には用いない。ステップS513〜S514において、動きベクトルがμ±ρの範囲にあるマクロブロックの動きベクトルの平均値μ'を算出し、μ'を対象の画像の動き量とする。
FIG. 5 shows a flowchart for calculating the motion amount of the image, which is executed by the motion amount calculation unit 203 of the image processor 20 according to the present embodiment.
When the motion vector quality determination unit 202 determines that the motion amount of the image can be calculated, the motion amount detection unit 203 calculates the motion amount of the image. In step S511, the motion amount detection unit 203 reads a motion vector for each macroblock in the image. In step S511, depending on the macro block, there may be an intra macro block having no motion vector, and a moving shooting target may be framed in during shooting. Intra macroblocks are not used to calculate the amount of motion of an image. In step S512, an average value μ and a variance value ρ of macroblocks other than the top, bottom, left, and right edges in the image and not an intra macroblock are calculated. For macroblocks with motion vectors that exceed the average value μ to ± ρ, it is determined that this is due to noise in the video or a moving subject that is moving during shooting. Not used for calculation. In steps S513 to S514, the average value μ ′ of the motion vectors of the macroblocks whose motion vectors are in the range of μ ± ρ is calculated, and μ ′ is set as the motion amount of the target image.

図6は本実施形態による、画像処理プロセッサ20の動き量算出補完部204、によって実行される、画像の動き量を算出するためのフローチャートを示している。
動きベクトル品質判定部202によって画像の動き量は算出不能であると判定された場合に、動き量算出補完部204は画像の動き量の算出を行う。撮影時、動き量の算出が不能となるような被写体を撮影した場合においても、撮影者は一定の速度で電子機器1を平行移動させていると仮定し、前画像において算出した動き量を用いて処理を継続する。ステップS520〜S521において、前画像において動き量検出部203または動き量算出補完部204にて算出された動き量を読み出し、現画像の動き量として適用する。
FIG. 6 shows a flowchart for calculating the motion amount of the image, which is executed by the motion amount calculation complementing unit 204 of the image processor 20 according to this embodiment.
When the motion vector quality determination unit 202 determines that the image motion amount cannot be calculated, the motion amount calculation complementing unit 204 calculates the image motion amount. Even when shooting a subject whose motion amount cannot be calculated at the time of shooting, the photographer assumes that the electronic device 1 is translated at a constant speed and uses the motion amount calculated in the previous image. To continue processing. In steps S520 to S521, the motion amount calculated by the motion amount detection unit 203 or the motion amount calculation supplement unit 204 in the previous image is read and applied as the motion amount of the current image.

図7は本実施形態による、画像処理プロセッサ20の画像選択部205、によって実行される、連続画像から結合対象となる画像を選択し、結合対象画像間の位置関係を
算出するためのフローチャートを示している。
FIG. 7 shows a flowchart for selecting the images to be combined from the continuous images and calculating the positional relationship between the images to be combined, executed by the image selection unit 205 of the image processor 20 according to the present embodiment. ing.

画像選択部205は連続画像から結合対象となる画像の選択、および動き量算出部203、および動き量算出補完部204、によって算出された画像の動き量をもとに結合対象画像間の位置関係を示す動き量累計値の算出を行う。ステップS530にて連続画像の先頭画像を取得する。ステップS531にて動き量累計値を初期化する。先頭画像についてはステップS537にて結合対象画像として選択される。以降の画像についてはステップS532にて動き量累計値を初期化する。ステップS533〜S535にて、次画像および画像の動き量を取得し、画像の動き量を動き量累計値に加算する。ステップS536〜S537にて、動き量累計値が一定値Vs以上となった時点での画像が結合対象として選択される。Vsは結合対象の画像の大きさと画像の結合に必要な画像間の部分的に重なり合った領域の大きさの差分に対応する。動き量累計値がVsに満たない場合は再度ステップS533に戻り、次画像を取得する。ステップS538にて、期待する一定枚数以上の画像を選択したと判断した場合に処理が完了する。   The image selection unit 205 selects the images to be combined from the continuous images, and the positional relationship between the images to be combined based on the motion amounts calculated by the motion amount calculation unit 203 and the motion amount calculation complement unit 204. Is calculated. In step S530, the head image of the continuous image is acquired. In step S531, the accumulated motion amount is initialized. The first image is selected as a combination target image in step S537. For the subsequent images, the motion amount cumulative value is initialized in step S532. In steps S533 to S535, the next image and the amount of motion of the image are acquired, and the amount of motion of the image is added to the accumulated amount of motion. In steps S536 to S537, an image at the time when the accumulated motion amount becomes equal to or greater than the predetermined value Vs is selected as a combination target. Vs corresponds to the difference between the size of the images to be combined and the size of the partially overlapped area between the images necessary for combining the images. If the accumulated motion amount is less than Vs, the process returns to step S533 again to acquire the next image. If it is determined in step S538 that more than the expected number of images have been selected, the process is completed.

図8は本実施形態による、画像処理プロセッサ20の動き量算出部203、および動き量算出補完部204、によって実行される連続画像の動き量の算出、および画像選択部205、によって実行される結合対象の画像の選択および動き量累計値の算出、および画像結合部206によって実行される画像の結合を図示したものである。   FIG. 8 shows the calculation of the motion amount of the continuous image executed by the motion amount calculation unit 203 and the motion amount calculation complement unit 204 of the image processor 20 and the combination executed by the image selection unit 205 according to this embodiment. FIG. 10 illustrates the selection of an image to be processed, the calculation of a cumulative amount of motion, and the image combination performed by the image combining unit 206.

図中(g)は、連続画像および動き量算出部203、および動き量算出補完部204、によって実行される連続画像の動き量算出結果について図示したものである。図中(h)〜(j)は、画像選択部205によって実行される結合対象の画像の選択結果を図示したものである。図中(k)は、画像選択部205によって実行される動き量累計値の算出結果について図示したものである。図中(l)は、画像結合部206によって実行される画像の結合結果となる結合画像について図示したものである。   In the figure, (g) illustrates the motion amount calculation result of the continuous image executed by the continuous image and motion amount calculation unit 203 and the motion amount calculation complement unit 204. In the figure, (h) to (j) illustrate the selection results of the images to be combined, which are executed by the image selection unit 205. In the drawing, (k) illustrates the calculation result of the accumulated motion amount executed by the image selection unit 205. In the drawing, (l) illustrates a combined image that is a result of combining images executed by the image combining unit 206.

以上説明した実施形態は典型例として挙げたに過ぎず、その各実施形態の構成要素を組み合わせること、その変形およびバリエーションは当業者にとって明らかであり、当業者であれば本発明の原理および請求の範囲に記載した発明の範囲を逸脱することなく上述の実施形態の種々の変形を行えることは明らかである。   The embodiments described above are merely given as typical examples, and it is obvious to those skilled in the art to combine the components of each embodiment, and variations and variations thereof will be apparent to those skilled in the art. Obviously, various modifications may be made to the above-described embodiments without departing from the scope of the invention as set forth in the scope.

1 電子機器
20 画像処理プロセッサ
30 記録部
40 ユーザ・インタフェース
201 動きベクトル算出部
202 動きベクトル品質判定部
203 動き量算出部
204 動き量算出補完部
205 画像選択部
206 画像結合部
DESCRIPTION OF SYMBOLS 1 Electronic device 20 Image processor 30 Recording part 40 User interface 201 Motion vector calculation part 202 Motion vector quality determination part 203 Motion amount calculation part 204 Motion amount calculation complement part 205 Image selection part 206 Image combination part

Claims (4)

カメラ・モジュールにて撮影した連続画像からパノラマ画像を合成するための装置であって、
前記連続画像のマクロブロックごとの位置差分情報を取得する動きベクトル算出手段と、
該動きベクトル算出手段が取得した前記位置差分情報の有用性を、前記連続画像のマクロブロックのうちで画像の動き量の算出に使用可能とするものの個数に基づき判断する動きベクトル品質判定手段と、
該動きベクトル品質判定手段によって画像の動き量算出可能と判断された場合に画像の動き量を算出する動き量算出手段と、
前記動き量を元に処理対象の画像を選択する画像選択手段と、
該画像選択手段が選択する部分的に重なり合った複数の画像を用いて重なり合う部分を結合し1枚の画像に合成する画像結合手段と、
を含む
ことを特徴とするパノラマ撮影装置。
A device for synthesizing panoramic images from continuous images taken by a camera module,
Motion vector calculating means for acquiring position difference information for each macroblock of the continuous image;
Motion vector quality determination means for determining the usefulness of the position difference information acquired by the motion vector calculation means based on the number of macroblocks of the continuous image that can be used for calculating the amount of motion of the image ;
A motion amount calculating means for calculating the motion amount of the image when the motion vector quality determining means determines that the motion amount of the image can be calculated;
Image selection means for selecting an image to be processed based on the amount of movement;
Image combining means for combining overlapping portions using a plurality of partially overlapping images selected by the image selecting means and combining them into one image;
A panoramic photographing apparatus characterized by comprising:
前記動き量算出手段は、前記連続画像のマクロブロックごとの動きベクトルを元に画像間の動き量を算出し、
前記画像選択手段は、前記動き量算出手段が算出した一定の動き量が累計された場合に、前記結合対象の画像を選択する、
ことを特徴とする請求項1に記載のパノラマ撮影装置。
The motion amount calculating means calculates a motion amount between images based on a motion vector for each macroblock of the continuous image,
The image selecting means selects the image to be combined when the certain amount of motion calculated by the motion amount calculating means is accumulated;
The panorama photographing apparatus according to claim 1.
前記動き量算出手段は、前記動き量を算出する際に、マクロブロックごとの動きベクトルの平均値を求め、平均値に対して一定以上の誤差を持つ動きベクトルは動き量の算出対象より除外する、
ことを特徴とする請求項1に記載のパノラマ撮影装置。
When calculating the amount of motion, the motion amount calculation means obtains an average value of motion vectors for each macroblock, and excludes motion vectors having a certain error from the average value from motion amount calculation targets. ,
The panorama photographing apparatus according to claim 1.
前記動き量算出手段は、前記動き量を算出する際に、有効な動きベクトルが少なく動き量が算出不能である場合に、以前の画像において算出した動き量を再利用することによって算出不能であった動き量を補完する、
ことを特徴とする請求項1に記載のパノラマ撮影装置。
When calculating the motion amount, the motion amount calculation means cannot calculate the motion amount by reusing the motion amount calculated in the previous image when there are few effective motion vectors and the motion amount cannot be calculated. To compensate for the amount of movement
The panorama photographing apparatus according to claim 1.
JP2013105782A 2013-05-20 2013-05-20 Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus Expired - Fee Related JP5598569B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013105782A JP5598569B2 (en) 2013-05-20 2013-05-20 Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013105782A JP5598569B2 (en) 2013-05-20 2013-05-20 Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2008193207A Division JP5338174B2 (en) 2008-07-28 2008-07-28 Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus

Publications (2)

Publication Number Publication Date
JP2013219787A JP2013219787A (en) 2013-10-24
JP5598569B2 true JP5598569B2 (en) 2014-10-01

Family

ID=49591340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013105782A Expired - Fee Related JP5598569B2 (en) 2013-05-20 2013-05-20 Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus

Country Status (1)

Country Link
JP (1) JP5598569B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277765B (en) * 2020-03-11 2021-09-14 甘肃省科学院 Matrix type system for acquiring digitization of oversized picture by utilizing WiFi link

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3421859B2 (en) * 1992-10-23 2003-06-30 ソニー株式会社 Method and apparatus for detecting motion vector of panoramic image creating apparatus
JP2001359101A (en) * 2000-06-09 2001-12-26 Toshiba Corp Flashback processing method and digital video signal processing unit and digital broadcast receiver employing this method
JP2006270676A (en) * 2005-03-25 2006-10-05 Fujitsu Ltd Panorama image generating program, panorama image generating apparatus, and panorama image generation method
WO2008087721A1 (en) * 2007-01-18 2008-07-24 Fujitsu Limited Image synthesizer, image synthesizing method, and program

Also Published As

Publication number Publication date
JP2013219787A (en) 2013-10-24

Similar Documents

Publication Publication Date Title
JP5338174B2 (en) Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus
TWI387330B (en) Imaging apparatus provided with panning mode for taking panned image
JP4293053B2 (en) Imaging apparatus and method
JP4900401B2 (en) Imaging apparatus and program
TWI386040B (en) Image pickup apparatus equipped with function of detecting image shaking
WO2004062270A1 (en) Image processor
TWI420901B (en) Image capturing device, image capturing method and image capturing program
KR101393560B1 (en) Image processing device, image processing method and recording medium
TW201007617A (en) Image processing device and program
JP2008289095A (en) Imaging apparatus, display method and program
JP6656035B2 (en) Image processing apparatus, imaging apparatus, and control method for image processing apparatus
WO2010100677A1 (en) Image processing device and shake amount calculation method
JP2015053741A (en) Image reproduction device
JP4947576B2 (en) Imaging apparatus, blur correction method, and imaging method
JP4742813B2 (en) Image processing apparatus and image processing method
JP5696419B2 (en) Image processing apparatus and method, and program
JP2009053786A (en) Image processor, imaging apparatus, image processing method, and program
JP5598569B2 (en) Panorama photographing apparatus and method, camera unit equipped with panoramic photographing apparatus
JP2004222025A (en) Electronic camera
JP5788197B2 (en) Image processing apparatus, image processing method, image processing program, and imaging apparatus
JP5021370B2 (en) Imaging apparatus, display method, and program
JP6330283B2 (en) Subject tracking device, imaging device, and subject tracking program
JP2001223942A (en) Image pickup device, control method for the image pickup device, image pickup method for panorama synthesis image, and medium supplying control program for the image pickup device
JP5067323B2 (en) Imaging apparatus and program
JP5613145B2 (en) Imaging apparatus and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140225

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140423

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140728

R150 Certificate of patent or registration of utility model

Ref document number: 5598569

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees