JP4415488B2 - Image forming apparatus, image data processing method, and recording medium recording image data processing program - Google Patents

Image forming apparatus, image data processing method, and recording medium recording image data processing program Download PDF

Info

Publication number
JP4415488B2
JP4415488B2 JP2000380912A JP2000380912A JP4415488B2 JP 4415488 B2 JP4415488 B2 JP 4415488B2 JP 2000380912 A JP2000380912 A JP 2000380912A JP 2000380912 A JP2000380912 A JP 2000380912A JP 4415488 B2 JP4415488 B2 JP 4415488B2
Authority
JP
Japan
Prior art keywords
pixel data
image
luminance
image data
color
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.)
Expired - Fee Related
Application number
JP2000380912A
Other languages
Japanese (ja)
Other versions
JP2002185793A (en
Inventor
伊公子 吉田
規之 西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Noritsu Koki Co Ltd
Original Assignee
Noritsu Koki 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 Noritsu Koki Co Ltd filed Critical Noritsu Koki Co Ltd
Priority to JP2000380912A priority Critical patent/JP4415488B2/en
Publication of JP2002185793A publication Critical patent/JP2002185793A/en
Application granted granted Critical
Publication of JP4415488B2 publication Critical patent/JP4415488B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Projection-Type Copiers In General (AREA)
  • Control Of Exposure In Printing And Copying (AREA)
  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、スキャナやディジタルカメラにより得られたディジタル画像データを、特にその主要被写体が適正な濃度になるように補正する技術に関する。
【0002】
【従来の技術】
カラーディジタル画像データの濃度補正方法として、RGB各色についての全画像データの色(濃度)を平均したときにグレー(灰色)となるように、RGB各色成分のヒストグラムを補正する方法が知られている。この方法は、「一般的な戸外の風景を撮影した場合に、その画像に記録されている色を全て混ぜ合わせると灰色に近くなる」というエバンスの定理に基づいている。
【0003】
【発明が解決しようとする課題】
しかしながらこの従来のカラーディジタル画像データの濃度補正方法では、例えば、明るい背景に対してフラッシュを用いずに人物を撮影した画像や、暗い背景に対してフラッシュを用いて人物を撮影した画像など、画面全体で濃度に偏りがある画像データを上記方法により濃度補正した場合、背景の影響を受けて主要被写体である人物が適正に補正されないと言う問題点を有していた。
【0004】
そこで、カラーディジタル画像データの中から主要被写体である人物の顔の色に対応する画像データを抽出し、抽出した画像データのみを用いて主要被写体の部分が適正濃度となるように補正する方法も考えられる。しかしながら、木造建築物の室内で撮影した場合、画像中に人の肌色に類似した色彩の部分が多く含まれるため、必ずしも主要被写体である人物が適正な濃度に補正されない可能性がある。同様に、髪の毛の色が茶色などのように肌色に近い場合も。髪の毛の部分も含めて濃度補正され、人物の顔の部分の濃度が適正に補正されない可能性がある。
【0005】
本発明は、上記従来例の問題点を解決するためになされたものであり、画像中の主要被写体の濃度を適正に補正することが可能な画像形成装置、画像データ処理方法及び画像データ処理プログラムを記録した記録媒体を提供することを目的としている。
【0006】
【課題を解決するための手段】
上記目的を達成するため、本発明画像形成装置は、複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生手段と、
モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定手段と、前記画像データに含まれる各画素データからその画素の色を特定する色特定手段と、特定された各画素の色の中に日本人の平均的な肌の色が含まれているか否かを判別し、前記肌の色を有する画素データを抽出する第1画素データ抽出手段と、逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出手段と、第2画素データ抽出手段により抽出された画素データを用いてその輝度の平均値を求める平均輝度演算手段と、求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算手段と、求められた補正量を用いて全画素データを補正する画像データ補正手段と、補正された画像データを用いて画像を形成する画像形成手段とを具備することを特徴とする。
【0007】
本発明の画像データ処理方法は、複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生ステップと、モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定ステップと、前記画像データに含まれる各画素データからその画素の色を特定する色特定ステップと、特定された各画素の色の中に日本人の平均的な肌の色が含まれているか否かを判別し、前記肌の色を有する画素データを抽出する第1画素データ抽出ステップと、逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出ステップと、第2画素データ抽出ステップで抽出された画素データを用いてその輝度の平均値を求める平均輝度演算ステップと、求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算ステップと、求められた補正量を用いて全画素データを補正する画像データ補正ステップと、補正された画像データを出力する補正画像データ出力ステップとを具備することを特徴とする。
【0008】
本発明画像データ処理プログラムを記録した記録媒体は、複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生処理と、モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定処理と、前記画像データからその画素の色を特定する色特定処理と、特定された各画素の色の中に日本人の平均的な肌の色が含まれているか否かを判別し、前記肌の色を有する画素データを抽出する第1画素データ抽出処理と、逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出処理と、第2画素データ抽出処理で抽出された全画素データを用いてその輝度の平均値を求める平均輝度演算手段と、求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算処理と、求められた補正量を用いて全画素データを補正する画像データ補正処理と、補正された画像データを出力する補正画像データ出力処理とをコンピュータに実行させるように記録されている。
【0009】
【発明の実施の形態】
本発明の実施形態について、ディジタルプリンタを例にして説明する。本実施形態に係るディジタルプリンタ(ディジタル式写真処理装置)の外観構成を図1に示す。
【0010】
ディジタルプリンタとは、ディジタルカメラで撮像した画像を直接印画紙片上にプリントしたり、銀塩フィルム上に形成された画像を一旦スキャナで読み込み、印画紙片上にプリントするためのものである。図1に示すように、ディジタルプリンタは、ディジタルカメラやスキャナの撮像素子の各画素に対応する印画紙上の微小領域をR(赤)、G(緑)及びB(青)又はY(黄)、M(マゼンタ)及びC(シアン)の三原色のいずれかの光で露光し、露光された印画紙を現像処理することによって画像を形成する画像形成部100と、入力されたディジタル画像データに所定の処理を施して画像形成部100に出力する画像データ処理部200で構成されている。
【0011】
画像形成部100は、それぞれ幅の異なる複数種類(例えば2種類)の長尺印画紙を巻回収納したマガジン101,102と、マガジン101又は102から引き出した印画紙を所定サイズに切断し、切断された印画紙片上に画像データ処理部200から送信された画像を露光する露光部103と、露光された印画紙片を現像、漂白、定着及び安定化処理する現像処理部104と、現像された印画紙片を乾燥する乾燥部105と、乾燥された印画紙片を例えばフィルム単位に仕分けるソータ部106等で構成されている。なお、画像形成部100は、従来のアナログ式の写真処理装置におけるフィルム上の画像を印画紙片上に拡大露光するための光源、レンズ及びシャッタ等は具備していない。
【0012】
画像データ処理部200は、メモリカードやCD−R等の記録媒体に記録されている画像データを読み込んだり、あるいは補正後の画像データをこれらの記録媒体に記録するためのデータ記録読み出し装置201と、フィルムや印画紙上に形成された画像を直接読み込むためのスキャナ202と、読み込んだ画像をモニタ表示するためのディスプレイ203と、逆光条件の設定、所定の画像処理、プリント処理の指示などを入力するためのキーボード204と、プリントする画像データに所定の処理を施し、露光ユニットを制御するための制御データに変換し、画像形成部100に出力するための制御回路(図示せず)等で構成されている。また、モデムやLANボード及び通信回線などを介して、他の装置との間で直接画像データの送受信が可能なように構成してもよい。
【0013】
本実施形態では、画像データの色情報を分析して、色情報を用いて主要被写体と思われる部分を自動的に認識する。
【0014】
次に、本実施形態のディジタルプリンタの機能を説明するためのブロック構成を図2に示す。
【0015】
画像データ入力部220は、例えば入出力インタフェース、CPU、ROM、RAMなどで構成され、データ記録読み出し装置201やスキャナ202から出力されたディジタル画像データを取り込み、RAMなどに一時的に記憶し、保存する。ここで、ディジタル画像データは、その画像データを撮像したディジタルカメラやスキャナなどの撮像素子の各画素からのR(赤)、G(緑)及びB(青)の各色成分ごとの輝度に関する出力信号(RGBデータ)をシリアルに配列したものであり、インタフェースを介してシリアルに入出力される。
【0016】
画像再生部221は、ディスプレイ203、CPU、ROM、RAMなどで構成され、入力された画像データを用いてディスプレイ203のモニタ画面上にプレスキャン画像を再生する
【0017】
逆光設定部222は、マウスやキーボード204、CPU、ROM、RAMなどで構成され、ディスプレイ203上に再生されているプレスキャン画像が逆光又は逆光に近い状態であるとオペレータやユーザが判断した場合に、マウスやキーボード204を操作して、逆光状態に対応する所定の信号を入力する。
【0018】
色特定部223は、CPU、ROM、RAMなどで構成され、入力された画像データに対して所定の処理を施し、各画素にそれぞれ対応する部分の色(以下、単に「画素の色」とする)を特定する。上記RGBデータは、色と輝度(明るさ)に関する情報であり、RGBデータに対して下記(数1)に示す演算処理を行い、輝度情報と色差情報を表すYCCデータ(C2,YY,C1)に変換する。これら輝度情報と色差情報を表すYCCデータ(C2,YY,C1)に変換すると、色特定部223は、RGBデータから色に関する情報だけを取り出すことができる。
【0019】
【数1】

Figure 0004415488
【0020】
図3は、上記C1を縦軸、C2を横軸として、色情報を2次元的に表したものである。図3中ハッチングで示した領域は、主要被写体として人物を撮影した場合における日本人の平均的な肌の色の範囲を表す。
【0021】
画素データ抽出部224は、CPU、ROM、RAMなどで構成され、第1画素データ抽出と第2画素データ抽出の2つの機能を行う。
【0022】
第1画素データ抽出の場合、色特定部223により特定された各画素の色をあらかじめ設定されている主要被写体を代表する所定の色、例えば人物の肌の色などと比較し、主要被写体に対応し、所定の色又は所定範囲に含まれる色を有する画素に対応する画像データを全て抽出し、RAMなどに記憶する。具体的には、全ての画素について、色特定部223により演算されたC1及びC2の値を、あらかじめROMなどに記憶されているLUT(ルックアップテーブル)の値と比較し、C1及びC2の値が上記所定の値と一致するか否か又は所定の範囲内に含まれるか否かを判断する。これにより、全画素データの中から主要被写体に関する画素データが抽出される。
【0023】
第2画素データ抽出の場合、第1画素データ抽出処理により抽出した画素データについてそれぞれ所定の処理を施し、各画素にそれぞれ対応する輝度を演算し、輝度ヒストグラムを作成する。次に、逆光設定部222により逆光設定された場合には、画素データのうち輝度の低い方から、抽出した画素データ数に対する所定の割合(例えば2/3)に相当する画素データをさらに抽出する(第2画素データ抽出)。また、逆光設定部222により逆光設定されていない場合には、画素データのうち輝度の高い方から、抽出した画素データ数の所定の割合(2/3)に相当する画素データをさらに抽出する(第2画素データ抽出)。
【0024】
平均輝度演算部225は、CPU、ROM、RAMなどで構成され、第2画素データ抽出処理により抽出された全ての画像データを用いて、主要被写体に対応する部分の輝度の平均値を演算する。本実施形態では、画像中の主要被写体を、背景などのその他の部分の輝度の影響を受けることなく適正な輝度(濃度)に補正することを目的としており、上記各処理を経ることにより、主要被写体の部分のみの輝度情報が得られる。
【0025】
補正量演算部226は、CPU、ROM、RAMなどで構成され、演算された主要被写体部分の輝度の平均値とあらかじめ設定されている適正輝度に相当する所定の輝度値と比較し、主要被写体の部分を適正輝度(適正濃度)にするために、輝度の平均値を所定の輝度値に一致させるために必要な補正量を演算し、RAMなどに記憶する。
【0026】
画像データ補正部227は、CPU、ROM、RAMなどで構成され、演算された補正量を用いて全ての画素に関する画像データの輝度(RGBデータ)を補正する。
【0027】
補正画像データ出力部228は、画像データ入力部220と同様に入出力インタフェース、CPU、ROM、RAMなどで構成され、画像形成部100に補正された画像データを出力する。
【0028】
画像形成部100は、補正後の画像データを用いて印画紙上に画像を形成する。なお、上記CPU、ROM、RAMはそれぞれ同一のものを兼用しても良いし、各部の構成に応じて適宜別のものを用いても良い。
【0029】
次に、実施形態における画像データ処理のフローチャートを図4〜図6に示す。まず、画像データ入力部により画像データが読み込まれると(ステップS51)、画像再生部221は、画像データ入力部220のRAMから画像データを読み出し、ディスプレイ203上にプレスキャン画像を表示する(ステップS53)。この状態で、ユーザ又はオペレータは、表示されているプレスキャン画像に関して輝度補正が必要か否かを判断し(ステップS55)、輝度補正が必要ない場合は、マウスやキーボードなどを用いてステップS51に戻り、次のプレスキャン画像を表示させる。
【0030】
一方、輝度補正が必要な場合、逆光設定部222は、例えばディスプレイ203上に所定のメッセージを表示し、ユーザやオペレータにプレスキャン画像が逆光又は逆光に近い状態であるか否かを問い、ユーザやオペレータによる入力結果を記憶する(ステップS57)。次に、色特定部223は、ディスプレイ上にカラーチャートなどを一覧表示し、ユーザ又はオペレータに、マウスやキーボード等を用いて主要被写体領域を特定するための色情報、例えば人物の肌の色などを選択させ、選択結果を色特定情報として設定する(ステップS59)。さらに、色特定部223は、画像データ入力部210のRAMから画像データを読み出し、上記(数1)に従って、各画素ごとの色情報C1及びC2を抽出し(ステップS61)、各画素ごとにその画素の色を特定する。
【0031】
主要被写体領域の色が特定されると、画素データ抽出部224は、特定した各画素の色と上記ステップS59で設定した主要被写体の色とを比較し(ステップS63)、主要被写体の色と同じ色を有する画素の画素データ又は輝度情報YYのみを抽出し、RAMなどに記憶する(第1画素データ抽出:ステップS65)。さらに、画素データ抽出部224は、全ての画素について画素の色の特定、比較及び画素データの抽出が完了したか否かを判断し(ステップS67)、全ての画素について完了するまで上記ステップS61からS67を繰り返す。
【0032】
全ての画素について画素の色の特定、比較及び画素データの抽出が完了すると、平均輝度演算部225は、ステップS65で抽出した画素データ又は輝度情報YYを用いて主要被写体の色と同じ色を有する全画素の輝度のヒストグラムを作成する(ステップS69)。
【0033】
次に、画素データ抽出部224は、ステップS57で入力された結果を判断し(ステップS71)、逆光条件が設定された場合に(ステップS71でYES)、抽出された画素データのうち輝度の低い方から所定の割合(第1画素データ抽出により抽出した画素データの2/3)の画素データを抽出し(第2画素データ抽出)(ステップS73)、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合(2/3)の画素データを抽出する(ステップS75)。画素データを抽出すると、平均輝度演算部225は、抽出した画素データ及びその輝度情報を用いて、主要被写体領域の輝度の平均値を演算する(ステップS77)。
【0034】
補正量演算部226は、演算された輝度の平均値とあらかじめ設定されている適正輝度に相当する所定の輝度値を比較し、輝度補正量を演算する(ステップS79)。輝度補正量が演算されると、その画像データを特定するための、例えばフィルムのコマ番号などと共に、輝度補正量を画像データ入力部210のRAMなどに保存する(ステップS81)。
【0035】
輝度補正量を保存すると、例えば補正量演算部226は、全ての画像データについて輝度補正量を演算したか否かを判断し(ステップS83)、全画像データについて輝度補正量の演算が終了していない場合はステップS57からS83までを繰り返す。
【0036】
全ての画像データについて輝度補正量を演算すると(ステップS83でYES)、画像データ補正部227は、各画像データ及びその画像データに関する輝度補正量を順に読み出し(ステップS85)、輝度補正量を用いて各画像データを補正し(ステップS87)、RAMなどに補正した画像データを保存する(ステップS89)。さらに、画像データ補正部227は、輝度補正の対象となっている全ての画像データについて輝度補正を行ったか否かを判断し(ステップS91)、補正が完了していない場合はステップS51からS91を繰り返す。
【0037】
全ての画像データの補正が完了すると、補正画像データ出力部228は、補正した画像データを画像形成部100に出力するか否かを判断する(ステップS93)。すなわち、補正した画像データを用いて画像を形成する場合、補正画像データ出力部228は、補正した画像データを画像形成部100に出力する(ステップS95)。そして、画像形成部100は、画像データ処理部200から出力された補正された画像データを用いて印画紙片上に画像を形成し(ステップS97)、このフローを終了する。
【0038】
次に、本実施形態による画像データの補正の効果について図7を参照しつつ説明する。ディジタルカメラなどにより撮像された画像が、例えば図7(b)に示すように、背景の輝度が高く(濃度が低く明るく)主要被写体の輝度が低い(濃度が高く暗い)「逆光シーン」であるとする。
【0039】
この画像データを補正せずにそのまま用いて画像を形成すると、図7(b)に示すように逆光シーンの画像が得られる。一方、エバンスの定理に従い、RGB各色についての全画像データの色を平均したときに灰色となるように、RGB各色成分を補正すると、図7(c)に示すように、背景が灰色になるように暗く補正され、元々輝度の低い(濃度が高く暗い)主要被写体である人物はさらに暗く補正され、そのディテールがほぼ完全につぶれてしまう。
【0040】
これに対して、本実施形態のように、主要被写体の部分を抽出し、さらに選択された主要被写体部分に含まれる画素データのうち輝度の低い方(暗い方)から所定の割合(2/3)の画素データを再抽出し、再抽出した画素データ及びその輝度情報を用いて主要被写体の部分の輝度(濃度)が適正となるように全画像データを補正すると、人の肌の色と同じ又は類似した色彩であって、主要被写体以外の部分(例えば背景の部分の木製の壁など)の影響を少なくすることができ、図7(a)に示すように、元々輝度の高い(濃度が低く明るい)背景はさらに明るく補正されるものの、主要被写体である人物は、そのディテールが明確に判別できるように適正輝度(適正濃度)に補正される。その結果、逆光シーンのように濃度に偏りのある画像であっても、適切な補正を行うことができる。
【0041】
なお、図7に示す例とは逆に、暗い場所でフラッシュ撮影をした場合のように、主要被写体の輝度が高く背景の輝度が低い場合、すなわち、逆光条件が設定されていない場合には、上記逆光シーンとは逆に、人の肌の色と同じ又は類似した色彩であって、主要被写体以外の部分(例えば背景の部分の木製の壁など)の方が主要被写体部分(例えば人物の顔の部分)よりも輝度が低いので、選択された主要被写体部分に含まれる画素データのうち輝度の高い方(明るい方)から所定の割合(2/3)の画素データを再抽出し、再抽出した画素データ及びその輝度情報を用いて主要被写体の部分の輝度(濃度)が適正となるように全画像データを補正すればよい
【0042】
その他の実施形態
上記実施形態では、主要被写体領域を特定し、主要被写体領域の輝度の平均値が適正輝度に相当する所定の輝度値になるように輝度補正量を決定するように構成したが、これに限定されるものではなく、輝度の平均値と所定の輝度値の差に対して、さらに所定の係数(例えば60〜80%の間の任意の値)を掛けた値を輝度補正量として用いても良い。すなわち、図3に示すように、主要被写体の色として人物の肌の色を例にしても、主要被写体の色は単一ではなく一定の色の範囲を有する場合もあることから、特定の色(例えば人物の肌の色)を有する領域のみを対象にして輝度を補正すると、その色に類似する他の色の領域に対して補正過剰となり、かえって補正後の画質が低下することも考えられる。また、補正前の主要被写体の輝度が適正輝度に対して極端に高い場合や逆に低い場合に、主要被写体領域の輝度を完全に適正輝度にまで補正すると、主要被写体以外の部分の輝度が異常に低くなったり又は高くなるおそれがある。従って、これらの場合には、主要被写体領域の輝度を完全に適正輝度にまで補正するのではなく、適正輝度に近い程度の補正でとどめておく方が好ましい。さらに、上記各実施形態では、主要被写体領域の色を専ら単色として扱ったが、これに限定されるものではなく、所定の範囲に含まれる複数の色としても良い。
【0043】
また、上記各実施形態では、補正前の画像をプレスキャン画像としてディスプレイ203のモニタ画面上に表示するように構成したが、さらに補正後の画像データを用いてプリント用の画像をディスプレイ203のモニタ画面上に表示しても良い。さらに、ディスプレイ203のモニタ画面上にプレスキャン画像を表示する場合及び主要被写体領域の輝度補正量を演算する場合に、画像データの画素数を間引いて使用しても良い。
【0044】
さらに、上記各実施形態では、画像形成装置としてディジタルプリンタを例にして説明したが、これに限定されるものではなく、パーソナルコンピュータ及びそれに接続されたカラープリンタ、例えば熱転写式カラープリンタ、インクジェット式カラープリンタ及びレーザ式カラープリンタなどであっても良い。
【0045】
さらに、本発明は画像形成装置に限定されず、パーソナルコンピュータで実行される画像データ補正方法及びその方法を実行するためのプログラムを記録した記録媒体も含む。
【0046】
【発明の効果】
以上説明したように、本発明画像形成装置によれば、複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生手段と、モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定手段と、前記画像データに含まれる各画素データからその画素の色を特定する色特定手段と、特定された各画素の色の中に所定の色が含まれているか否かを判別し、所定の色を有する画素データを抽出する第1画素データ抽出手段と、逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出手段と、第2画素データ抽出手段により抽出された画素データを用いてその輝度の平均値を求める平均輝度演算手段と、求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算手段と、求められた補正量を用いて全画素データを補正する画像データ補正手段と、補正された画像データを用いて画像を形成する画像形成手段とを具備する。
【0047】
また、本発明画像データ処理方法によれば、複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生ステップと、モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定ステップと、前記画像データに含まれる各画素データからその画素の色を特定する色特定ステップと、特定された各画素の色の中に所定の色が含まれているか否かを判別し、所定の色を有する画素データを抽出する第1画素データ抽出ステップと、逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出ステップと、第2画素データ抽出ステップで抽出された画素データを用いてその輝度の平均値を求める平均輝度演算ステップと、求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算ステップと、求められた補正量を用いて全画素データを補正する画像データ補正ステップと、補正された画像データを出力する補正画像データ出力ステップとを具備する。
【0048】
さらに、本発明画像データ処理プログラムを記録した記録媒体によれば、複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生処理と、モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定処理と、前記画像データからその画素の色を特定する色特定処理と、特定された各画素の色の中に所定の色が含まれているか否かを判別し、所定の色を有する画素データを抽出する第1画素データ抽出処理と、逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出処理と、第2画素データ抽出処理で抽出された全画素データを用いてその輝度の平均値を求める平均輝度演算手段と、求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算処理と、求められた補正量を用いて全画素データを補正する画像データ補正処理と、補正された画像データを出力する補正画像データ出力処理とをコンピュータに実行させるように記録されている。
【0049】
すなわち、これらの発明によれば、ユーザ又はオペレータが入力した主要被写体領域の色、例えば人物の肌色の領域を自動的に検出して画像データの輝度補正を行うので、画像ごとの主要被写体領域の選択処理が不要となり、例えば1枚の記録媒体に複数の画像データが記録されており、全ての画像をプリントする場合などでは、トータルの処理時間を短くすることが可能である。
【図面の簡単な説明】
【図1】 本発明の一実施形態に係るディジタルプリンタの外観構成を示す図である。
【図2】 図1の実施形態におけるディジタルプリンタのブロック構成を示す図である。
【図3】 図1の実施形態における色情報を2次元的に表した図である。
【図4】 図1の実施形態における実施形態における画像データ処理のフローチャートである。
【図5】 図4のフローチャートの続きである。
【図6】 図3及び図4のフローチャートの続きである。
【図7】 本発明による画像データの輝度補正の効果を説明するための図である。
【符号の説明】
100:画像形成部
200:画像データ処理部
220:画像データ入力部
221:画像再生部
222:逆光設定部
223:色特定部
224:画素データ抽出部
225:平均輝度演算部
226:補正量演算部
227:画像データ補正部
228:補正画像データ出力部 [0001]
BACKGROUND OF THE INVENTION
  The present invention relates to a technique for correcting digital image data obtained by a scanner or a digital camera so that its main subject has an appropriate density.
[0002]
[Prior art]
  As a density correction method for color digital image data, there is known a method for correcting a histogram of each RGB color component so that the color (density) of all the image data for each RGB color is gray (gray). . This method is based on Evans' theorem that "when a general outdoor landscape is photographed, all the colors recorded in the image are combined to become gray".
[0003]
[Problems to be solved by the invention]
  However, in this conventional color digital image data density correction method, for example, an image obtained by photographing a person on a light background without using a flash, an image obtained by photographing a person on a dark background using a flash, etc. When image data having a biased density as a whole is subjected to density correction by the above method, there is a problem that a person who is a main subject is not properly corrected due to the influence of the background.
[0004]
  Therefore, there is a method of extracting image data corresponding to the face color of the person who is the main subject from the color digital image data, and correcting only the extracted image data so that the main subject portion has an appropriate density. Conceivable. However, when a picture is taken in a room of a wooden building, the image includes a lot of color portions similar to the human skin color, and thus the person who is the main subject may not necessarily be corrected to an appropriate density. Similarly, when the hair color is close to skin color, such as brown. There is a possibility that the density of the hair part is corrected and the density of the face part of the person is not properly corrected.
[0005]
  The present invention has been made to solve the above-described problems of the conventional example, and an image forming apparatus, an image data processing method, and an image data processing program capable of appropriately correcting the density of a main subject in an image. An object of the present invention is to provide a recording medium on which is recorded.
[0006]
[Means for Solving the Problems]
  To achieve the above object, the present inventionofAn image forming apparatus includes: an image reproducing unit that reproduces an image on a monitor screen using image data composed of a plurality of pixel data;
  When the image reproduced on the monitor screen is backlit or close to backlitIt is configured so that the operator and user can select the backlight partBacklight setting means;Color specifying means for specifying the color of the pixel from each pixel data included in the image data, and determining whether or not the average skin color of the Japanese is included in the color of each specified pixel First pixel data extracting means for extracting pixel data having the skin color;When the backlight condition is set, pixel data of a predetermined ratio is extracted from the lower luminance of the pixel data included in the selected range, and when the backlight condition is not set, the selected range is set. A second pixel data extraction unit that extracts pixel data of a predetermined ratio from the higher luminance of the contained pixel data, and an average value of the luminance is obtained using the pixel data extracted by the second pixel data extraction unit. Average luminance calculation means, correction amount calculation means for calculating a correction amount for correcting the average value of the calculated luminance to a predetermined luminance value set in advance, and all pixel data using the calculated correction amount Image data correcting means for correcting the image and image forming means for forming an image using the corrected image data.
[0007]
  Of the present inventionThe image data processing method includes an image reproduction step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and an image reproduced on the monitor screen is in a backlight or a state close to backlight InIt is configured so that the operator and user can select the backlight partIn the backlight setting step, the color specifying step for specifying the color of the pixel from each pixel data included in the image data, and the color of each specified pixelJapanese average skin colorWhether or not is included,The skinA first pixel data extraction step for extracting pixel data having a predetermined color, and when a backlight condition is set, a predetermined proportion of pixel data is extracted from the lower luminance of the pixel data included in the selected range And a second pixel data extraction step for extracting a predetermined ratio of pixel data from the higher luminance of the pixel data included in the selected range when the backlight condition is not set, and second pixel data extraction An average luminance calculation step for obtaining an average value of the luminance using the pixel data extracted in the step, and a correction amount for correcting the obtained average value of the luminance to a predetermined luminance value set in advance by calculation A correction amount calculating step, an image data correction step for correcting all pixel data using the obtained correction amount, and corrected image data for outputting the corrected image data. Characterized by comprising an output step.
[0008]
  The present inventionofThe recording medium on which the image data processing program is recorded includes image reproduction processing for reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and the image reproduced on the monitor screen is backlit or backlit. If it ’s closeIt is configured so that the operator and user can select the backlight partBacklight setting processing, color specifying processing for specifying the color of the pixel from the image data, and the color of each specified pixelJapanese average skinWhether or not the color is included,The skinA first pixel data extraction process for extracting pixel data having a predetermined color, and when a backlight condition is set, a predetermined proportion of pixel data is extracted from the lower luminance of the pixel data included in the selected range And a second pixel data extraction process for extracting a predetermined proportion of pixel data from the higher luminance of the pixel data included in the selected range when the backlight condition is not set, and second pixel data extraction Average luminance calculation means for calculating an average value of the luminance using all pixel data extracted in the processing, and a correction amount for correcting the average value of the calculated luminance to a predetermined luminance value set in advance by calculation Computation of a calculated correction amount calculation process, an image data correction process for correcting all pixel data using the determined correction amount, and a corrected image data output process for outputting the corrected image data. It is recorded so as to execute the data.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
  Of the present inventionThe embodiment will be described using a digital printer as an example. FIG. 1 shows the external configuration of a digital printer (digital photographic processing apparatus) according to this embodiment.
[0010]
  The digital printer is for directly printing an image captured by a digital camera on a piece of photographic paper, or for reading an image formed on a silver salt film with a scanner and printing it on the piece of photographic paper. As shown in FIG. 1, a digital printer has a small area on a photographic paper corresponding to each pixel of an image sensor of a digital camera or a scanner as R (red), G (green) and B (blue) or Y (yellow), An image forming unit 100 that forms an image by exposing to light of one of the three primary colors of M (magenta) and C (cyan), and developing the exposed photographic paper; The image data processing unit 200 performs processing and outputs it to the image forming unit 100.
[0011]
  The image forming unit 100 cuts magazines 101 and 102 in which a plurality of types (for example, two types) of long photographic paper having different widths are wound and stored, and the photographic paper drawn from the magazine 101 or 102 into a predetermined size, and cuts the paper. An exposure unit 103 that exposes an image transmitted from the image data processing unit 200 on the printed photographic paper piece; a development processing unit 104 that develops, bleaches, fixes, and stabilizes the exposed photographic paper piece; and a developed print A drying unit 105 that dries the paper pieces and a sorter unit 106 that sorts the dried photographic paper pieces into, for example, a film unit. The image forming unit 100 does not include a light source, a lens, a shutter, and the like for enlarging and exposing an image on a film in a conventional analog photographic processing apparatus on a photographic paper piece.
[0012]
  The image data processing unit 200 reads image data recorded on a recording medium such as a memory card or a CD-R, or a data recording / reading device 201 for recording corrected image data on these recording media. A scanner 202 for directly reading an image formed on a film or photographic paper, a display 203 for displaying the read image on a monitor, setting of backlight conditions, predetermined image processing, print processing instructions, and the like are input. And a control circuit (not shown) for performing predetermined processing on the image data to be printed, converting it to control data for controlling the exposure unit, and outputting the control data to the image forming unit 100. ing. Further, the image data may be directly transmitted / received to / from another apparatus via a modem, a LAN board, a communication line, or the like.
[0013]
  In the present embodiment, the color information of the image data is analyzed, and the portion that seems to be the main subject is automatically recognized using the color information.
[0014]
  Next, FIG. 2 shows a block configuration for explaining the functions of the digital printer of this embodiment.
[0015]
  Image data input section220Is composed of, for example, an input / output interface, a CPU, a ROM, a RAM, and the like, takes in digital image data output from the data recording / reading apparatus 201 and the scanner 202, temporarily stores it in the RAM, and stores it. Here, the digital image data is an output signal relating to the luminance of each color component of R (red), G (green), and B (blue) from each pixel of an image sensor such as a digital camera or a scanner that images the image data. (RGB data) are serially arranged and input / output serially via an interface.
[0016]
  Image playback unit221Is composed of a display 203, a CPU, a ROM, a RAM, and the like, and reproduces a pre-scan image on the monitor screen of the display 203 using the input image data..
[0017]
  Backlight setting section222Is composed of a mouse and keyboard 204, CPU, ROM, RAM, etc., and when the operator or user determines that the pre-scan image reproduced on the display 203 is backlit or close to backlit, the mouse or keyboard A predetermined signal corresponding to the backlight condition is input by operating 204.
[0018]
  The color specifying unit 223 includes a CPU, a ROM, a RAM, and the like. The color specifying unit 223 performs predetermined processing on the input image data, and the color corresponding to each pixel (hereinafter simply referred to as “pixel color”). ). The RGB data is information regarding color and brightness (brightness), and the arithmetic processing shown in the following (Equation 1) is performed on the RGB data.Conversion into YCC data (C2, YY, C1) representing luminance information and color difference information is performed.When converted into YCC data (C2, YY, C1) representing the luminance information and the color difference information, the color specifying unit 223 can extract only the information about the color from the RGB data.
