JP2017204666A - Imaging device - Google Patents

Imaging device Download PDF

Info

Publication number
JP2017204666A
JP2017204666A JP2016093752A JP2016093752A JP2017204666A JP 2017204666 A JP2017204666 A JP 2017204666A JP 2016093752 A JP2016093752 A JP 2016093752A JP 2016093752 A JP2016093752 A JP 2016093752A JP 2017204666 A JP2017204666 A JP 2017204666A
Authority
JP
Japan
Prior art keywords
image
tilt
correction
display
inclination
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
JP2016093752A
Other languages
Japanese (ja)
Inventor
平 池田
Taira Ikeda
平 池田
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 JP2016093752A priority Critical patent/JP2017204666A/en
Publication of JP2017204666A publication Critical patent/JP2017204666A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an imaging device capable of preventing a photographer from taking an inclined still image unintentionally.SOLUTION: An imaging device 10 has a horizontal correction function that electronically corrects inclination by causing an image processing circuit 18 to cut out or rotate an image in response to the inclination of the imaging device 10 detected by a vibration and inclination detection unit 21, and thereby enables a photographer to simply take a moving image while keeping it horizontal. The imaging device 10 disables the horizontal correction function in a still image photographing preparation state caused by half-press operation of a release switch (SW1) and thereby a user can confirm the inclination state of the imaging device 10 through a live view before still picture photographing.SELECTED DRAWING: Figure 4

Description

本発明は、撮像装置、制御方法、及びプログラムに関する。   The present invention relates to an imaging apparatus, a control method, and a program.

手振れ等による画像振れを防ぐカメラ等の撮像装置が製品化されている。それらの撮像装置では、撮像中に生じた手振れ量に応じて、像ブレ補正レンズまたは撮像素子を光軸と垂直な平面上を移動させることにより像ブレを抑制する。また、光軸の周りに撮像素子を回転させることによりロール回転によって生じる像ブレを抑制する。   Imaging devices such as cameras that prevent image shake due to camera shake have been commercialized. In these imaging apparatuses, image blur is suppressed by moving the image blur correction lens or the image sensor on a plane perpendicular to the optical axis in accordance with the amount of camera shake generated during imaging. In addition, image blur caused by roll rotation is suppressed by rotating the imaging device around the optical axis.

動画像撮影においては、特別なメカ機構を持っていなくても、撮像した画像の切り出し位置を変更したり、画像処理で画像を回転させたりすることにより振れや傾きの影響を軽減させる電子式補正が可能な撮像装置が製品化されている。   In moving image shooting, even if you do not have a special mechanical mechanism, electronic correction that reduces the effects of shake and tilt by changing the cutout position of the captured image or rotating the image with image processing An imaging device capable of achieving the above has been commercialized.

また、加速度計などを用いて撮像装置の傾斜角度を高精度に検出し、重力方向と垂直な水平面に対する撮像装置の傾きを自動的に補正することで、撮影に不慣れなユーザでも水平を保った画像を簡単に撮影することができるものもある。特許文献1は、撮像素子の傾きに応じて撮像した映像信号に対して回転座標変換を行うことにより、画面上の水平位置を維持する電子カメラ装置を開示している。   In addition, the inclination angle of the imaging device is detected with high accuracy using an accelerometer, etc., and the inclination of the imaging device with respect to the horizontal plane perpendicular to the direction of gravity is automatically corrected, so that even a user unfamiliar with photography can be kept level Some images can be taken easily. Patent Document 1 discloses an electronic camera device that maintains a horizontal position on a screen by performing rotational coordinate conversion on a video signal captured in accordance with the tilt of an image sensor.

特開2002−94877号公報JP 2002-94877 A

しかしながら、特許文献1のように画像を回転させて傾きを補正する場合、撮像した画像データのうち回転座標変換分の画素が確保できるように一部を切り出すことになり、撮像した画角に対して画角が狭くなってしまう。動画撮影においては、撮像した画角に対して画角が狭くなっても、画像の切り出しや回転による電子式振れ補正を可能とすることが多いが、静止画撮影においては画角が狭くなることを避けるために電子式振れ補正を不可とすることが多い。このように、動画撮影においては傾き補正を可能とし、静止画撮影においては傾き補正を不可とするような場合、傾き補正が適用されている動画撮影モードで静止画を撮影した際に、意図せず傾いた静止画が撮影されてしまうことがある。   However, when the image is rotated and the tilt is corrected as in Patent Document 1, a part of the captured image data is cut out so that pixels for rotation coordinate conversion can be secured. The angle of view becomes narrow. In moving image shooting, even if the angle of view is narrower than the captured angle of view, it is often possible to perform electronic shake correction by cropping or rotating the image, but in still image shooting, the angle of view becomes narrower. In order to avoid this, electronic shake correction is often disabled. As described above, when tilt correction is possible in movie shooting and tilt correction is not possible in still image shooting, it is not intended when shooting a still image in a movie shooting mode to which tilt correction is applied. A tilted still image may be shot.

本発明は、意図せず傾いた静止画像が撮影されてしまうことを防ぐことを可能とする撮像装置を提供することを目的とする。   An object of the present invention is to provide an imaging apparatus that can prevent unintentionally tilted still images from being taken.

本発明の一実施形態の撮像装置は、撮像手段が撮影した画像の傾きを補正する傾き補正手段と、動画像の表示部への表示を制御する表示制御手段と、静止画像の撮影準備状態に入るための所定の操作が行われたか否かを判定する判定手段と、を備え、前記表示制御手段は、前記所定の操作が行われたと判定された場合には、傾きを補正しない動画像を表示し、前記所定の操作が行われていないと判定された場合には、傾きを補正した動画像を表示するように制御する。   An imaging apparatus according to an embodiment of the present invention includes an inclination correction unit that corrects an inclination of an image captured by an imaging unit, a display control unit that controls display of a moving image on a display unit, and a still image shooting preparation state. Determining means for determining whether or not a predetermined operation for entering has been performed, and when the display control means determines that the predetermined operation has been performed, a moving image that does not correct inclination is determined. If it is determined that the predetermined operation has not been performed, control is performed to display a moving image with the tilt corrected.

本発明の撮像装置によれば、意図せず傾いた静止画が撮影されてしまうことを防ぐことができる。   According to the imaging apparatus of the present invention, it is possible to prevent an unintentionally tilted still image from being shot.

本発明の一実施形態に係る撮像装置の外観図である。1 is an external view of an imaging apparatus according to an embodiment of the present invention. 撮像装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of an imaging device. 電子的な像ブレ補正や傾き補正について説明する図である。It is a figure explaining electronic image blur correction and inclination correction. 第1実施形態における撮像装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the imaging device in 1st Embodiment. 第2実施形態における撮像装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the imaging device in 2nd Embodiment. 第3実施形態における撮像装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the imaging device in 3rd Embodiment. 第4実施形態における撮像装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the imaging device in 4th Embodiment.

以下、本発明を実施するための形態について図面などを参照して説明する。
図1は、本発明の一実施形態に係る撮像装置の外観図である。
コネクタ112は、接続ケーブルと撮像装置10とをつなぐコネクタである。記録媒体20は、メモリカードやハードディスク等の記録媒体である。記録媒体スロット201は、記録媒体20を格納するためのスロットである。記録媒体スロット201に格納された記録媒体20は、撮像装置10との通信が可能となる。蓋203は、記録媒体スロット201の蓋である。表示部13及び操作部14については、図2を用いて説明する。
Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.
FIG. 1 is an external view of an imaging apparatus according to an embodiment of the present invention.
The connector 112 is a connector that connects the connection cable and the imaging device 10. The recording medium 20 is a recording medium such as a memory card or a hard disk. The recording medium slot 201 is a slot for storing the recording medium 20. The recording medium 20 stored in the recording medium slot 201 can communicate with the imaging device 10. A lid 203 is a lid of the recording medium slot 201. The display unit 13 and the operation unit 14 will be described with reference to FIG.

図2は、撮像装置10の構成例を示すブロック図である。
撮像装置10は、内部バス30で接続されたCPU(中央演算装置)11、ROM12、表示部13、操作部14、DRAM15、記録媒体I/F16、撮像部17、画像処理回路18、画像圧縮伸長回路19、及び振れ・傾き検出部21を備える。CPU11は、後述する各処理部やデータフローなどを制御する。ROM12は、CPU11の処理手順に係るプログラム(ファームウェア)及び各種情報を格納している。
FIG. 2 is a block diagram illustrating a configuration example of the imaging apparatus 10.
The imaging device 10 includes a CPU (Central Processing Unit) 11, a ROM 12, a display unit 13, an operation unit 14, a DRAM 15, a recording medium I / F 16, an imaging unit 17, an image processing circuit 18, and an image compression / decompression connected via an internal bus 30. A circuit 19 and a shake / tilt detector 21 are provided. The CPU 11 controls each processing unit and data flow described later. The ROM 12 stores a program (firmware) related to the processing procedure of the CPU 11 and various information.

