JP2015119231A - Image processing apparatus and control method of the same - Google Patents

Image processing apparatus and control method of the same Download PDF

Info

Publication number
JP2015119231A
JP2015119231A JP2013259635A JP2013259635A JP2015119231A JP 2015119231 A JP2015119231 A JP 2015119231A JP 2013259635 A JP2013259635 A JP 2013259635A JP 2013259635 A JP2013259635 A JP 2013259635A JP 2015119231 A JP2015119231 A JP 2015119231A
Authority
JP
Japan
Prior art keywords
image
shooting
frame
still
still image
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
JP2013259635A
Other languages
Japanese (ja)
Inventor
武史 安冨
Takeshi Yasutomi
武史 安冨
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013259635A priority Critical patent/JP2015119231A/en
Publication of JP2015119231A publication Critical patent/JP2015119231A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To make it possible to generate an image synthetic still image without stopping moving image photographing during the moving image photographing with an inexpensive image processing apparatus.SOLUTION: When generating an image synthetic still image during moving image photographing, a coding format of a moving image frame of the timing is changed.

Description

本発明は、動画撮影中に静止画撮影が可能であって動画撮影による動画データおよび静止画撮影による静止画データを生成する画像処理装置及び画像処理装置の制御方法に関する。   The present invention relates to an image processing apparatus that can shoot still images during moving image shooting and generates moving image data by moving image shooting and still image data by still image shooting, and a control method for the image processing device.

動画像と静止画像の両方を撮影できる電子カメラや、さらに動画像を撮影しながら、静止画像を撮影できる電子カメラが提案されている(特許文献1)。   There have been proposed an electronic camera that can capture both moving images and still images, and an electronic camera that can capture still images while capturing moving images (Patent Document 1).

特開平9−284705号公報JP-A-9-284705

しかしながらこれらの電子カメラにおいては動画像を撮影しながら静止画像を撮影する場合、動画像と静止画像を同時に処理しなくてはならないため、電子カメラシステムとしてその制御は煩雑でシステムに関する負荷も大きくなる。さらに静止画像などを合成してさらに好ましい静止画像を作成する場合においては、その傾向は顕著になり静止画像処理が複雑になると動画像のさ撮影処理が停止してしまうという問題があった。   However, in these electronic cameras, when taking a still image while taking a moving image, it is necessary to process the moving image and the still image at the same time. Therefore, the control of the electronic camera system is complicated and the load on the system increases. . Further, when a still image or the like is synthesized to create a more preferable still image, the tendency becomes remarkable, and when the still image processing becomes complicated, there is a problem that the moving image capturing process is stopped.

上記課題に鑑み、本発明は、動画中に画像合成した静止画像を作成する場合においても、撮影中の動画を停止することなく画像合成静止画像を生成することが可能な画像処理装置及び画像処理装置の制御方法を提供することを目的とする。   In view of the above-described problems, the present invention provides an image processing apparatus and image processing capable of generating an image synthesized still image without stopping a moving image being shot even when creating a still image obtained by combining images in a moving image. An object is to provide a method for controlling an apparatus.

上記課題を解決するために、本発明の画像処理装置は、動画撮影により得られた動画データを、フレーム内で予測して符号化する第1の符号化方式とフレーム間で予測して符号化する第2の符号化方式とを、所定の規則に従い周期的に混在する動画圧縮形式で圧縮する動画圧縮手段と、
動画撮影中に静止画の撮影を指示する指示手段と、
静止画を撮影する際に所定の条件に基づいて、画像合成による静止画撮影を行うか否かを判断する判断手段と、
撮影された連続画像から画像合成して一枚以上の静止画像を作成する画像合成手段と、
作成した静止画像を静止画圧縮形式で圧縮する静止画像圧縮手段とを備え、
動画撮影中に静止画撮影の指示を受けた場合に、前記指示を受けたタイミングの近傍で前記第1の符号化方式で動画圧縮されるフレーム画像の前後に動画撮影されたフレーム画像を複数合成して静止画像を生成する合成手段と、を有することを特徴とする。
In order to solve the above-described problems, an image processing apparatus according to the present invention predicts and encodes moving image data obtained by moving image shooting between a first encoding method that predicts and encodes within a frame. A video compression means for compressing the second encoding method in a video compression format periodically mixed according to a predetermined rule;
Instruction means for instructing to shoot a still image during video recording;
A determination means for determining whether to perform still image shooting by image synthesis based on a predetermined condition when shooting a still image;
Image synthesizing means for synthesizing images from the taken continuous images to create one or more still images;
Still image compression means for compressing the created still image in a still image compression format,
When a still image shooting instruction is received during movie shooting, a plurality of frame images shot before and after the frame image compressed by the first encoding method in the vicinity of the timing of receiving the instruction are combined. And a composing means for generating a still image.

動画中に画像合成した静止画像を作成する場合においても、撮影中の動画を停止することなく画像合成静止画像を生成することが可能となる。   Even in the case of creating a still image obtained by combining images in a moving image, it is possible to generate an image combined still image without stopping the moving image being shot.

本実施例における画像処理装置のブロック図である。It is a block diagram of the image processing apparatus in a present Example. 動画フレーム抜き出して画像合成静止画作成の概念図である。It is a conceptual diagram of moving image frame extraction and image composite still image creation. 各フレームの符号化の様子を示す図である。It is a figure which shows the mode of the encoding of each flame | frame. 本実施例における符号化対象ブロックを説明する図である。It is a figure explaining the encoding object block in a present Example. 実施例1のシーケンスを表す図である。FIG. 3 is a diagram illustrating a sequence of the first embodiment. 従来の撮影指示のタイミングと符号化方式の対応を表す図である。It is a figure showing the correspondence of the timing of the conventional imaging | photography instruction | indication, and an encoding system. 本実施例における撮影指示のタイミングと符号化方式の対応を表す図である。It is a figure showing a response | compatibility with the timing of the imaging | photography instruction | indication in a present Example, and an encoding system. 実施例2のシーケンスを表す図である。FIG. 10 is a diagram illustrating a sequence of the second embodiment.

