Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6273766B2 - Image processing apparatus, imaging apparatus, and image processing program - Google Patents
[go: Go Back, main page]

JP6273766B2 - Image processing apparatus, imaging apparatus, and image processing program - Google Patents

Image processing apparatus, imaging apparatus, and image processing program Download PDF

Info

Publication number
JP6273766B2
JP6273766B2 JP2013220995A JP2013220995A JP6273766B2 JP 6273766 B2 JP6273766 B2 JP 6273766B2 JP 2013220995 A JP2013220995 A JP 2013220995A JP 2013220995 A JP2013220995 A JP 2013220995A JP 6273766 B2 JP6273766 B2 JP 6273766B2
Authority
JP
Japan
Prior art keywords
display
unit
image processing
subject
cpu
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.)
Active
Application number
JP2013220995A
Other languages
Japanese (ja)
Other versions
JP2015082801A (en
Inventor
鉾井 逸人
逸人 鉾井
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 JP2013220995A priority Critical patent/JP6273766B2/en
Publication of JP2015082801A publication Critical patent/JP2015082801A/en
Application granted granted Critical
Publication of JP6273766B2 publication Critical patent/JP6273766B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、画像処理装置、撮像装置、および画像処理プログラムに関する。   The present invention relates to an image processing device, an imaging device, and an image processing program.

従来、焦点調節に関する様々な技術が考えられている。例えば、特許文献1の発明では、被写体抽出の手法を用いた焦点調節を行う撮像装置が開示されている。特許文献1の発明では、被写体形状の変化量に応じてAF測距枠を変形することにより、被写体がカメラ方向に移動する場合でも、被写体に対して最適に自動焦点調節を行うことを可能としている。   Conventionally, various techniques relating to focus adjustment have been considered. For example, the invention of Patent Document 1 discloses an imaging apparatus that performs focus adjustment using a subject extraction technique. In the invention of Patent Document 1, it is possible to optimally perform automatic focus adjustment on a subject even when the subject moves in the camera direction by deforming the AF distance measurement frame in accordance with the amount of change in the subject shape. Yes.

特開2009−069748号公報JP 2009-069748 A

ところで、被写界内に複数の被写体が存在する場合、上述した被写体抽出の手法により複数の特定領域(例えば、被写体領域や注目領域など)が抽出される。このような場合には、ユーザが撮影対象としている特定領域を判定することは難しく、一般的に、至近側の特定領域をAF対象としている。しかし、一概に至近側の特定領域をAF対象とするのが正しくない場合もある。   By the way, when there are a plurality of subjects in the object scene, a plurality of specific regions (for example, a subject region and a region of interest) are extracted by the subject extraction method described above. In such a case, it is difficult for the user to determine the specific area that is to be imaged, and generally the specific area on the near side is the AF target. However, in some cases, it is not correct to set a specific area on the near side as an AF target.

本発明は、前記の点に鑑みてなされたものであり、複数の特定領域が存在する場合に、何れかの特定領域をユーザが容易に選択可能とすることを目的とする。   The present invention has been made in view of the above points, and an object of the present invention is to enable a user to easily select any one of the specific areas when there are a plurality of specific areas.

一態様において、本発明の画像処理装置は、画像の特徴量に基づいて画像に含まれる複数の被写体領域を検出する検出部と、前記検出部で検出された複数の前記被写体領域のうち、少なくとも2つの被写体領域を示す指標を表示部に表示させる表示制御部と、前記検出部で検出された複数の前記被写体領域のうち、第1被写体領域及び第2被写体領域を示す指標が前記表示部に表示されている場合において、前記第1被写体領域及び前記第2被写体領域を示す指標を、前記検出部で検出された複数の前記被写体領域のうち、前記第1被写体領域及び前記第2被写体領域とは異なる第3被写体領域を示す指標に変更して前記表示部に表示させる第1モードと、前記第1被写体領域及び前記第2被写体領域を示す指標の表示態様を変更して前記表示部に表示させる第2モードと、を前記表示制御部に行わせるための操作部と、を備える。
本発明の撮像装置は、上述した画像処理装置を備える。
In one aspect, the image processing apparatus of the present invention includes a detection unit that detects a plurality of subject regions included in an image based on a feature amount of the image, and at least of the plurality of subject regions detected by the detection unit. A display control unit for displaying an index indicating two subject areas on the display unit, and an index indicating the first subject area and the second subject area among the plurality of subject areas detected by the detection unit is displayed on the display unit. In the case of being displayed, an index indicating the first subject region and the second subject region is used as the first subject region and the second subject region among the plurality of subject regions detected by the detection unit. Is changed to an index indicating a different third subject area and displayed on the display unit, and the display mode of the index indicating the first subject area and the second subject area is changed and the table is changed. And the second mode to be displayed on the part, the and an operation unit for causing the display control unit.
The imaging device of the present invention includes the above-described image processing device.

別の態様において、本発明の画像処理装置は、処理対象の画像データを取得する取得部と、前記画像データにより示される画像の特徴量を算出し、前記特徴量に基づいて特定領域を検出する領域検出部と、前記領域検出部により検出した前記特定領域もしくは、前記特定領域に基づく領域を視認可能に表示する表示部と、前記領域検出部により複数の前記特定領域を検出した場合に、前記表示部に、複数の前記特定領域のうち少なくとも1つの特定領域を選択するための表示を行う表示制御部とを備える。
なお、前記取得部は、時間的に連続して生成された複数の画像データを順次取得し、前記領域検出部は、前記取得部により前記画像データを所定の枚数取得する毎に、前記特定領域を検出しても良い。
In another aspect, the image processing apparatus of the present invention calculates an image feature amount indicated by the acquisition unit that acquires image data to be processed, and detects a specific region based on the feature amount. When a plurality of specific areas are detected by the area detection section, a display section that displays the specific area detected by the area detection section or an area based on the specific area, and the area detection section, The display unit includes a display control unit that performs display for selecting at least one specific region among the plurality of specific regions.
The acquisition unit sequentially acquires a plurality of pieces of image data generated continuously in time, and the region detection unit acquires the specific region each time a predetermined number of pieces of image data are acquired by the acquisition unit. May be detected.

また、前記表示制御部は、複数の前記特定領域を切り替えて前記表示部に表示しても良い。   In addition, the display control unit may switch a plurality of the specific areas and display them on the display unit.

また、前記表示制御部は、複数の前記特定領域を切り替える際に、前記特徴量に基づいて表示順を決定しても良い。   The display control unit may determine the display order based on the feature amount when switching the plurality of specific regions.

また、前記表示制御部は、前記領域検出部による検出結果に基づく所定の条件を満たした場合にのみ、前記表示部への表示を行っても良い。   In addition, the display control unit may perform display on the display unit only when a predetermined condition based on a detection result by the region detection unit is satisfied.

また、前記表示制御部は、前記領域検出部による検出結果に基づく所定の条件を満たした場合には、前記表示部への表示を禁止しても良い。   In addition, the display control unit may prohibit display on the display unit when a predetermined condition based on a detection result by the region detection unit is satisfied.

また、前記所定の条件は、前記領域検出部による前記特定領域の検出の可否に基づく条件であっても良い。   Further, the predetermined condition may be a condition based on whether or not the specific area can be detected by the area detecting unit.

また、前記所定の条件は、前記表示部による表示に基づいた選択をする際に、選択に適さない前記特定領域が存在するか否かに基づく条件であっても良い
本発明の撮像装置は、被写体像を撮像して画像を生成する撮像部と、上述した何れかの画像処理装置とを備え、前記撮像部は、構図確認用の前記画像データを連続的に生成し、前記取得部は、前記撮像部から前記画像データを順次取得する。
In addition, the predetermined condition may be a condition based on whether or not there is a specific region that is not suitable for selection when performing selection based on display by the display unit .
An imaging apparatus according to the present invention includes an imaging unit that captures a subject image to generate an image and any one of the image processing devices described above, and the imaging unit continuously generates the image data for composition confirmation. The acquisition unit sequentially acquires the image data from the imaging unit.

なお、前記表示部による表示に基づいて選択された少なくとも1つの前記特定領域に基づいて、前記撮像部による本撮影のための準備動作を実行する制御部を備えても良い。   Note that a control unit that executes a preparatory operation for main photographing by the imaging unit based on at least one specific region selected based on the display by the display unit may be provided.

また、前記撮像部は、光学系を介して入射した前記被写体像を撮像して前記画像データを生成し、前記制御部は、前記準備動作として、前記光学系に関する合焦制御を含む動作を実行しても良い。   The imaging unit captures the subject image incident through an optical system to generate the image data, and the control unit performs an operation including focusing control related to the optical system as the preparation operation. You may do it.

また、前記表示制御部は、前記領域検出部による検出結果に基づく所定の条件を満たした場合にのみ、前記表示部への表示を行っても良い。   In addition, the display control unit may perform display on the display unit only when a predetermined condition based on a detection result by the region detection unit is satisfied.

また、前記表示制御部は、前記領域検出部による検出結果に基づく所定の条件を満たした場合には、前記表示部への表示を禁止しても良い。   In addition, the display control unit may prohibit display on the display unit when a predetermined condition based on a detection result by the region detection unit is satisfied.

また、前記表示制御部は、複数の前記特定領域のうち少なくとも1つの特定領域を、前記合焦制御の対象として選択するための表示を前記表示部に行い、前記所定の条件は、前記合焦制御の対象として適した前記特定領域が、前記領域検出部により検出されたか否かに基づく条件であっても良い。   Further, the display control unit performs display on the display unit for selecting at least one specific region of the plurality of specific regions as the focus control target, and the predetermined condition is the focus A condition based on whether or not the specific region suitable as a control target is detected by the region detection unit may be used.

また、前記表示部による表示に基づいて選択された少なくとも1つの前記特定領域を、追尾対象に設定し、前記追尾対象を複数の前記画像から検出する追尾部を備えても良い。   In addition, a tracking unit that sets at least one specific region selected based on display by the display unit as a tracking target and detects the tracking target from the plurality of images may be provided.

また、前記表示制御部は、前記領域検出部による検出結果に基づく所定の条件を満たした場合にのみ、前記表示部への表示を行っても良い。   In addition, the display control unit may perform display on the display unit only when a predetermined condition based on a detection result by the region detection unit is satisfied.

また、前記表示制御部は、前記領域検出部による検出結果に基づく所定の条件を満たした場合には、前記表示部への表示を禁止しても良い。   In addition, the display control unit may prohibit display on the display unit when a predetermined condition based on a detection result by the region detection unit is satisfied.

また、前記表示制御部は、複数の前記特定領域のうち少なくとも1つの特定領域を、前記追尾対象として選択するための表示を前記表示部に行い、前記所定の条件は、前記追尾対象として適した前記特定領域が、前記領域検出部により検出されたか否かに基づく条件であっても良い。   In addition, the display control unit performs display on the display unit for selecting at least one specific region of the plurality of specific regions as the tracking target, and the predetermined condition is suitable as the tracking target. A condition based on whether or not the specific area is detected by the area detection unit may be used.

また、前記領域検出部は、前記追尾部による追尾が開始される前は、前記取得部により前記画像データをn(ただし、nは1以上の整数)枚取得する毎に前記特定領域を検出し、前記追尾部による追尾が開始されると、前記取得部により前記画像データをm(ただし、mは1以上の整数、かつ、n>m)枚取得する毎に前記特定領域を検出しても良い。   In addition, the area detection unit detects the specific area every time n (where n is an integer of 1 or more) of the image data is acquired by the acquisition unit before tracking by the tracking unit is started. When tracking by the tracking unit is started, the specific region is detected every time the acquisition unit acquires m (where m is an integer equal to or greater than 1 and n> m). good.

また、前記表示制御部により複数の前記特定領域を切り替えて前記表示部に表示する際に、表示を切り替えるユーザ操作を受け付ける受付部を備えても良い。   In addition, when the plurality of specific areas are switched by the display control unit and displayed on the display unit, a reception unit that receives a user operation for switching display may be provided.

また、前記表示部は、複数の前記特定領域のうち少なくとも1つの特定領域を選択するユーザ操作を受け付けるタッチパネル部を備えても良い。   Further, the display unit may include a touch panel unit that receives a user operation for selecting at least one specific region among the plurality of specific regions.

本発明の画像処理プログラムは、コンピュータに、処理対象の画像データを取得する取得手順と、前記画像データにより示される画像の特徴量を算出し、前記特徴量に基づいて特定領域を検出する領域検出手順と、前記領域検出手順により複数の前記特定領域を検出した場合に、表示部に、複数の前記特定領域のうち少なくとも1つの特定領域を選択するための表示を行う表示制御手順とを実行させる。   An image processing program according to the present invention includes an acquisition procedure for acquiring image data to be processed in a computer, and a region detection for calculating a feature amount of an image indicated by the image data and detecting a specific region based on the feature amount And when the plurality of specific areas are detected by the area detection procedure, the display unit executes a display control procedure for performing display for selecting at least one specific area among the plurality of specific areas. .

本発明によれば、複数の特定領域が存在する場合に、何れかの特定領域をユーザが容易に選択可能とすることができる。   According to the present invention, when there are a plurality of specific areas, any one of the specific areas can be easily selected by the user.

レンズ鏡筒10と、撮像装置20と、記憶媒体40との構成を示すブロック図である。2 is a block diagram illustrating configurations of a lens barrel 10, an imaging device 20, and a storage medium 40. FIG. 第1実施形態の自動検出モード実行時のCPU26の動作を示すフローチャートである。It is a flowchart which shows operation | movement of CPU26 at the time of automatic detection mode execution of 1st Embodiment. 主要被写体変更処理について説明する図である。It is a figure explaining a main subject change process. 主要被写体選択処理について説明する図である。It is a figure explaining main subject selection processing. 第2実施形態の自動検出モード実行時のCPU26の動作を示すフローチャートである。It is a flowchart which shows operation | movement of CPU26 at the time of automatic detection mode execution of 2nd Embodiment. 第2実施形態の自動検出モード実行時のCPU26の動作を示すフローチャート(続き)である。It is a flowchart (continuation) which shows operation | movement of CPU26 at the time of execution of automatic detection mode of 2nd Embodiment. 追尾に関する設定処理について説明する図である。It is a figure explaining the setting process regarding tracking. 第3実施形態の自動検出モード実行時のCPU26の動作を示すフローチャートである。It is a flowchart which shows operation | movement of CPU26 at the time of automatic detection mode execution of 3rd Embodiment.

<第1実施形態>
以下、第1実施形態について図面を参照して詳細に説明する。
<First Embodiment>
Hereinafter, a first embodiment will be described in detail with reference to the drawings.

第1実施形態では、図1に示すようなレンズ鏡筒10と、撮像装置20と、記憶媒体40とからなる装置を例に挙げて説明する。   In the first embodiment, a description will be given by taking as an example an apparatus including a lens barrel 10, an imaging device 20, and a storage medium 40 as shown in FIG.

撮像装置20は、レンズ鏡筒10から入射される光学像を撮像する。得られた画像は静止画又は動画の画像として、記憶媒体40に記憶される。   The imaging device 20 captures an optical image incident from the lens barrel 10. The obtained image is stored in the storage medium 40 as a still image or a moving image.

レンズ鏡筒10は、焦点調整レンズ(以下、「AF(Auto Focus)レンズ」と称する)11と、レンズ駆動部12と、AFエンコーダ13と、鏡筒制御部14とを備える。なお、レンズ鏡筒10は、撮像装置20に着脱可能に接続されても良いし、撮像装置20と一体であっても良い。   The lens barrel 10 includes a focus adjustment lens (hereinafter referred to as an “AF (Auto Focus) lens”) 11, a lens driving unit 12, an AF encoder 13, and a lens barrel control unit 14. The lens barrel 10 may be detachably connected to the imaging device 20 or may be integrated with the imaging device 20.

撮像装置20は、撮像部21と、画像処理装置22と、表示部23と、バッファメモリ部24と、記憶部25と、CPU26と、操作部27と、通信部28とを備える。撮像部21は、不図示の撮像素子を備え、設定された撮像条件(例えば絞り値、露出値等)に従って、CPU26により制御される。   The imaging device 20 includes an imaging unit 21, an image processing device 22, a display unit 23, a buffer memory unit 24, a storage unit 25, a CPU 26, an operation unit 27, and a communication unit 28. The imaging unit 21 includes an imaging element (not shown), and is controlled by the CPU 26 according to set imaging conditions (for example, an aperture value, an exposure value, etc.).

レンズ鏡筒10において、AFレンズ11は、レンズ駆動部12により駆動され、撮像装置20の撮像部21における不図示の撮像素子の受光面(光電変換面)に、光学像を導く。AFエンコーダ13は、AFレンズ11の移動を検出し、AFレンズ11の移動量に応じた信号を、鏡筒制御部14に出力する。ここで、AFレンズ11の移動量に応じた信号とは、例えば、AFレンズ11の移動量に応じて位相が変化するサイン(sin)波信号であってもよい。   In the lens barrel 10, the AF lens 11 is driven by the lens driving unit 12, and guides an optical image to a light receiving surface (photoelectric conversion surface) of an imaging element (not shown) in the imaging unit 21 of the imaging device 20. The AF encoder 13 detects the movement of the AF lens 11 and outputs a signal corresponding to the movement amount of the AF lens 11 to the lens barrel control unit 14. Here, the signal corresponding to the movement amount of the AF lens 11 may be, for example, a sine wave signal whose phase changes according to the movement amount of the AF lens 11.

鏡筒制御部14は、撮像装置20のCPU26から入力される駆動制御信号に応じて、レンズ駆動部12を制御する。ここで、駆動制御信号とは、AFレンズ11を光軸方向に駆動させる制御信号である。鏡筒制御部14は、駆動制御信号に応じて、例えば、レンズ駆動部12に出力するパルス電圧のステップ数を変更する。また、鏡筒制御部14は、AFレンズ11の移動量に応じた信号に基づいて、レンズ鏡筒10におけるAFレンズ11の位置(フォーカスポジション)を、撮像装置20のCPU26に出力する。ここで、鏡筒制御部14は、例えば、AFレンズ11の移動量に応じた信号を、AFレンズ11の移動方向に応じて積算することで、レンズ鏡筒10におけるAFレンズ11の移動量(レンズの位置)を算出してもよい。レンズ駆動部12は、鏡筒制御部14の制御に応じてAFレンズ11を駆動し、AFレンズ11をレンズ鏡筒10内で光軸方向に移動させる。   The lens barrel control unit 14 controls the lens driving unit 12 in accordance with a drive control signal input from the CPU 26 of the imaging device 20. Here, the drive control signal is a control signal for driving the AF lens 11 in the optical axis direction. The lens barrel control unit 14 changes, for example, the number of steps of the pulse voltage output to the lens driving unit 12 according to the drive control signal. Further, the lens barrel control unit 14 outputs the position (focus position) of the AF lens 11 in the lens barrel 10 to the CPU 26 of the imaging device 20 based on a signal corresponding to the movement amount of the AF lens 11. Here, the lens barrel control unit 14 integrates, for example, signals according to the movement amount of the AF lens 11 according to the movement direction of the AF lens 11, thereby moving the AF lens 11 in the lens barrel 10 ( Lens position) may be calculated. The lens driving unit 12 drives the AF lens 11 according to the control of the lens barrel control unit 14 and moves the AF lens 11 in the optical axis direction within the lens barrel 10.

撮像装置20において、撮像部21は、例えば、レンズ鏡筒10(光学系)により光電変換面に結像された光学像を撮像素子内でデジタル信号に変換して出力する撮像素子を備えても良い。また、例えば、撮像部21は、撮像素子およびA/D変換部を備え、撮像素子はレンズ鏡筒10(光学系)により光電変換面に結像された光学像を電気信号に変換してA/D変換部に出力し、A/D変換部は、撮像素子によって変換された電気信号をデジタル化して、デジタル信号として出力する構成としても良い。なお、撮像素子は、例えば、CMOS(Complementary Metal Oxide Semiconductor)などの光電変換素子で構成される。また、撮像素子は、光電変換面の一部の領域について、光学像を電気信号に変換するようにしてもよい(画像切り出し)。また、撮像部21は、操作部27を介してユーザからの撮影指示を受け付けた際に得られる記録用の画像を、通信部28を介して記憶媒体40に出力する。一方、撮像部21は、操作部27を介してユーザからの撮影指示を受け付ける前の状態において、連続的に得られる画像をスルー画像として、バッファメモリ部24及び表示部23に出力する。   In the imaging device 20, the imaging unit 21 may include, for example, an imaging element that converts an optical image formed on the photoelectric conversion surface by the lens barrel 10 (optical system) into a digital signal and outputs the digital signal. good. In addition, for example, the imaging unit 21 includes an imaging device and an A / D conversion unit, and the imaging device converts an optical image formed on the photoelectric conversion surface by the lens barrel 10 (optical system) into an electrical signal and converts it into an A signal. The A / D converter may output to the / D converter, and the A / D converter may digitize the electrical signal converted by the image sensor and output the digital signal. Note that the imaging element is configured by a photoelectric conversion element such as a CMOS (Complementary Metal Oxide Semiconductor), for example. Further, the image sensor may convert an optical image into an electric signal for a partial region of the photoelectric conversion surface (image clipping). Further, the imaging unit 21 outputs a recording image obtained when a shooting instruction from the user is received via the operation unit 27 to the storage medium 40 via the communication unit 28. On the other hand, the imaging unit 21 outputs continuously obtained images to the buffer memory unit 24 and the display unit 23 as through images in a state before receiving a shooting instruction from the user via the operation unit 27.

画像処理装置22は、記憶部25に記憶されている画像処理条件に基づいて、バッファメモリ部24に一時的に記憶されている画像に対する画像処理を行う。そして、画像処理後の画像は、通信部28を介して記憶媒体40に記憶される。また、画像処理装置22は、バッファメモリ部24に一時的に記憶されている画像に対して、マスク抽出処理を行う(詳細は後述する)。そして、抽出したマスクに関する情報は、CPU26に出力されるとともに、記憶部25や記憶媒体40等に記憶される。   The image processing device 22 performs image processing on the image temporarily stored in the buffer memory unit 24 based on the image processing conditions stored in the storage unit 25. The image after image processing is stored in the storage medium 40 via the communication unit 28. Further, the image processing device 22 performs mask extraction processing on the image temporarily stored in the buffer memory unit 24 (details will be described later). The extracted mask information is output to the CPU 26 and stored in the storage unit 25, the storage medium 40, and the like.

表示部23は、例えば液晶ディスプレイであって、撮像部21によって生成された画像、及び操作画面等を表示する。バッファメモリ部24は、撮像部21によって生成された画像を一時的に記憶する。記憶部25は、撮像条件や、各種判定の際にCPU26によって参照される判定条件などを記憶する。   The display unit 23 is, for example, a liquid crystal display, and displays an image generated by the imaging unit 21, an operation screen, and the like. The buffer memory unit 24 temporarily stores the image generated by the imaging unit 21. The storage unit 25 stores imaging conditions, determination conditions referred to by the CPU 26 in various determinations, and the like.

CPU26は、領域検出部31、表示制御部32、AF制御部33、追尾制御部34の各部を備え、画像処理部22や記憶部25などから適宜必要な情報を取得し、取得した情報に基づいて、撮像装置20内の各部を統括的に制御する。各部の具体的な動作については後述する。CPU26による制御には、焦点調整(AF)の設定、露出調整(AE)の設定、ホワイトバランス調整(WB)の設定、閃光の発光量の変更の設定、被写体追尾の設定、各種撮影モードの設定、各種画像処理の設定、各種表示の設定、ズーム倍率に連動した明るさの最適化の設定などが含まれる。また、CPU26は、操作部27の操作状態を監視するとともに、表示部23への画像データの出力を行う。   The CPU 26 includes an area detection unit 31, a display control unit 32, an AF control unit 33, and a tracking control unit 34. The CPU 26 acquires necessary information from the image processing unit 22, the storage unit 25, and the like, and based on the acquired information. Thus, each unit in the imaging device 20 is controlled in an integrated manner. Specific operations of each part will be described later. For control by the CPU 26, focus adjustment (AF) setting, exposure adjustment (AE) setting, white balance adjustment (WB) setting, flash emission amount change setting, subject tracking setting, various shooting mode settings, etc. , Various image processing settings, various display settings, brightness optimization settings linked to zoom magnification, and the like. In addition, the CPU 26 monitors the operation state of the operation unit 27 and outputs image data to the display unit 23.

操作部27は、例えば、電源スイッチ、シャッタボタン、マルチセレクタ(十字キー)、又はその他の操作キーを備え、ユーザによって操作されることでユーザの操作入力を受け付け、操作入力に応じた信号をCPU26に出力する。なお、不図示のシャッタボタンについては、公知の半押し(S1)および全押し(S2)の2段階の操作が可能である。また、半押し(S1)については、通常の押圧操作であるONと、一定時間以上押圧し続ける操作である長押し操作とが可能である。また、不図示のマルチセレクタには、公知のものと同様に、決定操作に用いられるOKボタンが設けられる。   The operation unit 27 includes, for example, a power switch, a shutter button, a multi-selector (cross key), or other operation keys. The operation unit 27 receives a user operation input when operated by the user, and outputs a signal corresponding to the operation input to the CPU 26. Output to. It should be noted that a shutter button (not shown) can be operated in two stages, known half-press (S1) and full-press (S2). As for half-pressing (S1), ON which is a normal pressing operation and long-pressing operation which is an operation of continuing pressing for a predetermined time or more are possible. In addition, the multi-selector (not shown) is provided with an OK button used for the determination operation, similarly to a known one.

通信部28は、カードメモリ等の取り外しが可能な記憶媒体40と接続され、この記憶媒体40への情報(画像データ、領域の情報など)の書込み、読み出し、あるいは消去を行う。   The communication unit 28 is connected to a removable storage medium 40 such as a card memory, and writes, reads, or deletes information (image data, area information, etc.) to the storage medium 40.

記憶媒体40は、撮像装置20に対して着脱可能に接続される記憶部であって、情報(画像データ、領域の情報など)を記憶する。なお、記憶媒体40は、撮像装置20と一体であってもよい。   The storage medium 40 is a storage unit that is detachably connected to the imaging device 20 and stores information (image data, area information, and the like). Note that the storage medium 40 may be integrated with the imaging device 20.

撮像装置20は、撮影時に、焦点調節情報に基づいて特定領域(例えば、主要被写体領域や注目領域など)を検出する通常モードの他に、自動で特定領域を検出する自動検出モードを備える。自動検出モードは、構図確認用のスルー画像等に基づいて、特定領域を自動で継続的に検出し、検出した特定領域の情報に基づいて、各部を制御するモードである。この自動検出モードは操作部27を介したユーザ操作により設定可能であっても良いし、CPU26により自動で設定可能であっても良い。   The imaging device 20 includes an automatic detection mode for automatically detecting a specific area in addition to a normal mode for detecting a specific area (for example, a main subject area or a region of interest) based on focus adjustment information during shooting. The automatic detection mode is a mode in which a specific region is automatically and continuously detected based on a through image for composition confirmation and the like, and each unit is controlled based on information on the detected specific region. This automatic detection mode may be set by a user operation via the operation unit 27, or may be automatically set by the CPU.

以下、特定領域として主要被写体領域を検出する自動検出モード実行時のCPU26の動作について、図2のフローチャートを参照して説明する。   The operation of the CPU 26 when executing the automatic detection mode for detecting the main subject area as the specific area will be described below with reference to the flowchart of FIG.

ステップS101において、CPU26は、撮像部21を制御して、スルー画像の取得を開始する。取得されたスルー画像の画像情報はバッファメモリ部24に一時的に記憶される。このスルー画像は、所定の時間間隔で連続して生成される。そして、CPU26によるスルー画像の取得は、時間的に連続して順次行われる。   In step S <b> 101, the CPU 26 controls the imaging unit 21 to start acquiring a through image. The acquired image information of the through image is temporarily stored in the buffer memory unit 24. This through image is continuously generated at a predetermined time interval. The acquisition of the through image by the CPU 26 is sequentially performed sequentially in time.

ステップS102において、CPU26は、画像処理装置22を制御して通常の画像処理を行う。通常の画像処理とは、ホワイトバランス調整、補間処理、色調補正処理、階調変換処理などである。各処理の具体的な方法は公知技術と同様であるため説明を省略する。画像処理装置22は、バッファメモリ部24から対象となる画像の画像データを取得し、画像処理を施した後に、再びバッファメモリ部24に出力する。   In step S102, the CPU 26 controls the image processing device 22 to perform normal image processing. Normal image processing includes white balance adjustment, interpolation processing, color tone correction processing, gradation conversion processing, and the like. Since the specific method of each process is the same as that of a well-known technique, description is abbreviate | omitted. The image processing device 22 acquires the image data of the target image from the buffer memory unit 24, performs image processing, and then outputs the image data to the buffer memory unit 24 again.

ステップS103において、CPU26は、領域検出部31によりマスク抽出処理を行う。マスク抽出処理とは、画像における特徴量を算出し、特徴量が類似する、または、同一のかたまり(マスク)に基づいて主要被写体領域を検出するための一手法である。例えば、画像における特徴量から評価値を求め、同一、または同一と見なせる評価値の連続領域を求めることによりマスク抽出を行う。マスク抽出の手法はどのような方法であっても良い。また、マスク抽出の具体的な方法は公知技術と同様であるため説明を省略する。なお、このマスク抽出処理は、後述する撮影指示が行われるまで、継続的に行われる。つまり、スルー画像が変化すると、抽出されるマスクも随時更新されることになる。   In step S <b> 103, the CPU 26 performs mask extraction processing by the area detection unit 31. The mask extraction process is a technique for calculating a feature amount in an image and detecting a main subject region based on a similar feature amount (mask). For example, the evaluation value is obtained from the feature amount in the image, and the mask extraction is performed by obtaining the continuous region of the evaluation value that can be regarded as the same or the same. Any method of mask extraction may be used. In addition, since a specific method for extracting a mask is the same as that of a known technique, description thereof is omitted. This mask extraction process is continuously performed until an imaging instruction to be described later is performed. That is, when the through image changes, the extracted mask is updated as needed.

ステップS104において、CPU26は、被写体領域を抽出できたか否かを判定する。CPU26は、1つ以上の被写体領域を抽出できたと判定するとステップS105に進む。一方、被写体領域を1つも抽出できないと判定すると、CPU26は、ステップS102に戻り、次のフレームの画像に対してステップS102以降の処理を行う。   In step S104, the CPU 26 determines whether or not the subject area has been extracted. If the CPU 26 determines that one or more subject areas have been extracted, the process proceeds to step S105. On the other hand, if it is determined that no subject area can be extracted, the CPU 26 returns to step S102, and performs the processing from step S102 onward for the image of the next frame.

ステップS105において、CPU26は、マスク情報を記録する。CPU26は、ステップS103で実行したマスク抽出処理の結果についての情報を、マスク情報としてバッファメモリ部24や記憶部25等に記録する。マスク情報には、ステップS103のマスク抽出処理の抽出条件(色区分やマスク区分など)、マスクの位置、マスクの大きさや形状、評価値による各マスクの順位などの情報が含まれる。   In step S105, the CPU 26 records mask information. The CPU 26 records information about the result of the mask extraction process executed in step S103 in the buffer memory unit 24, the storage unit 25, and the like as mask information. The mask information includes information such as the extraction conditions (color classification, mask classification, etc.) of the mask extraction processing in step S103, the position of the mask, the size and shape of the mask, and the rank of each mask based on the evaluation value.

ステップS106において、CPU26は、n回(nフレーム)以上連続して同一のマスクを抽出したか否かを判定する。CPU26は、n回以上連続して同一のマスクを抽出したと判定すると後述するステップS107に進む。一方、n回以上連続して同一のマスクを抽出していないと判定すると、CPU26は、上述したステップS102に戻り、次のスルー画像を対象としてステップS102以降の処理を行う。   In step S106, the CPU 26 determines whether or not the same mask has been extracted continuously n times (n frames) or more. If the CPU 26 determines that the same mask has been extracted continuously n times or more, the CPU 26 proceeds to step S107 described later. On the other hand, when determining that the same mask has not been extracted n times or more in succession, the CPU 26 returns to step S102 described above, and performs the processing from step S102 onward for the next through image.

同一のマスクを抽出する場合とは、複数フレームにおいて、略同色、略同サイズのマスクが、略同じ位置において抽出される場合である。この判定には、ステップS105で説明したマスク情報等を用いれば良い。何れの場合も、フレーム間の変化量が規定以内である場合に、同一と判定することができる。ステップS105で説明したマスク情報等に基づいて、過去に行われたマスク抽出の傾向(抽出されたマスクの種類、出現頻度など)を求め、この傾向に応じて上述した変化量が規定以内であるかを判断する閾値を適宜変更可能としても良い。例えば、過去に高い頻度で抽出されたマスクについては、閾値を大きめに変更しても良い。   The case where the same mask is extracted is a case where masks of substantially the same color and size are extracted at substantially the same position in a plurality of frames. For this determination, the mask information described in step S105 may be used. In any case, when the amount of change between frames is within a specified range, it can be determined that they are the same. Based on the mask information or the like described in step S105, the tendency of mask extraction performed in the past (extracted mask type, appearance frequency, etc.) is obtained, and the amount of change described above is within the specified range according to this tendency. It may be possible to appropriately change the threshold for determining whether or not. For example, the threshold value may be changed to a larger value for a mask extracted at a high frequency in the past.

なお、上述したnは所定の閾値(例えば、n=7)であり、撮像部21による撮像時のフレームレート、レンズ鏡筒10におけるズーム倍率、操作部27を介したユーザ操作などに基づいて適宜変更可能としても良い。さらに、ステップS105で説明したマスク情報等に基づいて、過去に行われたマスク抽出の傾向(抽出されたマスクの種類、出現頻度など)を求め、この傾向に応じて上述したnの値を適宜変更可能としても良い。例えば、過去に高い頻度で抽出されたマスクについては、nの値を小さめに変更しても良い。   Note that n described above is a predetermined threshold (for example, n = 7), and is appropriately determined based on the frame rate at the time of image capturing by the image capturing unit 21, the zoom magnification in the lens barrel 10, the user operation via the operation unit 27, and the like. It may be changeable. Further, the tendency of mask extraction performed in the past (the type of extracted mask, the appearance frequency, etc.) is obtained based on the mask information described in step S105, and the value of n described above is appropriately set according to this tendency. It may be changeable. For example, for a mask extracted at a high frequency in the past, the value of n may be changed to a smaller value.

また、ステップS106で行った判定の内容を、ステップS105で説明したマスク情報に追加して記録しておき、以降のフレームに関する処理時に用いる構成としても良い。   Further, the contents of the determination made in step S106 may be recorded in addition to the mask information described in step S105, and used in subsequent processing relating to frames.

また、上述した以外の方法でマスク抽出処理が安定して行われているか否かを判定する構成としても良い。例えば、前回まで連続して同一のマスクを抽出したか否かを加味して判定を行っても良い。このような構成とすれば、今回のみ一時の未抽出が発生した場合でも、それまでの蓄積を無効にせず、次のフレームにおいて同一のマスクを抽出した場合には、前回までの安定状態が維持されているものと見なすことができる。   Moreover, it is good also as a structure which determines whether the mask extraction process is performed stably by methods other than the above-mentioned. For example, the determination may be performed in consideration of whether the same mask has been extracted continuously until the previous time. With this configuration, even if temporary unextraction occurs only this time, if the same mask is extracted in the next frame without invalidating the previous accumulation, the previous stable state is maintained. Can be considered.

ステップS107において、CPU26は、表示制御部32により表示部23を制御して、主要被写体領域を表示部23に表示する。なお、ステップS107において、表示制御部32は、ステップS103で実行したマスク抽出処理の結果に基づき、評価の高い順から2つのマスクに対応する領域を、それぞれ主要被写体領域とし、主要被写体領域の情報を視認可能に表示する。例えば、表示制御部32は、図3Aに例示するように、評価値の順位が第1位のマスクおよび第2位のマスクに対応する主要被写体領域に枠(第1位のマスクに対応する枠F1、および、第2位のマスクに対応する枠F2)を表示することにより、撮影対象となるマスクに対応する被写体領域を視認可能に表示する。なお、この枠は、被写体領域の形状に応じたものであっても良いし、矩形や円形など所定の形状であっても良い。また、線の太さ、濃淡、色などはどのようなものであっても良い。いずれにせよ、このような表示を行うことにより、ユーザは、現時点で抽出されたマスク、または、マスクに対応する被写体領域を、容易に把握することができる。なお、本実施形態では、評価の高い上位2つのマスクについて表示を行う例を示すが、適切な数であれば、表示されるマスクは2つでなくても良い。また、表示されるマスクの数は、操作部27を介したユーザ操作により指定可能であっても良い。   In step S <b> 107, the CPU 26 controls the display unit 23 with the display control unit 32 to display the main subject area on the display unit 23. In step S107, the display control unit 32 sets the areas corresponding to the two masks in descending order of evaluation based on the result of the mask extraction process executed in step S103 as main subject areas, respectively, and information on the main subject area. Is displayed so as to be visible. For example, as illustrated in FIG. 3A, the display control unit 32 sets a frame (a frame corresponding to the first mask) in the main subject region corresponding to the first rank mask and the second rank mask. By displaying F1 and the frame F2) corresponding to the second-order mask, the subject area corresponding to the mask to be photographed is displayed so as to be visible. The frame may be in accordance with the shape of the subject area, or may be a predetermined shape such as a rectangle or a circle. Also, the line thickness, shading, color, etc. may be anything. In any case, by performing such display, the user can easily grasp the currently extracted mask or the subject area corresponding to the mask. In the present embodiment, an example is shown in which the top two masks with high evaluation are displayed. However, the number of masks to be displayed is not limited to two as long as the number is appropriate. Further, the number of masks to be displayed may be specified by a user operation via the operation unit 27.