[0019]
[Expression 1]
Figure 0004415488
[0020]
  FIG.The color information is represented two-dimensionally, with C1 as the vertical axis and C2 as the horizontal axis. A hatched area in FIG. 3 represents an average skin color range of Japanese when a person is photographed as a main subject.
[0021]
  The pixel data extraction unit 224 includes a CPU, a ROM, a RAM, and the like, and performs two functions of first pixel data extraction and second pixel data extraction.
[0022]
  In the case of the first pixel data extraction, the color of each pixel specified by the color specifying unit 223 is compared with a predetermined color representative of a main subject that is set in advance, for example, the color of a person's skin, and corresponds to the main subject. Then, all image data corresponding to pixels having a predetermined color or a color included in a predetermined range is extracted and stored in a RAM or the like. Specifically, for all the pixels, the values of C1 and C2 calculated by the color specifying unit 223 are compared with the values of the LUT (lookup table) stored in advance in the ROM or the like, and the values of C1 and C2 are compared. Is determined to be equal to the predetermined value or within a predetermined range. Thereby, pixel data related to the main subject is extracted from all the pixel data.
[0023]
  In the case of the second pixel data extraction, predetermined processing is performed on the pixel data extracted by the first pixel data extraction processing, the luminance corresponding to each pixel is calculated, and a luminance histogram is created. Next, when the backlight setting is performed by the backlight setting unit 222, pixel data corresponding to a predetermined ratio (for example, 2/3) to the number of extracted pixel data is further extracted from the lower luminance of the pixel data. (Second pixel data extraction). If the backlight setting unit 222 does not set backlight, pixel data corresponding to a predetermined ratio (2/3) of the number of extracted pixel data is further extracted from the higher luminance of the pixel data ( Second pixel data extraction).
