JP6508259B2 - Imaging device and program - Google Patents

Imaging device and program Download PDF

Info

Publication number
JP6508259B2
JP6508259B2 JP2017113262A JP2017113262A JP6508259B2 JP 6508259 B2 JP6508259 B2 JP 6508259B2 JP 2017113262 A JP2017113262 A JP 2017113262A JP 2017113262 A JP2017113262 A JP 2017113262A JP 6508259 B2 JP6508259 B2 JP 6508259B2
Authority
JP
Japan
Prior art keywords
area
imaging
information
color information
specific
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
JP2017113262A
Other languages
Japanese (ja)
Other versions
JP2017163610A (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 JP2017113262A priority Critical patent/JP6508259B2/en
Publication of JP2017163610A publication Critical patent/JP2017163610A/en
Application granted granted Critical
Publication of JP6508259B2 publication Critical patent/JP6508259B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、撮像装置、及びプログラムに関する。 The present invention is an imaging apparatus, and a program.

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

特開平4−10079号公報JP-A-4-10079

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

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

本発明は、上記の課題を解決するためになされたものであり、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び輝度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、前記設定部は、前記第1領域が特定の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 The present invention has been made to solve the above-described problem, and is an imaging apparatus for performing an imaging operation for imaging a subject, which is included in an image extracted based on color information and luminance information. The setting unit includes: a setting unit configured to set one of the region and the second region as a specific region; and a control unit configured to control the imaging operation based on information included in the specific region. The imaging device is configured to set the first area as the specific area even when the luminance of the second area is higher than the luminance of the first area when the first area has specific color information. .

また、本発明は、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、 前記設定部は、前記第1領域が赤色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 Further, the present invention is an imaging apparatus for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted by color information and inertia moment information. And a control unit configured to control the imaging operation based on information included in the specific area , wherein the setting unit is configured to set the first area to have red color information. When it has, even if it is a case where the moment of inertia of the 2nd field is smaller than the moment of inertia of the 1st field, it is an imaging device which sets up the 1st field as the specified field.

また、本発明は、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 Further, the present invention is an imaging apparatus for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted by color information and inertia moment information. And a control unit that controls the imaging operation based on the information included in the specific area, and the setting unit is configured to set the color information of the first area to yellow. And when the second area has blue color information, the first area is set as the specific area even if the moment of inertia of the second area is smaller than the moment of inertia of the first area. It is an imaging device to set.

また、本発明は、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び彩度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、前記設定部は、前記第1領域が特定の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 Further, the present invention is an imaging apparatus for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted by color information and saturation information. And a control unit that controls the imaging operation based on the information included in the specific area , the setting section may be configured to set the first area to specify specific color information. When it has, even if it is a case where the saturation of the 2nd field is higher than the saturation of the 1st field, it is an imaging device which sets up the 1st field as the specific field.

また、本発明は、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、前記設定部は、前記第1領域が赤色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 Further, the present invention is an imaging apparatus for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted by color information and distance information. A setting unit configured to set a region as a specific region; and a control unit configured to control the imaging operation based on information included in the specific region , the setting unit including the first region having red color information In this case, even if the distance from the field angle center position to the center of gravity position of the second area is shorter than the distance from the field angle center position to the center of gravity position of the first area, the first area It is an imaging device set as.

また、本発明は、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 Further, the present invention is an imaging apparatus for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted by color information and distance information. A setting unit configured to set a region as a specific region; and a control unit configured to control the imaging operation based on information included in the specific region , wherein the setting unit is configured to set the first region to have yellow color information When the second area has blue color information, the distance from the angle of view center position to the center of gravity of the second area is greater than the distance from the angle of view center position to the center of gravity of the first area. The imaging device is configured to set the first area as the specific area even when Y is short.

また、本発明は、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、前記設定部は、前記第1領域が赤色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 Further, the present invention is an imaging apparatus for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted based on color information and area information. A setting unit configured to set a region as a specific region; and a control unit configured to control the imaging operation based on information included in the specific region , the setting unit including the first region having red color information In this case, the imaging device may set the first area as the specific area even if the area of the second area is larger than the area of the first area.

また、本発明は、被写体を撮像するための撮像動作を行う撮像装置であって、色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する撮像装置である。 Further, the present invention is an imaging apparatus for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted based on color information and area information. A setting unit configured to set a region as a specific region; and a control unit configured to control the imaging operation based on information included in the specific region , wherein the setting unit is configured to set the first region to have yellow color information And, when the second area has blue color information, even if the area of the second area is larger than the area of the first area, the imaging is performed in which the first area is set as the specific area It is an apparatus .

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び輝度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が特定の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, the computer including any one of a first area and a second area included in an image extracted by color information and luminance information. It is a procedure of setting one area as the specific area, and when the first area has specific color information, the second area may have higher luminance than that of the first area. It is a program for executing a procedure of setting one region as the specific region and a procedure of controlling the imaging operation based on information of the specific region .

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が赤色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, and in a computer, any one of a first area and a second area included in an image extracted by color information and inertia moment information. The step of setting one of the regions as the specific region, wherein the first region has red color information, and the moment of inertia of the second region is smaller than the moment of inertia of the first region; The program is also a program for executing the procedure of setting the first region as the specific region and the procedure of controlling the imaging operation based on the information of the specific region .

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び彩度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が特定の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, and in a computer, any one of a first region and a second region included in an image extracted by color information and saturation information. The step of setting one of the regions as the specific region, in the case where the first region has specific color information, the saturation of the second region is higher than the saturation of the first region, The program is also a program for executing the procedure of setting the first region as the specific region and the procedure of controlling the imaging operation based on the information of the specific region .

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が赤色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted by color information and distance information in a computer. In the procedure of setting one of the regions as the specific region, when the first region has red color information, the distance from the angle of view center position to the center of gravity of the first region is greater than the distance from the angle of view center position. Even when the distance to the center of gravity of the second area is short, a procedure of setting the first area as the specific area, and a procedure of controlling the imaging operation based on information of the specific area, Is a program to execute.

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が赤色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, the computer including any one of a first area and a second area included in an image extracted by color information and area information. In the procedure of setting one of the regions as the specific region, when the first region has red color information, the second region may have a larger area than the area of the first region. It is a program for executing a procedure of setting one region as the specific region and a procedure of controlling the imaging operation based on information of the specific region .

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, and in a computer , any one of a first area and a second area included in an image extracted by color information and inertia moment information. A step of setting one of the regions as the specific region, wherein the first region has yellow color information and the second region has blue color information, the moment of inertia of the first region And setting the first area as the specific area even if the moment of inertia of the second area is smaller than the second area, and controlling the imaging operation based on the information of the specific area. It is a program to make it run.

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, which is one of a first area and a second area included in an image extracted by color information and distance information in a computer . In the procedure of setting one of the regions as the specific region, in the case where the first region has yellow color information and the second region has blue color information, and procedures for setting the first region even if the distance to the center of gravity position is short of the second region from the angle of view center position than the distance to the center of gravity of the area as the specific area, the specific area is It is a program for performing the procedure which controls the said imaging operation based on the information to have .

また、本発明は、被写体を撮像するための撮像動作を行うプログラムであって、コンピュータに、色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する手順と、前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、を実行させるためのプログラムである。 Further, the present invention is a program for performing an imaging operation for imaging a subject, the computer including any one of a first area and a second area included in an image extracted by color information and area information. It is a procedure of setting one area as a specific area, and in the case where the first area has yellow color information and the second area has blue color information, the area of the first area is larger than the area of the first area. In order to execute the procedure of setting the first region as the specific region and the procedure of controlling the imaging operation based on the information of the specific region even when the area of the second region is large Is a program of

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

本発明の一実施形態における、レンズ鏡筒と、領域抽出装置を備える撮像装置と、記憶媒体との構成を表すブロック図である。It is a block diagram showing composition of a lens barrel, an imaging device provided with a field extraction device, and a storage medium in one embodiment of the present invention. 本発明の一実施形態における、画像から抽出された領域の例を表す図である。FIG. 6 is a diagram illustrating an example of a region extracted from an image according to an embodiment of the present invention. 本発明の一実施形態における、変更された閾値に基づいて画像から抽出された領域の例を表す図である。FIG. 6 depicts an example of an area extracted from an image based on a modified threshold in an embodiment of the present invention. 均等色空間の座標系を表す図である。It is a figure showing the coordinate system of uniform color space. 本発明の一実施形態における、領域に合焦させるまでの処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process to focus on the area | region in one Embodiment of this invention. 本発明の一実施形態における、赤色系領域に高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which sets a high priority to a reddish area | region in one Embodiment of this invention. 本発明の一実施形態における、赤色系領域、黄色系領域及び青色系領域に、高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which sets a high priority to a reddish area, a yellowish area, and a blueish area in one embodiment of the present invention. 本発明の一実施形態における、赤色系領域、黄色系領域、青色系領域の順に高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which determines a high priority in order of a reddish area, a yellowish area, and a blue system area in one embodiment of the present invention. 本発明の一実施形態における、赤色系領域、黄色系領域、青色系領域及び高輝度領域に、高い優先度を定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which sets a high priority to a reddish area, a yellowish area, a blueish area, and a high-intensity area in one embodiment of the present invention. 本発明の一実施形態における、他の抽出された領域と比較して低い優先度を、低輝度領域に定める処理の手順を表すフローチャートである。It is a flowchart showing the procedure of the process which sets low priority compared with the other extracted area | region in one Embodiment of this invention to 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. In FIG. 1, configurations of the imaging apparatus 100 including the lens barrel 111, the area extracting device 140, and the storage medium 200 are represented by a block diagram. 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 an “AF (Auto Focus) lens”) 112, a lens drive 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 integral with the imaging device 100.

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

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

