JP2010136239A - Photographic apparatus, control method of the photographic apparatus and program - Google Patents

Photographic apparatus, control method of the photographic apparatus and program Download PDF

Info

Publication number
JP2010136239A
JP2010136239A JP2008311870A JP2008311870A JP2010136239A JP 2010136239 A JP2010136239 A JP 2010136239A JP 2008311870 A JP2008311870 A JP 2008311870A JP 2008311870 A JP2008311870 A JP 2008311870A JP 2010136239 A JP2010136239 A JP 2010136239A
Authority
JP
Japan
Prior art keywords
images
image
photographing
exposure
motion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2008311870A
Other languages
Japanese (ja)
Inventor
Makoto Oishi
誠 大石
Masaya Tamaru
雅也 田丸
Koichi Tanaka
康一 田中
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2008311870A priority Critical patent/JP2010136239A/en
Publication of JP2010136239A publication Critical patent/JP2010136239A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent a saturation region from being multiplexed, when capturing an image in which a subject is stationary and the background is shown flowing. <P>SOLUTION: Prior to main photographing, a pre-image is captured, and the exposure time for a plurality of times of photographing during a panning mode is set from the pre-image. It is determined through photographing, according to the set exposure time whether there is a saturation region in an image. If there is a saturation region, exposure is set to further shorten the exposure time. For the case of positive determination, a plurality of images are captured, by performing a plurality of times of photographing, and the plurality of images are combined, thereby generating a combined image in which a desired subject is stationary and the background is shown flowing. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、とくに流し撮りに適した撮影装置および撮影装置の制御方法並びに撮影装置の制御方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention relates to a photographing apparatus particularly suitable for panning, a photographing apparatus control method, and a program for causing a computer to execute the photographing apparatus control method.

自動車等の動きのある被写体を撮影してスピード感ある画像を得る場合に、シャッタ速度を通常よりも遅く設定した状態で、撮影者が被写体の動きに合わせてカメラを移動することにより、被写体が静止し、背景が流れた画像を得ることができる流し撮りのテクニックが用いられる。このような流し撮りは、スピード感のある画像を得ることができるものの、被写体の動きに併せてカメラを移動させる必要があるため、熟練者でないと動いている被写体がぶれてしまう可能性が高い。   When shooting a moving subject such as an automobile to obtain an image with a sense of speed, with the shutter speed set slower than normal, the photographer moves the camera according to the subject's movement, A panning technique is used, which can obtain a still image with a flowing background. Although such a panning shot can obtain a speedy image, it is necessary to move the camera in accordance with the movement of the subject, so there is a high possibility that a moving subject will be shaken unless it is an expert. .

このため、流し撮り時に、通常の流し撮りを行う場合のシャッタ速度よりも短いシャッタ速度により、複数の画像を連続して撮影して複数の画像を取得し、複数の画像に含まれる動体の位置合わせを行いつつ、複数の画像を合成して合成画像を取得する手法が提案されている(特許文献1〜3参照)。特許文献1〜3の手法によれば、1つ1つの撮影のシャッタ速度は短いため、動体のブレを低減させることができ、その結果、熟練者が流し撮りを行った場合と同様に、動体が静止し、背景が流れている合成画像を取得することができる。
特開2005−135091号公報 特開2006−339903号公報 特開2006−25312号公報
For this reason, at the time of panning, a plurality of images are continuously captured at a shutter speed shorter than the shutter speed when performing normal panning, and a plurality of images are acquired, and positions of moving objects included in the plurality of images A technique for synthesizing a plurality of images and acquiring a synthesized image while performing matching is proposed (see Patent Documents 1 to 3). According to the methods of Patent Literatures 1 to 3, since the shutter speed of each photographing is short, it is possible to reduce blurring of the moving object. As a result, the moving object is similar to the case where the expert performs the panning. Can obtain a composite image in which the background is still and the background is flowing.
JP 2005-135091 A JP 2006-339903 A JP 2006-25312 A

上記特許文献1〜3に記載された手法により取得される画像において、その背景は複数の画像が重ね合わせられたものとなる。このため、複数の画像のそれぞれに画素値が最大値となる飽和領域が含まれると、撮影順に飽和領域の位置が移動することから、各画像における飽和領域の位置が異なるものとなる。このように飽和領域の位置が異なると、合成画像においては各画像における飽和領域と非飽和領域が重なる部分が存在する。しかしながら、各画像における飽和領域と非飽和領域とが重なると、飽和領域が滑らかに流れず、合成画像上に飽和領域と非飽和領域とが交互に現れるため、飽和領域が間を空けて存在することとなり、その結果、飽和領域が多重化してしまう。   In the images acquired by the methods described in Patent Documents 1 to 3, the background is a result of superimposing a plurality of images. For this reason, if the saturated area where the pixel value is the maximum value is included in each of the plurality of images, the position of the saturated area moves in the order of photographing, so the position of the saturated area in each image is different. When the positions of the saturated regions are different in this way, there are portions in the composite image where the saturated region and the unsaturated region in each image overlap. However, when the saturated region and the unsaturated region in each image overlap, the saturated region does not flow smoothly, and the saturated region and the unsaturated region appear alternately on the composite image, so there is a saturated region in between. As a result, the saturation region is multiplexed.

本発明は上記事情に鑑みなされたものであり、被写体が静止し、背景が流れた画像を取得する際に、飽和領域が多重化しないようにすることを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to prevent saturation regions from being multiplexed when an image in which a subject is stationary and a background flows is acquired.

本発明による撮影装置は、撮影により画像を取得する撮影手段と、
複数の画像を時間的に連続させて順次取得するよう前記撮影手段を制御する撮影制御手段と、
前記複数の画像の動きを解析する動き解析手段と、
該動きの解析結果に基づいて、前記複数の画像を合成して合成画像を生成する合成手段と、
前記撮影手段を用いての前記複数の画像の取得時に、前記複数の画像のそれぞれに飽和領域が存在しないように前記撮影手段の露出を設定する露出処理手段とを備えたことを特徴とするものである。
An imaging apparatus according to the present invention includes imaging means for acquiring an image by imaging,
Photographing control means for controlling the photographing means to sequentially acquire a plurality of images sequentially in time;
Motion analysis means for analyzing the motion of the plurality of images;
Based on the analysis result of the movement, a combining unit that combines the plurality of images to generate a combined image;
Exposure processing means for setting exposure of the photographing means so that a saturated region does not exist in each of the plurality of images when the plurality of images are acquired using the photographing means. It is.

「複数の画像の動きを解析する」とは、各画像内の画素がどのように移動しているかを解析することを意味する。具体的には、複数の画像のうちの1つの画像を基準とし、基準となる画像および他の画像間の対応する画素の移動方向および移動量を求め、移動方向および移動量に基づいて、基準となる画像における画素がどのように移動しているかを解析することを意味する。   “Analyzing the movement of a plurality of images” means analyzing how the pixels in each image are moving. Specifically, using one of the plurality of images as a reference, the movement direction and the movement amount of the corresponding pixel between the reference image and the other images are obtained, and the reference direction is determined based on the movement direction and the movement amount. This means analyzing how the pixels in the image to be moved are moving.

なお、本発明による撮影装置においては、前記合成手段を、前記動きの解析結果に基づいて前記複数の画像のそれぞれから動体を検出し、該複数の画像のそれぞれにおける前記動体の位置が略一致するように前記複数の画像を合成して合成画像を生成する手段としてもよい。   In the photographing apparatus according to the present invention, the synthesizing unit detects a moving object from each of the plurality of images based on the analysis result of the movement, and the position of the moving object in each of the plurality of images substantially matches. As described above, the plurality of images may be combined to generate a combined image.

また、本発明による撮影装置においては、前記露出処理手段を、前記複数の画像の各画素値が、最高輝度未満となるように前記撮影手段の露出を制御する手段としてもよい。   In the photographing apparatus according to the present invention, the exposure processing means may be means for controlling the exposure of the photographing means so that each pixel value of the plurality of images is less than the maximum luminance.

また、本発明による撮影装置においては、前記複数の画像の取得前に前記露出を制御するためのプレ画像を取得し、該プレ画像に基づいて前記複数の画像の取得時の露出を設定し、該設定した露出により前記プレ画像を再度取得し、該プレ画像に前記飽和領域が存在するか否かを判定し、該判定が否定されるまで前記露出の設定および前記再度のプレ画像の取得を繰り返すよう、前記撮影制御手段および前記露出処理手段を制御する制御手段をさらに備えるものとしてもよい。   Further, in the photographing apparatus according to the present invention, a pre-image for controlling the exposure is obtained before obtaining the plurality of images, and the exposure at the time of obtaining the plurality of images is set based on the pre-image, The pre-image is acquired again with the set exposure, it is determined whether or not the saturated region exists in the pre-image, and the setting of the exposure and the acquisition of the pre-image are repeated until the determination is negative. It may be further provided with control means for controlling the photographing control means and the exposure processing means to repeat.

