JP6350562B2 - Region extraction device, imaging device, and region extraction program - Google Patents
Region extraction device, imaging device, and region extraction program Download PDFInfo
- Publication number
- JP6350562B2 JP6350562B2 JP2016036948A JP2016036948A JP6350562B2 JP 6350562 B2 JP6350562 B2 JP 6350562B2 JP 2016036948 A JP2016036948 A JP 2016036948A JP 2016036948 A JP2016036948 A JP 2016036948A JP 6350562 B2 JP6350562 B2 JP 6350562B2
- Authority
- JP
- Japan
- Prior art keywords
- region
- image
- area
- extraction
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Description
本発明は、画像から領域を抽出する領域抽出装置、撮像装置、及び領域抽出プログラムに関する。 The present invention relates to a region extraction device, an imaging device, and a region extraction program that extract a region from an image.
画像特徴量のヒストグラムに基づいて、撮像された画像から領域を抽出し、抽出した領域を識別する画像処理装置が開示されている(特許文献1参照)。 An image processing apparatus that extracts a region from a captured image and identifies the extracted region based on a histogram of image feature amounts is disclosed (see Patent Document 1).
しかしながら、特許文献1に開示された画像処理装置は、撮像された画像から人が注目する領域を抽出すること、すなわち、主要被写体の領域を適切に抽出することができないという問題がある。
However, the image processing apparatus disclosed in
本発明は、前記の点に鑑みてなされたものであり、入力された画像から主要被写体の領域を適切に抽出することができる領域抽出装置、撮像装置、及び領域抽出プログラムを提供することを目的とする。 The present invention has been made in view of the above points, and an object thereof is to provide a region extraction device, an imaging device, and a region extraction program that can appropriately extract a region of a main subject from an input image. And
本発明は、上記の課題を解決するためになされたものであり、色情報により画像から第1領域を抽出する第1抽出部と、輝度情報により前記画像から第2領域を抽出する第2抽出部と、前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記第2抽出部の分解能を調節する設定部と、を備える領域抽出装置である。 The present invention has been made to solve the above problems, and includes a first extraction unit that extracts a first region from an image based on color information, and a second extraction that extracts a second region from the image based on luminance information. And a setting unit that sets the second region as a specific region and adjusts the resolution of the second extraction unit when the image signal of the first region is less than a threshold value.
また、本発明は、色情報により画像から領域を抽出する第1抽出部と、輝度情報により前記画像から領域を抽出する第2抽出部と、前記第1抽出部により抽出された領域の画像信号が閾値未満である場合、前記第2抽出部により抽出された領域を特定領域として設定し、前記第2抽出部の分解能を調節する設定部と、を備える領域抽出装置である。 The present invention also provides a first extraction unit that extracts a region from an image based on color information, a second extraction unit that extracts a region from the image based on luminance information, and an image signal of the region extracted by the first extraction unit. Is less than a threshold value, the region extraction apparatus includes a setting unit that sets the region extracted by the second extraction unit as a specific region and adjusts the resolution of the second extraction unit .
また、本発明は、色情報により画像から第1領域を抽出するとともに、輝度情報により前記画像から第2領域を抽出する抽出部と、前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記抽出部の分解能を調節して前記第2領域を抽出する設定部と、を備える領域抽出装置である。 In addition, the present invention extracts the first region from the image based on the color information, extracts the second region from the image based on the luminance information, and when the image signal of the first region is less than a threshold, And a setting unit configured to set the second region as a specific region and extract the second region by adjusting the resolution of the extraction unit.
また、本発明は、光学系から射出された光を撮像する撮像素子と、上述の領域抽出装置と、前記特定領域からの信号を用いて前記光学系を制御する制御部と、を備える撮像装置である。 In addition, the present invention provides an imaging device that includes an imaging device that images light emitted from an optical system, the above-described region extraction device, and a control unit that controls the optical system using a signal from the specific region. It is.
また、本発明は、コンピュータに、色情報により画像から第1領域を抽出する第1抽出手順と、輝度情報により前記画像から第2領域を抽出する第2抽出手順と、前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記第2抽出手順における抽出の分解能を調節する調節手順と、を実行させるための領域抽出プログラムである。 The present invention also provides a computer with a first extraction procedure for extracting a first region from an image based on color information, a second extraction procedure for extracting a second region from the image based on luminance information, and an image of the first region. When the signal is less than a threshold value, an area extraction program for executing an adjustment procedure for setting the second area as a specific area and adjusting the resolution of extraction in the second extraction procedure .
また、本発明は、コンピュータに、色情報により画像から領域を抽出する第1抽出手順と、輝度情報により前記画像から領域を抽出する第2抽出手順と、前記第1抽出手順により抽出された領域の画像信号が閾値未満である場合、前記第2抽出手順により抽出された領域を特定領域として設定し、前記第2抽出手順における抽出の分解能を調節する設定手順と、を実行させるための領域抽出プログラムである。 The present invention also provides a computer with a first extraction procedure for extracting a region from an image based on color information, a second extraction procedure for extracting a region from the image based on luminance information, and a region extracted by the first extraction procedure. If the image signal is less than the threshold value, the region extraction for setting the region extracted by the second extraction procedure as the specific region and adjusting the resolution of the extraction in the second extraction procedure is performed. It is a program.
また、本発明は、コンピュータに、色情報により画像から第1領域を抽出するとともに、輝度情報により前記画像から第2領域を抽出する第1抽出手順と、前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記第1抽出手順における前記第2領域の抽出の分解能を調節して前記第2領域を抽出する第2抽出手順と、を実行させるための領域抽出プログラムである。 Further, the present invention causes a computer extracts a first region from the image by the color information, the first extraction procedure for extracting the second region from the image by the luminance information, than the image signal of the first region is the threshold If it is, it sets the second region as a specific region, for performing a second extraction procedure for extracting the second region by adjusting the resolution of the extraction of the second region in the first extraction procedure This is an area extraction program.
本発明によれば、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。 According to the present invention, the region extraction device can appropriately extract the region of the main subject from the input image.
本発明の一実施形態について図面を参照して詳細に説明する。図1には、レンズ鏡筒111と、撮像装置100と、記憶媒体200との構成が、ブロック図により表されている。撮像装置100は、レンズ鏡筒111から入射される光学像を撮像し、得られた画像を静止画形式又は動画形式により記憶媒体200に記憶させる。
An embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram illustrating the configuration of the
まず、レンズ鏡筒111の構成を説明する。
レンズ鏡筒111は、焦点調整レンズ(以下、「AF(Auto Focus)レンズ」という)112と、レンズ駆動部116と、AFエンコーダ117と、鏡筒制御部118とを備える。なお、レンズ鏡筒111は、撮像装置100に着脱可能に接続されてもよいし、撮像装置100と一体であってもよい。
First, the configuration of the
The
AFレンズ112は、レンズ駆動部116により駆動され、後述する撮像部110の撮像素子119の受光面(光電変換面)に光学像を導く。
The AF lens 112 is driven by a
AFエンコーダ117は、AFレンズ112の移動を検出し、AFレンズ112の移動量に応じた信号を、鏡筒制御部118に出力する。ここで、AFレンズ112の移動量に応じた信号とは、例えば、AFレンズ112の移動量に応じて位相が変化するサイン(sin)波信号である。
The
鏡筒制御部118は、撮像装置100のCPU190から入力される駆動制御信号に応じて、レンズ駆動部116を制御する。ここで、駆動制御信号とは、AFレンズ112を光軸方向に駆動させるための制御信号である。鏡筒制御部118は、駆動制御信号に基づいて、例えば、レンズ駆動部116に出力するパルス電圧のステップ数を変更する。
The lens
また、鏡筒制御部118は、AFレンズ112の移動量に応じた信号に基づいて、レンズ鏡筒111におけるAFレンズ112の位置(フォーカスポジション)を、CPU190に出力する。ここで、鏡筒制御部118は、例えば、AFレンズ112の移動量に応じた信号を、AFレンズ112の移動方向毎に積算することにより、レンズ鏡筒111におけるAFレンズ112の移動量(位置)を算出してもよい。
Further, the lens
レンズ駆動部116は、鏡筒制御部118による制御に応じてAFレンズ112を駆動し、AFレンズ112をレンズ鏡筒111内で光軸方向に移動させる。
The
次に、撮像装置100の構成を説明する。
撮像装置100は、撮像部110と、領域抽出装置140と、表示部150と、バッファメモリ部130と、操作部180と、記憶部160と、CPU190と、通信部170とを備える。
Next, the configuration of the
The
撮像部110は、撮像素子119と、A/D(Analog/Digital)変換部120とを備える。撮像部110は、設定された撮像条件(例えば、絞り値、露出値)に従って、CPU190により制御される。
The
撮像素子119は、光電変換面を備え、レンズ鏡筒111(光学系)により光電変換面に結像された光学像を電気信号に変換して、変換した電気信号をA/D変換部120に出力する。撮像素子119は、例えば、CMOS(Complementary Metal Oxide Semiconductor)により構成されてもよい。また、撮像素子119は、光電変換面の一部の領域についてのみ、光学像を電気信号に変換するようにしてもよい(画像の切り出し処理)。
The
また、撮像素子119は、操作部180を介してユーザからの撮影指示を受け付けた際に得られた光学像に応じた電気信号に基づく画像データとして、A/D変換部120を介して記憶媒体200に記憶させる。一方、撮像素子119は、操作部180を介してユーザからの撮影指示を受け付けていない状態において、連続的に得られた光学像に応じた電気信号に基づくスルー画像として、A/D変換部120を介してバッファメモリ部130及び表示部150に出力する。
Further, the
A/D変換部120は、撮像素子119によって変換された電気信号をデジタル化し、デジタル化された画像をバッファメモリ部130に出力する。
The A /
操作部180は、例えば、電源スイッチ、シャッタボタン、マルチセレクタ(十字キー)、又はその他の操作キーを備える。操作部180は、ユーザによって操作されることでユーザの操作入力を受け付け、受け付けた操作入力に応じた信号(以下、「操作信号」という)をCPU190に出力する。操作信号には、画像特徴量が予め定められた量以上画像に含まれているか否かを示す操作信号が含まれていてもよい。例えば、ホワイトバランス調整されたことにより彩色画像が無彩色画像に調整された場合、操作信号には、色成分量が予め定められた量以上画像に含まれていないことを示す情報が含まれる。
The
領域抽出装置140は、記憶部160に記憶されている画像処理条件に基づいて、バッファメモリ部130に記憶されている画像に対して画像処理を実行する。画像処理された画像は、通信部170を介して記憶媒体200に記憶される。
The
また、領域抽出装置140は、画像特徴量に基づいて、バッファメモリ部130に記憶されている画像から領域を抽出し、抽出した領域に優先度を定める。また、領域抽出装置140は、抽出した領域を示す情報を、記憶部160に記憶させる。ここで、領域を示す情報とは、例えば、領域の分布を表す情報、領域の画像特徴量を表す情報、及び領域に定められた優先度を表す情報である。
Further, the
ここで、領域抽出装置140は、画像に含まれる第1の画像特徴量(例えば、色成分量)及び第2の画像特徴量(例えば、光量(輝度、明度))を、画素毎に算出する。また、領域抽出装置140は、各画像特徴量が、予め定められた閾値未満であるか否かを判定する。
Here, the
また、領域抽出装置140は、第1の画像特徴量が閾値以上である場合、第1の画像特徴量に基づいて、画像から領域を抽出する。一方、領域抽出装置140は、第1の画像特徴量が閾値未満である場合、第2の画像特徴量に基づいて、画像から領域を抽出する。
In addition, when the first image feature amount is equal to or greater than the threshold, the
また、領域抽出装置140は、第1の画像特徴量が予め定められた量以上画像に含まれていないことを操作信号が示している場合、第2の画像特徴量に基づいて画像から領域を抽出する。一方、領域抽出装置140は、第1の画像特徴量が予め定められた量以上画像に含まれていることを操作信号が示している場合、第1の画像特徴量及び第2の画像特徴量に基づいて、画像から領域を抽出する。
In addition, when the operation signal indicates that the first image feature amount is not included in the image by a predetermined amount or more, the
また、領域抽出装置140は、第1の画像特徴量が閾値未満である場合、第1の画像特徴量及び第2の画像特徴量を算出するための分解能を調節する。また、領域抽出装置140は、画像が逆光状態で撮像された画像である場合、画像に予め定められた位置(例えば、9箇所)に在るAF評価領域から得られた評価値に基づいて、画像から領域を抽出する。ここで、AF評価領域とは、コントラストスキャンを実行する対象の領域である。また、領域抽出装置140は、画像が逆光状態で撮像された画像でない場合、画像特徴量に基づいて定まる領域を画像から抽出する。
In addition, when the first image feature amount is less than the threshold, the
また、領域抽出装置140は、画像特徴量(例えば、色成分量)が閾値未満である場合、画像に予め定められた位置(例えば、9箇所)に在るAF評価領域から得られた評価値に基づいて、画像から領域を抽出する。また、領域抽出装置140は、画像特徴量(例えば、色成分量)が閾値以上である場合、画像特徴量に基づいて定まる領域を画像から抽出する。
In addition, when the image feature amount (for example, the color component amount) is less than the threshold value, the
バッファメモリ部130は、撮像部110によって撮像された画像を記憶する。
表示部150は、撮像部110によって得られた画像、及び操作画面等を表示する。表示部150は、例えば、液晶ディスプレイである。
The
The
記憶部160は、シーン判定の際にCPU190によって参照される判定条件と、シーン判定によって判断されたシーン毎に対応付けられた撮像条件と、領域を示す情報等とを記憶する。
The
CPU190は、設定された撮像条件(例えば、絞り値、露出値)に従って、撮像部110を制御する。また、CPU190は、領域を示す情報を、領域抽出装置140から取得する。また、CPU190は、画像から抽出された領域のうち、領域抽出装置140が設定した優先度が高い領域に合焦させるよう、領域を示す情報に基づいて、レンズ鏡筒111の鏡筒制御部118に駆動制御信号を出力することにより焦点を調節する。
The
また、CPU190は、領域を示す情報に基づいて、画像処理のプレ処理又はポスト処理として、焦点調整(AF)の設定、露出調整(AE)の設定、ホワイトバランス調整(AWB)の設定、被写体像(オブジェクト)の追尾の設定、夜景か否かの判定の設定、色補正処理の設定、被写体像の拡大表示の設定、パンニング表示の設定、ズーム倍率に連動した明るさの最適化の設定、などを制御する。
Also, the
また、CPU190は、領域を示す情報に基づいて、トーンカーブ(階調カーブ)の設定、静止画及び動画の同時撮影を実行するか否かの設定などを制御する。
Further, the
また、CPU190は、領域を示す情報に基づいて、プレ処理又はポスト処理として、連写するか否かの設定、及び、連写において、合焦させる被写体像の切り替えの設定、焦点距離の連続変更の設定、撮像装置100の発光部(不図示)が発する閃光の発光量の変更の設定、露光量の変更の設定、又はシャッタスピードの変更を実行するか否かの設定などを制御する。
In addition, the
また、CPU190は、操作部180から入力された操作信号に基づいて、静止画形式又は動画形式の画像を、領域抽出装置140に画像処理させる。
Further, the
通信部170は、取り外しが可能な記憶媒体200(カードメモリ等)と接続され、この記憶媒体200への情報(画像データ、領域を示す情報など)の書込み、読み出し、及び消去を実行する。
The
記憶媒体200は、撮像装置100に対して着脱可能に接続される記憶部であり、各種の情報(例えば、画像データ、領域を示す情報)を記憶する。なお、記憶媒体200は、着脱可能でなく撮像装置100と一体でもよい。
The storage medium 200 is a storage unit that is detachably connected to the
次に、領域抽出装置140の詳細について説明する。
領域抽出装置140は、特徴量算出部141と、判定部142と、受信部143と、領域抽出部144と、優先度設定部145とを備える。
Next, details of the
The
特徴量算出部141は、撮像部110が撮像した画像を、バッファメモリ部130を介して取得する。また、特徴量算出部141は、バッファメモリ部130を介して取得した画像に含まれる複数の特徴(例えば、色成分量、光量(輝度、明度))毎に、その画像特徴量を算出し、算出した画像特徴量を領域抽出部144に出力する。
The feature amount calculation unit 141 acquires an image captured by the
判定部142は、第1の画像特徴量及び第2の画像特徴量のヒストグラムを生成し、各画像特徴量が閾値未満であるか否かを、それぞれ判定する。ここで、判定部142は、各画像特徴量のヒストグラム波形の標準偏差σに基づいて、画像特徴量が閾値未満であるか否かを判定する。例えば、色成分量のヒストグラム波形における標準偏差σが、予め定められた色成分量以下、すなわち、色差信号Cbの標準偏差σ≦予め定められた色成分量、且つ、色差信号Crの標準偏差σ≦予め定められた色成分量、である場合、判定部142は、撮像された画像が無彩色画像であると判定する。 The determination unit 142 generates a histogram of the first image feature value and the second image feature value, and determines whether each image feature value is less than a threshold value. Here, the determination unit 142 determines whether the image feature amount is less than the threshold based on the standard deviation σ of the histogram waveform of each image feature amount. For example, the standard deviation σ in the histogram waveform of the color component amount is equal to or smaller than a predetermined color component amount, that is, the standard deviation σ of the color difference signal Cb ≦ the predetermined color component amount and the standard deviation σ of the color difference signal Cr. When it is ≦ predetermined color component amount, the determination unit 142 determines that the captured image is an achromatic image.
以下では、一例として、第1の画像特徴量は色成分量であるものとし、第2の画像特徴量は光量(輝度、明度)であるものとして説明を続ける。 Hereinafter, as an example, the first image feature amount is assumed to be a color component amount, and the second image feature amount is assumed to be a light amount (luminance, brightness).
判定部142は、撮像された画像が逆光状態で撮像された画像(以下、「逆光画像」という)であるか否かを判定する。図2には、逆光画像の輝度のヒストグラムが表されている。横軸は、輝度Yを表す。また、縦軸は、頻度Nを表す。ヒストグラムの波形ピークから、他の波形ピークまでの輝度差が、予め定められた輝度差以上である場合、判定部142は、撮像された画像が逆光画像であると判定する。 The determination unit 142 determines whether or not the captured image is an image captured in a backlight state (hereinafter referred to as “backlight image”). FIG. 2 shows a luminance histogram of the backlight image. The horizontal axis represents the luminance Y. The vertical axis represents the frequency N. When the luminance difference from the waveform peak of the histogram to another waveform peak is equal to or greater than a predetermined luminance difference, the determination unit 142 determines that the captured image is a backlight image.
図1に戻り、領域抽出装置140の構成の説明を続ける。受信部143は、操作部180から操作信号を受信し、受信した操作信号を領域抽出部144に転送する。
Returning to FIG. 1, the description of the configuration of the
領域抽出部144は、撮像された画像が逆光画像であると判定部142により判定された場合、画像に予め定められた位置(例えば、9箇所)に在るAF評価領域から得られた評価値に基づいて、画像から領域を抽出する。ここで、AF評価領域に基づいて画像から領域を抽出するのは、優先度が定められた適切な領域が、画像に少ない又は無い可能性があるためである。また、領域抽出装置140は、撮像された画像が逆光画像でないと判定部142により判定された場合、特徴量算出部141により算出された画像特徴量に基づいて定まる領域を、画像から抽出する。
When the determination unit 142 determines that the captured image is a backlight image, the region extraction unit 144 evaluates the evaluation value obtained from the AF evaluation region located at a predetermined position (for example, nine locations) in the image. Based on the above, an area is extracted from the image. Here, the reason why the region is extracted from the image based on the AF evaluation region is that there is a possibility that the image has few or no appropriate regions with priority. In addition, when the determination unit 142 determines that the captured image is not a backlight image, the
領域抽出部144は、撮像された画像に含まれる画像特徴量(例えば、色成分量)が閾値未満であると判定部142により判定された場合、画像に予め定められた位置(例えば、9箇所)に在るAF評価領域から得られた評価値に基づいて、画像から領域を抽出する。また、領域抽出装置140は、撮像された画像に含まれる画像特徴量が閾値未満でないと判定部142により判定された場合、特徴量算出部141により算出された画像特徴量に基づいて定まる領域を、画像から抽出する。
When the determination unit 142 determines that the image feature amount (for example, color component amount) included in the captured image is less than the threshold value, the region extraction unit 144 determines a position (for example, nine locations) determined in advance in the image. The area is extracted from the image on the basis of the evaluation value obtained from the AF evaluation area in (). In addition, when the determination unit 142 determines that the image feature amount included in the captured image is not less than the threshold value, the
領域抽出部144は、受信部143から操作信号を取得する。また、領域抽出部144は、特徴量算出部141が算出した画像特徴量を取得する。また、領域抽出部144は、撮像部110が撮像した画像を、バッファメモリ部130から取得する。領域抽出部144は、撮像部110により撮像された画像から、画像特徴量に基づいて領域を抽出する。
The region extraction unit 144 acquires an operation signal from the reception unit 143. The region extraction unit 144 acquires the image feature amount calculated by the feature amount calculation unit 141. In addition, the region extraction unit 144 acquires an image captured by the
また、領域抽出部144は、画像特徴量の一定範囲(区分)と、その範囲外とに2値化された画像(以下、「2値画像」という)から領域を抽出し、抽出した領域にラベルを割り当てる(ラベリング)。ここで、画像特徴量の一定範囲(区分)を定める閾値は、画像特徴量のヒストグラム波形の平均値及び標準偏差に基づいて、例えば、「閾値=平均値+係数×標準偏差」のように定められる。 In addition, the region extraction unit 144 extracts a region from an image binarized image (hereinafter referred to as “binary image”) outside a certain range (section) of the image feature amount and outside the range, and extracts the region as the extracted region. Assign labels (labeling). Here, the threshold value that defines a certain range (section) of the image feature amount is determined as, for example, “threshold = average value + coefficient × standard deviation” based on the average value and standard deviation of the histogram waveform of the image feature amount. It is done.
領域抽出部144は、画像特徴量が閾値未満である場合、画像特徴量を算出するための分解能を調節する。図3には、輝度のヒストグラムが表されている。横軸は、輝度Yを表す。また、縦軸は、頻度Nを表す。図3(A)には、画面に撮像された被写体領域の輝度のヒストグラムが表されている。 The region extraction unit 144 adjusts the resolution for calculating the image feature amount when the image feature amount is less than the threshold value. FIG. 3 shows a luminance histogram. The horizontal axis represents the luminance Y. The vertical axis represents the frequency N. FIG. 3A shows a histogram of the luminance of the subject area imaged on the screen.
領域抽出部144は、ヒストグラムの平均値Ave及び標準偏差σに基づいて、画像特徴量の分解能を定める。例えば、図3(C)と比較して低い分解能によるヒストグラムが、図3(B)に表されている。図3(B)では、図3(C)と比較して輝度の分解能が低いので、ヒストグラム波形の頻度変化がはっきりと検出されないため、被写体領域を検出し難い。一方、図3(C)では、図3(B)と比較して分解能が高いので、ヒストグラム波形の頻度変化がはっきりと検出されるため、被写体領域を検出し易い。このように、領域抽出部144は、ヒストグラムの平均値及び標準偏差に基づいて画像特徴量の分解能を調節することで、被写体領域を検出し易くすることができる。 The region extraction unit 144 determines the resolution of the image feature amount based on the average value Ave and standard deviation σ of the histogram. For example, a histogram with a lower resolution than that in FIG. 3C is shown in FIG. In FIG. 3B, since the luminance resolution is lower than in FIG. 3C, the frequency change of the histogram waveform is not clearly detected, so that it is difficult to detect the subject region. On the other hand, in FIG. 3C, since the resolution is higher than that in FIG. 3B, the frequency change of the histogram waveform is clearly detected, so that the subject region can be easily detected. As described above, the region extraction unit 144 can easily detect the subject region by adjusting the resolution of the image feature amount based on the average value and the standard deviation of the histogram.
なお、領域抽出部144は、小さすぎる被写体領域が検出されないよう、画像特徴量の分解能に上限を設けてもよい。これにより、領域抽出部144は、被写体領域とノイズとを区別し易くすることができる。 Note that the region extraction unit 144 may set an upper limit on the resolution of the image feature amount so that a subject region that is too small is not detected. Thereby, the area extraction unit 144 can easily distinguish between the subject area and the noise.
図4には、輝度に基づいて画像から抽出された領域の例が表されている。領域抽出部144は、撮像部110が撮像した画像から、輝度に基づく画像(以下、「Y画像」という)を抽出する。領域抽出部144は、撮像部110が撮像した画像の輝度(入力値)を補正(例えば、ガンマ補正)し、補正した輝度Y(出力値)を算出する。
FIG. 4 shows an example of a region extracted from an image based on luminance. The area extraction unit 144 extracts an image based on luminance (hereinafter referred to as “Y image”) from the image captured by the
領域抽出部144は、補正した輝度Y(出力値)を、複数の一定範囲に区分する。図4では、一例として、補正した輝度Y(出力値)は、区分1〜4に区分されたとする。ここで、例えば、区分1の2値画像に高輝度領域が含まれるよう、区分1の範囲上限が「平均値+K1×標準偏差」と、区分1の範囲下限が「平均値+K2×標準偏差」と定められたとする。領域抽出部144は、区分(階調)毎に2値画像を生成する。
The region extraction unit 144 divides the corrected luminance Y (output value) into a plurality of fixed ranges. In FIG. 4, as an example, it is assumed that the corrected luminance Y (output value) is divided into
領域抽出部144は、区分1の2値画像に含まれている高輝度領域の分布を探索することにより、探索結果を表す領域画像に高輝度領域300を抽出する。同様に、領域抽出部144は、区分2の2値画像に含まれている中輝度領域を探索することにより、探索結果を表す領域画像に中輝度領域310を抽出する。また、領域抽出部144は、区分4の2値画像に含まれている低輝度領域を探索することにより、探索結果を表す領域画像に低輝度領域320を抽出する。
The region extraction unit 144 extracts the high luminance region 300 from the region image representing the search result by searching for the distribution of the high luminance region included in the binary image of
図4では、画像特徴量の分解能が領域抽出部144によって調節されたことにより、補正した輝度Y(出力値)は、一例として、区分5〜7に区分されたとする。例えば、区分5は、区分1よりも分解能が高くなるよう変更されたとする。領域抽出部144は、分解能が高い区分5の2値画像に含まれている高輝度領域の分布を探索することにより、探索結果を表す領域画像に高輝度領域301を抽出する。
In FIG. 4, it is assumed that the corrected luminance Y (output value) is divided into sections 5 to 7 as an example because the resolution of the image feature amount is adjusted by the region extraction unit 144. For example, it is assumed that the category 5 is changed to have a higher resolution than the
また、例えば、区分7は、区分4よりも分解能が低くなるよう変更されたとする。領域抽出部144は、分解能が低い区分7の2値画像に含まれている低輝度領域の分布を探索することにより、探索結果を表す領域画像に低輝度領域321を抽出する。このように、領域抽出部144は、画像特徴量の分解能を調節することで、被写体領域を検出し易くすることができる。 Further, for example, it is assumed that the section 7 is changed so that the resolution is lower than that of the section 4. The region extraction unit 144 extracts the low luminance region 321 from the region image representing the search result by searching for the distribution of the low luminance region included in the binary image of the category 7 with low resolution. As described above, the region extraction unit 144 can easily detect the subject region by adjusting the resolution of the image feature amount.
図5には、色成分量に基づいて画像から抽出された領域の例が表されている。領域抽出部144は、撮像部110が撮像した画像から、色成分量(Cr)に基づく画像(以下、「Cr画像」という)を抽出する。領域抽出部144は、撮像部110が撮像した画像の色成分量(入力値)を補正(例えば、ガンマ補正)し、補正した色成分量Cr(出力値)を算出する。
FIG. 5 shows an example of a region extracted from an image based on the color component amount. The region extraction unit 144 extracts an image based on the color component amount (Cr) (hereinafter referred to as “Cr image”) from the image captured by the
撮像された画像に所定閾値以上の色成分量が在る(無彩色画像でない)場合、領域抽出部144は、補正した色成分量(Cr)を、複数の一定範囲に区分する。図5では、一例として、補正した色成分量Cr(出力値)は、区分8〜11に区分されたとする。ここで、例えば、区分8の2値画像に赤色系領域が含まれるよう、区分8の範囲上限が「平均値+K3×標準偏差」と、区分8の範囲下限が「平均値+K4×標準偏差」と定められたとする。領域抽出部144は、区分(階調)毎に2値画像を生成する。 If the captured image has a color component amount equal to or greater than a predetermined threshold (not an achromatic image), the region extraction unit 144 divides the corrected color component amount (Cr) into a plurality of fixed ranges. In FIG. 5, as an example, it is assumed that the corrected color component amount Cr (output value) is divided into sections 8 to 11. Here, for example, the upper limit of the range of the section 8 is “average value + K3 × standard deviation” and the lower limit of the range of the section 8 is “average value + K4 × standard deviation” so that the binary image of the section 8 includes the red region. Suppose that The region extraction unit 144 generates a binary image for each section (gradation).
領域抽出部144は、区分8の2値画像に含まれる赤色系領域の分布を探索することにより、探索結果を表す領域画像に赤色系領域410を抽出する。同様に、領域抽出部144は、区分9の2値画像に含まれる桃色系領域を探索することにより、探索結果を表す領域画像に桃色系領域430を抽出する。また、領域抽出部144は、区分11の2値画像に含まれる緑色系領域を探索することにより、探索結果を表す領域画像に緑色系領域450を抽出する。
The area extraction unit 144 searches the distribution of the red area included in the binary image of section 8 to extract the red area 410 from the area image representing the search result. Similarly, the area extraction unit 144 searches for the pink area included in the binary image of
図5では、画像特徴量の分解能が領域抽出部144によって調節されたことにより、補正した色成分量Cr(出力値)は、一例として、区分12〜16に区分されたとする。ここで、例えば、区分12は、区分8よりも分解能が高くなるよう変更されたとする。領域抽出部144は、分解能が高い区分12の2値画像に含まれている赤色系領域の分布を探索することにより、探索結果を表す領域画像に赤色系領域410を抽出する。 In FIG. 5, it is assumed that the corrected color component amount Cr (output value) is divided into divisions 12 to 16 as an example because the resolution of the image feature amount is adjusted by the region extraction unit 144. Here, for example, it is assumed that the section 12 is changed to have a higher resolution than the section 8. The region extraction unit 144 extracts the red region 410 from the region image representing the search result by searching for the distribution of the red region included in the binary image of the section 12 having high resolution.
また、例えば、区分16は、区分11よりも分解能が高くなるよう変更されたとする。
領域抽出部144は、分解能が高い区分16の2値画像に含まれている緑色系領域の分布を探索することにより、探索結果を表す領域画像に緑色系領域451を抽出する。このように、領域抽出部144は、画像特徴量の分解能を調節することで、被写体領域を検出し易くすることができる。
Further, for example, it is assumed that the section 16 is changed so as to have a higher resolution than the section 11.
The region extraction unit 144 extracts the green region 451 from the region image representing the search result by searching for the distribution of the green region included in the binary image of the section 16 having high resolution. As described above, the region extraction unit 144 can easily detect the subject region by adjusting the resolution of the image feature amount.
図1に戻り、領域抽出装置140の構成の説明を続ける。優先度設定部145は、領域抽出部144により抽出された領域に、人がより注目しているであろう領域を示す優先度を定める。優先度設定部145は、領域毎に算出される評価値に応じて、領域に優先度を定める。
Returning to FIG. 1, the description of the configuration of the
例えば、優先度設定部145は、画角中心から領域の重心までの距離に応じて、領域毎に評価値を定める。ここで、優先度設定部145は、画角中心の近くに分布する領域ほど、その領域に高い評価値を定める。また、例えば、優先度設定部145は、領域の慣性モーメントに応じて、その領域に評価値を定める。優先度設定部145は、慣性モーメントが小さい(重心に集中している)領域には、高い評価値を定める。また、例えば、優先度設定部145は、領域の面積(画素数)に応じて、領域に評価値を定める。優先度設定部145は、予め定められた面積に近い領域ほど、その領域に高い評価値を定める。
For example, the
優先度設定部145は、領域毎に定めた優先度を、領域を示す情報として記憶部160に記憶させる。
The
次に、領域抽出装置の処理の手順を説明する。
図6は、領域に合焦させるまでの処理の手順を表すフローチャートである。特徴量算出部141は、撮像された画像(スルー画像、又はスルー画像列)を、バッファメモリ部130を介して読み込む(ステップS1)。特徴量算出部141は、読み込んだ画像に対して、基本的な画像処理(例えば、デモザイク、ノイズ低減、ホワイトバランス調整、画素欠補正)を実行する(ステップS2)。
Next, the processing procedure of the region extraction apparatus will be described.
FIG. 6 is a flowchart showing a processing procedure until focusing on an area. The feature amount calculation unit 141 reads the captured image (through image or through image sequence) through the buffer memory unit 130 (step S1). The feature amount calculation unit 141 performs basic image processing (for example, demosaic, noise reduction, white balance adjustment, pixel missing correction) on the read image (step S2).
領域抽出部144は、撮像された画像がリサイズされた画像を、バッファメモリ部130を介して画像特徴量(例えば、YCrCb)毎に読み込む(ステップS3)。判定部142は、読み込んだ画像に所定閾値以上の色成分量が在るか(無彩色画像でないか)否かを判定する。領域抽出部144は、読み込んだ画像が無彩色画像である場合、輝度の分解能を調節する(ステップS4)。 The region extraction unit 144 reads an image obtained by resizing the captured image for each image feature amount (for example, YCrCb) via the buffer memory unit 130 (step S3). The determination unit 142 determines whether or not the read image has a color component amount equal to or greater than a predetermined threshold (not an achromatic image). If the read image is an achromatic image, the region extraction unit 144 adjusts the luminance resolution (step S4).
領域抽出部144は、読み込んだ画像に所定閾値以上の色成分量が無い(無彩色画像である)場合、輝度に基づいて2値画像を生成する。また、領域抽出部144は、読み込んだ画像に所定閾値以上の色成分量が在る(無彩色画像でない)場合、領域抽出部144は、輝度及び色成分量に基づいて2値画像を生成する(ステップS5)。また、領域抽出部144は、2値画像から領域を抽出し(領域画像)、抽出した領域にラベルを割り当てる(ラベリング)(ステップS6)。 The region extraction unit 144 generates a binary image based on the brightness when the read image does not have a color component amount equal to or greater than a predetermined threshold (achromatic color image). In addition, the region extracting unit 144 generates a binary image based on the luminance and the color component amount when the read image has a color component amount equal to or greater than a predetermined threshold (not an achromatic image). (Step S5). The region extraction unit 144 extracts a region from the binary image (region image), and assigns a label to the extracted region (labeling) (step S6).
領域抽出部144は、ノイズと推定される領域が画像にある場合、それらの領域を画像から除去する。また、領域抽出部144は、背景と推定される領域が画像にある場合、その領域を画像から除去する(ステップS7)。優先度設定部145は、領域抽出部144により抽出された領域に、優先度を定める(ステップS8)。
If there are regions that are estimated to be noise in the image, the region extraction unit 144 removes those regions from the image. In addition, when the region estimated to be the background is in the image, the region extraction unit 144 removes the region from the image (step S7). The
領域抽出部144は、優先度設定部145が優先度を定めた領域を、AF評価領域に合うよう矩形に整形する(ステップS9)。また、領域抽出部144は、画像に予め定められた位置に、AF評価領域を定める(ステップS10)。
The region extraction unit 144 shapes the region for which the
CPU190は、AF評価領域のコントラスト値に基づいて、コントラストスキャンを実行する(ステップS11)。また、CPU190は、コントラストスキャンの結果に基づいて、至近に在る被写体が撮像されている領域を優先し、その領域にAFレンズ112により合焦させる(合焦駆動)(ステップS12)。
The
図7は、無彩色画像に含まれる領域に合焦させるまでの処理の手順を表すフローチャート(前半)である。また、図8は、無彩色画像に含まれる領域に合焦させるまでの処理の手順を表すフローチャート(後半)である。 FIG. 7 is a flowchart (first half) showing a processing procedure until focusing on a region included in an achromatic image. FIG. 8 is a flowchart (second half) showing a processing procedure until focusing on an area included in the achromatic image.
CPU190は、露出調整(AE)処理、ホワイトバランス調整(AWB)処理に用いられる変数を、予め定められた基準値に設定する(ステップSa1)。撮像部110は、スルー画像を連続的に撮影(露光)し、撮影したスルー画像を、バッファメモリ部130及び表示部150に出力する(ステップSa2)。
The
特徴量算出部141は、読み込んだ画像に、基本的な画像処理(例えば、デモザイク、ノイズ低減、ホワイトバランス調整、画素欠補正)を施す(ステップSa3)。さらに、特徴量算出部141は、基本的な画像処理を施した画像に、YCrCb(YUV)変換を施す(ステップSa4)。 The feature amount calculation unit 141 performs basic image processing (for example, demosaic, noise reduction, white balance adjustment, pixel missing correction) on the read image (step Sa3). Further, the feature amount calculation unit 141 performs YCrCb (YUV) conversion on the image that has undergone the basic image processing (step Sa4).
判定部142は、撮像モード及び画像再生モードのうち、ホワイトバランス調整が撮像モードにて実行されたか否かを判定する(ステップSa5)。ホワイトバランス調整が撮像モードにて実行されていない場合(ステップSa5−No)、判定部142は、撮像された画像に所定閾値以上の色成分量が在るか(無彩色画像でないか)否かを判定する。すなわち、判定部142は、撮像された画像の無彩色の度合いが閾値以下であるか否かを判定する(ステップSa6)。 The determination unit 142 determines whether or not white balance adjustment is performed in the imaging mode among the imaging mode and the image reproduction mode (step Sa5). When the white balance adjustment is not executed in the imaging mode (step Sa5-No), the determination unit 142 determines whether the captured image has a color component amount equal to or greater than a predetermined threshold (not an achromatic image). Determine. In other words, the determination unit 142 determines whether or not the achromatic color degree of the captured image is equal to or less than a threshold value (step Sa6).
撮像された画像に所定閾値以上の色成分量が在る(無彩色画像でない)場合(ステップSa6−No)、判定部142は、撮像された画像がホワイトバランス調整により無彩色画像となっているか否かを判定する。さらに、判定部142は、撮像された画像が元から(ホワイトバランス調整によらず)無彩色画像であるか否かを判定する(ステップSa7)。 If the captured image has a color component amount equal to or greater than the predetermined threshold (not an achromatic image) (step Sa6-No), the determination unit 142 determines whether the captured image is an achromatic image by white balance adjustment. Determine whether or not. Further, the determination unit 142 determines whether or not the captured image is an achromatic image from the beginning (regardless of white balance adjustment) (step Sa7).
撮像された画像がホワイトバランス調整により無彩色画像となっている、又は、撮像された画像が元から無彩色画像である場合(ステップSa7−Yes)、判定部142は、撮像された画像が逆光画像であるか否かを判定する(ステップSa8)。 When the captured image is an achromatic image by white balance adjustment, or when the captured image is originally an achromatic image (step Sa7-Yes), the determination unit 142 determines that the captured image is backlit. It is determined whether or not the image is an image (step Sa8).
撮像された画像が逆光画像でない場合(ステップSa8−No)、領域抽出部144は、輝度の分解能を調節する。ここで、領域抽出部144は、雪景色などの無彩色画像から多くの輝度領域が領域画像に抽出されるよう、輝度の分解能を調節する(ステップSa9)。 When the captured image is not a backlight image (step Sa8-No), the region extraction unit 144 adjusts the luminance resolution. Here, the region extracting unit 144 adjusts the luminance resolution so that a large number of luminance regions are extracted from the achromatic image such as a snow scene to the region image (step Sa9).
領域抽出部144は、2値画像に含まれている領域の探索結果を表す領域画像に、輝度領域(図4を参照)を抽出する。また、領域抽出部144は、色成分量の分解能を調節した場合には、2値画像に含まれている領域の探索結果を表す領域画像に、色系領域(図5を参照)を抽出する。優先度設定部145は、領域抽出部144により抽出された輝度領域に、優先度を定める(ステップSa10)。領域抽出部144は、優先度設定部145が優先度を定めた領域を、AF評価領域に合うよう矩形に整形する(ステップSa11)。
The region extraction unit 144 extracts a luminance region (see FIG. 4) from a region image that represents a search result of regions included in the binary image. In addition, when the resolution of the color component amount is adjusted, the region extraction unit 144 extracts a color system region (see FIG. 5) in a region image that represents a search result of a region included in the binary image. . The
CPU190は、AF評価領域のコントラスト値に基づいて、コントラストスキャンを実行する(ステップSa12)。また、CPU190は、コントラストスキャンの結果に基づいて、至近に在る被写体が撮像されている領域を優先し、その領域にAFレンズ112により合焦させる(合焦駆動)(ステップSa13)。
The
一方、ステップSa5において、ホワイトバランス調整が撮像モードにて実行されている場合(ステップSa5−Yes)、判定部142は、無彩色の度合い(例えば、色成分量)を記憶部160に記憶させる(ステップSa14)。また、ステップSa6において、撮像された画像に所定閾値以上の色成分量がない(無彩色画像である)場合(ステップSa6−No)、判定部142は、無彩色の度合いを記憶部160に記憶させる(ステップSa15)。
On the other hand, if white balance adjustment is being performed in the imaging mode in step Sa5 (step Sa5-Yes), the determination unit 142 stores the degree of achromatic color (for example, the amount of color components) in the storage unit 160 ( Step Sa14). In step Sa6, when the captured image does not have a color component amount equal to or larger than the predetermined threshold (achromatic image) (step Sa6-No), the determination unit 142 stores the degree of achromatic color in the
また、ステップSa7において、撮像された画像がホワイトバランス調整により無彩色画像となっていない、且つ、撮像された画像が元から無彩色画像でない場合(ステップSa7−No)、判定部142は、撮像された画像の色成分量が所定閾値以下であるか否かを判定する(ステップSa16)。また、領域抽出部144は、色成分量の分解能と、輝度の分解能とを調節する(ステップSa17)。そして、判定部142及び領域抽出部144は、ステップSa10に処理を進める。 In step Sa7, when the captured image is not an achromatic image by white balance adjustment and the captured image is not originally an achromatic image (step Sa7-No), the determination unit 142 captures the image. It is determined whether or not the color component amount of the obtained image is equal to or less than a predetermined threshold (step Sa16). Further, the region extraction unit 144 adjusts the resolution of the color component amount and the resolution of the luminance (Step Sa17). And the determination part 142 and the area | region extraction part 144 advance a process to step Sa10.
また、ステップSa8において、撮像された画像が逆光画像である場合(ステップSa8−Yes)、領域抽出部144は、画像に予め定められた位置にAF評価領域を定める(ステップSa18)。 In step Sa8, when the captured image is a backlight image (step Sa8-Yes), the region extracting unit 144 determines an AF evaluation region at a position predetermined in the image (step Sa18).
以上のように、領域抽出装置140は、入力された画像に含まれる第1の画像特徴量(例えば、色成分量)及び第2の画像特徴量(例えば、輝度)を算出する特徴量算出部141と、前記第1の画像特徴量が閾値未満であるか否かを判定する判定部142と、前記第1の画像特徴量が閾値未満である場合、前記第2の画像特徴量に基づいて定まる領域(例えば、高輝度領域300)を2値画像から抽出し、前記第1の画像特徴量が閾値以上である場合、前記第1の画像特徴量に基づいて定まる領域(例えば、赤色系領域410)を2値画像から抽出する領域抽出部144と、を備える。
この構成により、領域抽出部144は、前記第1の画像特徴量が閾値未満である場合、前記第2の画像特徴量に基づいて定まる領域を画像から抽出する。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。
As described above, the
With this configuration, the region extraction unit 144 extracts a region determined based on the second image feature amount from the image when the first image feature amount is less than a threshold value. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.
また、判定部142は、前記第1の画像特徴量である色成分量が前記閾値未満であるか否かを判定し、領域抽出部144は、前記色成分量が前記閾値未満である場合、前記第2の画像特徴量である輝度に基づいて定まる領域を前記画像から抽出し、前記色成分量が前記閾値以上である場合、前記色成分量に基づいて定まる領域を前記画像から抽出する。
この構成により、領域抽出部144は、前記色成分量が閾値未満である場合、輝度に基づいて定まる領域を画像から抽出する。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。
In addition, the determination unit 142 determines whether the color component amount that is the first image feature amount is less than the threshold value, and the region extraction unit 144 determines that the color component amount is less than the threshold value, A region determined based on the luminance that is the second image feature amount is extracted from the image. If the color component amount is equal to or greater than the threshold value, a region determined based on the color component amount is extracted from the image.
With this configuration, the region extracting unit 144 extracts a region determined based on luminance from the image when the color component amount is less than the threshold value. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.
また、領域抽出部144は、前記第1の画像特徴量(例えば、色成分量)が前記閾値未満である場合、前記第1の画像特徴量及び前記第2の画像特徴量(例えば、輝度)を算出するための分解能を調節(例えば、高く)する(図3〜図5を参照)。
この構成により、領域抽出部144は、前記第1の画像特徴量及び前記第2の画像特徴量を算出するための分解能を調節する。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。
In addition, when the first image feature amount (for example, color component amount) is less than the threshold value, the region extraction unit 144 has the first image feature amount and the second image feature amount (for example, luminance). The resolution for calculating is adjusted (for example, increased) (see FIGS. 3 to 5).
With this configuration, the region extraction unit 144 adjusts the resolution for calculating the first image feature amount and the second image feature amount. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.
また、領域抽出装置140は、前記第1の画像特徴量(例えば、色成分量)が予め定められた量以上前記画像に含まれているか否かを示す操作信号を受信する受信部143を備え、領域抽出部144は、前記第1の画像特徴量が予め定められた量以上前記画像に含まれていないことを前記操作信号が示している場合(例えば、ホワイトバランス調整されたことにより彩色画像が無彩色画像に調整された場合)、前記第2の画像特徴量(例えば、輝度)に基づいて定まる領域(例えば、高輝度領域300)を前記画像から抽出し、前記第1の画像特徴量が予め定められた量以上前記画像に含まれていることを前記操作信号が示している場合、前記第1の画像特徴量に基づいて定まる領域(例えば、赤色系領域410)を前記画像から抽出する。
この構成により、領域抽出部144は、前記第1の画像特徴量が予め定められた量以上前記画像に含まれていないことを前記操作信号が示している場合、前記第2の画像特徴量に基づいて定まる領域を前記画像から抽出する。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。
In addition, the
With this configuration, when the operation signal indicates that the first image feature amount is not included in the image by a predetermined amount or more, the region extraction unit 144 sets the second image feature amount as the second image feature amount. A region determined based on the image is extracted from the image. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.
また、判定部142は、前記画像が逆光状態で撮像された画像であるか否かを判定し、領域抽出部144は、前記画像が逆光状態で撮像された画像である場合、予め定められた領域を前記画像から抽出する。
この構成により、領域抽出部144は、前記画像が逆光状態で撮像された画像である場合、前記画像が逆光状態で撮像された画像である場合、予め定められた領域を前記画像から抽出する。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。
Further, the determination unit 142 determines whether or not the image is an image captured in a backlight state, and the region extraction unit 144 determines in advance that the image is an image captured in a backlight state. A region is extracted from the image.
With this configuration, the region extraction unit 144 extracts a predetermined region from the image when the image is an image captured in a backlight state or when the image is an image captured in a backlight state. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.
また、領域抽出装置140は、入力された画像に含まれる第1の画像特徴量(例えば、色成分量)及び第2の画像特徴量(例えば、輝度)を算出する特徴量算出部141と、前記第1の画像特徴量が予め定められた量以上前記画像に含まれているか否かを示す操作信号を受信する受信部143と、前記第1の画像特徴量が予め定められた量以上前記画像に含まれていないことを前記操作信号が示している場合(例えば、ホワイトバランス調整されたことにより彩色画像が無彩色画像に調整された場合)、前記第2の画像特徴量に基づいて定まる領域(例えば、高輝度領域300)を前記画像から抽出し、前記第1の画像特徴量が予め定められた量以上前記画像に含まれていることを前記操作信号が示している場合、前記第1の画像特徴量に基づいて定まる領域(例えば、赤色系領域410)を前記画像から抽出する領域抽出部144と、を備える。
この構成により、領域抽出部144は、前記第1の画像特徴量が予め定められた量以上前記画像に含まれていないことを前記操作信号が示している場合、前記第2の画像特徴量に基づいて定まる領域を前記画像から抽出する。これにより、領域抽出装置は、撮像された画像から主要被写体の領域を適切に抽出することができる。
In addition, the
With this configuration, when the operation signal indicates that the first image feature amount is not included in the image by a predetermined amount or more, the region extraction unit 144 sets the second image feature amount as the second image feature amount. A region determined based on the image is extracted from the image. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the captured image.
また、領域抽出装置140は、入力された画像に含まれる画像特徴量(例えば、色成分量)を算出する特徴量算出部141と、前記画像が逆光状態で撮像された画像であるか否かを判定する判定部142と、前記画像が逆光状態で撮像された画像である場合、AF評価領域に基づいて定まる領域を前記画像から抽出し、前記画像が逆光状態で撮像された画像でない場合、前記特徴量算出部により算出された画像特徴量に基づいて定まる領域を前記画像から抽出する領域抽出部144と、を備える。
この構成により、領域抽出部144は、前記画像が逆光状態で撮像された画像である場合、AF評価領域に基づいて定まる領域を前記画像から抽出し、前記画像が逆光状態で撮像された画像でない場合、前記特徴量算出部により算出された画像特徴量に基づいて定まる領域を前記画像から抽出する。これにより、領域抽出装置は、撮像された画像から主要被写体の領域を適切に抽出することができる。
Further, the
With this configuration, when the image is an image captured in the backlight state, the region extraction unit 144 extracts an area determined based on the AF evaluation region from the image, and the image is not an image captured in the backlight state. In this case, a region determined based on the image feature amount calculated by the feature amount calculation unit is extracted from the image. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the captured image.
また、領域抽出装置140は、入力された画像に含まれる画像特徴量(例えば、色成分量)を算出する特徴量算出部141と、前記画像特徴量が閾値未満であるか否かを判定する判定部142と、前記画像特徴量が閾値未満である場合、AF評価領域に基づいて定まる領域を前記画像から抽出し、前記画像特徴量が閾値以上である場合、特徴量算出部141により算出された画像特徴量に基づいて定まる領域を前記画像から抽出する領域抽出部144と、を備える。
この構成により、領域抽出部144は、前記画像特徴量が閾値未満である場合、AF評価領域に基づいて定まる領域を前記画像から抽出し、前記画像特徴量が閾値以上である場合、特徴量算出部141により算出された画像特徴量に基づいて定まる領域を前記画像から抽出する。これにより、領域抽出装置は、入力された画像から主要被写体の領域を適切に抽出することができる。
In addition, the
With this configuration, the region extracting unit 144 extracts a region determined based on the AF evaluation region from the image when the image feature amount is less than the threshold value, and calculates the feature amount when the image feature amount is equal to or greater than the threshold value. A region determined based on the image feature amount calculated by the unit 141 is extracted from the image. Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image.
また、特徴量算出部141は、前記画像特徴量である色成分量を算出する。
これにより、領域抽出装置は、入力された画像から主要被写体の領域を、色成分量に基づいて適切に抽出することができる。
The feature amount calculation unit 141 calculates a color component amount that is the image feature amount.
Thereby, the area extracting apparatus can appropriately extract the area of the main subject from the input image based on the color component amount.
また、撮像装置100は、領域抽出装置140と、領域抽出装置140が抽出した領域に合焦させるようAFレンズ112により焦点を調節するCPU190と、前記領域を含む画像を撮像する撮像部110と、を備える。
この構成により、領域抽出装置140は、撮像された画像から主要被写体の領域を適切に抽出する。これにより、撮像装置100は、主要被写体の領域を撮像することができる。
In addition, the
With this configuration, the
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.
例えば、色成分は、色差信号(Cr、Cb)により表現されてもよいし、RGB信号により表現されてもよい。 For example, the color component may be expressed by a color difference signal (Cr, Cb) or may be expressed by an RGB signal.
また、上記に説明した領域抽出装置、撮像装置を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより、実行処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。 Further, by recording a program for realizing the region extraction device and the imaging device described above on a computer-readable recording medium, causing the computer system to read and execute the program recorded on the recording medium, Execution processing may be performed. Here, the “computer system” may include an OS and hardware such as peripheral devices.
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。 Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used. The “computer-readable recording medium” means a flexible disk, a magneto-optical disk, a ROM, a writable nonvolatile memory such as a flash memory, a portable medium such as a CD-ROM, a hard disk built in a computer system, etc. This is a storage device.
さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。
さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
Further, the “computer-readable recording medium” refers to a volatile memory (for example, DRAM (Dynamic) in a computer system serving as a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. Random Access Memory)) that holds a program for a certain period of time is also included.
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program may be for realizing a part of the functions described above.
Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.
100…撮像装置、110…撮像部、111…レンズ鏡筒、140…領域抽出装置、141…特徴量算出部、142…判定部、143…受信部、144…領域抽出部、145…優先度設定部
DESCRIPTION OF
Claims (28)
輝度情報により前記画像から第2領域を抽出する第2抽出部と、
前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記第2抽出部の分解能を調節する設定部と、
を備える領域抽出装置。 A first extraction unit that extracts a first region from an image based on color information;
A second extraction unit that extracts a second region from the image based on luminance information;
A setting unit that sets the second region as a specific region and adjusts the resolution of the second extraction unit when the image signal of the first region is less than a threshold;
An area extraction apparatus comprising:
前記設定部は、前記第2領域及び前記第3領域のうち、前記画像の中心位置に近い領域を前記特定領域として設定する請求項1に記載の領域抽出装置。 The second extraction unit extracts a third region different from the second region from the image based on luminance information,
The area extracting apparatus according to claim 1, wherein the setting unit sets an area close to a center position of the image among the second area and the third area as the specific area.
前記設定部は、前記第2領域及び前記第3領域のうち、慣性モーメントが小さい領域を前記特定領域として設定する請求項1に記載の領域抽出装置。 The second extraction unit extracts a third region different from the second region from the image based on luminance information,
The region extraction device according to claim 1, wherein the setting unit sets a region having a small moment of inertia among the second region and the third region as the specific region.
前記設定部は、前記第2領域及び前記第3領域のうち、所定の面積に近い領域を前記特定領域として設定する請求項1に記載の領域抽出装置。 The second extraction unit extracts a third region different from the second region from the image based on luminance information,
The region extraction apparatus according to claim 1, wherein the setting unit sets a region close to a predetermined area as the specific region among the second region and the third region.
輝度情報により前記画像から領域を抽出する第2抽出部と、
前記第1抽出部により抽出された領域の画像信号が閾値未満である場合、前記第2抽出部により抽出された領域を特定領域として設定し、前記第2抽出部の分解能を調節する設定部と、
を備える領域抽出装置。 A first extraction unit for extracting an area from an image based on color information;
A second extraction unit for extracting an area from the image based on luminance information;
A setting unit configured to set the region extracted by the second extraction unit as a specific region and adjust the resolution of the second extraction unit when the image signal of the region extracted by the first extraction unit is less than a threshold; ,
An area extraction apparatus comprising:
前記設定部は、前記複数の領域のうち、前記画像の中心位置に近い領域を前記特定領域として設定する請求項9に記載の領域抽出装置。 The second extraction unit extracts a plurality of regions from the image based on luminance information,
The region extraction device according to claim 9, wherein the setting unit sets a region close to a center position of the image among the plurality of regions as the specific region.
前記設定部は、前記複数の領域のうち、慣性モーメントが小さい領域を前記特定領域として設定する請求項9に記載の領域抽出装置。 The second extraction unit extracts a plurality of regions from the image based on luminance information,
The region extraction device according to claim 9, wherein the setting unit sets a region having a small moment of inertia among the plurality of regions as the specific region.
前記設定部は、前記複数の領域のうち、所定の面積に近い領域を前記特定領域として設定する請求項9に記載の領域抽出装置。 The second extraction unit extracts a plurality of regions from the image based on luminance information,
The region extraction device according to claim 9, wherein the setting unit sets a region close to a predetermined area as the specific region among the plurality of regions.
前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記抽出部の分解能を調節して前記第2領域を抽出する設定部と、
を備える領域抽出装置。 An extraction unit that extracts a first region from an image based on color information and extracts a second region from the image based on luminance information;
A setting unit configured to extract the second region by setting the second region as a specific region when the image signal of the first region is less than a threshold, and adjusting the resolution of the extraction unit;
An area extraction apparatus comprising:
前記設定部は、前記第2領域及び前記第3領域のうち、前記画像の中心位置に近い領域を前記特定領域として設定する請求項17に記載の領域抽出装置。 The extraction unit extracts a third region different from the second region from the image based on luminance information;
The area extraction device according to claim 17, wherein the setting unit sets, as the specific area, an area close to a center position of the image among the second area and the third area.
前記設定部は、前記第2領域及び前記第3領域のうち、慣性モーメントが小さい領域を前記特定領域として設定する請求項17に記載の領域抽出装置。 The extraction unit extracts a third region different from the second region from the image based on luminance information;
The region extraction device according to claim 17, wherein the setting unit sets a region having a small moment of inertia among the second region and the third region as the specific region.
前記設定部は、前記第2領域及び前記第3領域のうち、所定の面積に近い領域を前記特定領域として設定する請求項17に記載の領域抽出装置。 The extraction unit extracts a third region different from the second region from the image based on luminance information;
The region extraction device according to claim 17, wherein the setting unit sets a region close to a predetermined area as the specific region among the second region and the third region.
請求項1から請求項24のいずれか一項に記載の領域抽出装置と、
前記特定領域からの信号を用いて前記光学系を制御する制御部と、
を備える撮像装置。 An image sensor that images light emitted from the optical system;
The region extraction device according to any one of claims 1 to 24,
A control unit for controlling the optical system using a signal from the specific region;
An imaging apparatus comprising:
色情報により画像から第1領域を抽出する第1抽出手順と、
輝度情報により前記画像から第2領域を抽出する第2抽出手順と、
前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記第2抽出手順における抽出の分解能を調節する調節手順と、
を実行させるための領域抽出プログラム。 On the computer,
A first extraction procedure for extracting a first region from an image based on color information;
A second extraction procedure for extracting a second region from the image according to luminance information;
An adjustment procedure for setting the second area as a specific area when the image signal of the first area is less than a threshold, and adjusting the resolution of extraction in the second extraction procedure ;
Extraction program to execute.
色情報により画像から領域を抽出する第1抽出手順と、
輝度情報により前記画像から領域を抽出する第2抽出手順と、
前記第1抽出手順により抽出された領域の画像信号が閾値未満である場合、前記第2抽出手順により抽出された領域を特定領域として設定し、前記第2抽出手順における抽出の分解能を調節する設定手順と、
を実行させるための領域抽出プログラム。 On the computer,
A first extraction procedure for extracting an area from an image based on color information;
A second extraction procedure for extracting an area from the image based on luminance information;
Setting that adjusts the resolution of extraction in the second extraction procedure by setting the region extracted by the second extraction procedure as a specific region when the image signal of the region extracted by the first extraction procedure is less than a threshold value Procedure and
Extraction program to execute.
色情報により画像から第1領域を抽出するとともに、輝度情報により前記画像から第2領域を抽出する第1抽出手順と、
前記第1領域の画像信号が閾値未満である場合、前記第2領域を特定領域として設定し、前記第1抽出手順における前記第2領域の抽出の分解能を調節して前記第2領域を抽出する第2抽出手順と、
を実行させるための領域抽出プログラム。 On the computer,
A first extraction procedure for extracting a first region from an image based on color information and extracting a second region from the image based on luminance information;
When the image signal of the first area is less than a threshold, the second area is set as a specific area, and the second area is extracted by adjusting the resolution of the extraction of the second area in the first extraction procedure. A second extraction procedure;
Extraction program to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016036948A JP6350562B2 (en) | 2016-02-29 | 2016-02-29 | Region extraction device, imaging device, and region extraction program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016036948A JP6350562B2 (en) | 2016-02-29 | 2016-02-29 | Region extraction device, imaging device, and region extraction program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011176709A Division JP5899700B2 (en) | 2011-08-12 | 2011-08-12 | Region extraction device, imaging device, and region extraction program |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018109524A Division JP2018181357A (en) | 2018-06-07 | 2018-06-07 | Region extraction device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016136402A JP2016136402A (en) | 2016-07-28 |
JP6350562B2 true JP6350562B2 (en) | 2018-07-04 |
Family
ID=56513115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016036948A Active JP6350562B2 (en) | 2016-02-29 | 2016-02-29 | Region extraction device, imaging device, and region extraction program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6350562B2 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08107560A (en) * | 1994-10-05 | 1996-04-23 | Ricoh Co Ltd | Image input device |
JP2000028354A (en) * | 1998-07-13 | 2000-01-28 | Victor Co Of Japan Ltd | Three-dimensional image processing device |
JP2005339076A (en) * | 2004-05-26 | 2005-12-08 | Nippon Telegr & Teleph Corp <Ntt> | Object area extraction device, extraction method, program for the method, and recording medium recorded with the program |
JP4906632B2 (en) * | 2007-08-03 | 2012-03-28 | キヤノン株式会社 | Image processing apparatus, image processing method, and image processing program |
JP5509621B2 (en) * | 2009-02-27 | 2014-06-04 | 株式会社ニコン | Image processing apparatus, camera, and program |
JP5395650B2 (en) * | 2009-12-24 | 2014-01-22 | キヤノン株式会社 | Subject area extraction device and control method thereof, subject tracking device, and program |
-
2016
- 2016-02-29 JP JP2016036948A patent/JP6350562B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016136402A (en) | 2016-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5994904B2 (en) | Focus adjustment device | |
US8446488B2 (en) | Method and system for focal length-specific color enhancement | |
KR20110032250A (en) | Method for auto focusing, medium for recording the method and apparatus applying the method | |
JPWO2017037978A1 (en) | DETECTING DEVICE, DETECTING METHOD, DETECTING PROGRAM, AND IMAGING DEVICE | |
JP6060486B2 (en) | Focus adjustment device, imaging device, and focus adjustment program | |
JP2017201818A (en) | Area extraction device | |
JP6156532B2 (en) | Region extraction device, imaging device, and region extraction program | |
US20110074982A1 (en) | Apparatus and method for digital photographing | |
JP5899700B2 (en) | Region extraction device, imaging device, and region extraction program | |
KR20100099008A (en) | Auto focusing method and apparatus, and digital photographing apparatus using thereof | |
JP6350562B2 (en) | Region extraction device, imaging device, and region extraction program | |
JP4807623B2 (en) | Imaging apparatus, imaging method, and imaging program | |
JP5871175B2 (en) | Region extraction device, imaging device, and region extraction program | |
JP6089476B2 (en) | Image processing apparatus, imaging apparatus, and image processing program | |
JP5899693B2 (en) | Region extraction device, imaging device, and region extraction program | |
JP5673454B2 (en) | Image processing apparatus, image processing method, and program | |
JP5786460B2 (en) | Region extraction device, imaging device, and region extraction program | |
JP2018181357A (en) | Region extraction device | |
JP6508259B2 (en) | Imaging device and program | |
JP6131519B2 (en) | Image processing apparatus, imaging apparatus, and image processing program | |
JP2012013809A (en) | Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus | |
JP5888069B2 (en) | Area determination apparatus, imaging apparatus, and area determination program | |
CN106464783B (en) | Image pickup control apparatus, image pickup apparatus, and image pickup control method | |
JP2019126090A (en) | Imaging apparatus and program | |
JP6003974B2 (en) | Image processing apparatus, image processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170209 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170307 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170501 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20171031 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20171128 |
|
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: 20180508 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180521 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6350562 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 |