JP2006236181A - Image identification device and method therefor, and image identification program - Google Patents

Image identification device and method therefor, and image identification program Download PDF

Info

Publication number
JP2006236181A
JP2006236181A JP2005052497A JP2005052497A JP2006236181A JP 2006236181 A JP2006236181 A JP 2006236181A JP 2005052497 A JP2005052497 A JP 2005052497A JP 2005052497 A JP2005052497 A JP 2005052497A JP 2006236181 A JP2006236181 A JP 2006236181A
Authority
JP
Japan
Prior art keywords
image
certainty
reliability
calculated
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005052497A
Other languages
Japanese (ja)
Inventor
Junya Morita
順也 森田
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2005052497A priority Critical patent/JP2006236181A/en
Publication of JP2006236181A publication Critical patent/JP2006236181A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To identify image classification with high accuracy to which an image to be represented by image data belongs. <P>SOLUTION: An image file 10, including image data 11 and tag information 12, is received. Based on the image data 11, a degree of certainty showing the probability, in which an image represented by the image data belongs to an image classification, is computed for each of a plurality of preliminarily determined image classifications (object type and lighting type). Further, the probability where the image data 11 belongs to object type "Evening scenes" and a probability in which the image data belongs to lighting type "tungsten" are computed, based on the tag information 12 included in the image file 10. When the probabilities are smaller than a prescribed value, the degree of certainty which obtains such probabilities (certainty degree of evening scene or tungsten degree of certainty) is decreased. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は,画像データによって表される画像の画像分類を識別する装置および方法,ならびに画像識別処理をコンピュータに実行させるプログラムに関する。   The present invention relates to an apparatus and method for identifying an image classification of an image represented by image data, and a program for causing a computer to execute an image identification process.

特許文献1には,シーン判定部31を含む画像データ処理部24を備えたディジタルスチルカメラが記載されている。シーン判定部31では,画像中に人物を表す画像が含まれているかどうかおよび色ヒストグラムに基づいて,画像が,スナップショット,ポートレイト,記念撮影,風景撮影,夕景,夜景,夜景ポートレイト,海,蛍光灯光源またはタングステン光源のいずれの撮影シーンにおけるものであるかを判定している。画像がいずれの撮影シーンにおけるものであるかが判定されると,判定された撮影シーンに基づいて,撮影シーンごとに設定された補正処理が画像データに対して行われる。   Patent Document 1 describes a digital still camera including an image data processing unit 24 including a scene determination unit 31. Based on whether an image representing a person is included in the image and the color histogram, the scene determination unit 31 converts the image into a snapshot, a portrait, a commemorative photo, a landscape shot, an evening scene, a night scene, a night scene portrait, an ocean scene. , It is determined whether the light source is a fluorescent light source or a tungsten light source. When it is determined in which shooting scene the image is, a correction process set for each shooting scene is performed on the image data based on the determined shooting scene.

しかしながら,「夕景」の撮影シーンと,「タングステン光源」の撮影シーンとは,いずれも全体的にオレンジ色がかかった画像であるため,画像データから得られる情報のみにもとづいて,これらを精度良く判定(識別)するのは容易ではない。
特開2002−218480号公報
However, since the shooting scene of “Evening scene” and the shooting scene of “Tungsten light source” are both images with an orange color as a whole, they are accurately obtained based only on the information obtained from the image data. It is not easy to determine (identify).
JP 2002-218480 A

この発明は,画像データによって表される画像の分類(撮影シーン,被写体種類,ライティング種類などの分類)の精度向上を図ることを目的とする。   An object of the present invention is to improve the accuracy of classification of images represented by image data (classification of shooting scene, subject type, lighting type, etc.).

この発明による画像識別装置は,タグ情報および画像データを含む画像ファイルの入力を受ける画像ファイル受付手段,上記画像ファイル受付手段によって受付けられた画像ファイルに含まれる画像データに基づいて,あらかじめ定められた複数の画像分類のそれぞれについて,上記画像データによって表される画像が,どの程度の確度でそれらの画像分類に属するかを表す確信度を算出する確信度算出手段,上記画像ファイル受付手段によって受付けられた画像ファイルに含まれるタグ情報に基づいて,上記確信度算出手段によって算出された複数の確信度のうちの少なくとも一つの確信度についての信頼度を算出する信頼度算出手段,ならびに上記信頼度算出手段によって算出された信頼度が所定値よりも低い場合に,そのような評価値が得られた確信度を減少させる確信度修正手段を備えたことを特徴とする。   An image identification device according to the present invention has an image file receiving means for receiving an input of an image file including tag information and image data, and is predetermined based on the image data included in the image file received by the image file receiving means. For each of a plurality of image classifications, a certainty factor calculating means for calculating a certainty factor indicating to what degree the image represented by the image data belongs to those image classifications is received by the image file receiving means. Reliability calculation means for calculating the reliability of at least one of the plurality of certainty degrees calculated by the certainty degree calculation means based on the tag information contained in the image file, and the reliability calculation Such an evaluation value when the reliability calculated by the means is lower than a predetermined value. Further comprising a confidence correction means for reducing the resulting confidence characterized.

この発明による画像識別方法は,タグ情報および画像データを含む画像ファイルの入力を受け,受付けた画像ファイルに含まれる画像データに基づいて,あらかじめ定められた複数の画像分類のそれぞれについて,上記画像データによって表される画像が,どの程度の確度でそれらの画像分類に属するかを表す確信度を算出し,受付けた画像ファイルに含まれるタグ情報に基づいて,上記確信度算出手段によって算出された複数の確信度のうちの少なくとも一つの確信度についての信頼度を算出し,算出した信頼度が所定値よりも低い場合に,そのような信頼度が得られた確信度を減少させることを特徴とする。   The image identification method according to the present invention receives an input of an image file including tag information and image data, and receives the image data for each of a plurality of predetermined image classifications based on the image data included in the received image file. The degree of certainty representing the degree of accuracy of the image represented by the image classification is calculated, and based on the tag information included in the received image file, the plurality of degrees of certainty calculated by the certainty degree calculating means are calculated. And calculating the reliability of at least one of the certainty degrees, and when the calculated reliability is lower than a predetermined value, reducing the certainty of obtaining such reliability. To do.

この発明はさらに,上述の画像識別方法をコンピュータに実行させるためのプログラム(コンピュータを,上述の画像識別装置として機能させるためのプログラム)も提供している。   The present invention also provides a program for causing a computer to execute the above-described image identification method (a program for causing a computer to function as the above-described image identification device).

与えられる画像ファイルに含まれる画像データに基づいて,その画像データによって表される画像があらかじめ定められる複数の画像分類のそれぞれにどの程度の確度で属するかを表す確信度が,複数の画像分類のそれぞれについて算出される。画像分類は,画像データに基づいて識別し得る分類であって,画像補正処理において異なる補正を行うべき(異なる補正処理を行った方が適切であることが経験的に知られている)分類である。   Based on the image data included in the given image file, the certainty level indicating the degree of accuracy that the image represented by the image data belongs to each of a plurality of predetermined image classifications, Calculated for each. Image classification is a classification that can be identified based on image data, and should be corrected differently in image correction processing (it is empirically known that different correction processing is more appropriate). is there.

一実施態様では,上記確信度算出手段は,上記画像データによって表される画像中に,あらかじめ定められた複数の被写体種類を表す画像が,それぞれどの程度の確度で含まれているかを表す被写体種類確信度を,上記画像データから得られる特徴量に基づいて,定められた被写体種類ごとに算出する被写体種類別確信度算出手段,および上記画像データによって表される画像が,あらかじめ定められた複数のライティング種類のそれぞれについて,どの程度の確度でそのライティング種類の下で撮影されたかを表すライティング確信度を,上記画像データから得られる特徴量に基づいて,定められたライティング種類ごとに算出するライティング種類別確信度算出手段を含む。被写体種類に関する画像分類として,たとえば,「人物顔」,「海中」,「高彩度」,「夕景」,「夜景」,「青空」,「ハイキー」などが挙げられる。ライティング種類に関する画像分類として,「逆光」,「近接ストロボ」,「タングステン」などが挙げられる。   In one embodiment, the certainty factor calculating means indicates a subject type that indicates to what degree each image representing a plurality of predetermined subject types is included in the image represented by the image data. Based on the feature amount obtained from the image data, a certain type of certainty factor calculating means for calculating the certain type of subject, and an image represented by the image data includes a plurality of predetermined types. For each lighting type, a lighting confidence level that indicates the degree of accuracy with which the shooting was performed under the lighting type is calculated for each predetermined lighting type based on the feature amount obtained from the image data. Another certainty factor calculation means is included. Examples of the image classification related to the subject type include “person face”, “underwater”, “high saturation”, “evening scene”, “night scene”, “blue sky”, “high key”, and the like. Image classifications related to lighting types include “backlight”, “proximity strobe”, and “tungsten”.

たとえば,被写体種類「海中」の画像には,当然に,いわゆる海中色(青色〜緑色の色範囲に属する色)を持つ画素が,画像中の広い範囲に含まれている。最も単純には,海中色を持つ画素が所定面積以上含まれていれば,その画像は「海中」の画像分類であることを識別することができ,さらにその面積に応じて確信度を算出することができる。もちろん,複数種類の特徴量を利用して,「海中」の画像分類に対する確信度を算出することもできる。   For example, an image of the subject type “underwater” naturally includes pixels having a so-called underwater color (a color belonging to a blue to green color range) in a wide range in the image. In the simplest case, if a pixel with underwater color is included in a predetermined area or more, it can be identified that the image is “underwater” image classification, and the certainty factor is calculated according to the area. be able to. Of course, the certainty factor for the image classification of “underwater” can be calculated using a plurality of types of feature quantities.

好ましくは,画像分類のそれぞれについて,確信度の算出に適した一または複数の特徴量の種類と,特徴量に応じて確信度を算出するためのポイントデータを記憶したメモリが設けられ,このメモリが参照されて画像データに基づいて特徴量が算出され,算出された特徴量に応じて得られるポイントデータにしたがって,確信度が算出される。ポイントデータをそのまま確信度としてもよいし,複数の特徴量を確信度の算出に用いる場合には,各ポイントデータの加算値を確信度としてもよい。加算されたポイントデータを特徴量の数で除算した値を確信度としてもよい。好ましくは,確信度は,0から1までの範囲の値に正規化される。   Preferably, for each of the image classifications, there is provided a memory storing one or a plurality of types of feature quantities suitable for calculating the certainty factor and point data for calculating the certainty factor according to the feature quantity. Is referred to to calculate a feature amount based on the image data, and a certainty factor is calculated according to point data obtained according to the calculated feature amount. The point data may be used as the certainty as it is, or when a plurality of feature quantities are used for calculating the certainty, the added value of each point data may be used as the certainty. A value obtained by dividing the added point data by the number of feature values may be used as the certainty factor. Preferably, the certainty factor is normalized to a value ranging from 0 to 1.