また、本発明による撮影装置においては、前記合成画像の明るさを補正する明るさ補正手段をさらに備えるものとしてもよい。   In addition, the photographing apparatus according to the present invention may further include brightness correction means for correcting the brightness of the composite image.

また、本発明による撮影装置においては、前記露出処理手段を、前記動きの解析結果に基づいて、前記複数の画像における動きが小さい領域以外の領域に前記飽和領域が存在しないように前記撮影手段の露出を設定する手段としてもよい。   Further, in the photographing apparatus according to the present invention, the exposure processing unit may be configured so that the saturation region does not exist in a region other than the region where the motion is small in the plurality of images based on the analysis result of the motion. It is good also as a means to set exposure.

また、本発明による撮影装置においては、前記撮影制御手段を、前記露出処理手段が設定する露出が制限値となっても前記飽和領域の存在を解消できない場合、前記複数の画像の取得を停止する手段としてもよい。   In the photographing apparatus according to the present invention, the photographing control unit stops acquiring the plurality of images when the saturation region cannot be eliminated even if the exposure set by the exposure processing unit reaches a limit value. It may be a means.

「露出の制限値」とは、露出処理手段が設定可能な露出設定値、すなわちシャッタスピード、絞り値およびゲイン等の少なくとも1つについて、飽和領域が存在しないように露出をアンダーとするための限界値を意味する。例えば、撮影装置において設定可能な最速のシャッタスピードが1/2000秒の場合、露出の制限値は1/2000秒となる。   The “exposure limit value” is a limit for underexposure of at least one of exposure setting values that can be set by the exposure processing means, that is, shutter speed, aperture value, gain, etc., so that there is no saturation region. Mean value. For example, when the fastest shutter speed that can be set in the photographing apparatus is 1/2000 seconds, the exposure limit value is 1/2000 seconds.

この場合、前記複数の画像の取得が停止されたことを通知する通知手段をさらに備えるものとしてもよい。   In this case, notification means for notifying that acquisition of the plurality of images has been stopped may be further provided.

本発明による撮影装置の制御方法は、撮影により画像を取得する撮影手段と、
複数の画像を時間的に連続させて順次取得するよう前記撮影手段を制御する撮影制御手段と、
前記複数の画像の動きを解析する動き解析手段と、
該動きの解析結果に基づいて、前記複数の画像を合成して合成画像を生成する合成手段とを備えた撮影装置の制御方法であって、
前記撮影手段を用いての前記複数の画像の取得時に、前記複数の画像のそれぞれに飽和領域が存在しないように前記撮影手段の露出を設定することを特徴とするものである。
An imaging apparatus control method according to the present invention includes an imaging means for acquiring an image by imaging,
Photographing control means for controlling the photographing means to sequentially acquire a plurality of images sequentially in time;
Motion analysis means for analyzing the motion of the plurality of images;
A control method for an imaging apparatus, comprising: combining means for combining the plurality of images to generate a combined image based on the analysis result of the movement,
When the plurality of images are acquired using the photographing unit, exposure of the photographing unit is set so that a saturated region does not exist in each of the plurality of images.

なお、本発明による撮影装置の制御方法をコンピュータに実行させるためのプログラムとして提供してもよい。   In addition, you may provide as a program for making a computer perform the control method of the imaging device by this invention.

本発明によれば、複数の画像のそれぞれに飽和領域が存在しないように撮影手段の露出が設定されて、複数の画像が時間的に連続して取得され、複数の画像の動き解析結果に基づいて、複数の画像が合成されて合成画像が生成される。これにより、複数の画像には飽和領域が存在しなくなるため、合成画像上において飽和領域と非飽和領域とが重なることがなくなり、その結果、飽和領域の多重化を防止することができる。   According to the present invention, the exposure of the photographing unit is set so that there is no saturated region in each of the plurality of images, and the plurality of images are acquired sequentially in time, based on the motion analysis results of the plurality of images. Thus, a plurality of images are combined to generate a combined image. As a result, the saturated region does not exist in the plurality of images, so that the saturated region and the non-saturated region do not overlap on the composite image, and as a result, the saturation region can be prevented from being multiplexed.

また、動きの解析結果に基づいて複数の画像のそれぞれから動体を検出し、複数の画像のそれぞれにおける動体の位置が略一致するように複数の画像を合成して合成画像を生成することにより、精度よく動体が静止し、背景が流れた画像を得ることができる。   In addition, by detecting a moving object from each of the plurality of images based on the analysis result of the movement, and generating a composite image by combining the plurality of images so that the positions of the moving objects in each of the plurality of images substantially match, It is possible to obtain an image in which the moving object is accurately stopped and the background flows.

また、複数の画像の各画素が最高輝度未満となるように露出を制御することにより、飽和領域の発生を確実に防止することができる。   Further, by controlling the exposure so that each pixel of the plurality of images is less than the maximum luminance, it is possible to reliably prevent the generation of a saturated region.

ここで、飽和領域が存在しないように露出を設定した場合、複数の画像は露出アンダーとなって明るさが不足する。このため、合成画像の明るさを補正することにより、飽和領域の多重化を防止しつつも、所望とする明るさを有する合成画像を取得することができる。   Here, when the exposure is set so that there is no saturated region, the plurality of images are underexposed and the brightness is insufficient. Therefore, by correcting the brightness of the composite image, it is possible to acquire a composite image having a desired brightness while preventing the saturation region from being multiplexed.

また、合成画像においては動きが小さい領域は静止した状態となるため、飽和領域が存在しても合成画像において多重化は生じない。このため、複数の画像における動きが小さい領域以外の領域に飽和領域が存在しないように露出を設定することにより、露出設定のための演算量を低減することができる。   In addition, since a region with small motion is stationary in the composite image, multiplexing does not occur in the composite image even if a saturated region exists. For this reason, it is possible to reduce the amount of calculation for setting the exposure by setting the exposure so that there is no saturated region in a region other than the region where the motion is small in the plurality of images.

また、露出が制限値となっても飽和領域の存在を解消できない場合には、複数の画像の取得を停止することにより、多重化が生じる状況での複数の画像の取得および合成画像の生成を行うことによる無駄な処理を防止することができる。   In addition, when the exposure becomes the limit value and the existence of the saturated region cannot be resolved, the acquisition of the plurality of images and the generation of the composite image in the situation where the multiplexing occurs are stopped by stopping the acquisition of the plurality of images. It is possible to prevent wasteful processing due to the execution.

この場合、複数の画像の生成が停止されたことを通知することにより、撮影者は流し撮りを行っても合成画像が生成されないことを事前に知ることができるため、撮影場所を変更する等の措置を執ることによりして、画像に飽和領域が存在しないようにすることができる。   In this case, by notifying that the generation of a plurality of images has been stopped, the photographer can know in advance that a composite image will not be generated even if panning is performed. By taking measures, it is possible to ensure that there are no saturated regions in the image.

以下、図面を参照して本発明の実施形態について説明する。図1および図2は本発明の実施形態による撮影装置を適用したデジタルカメラ1の外観を示す図である。図1および図2に示すように、このデジタルカメラ1の上部には、レリーズボタン2、電源ボタン3およびズームレバー4が備えられている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. 1 and 2 are views showing the appearance of a digital camera 1 to which a photographing apparatus according to an embodiment of the present invention is applied. As shown in FIGS. 1 and 2, a release button 2, a power button 3, and a zoom lever 4 are provided on the top of the digital camera 1.

レリーズボタン2は、2段階の押下により2種類の動作を指示できる構造となっている。例えば、自動露出調整機能(AE:Auto Exposure)、自動焦点調節機能(AF:Auto Focus)を利用した撮影では、デジタルカメラ1は、レリーズボタン2が軽く押下される第1の押下操作(半押しともいう)がなされたときに、露出調整、焦点合わせ等の撮影準備を行う。その状態で、レリーズボタン2が強く押下される第2の押下操作(全押しともいう)がなされると、デジタルカメラ1は露光を開始し、露光により得られた1画面分の画像データを記録メディアに記録する。   The release button 2 has a structure in which two types of operations can be instructed by pressing in two steps. For example, in shooting using an automatic exposure adjustment function (AE: Auto Exposure) and an automatic focus adjustment function (AF: Auto Focus), the digital camera 1 performs a first pressing operation (half-pressing) in which the release button 2 is lightly pressed. (Also called exposure), preparation for shooting such as exposure adjustment and focusing is performed. In this state, when a second pressing operation (also referred to as full pressing) in which the release button 2 is strongly pressed is performed, the digital camera 1 starts exposure and records image data for one screen obtained by the exposure. Record on media.