[0024]
  The average luminance calculation unit 225 includes a CPU, a ROM, a RAM, and the like.Second pixel data extraction processThe average value of the luminance of the portion corresponding to the main subject is calculated using all the image data extracted by the above.The present embodiment aims to correct the main subject in the image to an appropriate luminance (density) without being affected by the luminance of other parts such as the background. Luminance information for only the portion of the subject can be obtained.
[0025]
  Correction amount calculator226Is composed of a CPU, a ROM, a RAM, and the like, and compares the calculated average luminance of the main subject portion with a predetermined luminance value corresponding to a preset appropriate luminance, and sets the main subject portion to the appropriate luminance ( In order to obtain an appropriate density, a correction amount necessary for matching the average luminance value with a predetermined luminance value is calculated and stored in a RAM or the like.
[0026]
  Image data correction unit227Comprises a CPU, ROM, RAM, etc., and corrects the luminance (RGB data) of the image data for all pixels using the calculated correction amount.
[0027]
  Corrected image data output unit228The image data input unit220In the same manner as described above, the image forming unit 100 includes an input / output interface, a CPU, a ROM, and a RAM, and outputs corrected image data.
[0028]
  The image forming unit 100 forms an image on the photographic paper using the corrected image data. The CPU, ROM, and RAM may be the same as each other, or different ones may be used as appropriate according to the configuration of each unit.
[0029]
  next,BookThe flowchart of the image data processing in the embodiment4 to 6Shown in First, when image data is read by the image data input unit (stepS51), Image playback unit221The image data input unit220Image data is read out from the RAM, and a pre-scan image is displayed on the display 203 (stepS53). In this state, the user or operator determines whether or not brightness correction is necessary for the displayed pre-scan image (step S1).S55) If you do not need brightness correction, use a mouse or keyboardS51Return to, and display the next pre-scanned image.