表示部13は、カラー液晶表示器等で構成され、画像や各種情報の表示、及びグラフィックユーザインタフェースの表示に用いる。表示部13は、TV等の外部表示装置に映像信号を出力する端子も備えている。操作部14は、ユーザからの指示を受け付けるための入力部であり、レリーズボタン、動画撮影ボタン等の各種ボタンや十字キー、コントロールホイール、モードダイヤル等の操作部材より成る。   The display unit 13 is composed of a color liquid crystal display or the like, and is used for displaying images and various types of information and displaying a graphic user interface. The display unit 13 also includes a terminal for outputting a video signal to an external display device such as a TV. The operation unit 14 is an input unit for receiving instructions from the user, and includes various buttons such as a release button and a moving image shooting button, and operation members such as a cross key, a control wheel, and a mode dial.

DRAM15は、CPU11のワークエリアとして使用され、画像データや表示用データ、画像圧縮後のデータなどを一時的に格納するバッファ機能を有する。通常は、DRAMとの間にメモリコントローラを介しデータの書き込みや読み出しを行うが、ここでは図示していない。また、各処理部とDRAM15との間には、CPU11とのRead/Writeを介さないDMA転送を行うためのDMAコントローラ(不図示)を備えている。   The DRAM 15 is used as a work area of the CPU 11 and has a buffer function for temporarily storing image data, display data, data after image compression, and the like. Normally, data is written to and read from the DRAM via a memory controller, which is not shown here. In addition, a DMA controller (not shown) for performing DMA transfer without using Read / Write with the CPU 11 is provided between each processing unit and the DRAM 15.

記録媒体I/F16は、CPU11からの指示に従い、画像データを記録媒体20に書き込む、または読み出す。記録媒体20は、前述したメモリカード、光ディスクまたはハードディスク等のランダムアクセス可能な記録媒体からなり、撮像装置10に着脱自在である。CPU11、DRAM15及び記録媒体I/F16が、記録媒体20に撮影画像である静止画及び動画を記録する。撮像部17は、レンズ、絞り、シャッタ、及びCCDセンサまたはCMOSセンサ等の撮像素子からなる。   The recording medium I / F 16 writes or reads image data to or from the recording medium 20 in accordance with an instruction from the CPU 11. The recording medium 20 is a random-accessible recording medium such as the above-described memory card, optical disk, or hard disk, and is detachable from the imaging apparatus 10. The CPU 11, the DRAM 15, and the recording medium I / F 16 record still images and moving images that are captured images on the recording medium 20. The imaging unit 17 includes a lens, a diaphragm, a shutter, and an imaging element such as a CCD sensor or a CMOS sensor.

画像処理回路18は、撮像部17から読み出される画像データにホワイトバランス調整、画素補間等の処理を行いYUVデータに変換する。また、画像処理回路18は、画像圧縮伸長回路19で圧縮される前のYUVデータや伸長されたYUVデータを任意のサイズにリサイズし、回転し、色変換する。画像処理回路18は、表示部13に表示する表示用画像データや画像圧縮伸長回路19で圧縮する圧縮用画像データを生成する。また、画像処理回路18は、軌跡画像を生成するための比較明合成処理、キズ・ダークシェーディングといった固定パターンノイズのノイズリダクション処理を行う。   The image processing circuit 18 performs processing such as white balance adjustment and pixel interpolation on the image data read from the imaging unit 17 and converts the image data into YUV data. The image processing circuit 18 resizes the YUV data before being compressed by the image compression / expansion circuit 19 and the decompressed YUV data to an arbitrary size, rotates, and performs color conversion. The image processing circuit 18 generates display image data to be displayed on the display unit 13 and compression image data to be compressed by the image compression / decompression circuit 19. Further, the image processing circuit 18 performs noise reduction processing of fixed pattern noise such as comparatively bright combining processing for generating a trajectory image and scratch / dark shading.

画像圧縮伸長回路19は、YUVデータをJPEG形式の静止画データ、またはH.264形式の動画データに圧縮する圧縮処理や、JPEGまたはH.264形式の圧縮された画像データをYUVデータに伸長する伸長処理を行う。振れ・傾き検出部21は、xyz軸方向の角度振れを検出する3軸角速度計、xyz軸方向の加速度を検出する3軸加速度計などからなる。振れ・傾き検出部21で検出された振れや傾きに応じて画像処理回路18で画像の切り出しや回転を行うことにより、電子的に像ブレや傾きを補正する。   The image compression / decompression circuit 19 converts the YUV data into JPEG still image data, or H.264 data. H.264 format video data compression, JPEG or H.264 A decompression process is performed to decompress the compressed image data in the H.264 format into YUV data. The shake / tilt detection unit 21 includes a triaxial angular velocity meter that detects angular shake in the xyz axis direction, a triaxial accelerometer that detects acceleration in the xyz axis direction, and the like. The image processing circuit 18 cuts out and rotates the image in accordance with the shake and tilt detected by the shake / tilt detection unit 21 to electronically correct image blur and tilt.

CPU11、ROM12、表示部13、操作部14、DRAM15、記録媒体I/F16、撮像部17、画像処理回路18、画像圧縮伸長回路19、及び振れ・傾き検出部21は、内部バス30を介して通信する。   The CPU 11, ROM 12, display unit 13, operation unit 14, DRAM 15, recording medium I / F 16, imaging unit 17, image processing circuit 18, image compression / decompression circuit 19, and shake / tilt detection unit 21 are connected via an internal bus 30. connect.

図3は、電子的な像ブレ補正や傾き補正について説明する図である。
まず、図3(A)を用いて画像の縦横方向の電子的な像ブレ補正について説明する。縦横方向の電子的な像ブレ補正では、振れ・傾き検出部21が検出したxy軸(ピッチ/ヨー)方向の角度振れを補正するための画像のシフト量を求め、画像のシフト量に合わせて画像の切り出し処理を行う。撮影画像301から縦横の画像のシフト量に合わせて切り出した画角が302である。切り出し処理を行うことで、電子的に縦横方向の像ブレ補正を行うことができる。
FIG. 3 is a diagram for explaining electronic image blur correction and tilt correction.
First, electronic image blur correction in the vertical and horizontal directions of an image will be described with reference to FIG. In the electronic image blur correction in the vertical and horizontal directions, an image shift amount for correcting the angular shake in the xy-axis (pitch / yaw) direction detected by the shake / tilt detection unit 21 is obtained, and is adjusted in accordance with the image shift amount. Perform image clipping processing. An angle of view cut out from the captured image 301 in accordance with the shift amount of the vertical and horizontal images is 302. By performing the clipping process, it is possible to electronically perform image blur correction in the vertical and horizontal directions.

次に、図3(B)を用いて画像の光軸周りの回転ブレに対する電子的な像ブレ補正や傾き補正について説明する。画像の光軸周りの回転ブレに対する電子的な像ブレ補正や傾き補正では、振れ・傾き検出部21が検出したz軸方向(ロール)の角度振れや、傾きを補正するための補正量を求め、画像の回転処理を行う。撮影画像303に対し、回転処理を行った画像が304であり、内接部分を出力画像305として切り出し処理を行う。回転処理及び切り出し処理を行うことで、電子的に光軸周りの回転ブレに対する電子的な像ブレ補正や傾きの補正を行うことができる。   Next, electronic image blur correction and tilt correction for rotational blur around the optical axis of an image will be described with reference to FIG. In electronic image blur correction and tilt correction with respect to rotational blur around the optical axis of an image, the angle shake in the z-axis direction (roll) detected by the shake / tilt detection unit 21 and a correction amount for correcting the tilt are obtained. Rotate the image. An image obtained by performing rotation processing on the captured image 303 is 304, and the inscribed portion is cut out as an output image 305. By performing the rotation process and the clipping process, electronic image blur correction and tilt correction can be performed electronically for rotational blur around the optical axis.

上述したように、電子的に像ブレや傾きを補正する場合には、撮影画像から一部の画像を切り出すため撮像した画角に対して、記録される画角が狭くなる。   As described above, when the image blur and the tilt are corrected electronically, the recorded angle of view becomes narrower than the angle of view taken to cut out a part of the image from the captured image.

(第1実施形態)
撮像装置10は、振れ・傾き検出部21が検出した撮像装置10の傾きに応じて、画像処理回路18が画像の切り出しや回転を行うことにより電子的に傾きを補正し、水平を保った動画を簡単に撮影することができる水平補正機能を有する。電子的に傾きを補正するには、撮影画像から一部の画像を切り出す必要があり、撮像した画角に対して記録される画角が狭くなる。このため、静止画撮影時には、水平補正機能は適用しないものとする。さらに、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態においては、水平補正機能を無効とすることにより、ユーザは、静止画撮影前に撮像装置10の傾きの状態をライブビューで確認できる。
(First embodiment)
In the imaging device 10, the image processing circuit 18 electronically corrects the inclination by performing image cutout and rotation in accordance with the inclination of the imaging device 10 detected by the shake / tilt detection unit 21, and the moving image is kept horizontal. It has a horizontal correction function that can be taken easily. In order to electronically correct the tilt, it is necessary to cut out a part of the image from the captured image, and the angle of view recorded with respect to the imaged angle of view becomes narrow. For this reason, the horizontal correction function is not applied during still image shooting. Further, in the still image shooting preparation state by the half-press operation of the release switch (SW1), by disabling the horizontal correction function, the user confirms the tilt state of the imaging device 10 in the live view before shooting the still image. it can.