デジタルカメラ1の背面には、液晶等のモニタ5、撮影モード等の設定に利用されるモードダイヤル6、および後各種操作ボタン8が備えられている。なお、本実施形態においては、撮影を行う撮影モード、および記録メディアに記録された画像をモニタ5に再生する再生モード等を設定可能とされている。また、撮影モードとしては通常の撮影を行うための通常撮影モードの他、流し撮りを行うための流し撮りモードが設定可能とされている。   On the back of the digital camera 1, a monitor 5 such as a liquid crystal, a mode dial 6 used for setting a shooting mode, and various operation buttons 8 are provided. In the present embodiment, it is possible to set a shooting mode for shooting, a playback mode for playing back an image recorded on a recording medium on the monitor 5, and the like. In addition to the normal shooting mode for performing normal shooting, the panning mode for performing panning can be set as the shooting mode.

次いで、デジタルカメラ1の内部構成について説明する。図3は本発明の実施形態による撮影装置を適用したデジタルカメラの内部構成を示す概略ブロック図である。図3に示すように本実施形態による撮影装置を適用したデジタルカメラ1は、撮像系9を有する。   Next, the internal configuration of the digital camera 1 will be described. FIG. 3 is a schematic block diagram showing an internal configuration of a digital camera to which the photographing apparatus according to the embodiment of the present invention is applied. As shown in FIG. 3, the digital camera 1 to which the photographing apparatus according to the present embodiment is applied has an imaging system 9.

撮像系9は、被写体にピントを合わせるためのフォーカスレンズ10aおよびズーム機能を実現するためのズームレンズ10bからなる撮影レンズ10を有する。各々のレンズは、モータとモータドライバとからなるフォーカスレンズ駆動部11およびズームレンズ駆動部12によって光軸方向に移動可能である。フォーカスレンズ駆動部11は、後述するAF処理部28からの指示に基づいて、ズームレンズ駆動部12はズームレバー4の操作に応じたCPU40からの指示に基づいて、各々のレンズの移動を制御する。   The imaging system 9 includes a photographing lens 10 including a focus lens 10a for focusing on a subject and a zoom lens 10b for realizing a zoom function. Each lens can be moved in the optical axis direction by a focus lens driving unit 11 and a zoom lens driving unit 12 each including a motor and a motor driver. The focus lens driving unit 11 controls the movement of each lens based on an instruction from the AF processing unit 28 described later, and the zoom lens driving unit 12 based on an instruction from the CPU 40 according to the operation of the zoom lever 4. .

絞り14は、複数の絞り羽根からなる。絞り駆動部15は、ステッピングモータ等小型のモータで、AE処理部29から出力される絞り値データに応じて、絞りの開口サイズが目的に適ったサイズになるように絞り羽根の位置を調整する。   The diaphragm 14 includes a plurality of diaphragm blades. The aperture drive unit 15 is a small motor such as a stepping motor, and adjusts the position of the aperture blade so that the aperture size of the aperture becomes a size suitable for the purpose according to the aperture value data output from the AE processing unit 29. .

シャッタ16はメカニカルシャッタであり、シャッタ駆動部17によって駆動される。シャッタ駆動部17は、レリーズボタンの押下により発生する信号と、AE処理部29から出力されるシャッタスピードデータとに応じて、シャッタ16の開閉の制御を行う。   The shutter 16 is a mechanical shutter and is driven by a shutter driving unit 17. The shutter drive unit 17 controls the opening and closing of the shutter 16 according to a signal generated by pressing the release button and the shutter speed data output from the AE processing unit 29.

シャッタ16の後方には撮像素子18を有している。本実施形態においては、CMOSタイプの撮像素子18を用いるものとする。撮像素子18は、多数の受光素子を2次元的に配列した光電面を有しており、撮影レンズ10等の光学系を通過した被写体光がこの光電面に結像し、光電変換される。光電面の前方には、各画素に光を集光するためのマイクロレンズアレイと、R,G,B各色のフィルタが規則的に配列されたカラーフィルタアレイとが配置されている。撮像素子18は、撮像素子制御部19から供給される読み出し信号に同期して、画素毎に蓄積された電荷を1画素ずつアナログ撮影信号として出力する。なお、各画素において電荷を蓄積する時間、すなわち露光時間は、撮像素子制御部19から与えられる電子シャッタ駆動信号によって決定される。この露光時間は、後述するAE処理部29により設定される。また、撮像素子18は撮像素子制御部19により、あらかじめ定められた大きさのアナログ撮像信号が得られるようにゲインが調整されている。   An image sensor 18 is provided behind the shutter 16. In the present embodiment, it is assumed that a CMOS type image sensor 18 is used. The imaging element 18 has a photoelectric surface in which a large number of light receiving elements are two-dimensionally arranged, and subject light that has passed through an optical system such as the photographing lens 10 forms an image on the photoelectric surface and is subjected to photoelectric conversion. In front of the photocathode, a microlens array for condensing light on each pixel and a color filter array in which filters of R, G, and B colors are regularly arranged are arranged. The image sensor 18 outputs the electric charge accumulated for each pixel as an analog photographing signal one pixel at a time in synchronization with the readout signal supplied from the image sensor controller 19. The time for accumulating charges in each pixel, that is, the exposure time, is determined by an electronic shutter drive signal given from the image sensor control unit 19. This exposure time is set by an AE processing unit 29 described later. The gain of the image sensor 18 is adjusted by the image sensor control unit 19 so that an analog image signal having a predetermined size can be obtained.

撮像素子18から読み出されたアナログ撮影信号は、アナログフロントエンド(AFE)20に入力される。AFE20は、アナログ信号のノイズを除去する相関2重サンプリング回路(CDS)と、アナログ信号のゲインを調節するオートゲインコントローラ(AGC)と、アナログ信号をデジタル信号に変換するA/Dコンバータ(ADC)とからなる。このデジタル信号に変換された画像データは、画素毎にR,G,Bの濃度値を持つRAWデータである。   The analog photographing signal read from the image sensor 18 is input to an analog front end (AFE) 20. The AFE 20 includes a correlated double sampling circuit (CDS) that removes noise from the analog signal, an auto gain controller (AGC) that adjusts the gain of the analog signal, and an A / D converter (ADC) that converts the analog signal into a digital signal. It consists of. The image data converted into the digital signal is RAW data having R, G, and B density values for each pixel.

タイミングジェネレータ21は、同期信号を発生させるものであり、このタイミング信号をシャッタ駆動部17、撮像素子制御部19、およびAFE20に供給することにより、レリーズボタンの操作、シャッタ16の開閉、撮像素子18からの電荷の読み出し、およびAFE20の処理の同期をとっている。なお、撮像素子18からの電荷の読み出し速度の最高値(最高電荷読み出し時間)は、撮像素子18およびタイミングジェネレータ21の仕様によりあらかじめ定められている。   The timing generator 21 generates a synchronization signal. By supplying this timing signal to the shutter drive unit 17, the image sensor control unit 19, and the AFE 20, the release button is operated, the shutter 16 is opened and closed, and the image sensor 18. The readout of the charges from the AFE 20 and the processing of the AFE 20 are synchronized. The maximum value of the charge reading speed from the image sensor 18 (maximum charge read time) is determined in advance by the specifications of the image sensor 18 and the timing generator 21.

また、デジタルカメラ1は撮影時において必要なときに発光されるフラッシュ24を有する。フラッシュ24は、発光制御部23によりその発光が制御される。   In addition, the digital camera 1 has a flash 24 that emits light when necessary during photographing. The light emission of the flash 24 is controlled by the light emission control unit 23.

また、デジタルカメラ1は、AFE20が出力した画像データをデータバス41を介して他の処理部に転送する画像入力コントローラ25、および画像入力コントローラ25から転送された画像データを一時記憶するフレームメモリ26を備える。   The digital camera 1 also has an image input controller 25 that transfers the image data output from the AFE 20 to another processing unit via the data bus 41, and a frame memory 26 that temporarily stores the image data transferred from the image input controller 25. Is provided.

フレームメモリ26は、画像データに対して後述の各種処理を行う際に使用する作業用メモリであり、例えば、一定周期のバスクロック信号に同期してデータ転送を行うSDRAM(Synchronous Dynamic Random Access Memory)が使用される。   The frame memory 26 is a working memory used when performing various processes described later on image data. For example, an SDRAM (Synchronous Dynamic Random Access Memory) that performs data transfer in synchronization with a bus clock signal having a constant period. Is used.

表示制御部27は、フレームメモリ26に格納された画像データをスルー画像としてモニタ5に表示させたり、再生モード時に記録メディア34に保存されている画像をモニタ5に表示させたりするためのものである。なお、スルー画像は、撮影モードが選択されている間、タイミングジェネレータ21が発生する同期信号に同期して、所定時間間隔で撮像系9により撮影される。   The display control unit 27 displays the image data stored in the frame memory 26 on the monitor 5 as a through image, or displays the image stored on the recording medium 34 on the monitor 5 in the reproduction mode. is there. The through image is captured by the imaging system 9 at predetermined time intervals in synchronization with the synchronization signal generated by the timing generator 21 while the imaging mode is selected.

AF処理部28およびAE処理部29は、プレ画像に基づいて撮影条件を決定する。このプレ画像とは、レリーズボタンが半押しされることによって発生する半押し信号を検出したCPU40が撮像素子18にプレ撮影を実行させた結果、フレームメモリ26に格納された画像データにより表される画像である。   The AF processing unit 28 and the AE processing unit 29 determine shooting conditions based on the pre-image. The pre-image is represented by image data stored in the frame memory 26 as a result of the CPU 40 having detected a half-press signal generated by half-pressing the release button causing the image sensor 18 to perform pre-photographing. It is an image.

AF処理部28は、プレ画像に基づいてフォーカスレンズ10aの合焦位置を検出する。合焦位置の検出方式としては、例えば、所望とする被写体にピントが合った状態では画像のコントラストが高くなるという特徴を利用して合焦位置を検出するTTL方式を用いる。   The AF processing unit 28 detects the in-focus position of the focus lens 10a based on the pre-image. As a method for detecting the in-focus position, for example, a TTL method for detecting the in-focus position using the feature that the contrast of the image is high when the desired subject is in focus is used.

AE処理部29は、プレ画像に基づいて被写体輝度を測定し、測定した被写体輝度に基づいて絞り値およびシャッタスピードを露出設定値として設定して出力する(AE処理)。具体的には図4に示すようにプレ画像を8×8の64の測光領域に分割し、各領域の明るさおよびあらかじめ定められて内部メモリ35に記憶されたプログラム線図に基づいて、シャッタスピードおよび絞り値を設定する。なお、シャッタスピードが撮像素子18の露光時間に相当する。   The AE processing unit 29 measures the subject brightness based on the pre-image, and sets and outputs the aperture value and the shutter speed as the exposure set value based on the measured subject brightness (AE process). Specifically, as shown in FIG. 4, the pre-image is divided into 64 × 8 photometric areas, and the shutters are determined based on the brightness of each area and a program diagram stored in the internal memory 35 in advance. Set the speed and aperture value. The shutter speed corresponds to the exposure time of the image sensor 18.

ここで、本実施形態によるデジタルカメラ1においては、通常撮影モードに設定されている場合には、1回のレリーズボタンの全押し操作により1回の露光による撮影を行う。一方、流し撮りモードに設定されている場合には、通常1回の露光により撮影を行うところを、複数回に分割して露光を行い、複数回の露光にそれぞれ対応する複数の画像を取得する。なお、複数の画像は後述するように合成されて合成画像が生成される。このため、流し撮りモードでは、AE処理部29は、プレ画像に基づいて設定したシャッタスピード、すなわち露光時間(T0とする)に基づいて、分割後の1回分の露光時間(T1とする)および露光回数nを算出する。なお、以降の説明においては、露光時間T1を設定する前の露光時間T0を設定する処理、すなわち通常撮影モードによる露光時間T0を設定する処理を第1のAE処理、第1のAE処理の後、流し撮りモードによる複数の画像を取得するための露光時間T1を設定する処理を第2のAE処理と称する。なお、第2のAE処理には第1のAE処理も含まれる。   Here, in the digital camera 1 according to the present embodiment, when the normal shooting mode is set, shooting is performed by one exposure by pressing the release button once. On the other hand, when the panning mode is set, the exposure is usually divided into a plurality of times, and a plurality of images corresponding to the plurality of exposures are acquired. . Note that a plurality of images are combined as described later to generate a combined image. For this reason, in the panning mode, the AE processing unit 29 sets the exposure time (set as T1) after the division based on the shutter speed set based on the pre-image, that is, the exposure time (set as T0). The number of exposures n is calculated. In the following description, the process of setting the exposure time T0 before setting the exposure time T1, that is, the process of setting the exposure time T0 in the normal photographing mode is performed after the first AE process and the first AE process. The process of setting the exposure time T1 for acquiring a plurality of images in the panning mode is referred to as a second AE process. Note that the second AE process includes the first AE process.

なお、本実施形態においては、AE処理部29は第1のAE処理を行った後、第2のAE処理においては、後述する内部メモリ35に記憶された、露光時間T0と露光時間T1および露光回数nとを関連づけたテーブルを参照して、露光時間T0から露光時間T1および露光回数nを設定する。なお、撮像素子18が最高で毎秒300フレームの分の電荷を読み出すことが可能なものである場合、最高電荷読み出し時間は1/300秒であるため、露光時間T1の最小値は1/300秒となる。   In the present embodiment, after performing the first AE process, the AE processing unit 29 performs the exposure time T0, the exposure time T1, and the exposure stored in the internal memory 35 described later in the second AE process. With reference to the table in which the number of times n is associated, the exposure time T1 and the exposure time n are set from the exposure time T0. Note that when the image sensor 18 is capable of reading charges for 300 frames per second at the maximum, the maximum charge reading time is 1/300 seconds, so the minimum value of the exposure time T1 is 1/300 seconds. It becomes.

ここで、撮像素子18の最高読み出し時間とは、撮像素子18の露光が開始されてから露光が終了した後、その間の露光により発生した電荷を読み出すために必要な時間の最短値を意味する。このため、撮像素子18の露光時間が最高読み出し時間よりも短い場合、撮像素子18からの電荷の読み出しを連続させることができないが、撮像素子18の露光時間が最高読み出し時間以上の場合、撮像素子18からの電荷の読み出しを連続させることができる。   Here, the maximum readout time of the image sensor 18 means the shortest value of time required to read out the electric charge generated by the exposure after the exposure is completed after the exposure of the image sensor 18 is started. For this reason, when the exposure time of the image sensor 18 is shorter than the maximum readout time, the reading of the charge from the image sensor 18 cannot be continued. However, when the exposure time of the image sensor 18 is equal to or longer than the maximum readout time, the image sensor The reading of charges from 18 can be continued.

また、通常撮影モードによる撮影時においては、AE処理部29が設定したシャッタスピードによりシャッタ16が開放して撮像素子18がシャッタスピードに対応する露光時間T0露光される。一方、流し撮りモードによる撮影時においては、レリーズボタンの押下後、設定された露光回数nの撮影が行われるまでの間シャッタ16は開放とされ、その間、設定された露光時間T1の間隔により撮像素子18から繰り返し電荷が読み出される。   Further, at the time of shooting in the normal shooting mode, the shutter 16 is opened at the shutter speed set by the AE processing unit 29, and the image sensor 18 is exposed for an exposure time T0 corresponding to the shutter speed. On the other hand, at the time of shooting in the panning mode, the shutter 16 is opened after the release button is pressed until the set number of exposures n is taken, and during that time, the image is taken at the set exposure time T1. Charges are repeatedly read from the element 18.

図5は通常撮影モード時における1回の撮影によるシャッタスピードすなわち露光時間を示す図、図6は流し撮りモード時における1回の撮影による露光時間を示す図である。図5に示すように、分割しての撮影を行わない場合の露光時間T0が1/7.5秒である場合、露光時間T1が1/60であるとすると、流し撮りモード時においては図6に示すように露光時間T1が1/60秒の露光が8回行われることとなる。   FIG. 5 is a diagram showing the shutter speed, that is, the exposure time for one shooting in the normal shooting mode, and FIG. 6 is a diagram showing the exposure time for one shooting in the panning mode. As shown in FIG. 5, when the exposure time T0 when the divided shooting is not performed is 1 / 7.5 seconds and the exposure time T1 is 1/60, in the panning mode, the figure is shown. As shown in FIG. 6, the exposure with an exposure time T1 of 1/60 seconds is performed eight times.

なお、流し撮りモード時における1回の撮影による露光時間T1は露光時間T0よりも短いため、流し撮りモード時における1回の撮影により取得される画像の明るさを、露光時間T0の1回の撮影により取得される画像の明るさと一致させるためには、絞り値を大きくする必要がある。このため、本実施形態においては、流し撮りモード時においては、第2のAE処理により、露光時間T1とともに、1回の撮影の絞り値を設定する。なお、絞り値を設定することなく、第1のAE処理により設定された絞り値をそのまま用いるようにしてもよい。   Note that since the exposure time T1 for one shooting in the panning mode is shorter than the exposure time T0, the brightness of an image acquired by one shooting in the panning mode is set to one exposure time T0. In order to match the brightness of an image acquired by shooting, it is necessary to increase the aperture value. For this reason, in the present embodiment, in the panning mode, the aperture value for one shooting is set together with the exposure time T1 by the second AE process. Note that the aperture value set by the first AE process may be used as it is without setting the aperture value.

AWB処理部30は、撮影時のホワイトバランスを自動調整する(AWB処理)。   The AWB processing unit 30 automatically adjusts the white balance at the time of shooting (AWB processing).

画像処理部31は、本画像の画像データに対して、明るさ補正、階調補正、シャープネス補正、および色補正等の画質補正処理、並びにRAWデータを輝度信号であるYデータと、青色色差信号であるCbデータおよび赤色色差信号であるCrデータとからなるYCデータに変換するYC処理を行う。この本画像とは、レリーズボタンが全押しされることによって実行される本撮影により撮像素子18から取り込まれ、AFE20、画像入力コントローラ25経由でフレームメモリ26に格納された画像データにより表される画像である。   The image processing unit 31 performs image quality correction processing such as brightness correction, gradation correction, sharpness correction, and color correction on the image data of the main image, and RAW data as Y data that is a luminance signal and a blue color difference signal. YC processing is performed for conversion into YC data consisting of Cb data that is and Cr data that is a red color difference signal. The main image is an image represented by image data that is captured from the image sensor 18 by main shooting executed when the release button is fully pressed and is stored in the frame memory 26 via the AFE 20 and the image input controller 25. It is.

圧縮/伸長処理部32は、画像処理部31によって処理が行われた本画像の画像データに対して、例えば、JPEG等の圧縮形式で圧縮処理を行い、画像ファイルを生成する。この画像ファイルには、Exifフォーマット等に基づいて、撮影日時等の付帯情報が格納されたタグが付加される。   The compression / decompression processing unit 32 performs a compression process on the image data of the main image processed by the image processing unit 31 in a compression format such as JPEG, and generates an image file. A tag storing incidental information such as shooting date and time is added to the image file based on the Exif format or the like.

メディア制御部33は、不図示のメディアスロットルに着脱自在にセットされた記録メディア34にアクセスして、画像ファイルの書き込みと読み込みの制御を行う。   The media control unit 33 accesses a recording medium 34 that is detachably set on a media throttle (not shown), and controls writing and reading of an image file.

内部メモリ35は、デジタルカメラ1において設定される各種定数、ルックアップテーブル、およびCPU40が実行するプログラム等を記憶する。   The internal memory 35 stores various constants set in the digital camera 1, a lookup table, a program executed by the CPU 40, and the like.

また、デジタルカメラ1は、動き解析部36および合成部37を備える。   The digital camera 1 also includes a motion analysis unit 36 and a synthesis unit 37.

動き解析部36は、画像の動きを解析する。具体的には、流し撮りモードによる撮影により取得された複数の画像において1つの基準画像を設定し、基準画像および他の画像間の対応する画素の移動方向および移動量を求め、移動方向および移動量に基づいて基準画像における画素がどのように移動しているかを解析する。例えば、流し撮りモードの撮影により図7に示すように3つの画像G1〜G3が取得された場合において、基準画像を画像G1とすると、基準画像G1における自動車に対応する部分の画素の移動量は非常に小さいため、動き解析部36は基準画像G1における自動車に対応する領域の画素の動きが小さいとの解析結果を出力する。なお、動きが小さいか否かの判断は、移動量が所定のしきい値より小さいか否かを判定することにより行えばよい。一方、基準画像G1における背景の家は大きく移動しているため、動き解析部36は基準画像G1における自動車に対応する領域以外の領域の画素の動きが大きいとの解析結果を出力する。   The motion analysis unit 36 analyzes the motion of the image. Specifically, one reference image is set in a plurality of images acquired by shooting in the panning mode, and the movement direction and movement amount of the corresponding pixel between the reference image and another image are obtained, and the movement direction and movement are determined. Based on the quantity, it is analyzed how the pixels in the reference image are moving. For example, when three images G1 to G3 are acquired by shooting in the panning mode as shown in FIG. 7, if the reference image is the image G1, the movement amount of the pixel corresponding to the car in the reference image G1 is as follows. Since the motion analysis unit 36 is very small, the motion analysis unit 36 outputs an analysis result indicating that the pixel motion in the region corresponding to the automobile in the reference image G1 is small. Note that whether or not the movement is small may be determined by determining whether or not the movement amount is smaller than a predetermined threshold value. On the other hand, since the background house in the reference image G1 has moved greatly, the motion analysis unit 36 outputs an analysis result that the movement of the pixels in the region other than the region corresponding to the car in the reference image G1 is large.

なお、本撮影の前においては、連続して取得される2つのスルー画像間において、動きの解析を行うようにしてもよい。   Note that before the actual photographing, motion analysis may be performed between two through-images acquired successively.

合成部37は、動き解析部36による解析結果に基づいて、流し撮りモードの撮影により取得された複数の画像を合成する。具体的には、複数の画像における動きの小さい領域の位置が同じ位置になるように重ね合わせることにより合成して、合成画像を生成する。例えば、複数の画像において中央の領域の動きが小さければ、中央の領域の位置が同じ意位置になるように複数の画像を重ね合わせることにより合成画像を生成する。なお、合成は、複数の画像について動きが小さい領域の位置の位置合わせを行った後に、複数の画像間の対応する画素値の平均値を算出することにより行えばよい。ここで、位置合わせは、複数の画像から1つの基準画像を選択し、基準画像に含まれる動きが小さい領域の位置に他の画像における動きが小さい領域の位置が一致するように、他の画像を回転、拡大縮小等、変形することにより行えばよい。   The combining unit 37 combines a plurality of images acquired by shooting in the panning mode based on the analysis result by the motion analysis unit 36. Specifically, a composite image is generated by superimposing them so that the positions of the regions with small motion in the plurality of images are the same position. For example, if the movement of the central region is small in a plurality of images, a composite image is generated by superimposing the plurality of images so that the position of the central region is the same position. Note that the composition may be performed by calculating the average value of the corresponding pixel values between the plurality of images after aligning the positions of the regions where the motion is small for the plurality of images. Here, the alignment is performed by selecting one reference image from a plurality of images, so that the position of the region where the movement is small in the other image matches the position of the region where the movement included in the reference image is small. May be performed by transforming such as rotation, enlargement / reduction, or the like.

なお、動き解析部36による解析結果に基づいて、複数の画像の動きが小さい領域を動体として検出し、動体の位置が同じ位置になるように複数の画像を重ね合わせることにより合成して合成画像を生成するようにしてもよい。   In addition, based on the analysis result by the motion analysis unit 36, an area where the motion of a plurality of images is small is detected as a moving body, and the plurality of images are superimposed so that the position of the moving body is the same position, and the combined image May be generated.

これにより、図7に示すように3つの画像G1〜G3から生成された合成画像G0は、図8に示すように自動車が静止し、背景の家が流れたものとなる。ここで、図8においては背景の家の画像が流されている状態を横方向の線により表すものとする。   As a result, the composite image G0 generated from the three images G1 to G3 as shown in FIG. 7 is such that the automobile is stationary and the background house flows as shown in FIG. Here, in FIG. 8, a state in which an image of a background house is being flown is represented by a horizontal line.

なお、流し撮りモード時において、第1のAE処理により設定した絞り値を用いて撮影を行う場合には、単純に複数の画像間の対応する画素の画素値を加算することにより合成画像を生成するようにしてもよい。   When shooting using the aperture value set by the first AE process in the panning mode, a composite image is generated by simply adding pixel values of corresponding pixels between a plurality of images. You may make it do.

ところで、流し撮りモードにより取得される合成画像の背景は、複数の画像が重ね合わせられたものとなる。このため、複数の画像のそれぞれに、画素値が最大値となるために、画素値が飽和している飽和領域が含まれると、撮影順に飽和領域の位置が移動するため、各画像における飽和領域の位置が異なるものとなる。このように飽和領域の位置が異なると、合成画像においては各画像における飽和領域と非飽和領域とが重なる部分が存在することとなる。ここで画素値が飽和するとは、例えば本実施形態によるデジタルカメラ1により取得される画像の各画素の画素値がRGB各色8ビットの分解能を有する場合、RGBの各値が256となることをいう。   By the way, the background of the composite image acquired in the panning mode is a superposition of a plurality of images. For this reason, since the pixel value becomes the maximum value in each of the plurality of images, if the saturated region where the pixel value is saturated is included, the position of the saturated region moves in the shooting order. The positions of are different. When the positions of the saturated regions are different as described above, there are portions where the saturated region and the unsaturated region in each image overlap in the composite image. Here, when the pixel value is saturated, for example, when the pixel value of each pixel of the image acquired by the digital camera 1 according to the present embodiment has a resolution of 8 bits for each color of RGB, each value of RGB becomes 256. .

しかしながら、各画像における飽和領域と非飽和領域とが重なると、飽和領域が滑らかに流れず、合成画像上に飽和領域と非飽和領域とが交互に現れるため、飽和領域が間を空けて存在することとなり、その結果、飽和領域が多重化してしまう。   However, when the saturated region and the unsaturated region in each image overlap, the saturated region does not flow smoothly, and the saturated region and the unsaturated region appear alternately on the composite image, so there is a saturated region in between. As a result, the saturation region is multiplexed.

例えば、図9に示すように流し撮りモードにより取得された3つの画像G11〜G13の家の窓の部分において太陽の光が反射していると、その部分が飽和領域となる。このように飽和領域が含まれる3つの画像G11〜G13を合成すると、図10に示すように、合成画像G10の背景に3つの飽和領域が現れてしまうため、飽和領域が多重化してしまう。   For example, as shown in FIG. 9, when the sunlight is reflected on the window portion of the house of the three images G11 to G13 acquired in the panning mode, that portion becomes a saturated region. When the three images G11 to G13 including the saturated region are combined in this way, as shown in FIG. 10, since the three saturated regions appear in the background of the combined image G10, the saturated regions are multiplexed.

このため、本実施形態においては、本撮影の前に、流し撮りモード時に設定された1回の露光時間T1により再度のプレ撮影を行い、再度のプレ撮影により取得されたプレ画像に飽和領域が存在するか否かを判定する。飽和領域が存在しない場合には、設定された露光時間T1により撮影を行う。飽和領域が存在する場合には、AE処理部29は、再度取得されたプレ画像を用いて、露出がアンダーとなるように第2のAE処理を再度行い、露光時間T1および露光回数nを再度設定する。そして、飽和領域が存在しない露光時間T1が設定されるまで、再度のプレ撮影および露光時間T1の設定を繰り返す。なお、再度の第2のAE処理には、第1のAE処理は含まれない。   For this reason, in the present embodiment, before the main shooting, pre-shooting is performed again with one exposure time T1 set in the panning mode, and a saturated region is included in the pre-image acquired by the second pre-shooting. Determine if it exists. If there is no saturated region, shooting is performed with the set exposure time T1. When the saturated region exists, the AE processing unit 29 performs the second AE process again using the pre-image acquired again so that the exposure is under, and sets the exposure time T1 and the number of exposures n again. Set. Then, the pre-photographing and the setting of the exposure time T1 are repeated until the exposure time T1 in which no saturated region exists is set. Note that the second AE process again does not include the first AE process.

また、合成画像においては動きが小さい被写体は静止した状態となるため、その被写体上に飽和領域が存在しても合成画像において多重化は生じない。このため、スルー画像撮影時から動き解析部36により動きの解析を行い、プレ画像に飽和領域が存在するか否かの判定を、プレ画像における動きが小さい領域以外の領域においてのみ行うようにしてもよい。例えば、図11に示すようにプレ画像を64の領域に分割してAE処理を行う場合においては、動きが小さい自動車が存在する領域以外の領域(斜線で示す)において、飽和領域が存在するか否かを判定すればよい。   In addition, since a subject with small motion is stationary in the composite image, no multiplexing occurs in the composite image even if a saturated region exists on the subject. For this reason, motion analysis is performed by the motion analysis unit 36 from the time of through-image shooting, and it is determined whether or not a saturated region exists in the pre-image only in a region other than the region in which the motion in the pre-image is small. Also good. For example, as shown in FIG. 11, in the case where the pre-image is divided into 64 areas and AE processing is performed, is a saturated area present in an area (indicated by hatching) other than an area where a car with small movement exists? What is necessary is just to determine.

また、流し撮りモード時においては、静止させるように撮影する被写体は画角の中心にあることが多い。このため、AE処理のために分割した複数の領域のうち、中央の所定範囲にある領域を動きが小さい領域として用いてもよい。   In the panning mode, the subject to be photographed so as to be stationary is often at the center of the angle of view. For this reason, you may use the area | region which exists in the center predetermined range among several area | regions divided | segmented for AE processing as an area | region where a motion is small.

なお、露光時間T1の設定を繰り返すことにより、露光時間T1は短くなっていくが、撮像素子18からの電荷の読み出しを連続させるためには、撮像素子18の最高電荷読み出し時間以上には露光時間T1を短くすることができない。このため、本実施形態においては、最高電荷読み出し時間に対応する時間に露光時間T1を設定しても飽和領域の存在を解消できない場合には、CPU40は、合成画像における飽和領域の多重化の発生を回避できないことから、流し撮りモードを停止する。また、CPU40は、流し撮りモードの停止とともに、流し撮りができない旨の通知をモニタ5に表示するよう表示制御部27に指示を行う。   The exposure time T1 is shortened by repeating the setting of the exposure time T1, but in order to continuously read out charges from the image sensor 18, the exposure time is longer than the maximum charge read time of the image sensor 18. T1 cannot be shortened. For this reason, in the present embodiment, if the existence of the saturated region cannot be eliminated even if the exposure time T1 is set to the time corresponding to the maximum charge readout time, the CPU 40 generates the saturation region in the composite image. Since panning cannot be avoided, the panning mode is stopped. Further, the CPU 40 instructs the display control unit 27 to display a notification that the panning cannot be performed on the monitor 5 while the panning mode is stopped.

また、露光時間T1の設定を繰り返すことにより、複数の画像1つ当たりの明るさは暗くなる。このため、本実施形態においては、画像処理部31において合成画像に対して明るさ補正処理を行うことにより、合成画像の明るさを適切なものとすることができる。   Further, by repeating the setting of the exposure time T1, the brightness per image becomes dark. For this reason, in this embodiment, the brightness of the composite image can be made appropriate by performing brightness correction processing on the composite image in the image processing unit 31.

CPU40は、レリーズボタン2、操作ボタン8およびAE処理部29等の各種処理部からの信号に応じてデジタルカメラ1の本体各部を制御する。   The CPU 40 controls each part of the main body of the digital camera 1 according to signals from various processing units such as the release button 2, the operation button 8, and the AE processing unit 29.

データバス41は、各種処理部、フレームメモリ26およびCPU40等に接続されており、画像データおよび各種指示等のやり取りを行う。   The data bus 41 is connected to various processing units, the frame memory 26, the CPU 40, and the like, and exchanges image data and various instructions.

次いで、本実施形態において行われる処理について説明する。図12は本実施形態において行われる処理を示すフローチャートである。なお、本発明は流し撮りモードにおける撮影の処理に特徴を有するため、以下に説明する実施形態においては、流し撮りモードが設定されている場合の処理について説明する。   Next, processing performed in the present embodiment will be described. FIG. 12 is a flowchart showing processing performed in the present embodiment. Since the present invention is characterized by the shooting process in the panning mode, in the embodiment described below, the process when the panning mode is set will be described.

CPU40はレリーズボタン2が半押しされたか否かを監視しており(ステップST1)、レリーズボタン2が半押しされると、撮像系9がプレ撮影を行い(ステップST2)、AE処理部29がプレ撮影により取得されたプレ画像を用いて第2のAE処理を行う(ステップST3)。そしてCPU40は第2のAE処理により設定された露光時間T1による再度のプレ撮影を行い(ステップST4)、これにより取得されたプレ画像に飽和領域が含まれるか否かを判定する(ステップST5)。   The CPU 40 monitors whether or not the release button 2 is half-pressed (step ST1). When the release button 2 is half-pressed, the imaging system 9 performs pre-photographing (step ST2), and the AE processing unit 29 A second AE process is performed using the pre-image acquired by the pre-photographing (step ST3). Then, the CPU 40 performs pre-shooting again with the exposure time T1 set by the second AE process (step ST4), and determines whether or not the pre-image acquired thereby includes a saturated region (step ST5). .

ステップST5が肯定されると、CPU40は、現在設定されている露光時間T1からさらに露出アンダーとなる露光時間を設定できるか否かを判定する(ステップST6)。具体的には、現在設定されている露光時間T1が、撮像装置18における最速電荷読み出し時間となっているか否かを判定する。ステップST6が否定されると、これ以上の露出アンダーとなる撮影を行うことができないため、流し撮りモードにより取得される複数の画像に飽和領域が存在することを避けることができない。したがって、CPU40は流し撮りモードを停止するとともに(ステップST7)、モニタ5に流し撮りモードを停止する旨の表示を行い(ステップST8)、処理を終了する。   If step ST5 is affirmed, the CPU 40 determines whether or not an exposure time that is further underexposed can be set from the currently set exposure time T1 (step ST6). Specifically, it is determined whether or not the currently set exposure time T1 is the fastest charge readout time in the imaging device 18. If step ST6 is denied, since it is not possible to perform photographing that is underexposed any more, it is impossible to avoid the presence of saturated regions in a plurality of images acquired in the panning mode. Therefore, the CPU 40 stops the panning mode (step ST7), displays on the monitor 5 that the panning mode is stopped (step ST8), and ends the process.

一方、ステップST6が肯定されると、CPU40は露出がアンダーとなるようにAE処理部29に指示を行い(ステップST9)。これによりステップST4に戻り、AE処理部29が第2のAE処理を再度行い、ステップST4以降の処理を繰り返す。なお、再度の第2のAE処理には第1のAE処理は含まれない。   On the other hand, if step ST6 is affirmed, the CPU 40 instructs the AE processing unit 29 so that the exposure is under (step ST9). Accordingly, the process returns to step ST4, the AE processing unit 29 performs the second AE process again, and repeats the processes after step ST4. Note that the second AE process again does not include the first AE process.

ステップST5が否定されると、CPU40はレリーズボタン2が全押しされたか否かの監視を開始し(ステップST10)、ステップST10が肯定されると本撮影を行い、複数の画像を取得する(ステップST11)。次いで、動き解析部36が本撮影により取得された複数の画像の動きを解析し(ステップST12)、合成部37が動きの解析結果に基づいて複数の画像を重ね合わせることにより合成画像を生成する(ステップST13)。さらに画像処理部31が合成画像に対して明るさ補正を含む画像処理を行う(ステップST14)。そして、圧縮/伸長処理部32が、画像処理が施された合成画像の画像データから画像ファイルを生成し(ステップST15)、メディア制御部33が画像ファイルを記録メディア34に記録し(ステップST16)、処理を終了する。   If step ST5 is negative, the CPU 40 starts monitoring whether or not the release button 2 has been fully pressed (step ST10), and if step ST10 is affirmative, the CPU 40 performs actual shooting and acquires a plurality of images (step ST10). ST11). Next, the motion analysis unit 36 analyzes the motion of the plurality of images acquired by the actual photographing (step ST12), and the combining unit 37 generates a composite image by superimposing the plurality of images based on the motion analysis result. (Step ST13). Further, the image processing unit 31 performs image processing including brightness correction on the composite image (step ST14). Then, the compression / decompression processing unit 32 generates an image file from the image data of the composite image subjected to the image processing (step ST15), and the media control unit 33 records the image file on the recording medium 34 (step ST16). The process is terminated.

このように、本実施形態によれば、流し撮りモード時に取得される複数の画像のそれぞれに飽和領域が存在しないように露光時間T1を設定するようにしたため、複数の画像には飽和領域が存在しなくなり、その結果、合成画像上において飽和領域と非飽和領域とが重なることがなくなり、これにより、飽和領域の多重化を防止することができる。   As described above, according to the present embodiment, since the exposure time T1 is set so that there is no saturated region in each of the plurality of images acquired in the panning mode, there are saturated regions in the plurality of images. As a result, the saturated region and the non-saturated region are not overlapped on the composite image, thereby preventing the saturation region from being multiplexed.

ここで、飽和領域が存在しないように露出を設定した場合、複数の画像は露出アンダーとなって明るさが不足する。このため、合成画像の明るさを補正することにより、飽和領域の多重化を防止しつつも、所望とする明るさを有する合成画像を得ることができる。   Here, when the exposure is set so that there is no saturated region, the plurality of images are underexposed and the brightness is insufficient. Therefore, by correcting the brightness of the composite image, it is possible to obtain a composite image having a desired brightness while preventing the saturation region from being multiplexed.

また、合成画像においては動きが小さい領域は静止した状態となるため、飽和領域が存在しても合成画像において多重化は生じない。このため、複数の画像における動きが小さい領域以外の領域に飽和領域が存在しないように露出を設定することにより、露出設定のための演算量を低減することができる。   In addition, in the composite image, the region where the motion is small is in a static state, so that no multiplexing occurs in the composite image even if there is a saturated region. For this reason, it is possible to reduce the amount of calculation for setting the exposure by setting the exposure so that there is no saturated region in a region other than the region where the motion is small in the plurality of images.

また、飽和領域が存在しないようにするための露出の設定値、すなわちシャッタスピードが最高電荷読み出し時間となっても飽和領域の存在を解消できない場合には、流し撮りモードを停止して複数の画像の取得を停止することにより、多重化が生じる状況での複数の画像の取得および合成画像の生成を行うことによる無駄な処理を防止することができる。   In addition, when the exposure setting value for preventing the saturation area from being present, that is, when the shutter speed reaches the maximum charge readout time and the saturation area cannot be eliminated, the panning mode is stopped and a plurality of images are stopped. By stopping acquisition, it is possible to prevent useless processing by acquiring a plurality of images and generating a composite image in a situation where multiplexing occurs.

この場合、複数の画像の生成が停止された旨の表示をモニタ5に行うことにより、撮影者は流し撮りを行っても合成画像が生成されないことを事前に知ることができるため、撮影場所を変更する等の措置を執ることにより、画像に飽和領域が存在しないようにすることができる。   In this case, by displaying on the monitor 5 that the generation of a plurality of images has been stopped, the photographer can know in advance that a composite image will not be generated even if panning is performed. By taking measures such as changing, it is possible to prevent the saturation region from being present in the image.

なお、上記実施形態においては、合成画像の明るさを補正しているが、第2のAE処理により設定される露光時間T1により撮影を行っても、絞り値およびアナログ信号のゲインを調整することにより、複数の画像のそれぞれの明るさが低下することを防止できる。このため、絞り値およびゲインの調整により複数の画像のそれぞれの明るさを適切に保つことできる場合、画像処理部31において合成画像に対して明るさ補正処理を行わなくてもよい。   In the above embodiment, the brightness of the composite image is corrected. However, the aperture value and the gain of the analog signal are adjusted even when shooting is performed with the exposure time T1 set by the second AE process. Thus, it is possible to prevent the brightness of each of the plurality of images from decreasing. For this reason, when the brightness of each of the plurality of images can be appropriately maintained by adjusting the aperture value and the gain, the image processing unit 31 does not need to perform the brightness correction process on the composite image.

また、上記実施形態においては、露出アンダーに設定できない場合には、流し撮りモードを停止して処理を終了しているが、通常撮影モードに変更するようにしてもよい。   Further, in the above embodiment, when the underexposure cannot be set, the panning mode is stopped and the process is ended, but the normal shooting mode may be changed.

以上、本発明の実施形態に係るデジタルカメラ1について説明したが、コンピュータを、上記のAE処理部29、動き解析部36および合成部37に対応する手段として機能させ、図12に示すような処理を行わせるプログラムも本発明の実施形態の1つである。また、そのようなプログラムを記録したコンピュータ読取り可能な記録媒体も本発明の実施形態の1つである。   The digital camera 1 according to the embodiment of the present invention has been described above. However, the computer functions as a unit corresponding to the AE processing unit 29, the motion analysis unit 36, and the synthesis unit 37, and the process as illustrated in FIG. A program for performing the above is also one embodiment of the present invention. A computer-readable recording medium that records such a program is also one embodiment of the present invention.

本発明の実施形態による撮影装置を適用したデジタルカメラの外観を示す図(正面側)The figure which shows the external appearance of the digital camera to which the imaging device by embodiment of this invention is applied (front side) 本発明の実施形態による撮影装置を適用したデジタルカメラの外観を示す図(背面側)The figure which shows the external appearance of the digital camera to which the imaging device by embodiment of this invention is applied (back side) 本発明の実施形態による撮影装置を適用したデジタルカメラの内部構成を示す概略ブロック図1 is a schematic block diagram showing an internal configuration of a digital camera to which a photographing apparatus according to an embodiment of the present invention is applied. 測光領域への分割の一例を示す図Diagram showing an example of division into photometric areas 通常撮影モード時における1回の撮影による露光時間を示す図The figure which shows the exposure time by one imaging | photography in normal imaging | photography mode 流し撮りモード時における1回の撮影による露光時間を示す図The figure which shows the exposure time by one imaging | photography at the time of panning mode 流し撮りモードにより取得された複数の画像を示す図(飽和領域無し)Diagram showing multiple images acquired in panning mode (no saturation area) 合成画像を示す図(飽和領域無し)Diagram showing composite image (no saturation area) 流し撮りモードにより取得された複数の画像を示す図(飽和領域あり)Diagram showing multiple images acquired in panning mode (with saturation area) 合成画像を示す図(飽和領域あり)Figure showing a composite image (with saturated area) 飽和領域の判定を説明するための図Diagram for explaining determination of saturation region 本実施形態において行われる処理を示すフローチャートA flowchart showing processing performed in the present embodiment

符号の説明Explanation of symbols

1 デジタルカメラ
5 モニタ
9 撮像系
10 撮影レンズ
11 フォーカスレンズ駆動部
23 発光制御部
24 フラッシュ
28 AF処理部
29 AE処理部
36 動き解析部
37 合成部
40 CPU
DESCRIPTION OF SYMBOLS 1 Digital camera 5 Monitor 9 Imaging system 10 Shooting lens 11 Focus lens drive part 23 Light emission control part 24 Flash 28 AF process part 29 AE process part 36 Motion analysis part 37 Synthesis | combination part 40 CPU

Claims (10)

撮影により画像を取得する撮影手段と、
複数の画像を時間的に連続させて順次取得するよう前記撮影手段を制御する撮影制御手段と、
前記複数の画像の動きを解析する動き解析手段と、
該動きの解析結果に基づいて、前記複数の画像を合成して合成画像を生成する合成手段と、
前記撮影手段を用いての前記複数の画像の取得時に、前記複数の画像のそれぞれに飽和領域が存在しないように前記撮影手段の露出を設定する露出処理手段とを備えたことを特徴とする撮影装置。
Photographing means for acquiring an image by photographing;
An imaging control means for controlling the imaging means to sequentially acquire a plurality of images sequentially in time;
Motion analysis means for analyzing the motion of the plurality of images;
A combining means for combining the plurality of images to generate a combined image based on the analysis result of the movement;
An exposure processing unit configured to set an exposure of the imaging unit so that a saturated region does not exist in each of the plurality of images at the time of obtaining the plurality of images using the imaging unit. apparatus.
前記合成手段は、前記動きの解析結果に基づいて前記複数の画像のそれぞれから動体を検出し、該複数の画像のそれぞれにおける前記動体の位置が略一致するように前記複数の画像を合成して合成画像を生成する手段であることを特徴とする請求項1記載の撮影装置。   The synthesizing unit detects a moving object from each of the plurality of images based on the analysis result of the motion, and synthesizes the plurality of images so that the positions of the moving objects in each of the plurality of images substantially coincide with each other. 2. The photographing apparatus according to claim 1, wherein the photographing apparatus is a means for generating a composite image. 前記露出処理手段は、前記複数の画像の各画素値が、最高輝度未満となるように前記撮影手段の露出を制御する手段であることを特徴とする請求項1または2記載の撮影装置。   3. The photographing apparatus according to claim 1, wherein the exposure processing means is means for controlling exposure of the photographing means so that each pixel value of the plurality of images is less than a maximum luminance. 前記複数の画像の取得前に前記露出を制御するためのプレ画像を取得し、該プレ画像に基づいて前記複数の画像の取得時の露出を設定し、該設定した露出により前記プレ画像を再度取得し、該プレ画像に前記飽和領域が存在するか否かを判定し、該判定が否定されるまで前記露出の設定および前記再度のプレ画像の取得を繰り返すよう、前記撮影制御手段および前記露出処理手段を制御する制御手段をさらに備えたことを特徴とする請求項1から3のいずれか1項記載の撮影装置。   Before the acquisition of the plurality of images, a pre-image for controlling the exposure is acquired, an exposure at the time of acquisition of the plurality of images is set based on the pre-image, and the pre-image is again set by the set exposure. Acquiring, determining whether the saturated region exists in the pre-image, and repeating the setting of exposure and acquiring the pre-image again until the determination is negative. 4. The photographing apparatus according to claim 1, further comprising control means for controlling the processing means. 前記合成画像の明るさを補正する明るさ補正手段をさらに備えたことを特徴とする請求項1から4のいずれか1項記載の撮影装置。   5. The photographing apparatus according to claim 1, further comprising brightness correction means for correcting the brightness of the composite image. 前記露出処理手段は、前記動きの解析結果に基づいて、前記複数の画像における動きが小さい領域以外の領域に前記飽和領域が存在しないように前記撮影手段の露出を設定する手段であることを特徴とする請求項1から5のいずれか1項記載の撮影装置。   The exposure processing means is means for setting the exposure of the photographing means so that the saturated region does not exist in a region other than a region where the motion is small in the plurality of images based on the analysis result of the motion. The imaging device according to any one of claims 1 to 5. 前記撮影制御手段は、前記露出処理手段が設定する露出が制限値となっても前記飽和領域の存在を解消できない場合、前記複数の画像の取得を停止する手段であることを特徴とする請求項1から6のいずれか1項記載の撮影装置。   The imaging control means is means for stopping the acquisition of the plurality of images when the presence of the saturated region cannot be eliminated even if the exposure set by the exposure processing means reaches a limit value. The imaging device according to any one of 1 to 6. 前記複数の画像の取得が停止されたことを通知する通知手段をさらに備えたことを特徴とする請求項7記載の撮影装置。   8. The photographing apparatus according to claim 7, further comprising notification means for notifying that acquisition of the plurality of images has been stopped. 撮影により画像を取得する撮影手段と、
複数の画像を時間的に連続させて順次取得するよう前記撮影手段を制御する撮影制御手段と、
前記複数の画像の動きを解析する動き解析手段と、
該動きの解析結果に基づいて、前記複数の画像を合成して合成画像を生成する合成手段とを備えた撮影装置の制御方法であって、
前記撮影手段を用いての前記複数の画像の取得時に、前記複数の画像のそれぞれに飽和領域が存在しないように前記撮影手段の露出を設定することを特徴とする撮影装置の制御方法。
Photographing means for acquiring an image by photographing;
Photographing control means for controlling the photographing means to sequentially acquire a plurality of images sequentially in time;
Motion analysis means for analyzing the motion of the plurality of images;
A control method for an imaging apparatus, comprising: combining means for combining the plurality of images to generate a combined image based on the analysis result of the movement,
A method for controlling an imaging apparatus, comprising: setting exposure of the imaging unit so that a saturated region does not exist in each of the plurality of images when acquiring the plurality of images using the imaging unit.
撮影により画像を取得する撮影手段と、
複数の画像を時間的に連続させて順次取得するよう前記撮影手段を制御する撮影制御手段と、
前記複数の画像の動きを解析する動き解析手段と、
該動きの解析結果に基づいて、前記複数の画像を合成して合成画像を生成する合成手段とを備えた撮影装置の制御方法をコンピュータに実行させるためのプログラムであって、
前記撮影手段を用いての前記複数の画像の取得時に、前記複数の画像のそれぞれに飽和領域が存在しないように前記撮影手段の露出を設定する手順をコンピュータに実行させることを特徴とするプログラム。
Photographing means for acquiring an image by photographing;
Photographing control means for controlling the photographing means to sequentially acquire a plurality of images sequentially in time;
Motion analysis means for analyzing the motion of the plurality of images;
A program for causing a computer to execute a control method of an imaging apparatus including a combining unit that combines the plurality of images and generates a combined image based on the analysis result of the motion,
A program for causing a computer to execute a procedure for setting exposure of the photographing unit so that a saturated region does not exist in each of the plurality of images at the time of obtaining the plurality of images using the photographing unit.
JP2008311870A 2008-12-08 2008-12-08 Photographic apparatus, control method of the photographic apparatus and program Withdrawn JP2010136239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008311870A JP2010136239A (en) 2008-12-08 2008-12-08 Photographic apparatus, control method of the photographic apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008311870A JP2010136239A (en) 2008-12-08 2008-12-08 Photographic apparatus, control method of the photographic apparatus and program

Publications (1)

Publication Number Publication Date
JP2010136239A true JP2010136239A (en) 2010-06-17

Family

ID=42347041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008311870A Withdrawn JP2010136239A (en) 2008-12-08 2008-12-08 Photographic apparatus, control method of the photographic apparatus and program

Country Status (1)

Country Link
JP (1) JP2010136239A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015141487A1 (en) * 2014-03-18 2015-09-24 ソニー株式会社 Image processing device, image processing method and program
JP2017041736A (en) * 2015-08-19 2017-02-23 オリンパス株式会社 Imaging apparatus and imaging method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015141487A1 (en) * 2014-03-18 2015-09-24 ソニー株式会社 Image processing device, image processing method and program
JPWO2015141487A1 (en) * 2014-03-18 2017-04-06 ソニー株式会社 Image processing apparatus, image processing method, and program
US10567671B2 (en) 2014-03-18 2020-02-18 Sony Corporation Image processing apparatus and image processing method
JP2017041736A (en) * 2015-08-19 2017-02-23 オリンパス株式会社 Imaging apparatus and imaging method

Similar Documents

Publication Publication Date Title
JP4567593B2 (en) Imaging apparatus and imaging method
JP5214476B2 (en) Imaging apparatus, image processing method, and program
JP4510768B2 (en) Imaging apparatus and method, and program
JP2009201094A (en) Imaging apparatus and imaging method
JP2010074634A (en) Imaging device and method of the same
JP2010178164A (en) Imaging apparatus
JP2010166304A (en) Photographing apparatus, method of controlling the same, and program
US8154620B2 (en) Imaging apparatus and imaging method
JP2010187113A (en) Imaging apparatus, and white balance bracketing photographing program
JP2009089037A (en) Photographing controller, photographing control method, photographing control program and photographing device
JP4865648B2 (en) Imaging device
JP5948997B2 (en) Imaging apparatus and imaging method
JP5532621B2 (en) Electronic camera and image processing program
US7961231B2 (en) Apparatus, method and computer-readable recording medium containing program for photographing
JP2010026039A (en) Photographing apparatus, and control method and program of photographing apparatus
JP2010136239A (en) Photographic apparatus, control method of the photographic apparatus and program
JP5310331B2 (en) Imaging apparatus and imaging method
JP2008072412A (en) Photographing device and method, and program
JP2007027984A (en) Photographic apparatus and control method thereof
JP5184325B2 (en) Image capturing apparatus, image capturing apparatus control method, and program
JP5266077B2 (en) Imaging apparatus and control method thereof
JP2010068064A (en) Imaging device and imaging method
JP2010141483A (en) Image pickup device, and control method of image pickup device, and program
JP2009303111A (en) Image processing apparatus and method, and program
JP2014171146A (en) Image pickup device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20120306