ステップS108において、CPU26は、S1が長押しされたか否かを判定する。CPU26は、操作部27の不図示のシャッタボタンについて、S1(半押し)が長押しされたと判定するとステップS109に進む。一方、所定の時間を経過してもS1が長押しされないと判定すると、CPU26は、後述するステップS110に進む。なお、本実施形態においては、ユーザがS1を長押しする場合とは、ユーザが、ステップS107において表示部23に表示された2つの主要被写体領域を変更する指示を出す場合である。例えば、ステップS107において表示部23に表示された2つの主要被写体領域が、ユーザの要望と異なる場合などに、ユーザは、操作部27の不図示のシャッタボタンのS1(半押し)を長押しすることにより、主要被写体領域を変更する指示を出す。   In step S108, the CPU 26 determines whether or not S1 is long pressed. If the CPU 26 determines that S1 (half-press) has been pressed for a shutter button (not shown) of the operation unit 27, the process proceeds to step S109. On the other hand, if it is determined that S1 is not pressed for a long time even after a predetermined time has elapsed, the CPU 26 proceeds to step S110 described later. In the present embodiment, the case where the user presses and holds S1 is a case where the user issues an instruction to change the two main subject areas displayed on the display unit 23 in step S107. For example, when the two main subject areas displayed on the display unit 23 in step S107 are different from the user's request, the user long presses S1 (half press) of a shutter button (not shown) of the operation unit 27. Thus, an instruction to change the main subject area is issued.

ステップS109において、CPU26は、表示制御部32を制御し、主要被写体変更処理を行う。図3Aに例示したように第1位のマスクに対応する枠F1、および、第2位のマスクに対応する枠F2が表示された状態でS1が長押しされると、表示制御部32は、図3Bに例示するように、枠F1および枠F2に代えて、第3位のマスクおよび第4位のマスクに対応する主要被写体領域に枠(第3位のマスクに対応する枠F3、および、第4位のマスクに対応する枠F4)を表示する。さらに、図3Bに例示するように第3位のマスクに対応する枠F3、および、第4位のマスクに対応する枠F4が表示された状態でS1が長押しされると、表示制御部32は、図3Cに例示するように、枠F3および枠F4に代えて、第5位のマスクおよび第6位のマスクに対応する主要被写体領域に枠(第5位のマスクに対応する枠F5、および、第6位のマスクに対応する枠F6)を表示する。   In step S109, the CPU 26 controls the display control unit 32 to perform main subject change processing. As illustrated in FIG. 3A, when S1 is long pressed in a state where the frame F1 corresponding to the first mask and the frame F2 corresponding to the second mask are displayed, the display control unit 32 As illustrated in FIG. 3B, instead of the frames F1 and F2, a frame (a frame F3 corresponding to the third mask, and a frame in the main subject area corresponding to the third mask and the fourth mask, and A frame F4) corresponding to the fourth mask is displayed. Further, as illustrated in FIG. 3B, when S1 is long pressed while the frame F3 corresponding to the third-order mask and the frame F4 corresponding to the fourth-order mask are displayed, the display control unit 32 As shown in FIG. 3C, instead of the frames F3 and F4, a frame (a frame F5 corresponding to the fifth mask, a main subject region corresponding to the fifth mask and the sixth mask). And the frame F6) corresponding to the 6th mask is displayed.

なお、表示制御部32は、S1が長押しされるたびに、評価値の順位にしたがって表示を変更するが、表示するマスクが存在しない場合には、マスク抽出の過程でいわゆる足きり処理の対象となったマスクに対応する枠を表示する構成としても良い。例えば、図3Dの例では、マスク抽出処理においては面積が大きすぎてマスクとして不適当と見なされたマスクに対応する枠F7、および、面積が小さすぎてマスクとして不適当と見なされたマスクに対応する枠F8を表示する例を示す。   The display control unit 32 changes the display according to the ranking of the evaluation values every time S1 is pressed. If there is no mask to be displayed, the display control unit 32 is a so-called footstep processing target in the mask extraction process. It may be configured to display a frame corresponding to the mask. For example, in the example of FIG. 3D, in the mask extraction process, a frame F7 corresponding to a mask that is considered inappropriate as a mask because the area is too large, and a mask that is considered inappropriate as a mask because the area is too small. An example of displaying a corresponding frame F8 is shown.

また、上述の例では、評価値の順位にしたがって表示順を決定する例を示したが、他の基準にしたがってマスクの表示順を決定しても良い。例えば、マスク位置を基準とし、画像の中央に近いマスクから遠いマスクへと表示順を決定しても良い。また、例えば、画像の左上に近いマスクから右下に近いマスクへと表示順を決定しても良い。   In the above example, the display order is determined according to the evaluation value order. However, the mask display order may be determined according to other criteria. For example, the display order may be determined from the mask near the center of the image to the mask far from the mask position. Further, for example, the display order may be determined from a mask near the upper left of the image to a mask near the lower right.

ステップS110において、CPU26は、S1がONされたか否かを判定する。CPU26は、操作部27の不図示のシャッタボタンについて、S1(半押し)がONされた(通常の押圧操作された)と判定するとステップS111に進む。一方、所定の時間を経過してもS1がONされないと判定すると、CPU26は、後述するステップS112に進む。なお、本実施形態においては、ユーザがS1をONする場合とは、ユーザが、ステップS107において表示部23に表示された2つの主要被写体領域のうち、いずれかの領域を選択する指示を出す場合である。例えば、ステップS107において表示部23に表示された2つの主要被写体領域のうち、何らかの理由でいずれかの被写体を選択する場合などに、ユーザは、操作部27の不図示のシャッタボタンのS1(半押し)をONすることにより、主要被写体領域を選択する指示を出す。   In step S110, the CPU 26 determines whether or not S1 is turned on. If the CPU 26 determines that S1 (half-pressed) is turned on (normally pressed) for a shutter button (not shown) of the operation unit 27, the process proceeds to step S111. On the other hand, if it is determined that S1 is not turned on even after a predetermined time has elapsed, the CPU 26 proceeds to step S112 described later. In the present embodiment, the case where the user turns on S1 means that the user issues an instruction to select one of the two main subject areas displayed on the display unit 23 in step S107. It is. For example, when one of the two main subject areas displayed on the display unit 23 in step S107 is selected for some reason, the user selects the shutter button S1 (half) (not shown) of the operation unit 27. An instruction to select the main subject area is issued by turning ON (push).

ステップS111において、CPU26は、表示制御部32を制御し、主要被写体選択処理を行う。図4Aに例示したように第1位のマスクに対応する枠F1、および、第2位のマスクに対応する枠F2が表示された状態でS1がONされると、表示制御部32は、図4Bに例示するように、枠F1および枠F2のうち、枠F1を実線とし、枠F2を点線とし、枠F1に対応するマスクを選択状態とする。さらに、図4Bに例示するように枠F1を実線とし、枠F2を点線とし、枠F1を選択状態とした状態でさらにS1がONされると、表示制御部32は、図4Cに例示するように、枠F1を点線とし、枠F2を実線とし、枠F2に対応するマスクを選択状態とする。そして、図4Cに例示するように枠F1を点線とし、枠F2を実線とし、枠F2を選択状態とした状態でさらにS1がONされると、表示制御部32は、図4Dに例示するように、枠F1および枠F2の両方を実線とし、枠F1および枠F2の両方に対応する2つのマスクを選択状態とする。なお、図4Dに例示するように、枠F1および枠F2の両方を実線とし、枠F1および枠F2の両方に対応する2つのマスクを選択状態とした状態でさらにS1がONされた場合には、例えば、図4Bの状態に戻る構成とする。つまり、表示制御部32は、S1がONされるたびに、選択状態を変更する。   In step S111, the CPU 26 controls the display control unit 32 to perform main subject selection processing. As illustrated in FIG. 4A, when S1 is turned on in a state where the frame F1 corresponding to the first mask and the frame F2 corresponding to the second mask are displayed, the display control unit 32 As illustrated in 4B, out of the frames F1 and F2, the frame F1 is a solid line, the frame F2 is a dotted line, and the mask corresponding to the frame F1 is selected. Further, as illustrated in FIG. 4B, when S1 is further turned on in a state where the frame F1 is a solid line, the frame F2 is a dotted line, and the frame F1 is in a selected state, the display control unit 32 is illustrated in FIG. 4C. The frame F1 is a dotted line, the frame F2 is a solid line, and the mask corresponding to the frame F2 is selected. Then, as illustrated in FIG. 4C, when S1 is further turned on in a state where the frame F1 is a dotted line, the frame F2 is a solid line, and the frame F2 is in a selected state, the display control unit 32 is illustrated in FIG. 4D. In addition, both the frames F1 and F2 are solid lines, and the two masks corresponding to both the frames F1 and F2 are selected. As illustrated in FIG. 4D, when both the frames F1 and F2 are solid lines and two masks corresponding to both the frames F1 and F2 are selected, and S1 is further turned on. For example, the configuration returns to the state of FIG. 4B. That is, the display control unit 32 changes the selection state every time S1 is turned on.

ステップS112において、CPU26は、所定の時間が経過したか否かを判定する。CPU26は、所定の時間が経過した場合には、ステップS109で説明した主要被写体変更処理およびステップS111で説明した主要被写体選択処理が終了したと判定し、ステップS113に進む。一方、所定の時間を経過していない場合には、CPU26は、ステップS109で説明した主要被写体変更処理およびステップS111で説明した主要被写体選択処理が継続中であると判定し、上述したステップS108に戻る。   In step S112, the CPU 26 determines whether or not a predetermined time has elapsed. If the predetermined time has elapsed, the CPU 26 determines that the main subject change process described in step S109 and the main subject selection process described in step S111 have ended, and the process proceeds to step S113. On the other hand, if the predetermined time has not elapsed, the CPU 26 determines that the main subject change process described in step S109 and the main subject selection process described in step S111 are ongoing, and the process proceeds to step S108 described above. Return.

ステップS113において、CPU26は、AF制御部33により主要被写体領域を設定する。CPU26は、ステップS112において所定の時間を経過したと判定した時点で選択されているマスクに対応する領域を主要被写体領域として設定する。この主要被写体領域は撮影準備動作に用いることができる。   In step S <b> 113, the CPU 26 sets a main subject area by the AF control unit 33. The CPU 26 sets an area corresponding to the mask selected when it is determined in step S112 that the predetermined time has elapsed as a main subject area. This main subject area can be used for a shooting preparation operation.

ステップS114において、CPU26は、S2がONされたか否かを判定する。CPU26は、操作部27の不図示のシャッタボタンについて、S2がON(全押し)されて撮影指示が行われたと判定するとステップS115に進む。一方、所定の時間を経過してもS2がONされないと判定すると、CPU26は、上述したステップS102に戻り、次のスルー画像を対象としてステップS102以降の処理を行う。   In step S114, the CPU 26 determines whether or not S2 is turned on. If the CPU 26 determines that the shutter button (not shown) of the operation unit 27 is turned on (fully pressed) and a shooting instruction is given, the process proceeds to step S115. On the other hand, if it is determined that S2 is not turned ON even after a predetermined time has elapsed, the CPU 26 returns to step S102 described above, and performs the processing from step S102 onward for the next through image.

ステップS115において、CPU26は、各部を制御して撮影を実行する。なお、AE、AF、WB等の処理については、ステップS113で設定した主要被写体領域の情報に基づいて行われる。   In step S115, the CPU 26 controls each unit to perform shooting. Note that processing such as AE, AF, and WB is performed based on information on the main subject region set in step S113.

ステップS116において、CPU26は、ステップS115で実行した撮影により生成した画像の画像データを、通信部28を介して記憶媒体40に記録して一連の処理を終了する。   In step S116, the CPU 26 records the image data of the image generated by the shooting executed in step S115 in the storage medium 40 via the communication unit 28, and ends the series of processes.

以上説明したように、第1実施形態によれば、取得した画像データにより示される画像の特徴量を算出し、特徴量に基づいて定まる特定領域(例えば、被写体領域や注目領域など)を検出する領域検出部と、領域検出部により検出した特定領域もしくは、特定領域に基づく領域を視認可能に表示する表示部とを備え、領域検出部により複数の特定領域を検出した場合に、表示部に、複数の特定領域のうち少なくとも1つの特定領域を選択するための表示を行う。したがって、上述の構成により、複数の特定領域が存在する場合に、何れかの特定領域をユーザが容易に選択可能とすることができる。   As described above, according to the first embodiment, the feature amount of the image indicated by the acquired image data is calculated, and the specific region (for example, the subject region or the attention region) determined based on the feature amount is detected. When a plurality of specific regions are detected by the region detection unit, the display unit includes a region detection unit and a display unit that displays the specific region detected by the region detection unit or the region based on the specific region. Display for selecting at least one specific area from among the plurality of specific areas is performed. Therefore, according to the above-described configuration, when there are a plurality of specific areas, the user can easily select any specific area.

また、本実施形態によれば、領域検出部は、画像データを所定の枚数取得する毎に、特定領域を検出する。したがって、被写体の変化に応じて、表示される特定領域が随時最新のものに更新される。   Further, according to the present embodiment, the area detection unit detects a specific area every time a predetermined number of image data is acquired. Therefore, the displayed specific area is updated to the latest one at any time according to the change of the subject.

また、本実施形態によれば、複数の特定領域を切り替えて表示部に表示する。したがって、ユーザによる特定領域選択時の操作性を向上させることができる。   Further, according to the present embodiment, a plurality of specific areas are switched and displayed on the display unit. Therefore, the operability when the user selects a specific area can be improved.

また、本実施形態によれば、複数の特定領域を切り替える際に、特徴量に基づいて表示順を決定する。したがって、ユーザにより選択される可能性が高いと推測される順に、順次特定領域を表示することができる。   Further, according to the present embodiment, when switching between a plurality of specific areas, the display order is determined based on the feature amount. Therefore, it is possible to sequentially display the specific areas in the order in which the possibility of being selected by the user is high.

また、本実施形態によれば、構図確認用の画像データを連続的に生成し、生成した画像データを順次取得して、上述した処理を行う。したがって、構図確認用のスルー画像に基づいて、効率良く特定領域を検出することができる。   According to the present embodiment, image data for composition confirmation is continuously generated, the generated image data is sequentially acquired, and the above-described processing is performed. Therefore, the specific area can be efficiently detected based on the through image for composition confirmation.

また、本実施形態によれば、表示部による表示に基づいて選択された少なくとも1つの特定領域に基づいて、本撮影のための準備動作(例えば、合焦制御)を実行する。したがって、撮影前に、ユーザにより選択された特定領域に基づいて準備動作を行うことができるので、撮影の確実性を向上させることができる。   Further, according to the present embodiment, a preparatory operation (for example, focusing control) for the main photographing is executed based on at least one specific area selected based on the display by the display unit. Therefore, since the preparatory operation can be performed based on the specific area selected by the user before shooting, the certainty of shooting can be improved.

なお、第1実施形態では、ユーザが、ステップS107において表示部23に表示された2つの主要被写体領域を変更する指示を出す場合に、ユーザがS1を長押しし、ユーザが、ステップS107において表示部23に表示された2つの主要被写体領域のうち、いずれかの領域を選択する指示を出す場合に、ユーザがS1をONする例を示した。このような構成とすれば、ユーザは不図示のファインダを覗いた状態を維持したままで操作を行うことができるという利点がある。しかし、これは一例であり、2種類の操作を区別可能であれば、対応付けられる操作はどのようなものであっても良い。例えば、操作部27の不図示のマルチセレクタに操作を割り当てても良いし、専用の部材に操作を割り当てても良い。また、表示部23の表面に、ユーザによる接触に感応するタッチパネル部を備え、タッチパネル部を介して操作を受け付ける構成としても良い。タッチパネル部によれば、ユーザは、ステップS107において表示部23に表示された2つの主要被写体領域を変更する際には、変更したい領域またはその近傍を直接触れることにより変更可能である。また、ユーザは、ステップS107において表示部23に表示された2つの主要被写体領域のうち、いずれかの領域を選択する場合には、選択したい領域またはその近傍を直接触れることにより選択可能である。   In the first embodiment, when the user issues an instruction to change the two main subject areas displayed on the display unit 23 in step S107, the user presses and holds S1, and the user displays in step S107. The example in which the user turns on S1 when giving an instruction to select one of the two main subject areas displayed on the unit 23 is shown. With such a configuration, there is an advantage that the user can perform an operation while maintaining a state of looking through a finder (not shown). However, this is merely an example, and any operations can be associated as long as the two types of operations can be distinguished. For example, an operation may be assigned to a multi selector (not shown) of the operation unit 27, or an operation may be assigned to a dedicated member. Moreover, it is good also as a structure which equips the surface of the display part 23 with the touch panel part which responds to the contact by a user, and receives operation via a touch panel part. According to the touch panel unit, the user can change the two main subject areas displayed on the display unit 23 in step S107 by directly touching the area to be changed or the vicinity thereof. In addition, when the user selects any one of the two main subject areas displayed on the display unit 23 in step S107, the user can select the area by directly touching the area to be selected or the vicinity thereof.

<第2実施形態>
以下、第2実施形態について図面を参照して詳細に説明する。第2実施形態は、第1実施形態の変形例である。したがって、第1実施形態と異なる部分についてのみ説明し、第1実施形態と同様の部分については説明を省略する。
Second Embodiment
Hereinafter, the second embodiment will be described in detail with reference to the drawings. The second embodiment is a modification of the first embodiment. Therefore, only the parts different from the first embodiment will be described, and the description of the same parts as the first embodiment will be omitted.

第2実施形態では、第1実施形態の図1に示したレンズ鏡筒10と、撮像装置20と、記憶媒体40とからなる装置を例に挙げて説明する。   In the second embodiment, a description will be given by taking as an example an apparatus including the lens barrel 10, the imaging device 20, and the storage medium 40 shown in FIG. 1 of the first embodiment.

以下、特定領域として主要被写体領域を検出する自動検出モード実行時のCPU26の動作について、図5および図6のフローチャートを参照して説明する。   Hereinafter, the operation of the CPU 26 when executing the automatic detection mode for detecting the main subject area as the specific area will be described with reference to the flowcharts of FIGS. 5 and 6.

ステップS201からステップS207において、CPU26は、第1実施形態のステップS101からステップS107(図2参照)と同様の処理を実行する。   In step S201 to step S207, the CPU 26 executes the same processing as in step S101 to step S107 (see FIG. 2) of the first embodiment.

ステップS208において、CPU26は、S1がONされたか否かを判定する。CPU26は、操作部27の不図示のシャッタボタンについて、S1(半押し)がONされた(通常の押圧操作された)と判定するとステップS209に進む。一方、所定の時間を経過してもS1がONされないと判定すると、CPU26は、上述したステップS202に戻る。なお、本実施形態においては、ユーザがS1をONする場合とは、ユーザが、ステップS107において表示部23に表示された2つの主要被写体領域のうち、いずれかの領域を追尾の対象として選択する指示を出す場合である。   In step S208, the CPU 26 determines whether or not S1 is turned on. If the CPU 26 determines that S1 (half-press) is turned on (normally pressed) for a shutter button (not shown) of the operation unit 27, the process proceeds to step S209. On the other hand, if it is determined that S1 is not turned on even after a predetermined time has elapsed, the CPU 26 returns to step S202 described above. In the present embodiment, when the user turns on S1, the user selects one of the two main subject areas displayed on the display unit 23 in step S107 as a tracking target. This is the case when giving instructions.

ステップS209において、CPU26は、表示制御部32を制御し、主要被写体選択処理を行う。主要被写体選択処理については、第1実施形態のステップS111(図2参照)と同様である。例えば、図7Aに例示するように第1位のマスクに対応する枠F1、および、第2位のマスクに対応する枠F2が表示された状態でS1がONされると、表示制御部32は、図7Bに例示するように、枠F1および枠F2のうち、枠F1を実線とし、枠F2を点線とし、枠F1に対応するマスクを選択状態とする。以下では、枠F1に対応するマスクが選択されたものとして、説明を行う。   In step S209, the CPU 26 controls the display control unit 32 to perform main subject selection processing. The main subject selection process is the same as step S111 (see FIG. 2) of the first embodiment. For example, as illustrated in FIG. 7A, when S1 is turned on in a state where the frame F1 corresponding to the first-order mask and the frame F2 corresponding to the second-order mask are displayed, the display control unit 32 7B, out of the frames F1 and F2, the frame F1 is a solid line, the frame F2 is a dotted line, and the mask corresponding to the frame F1 is selected. In the following description, it is assumed that the mask corresponding to the frame F1 is selected.

ステップS210において、CPU26は、AF制御部33により主要被写体領域を設定する。CPU26は、ステップS209の主要被写体選択処理において選択されたマスクに対応する領域を主要被写体領域として設定する。この主要被写体領域は撮影準備動作に用いることができる。   In step S <b> 210, the CPU 26 sets a main subject area by the AF control unit 33. The CPU 26 sets an area corresponding to the mask selected in the main subject selection process in step S209 as the main subject area. This main subject area can be used for a shooting preparation operation.

ステップS211において、CPU26は、OKボタンがONされたか否かを判定する。CPU26は、操作部27の不図示のマルチセレクタに設けられたOKボタンがONされたと判定するとステップS212に進む。一方、所定の時間を経過してもOKボタンがONされないと判定すると、CPU26は、後述するステップS219に進む。なお、本実施形態においては、ユーザがOKボタンをONする場合とは、ユーザが、ステップS209の主要被写体選択処理で選択した主要被写体領域を追尾処理の対象として決定し、追尾処理を開始する指示を出す場合である。   In step S211, the CPU 26 determines whether or not the OK button is turned on. If the CPU 26 determines that an OK button provided in a multi-selector (not shown) of the operation unit 27 has been turned on, the CPU 26 proceeds to step S212. On the other hand, if it is determined that the OK button is not turned on even after a predetermined time has elapsed, the CPU 26 proceeds to step S219 described later. In the present embodiment, the case where the user turns on the OK button means that the user determines the main subject area selected in the main subject selection process in step S209 as the target of the tracking process and starts the tracking process. This is the case.

ステップS212において、CPU26は、追尾処理の開始を示す追尾ロックフラグをONにする。   In step S212, the CPU 26 turns on a tracking lock flag indicating the start of the tracking process.

ステップS213において、CPU26は、AF制御部33によりコントラストAFを実行する。AF制御部33は、鏡筒制御部14を介してレンズ駆動部12を制御し、AFレンズ11を、所定の開始位置から所定の方向に移動しつつ、ステップS211で開始した追尾処理の対象である主要被写体領域におけるコントラスト評価値を取得する。そして、取得した評価値に基づいて、鏡筒制御部14を介してレンズ駆動部12を制御し、コントラストAFに基づく合焦制御を行う。   In step S <b> 213, the CPU 26 executes contrast AF by the AF control unit 33. The AF control unit 33 controls the lens driving unit 12 via the lens barrel control unit 14, and moves the AF lens 11 in a predetermined direction from a predetermined start position while performing the tracking process started in step S <b> 211. A contrast evaluation value in a certain main subject region is acquired. Then, based on the acquired evaluation value, the lens driving unit 12 is controlled via the lens barrel control unit 14, and focusing control based on contrast AF is performed.

ステップS214において、CPU26は、撮像部21から次のスルー画像を取得する。CPU26は、取得したスルー画像の画像情報をバッファメモリ部24に一時的に記憶してステップS215に進む。   In step S <b> 214, the CPU 26 acquires the next through image from the imaging unit 21. The CPU 26 temporarily stores the acquired image information of the through image in the buffer memory unit 24, and proceeds to step S215.

ステップS215において、CPU26は、画像処理装置22を制御して通常の画像処理を行う。通常の画像処理については、第1実施形態のステップS102(図2参照)と同様である。   In step S215, the CPU 26 controls the image processing device 22 to perform normal image processing. Normal image processing is the same as step S102 (see FIG. 2) of the first embodiment.

ステップS216において、CPU26は、領域検出部31によりステップS212で説明した追尾ロックに基づくマスク抽出処理を行う。領域検出部31は、追尾処理の対象として設定された主要被写体領域に対応するマスクのみを抽出する。すなわち、第1実施形態のステップS103(図2参照)および第2実施形態のステップS203におけるマスク抽出処理とは異なり、限定された条件でマスク抽出処理を行う。そのため、処理負荷は、第1実施形態のステップS103(図2参照)および第2実施形態のステップS203におけるマスク抽出処理よりも大幅に軽くなる。また、追尾ロックに基づくマスク抽出処理は、第1実施形態のステップS103(図2参照)および第2実施形態のステップS203におけるマスク抽出処理よりも、速いフレームレートで行われる。例えば、追尾が開始される前に行われる第1実施形態のステップS103(図2参照)および第2実施形態のステップS203におけるマスク抽出処理は、画像データをn(例えば、n=6)枚取得する毎に行われ、追尾が開始された後の追尾ロックに基づくマスク抽出処理は、画像データをm(例えば、m=3、ただし、n>m)枚取得する毎に行われる。   In step S216, the CPU 26 performs mask extraction processing based on the tracking lock described in step S212 by the region detection unit 31. The area detection unit 31 extracts only the mask corresponding to the main subject area set as the target of the tracking process. That is, unlike the mask extraction process in step S103 (see FIG. 2) of the first embodiment and the step S203 of the second embodiment, the mask extraction process is performed under limited conditions. Therefore, the processing load is significantly lighter than the mask extraction process in step S103 (see FIG. 2) of the first embodiment and step S203 of the second embodiment. The mask extraction process based on the tracking lock is performed at a faster frame rate than the mask extraction process in step S103 (see FIG. 2) of the first embodiment and step S203 of the second embodiment. For example, the mask extraction process in step S103 (see FIG. 2) of the first embodiment and step S203 of the second embodiment performed before tracking is started acquires n (for example, n = 6) image data. The mask extraction process based on the tracking lock after the tracking is started is performed each time m (for example, m = 3, where n> m) image data is acquired.

ステップS217において、CPU26は、被写体領域を抽出できたか否かを判定する。CPU26は、1つ以上の被写体領域を抽出できたと判定するとステップS218に進む。一方、被写体領域を1つも抽出できないと判定すると、CPU26は、ステップS214に戻り、次のフレームの画像に対してステップS214以降の処理を行う。   In step S217, the CPU 26 determines whether or not the subject area has been extracted. If the CPU 26 determines that one or more subject areas have been extracted, the process proceeds to step S218. On the other hand, if it is determined that no subject region can be extracted, the CPU 26 returns to step S214, and performs the processing from step S214 on the image of the next frame.

ステップS218において、CPU26は、表示制御部32により表示部23を制御して、追尾枠を表示部23に表示する。なお、追尾枠は、被写体領域の形状に応じたものであっても良いし、矩形や円形など所定の形状であっても良い。また、線の太さ、濃淡、色などはどのようなものであっても良い。追尾枠を表示することにより、ユーザは、現時点で追尾されているマスク、または、追尾されているマスクに対応する被写体領域を、容易に把握することができる。図7Bに例示したように、枠F1および枠F2のうち、枠F1を実線とし、枠F2を点線とし、枠F1に対応するマスクを選択状態とした状態で、ステップS211においてOKボタンがONされると、表示制御部32は、図7Cに例示するように、枠F1を実線とし、枠F1に対応するマスクが選択状態であることを視認可能に表示する。そして、追尾制御部34は、図7Dに例示するように、枠F1が画面端などに存在する場合でも、継続的に追尾処理を実行する。   In step S <b> 218, the CPU 26 controls the display unit 23 with the display control unit 32 to display a tracking frame on the display unit 23. The tracking frame may be in accordance with the shape of the subject area, or may be a predetermined shape such as a rectangle or a circle. Also, the line thickness, shading, color, etc. may be anything. By displaying the tracking frame, the user can easily grasp the mask currently being tracked or the subject area corresponding to the mask being tracked. As illustrated in FIG. 7B, the OK button is turned on in step S211 in a state where the frame F1 of the frames F1 and F2 is a solid line, the frame F2 is a dotted line, and the mask corresponding to the frame F1 is selected. Then, as illustrated in FIG. 7C, the display control unit 32 displays the frame F1 as a solid line so that the mask corresponding to the frame F1 is selected. And the tracking control part 34 performs a tracking process continuously, even when the frame F1 exists in a screen edge etc. so that it may illustrate in FIG. 7D.

ステップS218で追尾枠を表示するか、または、ステップS211において所定の時間を経過してもOKボタンがONされないと判定すると、ステップS219において、CPU26は、S2がONされたか否かを判定する。CPU26は、操作部27の不図示のシャッタボタンについて、S2がON(全押し)されて撮影指示が行われたと判定すると後述するステップS221に進む。一方、所定の時間を経過してもS2がONされないと判定すると、CPU26は、ステップS220に進む。   If the tracking frame is displayed in step S218, or if it is determined in step S211 that the OK button is not turned on even after a predetermined time has elapsed, in step S219, the CPU 26 determines whether or not S2 is turned on. If the CPU 26 determines that the shutter button (not shown) of the operation unit 27 is turned on (fully pressed) and a shooting instruction is given, the CPU 26 proceeds to step S221 described later. On the other hand, if it is determined that S2 is not turned on even after a predetermined time has elapsed, the CPU 26 proceeds to step S220.

ステップS220において、CPU26は、追尾ロックフラグがONされているか否かを判定する。CPU26は、ステップS212で説明した追尾ロックフラグがONされていると判定するとステップS214に戻り、次のフレームの画像に対してステップS214以降の処理を行う。つまり、CPU26は、AF制御部33により追尾対象として選択された主要被写体領域に対してコンティニュアスAFを実行する。一方、追尾ロックフラグがONされていないと判定すると、CPU26は、ステップS202に戻り、次のフレームの画像に対してステップS202以降の処理を行う。つまり、CPU26は、領域検出部31により新たにマスク抽出処理を実行する。   In step S220, the CPU 26 determines whether the tracking lock flag is ON. If the CPU 26 determines that the tracking lock flag described in step S212 is ON, the CPU 26 returns to step S214, and performs the processing from step S214 on for the next frame image. That is, the CPU 26 performs continuous AF on the main subject area selected as the tracking target by the AF control unit 33. On the other hand, if it is determined that the tracking lock flag is not turned on, the CPU 26 returns to step S202, and performs the processing from step S202 onward for the image of the next frame. That is, the CPU 26 newly executes a mask extraction process by the area detection unit 31.

ステップS219においてS2がONされたと判定すると、ステップS221において、CPU26は、各部を制御して撮影を実行する。なお、AE、AF、WB等の処理については、ステップS211において所定の時間を経過してもOKボタンがONされないと判定した場合には、ステップS210で設定した主要被写体領域の情報に基づいて行われる。また、ステップS218で追尾枠を表示した場合には、ステップS218で表示した追尾枠に対応する主要被写体領域の情報に基づいて、AE、AF、WB等の処理が行われる。   If it is determined in step S219 that S2 has been turned on, in step S221, the CPU 26 controls each unit to perform shooting. Note that processing such as AE, AF, and WB is performed based on information on the main subject area set in step S210 when it is determined in step S211 that the OK button is not turned on even after a predetermined time has elapsed. Is called. When the tracking frame is displayed in step S218, processing such as AE, AF, and WB is performed based on the information on the main subject area corresponding to the tracking frame displayed in step S218.

ステップS222において、CPU26は、ステップS221で実行した撮影により生成した画像の画像データを、通信部28を介して記憶媒体40に記録して一連の処理を終了する。   In step S222, the CPU 26 records the image data of the image generated by the shooting executed in step S221 on the storage medium 40 via the communication unit 28, and ends the series of processes.

以上説明したように、第2実施形態によれば、表示部による表示に基づいて選択された少なくとも1つの特定領域(例えば、被写体領域や注目領域など)を追尾対象に設定し、追尾対象を画像から検出する。したがって、追尾対象の選択の操作性を向上させるとともに、撮影の確実性を向上させることができる。   As described above, according to the second embodiment, at least one specific area (for example, a subject area or an attention area) selected based on display on the display unit is set as a tracking target, and the tracking target is an image. Detect from. Therefore, it is possible to improve the operability of selecting the tracking target and improve the certainty of shooting.

また、第2実施形態によれば、領域検出部は、追尾が開始される前は、画像データをn(ただし、nは1以上の整数)枚取得する毎に特定領域を検出し、追尾が開始されると、画像データをm(ただし、mは1以上の整数、かつ、n>m)枚取得する毎に特定領域を検出する。したがって、追尾開始後の処理の精密性を向上させ、撮影の確実性を向上させることができる。   In addition, according to the second embodiment, the area detection unit detects a specific area every time n (where n is an integer equal to or greater than 1) image data is acquired before tracking is started. When started, the specific area is detected every time m (where m is an integer of 1 or more and n> m) image data is acquired. Therefore, it is possible to improve the accuracy of processing after the start of tracking and improve the certainty of shooting.

なお、第2実施形態では、ユーザが、ステップS207において表示部23に表示された2つの主要被写体領域のうち、いずれかの領域を選択する指示を出す場合に、ユーザがS1をONし、ユーザが、主要被写体領域を追尾処理の対象として決定する指示を出す場合に、ユーザがOKボタンをONする例を示した。しかし、これは一例であり、2種類の操作を区別可能であれば、対応付けられる操作はどのようなものであっても良い。例えば、操作部27の不図示のマルチセレクタに操作を割り当てても良いし、専用の部材に操作を割り当てても良い。また、表示部23の表面に、ユーザによる接触に感応するタッチパネル部を備え、タッチパネル部を介して操作を受け付ける構成としても良い。タッチパネル部によれば、ユーザは、ステップS207において表示部23に表示された2つの主要被写体領域のうち、いずれかの領域を選択する場合には、選択したい領域またはその近傍を直接触れることにより選択可能である。また、ユーザは、主要被写体領域を追尾処理の対象として決定する際には、追尾処理の対象として決定したい領域またはその近傍を直接触れることにより決定可能である。   In the second embodiment, when the user issues an instruction to select one of the two main subject areas displayed on the display unit 23 in step S207, the user turns on S1, and the user However, the example in which the user turns on the OK button when giving an instruction to determine the main subject region as the target of the tracking process has been shown. However, this is merely an example, and any operations can be associated as long as the two types of operations can be distinguished. For example, an operation may be assigned to a multi selector (not shown) of the operation unit 27, or an operation may be assigned to a dedicated member. Moreover, it is good also as a structure which equips the surface of the display part 23 with the touch panel part which responds to the contact by a user, and receives operation via a touch panel part. According to the touch panel unit, when the user selects one of the two main subject areas displayed on the display unit 23 in step S207, the user selects the area by directly touching the area to be selected or the vicinity thereof. Is possible. Further, when determining the main subject area as the target of the tracking process, the user can determine by directly touching the area desired to be determined as the target of the tracking process or its vicinity.

<第3実施形態>
以下、第3実施形態について図面を参照して詳細に説明する。第3実施形態は、第1実施形態および第2実施形態の変形例である。したがって、第1実施形態および第2実施形態と異なる部分についてのみ説明し、第1実施形態および第2実施形態と同様の部分については説明を省略する。
<Third Embodiment>
Hereinafter, a third embodiment will be described in detail with reference to the drawings. The third embodiment is a modification of the first embodiment and the second embodiment. Therefore, only different parts from the first embodiment and the second embodiment will be described, and the description of the same parts as the first embodiment and the second embodiment will be omitted.

第3実施形態では、第1実施形態の図1に示したレンズ鏡筒10と、撮像装置20と、記憶媒体40とからなる装置を例に挙げて説明する。   In the third embodiment, a description will be given by taking as an example an apparatus including the lens barrel 10, the imaging device 20, and the storage medium 40 shown in FIG. 1 of the first embodiment.

第3実施形態は、表示のタイミングに関する変形例である。基本的には、以下の2点にしたがって、表示を行う。
1)マスク抽出処理に基づく特定領域(例えば、被写体領域や注目領域など)の検出結果に基づく所定の条件を満たした場合にのみ、表示を行う。
2)マスク抽出処理に基づく特定領域(例えば、被写体領域や注目領域など)の検出結果に基づく所定の条件を満たした場合には、表示を禁止する。
The third embodiment is a modification regarding display timing. Basically, display is performed according to the following two points.
1) Display is performed only when a predetermined condition based on a detection result of a specific area (for example, a subject area or an attention area) based on a mask extraction process is satisfied.
2) Display is prohibited when a predetermined condition based on a detection result of a specific region (for example, a subject region or a region of interest) based on the mask extraction process is satisfied.

以下、特定領域として主要被写体領域を検出する自動検出モード実行時のCPU26の動作について、図8のフローチャートを参照して説明する。   Hereinafter, the operation of the CPU 26 when executing the automatic detection mode for detecting the main subject area as the specific area will be described with reference to the flowchart of FIG.

ステップS301からステップS303において、CPU26は、第1実施形態のステップS101からステップS103(図2参照)と同様の処理を実行する。   In step S301 to step S303, the CPU 26 executes the same processing as in step S101 to step S103 (see FIG. 2) of the first embodiment.

ステップS304において、CPU26は、被写体領域を抽出できたか否かを判定する。CPU26は、1つ以上の被写体領域を抽出できたと判定するとステップS305に進む。一方、被写体領域を1つも抽出できないと判定すると、CPU26は、後述するステップS307に進む。   In step S304, the CPU 26 determines whether or not the subject area has been extracted. If the CPU 26 determines that one or more subject areas have been extracted, the process proceeds to step S305. On the other hand, if it is determined that no subject area can be extracted, the CPU 26 proceeds to step S307 to be described later.

ステップS305において、CPU26は、マスク情報を記録する。CPU26は、ステップS303で実行したマスク抽出処理の結果についての情報を、マスク情報としてバッファメモリ部24や記憶部25等に記録する。マスク情報には、ステップS103のマスク抽出処理の抽出条件(色区分やマスク区分など)、マスクの位置、マスクの大きさや形状、評価値による各マスクの順位などの情報が含まれる。   In step S305, the CPU 26 records mask information. The CPU 26 records information about the result of the mask extraction process executed in step S303 in the buffer memory unit 24, the storage unit 25, and the like as mask information. The mask information includes information such as the extraction conditions (color classification, mask classification, etc.) of the mask extraction processing in step S103, the position of the mask, the size and shape of the mask, and the rank of each mask based on the evaluation value.

ステップS306において、CPU26は、第1実施形態のステップS106と同様に、n回(nフレーム)以上連続して同一のマスクを抽出したか否かを判定する。CPU26は、n回以上連続して同一のマスクを抽出したと判定すると後述するステップS308に進む。一方、n回以上連続して同一のマスクを抽出していないと判定すると、CPU26は、ステップS307に進む。   In step S306, the CPU 26 determines whether or not the same mask has been extracted n times (n frames) or more, as in step S106 of the first embodiment. When the CPU 26 determines that the same mask has been extracted continuously n times or more, the CPU 26 proceeds to step S308 described later. On the other hand, when determining that the same mask has not been extracted n times or more in succession, the CPU 26 proceeds to step S307.

ステップS304において被写体領域を1つも抽出できないと判定した場合、または、ステップS306においてn回以上連続して同一のマスクを抽出していないと判定した場合、ステップS307において、CPU26は、各部を制御して警告処理を行う。警告処理とは、被写体領域を1つも抽出できない、または、n回以上連続して同一のマスクを抽出していないためマスク抽出が不安定であることをユーザに報知するための処理である。CPU26は、例えば、表示制御部32により表示部23を制御して、上述した報知内容を示すメッセージを表示部23に表示する。また、例えば、CPU26は、音声出力やランプなどを用いてユーザに対する報知を行っても良い。そして、警告処理を実行すると、CPU26は、後述するステップS315に進む。   If it is determined in step S304 that no subject area can be extracted, or if it is determined in step S306 that the same mask has not been extracted n or more times consecutively, in step S307, the CPU 26 controls each unit. To perform warning processing. The warning process is a process for notifying the user that no subject area can be extracted or that the mask extraction is unstable because the same mask is not extracted continuously n times or more. CPU26 controls the display part 23 by the display control part 32, for example, and displays the message which shows the alerting | reporting content mentioned above on the display part 23. FIG. Further, for example, the CPU 26 may notify the user using an audio output or a lamp. When the warning process is executed, the CPU 26 proceeds to step S315 described later.

さらに、警告処理において、CPU26は、ステップS304において被写体領域を1つも抽出できない場合、または、ステップS306においてn回以上連続して同一のマスクを抽出していない場合であっても、後述する撮影指示には対応できるように、仮領域の設定を行う。仮領域とは、例えば、予め定められた画像の中央領域である。   Further, in the warning process, the CPU 26 is not able to extract any subject area in step S304, or even if the same mask is not extracted in succession n times or more in step S306, a shooting instruction to be described later. The temporary area is set so that the The temporary area is, for example, a central area of a predetermined image.

ステップS306においてn回以上連続して同一のマスクを抽出したと判定した場合、ステップS308において、CPU26は、背景マスクまたは背景が移動したか否かを判定する。CPU26は、背景マスクまたは背景が移動したと判定するとステップS309に進む。一方、背景マスクまたは背景が移動していないと判定すると、CPU26は、後述するステップS312に進む。なお、背景マスクまたは背景が移動したか否かは、ステップS306においてn回以上連続して同一のマスクを抽出したと判定した各種マスクについて、複数のスルー画像間での位置変化(経時変化)を求めることにより判定される。位置変化は、ステップS305で説明した被写体情報に基づいて求めることができ、位置変化を示す値と所定の閾値とを比較することにより、背景マスクまたは背景が移動したか否かを判定することができる。なお、さらに、画像の動き情報を用いても良い。例えば、撮像装置20自体の動きを、不図示のセンサや生成した画像に基づいて求めることにより画像の動き情報を取得し、取得した画像の動き情報を加味して上述した判定を行う構成としても良い。   If it is determined in step S306 that the same mask has been extracted n times or more consecutively, in step S308, the CPU 26 determines whether the background mask or the background has moved. If the CPU 26 determines that the background mask or the background has moved, the process proceeds to step S309. On the other hand, when determining that the background mask or the background has not moved, the CPU 26 proceeds to step S312 described later. Note that whether or not the background mask or the background has moved is determined by changing the position (time-dependent change) between a plurality of through images for various masks determined to have been extracted n times or more consecutively in step S306. It is determined by seeking. The position change can be obtained based on the subject information described in step S305, and it is determined whether the background mask or the background has moved by comparing a value indicating the position change with a predetermined threshold value. it can. Furthermore, image motion information may be used. For example, the motion of the imaging device 20 itself may be obtained based on a sensor (not shown) or a generated image to obtain image motion information, and the above-described determination may be performed in consideration of the obtained motion information of the image. good.

ステップS309において、CPU26は、表示制御部32により表示部23を制御して、追尾候補枠を表示部23に表示する。なお、追尾候補枠とは、追尾対象として好ましいと考えられるマスクに対応するものである。上述したステップS308の判定により背景マスクまたは背景が移動している場合には、主要被写体が移動していると考えられるため、主要被写体領域は追尾対象として適していると判断することができる。つまり、CPU26は、追尾対象として適した被写体領域が、マスク抽出処理に基づいて検出されたか否かに基づいて、追尾候補枠の表示を行う。また、追尾候補枠は、被写体領域の形状に応じたものであっても良いし、矩形や円形など所定の形状であっても良い。また、線の太さ、濃淡、色などはどのようなものであっても良い。追尾候補枠を表示することにより、ユーザは、現時点で追尾対象として適すると推定できるマスクを、容易に把握することができる。   In step S <b> 309, the CPU 26 controls the display unit 23 with the display control unit 32 to display the tracking candidate frame on the display unit 23. The tracking candidate frame corresponds to a mask that is considered preferable as a tracking target. When the background mask or the background is moved according to the determination in step S308 described above, it can be determined that the main subject area is suitable as a tracking target because the main subject is considered to be moving. That is, the CPU 26 displays the tracking candidate frame based on whether or not a subject region suitable as a tracking target is detected based on the mask extraction process. The tracking candidate frame may be in accordance with the shape of the subject area, or may be a predetermined shape such as a rectangle or a circle. Also, the line thickness, shading, color, etc. may be anything. By displaying the tracking candidate frame, the user can easily grasp a mask that can be estimated to be suitable as a tracking target at the present time.

ステップS310において、CPU26は、OKボタンがONされたか否かを判定する。CPU26は、操作部27の不図示のマルチセレクタに設けられたOKボタンがONされたと判定するとステップS311に進む。一方、所定の時間を経過してもOKボタンがONされないと判定すると、CPU26は、後述するステップS315に進む。なお、本実施形態においては、ユーザがOKボタンをONする場合とは、ユーザが、ステップS309で表示された追尾候補枠の主要被写体領域を追尾処理の対象として決定し、追尾処理を開始する指示を出す場合である。   In step S310, the CPU 26 determines whether or not the OK button is turned on. If the CPU 26 determines that an OK button provided in a multi-selector (not shown) of the operation unit 27 has been turned on, the CPU 26 proceeds to step S311. On the other hand, if it is determined that the OK button is not turned on even after a predetermined time has elapsed, the CPU 26 proceeds to step S315 described later. In the present embodiment, the case where the user turns on the OK button means that the user determines the main subject area of the tracking candidate frame displayed in step S309 as the target of the tracking process and starts the tracking process. This is the case.

ステップS311において、CPU26は、追尾処理の開始を示す追尾ロックフラグをONにし、後述するステップS315に進む。   In step S311, the CPU 26 turns on a tracking lock flag indicating the start of the tracking process, and proceeds to step S315 described later.

ステップS308において、背景マスクまたは背景が移動していないと判定した場合、ステップS312において、CPU26は、被写体は複数であるか否かを判定する。CPU26は、被写体が複数であると判定するとステップS313に進む。一方、被写体が単数であると判定すると、CPU26は、後述するステップS315に進む。   If it is determined in step S308 that the background mask or the background has not moved, in step S312, the CPU 26 determines whether there are a plurality of subjects. If the CPU 26 determines that there are a plurality of subjects, the CPU 26 proceeds to step S313. On the other hand, when determining that the subject is singular, the CPU 26 proceeds to step S315 described later.

ステップS313において、CPU26は、第1実施形態のステップS107と同様に、表示制御部32により表示部23を制御して、主要被写体領域を表示部23に表示する。なお、ステップS312において被写体が複数であると判定される場合とは、第1実施形態および第2実施形態で説明した主要被写体変更処理や主要被写体選択処理などが有用な場合である。   In step S313, the CPU 26 controls the display unit 23 by the display control unit 32 to display the main subject area on the display unit 23, as in step S107 of the first embodiment. Note that the case where it is determined in step S312 that there are a plurality of subjects is a case where the main subject change processing and the main subject selection processing described in the first embodiment and the second embodiment are useful.

ステップS314において、CPU26は、表示制御部32を制御し、主要被写体選択処理を行う。主要被写体選択処理については、第1実施形態のステップS111(図2参照)と同様である。   In step S314, the CPU 26 controls the display control unit 32 to perform main subject selection processing. The main subject selection process is the same as step S111 (see FIG. 2) of the first embodiment.

ステップS307において警告処理を行った場合(以下、ケース1と称する)、または、ステップS311において追尾ロックフラグをONにした場合(以下、ケース2と称する)、または、ステップS312において被写体が単数であると判定した場合(以下、ケース3と称する)、または、ステップS314において主要被写体選択処理を行った場合(以下、ケース4と称する)、ステップS315において、CPU26は、AF制御部33により主要被写体領域を設定する。CPU26は、ケース毎に以下の領域を主要被写体領域として設定する。この主要被写体領域は撮影準備動作に用いることができる。
・ケース1・・・ステップS307において説明した仮領域を主要被写体領域として設定する。
・ケース2・・・ステップS310においてOKボタンがONされた際に、追尾処理の対象として設定されたマスクに対応する領域を主要被写体領域として設定する。
・ケース3・・・ステップS306においてn回以上連続して抽出されたと判定されたマスクに対応する領域を主要被写体領域として設定する。
・ケース4・・・ステップS314の主要被写体選択処理において選択されたマスクに対応する領域を主要被写体領域として設定する。
When a warning process is performed in step S307 (hereinafter referred to as case 1), or when the tracking lock flag is turned on in step S311 (hereinafter referred to as case 2), or there is a single subject in step S312. (Hereinafter referred to as case 3), or when main subject selection processing is performed in step S314 (hereinafter referred to as case 4), in step S315, the CPU 26 causes the AF control unit 33 to execute the main subject region. Set. The CPU 26 sets the following areas as main subject areas for each case. This main subject area can be used for a shooting preparation operation.
Case 1... The temporary area described in step S307 is set as the main subject area.
Case 2... When the OK button is turned on in step S310, the area corresponding to the mask set as the target of the tracking process is set as the main subject area.
Case 3... The area corresponding to the mask determined to have been extracted continuously n times or more in step S306 is set as the main subject area.
Case 4... An area corresponding to the mask selected in the main subject selection process in step S314 is set as the main subject area.

ステップS316において、CPU26は、撮影指示が行われたか否かを判定する。CPU26は、撮影指示が行われたと判定するとステップS317に進む。一方、所定の時間を経過しても撮影指示が行われないと判定すると、CPU26は、上述したステップS302に戻り、次のスルー画像を対象としてステップS302以降の処理を行う。なお、撮影指示は、操作部27のシャッタボタンを介したユーザ操作により行われる。このユーザ操作は、いわゆるS1(半押し)とS2(全押し)の何れであっても良い。   In step S316, the CPU 26 determines whether or not a shooting instruction has been issued. If the CPU 26 determines that a shooting instruction has been given, the process proceeds to step S317. On the other hand, if it is determined that no shooting instruction is given even after a predetermined time has elapsed, the CPU 26 returns to step S302 described above, and performs the processing from step S302 onward for the next through image. The photographing instruction is performed by a user operation via the shutter button of the operation unit 27. This user operation may be either so-called S1 (half press) or S2 (full press).

ステップS316において撮影指示が行われたと判定すると、ステップS317において、CPU26は、各部を制御して撮影を実行する。なお、AE、AF、WB等の処理については、ステップS315で設定した主要被写体領域の情報に基づいて行われる。   If it is determined in step S316 that a shooting instruction has been issued, in step S317, the CPU 26 controls each unit to perform shooting. Note that processing such as AE, AF, and WB is performed based on information on the main subject area set in step S315.

ステップS318において、CPU26は、ステップS317で実行した撮影により生成した画像の画像データを、通信部28を介して記憶媒体40に記録して一連の処理を終了する。   In step S318, the CPU 26 records the image data of the image generated by the shooting executed in step S317 on the storage medium 40 via the communication unit 28, and ends the series of processes.

以上説明したように、第3実施形態によれば、領域検出部による検出結果に基づく所定の条件を満たした場合にのみ、表示部への表示を行う。または、領域検出部による検出結果に基づく所定の条件を満たした場合には、表示部への表示を禁止する。したがって、不要な表示を避け、必要かつ有用な場合にのみ表示を行うことができる。   As described above, according to the third embodiment, display on the display unit is performed only when a predetermined condition based on the detection result by the region detection unit is satisfied. Alternatively, when a predetermined condition based on the detection result by the area detection unit is satisfied, display on the display unit is prohibited. Therefore, unnecessary display can be avoided and display can be performed only when necessary and useful.

また、第3実施形態によれば、上述した所定の条件は、領域検出部による特定領域(例えば、被写体領域や注目領域など)の検出の可否に基づく条件である。したがって、領域検出部による検出結果に応じて、不要な表示を避け、必要かつ有用な場合にのみ表示を行うことができる。   Further, according to the third embodiment, the predetermined condition described above is a condition based on whether or not a specific area (for example, a subject area or an attention area) can be detected by the area detection unit. Therefore, unnecessary display can be avoided and display can be performed only when necessary and useful according to the detection result by the region detection unit.

また、第3実施形態によれば、上述した所定の条件は、表示部による表示に基づいた選択をする際に、選択に適さない特定領域が存在するか否かに基づく条件である。したがって、選択に適さない特定領域が存在するか否かに応じて、不要な表示を避け、必要かつ有用な場合にのみ表示を行うことができる。   Further, according to the third embodiment, the predetermined condition described above is a condition based on whether or not there is a specific region that is not suitable for selection when making a selection based on the display by the display unit. Therefore, depending on whether or not there is a specific area that is not suitable for selection, unnecessary display can be avoided and display can be performed only when necessary and useful.

また、第3実施形態によれば、上述した所定の条件は、合焦制御の対象として適した特定領域が、領域検出部により検出されたか否かに基づく条件である。そのため、例えば、合焦制御の対象として適した特定領域が検出された場合にのみ表示を行うか、または、合焦制御の対象として適した特定領域が検出されない場合には、表示を禁止する。したがって、合焦制御の対象として適した特定領域が、領域検出部により検出されたか否かに応じて、不要な表示を避け、必要かつ有用な場合にのみ表示を行うことができる。   According to the third embodiment, the predetermined condition described above is a condition based on whether or not a specific area suitable as a focus control target is detected by the area detection unit. Therefore, for example, display is performed only when a specific area suitable as a focus control target is detected, or display is prohibited when a specific area suitable as a focus control target is not detected. Therefore, unnecessary display can be avoided and display can be performed only when necessary and useful, depending on whether or not a specific region suitable as a focus control target has been detected by the region detection unit.

また、第3実施形態によれば、上述した所定の条件は、追尾対象として適した特定領域が、領域検出部により検出されたか否かに基づく条件である。そのため、例えば、追尾対象としてとして適した特定領域が検出された場合にのみ表示を行うか、または、追尾対象としてとして適した特定領域検出されない場合には、表示を禁止する。したがって、追尾対象として適した特定領域が、領域検出部により検出されたか否かに応じて、不要な表示を避け、必要かつ有用な場合にのみ表示を行うことができる。   Further, according to the third embodiment, the predetermined condition described above is a condition based on whether or not a specific area suitable as a tracking target has been detected by the area detection unit. Therefore, for example, display is performed only when a specific area suitable as a tracking target is detected, or display is prohibited when a specific area suitable as a tracking target is not detected. Therefore, unnecessary display can be avoided and display can be performed only when necessary and useful, depending on whether or not a specific region suitable as a tracking target has been detected by the region detection unit.

なお、第3実施形態で説明した表示を行うタイミング、および、表示を禁止するタイミングは一例であり、本発明はこの例に限定されない。上述したように、マスク抽出処理に基づく特定領域の検出結果に基づく所定の条件を満たした場合にのみ、表示を行っても良いし、マスク抽出処理に基づく特定領域の検出結果に基づく所定の条件を満たした場合には、表示を禁止しても良い。例えば、撮影経験の豊富なユーザなど、不要な表示が迷惑となる場合には、最小限の表示のみ行う。また、例えば、撮影経験の少ない初心者など、不要な表示が混乱を招く場合には、助けとなる表示や、警告表示や、失敗の事前通知の表示のみを行うと良い。   In addition, the timing which performs the display demonstrated in 3rd Embodiment, and the timing which prohibits a display are examples, and this invention is not limited to this example. As described above, the display may be performed only when a predetermined condition based on the detection result of the specific area based on the mask extraction process is satisfied, or the predetermined condition based on the detection result of the specific area based on the mask extraction process If the above is satisfied, the display may be prohibited. For example, when unnecessary display becomes annoying, such as a user with abundant shooting experience, only minimal display is performed. Also, for example, when an unnecessary display causes confusion, such as a beginner with little shooting experience, it is preferable to perform only a display that is helpful, a warning display, or a prior notice of failure.

また、第3実施形態では、主要被写体領域を追尾処理の対象として決定する指示を出す場合に、ユーザがOKボタンをONする例を示した。しかし、これは一例であり、対応付けられる操作はどのようなものであっても良い。例えば、操作部27の不図示のマルチセレクタに操作を割り当てても良いし、専用の部材に操作を割り当てても良い。また、表示部23の表面に、ユーザによる接触に感応するタッチパネル部を備え、タッチパネル部を介して操作を受け付ける構成としても良い。   In the third embodiment, an example in which the user turns on the OK button when giving an instruction to determine the main subject region as the target of the tracking process has been described. However, this is merely an example, and any operations can be associated. For example, an operation may be assigned to a multi selector (not shown) of the operation unit 27, or an operation may be assigned to a dedicated member. Moreover, it is good also as a structure which equips the surface of the display part 23 with the touch panel part which responds to the contact by a user, and receives operation via a touch panel part.

以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   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.

上記の各実施形態では、ユーザ操作を受け付ける部材として、シャッタボタン、マルチセレクタ、タッチパネル部などを例示したが、本発明はこの例に限定されない。例えば、音声認識、モーションキャプチャ、生体センサなど、どのようなものを用いても良い。   In each of the above embodiments, the shutter button, the multi-selector, the touch panel unit, and the like are illustrated as members that receive user operations, but the present invention is not limited to this example. For example, any device such as voice recognition, motion capture, and biosensor may be used.

また、上記の各実施形態においては、構図確認用のスルー画像に基づいて、一連の処理を行う例を示したが、本発明はこの例に限定されない。例えば、一眼レフカメラなどにおいて生成される構図確認用のライブビュー画像を対象とする場合にも、本発明を同様に適用することができる。また、記憶媒体40等に記録された動画像を対象とする場合にも、本発明を同様に適用することができる。この場合、例えば、動画像を再生して編集する際に、ユーザにより一時停止指示が行われた場合に、自動で上記の各実施形態で説明した処理を開始しても良い。   In each of the above embodiments, an example in which a series of processing is performed based on a through image for composition confirmation has been described, but the present invention is not limited to this example. For example, the present invention can be similarly applied to a case where a live view image for composition confirmation generated in a single-lens reflex camera or the like is targeted. Further, the present invention can be similarly applied to a case where a moving image recorded in the storage medium 40 or the like is a target. In this case, for example, when the user gives a pause instruction when playing back and editing a moving image, the processing described in each of the above embodiments may be automatically started.

上述の各実施形態において説明した各処理の一部または全部を、適宜組み合わせて実行しても良い。   A part or all of the processes described in the above-described embodiments may be appropriately combined and executed.

また、上記の各実施形態においては、すべてのフレームを対象として一連の処理を行う例を示したが、本発明はこの例に限定されない。例えば、時間的に間欠して生成された複数の画像を対象としても良い。具体的には、適宜フレーム間引きを行った複数の画像を対象としても良い。この場合、上記の各実施形態における一連の処理は間引きされた複数の画像を対象として実行しつつ、すべての画像について表示を行っても良い。このような処理を行うことにより、処理負荷を軽減することができる。   In each of the above embodiments, an example in which a series of processing is performed for all frames has been described. However, the present invention is not limited to this example. For example, a plurality of images generated intermittently in time may be targeted. Specifically, a plurality of images subjected to frame thinning as appropriate may be targeted. In this case, a series of processing in each of the above embodiments may be performed for a plurality of thinned images, and display may be performed for all images. By performing such processing, the processing load can be reduced.

また、コンピュータと画像処理プログラムとからなる「コンピュータシステム」により、上述した各実施形態で説明した画像処理をソフトウェア的に実現しても良い。この場合、各実施形態で説明したフローチャートの処理の一部または全部をコンピュータシステムで実行する構成とすれば良い。例えば、図2のステップS102からステップS113の処理の一部または全部をコンピュータで実行しても良い。また、図5のステップS202から図6のステップS218の処理の一部または全部をコンピュータで実行しても良い。また、図8のステップS302からステップS315の処理の一部または全部をコンピュータで実行しても良い。このような構成とすることにより、上述した各実施形態と同様の処理を実施することが可能になる。   Further, the image processing described in each of the above-described embodiments may be realized by software by a “computer system” including a computer and an image processing program. In this case, the computer system may be configured to execute part or all of the processing of the flowcharts described in the embodiments. For example, part or all of the processing from step S102 to step S113 in FIG. 2 may be executed by a computer. Further, part or all of the processing from step S202 in FIG. 5 to step S218 in FIG. 6 may be executed by a computer. Further, part or all of the processing from step S302 to step S315 in FIG. 8 may be executed by a computer. By adopting such a configuration, it is possible to perform the same processing as in the above-described embodiments.

また、「コンピュータシステム」は、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 is a writable nonvolatile memory such as a flexible disk, a magneto-optical disk, a ROM, or a flash memory, a portable medium such as a CD-ROM, and a storage such as a hard disk built in the computer system. Refers to the device.

さらにコンピュータ読み取り可能な記録媒体とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。   Further, the computer-readable recording medium is a volatile memory (for example, DRAM (Dynamic Random Access) in a computer system serving as a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. Memory)) that holds a program for a certain period of time is also included.

また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。   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.

20…撮像装置、21…撮像部、22…画像処理装置、23‥表示部、26…CPU
DESCRIPTION OF SYMBOLS 20 ... Imaging device, 21 ... Imaging part, 22 ... Image processing apparatus, 23 ... Display part, 26 ... CPU

Claims (11)

画像の特徴量に基づいて画像に含まれる複数の被写体領域を検出する検出部と、
前記検出部で検出された複数の前記被写体領域のうち、少なくとも2つの被写体領域を示す指標を表示部に表示させる表示制御部と、
前記検出部で検出された複数の前記被写体領域のうち、第1被写体領域及び第2被写体領域を示す指標が前記表示部に表示されている場合において、前記第1被写体領域及び前記第2被写体領域を示す指標を、前記検出部で検出された複数の前記被写体領域のうち、前記第1被写体領域及び前記第2被写体領域とは異なる第3被写体領域を示す指標に変更して前記表示部に表示させる第1モードと、前記第1被写体領域及び前記第2被写体領域を示す指標の表示態様を変更して前記表示部に表示させる第2モードと、を前記表示制御部に行わせるための操作部と、
を備えることを特徴とする画像処理装置。
A detection unit for detecting a plurality of subject areas included in the image based on the feature amount of the image;
A display control unit for displaying an index indicating at least two subject regions among the plurality of subject regions detected by the detection unit;
Among the plurality of subject areas detected by the detection unit, when an indicator indicating the first subject area and the second subject area is displayed on the display unit, the first subject area and the second subject area Is changed to an index indicating a third subject region different from the first subject region and the second subject region among the plurality of subject regions detected by the detection unit and displayed on the display unit An operation unit for causing the display control unit to perform a first mode to be displayed and a second mode to display on the display unit by changing a display mode of an index indicating the first subject region and the second subject region When,
An image processing apparatus comprising:
請求項1に記載の画像処理装置において、
前記検出部は、取得した複数の画像毎に前記被写体領域を検出することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The image processing apparatus , wherein the detection unit detects the subject region for each of a plurality of acquired images.
請求項1または請求項2に記載の画像処理装置において、
前記表示制御部は、前記第1モードを行う場合、前記検出部で検出された複数の前記被写体領域から画像の特徴量に基づいて前記第3被写体領域を決定することを特徴とする画像処理装置。
The image processing apparatus according to claim 1 or 2,
The display control unit, when performing the first mode, determines the third subject region from a plurality of the subject regions detected by the detection unit based on an image feature amount. .
請求項1から請求項の何れか1項に記載の画像処理装置において、
前記表示制御部は、前記検出部による検出結果に基づく所定の条件を満たした場合にのみ、前記被写体領域を示す指標を前記表示部に表示を行わせることを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 3 ,
Wherein the display control unit only when a predetermined condition is satisfied based on the detection result by the pre-dangerous out section, an image processing apparatus, characterized in that to perform the display an indication that the subject region on the display unit.
請求項1から請求項の何れか1項に記載の画像処理装置において、
前記表示制御部は、前記検出部による検出結果に基づく所定の条件を満たした場合には、前記被写体領域を示す指標を前記表示部に表示を行わせることを禁止することを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 3 ,
Wherein the display control unit, when a predetermined condition is satisfied based on the detection result by the front danger out portion, wherein the benzalkonium be prohibited to perform the display an indication that the subject region on the display unit An image processing apparatus.
請求項または請求項に記載の画像処理装置において、
前記所定の条件は、前記検出部による前記被写体領域の検出の可否に基づく条件であることを特徴とする画像処理装置。
The image processing apparatus according to claim 4 or 5 ,
Wherein the predetermined condition, the image processing device comprising a condition der Turkey based on whether the detection of the object area by front dangerous out portion.
請求項または請求項に記載の画像処理装置において、
前記所定の条件は、前記表示部による表示に基づいた選択をする際に、選択に適さない前記被写体領域が存在するか否かに基づく条件であることを特徴とする画像処理装置。
The image processing apparatus according to claim 4 or 5 ,
Wherein the predetermined condition, when a selection based on displayed by the display unit, the image processing device comprising a condition der Turkey based on whether the object area that is not suitable for selection is present.
請求項1から請求項7の何れか1項に記載の画像処理装置を備えることを特徴とする撮像装置。 An image pickup apparatus comprising the image processing apparatus according to claim 1 . 請求項8に記載の撮像装置において、  The imaging device according to claim 8,
前記表示部を備えることを特徴とする撮像装置。  An imaging apparatus comprising the display unit.
請求項9に記載の撮像装置において、
前記表示制御部は、前記表示部による表示に基づいて選択された少なくとも1つの前記被写体領域に基づいて、本撮影のための準備動作を実行することを特徴とする撮像装置。
The imaging device according to claim 9,
The display controller, based on said at least one of the subject region is selected based on the display by the display unit, the imaging device comprising a benzalkonium perform a preparatory operation for the shot.
請求項10に記載の撮像装置において、
光学系からの光が入射される撮像部を備え、
前記表示制御部は、前記準備動作として、前記光学系に関する合焦制御を含む動作を実行することを特徴とする撮像装置。
The imaging device according to claim 10.
An imaging unit for receiving light from the optical system;
The display controller, as the preparation operation, the imaging device comprising a benzalkonium perform operations including focus control related to the optical system.
JP2013220995A 2013-10-24 2013-10-24 Image processing apparatus, imaging apparatus, and image processing program Active JP6273766B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013220995A JP6273766B2 (en) 2013-10-24 2013-10-24 Image processing apparatus, imaging apparatus, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013220995A JP6273766B2 (en) 2013-10-24 2013-10-24 Image processing apparatus, imaging apparatus, and image processing program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017254297A Division JP2018093500A (en) 2017-12-28 2017-12-28 Image processing apparatus, imaging apparatus, and image processing program

Publications (2)

Publication Number Publication Date
JP2015082801A JP2015082801A (en) 2015-04-27
JP6273766B2 true JP6273766B2 (en) 2018-02-07

Family

ID=53013187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013220995A Active JP6273766B2 (en) 2013-10-24 2013-10-24 Image processing apparatus, imaging apparatus, and image processing program

Country Status (1)

Country Link
JP (1) JP6273766B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6593629B2 (en) * 2015-09-09 2019-10-23 ソニー株式会社 Image processing apparatus, solid-state imaging device, and electronic device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5409189B2 (en) * 2008-08-29 2014-02-05 キヤノン株式会社 Imaging apparatus and control method thereof
JP5407380B2 (en) * 2009-02-03 2014-02-05 富士通モバイルコミュニケーションズ株式会社 Mobile terminal with imaging function
JP5233720B2 (en) * 2009-02-12 2013-07-10 ソニー株式会社 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP5814557B2 (en) * 2011-02-07 2015-11-17 キヤノン株式会社 Image display control device, imaging device, display control method, and control program
JP2013098746A (en) * 2011-10-31 2013-05-20 Jvc Kenwood Corp Imaging apparatus, imaging method, and program
JP5907738B2 (en) * 2012-01-23 2016-04-26 オリンパス株式会社 Imaging apparatus, display method, and program

Also Published As

Publication number Publication date
JP2015082801A (en) 2015-04-27

Similar Documents

Publication Publication Date Title
JP5251215B2 (en) Digital camera
US8300137B2 (en) Image sensing apparatus providing driving direction of focus lens for attaining in-focus state and control method therefor
US9380200B2 (en) Image pickup apparatus and control method in which object searching based on an image depends on pixel combining on the image
KR101542436B1 (en) Image pickup device and image pickup method
US20100046798A1 (en) Image processing apparatus, image processing method, and storage medium
JP5950664B2 (en) Imaging apparatus and control method thereof
JPWO2013001940A1 (en) TRACKING DEVICE AND TRACKING METHOD
JP2013160832A (en) Optical apparatus
US20090167931A1 (en) Imaging device
JP6234016B2 (en) Focus adjustment device, imaging device, and control method thereof
JP6273766B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP7319871B2 (en) Image processing device, image processing method, program, storage medium
JP2019205172A (en) Image processing apparatus, imaging apparatus, and image processing program
JP2006195037A (en) camera
JP6381416B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
KR20120068696A (en) Image capturing device and image capturing method
JP2018093500A (en) Image processing apparatus, imaging apparatus, and image processing program
JP2009188480A (en) Subject tracking program, subject tracking device, and camera
JP2002258344A (en) Camera
US9832364B2 (en) Automatic focal adjustment apparatus and method of controlling automatic focal adjustment apparatus, and image capture apparatus
US9525815B2 (en) Imaging apparatus, method for controlling the same, and recording medium to control light emission
JP2012132957A (en) Imaging apparatus and setup method therefor
JP2014023054A (en) Image processing apparatus, imaging apparatus, and image processing program
JP6303395B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP2010032669A (en) Digital still camera, and control method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160915

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7426

Effective date: 20170323

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20170323

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170327

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170530

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20170731

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170929

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: 20171212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171225

R150 Certificate of patent or registration of utility model

Ref document number: 6273766

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250