鏡筒制御部118は、撮像装置100のCPU190から入力される駆動制御信号に応じて、レンズ駆動部116を制御する。ここで、駆動制御信号とは、AFレンズ112を光軸方向に駆動させる制御信号である。鏡筒制御部118は、駆動制御信号に応じて、例えば、レンズ駆動部116に出力するパルス電圧のステップ数を変更する。   The lens barrel control unit 118 controls the lens drive unit 116 in accordance with a drive control signal input from the CPU 190 of the imaging device 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, for example, the number of steps of the pulse voltage output to the lens driving unit 116 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 according to the movement amount of the AF lens 112. Here, the lens barrel control unit 118 integrates the signal according to the movement amount of the AF lens 112 according to the movement direction of the AF lens 112, for example, thereby moving the AF lens 112 in the lens barrel 111 ( The position) may be calculated.

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

次に、撮像装置100の構成を説明する。
撮像装置100は、撮像部110と、領域抽出装置140と、表示部150と、バッファメモリ部130と、操作部180と、記憶部160と、CPU190と、通信部170とを備える。
Next, the configuration of the imaging device 100 will be described.
The imaging device 100 includes an imaging unit 110, an area 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 according to the set imaging conditions (for example, the aperture value, the exposure value, etc.).

撮像素子119は、光電変換面を備え、レンズ鏡筒111(光学系)により光電変換面に結像された光学像を電気信号に変換して、A/D変換部120に出力する。撮像素子119は、例えば、CMOS(Complementary Metal Oxide Semiconductor)で構成されていてもよい。また、撮像素子119は、光電変換面の一部の領域について、光学像を電気信号に変換するようにしてもよい(画像切り出し)。   The imaging element 119 has 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 imaging device 119 may be configured by, for example, a complementary metal oxide semiconductor (CMOS). In addition, the imaging element 119 may convert an optical image into an electrical signal in a partial region of the photoelectric conversion surface (image cutout).

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