[0030]
  On the other hand, if brightness correction is required,The backlight setting unit 222 displays, for example, a predetermined message on the display 203, asks the user or operator whether the pre-scan image is in backlight or near backlight, and stores the input result by the user or operator ( Step S57). Next, the color specifying unit 223 displays a list of color charts on the display, and color information for specifying a main subject area using a mouse, a keyboard, or the like to a user or an operator, such as a person's skin color, etc. And set the selection result as color specification information.(StepS59).Further, the color specifying unit 223 reads the image data from the RAM of the image data input unit 210, extracts the color information C1 and C2 for each pixel according to the above (Equation 1) (step S61), and for each pixel, Specify the color of the pixel.
[0031]
  Once the color of the main subject area is identified,The pixel data extraction unit 224 compares the color of each identified pixel with the color of the main subject set in step S59 (step S63), and pixel data or luminance information YY of a pixel having the same color as the color of the main subject. Are extracted and stored in a RAM or the like (first pixel data extraction: step S65). Further, the pixel data extraction unit 224 determines whether or not the pixel color specification, comparison, and pixel data extraction have been completed for all pixels (step S67), and from step S61 until all pixels have been completed. Repeat S67.
[0032]
  When the pixel color specification, comparison, and pixel data extraction are completed for all the pixels, the average luminance calculation unit 225 uses the pixel data or luminance information YY extracted in step S65.Create a histogram of the luminance of all pixels that have the same color as the main subject (StepS69).
