[go: up one dir, main page]

JP2010050603A - Photographing device and program - Google Patents

Photographing device and program Download PDF

Info

Publication number
JP2010050603A
JP2010050603A JP2008211539A JP2008211539A JP2010050603A JP 2010050603 A JP2010050603 A JP 2010050603A JP 2008211539 A JP2008211539 A JP 2008211539A JP 2008211539 A JP2008211539 A JP 2008211539A JP 2010050603 A JP2010050603 A JP 2010050603A
Authority
JP
Japan
Prior art keywords
focus
photographing
composition
focusing
information
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
JP2008211539A
Other languages
Japanese (ja)
Other versions
JP2010050603A5 (en
Inventor
Kazunori Yanagi
和典 柳
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2008211539A priority Critical patent/JP2010050603A/en
Publication of JP2010050603A publication Critical patent/JP2010050603A/en
Publication of JP2010050603A5 publication Critical patent/JP2010050603A5/ja
Pending legal-status Critical Current

Links

Images

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Abstract

【課題】撮影に際して構図が変更された場合であっても、変更後の構図における合焦位置の情報を正確に取得できるようにすること。
【解決手段】構図の変更に伴い、CPU13がデジタルカメラ1の加速度の情報(センサ部18の検出信号)を用いて撮影範囲の変化量を検出し、検出した撮影範囲の変化量に基づき、ステップS4において取得したフォーカスロック位置情報(合焦時点のフォーカスロック位置情報)を補正するようにした。このようにすれば、フォーカスロック後にユーザが構図を変更した場合であっても、画像ファイルに付帯させて記録するフォーカスロック位置情報は、撮影画像つまり変更後の構図において実際にピントが合っている位置の情報と同じものにすることができる。
【選択図】 図2
An object of the present invention is to enable accurate acquisition of in-focus position information in a changed composition even when the composition is changed at the time of shooting.
As the composition is changed, a CPU 13 detects a change amount of the photographing range using information on acceleration of the digital camera 1 (detection signal of the sensor unit 18), and a step based on the detected change amount of the photographing range. The focus lock position information (focus lock position information at the time of focusing) acquired in S4 is corrected. In this way, even when the user changes the composition after the focus is locked, the focus lock position information attached to the image file and recorded is actually in focus in the captured image, that is, the composition after the change. It can be the same as the location information.
[Selection] Figure 2

Description

本発明は、合焦位置情報を記録する撮影画像、プログラムに関するものである。   The present invention relates to a captured image and a program for recording in-focus position information.

従来、特許文献1において、撮影前にライブビュー画像における特定領域(撮影範囲の中央等)をピントの確認のために拡大表示させて、この拡大表示された領域情報を記憶させ、撮影直後にこの領域情報に基づき撮影前に拡大していた領域を再度拡大表示させる電子カメラが提案されている。かかる電子カメラによれば、ユーザは、撮影直後に再度拡大表示された画面を見ることによって、撮影直後にも撮影画像のピントが合っているか否かを確認することができる。   Conventionally, in Patent Document 1, a specific area (such as the center of the shooting range) in a live view image is enlarged and displayed for confirmation of focus before shooting, and the area information displayed in an enlarged manner is stored. There has been proposed an electronic camera that enlarges and displays again an area that has been enlarged before photographing based on area information. According to such an electronic camera, the user can confirm whether or not the captured image is in focus immediately after shooting by looking at the screen that is enlarged and displayed again immediately after shooting.

ところで、ユーザが撮影を行うに際して、シャッタキーの半押し操作等によって一旦フォーカスロック(合焦位置を固定すること)した後、カメラを移動させて構図を変更する場合がある。例えば、構図の中央に位置する主要被写体に一旦フォーカスロックした後、ユーザがカメラを左方向へ移動させて構図を変更してから撮影をする場合がある。このような撮影では、変更後の構図において右に位置することとなった主要被写体に焦点が合った撮影画像が得られることとなる。   By the way, when the user performs photographing, there is a case where the composition is changed by moving the camera after temporarily locking the focus (fixing the in-focus position) by half-pressing the shutter key or the like. For example, there is a case in which after the focus lock is once performed on the main subject located at the center of the composition, the user moves the camera to the left and changes the composition to take a picture. In such shooting, a shot image focused on the main subject that is positioned to the right in the changed composition is obtained.

ここで、ユーザが上記従来の電子カメラを用いて、フォーカスロック後に構図を変更する撮影を行う場合、電子カメラに記憶される撮影前のピント確認用の拡大領域の情報は、撮影直後に拡大表示される領域と異なるものなってしまい、主要被写体のピントを確認できないこととなる。なぜなら、ユーザがフォーカスロック後に構図を変更したため、撮影時には、もはや一旦ピントが合った主要被写体の位置が撮影前に拡大表示された特定領域(撮影後にも再度拡大表示される領域)から外れてしまうからである。   Here, when the user performs shooting for changing the composition after focus lock using the above-described conventional electronic camera, the information on the enlarged area for focus confirmation before shooting stored in the electronic camera is enlarged and displayed immediately after shooting. Therefore, the focus of the main subject cannot be confirmed. Because, since the user changed the composition after the focus was locked, the position of the main subject that was once in focus is no longer in the specific area that was enlarged before shooting (the area that was enlarged again after shooting). Because.

そこで、特許文献2において、フォーカスロックしてから撮影するまでにユーザが構図を変化した場合に、構図が変更されたことを示す情報や合焦位置情報を画像に添付させて記録し、画像を再生した場合にフォーカスロック後に構図が変更された旨を表示するデジタルカメラが提案されている。かかるデジタルカメラによれば、フォーカスロックをした後にユーザが構図を変更して撮影をした場合でも、構図の変更があったことをユーザに明確に伝えることができる。
特開2001−28699号公報 特開2004−248229号公報
Therefore, in Patent Document 2, when the user changes the composition from the focus lock to shooting, information indicating that the composition has been changed and in-focus position information are attached to the image and recorded. There has been proposed a digital camera that displays that the composition has been changed after focus lock when played back. According to such a digital camera, even when the user changes the composition after shooting after focus lock, it is possible to clearly notify the user that the composition has been changed.
JP 2001-28699 A JP 2004-248229 A

しかしながら、特許文献2の電子カメラでは、記録される合焦位置情報は変更前の構図、つまりフォーカスロック開始時の構図における合焦位置情報であるため、変更後の構図における合焦位置の情報を正確に取得できないという問題があった。   However, in the electronic camera of Patent Document 2, since the focus position information to be recorded is the composition before the change, that is, the focus position information in the composition at the start of the focus lock, the information on the focus position in the composition after the change is obtained. There was a problem that it could not be obtained accurately.

そこで、本発明は、撮影に際して構図が変更された場合であっても、変更後の構図における正確な合焦位置の情報を取得できるようにすることを目的とする。   In view of the above, an object of the present invention is to make it possible to acquire accurate in-focus position information in a changed composition even when the composition is changed during shooting.

上記課題を解決するため、請求項1の発明にあっては、
撮影範囲における被写体像を撮影して画像データを生成する撮影手段と、
前記撮影手段により撮影される被写体像に対し合焦する合焦手段と、
前記合焦手段による合焦時において、前記合焦手段により合焦された被写体像の前記撮影範囲における位置である合焦位置の情報を取得する取得手段と、
前記撮影範囲における、前記合焦手段により合焦された被写体の位置の変化量を算出する算出手段と、
前記算出手段により算出された撮影範囲の変化量に基づき、前記取得手段により取得された合焦位置の情報を補正する補正手段と、
前記補正手段により補正された合焦位置の情報を記録手段に記録させる記録制御手段と
を備えるものとした。
In order to solve the above problems, the invention of claim 1
Photographing means for photographing a subject image in a photographing range and generating image data;
Focusing means for focusing on a subject image photographed by the photographing means;
An acquisition unit that acquires information on a focus position that is a position in the shooting range of the subject image focused by the focus unit at the time of focusing by the focus unit;
Calculating means for calculating a change amount of the position of the subject focused by the focusing means in the photographing range;
Correction means for correcting the information on the in-focus position acquired by the acquisition means based on the amount of change in the photographing range calculated by the calculation means;
And a recording control unit that causes the recording unit to record information on the in-focus position corrected by the correcting unit.

また、請求項2の発明にあっては、
加速度センサを備え、
前記算出手段は、
前記加速度センサから出力される検出信号に基づき、前記撮影範囲における前記合焦された被写体の位置の変化量を算出するものとした。
In the invention of claim 2,
With an acceleration sensor,
The calculating means includes
Based on the detection signal output from the acceleration sensor, the amount of change in the position of the focused subject in the shooting range is calculated.

また、請求項3の発明にあっては、
撮影範囲における被写体像を撮影して画像データを生成する撮影手段と、前記撮影手段により撮影される被写体像に対し合焦する合焦手段とを備えるコンピュータを、
前記撮影範囲における、前記合焦手段により合焦された被写体の位置の変化量を算出する算出手段、
前記合焦手段による合焦時において、前記合焦手段により合焦された被写体像の前記撮影範囲における位置である合焦位置の情報を取得する取得手段、
前記算出手段により算出された撮影範囲の変化量に基づき、前記取得手段により取得された合焦位置の情報を補正する補正手段、
前記補正手段により補正された合焦位置の情報を記録手段に記録させる記録制御手段、
として機能させるプログラムとした。
In the invention of claim 3,
A computer comprising photographing means for photographing a subject image in a photographing range to generate image data, and focusing means for focusing on the subject image photographed by the photographing means;
Calculating means for calculating a change amount of the position of the subject focused by the focusing means in the photographing range;
An acquisition unit that acquires information on a focus position that is a position in the shooting range of the subject image focused by the focus unit at the time of focusing by the focus unit;
Correction means for correcting the information on the in-focus position acquired by the acquisition means based on the amount of change in the photographing range calculated by the calculation means;
Recording control means for recording information on the in-focus position corrected by the correcting means on the recording means;
As a program to function as.

本発明によれば、撮影に際して構図が変更された場合であっても、変更後の構図における正確な合焦位置の情報を取得できる。   According to the present invention, even when the composition is changed at the time of shooting, it is possible to acquire accurate information on the in-focus position in the changed composition.

<デジタルカメラ1の全体構成の説明>
図1を参照して、本実施形態に係るデジタルカメラ1の全体構成を説明する。図1はデジタルカメラ1のブロック図である。デジタルカメラ1はフォーカスレンズ2、ズームレンズ3、CCD4、CDS/ADブロック5、TG(Timing Generator)6、CCDデータ前処理ブロック7、色処理(CP)ブロック8、JPEG符号化器9、DRAM10、内蔵のフラッシュメモリ11、RAM12、CPU13、表示部14、キーブロック15、カード・インターフェイス16、メモリカード17、センサ部18、シャッタ制御部19、シャッタ20、レンズ駆動部22を備えている。
<Description of Overall Configuration of Digital Camera 1>
With reference to FIG. 1, the overall configuration of a digital camera 1 according to the present embodiment will be described. FIG. 1 is a block diagram of the digital camera 1. The digital camera 1 includes a focus lens 2, a zoom lens 3, a CCD 4, a CDS / AD block 5, a TG (Timing Generator) 6, a CCD data preprocessing block 7, a color processing (CP) block 8, a JPEG encoder 9, a DRAM 10, The built-in flash memory 11, RAM 12, CPU 13, display unit 14, key block 15, card interface 16, memory card 17, sensor unit 18, shutter control unit 19, shutter 20, and lens driving unit 22 are provided.

フォーカスレンズ2及びズームレンズ3はそれぞれが図示しないレンズ群から構成されるものである。レンズ駆動部22は、フォーカスレンズ2を光軸方向に駆動する不図示のフォーカスモータ、及びズームレンズ3を光軸方向に駆動するズームモータと、CPU13から送られる制御信号に従いフォーカスモータ及びズームモータをそれぞれ駆動するモータドライバとから構成されている。   The focus lens 2 and the zoom lens 3 are each composed of a lens group (not shown). The lens driving unit 22 includes a focus motor (not shown) that drives the focus lens 2 in the optical axis direction, a zoom motor that drives the zoom lens 3 in the optical axis direction, and a focus motor and a zoom motor according to a control signal sent from the CPU 13. Each motor driver is configured to be driven.

撮像素子であるCCD4は、フォーカスレンズ2とズームレンズ3とを介して撮り込んだ被写体像を光電変換して信号電荷を蓄積し、蓄積した信号電荷を撮像信号として出力する。TG(タイミングジェネレータ)6は、CPU13から送出される制御信号に従って、所定周波数のタイミング信号を生成してCCD4を駆動する。   The CCD 4 that is an image pickup device photoelectrically converts a subject image captured through the focus lens 2 and the zoom lens 3 to accumulate signal charges, and outputs the accumulated signal charges as an image pickup signal. A TG (timing generator) 6 generates a timing signal of a predetermined frequency according to a control signal sent from the CPU 13 and drives the CCD 4.

CDS/ADブロック5は、CCD4からの出力信号をサンプリングしてノイズを除去しデジタル信号に変換する。CCDデータ前処理ブロック7は、デジタル信号に変換された撮像信号に対し輝度信号処理等のデータ処理を行う。色処理(CP)ブロック8は、輝度信号処理等が行われた画像信号に対して色分離等の色処理を行い、Y(輝度信号),Cb(青色差信号),Cr(赤色差信号)の撮影画像データを生成する。DRAM10は、色処理後のY,Cb,Crの画像データを一時的に逐次記憶する。   The CDS / AD block 5 samples the output signal from the CCD 4 to remove noise and convert it into a digital signal. The CCD data preprocessing block 7 performs data processing such as luminance signal processing on the imaging signal converted into a digital signal. The color processing (CP) block 8 performs color processing such as color separation on the image signal subjected to luminance signal processing or the like, and performs Y (luminance signal), Cb (blue difference signal), Cr (red difference signal). The captured image data is generated. The DRAM 10 temporarily and sequentially stores Y, Cb, and Cr image data after color processing.

カード・インターフェイス16には、記録媒体であるメモリカード17が着脱自在に接続されている。メモリカード17には、撮影指示に応答して、DRAM10に記憶された撮影画像データ等がに記録される。   A memory card 17 as a recording medium is detachably connected to the card interface 16. The memory card 17 records the captured image data stored in the DRAM 10 in response to the imaging instruction.

フラッシュメモリ11には、CPU13によるデジタルカメラ1の制御、すなわちAF制御、AE制御、AWB制御、フォーカスロック制御に必要なプログラムと各種データ、後述する図2に示すフローチャートに示す制御を実行するための制御プログラムやデータ等が格納されている。また、フラッシュメモリ11には画像データを記録することもできる。   In the flash memory 11, a program and various data necessary for control of the digital camera 1 by the CPU 13, that is, AF control, AE control, AWB control, focus lock control, and control shown in the flowchart shown in FIG. Control programs and data are stored. In addition, image data can be recorded in the flash memory 11.

表示部14は、不図示の液晶ディスプレイとその駆動回路とで構成されている。デジタルカメラ1が撮影待機状態にあるときには、CCD4によって撮像された被写体像をライブユー画像として液晶ディスプレイに表示する。また、表示部14は、デジタルカメラ1が撮影画像データを再生するときには、メモリカード17から読み出された撮影画像データに基づく画像を液晶ディスプレイに表示する。   The display unit 14 includes a liquid crystal display (not shown) and its drive circuit. When the digital camera 1 is in the shooting standby state, the subject image captured by the CCD 4 is displayed on the liquid crystal display as a live you image. The display unit 14 displays an image based on the captured image data read from the memory card 17 on the liquid crystal display when the digital camera 1 reproduces the captured image data.

キーブロック15は、不図示のシャッタキーやモードキー、SETキー、十字キー、撮影モード選択キー等の複数の操作キーを含み、ユーザのキー操作に応じた操作信号をCPU13へと送出する。シャッタキーは、いわゆるハーフシャッタ機能を備えたものであり、ピント合わせのための半押し操作と、撮影指示(撮影画像データの記録指示)のための全押し操作が可能な構成である。   The key block 15 includes a plurality of operation keys such as a shutter key (not shown), a mode key, a SET key, a cross key, and a shooting mode selection key, and sends an operation signal to the CPU 13 according to the user's key operation. The shutter key is provided with a so-called half shutter function, and is configured to be able to perform a half-press operation for focusing and a full-press operation for shooting instruction (shooting image data recording instruction).

CPU13は、デジタルカメラ1の全体制御を司るものである。CPU13は、フラッシュメモリ11に格納されたプログラムとの協働で、RAM12を作業用メモリとして動作する。   The CPU 13 controls the entire digital camera 1. The CPU 13 operates with the RAM 12 as a working memory in cooperation with a program stored in the flash memory 11.

センサ部18は、不図示の加速度センサ、ジャイロセンサ(角速度センサ)などを備えている。加速度センサはデジタルカメラ1の位置変化により生じる加速度を検出しており、ジャイロセンサはデジタルカメラ1の姿勢変化により生じる角速度を検出している。センサ部18は、この検出結果に応じた検出信号(加速度及び角速度に関する信号)をCPU13へと送出する。   The sensor unit 18 includes an acceleration sensor (not shown), a gyro sensor (angular velocity sensor), and the like. The acceleration sensor detects the acceleration caused by the position change of the digital camera 1, and the gyro sensor detects the angular velocity caused by the attitude change of the digital camera 1. The sensor unit 18 sends a detection signal (a signal related to acceleration and angular velocity) according to the detection result to the CPU 13.

<デジタルカメラ1の動作>
次に、以上の構成からなるデジタルカメラ1の本実施形態に係る動作を説明する。ユーザがキーブロック15に対する所定の操作により撮影モードを設定すると、CPU13は、フラッシュメモリ11から読み出してRAM12に展開したプログラムとの協働により、図2のフローチャートに示される撮影モードの処理を実行する。
<Operation of Digital Camera 1>
Next, an operation according to this embodiment of the digital camera 1 having the above configuration will be described. When the user sets a shooting mode by a predetermined operation on the key block 15, the CPU 13 executes processing of the shooting mode shown in the flowchart of FIG. 2 in cooperation with a program read from the flash memory 11 and developed in the RAM 12. .

まず、CPU13は、CCD4から順次撮り込まれDRAM10に順次蓄積された画像データを表示部14にライブビュー表示させる(ステップS1)。次に、CPU13は、シャッタキーが半押しされたか否かを判断すべく待機状態になる(ステップS2)。CPU13は、シャッタキーが半押しされたことを検知しない場合(ステップS2;NO)、ステップS1へと処理を戻し、ライブビュー画像を表示させ続ける。一方、ユーザによりシャッタキーが半押しされると、CPU13はこの半押し操作に応じた操作信号を検知することにより、シャッタキーが半押しされたと判断する(ステップS2;YES)。   First, the CPU 13 causes the display unit 14 to perform live view display of the image data sequentially captured from the CCD 4 and sequentially stored in the DRAM 10 (step S1). Next, the CPU 13 enters a standby state to determine whether or not the shutter key has been half-pressed (step S2). If the CPU 13 does not detect that the shutter key is half-pressed (step S2; NO), the CPU 13 returns the process to step S1 and continues to display the live view image. On the other hand, when the shutter key is half-pressed by the user, the CPU 13 detects that the shutter key is half-pressed by detecting an operation signal corresponding to the half-press operation (step S2; YES).

すると、CPU13は、直ちに通常のAF制御によりフォーカス調整を行う。すなわち、CPU13は、CCD4の撮影範囲内における中央領域のフォーカスエリアを対象としたピント合わせを実行するとともに、通常のAE制御(いわゆるプログラムAE制御)によりISO感度とシャッタ速度とを調整する(ステップS3)。本実施形態においては、図3(A)に示されるように、ステップS3の処理時に撮影範囲内の中央領域のフォーカスエリアFに位置する被写体像B1にピントが合わせられることとなる。   Then, the CPU 13 immediately performs focus adjustment by normal AF control. That is, the CPU 13 performs focusing on the focus area in the central area within the photographing range of the CCD 4, and adjusts ISO sensitivity and shutter speed by normal AE control (so-called program AE control) (step S3). ). In the present embodiment, as shown in FIG. 3A, the subject image B1 located in the focus area F in the central area within the shooting range is focused during the process of step S3.