画像分類のそれぞれについて得られる確信度によって,与えられる画像ファイルに含まれる画像データによって表される画像が属する画像分類の確からしさが表わされるので,この確信度に基づいて画像分類ごとに定められた補正処理を施せば,画像データに適した画像補正処理(濃度補正,ホワイトバランス補正など)を施すことができる。   The certainty factor obtained for each image classification represents the certainty of the image classification to which the image represented by the image data contained in the given image file belongs, so it was determined for each image classification based on this certainty factor If correction processing is performed, image correction processing (density correction, white balance correction, etc.) suitable for the image data can be performed.

画像補正処理を画像分類に応じて行う場合,より細かく(より多くの)画像分類を設定した方が,より適切な画像補正処理を,処理対象の画像データに対して施すことができる。   When the image correction processing is performed according to the image classification, more appropriate image correction processing can be performed on the image data to be processed if finer (more) image classification is set.

しかしながら,細かく(多くの)画像分類を設定した場合,画像データに基づいて得られる確信度の精度が悪化するおそれがある。   However, when fine (many) image classifications are set, there is a risk that accuracy of certainty obtained based on image data may deteriorate.

たとえば,夕景を撮影することによって得られる画像(夕景画像)およびタングステン光源下で被写体(たとえば人物)を撮影することによって得られる画像(タングステン画像)である。夕景画像とタングステン画像とは,いずれも全体的にオレンジ色がかかった画像であるので,画像データのみに基づいて確信度を算出すると,夕景画像であるにも関わらずタングステン画像である確信度として大きい値が得られたり,逆にタングステン画像であるにも関わらず夕景画像である確信度として大きい値が得られるたりすることがある。しかしながら,夕景画像は画像中に現れる夕景の雰囲気を維持させるためにホワイトバランス補正を弱く施し,タングステン画像はより自然な発色にするためにホワイトバランス補正を強く施すといったように,補正処理を異ならせる必要性が高い。このため,夕景画像とタングステン画像を一つの画像分類としてまとめるよりも,別個の画像分類とした方が好ましい。   For example, an image obtained by photographing a sunset scene (an evening scene image) and an image obtained by photographing a subject (for example, a person) under a tungsten light source (tungsten image). Since both the sunset scene image and the tungsten image are images with an orange color as a whole, if the certainty factor is calculated based only on the image data, the certainty factor for the tungsten image is obtained even though it is an evening scene image. A large value may be obtained, or conversely, although the image is a tungsten image, a large value may be obtained as a certainty factor that the image is an evening scene image. However, the correction process is different, for example, the sunset image is weakly white-balanced to maintain the atmosphere of the evening scene that appears in the image, and the tungsten image is strongly white-balanced to make the color more natural. The necessity is high. For this reason, it is preferable to use separate image classifications rather than combining the sunset scene image and the tungsten image as one image classification.

そこで,多くのディジタル・カメラにおいて画像ファイルに画像データとともに格納されるタグ情報が,確信度の精度の悪化を防ぐために用いられる。タグ情報は,たとえば,Exif(Exchangeble image file format)規格にしたがって,ディジタル・カメラ等によって得られた画像ファイルに,画像データとともに格納される情報である。画像ファイルに含まれるタグ情報に基づいて,算出された複数の確信度のうちの少なくとも一つの確信度についての信頼度が算出される。   Therefore, tag information stored together with image data in an image file in many digital cameras is used to prevent the accuracy of certainty from deteriorating. The tag information is information stored together with image data in an image file obtained by a digital camera or the like in accordance with, for example, the Exif (Exchangeble image file format) standard. Based on the tag information included in the image file, the reliability for at least one of the calculated certainty levels is calculated.

タグ情報には,画像ファイルの作成時(撮影時)に,画像データの取得条件(被写体の撮影時の撮影条件)等が格納される。画像データに基づいて得られる確信度(すなわち,画像特徴から得られる確信度)に対し,タグ情報に基づいて信頼度に応じた評価を加えることができる。   The tag information stores image data acquisition conditions (photographing conditions at the time of photographing a subject) and the like when an image file is created (at the time of photographing). Evaluation according to the reliability can be added to the certainty factor obtained based on the image data (that is, the certainty factor obtained from the image feature) based on the tag information.

タグ情報に基づいて得られる信頼度は,好ましくは,画像特性が類似する,上記複数の被写体種類のうちの一つと上記複数のライティング種類のうちの一つについて算出される。画像特性が近似しない画像分類同士であれば,画像データから得られる確信度として比較的信頼できる値が算出されるが,画像特性が近似する画像分類同士(たとえば,上述した夕景画像とタングステン画像)については,画像データから得られる確信度の精度は,近似しない画像分類同士よりも精度が低いことがあるからである。   The reliability obtained based on the tag information is preferably calculated for one of the plurality of subject types and one of the plurality of lighting types having similar image characteristics. If image classifications that do not approximate image characteristics are used, a relatively reliable value is calculated as the certainty factor obtained from the image data. However, image classifications that approximate image characteristics (for example, the above-described sunset image and tungsten image). This is because the accuracy of the certainty factor obtained from the image data may be lower than that of image categories that are not approximated.

タグ情報に基づいて得られる信頼度が,所定値よりも低い場合に,そのような信頼度(評価値)が得られた確信度が減少される。   When the reliability obtained based on the tag information is lower than a predetermined value, the certainty that such reliability (evaluation value) is obtained is reduced.

この発明によると,タグ情報に基づいて信頼度が低いと判断された画像分類についての確信度が小さくされるので,その画像分類に対応する補正処理の補正効果を弱めることができる。誤った確信度に基づく画像補正処理によって生じる悪影響を,未然に防止する(少なくする)ことができる。   According to the present invention, since the certainty factor for the image classification determined to be low in reliability based on the tag information is reduced, the correction effect of the correction process corresponding to the image classification can be weakened. It is possible to prevent (reduce) an adverse effect caused by the image correction process based on an erroneous certainty factor.

一実施態様では,上記確信度修正手段は,上記信頼度算出手段によって算出された信頼度の大きさに応じて,上記確信度の減少の程度を変動させる。信頼度が低いほど確信度をより小さく修正することができる。   In one embodiment, the certainty factor correcting unit varies the degree of decrease in the certainty factor according to the magnitude of the reliability calculated by the reliability calculating unit. The lower the reliability, the smaller the certainty factor can be corrected.

図1は,画像判別装置の機能ブロック図を示している。   FIG. 1 shows a functional block diagram of the image discrimination device.

画像判別装置は,処理対象の画像ファイルに基づいて,画像ファイルに含まれる画像データによって表される画像の画像種類(シーン,シチュエーション)および画像ファイルの取得時(被写体の撮影時)のライティング種類(撮影時の光源種類)を判別する装置である。処理対象の画像ファイルは,たとえばディジタル・カメラが用いられて取得される。メモリ・カードまたはネットワークを介して,ディジタル・カメラによって取得された画像データが,画像判別装置に与えられる(入力される)。   Based on the image file to be processed, the image discriminating apparatus determines the image type (scene, situation) of the image represented by the image data included in the image file, and the lighting type (at the time of shooting the subject) ( This is a device for discriminating the type of light source at the time of shooting. The image file to be processed is acquired using, for example, a digital camera. The image data acquired by the digital camera is given (inputted) to the image discrimination device via the memory card or the network.

処理対象の画像ファイルによって表される画像が,あらかじめ決められた複数の画像種類のうちの一つであること(逆に言えば,他の画像種類ではないこと)を判別するよりも,複数の画像種類のそれぞれについて,どの程度それらの画像種類に近いか(画像種類のそれぞれについての確からしさ)を算出する方が,画像処理上都合がよい。このため,画像判別装置は,後述するように,画像ファイルによって表される画像が,あらかじめ設定された複数の画像種類のそれぞれについて,どの程度の確からしさでそれらの画像種類に属するかを「確信度」という数値によって表す。このことは,ライティング種類についても同様である。   Rather than determining that the image represented by the image file to be processed is one of a plurality of predetermined image types (in other words, not another image type), It is more convenient in terms of image processing to calculate how close each image type is to those image types (probability for each image type). For this reason, as will be described later, the image discriminating apparatus determines whether the image represented by the image file belongs to each of a plurality of preset image types with certainty. It is expressed by the numerical value “degree”. The same applies to the lighting type.

画像判別装置によって得られる被写体種類ごとおよびライティング種類ごとの確信度は,処理対象の画像ファイルに含まれる画像データの画像補正処理に利用される。画像補正処理では,被写体種類およびライティング種類のそれぞれに対応する補正処理が用意される。被写体種類およびライティング種類のそれぞれについて得られる確信度の大きさに応じて,画像データに対する補正処理の補正効果の程度(被写体種類およびライティング種類のそれぞれについて用意される補正処理のそれぞれの補正効果の程度)が決定される。   The certainty factor for each subject type and each lighting type obtained by the image discriminating apparatus is used for image correction processing of image data included in the image file to be processed. In the image correction processing, correction processing corresponding to each of the subject type and the lighting type is prepared. Depending on the degree of certainty obtained for each of the subject type and the lighting type, the degree of the correction effect of the correction processing on the image data (the degree of the correction effect of the correction processing prepared for each of the subject type and the lighting type) ) Is determined.

図1を参照して,画像判別装置は,被写体種類別確信度算出機能1,ライティング種類別確信度算出機能2,夕景/タングステン確信度再算出機能3および被写体種類「検出対象外」確信度算出機能4を達成するように構成される。これらの機能のそれぞれをハードウエアによって構成してもよいし,その一部または全部をプログラミング処理(ソフトウエア)によって実現してもよい。画像データに画像補正処理を実行する画像補正装置の一部として,画像判別装置を組み込むようにしてもよい。プログラミング処理によって上記機能を達成する画像判別装置(画像判別装置)は,CPU,メモリ,記憶装置,CD−ROMドライブ,通信装置,表示装置等を備える。   Referring to FIG. 1, the image discriminating device calculates subject type certainty factor calculation function 1, lighting type certainty factor calculation function 2, evening scene / tungsten certainty factor recalculation function 3, and subject type “non-detection target” certainty factor calculation. Configured to accomplish function 4. Each of these functions may be configured by hardware, or part or all of the functions may be realized by programming processing (software). An image discriminating device may be incorporated as part of an image correcting device that performs image correction processing on image data. An image discriminating apparatus (image discriminating apparatus) that achieves the above functions by programming processing includes a CPU, a memory, a storage device, a CD-ROM drive, a communication device, a display device, and the like.

被写体種類別確信度算出機能1は,処理対象の画像ファイル10に含まれる画像データ11にもとづいて,画像データ11によって表される画像中に現れている被写体種類(シーン,シチュエーション)を判別し,その確信度(確からしさを規定する数値)を算出するものである。この実施例では,被写体種類別確信度算出機能1は,「人物顔」,「海中」,「高彩度」,「夕景」,「夜景」,「青空」および「ハイキー」の7種類の被写体種類のそれぞれについての確信度を算出する。   The subject type certainty factor calculation function 1 determines the subject type (scene, situation) appearing in the image represented by the image data 11 based on the image data 11 included in the image file 10 to be processed, The certainty (a numerical value that defines the certainty) is calculated. In this embodiment, the subject type certainty factor calculation function 1 has seven types of subject types: “person face”, “underwater”, “high saturation”, “evening scene”, “night scene”, “blue sky”, and “high key”. Calculate confidence for each.

