JP2010263546A - Panoramic image compositing method and device - Google Patents
Panoramic image compositing method and device Download PDFInfo
- Publication number
- JP2010263546A JP2010263546A JP2009114431A JP2009114431A JP2010263546A JP 2010263546 A JP2010263546 A JP 2010263546A JP 2009114431 A JP2009114431 A JP 2009114431A JP 2009114431 A JP2009114431 A JP 2009114431A JP 2010263546 A JP2010263546 A JP 2010263546A
- Authority
- JP
- Japan
- Prior art keywords
- image
- camera
- panoramic
- panoramic image
- cut
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Studio Circuits (AREA)
- Studio Devices (AREA)
- Stereoscopic And Panoramic Photography (AREA)
Abstract
Description
本発明は複数の画像を合成してパノラマ画像を生成する方法および装置に関する。 The present invention relates to a method and apparatus for generating a panoramic image by combining a plurality of images.
複数の画像を合成してパノラマ画像を生成する画像処理装置が特許文献1に開示されている。この画像処理装置は、使用可能なメモリ量以下で複数の画像が合成可能となるように各画像の最大の縮小率を決定しようとするものである(特許文献1の段落0022参照)。
An image processing apparatus that generates a panoramic image by combining a plurality of images is disclosed in
ところで、近年、表示部を設けたハウジングと操作部を設けたハウジングとが別々に設けられ、これらが相対的に移動可能あるいは回転可能に連結された携帯電話機が普及している。このような携帯電話機のなかには、表示部のハウジングが90°回転して縦長画面と横長画面とを切り替えることができるもの、あるいは表示部のハウジングを裏返して操作部のハウジングと重ねた状態で、通常のデジタルカメラのような操作性を狙ったものも市販されている。このようなカメラ付き携帯電話機では、種々の使用形態でカメラ撮影が行われると想定する必要がある。 By the way, in recent years, a mobile phone in which a housing provided with a display portion and a housing provided with an operation portion are separately provided, and these are connected so as to be relatively movable or rotatable has become widespread. Among such mobile phones, the display housing can be rotated 90 ° to switch between a portrait screen and a landscape screen, or the display housing is turned upside down and overlapped with the operation housing. There are also products that are aimed at operability such as digital cameras. In such a camera-equipped mobile phone, it is necessary to assume that camera photography is performed in various usage forms.
しかしながら、特許文献1に開示されたパノラマ画像合成では、使用可能メモリ量に応じて画像を一律に縮小するだけであるために、カメラの使用形態によってはパノラマ画像の合成に最も適した画像縮小にならない場合がある。その結果として、特許文献1の方法では、メモリの十分な有効利用を達成できないという課題が依然として残っている。
However, since the panoramic image composition disclosed in
そこで、本発明の目的は、カメラの使用形態に関わらず、パノラマ画像合成の際の使用メモリをより有効に利用できるパノラマ画像合成方法および装置を提供することにある。 Accordingly, an object of the present invention is to provide a panoramic image synthesizing method and apparatus capable of more effectively using a memory used for synthesizing a panoramic image regardless of the usage form of the camera.
本発明によるパノラマ画像合成装置は、長方形状の有効画素領域を有するカメラの出力画像からパノラマ画像を合成する装置であって、切り出しサイズに従って、前記カメラ出力画像から第1画像を切り出す画像切出手段と、前記第1画像をパノラマ画像の縦方向に関して所定画素数となるように縮小することで第2画像を生成する画像縮小手段と、メモリを利用して前記第2画像からパノラマ画像を合成するパノラマ画像合成手段と、前記カメラの向きに応じて、少なくとも前記カメラ出力画像から切り出し可能な最大正方形領域を示す前記切り出しサイズを設定する制御手段と、を有することを特徴とする。 The panorama image composition device according to the present invention is a device for synthesizing a panorama image from an output image of a camera having a rectangular effective pixel area, and an image cutout means for cutting out a first image from the camera output image according to a cutout size. And the image reduction means for generating the second image by reducing the first image so as to have a predetermined number of pixels in the vertical direction of the panorama image, and the panorama image is synthesized from the second image using a memory. Panoramic image synthesizing means and control means for setting the cut-out size indicating at least a maximum square area that can be cut out from the camera output image according to the orientation of the camera.
本発明によるパノラマ画像合成方法は、長方形状の有効画素領域を有するカメラの出力画像からパノラマ画像を合成する方法であって、前記カメラの向きに応じて、少なくとも前記カメラ出力画像から切り出し可能な最大正方形領域を示す切り出しサイズを設定し、画像切出手段が前記切り出しサイズに従って、前記カメラ出力画像から第1画像を切り出し、画像縮小手段が前記第1画像をパノラマ画像の縦方向に関して所定画素数となるように縮小することで第2画像を生成し、パノラマ画像合成手段がメモリを利用して前記第2画像からパノラマ画像を合成する、ことを特徴とする。 A panoramic image synthesis method according to the present invention is a method for synthesizing a panoramic image from an output image of a camera having a rectangular effective pixel area, and is a maximum that can be cut out from at least the camera output image according to the orientation of the camera. A cutout size indicating a square area is set, an image cutout unit cuts out a first image from the camera output image according to the cutout size, and an image reduction unit sets the first image to a predetermined number of pixels in the vertical direction of the panoramic image. The second image is generated by being reduced so that the panoramic image synthesizing unit synthesizes the panoramic image from the second image using a memory.
本発明によるプログラムは、長方形状の有効画素領域を有するカメラの出力画像からパノラマ画像を合成する装置としてプログラム制御プロセッサを機能させるプログラムであって、切り出しサイズに従って、前記カメラ出力画像から第1画像を切り出す画像切出手段と、前記第1画像をパノラマ画像の縦方向に関して所定画素数となるように縮小することで第2画像を生成する画像縮小手段と、メモリを利用して前記第2画像からパノラマ画像を合成するパノラマ画像合成手段と、前記カメラの向きに応じて、少なくとも前記カメラ出力画像から切り出し可能な最大正方形領域を示す前記切り出しサイズを設定する制御手段と、を有するパノラマ画像合成装置として前記プログラム制御プロセッサを機能させることを特徴とする。 A program according to the present invention is a program for causing a program control processor to function as a device for synthesizing a panoramic image from an output image of a camera having a rectangular effective pixel area, and the first image is extracted from the camera output image according to a cut-out size. An image cutting means for cutting, an image reducing means for generating a second image by reducing the first image so as to have a predetermined number of pixels in the vertical direction of the panoramic image, and a second image using the memory. A panoramic image synthesizing apparatus comprising panoramic image synthesizing means for synthesizing a panoramic image, and control means for setting the cutout size indicating at least the maximum square area that can be cut out from the camera output image according to the orientation of the camera. The program control processor is made to function.
本発明により、カメラの使用形態に関わらず、パノラマ画像合成の際の使用メモリをより有効に利用できる。 According to the present invention, the memory used for panoramic image composition can be used more effectively regardless of the usage form of the camera.
1.第1実施形態
図1に示すように、撮像装置としてのカメラ101には2次元フォトセンサからなるカメラセンサ102が設けられ、その有効画素領域の撮像信号が、たとえば一定時間間隔(フレーム間隔)で画像メモリ102に格納される。画像切出部103は、指定されたサイズの画像を画像メモリ102に格納されている画像データから順次切り出し画像縮小部104へ出力する。画像縮小部104は、切り出された画像を指定された間引き率に従って縮小し、複数の縮小画像を動画としてパノラマ合成エンジン105へ出力する。
1. First Embodiment As shown in FIG. 1, a
パノラマ合成エンジン105はメモリ106を使用して複数の縮小画像を合成してパノラマ画像を生成し、画像符号化部107へ出力する。パノラマ画像合成は一般的な処理方法を有するものとする。たとえば入力画像を動画として扱い、動画の各フレーム間の非共通部分を継ぎ足して所定サイズの合成結果を静止画像として生成する。また、一般に、パノラマ画像の画素数が多くなればパノラマ画像生成に必要なメモリ106の容量も大きくなる。
The
画像符号化部107は、所定の符号化方式によりパノラマ画像データを符号化し、表示部(図示せず。)などへ出力する。
The
画像処理制御部108は、パノラマ合成エンジン105の入力許容画像サイズおよび後述するカメラ101の向き(スタイル)に依存して、画像切出部103の切出サイズ、画像縮小部104の間引き率などのパラメータを決定する。具体的には後述するように、カメラ101の向きに応じて切出サイズを決定し、パノラマ合成エンジン105の入力許容画像サイズに応じて間引き率を決定する。さらに、画像処理制御部108はパノラマ合成エンジン105および画像符号化部107の動作制御を行う。
The image
2.一実施例
以下、カメラ機能付き携帯電話機を一例として用い、視野角360°のパノラマ画像を合成する場合を詳細に説明する。
2. One Example Hereinafter, a case where a panoramic image with a viewing angle of 360 ° is synthesized will be described in detail using a mobile phone with a camera function as an example.
図2に示すように、この例における携帯電話機は、上側ハウジング10と下側ハウジング20とが相対的に回動可能に連結された構成を有し、上側ハウジング10に表示部11が設けられている。下側ハウジング20の裏側には、下側ハウジング20の長手方向と有効画素領域の長手方向(矢印S方向)とが一致するようにカメラ12が搭載されているものと仮定する。
As shown in FIG. 2, the mobile phone in this example has a configuration in which an
図2(A)は、上側ハウジング10と下側ハウジング20とを開いた状態で、表示部11の長手方向が下側ハウジング20の長手方向(カメラの矢印S方向)と一致している姿勢を示し、これをスタイル1とする。図2(B)は、上側ハウジング10を開いて、更に下側ハウジング20に対して90°回転させた状態で、表示部11の長手方向が下側ハウジング20の長手方向(カメラの矢印S方向)と直交している姿勢を示し、これをスタイル2とする。いずれのスタイルであっても、ユーザは下側ハウジング20を手で持ち、カメラ12を被写体へ向け、表示部11の被写体画像を見ながらシャッタボタンを押すという操作が行われる。
FIG. 2A shows a posture in which the longitudinal direction of the
さらに、この携帯電話機は、図3に示すように、上側ハウジング10の表示部11を表側に露出させた状態で下側ハウジング20と重ねて折り畳むことができるものとする。この状態は、表示部11の長手方向が下側ハウジング20の長手方向(カメラの矢印S方向)と一致して重なっており、表示部11とカメラ12とがほぼ同じ視線上で反対方向に向いている姿勢を示し、これをスタイル3とする。スタイル3では、ユーザは、通常のデジタルカメラのように、重なったハウジングの上下を手で持ち、カメラ12を被写体へ向け、表示部11の横長画面を見ながらシャッタボタンを押すという操作が行われる。
Further, as shown in FIG. 3, this mobile phone can be folded and overlapped with the
この携帯電話機は、現在の姿勢がどのスタイルであるかを検出する手段を有しており、このスタイル検出手段自体は周知の方式を採用すればよい。後述するように、本実施例によれば、携帯電話機のカメラの向き(スタイル)に応じて適切な画像切り出しおよび画像縮小を行うことができ、メモリを効率的に使用しながらパノラマ画像を合成することができる。 This mobile phone has means for detecting which style the current posture is, and the style detecting means itself may adopt a known method. As will be described later, according to this embodiment, appropriate image cutout and image reduction can be performed according to the orientation (style) of the mobile phone camera, and a panoramic image is synthesized while using the memory efficiently. be able to.
また、実施例の前提条件として、カメラセンサ102の有効画素数は横(長辺)方向に1632ピクセル、縦(短辺)方向に1224ピクセル、水平(横)画角57°、垂直(縦)画角44°、カメラレンズの最大ズーム倍率は2.55倍、パノラマ合成エンジン105の入力画像(合成元の画像)の縦方向許容最大画素数は480、画像符号化部107はJPEG(Joint Photographic Experts Group)エンコーダであるとする。
As a precondition of the embodiment, the effective number of pixels of the
2.1)例1
ここでは、図2(A)あるいは図2(B)に示すスタイル1またはスタイル2でカメラ101が使用されたものとする。
2.1) Example 1
Here, it is assumed that the
図4において、カメラセンサ102が出力する有効画素領域の原画像201は、図2に示すようにカメラセンサ102が縦向き(矢印S方向)であるから、横1224×縦1632(ピクセル)となる。
In FIG. 4, the
画像切出部103は、画像処理制御部108からのサイズ設定に従って、原画像201から最大の正方形画像202を切り出す。この場合、最大正方形画像202は画素数1224×1224となる。したがって、横方向の垂直画角(44°)を変化させることなく画像を切り出すことができる。
The
続いて、画像縮小部104は、画像処理制御部108からの間引き率に従って、画素数1224×1224の正方形画像202をパノラマ画像合成エンジン105により許容される画素数に縮小する。パノラマ画像合成エンジン105により許容される画素数は、メモリ106の容量と画像符号化部107の符号化処理可能な最大画像サイズとに依存する。ここでは、パノラマ画像合成エンジン105の縦方向の許容される最大画素数は480であるから、画素数1224×1224の正方形画像202は画素数480×480の縮小画像203に縮小される(倍率2.55)。縮小するだけなので横方向の画角は44°に保持される。
Subsequently, the
このようにして、携帯電話機のカメラをパンすることでN枚の縮小画像203が画像縮小部104からパノラマ画像合成エンジン105へ動画として出力される。パノラマ画像合成エンジン105において360°のパノラマ画像を生成するためには、N=360°÷画角44°=約8.18となり、8.18枚の縮小画像(480×480)が必要となる。この場合、パノラマ合成画像の横方向の画素数は、480画素×8.18枚=3926画素である。
In this way, by panning the camera of the mobile phone, N reduced
したがって、一般に、図2(A)あるいは図2(B)に示すスタイル1またはスタイル2の時、視野角がθ°であれば、画像処理制御部108は、縮小画像の枚数Nをθ/44で求め、現在のスタイルに応じて画像切取サイズを、パノラマ画像合成エンジン105により許容される画素数が得られるように画像間引き率をそれぞれ決定し、画像切出部103および画像縮小部104を制御する。
Therefore, generally, in the case of
2.2)例2
図2(A)あるいは図2(B)に示すスタイル1またはスタイル2でカメラが使用された場合、上記例1とは異なり、原画像をそのまま縮小する上記条件にあった縮小画像を生成することも可能である。
2.2) Example 2
When the camera is used in
図5において、カメラセンサ102が出力する有効画素領域の原画像301は、図2に示すようにカメラセンサ102が縦向き(矢印S方向)であるから、横1224×縦1632(ピクセル)となる。
In FIG. 5, the original image 301 of the effective pixel region output from the
本例2によれば、画像切出部103による切り出しを行わず、画像縮小部104により原画像301をパノラマ合成エンジン105に入力可能な画素数まで直接縮小する。すなわち、画像縮小部104は、画像処理制御部108からの間引き率(倍率3.4)に従って、画素数1224×1632の原画像301をパノラマ画像合成エンジン105により許容される画素数360×480の縮小画像302に縮小する。縮小するだけなので横方向の画角は44°に保持される。
According to the second example, the
このようにして、携帯電話機のカメラをパンすることでN枚の縮小画像302が画像縮小部104からパノラマ画像合成エンジン105へ動画として出力される。パノラマ画像合成エンジン105において360°のパノラマ画像を生成するためには、N=360°÷画角44°=約8.18となり、8.18枚の縮小画像(360×480)が必要となる。この場合、パノラマ合成画像の横方向の画素数は、360画素×8.18枚=2945画素である。
In this way, by panning the camera of the mobile phone, N reduced
したがって、一般に、図2(A)あるいは図2(B)に示すスタイル1またはスタイル2の時、視野角がθ°であれば、画像処理制御部108は、縮小画像の枚数Nをθ/44で求め、パノラマ画像合成エンジン105により許容される画素数が得られるように画像間引き率を決定し、画像縮小部104を制御する。
Therefore, generally, in the case of
2.3)例3
例3では、図3に示すスタイル3でカメラが使用され、横長画面の原画像が撮像されたものとする。
2.3) Example 3
In Example 3, it is assumed that the camera is used in the style 3 shown in FIG. 3 and an original image of a landscape screen is captured.
図6において、カメラセンサ102が出力する有効画素領域の原画像401は、図3に示すようにカメラセンサ102が横向き(矢印S方向)であるから、横1632×縦1224(ピクセル)となる。
In FIG. 6, the original image 401 of the effective pixel area output from the
画像切出部103は、画像処理制御部108からのサイズ設定に従って、原画像401から最大の正方形画像402を切り出す。この場合、最大正方形画像402は画素数1224×1224となる。横方向がサイズ制限されたので、この場合の水平画角は原画像の57°から42.75°に変化する。
The
続いて、画像縮小部104は、画像処理制御部108からの間引き率に従って、画素数1224×1224の正方形画像402をパノラマ画像合成エンジン105により許容される画素数に縮小する。ここでは、パノラマ画像合成エンジン105の縦方向の許容される最大画素数は480であるから、画素数1224×1224の正方形画像202は画素数480×480の縮小画像403に縮小される(倍率2.55)。縮小するだけなので横方向の画角は42.75°に保持される。
Subsequently, the
このようにして、携帯電話機のカメラをパンすることでN枚の縮小画像403が画像縮小部104からパノラマ画像合成エンジン105へ動画として出力される。パノラマ画像合成エンジン105において360°のパノラマ画像を生成するためには、N=360°÷画角42.75°=約8.42となり、8.42枚の縮小画像(480×480)が必要となる。この場合、パノラマ合成画像の横方向の画素数は、480画素×8.42枚=4042画素である。
In this way, by panning the camera of the mobile phone, N reduced
したがって、一般に、図3に示すスタイル3の時、視野角がθ°であれば、画像処理制御部108は、縮小画像の枚数Nをθ/42.75で求め、現在のスタイルに応じて画像切取サイズを、パノラマ画像合成エンジン105により許容される画素数が得られるように画像間引き率をそれぞれ決定し、画像切出部103および画像縮小部104を制御する。
Therefore, generally, in the case of style 3 shown in FIG. 3, if the viewing angle is θ °, the image
3.カメラ機能付き携帯通信端末
上述した実施例によれば、携帯電話機のカメラの向き(スタイル)に応じて、適切な画像切り出しおよび画像縮小を行うことで、所望の視野角のパノラマ画像の合成とメモリ節約とを両立させることができる。以下、上述した実施例によるパノラマ画像合成装置を内蔵した携帯通信端末について説明する。
3. Mobile communication terminal with camera function According to the above-described embodiment, the composition and memory of a panoramic image with a desired viewing angle are obtained by performing appropriate image cutout and image reduction according to the orientation (style) of the camera of the mobile phone. Both savings can be achieved. Hereinafter, a portable communication terminal incorporating the panoramic image synthesis apparatus according to the above-described embodiment will be described.
図7において、携帯通信端末は、カメラ501、液晶ディスプレイ(LCD)等の表示部502、カメラ501の向きを検出するスタイル検出部503、キーパッドやタッチパネル等の操作部504、各種プログラムや画像データなどを格納するメモリ505、移動通信システムの基地局と無線通信を行うための無線送受信部506、および、携帯通信端末の各種機能を実現するための制御部507を有する。制御部507は、CPU等のプログラム制御プロセッサにより実現可能である。
7, the mobile communication terminal includes a
カメラ501はTV電話や通常の撮影を行うことができ、表示部502はカメラの映像情報などを表示可能とする。なお、メモリ505には、画像切出部103、画像縮小部104、パノラマ画像合成エンジン105、JPEGエンコーダ107および画像処理制御部108をそれぞれ実現するためのプログラムが格納され、制御部507がそれらのプログラムを必要に応じて実行することで、上述した本実施例によるパノラマ画像合成装置を実現することもできる。その他、制御部507は、無線送受信部506を介した基地局との間の通信制御を行う。
The
図7に示す携帯通信端末は、図2および図3に示すように、上側ハウジング10と下側ハウジング20とが相対的に回動可能に連結された構成を有し、上側ハウジング10に表示部502が設けられている。下側ハウジング20の裏側には、下側ハウジング20の長手方向と有効画素領域の長手方向(矢印S方向)とが一致するようにカメラ501が搭載されている。
The mobile communication terminal shown in FIG. 7 has a configuration in which an
上述したように、制御部507により画像切出部103、画像縮小部104、パノラマ画像合成エンジン105、JPEGエンコーダ107および画像処理制御部108をそれぞれ実現するためのプログラムが実行されることで、スタイル検出部503により検出されたカメラ501の向き(スタイル)に応じて、適切な画像切り出しおよび画像縮小が実行され、メモリ505を有効に使用しながら所望の視野角のパノラマ画像を合成することができる。
As described above, the
4.効果
以下、上述した実施例の効果を比較例と対比しながら説明する。
4). Effects Hereinafter, the effects of the above-described embodiments will be described in comparison with comparative examples.
4.1)比較例
図8(A)はカメラ向きが縦向きの場合を示し、カメラが出力する有効画素領域の原画像601が横1224×縦1632の画素数であるとする。この原画像601から、横長のVGA画像サイズのアスペクト比で最大となる画素数1060×796の長方形画像602を切り出す。これにより、横方向の画角は1224:1060=44:38.1の関係から38.1°に縮小される。
4.1) Comparative Example FIG. 8A shows a case where the camera orientation is vertical, and it is assumed that the original image 601 of the effective pixel area output by the camera has the number of pixels of horizontal 1224 × vertical 1632. From this original image 601, a rectangular image 602 having a pixel number of 1060 × 796 that is the maximum in the aspect ratio of the horizontally long VGA image size is cut out. Thereby, the angle of view in the horizontal direction is reduced to 38.1 ° from the relationship of 1224: 1060 = 44: 38.1.
続いて、1060×796画素数の長方形画像602を、縦方向画素数がパノラマ画像合成エンジンが許容する縦方向最大画素数480になるように縮小することで、画素数640×480の縮小画像603を得る。縮小するだけなので横方向の画角は38.1°に保持される。こうして得られた画素数640×480の複数の縮小画像603がパノラマ画像合成エンジンへ動画として入力する。パノラマ画像合成エンジンで360°のパノラマ画像を得るには、360°÷画角38.1°=約9.44の関係から約9.44枚の縮小画像(640×480)が必要となり、横方向の画素として必要となるのは640画素×9.44枚=6042画素となる。
Subsequently, the reduced image 603 having a pixel number of 640 × 480 is reduced by reducing the rectangular image 602 having a pixel number of 1060 × 796 pixels so that the number of vertical pixels becomes the maximum number of
図8(B)はカメラ向きが横向きの場合を示し、カメラが出力する有効画素領域の原画像701が横1632×縦1224の画素数であるとする。この原画像701から等価的に等倍の画像を切り出し、縦方向画素数がパノラマ画像合成エンジンが許容する縦方向最大画素数480になるように縮小する。これによって、原画像701から画素数640×480の縮小画像702を直接得ることができる。縮小するだけなので横方向の画角は57°に保持される。こうして得られた画素数640×480の複数の縮小画像702がパノラマ画像合成エンジンへ動画として入力する。パノラマ画像合成エンジンで360°のパノラマ画像を得るには、360°÷画角57°=約6.32の関係から約6.32枚の縮小画像(640×480)が必要となり、横方向の画素として必要となるのは640画素×6.32枚=4042画素となる。
FIG. 8B shows a case where the camera orientation is landscape orientation, and it is assumed that the original image 701 in the effective pixel area output from the camera has 1632 pixels × 1224 pixels. An equivalent-size image is cut out from the original image 701 and reduced so that the number of vertical pixels becomes the maximum number of
4.2)比較
図9(A)に示すように、図4に示す例1と比較例(1)とを対比すると、合成されたパノラマ画像の横方向の画素数は、比較例(1)が6042画素であるのに対して、本実施例における例1では3926画素であり、本実施例の方がより少ない画素数で360°のパノラマ撮影を実現可能である。間引き率(ズーム倍率d)は同じであるから、本実施例の方がメモリを有効に利用していることとなる。
4.2) Comparison As shown in FIG. 9A, when Example 1 shown in FIG. 4 is compared with Comparative Example (1), the number of pixels in the horizontal direction of the combined panoramic image is compared with Comparative Example (1). Is 6042 pixels, whereas in Example 1 in this embodiment, it is 3926 pixels, and this embodiment can realize 360 ° panoramic shooting with a smaller number of pixels. Since the thinning rate (zoom magnification d) is the same, this embodiment uses the memory more effectively.
同じ図9(A)において、図5に示す例2と比較例(1)とを対比すると、合成されたパノラマ画像の横方向の画素数は、比較例(1)が6042画素であるのに対して、本実施例における例2では2945画素であり、本実施例の方が更に少ない画素数で360°のパノラマ撮影を実現可能である。間引き率(ズーム倍率d)は本実施例の方が多くなっているが、それ以上にメモリを有効に利用していることがわかる。このように画質とメモリ効率とはトレードオフの関係となるので、どの要素を重視するかによって、いずれかの方式を採用すればよい。 In the same FIG. 9A, comparing Example 2 shown in FIG. 5 with Comparative Example (1), the number of pixels in the horizontal direction of the combined panoramic image is 6042 in Comparative Example (1). On the other hand, in Example 2 in this embodiment, there are 2945 pixels, and in this embodiment, 360 ° panoramic shooting can be realized with a smaller number of pixels. Although the thinning rate (zoom magnification d) is higher in the present embodiment, it can be seen that the memory is used more effectively than that. As described above, since the image quality and the memory efficiency are in a trade-off relationship, any method may be adopted depending on which element is important.
図9(B)に示すように、図6に示す例3と比較例(2)とを対比すると、画角は本実施例の例3の方が低下しており、合成されたパノラマ画像の横方向の画素数、間引き率(ズーム倍率d)およびメモリ効率に関しては本実施例の例3は比較例(2)に同等である。言い換えれば、本実施例の例3では、画像切り出しを行って画角を犠牲にしても、結果的には比較例(2)に比べて性能は劣化していない。したがって、図3に示すスタイル3の場合には、図6に示す例3を採用しても画質もメモリ効率も劣化しないことを示している。 As shown in FIG. 9B, when the example 3 shown in FIG. 6 is compared with the comparative example (2), the angle of view is lower in the example 3 of this example, and the synthesized panoramic image With respect to the number of pixels in the horizontal direction, the thinning rate (zoom magnification d), and memory efficiency, Example 3 of this example is equivalent to Comparative Example (2). In other words, in Example 3 of the present embodiment, even if the image is cut out and the angle of view is sacrificed, as a result, the performance is not deteriorated as compared with Comparative Example (2). Therefore, in the case of the style 3 shown in FIG. 3, even if the example 3 shown in FIG. 6 is adopted, neither image quality nor memory efficiency is deteriorated.
4.3)効果
図9の対比テーブルから分かるように、スタイルに応じて、原画像から最大正方形画像を切り出して縮小する方式(例1あるいは例3)を採用することで、全体として画質を劣化させることなくメモリ効率を向上させることができる。したがって、画質重視であれば、スタイルに応じて例1あるいは例3を採用することが望ましい。
4.3) Effect As can be seen from the comparison table of FIG. 9, the overall image quality deteriorates by adopting a method (Example 1 or Example 3) that cuts out and reduces the maximum square image from the original image according to the style. The memory efficiency can be improved without doing so. Therefore, if the image quality is important, it is desirable to adopt Example 1 or Example 3 depending on the style.
また、スタイル1あるいはスタイル2では原画像を切り出さずに縮小する方式(例2)を採用し、スタイル3では原画像から最大正方形画像を切り出して縮小する方式(例3)をすることで、スタイル1あるいは2の時に画質が若干劣化するもののメモリ効率をより向上させることができる。したがって、メモリ効率重視であれば、スタイルに応じて例2あるいは例3を採用することが望ましい。
Also,
5.第2実施形態
スタイル検出には種々の方式が考えられるが、本発明の第2実施形態によるパノラマ画像合成装置では加速度センサを採用する。
5). Second Embodiment Various methods are conceivable for style detection. The panoramic image synthesis apparatus according to the second embodiment of the present invention employs an acceleration sensor.
図10に示すように、カメラ801内に加速度センサ802を組み込んで重力方向を検出する。スタイル判定部803は、検出された重力方向からカメラがスタイル1あるいは2(図2)であるかスタイル3(図3)であるかを判定し、画像処理制御部108へ出力する。その他の構成および動作は、図1に示す第1実施形態と同様であるから、同一の参照番号を付して説明は省略する。
As shown in FIG. 10, an
本発明は、カメラ付きの携帯電話機などの携帯端末に適用可能である。 The present invention is applicable to a mobile terminal such as a mobile phone with a camera.
10 上側ハウジング
11 表示部
12 カメラ
20 下側ハウジング
101 カメラ
102 カメラセンサ
103 画像切出部
104 画像縮小部
105 パノラマ合成エンジン
106 メモリ
107 画像符号化部
108 画像処理制御部
DESCRIPTION OF
Claims (15)
切り出しサイズに従って、前記カメラ出力画像から第1画像を切り出す画像切出手段と、
前記第1画像をパノラマ画像の縦方向に関して所定画素数となるように縮小することで第2画像を生成する画像縮小手段と、
メモリを利用して前記第2画像からパノラマ画像を合成するパノラマ画像合成手段と、
前記カメラの向きに応じて、少なくとも前記カメラ出力画像から切り出し可能な最大正方形領域を示す前記切り出しサイズを設定する制御手段と、
を有することを特徴とするパノラマ画像合成装置。 An apparatus for synthesizing a panoramic image from an output image of a camera having a rectangular effective pixel area,
Image cutout means for cutting out the first image from the camera output image according to the cutout size;
Image reduction means for generating a second image by reducing the first image so as to have a predetermined number of pixels in the vertical direction of the panoramic image;
Panoramic image synthesis means for synthesizing a panoramic image from the second image using a memory;
Control means for setting the cut-out size indicating at least the maximum square area that can be cut out from the camera output image according to the orientation of the camera;
A panoramic image synthesizer characterized by comprising:
前記カメラの向きに応じて、少なくとも前記カメラ出力画像から切り出し可能な最大正方形領域を示す切り出しサイズを設定し、
画像切出手段が前記切り出しサイズに従って、前記カメラ出力画像から第1画像を切り出し、
画像縮小手段が前記第1画像をパノラマ画像の縦方向に関して所定画素数となるように縮小することで第2画像を生成し、
パノラマ画像合成手段がメモリを利用して前記第2画像からパノラマ画像を合成する、
ことを特徴とするパノラマ画像合成方法。 A method for synthesizing a panoramic image from an output image of a camera having a rectangular effective pixel area,
Depending on the orientation of the camera, set a cutout size that indicates at least the maximum square area that can be cut out from the camera output image,
An image cutout means cuts out the first image from the camera output image according to the cutout size,
An image reduction means generates the second image by reducing the first image so as to have a predetermined number of pixels in the vertical direction of the panoramic image,
A panoramic image synthesizing unit synthesizes a panoramic image from the second image using a memory;
A panoramic image synthesis method characterized by the above.
切り出しサイズに従って、前記カメラ出力画像から第1画像を切り出す画像切出手段と、
前記第1画像をパノラマ画像の縦方向に関して所定画素数となるように縮小することで第2画像を生成する画像縮小手段と、
メモリを利用して前記第2画像からパノラマ画像を合成するパノラマ画像合成手段と、
前記カメラの向きに応じて、少なくとも前記カメラ出力画像から切り出し可能な最大正方形領域を示す前記切り出しサイズを設定する制御手段と、
を有するパノラマ画像合成装置として前記プログラム制御プロセッサを機能させることを特徴とするプログラム。 A program for causing a program control processor to function as a device for synthesizing a panoramic image from an output image of a camera having a rectangular effective pixel area,
Image cutout means for cutting out the first image from the camera output image according to the cutout size;
Image reduction means for generating a second image by reducing the first image so as to have a predetermined number of pixels in the vertical direction of the panoramic image;
Panoramic image synthesis means for synthesizing a panoramic image from the second image using a memory;
Control means for setting the cut-out size indicating at least the maximum square area that can be cut out from the camera output image according to the orientation of the camera;
A program for causing the program control processor to function as a panoramic image synthesizing apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009114431A JP2010263546A (en) | 2009-05-11 | 2009-05-11 | Panoramic image compositing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009114431A JP2010263546A (en) | 2009-05-11 | 2009-05-11 | Panoramic image compositing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010263546A true JP2010263546A (en) | 2010-11-18 |
Family
ID=43361238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009114431A Withdrawn JP2010263546A (en) | 2009-05-11 | 2009-05-11 | Panoramic image compositing method and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010263546A (en) |
-
2009
- 2009-05-11 JP JP2009114431A patent/JP2010263546A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102385841B1 (en) | shooting mobile terminal | |
JP4448177B2 (en) | Shooting image processing switching device for videophone function | |
KR101532861B1 (en) | Generating a zoomed image | |
KR100866230B1 (en) | Method for photographing panorama picture | |
JP5348687B2 (en) | Terminal device and program | |
JP2005100084A (en) | Image processor and method | |
US20070291177A1 (en) | System, method and computer program product for providing reference lines on a viewfinder | |
JP2006303651A (en) | Electronic device | |
JP5294889B2 (en) | Imaging apparatus and imaging method | |
JP2014007653A (en) | Imaging device, imaging method, imaging system, and program | |
JP2018037859A (en) | Image processing system and control method | |
CN106664361B (en) | Information processing apparatus, information processing method, and computer-readable storage medium | |
CN111050062A (en) | Shooting method and electronic equipment | |
JP2013207680A (en) | Communication apparatus, imaging apparatus, imaging system, and program | |
JP2009005254A (en) | Video transmission apparatus and video receiving apparatus | |
US9430859B2 (en) | Image processing apparatus, image relaying apparatus, method for processing image, and method for relaying image | |
JP2004159014A (en) | Digital camera attached mobile communication terminal | |
US20130147980A1 (en) | Apparatus and associated method for face tracking in video conference and video chat communications | |
JP2016515220A (en) | Method and system for stabilization and reframing | |
JP2010263546A (en) | Panoramic image compositing method and device | |
KR100678208B1 (en) | Method for saving and displaying image in wireless terminal | |
TW202221409A (en) | Method of virtual camera movement, imaging device and electronic system | |
CA2793631C (en) | Apparatus and associated method for face tracking in video conference and video chat communications | |
JP2010278511A (en) | Electronic equipment | |
KR100664154B1 (en) | Method for displaying of picture move in wireless terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20120807 |