図4は、第1実施形態における撮像装置の動作を示すフローチャートである。
CPU11が、図4に示す動作を実現するように各部を制御する。操作部14のボタン操作またはモードダイヤル操作により動画モードが選択されると、図4に示す処理が開始される。ステップS101で、CPU11は、撮像部17により撮像される画像を動画フレームとしてキャプチャする。
FIG. 4 is a flowchart illustrating the operation of the imaging apparatus according to the first embodiment.
The CPU 11 controls each unit so as to realize the operation shown in FIG. When the moving image mode is selected by the button operation of the operation unit 14 or the mode dial operation, the processing shown in FIG. 4 is started. In step S101, the CPU 11 captures an image captured by the imaging unit 17 as a moving image frame.

ステップS102で、CPU11は、画像処理回路18を用いて、キャプチャされた動画フレームの画像データに対して、ホワイトバランス調整、画素補間等の処理を施し、YUVデータに変換し、DRAM15に書き込む。ステップS103で、CPU11は、操作部14のレリーズスイッチの半押し操作(SW1)、すなわち静止画撮影準備指示の有無を判定する。ステップS103で静止画撮影準備指示(SW1)がなかった場合、ステップS104に進み、静止画撮影準備指示(SW1)があった場合、ステップS107に進む。   In step S <b> 102, the CPU 11 performs processing such as white balance adjustment and pixel interpolation on the captured image data of the moving image frame using the image processing circuit 18, converts it into YUV data, and writes it into the DRAM 15. In step S103, the CPU 11 determines whether the release switch of the operation unit 14 is half-pressed (SW1), that is, whether there is a still image shooting preparation instruction. If there is no still image shooting preparation instruction (SW1) in step S103, the process proceeds to step S104, and if there is a still image shooting preparation instruction (SW1), the process proceeds to step S107.

ステップS104で、CPU11は、振れ・傾き検出部21を用いて撮像装置10の傾斜角度を検出する。ステップS105で、CPU11は、ステップS104で検出した撮像装置10の傾きを補正するように、画像の回転処理における補正量や切り出し処理におけるシフト量といった、画像処理回路18の傾き補正パラメータを算出する。ステップS106で、CPU11は、ステップS102で生成した画像データに対し、画像処理回路18を用いて、ステップS105で算出した傾き補正パラメータで画像の回転処理及び切り出し処理を行う。これにより、撮像装置10の傾きにより生じた画像の傾きを補正した画像データが生成される。   In step S <b> 104, the CPU 11 detects the tilt angle of the imaging apparatus 10 using the shake / tilt detection unit 21. In step S105, the CPU 11 calculates tilt correction parameters of the image processing circuit 18 such as a correction amount in the image rotation process and a shift amount in the clipping process so as to correct the tilt of the imaging device 10 detected in step S104. In step S <b> 106, the CPU 11 uses the image processing circuit 18 to perform image rotation processing and clipping processing on the image data generated in step S <b> 102 with the tilt correction parameter calculated in step S <b> 105. Thereby, image data in which the inclination of the image generated by the inclination of the imaging device 10 is corrected is generated.

このように、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態においては水平補正機能を無効にでき、ユーザが撮像装置10の傾き状態をライブビューで確認できるように表示制御を行う。ステップS107で、CPU11は、ステップS102で生成した画像データ、またはステップS106で傾き補正を施した画像データに対して画像処理回路18を用いて記録用のサイズへのリサイズ処理等を施し、動画圧縮用データを生成する。そして、生成した動画圧縮用データをDRAM15に書き込む。   As described above, in the still image shooting preparation state by the half-press operation (SW1) of the release switch, the horizontal correction function can be disabled, and display control is performed so that the user can check the tilt state of the imaging device 10 in the live view. In step S107, the CPU 11 performs resize processing to the recording size using the image processing circuit 18 on the image data generated in step S102 or the image data subjected to inclination correction in step S106, and compresses the moving image. Data is generated. Then, the generated moving image compression data is written into the DRAM 15.

ステップS108で、CPU11は、ステップS107で生成した動画圧縮用データを、画像圧縮伸長回路19を用いてMPEGやMotionJPEG形式で圧縮する。ステップS109で、CPU11は、ステップS108で圧縮された動画データを、DRAM15上の動画バッファ領域に一時記憶する。ステップS110で、CPU11は、ステップS102で生成した画像データ、または、ステップS106で傾き補正を施した画像データに対して画像処理回路18を用いて表示用サイズへのリサイズ処理等を施し、表示用画像データを生成する。そして、生成した表示用画像データをDRAM15に書き込む。   In step S108, the CPU 11 compresses the moving image compression data generated in step S107 in the MPEG or Motion JPEG format using the image compression / decompression circuit 19. In step S109, the CPU 11 temporarily stores the moving image data compressed in step S108 in the moving image buffer area on the DRAM 15. In step S110, the CPU 11 performs a resizing process to the display size using the image processing circuit 18 on the image data generated in step S102 or the image data subjected to the tilt correction in step S106, and the display data is displayed. Generate image data. Then, the generated display image data is written into the DRAM 15.

表示用画像データの生成に伴い、ステップS111で、CPU11は、表示部13に表示用画像データを表示させる。すなわち、表示部13のライブビュー表示画像が更新される。ステップS112で、CPU11は、操作部14のレリーズスイッチの全押し操作(SW2)、すなわち、静止画撮影指示の有無を判定する。ステップS112で静止画撮影指示(SW2)がなかった場合、ステップS101に戻り、CPU11は、次の動画フレームの処理を続ける。ステップS112で静止画撮影指示があった場合、ステップS113に進む。ステップS113で、CPU11は、撮像部17により静止画フレームのキャプチャを行う。   With the generation of the display image data, the CPU 11 causes the display unit 13 to display the display image data in step S111. That is, the live view display image on the display unit 13 is updated. In step S112, the CPU 11 determines whether or not the release switch of the operation unit 14 is fully pressed (SW2), that is, whether there is a still image shooting instruction. If there is no still image shooting instruction (SW2) in step S112, the process returns to step S101, and the CPU 11 continues processing the next moving image frame. If there is a still image shooting instruction in step S112, the process proceeds to step S113. In step S <b> 113, the CPU 11 captures a still image frame using the imaging unit 17.

ステップS114で、CPU11は、画像処理回路18を用いて、キャプチャされた静止画フレームの画像データに対して、現像処理、すなわちホワイトバランス調整、画素補間等の処理を施し、YUVデータに変換し、DRAM15に書き込む。ステップS115で、CPU11は、画像圧縮伸長回路19を用いて、ステップS114で生成した現像後の画像データをJPEG形式の静止画像データに圧縮符号化し、DRAM15に書き込む。ステップS116で、CPU11は、ステップS115で圧縮符号化されたJPEG形式の静止画像データを、記録媒体I/F16を介して記録媒体20に記録し、撮影を終了する。   In step S <b> 114, the CPU 11 uses the image processing circuit 18 to perform development processing, that is, white balance adjustment, pixel interpolation, and the like on the captured still image frame image data, and converts the image data into YUV data. Write to DRAM 15. In step S <b> 115, the CPU 11 uses the image compression / decompression circuit 19 to compress and code the developed image data generated in step S <b> 114 into JPEG format still image data, and writes the compressed image data in the DRAM 15. In step S116, the CPU 11 records the JPEG format still image data compression-encoded in step S115 on the recording medium 20 via the recording medium I / F 16, and ends the shooting.

以上のように、本実施形態によれば、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態においては水平補正機能を無効とすることにより、ユーザが静止画撮影前に撮像装置10の傾き状態をライブビューで確認することができる。これにより、動画撮影では傾き補正を可能とし、静止画撮影では傾き補正を不可とするような場合であって、傾き補正が適用されている動画撮影モードで静止画を撮影したときに、意図せず傾いた静止画が撮影されてしまうことを防ぐことができる。   As described above, according to the present embodiment, the horizontal correction function is disabled in the still image shooting preparation state by the half-press operation (SW1) of the release switch, so that the user can set the imaging device 10 before shooting the still image. You can check the tilt status in live view. This makes it possible to correct tilt when shooting movies and disable tilt correction when shooting still images, and when shooting still images in the movie shooting mode to which tilt correction is applied. It is possible to prevent a still image tilted from being taken.