ライティング種類別確信度算出機能2は,処理対象の画像ファイル10に含まれる画像データ11にもとづいて,画像ファイル10が得られたとき(たとえば,ディジタル・カメラによって撮影が行われたとき)の光源の種類を判別し,その確信度(確からしさを規定する数値)を算出するものである。この実施例では,ライティング種類別確信度算出機能2は,「逆光」,「近接ストロボ」および「タングステン」の3種類のライティング種類のそれぞれについての確信度を算出する。   The writing type certainty factor calculation function 2 is a light source when the image file 10 is obtained based on the image data 11 included in the image file 10 to be processed (for example, when the image is taken by a digital camera). Is determined, and its certainty (a numerical value defining the certainty) is calculated. In this embodiment, the writing type certainty factor calculation function 2 calculates the certainty factor for each of the three types of lighting, “backlight”, “proximity strobe”, and “tungsten”.

被写体種類別確信度算出機能1によって確信度が算出される被写体種類のうちの一つである「夕景」と,ライティング種類別確信度算出機能2によって確信度が算出されるライティング種類のうちの一つである「タングステン」は,これらの確信度(「夕景確信度」および「タングステン確信度」)を画像データ11のみに基づいて算出すると,現実には夕景画像であるにも関わらず,タングステン確信度として大きな値が得られたり,逆に現実にはタングステン画像であるにも関わらず,夕景確信度として大きな値が得られたりすることがある。夕景画像およびタングステン画像は,いずれも全体的にオレンジ色を帯びた画像になり,画像データ上ではその区別が比較的難しいからである。   One of the subject types for which the certainty factor is calculated by the subject type certainty factor calculation function 1 and one of the lighting types for which the certainty factor is calculated by the certainty type certainty factor calculation function 2 As for “tungsten”, when these certainty factors (“evening scene certainty factor” and “tungsten certainty factor”) are calculated based only on the image data 11, the tungsten certainty factor is actually an evening scene image. A large value may be obtained as a degree, or conversely, a large value may be obtained as a certainty of the evening scene despite the fact that it is actually a tungsten image. This is because both the sunset scene image and the tungsten image are orange-colored as a whole and are relatively difficult to distinguish on the image data.

夕景/タングステン確信度再算出機能3は,画像データ11に基づいて得られた被写体種類「夕景」についての確信度およびライティング種類「タングステン」についての確信度を,処理対象の画像ファイル10に含まれるタグ情報12を利用して再算出するものである。すなわち,夕景/タングステン確信度再算出機能3は,全体的にオレンジ色を帯びている画像が,夕景画像であるのかまたはタングステン画像であるのかを,タグ情報12を利用して精度良く判別する処理(夕景確信度およびタングステン確信度の再算出,修正夕景確信度および修正タングステン確信度の算出処理)を行う。   The evening scene / tungsten certainty recalculation function 3 includes the certainty factor for the subject type “evening scene” and the certainty factor for the lighting type “tungsten” obtained based on the image data 11 in the image file 10 to be processed. The tag information 12 is used for recalculation. That is, the sunset / tungsten certainty recalculation function 3 is a process for accurately discriminating whether the overall orange image is an evening image or a tungsten image using the tag information 12. (Recalculation of evening scene certainty and tungsten certainty, calculation process of corrected evening scene certainty and modified tungsten certainty).

被写体種類「検出対象外」確信度算出機能4は,上述した7種類の被写体種類(「人物顔」,「海中」,「高彩度」,「夕景」,「夜景」,「青空」および「ハイキー」)以外の被写体種類であること(これを,被写体種類「検出対象外」と呼ぶ)の確信度を算出する処理を行う。   The subject type “non-detection target” certainty factor calculation function 4 has the above seven subject types (“person face”, “underwater”, “high saturation”, “evening scene”, “night scene”, “blue sky”, and “high key”). ) To calculate the certainty factor that the subject type is other than (the subject type is “non-detection target”).

以下,被写体種類別確信度算出機能1,ライティング種類別確信度算出機能2,夕景/タングステン確信度再算出機能3,および被写体種類「検出対象外」確信度算出機能4のそれぞれについて説明する。   Hereinafter, each of the subject type certainty factor calculation function 1, the lighting type certainty factor calculation function 2, the evening scene / tungsten certainty factor recalculation function 3, and the subject type “non-detection target” certainty factor calculation function 4 will be described.

(1)被写体種類別確信度算出機能1
被写体種類別確信度算出機能1は,あらかじめ定められた複数の被写体種類のそれぞれに対応する複数の識別装置(識別プログラム)によって構成することができる。この実施例では,被写体種類別確信度算出機能1は,「人物顔」,「海中」,「高彩度」,「夕景」,「夜景」,「青空」および「ハイキー」のそれぞれに対応する7つの識別装置を含む。
(1) Subject type certainty factor calculation function 1
The subject type certainty factor calculation function 1 can be configured by a plurality of identification devices (identification programs) corresponding to a plurality of predetermined subject types. In this embodiment, the subject type certainty factor calculation function 1 has seven functions corresponding to “person face”, “underwater”, “high saturation”, “evening scene”, “night scene”, “blue sky”, and “high key”. Includes identification device.

たとえば,被写体種類「夕景」に対応する識別装置(以下,夕景識別装置という)は,あらかじめ行われる学習処理によって得られる学習データに基づいて,処理対象の画像ファイル10に含まれる画像データ11によって表される画像が夕景画像であるかどうか(夕景画像である確信度)を算出する。   For example, an identification device corresponding to the subject type “evening scene” (hereinafter referred to as an evening scene identification device) is represented by image data 11 included in the image file 10 to be processed, based on learning data obtained by a learning process performed in advance. Whether the image to be displayed is an evening scene image (the certainty level that is an evening scene image) is calculated.

複数の被写体種類の代表として,被写体種類「夕景」についての確信度算出処理について説明する。   As a representative of a plurality of subject types, a certainty factor calculation process for the subject type “evening scene” will be described.

図2は,被写体種類「夕景」についての確信度算出処理に用いられる学習データが作成される様子を示している。   FIG. 2 shows how learning data used in the certainty factor calculation process for the subject type “evening scene” is created.

学習データ作成処理では,まず,多数の夕景サンプル画像データと多数の非夕景サンプル画像データとが用意される。夕景サンプル画像データには,さまざまな場所で撮影された夕景画像を表すものが用いられる。非夕景サンプル画像データには,夕景画像ではない画像(非夕景画像)(夕景画像と全く異なるものであっても,近似するものであってもよい)が用いられる(図2の左側)。   In the learning data creation process, first, a large number of evening scene sample image data and a large number of non-evening scene sample image data are prepared. As the evening scene sample image data, data representing evening scene images taken at various places is used. For the non-evening scene sample image data, an image that is not an evening scene image (non-evening scene image) (which may be completely different from or similar to the evening scene image) may be used (left side in FIG. 2).

一の特徴量種類,たとえば,R値70%値(画像データによって表される画像を構成する各画素ごとのR値の累積ヒストグラムにおいて,その70%点に対応する値)が選択される。選択された特徴量種類(R値70%値)を,多数の夕景サンプル画像データを用いて算出し,その頻度ヒストグラムを作成する。同様にして,選択された特徴量種類(R値70%値)を,多数の非夕景サンプル画像データを用いて算出し,その頻度ヒストグラムを作成する(図2の中央)。   One feature quantity type, for example, an R value of 70% (a value corresponding to the 70% point in the cumulative histogram of R values for each pixel constituting the image represented by the image data) is selected. The selected feature quantity type (R value 70% value) is calculated using a large number of sunset scene sample image data, and its frequency histogram is created. Similarly, the selected feature quantity type (R value 70% value) is calculated using a large number of non-evening scene sample image data, and a frequency histogram is created (center of FIG. 2).

多数の夕景サンプル画像データを用いて作成された累積ヒストグラム(図2の中央上段)と,多数の非夕景サンプル画像データを用いて作成された累積ヒストグラム(図2の中央下段)とにおいて,累積ヒストグラムの偏りがあれば,選択された特徴量種類(上述の例の場合,R値70%値)は,夕景画像と非夕景画像の判別(識別)に適した特徴量種類と言える。   A cumulative histogram created using a large number of evening scene sample image data (upper center in FIG. 2) and a cumulative histogram created using a large number of non-evening scene sample image data (lower center in FIG. 2). If it is biased, it can be said that the selected feature quantity type (R value 70% in the case of the above example) is a feature quantity type suitable for discrimination (identification) of an evening scene image and a non-evening scene image.

作成された2つの累積ヒストグラムの対応する特徴量の値ごとの頻度値の比の対数値が算出される。この対数値を識別ポイントと呼ぶ。識別ポイントは,特徴量の種類とともに,学習データを形成する。   A logarithmic value of the ratio of the frequency values for each feature value corresponding to the two accumulated histograms is calculated. This logarithmic value is called an identification point. The identification points form learning data together with the types of feature quantities.

図3は,被写体種類「夕景」についての学習データの一例を示している。被写体種類「夕景」についての学習データには,被写体種類「夕景」であることの識別に適した特徴量の種類(ここでは,R値70%値,Y値90%値,R値90%値およびCr平均値とする)と,識別ポイントが格納される。識別ポイントは,特徴量の値のそれぞれに対応して複数格納される。   FIG. 3 shows an example of learning data for the subject type “evening scene”. The learning data for the subject type “evening scene” includes types of feature quantities suitable for identification of the subject type “evening scene” (here, R value 70% value, Y value 90% value, R value 90% value). And the Cr average value) and the identification points are stored. A plurality of identification points are stored corresponding to each feature value.

夕景識別装置は,被写体種類「夕景」についての学習データ(図3)を記憶しており,この学習データに基づいて,処理対象の画像データ11に対し,その画像データ11によって表される画像が被写体種類「夕景」であることの確からしさを規定する確信度を算出する。識別ポイントの合計値をそのままその被写体種類「夕景」についての確信度として用いてもよいし,識別ポイントの合計値を0〜1までの範囲の数値に正規化して,正規化された値を確信度としてもよい。識別ポイントの合計値を特徴量種類の数によって除算し,除算した値を正規化して,正規化された値を確信度としてもよい。   The evening scene identification device stores learning data (FIG. 3) on the subject type “evening scene”, and based on this learning data, the image represented by the image data 11 is compared with the image data 11 to be processed. A certainty factor that defines the certainty of the subject type “evening scene” is calculated. The total value of the identification points may be used as it is as the certainty for the subject type “evening scene”, or the total value of the identification points is normalized to a numerical value ranging from 0 to 1, and the normalized value is confirmed. It may be a degree. The total value of the identification points may be divided by the number of feature quantity types, the divided value may be normalized, and the normalized value may be used as the certainty factor.