[0033]
  Next, the pixel data extraction unit224StepS57Determine the result entered in (StepS71), When the backlight condition is set (StepS71YES), pixel data of a predetermined ratio (2/3 of the pixel data extracted by the first pixel data extraction) is extracted from the lower luminance of the extracted pixel data (second pixel data extraction) (stepS73) When the backlight condition is not set, pixel data of a predetermined ratio (2/3) is extracted from the higher luminance out of the pixel data included in the selected range (stepS75). When the pixel data is extracted, the average luminance calculation unit225Calculates the average value of the luminance of the main subject region using the extracted pixel data and its luminance information (stepS77).
[0034]
  Correction amount calculator226Compares the calculated average value of brightness with a predetermined brightness value corresponding to a preset appropriate brightness, and calculates the brightness correction amount (stepS79). When the luminance correction amount is calculated, the luminance correction amount is stored in the RAM or the like of the image data input unit 210 together with, for example, the film frame number for specifying the image data (step).S81).
[0035]
  When you save the brightness correction amount, for exampleThe correction amount calculation unit 226 determines whether or not the luminance correction amount has been calculated for all the image data (step S83). If the calculation of the luminance correction amount has not been completed for all the image data, the correction amount calculation unit 226 determines from step S57 to S83.Repeat until.
[0036]
  About all image dataBrightness correction amount(Step)S83YES), image data correction unit227Reads out each image data and the luminance correction amount related to the image data in order (stepS85) And correct each image data using the brightness correction amount (stepS87), And store the corrected image data in the RAM (step)S89). Furthermore, the image data correction unit227Determines whether or not the luminance correction has been performed on all the image data subject to the luminance correction (stepS91), If the correction is not complete, stepS51FromS91repeat.
[0037]
  When all the image data has been corrected, the corrected image data output unit228 determines whether or not to output the corrected image data to the image forming unit 100 (stepS93). That is, when an image is formed using the corrected image data, the corrected image data output unit228Outputs the corrected image data to the image forming unit 100 (stepS95). Then, the image forming unit 100 forms an image on the photographic paper piece using the corrected image data output from the image data processing unit 200 (Step S1).S97), This flow is finished.
[0038]
  Next, the effect of image data correction according to the present embodimentFIG.Will be described with reference to FIG. An image captured by a digital camera or the like is, for example,FIG.As shown in (b), it is assumed that the background scene is a “backlit scene” where the luminance of the background is high (the density is low and bright) and the main subject is low (the density is high and dark).
[0039]
  If this image data is used as it is without correction,FIG.As shown in (b), an image of a backlight scene is obtained. On the other hand, according to Evans' theorem, correcting each RGB color component so that it becomes gray when the colors of all the image data for each RGB color are averaged,FIG.As shown in (c), the background is corrected to be dark so that the background is gray, and the person who is the main subject with originally low brightness (high density and darkness) is further corrected to dark, and the details are almost completely destroyed.
[0040]
  On the other hand, as in the present embodiment, a main subject portion is extracted, and a predetermined ratio (2/3) from the lower luminance (darker) of the pixel data included in the selected main subject portion. ) Pixel data is re-extracted, and using the re-extracted pixel data and its luminance information, all image data is corrected so that the luminance (density) of the main subject is appropriate, the same as the human skin color. Or a similar color that can reduce the influence of parts other than the main subject (such as a wooden wall in the background)FIG.As shown in (a), although the background with originally high brightness (low density and light) is corrected more brightly, the person who is the main subject has the proper brightness (proper density) so that the details can be clearly identified. It is corrected. As a result, an appropriate correction can be performed even for an image with a biased density, such as a backlight scene.
[0041]
  In addition,FIG.Contrary to the example shown in the above, when the main subject has a high brightness and the background brightness is low, as in the case of flash photography in a dark place, that is, when the backlight condition is not set, Conversely, the color is the same as or similar to the color of the person's skin, and the part other than the main subject (for example, the wooden wall of the background part) is better than the main subject part (for example, the face of the person) Since the luminance is low, pixel data of a predetermined ratio (2/3) is re-extracted from the higher luminance (brighter) of the pixel data included in the selected main subject portion, and the re-extracted pixel data and All image data may be corrected using the luminance information so that the luminance (density) of the main subject portion is appropriate..