A/D変換部120は、撮像素子119によって変換された電気信号をデジタル化して、デジタル信号である画像をバッファメモリ部130に出力する。   The A / D conversion unit 120 digitizes the electrical signal converted by the imaging device 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, and receives an operation input of the user by being operated by the user, and a signal corresponding to the received operation input Are output to the CPU 190.

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

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

表示部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 the image captured by the imaging unit 110.

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

CPU190は、設定された撮像条件(例えば、絞り値、露出値)に従って、撮像部110を制御する。また、CPU190は、領域を示す情報を、領域抽出装置140から取得する。また、CPU190は、領域を示す情報に基づいてレンズ鏡筒111の鏡筒制御部118に駆動制御信号を出力することで、画像から抽出された領域のうち、領域抽出装置140が設定した優先度が高い領域に合焦させるよう焦点を調節する。これにより、優先度が高い領域を含む画像は、優先度が高い領域に光学系により合焦した状態で、撮像部110により撮像される。   The CPU 190 controls the imaging unit 110 in accordance with the set imaging conditions (for example, the aperture value and the exposure value). Further, the CPU 190 acquires information indicating an area from the area extraction device 140. Further, 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, thereby setting the priority set by the region extraction device 140 among the regions extracted from the image. Adjust the focus to focus on the high area. Thus, an image including an area with high priority is captured by the imaging unit 110 in a state in which the optical system focuses on the area with high priority.

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

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

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

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

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

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

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

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

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

図2には、画像から抽出された領域の例が表されている。領域抽出部142は、撮像部110が撮像した画像から、輝度に基づく画像(以下、「Y画像」という)を抽出する。領域抽出部142は、撮像部110が撮像した画像の輝度(入力値)を補正(例えば、ガンマ補正)し、補正した輝度(出力値)を算出する。   FIG. 2 shows an example of the area extracted from the image. The region 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 region extraction unit 142 corrects (for example, gamma correction) the luminance (input value) of the image captured by the imaging unit 110, 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, it is assumed that the corrected luminance is divided into divisions 1 to 4 as an example. The area extraction unit 142 generates a binary image for each section. Thereby, when the range upper limit of category 1 is “average value + K1 × standard deviation” and the range lower limit of category 1 is “average value + K2 × standard deviation”, the binary image of category 1 has a high brightness area. Is included.

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

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

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

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

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

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

図3には、変更された閾値に基づいて画像から抽出された領域の例が表されている。図3では、区分3と区分4との境界を定める閾値が、より低い値に変更されたとする。これにより、影が撮像されている領域が低輝度領域320から除外され、黒色の被写体のみが撮像されている最低輝度領域321が、領域画像に抽出される。   FIG. 3 shows an example of a region extracted from the image based on the changed threshold. In FIG. 3, it is assumed that the threshold for delimiting the division 3 and the division 4 is changed to a lower value. As a result, the area in which the shadow is imaged is excluded from the low luminance area 320, and the lowest luminance area 321 in which 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, in the area extracted by the area extraction unit 142, the priority indicating the area that a person may be paying more attention to. The priority setting unit 143 determines the priority of the 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 area according to the distance from the center of the angle of view to the center of gravity of the area. Here, the priority setting unit 143 determines a higher evaluation value in the area distributed closer to the center of the angle of view. Also, for example, the priority setting unit 143 determines the evaluation value in the area according to the inertia moment of the area. The priority setting unit 143 sets a high evaluation value in a region where the moment of inertia is small (concentrated at the center of gravity). Also, for example, the priority setting unit 143 determines an evaluation value in the area according to the area (the number of pixels) of the area. The priority setting unit 143 determines a higher evaluation value for the area closer to the predetermined area.

また、優先度設定部143は、領域抽出部142により抽出された領域に、予め定められた色相に応じて優先度を定める。ここで、優先度設定部143は、領域抽出部142により抽出された領域に、均等色空間(L*a*b*表色系)における色相角に応じて優先度を定める。   In addition, the priority setting unit 143 determines the priority of the area extracted by the area extraction unit 142 in accordance with the predetermined hue. Here, the priority setting unit 143 determines the priority in the area extracted by the area 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*)2+(b*)2))は、彩度である。また、R(=√((L*)2+(a*)2+(b*)2)))は、原点からの距離(色差)である。   FIG. 4 shows a coordinate system of uniform color space. L * is the lightness index. Further, a * and b * are chromaticity indexes (chromaticness indexes). Here, the positive direction of a * represents red, and the negative direction of a * represents green. On the other hand, the positive direction of b * represents yellow, and the negative direction of b * represents blue. Moreover, h (= tan-1 (b * / a *)) is a hue angle (metric hue angle). Further, C * (= √ ((a *) 2 + (b *) 2)) is saturation. Further, 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 sets the extracted regions of red (the red-based region 400 in FIG. 2), yellow (the yellow-based region 520 in FIG. 2) and blue (the blue-based region 500 in FIG. 2) Determine high priority compared to the extracted area of the color of. Here, the priority setting unit 143 may determine, in each of the extracted regions, a high priority in the order of the red extracted region, the yellow extracted region, and the blue extracted region.

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

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

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

また、優先度設定部143は、予め定められた第2閾値(図2では、区分3と区分4との境界となる閾値)よりも低い輝度の抽出された領域(図2では、最低輝度領域320)に、他の抽出された領域と比較して低い優先度を定める。   In addition, the priority setting unit 143 outputs an area (a minimum brightness area in FIG. 2) in which the brightness is lower than a predetermined second threshold (a threshold at the boundary between the sections 3 and 4 in FIG. 2). At 320), a lower priority is defined compared to other extracted regions.

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

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

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

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

領域抽出部142は、ノイズと推定される領域が画像にある場合、それらの領域を画像から除去する。また、領域抽出部142は、背景と推定される領域が画像にある場合、その領域を画像から除去する(ステップS6)。   If there are areas in the image that are estimated to be noise, the area extraction unit 142 removes those areas from the image. In addition, when the region presumed to be the background is present 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 in the area extracted by the area extraction unit 142 (step S7). Further, the area extraction unit 142 shapes the area whose priority is determined by the priority setting unit 143 into a rectangle so as to fit the AF evaluation area (step S8). The CPU 190 executes contrast scan (focus adjustment processing) based on the contrast value of the AF evaluation area (step S9). Further, the CPU 190 gives priority to an area in which an object in close proximity is imaged based on the result of the contrast scan, and brings the area into focus (step S10).

次に、領域抽出装置が優先度を定める処理(図5のステップS7を参照)の手順を説明する。
<赤色系領域に高い優先度を定める場合について>
図6は、赤色系領域に高い優先度を定める処理の手順を表すフローチャートである。ここで、領域は、一例として予め定められた最大3個まで選択されるものとする。優先度設定部143は、2値画像に基づいて抽出された領域(図2を参照)に、赤色系領域が在るか否かを判定する(ステップSa1)。
Next, the procedure of the process (see step S7 in FIG. 5) in which the region extraction device determines the priority will be described.
<On the case of setting high priority in the red region>
FIG. 6 is a flowchart showing the procedure of processing for setting high priority in the reddish region. Here, up to three predetermined areas are selected as an example. The priority setting unit 143 determines whether a red-based area exists 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に処理を進める。   If there is no reddish area (step Sa1-NO), the priority setting unit 143 selects areas other than the reddish area in descending order of evaluation value (step Sa2). Then, the priority setting unit 143 registers the reddish area (if present) and the selected area in the storage unit 160 (see FIG. 1) as the area of the subject (step Sa3). On the other hand, if there is a red-based area in step Sa1 (step Sa1-YES), the priority setting unit 143 sets the priority of the red-based area to priority 1, and advances the process to step Sa2.

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

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

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

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

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

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

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