本実施例にかかる画像処理装置をデジタルカメラを例に用いて説明をおこなう。   The image processing apparatus according to the present embodiment will be described using a digital camera as an example.

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

図1は、本発明の実施例の構成を示す図である。   FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.

図1において、100は画像処理装置である。   In FIG. 1, reference numeral 100 denotes an image processing apparatus.

10は撮影レンズ、12は絞り機能を備える機械式シャッター、14は光学像を電気信号に変換する撮像素子、16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。   10 is a photographing lens, 12 is a mechanical shutter having an aperture function, 14 is an image sensor that converts an optical image into an electrical signal, and 16 is an A / D converter that converts an analog signal output of the image sensor 14 into a digital signal. .

18は撮像素子14、A/D変換器16にクロック信号や制御信号を供給するタイミング発生回路であり、メモリ制御回路22及びシステム制御回路50により制御される。12の機械式シャッター以外にも、18の撮像素子のリセットタイミングの制御によって、電子シャッタとして、蓄積時間を制御することが可能であり、動画撮影などに使用可能である。   A timing generation circuit 18 supplies a clock signal and a control signal to the image sensor 14 and the A / D converter 16, and is controlled by the memory control circuit 22 and the system control circuit 50. In addition to the twelve mechanical shutters, the accumulation time can be controlled as an electronic shutter by controlling the reset timing of the eighteen image sensors, and can be used for moving image shooting and the like.

20は画像処理回路であり、A/D変換器16からのデータ或いはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。また20の画像処理回路によって画像の切り出し、変倍処理を行うことで電子ズーム機能が実現される。   An image processing circuit 20 performs predetermined pixel interpolation processing and color conversion processing on the data from the A / D converter 16 or the data from the memory control circuit 22. Further, an electronic zoom function is realized by performing image cutting and scaling processing by 20 image processing circuits.

また、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてシステム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う、TTL方式のAF処理、AE処理、EF処理を行っている。また、画像処理回路20は、後述する露出条件(露出量)の異なる複数フレームの画像を合成してダイナミックレンジを拡張する画像合成処理であるハイダイナミックレンジ合成(HDR合成)処理も行う。   Further, the image processing circuit 20 performs predetermined calculation processing using the captured image data, and the system control circuit 50 controls the exposure control means 40 and the distance measurement control means 42 based on the obtained calculation result. TTL AF processing, AE processing, and EF processing are performed. The image processing circuit 20 also performs a high dynamic range synthesis (HDR synthesis) process, which is an image synthesis process for expanding a dynamic range by synthesizing images of a plurality of frames with different exposure conditions (exposure amounts), which will be described later.

さらに、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。   Further, the image processing circuit 20 performs predetermined arithmetic processing using captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained arithmetic result.

22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、メモリ30、圧縮・伸長回路32を制御する。   A memory control circuit 22 controls the A / D converter 16, the timing generation circuit 18, the image processing circuit 20, the memory 30, and the compression / decompression circuit 32.

A/D変換器16のデータが画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16のデータが直接メモリ制御回路22を介して、メモリ30に書き込まれる。28はTFT LCD等から成る画像表示部であり、メモリ20に書き込まれた表示用の画像データはメモリ制御回路22を介して画像表示部28により表示される。   The data of the A / D converter 16 is written into the memory 30 via the image processing circuit 20 and the memory control circuit 22, or the data of the A / D converter 16 is directly written via the memory control circuit 22. Reference numeral 28 denotes an image display unit composed of a TFT LCD or the like, and display image data written in the memory 20 is displayed by the image display unit 28 via the memory control circuit 22.

画像表示部28を用いて撮像した画像データを逐次表示すれば、電子ファインダー機能を実現することが可能である。   If the image data captured using the image display unit 28 is sequentially displayed, the electronic viewfinder function can be realized.

また、画像表示部28は、システム制御回路50の指示により任意に表示をON/OFFすることが可能であり、表示をOFFにした場合には画像処理装置100の電力消費を大幅に低減することが出来る。   The image display unit 28 can arbitrarily turn on / off the display according to an instruction from the system control circuit 50. When the display is turned off, the power consumption of the image processing apparatus 100 can be greatly reduced. I can do it.

30は撮影した静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備えている。   Reference numeral 30 denotes a memory for storing captured still images and moving images, and has a sufficient storage capacity to store a predetermined number of still images and a predetermined time of moving images.

これにより、複数枚の静止画像を連続して撮影する連写撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。   This makes it possible to write a large amount of images to the memory 30 at high speed even in continuous shooting or panoramic shooting in which a plurality of still images are continuously shot.

また、メモリ30はシステム制御回路50の作業領域としても使用することが可能である。   The memory 30 can also be used as a work area for the system control circuit 50.

31はFlashROM等で構成された不揮発性メモリである。システム制御回路50が実行するプログラムコードは不揮発性メモリ31に書き込まれ、逐次読み出しながらプログラムコードを実行する。また、不揮発性メモリ内にはシステム情報を記憶する領域や、ユーザー設定情報を記憶する領域を設け、さまざまな情報や設定を次回起動時に読み出して、復元することを実現している。   Reference numeral 31 denotes a non-volatile memory composed of a flash ROM or the like. The program code executed by the system control circuit 50 is written in the nonvolatile memory 31, and the program code is executed while being read sequentially. In addition, an area for storing system information and an area for storing user setting information are provided in the nonvolatile memory, and various information and settings are read and restored at the next startup.

32は適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する圧縮・伸長回路であり、メモリ30に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ30に書き込む。   Reference numeral 32 denotes a compression / decompression circuit that compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like, reads an image stored in the memory 30, performs compression processing or decompression processing, and stores the processed data in the memory 30. Write to.

