JP2014021373A - Imaging device, storage device, and imaging program - Google Patents

Imaging device, storage device, and imaging program Download PDF

Info

Publication number
JP2014021373A
JP2014021373A JP2012161599A JP2012161599A JP2014021373A JP 2014021373 A JP2014021373 A JP 2014021373A JP 2012161599 A JP2012161599 A JP 2012161599A JP 2012161599 A JP2012161599 A JP 2012161599A JP 2014021373 A JP2014021373 A JP 2014021373A
Authority
JP
Japan
Prior art keywords
subject
image
infinity
imaging
feature amount
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
JP2012161599A
Other languages
Japanese (ja)
Inventor
Itsuhito Hokoi
逸人 鉾井
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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2012161599A priority Critical patent/JP2014021373A/en
Publication of JP2014021373A publication Critical patent/JP2014021373A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an imaging device capable of properly photographing a subject at an infinite distance, a storage device, and an imaging program.SOLUTION: An imaging device 100 includes: an imaging unit 110 that photographs through an AF lens 112; a feature amount calculation unit 141 that calculates an image feature amount of photographed subjects; a detection unit 143 that detects a subject at an infinite distance among the photographed subjects on the basis of the image feature amount; and a CPU 190, when the subject at an infinite distance is detected, drives the AF lens 112 in a direction to focus at an infinite distance.

Description

本発明は、撮像装置、記憶装置、及び撮像プログラムに関する。   The present invention relates to an imaging device, a storage device, and an imaging program.

画像特徴量のヒストグラムに基づいて、撮像された画像から領域を抽出し、抽出した領域を識別する画像処理装置が開示されている(特許文献1参照)。   An image processing apparatus that extracts a region from a captured image and identifies the extracted region based on a histogram of image feature amounts is disclosed (see Patent Document 1).

特開平4−10079号公報Japanese Patent Laid-Open No. 4-10079

しかしながら、特許文献1に開示された画像処理装置を備える撮像装置は、無限遠に在る被写体(例えば、空、山)を適切に撮像することができない場合がある。例えば、前記撮像装置は、被写体までの距離を測距する必要があるので、無限遠に在る被写体に合焦させるまでの時間が長い。また、例えば、前記撮像装置は、無限遠に在る被写体であるか否かを識別するために、画像における被写体の位置を仮定する必要があり、仮定された位置以外に撮像された被写体を識別することができない。また、無限遠に在る被写体は、コントラストが低い場合が多いため、特にコントラスト式のオートフォーカスでは合焦させることが難しいという問題がある。   However, an imaging apparatus including the image processing apparatus disclosed in Patent Document 1 may not be able to appropriately capture an object at infinity (for example, the sky or a mountain). For example, since the imaging apparatus needs to measure the distance to the subject, it takes a long time to focus on the subject at infinity. In addition, for example, in order to identify whether or not the subject is an object at infinity, it is necessary to assume the position of the subject in the image, and to identify a subject that has been captured other than the assumed position. Can not do it. In addition, since a subject located at infinity often has a low contrast, there is a problem that it is difficult to focus particularly in contrast-type autofocus.

本発明は、前記の点に鑑みてなされたものであり、無限遠に在る被写体を適切に撮像することができる撮像装置、記憶装置、及び撮像プログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an imaging device, a storage device, and an imaging program capable of appropriately capturing an image of an object at infinity.

本発明は、上記の課題を解決するためになされたものであり、合焦レンズを介して撮像する撮像部と、撮像された被写体の画像特徴量を算出する特徴量算出部と、撮像された前記被写体のうち、無限遠に在る前記被写体を前記画像特徴量に基づいて検出する検出部と、無限遠に在る前記被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる制御部と、を備えることを特徴とする撮像装置である。   The present invention has been made to solve the above-described problem, and includes an imaging unit that captures an image through a focusing lens, a feature amount calculation unit that calculates an image feature amount of the captured subject, Among the subjects, a detection unit that detects the subject at infinity based on the image feature amount, and when the subject at infinity is detected, the focusing is performed in a direction to focus at infinity. And a control unit for driving the lens.

また、本発明は、無限遠に在る被写体に対するコントラストスキャンにより検出されたコントラストのピーク値を示すレンズ位置を記憶することを特徴とする記憶装置である。   According to another aspect of the present invention, there is provided a storage device that stores a lens position indicating a peak value of contrast detected by contrast scanning for a subject at infinity.

また、本発明は、合焦レンズを介して撮像する撮像部と、撮像された被写体の画像特徴量を算出する特徴量算出部と、自装置から前記被写体までの距離と前記画像特徴量とに基づいて、無限遠に在る前記被写体のうちから、予め定められた被写体を検出する検出部と、前記予め定められた被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる制御部と、を備えることを特徴とする撮像装置である。   The present invention also includes an imaging unit that captures an image through a focusing lens, a feature amount calculation unit that calculates an image feature amount of the captured subject, a distance from the device to the subject, and the image feature amount. Based on the detection unit that detects a predetermined subject out of the subjects at infinity, and the focusing lens in a direction to focus on infinity when the predetermined subject is detected And a control unit that drives the image pickup apparatus.

また、本発明は、コンピュータに、撮像部が、合焦レンズを介して撮像する手順と、特徴量算出部が、撮像された被写体の画像特徴量を算出する手順と、検出部が、撮像された前記被写体のうち、無限遠に在る前記被写体を前記画像特徴量に基づいて検出する手順と、制御部が、無限遠に在る前記被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる手順と、を実行させるための撮像プログラムである。   Further, according to the present invention, a procedure in which an imaging unit captures an image via a focusing lens, a procedure in which a feature amount calculation unit calculates an image feature amount of the captured subject, and a detection unit are captured in a computer. In addition, a procedure for detecting the subject at infinity among the subjects based on the image feature amount, and a direction in which the control unit focuses to infinity when the subject at infinity is detected. And a procedure for driving the focusing lens.

また、本発明は、コンピュータに、撮像部が、合焦レンズを介して撮像する手順と、特徴量算出部が、撮像された被写体の画像特徴量を算出する手順と、検出部が、自装置から前記被写体までの距離と前記画像特徴量とに基づいて、無限遠に在る前記被写体のうちから、予め定められた被写体を検出する手順と、制御部が、前記予め定められた被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる手順と、を実行させるための撮像プログラムである。   In addition, the present invention provides a computer in which an imaging unit captures an image via a focusing lens, a feature amount calculation unit calculates an image feature amount of a captured subject, and a detection unit A procedure for detecting a predetermined subject out of the subjects at infinity based on the distance from the subject to the subject and the image feature amount, and the control unit detects the predetermined subject. If so, an imaging program for executing the procedure of driving the focusing lens in a direction to focus at infinity.

本発明によれば、撮像装置は、無限遠に在る被写体を適切に撮像することができる。   According to the present invention, the imaging device can appropriately capture a subject at infinity.

本発明の第1実施形態における、レンズ鏡筒と、撮像装置と、記憶媒体との構成を示すブロック図である。It is a block diagram which shows the structure of the lens-barrel, imaging device, and storage medium in 1st Embodiment of this invention. 本発明の第1実施形態における、空による被写体領域を画像特徴量に基づいて撮像する動作手順を示すフローチャートである。6 is a flowchart illustrating an operation procedure for capturing an image of a sky subject region based on an image feature amount in the first embodiment of the present invention. 本発明の第2実施形態における、空による被写体領域を検出するためのプロファイルの例を示す表である。It is a table | surface which shows the example of the profile for detecting the to-be-photographed object area | region in 2nd Embodiment of this invention. 本発明の第2実施形態における、被写体領域の例を示す図である。It is a figure which shows the example of a to-be-photographed area | region in 2nd Embodiment of this invention. 本発明の第2実施形態における、空による被写体領域を画像特徴量と距離とに基づいて撮像する動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure which images the to-be-photographed object area | region based on an image feature-value and distance in 2nd Embodiment of this invention.

[第1実施形態]
本発明の第1実施形態について図面を参照して詳細に説明する。図1には、レンズ鏡筒と、撮像装置と、記憶媒体との構成が、ブロック図により表されている。撮像装置100は、レンズ鏡筒111から入射される光学像を撮像し、静止画形式の画像、又は動画形式の画像列を、記憶媒体200に記憶させる。
[First Embodiment]
A first embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram illustrating configurations of a lens barrel, an imaging device, and a storage medium. The imaging apparatus 100 captures an optical image incident from the lens barrel 111 and stores a still image format image or a moving image format image sequence in the storage medium 200.

まず、レンズ鏡筒111の構成を説明する。
レンズ鏡筒111は、焦点調整レンズ(合焦レンズ)(以下、「AF(Auto Focus)レンズ」という)112と、レンズ駆動部116と、AFエンコーダ117と、鏡筒制御部118を備える。なお、レンズ鏡筒111は、撮像装置100に着脱可能に接続されてもよいし、撮像装置100と一体であってもよい。
First, the configuration of the lens barrel 111 will be described.
The lens barrel 111 includes a focus adjustment lens (hereinafter referred to as “AF (Auto Focus) lens”) 112, a lens driving unit 116, an AF encoder 117, and a lens barrel control unit 118. The lens barrel 111 may be detachably connected to the imaging device 100 or may be integrated with the imaging device 100.

AFレンズ112は、レンズ駆動部116により駆動され、撮像部110(後述)の撮像素子119の受光面(光電変換面)に、光学像を導く。   The AF lens 112 is driven by a lens driving unit 116 and guides an optical image to a light receiving surface (photoelectric conversion surface) of an imaging element 119 of an imaging unit 110 (described later).

AFエンコーダ117は、AFレンズ112の移動を検出し、AFレンズ112の移動量に応じた信号を、鏡筒制御部118に出力する。ここで、AFレンズ112の移動量に応じた信号とは、例えば、AFレンズ112の移動量に応じて位相が変化するサイン(sin)波信号であってもよい。   The AF encoder 117 detects the movement of the AF lens 112 and outputs a signal corresponding to the movement amount of the AF lens 112 to the lens barrel control unit 118. Here, the signal corresponding to the movement amount of the AF lens 112 may be a sine wave signal whose phase changes according to the movement amount of the AF lens 112, for example.

鏡筒制御部118は、撮像装置100のCPU190(後述)から入力される駆動制御信号に応じて、レンズ駆動部116を制御する。ここで、駆動制御信号とは、至近に合焦させるAFレンズ112のレンズ位置から、無限遠に合焦させるAFレンズ112のレンズ位置までの範囲(以下、「レンズ駆動範囲」という)で、AFレンズ112を光軸方向に駆動させるための制御信号である。鏡筒制御部118は、駆動制御信号に応じて、例えば、レンズ駆動部116に出力するパルス電圧のステップ数を変更する。   The lens barrel control unit 118 controls the lens driving unit 116 in accordance with a drive control signal input from a CPU 190 (described later) of the imaging apparatus 100. Here, the drive control signal is a range from the lens position of the AF lens 112 that is focused close to the lens position of the AF lens 112 that is focused to infinity (hereinafter referred to as “lens driving range”). This is a control signal for driving the lens 112 in the optical axis direction. The lens barrel control unit 118 changes the number of steps of the pulse voltage output to the lens driving unit 116, for example, according to the drive control signal.

また、鏡筒制御部118は、AFレンズ112の移動量に応じた信号に基づいて、レンズ鏡筒111におけるAFレンズ112の位置(フォーカスポジション)を、撮像装置100のCPU190に出力する。ここで、鏡筒制御部118は、例えば、AFレンズ112の移動量に応じた信号を、AFレンズ112の移動方向に応じて積算することで、レンズ鏡筒111におけるAFレンズ112の移動量(位置)を算出してもよい。   Further, the lens barrel control unit 118 outputs the position (focus position) of the AF lens 112 in the lens barrel 111 to the CPU 190 of the imaging device 100 based on a signal corresponding to the movement amount of the AF lens 112. Here, the lens barrel control unit 118 integrates, for example, signals according to the movement amount of the AF lens 112 according to the movement direction of the AF lens 112, thereby moving the AF lens 112 in the lens barrel 111 (the movement amount ( Position) may be calculated.

レンズ駆動部116は、鏡筒制御部118による制御に応じてAFレンズ112を駆動し、レンズ鏡筒111内でAFレンズ112を光軸方向に移動させる。   The lens driving unit 116 drives the AF lens 112 according to the control by the lens barrel control unit 118 and moves the AF lens 112 in the optical axis direction within the lens barrel 111.

次に、撮像装置100の構成を説明する。
撮像装置100は、撮像部110と、画像処理装置140と、表示部150と、バッファメモリ部130と、操作部180と、記憶部160と、CPU190と、通信部170とを備える。
Next, the configuration of the imaging device 100 will be described.
The imaging device 100 includes an imaging unit 110, an image processing device 140, a display unit 150, a buffer memory unit 130, an operation unit 180, a storage unit 160, a CPU 190, and a communication unit 170.

撮像部110は、撮像素子119と、A/D(Analog/Digital)変換部120とを備える。撮像部110は、設定された撮像用情報に基づいて、CPU190により制御される。   The imaging unit 110 includes an imaging element 119 and an A / D (Analog / Digital) conversion unit 120. The imaging unit 110 is controlled by the CPU 190 based on the set imaging information.

撮像素子119は、光電変換面を備え、レンズ鏡筒111(光学系)により光電変換面に結像された光学像を電気信号に変換して、A/D変換部120に出力する。撮像素子119は、例えば、CMOS(Complementary Metal Oxide Semiconductor)で構成されていてもよい。また、撮像素子119は、光電変換面の一部の領域について、光学像を電気信号に変換するようにしてもよい(画像切り出し)。   The image sensor 119 includes a photoelectric conversion surface, converts an optical image formed on the photoelectric conversion surface by the lens barrel 111 (optical system) into an electric signal, and outputs the electric signal to the A / D conversion unit 120. The image sensor 119 may be configured by, for example, a CMOS (Complementary Metal Oxide Semiconductor). Further, the image sensor 119 may convert an optical image into an electrical signal for a partial region of the photoelectric conversion surface (image clipping).

また、撮像素子119は、操作部180を介してユーザから画像記憶指示(撮像トリガー)を受け付けた際に得られる画像を、A/D変換部120を介して記憶媒体200に記憶させる。一方、撮像素子119は、操作部180を介してユーザから画像記憶指示を受け付けていない状態において、連続的に得られる画像をスルー画像として、バッファメモリ部130及び表示部150に、A/D変換部120を介して出力する。   In addition, the image sensor 119 stores an image obtained when an image storage instruction (imaging trigger) is received from the user via the operation unit 180 in the storage medium 200 via the A / D conversion unit 120. On the other hand, the imaging device 119 performs A / D conversion on the buffer memory unit 130 and the display unit 150 as images that are continuously obtained in a state where no image storage instruction is received from the user via the operation unit 180. Output via the unit 120.

A/D変換部120は、撮像素子119によって変換された電気信号をデジタル化して、デジタル信号である画像をバッファメモリ部130に記憶させる。   The A / D conversion unit 120 digitizes the electric signal converted by the image sensor 119 and causes the buffer memory unit 130 to store an image that is a digital signal.

操作部180は、例えば、電源スイッチ、シャッタボタン、マルチセレクタ(十字キー)、又はその他の操作キーを備え、ユーザによって操作されることでユーザの操作入力を受け付け、受け付けた操作入力に応じた信号をCPU190に出力する。   The operation unit 180 includes, for example, a power switch, a shutter button, a multi selector (cross key), or other operation keys. The operation unit 180 receives a user operation input when operated by the user, and a signal corresponding to the received operation input. Is output to the CPU 190.

画像処理装置140は、記憶部160に記憶されている画像処理用情報に基づいて、バッファメモリ部130に一時的に記憶されている画像を画像処理する。ここで、画像処理装置140は、予め定められた露光量で被写体が撮像された画像から、画像特徴量に基づいて被写体領域を抽出する。画像処理された画像は、通信部170を介して記憶媒体200に記憶される。   The image processing apparatus 140 performs image processing on the image temporarily stored in the buffer memory unit 130 based on the image processing information stored in the storage unit 160. Here, the image processing apparatus 140 extracts a subject area based on the image feature amount from an image obtained by capturing the subject with a predetermined exposure amount. The processed image is stored in the storage medium 200 via the communication unit 170.

また、画像処理装置140は、抽出した被写体領域を撮像するための撮像用情報、及び被写体領域を画像処理するための画像処理用情報の少なくとも一方を、被写体領域のタグ情報及びブラウズ用情報として記憶部160に記憶させる。   Further, the image processing apparatus 140 stores at least one of imaging information for imaging the extracted subject area and image processing information for image processing of the subject area as tag information and browsing information of the subject area. Stored in the unit 160.

ここで、撮像用情報及び画像処理用情報とは、例えば、被写体領域の位置(例えば、画像の上側領域)を示す情報、被写体領域の画像特徴量(例えば、輝度、色情報)を示す情報、絞り値(Aperture Value:Av)、露光量(露出値)(EV)、画像のホワイトバランス(カラーバランス)、画像のシーン(例えば、ポートレート、風景シーン、夜景シーン、夕景シーン、朝焼けシーン、花火シーン)、画像の種別(タイプ)(例えば、晴天、曇天、雨天、夕景、朝焼け、夜景、花火)、撮像された画像の向きとしての縦横を示す情報、及び、被写体領域の優先度である。   Here, the imaging information and the image processing information are, for example, information indicating the position of the subject region (for example, the upper region of the image), information indicating the image feature amount (for example, luminance and color information) of the subject region, Aperture value (Av), exposure (exposure value) (EV), image white balance (color balance), image scene (eg, portrait, landscape scene, night scene, sunset scene, sunrise scene, fireworks) Scene), image type (for example, fine weather, cloudy weather, rainy weather, sunset, sunrise, night view, fireworks), information indicating the vertical and horizontal directions of the captured image, and the priority of the subject area.

また、画像処理装置140は、抽出された被写体領域のうち、予め定められた被写体(例えば、空、山、看板)による被写体領域を、露光量、絞り値/減光値(ND)すなわち被写体輝度BV値、領域の輝度(明るさ)又は色情報、及び画像における被写体領域の位置に基づいて検出する。画像処理装置140の詳細については後述する。   In addition, the image processing apparatus 140 determines a subject area based on a predetermined subject (for example, sky, mountain, signboard) among the extracted subject areas as an exposure amount, an aperture value / dimming value (ND), that is, subject brightness. Detection is based on the BV value, the luminance (brightness) or color information of the area, and the position of the subject area in the image. Details of the image processing apparatus 140 will be described later.

表示部150は、撮像部110によって得られた画像、及び操作画面等を表示する。表示部150は、例えば、液晶ディスプレイである。   The display unit 150 displays an image obtained by the imaging unit 110, an operation screen, and the like. The display unit 150 is, for example, a liquid crystal display.

バッファメモリ部130は、撮像部110によって撮像された画像を、一時的に記憶する。   The buffer memory unit 130 temporarily stores the image captured by the imaging unit 110.

記憶部160は、各種データ(例えば、撮像用情報、画像処理用情報)を、被写体領域のタグ情報及びブラウズ用情報として記憶する。また、記憶部160は、無限遠に在る被写体(例えば、空、山)に対するコントラストスキャンにより検出されたコントラストのピーク値を示すレンズ位置を記憶する。ここで、無限遠に在る被写体とは、例えば、予め定められた距離以上、撮像装置100から離れた位置に在る被写体である。   The storage unit 160 stores various data (for example, imaging information and image processing information) as tag information and browsing information for the subject area. In addition, the storage unit 160 stores a lens position indicating a peak value of contrast detected by contrast scanning with respect to a subject (for example, sky or mountain) located at infinity. Here, the subject located at infinity is, for example, a subject located at a position away from the imaging device 100 by a predetermined distance or more.

CPU190(制御部)は、撮像用情報に基づいて、撮像部110を制御する。また、CPU190は、撮像用情報に基づく撮像処理(プレ処理)として、例えば、焦点調整(AF)の設定、露出調整(AE)の設定、ホワイトバランス調整(AWB)の設定、被写体像(オブジェクト)の追尾の設定、画像の種別判定の設定、色補正処理の設定、被写体像の拡大表示の設定、パンニング表示の設定、ズーム倍率に連動した明るさの最適化の設定を制御する。   The CPU 190 (control unit) controls the imaging unit 110 based on the imaging information. Further, the CPU 190 performs, for example, focus adjustment (AF) setting, exposure adjustment (AE) setting, white balance adjustment (AWB) setting, subject image (object) as imaging processing (pre-processing) based on imaging information. Tracking setting, image type determination setting, color correction processing setting, subject image enlargement display setting, panning display setting, and brightness optimization setting linked to zoom magnification are controlled.

CPU190は、撮像用情報に基づく撮像処理(プレ処理)として、例えば、連写するか否かの設定、合焦させる被写体像の切り替えの設定、焦点距離の連続変更の設定、撮像装置100の発光部(不図示)が発光する閃光の発光量の変更の設定、露光量EVの変更の設定、及び、シャッタ速度Tvの変更を実行するか否かの設定を制御する。   As the imaging process (pre-process) based on the imaging information, the CPU 190 sets, for example, whether to shoot continuously, setting of switching of the subject image to be focused, setting of continuous change of the focal length, and light emission of the imaging apparatus 100. The control unit controls settings for changing the amount of flash light emitted by the unit (not shown), setting for changing the exposure amount EV, and setting whether to change the shutter speed Tv.

CPU190は、画像処理用情報に基づくポスト処理として、例えば、トーンカーブ(階調カーブ)の設定を制御する。また、CPU190は、操作部180から入力された「操作入力に応じた信号」に基づいて、静止画形式又は動画形式の画像を、画像処理装置140に画像処理させる。   For example, the CPU 190 controls setting of a tone curve (gradation curve) as post processing based on the image processing information. Further, the CPU 190 causes the image processing device 140 to perform image processing on an image in a still image format or a moving image format based on the “signal according to the operation input” input from the operation unit 180.

CPU190は、無限遠に在る被写体による被写体領域を撮像するか否か、すなわち、コントラストスキャンを実行する対象の位置(AFポイント)と、無限遠に在る被写体による被写体領域の位置とが一致するか否かを判定する。   The CPU 190 determines whether or not to image the subject area of the subject at infinity, that is, the position of the target for executing the contrast scan (AF point) matches the position of the subject area of the subject at infinity. It is determined whether or not.

CPU190は、被写体が無限遠に在る場合、無限遠に合焦させるレンズ位置までAFレンズ112を駆動させる。ここで、CPU190は、撮像用情報に基づいてレンズ鏡筒111の鏡筒制御部118に駆動制御信号を出力することで、被写体領域に合焦させるよう焦点を調節する。   When the subject is at infinity, the CPU 190 drives the AF lens 112 to the lens position for focusing at infinity. Here, the CPU 190 outputs a drive control signal to the lens barrel control unit 118 of the lens barrel 111 based on the imaging information, thereby adjusting the focus so as to focus on the subject area.

なお、CPU190は、無限遠に合焦させるレンズ位置の近傍で、AFレンズ112を駆動させてコントラストスキャンを実行し、このコントラストスキャンの結果に基づいて、被写体に合焦させてもよい。ここで、CPU190は、被写体に対して予め定められたピーク値以上のコントラストが、コントラストスキャンにより検出された場合、そのピーク値を示すレンズ位置までAFレンズ112を駆動させる。また、CPU190は、コントラストスキャンにより検出されたピーク値を示すレンズ位置を、記憶部160に記憶させる。   Note that the CPU 190 may drive the AF lens 112 in the vicinity of the lens position to be focused at infinity, execute a contrast scan, and focus on the subject based on the result of the contrast scan. Here, when a contrast equal to or higher than a predetermined peak value for the subject is detected by contrast scanning, the CPU 190 drives the AF lens 112 to a lens position indicating the peak value. Further, the CPU 190 causes the storage unit 160 to store the lens position indicating the peak value detected by the contrast scan.

また、CPU190は、撮像部110により撮像された画像の中心(画角中心)領域に対してコントラストスキャンを実行し、検出されたコントラストのピーク値が予め定められたピーク値未満である場合、その中心領域の周辺に対してコントラストスキャンを更に実行してもよい。ここで、中心領域の周辺とは、例えば、画角中心を含む予め定められた拡大領域でもよいし、画角中心を含まない予め定められた領域でもよい。これにより、CPU190は、画角中心に撮像された空が一様でエッジ(コントラスト)がない場合でも、画角中心の周辺に撮像された山などの遠景による被写体領域のコントラストのピーク値を検出することができる。   In addition, the CPU 190 performs a contrast scan on the center (view angle center) region of the image captured by the imaging unit 110, and when the detected contrast peak value is less than a predetermined peak value, A contrast scan may be further performed on the periphery of the central region. Here, the periphery of the center area may be, for example, a predetermined enlarged area including the center of the angle of view or a predetermined area not including the center of the angle of view. Thereby, the CPU 190 detects the peak value of the contrast of the subject area due to a distant view such as a mountain imaged around the center of the angle of view even when the sky imaged at the center of the angle of view is uniform and there is no edge (contrast). can do.

通信部170は、取り外し可能な記憶媒体200(カードメモリ等)と接続され、記憶媒体200に対する各種データ(例えば、画像データ、タグ情報、ブラウズ用情報)の書込み、読み出し又は消去を実行する。   The communication unit 170 is connected to a removable storage medium 200 (such as a card memory), and executes writing, reading, or erasing of various data (for example, image data, tag information, browsing information) with respect to the storage medium 200.

記憶媒体200は、撮像装置100に対して着脱可能に接続される記憶部であって、各種データ(例えば、タグ情報、ブラウズ用情報)と、画像データとを対応付けて記憶する。なお、記憶媒体200は、撮像装置100と一体であってもよい。   The storage medium 200 is a storage unit that is detachably connected to the imaging apparatus 100, and stores various data (for example, tag information, browse information) and image data in association with each other. Note that the storage medium 200 may be integrated with the imaging device 100.

次に、画像処理装置140の詳細について説明する。
画像処理装置140は、特徴量算出部141と、領域抽出部142と、検出部143とを備える。
Next, details of the image processing apparatus 140 will be described.
The image processing apparatus 140 includes a feature amount calculation unit 141, a region extraction unit 142, and a detection unit 143.

特徴量算出部141は、撮像部110が撮像した画像を、バッファメモリ部130から取得する。また、特徴量算出部141は、バッファメモリ部130から取得した画像における複数の特徴毎に、その画像特徴量(例えば、輝度(明るさ)、色情報(カラーバランス、色温度))を算出し、算出した画像特徴量を領域抽出部142に出力する。   The feature amount calculation unit 141 acquires the image captured by the imaging unit 110 from the buffer memory unit 130. In addition, the feature amount calculation unit 141 calculates an image feature amount (for example, luminance (brightness) and color information (color balance, color temperature)) for each of a plurality of features in the image acquired from the buffer memory unit 130. The calculated image feature amount is output to the region extraction unit 142.

領域抽出部142は、特徴量算出部141が算出した画像特徴量を取得する。また、領域抽出部142は、予め定められた露光量で被写体が撮像された画像を、バッファメモリ部130から取得し、取得した画像から画像特徴量に基づいて被写体領域を抽出する。   The region extraction unit 142 acquires the image feature amount calculated by the feature amount calculation unit 141. In addition, the region extraction unit 142 acquires an image in which a subject is captured with a predetermined exposure amount from the buffer memory unit 130, and extracts a subject region from the acquired image based on the image feature amount.

ここで、領域抽出部142は、画像特徴量の種別毎と、その画像特徴量のレベル毎とに応じて画像から生成された複数の分割画像から、被写体領域を抽出する。例えば、領域抽出部142は、「輝度信号Y、色差信号U及びV」毎と、その画像特徴量のレベル毎とに応じて画像から生成された、YUVの3種類×3レベル(=9枚)の画像から、被写体領域を抽出する。また、領域抽出部142は、被写体領域にラベルを割り当てる(ラベリング)。   Here, the region extraction unit 142 extracts a subject region from a plurality of divided images generated from an image for each type of image feature amount and for each level of the image feature amount. For example, the region extraction unit 142 generates three types of YUVs × 3 levels (= 9 images) generated from an image for each “luminance signal Y, color difference signals U and V” and for each level of the image feature amount. ) To extract the subject area. The area extraction unit 142 assigns a label to the subject area (labeling).

検出部143は、領域抽出部142により抽出された被写体領域のうち、無限遠に在る被写体による被写体領域を、画像特徴量に基づいて検出する。また、検出部143は、無限遠に在る被写体による被写体領域のうち、予め定められた被写体による被写体領域を、予め定められた輝度、及び画像における被写体領域の位置(座標)に基づいて検出する。ここで、予め定められた被写体とは、例えば、空、山、又は看板である。以下では、一例として、予め定められた被写体が空であるものとして説明を続ける。   The detection unit 143 detects a subject region due to a subject at infinity among the subject regions extracted by the region extraction unit 142 based on the image feature amount. In addition, the detection unit 143 detects a subject region by a predetermined subject among subject regions by a subject at infinity based on a predetermined luminance and the position (coordinates) of the subject region in the image. . Here, the predetermined subject is, for example, the sky, a mountain, or a signboard. Hereinafter, as an example, the description will be continued assuming that the predetermined subject is empty.

検出部143は、空による被写体領域(空マスク)を、空の画像特徴量に基づいて検出する。例えば、被写体領域が、空による被写体領域であると判定されるための条件には、
1A)予め定められた露光量、絞り値、減光値(ND)で撮像された場合、被写体領域の輝度(明るさ)が、空の画像特徴量として予め定められた輝度以上であること
がある。さらに、
2A)撮像された画像における被写体領域の位置が、予め定められた位置(例えば、画像の上側領域)にあること
3A)予め定められた露光量、絞り値、減光値で撮像された場合、被写体領域の色情報が、空の画像特徴量として固有範囲(既知範囲)であること
が条件に加えられてもよい。
The detection unit 143 detects a subject region (sky mask) due to the sky based on the sky image feature amount. For example, the conditions for determining that the subject area is a subject area due to the sky include:
1A) When an image is captured with a predetermined exposure amount, aperture value, and dimming value (ND), the luminance (brightness) of the subject area may be equal to or higher than a predetermined luminance as an empty image feature amount. is there. further,
2A) The position of the subject region in the captured image is in a predetermined position (for example, the upper region of the image) 3A) When the image is captured with a predetermined exposure amount, aperture value, and dimming value, It may be added as a condition that the color information of the subject area is a unique range (known range) as an empty image feature amount.

次に、撮像装置100の動作手順を説明する。
図2は、空による被写体領域を画像特徴量に基づいて撮像する動作手順を示すフローチャートである。特徴量算出部141は、撮像された画像(スルー画像、又はスルー画像列)を、バッファメモリ部130から取り込み(ステップS1)、取り込んだ画像に対して、基本的な画像処理を実行する(ステップS2)。
Next, an operation procedure of the imaging apparatus 100 will be described.
FIG. 2 is a flowchart illustrating an operation procedure for capturing an image of a subject area in the sky based on an image feature amount. The feature amount calculation unit 141 captures a captured image (through image or through image sequence) from the buffer memory unit 130 (step S1), and executes basic image processing on the captured image (step S1). S2).

領域抽出部142は、リサイズした画像を、バッファメモリ部130を介して画像特徴量(例えば、輝度Y,色差U,色差V)毎に読み込む(ステップS3)。領域抽出部142は、読み込んだ画像における複数の画像特徴量について、近似している画像特徴量に基づいて被写体領域を抽出する(ステップS4)。また、領域抽出部142は、抽出した被写体領域に対してラベリングを実行することにより、ラベルを割り当てる(ステップS5)。   The region extraction unit 142 reads the resized image for each image feature amount (for example, luminance Y, color difference U, color difference V) via the buffer memory unit 130 (step S3). The region extraction unit 142 extracts a subject region based on the approximate image feature amount for a plurality of image feature amounts in the read image (step S4). Further, the region extraction unit 142 assigns a label by executing labeling on the extracted subject region (step S5).

領域抽出部142は、ノイズと推定される領域が画像にある場合、それらの領域を画像から除去する。また、領域抽出部142は、背景と推定される領域が画像にある場合、その領域を画像から除去する(ステップS6)。   If there are regions that are estimated to be noise in the image, the region extraction unit 142 removes those regions from the image. In addition, when the region estimated to be the background is in the image, the region extraction unit 142 removes the region from the image (step S6).

検出部143は、無限遠に在る被写体による被写体領域を検出する(ステップS7)。検出部143は、被写体輝度BV値を測光した結果としての露光量(さらに、絞り値、減光値(ND)が考慮されてもよい)で撮像された被写体領域の輝度(明るさ)(又は、色情報が考慮されてもよい)、及び画像における被写体領域の位置に基づいて、無限遠に在る被写体による被写体領域のうちから、空による被写体領域を検出する(ステップS8)。   The detection unit 143 detects a subject area of a subject at infinity (step S7). The detection unit 143 detects the luminance (brightness) (or brightness) (or brightness) (or brightness) (or brightness) of the subject area (or the aperture value or the dimming value (ND) may be taken into account) as a result of photometry of the subject brightness BV value Color information may be taken into account), and the subject area due to the sky is detected from the subject areas due to the subject at infinity based on the position of the subject area in the image (step S8).

CPU190は、空による被写体領域を撮像するか否か、すなわち、コントラストスキャンを実行する対象の位置(AFポイント)と、空による被写体領域の位置とが一致するか否かを判定する。CPU190は、空による被写体領域を撮像する場合、無限遠に合焦させるレンズ位置までAFレンズ112を駆動させる(ステップS9)。撮像部110は、露光(撮像処理)を実行する(ステップS10)。   The CPU 190 determines whether or not the subject area in the sky is to be imaged, that is, whether or not the position of the target for executing the contrast scan (AF point) matches the position of the subject area in the sky. When imaging a subject area in the sky, the CPU 190 drives the AF lens 112 to a lens position for focusing at infinity (step S9). The imaging unit 110 performs exposure (imaging process) (step S10).

また、CPU190は、空による被写体領域を撮像する場合、ステップS9を実行する代わりに、無限遠に合焦させるレンズ位置の近傍(一定範囲)でAFレンズ112を駆動させて、コントラストスキャンを実行し、このコントラストスキャンの結果に基づいて、空による被写体領域に合焦させてもよい(ステップS11)。   In addition, when imaging a subject area in the sky, the CPU 190 drives the AF lens 112 in the vicinity of a lens position focused on infinity (a certain range) instead of executing step S9, and executes contrast scanning. Based on the result of this contrast scan, the subject area in the sky may be focused (step S11).

以上のように、撮像装置100は、撮像する撮像部110と、撮像された被写体の画像特徴量(例えば、輝度)を算出する特徴量算出部141と、無限遠に在る前記被写体を、被写体輝度BV値、前記画像特徴量(例えば、輝度)に基づいて検出する検出部143と、無限遠に在る前記被写体が検出された場合、無限遠に合焦させる方向にAFレンズ112を駆動させるCPU190(制御部)と、を備える。   As described above, the imaging apparatus 100 includes the imaging unit 110 that captures an image, the feature amount calculation unit 141 that calculates the image feature amount (for example, luminance) of the captured subject, and the subject at infinity as the subject. The detection unit 143 that detects based on the brightness BV value and the image feature amount (for example, brightness), and when the subject at infinity is detected, the AF lens 112 is driven in a direction to focus at infinity. CPU190 (control part).

この構成により、CPU190は、無限遠に在る前記被写体が検出された場合、無限遠に合焦させる方向にAFレンズ112を駆動させる。これにより、撮像装置100は、無限遠に在る被写体を適切に撮像することができる。例えば、撮像装置100は、無限遠に在る被写体(例えば、空、山)に合焦(AF)させるまでの時間を短くすることができる(スキャン時間及び撮像ラグの短縮)。また、撮像装置100は、被写体が低コントラストである場合でも、画角及びズーム倍率に関係なく無限遠に在る被写体に、コントラストスキャンすることなく合焦させることができる。また、被写体の抽出とその特徴量が無限被写体の性質を備えている場合、撮像装置100は、測距することなく、被写体領域に合焦させることができる。   With this configuration, when the subject at infinity is detected, the CPU 190 drives the AF lens 112 in a direction to focus at infinity. Thereby, the imaging device 100 can appropriately capture an image of a subject at infinity. For example, the imaging apparatus 100 can shorten the time required to focus (AF) on a subject (for example, the sky or a mountain) located at infinity (shortening the scanning time and imaging lag). Further, even when the subject has a low contrast, the imaging apparatus 100 can focus on the subject at infinity regardless of the angle of view and the zoom magnification without performing a contrast scan. In addition, when the subject extraction and the feature amount have the properties of an infinite subject, the imaging apparatus 100 can focus on the subject area without measuring the distance.

また、撮像された画像から被写体領域(例えば、空による被写体領域)を抽出する領域抽出部142を備え、特徴量算出部141は、前記画像特徴量として、前記被写体領域の輝度を算出し、検出部143は、前記被写体領域のうち、前記被写体領域の輝度が予め定められた輝度以上である前記被写体領域を、前記被写体として検出する。
この構成により、検出部143は、前記被写体領域のうち、前記被写体領域の輝度が予め定められた輝度以上である前記被写体領域を、前記被写体(例えば、空、山)として検出する。これにより、撮像装置100は、無限遠に在る被写体を、被写体領域の輝度に基づいて適切に撮像することができる。
Further, the image processing apparatus includes an area extracting unit 142 that extracts a subject area (for example, a subject area in the sky) from the captured image, and the feature amount calculating unit 141 calculates and detects the luminance of the subject region as the image feature amount. The unit 143 detects, as the subject, the subject region in which the luminance of the subject region is equal to or higher than a predetermined luminance among the subject regions.
With this configuration, the detection unit 143 detects, as the subject (for example, sky or mountain), the subject region in the subject region in which the brightness of the subject region is equal to or higher than a predetermined brightness. As a result, the imaging apparatus 100 can appropriately capture a subject at infinity based on the luminance of the subject region.

また、特徴量算出部141は、撮像された空の画像特徴量を算出し、検出部143は、無限遠に在る前記被写体である空を、空の画像特徴量に基づいて検出する。
これにより、撮像装置100は、無限遠に在る空を適切に撮像することができる。
The feature amount calculation unit 141 calculates a captured sky image feature amount, and the detection unit 143 detects the sky that is the subject at infinity based on the sky image feature amount.
Thereby, the imaging device 100 can appropriately image the sky at infinity.

また、CPU190は、無限遠に合焦させるレンズ位置の近傍(一定範囲)でAFレンズ112を駆動させてコントラストスキャンを実行し、該コントラストスキャンの結果に基づいて、前記被写体に合焦させる。
これにより、撮像装置100は、工場出荷時に調整済みのレンズ位置が、時間経過、温度特性、又は撮像装置の姿勢差により変化した場合でも、無限遠に在る被写体に合焦させることができる。また、撮像装置100は、被写体が無限遠より手前に在る場合でも、合焦の精度を確保することができる。
Further, the CPU 190 drives the AF lens 112 in the vicinity of a lens position focused on infinity (a certain range) to execute a contrast scan, and focuses the subject based on the result of the contrast scan.
Accordingly, the imaging apparatus 100 can focus on a subject at infinity even when the lens position adjusted at the time of shipment from the factory changes due to the passage of time, temperature characteristics, or the attitude difference of the imaging apparatus. Further, the imaging apparatus 100 can ensure the accuracy of focusing even when the subject is in front of infinity.

また、CPU190は、撮像部110により撮像された画像に検出された、無限遠に在る被写体による領域(所定領域、例えば、中心領域、又は、任意の位置に在る領域)に対してコントラストスキャンを実行し、該コントラストスキャンの結果により検出されたコントラストのピーク値が、予め定められたピーク値未満である場合、前記所定領域の周辺に対してコントラストスキャンを更に実行する。
これにより、撮像装置100は、無限遠に在る被写体が低コントラストである場合(例えば、被写体である空が一様でエッジが無いために、コントラストの評価ができない場合)でも、前記中心領域の周辺のコントラストに基づいて、無限遠に在る被写体に合焦させることができる。但し、この場合、撮像装置100は、無限遠に無い直近の物体のエッジのコントラストを評価してしまうことが無いよう、合焦した際のレンズの位置に制限を設けることで、無限遠に無い直近の物体のエッジの影響を排除することが必要である。
Further, the CPU 190 performs contrast scan on a region (predetermined region, for example, a central region or a region located at an arbitrary position) detected by the image captured by the image capturing unit 110 and formed by a subject at infinity. When the peak value of the contrast detected from the result of the contrast scan is less than a predetermined peak value, the contrast scan is further executed around the predetermined area.
As a result, the imaging apparatus 100 can detect the central region even when the subject at infinity has low contrast (for example, when the subject sky is uniform and the edge cannot be evaluated). Based on the surrounding contrast, it is possible to focus on a subject at infinity. However, in this case, the imaging apparatus 100 is not at infinity by providing a restriction on the position of the lens when focused so as not to evaluate the contrast of the edge of the nearest object that is not at infinity. It is necessary to eliminate the influence of the latest object edge.

また、CPU190は、前記被写体に対して予め定められたピーク値以上のコントラストが、コントラストスキャンにより検出された場合、前記ピーク値を示すレンズ位置までAFレンズ112を駆動させる。
これにより、撮像装置100は、工場出荷時に調整済みのレンズ位置が、時間経過、温度特性、又は撮像装置の姿勢差により変化した場合でも、無限遠に在る被写体に合焦させることができる。なお、このレンズ位置は、工場出荷時の無限レンズ位置(初期値)を校正又は追加補正するための情報として、記憶される。また、記憶されたレンズ位置は、時間が経過した場合、又は、温度が変化した場合に、再度、更新されてもよい。
また、撮像装置100は、被写体が無限遠より手前に在る場合でも、合焦の精度を確保することができる。
Further, when a contrast equal to or higher than a predetermined peak value for the subject is detected by contrast scanning, the CPU 190 drives the AF lens 112 to a lens position showing the peak value.
Accordingly, the imaging apparatus 100 can focus on a subject at infinity even when the lens position adjusted at the time of shipment from the factory changes due to the passage of time, temperature characteristics, or the attitude difference of the imaging apparatus. This lens position is stored as information for calibrating or additionally correcting the infinite lens position (initial value) at the time of shipment from the factory. The stored lens position may be updated again when time passes or when the temperature changes.
Further, the imaging apparatus 100 can ensure the accuracy of focusing even when the subject is in front of infinity.

また、CPU190は、画像における予め定められた位置に前記被写体(例えば、空)が撮像されている場合、無限遠に合焦させる方向にAFレンズ112を駆動させる。
この構成により、撮像装置100は、例えば、空による被写体領域を撮像するか否か、すなわち、AFポイントの位置と空による被写体領域の位置とが一致するか否かを判定し、空による被写体領域を撮像する場合には、無限遠に合焦させる方向にAFレンズ112を駆動させる。これにより、撮像装置100は、無限遠に在る被写体(例えば、空、山)に合焦(AF)させるまでの時間を、被写体までの距離を測距する場合と比較して短くすることができる。
In addition, when the subject (for example, the sky) is imaged at a predetermined position in the image, the CPU 190 drives the AF lens 112 in a direction to focus at infinity.
With this configuration, the imaging apparatus 100 determines, for example, whether or not to capture a subject area in the sky, that is, whether or not the position of the AF point matches the position of the subject area in the sky, and the subject area in the sky When the image is taken, the AF lens 112 is driven in a direction to focus at infinity. As a result, the imaging apparatus 100 can shorten the time until focusing (AF) is performed on an object at infinity (for example, sky or mountain) as compared with the case of measuring the distance to the object. it can.

[第2実施形態]
第2実施形態では、CPU190が、自装置から被写体までの距離(測距された奥行き)を測定する点が、第1実施形態と相違する。以下では、第1実施形態との相違点についてのみ説明する。
[Second Embodiment]
The second embodiment is different from the first embodiment in that the CPU 190 measures the distance (measured depth) from the own device to the subject. Only the differences from the first embodiment will be described below.

撮像装置100の構成を説明する。
CPU190(制御部)は、表示部150にスルー画を表示させている状態で、自装置から被写体までの距離(奥行き)を測定する。ここで、CPU190は、自装置から被写体までの距離を、例えば、位相差検出方式又はコントラストスキャンにより測定する。CPU190は、予め定められた被写体が検出部143により検出された場合、無限遠に合焦させる方向にAFレンズ112を駆動させる。
A configuration of the imaging apparatus 100 will be described.
The CPU 190 (control unit) measures the distance (depth) from the own device to the subject in a state where the through image is displayed on the display unit 150. Here, the CPU 190 measures the distance from the own apparatus to the subject by, for example, a phase difference detection method or a contrast scan. When a predetermined subject is detected by the detection unit 143, the CPU 190 drives the AF lens 112 in a direction to focus at infinity.

なお、CPU190は、無限遠に合焦させるAFレンズ112のレンズ位置の近傍で、AFレンズ112を駆動させてコントラストスキャンを実行し、このコントラストスキャンの結果に基づいて、被写体に合焦させてもよい。ここで、無限遠に合焦させるAFレンズ112のレンズ位置の近傍とは、例えば、無限遠に合焦させるAFレンズ112のレンズ位置を含むレンズ駆動範囲の一部である。   It should be noted that the CPU 190 drives the AF lens 112 in the vicinity of the lens position of the AF lens 112 to be focused at infinity, executes a contrast scan, and may focus on the subject based on the result of the contrast scan. Good. Here, the vicinity of the lens position of the AF lens 112 focused at infinity is, for example, a part of the lens driving range including the lens position of the AF lens 112 focused at infinity.

記憶部160は、被写体領域を検出するために予め定められたプロファイルデータを記憶する。図3には、空による被写体領域を検出するためのプロファイル(以下、「空用プロファイル」という)の例が示されている(ISO感度100)。空用プロファイルの項目には、一例として、画像の種別と、露光量EVと、検知用カラーバランスCBと、設定用カラーバランスと、カラーマトリクスとがある。   The storage unit 160 stores predetermined profile data for detecting the subject area. FIG. 3 shows an example of a profile (hereinafter referred to as “empty profile”) for detecting a subject area due to the sky (ISO sensitivity 100). The sky profile items include, for example, an image type, an exposure EV, a detection color balance CB, a setting color balance, and a color matrix.

画像の種別(タイプ)には、例えば、晴天シーンと、曇天シーンと、雨天シーンと、夕景シーンと、朝焼けシーンと、夜景シーンと、花火シーンとがある。さらに、画像の各種別には、被写体領域が撮像された緯度及び経度と、撮像装置に対する被写体の方位、被写体領域を撮像した際の日時と、撮像装置100が備えるセンサ(不図示)により測定された撮像装置のチルト角とが定められていてもよい。   Examples of the image type include a clear sky scene, a cloudy scene, a rainy scene, an evening scene, a morning glow scene, a night scene, and a fireworks scene. Furthermore, for each type of image, the latitude and longitude at which the subject area was imaged, the orientation of the subject with respect to the imaging device, the date and time when the subject area was imaged, and a sensor (not shown) included in the imaging device 100 were measured. The tilt angle of the imaging device may be determined.

露光量EVは、被写体領域が撮像された際(撮像時)の画像の種別毎の露光量である。露光量EVと、輝度 (Brightness Value:Bv)と、感度Sv (Speed Value:Sv)と、絞り値Avと、シャッタ速度(Time Value:Tv)とには、露光量EV=輝度Bv+感度Sv=絞り値Av+シャッタ速度Tvという関係がある。   The exposure amount EV is an exposure amount for each type of image when the subject area is imaged (at the time of imaging). The exposure amount EV = luminance Bv + sensitivity Sv = the exposure amount EV, the brightness (Brightness Value: Bv), the sensitivity Sv (Speed Value: Sv), the aperture value Av, and the shutter speed (Time Value: Tv). There is a relationship of aperture value Av + shutter speed Tv.

検知用カラーバランスCB(R:G:B)は、画像の種別毎に予め測定された、空による被写体領域として固有の色情報である。季節、緯度及び経度、撮像時刻、並びに、空の状態に応じて、空のカラーバランス(分光、色温度)は変化するものの、例えば、晴天の場合であれば、空のカラーバランスは、固有のカラーバランス範囲に概ね収まる。   The detection color balance CB (R: G: B) is color information unique to the sky subject area, measured in advance for each type of image. Although the sky color balance (spectrum, color temperature) changes according to the season, latitude and longitude, imaging time, and sky condition, for example, in the case of fine weather, the sky color balance is unique. Generally fits within the color balance range.

設定用カラーバランスは、画像の種別毎に予め定められたホワイトバランス係数(基準ホワイトバランス)である。空による被写体領域を撮像する際、CPU190は、撮像部110に基準ホワイトバランス係数を定める。これにより、撮像部110は、基準ホワイトバランス係数に基づいて、空による被写体領域を撮像することができる。   The setting color balance is a white balance coefficient (reference white balance) determined in advance for each type of image. The CPU 190 determines a reference white balance coefficient in the image capturing unit 110 when capturing an image of a subject area in the sky. Thereby, the imaging unit 110 can capture an image of a subject area in the sky based on the reference white balance coefficient.

カラーマトリクスは、画像の種別毎の画像処理用情報として予め定められたカラーマトリクスである。設定用カラーバランスは、カラーマトリクス代わりに、例えば、ルックアップテーブル(LUT)に基づいて適切に定められてもよい。   The color matrix is a color matrix predetermined as image processing information for each type of image. The setting color balance may be appropriately determined based on, for example, a lookup table (LUT) instead of the color matrix.

図1に戻り、撮像装置100の構成の説明を続ける。検出部143は、撮像用情報及び画像処理用情報として、画像の種別(例えば、晴天、曇天、雨天、夕景、朝焼け、夜景、花火)を定める。ここで、検出部143は、空用プロファイルの各項目と、撮像された被写体領域の各項目とをパターン照合することにより、画像の種別を定める。例えば、検出部143は、空用プロファイルの検知用カラーバランスと、撮像された被写体領域のカラーバランス(画像特徴量)とをパターン照合する。パターン照合により一致する項目が閾値以上である画像の種別が在る場合、検出部143は、一致する項目が閾値以上である画像の種別を、撮像された画像の種別と定める。   Returning to FIG. 1, the description of the configuration of the imaging apparatus 100 will be continued. The detection unit 143 determines the type of image (for example, fine weather, cloudy weather, rainy weather, evening scene, sunrise, night scene, fireworks) as imaging information and image processing information. Here, the detection unit 143 determines the type of image by pattern matching each item of the empty profile and each item of the captured subject area. For example, the detection unit 143 performs pattern matching between the color balance for detecting the sky profile and the color balance (image feature amount) of the captured subject area. When there is an image type whose matching item is equal to or greater than the threshold value by pattern matching, the detection unit 143 determines the image type whose matching item is equal to or greater than the threshold value as the type of the captured image.

また、検出部143は、撮像された画像の種別に基づいて、撮像用情報及び画像処理用情報として、画像のホワイトバランス(カラーバランス)を定める。例えば、検出部143は、空用プロファイルにおいて、撮像された空の種別に対応するホワイトバランス(カラーバランス)を、撮像用情報及び画像処理用情報として定める。   Further, the detection unit 143 determines the white balance (color balance) of the image as the imaging information and the image processing information based on the type of the captured image. For example, in the sky profile, the detection unit 143 determines white balance (color balance) corresponding to the captured sky type as image pickup information and image processing information.

また、検出部143は、撮像用情報及び画像処理用情報として、画像のシーンを定める。例えば、検出部143は、風景が撮像されている画像であるか否かを、空による被写体領域の面積に基づいて判定し、判定結果を表示部150に表示させる。検出部143は、例えば、空による被写体領域の面積が閾値以上である場合、風景が撮像されている画像(風景シーン)であると判定する。   In addition, the detection unit 143 determines an image scene as the imaging information and the image processing information. For example, the detection unit 143 determines whether or not the image is a landscape image based on the area of the subject area due to the sky, and causes the display unit 150 to display the determination result. For example, when the area of the subject region due to the sky is equal to or greater than the threshold, the detection unit 143 determines that the image is a landscape image (landscape scene).

また、検出部143は、全ての被写体領域が、無限遠に在る被写体による被写体領域である場合、風景が撮像されている画像(風景シーン)であると判定する。検出部143は、シーン判定の結果をCPU190に通知する。なお、シーン判定の結果は、画像処理に反映されてもよい。例えば、夕焼けシーンであると判定された場合、赤色の彩度を上げる画像処理が、画像に施されてもよい。風景シーンであると判定された場合、空気による霞を低減するため、コントラストがやや強調されてもよいし、エッジを強調する画像処理が、画像に施されてもよい。   In addition, when all the subject areas are subject areas formed by subjects at infinity, the detection unit 143 determines that the image is a landscape image (landscape scene). The detection unit 143 notifies the CPU 190 of the result of the scene determination. Note that the result of the scene determination may be reflected in the image processing. For example, when it is determined that the scene is a sunset scene, image processing for increasing red saturation may be performed on the image. When it is determined that the scene is a landscape scene, the contrast may be slightly emphasized in order to reduce wrinkles due to air, and image processing for enhancing the edge may be performed on the image.

図4には、被写体領域の例が示されている。図4(A)には、抽出された被写体領域の例が示されている。図4(A)では、被写体領域300、302、303及び304が画像に抽出されたとする。また、図4(B)には、抽出された被写体領域のうち、無限遠に在る被写体による被写体領域(背景マスク)の例が示されている。図4(B)では、無限遠に在る被写体による被写体領域として、被写体領域300、303及び304が画像に抽出されたとする。   FIG. 4 shows an example of the subject area. FIG. 4A shows an example of the extracted subject area. In FIG. 4A, it is assumed that the subject areas 300, 302, 303, and 304 are extracted in the image. FIG. 4B shows an example of a subject area (background mask) by a subject located at infinity among the extracted subject areas. In FIG. 4B, it is assumed that subject areas 300, 303, and 304 are extracted from the image as subject areas of a subject at infinity.

検出部143は、画像特徴量と、自装置から被写体までの距離(奥行き)とに基づいて、予め定められた被写体(例えば、空)を検出する。例えば、検出部143は、被写体領域のカラーバランスが空用プロファイルデータの検知用カラーバランスと一致し、且つ、その被写体領域が無限遠に在る場合、その被写体領域が空による被写体領域であると判定する。これにより、空による被写体領域として、例えば、被写体領域304が検出される(雲の真ん中が空いている構図)。   The detection unit 143 detects a predetermined subject (for example, sky) based on the image feature amount and the distance (depth) from the device to the subject. For example, when the color balance of the subject area matches the detection color balance of the sky profile data and the subject area is at infinity, the detection unit 143 determines that the subject area is a subject area due to the sky. judge. Thereby, for example, the subject region 304 is detected as the subject region by the sky (composition in which the middle of the cloud is empty).

次に、撮像装置100の動作手順を説明する。
図5は、空による被写体領域を画像特徴量と距離とに基づいて撮像する動作手順を示すフローチャートである。CPU190は、予め定められた基準露光量、及び基準ホワイトバランス(検知用カラーバランス)を撮像部110に設定し、撮像部110に撮像させる(ステップSa1)。撮像部110は、基準露光量及び基準ホワイトバランスに基づいて、スルー画を露光する(撮像処理)(ステップSa2)。
Next, an operation procedure of the imaging apparatus 100 will be described.
FIG. 5 is a flowchart illustrating an operation procedure for capturing an image of a subject area in the sky based on an image feature amount and a distance. The CPU 190 sets a predetermined reference exposure amount and a reference white balance (detection color balance) in the imaging unit 110, and causes the imaging unit 110 to capture an image (step Sa1). The imaging unit 110 exposes the through image based on the reference exposure amount and the reference white balance (imaging process) (step Sa2).

領域抽出部142は、画像特徴量に基づいて被写体領域を抽出する。検出部143は、領域抽出部142により抽出された被写体領域のうち、無限遠に在る被写体による被写体領域を、画像特徴量に基づいて検出する。検出部143は、無限遠に在る被写体による被写体領域を示す情報(領域条件)を、記憶部160に記憶させる(ステップSa3)。   The region extraction unit 142 extracts a subject region based on the image feature amount. The detection unit 143 detects a subject region due to a subject at infinity among the subject regions extracted by the region extraction unit 142 based on the image feature amount. The detection unit 143 causes the storage unit 160 to store information (region condition) indicating the subject region of the subject at infinity (step Sa3).

CPU190は、自装置から各被写体までの距離(奥行き)を測定する。ここで、測定した距離が無限遠である場合、CPU190は、その被写体による被写体領域の内側及び外側の両方について、その被写体までの距離を測定する(ステップSa4)。また、CPU190は、無限遠に在る被写体までの距離を測定する(ステップSa5)。   The CPU 190 measures the distance (depth) from the own device to each subject. Here, when the measured distance is infinity, the CPU 190 measures the distance to the subject for both the inside and outside of the subject area of the subject (step Sa4). Further, the CPU 190 measures the distance to the subject at infinity (step Sa5).

検出部143は、画像特徴量(例えば、カラーバランス)と、自装置から被写体までの距離(奥行き)とに基づいて、空による被写体領域を検出する(ステップSa6)。CPU190は、画像記憶指示(撮像トリガー)があるか否かを判定する(ステップSa7)。画像記憶指示がある場合(ステップSa7−Yes)、CPU190は、空による被写体領域を撮像するか否か、すなわち、コントラストスキャンを実行する対象の位置(AFポイント)と、空による被写体領域の位置とが一致するか否かを判定する(ステップSa8)。   The detection unit 143 detects a subject region due to the sky based on the image feature amount (for example, color balance) and the distance (depth) from the device to the subject (step Sa6). The CPU 190 determines whether or not there is an image storage instruction (imaging trigger) (step Sa7). When there is an image storage instruction (step Sa7-Yes), the CPU 190 determines whether or not to image the subject area by the sky, that is, the target position (AF point) for executing the contrast scan, and the position of the subject area by the sky. Are determined to match (step Sa8).

空による被写体領域を撮像する場合(ステップSa8−Yes)、CPU190は、無限遠に合焦させるレンズ位置を含む一定範囲内まで、AFレンズ112を駆動させる(ステップSa9)。CPU190は、この一定範囲内でAFレンズ112を駆動させるコントラストスキャンにより、予め定められた値(空用プロファイル内に格納されている値でもよい)に基づく閾値以上のコントラストのピーク値が検出されたか否かを判定する(ステップSa10)。   When imaging the subject area in the sky (step Sa8—Yes), the CPU 190 drives the AF lens 112 to a certain range including the lens position to be focused at infinity (step Sa9). Whether the CPU 190 has detected a peak value of contrast equal to or higher than a threshold value based on a predetermined value (may be a value stored in the sky profile) by contrast scanning that drives the AF lens 112 within the predetermined range. It is determined whether or not (step Sa10).

閾値以上のコントラストのピーク値が検出されない場合(ステップSa10−No)、CPU190は、無限遠に合焦させるレンズ位置までAFレンズ112を駆動させる(ステップSa11)。撮像部110は、露光(撮像処理)を実行する(ステップSa12)。 一方、閾値以上のコントラストのピーク値が検出された場合(ステップSa10−Yes)、CPU190は、ピーク値を示すレンズ位置までAFレンズ112を駆動させる(ステップSa13)。そして、CPU190は、ステップSa12に処理を進める。   When the peak value of the contrast equal to or higher than the threshold is not detected (step Sa10-No), the CPU 190 drives the AF lens 112 to the lens position for focusing at infinity (step Sa11). The imaging unit 110 performs exposure (imaging process) (step Sa12). On the other hand, when the contrast peak value equal to or greater than the threshold is detected (step Sa10-Yes), the CPU 190 drives the AF lens 112 to the lens position indicating the peak value (step Sa13). Then, the CPU 190 advances the process to step Sa12.

また、ステップSa8において、空による被写体領域を撮像しない場合(ステップSa8−No)、CPU190は、所定の通常撮像処理を実行する(ステップSa14)。   In step Sa8, when the subject area due to the sky is not imaged (step Sa8-No), the CPU 190 executes a predetermined normal imaging process (step Sa14).

以上のように、撮像装置100は、撮像する撮像部110と、撮像された被写体の画像特徴量(例えば、輝度、色情報)を算出する特徴量算出部141と、自装置から前記被写体までの距離(測距された奥行き)と前記画像特徴量(プロファイルデータ)とに基づいて、無限遠に在る前記被写体のうちから、予め定められた被写体(例えば、空、山)を検出する検出部143と、前記予め定められた被写体が検出された場合、無限遠に合焦させる方向にAFレンズ112を駆動させるCPU190と、を備える。   As described above, the imaging device 100 includes the imaging unit 110 that captures an image, the feature amount calculation unit 141 that calculates the image feature amount (for example, luminance and color information) of the captured subject, and the own device to the subject. Based on a distance (measured depth) and the image feature amount (profile data), a detection unit that detects a predetermined subject (for example, sky or mountain) from among the subjects at infinity. 143, and a CPU 190 that drives the AF lens 112 in a direction to focus at infinity when the predetermined subject is detected.

この構成により、CPU190は、前記予め定められた被写体が検出された場合、無限遠に合焦させる方向にAFレンズ112を駆動させる。これにより、撮像装置100は、無限遠に在る被写体を、適切に撮像することができる。例えば、撮像装置100は、無限遠に在る被写体(例えば、空、山)に合焦(AF)させるまでの時間を短くすることができる。また、撮像装置100は、低コントラストの遠景に対しても、低コントラスト閾値を利用して合焦させることができる。また、例えば、撮像装置100は、無限遠に在る被写体であるか否かを識別するために、画像における被写体の位置を限定(例えば、画像の上側領域に限定)しなくても、限定された位置以外に撮像された被写体を識別して撮像することができる。   With this configuration, when the predetermined subject is detected, the CPU 190 drives the AF lens 112 in a direction to focus at infinity. Thereby, the imaging device 100 can appropriately capture an image of a subject at infinity. For example, the imaging apparatus 100 can shorten the time until focusing (AF) is performed on a subject (for example, sky or mountain) located at infinity. Further, the imaging apparatus 100 can focus on a low-contrast distant view using a low-contrast threshold. In addition, for example, the imaging apparatus 100 is limited even if the position of the subject in the image is not limited (for example, limited to the upper region of the image) in order to identify whether or not the subject is at infinity. It is possible to identify and image a subject imaged at a position other than the selected position.

また、撮像装置100は、無限遠に在る被写体を、適切に露出調整(AE)することができる。また、撮像装置100は、無限遠に在る被写体を含むシーンを、適切に判定することができる。また、撮像装置100は、遮蔽物の間に空が僅かに見えている(例えば、木々の真ん中が空いている)特異な構図を、適切に撮像することができる。また、空は無限遠に在るため、焦点を再度調整する必要性がないので、撮像装置100は、無限遠に焦点を固定すること(置きピン)が可能である。   In addition, the imaging apparatus 100 can appropriately perform exposure adjustment (AE) on a subject at infinity. Further, the imaging apparatus 100 can appropriately determine a scene including a subject at infinity. Further, the imaging apparatus 100 can appropriately capture a unique composition in which the sky is slightly visible between the shielding objects (for example, the middle of the trees is empty). Also, since the sky is at infinity, there is no need to adjust the focus again, so the imaging apparatus 100 can fix the focus at infinity (placement pin).

[第3実施形態]
第3実施形態では、オンザフライ調整(ユーザの操作による現場調整)が実行される点が、第1実施形態及び第2実施形態と相違する。以下では、第1実施形態及び第2実施形態との相違点についてのみ説明する。
[Third Embodiment]
The third embodiment is different from the first embodiment and the second embodiment in that on-the-fly adjustment (on-site adjustment by a user operation) is executed. Hereinafter, only differences from the first embodiment and the second embodiment will be described.

無限遠に合焦させるAFレンズ112のレンズ位置の調整は、撮像装置100の工場出荷時に行われるのが一般的である。第3実施形態では、CPU190は、無限遠に在り且つコントラストが高い被写体(例えば、空とその直下の建物)を利用して、無限遠に合焦させるAFレンズ112のレンズ位置を再調整する。   Adjustment of the lens position of the AF lens 112 to be focused at infinity is generally performed at the time of shipment of the imaging apparatus 100 from the factory. In the third embodiment, the CPU 190 re-adjusts the lens position of the AF lens 112 that focuses at infinity using a subject that is at infinity and has high contrast (for example, the sky and a building immediately below it).

操作部180は、ユーザによる操作入力により、シーンモードの指定を受け付ける。以下では、一例として、風景を撮像するためのシーンモードである「風景シーン」が指定されたものとして説明を続ける。また、撮像部110は、撮像装置100が保持されていることにより、無限遠に在る空に向けられているとする。   The operation unit 180 accepts designation of a scene mode by an operation input by a user. In the following, description will be continued assuming that “landscape scene”, which is a scene mode for capturing a landscape, is designated as an example. In addition, it is assumed that the imaging unit 110 is directed to the sky at infinity because the imaging device 100 is held.

検出部143は、空による被写体領域を、空の画像特徴量に基づいて検出する。ここで、検出部143は、領域抽出部142により抽出された被写体領域でなく、バッファメモリ部130から取得した画像から、空による被写体領域を、空の画像特徴量に基づいて検出してもよい。   The detection unit 143 detects the subject area due to the sky based on the sky image feature amount. Here, the detection unit 143 may detect the subject region due to the sky from the image acquired from the buffer memory unit 130 instead of the subject region extracted by the region extraction unit 142 based on the sky image feature amount. .

被写体領域が、空による被写体領域であると判定されるための条件には、
1B)予め定められた露光量、絞り値、減光値(ND)で撮像された場合、すなわち、測光された被写体輝度BV値が所定値以上であり、且つ、被写体領域の輝度(明るさ)が、空の画像特徴量として予め定められた輝度以上であること
がある。さらに、
2B)撮像された画像における被写体領域の位置が、予め定められた位置(例えば、画像の上側領域)にあること
3B)予め定められた露光量、絞り値、減光値で撮像された場合、被写体領域の色情報が、空の画像特徴量として固有範囲(既知範囲)であること
が条件に加えられてもよい。
The conditions for determining that the subject area is a subject area due to the sky are:
1B) When an image is captured with a predetermined exposure amount, aperture value, and dimming value (ND), that is, the measured subject brightness BV value is equal to or greater than a predetermined value, and the brightness (brightness) of the subject area May be greater than or equal to a predetermined brightness as an empty image feature amount. further,
2B) The position of the subject region in the captured image is in a predetermined position (for example, the upper region of the image) 3B) When the image is captured with a predetermined exposure amount, aperture value, and dimming value, It may be added as a condition that the color information of the subject area is a unique range (known range) as an empty image feature amount.

また、CPU190は、空による被写体領域であると判定されるための条件を満たす被写体領域(マスク)と、その被写体領域の境界を含む領域とに対し、自装置から被写体までの距離を、例えば、位相差検出方式又はコントラストスキャンにより測定する。   Further, the CPU 190 determines the distance from the own device to the subject with respect to the subject region (mask) that satisfies the condition for determining that the subject region is the sky and the region including the boundary of the subject region, for example, Measure by phase difference detection method or contrast scan.

CPU190は、検出されたコントラストのピーク値を示すレンズ位置が、無限遠に合焦させるレンズ位置(再調整前)に対して無限側に在る場合、検出されたコントラストのピーク値を示すレンズ位置を、無限遠に合焦させるレンズ位置(再調整後)として、記憶部160に記憶させる。また、CPU190は、検出されたコントラストのピーク値を示すレンズ位置が、無限遠に合焦させるレンズ位置(再調整前)に対して至近側に在り、且つ、一定範囲内に在る場合、検出されたコントラストのピーク値を示すレンズ位置を、無限遠に合焦させるレンズ位置(再調整後)として、記憶部160に記憶させる。   If the lens position indicating the detected contrast peak value is on the infinity side with respect to the lens position focused on infinity (before readjustment), the CPU 190 indicates the detected contrast peak value. Is stored in the storage unit 160 as a lens position (after readjustment) for focusing at infinity. Further, the CPU 190 detects when the detected lens position indicating the peak value of the contrast is close to the lens position for focusing at infinity (before readjustment) and within a certain range. The lens position indicating the peak value of the contrast is stored in the storage unit 160 as a lens position (after readjustment) for focusing at infinity.

以上のように、記憶部160は、無限遠に在る被写体に対するコントラストスキャンにより検出されたコントラストのピーク値を示すレンズ位置を記憶する。
これにより、記憶部160を備える撮像装置100は、撮像装置100は、工場出荷時に調整済みのレンズ位置が、時間経過、温度特性、又は撮像装置の姿勢差により変化した場合でも、無限遠に在る被写体に合焦させることができる。また、記憶部160を備える撮像装置100は、被写体が無限遠より手前に在る場合でも、合焦の精度を確保することができる。また、記憶部160を備える撮像装置100は、撮像装置100及びレンズ鏡筒111が修理部門に戻されなくても、オンザフライ調整を実行することができる。
As described above, the storage unit 160 stores the lens position indicating the peak value of the contrast detected by the contrast scan for the subject at infinity.
Thereby, the imaging apparatus 100 including the storage unit 160 is located at infinity even when the lens position adjusted at the time of shipment from the factory changes due to the passage of time, temperature characteristics, or the attitude difference of the imaging apparatus. Can be focused on the subject. In addition, the imaging apparatus 100 including the storage unit 160 can ensure the accuracy of focusing even when the subject is in front of the infinity. Further, the imaging apparatus 100 including the storage unit 160 can perform on-the-fly adjustment even if the imaging apparatus 100 and the lens barrel 111 are not returned to the repair department.

以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.

例えば、検出部143は、被写体領域に他の被写体領域の色又は彩度が、どの程度混ざっているかに基づいて、被写体領域を識別してもよい。ここで、検出部143は、空色が混ざっている緑色の被写体領域を、山による被写体領域であると識別してもよい。   For example, the detection unit 143 may identify the subject region based on how much the subject region is mixed with the color or saturation of another subject region. Here, the detection unit 143 may identify a green subject region in which sky blue is mixed as a subject region due to mountains.

また、上記に説明した撮像装置を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより、実行処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。   In addition, the program for realizing the imaging apparatus described above is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into the computer system and executed, thereby executing an execution process. May be. Here, the “computer system” may include an OS and hardware such as peripheral devices.

また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。   Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used. The “computer-readable recording medium” means a flexible disk, a magneto-optical disk, a ROM, a writable nonvolatile memory such as a flash memory, a portable medium such as a CD-ROM, a hard disk built in a computer system, etc. This is a storage device.

さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。
さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
Further, the “computer-readable recording medium” means a volatile memory (for example, DRAM (Dynamic) in a computer system which becomes a server or a client when a program is transmitted through a network such as the Internet or a communication line such as a telephone line. Random Access Memory)) that holds a program for a certain period of time.
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program may be for realizing a part of the functions described above.
Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

100…撮像装置、110…撮像部、111…レンズ鏡筒、140…画像処理装置、141…特徴量算出部、142…領域抽出部142…検出部、160…記憶部、190…CPU(制御部) DESCRIPTION OF SYMBOLS 100 ... Imaging device, 110 ... Imaging part, 111 ... Lens barrel, 140 ... Image processing apparatus, 141 ... Feature-value calculation part, 142 ... Area extraction part 142 ... Detection part, 160 ... Memory | storage part, 190 ... CPU (control part) )

Claims (12)

合焦レンズを介して撮像する撮像部と、
撮像された被写体の画像特徴量を算出する特徴量算出部と、
撮像された前記被写体のうち、無限遠に在る前記被写体を前記画像特徴量に基づいて検出する検出部と、
無限遠に在る前記被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる制御部と、
を備えることを特徴とする撮像装置。
An imaging unit for imaging through a focusing lens;
A feature amount calculation unit for calculating an image feature amount of the imaged subject;
A detection unit that detects the subject at infinity among the captured subjects based on the image feature amount;
A control unit that drives the focusing lens in a direction to focus on infinity when the subject at infinity is detected;
An imaging apparatus comprising:
撮像された画像から被写体領域を抽出する領域抽出部
を備え、
前記特徴量算出部は、前記画像特徴量として、前記被写体領域の輝度を算出し、
前記検出部は、前記被写体領域のうち、前記被写体領域の輝度が予め定められた輝度以上である前記被写体領域を、前記被写体として検出することを特徴とする請求項1に記載の撮像装置。
An area extraction unit that extracts a subject area from the captured image;
The feature amount calculation unit calculates a luminance of the subject area as the image feature amount,
The imaging apparatus according to claim 1, wherein the detection unit detects, as the subject, the subject region in which the luminance of the subject region is equal to or higher than a predetermined luminance among the subject regions.
前記検出部は、自装置から前記被写体までの距離と前記画像特徴量とに基づいて、無限遠に在る前記被写体のうちから、予め定められた被写体を検出し、
前記制御部は、前記予め定められた被写体が検出された場合、無限遠に合焦させる方向に合焦レンズを駆動させることを特徴とする請求項1又は請求項2に記載の撮像装置。
The detection unit detects a predetermined subject from the subjects at infinity based on a distance from the device to the subject and the image feature amount,
The imaging apparatus according to claim 1, wherein the control unit drives a focusing lens in a direction to focus at infinity when the predetermined subject is detected.
前記検出部は、無限遠に在る前記被写体である空を、空の画像特徴量に基づいて検出することを特徴とする請求項1から請求項3のいずれか一項に記載の撮像装置。   The imaging device according to any one of claims 1 to 3, wherein the detection unit detects the sky that is the subject at infinity based on a sky image feature amount. 前記制御部は、無限遠に合焦させる前記合焦レンズのレンズ位置の近傍で、前記合焦レンズを駆動させてコントラストスキャンを実行し、該コントラストスキャンの結果に基づいて、前記被写体に合焦させることを特徴とする請求項1から請求項4のいずれか一項に記載の撮像装置。   The control unit drives the focusing lens in the vicinity of the lens position of the focusing lens to focus at infinity, and executes contrast scanning, and focuses on the subject based on the result of the contrast scanning. The imaging apparatus according to any one of claims 1 to 4, wherein the imaging apparatus is configured to perform the imaging. 前記制御部は、前記撮像部により撮像された画像の所定領域に対してコントラストスキャンを実行し、該コントラストスキャンの結果により検出されたコントラストのピーク値が、予め定められたピーク値未満である場合、前記所定領域の周辺に対してコントラストスキャンを更に実行することを特徴とする請求項1から請求項5のいずれか一項に記載の撮像装置。   The control unit performs a contrast scan on a predetermined area of the image captured by the imaging unit, and a peak value of the contrast detected based on the result of the contrast scan is less than a predetermined peak value The imaging apparatus according to claim 1, further performing a contrast scan on the periphery of the predetermined area. 前記制御部は、前記被写体に対して予め定められたピーク値以上のコントラストが、コントラストスキャンにより検出された場合、前記ピーク値を示すレンズ位置まで合焦レンズを駆動させることを特徴とする請求項1から請求項6のいずれか一項に記載の撮像装置。   The control unit drives the focusing lens to a lens position indicating the peak value when a contrast equal to or higher than a predetermined peak value for the subject is detected by contrast scanning. The imaging device according to any one of claims 1 to 6. 前記制御部は、画像における予め定められた位置に前記被写体が撮像されている場合、無限遠に合焦させる方向に合焦レンズを駆動させることを特徴とする請求項1から請求項7のいずれか一項に記載の撮像装置。   8. The control unit according to claim 1, wherein when the subject is imaged at a predetermined position in the image, the control unit drives the focusing lens in a direction to focus at infinity. The imaging device according to claim 1. 無限遠に在る被写体に対するコントラストスキャンにより検出されたコントラストのピーク値を示すレンズ位置を記憶することを特徴とする記憶装置。   A storage device for storing a lens position indicating a peak value of contrast detected by contrast scanning for a subject located at infinity. 合焦レンズを介して撮像する撮像部と、
撮像された被写体の画像特徴量を算出する特徴量算出部と、
自装置から前記被写体までの距離と前記画像特徴量とに基づいて、無限遠に在る前記被写体のうちから、予め定められた被写体を検出する検出部と、
前記予め定められた被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる制御部と、
を備えることを特徴とする撮像装置。
An imaging unit for imaging through a focusing lens;
A feature amount calculation unit for calculating an image feature amount of the imaged subject;
A detection unit that detects a predetermined subject from among the subjects at infinity based on a distance from the device to the subject and the image feature amount;
A controller that drives the focusing lens in a direction to focus at infinity when the predetermined subject is detected;
An imaging apparatus comprising:
コンピュータに、
撮像部が、合焦レンズを介して撮像する手順と、
特徴量算出部が、撮像された被写体の画像特徴量を算出する手順と、
検出部が、撮像された前記被写体のうち、無限遠に在る前記被写体を前記画像特徴量に基づいて検出する手順と、
制御部が、無限遠に在る前記被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる手順と、
を実行させるための撮像プログラム。
On the computer,
A procedure in which the imaging unit captures an image through a focusing lens;
A procedure in which the feature amount calculation unit calculates the image feature amount of the imaged subject;
A procedure for detecting, based on the image feature amount, the subject located at infinity among the photographed subjects;
When the control unit detects the subject at infinity, a procedure for driving the focusing lens in a direction to focus at infinity;
An imaging program for executing
コンピュータに、
撮像部が、合焦レンズを介して撮像する手順と、
特徴量算出部が、撮像された被写体の画像特徴量を算出する手順と、
検出部が、自装置から前記被写体までの距離と前記画像特徴量とに基づいて、無限遠に在る前記被写体のうちから、予め定められた被写体を検出する手順と、
制御部が、前記予め定められた被写体が検出された場合、無限遠に合焦させる方向に前記合焦レンズを駆動させる手順と、
を実行させるための撮像プログラム。
On the computer,
A procedure in which the imaging unit captures an image through a focusing lens;
A procedure in which the feature amount calculation unit calculates the image feature amount of the imaged subject;
A procedure for detecting a predetermined subject from among the subjects at infinity based on a distance from the device to the subject and the image feature amount;
When the control unit detects the predetermined subject, a procedure for driving the focusing lens in a direction to focus at infinity;
An imaging program for executing
JP2012161599A 2012-07-20 2012-07-20 Imaging device, storage device, and imaging program Pending JP2014021373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012161599A JP2014021373A (en) 2012-07-20 2012-07-20 Imaging device, storage device, and imaging program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012161599A JP2014021373A (en) 2012-07-20 2012-07-20 Imaging device, storage device, and imaging program

Publications (1)

Publication Number Publication Date
JP2014021373A true JP2014021373A (en) 2014-02-03

Family

ID=50196276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012161599A Pending JP2014021373A (en) 2012-07-20 2012-07-20 Imaging device, storage device, and imaging program

Country Status (1)

Country Link
JP (1) JP2014021373A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9832364B2 (en) 2015-10-09 2017-11-28 Canon Kabushiki Kaisha Automatic focal adjustment apparatus and method of controlling automatic focal adjustment apparatus, and image capture apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9832364B2 (en) 2015-10-09 2017-11-28 Canon Kabushiki Kaisha Automatic focal adjustment apparatus and method of controlling automatic focal adjustment apparatus, and image capture apparatus

Similar Documents

Publication Publication Date Title
US6701075B2 (en) Focus adjusting apparatus, image sensing apparatus, focusing method, program, and storage medium
US20060181634A1 (en) Imaging apparatus having an autofocus function
JP2013021658A (en) Imaging device and control method of the same
US20140071318A1 (en) Imaging apparatus
JP6518452B2 (en) Imaging apparatus and imaging method
US8294785B2 (en) Method for adjusting photosensitiveness of digital camera
JP4509081B2 (en) Digital camera and digital camera program
TWI393981B (en) Use the flash to assist in detecting focal lengths
JP2010072619A (en) Exposure operation device and camera
US11808561B2 (en) Electronic apparatus for controlling a projector to project an image onto a screen at an actual size length, control method thereof and computer readable storage medium
US9888189B2 (en) Image capturing apparatus and storage medium for storing image capturing control program
JP4818130B2 (en) Imaging apparatus and control method thereof
JP2014021373A (en) Imaging device, storage device, and imaging program
JP2010258765A (en) Imaging apparatus
JP5871175B2 (en) Region extraction device, imaging device, and region extraction program
JP6351255B2 (en) Imaging apparatus, imaging method, program, and storage medium
JP5899700B2 (en) Region extraction device, imaging device, and region extraction program
JP2016085248A (en) Exposure computation device
JP6350562B2 (en) Region extraction device, imaging device, and region extraction program
JP2011253099A (en) Focus detector
JP2018181357A (en) Region extraction device
JP5981898B2 (en) Imaging apparatus and control method thereof
JP5888069B2 (en) Area determination apparatus, imaging apparatus, and area determination program
JP2017032754A (en) Imaging device, control method for same, and program
JP2015045759A (en) Imaging device and control method of the same