他の被写体種類「人物顔」,「海中」,「高彩度」,「夜景」,「青空」および「ハイキー」のそれぞれに対応する識別装置も学習データを記憶しており,学習データに基づいて,処理対象の画像データ11によって表される画像が対応する被写体種類であることの確からしさを規定する確信度を算出する。すなわち,処理対象の画像データによって表される画像について,「人物顔」,「海中」,「高彩度」,「夕景」,「夜景」,「青空」および「ハイキー」の7つの被写体種類のそれぞれに対応する7つの確信度が算出される(確信度が「0」であることも含む)。   The identification devices corresponding to each of the other subject types “person face”, “underwater”, “high saturation”, “night view”, “blue sky”, and “high key” also store learning data, and based on the learning data, A certainty factor that defines the certainty that the image represented by the image data 11 to be processed is the corresponding subject type is calculated. That is, the image represented by the image data to be processed is assigned to each of the seven subject types of “person face”, “underwater”, “high saturation”, “evening scene”, “night scene”, “blue sky”, and “high key”. Seven corresponding degrees of confidence are calculated (including that the degree of confidence is “0”).

(2)ライティング種類別確信度算出機能2
ライティング種類別確信度算出機能2も,被写体種類別確信度算出機能1と同様に,あらかじめ定められた複数のライティング種類のそれぞれに対応する複数の識別装置によって構成することができる。この実施例では,ライティング種類別確信度算出機能2は,「逆光」,「近接ストロボ」および「タングステン」のそれぞれに対応する3つの識別装置を含む。3つの識別装置のそれぞれは,上述した被写体種類についての識別装置と同様に,学習データを記憶している。学習データに基づいて,処理対象の画像データ11によって表される画像について,「逆光」,「近接ストロボ」および「タングステン」のそれぞれについての確信度が算出される(確信度が「0」であることも含む)。
(2) Certainty calculation function 2 by writing type
Like the subject type certainty factor calculation function 1, the writing type certainty factor calculation function 2 can also be configured by a plurality of identification devices corresponding to a plurality of predetermined lighting types. In this embodiment, the writing type certainty factor calculation function 2 includes three identification devices corresponding to “backlight”, “proximity strobe”, and “tungsten”, respectively. Each of the three identification devices stores learning data in the same manner as the identification device for the subject type described above. Based on the learning data, the certainty factor for each of “backlight”, “proximity strobe” and “tungsten” is calculated for the image represented by the image data 11 to be processed (the certainty factor is “0”). Including that).

(3)夕景/タングステン確信度再算出機能3
夕景/タングステン確信度再算出機能3は,画像データ11に基づいて算出された被写体種類「夕景」の確信度およびライティング種類「タングステン」の確信度の精度を上げるため処理を行う。
(3) Evening scene / tungsten confidence recalculation function 3
The sunset / tungsten certainty recalculation function 3 performs processing to increase the accuracy of the certainty of the subject type “evening scene” and the certainty of the lighting type “tungsten” calculated based on the image data 11.

画像ファイル10には,画像データとともにタグ情報12が含まれている。このタグ情報12は,たとえば,「デジタルスチルカメラ用画像ファイルフォーマット規格」(以下,Exif規格という)に準拠したものである。Exif規格では,バージョンに関するタグ,画像データの特性に関するタグ,構造に関するタグ,ユーザ情報に関するタグ,関連ファイルに関するタグ,日時に関するタグ,撮影条件に関するタグなどが規定されている。これらのタグのうち,夕景/タングステン確信度再算出機能3における処理では,撮影条件に関するタグが利用される。   The image file 10 includes tag information 12 together with image data. This tag information 12 is, for example, compliant with the “digital still camera image file format standard” (hereinafter referred to as the Exif standard). In the Exif standard, a tag related to version, a tag related to image data characteristics, a tag related to structure, a tag related to user information, a tag related to related files, a tag related to date and time, a tag related to shooting conditions, and the like are defined. Among these tags, in the processing in the evening scene / tungsten certainty recalculation function 3, a tag related to the shooting condition is used.

図4は,Exif規格において規定されている撮影条件に関するタグ情報に含まれる情報の内容を示している。   FIG. 4 shows the contents of the information included in the tag information related to the shooting conditions defined in the Exif standard.

Exif規格は,規格に定められているすべての情報を,画像ファイルに記録することを定めるものではない。このため,画像ファイルの取得に用いられたディジタル・カメラの種類(メーカ,機種の相違)によって,画像ファイル中のタグ情報に記録される情報内容は異なる。夕景/タングステン確信度再算出機能3は,処理対象の画像ファイル10にタグ情報12が含まれていることを前提としつつ,かつそのタグ情報12は様々な内容をもつものが存在することを前提として,以下に説明するように動作する。   The Exif standard does not stipulate that all information specified in the standard is recorded in an image file. For this reason, the information content recorded in the tag information in the image file differs depending on the type of digital camera (manufacturer, model) used to acquire the image file. The sunset / tungsten certainty recalculation function 3 assumes that the tag information 12 is included in the image file 10 to be processed, and that the tag information 12 has various contents. Operates as described below.

図5,図6および図7は,夕景/タングステン確信度再算出機能3における処理の流れを示すフローチャートである。   5, FIG. 6 and FIG. 7 are flowcharts showing the flow of processing in the evening scene / tungsten certainty recalculation function 3.

夕景/タングステン確信度再算出機能3では,まず,タグ情報12を利用して,処理対象の画像ファイル10に含まれる画像データ11によって表される画像が,夕景画像である確率(以下,夕景確率)と,タングステン画像である確率(以下,タングステン確率という)を算出する(図5,図6)。なお,夕景/タングステン確信度再算出機能3は,処理対象の画像ファイルに含まれる画像データ11によって表される画像が,夕景画像またはタングステン画像のいずれであるか(いずれである可能性が高いかを表す確率)を求めるものであるから,夕景確率とタングステン確率を合計すると「1」(100%)になる。   In the sunset / tungsten certainty recalculation function 3, first, the probability that the image represented by the image data 11 included in the image file 10 to be processed is an evening scene image using the tag information 12 (hereinafter, sunset scene probability). ) And the probability of being a tungsten image (hereinafter referred to as tungsten probability) is calculated (FIGS. 5 and 6). The evening scene / tungsten certainty recalculation function 3 determines whether the image represented by the image data 11 included in the image file to be processed is an evening scene image or a tungsten image (which is likely to be) Therefore, the sum of the evening scene probability and the tungsten probability is “1” (100%).

後述する説明において明らかになるが,夕景/タングステン確信度再算出機能3は,「フラッシュ情報(フラッシュのオン/オフ情報)」と「被写体輝度値」の2つの情報を利用する。これらの2つの情報は,タグ情報12に格納されている割合が高く,夕景画像とタングステン画像の区別(識別)に有効であり,撮影に用いられるカメラの性能や設定に影響されにくいからである。   As will be apparent from the description below, the sunset / tungsten certainty recalculation function 3 uses two pieces of information: “flash information (flash on / off information)” and “subject luminance value”. This is because these two pieces of information are stored in the tag information 12 at a high rate, are effective in distinguishing (identifying) the sunset scene image from the tungsten image, and are not easily affected by the performance and settings of the camera used for shooting. .

図5を参照して,はじめに,処理対象の画像ファイル10からタグ情報12が読み出される(ステップ21)。   Referring to FIG. 5, first, tag information 12 is read from image file 10 to be processed (step 21).

タグ情報12中に,フラッシュ情報が格納されているかどうかが判断される(ステップ22)。   It is determined whether flash information is stored in the tag information 12 (step 22).

フラッシュ情報が格納されていない場合(ステップ22でNO),夕景確率とタングステン確率は,いずれも0.5とされる(ステップ34)。この場合,後述するように,画像データ11に基づいて算出された夕景確信度およびタングステン確信度は,そのまま(被写体種類別確信度算出機能1において算出された確信度と同値が)出力される。フラッシュがオンまたはオフであることが不明のまま被写体輝度値を算出して夕景確率およびタングステン確率を算出しても,信頼性の著しく低い夕景確率およびタングステン確率が算出されてしまうことを考慮したものである。   When flash information is not stored (NO in step 22), both the evening scene probability and the tungsten probability are set to 0.5 (step 34). In this case, as will be described later, the evening scene certainty and the tungsten certainty calculated based on the image data 11 are output as they are (the same value as the certainty calculated in the subject type certainty calculation function 1). Considering that even if the luminance value of the subject is calculated and the sunset probability and tungsten probability are calculated while it is unknown whether the flash is on or off, the sunset probability and tungsten probability are extremely low reliability. It is.

フラッシュ情報(オン/オフ情報)が格納されている場合(ステップ22でYES),タグ情報12中に被写体輝度値情報BVが格納されているかどうかが判断される(ステップ23)。   If flash information (on / off information) is stored (YES in step 22), it is determined whether or not the subject luminance value information BV is stored in the tag information 12 (step 23).

タグ情報12中に被写体輝度値情報BVが格納されていない場合(ステップ23でNO),タグ情報12中に格納されている他の情報に基づいて,被写体輝度値を算出することができるかどうかが判断される(ステップ28,図6)(詳細は後述する)。タグ情報12中に格納されている他の情報に基づいて被写体輝度値を算出することができない場合にも,夕景確率とタングステン確率は,いずれも0.5とされる(ステップ29でNO,ステップ34)。   If the subject brightness value information BV is not stored in the tag information 12 (NO in step 23), whether the subject brightness value can be calculated based on other information stored in the tag information 12 Is determined (step 28, FIG. 6) (details will be described later). Even when the subject luminance value cannot be calculated based on other information stored in the tag information 12, both the evening scene probability and the tungsten probability are set to 0.5 (NO in step 29, step 34).

被写体輝度情報BVが格納されている場合(ステップ23でYES),記録されている被写体輝度値BVに基づいて,夕景確率およびタングステン確率が算出される。ここで,被写体輝度値BVに基づいて算出される夕景確率およびタングステン確率は,フラッシュ情報がオン情報であるか,オフ情報であるかによって異なるものとされる(ステップ24)。   When the subject brightness information BV is stored (YES in step 23), the evening scene probability and the tungsten probability are calculated based on the recorded subject brightness value BV. Here, the evening scene probability and the tungsten probability calculated based on the subject luminance value BV are different depending on whether the flash information is on-information or off-information (step 24).

図8(A)は,フラッシュ情報がオン情報であるときの被写体輝度値と夕景確率(0〜1までの範囲)との関係を示すグラフである。図8(B)は,フラッシュ情報がオン情報であるときの被写体輝度値とタングステン確率(0〜1までの範囲)との関係を示すグラフである。図8(A)および図8(B)に示すグラフを表すデータ(テーブル)はあらかじめ記憶装置に記憶される(このことは,後述する図9(A),図9(B),図10(A),図10(B)に示すグラフについても同様である。)。   FIG. 8A is a graph showing the relationship between the subject luminance value and the sunset scene probability (range from 0 to 1) when the flash information is on-information. FIG. 8B is a graph showing the relationship between the subject luminance value and the tungsten probability (range from 0 to 1) when the flash information is on-information. Data (tables) representing the graphs shown in FIGS. 8A and 8B are stored in advance in a storage device (this will be described later with reference to FIGS. 9A, 9B, and 10). The same applies to the graphs shown in A) and FIG. 10 (B).

