JP2012060213A - Imaging apparatus and control method of the same - Google Patents

Imaging apparatus and control method of the same Download PDF

Info

Publication number
JP2012060213A
JP2012060213A JP2010198754A JP2010198754A JP2012060213A JP 2012060213 A JP2012060213 A JP 2012060213A JP 2010198754 A JP2010198754 A JP 2010198754A JP 2010198754 A JP2010198754 A JP 2010198754A JP 2012060213 A JP2012060213 A JP 2012060213A
Authority
JP
Japan
Prior art keywords
subject
image
imaging
mode
unit
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.)
Granted
Application number
JP2010198754A
Other languages
Japanese (ja)
Other versions
JP5777309B2 (en
Inventor
Koji Sudo
幸司 須藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2010198754A priority Critical patent/JP5777309B2/en
Publication of JP2012060213A publication Critical patent/JP2012060213A/en
Application granted granted Critical
Publication of JP5777309B2 publication Critical patent/JP5777309B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve user friendliness by enabling simple and effective setting in diorama-like photography.SOLUTION: A photographing person sets to an imaging apparatus a height difference between a subject and the imaging apparatus (S504). Control means calculates a focal distance with respect to the designated height difference on the basis of information on the focal distance of an imaging optical system corresponding to the height difference (S505). In accordance with the calculated focal distance, optical zoom or digital zoom is controlled (S506) and when a subject region is determined after selection of the subject (S509), a predetermined area to be defocused is automatically set(S510).

Description

本発明は、ジオラマ風の画像効果による撮影機能を有する撮像装置及びその制御方法に関する。   The present invention relates to an imaging apparatus having a photographing function based on a diorama-like image effect and a control method thereof.

近年、デジタルカメラにおいて、これまで特殊なレンズやフィルム、現像処理で行っていた映像表現をデジタル処理で実現することが望まれている。この映像表現のための画像効果は、単純にデジタル画像処理を施せば得られるわけではなく、画角や被写体との角度、露出設定等の撮影パラメータを被写体に関して最適に設定しないと所望の効果が得られないという問題があった。
例えば、従来アオリレンズを使用して、逆アオリを行うことでピント位置を画面の水平または垂直方向における一部のみに合わせ、他の部分をぼかすことによって、実在する風景が玩具のように撮影できる、ジオラマ風の撮影手法が知られている。この画像効果をデジタル画像処理によって行う撮影モードが提案されている(特許文献1参照)。また、ズーム制御により主被写体像の大きさを一定に保つ方法として、光学ズームとデジタルズームを利用して、主被写体像の大きさを維持して背景のボケ量を制御する方法が開示されている(特許文献2参照)。
In recent years, in digital cameras, it has been desired to digitally realize image expression that has been performed by special lenses, films, and development processing. This image effect for video expression cannot be obtained by simply performing digital image processing. If shooting parameters such as the angle of view, the angle with the subject, and the exposure setting are not optimally set for the subject, the desired effect is obtained. There was a problem that it could not be obtained.
For example, by using a conventional tilt lens and performing a reverse tilt, the focus position is adjusted to only one part in the horizontal or vertical direction of the screen, and the other part is blurred, so that a real landscape can be photographed like a toy. A diorama-like shooting technique is known. A photographing mode in which this image effect is performed by digital image processing has been proposed (see Patent Document 1). Further, as a method of keeping the size of the main subject image constant by zoom control, a method of controlling the amount of background blur while maintaining the size of the main subject image using optical zoom and digital zoom is disclosed. (See Patent Document 2).

特許第3910120号公報Japanese Patent No. 3910120 特開2008−22386号公報JP 2008-22386 A

従来の装置では、デジタル画像処理で所望のボケ量を指定することは可能であるが、画角や、カメラと被写体との距離及び高低差を効果的に設定することが難しいという問題があった。
本発明は上記従来の課題に鑑みてなされたものであり、ジオラマ風の撮影を行う際に、簡便で効果的な設定を可能とし、使い勝手を向上させることを目的とする。
In the conventional apparatus, it is possible to specify a desired blur amount by digital image processing, but there is a problem that it is difficult to effectively set the angle of view, the distance between the camera and the subject, and the height difference. .
The present invention has been made in view of the above-described conventional problems, and it is an object of the present invention to enable simple and effective settings and improve usability when performing diorama-like shooting.

上記課題を解決するために本発明に係る装置は、被写体を撮像して画像データを出力する撮像手段と、前記撮像手段より出力される画像データにジオラマ風の画像効果を施す画像処理手段と、を有する撮像装置であって、前記撮像装置と前記被写体との間の高低差を指定する指定手段と、前記指定手段によって指定される高低差に基づいて前記撮像手段の焦点距離の情報を取得する取得手段と、前記取得手段によって取得される前記焦点距離に従ってズーム制御を行う制御手段と、を備える。   In order to solve the above problems, an apparatus according to the present invention includes an imaging unit that images a subject and outputs image data, an image processing unit that applies a diorama-like image effect to the image data output from the imaging unit, An imaging device having a designating means for designating a height difference between the imaging device and the subject, and acquiring information on a focal length of the imaging means based on the height difference designated by the designating means. Acquisition means, and control means for performing zoom control according to the focal length acquired by the acquisition means.

本発明によれば、ジオラマ風の画像効果を適用した撮影を行う際、簡便で効果的な設定が可能となり、使い勝手が向上する。   According to the present invention, it is possible to perform simple and effective settings when shooting with application of a diorama-like image effect, and usability is improved.

本発明の一実施形態に係る撮像装置としてのデジタルカメラを示す外観図である。1 is an external view showing a digital camera as an imaging apparatus according to an embodiment of the present invention. デジタルカメラの構成例を示すブロック図である。It is a block diagram which shows the structural example of a digital camera. デジタルカメラの全体的な動作例を示すフローチャートである。It is a flowchart which shows the example of whole operation | movement of a digital camera. 静止画記録モードにおける処理例を示すフローチャートである。It is a flowchart which shows the example of a process in still image recording mode. ジオラマ風モードにおける処理例を示すフローチャートである。It is a flowchart which shows the process example in a diorama style mode. ジオラマ風モードにて表示される画面例を示す図である。It is a figure which shows the example of a screen displayed in a diorama style mode. カメラから被写体までの距離D及びカメラのアオリ角度θから、被写***置を基準した撮影場所の高さHを算出する方法の説明図である。It is explanatory drawing of the method of calculating the height H of the imaging location on the basis of the subject position from the distance D from the camera to the subject and the tilt angle θ of the camera.

以下、添付図面を参照して本発明の実施形態に係る撮像装置及びその制御方法について説明する。尚、以下の実施形態では、ジオラマ風の画像効果を適用して被写体を撮影可能なデジタルカメラに適用した例として説明する。   Hereinafter, an imaging device and a control method thereof according to an embodiment of the present invention will be described with reference to the accompanying drawings. In the following embodiment, an example will be described in which the present invention is applied to a digital camera capable of photographing a subject by applying a diorama-like image effect.

図1はデジタルカメラ100の外観を例示する斜視図である。カメラ本体の背面にある画像表示部28は、画像や各種情報を表示する。カメラ本体の上面に配置した電源スイッチ72は、撮影者が電源のオン/オフを切り替える際に使用する。その横には撮影時に使用するシャッタボタン61が位置する。カメラ本体の背面にあるモード切替スイッチ60は、撮影者がデジタルカメラ100における各種モードを切り替える際に使用する。具体的には、静止画記録モード、動画記録モード、再生モード等のモード切り替えが可能である。これらのボタンやスイッチは操作部70を構成しており、撮影者から各種の操作指示を受け付ける。操作部70は各種ボタンに限らず、画像表示部28の画面上に設けられたタッチパネル等の操作デバイスも含む。各種ボタンの具体例としては、消去ボタン、メニューボタン、SETボタン、セルフタイマーボタン、十字配置の4方向ボタン(上下及び左右の各ボタン)、ホイール73等がある。
接続ケーブル111は、デジタルカメラ100と不図示の外部機器を接続する。コネクタ112を介して接続ケーブル111とデジタルカメラ100が接続される。記録媒体200にはメモリカードやハードディスク等が使用され、記録媒体スロット201は記録媒体200を格納する。記録媒体スロット201に格納された記録媒体200はデジタルカメラ100と通信可能になる。撮影者は記録媒体200を記録媒体スロット201に収容した後、蓋202を閉じる。
FIG. 1 is a perspective view illustrating the appearance of the digital camera 100. An image display unit 28 on the back of the camera body displays images and various information. The power switch 72 disposed on the upper surface of the camera body is used when the photographer switches the power on / off. Next to that, a shutter button 61 used for shooting is located. A mode switch 60 on the back of the camera body is used when the photographer switches various modes in the digital camera 100. Specifically, mode switching such as a still image recording mode, a moving image recording mode, and a reproduction mode is possible. These buttons and switches constitute an operation unit 70 and accept various operation instructions from the photographer. The operation unit 70 includes not only various buttons but also an operation device such as a touch panel provided on the screen of the image display unit 28. Specific examples of the various buttons include an erase button, a menu button, a SET button, a self-timer button, a cross-shaped four-direction button (up / down and left / right buttons), a wheel 73, and the like.
The connection cable 111 connects the digital camera 100 to an external device (not shown). The connection cable 111 and the digital camera 100 are connected via the connector 112. A memory card, a hard disk, or the like is used as the recording medium 200, and the recording medium slot 201 stores the recording medium 200. The recording medium 200 stored in the recording medium slot 201 can communicate with the digital camera 100. The photographer closes the lid 202 after accommodating the recording medium 200 in the recording medium slot 201.

図2はデジタルカメラ100の構成例を示すブロック図である。
撮像光学系は、撮影レンズ103と、絞り機能を備えるシャッタ101を含む。レンズバリア102は撮像光学系を覆うことにより汚れや破損を防止する。撮像部22は光学像を電気信号に変換するCCD(電荷結合素子)やCMOS(相補型金属酸化膜半導体)素子等を用いて構成される。
A/D変換器23は撮像部22が出力するアナログ信号をデジタル信号に変換し、また音声制御部11が出力するアナログ信号をデジタル信号に変換する。タイミング信号発生部12は撮像部22、音声制御部11、A/D変換器23、D/A変換器13にクロック信号や制御信号を供給する。タイミング信号発生部12は、メモリ制御部15及びシステム制御部50により制御される。画像処理部24は、A/D変換器23からのデータ、又はメモリ制御部15からのデータに対し所定の画素補間や、縮小等のリサイズ処理、色変換処理を行う。また画像処理部24は、撮像した画像データを用いて所定の演算処理を行い、その演算結果に基づいてシステム制御部50が露光制御、焦点状態検出制御を行う。これにより、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理が行われる。画像処理部24は更に、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行う。そして、画像処理部24はジオラマ風の画像効果を得るモードの選択時に、撮像される画像の所定領域にぼかし処理を施す。具体的には、画像処理部24は所定領域にローパスフィルタをかけてぼかす。また、この方法に限らず、一度縮小処理をかけた画像を再び元の画像サイズにリサイズすることで高周波成分を減らすぼかし処理を施した画像を、所定領域について元の画像と合成し、または置き換える方法が挙げられる。
FIG. 2 is a block diagram illustrating a configuration example of the digital camera 100.
The imaging optical system includes a photographing lens 103 and a shutter 101 having a diaphragm function. The lens barrier 102 prevents dirt and damage by covering the imaging optical system. The imaging unit 22 is configured using a CCD (Charge Coupled Device), a CMOS (Complementary Metal Oxide Semiconductor) device or the like that converts an optical image into an electrical signal.
The A / D converter 23 converts the analog signal output from the imaging unit 22 into a digital signal, and converts the analog signal output from the audio control unit 11 into a digital signal. The timing signal generation unit 12 supplies a clock signal and a control signal to the imaging unit 22, the audio control unit 11, the A / D converter 23, and the D / A converter 13. The timing signal generator 12 is controlled by the memory controller 15 and the system controller 50. The image processing unit 24 performs predetermined pixel interpolation, resizing processing such as reduction, and color conversion processing on the data from the A / D converter 23 or the data from the memory control unit 15. The image processing unit 24 performs predetermined calculation processing using the captured image data, and the system control unit 50 performs exposure control and focus state detection control based on the calculation result. Thereby, AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash pre-emission) processing of the TTL (through-the-lens) method are performed. The image processing unit 24 further performs predetermined calculation processing using the captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained calculation result. Then, the image processing unit 24 performs a blurring process on a predetermined area of the image to be captured when a mode for obtaining a diorama-like image effect is selected. Specifically, the image processing unit 24 applies a low-pass filter to a predetermined area to blur. In addition to this method, an image that has been subjected to blurring processing that reduces high-frequency components by resizing the image once reduced to the original image size is combined with or replaced with the original image for a predetermined area. A method is mentioned.