40は絞り機能を備えるシャッター12を制御する露光制御手段であり、フラッシュ48と連係することによりフラッシュ調光機能も有するものである。   Reference numeral 40 denotes an exposure control means for controlling the shutter 12 having a diaphragm function, and has a flash light control function in cooperation with the flash 48.

42は撮影レンズ10のフォーカシングを制御する測距制御手段、44は撮影レンズ10のズーミングを制御するズーム制御手段である。   Reference numeral 42 denotes distance measurement control means for controlling the focusing of the photographing lens 10, and reference numeral 44 denotes zoom control means for controlling the zooming of the photographing lens 10.

48はフラッシュであり、AF補助光の投光機能、フラッシュ調光機能も有する。
露光制御手段40、測距制御手段42はTTL方式を用いて制御されており、撮像した画像データを画像処理回路20によって演算した演算結果に基づき、システム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う。
A flash 48 has an AF auxiliary light projecting function and a flash light control function.
The exposure control means 40 and the distance measurement control means 42 are controlled using the TTL method. Based on the calculation result obtained by calculating the captured image data by the image processing circuit 20, the system control circuit 50 performs the exposure control means 40 and the distance measurement. Control is performed on the control means 42.

50は画像処理装置100全体を制御するシステム制御回路である。   A system control circuit 50 controls the entire image processing apparatus 100.

60、62、64、66、70及び72は、システム制御回路50の各種の動作指示を入力するための操作手段であり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。   Reference numerals 60, 62, 64, 66, 70, and 72 denote operation means for inputting various operation instructions of the system control circuit 50. A single unit such as a switch, a dial, a touch panel, pointing by line-of-sight detection, a voice recognition device, or the like Consists of multiple combinations.

ここで、これらの操作手段の具体的な説明を行う。   Here, a specific description of these operating means will be given.

60はモードダイアルスイッチで、電源オフ、自動撮影モード、撮影モード、パノラマ撮影モード、動画撮影モード、再生モード、マルチ画面再生・消去モード、PC接続モード等の各機能モードを切り替え設定することが出来る。   Reference numeral 60 denotes a mode dial switch, which can be set to switch various function modes such as power off, automatic shooting mode, shooting mode, panoramic shooting mode, moving image shooting mode, playback mode, multi-screen playback / erase mode, and PC connection mode. .

62はシャッタースイッチSW1で、シャッターボタンの操作途中でONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理等の動作開始を指示する。   Reference numeral 62 denotes a shutter switch SW1, which is turned on during the operation of the shutter button, and instructs to start operations such as AF (autofocus) processing, AE (automatic exposure) processing, and AWB (auto white balance) processing.

64はシャッタースイッチSW2で、シャッターボタンの操作完了でONとなる。シャッタースイッチSW2 64への操作入力に応じて、システム制御回路50の指示によって露光処理、現像処理、記録処理という一連の処理の動作開始を指示する。   A shutter switch SW2 64 is turned on when the operation of the shutter button is completed. In response to an operation input to the shutter switch SW2 64, the system control circuit 50 instructs the start of a series of processing operations such as exposure processing, development processing, and recording processing.

66は表示切替スイッチで、画像表示部28の表示切替をすることが出来る。   Reference numeral 66 denotes a display changeover switch, which can change the display of the image display unit 28.

この機能により、光学ファインダー104を用いて撮影を行う際に、TFT LCD等から成る画像表示部への電流供給を遮断することにより、省電力を図ることが可能となる。   With this function, when photographing is performed using the optical viewfinder 104, it is possible to save power by cutting off the current supply to the image display unit including a TFT LCD or the like.

70は各種ボタンやタッチパネル等からなる操作部で、メニューボタン、セットボタン、マクロボタン、フラッシュ設定ボタン、単写/連写/セルフタイマー切り替えボタン等がある。またメニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン等もある。   An operation unit 70 includes various buttons, a touch panel, and the like, and includes a menu button, a set button, a macro button, a flash setting button, a single shooting / continuous shooting / self timer switching button, and the like. There are also a menu movement + (plus) button, menu movement-(minus) button, shooting image quality selection button, exposure correction button, date / time setting button, and the like.

72はユーザーが撮像画像の倍率変更指示を行うズーム操作手段としてのズームスイッチ部である。以下、ズームスイッチ72ともいう。このズームスイッチ72は、撮像画角を望遠側に変更させるテレスイッチと、広角側に変更させるワイドスイッチからなる。このズームスイッチ72を用いることにより、ズーム制御手段44に撮影レンズ10の撮像画角の変更を指示し光学ズーム操作を行うトリガとなる。また、画像処理回路20による画像の切り出しや、画素補間処理などによる撮像画角の電子的な変更のトリガともなる。   Reference numeral 72 denotes a zoom switch unit as zoom operation means for a user to give an instruction to change the magnification of a captured image. Hereinafter, the zoom switch 72 is also referred to. The zoom switch 72 includes a tele switch that changes the imaging field angle to the telephoto side and a wide switch that changes the imaging angle of view to the wide angle side. By using the zoom switch 72, the zoom control unit 44 is instructed to change the imaging field angle of the photographing lens 10 and becomes a trigger for performing an optical zoom operation. In addition, it also serves as a trigger for electronic change of the imaging angle of view by image cutting by the image processing circuit 20 or pixel interpolation processing.

86はアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる電源手段である。   Reference numeral 86 denotes a power supply means including a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like.

90はメモリカードやハードディスク等の記録媒体とのインタフェース、92はメモリカードやハードディスク等の記録媒体と接続を行うコネクタである。   Reference numeral 90 denotes an interface with a recording medium such as a memory card or hard disk, and reference numeral 92 denotes a connector for connecting to a recording medium such as a memory card or hard disk.