青色系領域が無い場合(ステップSc3−NO)、且つ、赤色系領域、黄色系領域、及び青色系領域の総数が3個未満である場合、優先度設定部143は、残りの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定める(ステップSc4)。そして、優先度設定部143は、選択した全ての領域を、被写体の領域として記憶部160(図1を参照)に登録する(ステップSc5)。   If there is no bluish region (step Sc3-NO), and if the total number of the reddish region, the yellowish region, and the bluish region is less than three, the priority setting unit 143 evaluates the remaining regions as evaluation values. The highest priority is selected in the order of evaluation value in the selected area (step Sc4). Then, the priority setting unit 143 registers all the selected regions in the storage unit 160 (see FIG. 1) as the regions of the subject (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-based area in step Sc1 (step Sc1-YES), the priority setting unit 143 sets priority 1 in the red-based area, and proceeds to step Sc2 (step Sb6). In step Sc2, if there is a red-based area (step Sc1-YES), the priority setting unit 143 sets priority 1 in the red-based 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 there is a yellowish area (step Sc2-YES), the priority setting unit 143 sets priority 1 or 2 in the yellowish area, and advances the process to step Sc3 (step Sb7). In step Sc3, when there is a blue-based area (step Sc3-YES), the priority setting unit 143 determines the priority 1, 2 or 3 in the blue-based area, and advances the process to step Sc4 (step Sb8). ).

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

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

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

一方、ステップSd1において、赤色系領域、黄色系領域、青色系領域又は高輝度領域が在る場合(ステップSd1−YES)、優先度設定部143は、これらの領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定め、ステップSd2に処理を進める(ステップSd4)。なお、赤色系領域、黄色系領域、青色系領域及び高輝度領域には、同じ優先度が定められてもよい。   On the other hand, when there is a reddish region, a yellowish region, a blueish region, or a high luminance region in step Sd1 (step Sd1-YES), the priority setting unit 143 selects these regions in descending order of evaluation value. The high priority is determined in the order of evaluation value in the selected area, and the process proceeds to step Sd2 (step Sd4). The same priority may be set for the reddish region, the yellowish region, the blueish 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の主要被写体の領域と定められる。   Thereby, in the example shown in FIG. 2, among the red-based area 400, the yellow-based area 520, the blue-based area 500, and the high luminance area 300, the area having the highest evaluation value, for example, the red-based area 400 has priority. It is defined as the area of one main subject. Also, among the red-based area 400, the yellow-based area 520, the blue-based area 500, and the high-brightness area 300, the area having the second highest evaluation value, for example, the yellow-based area 520, is defined as the area of the main subject of priority 2. Be Also, among the red-based area 400, the yellow-based area 520, the blue-based area 500, and the high-brightness area 300, an area having the third highest evaluation value, for example, the high-brightness area 300 Be

<他の抽出された領域と比較して低い優先度を、低輝度領域に定める場合について>
図10は、他の抽出された領域と比較して低い優先度を、低輝度領域に定める処理の手順を表すフローチャートである。ここで、領域は、一例として予め定められた最大3個まで選択されるものとする。優先度設定部143は、低輝度領域以外の領域を評価値の高い順に選択し、選択した領域に評価値順に高い優先度を定める(ステップSe1)。
<About the case where low priority is determined in the low luminance region compared to other extracted regions>
FIG. 10 is a flowchart showing a procedure of processing for setting a low priority in a low luminance region as compared to other extracted regions. Here, up to three predetermined areas are selected as an example. The priority setting unit 143 selects areas other than the low luminance area in the descending order of the evaluation value, and determines the high priority in the evaluation value order in 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 value, and determines high priorities in the selected area in the order of evaluation value Step Se2). Further, the priority setting unit 143 registers all the selected areas as the areas of the subject in the storage unit 160 (see FIG. 1) (step Se3).

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

以上のように、領域抽出装置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. And a priority setting unit 143 for setting the priority according to predetermined color information in the area.
With this configuration, the region extraction device 140 determines the priority of the region extracted from the image according to the predetermined color information. Thus, the region extraction device can appropriately extract the region of the main subject from the input image.

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

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

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

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

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

また、優先度設定部143は、前記赤色成分の色情報基づいて抽出された領域、前記黄色成分の色情報基づいて抽出された領域、前記第1閾値よりも高い輝度の領域、前記青色成分の色情報基づいて抽出された領域の順に、高い優先度を定める。これにより、領域抽出装置は、入力された画像から、赤色成分、黄色成分、高輝度、青色成分の順に高い主要被写体の領域を、適切に抽出することができる。   Also, the priority setting unit 143 may select the area extracted based on the color information of the red component, the area extracted based on the color information of the yellow component, the area of luminance higher than the first threshold, and the area of the blue component. High priority is determined in the order of regions extracted based on color information. As a result, the region extraction apparatus can appropriately extract the region 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 area extraction unit 142 extracts an area having a luminance lower than a predetermined second threshold, and the priority setting unit 143 sets another area to the extracted area having a luminance lower than the second threshold. Define a lower priority compared to the extracted area. As a result, the region extraction apparatus can appropriately extract the region of the main subject that is not a low luminance region (for example, a region in which a shadow is captured) from the input image.

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

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

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

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

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

また、撮像装置100は、領域抽出装置140と、領域抽出装置140が抽出した領域のうち、優先度が高い領域に合焦するよう光学系(例えば、AFレンズ112)により焦点を調節するCPU190と、前記優先度が高い領域に合焦した状態で、前記優先度が高い領域を含む画像を撮像する撮像部110とを備える。
この構成により、領域抽出装置140は、入力された画像から主要被写体の領域を適切に抽出する。これにより、撮像装置100は、主要被写体の領域に合焦した状態で、主要被写体の領域を含む画像を撮像することができる。
The imaging apparatus 100 further includes a region 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 high priority region among the regions extracted by the region extraction device 140. And an imaging unit configured to capture an image including the high priority area in a state in which 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. Thus, the imaging apparatus 100 can capture an image including the area of the main subject in a state in which the area of the main subject 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 design and the like within the scope of the present invention.

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

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

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

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

Claims (40)

被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び輝度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が特定の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted by the color information and the luminance information as a specific area ;
A control unit that controls the imaging operation based on information included in the specific area ;
The setting unit sets the first area as the specific area even when the luminance of the second area is higher than the luminance of the first area when the first area has specific color information. Imaging device .
前記設定部は、前記第1領域が赤色の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する請求項1に記載の撮像装置The setting unit sets the first area as the specific area even when the luminance of the second area is higher than the luminance of the first area, when the first area has red color information. The imaging device according to claim 1. 前記設定部は、前記第2領域が黄色の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する請求項2に記載の撮像装置The setting unit sets the first area as the specific area even when the luminance of the second area is higher than the luminance of the first area when the second area has color information of yellow. The imaging device according to claim 2. 前記設定部は、前記第2領域が青色の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する請求項2に記載の撮像装置When the second area has blue color information, the setting unit sets the first area as the specific area even when the luminance of the second area is higher than the luminance of the first area. The imaging device according to claim 2. 前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する請求項1に記載の撮像装置In the case where the first area has yellow color information and the second area has blue color information, the setting unit has a case where the luminance of the second area is higher than the luminance of the first area. The imaging apparatus according to claim 1, wherein the first area is set as the specific area. 被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が赤色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted as color information and moment of inertia information as a specific area;
A control unit that controls the imaging operation based on information included in the specific area ;
When the first area has red color information, the setting unit sets the first area as the specific area even if the moment of inertia of the second area is smaller than the moment of inertia of the first area. Imaging device to set.
前記設定部は、前記第2領域が黄色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する請求項6に記載の撮像装置When the second area has yellow color information, the setting unit sets the first area as the specific area even when the moment of inertia of the second area is smaller than the moment of inertia of the first area. The imaging device according to claim 6 which sets up. 前記設定部は、前記第2領域が青色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する請求項6に記載の撮像装置The setting unit sets the first area as the specific area even when the moment of inertia of the second area is smaller than the moment of inertia of the first area when the second area has blue color information. The imaging device according to claim 6 which sets up. 被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted as color information and moment of inertia information as a specific area ;
A control unit that controls the imaging operation based on information included in the specific area ;
In the setting unit, when the first area has yellow color information and the second area has blue color information, the moment of inertia of the second area is greater than the moment of inertia of the first area. An imaging apparatus which sets the first area as the specific area even when the area is small.
被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び彩度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が特定の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted by the color information and the saturation information as a specific area ;
A control unit that controls the imaging operation based on information included in the specific area ;
When the first area has specific color information, the setting unit sets the first area as the specific area even when the saturation of the second area is higher than the saturation of the first area. Imaging device to set.
前記設定部は、前記第1領域が赤色の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する請求項10に記載の撮像装置The setting unit sets the first area as the specific area even when the saturation of the second area is higher than the saturation of the first area when the first area has red color information. The imaging device according to claim 10, wherein the setting is performed. 前記設定部は、前記第2領域が黄色の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する請求項11に記載の撮像装置The setting unit sets the first area as the specific area even when the saturation of the second area is higher than the saturation of the first area when the second area has yellow color information. The imaging device according to claim 11 which sets up. 前記設定部は、前記第2領域が青色の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する請求項11に記載の撮像装置When the second area has blue color information, the setting unit sets the first area as the specific area even if the saturation of the second area is higher than the saturation of the first area. The imaging device according to claim 11 which sets up. 前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する請求項10に記載の撮像装置In the setting unit, when the first area has yellow color information and the second area has blue color information, the saturation of the second area is higher than the saturation of the first area. 11. The imaging device according to claim 10, wherein the first area is set as the specific area even when the area is high. 被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が赤色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted as color information and distance information as a specific area ;
A control unit that controls the imaging operation based on information included in the specific area ;
When the first area has red color information, the setting unit is from the center of the angle of view to the center of gravity of the second area rather than the distance from the center of angle of view to the center of gravity of the first area. An imaging device in which the first area is set as the specific area even when the distance is short.
前記設定部は、前記第2領域が黄色の色情報を有する場合、前記画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する請求項15に記載の撮像装置When the second area has yellow color information, the setting unit is from the center of the angle of view to the center of gravity of the second area rather than the distance from the center of the angle of view to the center of gravity of the first area. The imaging device according to claim 15, wherein the first area is set as the specific area even when the distance is short. 前記設定部は、前記第2領域が青色の色情報を有する場合、前記画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する請求項15に記載の撮像装置When the second area has blue color information, the setting unit is from the center of the angle of view to the center of gravity of the second area rather than the distance from the center of angle of view to the center of gravity of the first area. The imaging device according to claim 15, wherein the first area is set as the specific area even when the distance is short. 被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted as color information and distance information as a specific area ;
A control unit that controls the imaging operation based on information included in the specific area ;
When the first area has yellow color information and the second area has blue color information, the setting unit is more than a distance from the angle of view center position to the barycentric position of the first area. The imaging device which sets said 1st field as said specific field, even when the distance from said field angle center position to the gravity center position of said 2nd field is short.
被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が赤色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted as color information and area information as a specific area ;
A control unit that controls the imaging operation based on information included in the specific area ;
The setting unit sets the first area as the specific area even when the area of the second area is larger than the area of the first area when the first area has red color information. Imaging device .
前記設定部は、前記第2領域が黄色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する請求項19に記載の撮像装置The setting unit sets the first area as the specific area even when the area of the second area is larger than the area of the first area when the second area has yellow color information. The imaging device according to claim 19. 前記設定部は、前記第2領域が青色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する請求項19に記載の撮像装置The setting unit sets the first area as the specific area even when the area of the second area is larger than the area of the first area when the second area has blue color information. The imaging device according to claim 19. 被写体を撮像するための撮像動作を行う撮像装置であって、
色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する設定部と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する制御部と、を備え、
前記設定部は、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する撮像装置
An imaging apparatus for performing an imaging operation for imaging a subject, comprising:
A setting unit configured to set any one of a first area and a second area included in the image extracted as color information and area information as a specific area ;
A control unit that controls the imaging operation based on information included in the specific area ;
When the setting unit determines that the first region has yellow color information and the second region has blue color information, the area of the second region is larger than the area of the first region. And an imaging device configured to set the first area as the specific area.
前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、露出調整を行う請求項1から請求項22のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 22, wherein the control unit performs exposure adjustment as the imaging operation based on information included in the specific area. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、ホワイトバランス調整を行う請求項1から請求項23のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 23, wherein the control unit performs white balance adjustment as the imaging operation based on information included in the specific area. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、追尾を行う請求項1から請求項24のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 24, wherein the control unit performs tracking as the imaging operation based on information included in the specific area. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、夜景か否かの判定を行う請求項1から請求項25のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 25, wherein the control unit determines, as the imaging operation, whether a night scene is or not, based on information included in the specific area. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、補正処理を行う請求項1から請求項26のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 26, wherein the control unit performs a correction process as the imaging operation based on information included in the specific area. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、色補正処理を行う請求項27に記載の撮像装置。The imaging device according to claim 27, wherein the control unit performs a color correction process as the imaging operation based on information included in the specific area. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、表示部に表示された画像の一部を拡大する請求項1から請求項28のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 28, wherein the control unit magnifies a part of the image displayed on the display unit as the imaging operation based on the information included in the specific area. . 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、階調調整を行う請求項1から請求項29のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 29, wherein the control unit performs gradation adjustment as the imaging operation based on information included in the specific region. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、光を発する発光部の発光量を調整する請求項1から請求項30のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 30, wherein the control unit adjusts a light emission amount of a light emitting unit that emits light as the imaging operation based on information included in the specific region. 前記制御部は、前記特定領域が有する情報に基づいて、前記撮像動作として、シャッタスピードを変更する請求項1から請求項31のいずれか一項に記載の撮像装置。The imaging device according to any one of claims 1 to 31, wherein the control unit changes a shutter speed as the imaging operation based on information included in the specific area. 被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び輝度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が特定の色情報を有する場合、前記第1領域の輝度よりも前記第2領域の輝度が高い場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure of setting any one of the first area and the second area included in the image extracted as color information and luminance information as a specific area, wherein the first area is a specific color information And setting the first area as the specific area even if the luminance of the second area is higher than the luminance of the first area .
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が赤色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure which sets any one field among the 1st field and the 2nd field included in a picture extracted by color information and inertia moment information as a specific field, and the 1st field is red color information And setting the first region as the specific region even if the moment of inertia of the second region is smaller than the moment of inertia of the first region ;
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び彩度情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が特定の色情報を有する場合、前記第1領域の彩度よりも前記第2領域の彩度が高い場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure of setting any one of the first area and the second area included in the image extracted as color information and saturation information as a specific area, wherein the first area is specific color information And setting the first area as the specific area even if the saturation of the second area is higher than the saturation of the first area ;
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が赤色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure of setting any one of the first area and the second area included in the image extracted as color information and distance information as a specific area, wherein the first area is red color information In the case of having, if the distance from the field angle center position to the center of gravity position of the second region is shorter than the distance from the field angle center position to the center of gravity position of the first region, the first region is specified Procedure to set as area ,
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が赤色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure of setting any one of the first area and the second area included in the image extracted as color information and area information as a specific area, wherein the first area is red color information And setting the first area as the specific area even if the area of the second area is larger than the area of the first area ,
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び慣性モーメント情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の慣性モーメントよりも前記第2領域の慣性モーメントが小さい場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure which sets any one field among the 1st field and the 2nd field included in a picture extracted by color information and inertia moment information as a specific field, and the 1st field is yellow color information And when the second area has blue color information, the first area may be the specific area even if the moment of inertia of the second area is smaller than the moment of inertia of the first area. The steps to set as
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び距離情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、画角中心位置から前記第1領域の重心位置までの距離よりも前記画角中心位置から前記第2領域の重心位置までの距離が短い場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure of setting any one of a first area and a second area included in an image extracted as color information and distance information as a specific area, wherein the first area is yellow color information And when the second area has blue color information, the distance from the angle of view center position to the center of gravity of the second area is greater than the distance from the angle of view center position to the center of gravity of the first area. Setting the first area as the specific area even if the distance is short ;
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
被写体を撮像するための撮像動作を行うプログラムであって、
コンピュータに、
色情報及び面積情報により抽出された、画像に含まれる第1領域及び第2領域のうち、いずれか一方の領域を特定領域として設定する手順であって、前記第1領域が黄色の色情報を有し、かつ、前記第2領域が青色の色情報を有する場合、前記第1領域の面積よりも前記第2領域の面積が大きい場合であっても前記第1領域を前記特定領域として設定する手順と、
前記特定領域が有する情報に基づいて、前記撮像動作を制御する手順と、
を実行させるためのプログラム。
A program for performing an imaging operation for imaging a subject,
On the computer
It is a procedure of setting any one of the first area and the second area included in the image extracted as color information and area information as a specific area, wherein the first area has yellow color information And when the second area has blue color information, the first area is set as the specific area even if the area of the second area is larger than the area of the first area. Steps and
A procedure for controlling the imaging operation based on information of the specific area;
A program to run a program.
JP2017113262A 2017-06-08 2017-06-08 Imaging device and program Active JP6508259B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017113262A JP6508259B2 (en) 2017-06-08 2017-06-08 Imaging device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017113262A JP6508259B2 (en) 2017-06-08 2017-06-08 Imaging device and program

Related Parent 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

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019071934A Division JP2019126090A (en) 2019-04-04 2019-04-04 Imaging apparatus and program

Publications (2)

Publication Number Publication Date
JP2017163610A JP2017163610A (en) 2017-09-14
JP6508259B2 true JP6508259B2 (en) 2019-05-08

Family

ID=59857415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017113262A Active JP6508259B2 (en) 2017-06-08 2017-06-08 Imaging device and program

Country Status (1)

Country Link
JP (1) JP6508259B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4158343B2 (en) * 2001-02-21 2008-10-01 コニカミノルタビジネステクノロジーズ株式会社 Program for identifying red-eye area in image, image processing apparatus, and recording medium
JP4148903B2 (en) * 2004-01-06 2008-09-10 株式会社東芝 Image processing apparatus, image processing method, and digital camera
JP4659722B2 (en) * 2006-11-14 2011-03-30 日本電信電話株式会社 Human body specific area extraction / determination device, human body specific area extraction / determination method, human body specific area extraction / determination program
JP2009027425A (en) * 2007-07-19 2009-02-05 Seiko Epson Corp Image processing device, image processing method, and program thereof
JP6156532B2 (en) * 2016-02-29 2017-07-05 株式会社ニコン Region extraction device, imaging device, and region extraction program

Also Published As

Publication number Publication date
JP2017163610A (en) 2017-09-14

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
US8334919B2 (en) Apparatus and method for digital photographing to correct subject area distortion caused by a lens
JP2017201818A (en) Area extraction device
JP2015192338A (en) Image processing device and image processing program
JP5899693B2 (en) Region extraction device, imaging device, and region extraction program
JP6508259B2 (en) Imaging device and program
JP6089476B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP5871175B2 (en) Region extraction device, imaging device, and region extraction program
US9710897B2 (en) Image processing apparatus, image processing method, and recording medium
JP2019126090A (en) Imaging apparatus and program
JP5899700B2 (en) Region extraction device, imaging device, and region extraction program
JP6131519B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP6350562B2 (en) Region extraction device, imaging device, and region extraction program
JP6248662B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP6326841B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP5818515B2 (en) Image processing apparatus, image processing method and program thereof
JP5888069B2 (en) Area determination apparatus, imaging apparatus, and area determination program
JP5629562B2 (en) Image processing apparatus, control method therefor, and program
JP2011147076A (en) Image processing apparatus, image capturing apparatus and program
JP2009205610A (en) Image classification device, image classification method, image classification program, and recording medium
JP2018181357A (en) Region extraction device
JP2017118341A (en) Image processing device, imaging device, electronic apparatus, and image processing program
JP6126638B2 (en) Image processing apparatus, image processing method and program thereof
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: 20170608

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20180731

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20181001

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181016

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181109

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190318

R150 Certificate of patent or registration of utility model

Ref document number: 6508259

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