A/D変換器23の出力データは、画像処理部24及びメモリ制御部15を介して、或いはメモリ制御部15を直接介して、メモリ32に書き込まれる。メモリ32は、A/D変換器23がデジタルデータに変換した、撮像部22による画像データや、画像表示部28に画像を表示するための画像データを記憶する。尚、メモリ32は、マイクロホン10を用いて録音した音声データや、静止画像、動画像、および画像ファイルを構成するファイルヘッダの格納にも使用される。メモリ32は、所定枚数の静止画像や所定時間の動画像および音声のデータの格納に十分な記憶容量をもつ。
圧縮/伸張部16は、適応離散コサイン変換(ADCT)等により画像データを圧縮し、また圧縮されたデータを伸張する。圧縮/伸張部16は、シャッタ101の動作をトリガにしてメモリ32に格納された撮影画像データを読み込んで圧縮処理を行い、処理後のデータをメモリ32に書き込む。また圧縮/伸張部16は、記録媒体200の記録部19等からメモリ32に読み込まれた圧縮画像データに対して伸張処理を行い、処理後のデータをメモリ32に書き込む。圧縮/伸張部16によりメモリ32に書き込まれた画像データは、システム制御部50のファイル管理部にてファイル化され、I/F(インターフェース)部18を介して記録媒体200に記録される。また、メモリ32は画像表示用のビデオメモリを兼ねている。D/A変換器13は、メモリ32に格納されている画像表示用データをメモリ制御部15から受信すると、アナログ信号に変換して画像表示部28に出力する。画像表示部28はLCD等の表示器に、D/A変換器13からのアナログ信号に応じて画像を表示する。
The output data of the A / D converter 23 is written into the memory 32 via the image processing unit 24 and the memory control unit 15 or directly via the memory control unit 15. The memory 32 stores image data obtained by the imaging unit 22 and image data for displaying an image on the image display unit 28, converted into digital data by the A / D converter 23. Note that the memory 32 is also used to store audio data recorded using the microphone 10, a still image, a moving image, and a file header constituting an image file. The memory 32 has a storage capacity sufficient to store a predetermined number of still images, a moving image and audio data for a predetermined time.
The compression / decompression unit 16 compresses image data by adaptive discrete cosine transform (ADCT) or the like, and decompresses the compressed data. The compression / decompression unit 16 reads the captured image data stored in the memory 32 using the operation of the shutter 101 as a trigger, performs compression processing, and writes the processed data in the memory 32. The compression / decompression unit 16 performs decompression processing on the compressed image data read into the memory 32 from the recording unit 19 or the like of the recording medium 200 and writes the processed data into the memory 32. The image data written in the memory 32 by the compression / decompression unit 16 is converted into a file by the file management unit of the system control unit 50 and recorded on the recording medium 200 via the I / F (interface) unit 18. The memory 32 also serves as a video memory for image display. When the D / A converter 13 receives the image display data stored in the memory 32 from the memory control unit 15, the D / A converter 13 converts it into an analog signal and outputs it to the image display unit 28. The image display unit 28 displays an image on a display such as an LCD according to the analog signal from the D / A converter 13.