(第2実施形態)
次に本発明の第2実施形態に係る撮像装置について説明する。本実施形態に係る撮像装置10の構成自体は、第1実施形態に係る撮像装置と同一とする。第1実施形態と同様に、本実施形態に係る撮像装置は、水平補正機能を有し、静止画撮影時には水平補正機能は適用しないものとする。
(Second Embodiment)
Next, an imaging apparatus according to a second embodiment of the present invention will be described. The configuration itself of the imaging apparatus 10 according to the present embodiment is the same as that of the imaging apparatus according to the first embodiment. As in the first embodiment, the imaging apparatus according to the present embodiment has a horizontal correction function, and the horizontal correction function is not applied during still image shooting.

その上で、第1実施形態では、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において水平補正機能を無効とした。これに対して、本実施形態では、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において、ライブビュー表示用の画像に対してのみ水平補正機能による傾き補正を無効とする。これにより、静止画撮影前に撮像装置10の傾き状態をライブビューで確認することができるとともに、傾き補正が施された動画像を記録することができる。以下、本実施形態では、同一構成のものには同一の符号を付し、その説明を省略する。   In addition, in the first embodiment, the horizontal correction function is disabled in the still image shooting preparation state by the half-press operation (SW1) of the release switch. On the other hand, in the present embodiment, in the still image shooting preparation state by the half-press operation (SW1) of the release switch, the tilt correction by the horizontal correction function is invalidated only for the live view display image. Accordingly, it is possible to check the tilt state of the imaging apparatus 10 with a live view before taking a still image, and to record a moving image on which tilt correction has been performed. Hereinafter, in this embodiment, the same code | symbol is attached | subjected to the thing of the same structure, and the description is abbreviate | omitted.

図5は、第2実施形態における撮像装置の動作を示すフローチャートである。
CPU11が、図5に示す動作を実現するように各部を制御する。操作部14のボタン操作またはモードダイヤル操作により動画モードが選択されると、図5に示す処理が開始される。ステップS201及びステップS202の処理は、図4に示したステップS101及びS102の処理と同様のため、その説明は省略する。
FIG. 5 is a flowchart illustrating the operation of the imaging apparatus according to the second embodiment.
The CPU 11 controls each unit so as to realize the operation shown in FIG. When the moving image mode is selected by operating the button of the operation unit 14 or the mode dial operation, the processing shown in FIG. 5 is started. The processing in step S201 and step S202 is the same as the processing in step S101 and S102 shown in FIG.

ステップS203で、CPU11は、振れ・傾き検出部21を用いて撮像装置10の傾斜角度を検出する。ステップS204で、CPU11は、ステップS203で検出した撮像装置10の傾きを補正するように、画像の回転処理における補正量や切り出し処理におけるシフト量といった、画像処理回路18の傾き補正パラメータを算出する。   In step S <b> 203, the CPU 11 detects the tilt angle of the imaging apparatus 10 using the shake / tilt detection unit 21. In step S204, the CPU 11 calculates tilt correction parameters of the image processing circuit 18, such as a correction amount in the image rotation process and a shift amount in the clipping process, so as to correct the tilt of the imaging device 10 detected in step S203.

ステップS205で、CPU11は、ステップS202で生成した画像データに対し、画像処理回路18を用いて、ステップS204で算出した傾き補正パラメータで画像の回転処理及び切り出し処理を行う。これにより、撮像装置10の傾きにより生じた画像の傾きを補正した画像データが生成される。ステップS206で、CPU11は、ステップS205で傾き補正を施した画像データに対して画像処理回路18を用いて記録用のサイズへのリサイズ処理等を施し、動画圧縮用データを生成する。そして、生成した動画圧縮用データをDRAM15に書き込む。   In step S205, the CPU 11 uses the image processing circuit 18 to perform image rotation processing and clipping processing on the image data generated in step S202, using the tilt correction parameter calculated in step S204. Thereby, image data in which the inclination of the image generated by the inclination of the imaging device 10 is corrected is generated. In step S206, the CPU 11 performs resize processing to the recording size using the image processing circuit 18 on the image data that has been tilt-corrected in step S205, and generates moving image compression data. Then, the generated moving image compression data is written into the DRAM 15.

ステップS207で、CPU11は、ステップS206で生成した動画圧縮用データを、画像圧縮伸長回路19を用いてMPEGやMotionJPEG形式で圧縮する。ステップS208で、CPU11は、ステップS207で圧縮された動画像データを、DRAM15上の動画バッファ領域に一時記憶する。ステップS209で、CPU11は、操作部14のレリーズスイッチの半押し操作(SW1)、すなわち静止画撮影準備指示の有無を判定する。ステップS209で静止画撮影準備指示(SW1)がなかった場合、ステップS210に進み、静止画撮影準備指示(SW1)があった場合、ステップS211に進む。   In step S207, the CPU 11 compresses the moving image compression data generated in step S206 in the MPEG or Motion JPEG format using the image compression / decompression circuit 19. In step S208, the CPU 11 temporarily stores the moving image data compressed in step S207 in the moving image buffer area on the DRAM 15. In step S209, the CPU 11 determines whether the release switch of the operation unit 14 is half-pressed (SW1), that is, whether there is a still image shooting preparation instruction. If there is no still image shooting preparation instruction (SW1) in step S209, the process proceeds to step S210. If there is a still image shooting preparation instruction (SW1), the process proceeds to step S211.

ステップS210で、CPU11は、ステップS202で生成した画像データに対し、画像処理回路18を用いて、ステップS204で算出した傾き補正パラメータで画像の回転処理及び切り出し処理を行う。これにより、撮像装置10の傾きにより生じた画像の傾きを補正した画像データが生成される。ステップS211で、CPU11は、ステップS202で生成した画像データ、または、ステップS210で傾き補正を施した画像データに対して画像処理回路18を用いて表示用サイズへのリサイズ処理等を施し、表示用画像データを生成する。そして、生成した表示用画像データをDRAM15に書き込む。   In step S210, the CPU 11 uses the image processing circuit 18 on the image data generated in step S202 to perform image rotation processing and clipping processing using the tilt correction parameter calculated in step S204. Thereby, image data in which the inclination of the image generated by the inclination of the imaging device 10 is corrected is generated. In step S211, the CPU 11 performs a resizing process or the like to the display size using the image processing circuit 18 on the image data generated in step S202 or the image data subjected to the tilt correction in step S210. Generate image data. Then, the generated display image data is written into the DRAM 15.

このように、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態においては水平補正機能を無効にしたライブビューを表示でき、ユーザが撮像装置10の傾き状態をライブビューで確認できるように表示制御を行う。さらに、本実施形態では、レリーズスイッチの半押し操作による静止画撮影準備状態であっても、傾き補正が施された動画像を記録することができる。ステップS212〜ステップS217の処理は、図4のS111〜ステップSS116の処理と同様のため、その説明は省略する。   As described above, in the still image shooting preparation state by the half-press operation (SW1) of the release switch, a live view in which the horizontal correction function is disabled can be displayed, and the user can check the tilt state of the imaging device 10 in the live view. Perform display control. Furthermore, in the present embodiment, it is possible to record a moving image subjected to tilt correction even in a still image shooting preparation state by a half-press operation of a release switch. Since the process of step S212-step S217 is the same as the process of S111-step SS116 of FIG. 4, the description is abbreviate | omitted.

以上のように、本実施形態によれば、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態においては水平補正機能を無効にしたライブビューを表示できる。これにより、ユーザが静止画撮影前に撮像装置10の傾き状態をライブビューで確認することができるとともに、動画像データとして傾き補正が施された画像データを記録することができる。   As described above, according to the present embodiment, it is possible to display a live view in which the horizontal correction function is disabled in the still image shooting preparation state by the half-press operation (SW1) of the release switch. Accordingly, the user can check the tilt state of the imaging device 10 with a live view before taking a still image, and can record image data on which tilt correction has been performed as moving image data.

したがって、動画撮影では傾き補正を可能とし、静止画撮影では傾き補正を不可とするような場合であって、傾き補正が適用されている動画撮影モードで静止画を撮影したときに、意図せず傾いた静止画が撮影されてしまうことを防ぐことができる。さらに、そのとき記録される動画像データとして傾き補正が施された画像データを記録することができる。   Therefore, tilt correction is possible for movie shooting, and tilt correction is not possible for still image shooting.When shooting a still image in movie shooting mode to which tilt correction is applied, it is not intended. It is possible to prevent a tilted still image from being shot. Furthermore, image data that has been subjected to tilt correction can be recorded as moving image data that is recorded at that time.

(第3実施形態)
次に本発明の第3実施形態に係る撮像装置について説明する。本実施形態に係る撮像装置10の構成自体は、第1実施形態及び第2実施形態に係る撮像装置と同一とする。第1実施形態と同様に、本実施形態に係る撮像装置10は、水平補正機能を有する。さらに、本実施形態に係る撮像装置10は、動画撮影において、振れ・傾き検出部21が検出した撮像装置10の角度振れに応じて、画像処理回路18が画像の切り出しや回転を行うことにより電子的に角度振れによる像ブレを補正する電子防振機能を有する。
(Third embodiment)
Next, an imaging apparatus according to a third embodiment of the present invention will be described. The configuration itself of the imaging apparatus 10 according to this embodiment is the same as that of the imaging apparatus according to the first embodiment and the second embodiment. Similar to the first embodiment, the imaging apparatus 10 according to the present embodiment has a horizontal correction function. Furthermore, in the imaging apparatus 10 according to the present embodiment, the image processing circuit 18 cuts and rotates the image in accordance with the angular shake of the imaging apparatus 10 detected by the shake / tilt detection unit 21 in moving image shooting. In addition, it has an electronic image stabilization function for correcting image blur due to angular shake.

電子的に傾きや角度振れによる像ブレを補正するには、撮影画像から一部の画像を切り出す必要があり、撮像した画角に対して記録される画角が狭くなる。このため、静止画撮影時には、ユーザが水平補正機能を有効にするために記録される画角が狭くなることを許容したと判断できる、動画の電子防振機能を無効にしている時のみ、水平補正機能を適用するものとする。   In order to electronically correct image blur due to tilt or angular shake, it is necessary to cut out a part of the image from the captured image, and the angle of view recorded with respect to the captured angle of view becomes narrow. For this reason, during still image shooting, it can be determined that the user has allowed the recorded angle of view to be narrowed in order to enable the horizontal correction function, and only when the video image stabilization function is disabled. The correction function shall be applied.

すなわち、動画の電子防振機能を有効にしている場合には、電子防振機能のために画角が狭くなることを許容していると判断し、静止画撮影時の水平補正機能を無効とする。静止画撮影時の水平補正機能を無効にしている場合には、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において動画の水平補正機能を無効とする。これにより、ユーザは、静止画撮影前に撮像装置10の傾きの状態をライブビューで確認できる。   In other words, when the electronic image stabilization function for moving images is enabled, it is determined that the angle of view is allowed to be narrowed due to the electronic image stabilization function, and the horizontal correction function during still image shooting is disabled. To do. When the horizontal correction function during still image shooting is disabled, the horizontal correction function for moving images is disabled in the still image shooting preparation state by the half-press operation (SW1) of the release switch. Thereby, the user can confirm the state of the inclination of the imaging device 10 in the live view before taking a still image.

図6は、第3実施形態における撮像装置の動作を示すフローチャートである。
CPU11が、図6に示す動作を実現するように各部を制御する。操作部14のボタン操作またはモードダイヤル操作により動画モードが選択されると、図6に示す処理が開始される。ステップS301及びステップS302の処理は、図4に示したステップS101及びS102の処理と同様のため、その説明は省略する。
FIG. 6 is a flowchart illustrating the operation of the imaging apparatus according to the third embodiment.
The CPU 11 controls each unit so as to realize the operation shown in FIG. When the moving image mode is selected by operating the button of the operation unit 14 or the mode dial operation, the processing shown in FIG. 6 is started. The processing in steps S301 and S302 is the same as the processing in steps S101 and S102 shown in FIG.

ステップS303で、CPU11は、動画の電子防振機能が有効であるか否かを判定する。ステップS303で、動画の電子防振機能が有効であると判定された場合、ステップS304に進み、動画の電子防振機能が無効であると判定された場合、ステップS307に進む。ステップS304で、CPU11は、振れ・傾き検出部21を用いて撮像装置10のxyz軸方向の角度振れを検出する。   In step S303, the CPU 11 determines whether the electronic image stabilization function for the moving image is valid. If it is determined in step S303 that the moving image electronic image stabilization function is enabled, the process proceeds to step S304. If the moving image electronic image stabilization function is determined to be disabled, the process proceeds to step S307. In step S <b> 304, the CPU 11 detects angular shake in the xyz axis direction of the imaging apparatus 10 using the shake / tilt detection unit 21.

ステップS305で、CPU11は、ステップS304で検出した撮像装置10の角度振れを補正するように、画像の回転処理における補正量や切り出し処理におけるシフト量といった、画像処理回路18の角度振れ補正パラメータを算出する。ステップS306で、CPU11は、ステップS302で生成した画像データに対し、画像処理回路18を用いて、ステップS305で算出した角度振れ補正パラメータで画像の回転処理及び切り出し処理を行う。これにより、撮像装置10の角度振れによる像ブレを補正した画像データが生成される。   In step S305, the CPU 11 calculates angular shake correction parameters of the image processing circuit 18 such as a correction amount in the image rotation process and a shift amount in the clipping process so as to correct the angular shake of the imaging apparatus 10 detected in step S304. To do. In step S306, the CPU 11 uses the image processing circuit 18 on the image data generated in step S302 to perform image rotation processing and clipping processing using the angular shake correction parameter calculated in step S305. Thereby, image data in which the image blur due to the angular shake of the imaging device 10 is corrected is generated.

ステップS307で、CPU11は、操作部14のレリーズスイッチの半押し操作(SW1)、すなわち静止画撮影準備指示の有無を判定する。ステップS307で静止画撮影準備指示(SW1)がなかった場合、ステップS309に進み、静止画撮影準備指示(SW1)があった場合、ステップS308に進む。ステップS308で、CPU11は、動画の電子防振機能が有効であるか否かを判定する。   In step S307, the CPU 11 determines whether the release switch of the operation unit 14 is half-pressed (SW1), that is, whether there is a still image shooting preparation instruction. If there is no still image shooting preparation instruction (SW1) in step S307, the process proceeds to step S309. If there is a still image shooting preparation instruction (SW1), the process proceeds to step S308. In step S308, the CPU 11 determines whether the electronic image stabilization function for the moving image is valid.

ステップS308で、動画の電子防振機能が無効であると判定された場合、ステップS309に進み、動画の電子防振機能が有効であると判定された場合、ステップS312に進む。ステップS309で、CPU11は、振れ・傾き検出部21を用いて、撮像装置10の傾斜角度を検出する。ステップS310で、CPU11は、ステップS309で検出した撮像装置10の傾きを補正するように、画像の回転処理における補正量や切り出し処理におけるシフト量といった、画像処理回路18の傾き補正パラメータを算出する。   If it is determined in step S308 that the electronic image stabilization function for the moving image is invalid, the process proceeds to step S309. If it is determined that the electronic image stabilization function for the moving image is valid, the process proceeds to step S312. In step S <b> 309, the CPU 11 detects the tilt angle of the imaging device 10 using the shake / tilt detection unit 21. In step S310, the CPU 11 calculates tilt correction parameters of the image processing circuit 18, such as a correction amount in the image rotation process and a shift amount in the clipping process, so as to correct the tilt of the imaging device 10 detected in step S309.

ステップS311で、CPU11は、ステップS302で生成した画像データ、または、ステップS306で像ブレ補正を施した画像データに対し、画像処理回路18を用いて次の処理を行う。すなわち、ステップS310で算出した傾き補正パラメータで画像の回転処理及び切り出し処理を行う。これにより、撮像装置10の傾きにより生じた画像の傾きを補正した画像データが生成される。   In step S311, the CPU 11 performs the following processing using the image processing circuit 18 on the image data generated in step S302 or the image data subjected to image blur correction in step S306. That is, image rotation processing and clipping processing are performed using the tilt correction parameter calculated in step S310. Thereby, image data in which the inclination of the image generated by the inclination of the imaging device 10 is corrected is generated.

このように、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において、動画の電子防振機能が有効である時には、水平補正機能を無効にでき、ユーザが撮像装置10の傾き状態をライブビューで確認できるように表示制御を行う。ステップS312で、CPU11は、画像処理回路18を用いて記録用のサイズへのリサイズ処理等を施し、動画圧縮用データを生成し、DRAM15に書き込む。ステップS312で入力される画像データは、ステップS302で生成した画像データ、または、ステップS306の角度振れ補正及びステップS311の傾き補正の両方または一方を施した画像データである。   As described above, in the still image shooting preparation state by the half-press operation (SW1) of the release switch, when the electronic image stabilization function of the moving image is valid, the horizontal correction function can be invalidated, and the user can change the tilt state of the imaging device 10. Control the display so that you can check it in Live View. In step S <b> 312, the CPU 11 performs resize processing to a recording size using the image processing circuit 18, generates moving image compression data, and writes the data to the DRAM 15. The image data input in step S312 is the image data generated in step S302, or image data that has been subjected to both or one of the angular shake correction in step S306 and the tilt correction in step S311.

ステップS313で、CPU11は、ステップS312で生成した動画圧縮用データを、画像圧縮伸長回路19を用いてMPEGやMotionJPEG形式で圧縮する。ステップS314で、CPU11は、ステップS313で圧縮された動画像データを、DRAM15上の動画バッファ領域に一時記憶する。   In step S313, the CPU 11 uses the image compression / decompression circuit 19 to compress the moving image compression data generated in step S312 in the MPEG or Motion JPEG format. In step S314, the CPU 11 temporarily stores the moving image data compressed in step S313 in the moving image buffer area on the DRAM 15.

ステップS315で、CPU11は、画像処理回路18を用いて表示用サイズへのリサイズ処理等を施し、表示用画像データを生成し、DRAM15に書き込む。ステップS315で入力される画像データは、ステップS312と同様に、ステップS302で生成した画像データ、または、ステップS306の角度振れ補正及びステップS311の傾き補正の両方または一方を施した画像データとする。   In step S <b> 315, the CPU 11 performs a resizing process or the like to the display size using the image processing circuit 18, generates display image data, and writes the display image data in the DRAM 15. As in step S312, the image data input in step S315 is the image data generated in step S302, or image data that has undergone both or one of the angular shake correction in step S306 and the tilt correction in step S311.

表示用画像データの生成に伴い、ステップS316で、CPU11は、表示部13に表示用画像データを表示させる。すなわち、表示部13のライブビュー表示画像が更新される。ステップS317で、CPU11は、操作部14のレリーズスイッチの全押し操作(SW2)、すなわち、静止画撮影指示の有無を判定する。ステップS317で静止画撮影指示(SW2)がなかったと場合、ステップS301に戻り、CPU11は、次の動画フレームの処理を続ける。ステップS317で静止画撮影指示があった場合、ステップS318に進む。   With the generation of the display image data, the CPU 11 displays the display image data on the display unit 13 in step S316. That is, the live view display image on the display unit 13 is updated. In step S317, the CPU 11 determines whether the release switch of the operation unit 14 is fully pressed (SW2), that is, whether there is a still image shooting instruction. If it is determined in step S317 that there is no still image shooting instruction (SW2), the process returns to step S301, and the CPU 11 continues processing the next moving image frame. If there is a still image shooting instruction in step S317, the process proceeds to step S318.

ステップS318で、CPU11は、撮像部17により静止画フレームのキャプチャを行う。ステップS319で、CPU11は、画像処理回路18を用いて、キャプチャされた静止画フレームの画像データに対して、現像処理、すなわちホワイトバランス調整、画素補間等の処理を施し、YUVデータに変換し、DRAM15に書き込む。ステップS320で、CPU11は、動画の電子防振機能が有効であるか否か、すなわち、角度振れ補正のために、ステップS306において画像の切り出し処理が行われたか否かを判定する。   In step S <b> 318, the CPU 11 captures a still image frame using the imaging unit 17. In step S319, the CPU 11 uses the image processing circuit 18 to perform development processing, that is, white balance adjustment, pixel interpolation, and the like on the captured image data of the still image frame, and converts it into YUV data. Write to DRAM 15. In step S320, the CPU 11 determines whether or not the electronic image stabilization function of the moving image is valid, that is, whether or not the image cut-out process has been performed in step S306 for correcting the angle shake.

ステップS320で、動画の電子防振機能が無効であると判定された場合、ステップS321に進み、動画の電子防振機能が有効であると判定された場合、ステップS322に進む。ステップS321で、CPU11は、ステップS319で生成した現像後の画像データに対し、画像処理回路18を用いてステップS311で算出した傾き補正パラメータで画像の回転処理及び切り出し処理を行う。これにより、撮像装置10の傾きにより生じた画像の傾きを補正した画像データが生成される。   If it is determined in step S320 that the electronic image stabilization function for the moving image is invalid, the process proceeds to step S321. If it is determined that the electronic image stabilization function for the moving image is valid, the process proceeds to step S322. In step S321, the CPU 11 performs image rotation processing and clipping processing on the developed image data generated in step S319 using the image processing circuit 18 with the inclination correction parameter calculated in step S311. Thereby, image data in which the inclination of the image generated by the inclination of the imaging device 10 is corrected is generated.

ステップS322で、CPU11は、画像圧縮伸長回路19を用いて、ステップS319で生成した現像後の画像データ、または、ステップS321で傾き補正を施した画像データをJPEG形式の静止画像データに圧縮符号化し、DRAM15に書き込む。
ステップS323で、CPU11は、ステップS322で圧縮符号化されたJPEG形式の静止画像データを、記録媒体I/F16を介して記録媒体20に記録し、撮影を終了する。
In step S322, the CPU 11 uses the image compression / decompression circuit 19 to compress and encode the developed image data generated in step S319 or the image data subjected to inclination correction in step S321 into still image data in JPEG format. Then, it writes in the DRAM 15.
In step S323, the CPU 11 records the JPEG format still image data compression-encoded in step S322 on the recording medium 20 via the recording medium I / F 16, and ends the shooting.

以上のように、本実施形態によれば、ユーザが水平補正機能を有効にすることで記録される画角が狭くなることを許容したと判断できる、動画の電子防振機能を無効にしている時は、静止画撮影時においても水平補正機能を適用する。すなわち、静止画撮影においても傾き補正を行う。また、本実施形態によれば、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において、動画の電子防振機能が有効である場合には、水平補正機能を無効にし、ユーザが撮像装置10の傾き状態をライブビューで確認することができる。   As described above, according to the present embodiment, the electronic image stabilization function for moving images, which can be determined as allowing the user to narrow the angle of view recorded by enabling the horizontal correction function, is disabled. In some cases, the horizontal correction function is applied even during still image shooting. That is, tilt correction is also performed in still image shooting. Further, according to the present embodiment, in the still image shooting preparation state by the half-press operation (SW1) of the release switch, if the moving image electronic image stabilization function is enabled, the horizontal correction function is disabled and the user takes an image. The tilt state of the device 10 can be confirmed with a live view.

したがって、動画撮影の場合だけでなく、動画の電子防振が無効の場合には静止画撮影においても傾き補正を行い、水平を保った画像を簡単に撮影することができる。また、動画の電子防振が有効の場合、すなわち、静止画撮影における傾き補正が不可の場合であって、傾き補正が適用されている動画撮影モードで静止画を撮影したときに、意図せず傾いた静止画が撮影されてしまうことを防ぐことができる。   Therefore, not only in the case of moving image shooting, but also in the case where electronic image stabilization of a moving image is disabled, tilt correction can be performed in still image shooting, and a horizontal image can be easily shot. In addition, when electronic video stabilization is enabled, that is, when tilt correction is not possible in still image shooting, and when shooting a still image in the movie shooting mode to which tilt correction is applied, it is not intended. It is possible to prevent a tilted still image from being shot.

なお、本実施形態では、レリーズスイッチの半押し操作による静止画撮影準備状態であるか否かによらず、動画の電子防振機能が無効に設定されている場合に、ステップS309〜S311の傾き補正が行われた。一方、動画の電子防振機能が有効に設定されている場合、静止画撮影準備状態において傾き補正は行われず、このとき記録される動画像データは、傾き補正が施されていないデータとなる。しかし、第2実施形態と同様に、ライブビュー表示用の画像データに対してのみ傾き補正を行わず、動画像記録用データには傾き補正がなされた画像を生成するようにしてもよい。   In the present embodiment, the inclination of steps S309 to S311 is set when the electronic image stabilization function for moving images is disabled regardless of whether the still image shooting preparation state is set by half-pressing the release switch. A correction was made. On the other hand, when the electronic image stabilization function for moving images is set to be effective, tilt correction is not performed in the still image shooting preparation state, and the moving image data recorded at this time is data that has not been tilt corrected. However, as in the second embodiment, the tilt correction may not be performed only on the live view display image data, and an image with the tilt correction may be generated on the moving image recording data.

その場合、ステップS307及びステップS308の処理は行わず、代わりにステップS314とS315の処理の間に、ステップS307及びS308の処理を行い、ステップS315の処理の代わりに、ステップS210と同様の処理を行えばよい。   In that case, the process of step S307 and step S308 is not performed, and instead, the process of step S307 and S308 is performed between the processes of step S314 and S315, and the process similar to step S210 is performed instead of the process of step S315. Just do it.

(第4実施形態)
次に本発明の第4実施形態に係る撮像装置について説明する。本実施形態に係る撮像装置10の構成自体は、第1実施形態乃至第3実施形態に係る撮像装置と同一とする。第1実施形態乃至第3実施形態と同様に、本実施形態に係る撮像装置10は、水平補正機能を有する。さらに、本実施形態に係る撮像装置10は、撮像部17により撮像された画像から一部を切り出し、拡大することによりズームを実現する電子ズーム機能を有する。
(Fourth embodiment)
Next, an imaging device according to a fourth embodiment of the present invention will be described. The configuration itself of the imaging apparatus 10 according to the present embodiment is the same as that of the imaging apparatus according to the first to third embodiments. Similar to the first to third embodiments, the imaging apparatus 10 according to the present embodiment has a horizontal correction function. Furthermore, the imaging apparatus 10 according to the present embodiment has an electronic zoom function that realizes zooming by cutting out and enlarging a part from the image captured by the imaging unit 17.