次に、CPU13はフォーカスロック制御用のプログラムに従い、ステップS4においてピントを合わせた被写体像に対し通常のフォーカスロック制御を開始する(ステップS4)。ここで、フォーカスロックとは、一旦ピントを合わせると、撮影範囲(構図)が変更されてもピントを合わせる対象(被写体像)を固定し続ける動作のことをいう。本実施形態においては、図3(A)に示されるように、ステップS4の処理時に撮影範囲A1の中央に位置する被写体像B1が、ピントを合わせる対象として固定され続けることとなる。そして、CPU13は、シャッタキーの半押し操作が解除されたと判断するまで、このフォーカスロック制御を継続する。   Next, the CPU 13 starts normal focus lock control for the subject image focused in step S4 in accordance with the focus lock control program (step S4). Here, the focus lock refers to an operation that, once focused, keeps fixing the subject (subject image) to be focused even if the shooting range (composition) is changed. In the present embodiment, as shown in FIG. 3A, the subject image B1 located at the center of the shooting range A1 during the process of step S4 continues to be fixed as an object to be focused. Then, the CPU 13 continues this focus lock control until it determines that the half-press operation of the shutter key is released.

次に、CPU13は、ステップS4においてフォーカスロックされた被写体像の位置情報をフォーカスロック位置情報として取得し、このフォーカスロック位置情報をDRAM10に一時的に記憶させる(ステップS5)。本実施形態では、ユーザが最初にピントを合わせるべくカメラを移動させて、被写体像B1が撮影範囲A1の中央にあるフォーカスエリアFに位置するように構図を一旦決めてからシャッタキーを半押しする。そのため、CCD4の受光面の中心画素の座標をX0、Y0とすると、ステップS4にてフォーカスロックされる被写体像の位置の座標はX0、Y0となり、ステップS5にてこの位置情報(X0、Y0)がDRAM10に一時記憶される。   Next, the CPU 13 acquires position information of the subject image focus-locked in step S4 as focus lock position information, and temporarily stores the focus lock position information in the DRAM 10 (step S5). In the present embodiment, the user first moves the camera to focus, determines the composition so that the subject image B1 is positioned in the focus area F at the center of the shooting range A1, and then presses the shutter key halfway. . Therefore, if the coordinates of the center pixel of the light receiving surface of the CCD 4 are X0 and Y0, the coordinates of the position of the subject image that is focus-locked in step S4 are X0 and Y0, and this position information (X0, Y0) in step S5. Is temporarily stored in the DRAM 10.

しかる後、CPU13は、シャッタキーが全押しされたか否かを判断すべく待機状態になる(ステップS6)。この状態において、CPU13は、シャッタキーが全押しされたことを検知しない場合(ステップS6;NO)、センサ部18から送出される検出信号によって特定するデジタルカメラ1の位置を変化量ΔX、ΔYを、フォーカスロックされている被写体像の位置の撮影範囲内での変化量として算出する(ステップS7)。次に、CPU13は、ステップS7にて算出したフォーカスロックされた被写体像の位置の撮影範囲における変化量を用いて、DRAM10に記憶されているフォーカスロック位置情報をX0+ΔX、X0+ΔYへと補正し(ステップS8)、ステップS6へと処理を戻す。   Thereafter, the CPU 13 enters a standby state to determine whether or not the shutter key has been fully pressed (step S6). In this state, when the CPU 13 does not detect that the shutter key has been fully pressed (step S6; NO), the CPU 13 determines the change amounts ΔX and ΔY for the position of the digital camera 1 specified by the detection signal sent from the sensor unit 18. Then, it is calculated as the amount of change within the shooting range of the position of the subject image whose focus is locked (step S7). Next, the CPU 13 corrects the focus lock position information stored in the DRAM 10 to X0 + ΔX and X0 + ΔY using the amount of change in the shooting range of the position of the focus-locked subject image calculated in step S7 (step 0). S8), the process returns to step S6.

そして、CPU13は、シャッタキーが全押しされたことを検知するまで、ステップS6→ステップS7→ステップS8の各処理を繰り返す。この間、つまりユーザがシャッタキーの半押し操作を継続している間、CPU13はフォーカスロック制御を継続する。   And CPU13 repeats each process of step S6-> step S7-> step S8 until it detects that the shutter key was pressed fully. During this time, that is, while the user continues to press the shutter key halfway, the CPU 13 continues the focus lock control.

ここで、本実施形態では、フォーカスロック制御の開始後からシャッタキーが全押しされるまでの間に、ユーザがデジタルカメラ1をデジタルカメラ1の光軸に直行する面において左下方向へ移動させたため、図3(A)の撮影範囲A1(変更前の構図)が図3(B)の撮影範囲A2(変更後の構図)へと変更されている。フォーカスロックされている被写体像B1は、図3(A)の撮影範囲A1(変更前の構図)では中央に位置しているが、図3(B)の撮影範囲A2(変更後の構図)では右上に位置していることとなる。   Here, in the present embodiment, the user moves the digital camera 1 in the lower left direction on the plane orthogonal to the optical axis of the digital camera 1 from the start of the focus lock control until the shutter key is fully pressed. The shooting range A1 (composition before change) in FIG. 3A is changed to the shooting range A2 (composition after change) in FIG. 3B. The focus-locked subject image B1 is positioned at the center in the shooting range A1 (composition before change) in FIG. 3A, but in the shooting range A2 (composition after change) in FIG. 3B. It will be located in the upper right.

この構図の変更によってユーザがデジタルカメラ1を構える位置が、実空間において変化量ΔX、ΔYだけ変化している。デジタルカメラ1の位置の変化量は撮影範囲(構図)の変化量に等しくなる。構図の変更によるデジタルカメラ1の移動に伴い、センサ部18はデジタルカメラ1の加速度を検出し、検出結果に応じた検出信号をCPU13へと送出する。そして、CPU13は、センサ部18から取得した検出信号によって特定するデジタルカメラ1の位置の変化量(ΔX、ΔY)を、構図の変更に伴う被写体像B1の位置の撮影範囲内での変化量として算出する。   Due to this composition change, the position where the user holds the digital camera 1 is changed by the change amounts ΔX and ΔY in the real space. The amount of change in the position of the digital camera 1 is equal to the amount of change in the shooting range (composition). As the digital camera 1 moves due to the composition change, the sensor unit 18 detects the acceleration of the digital camera 1 and sends a detection signal corresponding to the detection result to the CPU 13. Then, the CPU 13 uses the amount of change (ΔX, ΔY) of the position of the digital camera 1 specified by the detection signal acquired from the sensor unit 18 as the amount of change in the shooting range of the position of the subject image B1 due to the composition change. calculate.

そして、ユーザによりシャッタキーが全押しされると、CPU13は、この全押し操作に応じた操作信号を検知することによりシャッタキーが全押しされたと判断する(ステップS6;YES)。すると、CPU13は、直ちにCCD4が現在撮り込んでいる被写体像信号に対し撮影処理を実行して撮影画像データを生成し、生成された撮影画像データをJPEG方式で圧縮させる(ステップS9)。   When the shutter key is fully pressed by the user, the CPU 13 determines that the shutter key is fully pressed by detecting an operation signal corresponding to the full-press operation (step S6; YES). Then, the CPU 13 immediately performs a shooting process on the subject image signal currently captured by the CCD 4 to generate shot image data, and compresses the generated shot image data by the JPEG method (step S9).

引き続き、CPU13は、撮影画像データに付帯させるヘッダデータを生成する(ステップS10)。ヘッダデータには各種撮影条件を示す情報やフォーカスロック位置情報が含まれる。このヘッダデータに含まれるフォーカスロック位置情報は、ステップS8で補正されたフォーカスロック位置情報(フォーカスロック後に構図が変更されなければ、ステップS4で取得されたフォーカスロック位置情報)である。次に、CPU13は、ヘッダデータ及びJPEG画像データから構成された画像ファイルを生成し、生成した画像ファイルをメモリカード17に記録させる(ステップS11)。   Subsequently, the CPU 13 generates header data attached to the captured image data (step S10). The header data includes information indicating various shooting conditions and focus lock position information. The focus lock position information included in the header data is the focus lock position information corrected in step S8 (the focus lock position information acquired in step S4 if the composition is not changed after focus lock). Next, the CPU 13 generates an image file composed of header data and JPEG image data, and records the generated image file on the memory card 17 (step S11).

次に、CPU13は、ユーザの所定の操作による撮影モードを終了する指示を検知すべく待機状態となる(ステップS12)。この状態において、CPUは、撮影モードを終了する指示を検知しなければ(ステップS12;NO)、ステップS1へと処理を戻す。一方、CPUは、撮影モードを終了する指示を検知すると(ステップS12;YES)、図2に示される撮影モードの処理を終了する。   Next, the CPU 13 enters a standby state to detect an instruction to end the shooting mode by a predetermined operation by the user (step S12). In this state, if the CPU does not detect an instruction to end the shooting mode (step S12; NO), the process returns to step S1. On the other hand, when detecting an instruction to end the shooting mode (step S12; YES), the CPU ends the processing of the shooting mode shown in FIG.

以上のように、本実施形態では、ユーザが図3(A)の撮影範囲A1(変更前の構図)の中央部に位置する被写体像B1に対しフォーカスロックした後、構図を変更して図3(B)の撮影範囲A2(変更後の構図)にて被写体像を撮影するものとした。このようにして撮影された撮影画像では、撮影画像の構図(変更後の構図)において右上に位置する被写体像B1にピントが合うこととなる。   As described above, in this embodiment, after the user locks the focus on the subject image B1 located at the center of the shooting range A1 (composition before change) in FIG. The subject image is shot in the shooting range A2 (composition after change) in (B). In the photographed image photographed in this way, the subject image B1 located at the upper right in the composition of the photographed image (the composition after the change) is focused.

そして、本実施形態では、CPU13がデジタルカメラ1の加速度の情報(センサ部18の検出信号)を用いて、被写体像の位置の撮影範囲内での変化量を算出し、検出した撮影範囲の変化量に基づき、ステップS4において取得したフォーカスロック位置情報(フォーカスロック開始時点のフォーカスロック位置情報)を補正するようにした。このようにすれば、フォーカスロック後にユーザが構図を変更した場合であっても、記録するフォーカスロック位置情報は、撮影画像つまり変更後の構図において実際にピントが合っている位置の情報と同じものにすることができる。   In the present embodiment, the CPU 13 uses the acceleration information of the digital camera 1 (the detection signal of the sensor unit 18) to calculate the amount of change in the shooting range of the position of the subject image, and the detected change in the shooting range. Based on the amount, the focus lock position information (focus lock position information at the start of focus lock) acquired in step S4 is corrected. In this way, even if the user changes the composition after the focus is locked, the focus lock position information to be recorded is the same as the information on the actually focused position in the shot image, that is, the composition after the change. Can be.

したがって、本実施形態によれば、フォーカスロック後に構図が変更された場合であっても、変更後の構図における正確なフォーカスロック位置情報(合焦位置情報)を取得することができる。   Therefore, according to the present embodiment, even when the composition is changed after focus lock, accurate focus lock position information (focus position information) in the changed composition can be acquired.

また、本実施形態では、加速度センサにより、構図の変更に伴う撮影範囲における被写体像の位置の変化量を取得した。このため、本実施形態では、画像データ間の輝度情報の演算等により撮影範囲内の被写体像の位置の変化量を算出する場合に比べ、複雑な画像データの演算処理が不要となり、被写体像の位置の変化量の算出処理に要するCPU13の処理負荷を軽減できる。   In the present embodiment, the acceleration sensor acquires the amount of change in the position of the subject image in the shooting range associated with the composition change. For this reason, in this embodiment, compared with the case where the amount of change in the position of the subject image within the shooting range is calculated by calculating the luminance information between the image data, complicated calculation processing of the image data becomes unnecessary. It is possible to reduce the processing load of the CPU 13 required for the position change amount calculation process.

また、本実施形態においては、ステップS8で補正したフォーカスロック位置情報は、ヘッダデータの一部として記録させることなく、画像ファイルの記録直後にフォーカスロック位置情報が示す位置を拡大表示させるためだけに用いてもよい。この場合、CPU13は、ステップS10にて生成するヘッダデータにフォーカスロック位置情報を含めることなく、ステップS11の処理の直後にDRAM10に記憶されているフォーカスロック位置情報示す位置付近の所定領域を拡大表示させることとなる。   Further, in the present embodiment, the focus lock position information corrected in step S8 is not recorded as part of the header data, but only for the enlarged display of the position indicated by the focus lock position information immediately after recording the image file. It may be used. In this case, the CPU 13 does not include the focus lock position information in the header data generated in step S10, and enlarges and displays a predetermined area near the position indicated by the focus lock position information stored in the DRAM 10 immediately after the process of step S11. Will be allowed to.

本実施形態に係る撮影装置はデジタルカメラ1であったが、カメラ付き携帯電話やカメラ付きゲーム機など、小型な電子カメラを内蔵する機器であれば、本発明を適用することができる。   The photographing apparatus according to the present embodiment is the digital camera 1, but the present invention can be applied to any device that incorporates a small electronic camera such as a camera-equipped mobile phone or a camera-equipped game machine.

本実施形態に係るデジタルカメラ1の全体構成を示すブロック図である。1 is a block diagram illustrating an overall configuration of a digital camera 1 according to the present embodiment. 撮影モード時のデジタルカメラ1の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the digital camera 1 in a shooting mode. 図3(A)は本実施形態におけるフォーカスロック時の構図(変更前の構図)を示す図である。図3(B)は本実施形態における撮影時の構図(変更後の構図)を示す図である。FIG. 3A is a diagram showing a composition at the time of focus lock (composition before change) in the present embodiment. FIG. 3B is a diagram showing a composition at the time of photographing (composition after change) in the present embodiment.

符号の説明Explanation of symbols

1 デジタルカメラ
2 フォーカスレンズ
3 ズームレンズ
4 CCD
5 CDS/ADブロック
6 TG(Timing Generator)
7 前処理ブロック
8 色処理(CP)ブロック
9 JPEG符号化器
10 DRAM
11 フラッシュメモリ
12 RAM
13 CPU
14 表示部
15 キーブロック
16 カード・インターフェイス
17 メモリカード
18 センサ部
22 レンズ駆動部
1 Digital Camera 2 Focus Lens 3 Zoom Lens 4 CCD
5 CDS / AD block 6 TG (Timing Generator)
7 Pre-processing block 8 Color processing (CP) block 9 JPEG encoder 10 DRAM
11 Flash memory 12 RAM
13 CPU
14 Display Unit 15 Key Block 16 Card Interface 17 Memory Card 18 Sensor Unit 22 Lens Drive Unit

Claims (3)

撮影範囲における被写体像を撮影して画像データを生成する撮影手段と、
前記撮影手段により撮影される被写体像に対し合焦する合焦手段と、
前記合焦手段による合焦時において、前記合焦手段により合焦された被写体像の前記撮影範囲における位置である合焦位置の情報を取得する取得手段と、
前記撮影範囲における、前記合焦手段により合焦された被写体の位置の変化量を算出する算出手段と、
前記算出手段により算出された撮影範囲の変化量に基づき、前記取得手段により取得された合焦位置の情報を補正する補正手段と、
前記補正手段により補正された合焦位置の情報を記録手段に記録させる記録制御手段と
を備える撮影装置。
Photographing means for photographing a subject image in a photographing range and generating image data;
Focusing means for focusing on a subject image photographed by the photographing means;
An acquisition unit that acquires information on a focus position that is a position in the shooting range of the subject image focused by the focus unit at the time of focusing by the focus unit;
Calculating means for calculating a change amount of the position of the subject focused by the focusing means in the photographing range;
Correction means for correcting the information on the in-focus position acquired by the acquisition means based on the amount of change in the photographing range calculated by the calculation means;
An imaging apparatus comprising: a recording control unit that causes the recording unit to record information on the in-focus position corrected by the correcting unit.
加速度センサを備え、
前記算出手段は、
前記加速度センサから出力される検出信号に基づき、前記撮影範囲における前記合焦された被写体の位置の変化量を算出する
請求項1記載の撮影装置。
With an acceleration sensor,
The calculating means includes
The imaging apparatus according to claim 1, wherein a change amount of the position of the focused subject in the imaging range is calculated based on a detection signal output from the acceleration sensor.
撮影範囲における被写体像を撮影して画像データを生成する撮影手段と、前記撮影手段により撮影される被写体像に対し合焦する合焦手段とを備えるコンピュータを、
前記撮影範囲における、前記合焦手段により合焦された被写体の位置の変化量を算出する算出手段、
前記合焦手段による合焦時において、前記合焦手段により合焦された被写体像の前記撮影範囲における位置である合焦位置の情報を取得する取得手段、
前記算出手段により算出された撮影範囲の変化量に基づき、前記取得手段により取得された合焦位置の情報を補正する補正手段、
前記補正手段により補正された合焦位置の情報を記録手段に記録させる記録制御手段、
として機能させるプログラム。
A computer comprising photographing means for photographing a subject image in a photographing range to generate image data, and focusing means for focusing on the subject image photographed by the photographing means;
Calculating means for calculating a change amount of the position of the subject focused by the focusing means in the photographing range;
An acquisition unit that acquires information on a focus position that is a position in the shooting range of the subject image focused by the focus unit at the time of focusing by the focus unit;
Correction means for correcting the information on the in-focus position acquired by the acquisition means based on the amount of change in the photographing range calculated by the calculation means;
Recording control means for recording information on the in-focus position corrected by the correcting means on the recording means;
Program to function as.
JP2008211539A 2008-08-20 2008-08-20 Photographing device and program Pending JP2010050603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008211539A JP2010050603A (en) 2008-08-20 2008-08-20 Photographing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008211539A JP2010050603A (en) 2008-08-20 2008-08-20 Photographing device and program

Publications (2)

Publication Number Publication Date
JP2010050603A true JP2010050603A (en) 2010-03-04
JP2010050603A5 JP2010050603A5 (en) 2011-09-29

Family

ID=42067357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008211539A Pending JP2010050603A (en) 2008-08-20 2008-08-20 Photographing device and program

Country Status (1)

Country Link
JP (1) JP2010050603A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9729775B2 (en) 2014-12-26 2017-08-08 Xiaomi Inc. Auto-focusing method and auto-focusing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000330184A (en) * 1999-05-20 2000-11-30 Olympus Optical Co Ltd Display device for camera
JP2007336228A (en) * 2006-06-14 2007-12-27 Canon Inc IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000330184A (en) * 1999-05-20 2000-11-30 Olympus Optical Co Ltd Display device for camera
JP2007336228A (en) * 2006-06-14 2007-12-27 Canon Inc IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9729775B2 (en) 2014-12-26 2017-08-08 Xiaomi Inc. Auto-focusing method and auto-focusing device

Similar Documents

Publication Publication Date Title
JP4999268B2 (en) Electronic camera and program
JP5054583B2 (en) Imaging device
CN101582989B (en) Image capture apparatus
US8593531B2 (en) Imaging device, image processing method, and computer program
TWI459126B (en) Image processing device, image processing method and recording medium capable of generating wide-angle image
JP2009246468A (en) Photographing device and control method of photographing device
TWI492618B (en) Image pickup device and computer readable recording medium
US10298862B2 (en) Imaging apparatus and imaging method
JP4657960B2 (en) Imaging method and apparatus
JP5092673B2 (en) Imaging apparatus and program thereof
WO2010035752A1 (en) Image generation device, imaging device, image reproduction device, and image reproduction program
JP2010193324A (en) Camera apparatus, photographing method thereof and program
JP2008263478A (en) Imaging device
JP4792929B2 (en) Digital camera
CN102480597B (en) Imaging device and imaging method
US8340431B2 (en) Automatic photographing method with face recognition
JP2004145022A (en) Digital camera
JP5962974B2 (en) Imaging apparatus, imaging method, and program
JP2010050603A (en) Photographing device and program
JP4758379B2 (en) Imaging device
JP4962597B2 (en) Electronic camera and program
JP2006287814A (en) Imaging apparatus and method of determining motion vector
JP2006253887A (en) Imaging apparatus
JP5613145B2 (en) Imaging apparatus and program
JP2003315665A (en) camera

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110809

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120809

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120904

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130122