マイクロホン10が出力する音声信号は、アンプ等で構成される音声制御部11を介してA/D変換器23に供給されてデジタル信号に変換された後、メモリ制御部15によってメモリ32に格納される。一方、記録媒体200に記録されている音声データはメモリ32に読み込まれた後、D/A変換器13でアナログ信号に変換される。音声制御部11は、このアナログ信号を受けてスピーカ39を駆動し、音声を出力する。
不揮発性メモリ56は電気的に消去及び記録可能なメモリであり、例えばEEPROM等が用いられ、システム制御部50の動作用の定数、プログラム等を記憶する。ここでいうプログラムとは、本実施形態にて後述する各種フローチャートに従って処理を実行するためのプログラムのことである。
The audio signal output from the microphone 10 is supplied to the A / D converter 23 via the audio control unit 11 configured by an amplifier or the like, converted into a digital signal, and then stored in the memory 32 by the memory control unit 15. The On the other hand, the audio data recorded on the recording medium 200 is read into the memory 32 and then converted into an analog signal by the D / A converter 13. The sound control unit 11 receives the analog signal, drives the speaker 39, and outputs sound.
The nonvolatile memory 56 is an electrically erasable and recordable memory. For example, an EEPROM or the like is used and stores constants and programs for operating the system control unit 50. The program here is a program for executing processing according to various flowcharts described later in the present embodiment.

システム制御部50はデジタルカメラ100全体を制御し、不揮発性メモリ56に記憶されたプログラムを実行することで、後述の各処理を実現する。システムメモリ52にはRAM(Random Access Memory)が使用され、システム制御部50の動作用の定数及び変数、不揮発性メモリ56から読み出したプログラム等が展開されて記憶される。
モード切替スイッチ60、第1シャッタスイッチ62、第2シャッタスイッチ64、操作部70は、システム制御部50に各種の動作指示を入力するための操作手段である。モード切替スイッチ60は各種モードの切替信号をシステム制御部50に送出する。第1シャッタスイッチ62と第2シャッタスイッチ64は、シャッタボタン61によって操作される。第1シャッタスイッチ62は、シャッタボタン61の操作途中(半押し)でオン状態となり、第1シャッタスイッチ信号(SW1と記す)を発生させる。システム制御部50はSW1を受けて、AF処理、AE処理、AWB処理、EF処理等の動作を開始させる。第2シャッタスイッチ64は、シャッタボタン61の操作完了(全押し)でオン状態となり、第2シャッタスイッチ信号(SW2と記す)を発生させる。システム制御部50はSW2を受けて、撮像部22から信号を読み出して、記録媒体200に画像データを書き込むまでの一連の撮影処理を開始させる。
The system control unit 50 controls the entire digital camera 100 and executes programs stored in the non-volatile memory 56 to realize each process described later. A random access memory (RAM) is used as the system memory 52, and constants and variables for operation of the system control unit 50, programs read from the nonvolatile memory 56, and the like are expanded and stored.
The mode change switch 60, the first shutter switch 62, the second shutter switch 64, and the operation unit 70 are operation means for inputting various operation instructions to the system control unit 50. The mode switch 60 sends various mode switching signals to the system control unit 50. The first shutter switch 62 and the second shutter switch 64 are operated by the shutter button 61. The first shutter switch 62 is turned on while the shutter button 61 is being operated (half-pressed), and generates a first shutter switch signal (denoted as SW1). Upon receiving SW1, the system control unit 50 starts operations such as AF processing, AE processing, AWB processing, and EF processing. The second shutter switch 64 is turned on when the operation of the shutter button 61 is completed (fully pressed), and generates a second shutter switch signal (denoted as SW2). Upon receiving SW2, the system control unit 50 reads a signal from the imaging unit 22, and starts a series of imaging processes from writing image data to the recording medium 200.

操作部70を構成する操作部材は、後述のように撮像装置と被写体との間の高低差を指定する際などに使用する。また操作部70は、画像表示部28に表示される種々の機能アイコンを選択操作するための各種機能ボタンを有する。撮影者は画像表示部28の表示画面を見ながら各種の設定操作を行うことができる。
電源スイッチ72は電源の投入と遮断操作に使用する。電源制御部80は電池の装着の有無、電池の種類、電池残量を検出し、その検出結果及びシステム制御部50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間に亘って、記録媒体200を含む各部へ供給する。電源部30には一次電池や二次電池、ACアダプター等が使用され、コネクタ33及び34で電源制御部80に接続される。
The operation member constituting the operation unit 70 is used when designating a height difference between the imaging device and the subject as described later. The operation unit 70 has various function buttons for selecting and operating various function icons displayed on the image display unit 28. The photographer can perform various setting operations while looking at the display screen of the image display unit 28.
The power switch 72 is used for turning on and off the power. The power supply control unit 80 detects the presence / absence of a battery, the type of battery, the remaining battery level, controls the DC-DC converter based on the detection result and the instruction of the system control unit 50, and supplies the necessary voltage for a necessary period And supplied to each part including the recording medium 200. A primary battery, a secondary battery, an AC adapter, or the like is used for the power supply unit 30 and is connected to the power supply control unit 80 by connectors 33 and 34.

RTC(Real Time Clock )40は、日付及び時刻を計時する。RTC40は、電源制御部80とは別に内部に電源部を有し、電源部30からの電源供給が停止した状態でも計時動作を続ける。システム制御部50は起動時にRTC40より取得した日時情報を用いてシステムタイマを設定し、タイマ制御を実行する。
I/F部18はメモリカードやハードディスク等の記録媒体200と接続処理を行い、コネクタ35,36を介して記録媒体200のI/F部37と接続される。記録媒体着脱検知部96はコネクタ35に記録媒体200が装着されているか否かを検知して、検知結果をシステム制御部50に通知する。記録媒体200は、半導体メモリや磁気ディスク等から構成される記録部19、I/F部37、記録媒体200とデジタルカメラ100とを接続するコネクタ36を備える。
通信部110はコネクタ112(無線通信の場合はアンテナ)を介してデジタルカメラ100を他の機器と接続する。
An RTC (Real Time Clock) 40 measures the date and time. The RTC 40 has a power supply unit in addition to the power supply control unit 80, and keeps counting even when the power supply from the power supply unit 30 is stopped. The system control unit 50 sets a system timer using the date / time information acquired from the RTC 40 at the time of activation, and executes timer control.
The I / F unit 18 performs a connection process with the recording medium 200 such as a memory card or a hard disk, and is connected to the I / F unit 37 of the recording medium 200 via the connectors 35 and 36. The recording medium attachment / detachment detection unit 96 detects whether or not the recording medium 200 is attached to the connector 35 and notifies the system control unit 50 of the detection result. The recording medium 200 includes a recording unit 19, an I / F unit 37 including a semiconductor memory or a magnetic disk, and a connector 36 that connects the recording medium 200 and the digital camera 100.
The communication unit 110 connects the digital camera 100 to other devices via a connector 112 (an antenna in the case of wireless communication).

図3は、デジタルカメラ100の全体的な動作を説明するフローチャートである。
電源スイッチ72が操作され電源がオンに切り替わると、S301の初期設定が行われる。システム制御部50はフラグや制御変数等の値を初期化する。S302にて、記録媒体200に記録されているファイルの管理処理が開始する。
S303、S305、S307において、システム制御部50は、モード切替スイッチ60の設定位置を判断することにより、モードを判別する。S303は静止画記録モードか否かの判定処理であり、現在のモードが静止画記録モードに設定されていれば、S304へ進み、システム制御部50は静止画記録モード処理を実行する。静止画記録モード処理の詳細は図4を用いて後述する。現在のモードが静止画記録モードに設定されていない場合、S305に進む。ここでシステム制御部50は、現在のモードが動画記録モードに設定されているか否かを判定し、動画記録モードに設定されていれば、S306へ進み、動画記録モード処理を実行する。また、現在のモードが動画記録モードに設定されていない場合、S307に進む。ここでシステム制御部50は、現在のモードが再生モードに設定されているか否かを判定する。再生モードに設定されていた場合、S308へ進み、システム制御部50は再生モード処理を実行する。再生モード以外のその他のモードに設定されていた場合、処理はS309へ進み、システム制御部50は選択されたモードに応じた処理を実行する。その他のモードとしては、例えば記録媒体200に格納されたデータを読み出して送信する送信モードや、外部機器からデータを受信して記録媒体200に格納する受信モード等が挙げられる。
FIG. 3 is a flowchart for explaining the overall operation of the digital camera 100.
When the power switch 72 is operated to turn on the power, the initial setting in S301 is performed. The system control unit 50 initializes values such as flags and control variables. In S302, management processing of files recorded on the recording medium 200 is started.
In S303, S305, and S307, the system control unit 50 determines the mode by determining the set position of the mode switch 60. S303 is a process for determining whether or not the still image recording mode is set. If the current mode is set to the still image recording mode, the process proceeds to S304, and the system control unit 50 executes the still image recording mode process. Details of the still image recording mode process will be described later with reference to FIG. If the current mode is not set to the still image recording mode, the process proceeds to S305. Here, the system control unit 50 determines whether or not the current mode is set to the moving image recording mode. If the current mode is set to the moving image recording mode, the system control unit 50 proceeds to S306 and executes the moving image recording mode process. If the current mode is not set to the moving image recording mode, the process proceeds to S307. Here, the system control unit 50 determines whether or not the current mode is set to the reproduction mode. If the playback mode is set, the process proceeds to S308, and the system control unit 50 executes the playback mode process. If another mode other than the playback mode is set, the process proceeds to S309, and the system control unit 50 executes a process according to the selected mode. Examples of other modes include a transmission mode in which data stored in the recording medium 200 is read and transmitted, and a reception mode in which data is received from an external device and stored in the recording medium 200.

S304、S306、S308、S309の後、S310へ進み、システム制御部50は電源スイッチ72の設定位置を判断する。電源スイッチ72が電源オンの位置に設定されていれば、S303に戻る。一方、電源スイッチ72が電源オフの位置に設定されていれば、S311へ進み、システム制御部50は終了処理を行う。システム制御部50は画像表示部28の表示を終了状態に変更し、レンズバリア102を閉じて撮像部22を保護し、フラグ、制御変数等を含むパラメータや設定値、設定モードのデータを不揮発性メモリ56に記録し、電源供給が不要な部分への電源供給を遮断する。S311の終了処理が完了すると、前記一連の処理が終了し、電源のオフ状態へ移行する。   After S304, S306, S308, and S309, the process proceeds to S310, and the system control unit 50 determines the set position of the power switch 72. If the power switch 72 is set to the power-on position, the process returns to S303. On the other hand, if the power switch 72 is set to the power-off position, the process proceeds to S311 and the system control unit 50 performs a termination process. The system control unit 50 changes the display of the image display unit 28 to the end state, closes the lens barrier 102 to protect the imaging unit 22, and stores parameters, setting values, and setting mode data including flags and control variables in a nonvolatile manner. The data is recorded in the memory 56, and the power supply to a portion where the power supply is unnecessary is cut off. When the termination process in S311 is completed, the series of processes is terminated, and the power supply is turned off.

次に、静止画記録モード処理(S304)について説明する。
図4は図3のS304における静止画記録モード処理を例示するフローチャートである。尚、この静止画記録モード処理は、モード切替スイッチ60の操作により他のモードへの切替が行われた場合や電源スイッチ72がOFF状態にセットされた場合、割り込み処理等により終了するものとする。
システム制御部50は静止画記録モードを開始すると、S401において撮影モードを確定する。撮影モードの確定は、以下の(1)又は(2)によって行われる。
(1)不揮発性メモリ56より前回の静止画記録モード終了時における撮影モードの情報をシステム制御部50が取得してシステムメモリ52に格納すること。
(2)撮影者が操作部70を操作することで撮影モードの設定入力があった場合に、その設定入力された撮影モードの情報をシステム制御部50がシステムメモリ52に格納すること。
Next, the still image recording mode process (S304) will be described.
FIG. 4 is a flowchart illustrating still image recording mode processing in S304 of FIG. This still image recording mode process is terminated by an interrupt process or the like when the mode is switched to another mode by operating the mode switch 60 or when the power switch 72 is set to the OFF state. .
When starting the still image recording mode, the system control unit 50 determines the shooting mode in S401. The shooting mode is determined by the following (1) or (2).
(1) The system control unit 50 acquires information on the shooting mode at the end of the previous still image recording mode from the nonvolatile memory 56 and stores it in the system memory 52.
(2) When the photographer inputs the setting of the shooting mode by operating the operation unit 70, the system control unit 50 stores the shooting mode information input by the setting in the system memory 52.

ここで、撮影モードとは撮影シーンに適したシャッタ速度や絞り値、ストロボ発光状態、感度設定等を組み合わせて実現されるモードのことである。デジタルカメラ100は、以下の撮影モードを有する。
・オートモード:カメラの各種パラメータを、計測された露出値に基づいてデジタルカメラ100に組み込まれたプログラムにより自動的に決定するモード。
・マニュアルモード:カメラの各種パラメータを撮影者が自由に変更可能なモード。
・シーンモード:撮影シーンに適したシャッタ速度や絞り値、ストロボ発光状態、感度設定等の組み合わせを自動で設定するモード。
尚、シーンモードには以下のモードが含まれる。
・ポートレートモード:背景をぼかして人物を浮き立たせる画像効果を得る、人物撮影に特化したモード。
・夜景モード:人物にストロボ光をあて背景を遅いシャッタ速度で記録する、夜景の撮影に特化したモード。
・風景モード:広がりのある風景の撮影に特化したモード。
・ナイト&スナップモード:三脚なしで夜景と人物をきれいに撮るのに適したモード。
・キッズ&ペットモード:よく動き回る子供やペットを、シャッタチャンスを逃さず撮影するモード。
・新緑&紅葉モード:新緑等の木々や葉を色鮮やかに撮影するのに適したモード。
・パーティーモード:蛍光灯や電球のもとで、手振れを抑えて被写体に忠実な色味で撮影するモード。
・スノーモード:雪景色を背景にしても人物が暗くならず、青みも残さずに撮影するモード。
・ビーチモード:太陽光の反射の強い海面や砂浜でも、人物等が暗くならずに撮影するモード。
・花火モード:打ち上げ花火を最適な露出で鮮やかに撮影するモード。
・水族館モード:屋内の水槽内の魚等を撮影するのに適した感度、ホワイトバランス、色味を設定するモード。
・水中モード:水中に最適なホワイトバランスに設定し、青みを押さえた色合いで撮影するモード。
・ジオラマ風モード:画像中の所定領域をぼかすことで、風景を玩具のように撮影するモード。
Here, the shooting mode is a mode realized by combining a shutter speed and an aperture value, a strobe emission state, sensitivity setting, and the like suitable for a shooting scene. The digital camera 100 has the following shooting modes.
Auto mode: A mode in which various parameters of the camera are automatically determined by a program incorporated in the digital camera 100 based on the measured exposure value.
• Manual mode: A mode that allows the photographer to freely change various camera parameters.
Scene mode: A mode that automatically sets a combination of shutter speed, aperture value, strobe lighting, sensitivity settings, etc. suitable for the shooting scene.
The scene mode includes the following modes.
・ Portrait mode: A mode specialized in portrait photography that obtains an image effect that makes a person stand out by blurring the background.
・ Night scene mode: A mode specialized for shooting night scenes in which a person is flashed and the background is recorded at a slow shutter speed.
・ Landscape mode: A mode specialized for shooting wide scenery.
・ Night & Snap Mode: A mode suitable for taking beautiful night views and people without a tripod.
・ Kids & Pet Mode: A mode that captures images of children and pets that move around without missing a photo opportunity.
-Fresh green & autumnal leaves mode: Mode suitable for shooting trees and leaves of fresh greens vividly.
-Party mode: A mode that shoots in a color faithful to the subject while suppressing camera shake under fluorescent light bulbs.
・ Snow mode: A mode in which a person does not darken even with a snowy scene in the background, and leaves no blue.
・ Beach mode: A mode in which a person or the like takes a picture without darkening even on the sea surface or sandy beach where sunlight is strongly reflected.
・ Fireworks mode: A mode that captures bright fireworks with optimal exposure.
・ Aquarium mode: A mode to set sensitivity, white balance, and color suitable for photographing fish in an indoor aquarium.
・ Underwater mode: A mode in which the white balance is set to be optimal for underwater, and the image is shot with a tint of blue.
-Diorama-like mode: A mode in which a landscape is photographed like a toy by blurring a predetermined area in an image.

S401において撮影モードが確定すると、S402でシステム制御部50は、撮像部22からの画像データを画像表示部28に表示する(スルー表示)。続いて、S403でシステム制御部50は、バッテリや記録媒体200をチェックする。電源制御部80から得た電源部30の残容量や、記録媒体200の有無や残容量が、デジタルカメラ100の動作上問題ないと判断された場合、S405に進むが、そうでない場合、S404に進む。ここで、画像表示部28は画像や音声により所定の警告表示を行ってから、処理がS401に戻る。
S405でシステム制御部50は、必要に応じて分類情報の自動付与について入/切設定を行う。自動付与の入/切設定は、操作部70に含まれるメニューボタンを押すことで画像表示部28に表示されるメニュー画面(不図示)により撮影者が任意に設定可能である。分類情報の自動付与の入/切設定は、シーンモード及び被写体条件により分類情報を自動で付与するか否かを示すフラグの値を設定することであり、設定値(フラグのON/OFF値)はシステムメモリ52が保持する。このように分類情報の自動付与について設定機能をカメラにもたせることで、撮影者の意図しない分類情報が付与されないように防止できる。
When the shooting mode is determined in S401, the system control unit 50 displays the image data from the imaging unit 22 on the image display unit 28 (through display) in S402. Subsequently, in S403, the system control unit 50 checks the battery and the recording medium 200. If it is determined that the remaining capacity of the power supply unit 30 obtained from the power supply control unit 80, the presence or absence of the recording medium 200, and the remaining capacity are not problematic for the operation of the digital camera 100, the process proceeds to S405. move on. Here, after the image display unit 28 performs a predetermined warning display by an image or sound, the process returns to S401.
In step S405, the system control unit 50 performs on / off setting for automatic assignment of classification information as necessary. The automatic assignment on / off setting can be arbitrarily set by the photographer on a menu screen (not shown) displayed on the image display unit 28 by pressing a menu button included in the operation unit 70. The on / off setting for automatic assignment of classification information is to set a flag value indicating whether or not the classification information is automatically given according to the scene mode and subject condition, and a setting value (flag ON / OFF value). Is held in the system memory 52. In this way, by providing the camera with a setting function for automatically assigning classification information, it is possible to prevent classification information not intended by the photographer from being assigned.

次のS406でシステム制御部50は、スルー表示される画像中に、被写体の部位である主被写体(本例では顔)の画像が存在するか否かを検出する(いわゆる顔検出処理)。システム制御部50は、顔検出処理において人の顔が検出された場合、画像中に検出した顔の位置座標、サイズ(幅、高さ)、検出個数、信頼性係数等を顔情報としてシステムメモリ52に記憶する。顔検出処理において顔が検出されなかった場合、システム制御部50は、システムメモリ52内の位置座標、サイズ(幅、高さ)、検出個数、信頼性係数等の領域にゼロを設定する。
続くS407でシステム制御部50は、SW1がON状態であるか否かを判定する。SW1がOFF状態の場合、処理はS405に戻り(丸枠内にAを付して示すノード参照)、前記S405、S406が繰り返される。一方、SW1がON状態と判定された場合、S408に進む。ここでシステム制御部50は、焦点状態検出処理を行って撮影レンズ103の焦点を被写体に合わせるとともに、測光処理を行って絞り値及びシャッタ時間(シャッタスピード)を決定する。尚、測光処理において、必要であればフラッシュの設定も行われる。このとき、前記S406で顔が検出されていれば、検出した顔の範囲内で焦点状態検出処理を実行するようにシステム制御部50がAF制御を行うことも可能である。
In next step S406, the system control unit 50 detects whether or not an image of the main subject (face in this example) that is a part of the subject exists in the through-displayed image (so-called face detection processing). When a human face is detected in the face detection process, the system control unit 50 uses the position coordinates, size (width, height), detected number, reliability coefficient, and the like of the detected face in the image as system information. 52. When no face is detected in the face detection process, the system control unit 50 sets zero in areas such as position coordinates, size (width, height), detected number, reliability coefficient, and the like in the system memory 52.
In subsequent S407, the system control unit 50 determines whether SW1 is in an ON state. If SW1 is in the OFF state, the process returns to S405 (see the node indicated by A in a round frame), and S405 and S406 are repeated. On the other hand, if it is determined that SW1 is in the ON state, the process proceeds to S408. Here, the system control unit 50 performs focus state detection processing to focus the photographing lens 103 on the subject, and performs photometry processing to determine an aperture value and a shutter time (shutter speed). In the photometric process, a flash is set if necessary. At this time, if a face is detected in S406, the system control unit 50 can perform AF control so that the focus state detection process is executed within the detected face range.

次に、S409でシステム制御部50はSW2のON/OFF状態を判定する。SW2がON状態の場合、S411に進み、SW2がOFF状態の場合、S410に進んで、システム制御部50はSW1のON/OFF状態を判定する。SW1がOFF状態になると(つまり、SW2がオンせずに、更にSW1も解除された場合)、処理はS410からS405へ戻る(ノードA参照)。また、SW1がON状態(かつSW2がOFF状態)の間は、S409及びS410の処理が繰り返される。
S411にてシステム制御部50は、画像表示部28の表示状態をスルー表示から固定色表示状態に設定する。そして、S412でシステム制御部50は、露光処理や現像処理を含む撮影処理を実行する。尚、露光処理では、撮像部22、A/D変換器23を取得した画像データが、画像処理部24及びメモリ制御部15を介して、或いはA/D変換器23から直接メモリ制御部15を介して、メモリ32に書き込まれる。また、現像処理ではシステム制御部50が、メモリ制御部15と必要に応じて画像処理部24を用いて、メモリ32に書き込まれた画像データを読み出して各種処理を行う。次のS413でシステム制御部50は、画像表示部28に対し、撮影処理で得た画像データのレックレビュー表示を行う。レックレビューとは、撮影画像の確認のために、被写体の撮影後であって記録媒体への記録前に、予め決められた時間(レビュー時間)だけ画像データを画像表示部28に表示する処理である。
Next, in S409, the system control unit 50 determines the ON / OFF state of SW2. If SW2 is in the ON state, the process proceeds to S411. If SW2 is in the OFF state, the process proceeds to S410, and the system control unit 50 determines the ON / OFF state of SW1. When SW1 is turned off (that is, when SW2 is not turned on and SW1 is also released), the process returns from S410 to S405 (see node A). Further, while SW1 is in the ON state (and SW2 is in the OFF state), the processes of S409 and S410 are repeated.
In S411, the system control unit 50 sets the display state of the image display unit 28 from the through display to the fixed color display state. In step S412, the system control unit 50 performs shooting processing including exposure processing and development processing. In the exposure process, the image data acquired by the imaging unit 22 and the A / D converter 23 is transferred to the memory control unit 15 via the image processing unit 24 and the memory control unit 15 or directly from the A / D converter 23. To the memory 32. In the development process, the system control unit 50 reads out the image data written in the memory 32 using the memory control unit 15 and the image processing unit 24 as necessary, and performs various processes. In next step S413, the system control unit 50 performs a REC review display of the image data obtained by the photographing process on the image display unit 28. Rec review is a process of displaying image data on the image display unit 28 for a predetermined time (review time) after photographing a subject and before recording on a recording medium in order to confirm a photographed image. is there.

レックレビュー表示後、S414でシステム制御部50は、撮影処理で得た画像データを画像ファイルとして記録媒体200に書き込む(記録処理)。次のS415でシステム制御部50は、SW2のON/OFF状態を判定する。SW2がON状態の場合、SW2がOFF状態となるまでS415の判定処理が繰り返される。この間、前記レックレビューの表示が継続する。即ち、S414の記録処理が終了した際に、SW2がOFF状態になるまでの間、画像表示部28はレックレビュー表示を続行する。これにより、撮影者はシャッタボタン61の全押し状態を持続することで、レックレビューによる撮影画像データの確認を入念に行うことが可能となる。
撮影者がシャッタボタン61を全押し状態にして撮影を行った後、シャッタボタン61から手指を放して全押し状態が解除されると、処理はS415からS416へ進む。ここでシステム制御部50は、予め定められたレビュー時間が経過したか否かを判断する。レビュー時間として決められる最小時間については、判定基準時間として事前に設定される。レビュー時間を越える時間が経過していればS417に進み、未経過の場合、S416の判定処理が繰り返される。
S417でシステム制御部50は、画像表示部28の表示状態をレックレビュー表示の状態からスルー表示状態に戻す。この処理により、レックレビュー表示によって撮影画像データを撮影者が確認した後、画像表示部28の表示状態は次の撮影のために撮像部22からの画像データを逐次表示するスルー表示状態に自動的に切り替わることになる。
そしてS418でシステム制御部50は、SW1のON/OFF状態を判定し、SW1がON状態の場合はS409へ戻る。またSW1がOFF状態の場合、S405へ戻る(ノードA参照)。即ち、シャッタボタン61の半押し状態が継続している場合(SW1がON状態)には、システム制御部50は次の撮影の準備にかかる(S409)。一方、シャッタボタン61が解放された場合(SW1がOFF状態)、システム制御部50は、一連の撮影動作を終えて撮影待機状態に戻す(S405)。
After displaying the REC review, in S414, the system control unit 50 writes the image data obtained by the shooting process into the recording medium 200 as an image file (recording process). In next S415, the system control unit 50 determines the ON / OFF state of SW2. If SW2 is in the ON state, the determination process in S415 is repeated until SW2 is in the OFF state. During this time, the REC review display continues. That is, when the recording process of S414 ends, the image display unit 28 continues the REC review display until SW2 is turned off. Thus, the photographer can check the captured image data carefully by the REC review by keeping the shutter button 61 fully pressed.
If the photographer takes a picture with the shutter button 61 fully pressed and then releases the finger from the shutter button 61 to release the fully pressed state, the process proceeds from S415 to S416. Here, the system control unit 50 determines whether or not a predetermined review time has elapsed. The minimum time determined as the review time is set in advance as the determination reference time. If the time exceeding the review time has elapsed, the process proceeds to S417. If the time has not elapsed, the determination process of S416 is repeated.
In S417, the system control unit 50 returns the display state of the image display unit 28 from the REC review display state to the through display state. With this processing, after the photographer confirms the captured image data by the REC review display, the display state of the image display unit 28 is automatically changed to a through display state in which the image data from the imaging unit 22 is sequentially displayed for the next shooting. Will be switched to.
In step S418, the system control unit 50 determines the ON / OFF state of SW1, and returns to step S409 if SW1 is in the ON state. If SW1 is OFF, the process returns to S405 (see node A). That is, when the half-pressed state of the shutter button 61 is continued (SW1 is in the ON state), the system control unit 50 prepares for the next shooting (S409). On the other hand, when the shutter button 61 is released (SW1 is in the OFF state), the system control unit 50 finishes a series of shooting operations and returns to the shooting standby state (S405).

次に、図5のフローチャートを用いてジオラマ風モードの処理について説明する。尚、本処理は静止画記録モード処理及び動画記録モード処理のどちらでも実行可能である。なお、本実施形態では、ジオラマ風に画像を見せるために、画像処理部24は撮影された画像データに対して画像中の所定領域をぼかす処理を施す。図6(d)はその一例として、垂直方向に上・中・下と3つの領域に分け、上領域601及び下領域603の画像をぼかすことでジオラマ風画像効果を実現したものである。本実施形態は、カメラと被写体との間の高低差に応じたジオラマ設定で簡単に撮影が行えるようにしたものであり、ぼかす所定領域はこれに限らない。ただし、カメラと被写体との間の高低差が見え方に影響を与えるような処理に対して、本実施形態はより効果がある。
システム制御部50は、静止画記録モード及び動画記録モードのどちらにおいても、ジオラマ風モードの選択が可能である。ジオラマ風モードが選択された場合、システム制御部50は、ジオラマ風の画像効果を適用した撮影に好適な撮影条件をガイドするか否かを判定し(S501)、撮影ガイドを行う場合、撮影画面内に主被写体である顔の像が存在するか否かを判定する(S502)。撮影画面内に被写体像の顔が検出された場合、システム制御部50は顔の大きさ、例えば顔領域の面積が所定の基準値以上の大きさであるか否かを判定する(S503)。被写体像の顔の大きさが基準値以上である場合、システム制御部50は被写体がジオラマ風効果のある写真撮影に適さない旨のメッセージを画像表示部28に表示させる(S512)。図6(b)は、ジオラマ効果に不適な被写体の場合に画像表示部28が表示するガイダンスを例示する。そしてS507に進む。また、被写体の顔が認識できない場合や顔の大きさが基準値未満の場合、S504に進む。画像表示部28は、カメラと撮影しようとしている被写体との間の高低差について撮影者に指定を促すためのメッセージ等を表示する。図6(a)は、カメラと被写体との高さを設定する際に画像表示部28が表示する画面例を示す。この画面を見ながら、撮影者は操作部70を操作して高低差を設定する。
操作部70によって高さ入力が行われた後、システム制御部50は入力された高さ、つまりカメラと被写体との間の高低差に基づいて、ジオラマ風の画像効果に好適な焦点距離を算出する(S505)。本実施形態では、下表1に示す焦点距離のテーブルを用いて焦点距離の算出処理(補間計算処理を含む)が行われる。
Next, processing in the diorama-style mode will be described using the flowchart of FIG. This process can be executed by either the still image recording mode process or the moving image recording mode process. In the present embodiment, the image processing unit 24 performs a process of blurring a predetermined area in the image on the captured image data in order to show the image in a diorama style. FIG. 6D shows an example in which the diorama-like image effect is realized by dividing the image of the upper region 601 and the lower region 603 into three regions, ie, upper, middle, and lower, in the vertical direction. In the present embodiment, shooting can be easily performed with a diorama setting corresponding to the height difference between the camera and the subject, and the predetermined area to be blurred is not limited to this. However, the present embodiment is more effective for processing in which the difference in height between the camera and the subject affects the appearance.
The system control unit 50 can select a diorama-like mode in both the still image recording mode and the moving image recording mode. When the diorama-style mode is selected, the system control unit 50 determines whether or not to guide shooting conditions suitable for shooting using a diorama-style image effect (S501). It is determined whether or not the face image as the main subject exists in the image (S502). When the face of the subject image is detected in the shooting screen, the system control unit 50 determines whether or not the face size, for example, the area of the face area is greater than or equal to a predetermined reference value (S503). If the size of the face of the subject image is equal to or larger than the reference value, the system control unit 50 displays a message on the image display unit 28 that the subject is not suitable for photography with a diorama effect (S512). FIG. 6B illustrates the guidance displayed by the image display unit 28 when the subject is inappropriate for the diorama effect. Then, the process proceeds to S507. If the face of the subject cannot be recognized or if the face size is less than the reference value, the process proceeds to S504. The image display unit 28 displays a message or the like for prompting the photographer to specify the height difference between the camera and the subject to be photographed. FIG. 6A shows an example of a screen displayed by the image display unit 28 when setting the heights of the camera and the subject. While viewing this screen, the photographer operates the operation unit 70 to set the height difference.
After the height is input by the operation unit 70, the system control unit 50 calculates a focal length suitable for the diorama-like image effect based on the input height, that is, the height difference between the camera and the subject. (S505). In the present embodiment, focal length calculation processing (including interpolation calculation processing) is performed using the focal length table shown in Table 1 below.

Figure 2012060213
高さ値の増加につれて、算出される焦点距離が長くなっていく。被写体とカメラとの高低差については、図7に示すように、カメラから被写体までの距離(被写体距離)(図7のD参照)及びカメラのアオリ角度(図7のθ参照)から算出することも可能である。すなわち、撮影場所の高さ(図7のH参照)は、カメラと被写体との高低差を表しており、図7に示す直角三角形の幾何学的関係から式「H = D × sinθ」によりHの値を算出できる。被写体距離は、距離センサを用いる方法やズーム制御及び自動焦点調節に係る焦点状態の検出に基づく既知の方法で取得できる。またカメラのアオリ角度はカメラ本体の姿勢、つまり被写体に対するカメラの向きをセンサ等により検出することで取得できる。上式で算出した高さ値が指定されると、これに対応する焦点距離が取得される。なお、テーブル参照による焦点距離の算出方法に限らず、高さ値と焦点距離との関係を規定する計算式を用いた算出方法を用いることもできる。
Figure 2012060213
As the height value increases, the calculated focal length increases. As shown in FIG. 7, the height difference between the subject and the camera is calculated from the distance from the camera to the subject (subject distance) (see D in FIG. 7) and the tilt angle of the camera (see θ in FIG. 7). Is also possible. That is, the height of the shooting location (see H in FIG. 7) represents the difference in height between the camera and the subject. From the geometric relationship of the right triangle shown in FIG. Can be calculated. The subject distance can be acquired by a method using a distance sensor or a known method based on detection of a focus state related to zoom control and automatic focus adjustment. The tilt angle of the camera can be obtained by detecting the posture of the camera body, that is, the orientation of the camera with respect to the subject using a sensor or the like. When the height value calculated by the above equation is specified, the corresponding focal length is acquired. In addition, the calculation method using the calculation formula which prescribes | regulates the relationship between a height value and a focal distance can also be used not only the calculation method of the focal distance by a table reference.

次にシステム制御部50は、算出した焦点距離に応じてズーム移動を行う(S506)。なお、ズーム移動は、光学ズームによる移動でもデジタルズームの換算焦点距離による移動でもよい。前者の場合にはシステム制御部50から不図示のレンズ駆動回路に送られる制御信号に従って焦点距離に対応したズーム位置に変倍用レンズが駆動される。
S501、S506、またはS512からS507に進むと主被写体が選択され、画像表示部28は主被写体が選択可能である旨を表示する。システム制御部50は、指定された領域を中心に色情報、被写体までの距離情報を用いて被写体領域の判定及び算出処理を行う(S508)。次に被写体領域を算出できたか否かが判定され(S509)、該領域が算出できた場合、システム制御部50は算出した領域の範囲を外してぼかす所定領域を自動で設定する(S510)。
一方、被写体領域が算出できなかった場合、システム制御部50はぼかす所定領域を不揮発性メモリ56から読み出したデータに基づいて設定する(S511)。該データは、ぼかす所定領域として事前に撮影者が設定するか、または初期値として不揮発性メモリ56に記憶されている。なお、ぼかす所定領域は、S511以降に設定可能である。従来、ズーム制御、並びにぼかす所定領域についてすべて撮影者の指定によるものであったため、ジオラマ風画像効果をもつ写真撮影の場合に有効な設定を行うことが難しかった。本実施形態により、ジオラマ風画像効果による撮影に好適な設定を簡便に行うことが可能となる。また、被写体領域の算出結果を用いて、ピントの合う範囲の指定を自動で行うこともできる。すなわち、被写体領域の設定範囲にピントが合うようにフォーカシングが行われることで、さらに好適な設定にすることができる。
Next, the system control unit 50 performs zoom movement according to the calculated focal length (S506). The zoom movement may be movement by optical zoom or movement by a converted focal length of digital zoom. In the former case, the zoom lens is driven to a zoom position corresponding to the focal length in accordance with a control signal sent from the system control unit 50 to a lens drive circuit (not shown).
When the process proceeds from S501, S506, or S512 to S507, the main subject is selected, and the image display unit 28 displays that the main subject can be selected. The system control unit 50 performs subject area determination and calculation processing using color information and distance information to the subject centering on the designated area (S508). Next, it is determined whether or not the subject area can be calculated (S509). If the area can be calculated, the system control unit 50 automatically sets a predetermined area to be blurred out of the calculated area (S510).
On the other hand, if the subject area cannot be calculated, the system control unit 50 sets a predetermined area to be blurred based on the data read from the nonvolatile memory 56 (S511). The data is set in advance by the photographer as a predetermined area to be blurred, or stored in the nonvolatile memory 56 as an initial value. The predetermined area to be blurred can be set after S511. Conventionally, since zoom control and predetermined areas to be blurred are all specified by the photographer, it has been difficult to make effective settings in the case of photography with a diorama-like image effect. According to the present embodiment, it is possible to easily perform a setting suitable for shooting with a diorama-like image effect. It is also possible to automatically specify the in-focus range using the calculation result of the subject area. That is, a more suitable setting can be achieved by performing focusing so that the set range of the subject area is in focus.

図6(c)は、焦点距離の決定(図5のS505参照)後に、撮影者がぼかす所定領域を選択する操作例を示す。本実施形態では画像表示部28に設けたタッチパネルで撮影者がぼかす所定領域とそうでない領域の境界位置を指定することができ、指定位置のデータはシステム制御部50に送られる。これに限らず、撮影者が十字操作キー等のボタン操作で表示画面上のカーソルを移動させて設定する実施形態でもよい。図6(d)は被写体領域の判定後に、ぼかす所定領域(上領域601及び下領域603)と、ぼかさない領域(中間領域602)を画像表示部28が表示した例を示す(図5のS509及び510参照)。
本実施形態ではジオラマ風モード時の設定についてズーム及びぼかしたい領域の設定方法を説明したが、他の撮影設定についても適用可能である。例えば、被写体領域の抽出方法にて、タッチパネルで撮影者が指定した領域を抽出してもよい。また、ストロボプリ発光等の反射光の受光量に基づいて被写体領域を算出することも可能である。
FIG. 6C shows an operation example in which the photographer selects a predetermined area to be blurred after determining the focal length (see S505 in FIG. 5). In the present embodiment, it is possible to designate a boundary position between a predetermined area blurred by the photographer and an area not to be blurred by the touch panel provided in the image display unit 28, and data of the designated position is sent to the system control unit 50. However, the present invention is not limited to this, and an embodiment in which a photographer moves and sets a cursor on a display screen by operating a button such as a cross operation key may be used. FIG. 6D shows an example in which the image display unit 28 displays a predetermined area to be blurred (upper area 601 and lower area 603) and a non-blurred area (intermediate area 602) after determining the subject area (S509 in FIG. 5). And 510).
In the present embodiment, the method for setting an area to be zoomed and blurred for the setting in the diorama-like mode has been described, but the present invention can also be applied to other shooting settings. For example, an area specified by the photographer on the touch panel may be extracted by a subject area extraction method. It is also possible to calculate the subject area based on the amount of received reflected light such as strobe pre-emission.

図5のS512では被写体がジオラマ風画像効果をもつ写真撮影に適さない例として、撮影画面内で被写体像の顔が占める割合が大きい場合について説明した。これに限らず、画面が一様で撮影した画像が平坦な場合や、カメラから被写体までの距離が基準値よりも短い場合等において、S512の処理を実行し、ジオラマ風の画像効果が期待でいない旨をガイダンス表示してもよい。
以上、デジタルカメラへの適用例を説明したが、本発明はこれに限らず携帯電話や携帯端末等、画像再生が可能な各種装置に適用可能である。
In S512 of FIG. 5, the case where the ratio of the face of the subject image in the shooting screen is large is described as an example in which the subject is not suitable for photography with a diorama-like image effect. The present invention is not limited to this, and when the captured image is flat and the captured image is flat, or when the distance from the camera to the subject is shorter than the reference value, the process of S512 is executed, and a diorama-like image effect is expected. It may be displayed that there is no guidance.
The application example to the digital camera has been described above, but the present invention is not limited to this, and can be applied to various devices capable of image reproduction such as a mobile phone and a mobile terminal.