図8(A)に示すフラッシュ情報がオン情報であるときの被写体輝度値と夕景確率との関係および図8(B)に示すフラッシュ情報がオン情報であるときの被写体輝度値とタングステン確率との関係は,学習処理によって得られたものである。たとえば,タグ情報にフラッシュ・オン情報が格納され,かつ被写体輝度値が格納されている多数の夕景サンプル画像データおよび多数のタングステン・サンプル画像データが用意される。これらのサンプル画像データが用いられて,被写体輝度値に関するヒストグラムが,夕景画像およびタングステン画像のそれぞれについて算出される。ある被写体輝度値における夕景画像数およびタングテン画像数を用いて,夕景画像数を夕景画像数およびタングステン画像数の和で除算することによって,その被写体輝度値についての夕景確率が得られる。タングステン画像数を夕景画像数およびタングステン画像数の和で除算すれば,その被写体輝度値についてのタングステン確率が得られる。   The relationship between the subject luminance value and the evening scene probability when the flash information shown in FIG. 8A is on-information, and the subject luminance value and the tungsten probability when the flash information shown in FIG. 8B is on-information. The relationship is obtained by the learning process. For example, a lot of sunset sample image data and a lot of tungsten sample image data in which flash-on information is stored in the tag information and the subject luminance value is stored are prepared. Using these sample image data, a histogram relating to the subject luminance value is calculated for each of the sunset scene image and the tungsten image. Using the number of sunset scene images and the number of tongue images at a certain subject brightness value, the sunset scene probability for the subject brightness value is obtained by dividing the number of sunset scene images by the sum of the number of sunset scene images and the number of tungsten images. If the number of tungsten images is divided by the sum of the number of sunset scene images and the number of tungsten images, the tungsten probability for the subject luminance value can be obtained.

図8(A)に示すフラッシュ情報がオン情報であるときの被写体輝度値と夕景確率の関係(PON(夕景|BV))をまず求め,図8(B)に示すフラッシュ情報がオン情報であるときの被写体輝度値とタングステン確率との関係(PON(タングステン|BV))を,次式によって求めるようにしてもよい。 When the flash information shown in FIG. 8A is on-information, the relationship between the subject luminance value and the evening scene probability (P ON (evening scene | BV)) is first obtained, and the flash information shown in FIG. The relationship (P ON (tungsten | BV)) between the subject luminance value and the tungsten probability at a certain time may be obtained by the following equation.

ON(タングステン|BV)=1−PON(夕景|BV) ・・・式1 P ON (Tungsten | BV) = 1−P ON (Evening scene | BV) Formula 1

もちろん,フラッシュ情報がオン情報であるときの被写体輝度値とタングステン確率との関係(PON(タングステン|BV))をまず求め,求められたフラッシュ情報がオン情報であるときの被写体輝度値とタングステン確率との関係に基づいて,フラッシュ情報がオン情報であるときの被写体輝度値と夕景確率との関係(PON(夕景|BV))を求めてもよい(式1と同様)。 Of course, the relationship (P ON (tungsten | BV)) between the subject luminance value and the tungsten probability when the flash information is on-information is first obtained, and the subject luminance value and tungsten when the obtained flash information is on-information. Based on the relationship with the probability, the relationship (P ON (evening scene | BV)) between the subject brightness value and the evening scene probability when the flash information is on-information may be obtained (similar to Equation 1).

図9(A)は,フラッシュ情報がオフ情報であるときの被写体輝度値と夕景確率との関係を示すグラフであり,図9(B)はフラッシュ情報がオフ情報であるときの被写体輝度値とタングステン確率との関係を示すグラフである。   FIG. 9A is a graph showing the relationship between the subject luminance value when the flash information is off information and the evening scene probability, and FIG. 9B shows the subject luminance value when the flash information is off information. It is a graph which shows the relationship with a tungsten probability.

図9(A),図9(B)に示すフラッシュ情報がオフ情報であるときの被写体輝度値と夕景確率との関係,被写体輝度値とタングステン確率との関係も,上述と同様に,学習処理によって得られたものである。図9(B)に示すフラッシュ情報がオフ情報であるときの被写体輝度値とタングステン確率との関係(POFF(タングステン|BV))についても,フラッシュ情報がオフ情報であるときの被写体輝度値と夕景確率との関係(POFF(夕景|BV))を利用して,次式によって求めることができる。 The relationship between the subject luminance value and the sunset probability and the relationship between the subject luminance value and the tungsten probability when the flash information shown in FIG. 9A and FIG. It was obtained by. The relationship between the subject luminance value when the flash information shown in FIG. 9B is off information and the tungsten probability (P OFF (tungsten | BV)) is similar to the subject luminance value when the flash information is off information. Using the relationship with the evening scene probability (P OFF (evening scene | BV)), it can be obtained by the following equation.

OFF(タングステン|BV)=1−POFF(夕景|BV) ・・・式2 P OFF (Tungsten | BV) = 1−P OFF (Evening scene | BV) Expression 2

フラッシュ情報がオフ情報であるときの被写体輝度値とタングステン確率との関係(POFF(タングステン|BV))をまず求め,求められたフラッシュ情報がオフ情報であるときの被写体輝度値とタングステン確率との関係に基づいて,フラッシュ情報がオフ情報であるときの被写体輝度値と夕景確率との関係(POFF(夕景|BV))を求めてもよい(式2と同様)。 First, the relationship between the subject luminance value and the tungsten probability (P OFF (tungsten | BV)) when the flash information is off information is obtained, and the subject luminance value and the tungsten probability when the obtained flash information is off information. Based on this relationship, the relationship (P OFF (evening scene | BV)) between the subject luminance value and the evening scene probability when the flash information is off information may be obtained (similar to Expression 2).

以上のように,フラッシュが発光されて撮影された画像データである場合には,図8(A)および図8(B)のグラフに基づいて,タグ情報12中の被写体輝度値BVに基づいて,夕景確率およびタングステン確率が算出され(ステップ25),フラッシュが発光されずに撮影された画像データである場合には,図9(A)および図9(B)のグラフに基づいて,タグ情報12中の被写体輝度値BVに基づいて,夕景確率およびタングステン確率が算出される(ステップ26)。   As described above, in the case of image data captured by flash emission, based on the subject luminance value BV in the tag information 12 based on the graphs of FIGS. 8A and 8B. , Sunset scene probability and tungsten probability are calculated (step 25), and in the case of image data taken without flash emission, tag information is based on the graphs of FIG. 9 (A) and FIG. 9 (B). Based on the subject brightness value BV in 12, the evening scene probability and the tungsten probability are calculated (step 26).

図7を参照して,算出された夕景確率およびタングステン確率に基づいて,夕景確信度に乗算されるべき重み係数βと,タングステン確信度に乗算されるべき重み係数γが算出される(ステップ61)。   Referring to FIG. 7, based on the calculated evening scene probability and tungsten probability, a weighting coefficient β to be multiplied by the evening scene certainty factor and a weighting coefficient γ to be multiplied by the tungsten certainty factor are calculated (step 61). ).

図11は夕景確率と重み係数βとの関係を,図12はタングステン確率と重み係数γとの関係を示すグラフである。   FIG. 11 is a graph showing the relationship between the evening scene probability and the weighting factor β, and FIG. 12 is a graph showing the relationship between the tungsten probability and the weighting factor γ.

図11および図12に示すグラフにしたがって算出された重み係数βおよび重み係数γが用いられて,次式にしたがって夕景確信度およびタングステン確信度が修正される(ステップ62)。   The weighting factor β and the weighting factor γ calculated according to the graphs shown in FIGS. 11 and 12 are used, and the evening scene certainty factor and the tungsten certainty factor are corrected according to the following equations (step 62).

修正後の夕景確信度=β・夕景確信度
修正後のタングステン確信度=γ・タングステン確信度 ・・・式3
Corrected evening scene certainty = β · Evening scene certainty Modified tungsten certainty = γ · Tungsten certainty ・ ・ ・ Equation 3

図11,図12および式3から明らかなように,修正後の夕景確信度およびタングステン確信度は,タグ情報12に基づいて算出された夕景確率およびタングステン確率がいずれも0.5である場合には,被写体種類別確信度算出機能1において算出された夕景確信度およびタングステン確信度と同値となる。タグ情報12に基づいて算出された夕景確率およびタングステン確率がいずれかが0.5よりも大きい(または小さい)場合には,確率が小さい方(夕景確信度またはタングステン確信度のいずれかである)が,修正前の値に比べて小さくされる。修正された夕景確信度およびタングステン確信度,または夕景確信度および修正されたタングステン確信度が出力される(ステップ63)。   As is clear from FIGS. 11, 12, and Equation 3, the corrected evening scene certainty and tungsten certainty are obtained when both the evening scene probability and the tungsten probability calculated based on the tag information 12 are 0.5. Is the same as the evening scene certainty factor and the tungsten certainty factor calculated by the subject type certainty factor calculation function 1. If either of the evening scene probability and the tungsten probability calculated based on the tag information 12 is larger (or smaller) than 0.5, the probability is smaller (either the evening scene confidence level or the tungsten certainty level). Is smaller than the value before correction. The corrected evening scene certainty and tungsten certainty, or the evening scene certainty and the modified tungsten certainty are output (step 63).

実際には夕景画像であるにも関わらず,タングステン確信度として大きい値が得られた場合にタングステン確信度が小さくされ,逆にタングステン画像であるにも関わらず,夕景確信度として大きい値が得られた場合には夕景確信度が小さくされる。確信度は,その後に行われる画像補正処理の適用の程度(度合)を定めるので,確信度が小さくされることにより,夕景画像に対する補正処理またはタングステン画像に対する補正処理のいずれかの補正効果が弱められる。不適切な画像補正処理が行われることを防止することができる。   In fact, even if the image is a sunset image, the tungsten certainty factor is decreased when a large value is obtained as the tungsten certainty factor. Conversely, a large value is obtained as the evening scene certainty factor despite being a tungsten image. If so, the evening scene certainty is reduced. The certainty level determines the degree (degree) of application of the image correction processing that will be performed later, so that the correction effect of either the correction process for the sunset image or the correction process for the tungsten image is weakened by reducing the certainty level. It is done. Inappropriate image correction processing can be prevented.

被写体輝度値の計算可能性の判断(ステップ28,図6)について説明する。   The determination of the subject luminance value calculation possibility (step 28, FIG. 6) will be described.

被写体輝度値は,次式によって,計算可能である。   The subject brightness value can be calculated by the following equation.

CalBV=TV+AV+EBV-SV ・・・式4   CalBV = TV + AV + EBV-SV ・ ・ ・ Formula 4