電子的に傾き補正を行うには、撮影画像から一部の画像を切り出す必要があり、撮像した画角に対して記録される画角が狭くなる。このため、静止画撮影時には、水平補正機能は、もともと撮影画像の一部を切り出して使用する電子ズームを用いている状態の時のみ適用するものとする。すなわち、電子ズームを用いている状態ではない時は、静止画撮影時の水平補正機能は無効とする。このため、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において、動画の水平補正機能を無効とする。これにより、ユーザは、静止画撮影前に撮像装置10の傾きの状態をライブビューで確認できる。   In order to electronically correct the tilt, it is necessary to cut out a part of the image from the captured image, and the angle of view recorded with respect to the captured angle of view becomes narrow. For this reason, at the time of still image shooting, the horizontal correction function is applied only when the electronic zoom that originally cuts out and uses a part of the shot image is used. That is, when the electronic zoom is not used, the horizontal correction function during still image shooting is invalid. For this reason, the moving image horizontal correction function is disabled in the still image shooting preparation state by the half-press operation (SW1) of the release switch. Thereby, the user can confirm the state of the inclination of the imaging device 10 in the live view before taking a still image.

図7は、第4実施形態における撮像装置の動作を示すフローチャートである。
CPU11が、図7に示す動作を実現するように各部を制御する。操作部14のボタン操作またはモードダイヤル操作により動画モードが選択されると、図7に示す処理が開始される。ステップS401乃至S403の処理は、図4に示したステップS101乃至S103の処理と同様のため、その説明は省略する。
FIG. 7 is a flowchart illustrating the operation of the imaging apparatus according to the fourth embodiment.
The CPU 11 controls each unit so as to realize the operation shown in FIG. When the moving image mode is selected by the button operation of the operation unit 14 or the mode dial operation, the processing shown in FIG. 7 is started. The processing in steps S401 through S403 is the same as the processing in steps S101 through S103 shown in FIG.

ステップS403で静止画撮影準備指示(SW1)がなかった場合、ステップS405に進む。ステップS403で静止画撮影準備指示(SW1)があった場合、ステップS404に進む。ステップS404で、CPU11は、電子ズーム状態であるか否かを判定する。ステップS404で、電子ズーム状態であると判定された場合、ステップS405に進み、電子ズーム状態でないと判定された場合、ステップS408に進む。ステップS405乃至S407の処理は、図4に示したステップS104乃至S106の処理と同様のため、その説明は省略する。   If there is no still image shooting preparation instruction (SW1) in step S403, the process proceeds to step S405. If there is a still image shooting preparation instruction (SW1) in step S403, the process proceeds to step S404. In step S404, the CPU 11 determines whether or not the electronic zoom state is set. If it is determined in step S404 that the electronic zoom state is set, the process proceeds to step S405. If it is determined that the electronic zoom state is not set, the process proceeds to step S408. The processing in steps S405 to S407 is the same as the processing in steps S104 to S106 shown in FIG.

このように、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において、電子ズーム状態の時を除いて水平補正機能を無効にでき、ユーザが撮像装置10の傾き状態をライブビューで確認できるように表示制御を行う。電子ズーム状態の時には、静止画撮影時の水平補正機能が有効となる。ステップS408乃至S415の処理は、図4に示したステップS107乃至S114の処理と同様のため、その説明は省略する。   In this way, in the still image shooting preparation state by the half-press operation (SW1) of the release switch, the horizontal correction function can be disabled except in the electronic zoom state, and the user can confirm the tilt state of the imaging device 10 in the live view. Control the display so that you can. In the electronic zoom state, the horizontal correction function during still image shooting is effective. The processing in steps S408 to S415 is the same as the processing in steps S107 to S114 shown in FIG.

ステップS416で、CPU11は、電子ズーム状態であるか否か、すなわち、撮像部17により撮像された画像から一部を切り出し、拡大して記録する電子ズーム処理がなされたか否かを判定する。ステップS416で、電子ズーム状態であると判定された場合、ステップS417に進み、電子ズーム状態でないと判定された場合、ステップS418に進む。ステップS417で、CPU11は、ステップS415で生成した現像後の画像データに対し、画像処理回路18を用いてステップS406で算出した傾き補正パラメータで画像の回転処理及び切り出し処理を行う。   In step S416, the CPU 11 determines whether or not the electronic zoom state has been performed, that is, whether or not an electronic zoom process has been performed in which a part of the image captured by the imaging unit 17 is cut out and enlarged and recorded. If it is determined in step S416 that the electronic zoom state is set, the process proceeds to step S417. If it is determined that the electronic zoom state is not set, the process proceeds to step S418. In step S417, the CPU 11 performs image rotation processing and clipping processing on the image data after development generated in step S415 using the image processing circuit 18 with the inclination correction parameter calculated in step S406.

これにより、撮像装置10の傾きにより生じた画像の傾きを補正した画像データが生成される。ステップS418で、CPU11は、画像圧縮伸長回路19を用いて、ステップS415で生成した現像後の画像データ、または、ステップS417で傾き補正を施した画像データをJPEG形式の静止画像データに圧縮符号化し、DRAM15に書き込む。ステップS419で、CPU11は、ステップS418で圧縮符号化されたJPEG形式の静止画像データを、記録媒体I/F16を介して記録媒体20に記録し、撮影を終了する。   Thereby, image data in which the inclination of the image generated by the inclination of the imaging device 10 is corrected is generated. In step S418, the CPU 11 uses the image compression / decompression circuit 19 to compress-encode the image data after development generated in step S415 or the image data subjected to inclination correction in step S417 into still image data in JPEG format. Then, it writes in the DRAM 15. In step S419, the CPU 11 records the JPEG format still image data compression-encoded in step S418 on the recording medium 20 via the recording medium I / F 16, and ends the shooting.

以上のように、本実施形態によれば、撮影画像の一部を切り出して使用する電子ズーム時は、静止画撮影時においても水平補正機能を適用する。すなわち、静止画撮影においても傾き補正を行う。また、本実施形態によれば、レリーズスイッチの半押し操作(SW1)による静止画撮影準備状態において、静止画撮影時の水平補正機能が有効となる電子ズーム状態の場合の時を除いて水平補正機能を無効にする。これにより、ユーザが撮像装置10の傾き状態をライブビューで確認することができる。   As described above, according to the present embodiment, the horizontal correction function is applied even during still image shooting during electronic zoom that cuts out and uses a part of a captured image. That is, tilt correction is also performed in still image shooting. Further, according to the present embodiment, the horizontal correction is performed except in the electronic zoom state in which the horizontal correction function at the time of still image shooting is enabled in the still image shooting preparation state by the half-press operation (SW1) of the release switch. Disable the function. Thereby, the user can confirm the inclination state of the imaging device 10 by the live view.

したがって、動画撮影の場合だけでなく、電子ズーム状態の時には静止画撮影においても傾き補正を行い、水平を保った画像を簡単に撮影することができる。また、電子ズーム状態の時以外の静止画撮影の場合、すなわち、静止画撮影における傾き補正が不可の場合であって、傾き補正が適用されている動画撮影モードで静止画を撮影したときに、意図せず傾いた静止画が撮影されてしまうことを防ぐことができる。   Accordingly, not only in the case of moving image shooting, but also in the electronic zoom state, tilt correction can be performed in still image shooting, and a horizontal image can be easily shot. In addition, in the case of still image shooting other than in the electronic zoom state, i.e., when tilt correction in still image shooting is not possible, and when shooting a still image in the movie shooting mode to which tilt correction is applied, It is possible to prevent an unintentionally tilted still image from being shot.

なお、本実施形態では、レリーズスイッチの半押し操作による静止画撮影準備状態であるか否かによらず、電子ズーム状態であれば、ステップS405〜S407の傾き補正が行われた。一方、電子ズーム状態でなければ、静止画撮影準備状態において傾き補正は行われず、このとき記録される動画像データは、傾き補正が施されていないデータとなる。しかし、第2実施形態と同様に、ライブビュー表示用の画像データに対してのみ傾き補正を行わず、動画像記録用データには傾き補正がなされた画像を生成するようにしてもよい。   In this embodiment, the tilt correction in steps S405 to S407 is performed in the electronic zoom state regardless of whether or not the still image shooting preparation state is obtained by half-pressing the release switch. On the other hand, if the electronic zoom state is not set, tilt correction is not performed in the still image shooting preparation state, and the moving image data recorded at this time is data that has not been tilt corrected. However, as in the second embodiment, the tilt correction may not be performed only on the live view display image data, and an image with the tilt correction may be generated on the moving image recording data.

その場合、ステップS403及びステップS404の処理は行わず、代わりにステップS410とS411の処理の間に、ステップS403及びS404の処理を行い、ステップS411の処理の代わりに、ステップS210と同様の処理を行えばよい。   In that case, the process of step S403 and step S404 is not performed. Instead, the process of step S403 and S404 is performed between the process of step S410 and S411, and the process similar to step S210 is performed instead of the process of step S411. Just do it.

なお、第1乃至第4実施形態において、静止画撮影の指示がなされる前の所定の操作としてレリーズスイッチの半押し操作が行われたことを契機として、静止画撮影準備状態となり、ユーザがライブビューで確認する画像に対する傾き補正の有無を切り替えた。ただし、これに限られるものではなく、所定の操作はどのようなものであってもよい。   In the first to fourth embodiments, when the release switch is half-pressed as a predetermined operation before a still image shooting instruction is issued, the still image shooting ready state is entered and the user Changed whether or not tilt correction is applied to the image to be checked in the view. However, the operation is not limited to this, and any predetermined operation may be performed.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形および変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

10 撮像装置
11 CPU
13 表示部
14 操作部
17 撮像部
18 画像処理回路
19 画像圧縮伸長回路
21 振れ・傾き検出部
10 Imaging device 11 CPU
DESCRIPTION OF SYMBOLS 13 Display part 14 Operation part 17 Imaging part 18 Image processing circuit 19 Image compression / decompression circuit 21 Shake / tilt detection part

Claims (9)

撮像手段が撮影した画像の傾きを補正する傾き補正手段と、
動画像の表示部への表示を制御する表示制御手段と、
静止画像の撮影準備状態に入るための所定の操作が行われたか否かを判定する判定手段と、を備え、
前記表示制御手段は、
前記所定の操作が行われたと判定された場合、傾きを補正しない動画像を表示し、
前記所定の操作が行われていないと判定された場合、傾きを補正した動画像を表示するように制御する、
ことを特徴とする撮像装置。
Inclination correction means for correcting the inclination of the image captured by the imaging means;
Display control means for controlling the display of the moving image on the display unit;
Determination means for determining whether or not a predetermined operation for entering a still image shooting preparation state has been performed,
The display control means includes
When it is determined that the predetermined operation has been performed, a moving image without correcting the tilt is displayed,
When it is determined that the predetermined operation has not been performed, control is performed so as to display a moving image with corrected inclination.
An imaging apparatus characterized by that.
記録用の画像を生成する生成手段、をさらに備え、
前記生成手段は、前記傾き補正手段により画像の傾きが補正された画像を記録用の動画像として生成する、
ことを特徴とする請求項1に記載の撮像装置。
Generating means for generating an image for recording;
The generation unit generates an image in which the tilt of the image is corrected by the tilt correction unit as a moving image for recording.
The imaging apparatus according to claim 1.
像ブレを電子的に補正する振れ補正手段、をさらに備え、
前記表示制御手段は、前記所定の操作が行われたと判定された場合であっても、前記振れ補正手段による補正が無効のときには、傾きを補正した動画像を表示するように制御する、
ことを特徴とする請求項2に記載の撮像装置。
A shake correction means for electronically correcting image blur;
The display control means controls to display a moving image with corrected inclination when the correction by the shake correction means is invalid even when it is determined that the predetermined operation has been performed.
The imaging apparatus according to claim 2.
静止画像の撮影指示がなされたときに前記振れ補正手段による補正が無効の場合、前記生成手段は、前記傾き補正手段により画像の傾きが補正された静止画像を生成する、
ことを特徴とする請求項3に記載の撮像装置。
If the correction by the shake correction unit is invalid when a still image shooting instruction is given, the generation unit generates a still image in which the tilt of the image is corrected by the tilt correction unit.
The imaging apparatus according to claim 3.
電子ズームを行う電子ズーム手段、をさらに備え、
前記表示制御手段は、前記所定の操作が行われたと判定された場合であっても、前記電子ズーム手段によりズームが行われているときには、傾きを補正した動画像を表示するように制御する、
ことを特徴とする請求項2に記載の撮像装置。
Electronic zoom means for performing electronic zoom,
The display control means controls to display a moving image with corrected tilt when the electronic zoom means is zoomed even when it is determined that the predetermined operation has been performed.
The imaging apparatus according to claim 2.
静止画像の撮影指示がなされたときに前記電子ズーム手段によりズームが行われている場合、前記生成手段は、前記傾き補正手段により画像の傾きが補正された静止画像を生成する、
ことを特徴とする請求項5に記載の撮像装置。
When zooming is performed by the electronic zoom unit when a still image shooting instruction is given, the generation unit generates a still image in which the tilt of the image is corrected by the tilt correction unit.
The imaging apparatus according to claim 5.
前記所定の操作とは、レリーズスイッチが半押しされることである、
ことを特徴とする請求項1乃至6のいずれか1項に記載の撮像装置。
The predetermined operation is that the release switch is half-pressed.
The image pickup apparatus according to claim 1, wherein the image pickup apparatus is an image pickup apparatus.
撮像手段が撮影した画像の傾きを補正する補正工程と、
動画像の表示部への表示を制御する表示制御工程と、
静止画像の撮影準備状態に入るための所定の操作が行われたか否かを判定する判定工程と、を有し、
前記判定工程において前記所定の操作が行われたと判定された場合、前記表示制御工程において、傾きを補正しない動画像を表示し、
前記判定工程において前記所定の操作が行われていないと判定された場合、前記表示制御工程において、傾きを補正した動画像を表示する、
ことを特徴とする制御方法。
A correction step of correcting the inclination of the image captured by the imaging means;
A display control process for controlling the display of the moving image on the display unit;
A determination step of determining whether or not a predetermined operation for entering a still image shooting preparation state has been performed,
When it is determined in the determination step that the predetermined operation has been performed, the display control step displays a moving image that does not correct the tilt,
When it is determined in the determination step that the predetermined operation has not been performed, the display control step displays a moving image with corrected inclination.
A control method characterized by that.
請求項1乃至7のいずれか1項に記載の前記撮像装置が備える各手段としてコンピュータを機能させるためのプログラム。   The program for functioning a computer as each means with which the said imaging device of any one of Claims 1 thru | or 7 is provided.
JP2016093752A 2016-05-09 2016-05-09 Imaging device Pending JP2017204666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016093752A JP2017204666A (en) 2016-05-09 2016-05-09 Imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016093752A JP2017204666A (en) 2016-05-09 2016-05-09 Imaging device

Publications (1)

Publication Number Publication Date
JP2017204666A true JP2017204666A (en) 2017-11-16

Family

ID=60321484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016093752A Pending JP2017204666A (en) 2016-05-09 2016-05-09 Imaging device

Country Status (1)

Country Link
JP (1) JP2017204666A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2606429A (en) * 2021-02-17 2022-11-09 Canon Kk Imaging device, control method for imaging device, and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2606429A (en) * 2021-02-17 2022-11-09 Canon Kk Imaging device, control method for imaging device, and recording medium
US11671708B2 (en) 2021-02-17 2023-06-06 Canon Kabushiki Kaisha Imaging device, control method for imaging device, and recording medium

Similar Documents

Publication Publication Date Title
JP4999268B2 (en) Electronic camera and program
JP6071545B2 (en) IMAGING DEVICE, IMAGE PROCESSING DEVICE AND ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US20110234750A1 (en) Capturing Two or More Images to Form a Panoramic Image
CN109951638B (en) Camera anti-shake system, camera anti-shake method, electronic device, and computer-readable storage medium
JP2005252626A (en) Image pickup device and image processing method
JP6752681B2 (en) Display control device, control method and program of display control device, and storage medium
US10447944B2 (en) Imaging apparatus, control method thereof and program
JP6652300B2 (en) Image processing apparatus, imaging apparatus, and control method
JP2011040898A (en) Imaging reproducing device and program
JP4655708B2 (en) Camera, camera shake state display method, and program
JP2007243335A (en) Camera shake correction method, camera shake correction apparatus, and imaging apparatus
JP2019186728A (en) Electronic device, control method therefor, program, and storage medium
JP6312426B2 (en) Imaging apparatus and control method thereof
JP5724057B2 (en) Imaging device
JP2017204666A (en) Imaging device
JP5341655B2 (en) Imaging apparatus and control method thereof
JP2012253451A (en) Imaging device and program
JP2015095670A (en) Imaging apparatus, control method thereof and control program
KR20140082454A (en) Camera apparatus and method taking pictures of the camera apparatus
JP2017085466A (en) Imaging apparatus and its control method
JP2021150737A (en) Image processing apparatus, image processing method, image capture apparatus
JP2008048152A (en) Moving picture processing apparatus, moving picture photographing apparatus and moving picture photographing program
JP6289070B2 (en) Imaging apparatus and control method thereof
US20240127398A1 (en) Image capturing apparatus and image capturing method for generating high-resolution image, and non-transitory computer-readable storage medium storing program
US10951829B2 (en) Image capturing apparatus and method for controlling display