JP2013034154A - Region extraction device, imaging device, and region extraction program - Google Patents

Region extraction device, imaging device, and region extraction program Download PDF

Info

Publication number
JP2013034154A
JP2013034154A JP2011170059A JP2011170059A JP2013034154A JP 2013034154 A JP2013034154 A JP 2013034154A JP 2011170059 A JP2011170059 A JP 2011170059A JP 2011170059 A JP2011170059 A JP 2011170059A JP 2013034154 A JP2013034154 A JP 2013034154A
Authority
JP
Japan
Prior art keywords
region
area
priority
image
extracted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011170059A
Other languages
Japanese (ja)
Other versions
JP5899693B2 (en
Inventor
Itsuhito Hokoi
逸人 鉾井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2011170059A priority Critical patent/JP5899693B2/en
Publication of JP2013034154A publication Critical patent/JP2013034154A/en
Application granted granted Critical
Publication of JP5899693B2 publication Critical patent/JP5899693B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a region extraction device, an imaging device, and a region extraction program that are capable of appropriately extracting a region of a main subject from an input image.SOLUTION: A region extraction device 140 comprises: a region extraction unit 142 that, based on color information included in image data of an input image, extracts a predetermined region from the image; and a priority setting unit 143 that determines priority for the region extracted by the region extraction unit 142 in accordance with predetermined color information.

Description

本発明は、画像から領域を抽出する領域抽出装置、撮像装置、及び領域抽出プログラムに関する。   The present invention relates to a region extraction device, an imaging device, and a region extraction program that extract a region from an image.

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

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

しかしながら、特許文献1に開示された画像処理装置は、入力された画像から、人が注目する領域を抽出すること、すなわち、主要被写体の領域を適切に抽出することができないという問題がある。   However, the image processing apparatus disclosed in Patent Document 1 has a problem in that it cannot extract an area that is noticed by a person from an input image, that is, cannot appropriately extract an area of a main subject.

本発明は、前記の点に鑑みてなされたものであり、入力された画像から主要被写体の領域を適切に抽出することができる領域抽出装置、撮像装置、及び領域抽出プログラムを提供することを目的とする。   The present invention has been made in view of the above points, and an object thereof is to provide a region extraction device, an imaging device, and a region extraction program that can appropriately extract a region of a main subject from an input image. And

本発明は、上記の課題を解決するためになされたものであり、入力された画像の画像データに含まれる色情報に基づいて、前記画像から所定領域を抽出する領域抽出部と、前記領域抽出部により抽出された領域に、予め定められた色情報応じて優先度を定める優先度設定部と、を備えることを特徴とする領域抽出装置である。   The present invention has been made to solve the above-described problem, and an area extraction unit that extracts a predetermined area from the image based on color information included in image data of the input image, and the area extraction A region extracting apparatus comprising: a priority setting unit that determines priority according to predetermined color information in a region extracted by the unit.

また、本発明は、入力された画像の画像データに含まれる彩度情報に基づいて、前記画像から所定領域を抽出する領域抽出部と、前記領域抽出部により抽出された領域に、予め定められた彩度に応じて優先度を定める優先度設定部と、を備えることを特徴とする領域抽出装置である。   Further, the present invention is preliminarily determined for a region extraction unit that extracts a predetermined region from the image and a region extracted by the region extraction unit based on saturation information included in image data of the input image. And a priority setting unit that determines priority according to saturation.

また、本発明は、入力された画像の画像データに含まれる輝度情報に基づいて、前記画像から所定領域を抽出する領域抽出部と、前記領域抽出部により抽出された領域に、予め定められた輝度に応じて優先度を定める優先度設定部と、を備えることを特徴とする領域抽出装置である。   Further, according to the present invention, a region extraction unit that extracts a predetermined region from the image and a region extracted by the region extraction unit based on luminance information included in the image data of the input image are predetermined. And a priority setting unit that determines priority according to luminance.

また、本発明は、入力された画像の画像データに含まれる色情報を表す均等色空間の座標系における、原点からの距離に基づいて、前記画像から所定領域を抽出する領域抽出部と、前記領域抽出部により抽出された領域に、前記距離に応じて優先度を定める優先度設定部と、を備えることを特徴とする領域抽出装置である。   Further, the present invention provides a region extraction unit that extracts a predetermined region from the image based on a distance from the origin in a coordinate system of a uniform color space that represents color information included in image data of the input image, A region extraction apparatus comprising: a priority setting unit that determines priority according to the distance in a region extracted by a region extraction unit.

また、本発明は、領域抽出装置と、前記領域抽出装置が抽出した領域のうち、優先度が高い領域に合焦するよう光学系により焦点を調節する焦点調節部と、前記優先度が高い領域に合焦した状態で、前記優先度が高い領域を含む画像を撮像する撮像部と、を備えることを特徴とする撮像装置である。   The present invention also provides a region extraction device, a focus adjustment unit that adjusts a focus by an optical system so as to focus on a region having a high priority among regions extracted by the region extraction device, and a region having a high priority. And an imaging unit that captures an image including an area having a high priority in a focused state.

また、本発明は、コンピュータに、入力された画像の画像データに含まれる色情報に基づいて、前記画像から所定領域を抽出する手順と、前記所定領域に、予め定められた色情報に応じて優先度を定める手順と、を実行させるための領域抽出プログラムである。   The present invention also provides a computer according to a procedure for extracting a predetermined area from the image based on color information included in image data of an image input to the computer, and color information predetermined for the predetermined area. An area extraction program for executing a procedure for determining priority.

また、本発明は、コンピュータに、入力された画像の画像データに含まれる彩度情報に基づいて、前記画像から所定領域を抽出する手順と、前記所定領域に、予め定められた彩度に応じて優先度を定める手順と、を実行させるための領域抽出プログラムである。   The present invention also provides a computer according to a procedure for extracting a predetermined area from the image based on the saturation information included in the image data of the input image, and a predetermined saturation for the predetermined area. And a procedure for determining the priority.

また、本発明は、コンピュータに、入力された画像の画像データに含まれる輝度情報に基づいて、前記画像から所定領域を抽出する手順と、前記所定領域に、予め定められた輝度に応じて優先度を定める手順と、を実行させるための領域抽出プログラムである。   Further, the present invention provides a procedure for extracting a predetermined area from the image based on the luminance information included in the image data of the image input to the computer, and gives priority to the predetermined area in accordance with a predetermined luminance. A region extracting program for executing the procedure for determining the degree.

また、本発明は、コンピュータに、入力された画像の画像データに含まれる色情報を表す均等色空間の座標系における、原点からの距離に基づいて、前記画像から所定領域を抽出する手順と、前記所定領域に、前記距離に応じて優先度を定める手順と、を実行させるための領域抽出プログラムである。   Further, the present invention provides a computer for extracting a predetermined area from the image based on the distance from the origin in the coordinate system of the uniform color space representing the color information included in the image data of the input image; And a procedure for determining a priority according to the distance in the predetermined area.

本発明によれば、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。   According to the present invention, the region extraction device can appropriately extract the region of the main subject from the input image.

本発明の一実施形態における、レンズ鏡筒と、領域抽出装置を備える撮像装置と、記憶媒体との構成を表すブロック図である。It is a block diagram showing the structure of a lens barrel, an imaging device provided with a region extraction device, and a storage medium in an embodiment of the present invention. 本発明の一実施形態における、画像から抽出された領域の例を表す図である。It is a figure showing the example of the area | region extracted from the image in one Embodiment of this invention. 本発明の一実施形態における、変更された閾値に基づいて画像から抽出された領域の例を表す図である。It is a figure showing the example of the area | region extracted from the image based on the changed threshold value in one Embodiment of this invention. 均等色空間の座標系を表す図である。It is a figure showing the coordinate system of uniform color space. 本発明の一実施形態における、領域に合焦させるまでの処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process until it focuses on an area | region in one Embodiment of this invention. 本発明の一実施形態における、赤色系領域に高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which determines a high priority in a red type | system | group area | region in one Embodiment of this invention. 本発明の一実施形態における、赤色系領域、黄色系領域及び青色系領域に、高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which determines a high priority in a red area | region, a yellow area | region, and a blue area | region in one Embodiment of this invention. 本発明の一実施形態における、赤色系領域、黄色系領域、青色系領域の順に高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which determines a high priority in order of a red-type area | region, a yellow-type area | region, and a blue-type area | region in one Embodiment of this invention. 本発明の一実施形態における、赤色系領域、黄色系領域、青色系領域及び高輝度領域に、高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which determines a high priority in a red area | region, a yellow area | region, a blue area | region, and a high-intensity area | region in one Embodiment of this invention. 本発明の一実施形態における、他の抽出された領域と比較して低い優先度を、低輝度領域に定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which determines a low priority compared with the other extracted area | region in one Embodiment of this invention in a low-intensity area | region.

本発明の一実施形態について図面を参照して詳細に説明する。図1には、レンズ鏡筒111と、領域抽出装置140を備える撮像装置100と、記憶媒体200との構成が、ブロック図により表されている。撮像装置100は、レンズ鏡筒111から入射される光学像を撮像し、得られた画像を静止画又は動画の画像として、記憶媒体200に記憶させる。   An embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram illustrating the configuration of the lens barrel 111, the imaging device 100 including the region extraction device 140, and the storage medium 200. The imaging device 100 captures an optical image incident from the lens barrel 111 and stores the obtained image in the storage medium 200 as a still image or a moving image.

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

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

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

鏡筒制御部118は、撮像装置100のCPU190から入力される駆動制御信号に応じて、レンズ駆動部116を制御する。ここで、駆動制御信号とは、AFレンズ112を光軸方向に駆動させる制御信号である。鏡筒制御部118は、駆動制御信号に応じて、例えば、レンズ駆動部116に出力するパルス電圧のステップ数を変更する。   The lens barrel control unit 118 controls the lens driving unit 116 in accordance with a drive control signal input from the CPU 190 of the imaging apparatus 100. Here, the drive control signal is a control signal for driving the AF lens 112 in the optical axis direction. The lens barrel control unit 118 changes the number of steps of the pulse voltage output to the lens driving unit 116, for example, according to the drive control signal.

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

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

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

撮像部110は、撮像素子119と、A/D(Analog/Digital)変換部120とを備える。撮像部110は、設定された撮像条件(例えば絞り値、露出値等)に従って、CPU190により制御される。   The imaging unit 110 includes an imaging element 119 and an A / D (Analog / Digital) conversion unit 120. The imaging unit 110 is controlled by the CPU 190 in accordance with the set imaging conditions (for example, aperture value, exposure value, etc.).

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

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

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

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

領域抽出装置140は、記憶部160に記憶されている画像処理条件に基づいて、バッファメモリ部130に記憶されている画像を画像処理する。画像処理された画像は、通信部170を介して記憶媒体200に記憶される。   The area extraction device 140 performs image processing on the image stored in the buffer memory unit 130 based on the image processing conditions stored in the storage unit 160. The processed image is stored in the storage medium 200 via the communication unit 170.

また、領域抽出装置140は、画像特徴量に基づいて、バッファメモリ部130に記憶されている画像から領域を抽出し、抽出した領域に優先度を定める。また、領域抽出装置140は、抽出した領域を示す情報を記憶部160に記憶させる。ここで、領域を示す情報とは、例えば、領域の分布を表す情報、領域の画像特徴量を表す情報、及び領域に定められた優先度を表す情報である。   Further, the region extraction device 140 extracts a region from the image stored in the buffer memory unit 130 based on the image feature amount, and determines the priority for the extracted region. Further, the region extraction device 140 stores information indicating the extracted region in the storage unit 160. Here, the information indicating the region is, for example, information indicating the distribution of the region, information indicating the image feature amount of the region, and information indicating the priority set for the region.

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

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

記憶部160は、シーン判定の際にCPU190によって参照される判定条件と、シーン判定によって判断されたシーン毎に対応付けられた撮像条件と、領域を示す情報等とを記憶する。   The storage unit 160 stores determination conditions referred to by the CPU 190 in scene determination, imaging conditions associated with each scene determined by scene determination, information indicating a region, and the like.

CPU190は、設定された撮像条件(例えば、絞り値、露出値)に従って、撮像部110を制御する。また、CPU190は、領域を示す情報を、領域抽出装置140から取得する。また、CPU190は、領域を示す情報に基づいてレンズ鏡筒111の鏡筒制御部118に駆動制御信号を出力することで、画像から抽出された領域のうち、領域抽出装置140が設定した優先度が高い領域に合焦させるよう焦点を調節する。これにより、優先度が高い領域を含む画像は、優先度が高い領域に光学系により合焦した状態で、撮像部110により撮像される。   The CPU 190 controls the imaging unit 110 according to the set imaging conditions (for example, aperture value, exposure value). In addition, the CPU 190 acquires information indicating a region from the region extraction device 140. In addition, the CPU 190 outputs a drive control signal to the lens barrel control unit 118 of the lens barrel 111 based on the information indicating the region, so that the priority set by the region extracting device 140 among the regions extracted from the image is set. Adjust the focus to focus on a high area. Thereby, an image including a high priority area is captured by the imaging unit 110 in a state where the optical system is focused on the high priority area.

また、CPU190は、領域を示す情報に基づいて、画像処理のプレ処理又はポスト処理として、焦点調整(AF)の設定、露出調整(AE)の設定、ホワイトバランス調整(AWB)の設定、被写体像(オブジェクト)の追尾の設定、夜景か否かの判定の設定、色補正処理の設定、被写体像の拡大表示の設定、パンニング表示の設定、ズーム倍率に連動した明るさの最適化の設定、などを制御する。   Also, the CPU 190 performs focus adjustment (AF) setting, exposure adjustment (AE) setting, white balance adjustment (AWB) setting, subject image as pre-processing or post-processing of image processing based on the information indicating the area. (Object) tracking setting, night scene judgment setting, color correction processing setting, subject image enlarged display setting, panning display setting, brightness optimization setting linked with zoom magnification, etc. To control.

また、CPU190は、領域を示す情報に基づいて、トーンカーブ(階調カーブ)の設定、静止画及び動画の同時撮影を実行するか否かの設定などを制御する。   Further, the CPU 190 controls setting of a tone curve (gradation curve), whether or not to execute simultaneous shooting of a still image and a moving image, and the like based on information indicating a region.

また、CPU190は、領域を示す情報に基づいて、プレ処理又はポスト処理として、連写するか否かの設定、及び、連写において、合焦させる被写体像の切り替えの設定、焦点距離の連続変更の設定、撮像装置100の発光部(不図示)が発光する閃光の発光量の変更の設定、露光量の変更の設定、又はシャッタスピードの変更を実行するか否かの設定などを制御する。   In addition, the CPU 190 sets whether to perform continuous shooting as pre-processing or post-processing based on information indicating the area, setting for switching the subject image to be focused in continuous shooting, and continuously changing the focal length. , Setting for changing the amount of flash light emitted from the light emitting unit (not shown) of the image capturing apparatus 100, setting for changing the exposure amount, setting for whether to change the shutter speed, and the like.

また、CPU190は、操作部180から入力された「操作入力に応じた信号」に基づいて、静止画形式又は動画形式の画像を、領域抽出装置140に画像処理させる。   In addition, the CPU 190 causes the region extraction device 140 to perform image processing on an image in a still image format or a moving image format based on the “signal according to the operation input” input from the operation unit 180.

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

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

次に、領域抽出装置140の詳細について説明する。
領域抽出装置140は、特徴量算出部141と、領域抽出部142と、優先度設定部143とを備える。
Next, details of the region extraction device 140 will be described.
The region extraction device 140 includes a feature amount calculation unit 141, a region extraction unit 142, and a priority setting unit 143.

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

領域抽出部142は、特徴量算出部141が算出した画像特徴量を取得する。また、領域抽出部142は、撮像部110が撮像した画像を、バッファメモリ部130から取得する。領域抽出部142は、撮像部110により撮像された画像から、画像特徴量(例えば、色情報、彩度情報、輝度情報)に基づいて領域を抽出する。ここで、領域抽出部142が抽出する領域とは、バッファメモリ部130から取得した画像に含まれる、被写体の領域である。   The region extraction unit 142 acquires the image feature amount calculated by the feature amount calculation unit 141. Further, the region extraction unit 142 acquires an image captured by the imaging unit 110 from the buffer memory unit 130. The region extraction unit 142 extracts a region from the image captured by the imaging unit 110 based on image feature amounts (for example, color information, saturation information, and luminance information). Here, the region extracted by the region extraction unit 142 is a region of the subject included in the image acquired from the buffer memory unit 130.

また、領域抽出部142は、画像特徴量に定められた一定範囲と、その範囲外とに2値化された画像(以下、「2値画像」という)から領域を抽出し、抽出した領域にラベルを割り当てる(ラベリング)。ここで、一定範囲は、予め定められた閾値の上限及び下限により、画像特徴量が区分されることで定められる。また、閾値は、画像における画像特徴量の平均値(Ave)及び標準偏差(σ)に基づいて、例えば、「平均値+係数×標準偏差」と定められてもよい。   In addition, the region extraction unit 142 extracts a region from an image binarized outside a certain range determined by the image feature amount and outside the range (hereinafter referred to as “binary image”), and extracts the region as the extracted region. Assign labels (labeling). Here, the certain range is determined by dividing the image feature amount by an upper limit and a lower limit of a predetermined threshold. Further, the threshold value may be defined as, for example, “average value + coefficient × standard deviation” based on the average value (Ave) and standard deviation (σ) of the image feature amount in the image.

図2には、画像から抽出された領域の例が表されている。領域抽出部142は、撮像部110が撮像した画像から、輝度に基づく画像(以下、「Y画像」という)を抽出する。領域抽出部142は、撮像部110が撮像した画像の輝度(入力値)を補正(例えば、ガンマ補正)し、補正した輝度(出力値)を算出する。   FIG. 2 shows an example of a region extracted from the image. The area extraction unit 142 extracts an image based on luminance (hereinafter referred to as “Y image”) from the image captured by the imaging unit 110. The area extraction unit 142 corrects the luminance (input value) of the image captured by the imaging unit 110 (for example, gamma correction), and calculates the corrected luminance (output value).

領域抽出部142は、補正した輝度(出力値)を、複数の範囲に区分する。図2では、一例として、補正した輝度は、区分1〜4に区分されたとする。領域抽出部142は、区分毎に2値画像を生成する。これにより、区分1の範囲上限が「平均値+K1×標準偏差」であり、区分1の範囲下限が「平均値+K2×標準偏差」である場合、区分1の2値画像には、高輝度領域が含まれる。   The area extraction unit 142 divides the corrected luminance (output value) into a plurality of ranges. In FIG. 2, as an example, it is assumed that the corrected luminance is divided into sections 1 to 4. The area extraction unit 142 generates a binary image for each section. Accordingly, when the upper limit of the range of the category 1 is “average value + K1 × standard deviation” and the lower limit of the range of the category 1 is “average value + K2 × standard deviation”, the binary image of the category 1 has a high luminance area. Is included.

領域抽出部142は、区分1の2値画像に含まれている高輝度領域の分布を探索することにより、探索結果を表す2値画像(領域画像)に、高輝度領域300を抽出する。同様に、領域抽出部142は、区分2の2値画像に含まれている中輝度領域を探索することにより、領域画像に中輝度領域310を抽出する。また、領域抽出部142は、区分4の2値画像に含まれている低輝度領域を探索することにより、領域画像に低輝度領域320を抽出する。   The region extracting unit 142 extracts the high luminance region 300 from the binary image (region image) representing the search result by searching for the distribution of the high luminance region included in the binary image of category 1. Similarly, the region extraction unit 142 extracts the medium luminance region 310 from the region image by searching for the medium luminance region included in the binary image of category 2. Further, the region extraction unit 142 extracts the low luminance region 320 from the region image by searching for the low luminance region included in the binary image of category 4.

同様に、領域抽出部142は、補正した色情報Crを、複数の範囲に区分する。図2では、一例として、補正した色情報Crは、区分5〜8に区分されたとする。領域抽出部142は、区分毎に2値画像を生成する。これにより、区分5の範囲上限が「平均値+K3×標準偏差」であり、区分5の範囲下限が「平均値+K4×標準偏差」である場合、区分5の2値画像には、赤色系領域が含まれる。   Similarly, the area extraction unit 142 divides the corrected color information Cr into a plurality of ranges. In FIG. 2, as an example, it is assumed that the corrected color information Cr is divided into sections 5 to 8. The area extraction unit 142 generates a binary image for each section. As a result, when the upper limit of the range of the category 5 is “average value + K3 × standard deviation” and the lower limit of the range of the category 5 is “average value + K4 × standard deviation”, the binary image of the category 5 Is included.

領域抽出部142は、区分5の2値画像に含まれる赤色系領域の分布を探索することにより、領域画像に、赤色系領域400を抽出する。同様に、領域抽出部142は、区分6の2値画像に含まれる桃色系領域を探索することにより、領域画像に桃色系領域410を抽出する。また、領域抽出部142は、区分8の2値画像に含まれる緑色系領域を探索することにより、領域画像に緑色系領域420を抽出する。   The region extraction unit 142 extracts the red-based region 400 from the region image by searching for the distribution of the red-based region included in the binary image of category 5. Similarly, the area extraction unit 142 searches for the pink area included in the binary image of Section 6 to extract the pink area 410 from the area image. In addition, the region extraction unit 142 extracts a green region 420 from the region image by searching for a green region included in the binary image of category 8.

同様に、領域抽出部142は、補正した色情報Cbを、複数の範囲に区分する。図2では、一例として、補正した色情報Cbは、区分9〜12に区分されたとする。領域抽出部142は、区分毎に2値画像を生成する。これにより、区分9の範囲上限が「平均値+K5×標準偏差」であり、区分9の範囲下限が「平均値+K6×標準偏差」である場合、区分9の2値画像には、青色系領域が含まれる。   Similarly, the area extraction unit 142 divides the corrected color information Cb into a plurality of ranges. In FIG. 2, as an example, it is assumed that the corrected color information Cb is divided into sections 9 to 12. The area extraction unit 142 generates a binary image for each section. Accordingly, when the upper limit of the range of the category 9 is “average value + K5 × standard deviation” and the lower limit of the range of the category 9 is “average value + K6 × standard deviation”, the binary image of the category 9 includes the blue region Is included.

領域抽出部142は、区分9の2値画像に含まれる青色系領域の分布を探索することにより、領域画像に青色系領域500を抽出する。同様に、領域抽出部142は、区分10の2値画像に含まれる水色系領域を探索することにより、領域画像に水色系領域510を抽出する。また、領域抽出部142は、区分12の2値画像に含まれる黄色系領域を探索することにより、領域画像に黄色系領域520を抽出する。   The area extraction unit 142 extracts the blue area 500 from the area image by searching for the distribution of the blue area included in the binary image of section 9. Similarly, the region extraction unit 142 extracts a light blue system region 510 from the region image by searching for a light blue system region included in the binary image of the section 10. In addition, the region extraction unit 142 extracts a yellow region 520 from the region image by searching for a yellow region included in the binary image of the section 12.

また、輝度領域については、輝度がより低い最低輝度領域を抽出するようにしてもよい。ここで、領域抽出部142は、閾値をより低い値に変更し、変更した閾値よりも低い輝度の領域を抽出する。このようにすれば、領域抽出部142は、例えば、影が撮像されている領域が含まれている低輝度領域320では無く、黒色の被写体が撮像されている最低輝度領域を抽出することができる。   As for the luminance region, the lowest luminance region having a lower luminance may be extracted. Here, the region extraction unit 142 changes the threshold value to a lower value, and extracts a region having a luminance lower than the changed threshold value. In this way, for example, the region extraction unit 142 can extract the lowest luminance region where the black subject is imaged, not the low luminance region 320 including the region where the shadow is imaged. .

図3には、変更された閾値に基づいて画像から抽出された領域の例が表されている。図3では、区分3と区分4との境界を定める閾値が、より低い値に変更されたとする。これにより、影が撮像されている領域が低輝度領域320から除外され、黒色の被写体のみが撮像されている最低輝度領域321が、領域画像に抽出される。   FIG. 3 shows an example of a region extracted from the image based on the changed threshold value. In FIG. 3, it is assumed that the threshold value that defines the boundary between the category 3 and the category 4 is changed to a lower value. Thereby, the area where the shadow is imaged is excluded from the low luminance area 320, and the lowest luminance area 321 where only the black subject is imaged is extracted as the area image.

図1に戻り、領域抽出装置140の構成の説明を続ける。優先度設定部143は、領域抽出部142により抽出された領域に、人がより注目しているであろう領域を示す優先度を定める。優先度設定部143は、領域毎に算出される評価値に応じて、領域に優先度を定める。   Returning to FIG. 1, the description of the configuration of the region extraction device 140 will be continued. The priority setting unit 143 determines a priority indicating a region that a person will be more interested in in the region extracted by the region extraction unit 142. The priority setting unit 143 determines the priority for each area according to the evaluation value calculated for each area.

例えば、優先度設定部143は、画角中心から領域の重心までの距離に応じて、領域毎に評価値を定める。ここで、評点算出部143は、画角中心の近くに分布する領域ほど、その領域に高い評価値を定める。また、例えば、優先度設定部143は、領域の慣性モーメントに応じて、その領域に評価値を定める。優先度設定部143は、慣性モーメントが小さい(重心に集中している)領域には、高い評価値を定める。また、例えば、優先度設定部143は、領域の面積(画素数)に応じて、領域に評価値を定める。評点算出部143は、予め定められた面積に近い領域ほど、その領域に高い評価値を定める。   For example, the priority setting unit 143 determines an evaluation value for each region according to the distance from the center of the angle of view to the center of gravity of the region. Here, the score calculation unit 143 determines a higher evaluation value for the region distributed closer to the center of the angle of view. In addition, for example, the priority setting unit 143 determines an evaluation value for a region according to the moment of inertia of the region. The priority setting unit 143 determines a high evaluation value in a region where the moment of inertia is small (concentrated at the center of gravity). For example, the priority setting unit 143 determines an evaluation value for a region according to the area (number of pixels) of the region. The score calculation unit 143 determines a higher evaluation value for a region closer to a predetermined area.

また、優先度設定部143は、領域抽出部142により抽出された領域に、予め定められた色相に応じて優先度を定める。ここで、優先度設定部143は、領域抽出部142により抽出された領域に、均等色空間(L表色系)における色相角に応じて優先度を定める。 Further, the priority setting unit 143 sets priorities in the regions extracted by the region extracting unit 142 according to a predetermined hue. Here, the priority setting unit 143 determines the priority for the region extracted by the region extraction unit 142 according to the hue angle in the uniform color space (L * a * b * color system).

図4には、均等色空間の座標系が表されている。Lは、明度指数である。また、a及びbは、色度指数(クロマティクネス指数)である。ここで、aの正方向は赤色を表し、aの負方向は緑色を表す。一方、bの正方向は黄色を表し、bの負方向は青色を表す。また、h(=tan−1(b/a))は、色相角(メトリック色相角)である。また、C(=√((a+(b))は、彩度である。また、R(=√((L+(a+(b)))は、原点からの距離(色差)である。 FIG. 4 shows a coordinate system of the uniform color space. L * is the brightness index. Moreover, a * and b * are chromaticity indices (chromicness indices). Here, the positive direction of the a * represents the red, the negative direction of the a * represents green. On the other hand, the positive direction of b * indicates yellow, negative direction b * represents blue. Further, h (= tan −1 (b * / a * )) is a hue angle (metric hue angle). C * (= √ ((a * ) 2 + (b * ) 2 )) is saturation. R (= √ ((L * ) 2 + (a * ) 2 + (b * ) 2 ))) is a distance (color difference) from the origin.

優先度設定部143は、赤色(図2では、赤色系領域400)、黄色(図2では、黄色系領域520)及び青色(図2では、青色系領域500)の抽出された領域に、他の色の抽出された領域と比較して高い優先度を定める。ここで、優先度設定部143は、赤色の抽出された領域、黄色の抽出された領域、青色の抽出された領域の順に高い優先度を、抽出された各領域に定めてもよい。   The priority setting unit 143 adds other regions to the extracted regions of red (red region 400 in FIG. 2), yellow (yellow region 520 in FIG. 2), and blue (blue region 500 in FIG. 2). A higher priority is set in comparison with the extracted region of the color. Here, the priority setting unit 143 may set a higher priority in the order of the extracted red area, the extracted yellow area, and the extracted blue area for each extracted area.

また、優先度設定部143は、領域抽出部142により抽出された領域に、彩度(C)に応じて優先度を定める。例えば、優先度設定部143は、彩度の高い抽出された領域に、高い優先度を定める。 Further, the priority setting unit 143 determines the priority for the region extracted by the region extraction unit 142 according to the saturation (C * ). For example, the priority setting unit 143 determines a high priority for the extracted region with high saturation.

また、優先度設定部143は、領域抽出部142により輝度(Y)に基づいて抽出された領域に、輝度に応じた明度(L)に応じて優先度を定める。例えば、優先度設定部143は、明度の高い抽出された領域に、高い優先度を定める。 Further, the priority setting unit 143 determines the priority for the region extracted based on the luminance (Y) by the region extracting unit 142 according to the lightness (L * ) corresponding to the luminance. For example, the priority setting unit 143 determines a high priority for the extracted area with high brightness.

また、優先度設定部143は、予め定められた第1閾値(図2では、区分1と区分2との境界となる閾値)よりも高い輝度の抽出された領域に、他の抽出された領域と比較して高い優先度を定める。また、優先度設定部143は、赤色の抽出された領域(図2では、赤色系領域400)、黄色の抽出された領域(図2では、黄色系領域520)、第1閾値よりも高い輝度の抽出された領域(図2では、高輝度領域300)、青色の抽出された領域(図2では、青色系領域500)の順に高い優先度を、抽出された各領域に定める。   In addition, the priority setting unit 143 adds another extracted region to an extracted region whose luminance is higher than a predetermined first threshold value (a threshold value that is a boundary between the segment 1 and the segment 2 in FIG. 2). A higher priority than that. In addition, the priority setting unit 143 has a luminance that is higher than the red extracted region (the red region 400 in FIG. 2), the yellow extracted region (the yellow region 520 in FIG. 2), and the first threshold value. The extracted areas (high luminance area 300 in FIG. 2) and blue extracted areas (blue system area 500 in FIG. 2) are assigned a higher priority in the order of the extracted areas.

また、優先度設定部143は、予め定められた第2閾値(図2では、区分3と区分4との境界となる閾値)よりも低い輝度の抽出された領域(図2では、最低輝度領域320)に、他の抽出された領域と比較して低い優先度を定める。   In addition, the priority setting unit 143 extracts an area where the luminance is lower than a predetermined second threshold value (a threshold value that is a boundary between the category 3 and the category 4 in FIG. 2) (the lowest luminance region in FIG. 2). 320), a low priority is set in comparison with other extracted regions.

また、優先度設定部143は、領域抽出部142により変更された第2閾値よりも低い輝度の抽出された領域(図3では、低輝度領域320)に、他の抽出された領域と比較して低い優先度を定める。   In addition, the priority setting unit 143 compares the extracted region (the low luminance region 320 in FIG. 3) with a luminance lower than the second threshold changed by the region extracting unit 142 with other extracted regions. Low priority.

また、優先度設定部143は、均等色空間の座標系における原点からの距離R(図4を参照)に応じて、抽出された領域に優先度を定める。例えば、優先度設定部143は、均等色空間の座標系において、原点からの距離(色差)が長い位置に在る抽出された領域に、高い優先度を定める。   Further, the priority setting unit 143 sets priorities for the extracted regions in accordance with the distance R from the origin in the coordinate system of the uniform color space (see FIG. 4). For example, the priority setting unit 143 sets a high priority for the extracted region located at a position where the distance (color difference) from the origin is long in the coordinate system of the uniform color space.

優先度設定部143は、領域毎に定めた優先度を、領域を示す情報として記憶部160に記憶させる。   The priority setting unit 143 stores the priority determined for each region in the storage unit 160 as information indicating the region.

次に、領域抽出装置の処理の手順を説明する。
図5は、領域に合焦させるまでの処理の手順を表すフローチャートである。特徴量算出部141は、撮像された画像(スルー画像、又はスルー画像列)を、バッファメモリ部130から取り込み(ステップS1)、取り込んだ画像に対して、基本的な画像処理を実行する(ステップS2)。
Next, the processing procedure of the region extraction apparatus will be described.
FIG. 5 is a flowchart showing a processing procedure until focusing on an area. The feature amount calculation unit 141 captures a captured image (through image or through image sequence) from the buffer memory unit 130 (step S1), and executes basic image processing on the captured image (step S1). S2).

領域抽出部142は、撮像された画像を、バッファメモリ部130を介して画像特徴量(例えば、YCrCb)毎に読み込む(ステップS3)。領域抽出部142は、読み込んだ画像における複数の画像特徴量に基づいて、2値化画像を作成する(ステップS4)。また、領域抽出部142は、2値化画像から領域を抽出し、抽出した領域にラベルを割り当てる(ステップS5)。   The region extraction unit 142 reads the captured image for each image feature amount (for example, YCrCb) via the buffer memory unit 130 (step S3). The region extraction unit 142 creates a binarized image based on a plurality of image feature amounts in the read image (step S4). The region extraction unit 142 extracts a region from the binarized image and assigns a label to the extracted region (step S5).

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

優先度設定部143は、領域抽出部142により抽出された領域に、優先度を定める(ステップS7)。また、領域抽出部142は、優先度設定部143が優先度を定めた領域を、AF評価領域に合うよう矩形に整形する(ステップS8)。CPU190は、AF評価領域のコントラスト値に基づいて、コントラスト・スキャン(焦点調整処理)を実行する(ステップS9)。また、CPU190は、コントラスト・スキャンの結果に基づいて、至近に在る被写体が撮像されている領域を優先し、その領域に合焦させる(ステップS10)。   The priority setting unit 143 sets priorities for the regions extracted by the region extraction unit 142 (step S7). Further, the region extraction unit 142 shapes the region for which the priority setting unit 143 has determined the priority into a rectangle so as to fit the AF evaluation region (step S8). The CPU 190 executes a contrast scan (focus adjustment process) based on the contrast value of the AF evaluation area (step S9). Further, the CPU 190 gives priority to an area in which a close subject is imaged based on the result of contrast scanning, and focuses the area (step S10).

次に、領域抽出装置が優先度を定める処理(図5のステップS7を参照)の手順を説明する。
<赤色系領域に高い優先度を定める場合について>
図6は、赤色系領域に高い優先度を定める処理の手順を表すフローチャートである。ここで、領域は、一例として予め定められた最大3個まで選択されるものとする。優先度設定部143は、2値画像に基づいて抽出された領域(図2を参照)に、赤色系領域が在るか否かを判定する(ステップSa1)。
Next, a procedure of processing (see step S7 in FIG. 5) in which the area extraction device determines priority will be described.
<When a high priority is set for the red area>
FIG. 6 is a flowchart showing a processing procedure for determining a high priority for the red-colored region. Here, it is assumed that a maximum of three areas are selected as an example. The priority setting unit 143 determines whether or not a red area is present in the area (see FIG. 2) extracted based on the binary image (step Sa1).

赤色系領域が無い場合(ステップSa1−NO)、優先度設定部143は、赤色系領域以外の領域を、評価値の高い順に選択する(ステップSa2)。そして、優先度設定部143は、赤色系領域(在る場合)と、選択した領域とを、被写体の領域として記憶部160(図1を参照)に登録する(ステップSa3)。一方、ステップSa1において、赤色系領域が在る場合(ステップSa1−YES)、優先度設定部143は、赤色系領域の優先度を優先度1に定め、ステップSa2に処理を進める。   When there is no red area (step Sa1-NO), the priority setting unit 143 selects an area other than the red area in descending order of evaluation value (step Sa2). Then, the priority setting unit 143 registers the red system region (if present) and the selected region in the storage unit 160 (see FIG. 1) as the subject region (step Sa3). On the other hand, in step Sa1, when the red region is present (step Sa1-YES), priority setting unit 143 sets the priority of the red region to priority 1, and proceeds to step Sa2.

これにより、図2に示された例では、赤色系領域400は、優先度1の主要被写体の領域と定められる。また、赤色系領域400以外の領域のうち、評価値が第1位である領域は、優先度2の主要被写体の領域と定められる。また、赤色系領域400以外の領域のうち、評価値が第2位である領域は、優先度3の主要被写体の領域と定められる。   Thereby, in the example shown in FIG. 2, the red area 400 is defined as the area of the main subject having the priority 1. Of the areas other than the red area 400, the area having the highest evaluation value is defined as the area of the main subject with priority 2. Of the areas other than the red area 400, the area having the second highest evaluation value is defined as the area of the main subject with priority 3.

<赤色系領域、黄色系領域及び青色系領域に、高い優先度を定める場合について>
図7は、赤色系領域、黄色系領域及び青色系領域に、高い優先度を定める処理の手順を表すフローチャートである。ここで、領域は、一例として予め定められた最大3個まで選択されるものとする。優先度設定部143は、2値画像に基づいて抽出された領域(図2を参照)に、赤色系領域、黄色系領域又は青色系領域が在るか否かを判定する(ステップSb1)。
<When high priority is set for the red, yellow and blue areas>
FIG. 7 is a flowchart showing a processing procedure for determining a high priority for the red area, the yellow area, and the blue area. Here, it is assumed that a maximum of three areas are selected as an example. The priority setting unit 143 determines whether or not a red region, a yellow region, or a blue region is present in the region (see FIG. 2) extracted based on the binary image (step Sb1).

赤色系領域、黄色系領域及び青色系領域がいずれも無い場合(ステップSb1−NO)、且つ、赤色系領域、黄色系領域、及び青色系領域の総数が3個未満である場合、優先度設定部143は、残りの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定める(ステップSb2)。そして、優先度設定部143は、選択した全ての領域を、被写体の領域として記憶部160(図1を参照)に登録する(ステップSb3)。   Priority setting when there is no red area, yellow area, and blue area (step Sb1-NO), and the total number of red areas, yellow areas, and blue areas is less than 3 The unit 143 selects the remaining areas in descending order of evaluation values, and sets the priority for the selected areas in the order of evaluation values (step Sb2). Then, the priority setting unit 143 registers all the selected regions in the storage unit 160 (see FIG. 1) as subject regions (step Sb3).

一方、ステップSb1において、赤色系領域、黄色系領域又は青色系領域が在る場合(ステップSb1−YES)、優先度設定部143は、これらの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定め、ステップSb2に処理を進める(ステップSb4)。なお、赤色系領域、黄色系領域及び青色系領域には、同じ優先度が定められてもよい。   On the other hand, in step Sb1, when there is a red region, a yellow region, or a blue region (step Sb1-YES), the priority setting unit 143 selects these regions in descending order of evaluation value, and selects the selected region. A higher priority is set in the order of evaluation values, and the process proceeds to step Sb2 (step Sb4). Note that the same priority may be set for the red region, the yellow region, and the blue region.

これにより、図2に示された例では、赤色系領域400、黄色系領域520及び青色系領域500のうち最も評価値が高い領域、例えば、黄色系領域520は、優先度1の主要被写体の領域と定められる。また、赤色系領域400、黄色系領域520及び青色系領域500のうち評価値が2番目に高い領域、例えば、赤色系領域400は、優先度2の主要被写体の領域と定められる。また、赤色系領域400、黄色系領域520及び青色系領域500のうち評価値が3番目に高い領域、例えば、青色系領域500は、優先度3の主要被写体の領域と定められる。なお、例えば、青色系領域500が無い場合、最も評価値が高い領域が、優先度3の主要被写体の領域と定められてもよい。   Thus, in the example shown in FIG. 2, the region having the highest evaluation value among the red-based region 400, the yellow-based region 520, and the blue-based region 500, for example, the yellow-based region 520 is the main subject with priority 1. It is defined as an area. The second highest evaluation value among the red color region 400, the yellow color region 520, and the blue color region 500, for example, the red color region 400, is defined as a main subject region with priority 2. The third highest evaluation value among the red-based region 400, the yellow-based region 520, and the blue-based region 500, for example, the blue-based region 500 is defined as a main subject region with priority 3. For example, when there is no blue-based region 500, the region with the highest evaluation value may be determined as the region of the main subject with priority 3.

<赤色系領域、黄色系領域、青色系領域の順に、高い優先度を定める場合について>
図8は、赤色系領域、黄色系領域、青色系領域の順に高い優先度を定める処理の手順を表すフローチャートである。ここで、領域は、一例として予め定められた最大3個まで選択されるものとする。優先度設定部143は、2値画像に基づいて抽出された領域(図2を参照)に、赤色系領域が在るか否かを判定する(ステップSc1)。
<About the case where a high priority is set in the order of a red area, a yellow area, and a blue area>
FIG. 8 is a flowchart showing a processing procedure for determining a high priority in the order of the red area, the yellow area, and the blue area. Here, it is assumed that a maximum of three areas are selected as an example. The priority setting unit 143 determines whether or not a red area is present in the area (see FIG. 2) extracted based on the binary image (step Sc1).

赤色系領域が無い場合(ステップSc1−NO)、優先度設定部143は、2値画像に基づいて抽出された領域に、黄色系領域が在るか否かを判定する(ステップSc2)。黄色系領域が無い場合(ステップSc2−NO)、優先度設定部143は、2値画像に基づいて抽出された領域に、青色系領域が在るか否かを判定する(ステップSc3)。   When there is no red area (step Sc1-NO), the priority setting unit 143 determines whether or not there is a yellow area in the area extracted based on the binary image (step Sc2). When there is no yellow system area (step Sc2-NO), the priority setting unit 143 determines whether or not a blue system area exists in the area extracted based on the binary image (step Sc3).

青色系領域が無い場合(ステップSc3−NO)、且つ、赤色系領域、黄色系領域、及び青色系領域の総数が3個未満である場合、優先度設定部143は、残りの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定める(ステップSc4)。そして、優先度設定部143は、選択した全ての領域を、被写体の領域として記憶部160(図1を参照)に登録する(ステップSc5)。   If there is no blue-based region (step Sc3-NO), and the total number of red-based regions, yellow-based regions, and blue-based regions is less than 3, the priority setting unit 143 determines the remaining regions as evaluation values. Are selected in descending order, and a high priority is set for the selected area in the order of evaluation values (step Sc4). Then, the priority setting unit 143 registers all selected areas in the storage unit 160 (see FIG. 1) as subject areas (step Sc5).

一方、ステップSc1において、赤色系領域が在る場合(ステップSc1−YES)、優先度設定部143は、赤色系領域に優先度1を定め、ステップSc2に処理を進める(ステップSb6)。また、ステップSc2において、赤色系領域が在る場合(ステップSc1−YES)、優先度設定部143は、赤色系領域に優先度1を定め、ステップSc2に処理を進める(ステップSb6)。   On the other hand, if there is a red area in step Sc1 (step Sc1-YES), priority setting unit 143 sets priority 1 for the red area, and proceeds to step Sc2 (step Sb6). In Step Sc2, if there is a red area (Step Sc1-YES), priority setting unit 143 sets priority 1 for the red area, and proceeds to Step Sc2 (Step Sb6).

また、ステップSc2において、黄色系領域が在る場合(ステップSc2−YES)、優先度設定部143は、黄色系領域に優先度1又は2を定め、ステップSc3に処理を進める(ステップSb7)。また、ステップSc3において、青色系領域が在る場合(ステップSc3−YES)、優先度設定部143は、青色系領域に優先度1、2又は3を定め、ステップSc4に処理を進める(ステップSb8)。   In step Sc2, if a yellow area exists (step Sc2-YES), priority setting unit 143 sets priority 1 or 2 for the yellow area, and proceeds to step Sc3 (step Sb7). In step Sc3, when there is a blue region (step Sc3-YES), the priority setting unit 143 sets priority 1, 2, or 3 for the blue region, and proceeds to step Sc4 (step Sb8). ).

これにより、図2に示された例では、赤色系領域400は、優先度1の主要被写体の領域と定められる。また、黄色系領域520は、優先度2の主要被写体の領域と定められる。また、青色系領域500は、優先度3の主要被写体の領域と定められる。   Thereby, in the example shown in FIG. 2, the red area 400 is defined as the area of the main subject having the priority 1. The yellow area 520 is defined as the area of the main subject with priority 2. In addition, the blue area 500 is defined as the area of the main subject with priority 3.

<赤色系領域、黄色系領域、青色系領域及び高輝度領域に、高い優先度を定める場合について>
図9は、赤色系領域、黄色系領域、青色系領域及び高輝度領域に、高い優先度を定める処理の手順を表すフローチャートである。ここで、領域は、一例として予め定められた最大3個まで選択されるものとする。優先度設定部143は、2値画像に基づいて抽出された領域(図2を参照)に、赤色系領域、黄色系領域又は青色系領域が在るか否かを判定する(ステップSd1)。
<Regarding the case where high priority is set for the red area, the yellow area, the blue area, and the high luminance area>
FIG. 9 is a flowchart showing a procedure of processing for determining a high priority for the red area, the yellow area, the blue area, and the high luminance area. Here, it is assumed that a maximum of three areas are selected as an example. The priority setting unit 143 determines whether or not a red region, a yellow region, or a blue region is present in the region (see FIG. 2) extracted based on the binary image (step Sd1).

赤色系領域、黄色系領域、青色系領域及び高輝度領域がいずれも無い場合(ステップSd1−NO)、且つ、赤色系領域、黄色系領域、青色系領域及び高輝度領域の総数が3個未満である場合、優先度設定部143は、残りの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定める(ステップSd2)。そして、優先度設定部143は、選択した全ての領域を、被写体の領域として記憶部160(図1を参照)に登録する(ステップSd3)。   When there is no red area, yellow area, blue area, and high brightness area (step Sd1-NO), and the total number of red areas, yellow area, blue area, and high brightness area is less than 3 In the case of, the priority setting unit 143 selects the remaining areas in descending order of evaluation values, and determines the priority in the order of evaluation values for the selected areas (step Sd2). Then, the priority setting unit 143 registers all the selected regions in the storage unit 160 (see FIG. 1) as subject regions (step Sd3).

一方、ステップSd1において、赤色系領域、黄色系領域、青色系領域又は高輝度領域が在る場合(ステップSd1−YES)、優先度設定部143は、これらの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定め、ステップSd2に処理を進める(ステップSd4)。なお、赤色系領域、黄色系領域、青色系領域及び高輝度領域には、同じ優先度が定められてもよい。   On the other hand, in step Sd1, when there is a red region, a yellow region, a blue region, or a high luminance region (step Sd1-YES), priority setting unit 143 selects these regions in descending order of evaluation value. The priority is set to the selected region in the order of evaluation value, and the process proceeds to step Sd2 (step Sd4). The same priority may be set for the red region, the yellow region, the blue region, and the high luminance region.

これにより、図2に示された例では、赤色系領域400、黄色系領域520、青色系領域500及び高輝度領域300のうち最も評価値が高い領域、例えば、赤色系領域400は、優先度1の主要被写体の領域と定められる。また、赤色系領域400、黄色系領域520、青色系領域500及び高輝度領域300のうち評価値が2番目に高い領域、例えば、黄色系領域520は、優先度2の主要被写体の領域と定められる。また、赤色系領域400、黄色系領域520、青色系領域500及び高輝度領域300のうち評価値が3番目に高い領域、例えば、高輝度領域300は、優先度3の主要被写体の領域と定められる。   Accordingly, in the example shown in FIG. 2, the region having the highest evaluation value among the red region 400, the yellow region 520, the blue region 500, and the high luminance region 300, for example, the red region 400 is assigned a priority. 1 main subject area. Further, the second highest evaluation value among the red color region 400, the yellow color region 520, the blue color region 500, and the high luminance region 300, for example, the yellow color region 520, is defined as a main subject region of priority 2. It is done. The third highest evaluation value among the red color region 400, the yellow color region 520, the blue color region 500, and the high luminance region 300, for example, the high luminance region 300 is defined as a main subject region with priority 3. It is done.

<他の抽出された領域と比較して低い優先度を、低輝度領域に定める場合について>
図10は、他の抽出された領域と比較して低い優先度を、低輝度領域に定める処理の手順を表すフローチャートである。ここで、領域は、一例として予め定められた最大3個まで選択されるものとする。優先度設定部143は、低輝度領域以外の領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定める(ステップSe1)。
<Regarding the case where a low priority is set for a low-luminance area compared to other extracted areas>
FIG. 10 is a flowchart showing a processing procedure for determining a low priority as a low-luminance area as compared with other extracted areas. Here, it is assumed that a maximum of three areas are selected as an example. The priority setting unit 143 selects an area other than the low-luminance area in descending order of evaluation value, and sets a high priority in the order of evaluation value for the selected area (Step Se1).

また、優先度設定部143は、低輝度領域以外の領域の総数が3個未満である場合、残りの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定める(ステップSe2)。また、優先度設定部143は、選択した全ての領域を、被写体の領域として記憶部160(図1を参照)に登録する(ステップSe3)。   In addition, when the total number of areas other than the low-luminance area is less than 3, the priority setting unit 143 selects the remaining areas in descending order of evaluation values, and sets the selected areas with high priorities in the order of evaluation values ( Step Se2). Further, the priority setting unit 143 registers all the selected areas in the storage unit 160 (see FIG. 1) as subject areas (step Se3).

これにより、図2に示された例では、区分3に含まれる低輝度領域では無い、黒色の被写体が撮像されている最低輝度領域320は、他の領域が画像から抽出されない場合、被写体の領域として記憶部160に登録される。   Thus, in the example shown in FIG. 2, the lowest luminance area 320 in which a black subject is captured that is not a low luminance area included in the category 3 is the subject area when no other area is extracted from the image. Are registered in the storage unit 160.

以上のように、領域抽出装置140は、入力された画像の画像データに含まれる色情報に基づいて、前記画像から所定領域を抽出する領域抽出部142と、領域抽出部142により抽出された前記領域に、予め定められた色情報に応じて優先度を定める優先度設定部143と、を備える。
この構成により、領域抽出装置140は、画像から抽出された領域に、予め定められた色情報に応じて優先度を定める。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。
As described above, the region extraction device 140 extracts the predetermined region from the image based on the color information included in the image data of the input image, and the region extraction unit 142 extracts the predetermined region. The area includes a priority setting unit 143 that determines priority according to predetermined color information.
With this configuration, the region extraction device 140 determines the priority for the region extracted from the image according to predetermined color information. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.

また、優先度設定部143は、領域抽出部142により抽出された領域に、均等色空間(L表色系、CIELab色空間)における色相角(h)に応じて、優先度を定める。これにより、領域抽出装置は、入力された画像から、色相角に応じて主要被写体の領域を適切に抽出することができる。 In addition, the priority setting unit 143 assigns the priority to the region extracted by the region extraction unit 142 according to the hue angle (h) in the uniform color space (L * a * b * color system, CIELab color space). Determine. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image according to the hue angle.

また、優先度設定部143は、領域抽出部142が、前記画像データに含まれる赤色成分、黄色成分及び青色成分の色情報に基づいて、前記画像から所定領域を抽出した場合、前記抽出された領域に、前記画像データに含まれる赤色成分、黄色成分及び青色成分以外の色情報に基づいて抽出された領域と比較して高い優先度を定める。これにより、領域抽出装置は、入力された画像から、赤色、黄色及び青色の主要被写体の領域を適切に抽出することができる。   In addition, the priority setting unit 143 extracts the predetermined region when the region extraction unit 142 extracts a predetermined region from the image based on the color information of the red component, the yellow component, and the blue component included in the image data. A higher priority is determined for the region than the region extracted based on color information other than the red component, yellow component, and blue component included in the image data. Thereby, the area extracting apparatus can appropriately extract the areas of the main subjects of red, yellow and blue from the input image.

また、優先度設定部143は、前記画像データに含まれる、赤色成分の色情報基づいて抽出された領域、黄色成分の色情報基づいて抽出された領域、青色成分の色情報基づいて抽出された領域の順に、高い優先度を定める。これにより、領域抽出装置は、入力された画像から、赤色成分、黄色成分、青色成分の順に高い優先度の主要被写体の領域を、適切に抽出することができる。   The priority setting unit 143 includes an area extracted based on the color information of the red component, an area extracted based on the color information of the yellow component, and an area extracted based on the color information of the blue component included in the image data. High priority is set in order of the area. Thereby, the area extracting apparatus can appropriately extract the main subject area having a higher priority in the order of the red component, the yellow component, and the blue component from the input image.

また、優先度設定部143は、領域抽出部142により抽出された領域の彩度(C)に応じて、優先度を定める。これにより、領域抽出装置は、入力された画像から、彩度が高い主要被写体の領域を適切に抽出することができる。 Also, the priority setting unit 143 determines the priority according to the saturation (C * ) of the region extracted by the region extraction unit 142. Thereby, the area extracting apparatus can appropriately extract the area of the main subject having high saturation from the input image.

また、領域抽出部142は、前記画像データに含まれる輝度情報に基づいて、前記画像から所定領域を抽出し、優先度設定部143は、領域抽出部142により抽出された領域の輝度に応じて、優先度を定める。これにより、領域抽出装置は、入力された画像から、輝度が高い主要被写体の領域を適切に抽出することができる。   In addition, the region extraction unit 142 extracts a predetermined region from the image based on the luminance information included in the image data, and the priority setting unit 143 responds to the luminance of the region extracted by the region extraction unit 142. , Define priority. Thereby, the area extracting apparatus can appropriately extract the area of the main subject having high luminance from the input image.

また、領域抽出部142は、予め定められた第1閾値よりも高い輝度の領域を抽出し、優先度設定部143は、前記第1閾値よりも高い輝度の前記抽出された領域に、他の抽出された領域と比較して高い優先度を定める。これにより、領域抽出装置は、入力された画像から、輝度が高い主要被写体の領域を適切に抽出することができる。   In addition, the region extraction unit 142 extracts a region having a luminance higher than a predetermined first threshold value, and the priority setting unit 143 adds another region having a luminance higher than the first threshold value to the extracted region. Set a higher priority compared to the extracted area. Thereby, the area extracting apparatus can appropriately extract the area of the main subject having high luminance from the input image.

また、優先度設定部143は、前記赤色成分の色情報基づいて抽出された領域、前記黄色成分の色情報基づいて抽出された領域、前記第1閾値よりも高い輝度の領域、前記青色成分の色情報基づいて抽出された領域の順に、高い優先度を定める。これにより、領域抽出装置は、入力された画像から、赤色成分、黄色成分、高輝度、青色成分の順に高い主要被写体の領域を、適切に抽出することができる。   In addition, the priority setting unit 143 may extract an area extracted based on the color information of the red component, an area extracted based on the color information of the yellow component, an area having a luminance higher than the first threshold, and the blue component. High priority is determined in the order of the areas extracted based on the color information. Thereby, the area extracting apparatus can appropriately extract the area of the main subject that is higher in the order of the red component, the yellow component, the high luminance, and the blue component from the input image.

また、領域抽出部142は、予め定められた第2閾値よりも低い輝度の領域を抽出し、優先度設定部143は、前記第2閾値よりも低い輝度の前記抽出された領域に、他の抽出された領域と比較して低い優先度を定める。これにより、領域抽出装置は、入力された画像から、低い輝度の領域(例えば、影が撮像された領域)でない主要被写体の領域を適切に抽出することができる。   In addition, the region extraction unit 142 extracts a region having a luminance lower than a predetermined second threshold, and the priority setting unit 143 adds another region to the extracted region having a luminance lower than the second threshold. Set a lower priority compared to the extracted region. Thereby, the area extracting apparatus can appropriately extract the area of the main subject that is not the low luminance area (for example, the area where the shadow is imaged) from the input image.

また、領域抽出部142は、前記第2閾値をより低い値に変更し、変更した前記第2閾値よりも低い輝度の領域を抽出し、優先度設定部143は、前記変更した第2閾値よりも低い輝度の前記抽出された領域に、他の抽出された領域と比較して低い優先度を定める。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。   In addition, the region extraction unit 142 changes the second threshold value to a lower value, extracts a region having a luminance lower than the changed second threshold value, and the priority setting unit 143 uses the changed second threshold value. A lower priority is set for the extracted area having a lower luminance than the other extracted areas. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.

また、優先度設定部143は、均等色空間の座標系における原点からの距離(色差)に応じて、優先度を定める。これにより、領域抽出装置は、入力された画像から、影が撮像された領域でない黒色の主要被写体の領域を、適切に抽出することができる。   The priority setting unit 143 determines priority according to the distance (color difference) from the origin in the coordinate system of the uniform color space. Thereby, the area extracting apparatus can appropriately extract the area of the black main subject that is not the area where the shadow is captured from the input image.

また、領域抽出装置140は、入力された画像の画像データに含まれる彩度情報に基づいて、前記画像から所定領域を抽出する領域抽出部142と、領域抽出部142により抽出された領域に、予め定められた彩度に応じて優先度を定める優先度設定部143と、を備える。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。   Further, the region extraction device 140 extracts a predetermined region from the image based on the saturation information included in the image data of the input image, and the region extracted by the region extraction unit 142. A priority setting unit 143 that determines priority according to predetermined saturation. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.

また、領域抽出装置140は、入力された画像の画像データに含まれる輝度情報に基づいて、前記画像から所定領域を抽出する領域抽出部142と、領域抽出部142により抽出された領域に、予め定められた輝度に応じて優先度を定める優先度設定部143と、を備える。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。   In addition, the region extracting device 140 extracts a predetermined region from the image based on the luminance information included in the image data of the input image, and the region extracted by the region extracting unit 142 in advance. A priority setting unit 143 that determines the priority according to the determined luminance. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.

また、領域抽出装置140は、入力された画像の画像データに含まれる色情報を表す均等色空間(L表色系)の座標系における、原点からの距離(色差)に基づいて、前記画像から所定領域を抽出する領域抽出部142と、領域抽出部142により抽出された前記領域に、前記距離に応じて優先度を定める優先度設定部143と、を備える。
これにより、領域抽出装置は、撮像された画像から、色相、彩度及び明度のうち少なくとも1つに応じて、主要被写体の領域を適切に抽出することができる。
Further, the region extracting device 140 is based on a distance (color difference) from the origin in a coordinate system of a uniform color space (L * a * b * color system) representing color information included in image data of an input image. A region extracting unit 142 that extracts a predetermined region from the image; and a priority setting unit 143 that determines a priority for the region extracted by the region extracting unit 142 according to the distance.
Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the captured image according to at least one of hue, saturation, and brightness.

また、撮像装置100は、領域抽出装置140と、領域抽出装置140が抽出した領域のうち、優先度が高い領域に合焦するよう光学系(例えば、AFレンズ112)により焦点を調節するCPU190と、前記優先度が高い領域に合焦した状態で、前記優先度が高い領域を含む画像を撮像する撮像部110とを備える。
この構成により、領域抽出装置140は、入力された画像から主要被写体の領域を適切に抽出する。これにより、撮像装置100は、主要被写体の領域に合焦した状態で、主要被写体の領域を含む画像を撮像することができる。
In addition, the imaging apparatus 100 includes an area extraction device 140 and a CPU 190 that adjusts the focus by an optical system (for example, the AF lens 112) so as to focus on a region having a high priority among the regions extracted by the region extraction device 140 And an imaging unit 110 that captures an image including the high priority area in a state where the high priority area is in focus.
With this configuration, the region extraction device 140 appropriately extracts the region of the main subject from the input image. Accordingly, the imaging apparatus 100 can capture an image including the main subject area in a state where the main subject area is in focus.

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

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

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

さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。
さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
Further, the “computer-readable recording medium” refers to a volatile memory (for example, DRAM (Dynamic) 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. Random Access 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.

100…撮像装置、110…撮像部、111…レンズ鏡筒、140…領域抽出装置、141…特徴量算出部、142…領域抽出部、143…優先度設定部 DESCRIPTION OF SYMBOLS 100 ... Imaging device, 110 ... Imaging part, 111 ... Lens barrel, 140 ... Area extraction apparatus, 141 ... Feature-value calculation part, 142 ... Area extraction part, 143 ... Priority setting part

Claims (19)

入力された画像の画像データに含まれる色情報に基づいて、前記画像から所定領域を抽出する領域抽出部と、
前記領域抽出部により抽出された領域に、予め定められた色情報応じて優先度を定める優先度設定部と、
を備えることを特徴とする領域抽出装置。
An area extracting unit that extracts a predetermined area from the image based on color information included in the image data of the input image;
A priority setting unit that determines priority according to predetermined color information in the region extracted by the region extraction unit;
An area extracting apparatus comprising:
前記優先度設定部は、前記領域抽出部により抽出された領域に、均等色空間における色相角に応じて、優先度を定めることを特徴とする請求項1に記載の領域抽出装置。   The region extraction apparatus according to claim 1, wherein the priority setting unit determines a priority for the region extracted by the region extraction unit according to a hue angle in a uniform color space. 前記優先度設定部は、前記領域抽出部が、前記画像データに含まれる赤色成分、黄色成分及び青色成分の色情報に基づいて、前記画像から所定領域を抽出した場合、前記抽出された領域に、前記画像データに含まれる赤色成分、黄色成分及び青色成分以外の色情報に基づいて抽出された領域と比較して高い優先度を定めることを特徴とする請求項1又は請求項2に記載の領域抽出装置。   The priority setting unit, when the region extraction unit extracts a predetermined region from the image based on color information of a red component, a yellow component, and a blue component included in the image data, The method according to claim 1, wherein a higher priority is determined than a region extracted based on color information other than a red component, a yellow component, and a blue component included in the image data. Region extraction device. 前記優先度設定部は、前記画像データに含まれる、赤色成分の色情報基づいて抽出された領域、黄色成分の色情報基づいて抽出された領域、青色成分の色情報基づいて抽出された領域の順に、高い優先度を定めることを特徴とする請求項1から請求項3のいずれか一項に記載の領域抽出装置。   The priority setting unit includes an area extracted based on red component color information, an area extracted based on yellow component color information, and an area extracted based on blue component color information included in the image data. The region extraction apparatus according to any one of claims 1 to 3, wherein a high priority is determined in order. 前記優先度設定部は、前記領域抽出部により抽出された領域の彩度に応じて、優先度を定めることを特徴とする請求項1から請求項4のいずれか一項に記載の領域抽出装置。   5. The region extraction device according to claim 1, wherein the priority setting unit determines priority according to a saturation of the region extracted by the region extraction unit. . 前記領域抽出部は、前記画像データに含まれる輝度情報に基づいて、前記画像から所定領域を抽出し、
前記優先度設定部は、前記領域抽出部により抽出された領域の輝度に応じて、優先度を定めることを特徴とする請求項1から請求項5のいずれか一項に記載の領域抽出装置。
The region extraction unit extracts a predetermined region from the image based on luminance information included in the image data,
The region extraction device according to any one of claims 1 to 5, wherein the priority setting unit determines a priority according to luminance of the region extracted by the region extraction unit.
前記領域抽出部は、予め定められた第1閾値よりも高い輝度の領域を抽出し、
前記優先度設定部は、前記第1閾値よりも高い輝度の前記抽出された領域に、他の前記抽出された領域と比較して高い優先度を定めることを特徴とする請求項6に記載の領域抽出装置。
The region extraction unit extracts a region having a luminance higher than a predetermined first threshold,
The said priority setting part determines a high priority compared with the said other extracted area | region to the said extracted area | region of the brightness | luminance higher than the said 1st threshold value, Region extraction device.
前記優先度設定部は、前記赤色成分の色情報基づいて抽出された領域、前記黄色成分の色情報基づいて抽出された領域、前記第1閾値よりも高い輝度の領域、前記青色成分の色情報基づいて抽出された領域の順に、高い優先度を定めることを特徴とする請求項6又は請求項7に記載の領域抽出装置。   The priority setting unit includes an area extracted based on the color information of the red component, an area extracted based on the color information of the yellow component, an area having a luminance higher than the first threshold, and the color information of the blue component 8. The region extracting apparatus according to claim 6, wherein a high priority is determined in the order of the regions extracted based on the regions. 前記領域抽出部は、予め定められた第2閾値よりも低い輝度の領域を抽出し、
前記優先度設定部は、前記第2閾値よりも低い輝度の前記抽出された領域に、他の前記抽出された領域と比較して低い優先度を定めることを特徴とする請求項6から請求項8のいずれか一項に記載の領域抽出装置。
The region extraction unit extracts a region having a luminance lower than a predetermined second threshold,
The said priority setting part determines a low priority compared with the other said extracted area | region to the said extracted area | region of the brightness | luminance lower than the said 2nd threshold value from Claim 6 characterized by the above-mentioned. The region extraction device according to claim 8.
前記領域抽出部は、前記第2閾値をより低い値に変更し、変更した前記第2閾値よりも低い輝度の領域を抽出し、
前記優先度設定部は、前記変更した第2閾値よりも低い輝度の前記抽出された領域に、他の前記抽出された領域と比較して低い優先度を定めることを特徴とする請求項9に記載の領域抽出装置。
The region extraction unit changes the second threshold value to a lower value, extracts a region having a luminance lower than the changed second threshold value,
The priority setting unit sets a lower priority in the extracted area having a luminance lower than the changed second threshold value as compared with the other extracted areas. The region extraction device described.
前記優先度設定部は、均等色空間の座標系における原点からの距離に応じて、優先度を定めることを特徴とする請求項1から請求項10のいずれか一項に記載の領域抽出装置。   The area extraction device according to any one of claims 1 to 10, wherein the priority setting unit determines priority according to a distance from an origin in a coordinate system of a uniform color space. 入力された画像の画像データに含まれる彩度情報に基づいて、前記画像から所定領域を抽出する領域抽出部と、
前記領域抽出部により抽出された領域に、予め定められた彩度に応じて優先度を定める優先度設定部と、
を備えることを特徴とする領域抽出装置。
An area extraction unit that extracts a predetermined area from the image based on the saturation information included in the image data of the input image;
A priority setting unit that determines priority according to a predetermined saturation in the region extracted by the region extraction unit;
An area extracting apparatus comprising:
入力された画像の画像データに含まれる輝度情報に基づいて、前記画像から所定領域を抽出する領域抽出部と、
前記領域抽出部により抽出された領域に、予め定められた輝度に応じて優先度を定める優先度設定部と、
を備えることを特徴とする領域抽出装置。
An area extracting unit that extracts a predetermined area from the image based on luminance information included in the image data of the input image;
A priority setting unit that determines priority according to a predetermined luminance in the region extracted by the region extraction unit;
An area extracting apparatus comprising:
入力された画像の画像データに含まれる色情報を表す均等色空間の座標系における、原点からの距離に基づいて、前記画像から所定領域を抽出する領域抽出部と、
前記領域抽出部により抽出された領域に、前記距離に応じて優先度を定める優先度設定部と、
を備えることを特徴とする領域抽出装置。
An area extraction unit that extracts a predetermined area from the image based on a distance from the origin in a coordinate system of a uniform color space representing color information included in image data of the input image;
A priority setting unit that determines priority according to the distance to the region extracted by the region extraction unit;
An area extracting apparatus comprising:
請求項1から請求項14のいずれか一項に記載の領域抽出装置と、
前記領域抽出装置が抽出した領域のうち、優先度が高い領域に合焦するよう光学系により焦点を調節する焦点調節部と、
前記優先度が高い領域に合焦した状態で、前記優先度が高い領域を含む画像を撮像する撮像部と、
を備えることを特徴とする撮像装置。
The region extraction device according to any one of claims 1 to 14,
A focus adjusting unit that adjusts a focus by an optical system so as to focus on a high priority area among the areas extracted by the area extracting device;
An imaging unit that captures an image including the high priority area in a state in which the high priority area is focused;
An imaging apparatus comprising:
コンピュータに、
入力された画像の画像データに含まれる色情報に基づいて、前記画像から所定領域を抽出する手順と、
前記所定領域に、予め定められた色情報に応じて優先度を定める手順と、
を実行させるための領域抽出プログラム。
On the computer,
A procedure for extracting a predetermined region from the image based on color information included in the image data of the input image;
A procedure for determining priority in the predetermined area according to predetermined color information;
Extraction program to execute.
コンピュータに、
入力された画像の画像データに含まれる彩度情報に基づいて、前記画像から所定領域を抽出する手順と、
前記所定領域に、予め定められた彩度に応じて優先度を定める手順と、
を実行させるための領域抽出プログラム。
On the computer,
A procedure for extracting a predetermined region from the image based on the saturation information included in the image data of the input image;
In the predetermined area, a procedure for determining a priority according to a predetermined saturation;
Extraction program to execute.
コンピュータに、
入力された画像の画像データに含まれる輝度情報に基づいて、前記画像から所定領域を抽出する手順と、
前記所定領域に、予め定められた輝度に応じて優先度を定める手順と、
を実行させるための領域抽出プログラム。
On the computer,
A procedure for extracting a predetermined region from the image based on luminance information included in the image data of the input image;
In the predetermined area, a procedure for setting a priority according to a predetermined luminance;
Extraction program to execute.
コンピュータに、
入力された画像の画像データに含まれる色情報を表す均等色空間の座標系における、原点からの距離に基づいて、前記画像から所定領域を抽出する手順と、
前記所定領域に、前記距離に応じて優先度を定める手順と、
を実行させるための領域抽出プログラム。
On the computer,
A procedure for extracting a predetermined region from the image based on a distance from the origin in a coordinate system of a uniform color space representing color information included in image data of the input image;
In the predetermined area, a procedure for determining priority according to the distance;
Extraction program to execute.
JP2011170059A 2011-08-03 2011-08-03 Region extraction device, imaging device, and region extraction program Active JP5899693B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011170059A JP5899693B2 (en) 2011-08-03 2011-08-03 Region extraction device, imaging device, and region extraction program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011170059A JP5899693B2 (en) 2011-08-03 2011-08-03 Region extraction device, imaging device, and region extraction program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2016036942A Division JP6156532B2 (en) 2016-02-29 2016-02-29 Region extraction device, imaging device, and region extraction program

Publications (2)

Publication Number Publication Date
JP2013034154A true JP2013034154A (en) 2013-02-14
JP5899693B2 JP5899693B2 (en) 2016-04-06

Family

ID=47789642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011170059A Active JP5899693B2 (en) 2011-08-03 2011-08-03 Region extraction device, imaging device, and region extraction program

Country Status (1)

Country Link
JP (1) JP5899693B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015148904A (en) * 2014-02-05 2015-08-20 株式会社ニコン Subject detection device, imaging device, and program
JP2015148906A (en) * 2014-02-05 2015-08-20 株式会社ニコン Image processing apparatus, imaging apparatus, and image processing program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04207767A (en) * 1990-11-30 1992-07-29 Sharp Corp Autofocusing device
JP2001148863A (en) * 1999-11-19 2001-05-29 Victor Co Of Japan Ltd White balance adjustment method and adjustment device
JP2005286427A (en) * 2004-03-26 2005-10-13 Sharp Corp Image pickup device and focusing method, control program and recording medium
JP2007312294A (en) * 2006-05-22 2007-11-29 Konica Minolta Opto Inc Imaging apparatus, image processor, method for processing image, and image processing program
JP2009059326A (en) * 2007-08-06 2009-03-19 Nikon Corp Imaging apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04207767A (en) * 1990-11-30 1992-07-29 Sharp Corp Autofocusing device
JP2001148863A (en) * 1999-11-19 2001-05-29 Victor Co Of Japan Ltd White balance adjustment method and adjustment device
JP2005286427A (en) * 2004-03-26 2005-10-13 Sharp Corp Image pickup device and focusing method, control program and recording medium
JP2007312294A (en) * 2006-05-22 2007-11-29 Konica Minolta Opto Inc Imaging apparatus, image processor, method for processing image, and image processing program
JP2009059326A (en) * 2007-08-06 2009-03-19 Nikon Corp Imaging apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015148904A (en) * 2014-02-05 2015-08-20 株式会社ニコン Subject detection device, imaging device, and program
JP2015148906A (en) * 2014-02-05 2015-08-20 株式会社ニコン Image processing apparatus, imaging apparatus, and image processing program

Also Published As

Publication number Publication date
JP5899693B2 (en) 2016-04-06

Similar Documents

Publication Publication Date Title
US8446488B2 (en) Method and system for focal length-specific color enhancement
JP6156532B2 (en) Region extraction device, imaging device, and region extraction program
JP4640198B2 (en) Electronic camera, multi-point simultaneous focusing frame display method, and program
JP2017201818A (en) Area extraction device
US8334919B2 (en) Apparatus and method for digital photographing to correct subject area distortion caused by a lens
JP5899693B2 (en) Region extraction device, imaging device, and region extraction program
JP5509621B2 (en) Image processing apparatus, camera, and program
JP6089476B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP5871175B2 (en) Region extraction device, imaging device, and region extraction program
JP6508259B2 (en) Imaging device and program
JP2013042201A (en) Image processing apparatus, imaging apparatus, and program
JP5899700B2 (en) Region extraction device, imaging device, and region extraction program
JP2019126090A (en) Imaging apparatus and program
JP5786460B2 (en) Region extraction device, imaging device, and region extraction program
JP6350562B2 (en) Region extraction device, imaging device, and region extraction program
JP6131519B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP5463688B2 (en) Focus evaluation device, camera and program
JP5888069B2 (en) Area determination apparatus, imaging apparatus, and area determination program
JP6248662B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP2009205610A (en) Image classification device, image classification method, image classification program, and recording medium
JP6326841B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP5629562B2 (en) Image processing apparatus, control method therefor, and program
JP2018181357A (en) Region extraction device
JP4819737B2 (en) Imaging apparatus and control method
JP2018206435A (en) Image processing apparatus, imaging apparatus, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140624

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150414

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150615

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160222

R150 Certificate of patent or registration of utility model

Ref document number: 5899693

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