(その他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

24 画像処理部
28 画像表示部
50 システム制御部
70 操作部
100 デジタルカメラ
24 Image processing unit 28 Image display unit 50 System control unit 70 Operation unit 100 Digital camera

Claims (6)

被写体を撮像して画像データを出力する撮像手段と、
前記撮像手段より出力される画像データにジオラマ風の画像効果を施す画像処理手段と、を有する撮像装置であって、
前記撮像装置と前記被写体との間の高低差を指定する指定手段と、
前記指定手段によって指定される高低差に基づいて前記撮像手段の焦点距離の情報を取得する取得手段と、
前記取得手段によって取得される前記焦点距離に従ってズーム制御を行う制御手段と、を備えることを特徴とする撮像装置。
Imaging means for imaging a subject and outputting image data;
Image processing means for applying a diorama-like image effect to the image data output from the imaging means,
Designating means for designating a height difference between the imaging device and the subject;
An acquisition means for acquiring information on a focal length of the imaging means based on a height difference designated by the designation means;
An image pickup apparatus comprising: control means for performing zoom control according to the focal length acquired by the acquisition means.
前記被写体の像の大きさを検出する検出手段を有し、
前記制御手段は、前記被写体の部位である主被写体の像の大きさが予め定められた基準値よりも大きい場合、前記被写体が前記画像効果を適用した撮影に不適である旨を表示させる制御を行うことを特徴とする、請求項1に記載の撮像装置。
Detecting means for detecting the size of the image of the subject;
The control means performs control to display that the subject is unsuitable for shooting with the image effect applied when the size of the image of the main subject that is a part of the subject is larger than a predetermined reference value. The imaging device according to claim 1, wherein the imaging device is performed.
前記画像処理手段は、前記ズーム制御が行われた状態で前記撮像手段によって撮像される画像の所定領域にぼかし処理を施すことで、前記画像データに前記ジオラマ風の画像効果を施すことを特徴とする請求項1または2に記載の撮像装置。   The image processing means applies a diorama-like image effect to the image data by performing blurring processing on a predetermined area of an image captured by the imaging means in a state where the zoom control is performed. The imaging apparatus according to claim 1 or 2. 前記被写体の領域を算出する算出手段を有し、
前記画像処理手段は、前記所定領域が前記算出手段によって算出された被写体の領域を含まないように、前記所定領域を設定することを特徴とする請求項3に記載の撮像装置。
Calculating means for calculating the area of the subject;
The imaging apparatus according to claim 3, wherein the image processing unit sets the predetermined region so that the predetermined region does not include a subject region calculated by the calculation unit.
前記撮像装置から前記被写体までの距離である被写体距離と、前記撮像装置のアオリ角度に基づいて、前記撮像装置と前記被写体との間の高低差を算出する算出手段を有し、
前記指定手段は、前記算出手段で算出された高低差を指定することを特徴とする請求項1乃至4のいずれか1項に記載の撮像装置。
A calculation unit that calculates a height difference between the imaging device and the subject based on a subject distance that is a distance from the imaging device to the subject and an inclination angle of the imaging device;
5. The imaging apparatus according to claim 1, wherein the designation unit designates a height difference calculated by the calculation unit.
被写体を撮像して画像データを出力する撮像手段と、該撮像手段より出力される画像データにジオラマ風の画像効果を施す画像処理手段とを有する撮像装置で実行される制御方法であって、
前記撮像装置と前記被写体との間の高低差を指定する指定ステップと、
前記指定ステップで指定された高低差に基づいて前記撮像手段の焦点距離の情報を取得する取得ステップと、
前記取得ステップにて取得された前記焦点距離に従ってズーム制御を行う制御ステップと、を有することを特徴とする撮像装置の制御方法。
A control method executed by an imaging apparatus having an imaging unit that images a subject and outputs image data, and an image processing unit that applies a diorama-like image effect to the image data output from the imaging unit,
A designation step for designating a height difference between the imaging device and the subject;
An acquisition step of acquiring information on a focal length of the imaging means based on the height difference designated in the designation step;
A control step of performing zoom control according to the focal length acquired in the acquisition step.
JP2010198754A 2010-09-06 2010-09-06 Imaging apparatus and control method thereof, and image processing apparatus and control method thereof Expired - Fee Related JP5777309B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010198754A JP5777309B2 (en) 2010-09-06 2010-09-06 Imaging apparatus and control method thereof, and image processing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010198754A JP5777309B2 (en) 2010-09-06 2010-09-06 Imaging apparatus and control method thereof, and image processing apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2012060213A true JP2012060213A (en) 2012-03-22
JP5777309B2 JP5777309B2 (en) 2015-09-09

Family

ID=46056832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010198754A Expired - Fee Related JP5777309B2 (en) 2010-09-06 2010-09-06 Imaging apparatus and control method thereof, and image processing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5777309B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014057150A (en) * 2012-09-11 2014-03-27 Casio Comput Co Ltd Imaging apparatus and program
JP2014127965A (en) * 2012-12-27 2014-07-07 Canon Inc Image processing apparatus and image processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09298686A (en) * 1996-05-08 1997-11-18 Nec Corp Aerial photograph generating device
JP2007274530A (en) * 2006-03-31 2007-10-18 Matsushita Electric Ind Co Ltd Monitoring camera apparatus
JP2010146264A (en) * 2008-12-18 2010-07-01 Sony Corp Image processing device, method, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09298686A (en) * 1996-05-08 1997-11-18 Nec Corp Aerial photograph generating device
JP2007274530A (en) * 2006-03-31 2007-10-18 Matsushita Electric Ind Co Ltd Monitoring camera apparatus
JP2010146264A (en) * 2008-12-18 2010-07-01 Sony Corp Image processing device, method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014057150A (en) * 2012-09-11 2014-03-27 Casio Comput Co Ltd Imaging apparatus and program
JP2014127965A (en) * 2012-12-27 2014-07-07 Canon Inc Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP5777309B2 (en) 2015-09-09

Similar Documents

Publication Publication Date Title
JP5046788B2 (en) Imaging apparatus and control method thereof
JP4644883B2 (en) Imaging device
JP4448039B2 (en) Imaging apparatus and control method thereof
US9838609B2 (en) Image capturing apparatus, control apparatus and control method for controlling zooming function
JP6124700B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP4182864B2 (en) Electronic camera
JP2012019341A (en) Imaging device, and method and program for controlling the same
JP2009290782A (en) Imaging device, method of controlling the same, and program
US9538097B2 (en) Image pickup apparatus including a plurality of image pickup units and method of controlling the same
JP5777309B2 (en) Imaging apparatus and control method thereof, and image processing apparatus and control method thereof
US9232133B2 (en) Image capturing apparatus for prioritizing shooting parameter settings and control method thereof
JP6587455B2 (en) Imaging apparatus, information processing method, and program
JP5075288B2 (en) Imaging apparatus and control method thereof
JP5968386B2 (en) Imaging apparatus and control method thereof
JP5013924B2 (en) Imaging apparatus, imaging method, and program
JP2012034199A (en) Imaging device, control method, program and recording medium for imaging device
JP2016167088A (en) Imaging device and control method of the same
JP5511193B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP6526270B2 (en) Image pickup apparatus and control method thereof
JP5658580B2 (en) Imaging apparatus, control method therefor, program, and recording medium
JP2024082891A (en) IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, AND STORAGE MEDIUM
JP6278702B2 (en) Imaging apparatus, control method therefor, and program
JP2015037289A (en) Image recording device, control method of the same, and program
JP2014212405A (en) Imaging apparatus, control method, program, and storage medium
JP2016019252A (en) Imaging device, control method, program of imaging device, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130826

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140623

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140701

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140828

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141125

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150126

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150609

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150707

R151 Written notification of patent or utility model registration

Ref document number: 5777309

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees