JP2013223080A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2013223080A
JP2013223080A JP2012093135A JP2012093135A JP2013223080A JP 2013223080 A JP2013223080 A JP 2013223080A JP 2012093135 A JP2012093135 A JP 2012093135A JP 2012093135 A JP2012093135 A JP 2012093135A JP 2013223080 A JP2013223080 A JP 2013223080A
Authority
JP
Japan
Prior art keywords
image
images
designation
unit
imaging surface
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.)
Pending
Application number
JP2012093135A
Other languages
Japanese (ja)
Inventor
Masayoshi Okamoto
正義 岡本
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.)
Xacti Corp
Original Assignee
Xacti 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 Xacti Corp filed Critical Xacti Corp
Priority to JP2012093135A priority Critical patent/JP2013223080A/en
Priority to PCT/JP2013/060472 priority patent/WO2013157412A1/en
Publication of JP2013223080A publication Critical patent/JP2013223080A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device capable of increasing an angle of view of a dynamic picture image obtained in parallel with a pan/tilt action.SOLUTION: A CPU 26, when a plurality of frames of image data each corresponding to a plurality of optical images captured by an image sensor 16 are obtained in parallel with a pan/tilt action of an imaging surface, designates one of the obtained plurality of frames of image data. The CPU 26 specifies an image data having one frame or two frames and more, among the obtained plurality of frames of image data, which has duplication with the designated image data greater than a standard, and creates composite image data which has enlarged angle of view corresponding to the standard by combining the specified image data and the designated image data. The CPU 26 also refreshes the designation target every time the creation of composite image data has been completed.

Description

この発明は、画像処理装置に関し、特に拡大された画角の動画像を作成する、画像処理装置に関する。   The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus that creates a moving image having an enlarged angle of view.

この種の装置の一例が、特許文献1に開示されている。この背景技術によれば、複数の撮像部がそれぞれ異なる方向を撮影できる構造を有する。それぞれの撮像部より出力される同時刻の異なる方向を撮影した映像信号が合成され、パノラマ映像データが合成処理部によって作り出される。合成処理部から得られるパノラマ信号データを取り出して出力する。   An example of this type of device is disclosed in Patent Document 1. According to this background art, the plurality of imaging units have a structure capable of photographing different directions. Video signals taken from different directions at the same time output from the respective imaging units are synthesized, and panoramic video data is created by the synthesis processing unit. The panoramic signal data obtained from the synthesis processing unit is extracted and output.

特開2002−359764号公報JP 2002-359664 A

しかし、背景技術では、複数の撮像装置を準備して撮影時から拡大画角の動画像を記録する必要があり、パン/チルト動作によって広い視野を撮影した場合であっても、既に取得済みの動画像の画角を拡大することは記載されていない。   However, in the background art, it is necessary to prepare a plurality of imaging devices and record a moving image with an enlarged angle of view from the time of shooting, and even when a wide field of view is shot by pan / tilt operation, it is already acquired. Enlarging the angle of view of a moving image is not described.

それゆえに、この発明の主たる目的は、パン/チルト動作と並列して取得された動画像の画角を拡大することができる、画像処理装置を提供することである。   Therefore, a main object of the present invention is to provide an image processing apparatus capable of expanding the angle of view of a moving image acquired in parallel with the pan / tilt operation.

この発明に従う画像処理装置(10:実施例で相当する参照符号。以下同じ)は、撮像面で捉えられた複数の画像を撮像面のパン/チルト動作と並列して取得する取得手段(16)、取得手段によって取得された複数の画像のいずれか1つを指定する指定手段(S45)、取得手段によって取得された複数の画像のうち指定手段によって指定された画像との重複が基準を上回る1または2以上の画像と指定手段によって指定された画像とを合成して基準に対応する拡大画角を有する合成画像を作成する作成手段(S61~S81, S85~S95, S99, S101, S111~S131, S135~S145, S149, S151)、および作成手段の処理が完了する毎に指定手段の指定対象を更新する更新手段(S55)を備える。   An image processing apparatus according to the present invention (10: reference numeral corresponding to the embodiment; hereinafter the same) obtains a plurality of images captured on the imaging surface in parallel with the pan / tilt operation of the imaging surface (16) , Designation means for designating any one of a plurality of images obtained by the obtaining means (S45), and the overlap with the image designated by the designation means among the plurality of images obtained by the obtaining means exceeds the reference 1 Alternatively, creating means (S61 to S81, S85 to S95, S99, S101, S111 to S131) that composes two or more images and an image designated by the designation means to create a composite image having an enlarged angle of view corresponding to the reference. , S135 to S145, S149, S151), and update means (S55) for updating the designation target of the designation means every time processing of the creation means is completed.

好ましくは、作成手段は、指定手段によって指定された画像に先立つ1または2以上の画像の中から基準を上回る画像を検出する第1画像検出手段(S61~S79, S89~S93)、および指定手段によって指定された画像に遅れる1または2以上の画像の中から基準を上回る画像を検出する第2画像検出手段(S111~S129, S139~S143)を含む。   Preferably, the creation means includes first image detection means (S61 to S79, S89 to S93) for detecting an image exceeding a reference from one or more images preceding the image designated by the designation means, and the designation means. Second image detecting means (S111 to S129, S139 to S143) for detecting an image exceeding the reference from one or two or more images delayed by the image designated by.

好ましくは、取得手段によって取得された複数の画像のうち2以上の画像を用いてパン/チルト動作の動作方向を検出する方向検出手段(S33~S43)、および方向検出手段の検知結果に基づいて合成画像の合成位置を調整する位置調整手段(S83, S97, S133, S147)がさらに備えられる。   Preferably, based on the direction detection means (S33 to S43) for detecting the operation direction of the pan / tilt operation using two or more of the plurality of images acquired by the acquisition means, and the detection result of the direction detection means. Position adjustment means (S83, S97, S133, S147) for adjusting the composite position of the composite image is further provided.

好ましくは、作成手段によって作成された複数の合成画像を格納する画像ファイルを作成するファイル作成手段(S47, S53, S59)がさらに備えられる。   Preferably, file creation means (S47, S53, S59) for creating an image file storing a plurality of composite images created by the creation means is further provided.

好ましくは、作成手段によって作成された合成画像のサイズを調整するサイズ調整手段(S103, S107, S109, S153, S157, S159)がさらに備えられる。   Preferably, size adjustment means (S103, S107, S109, S153, S157, S159) for adjusting the size of the composite image created by the creation means is further provided.

この発明に従う画像処理プログラムは、撮像面で捉えられた複数の画像を撮像面のパン/チルト動作と並列して取得する取得手段(16)を備える画像処理装置(10)のプロセッサ(26)に、取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ(S45)、取得手段によって取得された複数の画像のうち指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と指定ステップによって指定された画像とを合成して基準に対応する拡大画角を有する合成画像を作成する作成ステップ(S61~S81, S85~S95, S99, S101, S111~S131, S135~S145, S149, S151)、および作成ステップの処理が完了する毎に指定ステップの指定対象を更新する更新ステップ(S55)を実行させるための、画像処理プログラムである。   An image processing program according to the present invention is provided in a processor (26) of an image processing apparatus (10) including an acquisition unit (16) that acquires a plurality of images captured on an imaging surface in parallel with pan / tilt operations on the imaging surface. A designation step for designating any one of the plurality of images acquired by the acquisition means (S45), and the overlap with the image specified by the specification step among the plurality of images acquired by the acquisition means exceeds the reference 1 Alternatively, a creation step (S61 to S81, S85 to S95, S99, S101, S111 to S131) that creates a composite image having an enlarged angle of view corresponding to the reference by combining two or more images and the image specified in the specification step. , S135 to S145, S149, S151), and an update process (S55) for updating the designation target of the designation step every time the creation step is completed.

この発明に従う画像処理方法は、撮像面で捉えられた複数の画像を撮像面のパン/チルト動作と並列して取得する取得手段(16)を備える画像処理装置(10)によって実行される画像処理方法であって、取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ(S45)、取得手段によって取得された複数の画像のうち指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と指定ステップによって指定された画像とを合成して基準に対応する拡大画角を有する合成画像を作成する作成ステップ(S61~S81, S85~S95, S99, S101, S111~S131, S135~S145, S149, S151)、および作成ステップの処理が完了する毎に指定ステップの指定対象を更新する更新ステップ(S55)を備える。   The image processing method according to the present invention is an image processing executed by an image processing device (10) comprising an acquisition means (16) for acquiring a plurality of images captured on an imaging surface in parallel with a pan / tilt operation of the imaging surface. A specifying step (S45) for designating any one of a plurality of images acquired by the acquiring means, and an overlap with the image specified by the specifying step among the plurality of images acquired by the acquiring means. A creation step (S61 to S81, S85 to S95, S99, S101) that combines one or more images exceeding the reference and the image specified in the specifying step to create a composite image having an enlarged angle of view corresponding to the reference , S111 to S131, S135 to S145, S149, S151), and an update step (S55) for updating the designation target of the designation step every time the process of the creation step is completed.

この発明に従う外部制御プログラムは、撮像面で捉えられた複数の画像を撮像面のパン/チルト動作と並列して取得する取得手段(16)、およびメモリ(44)に保存された内部制御プログラムに従う処理を実行するプロセッサ(26)を備える画像処理装置(10)に供給される外部制御プログラムであって、取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ(S45)、取得手段によって取得された複数の画像のうち指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と指定ステップによって指定された画像とを合成して基準に対応する拡大画角を有する合成画像を作成する作成ステップ(S61~S81, S85~S95, S99, S101, S111~S131, S135~S145, S149, S151)、および作成ステップの処理が完了する毎に指定ステップの指定対象を更新する更新ステップ(S55)を内部制御プログラムと協働してプロセッサに実行させるための、外部制御プログラムである。   The external control program according to the present invention follows an acquisition means (16) for acquiring a plurality of images captured on the imaging surface in parallel with the pan / tilt operation of the imaging surface, and an internal control program stored in the memory (44). An external control program supplied to an image processing apparatus (10) comprising a processor (26) for performing processing, wherein one of a plurality of images acquired by the acquisition means is specified (S45); Of the plurality of images acquired by the acquisition means, one or two or more images whose overlap with the image specified by the specifying step exceeds the reference and the image specified by the specifying step are combined and an enlarged image corresponding to the reference Creation step (S61 to S81, S85 to S95, S99, S101, S111 to S131, S135 to S145, S149, S151) for creating a composite image with corners, and designation of the designated step every time the creation step is completed versus For execution by the processor updating step of updating (S55) in cooperation with the internal control program, which is an external control program.

この発明に従う画像処理装置(10)は、撮像面で捉えられた複数の画像を撮像面のパン/チルト動作と並列して取得する取得手段(16)、外部制御プログラムを取り込む取り込み手段(60)、および取り込み手段によって取り込まれた外部制御プログラムとメモリ(44)に保存された内部制御プログラムとに従う処理を実行するプロセッサ(26)を備える画像処理装置であって、外部制御プログラムは、取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ(S45)、取得手段によって取得された複数の画像のうち指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と指定ステップによって指定された画像とを合成して基準に対応する拡大画角を有する合成画像を作成する作成ステップ(S61~S81, S85~S95, S99, S101, S111~S131, S135~S145, S149, S151)、および作成ステップの処理が完了する毎に指定ステップの指定対象を更新する更新ステップ(S55)を内部制御プログラムと協働して実行するプログラムに相当する。   The image processing apparatus (10) according to the present invention includes an acquisition means (16) for acquiring a plurality of images captured on the imaging surface in parallel with the pan / tilt operation of the imaging surface, and an acquisition means (60) for acquiring an external control program. And an image processing apparatus comprising a processor (26) that executes processing according to the external control program captured by the capturing unit and the internal control program stored in the memory (44), wherein the external control program is acquired by the acquiring unit. A designation step (S45) for designating any one of the plurality of acquired images, and one or two or more of the plurality of images acquired by the acquisition means that overlap with the image specified by the specification step exceeds a reference A creation step (S61 to S81, S85 to S95, S99, S10) that creates a composite image having an enlarged angle of view corresponding to the reference by combining the image and the image specified in the specifying step. 1, S111 to S131, S135 to S145, S149, S151), and a program for executing the update step (S55) for updating the designated target of the designated step every time the creation step processing is completed in cooperation with the internal control program It corresponds to.

この発明によれば、指定画像と合成される画像は指定画像との重複が基準を上回る画像に相当し、合成画像は基準に対応する拡大画角を有する画像に相当する。また、指定画像は合成画像が作成される毎に更新される。これによって、パン/チルト動作と並列して取得された動画像の画角を拡大することができる。   According to the present invention, the image combined with the designated image corresponds to an image whose overlap with the designated image exceeds the reference, and the synthesized image corresponds to an image having an enlarged angle of view corresponding to the reference. The designated image is updated every time a composite image is created. As a result, the angle of view of the moving image acquired in parallel with the pan / tilt operation can be enlarged.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

この発明の一実施例の基本的構成を示すブロック図である。It is a block diagram which shows the basic composition of one Example of this invention. この発明の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of this invention. 動画撮影におけるパン操作を示す図解図である。It is an illustration figure which shows pan operation in video recording. 動画ファイルに格納された複数のフレーム画像の一例を示す図解図である。It is an illustration figure which shows an example of the some frame image stored in the moving image file. 被重ね合わせ判定領域の一例を示す図解図である。It is an illustration figure which shows an example of a to-be-superimposed determination area | region. 重ね合わせ判定領域の一例を示す図解図である。It is an illustration figure which shows an example of a superimposition determination area | region. 画像合成処理の一部を示す図解図である。It is an illustration figure which shows a part of image composition process. 画像合成処理の他の一部を示す図解図である。It is an illustration figure which shows the other part of an image synthesis process. パノラマ動画を構成する複数のフレーム画像の一例を示す図解図である。It is an illustration figure which shows an example of the some frame image which comprises a panoramic video. 図2実施例に適用されるCPUの動作の一部を示すフロー図である。It is a flowchart which shows a part of operation | movement of CPU applied to the FIG. 2 Example. 図2実施例に適用されるCPUの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 2 Example. 図2実施例に適用されるCPUの動作のその他の一部を示すフロー図である。FIG. 11 is a flowchart showing still another portion of behavior of the CPU applied to the embodiment in FIG. 2; 図2実施例に適用されるCPUの動作のさらにその他の一部を示すフロー図である。FIG. 10 is a flowchart showing yet another portion of behavior of the CPU applied to the embodiment in FIG. 2; 図2実施例に適用されるCPUの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 2 Example. 図2実施例に適用されるCPUの動作のその他の一部を示すフロー図である。FIG. 11 is a flowchart showing still another portion of behavior of the CPU applied to the embodiment in FIG. 2; 図2実施例に適用されるCPUの動作のさらにその他の一部を示すフロー図である。FIG. 10 is a flowchart showing yet another portion of behavior of the CPU applied to the embodiment in FIG. 2; 図2実施例に適用されるCPUの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 2 Example. 図2実施例に適用されるCPUの動作のその他の一部を示すフロー図である。FIG. 11 is a flowchart showing still another portion of behavior of the CPU applied to the embodiment in FIG. 2; 図2実施例に適用されるCPUの動作のさらにその他の一部を示すフロー図である。FIG. 10 is a flowchart showing yet another portion of behavior of the CPU applied to the embodiment in FIG. 2; この発明の他の実施例の構成を示すブロック図である。It is a block diagram which shows the structure of the other Example of this invention.

以下、この発明の実施の形態を図面を参照しながら説明する。
[基本的構成]
Embodiments of the present invention will be described below with reference to the drawings.
[Basic configuration]

図1を参照して、この実施例の画像処理装置は、基本的に次のように構成される。取得手段1は、撮像面で捉えられた複数の画像を撮像面のパン/チルト動作と並列して取得する。指定手段2は、取得手段1によって取得された複数の画像のいずれか1つを指定する。作成手段3は、取得手段1によって取得された複数の画像のうち指定手段2によって指定された画像との重複が基準を上回る1または2以上の画像と指定手段2によって指定された画像とを合成して基準に対応する拡大画角を有する合成画像を作成する。更新手段4は、作成手段3の処理が完了する毎に指定手段2の指定対象を更新する。   Referring to FIG. 1, the image processing apparatus of this embodiment is basically configured as follows. The acquisition unit 1 acquires a plurality of images captured on the imaging surface in parallel with the pan / tilt operation of the imaging surface. The designation unit 2 designates any one of a plurality of images acquired by the acquisition unit 1. The creating unit 3 synthesizes one or more images whose overlap with the image specified by the specifying unit 2 out of the plurality of images acquired by the acquiring unit 1 exceeds the reference and the image specified by the specifying unit 2. Thus, a composite image having an enlarged angle of view corresponding to the reference is created. The updating unit 4 updates the designation target of the designation unit 2 every time the processing of the creation unit 3 is completed.

指定画像と合成される画像は指定画像との重複が基準を上回る画像に相当し、合成画像は基準に対応する拡大画角を有する画像に相当する。また、指定画像は合成画像が作成される毎に更新される。これによって、パン/チルト動作と並列して取得された動画像の画角を拡大することができる。
[実施例]
The image combined with the designated image corresponds to an image whose overlap with the designated image exceeds the reference, and the composite image corresponds to an image having an enlarged angle of view corresponding to the reference. The designated image is updated every time a composite image is created. As a result, the angle of view of the moving image acquired in parallel with the pan / tilt operation can be enlarged.
[Example]

図2を参照して、この実施例のディジタルビデオカメラ10は、ドライバ18によって駆動されるフォーカスレンズ12およびイメージセンサ16を含む。これらの部材を経たシーンの光学像は、イメージセンサ16の撮像面に照射され、光電変換を施される。これによって、シーンを表す電荷が生成される。   Referring to FIG. 2, the digital video camera 10 of this embodiment includes a focus lens 12 and an image sensor 16 driven by a driver 18. The optical image of the scene that has passed through these members is irradiated onto the imaging surface of the image sensor 16 and subjected to photoelectric conversion. As a result, a charge representing the scene is generated.

システム全体が起動されるとCPU26は、キー入力装置28に設けられたモード変更ボタン28mdの状態(つまり現時点の動作モード)をメインタスクの下で判別し、撮像モードに対応して撮像タスクを起動する一方、再生モードに対応して再生タスクを起動する。   When the entire system is activated, the CPU 26 determines the state of the mode change button 28md provided on the key input device 28 (that is, the current operation mode) under the main task, and activates the imaging task corresponding to the imaging mode. On the other hand, a playback task is started corresponding to the playback mode.

撮像タスクが起動されると、CPU26は、動画取り込み処理を実行するべく、ドライバ18に露光動作および電荷読み出し動作の繰り返しを命令する。ドライバ18は、図示しないSG(SignalGenerator)から周期的に発生する垂直同期信号Vsyncに応答して、撮像面を露光し、かつ撮像面で生成された電荷をラスタ走査態様で読み出す。イメージセンサ16からは、読み出された電荷に基づく生画像データが周期的に出力される。   When the imaging task is activated, the CPU 26 instructs the driver 18 to repeat the exposure operation and the charge readout operation in order to execute the moving image capturing process. In response to a vertical synchronization signal Vsync periodically generated from an SG (Signal Generator) (not shown), the driver 18 exposes the imaging surface and reads out the charges generated on the imaging surface in a raster scanning manner. From the image sensor 16, raw image data based on the read charges is periodically output.

信号処理回路20は、イメージセンサ16から出力された生画像データに白バランス調整,色分離,YUV変換などの処理を施し、これによって生成されたYUV形式の画像データをメモリ制御回路30を通してSDRAM32に書き込む。LCDドライバ36は、SDRAM32に格納された画像データをメモリ制御回路30を通して繰り返し読み出し、読み出された画像データに基づいてLCDモニタ38を駆動する。この結果、シーンを表す動画像がモニタ画面に表示される。   The signal processing circuit 20 performs processing such as white balance adjustment, color separation, and YUV conversion on the raw image data output from the image sensor 16, and the generated YUV format image data is sent to the SDRAM 32 through the memory control circuit 30. Write. The LCD driver 36 repeatedly reads out the image data stored in the SDRAM 32 through the memory control circuit 30 and drives the LCD monitor 38 based on the read image data. As a result, a moving image representing a scene is displayed on the monitor screen.

キー入力装置28に設けられた記録ボタン28recに向けて記録開始操作が行われると、CPU26は、記録処理を開始するべく、MP4コーデック46およびI/F40を撮像タスクの下で起動する。MP4コーデック46は、SDRAM32に格納された画像データをメモリ制御回路30を通して読み出し、読み出された画像データをMPEG4方式に従って圧縮する。圧縮画像データつまりMP4データは、メモリ制御回路30によってSDRAM32に書き込まれる。I/F40は、SDRAM32に格納されたMP4データをメモリ制御回路30を通して読み出し、読み出されたMP4データを記録媒体42に作成された画像ファイルに書き込む。   When a recording start operation is performed toward the recording button 28rec provided on the key input device 28, the CPU 26 activates the MP4 codec 46 and the I / F 40 under the imaging task in order to start the recording process. The MP4 codec 46 reads the image data stored in the SDRAM 32 through the memory control circuit 30, and compresses the read image data according to the MPEG4 system. The compressed image data, that is, MP4 data is written into the SDRAM 32 by the memory control circuit 30. The I / F 40 reads the MP4 data stored in the SDRAM 32 through the memory control circuit 30 and writes the read MP4 data to the image file created on the recording medium 42.

キー入力装置28に向けて記録終了操作が行われると、CPU26は、記録処理を終了するべくMP4コーデック46およびI/F40を停止する。また、書き込み先の動画ファイルには終了処理が施される。   When a recording end operation is performed toward the key input device 28, the CPU 26 stops the MP4 codec 46 and the I / F 40 to end the recording process. Also, the end process is performed on the moving image file of the writing destination.

再生タスクが起動されると、CPU26は、記録媒体42に記録された動画ファイルを指定し、先頭フレーム画像の再生をI/F40に命令する。I/F40は、指定動画ファイルから先頭フレームの画像データを読み出し、読み出された画像データをメモリ制御回路30を通してSDRAM32に書き込む。   When the reproduction task is activated, the CPU 26 designates the moving image file recorded on the recording medium 42 and instructs the I / F 40 to reproduce the first frame image. The I / F 40 reads the image data of the first frame from the designated moving image file, and writes the read image data to the SDRAM 32 through the memory control circuit 30.

LCDドライバ36は、SDRAM32に格納された画像データをメモリ制御回路30を通して読み出し、読み出された画像データに基づいてLCDモニタ38を駆動する。この結果、先頭フレーム画像がLCDモニタ38に表示される。   The LCD driver 36 reads the image data stored in the SDRAM 32 through the memory control circuit 30, and drives the LCD monitor 38 based on the read image data. As a result, the top frame image is displayed on the LCD monitor 38.

キー入力装置28に向けて再生開始操作が行われると、CPU26は、動画再生の開始をI/F40に命令する。I/F40は指定動画ファイルに格納された複数フレームの画像データを周期的に読み出し、読み出された画像データをメモリ制御回路30を通してSDRAM32に書き込む。SDRAM32に格納された画像データはLCDドライバ36によって読み出され、この結果、動画像がLCDモニタ38に表示される。   When a reproduction start operation is performed toward the key input device 28, the CPU 26 instructs the I / F 40 to start moving image reproduction. The I / F 40 periodically reads image data of a plurality of frames stored in the designated moving image file, and writes the read image data to the SDRAM 32 through the memory control circuit 30. The image data stored in the SDRAM 32 is read by the LCD driver 36, and as a result, a moving image is displayed on the LCD monitor 38.

キー入力装置28に向けて再生終了操作が行われるか、或いは再生画像が指定動画ファイルの末尾フレーム画像に到達すると、CPU26は動画再生の終了をI/F40に命令し、さらに先頭フレーム画像の再生をI/F40に命令する。この結果、指定動画ファイルの先頭フレーム画像がLCDモニタ38に再度表示される。   When a playback end operation is performed toward the key input device 28 or when the playback image reaches the end frame image of the designated moving image file, the CPU 26 instructs the I / F 40 to end the playback of the moving image, and further plays back the top frame image. Is commanded to the I / F 40. As a result, the first frame image of the designated moving image file is displayed again on the LCD monitor 38.

キー入力装置28に向けて送り操作が行われると、CPU26は次の画像ファイルを指定し、先頭フレーム画像の再生をI/F40に命令する。I/F40は上述と同様の処理を実行し、これによって、次の動画ファイルに格納された先頭フレーム画像がLCDモニタ38に表示される。   When a feed operation is performed toward the key input device 28, the CPU 26 designates the next image file and instructs the I / F 40 to reproduce the first frame image. The I / F 40 executes the same processing as described above, whereby the first frame image stored in the next moving image file is displayed on the LCD monitor 38.

指定動画ファイルの先頭フレーム画像がLCDモニタ38に表示された状態で、キー入力装置28に向けてパノラマ動画作成操作が行われると、CPU26はパノラマ動画作成処理を実行する。   When a panoramic video creation operation is performed toward the key input device 28 in a state where the top frame image of the designated video file is displayed on the LCD monitor 38, the CPU 26 executes a panoramic video creation process.

操作者がディジタルビデオカメラ10の筐体をパン方向に回転させながら、上述の撮像タスクの下で動画像が撮影されたとき、撮影中にLCDモニタ38に表示されるスルー画像は、図3に示すように遷移する。この場合、記録媒体42に作成された動画ファイルには、図4に示す複数のフレーム画像FRa…FRm…FRzが格納される。このような動画ファイルに対して、パノラマ動画作成が以下の要領で実行される。   When a moving image is shot under the above-described imaging task while the operator rotates the housing of the digital video camera 10 in the pan direction, a through image displayed on the LCD monitor 38 during shooting is shown in FIG. Transition as shown. In this case, the moving image file created on the recording medium 42 stores a plurality of frame images FRa ... FRm ... FRz shown in FIG. For such a moving image file, panoramic moving image creation is executed as follows.

CPU26はまず、指定動画ファイルの総フレーム数を検出する。CPU26は次に、撮影中のパン操作の方向を検出するべく、先頭フレーム画像および10番目のフレーム画像を用いて重ね合わせ処理を実行する。重ね合わせ処理においては、一方の画像の中央に被重ね合わせ判定領域AR1が割り当てられ(図5参照)、他方の画像の中央に重ね合わせ判定領域AR2が割り当てられる(図6参照)。被重ね合わせ判定領域AR1には、例えば画像全体の90%の領域が割り当てられる。重ね合わせ判定領域AR2には、被重ね合わせ判定領域AR1よりも狭い領域が割り当てられ、例えば画像全体の80%の領域が割り当てられる。   First, the CPU 26 detects the total number of frames of the designated moving image file. Next, the CPU 26 performs an overlay process using the first frame image and the 10th frame image in order to detect the direction of the pan operation during shooting. In the overlay process, the overlay determination area AR1 is assigned to the center of one image (see FIG. 5), and the overlay determination area AR2 is assigned to the center of the other image (see FIG. 6). For example, 90% of the entire image is allocated to the overlay determination area AR1. An area that is narrower than the overlay determination area AR1 is allocated to the overlay determination area AR2, for example, an area that is 80% of the entire image is allocated.

CPU26は、このような2つの画像を用いて重ね合わせ処理を実行する。重ね合わせ処理によって、重ね合わせ判定領域AR2に属する画像が被重ね合わせ判定領域AR1に属する画像の一部と一致する位置が特定される。このようにして特定された位置に基づいて、パン操作の方向が検出される。方向が検出されると、CPU26は、動画ファイルを記録媒体42に新規に作成する。作成された動画ファイルはオープンされる。次に、検出されたパン操作の方向に対して進行方向および後退方向への短冊画像RGの画像合成処理が、指定動画ファイルに格納された各々のフレーム画像に対して実行される。   The CPU 26 executes a superimposition process using such two images. The position where the image belonging to the overlay determination area AR2 matches the part of the image belonging to the overlay determination area AR1 is specified by the overlay process. Based on the position specified in this way, the direction of the pan operation is detected. When the direction is detected, the CPU 26 newly creates a moving image file on the recording medium 42. The created movie file is opened. Next, image composition processing of the strip image RG in the forward direction and the backward direction with respect to the detected pan operation direction is executed for each frame image stored in the designated moving image file.

画像合成処理においては、各方向に1または2以上の短冊画像RGがフレーム画像に合成される。このような短冊画像RGの作成のために、フレームの順が隣り合う2つのフレーム画像を用いて重ね合わせ処理が実行され、両画像の位置のずれ量GPが検出される。CPU26は、画像合成処理の対象のフレーム画像から進行方向または後退方向にこのような重ね合わせ処理を順に実行し、得られたずれ量GPの累積和RWを算出する。   In the image composition process, one or two or more strip images RG are synthesized into a frame image in each direction. In order to create such a strip image RG, an overlay process is executed using two frame images whose frames are adjacent to each other, and a positional deviation amount GP between both images is detected. The CPU 26 sequentially executes such a superimposition process in the advancing direction or the retreating direction from the target frame image of the image synthesis process, and calculates the cumulative sum RW of the obtained deviation amounts GP.

算出された累積和RWが短冊幅の既定値RWFIXを超えたとき、CPU26は、直前の重ね合わせ処理に用いられたフレーム画像のうち画像合成処理の対象のフレーム画像から遠い方のフレーム画像を用いて、短冊幅RWFIXの短冊画像RGを作成する。作成された短冊画像RGは、フレーム画像の端に累積的に合成される。   When the calculated cumulative sum RW exceeds the strip width predetermined value RWFIX, the CPU 26 uses a frame image farther from the frame image to be subjected to the image synthesis process among the frame images used in the immediately preceding overlay process. Thus, a strip image RG having a strip width RWFIX is created. The created strip image RG is cumulatively combined with the end of the frame image.

図7を参照して、フレーム画像FRmが画像合成処理の対象の場合、進行方向に隣り合うフレーム画像FRmおよびフレーム画像FRm+1のずれ量GP1が最初に算出される。しかし、算出されたずれ量GP1は短冊幅RWFIXよりも小さいので、フレーム画像FRm+1およびフレーム画像FRm+2のずれ量GP2が算出される。ずれ量の和GP1+GP2は短冊幅RWFIXよりも大きい。したがって、フレーム画像FRm+2を用いて進行方向の短冊画像RGf1が作成される。作成された短冊画像RGf1は、フレーム画像FRmと合成される。   Referring to FIG. 7, when frame image FRm is a target of image synthesis processing, a shift amount GP1 between frame image FRm and frame image FRm + 1 adjacent in the traveling direction is first calculated. However, since the calculated shift amount GP1 is smaller than the strip width RWFIX, the shift amount GP2 between the frame image FRm + 1 and the frame image FRm + 2 is calculated. The sum of displacement GP1 + GP2 is larger than the strip width RWFIX. Therefore, the strip image RGf1 in the traveling direction is created using the frame image FRm + 2. The created strip image RGf1 is combined with the frame image FRm.

短冊画像RGは、進行方向および後退方向の各々の短冊幅RWFIXの合計が既定値SZFIXに相当するように繰り返し作成され、フレーム画像の端に累積的に合成される。既定値SZFIXは、作成されるパノラマ動画の画角によって定まる。例えば、4:3の画角で記録された動画ファイルを元に16:9の画角のパノラマ動画を作成する場合、既定値SZFIXは、元のフレーム画像の幅の1/6となる。また、短冊幅RWFIXは、既定値SZFIXを整数で割った値に決定される。   The strip image RG is repeatedly created so that the total of the strip widths RWFIX in the traveling direction and the backward direction corresponds to the predetermined value SZFIX, and is cumulatively combined with the end of the frame image. The default value SZFIX is determined by the angle of view of the panoramic video to be created. For example, when creating a panoramic video with a 16: 9 angle of view based on a video file recorded with a 4: 3 angle of view, the default value SZFIX is 1/6 of the width of the original frame image. The strip width RWFIX is determined to be a value obtained by dividing the predetermined value SZFIX by an integer.

1つのフレーム画像に対して進行方向および後退方向の画像合成処理が完了する毎に、画像合成処理を施されたフレーム画像は、オープン状態の動画ファイルにI/F40を通して書き込まれる。   Each time image composition processing in the forward direction and backward direction is completed for one frame image, the frame image subjected to the image composition processing is written to the open moving image file through the I / F 40.

図8に示す例によると、フレーム画像FRmに対して、進行方向である右側に短冊画像RGf1,RGf2,およびRGf3が合成され、後退方向である左側に短冊画像RGr1,RGr2,およびRGr3が合成される。また、短冊幅の合計RWFIX×3がSZFIXと等しい。   According to the example shown in FIG. 8, the strip images RGf1, RGf2, and RGf3 are synthesized on the right side that is the traveling direction, and the strip images RGr1, RGr2, and RGr3 are synthesized on the left side that is the backward direction with respect to the frame image FRm. The The total strip width RWFIX × 3 is equal to SZFIX.

指定動画ファイルに格納された全てのフレーム画像に対して進行方向および後退方向の画像合成処理が完了すると、オープン状態の動画ファイルはクローズされ、パノラマ動画を格納した動画ファイルが完成される。完成した動画ファイルは、再生タスクの下で指定動画ファイルとして再生待ち状態となる。   When the image synthesis processing in the advancing direction and the backward direction is completed for all the frame images stored in the designated moving image file, the open moving image file is closed and the moving image file storing the panoramic moving image is completed. The completed moving image file is in a reproduction waiting state as a specified moving image file under the reproduction task.

図4に示す複数のフレーム画像FRa…FRm…FRzが格納された動画ファイルが指定されてパノラマ動画作成処理が実行されると、図9に示す例のように複数のパノラマサイズのフレーム画像FRCa…FRCm…FRCzが格納された動画ファイルが、記録媒体42に新たに作成される。   When a moving image file storing a plurality of frame images FRa... FRm... FRz shown in FIG. 4 is designated and a panoramic moving image creation process is executed, a plurality of panoramic size frame images FRCa. A moving image file storing FRCm... FRCz is newly created on the recording medium 42.

なお、図9に示すように、先頭フレームおよび最終フレーム周辺のフレーム画像については、前後のフレーム画像を用いて短冊画像を作成できない領域をブラックアウト処理する。   As shown in FIG. 9, for the frame images around the first frame and the last frame, blackout processing is performed on an area where a strip image cannot be created using the previous and next frame images.

CPU26は、図10〜11に示す再生タスクを含む複数のタスクを並列的に実行する。なお、これらのタスクに対応する制御プログラムは、フラッシュメモリ44に記憶される。   The CPU 26 executes a plurality of tasks including the reproduction task shown in FIGS. Note that control programs corresponding to these tasks are stored in the flash memory 44.

図10を参照して、ステップS1では記録媒体42に記録された最新の動画ファイルを指定し、ステップS3では先頭フレーム画像の再生をI/F40に命令する。この結果、指定動画ファイルの先頭フレーム画像がLCDモニタ38に表示される。   Referring to FIG. 10, in step S1, the latest moving image file recorded on the recording medium 42 is designated, and in step S3, the I / F 40 is instructed to reproduce the first frame image. As a result, the first frame image of the designated moving image file is displayed on the LCD monitor 38.

ステップS5では再生開始操作が行われたか否かを判別し、判別結果がNOであればステップS7で送り操作が行われたか否かを判別する。ステップS7の判別結果がNOであればステップS17に進む一方、ステップS7の判別結果がYESであれば次の動画ファイルをステップS15で指定してからステップS3に戻る。この結果、次の動画ファイルの先頭フレーム画像がLCDモニタ38に表示される。   In step S5, it is determined whether or not a reproduction start operation has been performed. If the determination result is NO, it is determined in step S7 whether or not a feed operation has been performed. If the determination result in step S7 is NO, the process proceeds to step S17. If the determination result in step S7 is YES, the next moving image file is designated in step S15, and then the process returns to step S3. As a result, the first frame image of the next moving image file is displayed on the LCD monitor 38.

ステップS5の判別結果がYESであればステップS9で動画再生の開始をI/F40に命令する。この結果、指定動画ファイルに格納された動画像がLCDモニタ38に表示される。   If the determination result in step S5 is YES, the I / F 40 is commanded to start moving image reproduction in step S9. As a result, the moving image stored in the designated moving image file is displayed on the LCD monitor 38.

ステップS11では、再生終了操作が行われたか或いは再生画像が末尾フレーム画像に到達したという論理和条件が満足されたか否かを繰り返し判別する。判別結果がNOからYESに更新されるとステップS13で動画再生の終了をI/F40に命令し、ステップS13の処理が完了すると、ステップS3に戻る。   In step S11, it is repeatedly determined whether or not a reproduction end operation has been performed or a logical sum condition that the reproduced image has reached the end frame image is satisfied. When the determination result is updated from NO to YES, the I / F 40 is commanded to end moving image reproduction in step S13, and when the process of step S13 is completed, the process returns to step S3.

ステップS17では、パノラマ動画作成操作が行われたか否かを判別し判別結果がNOであればステップS5に戻る一方、判別結果がYESであればステップS19でパノラマ動画作成処理を実行する。   In step S17, it is determined whether or not a panoramic video creation operation has been performed. If the determination result is NO, the process returns to step S5. If the determination result is YES, a panoramic video generation process is executed in step S19.

ステップS21ではステップS19の処理によってパノラマ動画の作成が成功したか否かを判別し、判別結果がNOであればステップS3に戻る一方、判別結果がYESであればステップS23に進む。ステップS23では、ステップS19で作成されたパノラマ動画ファイルを指定してからステップS3に戻る。この結果、パノラマ動画ファイルの先頭フレーム画像がLCDモニタ38に表示される。   In step S21, it is determined whether or not the panoramic video has been successfully created by the process in step S19. If the determination result is NO, the process returns to step S3, whereas if the determination result is YES, the process proceeds to step S23. In step S23, the panoramic video file created in step S19 is designated, and the process returns to step S3. As a result, the top frame image of the panoramic video file is displayed on the LCD monitor 38.

ステップS19のパノラマ動画作成処理は、図12〜13に示すサブルーチンに従って実行される。ステップS31では、指定動画ファイルの総フレーム数を検出する。ステップS33では、撮影中のパン操作の方向を検出するべく、先頭フレーム画像および10番目のフレーム画像を用いて重ね合わせ処理を実行する。   The panoramic video creation process in step S19 is executed according to a subroutine shown in FIGS. In step S31, the total number of frames of the designated moving image file is detected. In step S33, a superimposition process is executed using the first frame image and the tenth frame image in order to detect the direction of the pan operation during shooting.

ステップS35では、ステップS33の処理によって操作方向の検出に成功したか否かを判別し、判別結果がNOであればステップS37でエラーを報知し、その後に上階層のルーチンに復帰する。判別結果がYESであればステップS39に進む。   In step S35, it is determined whether or not the operation direction has been successfully detected by the process in step S33. If the determination result is NO, an error is notified in step S37, and then the process returns to the upper hierarchy routine. If a determination result is YES, it will progress to Step S39.

ステップS39では、ステップS33の処理によって検出された操作方向が左へ移動するものであるか否かを判別し、判別結果がYESであればステップS41の処理を経てステップS45に進み、判別結果がNOであればステップS43の処理を経てステップS45に進む。   In step S39, it is determined whether or not the operation direction detected by the process in step S33 is to move to the left. If the determination result is YES, the process proceeds to step S45 through the process in step S41, and the determination result is If NO, the process proceeds to step S45 through step S43.

ステップS41では変数DRTに“0”を設定し、ステップS43では変数DRTに“1”を設定し、ステップS45では変数Nに“1”を設定する。ステップS47では動画ファイルを記録媒体42に新規に作成する。作成された動画ファイルはオープンされる。   In step S41, “0” is set to the variable DRT, “1” is set to the variable DRT in step S43, and “1” is set to the variable N in step S45. In step S47, a moving image file is newly created on the recording medium. The created movie file is opened.

ステップS49では操作方向の進行方向への画像合成処理をN番目のフレーム画像に対して実行し、ステップS51では操作方向の後退方向への画像合成処理をN番目のフレーム画像に対して実行する。ステップS53では、ステップS49およびS51の処理が施されたフレーム画像を、オープン状態の動画ファイルにI/F40を通して書き込む。   In step S49, an image composition process in the traveling direction of the operation direction is performed on the Nth frame image, and in step S51, an image composition process in the backward direction of the operation direction is performed on the Nth frame image. In step S53, the frame image subjected to the processing in steps S49 and S51 is written to the open moving image file through the I / F 40.

ステップS55では変数Nをインクリメントし、ステップS31で検出された総フレーム数を変数Nが超えたか否かをステップS57で判別する。判別結果がNOであればステップS49に戻る一方、判別結果がYESであればオープン状態の動画ファイルをステップS59でクローズする。ステップS59の処理が完了すると上階層のルーチンに復帰する。   In step S55, the variable N is incremented, and it is determined in step S57 whether or not the variable N exceeds the total number of frames detected in step S31. If the determination result is NO, the process returns to step S49, while if the determination result is YES, the open moving image file is closed in step S59. When the processing in step S59 is completed, the process returns to the upper hierarchy routine.

ステップS49の進行方向への画像合成処理は、図14〜16に示すサブルーチンに従って実行される。図14を参照して、ステップS61では変数Nが示す値を変数Mに設定し、ステップS63では変数SZを“0”に設定する。ステップS65では変数Mが示す値を変数Lに設定し、ステップS67では変数RWに“0”を設定する。   The image composition process in the advancing direction in step S49 is executed according to a subroutine shown in FIGS. Referring to FIG. 14, in step S61, the value indicated by variable N is set to variable M, and in step S63, variable SZ is set to “0”. In step S65, the value indicated by the variable M is set to the variable L, and in step S67, "0" is set to the variable RW.

ステップS69ではステップS31で検出された指定動画ファイルの総フレーム数と変数Lが等しいか否かを判別し、判別結果がYESであればステップS103に進む一方、判別結果がNOであればステップS71に進む。   In step S69, it is determined whether or not the total number of frames of the designated moving image file detected in step S31 is equal to the variable L. If the determination result is YES, the process proceeds to step S103. If the determination result is NO, step S71 is performed. Proceed to

ステップS71では、L番目のフレーム画像とL+1番目のフレーム画像とを用いて重ね合わせ処理を実行する。ステップS73では、変数RWおよびステップS71の処理で得られたずれ量の和を変数RWに設定する。ステップS75では、変数RWが短冊幅の既定値RWFIX以上であるか否かを判別し、判別結果がYESであればステップS81に進む一方、判別結果がNOであればステップS77に進む。   In step S71, an overlay process is executed using the Lth frame image and the (L + 1) th frame image. In step S73, the variable RW and the sum of the deviation amounts obtained in step S71 are set in the variable RW. In step S75, it is determined whether or not the variable RW is equal to or larger than the strip width predetermined value RWFIX. If the determination result is YES, the process proceeds to step S81, and if the determination result is NO, the process proceeds to step S77.

ステップS77では変数Lをインクリメントし、ステップS79ではステップS31で検出された指定動画ファイルの総フレーム数を変数L+1が超えたか否かを判別する。判別結果がNOであればステップS71に戻る一方、判別結果がYESであればステップS95に進む。ステップS75の判別結果がYESであれば、L+1番目のフレーム画像を用いて幅がRWFIXの短冊画像をステップS81で作成する。   In step S77, the variable L is incremented. In step S79, it is determined whether or not the variable L + 1 exceeds the total number of frames of the designated moving image file detected in step S31. If the determination result is NO, the process returns to step S71, while if the determination result is YES, the process proceeds to step S95. If the determination result in step S75 is YES, a strip image having a width of RWFIX is created in step S81 using the L + 1th frame image.

ステップS83では変数DRTに“0”が設定されているか否かを判別し、判別結果がYESであればステップS85を経てステップS89に進む一方、判別結果がNOであればステップS87を経てステップS89に進む。   In step S83, it is determined whether or not “0” is set in the variable DRT. If the determination result is YES, the process proceeds to step S89 via step S85, whereas if the determination result is NO, the process proceeds to step S89 via step S87. Proceed to

ステップS81で作成された短冊画像を、ステップS85ではN番目のフレーム画像の左側に追加するように画像合成処理を実行し、ステップS87ではN番目のフレーム画像の右側に追加するように画像合成処理を実行する。   In step S85, the image composition process is performed so that the strip image created in step S81 is added to the left side of the Nth frame image. In step S87, the image composition process is performed so as to be added to the right side of the Nth frame image. Execute.

ステップS89では、変数SZおよび短冊幅の既定値RWFIXの和を変数SZに設定する。ステップS91では、変数SZが既定値SZFIX以上であるか否かを判別し、判別結果がYESであれば上階層のルーチンに復帰する一方、判別結果がNOであればステップS93に進む。ステップS93では変数L+1が示す値に変数Mを設定し、その後にステップS65に戻る。   In step S89, the sum of the variable SZ and the predetermined value RWFIX of the strip width is set in the variable SZ. In step S91, it is determined whether or not the variable SZ is equal to or greater than the predetermined value SZFIX. If the determination result is YES, the process returns to the upper hierarchy routine. If the determination result is NO, the process proceeds to step S93. In step S93, the variable M is set to the value indicated by the variable L + 1, and then the process returns to step S65.

ステップS95では、L番目のフレーム画像を用いて幅がRWの短冊画像を作成する。ステップS97では変数DRTに“0”が設定されているか否かを判別し、判別結果がYESであればステップS99を経てステップS103に進む一方、判別結果がNOであればステップS101を経てステップS103に進む。   In step S95, a strip image having a width of RW is created using the Lth frame image. In step S97, it is determined whether or not “0” is set in the variable DRT. If the determination result is YES, the process proceeds to step S103 via step S99. If the determination result is NO, the process proceeds to step S103 via step S101. Proceed to

ステップS95で作成された短冊画像を、ステップS99ではN番目のフレーム画像の左側に追加するように画像合成処理を実行し、ステップS101ではN番目のフレーム画像の右側に追加するように画像合成処理を実行する。   In step S99, the image composition process is performed so that the strip image created in step S95 is added to the left side of the Nth frame image. In step S101, the image composition process is performed so as to be added to the right side of the Nth frame image. Execute.

ステップS103では、幅が既定値SZFIX−変数RWの短冊画像をブラックアウト処理で作成する。ステップS105では変数DRTに“0”が設定されているか否かを判別し、判別結果がYESであればステップS107に進む一方、判別結果がNOであればステップS109に進む。   In step S103, a strip image having a predetermined width SZFIX-variable RW is created by blackout processing. In step S105, it is determined whether or not “0” is set in the variable DRT. If the determination result is YES, the process proceeds to step S107, and if the determination result is NO, the process proceeds to step S109.

ステップS103で作成された短冊画像を、ステップS107ではN番目のフレーム画像の左側に追加するように画像合成処理を実行し、ステップS109ではN番目のフレーム画像の右側に追加するように画像合成処理を実行する。ステップS107またはS109の処理が完了すると上階層のルーチンに復帰する。   In step S107, the image composition process is performed so that the strip image created in step S103 is added to the left side of the Nth frame image. In step S109, the image composition process is performed so as to be added to the right side of the Nth frame image. Execute. When the process of step S107 or S109 is completed, the process returns to the upper hierarchy routine.

ステップS51の後退方向への画像合成処理は、図17〜19に示すサブルーチンに従って実行される。図17を参照して、ステップS111では変数Nが示す値を変数Pに設定し、ステップS113では変数SZを“0”に設定する。ステップS115では変数Pが示す値を変数Qに設定し、ステップS117では変数RWに“0”を設定する。   The image composition process in the backward direction in step S51 is executed according to a subroutine shown in FIGS. Referring to FIG. 17, in step S111, the value indicated by variable N is set to variable P, and in step S113, variable SZ is set to “0”. In step S115, the value indicated by the variable P is set to the variable Q, and in step S117, "0" is set to the variable RW.

ステップS119では変数Qが“1”と等しいか否かを判別し、判別結果がYESであればステップS153に進む一方、判別結果がNOであればステップS121に進む。   In step S119, it is determined whether or not the variable Q is equal to “1”. If the determination result is YES, the process proceeds to step S153, and if the determination result is NO, the process proceeds to step S121.

ステップS121では、Q番目のフレーム画像とQ−1番目のフレーム画像とを用いて重ね合わせ処理を実行する。ステップS123では、変数RWおよびステップS121の処理で得られたずれ量の和を変数RWに設定する。ステップS125では、変数RWが短冊幅の既定値RWFIX以上であるか否かを判別し、判別結果がYESであればステップS131に進む一方、判別結果がNOであればステップS127に進む。   In step S121, a superimposition process is performed using the Qth frame image and the Q-1th frame image. In step S123, the variable RW and the sum of the deviation amounts obtained in step S121 are set in the variable RW. In step S125, it is determined whether or not the variable RW is equal to or greater than the strip width default value RWFIX. If the determination result is YES, the process proceeds to step S131, and if the determination result is NO, the process proceeds to step S127.

ステップS127では変数Qをデクリメントし、ステップS129では変数Q−1が“1”を下回るか否かを判別する。判別結果がNOであればステップS121に戻る一方、判別結果がYESであればステップS145に進む。ステップS125の判別結果がYESであれば、Q−1番目のフレーム画像を用いて幅がRWFIXの短冊画像をステップS131で作成する。   In step S127, the variable Q is decremented, and in step S129, it is determined whether or not the variable Q-1 is less than “1”. If the determination result is NO, the process returns to step S121, while if the determination result is YES, the process proceeds to step S145. If the determination result in step S125 is YES, a strip image having a width of RWFIX is created in step S131 using the Q-1th frame image.

ステップS133では変数DRTに“0”が設定されているか否かを判別し、判別結果がYESであればステップS135を経てステップS139に進む一方、判別結果がNOであればステップS137を経てステップS139に進む。   In step S133, it is determined whether or not “0” is set in the variable DRT. If the determination result is YES, the process proceeds to step S139 via step S135. If the determination result is NO, the process proceeds to step S139 via step S137. Proceed to

ステップS131で作成された短冊画像を、ステップS135ではN番目のフレーム画像の右側に追加するように画像合成処理を実行し、ステップS137ではN番目のフレーム画像の左側に追加するように画像合成処理を実行する。   In step S135, the image composition process is performed so that the strip image created in step S131 is added to the right side of the Nth frame image. In step S137, the image composition process is performed so as to be added to the left side of the Nth frame image. Execute.

ステップS139では、変数SZおよび短冊幅の既定値RWFIXの和を変数SZに設定する。ステップS141では、変数SZが既定値SZFIX以上であるか否かを判別し、判別結果がYESであれば上階層のルーチンに復帰する一方、判別結果がNOであればステップS143に進む。ステップS143では変数Q−1が示す値を変数Pに設定し、その後にステップS115に戻る。   In step S139, the sum of the variable SZ and the predetermined value RWFIX of the strip width is set in the variable SZ. In step S141, it is determined whether or not the variable SZ is equal to or greater than the predetermined value SZFIX. If the determination result is YES, the process returns to the upper hierarchy routine. If the determination result is NO, the process proceeds to step S143. In step S143, the value indicated by the variable Q-1 is set in the variable P, and then the process returns to step S115.

ステップS145では、Q番目のフレーム画像を用いて幅がRWの短冊画像を作成する。ステップS147では変数DRTに“0”が設定されているか否かを判別し、判別結果がYESであればステップS149を経てステップS153に進む一方、判別結果がNOであればステップS151を経てステップS153に進む。   In step S145, a strip image having a width of RW is created using the Qth frame image. In step S147, it is determined whether or not “0” is set in the variable DRT. If the determination result is YES, the process proceeds to step S153 through step S149. If the determination result is NO, the process proceeds to step S153 through step S151. Proceed to

ステップS145で作成された短冊画像を、ステップS149ではN番目のフレーム画像の右側に追加するように画像合成処理を実行し、ステップS151ではN番目のフレーム画像の左側に追加するように画像合成処理を実行する。   In step S149, the image composition process is performed so that the strip image created in step S145 is added to the right side of the Nth frame image. In step S151, the image composition process is performed so as to be added to the left side of the Nth frame image. Execute.

ステップS153では、幅が既定値SZFIX−変数RWの短冊画像をブラックアウト処理して作成する。ステップS155では変数DRTに“0”が設定されているか否かを判別し、判別結果がYESであればステップS157に進む一方、判別結果がNOであればステップS159に進む。   In step S153, a strip image having a predetermined width SZFIX-variable RW is created by blackout processing. In step S155, it is determined whether or not “0” is set in the variable DRT. If the determination result is YES, the process proceeds to step S157, and if the determination result is NO, the process proceeds to step S159.

ステップS153で作成された短冊画像を、ステップS157ではN番目のフレーム画像の右側に追加するように画像合成処理を実行し、ステップS159ではN番目のフレーム画像の左側に追加するように画像合成処理を実行する。ステップS157またはS159の処理が完了すると上階層のルーチンに復帰する。   In step S157, the image composition process is performed so that the strip image created in step S153 is added to the right side of the Nth frame image. In step S159, the image composition process is performed so as to be added to the left side of the Nth frame image. Execute. When the process of step S157 or S159 is completed, the process returns to the upper hierarchy routine.

以上の説明から分かるように、撮像面で捉えられた複数の光学像にそれぞれ対応する複数フレームの画像データが撮像面のパン/チルト動作と並列して取得されると、CPU26は、取得された複数フレームの画像データのいずれか1つを指定する(S45)。CPU26はまた、取得された複数フレームの画像データの中から指定画像データとの重複が基準を上回る1フレームまたは2フレーム以上の画像データを特定し、特定された画像データを指定画像データとを合成して基準に対応する拡大画角を有する合成画像データを作成する(S61~S81, S85~S95, S99, S101, S111~S131, S135~S145, S149, S151)。CPU26はさらに、合成画像データの作成処理が完了する毎に指定対象を更新する(S55)。   As can be understood from the above description, when image data of a plurality of frames respectively corresponding to a plurality of optical images captured on the imaging surface is acquired in parallel with the pan / tilt operation of the imaging surface, the CPU 26 acquires One of the image data of a plurality of frames is designated (S45). The CPU 26 also specifies image data of one frame or two or more frames whose overlapping with the designated image data exceeds the reference from the acquired plural frames of image data, and synthesizes the specified image data with the designated image data. Thus, composite image data having an enlarged angle of view corresponding to the reference is created (S61 to S81, S85 to S95, S99, S101, S111 to S131, S135 to S145, S149, S151). Further, the CPU 26 updates the designation target every time the composite image data creation process is completed (S55).

このように、指定画像データと合成される画像データは指定画像データとの重複が基準を上回る画像データに相当し、合成画像データは基準に対応する拡大画角を有する画像データに相当する。また、指定画像データは合成画像データが作成される毎に更新される。これによって、パン/チルト動作と並列して取得された動画像の画角を拡大することができる。   As described above, the image data combined with the designated image data corresponds to image data whose overlap with the designated image data exceeds the reference, and the combined image data corresponds to image data having an enlarged angle of view corresponding to the reference. The designated image data is updated every time composite image data is created. As a result, the angle of view of the moving image acquired in parallel with the pan / tilt operation can be enlarged.

なお、この実施例では、パノラマ動画を格納した動画ファイルを新たに作成するようにした。しかし、動画ファイルを新規作成することなく、元の動画ファイルを再生する際に、再生処理と並列的に表示用のパノラマ画像を作成する処理を実行するようにしてもよい。   In this embodiment, a moving image file storing a panoramic moving image is newly created. However, when the original moving image file is reproduced without creating a new moving image file, a process for creating a panoramic image for display may be executed in parallel with the reproducing process.

また、この実施例では、パン動作に従ってパノラマ画像を作成するようにした。しかし、チルト動作に従ってパノラマ画像を作成するようにしてもよい。   In this embodiment, a panoramic image is created in accordance with the pan operation. However, a panoramic image may be created according to a tilt operation.

また、この実施例では、マルチタスクOSおよびこれによって実行される複数のタスクに相当する制御プログラムは、フラッシュメモリ44に予め記憶される。しかし、外部サーバに接続するための通信I/F60を図20に示す要領でディジタルカメラ10に設け、一部の制御プログラムを内部制御プログラムとしてフラッシュメモリ44に当初から準備する一方、他の一部の制御プログラムを外部制御プログラムとして外部サーバから取得するようにしてもよい。この場合、上述の動作は、内部制御プログラムおよび外部制御プログラムの協働によって実現される。   In this embodiment, the multitask OS and control programs corresponding to a plurality of tasks executed thereby are stored in the flash memory 44 in advance. However, a communication I / F 60 for connecting to an external server is provided in the digital camera 10 in the manner shown in FIG. 20, and some control programs are prepared as internal control programs in the flash memory 44 from the beginning, while other parts are provided. These control programs may be acquired from an external server as an external control program. In this case, the above-described operation is realized by cooperation of the internal control program and the external control program.

また、この実施例では、CPU26によって実行される処理を、図10〜11に示す再生タスクを含む複数のタスクに区分するようにしている。しかし、これらのタスクをさらに複数の小タスクに区分してもよく、さらには区分された複数の小タスクの一部を他のタスクに統合するようにしてもよい。また、転送タスクを複数の小タスクに区分する場合、その全部または一部を外部サーバから取得するようにしてもよい。   In this embodiment, the process executed by the CPU 26 is divided into a plurality of tasks including the reproduction task shown in FIGS. However, these tasks may be further divided into a plurality of small tasks, and a part of the divided plurality of small tasks may be integrated with other tasks. Further, when the transfer task is divided into a plurality of small tasks, all or part of the transfer task may be acquired from an external server.

また、この実施例では、ディジタルビデオカメラを用いて説明したが、本発明は、ディジタルスチルカメラ,携帯電話端末またはスマートフォンなどにも適用することができる。   In this embodiment, the digital video camera has been described. However, the present invention can also be applied to a digital still camera, a mobile phone terminal, a smartphone, or the like.

10 …
10 …ディジタルビデオカメラ
16 …イメージセンサ
26 …CPU
32 …SDRAM
38 …LCDモニタ
42 …記録媒体
10…
10 ... Digital video camera 16 ... Image sensor 26 ... CPU
32 ... SDRAM
38 ... LCD monitor 42 ... Recording medium

Claims (9)

撮像面で捉えられた複数の画像を前記撮像面のパン/チルト動作と並列して取得する取得手段、
前記取得手段によって取得された複数の画像のいずれか1つを指定する指定手段、
前記取得手段によって取得された複数の画像のうち前記指定手段によって指定された画像との重複が基準を上回る1または2以上の画像と前記指定手段によって指定された画像とを合成して前記基準に対応する拡大画角を有する合成画像を作成する作成手段、および
前記作成手段の処理が完了する毎に前記指定手段の指定対象を更新する更新手段を備える、画像処理装置。
Acquisition means for acquiring a plurality of images captured on the imaging surface in parallel with the pan / tilt operation of the imaging surface;
Designating means for designating any one of a plurality of images obtained by the obtaining means;
Among the plurality of images acquired by the acquisition unit, one or two or more images whose overlap with the image specified by the specifying unit exceeds a reference and the image specified by the specifying unit are combined and used as the reference An image processing apparatus comprising: a creating unit that creates a composite image having a corresponding enlarged angle of view; and an updating unit that updates a designation target of the designation unit every time processing of the creating unit is completed.
前記作成手段は、前記指定手段によって指定された画像に先立つ1または2以上の画像の中から前記基準を上回る画像を検出する第1画像検出手段、および前記指定手段によって指定された画像に遅れる1または2以上の画像の中から前記基準を上回る画像を検出する第2画像検出手段を含む、請求項1記載の画像処理装置。   The creation means is a first image detection means for detecting an image that exceeds the reference from one or more images preceding the image designated by the designation means, and 1 delayed from the image designated by the designation means. The image processing apparatus according to claim 1, further comprising: a second image detection unit that detects an image that exceeds the reference from two or more images. 前記取得手段によって取得された複数の画像のうち2以上の画像を用いて前記パン/チルト動作の動作方向を検出する方向検出手段、および
前記方向検出手段の検知結果に基づいて前記合成画像の合成位置を調整する位置調整手段をさらに備える、請求項1または2記載の画像処理装置。
Direction detection means for detecting an operation direction of the pan / tilt operation using two or more images among a plurality of images acquired by the acquisition means, and composition of the composite image based on a detection result of the direction detection means The image processing apparatus according to claim 1, further comprising a position adjusting unit that adjusts the position.
前記作成手段によって作成された複数の合成画像を格納する画像ファイルを作成するファイル作成手段をさらに備える、請求項1ないし3のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising: a file creation unit that creates an image file that stores a plurality of composite images created by the creation unit. 前記作成手段によって作成された合成画像のサイズを調整するサイズ調整手段をさらに備える、請求項1ないし4のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a size adjusting unit that adjusts a size of the composite image created by the creating unit. 撮像面で捉えられた複数の画像を前記撮像面のパン/チルト動作と並列して取得する取得手段を備える画像処理装置のプロセッサに、
前記取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ、
前記取得手段によって取得された複数の画像のうち前記指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と前記指定ステップによって指定された画像とを合成して前記基準に対応する拡大画角を有する合成画像を作成する作成ステップ、および
前記作成ステップの処理が完了する毎に前記指定ステップの指定対象を更新する更新ステップを実行させるための、画像処理プログラム。
In a processor of an image processing apparatus including an acquisition unit that acquires a plurality of images captured on an imaging surface in parallel with a pan / tilt operation of the imaging surface,
A designation step of designating any one of a plurality of images acquired by the acquisition means;
Among the plurality of images acquired by the acquisition unit, one or two or more images whose overlap with the image specified by the specifying step exceeds a reference and the image specified by the specifying step are combined and used as the reference An image processing program for executing a creation step of creating a composite image having a corresponding enlarged angle of view, and an update step of updating a designation target of the designation step every time the process of the creation step is completed.
撮像面で捉えられた複数の画像を前記撮像面のパン/チルト動作と並列して取得する取得手段を備える画像処理装置によって実行される画像処理方法であって、
前記取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ、
前記取得手段によって取得された複数の画像のうち前記指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と前記指定ステップによって指定された画像とを合成して前記基準に対応する拡大画角を有する合成画像を作成する作成ステップ、および
前記作成ステップの処理が完了する毎に前記指定ステップの指定対象を更新する更新ステップを備える、画像処理方法。
An image processing method executed by an image processing apparatus including an acquisition unit that acquires a plurality of images captured on an imaging surface in parallel with a pan / tilt operation of the imaging surface,
A designation step of designating any one of a plurality of images acquired by the acquisition means;
Among the plurality of images acquired by the acquisition unit, one or two or more images whose overlap with the image specified by the specifying step exceeds a reference and the image specified by the specifying step are combined and used as the reference An image processing method comprising: a creation step of creating a composite image having a corresponding enlarged angle of view; and an update step of updating a designation target of the designation step every time the creation step is completed.
撮像面で捉えられた複数の画像を前記撮像面のパン/チルト動作と並列して取得する取得手段、および
メモリに保存された内部制御プログラムに従う処理を実行するプロセッサを備える画像処理装置に供給される外部制御プログラムであって、
前記取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ、
前記取得手段によって取得された複数の画像のうち前記指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と前記指定ステップによって指定された画像とを合成して前記基準に対応する拡大画角を有する合成画像を作成する作成ステップ、および
前記作成ステップの処理が完了する毎に前記指定ステップの指定対象を更新する更新ステップを前記内部制御プログラムと協働して前記プロセッサに実行させるための、外部制御プログラム。
Supplied to an image processing apparatus comprising acquisition means for acquiring a plurality of images captured on the imaging surface in parallel with the pan / tilt operation of the imaging surface, and a processor for executing processing according to an internal control program stored in a memory An external control program,
A designation step of designating any one of a plurality of images acquired by the acquisition means;
Among the plurality of images acquired by the acquisition unit, one or two or more images whose overlap with the image specified by the specifying step exceeds a reference and the image specified by the specifying step are combined and used as the reference A creation step for creating a composite image having a corresponding enlarged angle of view, and an update step for updating the designation target of the designation step each time the creation step is completed, in cooperation with the internal control program, in the processor External control program to be executed.
撮像面で捉えられた複数の画像を前記撮像面のパン/チルト動作と並列して取得する取得手段、
外部制御プログラムを取り込む取り込み手段、および
前記取り込み手段によって取り込まれた外部制御プログラムとメモリに保存された内部制御プログラムとに従う処理を実行するプロセッサを備える画像処理装置であって、
前記外部制御プログラムは、
前記取得手段によって取得された複数の画像のいずれか1つを指定する指定ステップ、
前記取得手段によって取得された複数の画像のうち前記指定ステップによって指定された画像との重複が基準を上回る1または2以上の画像と前記指定ステップによって指定された画像とを合成して前記基準に対応する拡大画角を有する合成画像を作成する作成ステップ、および
前記作成ステップの処理が完了する毎に前記指定ステップの指定対象を更新する更新ステップを前記内部制御プログラムと協働して実行するプログラムに相当する、画像処理装置。
Acquisition means for acquiring a plurality of images captured on the imaging surface in parallel with the pan / tilt operation of the imaging surface;
An image processing apparatus comprising: a capturing unit that captures an external control program; and a processor that executes processing according to the external control program captured by the capturing unit and an internal control program stored in a memory,
The external control program is
A designation step of designating any one of a plurality of images acquired by the acquisition means;
Among the plurality of images acquired by the acquisition unit, one or two or more images whose overlap with the image specified by the specifying step exceeds a reference and the image specified by the specifying step are combined and used as the reference A program for creating a composite image having a corresponding enlarged angle of view, and an update step for updating a designation target of the designation step in cooperation with the internal control program every time processing of the creation step is completed An image processing apparatus equivalent to
JP2012093135A 2012-04-16 2012-04-16 Image processing device Pending JP2013223080A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2012093135A JP2013223080A (en) 2012-04-16 2012-04-16 Image processing device
PCT/JP2013/060472 WO2013157412A1 (en) 2012-04-16 2013-04-05 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012093135A JP2013223080A (en) 2012-04-16 2012-04-16 Image processing device

Publications (1)

Publication Number Publication Date
JP2013223080A true JP2013223080A (en) 2013-10-28

Family

ID=49383376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012093135A Pending JP2013223080A (en) 2012-04-16 2012-04-16 Image processing device

Country Status (2)

Country Link
JP (1) JP2013223080A (en)
WO (1) WO2013157412A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020017800A (en) * 2018-07-23 2020-01-30 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Moving object, control method, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005217721A (en) * 2004-01-29 2005-08-11 Seiko Epson Corp Apparatus and method for generating still picture
WO2008087721A1 (en) * 2007-01-18 2008-07-24 Fujitsu Limited Image synthesizer, image synthesizing method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020017800A (en) * 2018-07-23 2020-01-30 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Moving object, control method, and program

Also Published As

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

Similar Documents

Publication Publication Date Title
CN102739955B (en) Image capturing apparatus for enabling generation of data of panoramic image with wide dynamic range
KR101873668B1 (en) Mobile terminal photographing method and mobile terminal
JP2012242821A (en) Display image generation method
JP5393237B2 (en) Image display apparatus, control method therefor, program, and storage medium
JP4772009B2 (en) Digital camera
JP2008258745A (en) Camera
JP5453812B2 (en) Image processing device
JP6010303B2 (en) Image playback device
JP2014107775A (en) Electronic camera
JP4994204B2 (en) Image synthesizer
WO2013157412A1 (en) Image processing device
JP2017212550A (en) Image reproducer, control method thereof, program, and storage medium
JP2010021819A (en) Image display apparatus, image display method, and program
WO2020189510A1 (en) Image processing device, image processing method, computer program, and storage medium
JP2012124614A (en) Imaging apparatus and imaging apparatus control method
JP2009135720A (en) Image composing device
US10051203B2 (en) Composite image creating apparatus
JP2020188417A (en) Image processing apparatus, image processing method, and computer program
JP2013121104A (en) Electronic camera
JP7395259B2 (en) Image processing device, image processing method, computer program and storage medium
JP5473517B2 (en) Image processing device
JP5893489B2 (en) Image processing device
US20140029923A1 (en) Image processing apparatus
JP2014175716A (en) Image processing device
JP6611478B2 (en) Imaging apparatus, recording control method, and program