式4において,CalBVが計算によって算出される被写体輝度値,TVがシャッタースピード,AVが絞り値,SVがISO感度,EBVが露光補正値である。これらの値が得ることができれば,式4にしたがって被写体輝度値を計算によって求めることができる。   In Equation 4, CalBV is the subject brightness value calculated by calculation, TV is the shutter speed, AV is the aperture value, SV is the ISO sensitivity, and EBV is the exposure correction value. If these values can be obtained, the subject luminance value can be obtained by calculation according to Equation 4.

(i)被写体輝度値の算出式(式4)の成立性の可否チェック(ステップ41,42,47,48)
上述した式4は,撮影時における露出設定(絞り値の設定およびシャッタスピードの設定を意味する)がマニュアル設定ではなく,オート設定であることを前提とする。撮影時における露出設定がマニュアル設定であったか,オート設定であったかは,タグ情報12中の露出プログラム情報または露出モード情報によって検知することができる。
(I) Check whether the formula for calculating the subject luminance value (Formula 4) is feasible (Steps 41, 42, 47, 48)
Expression 4 described above assumes that the exposure setting (which means aperture value setting and shutter speed setting) at the time of shooting is not manual setting but automatic setting. Whether the exposure setting at the time of shooting is a manual setting or an auto setting can be detected by the exposure program information or the exposure mode information in the tag information 12.

タグ情報12中に露出プログラム情報または露出モード情報のいずれかが含まれているかどうかの判断(ステップ41,47)と,含まれている場合にはマニュアル設定によって撮影が行われたかどうかが判断される(ステップ42,48)。   It is determined whether or not the exposure information or exposure mode information is included in the tag information 12 (steps 41 and 47), and if it is included, it is determined whether shooting has been performed by manual setting. (Steps 42 and 48).

露出プログラム情報は,Exif規格において,0〜8までの9つの数字によって規定される。タグ情報12が露出プログラム情報を含んでおり,かつ露出プログラム情報として「1」が格納されている場合,画像ファイル10は,マニュアルによって露出設定されて得られたことを示す。この場合,上記式4に基づいて被写体輝度値を算出することができない(式4が前提とする関係が成り立たない)。被写体輝度値CalBVの計算は不可能である旨を表すデータが出力される(ステップ41でYES,ステップ42でNO,ステップ52)。   The exposure program information is defined by nine numbers from 0 to 8 in the Exif standard. When the tag information 12 includes exposure program information and “1” is stored as the exposure program information, it indicates that the image file 10 has been obtained by setting the exposure manually. In this case, the subject luminance value cannot be calculated based on the above equation 4 (the relationship premised on equation 4 does not hold). Data indicating that the subject brightness value CalBV cannot be calculated is output (YES in step 41, NO in step 42, step 52).

タグ情報12に露出プログラム情報が含まれていない場合,タグ情報12中に露出モード情報が格納されているかどうかが判断される(ステップ41でNO,ステップ47)。露出モード情報は,Exif規格において,0,1または2の3つの数字によって規定される。露出モード情報として「1」が格納されている場合,画像ファイル10はマニュアルによって露出設定されて得られたものであることを示す。この場合にも,被写体輝度値CalBVの計算は不可能である旨を表すデータが出力される(ステップ47でYES,ステップ48でNO,ステップ52)。   If the exposure program information is not included in the tag information 12, it is determined whether exposure mode information is stored in the tag information 12 (NO in step 41, step 47). The exposure mode information is defined by three numbers 0, 1 or 2 in the Exif standard. When “1” is stored as the exposure mode information, it indicates that the image file 10 is obtained by manually setting the exposure. Also in this case, data indicating that the subject luminance value CalBV cannot be calculated is output (YES in step 47, NO in step 48, step 52).

露出プログラム情報および露出モード情報の両方がタグ情報12中に含まれていない場合,上記式4が成立するかどうかが不明であるので,この場合も,被写体輝度値CalBVの計算は不可能である旨を表すデータが出力される(ステップ47でNO,ステップ52)。   If both the exposure program information and the exposure mode information are not included in the tag information 12, it is unclear whether or not the above equation 4 is satisfied, and in this case as well, the subject luminance value CalBV cannot be calculated. Data indicating that is output (NO in step 47, step 52).

露出プログラム情報または露出モード情報にもとづいて,露出設定がマニュアル設定でないことが判断された場合(ステップ42でYESまたはステップ48でYES),被写体輝度値CalBVの算出に必要とされるシャッタースピード(TV),絞り値(AV),ISO感度(SV),露光補正値(EBV)のそれぞれが取得(算出)可能であるかどうかの判断に進む。   If it is determined that the exposure setting is not a manual setting based on the exposure program information or exposure mode information (YES in step 42 or YES in step 48), the shutter speed required for calculating the subject luminance value CalBV (TV ), Aperture value (AV), ISO sensitivity (SV), and exposure correction value (EBV) can be determined.

(ii)シャッタスピード(TV)の取得の可否チェック(ステップ43,49)
シャッタスピード情報がタグ情報12に格納されているか,またはタグ情報12中に露出時間情報が格納されている場合,シャッタスピード(TV)の取得が可能である(シャッタスピード(TV)=−log2(露出時間)の関係式が成立つ)。シャッタスピード情報および露出時間情報の両方がタグ情報12に格納されていない場合,被写体輝度値CalBVの計算は不可能である旨を表すデータが出力される(ステップ43でNO,ステップ49でNO,ステップ52)。タグ情報12にシャッタスピード情報が格納されているか,そうでなくとも露出時間情報が格納されている場合には,次の処理に進む(ステップ43でYES,またはステップ49でYES)。
(ii) Check whether shutter speed (TV) can be acquired (steps 43 and 49)
When the shutter speed information is stored in the tag information 12 or the exposure time information is stored in the tag information 12, the shutter speed (TV) can be acquired (shutter speed (TV) = − log 2 (Exposure time) is established). If neither the shutter speed information nor the exposure time information is stored in the tag information 12, data indicating that the subject brightness value CalBV cannot be calculated is output (NO in step 43, NO in step 49, Step 52). If the shutter speed information is stored in the tag information 12 or the exposure time information is stored in other cases, the process proceeds to the next process (YES in step 43 or YES in step 49).

(iii)絞り値(AV)の取得の可否チェック(ステップ44,50)
タグ情報12に絞り値情報が格納されているか,またはタグ情報12中にFナンバーが格納されていれば,絞り値(AV)の取得が可能である(絞り値(AV)=2log2(Fナンバー)の関係式が成立つ)。絞り値情報およびFナンバー情報の両方がタグ情報12に格納されていない場合には,被写体輝度値CalBVの計算は不可能である旨を表すデータが出力される(ステップ44でNO,ステップ50でNO,ステップ52)。タグ情報12中に絞り値情報が格納されているか,そうでなくともFナンバー情報が格納されている場合には,次の処理に進む(ステップ44でYES,またはステップ50でYES)。
(iii) Checking whether or not aperture value (AV) can be acquired (steps 44 and 50)
If the aperture information is stored in the tag information 12 or the F number is stored in the tag information 12, the aperture value (AV) can be obtained (aperture value (AV) = 2log 2 (F Number))). If neither aperture value information nor F number information is stored in the tag information 12, data indicating that the subject luminance value CalBV cannot be calculated is output (NO in step 44, and in step 50). NO, step 52). If the aperture value information is stored in the tag information 12 or if the F number information is stored, the process proceeds to the next process (YES in step 44 or YES in step 50).

(iv)ISO感度(SV)の取得の可否チェック(ステップ45)
ISO感度は,ISOスピードレートに基づいて算出することができる(ISO感度=log2(ISOスピードレート/3.125)の関係式が成立つ)。このため,タグ情報12中にISOスピードレート情報が格納されているかどうかが判断される(ステップ45)。ISOスピードレート情報がタグ情報12中に格納されていない場合には,被写体輝度値CalBVの計算は不可能である旨を表すデータが出力される(ステップ45でNO,ステップ52)。ISOスピードレート情報がタグ情報12に格納されている場合,次の処理に進む(ステップ45でYES)。
(Iv) Check whether ISO sensitivity (SV) can be acquired (step 45)
The ISO sensitivity can be calculated based on the ISO speed rate (the relational expression ISO sensitivity = log 2 (ISO speed rate / 3.125) is established). Therefore, it is determined whether ISO speed rate information is stored in the tag information 12 (step 45). If the ISO speed rate information is not stored in the tag information 12, data indicating that the subject brightness value CalBV cannot be calculated is output (NO in step 45, step 52). If the ISO speed rate information is stored in the tag information 12, the process proceeds to the next process (YES in step 45).

(v)露光補正値情報(EBV)の取得の可否チェック(ステップ46)
タグ情報12中に,露光補正値情報(EBV)が格納されているかどうかが判断される(ステップ46)。タグ情報12中に露光補正値情報(EBV)が格納されていない場合には,被写体輝度値CalBVの計算は不可能である旨を表すデータが出力される(ステップ46でNO,ステップ52)。
(V) Checking whether exposure correction value information (EBV) can be acquired (step 46)
It is determined whether exposure correction value information (EBV) is stored in the tag information 12 (step 46). If the exposure correction value information (EBV) is not stored in the tag information 12, data indicating that the subject brightness value CalBV cannot be calculated is output (NO in step 46, step 52).

露出設定がマニュアル設定でなく,かつシャッタースピード(TV),絞り値(AV),ISO感度(SV)および露光補正値(EBV)が取得可能である場合(ステップ46でYES),上述した式4に基づいて,被写体輝度値CalBVの計算が可能である。この場合に,被写体輝度値CalBVの計算が可能である旨を表すデータが出力される(ステップ51)。   If the exposure setting is not a manual setting and the shutter speed (TV), aperture value (AV), ISO sensitivity (SV), and exposure correction value (EBV) can be acquired (YES in step 46), the above equation 4 Based on the above, the subject brightness value CalBV can be calculated. In this case, data indicating that the subject luminance value CalBV can be calculated is output (step 51).

図5に戻って,被写体輝度値CalBVの計算が不可能である場合には,夕景確率とタングステン確率は,いずれも0.5とされる(ステップ29でNO,ステップ34)。上述したように,画像データ11に基づいて算出された夕景確信度およびタングステン確信度は,そのまま(被写体種類別確信度算出機能1において算出された確信度と同値が)出力される。   Returning to FIG. 5, if the subject brightness value CalBV cannot be calculated, both the evening scene probability and the tungsten probability are set to 0.5 (NO in step 29, step 34). As described above, the evening scene certainty and the tungsten certainty calculated based on the image data 11 are output as they are (same values as the certainty calculated in the subject type certainty calculation function 1).

被写体輝度値CalBVの計算が可能である場合には,上述した式4に基づいて,被写体輝度値CalBVが算出される(ステップ29でYES,ステップ30)。計算によって得られた被写体輝度値CalBVに基づいて,夕景確率およびタングステン確率が算出される。計算によって得られた被写体輝度値CalBVに基づいて算出される夕景確率およびタングステン確率も,フラッシュ情報がオン情報であるか,オフ情報であるかによって異なるものとされる(ステップ31)。   If the subject luminance value CalBV can be calculated, the subject luminance value CalBV is calculated based on the above-described equation 4 (YES in step 29, step 30). Based on the subject brightness value CalBV obtained by the calculation, the evening scene probability and the tungsten probability are calculated. The evening scene probability and tungsten probability calculated based on the subject brightness value CalBV obtained by the calculation are also different depending on whether the flash information is on-information or off-information (step 31).

図10(A)は,フラッシュ情報がオン情報であるときの被写体輝度値(計算値)と夕景確率との関係を示すグラフである。図10(B)は,フラッシュ情報がオン情報であるときの被写体輝度値(計算値)とタングステン確率との関係を示すグラフである。図10(A)および図10(B)に示す被写体輝度値(計算値)と夕景確率との関係も,学習処理によって得られたものである。   FIG. 10A is a graph showing the relationship between the subject luminance value (calculated value) and the evening scene probability when the flash information is on-information. FIG. 10B is a graph showing the relationship between the subject luminance value (calculated value) and the tungsten probability when the flash information is on-information. The relationship between the subject luminance value (calculated value) and the evening scene probability shown in FIGS. 10A and 10B is also obtained by the learning process.

フラッシュ情報がオフ情報である場合,計算によって得られた被写体輝度値CalBVと夕景確率の関係は,タグ情報12中に格納されている被写体輝度値BVと夕景確率とほぼ等しく,かつ,計算によって得られた被写体輝度値CalBVとタングステン確率の関係は,タグ情報12中に格納されている被写体輝度値BVとタングステン確率との関係にほぼ等しい(学習処理を行ったところ,同じ特性が得られたものである)。このため,フラッシュ情報がオフ情報である場合には,計算によって得られた被写体輝度値CalBVがタグ情報12に格納されている被写体輝度値BVとして扱われる(ステップ31でNO,ステップ32)。図9(A),図9(B)に示すグラフによって,夕景確率とタングステン確率が算出される(ステップ26)。   When the flash information is off information, the relationship between the subject brightness value CalBV and the sunset scene probability obtained by the calculation is almost equal to the subject brightness value BV and the sunset scene probability stored in the tag information 12, and obtained by the calculation. The relationship between the obtained subject luminance value CalBV and the tungsten probability is almost equal to the relationship between the subject luminance value BV and the tungsten probability stored in the tag information 12 (the same characteristics were obtained when the learning process was performed). Is). Therefore, when the flash information is off information, the subject brightness value CalBV obtained by the calculation is handled as the subject brightness value BV stored in the tag information 12 (NO in step 31 and step 32). The evening scene probability and the tungsten probability are calculated from the graphs shown in FIGS. 9A and 9B (step 26).

算出された夕景確率およびタングステン確率に基づいて,夕景確信度に乗算されるべき重み係数βおよびタングステン確信度に乗算されるべき重み係数γが算出され,重み係数βおよびγが用いられて夕景確信度またはタングステン確信度のいずれかが修正されるのは,上述した通りである。   Based on the calculated evening scene probability and tungsten probability, the weighting coefficient β to be multiplied by the evening scene certainty and the weighting coefficient γ to be multiplied by the tungsten certainty are calculated, and the evening scene belief is calculated using the weighting coefficients β and γ. As described above, either the degree of tungsten or the confidence of tungsten is corrected.

(4)被写体種類「検出対象外」確信度算出機能4
被写体種類別確信度算出機能1において算出された人物顔,海中,高彩度,夜景,青空およびハイキーについての確信度と,ライティング種類別確信度算出機能2において算出された逆光および近接ストロボについての確信度と,夕景/タングステン確信度再算出機能3において修正された夕景確信度およびタングステン確信度が用いられて,被写体種類「検出対象外」についての確信度が算出される。被写体種類「検出対象外」の確信度Potは,次式によって算出される。
(4) Subject type “not subject to detection” certainty factor calculation function 4
Certainty for human face, underwater, high saturation, night view, blue sky and high key calculated by subject type certainty factor calculation function 1, and certainty factor for backlight and proximity strobe calculated by lighting type certainty factor calculation function 2 Then, the evening scene / tungsten certainty recalculation function 3 corrects the evening scene certainty and tungsten certainty to calculate the certainty for the subject type “not detected”. The certainty factor Pot of the subject type “not subject to detection” is calculated by the following equation.

被写体種類「検出対象外」の確信度Pot=
(1−人物顔確信度)
*(1−青空確信度*(1−タングステン確信度)*(1−逆光確信度))
*(1−夕景確信度*(1−タングステン確信度))
*(1−夜景確信度)*(1−タングステン確信度))
*(1−高彩度確信度)*(1−タングステン確信度))
*(1−海中確信度)*(1−タングステン確信度))
*(1−ハイキー確信度)*(1−タングステン確信度)*(1−逆光確信度))
・・・式5
Confidence level Pot =
(1-person face certainty)
* (1-Blue sky certainty * (1-Tungsten certainty) * (1-Backlight certainty))
* (1-Evening confidence * (1-Tungsten certainty))
* (1-Night view certainty) * (1-Tungsten certainty))
* (1-High chroma certainty) * (1-Tungsten certainty))
* (1-Underwater certainty) * (1-Tungsten certainty))
* (1-high key certainty) * (1-tungsten certainty) * (1-backlight certainty))
... Formula 5

式5において,夕景確信度およびタングステン確信度は,夕景/タングステン確信度再算出機能3において修正された場合には,修正後の値が用いられる。   In Formula 5, when the evening scene certainty and the tungsten certainty are corrected by the evening scene / tungsten certainty recalculation function 3, the corrected values are used.

以上の処理によって得られた処理対象の画像ファイル10に含まれる画像データ11によって表される画像に対して,人物顔,海中,高彩度,夕景,夜景,青空,ハイキーおよび検出対象外についての確信度,ならびに逆光,近接ストロボおよびタングステンについての確信度が得られる。これらの確信度に基づいて,画像ファイル10に含まれる画像データ11に画像補正処理(ホワイトバランス補正,濃度補正等)が施される。上述したように,画像補正処理は被写体種類ごとおよびライティング種類ごとに設定されており,被写体種類ごとおよびライティング種類ごとに得られた確信度の大きさに基づいて,画像データ11によって表される画像に対応する補正処理が行われる(確信度が大きいほど補正効果が強められ,確信度が小さいほど補正効果が弱められる)。   Certainty of human face, underwater, high saturation, evening scene, night scene, blue sky, high key, and out of detection target for the image represented by the image data 11 included in the processing target image file 10 obtained by the above processing. , And certainty for backlighting, proximity strobe and tungsten. Based on these certainty factors, image correction processing (white balance correction, density correction, etc.) is performed on the image data 11 included in the image file 10. As described above, the image correction processing is set for each subject type and each lighting type, and the image represented by the image data 11 is based on the confidence level obtained for each subject type and each lighting type. (The correction effect is strengthened as the certainty factor increases, and the correction effect is weakened as the certainty factor is small).

このように,互いに類似する特徴を有する夕景画像およびタングステン画像については,画像データ11のみならずタグ情報12が利用されて確信度が算出される。上述したように,夕景画像であるにも関わらずにタングステン確信度として大きな値が算出された場合にはタングステン確信度が小さくされるので,タングステン画像のための補正処理の補正効果が弱められる。不適切な画像補正処理を防止する(少なくとも補正効果を弱める)ことができる。タングステン画像であるにもかかわらず夕景確信度として大きな値が算出された場合についても同様である。   As described above, for evening scene images and tungsten images having features similar to each other, not only the image data 11 but also the tag information 12 is used to calculate the certainty factor. As described above, when a large value is calculated as the tungsten certainty factor in spite of the sunset image, the tungsten certainty factor is reduced, so that the correction effect of the correction process for the tungsten image is weakened. Inappropriate image correction processing can be prevented (at least the correction effect can be weakened). The same applies to the case where a large value is calculated as the evening scene certainty in spite of the tungsten image.

図13は,夕景/タングステン確信度再算出機能3による処理(Exifタグ情報を利用した処理)を行った場合と,行わなかった場合の実験結果を示している。図13において,ハッチングで示す部分が誤検出を意味する。夕景/タングステン確信度再算出機能3によって誤検出を無くすことができた。   FIG. 13 shows experimental results when the processing (processing using Exif tag information) by the evening scene / tungsten certainty recalculation function 3 is performed and when it is not performed. In FIG. 13, hatched portions indicate erroneous detection. The false detection can be eliminated by the sunset scene / tungsten certainty recalculation function 3.

なお,上述した実施例では,夕景/タングステン確信度再算出機能3は,被写体種類別確信度算出機能1およびライティング種類別確信度算出機能2とともに常に動作しているが,被写体種類別確信度算出機能1によって得られた夕景確信度およびライティング種類別確信度算出機能2によって得られたタングステン確信度の少なくともいずれか一方が,所定の閾値(たとえば,0.5)以上である場合に動作させ,夕景確信度およびライティング確信度の両方が所定の閾値よりも小さい値である場合には,動作させないようにしてもよい。   In the embodiment described above, the evening scene / tungsten reliability recalculation function 3 always operates together with the subject type certainty factor calculation function 1 and the lighting type certainty factor calculation function 2, but the subject type certainty factor calculation. When at least one of the evening scene certainty obtained by the function 1 and the tungsten certainty obtained by the writing type certainty calculating function 2 is equal to or greater than a predetermined threshold (for example, 0.5), If both the evening scene certainty and the writing certainty are values smaller than a predetermined threshold value, the operation may not be performed.

画像判別装置の機能ブロック図を示す。The functional block diagram of an image discrimination device is shown. 学習データの生成の様子を示す。The state of learning data generation is shown. 被写体種類「夕景」についての学習データの一例を示す。An example of learning data about the subject type “evening scene” is shown. 撮影条件に関するタグ情報の内容を示す。The contents of the tag information related to the shooting conditions are shown. 夕景/タングステン確信度再算出機能における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the evening scene / tungsten certainty recalculation function. 夕景/タングステン確信度再算出機能における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the evening scene / tungsten certainty recalculation function. 夕景/タングステン確信度再算出機能における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the evening scene / tungsten reliability recalculation function. (A)はフラッシュ情報がオン情報であるときの被写体輝度値と夕景確率との関係を,(B)はフラッシュ情報がオン情報であるときの被写体輝度値とタングステン確率との関係を示す。(A) shows the relationship between the subject luminance value and the evening scene probability when the flash information is on-information, and (B) shows the relationship between the subject luminance value and the tungsten probability when the flash information is on-information. (A)はフラッシュ情報がオフ情報であるときの被写体輝度値と夕景確率との関係を示す,(B)はフラッシュ情報がオフ情報であるときの被写体輝度値とタングステン確率との関係を示す。(A) shows the relationship between the subject luminance value and the sunset scene probability when the flash information is off information, and (B) shows the relationship between the subject luminance value and the tungsten probability when the flash information is off information. (A)はフラッシュ情報がオン情報であるときの被写体輝度値(計算値)と夕景確率との関係を,(B)はフラッシュ情報がオン情報であるときの被写体輝度値(計算値)とタングステン確率との関係を示す。(A) shows the relationship between the subject luminance value (calculated value) and the evening scene probability when the flash information is on-information, and (B) shows the subject luminance value (calculated value) and tungsten when the flash information is on-information. The relationship with probability is shown. 夕景確率と重み係数βとの関係を示す。The relationship between the evening scene probability and the weighting factor β is shown. タングステン確率と重み係数γとの関係を示す。The relationship between tungsten probability and weighting coefficient γ is shown. 夕景/タングステン確信度再算出機能による処理(Exifタグを利用した処理)を行った場合と,行わなかった場合の実験結果を示す。The experiment results when the processing (processing using the Exif tag) with the sunset / tungsten confidence recalculation function is performed and when it is not performed are shown.

符号の説明Explanation of symbols

1 被写体種類別確信度算出機能
2 ライティング種類別確信度算出機能
3 タングステン確信度再算出機能
4 被写体種類「検出対象外」確信度算出機能
10 画像ファイル
11 画像データ
12 タグ情報
1 Subject type certainty factor calculation function 2 Lighting type certainty factor calculation function 3 Tungsten certainty factor recalculation function 4 Subject type “non-detection target” certainty factor calculation function
10 Image files
11 Image data
12 Tag information

Claims (7)

タグ情報および画像データを含む画像ファイルの入力を受ける画像ファイル受付手段,
上記画像ファイル受付手段によって受付けられた画像ファイルに含まれる画像データに基づいて,あらかじめ定められた複数の画像分類のそれぞれについて,上記画像データによって表される画像が,どの程度の確度でそれらの画像分類に属するかを表す確信度を算出する確信度算出手段,
上記画像ファイル受付手段によって受付けられた画像ファイルに含まれるタグ情報に基づいて,上記確信度算出手段によって算出された複数の確信度のうちの少なくとも一つの確信度についての信頼度を算出する信頼度算出手段,ならびに
上記信頼度算出手段によって算出された信頼度が所定値よりも低い場合に,そのような信頼度が得られた確信度を減少させる確信度修正手段,
を備えた画像識別装置。
Image file receiving means for receiving input of an image file including tag information and image data;
Based on the image data included in the image file received by the image file receiving means, for each of a plurality of predetermined image classifications, the degree of accuracy of the image represented by the image data A certainty factor calculating means for calculating a certainty factor indicating whether it belongs to a classification;
A reliability level for calculating a reliability level for at least one of the multiple reliability levels calculated by the reliability level calculation unit based on the tag information included in the image file received by the image file reception unit. Calculation means, and confidence correction means for reducing the confidence that such reliability is obtained when the reliability calculated by the reliability calculation means is lower than a predetermined value;
An image identification apparatus comprising:
上記確信度算出手段は,
上記画像データによって表される画像中に,あらかじめ定められた複数の被写体種類を表す画像が,それぞれどの程度の確度で含まれているかを表す被写体種類確信度を,上記画像データから得られる特徴量に基づいて,定められた被写体種類ごとに算出する被写体種類別確信度算出手段,および
上記画像データによって表される画像が,あらかじめ定められた複数のライティング種類のそれぞれについて,どの程度の確度でそのライティング種類の下で撮影されたかを表すライティング確信度を,上記画像データから得られる特徴量に基づいて,定められたライティング種類ごとに算出するライティング種類別確信度算出手段を含む,
請求項1に記載の画像識別装置。
The certainty factor calculation means
A feature amount obtained from the image data is a subject type certainty factor indicating how much each of the images representing a plurality of predetermined subject types is included in the image represented by the image data. Based on the above, the subject type certainty factor calculation means for each subject type, and the accuracy of the image represented by the image data for each of a plurality of predetermined lighting types Including a lighting type certainty factor calculating means for calculating for each predetermined lighting type, based on the feature amount obtained from the image data, the writing certainty level indicating whether the image was taken under the lighting type,
The image identification device according to claim 1.
上記確信度修正手段は,
上記信頼度算出手段によって算出された信頼度の大きさに応じて,上記確信度の減少の程度を変動させるものである,
請求項1に記載の画像識別装置。
The confidence correction means is
The degree of decrease in the certainty is varied according to the degree of reliability calculated by the reliability calculating means.
The image identification device according to claim 1.
上記信頼度算出手段は,
画像特性が類似する,上記複数の被写体種類に関する画像分類のうちの一つと上記複数のライティング種類に関する画像分類のうちの一つについて,上記信頼度を算出するものである,
請求項2に記載の画像識別装置。
The reliability calculation means is:
The reliability is calculated for one of the image classifications related to the plurality of subject types and one of the image classifications related to the plurality of lighting types having similar image characteristics.
The image identification device according to claim 2.
上記信頼度が算出される被写体種類に関する画像分類は夕景画像が属する画像分類であり,上記信頼度が算出されるライティング種類に関する画像分類は,タングステン光源下で撮影された画像が属する画像分類である,
請求項4に記載の画像識別装置。
The image classification relating to the subject type for which the reliability is calculated is an image classification to which the sunset scene image belongs, and the image classification relating to the lighting type for which the reliability is calculated is an image classification to which an image photographed under a tungsten light source belongs. ,
The image identification device according to claim 4.
タグ情報および画像データを含む画像ファイルの入力を受け,
受付けた画像ファイルに含まれる画像データに基づいて,あらかじめ定められた複数の画像分類のそれぞれについて,上記画像データによって表される画像が,どの程度の確度でそれらの画像分類に属するかを表す確信度を算出し,
受付けた画像ファイルに含まれるタグ情報に基づいて,上記確信度算出手段によって算出された複数の確信度のうちの少なくとも一つの確信度についての信頼度を算出し,
算出した信頼度が所定値よりも低い場合に,そのような信頼度が得られた確信度を減少させる,画像識別方法。
Receives input of image file including tag information and image data,
Based on the image data included in the received image file, for each of a plurality of predetermined image classifications, a certainty indicating to what degree the image represented by the image data belongs to those image classifications Calculate the degree,
Based on the tag information included in the received image file, the reliability of at least one of the plurality of certainty calculated by the certainty calculating means is calculated,
An image identification method for reducing the certainty of obtaining such reliability when the calculated reliability is lower than a predetermined value.
タグ情報および画像データを含む画像ファイルの入力を受ける画像ファイル受付処理,
上記画像ファイル受付処理によって受付けられた画像ファイルに含まれる画像データに基づいて,あらかじめ定められた複数の画像分類のそれぞれについて,上記画像データによって表される画像が,どの程度の確度でそれらの画像分類に属するかを表す確信度を算出する確信度算出処理,
上記画像ファイル受付処理によって受付けられた画像ファイルに含まれるタグ情報に基づいて,上記確信度算出処理によって算出された複数の確信度のうちの少なくとも一つの確信度についての信頼度を算出する信頼度算出処理,ならびに
上記信頼度算出処理によって算出された信頼度が所定値よりも低い場合に,そのような信頼度が得られた確信度を減少させる確信度修正処理,
をコンピュータに実行させるプログラム。
Image file acceptance processing that accepts input of image files including tag information and image data,
Based on the image data included in the image file received by the image file reception process, for each of a plurality of predetermined image classifications, the degree of accuracy of the image represented by the image data A certainty factor calculation process for calculating a certainty factor indicating whether it belongs to a classification,
A reliability level for calculating a reliability level for at least one of the multiple reliability levels calculated by the reliability level calculation process based on tag information included in the image file received by the image file reception process. A calculation process, and a certainty factor correction process for reducing the certainty factor when the reliability calculated by the reliability calculation process is lower than a predetermined value,
A program that causes a computer to execute.
JP2005052497A 2005-02-28 2005-02-28 Image identification device and method therefor, and image identification program Pending JP2006236181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005052497A JP2006236181A (en) 2005-02-28 2005-02-28 Image identification device and method therefor, and image identification program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005052497A JP2006236181A (en) 2005-02-28 2005-02-28 Image identification device and method therefor, and image identification program

Publications (1)

Publication Number Publication Date
JP2006236181A true JP2006236181A (en) 2006-09-07

Family

ID=37043733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005052497A Pending JP2006236181A (en) 2005-02-28 2005-02-28 Image identification device and method therefor, and image identification program

Country Status (1)

Country Link
JP (1) JP2006236181A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MD231Z (en) * 2009-06-04 2011-01-31 Институт Прикладной Физики Академии Наук Молдовы Method for identifying the structure of the binding phase of pseudoalloys based on tungsten
JP2013077127A (en) * 2011-09-30 2013-04-25 Dainippon Screen Mfg Co Ltd Image classification device and image classification method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MD231Z (en) * 2009-06-04 2011-01-31 Институт Прикладной Физики Академии Наук Молдовы Method for identifying the structure of the binding phase of pseudoalloys based on tungsten
JP2013077127A (en) * 2011-09-30 2013-04-25 Dainippon Screen Mfg Co Ltd Image classification device and image classification method

Similar Documents

Publication Publication Date Title
US7636477B2 (en) Device for detecting red eye, program therefor, and recording medium storing the program
JP4549352B2 (en) Image processing apparatus and method, and image processing program
JP4248812B2 (en) Digital image processing method for brightness adjustment
JP4834725B2 (en) Method and apparatus for incorporating iris color in red-eye correction
US20050219385A1 (en) Device for preventing red eye, program therefor, and recording medium storing the program
JP5693271B2 (en) Image processing apparatus and method
US20030189650A1 (en) Method for automatic white balance of digital images
JP4021716B2 (en) Camera with strobe adjustment function
US7865032B2 (en) Methods and systems for identifying an ill-exposed image
JP5040624B2 (en) Information processing method, information processing apparatus, and program
WO2010116478A1 (en) Image processing device, image processing method, and image processing program
CN113808135B (en) Image brightness abnormality detection method, electronic device, and storage medium
JP2006333205A (en) Imaging apparatus, image processing method and image processing program
JP2006236181A (en) Image identification device and method therefor, and image identification program
JP2007228221A (en) Imaging apparatus, image processing apparatus, image processing method and image processing program
JP4992519B2 (en) Information processing method, information processing apparatus, and program
JP4412109B2 (en) Electronic camera having color balance adjustment function and program
JP2007243542A (en) Imaging apparatus, image processing apparatus, image processing method, and image processing program
JP2007293686A (en) Imaging apparatus, image processing apparatus, image processing method and image processing program
JP2009044249A (en) Image identification method, image identification device, and program
JP2007184887A (en) Image pickup device, image processor, image processing method and image processing program
JP2008234626A (en) Information processing method, information processor, and program
KR20090107907A (en) Method of digital image enhancement based on metadata and image forming appartus
US8031966B2 (en) Method and apparatus for determining whether backlight exists
JP6188360B2 (en) Image processing apparatus, control method thereof, control program, and discrimination apparatus

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061211