102は、画像処理装置100のレンズ10を含む撮像部を覆う事により、撮像部の汚れや破損を防止するバリアである保護手段である。   Reference numeral 102 denotes protection means that is a barrier that prevents the imaging unit from being soiled or damaged by covering the imaging unit including the lens 10 of the image processing apparatus 100.

104は光学ファインダであり、画像表示部28による電子ファインダー機能を使用すること無しに、光学ファインダのみを用いて撮影を行うことが可能である。   Reference numeral 104 denotes an optical viewfinder, which can take an image using only the optical viewfinder without using the electronic viewfinder function of the image display unit 28.

110は通信手段でUSB、無線通信、等の各種通信機能を有する。   A communication unit 110 has various communication functions such as USB and wireless communication.

112は通信手段110により画像処理装置100を他の機器と接続するコネクタ或いは無線通信の場合はアンテナである。   Reference numeral 112 denotes a connector for connecting the image processing apparatus 100 to another device by the communication unit 110 or an antenna in the case of wireless communication.

200はメモリカードやハードディスク等の記録媒体である。
記録媒体200は、半導体メモリや磁気ディスク等から構成される記録部202、画像処理装置100とのインタフェース204、画像処理装置100と接続を行うコネクタ206を備えている。
Reference numeral 200 denotes a recording medium such as a memory card or a hard disk.
The recording medium 200 includes a recording unit 202 composed of a semiconductor memory, a magnetic disk, or the like, an interface 204 with the image processing apparatus 100, and a connector 206 for connecting to the image processing apparatus 100.

210はメモリカードやハードディスク等の記録媒体である。   Reference numeral 210 denotes a recording medium such as a memory card or a hard disk.

次に、動画中にの動画データを制御方法例にして従来技術について説明する。撮像素子14を一般的には動画のフレームレートと同じフレームレートで駆動し動画用のフレーム画像を抽出する。抽出された動画用フレーム画像は、例えばMPEGの規格に基づいて符号化される。MPEG技術においては、異なるタイミングのフレームに基づいて予測フレーム画像を作成し、入力フレーム画像と予測フレーム画像の差分を符号化する。これを画像間予測符号化と呼ぶ。また、画像間予測符号化をせずに画像を符号化する場合は、画面内予測符号化と呼んでいる。この処理を図3を用いて説明する。たとえば動画用フレームとして、『フレーム1』、『フレーム2』、『フレーム3』を読みだしたとする。   Next, the prior art will be described using moving image data in a moving image as an example of a control method. The image sensor 14 is generally driven at the same frame rate as the moving image frame rate to extract a moving image frame image. The extracted moving image frame image is encoded based on the MPEG standard, for example. In the MPEG technology, a predicted frame image is created based on frames at different timings, and the difference between the input frame image and the predicted frame image is encoded. This is called inter-picture predictive coding. In addition, when encoding an image without performing inter-image predictive encoding, this is called intra-screen predictive encoding. This process will be described with reference to FIG. For example, it is assumed that “frame 1”, “frame 2”, and “frame 3” are read as the frames for moving images.

『フレーム1』のフレームは前後の画像を参照することなく、一枚の画像をブロックに分割して符号化される(フレーム内予測符号化方式)。フレーム内予測符号化方式では、符号化の際に用いるデータはその画像内に閉じている。また、フレーム内予測符号化方式の符号化対象ブロックは一般的には図4に示す上、左上、右上、左のブロックを予測するために参照する。この点において画面内予測符号化は、符号化対象ブロックの周辺に対してRead/Writeが発生する。   The frame of “frame 1” is encoded by dividing one image into blocks without referring to the preceding and following images (intra-frame predictive encoding method). In the intra-frame predictive coding method, data used for coding is closed in the image. Also, the encoding target block of the intra-frame prediction encoding method is generally referred to in order to predict the upper, upper left, upper right, and left blocks shown in FIG. In this respect, in the intra prediction encoding, Read / Write is generated around the encoding target block.

対して、『フレーム2』『フレーム3』、前のフレームとの画素相関を利用するしてフレーム間予測が用いる(フレーム間予測符号化方式)。この符号化は『フレーム2』と『フレーム3』の間のフレーム間差分を符号化する。その際、符号化対象フレームは前方フレームを参照して符号化を行う。つまり『フレーム2』は『フレーム1』を参照しながらその差分を符号化し、『フレーム3』は『フレーム2』を参照してその差分を符号化する。したがって、フレーム内予測符号化方式は、フレーム内予測符号化方式に対して多くのメモリアクセスを要求する。   On the other hand, “frame 2” “frame 3”, and inter-frame prediction is used by utilizing the pixel correlation with the previous frame (inter-frame prediction coding method). This encoding encodes an inter-frame difference between “frame 2” and “frame 3”. At this time, the encoding target frame is encoded with reference to the front frame. That is, “frame 2” encodes the difference with reference to “frame 1”, and “frame 3” encodes the difference with reference to “frame 2”. Therefore, the intra-frame predictive coding scheme requires many memory accesses with respect to the intra-frame predictive coding scheme.