[0042]
  Other embodiments
  the aboveEmbodimentThe main subject area is specified, and the luminance correction amount is determined so that the average luminance value of the main subject area becomes a predetermined luminance value corresponding to the appropriate luminance. However, the present invention is not limited to this. Alternatively, a value obtained by multiplying the difference between the average luminance value and the predetermined luminance value by a predetermined coefficient (for example, an arbitrary value between 60% and 80%) may be used as the luminance correction amount. That is, as shown in FIG. 3, even if the skin color of a person is taken as an example of the color of the main subject, the color of the main subject may not be a single color but may have a certain color range. If the luminance is corrected only for a region having (for example, the color of a person's skin), the correction is excessive for other color regions similar to that color, and the image quality after correction may be deteriorated. . Also, if the brightness of the main subject before correction is extremely high or low compared to the appropriate brightness, if the brightness of the main subject area is completely corrected to the proper brightness, the brightness of the parts other than the main subject will be abnormal. May become low or high. Therefore, in these cases, it is preferable not to completely correct the luminance of the main subject area to the appropriate luminance, but to correct the luminance close to the appropriate luminance. Further, in each of the above embodiments, the color of the main subject area is treated as a single color, but the present invention is not limited to this, and a plurality of colors included in a predetermined range may be used.
[0043]
  In each of the above embodiments, the image before correction is configured to be displayed on the monitor screen of the display 203 as a pre-scanned image. However, the image for printing is further displayed on the monitor of the display 203 using the corrected image data. It may be displayed on the screen. Further, when displaying a pre-scan image on the monitor screen of the display 203 and when calculating the luminance correction amount of the main subject area, the number of pixels of the image data may be thinned.
[0044]
  Furthermore, in each of the above-described embodiments, the digital printer is described as an example of the image forming apparatus. However, the present invention is not limited to this, and the personal computer and a color printer connected thereto, for example, a thermal transfer color printer, an ink jet color printer, A printer, a laser color printer, or the like may be used.
[0045]
  Furthermore, the present invention is not limited to an image forming apparatus, but also includes an image data correction method executed by a personal computer and a recording medium on which a program for executing the method is recorded.
[0046]
【The invention's effect】
  As explained above, the present inventionofAccording to the image forming apparatus, the image reproducing unit that reproduces an image on the monitor screen using image data composed of a plurality of pixel data, and the image reproduced on the monitor screen are in a backlight or a state close to backlight. In caseIt is configured so that the operator and user can select the backlight partA backlight setting unit, a color specifying unit that specifies the color of the pixel from each pixel data included in the image data, and whether or not a predetermined color is included in the color of each specified pixel First pixel data extracting means for extracting pixel data having a predetermined color and pixel data of a predetermined ratio from the lower luminance of the pixel data included in the selected range when the backlight condition is set Second pixel data extracting means for extracting pixel data of a predetermined ratio from the higher luminance of the pixel data included in the selected range when the backlight condition is not set, and a second pixel Average luminance calculation means for obtaining the average value of the luminance using pixel data extracted by the data extraction means, and a correction amount for correcting the obtained average value of the luminance to a predetermined luminance value set in advance. Comprising the further obtaining a correction amount calculating means, and the image data correcting means for correcting all pixel data by using the correction amount obtained, and an image forming means for forming an image using the corrected image data.
[0047]
  In addition, the present inventionofAccording to the image data processing method, an image reproduction step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and an image reproduced on the monitor screen in a backlight or a state close to backlight In some casesIt is configured so that the operator and user can select the backlight partA backlight setting step, a color specifying step for specifying the color of the pixel from each pixel data included in the image data, and whether or not a predetermined color is included in the color of each specified pixel A first pixel data extracting step for extracting pixel data having a predetermined color, and pixel data of a predetermined ratio from the lower luminance of the pixel data included in the selected range when a backlight condition is set A second pixel data extracting step for extracting a predetermined proportion of pixel data from the higher luminance of the pixel data included in the selected range when the backlight condition is not set, and a second pixel An average luminance calculation step for obtaining an average value of the luminance using the pixel data extracted in the data extraction step, and correcting the obtained average value of the luminance to a predetermined luminance value set in advance. A correction amount calculation step for calculating a correction amount for calculating, an image data correction step for correcting all pixel data using the calculated correction amount, and a corrected image data output step for outputting the corrected image data To do.
[0048]
  Furthermore, the present inventionofAccording to the recording medium on which the image data processing program is recorded, the image reproduction processing for reproducing the image on the monitor screen using the image data composed of a plurality of pixel data, and the image reproduced on the monitor screen are backlit or When it is close to backlightIt is configured so that the operator and user can select the backlight partA backlight setting process, a color specifying process for specifying the color of the pixel from the image data, and determining whether or not a predetermined color is included in the color of each specified pixel, has a predetermined color When a first pixel data extraction process for extracting pixel data and a backlight condition are set, a predetermined ratio of pixel data is extracted from the lower luminance of the pixel data included in the selected range, and the backlight condition Is not set, the pixel data included in the selected range is extracted by a second pixel data extraction process that extracts a predetermined ratio of pixel data from the higher luminance and the second pixel data extraction process. Average luminance calculation means for obtaining an average value of the luminance using all pixel data, and a correction amount calculation for calculating a correction amount for correcting the obtained average value of luminance to a predetermined luminance value set in advance. place When, are recorded so as to perform the image data correction processing for correcting all pixel data by using the correction amount obtained and the corrected image data output process of outputting the corrected image data to the computer.
[0049]
  That is, according to these inventions, the color of the main subject area input by the user or the operator, for example, the human skin color area is automatically detected to correct the brightness of the image data.Per imageFor example, when a plurality of image data are recorded on one recording medium and all images are printed, the total processing time can be shortened. .
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an external configuration of a digital printer according to an embodiment of the present invention.
[Figure 2]Of FIG.1 is a block diagram illustrating a digital printer according to an embodiment.
[Fig. 3]In the embodiment of FIG.It is a figure which expressed color information two-dimensionally.
[Fig. 4]In the embodiment of FIG.5 is a flowchart of image data processing in the embodiment.
[Figure 5]It is a continuation of the flowchart of FIG.
[Fig. 6]FIG. 5 is a continuation of the flowcharts of FIGS. 3 and 4.
[Fig. 7]It is a figure for demonstrating the effect of the brightness correction of the image data by this invention.
[Explanation of symbols]
100: Image forming unit
200: Image data processing unit
220: Image data input unit
221: Image reproduction unit
222: Backlight setting unit
223: Color specifying part
224: Pixel data extraction unit
225: Average luminance calculation unit
226: Correction amount calculation unit
227: Image data correction unit
228: Corrected image data output unit

Claims (3)

複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生手段と、
モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定手段と、
前記画像データに含まれる各画素データからその画素の色を特定する色特定手段と、
特定された各画素の色の中に日本人の平均的な肌の色が含まれているか否かを判別し、前記肌の色を有する画素データを抽出する第1画素データ抽出手段と、
逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出手段と、
第2画素データ抽出手段により抽出された画素データを用いてその輝度の平均値を求める平均輝度演算手段と、
求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算手段と、
求められた補正量を用いて全画素データを補正する画像データ補正手段と、
補正された画像データを用いて画像を形成する画像形成手段と
を具備する
ことを特徴とする画像形成装置。
Image reproduction means for reproducing an image on a monitor screen using image data composed of a plurality of pixel data ;
A backlight setting means configured so that an operator or a user can select a backlight portion when the image reproduced on the monitor screen is backlight or in a state close to backlight ,
Color specifying means for specifying the color of the pixel from each pixel data included in the image data;
First pixel data extracting means for determining whether or not a Japanese average skin color is included in the color of each identified pixel, and extracting pixel data having the skin color;
When the backlight condition is set, pixel data of a predetermined ratio is extracted from the lower luminance of the pixel data included in the selected range, and when the backlight condition is not set, the selected range is Second pixel data extraction means for extracting a predetermined proportion of pixel data from the higher luminance of the included pixel data;
Average luminance calculation means for obtaining an average value of the luminance using the pixel data extracted by the second pixel data extraction means;
A correction amount calculation means for calculating a correction amount for correcting the average value of the determined luminance to a predetermined luminance value set in advance;
Image data correction means for correcting all pixel data using the determined correction amount;
An image forming apparatus comprising: an image forming unit that forms an image using the corrected image data.
複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生ステップと、
モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定ステップと、
前記画像データに含まれる各画素データからその画素の色を特定する色特定ステップと、
特定された各画素の色の中に日本人の平均的な肌の色が含まれているか否かを判別し、前記肌の色を有する画素データを抽出する第1画素データ抽出ステップと、
逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出ステップと、
第2画素データ抽出ステップで抽出された画素データを用いてその輝度の平均値を求める平均輝度演算ステップと、
求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算ステップと、
求められた補正量を用いて全画素データを補正する画像データ補正ステップと、補正された画像データを出力する補正画像データ出力ステップ
を具備する
ことを特徴とする画像データ処理方法。
An image reproduction step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data;
A backlight setting step configured so that an operator or a user can select a backlight portion when the image reproduced on the monitor screen is backlight or in a state close to backlight ,
A color specifying step of specifying the color of the pixel from each pixel data included in the image data;
A first pixel data extraction step of determining whether or not a Japanese average skin color is included in the color of each identified pixel, and extracting pixel data having the skin color ;
When the backlight condition is set, pixel data of a predetermined ratio is extracted from the lower luminance of the pixel data included in the selected range, and when the backlight condition is not set, the selected range is A second pixel data extraction step of extracting a predetermined ratio of pixel data from the higher luminance of the included pixel data;
An average luminance calculation step for obtaining an average value of the luminance using the pixel data extracted in the second pixel data extraction step;
A correction amount calculating step for calculating a correction amount for correcting the average value of the determined luminance to a predetermined luminance value set in advance;
An image data processing method comprising: an image data correction step for correcting all pixel data using the obtained correction amount; and a corrected image data output step for outputting the corrected image data.
複数の画素データで構成された画像データを用いてモニタ画面上に画像を再生する画像再生処理と、
モニタ画面上に再生された画像が逆光又は逆光に近い状態である場合にオペレータやユーザが逆光部分を選定できるように構成されている逆光設定処理と、
前記画像データからその画素の色を特定する色特定処理と、
特定された各画素の色の中に日本人の平均的な肌の色が含まれているか否かを判別し、前記肌の色を有する画素データを抽出する第1画素データ抽出処理と、
逆光条件が設定された場合に、選択された範囲に含まれる画素データのうち輝度の低い方から所定の割合の画素データを抽出し、逆光条件が設定されていない場合に、選択された範囲に含まれる画素データのうち輝度の高い方から所定の割合の画素データを抽出する第2画素データ抽出処理と、
第2画素データ抽出処理で抽出された全画素データを用いてその輝度の平均値を求める平均輝度演算手段と、
求められた輝度の平均値をあらかじめ設定された所定の輝度値に補正するための補正量を演算により求める補正量演算処理と、
求められた補正量を用いて全画素データを補正する画像データ補正処理と、補正された画像データを出力する補正画像データ出力処理と
をコンピュータに実行させるように記録されている
ことを特徴とする画像データ処理プログラムを記録した記録媒体
Image reproduction processing for reproducing an image on a monitor screen using image data composed of a plurality of pixel data; and
A backlight setting process configured so that an operator or user can select a backlight portion when the image reproduced on the monitor screen is in the backlight or near backlight state; and
A color specifying process for specifying the color of the pixel from the image data;
A first pixel data extraction process for determining whether or not a Japanese average skin color is included in each identified pixel color, and extracting pixel data having the skin color;
When the backlight condition is set, pixel data of a predetermined ratio is extracted from the lower luminance of the pixel data included in the selected range, and when the backlight condition is not set, the selected range is A second pixel data extraction process for extracting a predetermined proportion of pixel data from the higher luminance of the included pixel data;
Average luminance calculation means for calculating an average value of the luminance using all pixel data extracted in the second pixel data extraction process;
A correction amount calculation process for calculating a correction amount for correcting the average value of the calculated luminance to a predetermined luminance value set in advance;
An image data correction process for correcting all pixel data using the obtained correction amount and a corrected image data output process for outputting corrected image data are recorded so as to be executed by a computer. A recording medium on which an image data processing program is recorded .
JP2000380912A 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program Expired - Fee Related JP4415488B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000380912A JP4415488B2 (en) 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000380912A JP4415488B2 (en) 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Publications (2)

Publication Number Publication Date
JP2002185793A JP2002185793A (en) 2002-06-28
JP4415488B2 true JP4415488B2 (en) 2010-02-17

Family

ID=18849018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000380912A Expired - Fee Related JP4415488B2 (en) 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Country Status (1)

Country Link
JP (1) JP4415488B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7006668B2 (en) * 1999-12-28 2006-02-28 Canon Kabushiki Kaisha Image processing method and image processing apparatus
EP1545135B1 (en) 2002-09-26 2013-04-03 Seiko Epson Corporation Adjusting output image of image data
JP2004236110A (en) * 2003-01-31 2004-08-19 Canon Inc Image processor, image processing method, storage medium and program
JP4655210B2 (en) * 2005-07-05 2011-03-23 ノーリツ鋼機株式会社 Density correction curve generation method and density correction curve generation module

Also Published As

Publication number Publication date
JP2002185793A (en) 2002-06-28

Similar Documents

Publication Publication Date Title
US7372597B2 (en) Tonescales for geographically localized digital rendition of people
US7133070B2 (en) System and method for deciding when to correct image-specific defects based on camera, scene, display and demographic data
US7289664B2 (en) Method of detecting and correcting the red eye
CN100389592C (en) Image processing apparatus for print process of photographed image
JP2005190435A (en) Image processing method, image processing apparatus and image recording apparatus
JP4600424B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for development processing
JPH11239269A (en) Image processing method
JP4281244B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP2001148780A (en) Method for setting red-eye correction area and red-eye correction method
JP2003283731A (en) Image input apparatus, image output apparatus, and image recorder comprising them
JP2003204459A (en) Digital camera and image reproducing apparatus
EP1370061A1 (en) Method, apparatus, and program for image processing
JP2005192162A (en) Image processing method, image processing apparatus, and image recording apparatus
JP4415488B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP5070921B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for development processing
JP4333016B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP3929570B2 (en) Image processing apparatus, image processing system, image processing method, and storage medium
JPH08110603A (en) Color adjusting method and device
JP2007249802A (en) Image processor and image processing method
JP4285868B2 (en) Main subject extraction method, image processing apparatus, and imaging apparatus
JP4807315B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for executing development processing
JP4377938B2 (en) Image processing method and image processing apparatus
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JPH11308474A (en) Image processor
JP4317803B2 (en) Image processing method and image processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090525

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090728

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091104

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091117

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121204

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121204

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees