JP2004343610A - Image processing for dark background image - Google Patents
Image processing for dark background image Download PDFInfo
- Publication number
- JP2004343610A JP2004343610A JP2003140211A JP2003140211A JP2004343610A JP 2004343610 A JP2004343610 A JP 2004343610A JP 2003140211 A JP2003140211 A JP 2003140211A JP 2003140211 A JP2003140211 A JP 2003140211A JP 2004343610 A JP2004343610 A JP 2004343610A
- Authority
- JP
- Japan
- Prior art keywords
- image
- shooting
- value
- brightness
- image processing
- 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
Links
- 238000003672 processing method Methods 0.000 claims description 14
- 238000003384 imaging method Methods 0.000 claims description 3
- 239000011159 matrix material Substances 0.000 description 20
- 238000000034 method Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 11
- 238000006243 chemical reaction Methods 0.000 description 10
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000000976 ink Substances 0.000 description 3
- 239000003550 marker Substances 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000005282 brightening Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、撮影時の撮影情報を用いた画像データに対する画像処理装置、および画像処理方法に関する。
【0002】
【従来の技術】
ディジタルスチルカメラ(DSC)等にて生成された画像データに対する画像処理技術が種々提案、実用化されている。これら画像処理技術では、ユーザにより選択されたコントラスト補正、明度補正、彩度補正といった既定の補正条件または画像データの解析に基づいて画像データに対する画像処理が実行されるため、必ずしも夜景、夕景といった撮影場面(撮影シーン)に適した画像処理結果を得ることができなかった。
【0003】
これに対して、現在、DSCにて生成されたほとんどの画像データには、撮影時の撮影条件を示す撮影情報がそのヘッダ部分に記述されている。したがって、画像データのヘッダ部に記述された撮影情報を用いることによって、画像処理装置では、例えば、撮影時の撮影場面が夜景、夕景といった背景の暗い撮影場面であったか否かを判断することが可能となり、夜景、夕景に合わせた画像処理を画像データに対して施すことができる(特許文献1参照)。
【0004】
【特許文献1】
特願2001−074671号
【0005】
【発明が解決しようとする課題】
しかしながら、撮影情報を用いて撮影場面が夜景、夕景であることを判断できた場合であっても、従来、夜景画像の画像処理では、一様に明るくするまたは暗くするといった明度補正が実施されていたため、撮影場面によっては、依然として適切な画像処理結果を得ることができなかった。
【0006】
本発明は、上記課題を解決するためになされたものであり、撮影情報を利用して、暗い背景を有する人物画像並びに非人物画像に対する画像処理を適切に実行することを目的とする。
【0007】
【課題を解決するための手段および作用・効果】
上記課題を解決するために本発明の第1の態様は、画像に対する画像処理を実行する画像処理装置を提供する。本発明の第1の態様に係る画像処理装置は、前記画像のデータである画像データを取得する画像データ取得手段と、前記画像の撮影時における撮影条件を示す撮影情報を取得する撮影情報取得手段と、前記取得した撮影情報を用いて撮影時における背景の明度を判定する背景明度判定手段と、前記撮影時の背景明度が低いと判定された場合には、前記取得した撮影情報に応じて前記画像データの明度を高くする画質調整または低くする画質調整を実行する明度調整手段とを備えることを特徴とする。
【0008】
本発明の第1の態様に係る画像処理装置によれば、取得した撮影情報を用いて撮影時における背景の明度を判定し、撮影時の背景明度が低いと判定された場合には、取得した撮影情報に応じて画像データの明度を高くする画質調整または低くする画質調整を実行するので、撮影情報を利用して、暗い背景を有する人物画像並びに非人物画像に対する画像処理を適切に実行することができる。
【0009】
本発明の第1の態様に係る画像処理装置において、前記撮影情報には、撮影時の撮影場面を示す情報および撮影時における被写体の輝度を示す輝度値の少なくともいずれか一方が含まれており、前記背景明度判定手段は、前記撮影場面を示す情報が撮影時に夜景または夕景であったことを示す場合、または、前記輝度値が所定値以下の場合には、前記撮影時の背景明度が低いと判定しても良い。かかる場合には、撮影者により設定される撮影場面を示す情報、および撮影時における被写体の輝度の少なくともいすれか一方に基づき撮影画像が暗い背景を有しているか否かを判定するので、より確実に撮影画像が暗い背景を有していたか否かを判定することができる。
【0010】
本発明の第1の態様に係る画像処理装置において、前記撮影情報には、撮影時に設定された露出プログラムの設定値が含まれており、前記明度調整手段は、前記露出プログラム設定値が人物撮影を示す場合には、前記画像データの明度を高くする画質調整を実行しても良い。かかる場合には、撮影画像が人物画像であったか否かをより適切に判定することが可能となり、また、画像データに対する画質調整において明度を高くすることにより、暗い背景における人物画像を明確に表すことができる。なお、人物画像とは、被写体が撮像装置に対して近接している画像を意味する。
【0011】
本発明の第1の態様に係る画像処理装置において、前記撮影情報には、ストロボの発光の有無を示すフラッシュ値が含まれており、前記明度調整手段は、前記フラッシュ値がストロボ発光有りを示す場合には、前記画像データの明度を高くする画質調整を実行しても良い。夜景の撮影条件下において、ストロボ発光が有った場合には撮影画像が人物画像であると適切に判定することができる。また、画像データに対する画質調整において明度を高くすることにより、暗い背景における人物画像を明確に表すことができる。
【0012】
本発明の第1の態様に係る画像処理装置において、前記撮影情報には、被写体との距離を示す被写体距離レンジの値が含まれており、前記明度調整手段は、前記被写体距離レンジの値が近景を示す場合には、前記画像データの明度を高くする画質調整を実行しても良い。かかる場合には、被写体が近接しているので、撮影画像が人物画像であると適切に判定することができる。また、画像データに対する画質調整において明度を高くすることにより、暗い背景における人物画像を明確に表すことができる。
【0013】
本発明の第1の態様に係る画像処理装置はさらに、前記画像データを解析して前記画像データ中の肌色画素の割合値を取得する肌色画素割合値取得手段を備え、前記明度調整手段は、前記肌色画素の割合値が5%以上の場合には、前記画像データの明度を高くする画質調整を実行しても良い。かかる場合には、人物画像における特徴的パラメータである肌色画素の割合値を用いるので、撮影画像が人物画像であるか否かを適切に判定することができる。
【0014】
本発明の第1の態様に係る画像処理装置において、前記撮影情報にはさらに、露出プログラム設定値が含まれており、前記明度調整手段は、前記露出プログラム設定値が人物撮影を示す場合には、前記ストロボ発光の有無、前記被写体距離レンジまたは前記肌色画素の割合値にかかわらず、前記画像データの明度を高くする画質調整を実行しても良い。露出プログラム設定値は、撮影者によって恣意的に設定される値であり、撮影時の撮影条件を適切に表している。また、撮影者の撮影意図を示す値であるから、露出プログラム設定値に基づいた画像処理を実行すれば、撮影者の意図に沿った画像処理結果を提供することができる。
【0015】
本発明の第1の態様に係る画像処理装置において、前記撮影情報にはさらに、ストロボュの発光の有無を示すフラッシュ値が含まれており、前記明度調整手段は、前記露出プログラム設定値が人物撮影以外に設定されまたは未設定を示し、且つ、前記フラッシュ値がストロボ発光有りを示す場合には、前記画像データの明度を高くする画質調整を実行しても良い。露出プログラム設定値は、撮影者により恣意的に設定される値であり、必ずしも全ての撮影者が設定するとは限らない。したがって、露出プログラム設定値に加えてフラッシュ値を撮影画像が人物画像であるか否かの判定に用いることによって、より確実な人物画像判定を実行することができる。
【0016】
本発明の第2の態様は、画像に対する画像処理を実行する画像処理装置を提供する。本発明の第2の態様に係る画像処理装置は、前記画像のデータである画像データを取得する画像データ取得手段と、前記画像の撮影時における撮影条件を示す撮影情報を取得する撮影情報取得手段と、前記取得した撮影情報を用いて撮影時における背景の明度を判定する背景明度判定手段と、前記取得した撮影情報を用いて前記取得した画像データに対応する撮影時の画像が人物画像であるか否かを判定する人物画像判定手段と、前記撮影時の背景明度が低いと判定されると共に、前記撮影時の画像が人物画像であると判定された場合には、前記画像データの明度を高くする画質調整を実行する明度調整手段とを備えることを特徴とする。
【0017】
本発明の第2の態様に係る画像処理装置によれば、撮影情報を用いて撮影時における背景の明度を判定し、撮影情報を用いて取得した画像データに対応する撮影時の画像が人物画像であるか否かを判定し、撮影時の背景明度が低いと判定されると共に、撮影時の画像が人物画像であると判定された場合には、画像データの明度を高くするので、撮影情報を利用して、暗い背景を有する人物画像に対する画像処理を適切に実行することができる。
【0018】
本発明の第2の態様に係る画像処理装置において、前記撮影情報には、撮影時の撮影場面を示す情報および撮影時における被写体の輝度を示す輝度値の少なくともいずれか一方が含まれており、前記背景明度判定手段は、前記撮影場面を示す情報が撮影時に夜景または夕景であったことを示す場合、または、前記輝度値が所定値以下の場合には、前記撮影時の背景明度が低いと判定しても良い。かかる場合には、より確実に撮影画像が暗い背景を有していたか否かを判定することができる。
【0019】
本発明の第2の態様に係る画像処理装置において、前記撮影情報には、撮影時に設定された露出プログラムの設定値、ストロボ発光の有無の値、および被写体との距離を示す被写体距離レンジの値の少なくともいずれか1つが含まれており、前記人物画像判定手段は、前記撮影情報に含まれている、前記撮影情報に含まれている露出プログラムの値、ストロボ発光の有無の値、および被写体距離レンジの値に基づいて、前記撮影時の画像が人物画像であるか否かを判定しても良い。かかる場合には、撮影画像が人物画像であるか否かを適切に判定することができる。
【0020】
本発明の第2の態様に係る画像処理装置において、前記明度調整手段は、前記撮影時の背景明度が低いと判定されると共に、前記撮影時の画像が人物画像でないと判定された場合には、前記画像データの明度を低くする画質調整を実行しても良い。かかる場合には、撮影情報を利用して、暗い背景を有する非人物画像に対する画像処理を適切に実行することができる。
【0021】
本発明の第3の態様は、暗い背景を有する人物画像に対する画像処理方法を提供する。本発明の第3の態様に係る画像処理方法は、前記画像のデータである画像データを取得し、前記画像の撮影時における撮影条件を示す撮影情報を取得し、前記取得した撮影情報を用いて、前記取得した画像データとなった画像が暗い背景を有する人物画像であるか否かを判定し、前記取得した画像データとなった画像が暗い背景を有する人物画像であると判定した場合には、前記取得した撮影情報に応じて前記画像データの明度を高くする画質調整を実行することを特徴とする。
【0022】
本発明の第3の態様に係る画像処理方法によれば、本発明の第2の態様に係る画像処理装置と同様の作用効果を得ることができる。
【0023】
本発明の第3の態様に係る画像処理方法において、前記撮影情報には、撮影時の撮影場面を示す情報、並びに撮影時に設定された露出プログラムの設定値、ストロボ発光の有無の値、撮影時における被写体の輝度値、被写体との距離を示す被写体距離レンジの値および画像中の肌色画素の割合値の少なくともいずれか1つが含まれており、前記画像が暗い背景を有する人物画像であるか否かの判定は、さらに、
前記撮影場面を示す情報が撮影時に夜景または夕景であったことを示す場合または撮影時における被写体の輝度値が所定値以下の場合には、撮影時における背景は暗かったと判定し、
前記撮影情報に含まれている、前記露出プログラムの設定値、ストロボ発光の有無の値、前記被写体距離レンジの値および画像中の肌色画素の割合値の少なくともいずれか1つを用いて前記取得した画像データとなった画像が人物画像であるか否かを判定することを含むことを特徴とする。かかる場合には、画像が暗い背景を有する人物画像であるか否かを適切に判定することができる。
【0024】
本発明の第3の態様に係る画像処理方法はさらに、前記画像データを解析して前記画像データ中に含まれる肌色画素の割合値を取得し、前記取得した画像データとなった画像が人物画像であるか否かの判定は、前記撮影情報に加えて、前記取得した肌色画素の割合値を反映して行われても良い。かかる場合には、撮影画像が人物画像であるか否かをより適切に判定することができる。
【0025】
本発明の第1および第2の態様に係る画像処理装置、並びに本発明の第3の態様に係る画像処理方法は、この他にも、画像処理プログラムおよび画像処理プログラムが記録された記録媒体としても実現され得る。
【0026】
【発明の実施の形態】
以下、本発明に係る画像処理装置について図面を参照しつつ、いくつかの実施例に基づいて説明する。
【0027】
A.画像処理システムの構成:
第1の実施例に係る画像処理装置を適用可能な画像処理システムの構成について図1および図2を参照して説明する。図1は第1の実施例に係る画像処理装置としてのパーソナルコンピュータを含む画像処理システムの一例を示す説明図である。図2はディジタルスチルカメラにおける撮影モードの選択場面を示す説明図である。
【0028】
画像処理システムは、画像ファイルを生成する入力装置としてのディジタルスチルカメラ10、ディジタルスチルカメラ10にて生成された画像ファイルに基づいて画像処理を実行し、印刷用画像データを出力する画像処理装置としてのパーソナルコンピュータ20、印刷用画像データを用いて画像を出力する出力装置としてのカラープリンタ30を備えている。なお、カラープリンタ30は、パーソナルコンピュータPCが備える画像処理機能を備えていても良く、かかる場合には、スタンドアローンにて画像処理、画像出力を実行することができる。また、出力装置としては、プリンタ30の他に、CRTディスプレイ、LCDディスプレイ等のモニタ25、プロジェクタ等が用いられ得る。以下の説明では、パーソナルコンピュータ20と接続されて用いられるカラープリンタ30を出力装置として用いるものとする。
【0029】
パーソナルコンピュータ20は、一般的に用いられているタイプのコンピュータであり、本発明に係る画像処理プログラムを実行するCPU200、CPU200における演算結果、画像データ等を一時的に格納するRAM201、画像処理プログラムを格納するハードディスクドライブ(HDD)202を備えている。パーソナルコンピュータ20は、メモリカードMCを装着するためのカードスロット203、ディジタルスチルカメラ10等からの接続ケーブルを接続するための入出力端子204を備えている。
【0030】
ディジタルスチルカメラ10は、図2に示すように、選択・決定ボタン11と、撮影画像をプレビューしたり、選択・決定ボタン11を用いた選択・決定を実行するための液晶ディスプレイ12とを備えている。選択・決定ボタン11は、シャッター速度、露出プログラム、ISOスピードレート等の撮影条件、夕景、夜景、ポートレートといった撮影シーンに応じて予め複数の撮影パラメータの値が設定されている撮影モードを設定するために用いられる。図2に示す例では、撮影シーンタイプが夜景に設定されている。
【0031】
ディジタルスチルカメラ10はまた、光の情報をディジタルデバイス(CCDや光電子倍増管)に結像させることにより画像を取得するカメラであり、光情報を電気情報に変換するためのCCD等を備える光電変換回路、光電変換回路を制御して画像を取得するための画像取得回路、取得したディジタル画像を加工処理するための画像処理回路等を備えている。ディジタルスチルカメラ10は、取得した画像をディジタルデータとして記憶装置としてのメモリカードMCに保存する。ディジタルスチルカメラ10における画像データの保存形式としては、非可逆圧縮保存方式としてJPEGデータ形式、可逆圧縮保存方式としてTIFFデータ形式が一般的であるが、この他にもRAWデータ形式、GIFデータ形式、BMPデータ形式等の保存形式が用いられ得る。
【0032】
ディジタルスチルカメラ10は、画像撮影時(画像データ生成時)における撮影情報(Exif情報)SIと画像データとを関連づけて画像ファイルGFとしてメモリカードMCに格納する。ユーザによって、人物、夜景、夕景といった撮影条件に適した撮影シーンタイプ(撮影モード)が選択された場合には、選択された撮影シーンタイプが撮影情報SIとして画像データに関連づけられ、また、設定された露出プログラムの設定値(例えば、ポートレートモード、露出優先、シャッター優先、ランドスケープモード)、被写体距離レンジ、被写体の輝度値、ストロボの発光状態を示すフラッシュといった複数の撮影条件パラメータのパラメータ値が画像データに関連づけられてメモリカードMCに格納される。
【0033】
ディジタルスチルカメラ10において生成された画像ファイルGFは、例えば、ケーブルCV、コンピュータ20を介して、あるいは、ケーブルCVを介してカラープリンタ30に送出される。あるいは、ディジタルスチルカメラ10にて画像ファイルGFが格納されたメモリカードMCが、メモリカード・スロットに装着されたコンピュータ20を介して、あるいは、メモリカードMCをプリンタ30に対して直接、接続することによって画像ファイルがカラープリンタ30に送出される。なお、以下の説明では、撮影情報SIを用いた画像データGDに対する画像処理がパーソナルコンピュータ20にて実行され、処理済みの画像データがカラープリンタ30に対して出力される場合について説明する。
【0034】
カラープリンタ30は、カラー画像の出力が可能なプリンタであり、例えば、シアン(C)、マゼンタ(M)、イエロー(Y)、ブラック(K)の4色の色インクを印刷媒体上に噴射してドットパターンを形成することによって画像を形成するインクジェット方式のプリンタである。あるいは、カラートナーを印刷媒体上に転写・定着させて画像を形成する電子写真方式のプリンタである。色インクには、上記4色に加えて、ライトシアン(薄いシアン、LC)、ライトマゼンタ(薄いマゼンタ、LM)、ダークイエロ(暗いイエロ、DY)を用いても良い。
【0035】
B.画像ファイルの構成:
本実施例に係る画像ファイルGFは、例えば、電子情報技術産業協会(JEITA)によってディジタルスチルカメラ用画像ファイルフォーマットの規格として提唱されているExifフォーマットに従うファイル構造(Exifファイル)、C−Cube Microsystems社, Xing Technology社, Digital Origin(Radius)社の3社によって策定された、JPEGデータファイルの互換性を目的とした規格であるJFIFフォーマットに従うファイル構造(JFIFファイル)、画像データに関するパラメータをタグ形式にて指定するTIFFフォーマットに従うファイル構造(TIFFファイル)を備えることができる。Exifファイルは、格納する画像データの種類によって、非可逆圧縮タイプのJPEG画像データを格納するJPEG−Exifファイル、可逆圧縮タイプのTIFF画像データを格納するTIFF−Exifファイルに区別することができる。
【0036】
図3〜図6を参照して本実施例にて用いられ得るJPEGデータ格納ファイルとしてのExif画像ファイルの概略構成について説明する。図3はExif画像ファイルのファイル構成を模式的に示す説明図である。図4は本実施例において用いられ得るExif画像フォーマットにおける撮影条件タグの概略的な内部構造を詳細に示す説明図である。図5はパーソナルコンピュータ20において撮影画像が夜景画像であるか否かを判定する際に用いられる夜景シーン判定要素を示す説明図である。図6はパーソナルコンピュータ20において撮影画像が人物画像であるか否かを判定する際に用いられる人物画像判定要素を示す説明図である。なお、本実施例中におけるファイルの構造、データの構造、格納領域といった用語は、ファイルまたはデータ等が記憶装置内に格納された状態におけるファイルまたはデータのイメージを意味するものである。
【0037】
画像ファイルGFは、JPEG画像データGD、JPEG画像データGDに対する付属情報を格納するアプリケーション・マーカセグメントAPPを備えている。アプリケーション・マーカセグメントAPP(IFD)では、各情報を特定するためにタグが用いられており、各情報はタグ名によって呼ばれることがある。図3に示すアプリケーション・マーカセグメントAPPには、画像処理制御情報GIを格納するタグ(領域)、Exif情報を格納するタグ(領域)、サムネイル画像データが含まれている。
【0038】
Exif情報には、ユーザ情報を格納するタグ、撮影条件を格納するタグ等が含まれている。ユーザ情報タグには、Exifファイルユーザ(例えば、DSC製造者)が任意に使用可能なMakernoteタグが用意されており、画像処理制御情報GIは、このMakernoteタグに記述されても良い。撮影条件タグには、図4に示すように、露出プログラム、撮影シーンタイプを始めとする撮影条件に関する各種パラメータの値が記述されている。
【0039】
C.パーソナルコンピュータ20における画像処理:
図7〜図9を参照してパーソナルコンピュータ20において実行される画像処理について説明する。図7は第1の実施例におけるパーソナルコンピュータにて実行される画像処理の処理ルーチンを示すフローチャートである。図8は第1の実施例におけるパーソナルコンピュータにて実行される撮影条件SIを用いた明度補正処理量決定処理ルーチンを示すフローチャートである。図9は画像データの各画素についての明度の入力レベルと出力レベルの関係を概念的に示すグラフである。
【0040】
パーソナルコンピュータ20(CPU200)は、スロット203にメモリカードMCが差し込まれると、あるいは、ディジタルスチルカメラ10に接続されている接続ケーブルCVが入出力端子204に接続されると本画像処理のプログラムを起動する。CPU200は、ユーザの指示に従ってメモリカードMCから画像ファイルGFを取得し(読み出し)、取得した画像ファイルGFをRAM201に一時的に格納する(ステップS100)。
【0041】
CPU200は、画像ファイルGFにExif情報(撮影情報SI)が含まれているか否かを判定する(ステップS110)。CPU200は、画像ファイルGFからExif情報を発見(検出)することができた場合には(ステップS110:Yes)、Exif情報を取得して(ステップS120)、画像データGDの伸長、色変換処理を実行する(ステップS130)。
【0042】
CPU200は、画像データGDを伸張し、伸張した画像データGDに対してマトリクスSを用いたマトリクス演算、並びに画像処理制御情報GIによって指定されたガンマ補正値を用いたガンマ補正、およびマトリクスMを含むマトリクスN−1Mを用いたマトリクス演算を実行してYCbCr→wRGB色変換処理を実行する。
【0043】
本フローチャートにて処理される画像ファイルGFは、JPEG画像データを格納しており、JPEGデータはYCbCrデータを圧縮したデータである。また、現在のパーソナルコンピュータPC、プリンタにおける画像処理では一般的にRGBデータが用いられている。したがって、JPEGデータの伸張(デコード)、YCbCrデータのRGBデータへの色変換処理が必要となる。マトリクスSは、JFIF規格において、YCbCrデータをRGBデータへと変換する際に一般的に用いられるマトリクスであり、当業者にとって周知のマトリクスであるから詳細な説明は省略する。また、色変換に当たっては、XYZ値との関係を線形化するためにガンマ補正処理を実行して画像データGDの線形化を実行する。
【0044】
本実施例では、マトリクスSを用いた一般的なYCbCr→RGB色変換処理に加えて、カラープリンタ30が有する色再現特性を考慮したマトリクスMを含むマトリクスN−1Mを用いてRGB→wRGB色変換処理を実行する。マトリクスMは、マトリクスS演算実行後のRGBデータを定義(指定)するRGB色空間(ターゲット色空間)から機器独立色空間であるXYZ色空間へと色空間を変換するためのマトリクスである。マトリクスS演算実行後のRGBデータがsRGB色空間の表色域を超えるRGB値を持つ場合には、マトリクスS演算実行後のRGBデータの色空間として、例えば、sRGB色空間よりも少なくともその一部の表色域が広いwRGB色空間を指定することにより、RGB値の喪失を防止して、後段の広いwRGB色空間(作業色空間)へとつなげることができる。マトリクスNはカラープリンタ30が許容するRGB色空間、例えば、wRGB色空間からXYZ色空間へと色空間を変換するためのマトリクスである。マトリクスN−1MはRGB→XYZ→wRGBの色変換処理を実行するための合成マトリクスである。
【0045】
CPU200は、続いて、RGBデータに変換された画像データに対して、Exif情報を用いた明度補正のための画像タイプ処理を実行する(ステップS140)。Exif情報を用いた明度補正量の決定処理について図8を参照して説明する。
【0046】
本実施例では、夜景、夕景といった画像背景が暗い撮影シーンにおける人物画像および非人物画像(風景画像)それぞれに対して適正な明度補正を実行するためにExif情報(撮影情報SI)を用いる。
【0047】
CPU200は、Exif情報として格納されている撮影シーンタイプが夜景に設定されているか(撮影画像が夜景画像であるか)否かを判定し(ステップS200)、撮影シーンタイプが夜景以外に設定されていると判定した場合には(ステップS200:No)、Exif情報として格納されている輝度値が−2以下であるか否かを判定する(ステップS210)。CPU200は、輝度値が−2より大きいと判定した場合には(ステップS210:No)、本処理ルーチンを終了して図7の処理ルーチンにリターンする。
【0048】
撮影シーンタイプは、撮影者によって意図的に設定される撮影条件パラメータであり、撮影条件が夜景であったことを容易かつ確実に判定することが可能なパラメータである。したがって、本実施例では、既述のように、撮影条件が夜景であったか否かの判定要素として、撮影シーンタイプを用いている。その一方で、撮影シーンタイプが設定されることなく、すなわち標準に設定されたまま夜景、暗い背景において撮影がなされることも予想される。そこで、撮影者の意図とは無関係に、撮影時における被写体の輝度を示す輝度値を用いて撮影場面が暗い場面であったか否かを判定し、撮影場面についての判定精度を向上する。なお、Exif情報に記述される輝度値は、ストロボ発光前における被写体の輝度を示すので、ストロボ発光による輝度変化を考慮することなく、撮影場面の明るさを判定することができる。なお、本実施例において、夜景画像とは、夜景、夕景のほか、照明の暗い室内場面、影により暗い撮影場面といった暗い撮影場面をも含む意味で用いられる。
【0049】
CPU200は、撮影シーンタイプが夜景に設定されていると(撮影画像が夜景画像であると)判定した場合には(ステップS200:Yes)、Exif情報として格納されている露出プログラムのパラメータ値がポートレートに設定されているか否かを判定する(ステップS220)。CPU200は、ステップS210において、輝度値が−2以下であると判定した場合にも(ステップS210:Yes)、Exif情報として格納されている露出プログラムのパラメータ値がポートレートに設定されているか否かを判定する(ステップS220)。
【0050】
露出プログラムは、撮影者によって意図的に設定される撮影条件パラメータであり、被写体が人物であったことを容易かつ確実に判定することが可能なパラメータである。したがって、本実施例では、既述のように、撮影画像が人物であったか否かの判定要素の1つとして、露出プログラムを用いている。なお、本実施例における「人物画像」の用語は、必ずしも被写体が人物であることを意味するものでなく、背景に対してディジタルスチルカメラ10に近い位置に位置する被写体を中心とした画像を意味する。
【0051】
CPU200は、露出プログラムの値がポートレートに設定されていると判定した場合には(ステップS220:Yes)、処理対象の画像データGDとなった画像、すなわち画像データGDに対応する撮影時の画像は夜景人物画像であったと判定する(ステップS230)。すなわち、本実施例では、撮影シーンタイプの値が夜景に設定されていることと、露出プログラムの値がポートレートに設定されていることをもって、撮影画像が夜景人物画像であると判定する。
【0052】
撮影画像が夜景人物画像であると判定したCPU200は、画像データGDの明度を高く(明るく)するために正の明度補正量を決定して(ステップS240)、本処理ルーチンを終了して図7に示す画像処理ルーチンにリターンする。撮影画像が夜景人物画像である場合に、明度を高くする補正を画像データGDに対して実行することにより、人物が明確に表された出力画像を得ることができるので明度補正量を+の明度補正量とする。かかる出力画像は、人物を撮影したいという撮影者の意図に沿うものであり、撮影者を満足させる画像処理(明度補正)を実行することができる。
【0053】
CPU200は、露出プログラムの値がポートレートに設定されていないと判定した場合には(ステップS220:No)、Exif情報として格納されているフラッシュのパラメータ値にフラッシュの発光が記述されているか否かを判定する(ステップS250)。露出プログラムは、被写体が人物であっても撮影者によって必ずしも設定されないことがあるので、フラッシュのパラメータ値を用いることによって、撮影画像が人物画像であったか否かを重ねて判断するのである。ここで、フラッシュのパラメータを人物画像の判定に用いるのは、夜景の条件下にて、人物を撮影する場合には通常、ストロボが発光し、夜景風景を撮影する場合には通常、意図的にストロボ発光は禁止されるからである。
【0054】
CPU200は、Exif情報にフラッシュの発光が記述されていた場合には(ステップS250:Yes)、撮影画像は夜景人物画像であると判定し(ステップS230)、明度補正量を正に設定して(ステップS240)、本処理ルーチンから図7に示す処理ルーチンへリターンする。
【0055】
CPU200は、Exif情報にフラッシュの発光が記述されていない場合には(ステップS250:No)、撮影画像は夜景非人物画像であると判定し(ステップS260)、明度補正量を負に設定して(ステップS270)、本処理ルーチンから図7に示す処理ルーチンへリターンする。
【0056】
撮影画像が夜景非人物画像、すなわち夜景風景である場合に、明度を低くする補正を画像データGDに対して実行することにより、イルミネーション等が映える出力画像または暗い風景描写を損なうことのない出力画像を得ることができるので、明度補正量を−の明度補正量に設定する。かかる出力画像は、夜景風景を撮影したいという撮影者の意図に沿うものであり、撮影者を満足させる画像処理(明度補正)を実行することができる。
【0057】
図7に戻り説明を続けると、CPU200は、画像データGDに対する明度補正処理量決定処理を終えると、Exif情報および基準値を用いた画像処理を実行する(ステップS150)。Exif情報および基準値を用いた画像処理について詳細に説明すると、CPU200は、画像データGDを画素単位にて解析して画像データGDの特性を示す各種の特性パラメータ値、例えば、輝度最小値、輝度最大値、明度代表値といった画像統計値を取得する。CPU200は、HDD202に格納されている各特性パラメータに対して予め定められた基準値と、解析により得られた画像統計値との差を解消または低減させるように補正量を求め、画像データGDのRGB値を補正する。画像データGDの補正は、例えば、求めた補正値を入力値に対する出力値の関係を規定するトーンカーブに適用して修正し、かかるトーンカーブに対して画像データGDを入力値として適用することにより実行される。
【0058】
ここで、明度補正の手法について簡単に説明する。明度補正の基準となる明度基準値Bstdは、例えば、0〜255の値を取り得る8ビットの情報であり、その標準値は128に設定されている。この標準値に対して、決定された明度補正量を適用することによって、明度基準値Bstdを修正する。すなわち、Bstd=128+明度補正量となる。例えば、明度補正量が+20に設定された場合には、明度基準値Bstdは、128+20=148となる。一方、明度補正量が−10に設定された場合には、明度基準値Bstdは、128−10=118となる。
【0059】
画像データGDの明度値を基準値に近づける補正は、以下の式に基づいて実行される。
【0060】
【数1】
【0061】
画像データGDの明度値を基準値に近づける補正を実行する際に用いられる入力レベルと出力レベルとの関係について図9を参照して説明する。明度補正量が正の値であり、明度を明るくする補正を実行した場合には、例えば、入力レベルの1/4のポイントにて補正レベルに応じて出力レベルOL1,OL2を持ち上げる。一方、明度補正量が負の値であり、明度を暗くする補正を実行した場合には、例えば、入力レベルの3/4のポイントにて補正レベルに応じて出力レベルOL3を下げる。補正レベルに対応する点を除く値は、スプライン曲線にて補間される。
【0062】
あるいは、明度基準値Bstdを修正することなく、明度補正レベルBrevを直接、増減補正しても良い。例えば、明度補正量が10に設定されている場合、明度補正レベルBrev=10+明度基準値Bstdとなる。明度基準値Bstd=10とすれば、結果として明度補正レベルBrev=20が得られる。この値は、既述のように、画像データGDの明度値の入力レベルに対する出力レベルを決定するためのトーンカーブの修正に用いられ、画像データGDの各画素の明度値が補正されることにより画像データGDの明度が調整される。
【0063】
CPU200は、画質調整処理が施された画像データ(RGBデータ)をCMYKデータに変換する色変換処理を実行する。すなわち、画像データの表色系をカラープリンタ20が印刷処理を実行する際に用いる表色系であるCMYK表色系に変換する。具体的には、HDD202(ROM)に格納されているRGB表色系とCMYK表色系とを対応付けたルックアップデーブルを用いて実行される。
【0064】
CPU200は、処理された画像データをプリンタドライバへ出力し(ステップS160)、本処理ルーチンを終了する。プリンタドライバでは、ハーフトーン処理、解像度変換処理が実行され、印刷用のラスタデータとしてカラープリンタ30に出力される。
【0065】
一方、CPU200は、画像ファイルGFからExif情報を検出することができなかった場合には(ステップS110:No)、予め用意された画像処理条件にしたがって、通常画像処理を実行し(ステップS170)、処理された画像データをプリンタドライバへ出力して(ステップS160)、本処理ルーチンを終了する。通常画像処理においても、基準値を用いた画像処理が実行され得ることはいうまでもない。
【0066】
以上説明したように、第1の実施例に係る画像処理装置としてのパーソナルコンピュータ20によれば、Exif情報(撮影情報SI)を用いて、撮影画像が夜景人物画像(暗い撮影シーンでの人物画像)であるか否かを判定し、夜景人物画像であると判定した場合には、画像データGDに対して明度を高くする(明るくする)補正を実行することができる。一方、夜景非人物画像であると判定した場合には、画像データGDに対して明度を低くする(暗くする)補正を実行することができる。したがって、夜景人物画像である場合には、人物(被写体)が明確に表された出力画像を得ることができ、夜景非人物画像である場合には、夜景(風景)を損なうことのない出力画像を得ることができる。また、これら出力画像は、撮影者の撮影意図に沿うものであり、撮影者の撮影意図を損なうことのない画像処理を実行することができる。
【0067】
また、第1の実施例に係るパーソナルコンピュータ20によれば、撮影条件を示すExif情報に基づいて撮影画像が夜景人物画像であるか否かを判定するので、パーソナルコンピュータ20においても撮影条件を適切に判定することができる。さらに、パーソナルコンピュータ20における画像処理時に、ユーザが特にパラメータ等を指定することなく、夜景人物画像および夜景非人物画像に対する適切な画像処理を実行することができる。
【0068】
・第2の実施例:
第1の実施例では、フラッシュのパラメータ値を判定することで、夜景人物画像であるか否かの判定を終えていたが、第2の実施例では、輝度値、被写体距離レンジ、肌色割合値を用いて、さらに判定精度を高くする。第2の実施例に係るパーソナルコンピュータは、第1の実施例に係るパーソナルコンピュータ20と同一の構成を有するので同一の構成要素については同一の符号を付すことでその説明を省略する。
【0069】
図10を参照して第2の実施例におけるExif情報を用いた明度補正量決定処理について説明する。図10は第2の実施例において実行されるExif情報を用いた明度補正量決定処理の処理ルーチンを示すフローチャートである。なお、重複説明を省くため、フラッシュの判定処理以降を図示する。
【0070】
CPU200は、Exif情報にフラッシュの発光が記述されていた場合には(ステップS250:Yes)、輝度値が算術輝度値未満であるか否か判定する(ステップS2510)。CPU200は、輝度値が算術輝度値以上であると判定した場合には(ステップS2510:No)、撮影画像は人物画像ではないと判定し、夜景非人物画像であると判定する(ステップS260)。一方、CPU200は、輝度値が算術輝度値未満であると判定した場合には(ステップS251:Yes)、被写体距離レンジとして近景が記述されているか否かを判定する(ステップS2520)。
【0071】
算術輝度値は、画像データGDを解析することによって得られた輝度値であり、撮影時におけるストロボ発光後の画像輝度値である。一方、Exif情報に記述されている輝度値は、撮影時におけるストロボ発光前の被写体輝度値である。したがって、輝度値が算術輝度値未満である場合には、ストロボ発光と近距離に所在した被写体とに起因して輝度が高くなったと考えられ、人物を撮影した画像であると判断することができる。一方、輝度値が算術輝度値以上の場合には、ストロボ発光が撮影画像に影響を与えておらず、被写体は近距離に所在せず、風景を撮影した画像であると判断することができる。
【0072】
CPU200は、被写体距離レンジが近景である場合には(ステップS2520:Yes)、撮影画像は人物画像であると判定し、肌色割合値が5%以上であるか否かを判定する(ステップS2530)。CPU200は、被写体距離レンジが近景意外である場合には(ステップS2520:No)、撮影画像は人物画像ではないと判定し、夜景非人物画像であると判定する(ステップS260)。
【0073】
Exif情報に記述されている被写体距離レンジは、撮影時におけるディジタルスチルカメラ10と被写体との大まかな距離レンジを示すパラメータであり、ディジタルスチルカメラ10によって算出・決定される値である。一般的に、人物が被写体となる人物画像では被写体距離が近いので、被写体距離レンジに近景が記述されている場合には、撮影画像は人物画像であると判定することができる。
【0074】
また、肌色割合値は、パーソナルコンピュータ20において、画像データGDを解析する際に得られるパラメータであり、画像を構成する全画素に占める肌色画素の割合を示すパラメータである。一般的に、人物画像では肌色画素割合値が5%以上であるので、本実施例では5%を人物画像であるか否かの判定値として用いる。
【0075】
CPU200は、肌色割合値が5%以上である場合には(ステップS2530:Yes)、撮影画像は人物画像であると判定し、最終的に撮影画像は夜景人物画像であると判定する(ステップS230)。一方、CPU200は、肌色割合値が5%未満ある場合には(ステップS2530:No)、撮影画像は人物画像ではないと判定し、夜景非人物画像であると判定する(ステップS270)。
【0076】
以上説明したように、第2の実施例に従うExif情報を用いた明度補正量決定処理によれば、撮影画像が夜景人物画像であるか否かをより正確に判定することができる。例えば、夜景条件下で人物を被写体として撮影したにもかかわらず、フラッシュが発光しなかった場合、さらに他の人物画像の判定に適したパラメータに基づき人物画像であるか否かを判定するので、撮影画像をより適切に判定することができる。
【0077】
・その他の実施例:
上記実施例では、画像処理装置として、パーソナルコンピュータ20を用いて画像処理を実行しているが、このほかにも、例えば、画像処理機能を備えるスタンドアローン型のプリンタを画像処理装置として用いてもよく、係る場合にはプリンタにおいて上記画像処理が実行される。また、画像処理装置等のハードウェア構成を伴うことなく、プリンタドライバ、画像処理アプリケーション(プログラム)としても実現され得る。
【0078】
また、上記実施例では撮影情報SIが画像データのヘッダに記述されている例を用いて説明したが、これら各情報SIは画像データGDと一対一に対応付けられた他のデータファイルとして提供されても良い。
【0079】
上記実施例では、Exif情報(撮影情報SI)を用いて撮影場面が夜景であったか否かを判定しているが、ディジタルスチルカメラ10によって画像データGDに対して付与されまたは関連付けられる、画像処理装置における画像処理を指定する画像処理制御情報GIを用いて撮影場面を判定しても良い。画像処理制御情報GIには、より詳細な撮影場面を指定するパラメータが含まれ得る。
【0080】
以上、実施例に基づき本発明に係る画像処理装置、画像処理方法および画像処理プログラムを説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることはもちろんである。
【図面の簡単な説明】
【図1】第1の実施例に係る画像処理装置としてのパーソナルコンピュータを含む画像処理システムの一例を示す説明図である。
【図2】ディジタルスチルカメラにおける撮影モードの選択場面を示す説明図である。
【図3】Exif画像ファイルのファイル構成を模式的に示す説明図である。
【図4】第1の実施例において用いられ得るExif画像フォーマットにおける撮影条件タグの概略的な内部構造を詳細に示す説明図である。
【図5】パーソナルコンピュータ20において撮影画像が夜景画像であるか否かを判定する際に用いられる夜景シーン判定要素を示す説明図である。
【図6】パーソナルコンピュータ20において撮影画像が人物画像であるか否かを判定する際に用いられる人物画像判定要素を示す説明図である。
【図7】第1の実施例におけるパーソナルコンピュータにて実行される画像処理の処理ルーチンを示すフローチャートである。
【図8】第1の実施例におけるパーソナルコンピュータにて実行される撮影条件SIを用いた明度補正処理量決定処理ルーチンを示すフローチャートである。
【図9】画像データの各画素についての明度の入力レベルと出力レベルの関係を概念的に示すグラフである。
【図10】第2の実施例において実行されるExif情報を用いた明度補正量決定処理の処理ルーチンを示すフローチャートである。
【符号の説明】
10…ディジタルスチルカメラ(DSC)
11…選択・決定ボタン
12…液晶ディスプレイ
20…パーソナルコンピュータ
200…中央演算装置(CPU)
201…リードオンリメモリ(ROM)
202…ハードディスク(HDD)
203…ランダムアクセスメモリ(RAM)
204…カードスロット
205…入出力端子
25…表示装置
30…プリンタ
MC…メモリカード[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus and an image processing method for image data using shooting information at the time of shooting.
[0002]
[Prior art]
Various image processing techniques for image data generated by a digital still camera (DSC) or the like have been proposed and put into practical use. In these image processing techniques, image processing is performed on image data based on predetermined correction conditions such as contrast correction, brightness correction, and saturation correction selected by a user or on the basis of analysis of image data. An image processing result suitable for a scene (shooting scene) could not be obtained.
[0003]
On the other hand, at present, most of the image data generated by the DSC has shooting information indicating shooting conditions at the time of shooting described in a header portion thereof. Therefore, by using the shooting information described in the header part of the image data, the image processing apparatus can determine whether the shooting scene at the time of shooting is a dark shooting scene such as a night scene or a sunset scene, for example. Thus, image processing can be performed on the image data in accordance with the night view and the evening view (see Patent Document 1).
[0004]
[Patent Document 1]
Japanese Patent Application No. 2001-074671
[0005]
[Problems to be solved by the invention]
However, even when it is possible to determine that the shooting scene is a night scene or a sunset scene using the shooting information, conventionally, in the image processing of the night scene image, brightness correction such as uniformly brightening or darkening is performed. Therefore, an appropriate image processing result cannot be obtained depending on a shooting scene.
[0006]
The present invention has been made to solve the above-described problem, and has as its object to appropriately execute image processing on a person image having a dark background and a non-person image using photographing information.
[0007]
[Means for Solving the Problems and Functions / Effects]
In order to solve the above-described problems, a first aspect of the present invention provides an image processing device that performs image processing on an image. An image processing apparatus according to a first aspect of the present invention includes an image data acquiring unit that acquires image data that is data of the image, and a photographing information acquiring unit that acquires photographing information indicating a photographing condition at the time of photographing the image. And, the background brightness determination means for determining the brightness of the background at the time of shooting using the obtained shooting information, and when it is determined that the background brightness at the time of shooting is low, the background according to the obtained shooting information A brightness adjustment unit that performs image quality adjustment for increasing the brightness of the image data or image quality adjustment for reducing the brightness of the image data.
[0008]
According to the image processing device according to the first aspect of the present invention, the brightness of the background at the time of shooting is determined using the obtained shooting information, and when the background brightness at the time of shooting is determined to be low, the acquired brightness is determined. Since the image quality adjustment for increasing or decreasing the brightness of the image data is performed in accordance with the shooting information, the image processing for the person image having a dark background and the non-human image is appropriately performed using the shooting information. Can be.
[0009]
In the image processing apparatus according to the first aspect of the present invention, the shooting information includes at least one of information indicating a shooting scene at the time of shooting and a luminance value indicating a luminance of a subject at the time of shooting. The background lightness determining means may be configured such that when the information indicating the shooting scene indicates that it was a night scene or evening scene at the time of shooting, or when the brightness value is equal to or less than a predetermined value, the background lightness at the time of shooting is low. It may be determined. In such a case, it is determined whether or not the captured image has a dark background based on information indicating the shooting scene set by the photographer and at least one of the luminance of the subject at the time of shooting. It is possible to reliably determine whether the captured image has a dark background.
[0010]
In the image processing apparatus according to the first aspect of the present invention, the photographing information includes a setting value of an exposure program set at the time of photographing, and the brightness adjusting unit determines that the exposure program setting value is a person photographing value. In this case, image quality adjustment for increasing the brightness of the image data may be performed. In such a case, it is possible to more appropriately determine whether or not the captured image is a human image, and to clearly express the human image on a dark background by increasing the brightness in adjusting the image quality of the image data. Can be. In addition, a person image means an image in which a subject is close to the imaging device.
[0011]
In the image processing apparatus according to the first aspect of the present invention, the photographing information includes a flash value indicating whether or not a flash is emitted, and the brightness adjusting unit indicates that the flash value indicates that a flash is emitted. In this case, image quality adjustment for increasing the brightness of the image data may be executed. Under the shooting conditions of a night view, if there is flash emission, it can be appropriately determined that the shot image is a portrait image. In addition, by increasing the lightness in the image quality adjustment of the image data, a person image on a dark background can be clearly represented.
[0012]
In the image processing device according to the first aspect of the present invention, the shooting information includes a value of a subject distance range indicating a distance to a subject, and the brightness adjustment unit determines that the value of the subject distance range is When a near view is indicated, image quality adjustment for increasing the brightness of the image data may be performed. In such a case, since the subject is close, it can be appropriately determined that the captured image is a person image. In addition, by increasing the lightness in the image quality adjustment of the image data, a person image on a dark background can be clearly represented.
[0013]
The image processing device according to the first aspect of the present invention further includes a skin color pixel ratio value obtaining unit that analyzes the image data and obtains a ratio value of skin color pixels in the image data, wherein the brightness adjustment unit includes: When the ratio of the skin color pixels is 5% or more, image quality adjustment for increasing the brightness of the image data may be performed. In such a case, since the ratio of skin color pixels, which is a characteristic parameter in the human image, is used, it is possible to appropriately determine whether the captured image is a human image.
[0014]
In the image processing device according to the first aspect of the present invention, the photographing information further includes an exposure program setting value, and the brightness adjustment unit determines whether the exposure program setting value indicates a person photographing. The image quality may be adjusted to increase the brightness of the image data irrespective of the presence or absence of the strobe light, the subject distance range, or the ratio value of the skin color pixels. The exposure program setting value is a value arbitrarily set by the photographer, and appropriately represents a photographing condition at the time of photographing. Further, since the value indicates the photographing intention of the photographer, if the image processing is performed based on the exposure program set value, the image processing result according to the photographer's intention can be provided.
[0015]
In the image processing apparatus according to the first aspect of the present invention, the photographing information further includes a flash value indicating whether or not a strobe light is emitted, and the brightness adjusting unit determines that the exposure program setting value is a person photographing value. If the flash data indicates that the flash data is set or not set, and the flash value indicates that flash light is emitted, image quality adjustment for increasing the brightness of the image data may be performed. The exposure program setting value is a value arbitrarily set by the photographer, and is not necessarily set by all photographers. Therefore, by using the flash value in addition to the exposure program setting value to determine whether or not the captured image is a person image, more reliable person image determination can be performed.
[0016]
A second aspect of the present invention provides an image processing device that performs image processing on an image. An image processing apparatus according to a second aspect of the present invention includes: an image data acquiring unit that acquires image data that is data of the image; and a photographing information acquiring unit that acquires photographing information indicating a photographing condition at the time of photographing the image. A background lightness determining unit that determines the brightness of the background at the time of shooting using the obtained shooting information; and a person image is a shooting image corresponding to the obtained image data using the obtained shooting information. A human image determination unit that determines whether or not the background brightness at the time of shooting is low, and if it is determined that the image at the time of shooting is a human image, the brightness of the image data is And a brightness adjusting unit for performing image quality adjustment for increasing the image quality.
[0017]
According to the image processing apparatus according to the second aspect of the present invention, the brightness of the background at the time of shooting is determined using the shooting information, and the image at the time of shooting corresponding to the image data acquired using the shooting information is a human image Is determined, the background brightness at the time of shooting is determined to be low, and when the image at the time of shooting is determined to be a human image, the brightness of the image data is increased. , Image processing on a person image having a dark background can be appropriately executed.
[0018]
In the image processing device according to the second aspect of the present invention, the shooting information includes at least one of information indicating a shooting scene at the time of shooting and a brightness value indicating a luminance of a subject at the time of shooting. The background lightness determining means may be configured such that when the information indicating the shooting scene indicates that it was a night scene or evening scene at the time of shooting, or when the brightness value is equal to or less than a predetermined value, the background lightness at the time of shooting is low. It may be determined. In such a case, it is possible to more reliably determine whether the captured image has a dark background.
[0019]
In the image processing apparatus according to the second aspect of the present invention, the shooting information includes a setting value of an exposure program set at the time of shooting, a value indicating whether or not a flash is used, and a value of a subject distance range indicating a distance to the subject. And the person image determining means includes a value of an exposure program included in the shooting information, a value of presence / absence of strobe light emission, and a subject distance included in the shooting information. Based on the range value, it may be determined whether or not the image at the time of shooting is a human image. In such a case, it can be appropriately determined whether or not the captured image is a person image.
[0020]
In the image processing device according to the second aspect of the present invention, the brightness adjustment unit determines that the background brightness at the time of shooting is low, and determines that the image at the time of shooting is not a human image. Alternatively, image quality adjustment for lowering the brightness of the image data may be executed. In such a case, it is possible to appropriately execute image processing on a non-human image having a dark background using the shooting information.
[0021]
A third aspect of the present invention provides an image processing method for a person image having a dark background. An image processing method according to a third aspect of the present invention obtains image data that is data of the image, obtains shooting information indicating shooting conditions at the time of shooting the image, and uses the obtained shooting information. It is determined whether or not the image that has become the acquired image data is a person image having a dark background, and if it is determined that the image that has become the acquired image data is a person image having a dark background, And performing image quality adjustment for increasing the brightness of the image data in accordance with the acquired shooting information.
[0022]
According to the image processing method according to the third aspect of the present invention, it is possible to obtain the same functions and effects as those of the image processing apparatus according to the second aspect of the present invention.
[0023]
In the image processing method according to the third aspect of the present invention, the photographing information includes information indicating a photographing scene at the time of photographing, a set value of an exposure program set at the time of photographing, a value of presence or absence of strobe light, At least one of the luminance value of the subject, the value of the subject distance range indicating the distance to the subject, and the ratio value of the skin color pixels in the image, and whether the image is a person image having a dark background. The determination of whether
If the information indicating the shooting scene indicates that it was a night scene or evening scene at the time of shooting, or if the luminance value of the subject at the time of shooting is a predetermined value or less, it is determined that the background at the time of shooting was dark,
The acquisition is performed using at least one of the setting value of the exposure program, the value of the presence or absence of strobe light, the value of the subject distance range, and the ratio of the skin color pixels in the image included in the shooting information. It is characterized in that it includes determining whether or not the image that has become the image data is a person image. In such a case, it is possible to appropriately determine whether or not the image is a person image having a dark background.
[0024]
The image processing method according to the third aspect of the present invention further includes analyzing the image data to obtain a ratio value of flesh color pixels included in the image data, and obtaining the obtained image data as an image of a person. May be determined by reflecting the acquired skin color pixel ratio value in addition to the shooting information. In such a case, it can be more appropriately determined whether or not the captured image is a person image.
[0025]
The image processing apparatus according to the first and second aspects of the present invention, and the image processing method according to the third aspect of the present invention can also be implemented as an image processing program and a recording medium on which the image processing program is recorded. Can also be realized.
[0026]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an image processing apparatus according to the present invention will be described based on some embodiments with reference to the drawings.
[0027]
A. Configuration of image processing system:
A configuration of an image processing system to which the image processing apparatus according to the first embodiment can be applied will be described with reference to FIGS. FIG. 1 is an explanatory diagram illustrating an example of an image processing system including a personal computer as an image processing apparatus according to the first embodiment. FIG. 2 is an explanatory view showing a scene in which a photographing mode is selected in the digital still camera.
[0028]
The image processing system is a digital
[0029]
The
[0030]
As shown in FIG. 2, the digital
[0031]
The digital
[0032]
The digital
[0033]
The image file GF generated by the digital
[0034]
The
[0035]
B. Structure of image file:
The image file GF according to the present embodiment has, for example, a file structure (Exif file) conforming to the Exif format proposed by the Japan Electronics and Information Technology Industries Association (JEITA) as a standard for an image file format for digital still cameras, and C-Cube Microsystems. , Xing Technology, and Digital Origin (Radius), a file structure (JFIF file) conforming to the JFIF format, which is a standard for compatibility of JPEG data files, and parameters relating to image data in a tag format. A file structure (TIFF file) according to the TIFF format specified by the user can be provided. The Exif file can be classified into a JPEG-Exif file that stores JPEG image data of a lossy compression type and a TIFF-Exif file that stores TIFF image data of a lossless compression type, depending on the type of image data to be stored.
[0036]
A schematic configuration of an Exif image file as a JPEG data storage file that can be used in the present embodiment will be described with reference to FIGS. FIG. 3 is an explanatory diagram schematically showing the file configuration of the Exif image file. FIG. 4 is an explanatory diagram showing in detail the schematic internal structure of the shooting condition tag in the Exif image format that can be used in the present embodiment. FIG. 5 is an explanatory diagram showing a night scene scene determination element used when the
[0037]
The image file GF includes JPEG image data GD and an application / marker segment APP that stores information attached to the JPEG image data GD. In the application marker segment APP (IFD), a tag is used to specify each piece of information, and each piece of information may be called by a tag name. The application / marker segment APP shown in FIG. 3 includes a tag (area) for storing image processing control information GI, a tag (area) for storing Exif information, and thumbnail image data.
[0038]
The Exif information includes a tag for storing user information, a tag for storing shooting conditions, and the like. As the user information tag, a Makernote tag that can be used arbitrarily by an Exif file user (for example, a DSC maker) is prepared, and the image processing control information GI may be described in the Makernote tag. As shown in FIG. 4, the shooting condition tag describes values of various parameters relating to shooting conditions such as an exposure program and a shooting scene type.
[0039]
C. Image processing in personal computer 20:
The image processing executed in the
[0040]
The personal computer 20 (CPU 200) starts the image processing program when the memory card MC is inserted into the
[0041]
[0042]
The
[0043]
The image file GF processed in this flowchart stores JPEG image data, and the JPEG data is data obtained by compressing YCbCr data. Further, RGB data is generally used in image processing in personal computers PCs and printers at present. Therefore, expansion (decoding) of JPEG data and color conversion processing of YCbCr data to RGB data are required. The matrix S is a matrix that is generally used when converting YCbCr data into RGB data in the JFIF standard, and is a matrix that is well known to those skilled in the art. In the color conversion, a gamma correction process is performed to linearize the relationship with the XYZ values, and the image data GD is linearized.
[0044]
In this embodiment, in addition to a general YCbCr → RGB color conversion process using the matrix S, a matrix N including a matrix M taking into account the color reproduction characteristics of the
[0045]
Subsequently, the
[0046]
In the present embodiment, Exif information (shooting information SI) is used to execute appropriate brightness correction on each of a human image and a non-human image (landscape image) in a shooting scene with a dark image background such as a night scene or a sunset scene.
[0047]
[0048]
The photographing scene type is a photographing condition parameter intentionally set by the photographer, and is a parameter that can easily and reliably determine that the photographing condition is a night scene. Therefore, in the present embodiment, as described above, the shooting scene type is used as a determination element for determining whether or not the shooting condition is a night view. On the other hand, it is also expected that shooting is performed without setting the shooting scene type, that is, in a night view or a dark background while being set to the standard. Therefore, regardless of the intention of the photographer, it is determined whether or not the shooting scene is a dark scene using a luminance value indicating the luminance of the subject at the time of shooting, and the determination accuracy for the shooting scene is improved. Since the luminance value described in the Exif information indicates the luminance of the subject before the flash emission, the brightness of the shooting scene can be determined without considering the luminance change due to the flash emission. In the present embodiment, the night view image is used to mean not only a night view and a sunset view, but also a dark shooting scene such as an indoor scene with dark lighting and a shooting scene dark due to shadows.
[0049]
If the
[0050]
The exposure program is a photographing condition parameter that is intentionally set by the photographer, and is a parameter that can easily and reliably determine that the subject is a person. Therefore, in the present embodiment, as described above, the exposure program is used as one of the elements for determining whether or not the captured image is a person. Note that the term “person image” in the present embodiment does not necessarily mean that the subject is a person, but means an image centered on a subject located close to the digital
[0051]
If the
[0052]
The
[0053]
If the
[0054]
When the flash emission is described in the Exif information (step S250: Yes), the
[0055]
If the flash emission is not described in the Exif information (step S250: No), the
[0056]
If the captured image is a night scene non-person image, that is, a night scene scenery, by executing a correction for lowering the brightness on the image data GD, an output image that illuminates and the like or an output image that does not impair the depiction of a dark scenery Therefore, the brightness correction amount is set to the minus value brightness correction amount. Such an output image conforms to the photographer's intention to photograph a night scenery, and can execute image processing (brightness correction) that satisfies the photographer.
[0057]
Returning to FIG. 7, when the
[0058]
Here, a method of lightness correction will be briefly described. The brightness reference value Bstd as a reference for brightness correction is, for example, 8-bit information that can take a value of 0 to 255, and its standard value is set to 128. The brightness reference value Bstd is corrected by applying the determined brightness correction amount to the standard value. That is, Bstd = 128 + lightness correction amount. For example, when the lightness correction amount is set to +20, the lightness reference value Bstd is 128 + 20 = 148. On the other hand, when the brightness correction amount is set to −10, the brightness reference value Bstd is 128−10 = 118.
[0059]
The correction for bringing the brightness value of the image data GD closer to the reference value is executed based on the following equation.
[0060]
(Equation 1)
[0061]
The relationship between the input level and the output level used when executing the correction for bringing the brightness value of the image data GD closer to the reference value will be described with reference to FIG. When the brightness correction amount is a positive value and the correction for increasing the brightness is executed, for example, the output levels OL1 and OL2 are raised in accordance with the correction level at a point of 1/4 of the input level. On the other hand, when the lightness correction amount is a negative value and the correction for darkening the lightness is executed, for example, the output level OL3 is lowered according to the correction level at a point of / of the input level. Values excluding the point corresponding to the correction level are interpolated by a spline curve.
[0062]
Alternatively, the brightness correction level Brev may be directly increased or decreased without correcting the brightness reference value Bstd. For example, when the brightness correction amount is set to 10, the brightness correction level Brev = 10 + the brightness reference value Bstd. If the brightness reference value Bstd = 10, a brightness correction level Brev = 20 is obtained as a result. This value is used for correcting the tone curve for determining the output level of the brightness value of the image data GD with respect to the input level, and the brightness value of each pixel of the image data GD is corrected as described above. The brightness of the image data GD is adjusted.
[0063]
The
[0064]
[0065]
On the other hand, when the Exif information cannot be detected from the image file GF (Step S110: No), the
[0066]
As described above, according to the
[0067]
Further, according to the
[0068]
-2nd Example:
In the first embodiment, the determination of whether or not the image is a night scene person image has been completed by determining the parameter value of the flash. However, in the second embodiment, the luminance value, the subject distance range, the skin color ratio value Is used to further increase the determination accuracy. Since the personal computer according to the second embodiment has the same configuration as the
[0069]
The brightness correction amount determination processing using Exif information in the second embodiment will be described with reference to FIG. FIG. 10 is a flowchart showing a processing routine of a brightness correction amount determination process using Exif information executed in the second embodiment. In addition, in order to omit redundant description, the flash determination processing and subsequent steps are illustrated.
[0070]
When the flash emission is described in the Exif information (Step S250: Yes), the
[0071]
The arithmetic luminance value is a luminance value obtained by analyzing the image data GD, and is an image luminance value after flash emission at the time of photographing. On the other hand, the brightness value described in the Exif information is the subject brightness value before flash emission at the time of shooting. Therefore, when the luminance value is less than the arithmetic luminance value, it is considered that the luminance has increased due to the strobe light emission and the subject located at a short distance, and it can be determined that the image is a photograph of a person. . On the other hand, when the luminance value is equal to or greater than the arithmetic luminance value, it can be determined that the flash emission does not affect the captured image, the subject is not located at a short distance, and the image is a landscape image.
[0072]
When the subject distance range is the near view (step S2520: Yes),
[0073]
The subject distance range described in the Exif information is a parameter indicating a rough distance range between the digital
[0074]
The skin color ratio value is a parameter obtained when the
[0075]
When the skin color ratio value is 5% or more (Step S2530: Yes),
[0076]
As described above, according to the brightness correction amount determination processing using Exif information according to the second embodiment, it is possible to more accurately determine whether or not a captured image is a night scene portrait image. For example, in the case where the flash did not fire even though a person was photographed as a subject under night view conditions, it is further determined whether or not the image is a person image based on parameters suitable for determining other person images. The captured image can be determined more appropriately.
[0077]
-Other examples:
In the above embodiment, image processing is performed using the
[0078]
Further, in the above embodiment, the example in which the photographing information SI is described in the header of the image data has been described. However, each of these information SIs is provided as another data file that is associated with the image data GD on a one-to-one basis. May be.
[0079]
In the above embodiment, whether or not the shooting scene is a night scene is determined using Exif information (shooting information SI). However, the image processing apparatus which is added to or associated with the image data GD by the digital
[0080]
As described above, the image processing apparatus, the image processing method, and the image processing program according to the present invention have been described based on the embodiments. However, the above-described embodiments of the present invention are for facilitating understanding of the present invention. It is not intended to limit the invention. The present invention can be modified and improved without departing from the spirit and scope of the claims, and it is needless to say that the present invention includes equivalents thereof.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram illustrating an example of an image processing system including a personal computer as an image processing apparatus according to a first embodiment.
FIG. 2 is an explanatory diagram showing a scene where a photographing mode is selected in a digital still camera.
FIG. 3 is an explanatory diagram schematically showing a file configuration of an Exif image file.
FIG. 4 is an explanatory diagram showing in detail a schematic internal structure of a shooting condition tag in an Exif image format that can be used in the first embodiment.
FIG. 5 is an explanatory diagram showing night scene scene determination elements used when the
FIG. 6 is an explanatory diagram showing a person image determination element used when the
FIG. 7 is a flowchart illustrating a processing routine of image processing executed by the personal computer in the first embodiment.
FIG. 8 is a flowchart showing a lightness correction processing amount determination processing routine using a shooting condition SI executed by the personal computer in the first embodiment.
FIG. 9 is a graph conceptually showing a relationship between a lightness input level and an output level for each pixel of image data.
FIG. 10 is a flowchart illustrating a processing routine of a brightness correction amount determination process using Exif information executed in the second embodiment.
[Explanation of symbols]
10. Digital still camera (DSC)
11… Select / Enter button
12 ... Liquid crystal display
20 Personal computer
200: Central processing unit (CPU)
201: Read only memory (ROM)
202: Hard disk (HDD)
203: random access memory (RAM)
204 ... Card slot
205 ... input / output terminal
25 Display device
30 ... Printer
MC: Memory card
Claims (15)
前記画像のデータである画像データを取得する画像データ取得手段と、
前記画像の撮影時における撮影条件を示す撮影情報を取得する撮影情報取得手段と、
前記取得した撮影情報を用いて撮影時における背景の明度を判定する背景明度判定手段と、
前記撮影時の背景明度が低いと判定された場合には、前記取得した撮影情報に応じて前記画像データの明度を高くする画質調整または低くする画質調整を実行する明度調整手段とを備える画像処理装置。An image processing apparatus that performs image processing on an image,
Image data acquisition means for acquiring image data that is data of the image,
Shooting information obtaining means for obtaining shooting information indicating shooting conditions at the time of shooting the image,
Background lightness determining means for determining the lightness of the background at the time of shooting using the obtained shooting information,
Image processing comprising: a brightness adjustment unit that performs image quality adjustment to increase or decrease image brightness of the image data according to the acquired imaging information, when it is determined that the background brightness at the time of imaging is low. apparatus.
前記撮影情報には、撮影時の撮影場面を示す情報および撮影時における被写体の輝度を示す輝度値の少なくともいずれか一方が含まれており、
前記背景明度判定手段は、前記撮影場面を示す情報が撮影時に夜景または夕景であったことを示す場合、または、前記輝度値が所定値以下の場合には、前記撮影時の背景明度が低いと判定する画像処理装置。The image processing apparatus according to claim 1,
The shooting information includes at least one of information indicating a shooting scene at the time of shooting and a brightness value indicating the brightness of the subject at the time of shooting,
The background lightness determining means may be configured such that when the information indicating the shooting scene indicates that it was a night scene or evening scene at the time of shooting, or when the brightness value is equal to or less than a predetermined value, the background lightness at the time of shooting is low. Image processing device to determine.
前記撮影情報には、撮影時に設定された露出プログラムの設定値が含まれており、
前記明度調整手段は、前記露出プログラム設定値が人物撮影を示す場合には、前記画像データの明度を高くする画質調整を実行する画像処理装置。The image processing device according to claim 2,
The shooting information includes a setting value of an exposure program set at the time of shooting,
The image processing apparatus, wherein when the exposure program set value indicates a person photographing, the brightness adjustment unit performs image quality adjustment for increasing the brightness of the image data.
前記撮影情報には、ストロボの発光の有無を示すフラッシュ値が含まれており、
前記明度調整手段は、前記フラッシュ値がストロボ発光有りを示す場合には、前記画像データの明度を高くする画質調整を実行する画像処理装置。The image processing device according to claim 2,
The photographing information includes a flash value indicating whether or not a flash light is emitted,
The image processing device, wherein when the flash value indicates that flash light is emitted, the brightness adjustment unit performs image quality adjustment to increase the brightness of the image data.
前記撮影情報には、被写体との距離を示す被写体距離レンジの値が含まれており、
前記明度調整手段は、前記被写体距離レンジの値が近景を示す場合には、前記画像データの明度を高くする画質調整を実行する画像処理装置。The image processing device according to claim 2,
The shooting information includes a value of a subject distance range indicating a distance to the subject,
The image processing apparatus, wherein when the value of the subject distance range indicates a close-up view, the brightness adjustment unit performs image quality adjustment to increase the brightness of the image data.
前記画像データを解析して前記画像データ中の肌色画素の割合値を取得する肌色画素割合値取得手段を備え、
前記明度調整手段は、前記肌色画素の割合値が5%以上の場合には、前記画像データの明度を高くする画質調整を実行する画像処理装置。The image processing device according to claim 2 further includes:
A skin color pixel ratio value acquisition unit that analyzes the image data and obtains a ratio value of skin color pixels in the image data,
The image processing device, wherein the lightness adjusting means performs image quality adjustment for increasing the lightness of the image data when the skin color pixel ratio value is 5% or more.
前記撮影情報にはさらに、露出プログラム設定値が含まれており、
前記明度調整手段は、前記露出プログラム設定値が人物撮影を示す場合には、前記ストロボ発光の有無、前記被写体距離レンジまたは前記肌色画素の割合値にかかわらず、前記画像データの明度を高くする画質調整を実行する画像処理装置。The image processing apparatus according to any one of claims 4 to 6,
The shooting information further includes an exposure program setting value,
The brightness adjusting means increases the brightness of the image data irrespective of the presence or absence of the strobe light, the subject distance range, or the ratio value of the skin color pixel when the exposure program setting value indicates a person photographing. An image processing device that performs adjustment.
前記撮影情報にはさらに、ストロボュの発光の有無を示すフラッシュ値が含まれており、
前記明度調整手段は、前記露出プログラム設定値が人物撮影以外に設定されまたは未設定を示し、且つ、前記フラッシュ値がストロボ発光有りを示す場合には、前記画像データの明度を高くする画質調整を実行する画像処理装置。The image processing device according to claim 3,
The photographing information further includes a flash value indicating whether or not the strobe light is emitted,
The brightness adjustment unit performs image quality adjustment to increase the brightness of the image data when the exposure program setting value is set or not set to other than person photographing, and when the flash value indicates that flash light is emitted. Image processing device to execute.
前記画像のデータである画像データを取得する画像データ取得手段と、
前記画像の撮影時における撮影条件を示す撮影情報を取得する撮影情報取得手段と、
前記取得した撮影情報を用いて撮影時における背景の明度を判定する背景明度判定手段と、
前記取得した撮影情報を用いて前記取得した画像データに対応する撮影時の画像が人物画像であるか否かを判定する人物画像判定手段と、
前記撮影時の背景明度が低いと判定されると共に、前記撮影時の画像が人物画像であると判定された場合には、前記画像データの明度を高くする画質調整を実行する明度調整手段とを備える画像処理装置。An image processing apparatus that performs image processing on an image,
Image data acquisition means for acquiring image data that is data of the image,
Shooting information obtaining means for obtaining shooting information indicating shooting conditions at the time of shooting the image,
Background lightness determining means for determining the lightness of the background at the time of shooting using the obtained shooting information,
A person image determining unit that determines whether an image at the time of shooting corresponding to the obtained image data is a person image using the obtained shooting information,
When the background brightness at the time of shooting is determined to be low, and when the image at the time of shooting is determined to be a human image, brightness adjustment means for performing image quality adjustment to increase the brightness of the image data is provided. Image processing device provided.
前記撮影情報には、撮影時の撮影場面を示す情報および撮影時における被写体の輝度を示す輝度値の少なくともいずれか一方が含まれており、
前記背景明度判定手段は、前記撮影場面を示す情報が撮影時に夜景または夕景であったことを示す場合、または、前記輝度値が所定値以下の場合には、前記撮影時の背景明度が低いと判定する画像処理装置The image processing apparatus according to claim 9,
The shooting information includes at least one of information indicating a shooting scene at the time of shooting and a brightness value indicating the brightness of the subject at the time of shooting,
The background lightness determining means may be configured such that when the information indicating the shooting scene indicates that it was a night scene or evening scene at the time of shooting, or when the brightness value is equal to or less than a predetermined value, the background lightness at the time of shooting is low. Image processing device to determine
前記撮影情報には、撮影時に設定された露出プログラムの設定値、ストロボ発光の有無の値、および被写体との距離を示す被写体距離レンジの値の少なくともいずれか1つが含まれており、
前記人物画像判定手段は、前記撮影情報に含まれている、前記撮影情報に含まれている露出プログラムの値、ストロボ発光の有無の値、輝度値および被写体距離レンジの値に基づいて、前記撮影時の画像が人物画像であるか否かを判定する画像処理装置。In the image processing device according to claim 9 or 10,
The shooting information includes at least one of a setting value of an exposure program set at the time of shooting, a value of whether or not a flash is fired, and a value of a subject distance range indicating a distance to the subject.
The person image determination unit performs the shooting based on a value of an exposure program, a value of presence or absence of strobe light, a brightness value, and a value of a subject distance range included in the shooting information. An image processing device that determines whether or not the image at the time is a person image.
前記明度調整手段は、前記撮影時の背景明度が低いと判定されると共に、前記撮影時の画像が人物画像でないと判定された場合には、前記画像データの明度を低くする画質調整を実行する画像処理装置。The image processing apparatus according to claim 9,
The brightness adjuster executes image quality adjustment to reduce the brightness of the image data when it is determined that the background brightness at the time of shooting is low, and when it is determined that the image at the time of shooting is not a human image. Image processing device.
前記画像のデータである画像データを取得し、
前記画像の撮影時における撮影条件を示す撮影情報を取得し、
前記取得した撮影情報を用いて、前記取得した画像データとなった画像が暗い背景を有する人物画像であるか否かを判定し、
前記取得した画像データとなった画像が暗い背景を有する人物画像であると判定した場合には、前記取得した撮影情報に応じて前記画像データの明度を高くする画質調整を実行する画像処理方法。An image processing method for a person image having a dark background,
Obtaining image data which is data of the image,
Obtaining shooting information indicating shooting conditions at the time of shooting the image,
Using the obtained shooting information, determine whether the image that has become the obtained image data is a person image having a dark background,
An image processing method for performing image quality adjustment to increase the brightness of the image data in accordance with the acquired shooting information, when it is determined that the acquired image data is a human image having a dark background.
前記撮影情報には、撮影時の撮影場面を示す情報、並びに撮影時に設定された露出プログラムの設定値、ストロボ発光の有無の値、撮影時における被写体の輝度値および被写体との距離を示す被写体距離レンジの値の少なくともいずれか1つが含まれており、
前記画像が暗い背景を有する人物画像であるか否かの判定は、さらに、
前記撮影場面を示す情報が撮影時に夜景または夕景であったことを示す場合または前記輝度値が所定値以下の場合には、撮影時における背景は暗かったと判定し、
前記撮影情報に含まれている、前記露出プログラムの設定値、ストロボ発光の有無の値、および前記被写体距離レンジの値の少なくともいずれか1つを用いて前記取得した画像データとなった画像が人物画像であるか否かを判定することを含む画像処理方法。The image processing method according to claim 13,
The shooting information includes information indicating a shooting scene at the time of shooting, a setting value of an exposure program set at the time of shooting, a value of whether or not strobe light is emitted, a subject brightness value at shooting, and a subject distance indicating a distance to the subject. Contains at least one of the range values,
The determination as to whether the image is a person image having a dark background,
If the information indicating the shooting scene indicates that it was a night scene or evening scene at the time of shooting, or if the luminance value is equal to or less than a predetermined value, it is determined that the background at the time of shooting was dark,
The image that is the acquired image data using at least one of the setting value of the exposure program, the value of the presence or absence of strobe light emission, and the value of the subject distance range included in the shooting information is a person. An image processing method including determining whether the image is an image.
前記画像データを解析して前記画像データ中に含まれる肌色画素の割合値を取得し、
前記取得した画像データとなった画像が人物画像であるか否かの判定は、前記撮影情報に加えて、前記取得した肌色画素の割合値を反映して行われる画像処理方法。The image processing method according to claim 14, further comprising:
Analyzing the image data to obtain a ratio value of flesh color pixels included in the image data,
An image processing method in which the determination as to whether or not the acquired image data is a human image is performed by reflecting the acquired ratio of skin color pixels in addition to the photographing information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003140211A JP2004343610A (en) | 2003-05-19 | 2003-05-19 | Image processing for dark background image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003140211A JP2004343610A (en) | 2003-05-19 | 2003-05-19 | Image processing for dark background image |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004343610A true JP2004343610A (en) | 2004-12-02 |
Family
ID=33528988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003140211A Pending JP2004343610A (en) | 2003-05-19 | 2003-05-19 | Image processing for dark background image |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004343610A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007019762A (en) * | 2005-07-06 | 2007-01-25 | Ricoh Co Ltd | Image processor and image processing method |
CN109118447A (en) * | 2018-08-01 | 2019-01-01 | Oppo广东移动通信有限公司 | A kind of image processing method, picture processing unit and terminal device |
CN111897609A (en) * | 2020-07-14 | 2020-11-06 | 福建捷联电子有限公司 | Method for automatically adjusting optimal picture quality of display to display photographic picture |
-
2003
- 2003-05-19 JP JP2003140211A patent/JP2004343610A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007019762A (en) * | 2005-07-06 | 2007-01-25 | Ricoh Co Ltd | Image processor and image processing method |
JP4684030B2 (en) * | 2005-07-06 | 2011-05-18 | 株式会社リコー | Image processing apparatus and image processing method |
CN109118447A (en) * | 2018-08-01 | 2019-01-01 | Oppo广东移动通信有限公司 | A kind of image processing method, picture processing unit and terminal device |
CN111897609A (en) * | 2020-07-14 | 2020-11-06 | 福建捷联电子有限公司 | Method for automatically adjusting optimal picture quality of display to display photographic picture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7375848B2 (en) | Output image adjustment method, apparatus and computer program product for graphics files | |
US7932928B2 (en) | Method, apparatus, and computer program product for image processing with scene-dependent image processing condition | |
JP4609572B2 (en) | Output image adjustment of image data | |
US20080174677A1 (en) | Graphics data generation device and graphics data generation method | |
JP2004341889A (en) | Image brightness correction processing | |
JP2004166147A (en) | Self-adjustment of image quality according to brightness of object | |
JP2008236759A (en) | Output image adjustment of image data | |
JP2004341901A (en) | Decision of back light figure image | |
JP2004072488A (en) | Output image adjustment of image data | |
JP4007368B2 (en) | Output image adjustment of image data | |
JP2004088345A (en) | Image forming method, image processor, print preparation device, and storage medium | |
JP2005033514A (en) | Output image adjustment of image data | |
JP3915755B2 (en) | Output image adjustment of image data | |
JP2002314809A (en) | Adjustment of output image of image data | |
JP3960336B2 (en) | Image quality adjustment | |
JP2004343610A (en) | Image processing for dark background image | |
JP4320225B2 (en) | Image processing for image data | |
JP4509499B2 (en) | Image processing device | |
JP2002314834A (en) | Output image adjustment of image data | |
JP4838228B2 (en) | Output device for outputting image, output method, and program | |
JP4311465B2 (en) | Output image adjustment of image data | |
JP2005033503A (en) | Output image adjustment of image data | |
JP4232571B2 (en) | Output image adjustment of image data | |
JP5007762B2 (en) | Image processing apparatus, image processing method, and computer program for performing image processing | |
JP4375418B2 (en) | Image quality adjustment |