動画圧縮形式であるMPEGに規定されている所定の規則に従い、周期的に1枚のフレーム内予測符号化したフレームと、複数枚のフレーム間予測符号化したフレームを混在させて一つのグループとする。これをGOPと呼ぶ。一般的なMPEG動画撮影はGOPを組み合わせて一つの動画像としている。 動画撮影中に静止画を撮影する場合、動画フレームの一枚を抜き出した上で、静止画用の画像処理を行う。静止画像の画像サイズが動画の画像解像度より大きい場合は画像処理で画像サイズを拡大するなどの処理を行う。実際に動画撮影中に静止画を撮影する場合において、被写界が暗い場合やコントラストが高い場合など複数フレームを組み合わせて静止画像を合成して作成する場合がある。その場合、画像間予測符号化を行いながら、複数フレームを組み合わせて静止画像を合成すると、メモリアクセスが増大し、システムを安定的に稼働できないという課題があった。   In accordance with a predetermined rule stipulated in MPEG, which is a moving image compression format, a frame is periodically mixed with a single intra-frame predictive encoded frame and a plurality of inter-frame predictive encoded frames to form one group. . This is called GOP. In general MPEG video shooting, a GOP is combined into one moving image. When a still image is shot during moving image shooting, one of the moving image frames is extracted and image processing for the still image is performed. When the image size of the still image is larger than the image resolution of the moving image, processing such as enlarging the image size by image processing is performed. When a still image is actually shot during moving image shooting, a still image may be created by combining a plurality of frames, such as when the object scene is dark or when the contrast is high. In such a case, if a still image is synthesized by combining a plurality of frames while performing inter-picture predictive coding, there is a problem that memory access increases and the system cannot be stably operated.

上記を前提にして図5を用いて、本実施形態に係る本発明に好適な例について説明する。ユーザーによって動画撮影モードが選択され、なおかつ動画中に画像合成静止画が撮影されるモードが選択する(S500)。   Based on the above premise, an example suitable for the present invention according to the present embodiment will be described with reference to FIG. A moving image shooting mode is selected by the user, and a mode in which an image composite still image is shot during the moving image is selected (S500).

本実施例については動画撮影中に画像合成静止画、特にダイナミックレンジを拡大した画像合成静止画を作成するために、複数枚の露出条件を異ならせた動画フレームを静止画像の合成画像として利用することを例に説明する。ユーザーによってシャッタースイッチSW64などの手段によって、撮影開始が指示されると、動画像の撮影が開始される(S501)。   In this embodiment, in order to create an image composite still image, particularly an image composite still image with an expanded dynamic range during moving image shooting, a plurality of moving image frames with different exposure conditions are used as a still image composite image. This will be described as an example. When the user gives an instruction to start shooting by means such as the shutter switch SW64, shooting of a moving image is started (S501).

動画像は、レンズ10を通して撮像センサー14で撮影され、画像処理ブロック20に送られる。画像処理ブロックでは図示しないカウンタによって、フレーム内予測符号化方式で符号化するか、フレーム間予測符号化するかを判定し、その方法に従って動画フレームを符号化する。   The moving image is captured by the imaging sensor 14 through the lens 10 and sent to the image processing block 20. In the image processing block, it is determined by a counter (not shown) whether the encoding is performed by the intra-frame prediction encoding method or the inter-frame prediction encoding, and the moving image frame is encoded according to the method.

その後ユーザーによって動画撮影中に静止画を撮影するように指示があった場合(S503)、そのタイミングが現在符号化している動画像のGOPの先頭に近いか、これから符号化しようとしている次のGOPの先頭に近いを判断する(S505)。次にS505で判断した画像合成静止画を撮影する動画フレームが、前述のカウンタから判断する符号化方式において画面内予測符号化方式の場合、動画フレームで必要な設定に加えて画像合成静止画に必要な設定、例えば感度や露光時間などをセンサーに設定して露光し読みだす。同様に画像合成静止画を合成するのに必要な動画フレームについても同様に画像合成するのに必要な設定を行いセンサーから画像を読みだす。このような方法で、静止画の画像合成枚数分、合成に必要な設定を行い動画フレームとしてセンサーから画像を読みだす。本発明においては前述の方法では画像合成静止画を合成する動画フレームの先頭を画面内予測符号化方式で符号化する動画フレームをキーに静止画用画像合成用動画フレームを取得する方法であったが、画面内予測符号化方式の動画フレームをキーにその前の動画フレームを画像合成静止画用の画像としてもよい。上記撮影指示のタイミングと符号化方式の対応を別途図6と図7を利用してさらに説明する。図6は従前の動画中に画像合成静止画を撮影する際の動画フレームの流れである。GOP単位で画面内予測符号化と画像間予測符号化を所定の規則で符号化していく。そこにユーザーが静止画撮影の指示を行うとその直後の3枚を画像合成静止画用の処理を行い、1枚の画像合成静止画作成する。この場合、メモリアクセスが頻繁に発生するタイミングで、さらに画像合成静止画用の処理を行うため、画像処理装置に対する負荷が多くなってしまう。次に図7は、本発明における動画中に画像合成静止画を撮影する際の動画フレームの流れである。図6に示す従前の方法と同様にGOP単位で画面内予測符号化と画像間予測符号化を所定の規則で符号化していく。そこにユーザーが静止画撮影の指示を行うと、その近傍で画面内予測符号化方式を用いて符号化する動画フレーム、図7に於いては静止画撮影指示の2フレーム後からの動画フレームを画像合成静止画用の動画フレームとして用いる。このようにすることで、画面内予測符号化方式で符号化する動画フレームが画像合成静止画を作成するフレームに必ず含まれることになるので、従前の方法に比べてメモリアクセスの頻度を下げる事ができる。   Thereafter, when the user gives an instruction to shoot a still image during moving image shooting (S503), the timing is close to the head of the GOP of the currently encoded moving image or the next GOP to be encoded from now on. It is determined whether it is close to the head of (S505). Next, in the case where the moving image frame for capturing the image combined still image determined in S505 is the intra prediction encoding method in the encoding method determined from the above-described counter, the image combined still image is added to the setting required for the moving image frame. Necessary settings such as sensitivity and exposure time are set in the sensor to expose and read. Similarly, with respect to a moving image frame necessary for synthesizing a still image, a setting necessary for synthesizing the image is similarly performed and an image is read from the sensor. In this way, the necessary settings are made for the number of still images to be combined, and the image is read from the sensor as a moving image frame. In the present invention, the above-described method is a method of acquiring a still image synthesizing moving image frame by using a moving image frame that encodes the beginning of a moving image frame for synthesizing an image synthesizing still image by using the intra prediction encoding method. However, the moving image frame of the intra prediction encoding method may be used as a key, and the preceding moving image frame may be used as an image for image synthesis still image. The correspondence between the timing of the shooting instruction and the encoding method will be further described with reference to FIGS. 6 and 7 separately. FIG. 6 shows a flow of a moving image frame when an image composite still image is captured in a conventional moving image. In-frame predictive coding and inter-picture predictive coding are coded according to a predetermined rule for each GOP. When the user gives an instruction to shoot a still image, the next three images are processed for image synthesis still image to create one image synthesis still image. In this case, the processing for the image synthesis still image is further performed at the timing when the memory access frequently occurs, so that the load on the image processing apparatus increases. Next, FIG. 7 is a flow of a moving image frame when an image composite still image is captured in a moving image according to the present invention. As in the conventional method shown in FIG. 6, intra-frame prediction encoding and inter-picture prediction encoding are encoded according to a predetermined rule for each GOP. When the user gives an instruction to shoot a still image, a moving image frame to be encoded using the in-screen predictive encoding method in the vicinity, and a moving image frame from two frames after the still image shooting instruction in FIG. Used as a moving image frame for an image synthesis still image. In this way, since the video frame encoded by the intra prediction encoding method is always included in the frame for creating the image composite still image, the frequency of memory access can be reduced compared to the conventional method. Can do.

読みだされた画像は動画フレームとして使いながら画像合成静止画用に別のメモリ領域に別途保存しておく。通常コントラストが高いシーンで動画像を撮影しながら、画像合成用静止画を撮影する場合、一般的には露出を異ならせて動画フレームを撮影するので、そのまま動画フレームとして用いると通常に動画撮影条件が違うので、露出を補正するなど違う処理をして実際の動画像の1フレームとする。   The read image is stored separately in a separate memory area for image synthesis still image while being used as a moving image frame. When shooting still images for image composition while shooting moving images in normal high-contrast scenes, movie frames are generally shot with different exposures. Therefore, different processing such as exposure correction is performed to make one frame of the actual moving image.

S505の結果現在符号化中のGOPの先頭に近ければ、先に別のメモリ領域に保存されている動画フレームを選択して画像合成静止画を作成する(S506)。現在符号化中のGOPより次のGOPの先頭に近ければ、先に別のメモリ領域に保存されている動画フレームを廃棄して次のGOPの先頭で来るべきフレーム内予測符号化方式で符号化される動画フレームを用いて画像合成静止画を作成する(S507)。この例においては先に撮影した動画フレームをメモリ領域に書き込み後から静止画撮影の指示があった場合にその動画フレームから画像合成静止画を撮影する例を説明したが、静止画撮影の指示があってからその次のフレーム内予測符号化方式での符号化をする動画フレームをキーフレームとして画像合成用の静止画を取り出すこともできる。さらに撮影のタイミングによってフレーム内予測符号化方式で符号化する動画フレームの位置を動的に変更するとさらに好ましい。   If the result of S505 is close to the head of the GOP currently being encoded, a moving image frame previously stored in another memory area is selected to create an image composite still image (S506). If the current GOP is closer to the beginning of the next GOP than the currently encoded GOP, the moving image frame previously stored in another memory area is discarded and encoded using the intra-frame predictive encoding method that should come at the beginning of the next GOP. An image composite still image is created using the moving image frame (S507). In this example, an example is described in which an image synthesis still image is shot from a moving image frame when an instruction to shoot a still image is given after the previously shot moving image frame is written in the memory area. Then, a still image for image synthesis can be taken out using a moving image frame to be encoded by the next intra-frame predictive encoding method as a key frame. Furthermore, it is more preferable to dynamically change the position of the moving image frame to be encoded by the intra-frame predictive encoding method according to the shooting timing.

このように画像処理装置を制御することにより、画像処理装置のシステムの負荷を分散させながら動画像を途切れさせることなく、高画質な静止画像を得る事が可能になる。   By controlling the image processing apparatus in this way, it is possible to obtain a high-quality still image without interrupting the moving image while distributing the system load of the image processing apparatus.

さらに図8を用いて、さらに別の実施例について説明する。先と同様にユーザーによって動画撮影モードが選択され(S800)、なおかつ動画中に画像合成静止画が撮影されるモードを選択する。本実施例についても動画撮影中に画像合成静止画、特にダイナミックレンジを拡大した画像合成静止画を作成するために、複数枚の露出条件を異ならせた動画フレームを静止画像の合成画像として利用することを例に説明する。ユーザーによってシャッタースイッチSW64などの手段によって、撮影開始が指示されると、動画像の撮影が開始される(S801)。動画像は、レンズ10を通して撮像センサー14で撮影され、画像処理ブロック20に送られる。S802にて動画撮影が終了したかの判定が行われ、動画撮影が終了するまで、以下のステップの処理が行われる。画像処理ブロックでは図示しないカウンタによって、画面内予測符号化方式で符号化するか、画像間予測符号化するかを判定し、その方法に従って動画フレームを符号化する。   Still another embodiment will be described with reference to FIG. As in the previous case, the user selects a moving image shooting mode (S800), and selects a mode in which an image combined still image is shot during the moving image. Also in this embodiment, in order to create an image composite still image, particularly an image composite still image with an expanded dynamic range during moving image shooting, a plurality of moving image frames with different exposure conditions are used as a still image composite image. This will be described as an example. When the user instructs to start shooting by means such as the shutter switch SW64, shooting of a moving image is started (S801). The moving image is captured by the imaging sensor 14 through the lens 10 and sent to the image processing block 20. In step S802, it is determined whether or not the moving image shooting is completed, and the following steps are performed until the moving image shooting is completed. In the image processing block, it is determined by a counter (not shown) whether the encoding is performed by the intra prediction encoding method or the inter prediction encoding, and the moving image frame is encoded according to the method.

その後、ユーザーによって動画撮影中に静止画を撮影するように指示があった場合(S803)、そのタイミングが現在符号化している動画像のタイミングから画像合成静止画で合成で利用する複数の動画フレームの中に、画面内予測符号化で符号化する動画フレームがあるかどうかを判断する(S804)。その結果ユーザーの動画撮影中に静止画を撮影するように指示があったタイミングで画面内予測符号化するフレームがない場合動画フレームの露出条件などを変更して撮像センサー14から動画フレームを読みだした後、その動画フレームを画像合成静止画用のフレームとして別のメモリ領域に保存し、本来画像間予測符号化して符号化するタイミングであるが、その符号化方式を画面内予測符号化方式に変更する(S805、S806)。この操作をすることにより、画像合成用静止画を撮影するタイミングでは常に画面内予測符号化方式で符号化する事で、メモリアクセスの頻度を減らしシステムに対するインパクトを下げる事ができる。   After that, when the user instructs to shoot a still image during moving image shooting (S803), a plurality of moving image frames used for synthesis in the image synthesized still image from the timing of the moving image currently encoded at that timing It is determined whether there is a moving image frame to be encoded by intra prediction encoding (S804). As a result, when there is no frame for predictive encoding within the screen at the timing when the user instructs to shoot a still image, the exposure condition of the movie frame is changed and the movie frame is read from the image sensor 14. After that, the video frame is stored in a separate memory area as a frame for image synthesis still image, and it is originally the timing to encode and encode between images, but the encoding method is changed to the intra prediction encoding method Change (S805, S806). By performing this operation, the frequency of memory access can be reduced and the impact on the system can be reduced by always encoding with the intra prediction encoding method at the timing of capturing a still image for image synthesis.

その後メモリ領域の動画フレームを利用して画像合成静止画を作成する(S807)。このように画像処理装置を制御することにより、画像処理装置のシステムの負荷を分散させながら動画像を途切れさせることなく、高画質な静止画像を得る事が可能になる。   Thereafter, an image composite still image is created using the moving image frame in the memory area (S807). By controlling the image processing apparatus in this way, it is possible to obtain a high-quality still image without interrupting the moving image while distributing the system load of the image processing apparatus.

10 撮影レンズ
12 シャッター
14 撮像素子
16 A/D変換器
18 タイミング発生回路
20 画像処理回路
22 メモリ制御回路
28 画像表示部
30 メモリ
32 画像圧縮・伸長回路
40 露光制御手段
42 測距制御手段
44 ズーム制御手段
50 システム制御回路
62 シャッタースイッチSW1
64 シャッタースイッチSW2
DESCRIPTION OF SYMBOLS 10 Shooting lens 12 Shutter 14 Image pick-up element 16 A / D converter 18 Timing generation circuit 20 Image processing circuit 22 Memory control circuit 28 Image display part 30 Memory 32 Image compression / expansion circuit 40 Exposure control means 42 Distance control means 44 Zoom control Means 50 System control circuit 62 Shutter switch SW1
64 Shutter switch SW2

Claims (9)

動画撮影により得られた動画データを、フレーム内で予測して符号化する第1の符号化方式とフレーム間で予測して符号化する第2の符号化方式とを、所定の規則に従い周期的に混在する動画圧縮形式で圧縮する動画圧縮手段と、
動画撮影中に静止画の撮影を指示する指示手段と、
静止画を撮影する際に所定の条件に基づいて、画像合成による静止画撮影を行うか否かを判断する判断手段と、
撮影された連続画像から画像合成して一枚以上の静止画像を作成する画像合成手段と、
作成した静止画像を静止画圧縮形式で圧縮する静止画像圧縮手段とを備え、
動画撮影中に静止画撮影の指示を受けた場合に、前記指示を受けたタイミングの近傍で前記第1の符号化方式で動画圧縮されるフレーム画像の前後に動画撮影されたフレーム画像を複数合成して静止画像を生成する合成手段と、を有することを特徴とする画像処理装置。
A first encoding method for predicting and encoding moving image data obtained by moving image shooting within a frame and a second encoding method for predicting and encoding between frames are periodically generated according to a predetermined rule. Video compression means for compressing in a video compression format mixed in
Instruction means for instructing to shoot a still image during video recording;
A determination means for determining whether to perform still image shooting by image synthesis based on a predetermined condition when shooting a still image;
Image synthesizing means for synthesizing images from the taken continuous images to create one or more still images;
Still image compression means for compressing the created still image in a still image compression format,
When a still image shooting instruction is received during movie shooting, a plurality of frame images shot before and after the frame image compressed by the first encoding method in the vicinity of the timing of receiving the instruction are combined. And a synthesizing unit for generating a still image.
動画撮影により得られた動画データを、フレーム内で予測して符号化する第1の符号化方式とフレーム間で予測して符号化する第2の符号化方式とを、所定の規則に従い周期的に混在する動画圧縮形式で圧縮する動画圧縮手段と
動画撮影中に静止画の撮影を指示する指示手段と、
静止画を撮影する際に所定の条件に基づいて、画像合成による静止画撮影を行うか否かを判断する判断手段と、
連続して撮影された画像から画像合成して静止画像を作成する画像合成手段と
作成した静止画像を静止画圧縮形式で圧縮する静止画像圧縮手段とを備え
動画撮影中に静止画撮影の指示を受けたタイミングの動画像のフレームについて、
第2の符号化形式で符号化すべきタイミングであっても、
第1の符号化形式を用いて動画撮影をする事を特徴とする画像処理装置。
A first encoding method for predicting and encoding moving image data obtained by moving image shooting within a frame and a second encoding method for predicting and encoding between frames are periodically generated according to a predetermined rule. A video compression means for compressing in a video compression format mixed in the video, an instruction means for instructing to shoot a still image during video recording,
A determination means for determining whether to perform still image shooting by image synthesis based on a predetermined condition when shooting a still image;
Image compositing means for composing images from continuously captured images to create still images and still image compression means for compressing the created still images in still image compression format. About the frame of the moving image at the timing received
Even when it should be encoded in the second encoding format,
An image processing apparatus that shoots a moving image using the first encoding format.
動画撮影中に静止画を撮影する撮影モードにおいて
前記第1の符号化方式で符号化すべきフレームにおいて、撮影条件を変更する事を特徴とする請求項1記載の画像処理装置。
The image processing apparatus according to claim 1, wherein a shooting condition is changed in a frame to be encoded by the first encoding method in a shooting mode for shooting a still image during moving image shooting.
動画撮影中に静止画を撮影する撮影モードにおいて、画像合成処理を行う場合、
前記第1の符号化方式で符号化すべきフレームで、撮影条件を変更する事を特徴とする請求項3記載の画像処理装置。
When performing image composition processing in shooting mode for shooting still images during movie shooting,
The image processing apparatus according to claim 3, wherein a photographing condition is changed in a frame to be encoded by the first encoding method.
動画撮影中に静止画の撮影を指示することが可能な撮影モードにおいて、前記第1の符号化方式で符号化すべきフレームから所定のフレーム分前から第1の符号化方式までの、撮影条件を静止画に対応させて変更することを特徴とする請求項4記載の画像処理装置。   In a shooting mode in which shooting of a still image can be instructed during moving image shooting, shooting conditions from a predetermined frame before the first encoding method to a first encoding method from a frame to be encoded by the first encoding method are set. The image processing apparatus according to claim 4, wherein the image processing apparatus changes corresponding to a still image. 動画撮影中に静止画の撮影を指示することが可能な撮影モードにおいて、静止画撮影が画像合成処理になる可能性がある場合において、
第1の符号化方式で符号化すべきフレームから所定のフレーム分後のフレームまでの、撮影条件を変更する事を特徴とする請求項4記載の画像処理装置。
In the shooting mode that can instruct the shooting of still images during movie shooting, when there is a possibility that still image shooting will be an image composition process,
5. The image processing apparatus according to claim 4, wherein imaging conditions from a frame to be encoded by the first encoding system to a frame after a predetermined frame are changed.
所定のフレーム数は静止画像の画像合成枚数と同数であることを特徴とする、請求項5または6記載の画像処理装置。   7. The image processing apparatus according to claim 5, wherein the predetermined number of frames is the same as the number of still images synthesized. 静止画撮影がダイナミックレンジ拡大のために画像合成処理になる場合において、第1の符号化方式で符号化すべきフレームの露出量を適正とし、それ以外のフレームの露光量を異ならせることを特徴とする請求項5または6記載の画像処理装置。   When still image shooting is image synthesis processing for expanding the dynamic range, the exposure amount of the frame to be encoded by the first encoding method is made appropriate, and the exposure amount of the other frames is made different. The image processing apparatus according to claim 5 or 6. 請求項8において異ならせたフレームは、第2の符号化方式で符号化されたフレームは参照しないことを特徴する画像処理装置。   The image processing apparatus according to claim 8, wherein the frames made different in claim 8 do not refer to frames encoded by the second encoding method.
JP2013259635A 2013-12-16 2013-12-16 Image processing apparatus and control method of the same Pending JP2015119231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013259635A JP2015119231A (en) 2013-12-16 2013-12-16 Image processing apparatus and control method of the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013259635A JP2015119231A (en) 2013-12-16 2013-12-16 Image processing apparatus and control method of the same

Publications (1)

Publication Number Publication Date
JP2015119231A true JP2015119231A (en) 2015-06-25

Family

ID=53531627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013259635A Pending JP2015119231A (en) 2013-12-16 2013-12-16 Image processing apparatus and control method of the same

Country Status (1)

Country Link
JP (1) JP2015119231A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019208103A (en) * 2018-05-28 2019-12-05 シャープ株式会社 Image recording device, image recording method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019208103A (en) * 2018-05-28 2019-12-05 シャープ株式会社 Image recording device, image recording method, and program
JP7077141B2 (en) 2018-05-28 2022-05-30 シャープ株式会社 Image recorder, image recording method and program

Similar Documents

Publication Publication Date Title
JP6116299B2 (en) Imaging apparatus and control method thereof
US10839497B2 (en) Image processing apparatus and method
JP6192416B2 (en) Imaging apparatus, control method therefor, program, and storage medium
US20160012562A1 (en) Image processing apparatus and image processing method
JP6559014B2 (en) Imaging apparatus, control method thereof, and program
JP2012090041A (en) Image processing device, method, and program
JP6246175B2 (en) Imaging apparatus for imaging subject trajectory and control method of imaging apparatus
JP2015119231A (en) Image processing apparatus and control method of the same
JP2014143457A (en) HDR switching control method
JP5828663B2 (en) Image processing apparatus and image processing apparatus control method
JP2011223079A (en) Image processing apparatus
JP6353585B2 (en) Imaging apparatus, control method therefor, program, and storage medium
JP2016092787A (en) Image processing device
JP2004193980A (en) Image display device
JP2012156886A (en) Imaging apparatus
JP2015080152A (en) Imaging device, control method thereof, and program
JP5882794B2 (en) Imaging device
JP6006567B2 (en) Movie playback apparatus and movie playback method
JP2015171115A (en) Imaging apparatus
JP2015171113A (en) Image processing system and control method of the same
JP2017038300A (en) Image processing apparatus and method
JP2020088600A (en) Image pick-up device, imaging apparatus, control method, and program
JP2016208206A (en) Recording apparatus
JP5988812B2 (en) Imaging apparatus, control method therefor, and program
JP2005244870A (en) Imaging unit and color-balance control method thereof