JP2004336656A - Method and apparatus for luminance and saturation adjusting and image output apparatus - Google Patents

Method and apparatus for luminance and saturation adjusting and image output apparatus Download PDF

Info

Publication number
JP2004336656A
JP2004336656A JP2003133437A JP2003133437A JP2004336656A JP 2004336656 A JP2004336656 A JP 2004336656A JP 2003133437 A JP2003133437 A JP 2003133437A JP 2003133437 A JP2003133437 A JP 2003133437A JP 2004336656 A JP2004336656 A JP 2004336656A
Authority
JP
Japan
Prior art keywords
saturation
image data
luminance
input
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003133437A
Other languages
Japanese (ja)
Inventor
Hiromichi Mizukami
裕道 水上
Hiroaki Takano
博明 高野
Tsukasa Ito
司 伊藤
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.)
Konica Minolta Photo Imaging Inc
Original Assignee
Konica Minolta Photo Imaging Inc
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 Konica Minolta Photo Imaging Inc filed Critical Konica Minolta Photo Imaging Inc
Priority to JP2003133437A priority Critical patent/JP2004336656A/en
Publication of JP2004336656A publication Critical patent/JP2004336656A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To apply luminance and saturation adjustment to input image data so that the saturation range of the input image data is within the saturation ranges of output devices. <P>SOLUTION: A luminance and saturation adjusting apparatus 120 calculates the saturation value of each pixel of the input image data to be adjusted and the input saturation ranges of all the pixels, and compares the input saturation ranges with the saturation range of the previously prepared output devices. When the input saturation range is out of the saturation ranges of output devices (161-165) to which the data are outputted, a luminance adjustment amount is corrected so that the input saturation range is within the saturation ranges of the output devices, and that the larger the saturation of each pixel of the input image data is, the smaller the luminance adjustment amount becomes. The luminance and saturation adjustment is applied to each pixel of the input image data by using the luminance adjustment amount. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、輝度及び彩度調整方法、輝度及び彩度調整装置並びに画像出力装置に関する。
【0002】
【従来の技術】
従来、ディジタルスチルカメラなどの入力デバイスから入力された入力画像データを、出力画像データとしてプリンタなどの出力デバイスから出力する画像処理システムがあった。その画像処理システムにおいて、自動又は手動による画質調整、入力機器の特性と出力デバイスの特性との調整などのときには、画像の明るさ、コントラストなどが調整される。
【0003】
特に、出力デバイスにより色再現範囲が異なるため、色再現範囲の狭い出力デバイスで出力をする際には色の圧縮が必要になってくる。また、同じ色再現範囲の狭い出力デバイスであっても入力画像データの色範囲が出力デバイスの色範囲より狭い場合は、色の調整の必要は無く、入力画像データに忠実な色で出力すればよい。色の調整はRGBの各データの調整、輝度調整などにより画像の明るさ、コントラスト調整などが行われる。
【0004】
特に最近では、広輝度範囲を撮影できる撮影機器も考えられている(例えば、特許文献1参照)。また、彩度が大きいほど輝度調整量が小さくなるように輝度調整する方法などを用いて輝度調整による彩度低下や色つぶれを防ぐ輝度調整装置も考えられている(例えば、特許文献2参照)。
【0005】
【特許文献1】
特開2000−125209号公報
【特許文献2】
特開2002−335536号公報
【0006】
【発明が解決しようとする課題】
しかし、特許文献1に記載の撮影装置で撮影された入力画像データを、従来の出力デバイスでより好ましい出力画像データとして出力するためには輝度や彩度の調整が必要とされる。また、入力画像データのRGBの各データを調整すると色相や彩度が変化してしまうおそれがあった。輝度調整する場合であっても、操作量に応じてそのまま輝度を調整すると、色相や彩度が変化してしまうおそれがあった。とくに、三原色付近の色について輝度調整する場合には、彩度が低下してしまうおそれがあった。
【0007】
また、特許文献2に記載の輝度調整装置では、出力画像データの彩度低下や色つぶれを防いでいるが、出力デバイスの色再現範囲から入力画像データの彩度範囲が外れている場合に出力デバイスの色再現範囲を十分に活用し、より良い出力画像を得るための調整方法については一切考慮されていない。
【0008】
本発明の目的は、入力画像データの彩度範囲を出力デバイスの彩度範囲に入るように、入力画像データを輝度及び彩度調整することである。より具体的に述べると、入力画像データの彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力画像データの全画素の彩度が出力デバイスの彩度範囲に入るように調整し、かつ入力画像データの各画素の輝度値を変換し、変換後の色相や見かけの彩度に影響を与えないようにすることである。
【0009】
【課題を解決するための手段】
上記課題を解決するために、請求項1に記載の発明は、入力画像データの各画素の彩度が出力デバイスの彩度範囲内に入るように輝度調整量を補正して、その輝度調整量を用いて前記入力画像データの各画素の輝度値を調整する輝度及び彩度調整方法において、
調整すべき前記入力画像データの各画素の彩度値を算出し、その輝度値より前記入力画像データの入力彩度範囲を求め、
前記入力彩度範囲と予め用意された出力デバイスの彩度範囲とを比較し、
前記入力彩度範囲が前記出力デバイスの彩度範囲を超えている場合に、前記入力彩度範囲が前記出力デバイスの輝度範囲に入るように、かつ前記入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように輝度調整量を補正し、
その補正された前記輝度調整量を用いて、前記入力画像データの各画素の輝度値を調整することを特徴とする。
【0010】
請求項5に記載の発明は、入力画像データの各画素の彩度が出力デバイスの彩度範囲内に入るように輝度調整量を補正する補正手段と、その輝度調整量を用いて前記入力画像データの各画素の輝度値を調整する輝度調整手段とを備える輝度及び彩度調整装置において、
調整すべき前記入力画像データの各画素の彩度値を算出し、その輝度値より前記入力画像データの入力彩度範囲を求める算出手段と、
前記入力彩度範囲と予め用意された出力デバイスの彩度範囲とを比較する比較手段とを備え、
前記補正手段は、前記入力彩度範囲が前記出力デバイスの彩度範囲を超えている場合に、前記入力彩度範囲が前記出力デバイスの輝度範囲に入るように、かつ前記入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように輝度調整量を補正し、
前記輝度調整手段は、前記補正された前記輝度調整量を用いて、前記入力画像データの各画素の輝度値を調整することを特徴とする。
【0011】
請求項6に記載の発明は、
請求項5に記載の輝度及び彩度調整装置と、
前記輝度及び彩度調整装置により、輝度値が調整された前記入力画像データを出力画像データとして出力する出力デバイスとを備える画像出力装置であることを特徴とする。
【0012】
請求項1、5又は6に記載の発明によれば、入力画像データの入力彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力彩度範囲が出力デバイスの彩度範囲に入るように輝度調整量を補正し、補正した輝度調整量を用いて入力画像データを輝度及び彩度調整する。このため、入力彩度範囲が出力デバイスの彩度範囲に入るように輝度及び彩度調整した入力画像データを出力デバイスにおいて出力し、出力デバイスの色再現範囲に合う画像データを出力することができる。
また、一般的に彩度が大きいほど色再現範囲が狭くなるが、本発明では彩度が大きいほど輝度調整量を小さくしているので、輝度調整量を用いて入力画像データを輝度及び彩度調整しても色つぶれを未然に防止できる。さらに、彩度を考慮して輝度及び彩度調整しているので、見かけ上の彩度変化を小さくすることができる。
【0013】
請求項2に記載の発明は、請求項1に記載の輝度及び彩度調整方法において、
色相ごとに輝度調整量を異にすることを特徴とする。
【0014】
請求項2に記載の発明によれば、色相ごとに輝度調整量を異にするので、入力画像データの色相が異なる領域では、異なる輝度調整量を用いて輝度及び彩度調整を行うことができる。全色相で異なる輝度及び彩度調整を行う必要は無いが、少なくとも1つの色相で他の色相と異なる輝度及び彩度調整が行われる。特に肌色の色相においては他の色相と異なり、見かけの彩度を維持することより、肌色が不自然にならないように重点がおかれた輝度及び彩度調整が施されることが好ましい。
【0015】
請求項3に記載の発明は、請求項1に記載の輝度及び彩度調整方法において、
前記輝度調整量の補正において、
前記入力彩度範囲が前記出力デバイスの輝度範囲を超えている場合に、前記入力彩度範囲が前記出力デバイスの輝度範囲に入るように、かつ少なくとも肌色の色相を含む色相以外の色相で前記入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように前記輝度調整量を補正することを特徴とする。
【0016】
請求項3に記載の発明によれば、入力画像データの入力彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力彩度範囲が出力デバイスの彩度範囲に入るように、かつ少なくとも肌色の色相を含む色相以外の色相で入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように輝度調整量を補正し、補正した輝度調整量を用いて入力画像データを輝度及び彩度調整する。このため、少なくとも肌色の色相を含む色相以外の色相において、肌色の色相と異なる色調整をすることができる。肌色の色相は特に人間の目につきやすいため、肌色の色相の性質に合った輝度調整を行うことができる。また、入力画像データ全体として、肌色再現性が高くなるように輝度及び彩度調整されることが好ましい。
【0017】
請求項4に記載の発明は、請求項1から3のいずれか一項に記載の輝度及び彩度調整方法において、
前記入力画像データの各画素の輝度値の調整は、前記入力画像データの階調変換を含むことを特徴とする。
【0018】
請求項4に記載の発明によれば、入力画像データの輝度及び彩度調整において、階調変換を行うことができる。階調変換としては、例えば入力値と出力値の関係が線形になる線形変換や入力値と出力値の関係がS字状の曲線になる非線形変換などが挙げられる。また、色ごとに異なる階調調整を行うこともできる。特に輝度調整量を求める際に、階調変換による色調整量で輝度調整量を補正することで高速な処理を行うことができる。
【0019】
【発明の実施の形態】
以下、添付図を参照して本発明に係る実施の形態を詳細に説明する。ただし、発明の範囲は、図示例に限定されない。
【0020】
先ず、図1を参照して、本実施の形態の装置の特徴を説明する。図1は、本実施の形態の画像処理システム100の内部構成を示すブロック図である。
【0021】
図1に示すように、画像処理システム100は、出力画像データを出力する画像処理装置110と、フィルムスキャナ部131と、反射原稿入力装置132と、画像転送手段133と、通信手段134と、操作部141と、制御部142と、処理条件テーブル記憶手段151と、データ蓄積手段152と、彩度範囲記憶手段153と、階調調整テーブル記憶手段154と、データ蓄積手段155と、テンプレート記憶手段156と、CRT161と、露光処理部162と、外部プリンタ163と、画像搬送部164と、通信手段165とを備えて構成される。
【0022】
以下、フィルムスキャナ部131、反射原稿入力装置132、画像転送手段133及び通信手段134をまとめて入力デバイスとする。また、CRT161、露光処理部162、外部プリンタ163、画像搬送部164及び通信手段165を出力デバイスとする。
【0023】
また、画像処理装置110は、フィルムスキャンデータ処理部111と、反射原稿スキャンデータ処理部112と、画像データ書式解読処理部113と、画像調整処理部114と、CRT固有処理部115と、プリンタ固有処理部116と、プリンタ固有処理部117と、画像データ作成処理部118と、テンプレート処理部119と、輝度及び彩度調整装置120とを備えて構成される。輝度及び彩度調整装置120は、ヘッダ情報解析部121と、装置特性補正処理部122と、撮影情報データ処理部123と、算出手段としての入力画像データ生成部124と、出力画像データ生成部125と、比較手段、補正手段及び輝度調整手段としての輝度調整部126とを備えて構成される。
【0024】
フィルムスキャナ部131、反射原稿入力装置132、画像転送手段133及び通信手段134は、画像データ取得元からデジタルの入力画像データを取得する入力手段である。フィルムスキャナ部131は、画像データ取得元としての撮影フィルム(カラーネガフィルム、カラーリバーサルフィルムなどのアナログカメラに撮影されたフィルム)から透過光により画像をスキャンし入力画像データを取得する。反射原稿入力装置132は、画像データ取得元としての写真原稿(画像が記録された印画紙など)から反射光により画像をスキャンし入力画像データを取得する。画像転送手段133は、デジタルスチルカメラなどにケーブルなどにより直接接続する通信接続手段、デジタルスチルカメラなどの記録媒体である各種メモリカードやCD−Rなどの記録メディアがセットされる画像データ読取り手段などにより構成され、デジタルスチルカメラや記録メディアから画像データが読み出され入力画像データとして取得される。通信手段134は、有線又は無線の、ピアツーピア又は通信ネットワークにより接続された外部機器(コンピュータ、記憶装置など)から画像データを受信して入力画像データを取得する。
【0025】
操作部141は、図示しない各種機能ボタン、カーソルキーなどが設けられ、各ボタンやキーに対応する操作信号を入力信号として画像調整処理部114に出力する。制御部142は、画像処理システム100本体の制御部である。
【0026】
処理条件テーブル記憶手段151は、入力デバイス固有の処理などの前処理の処理条件を有するテーブルであり、その処理条件テーブルが読み出されて装置特性補正処理部122に出力される。データ蓄積手段152は、入力画像データを読み書き可能に一時的に記憶する。彩度範囲記憶手段153は、出力デバイスの彩度範囲データを有するテーブルであり、その出力デバイスの彩度範囲が読み出されて輝度調整部126に出力される。階調調整テーブル記憶手段154は、輝度調整処理の階調調整の基準となるテーブルであり、その階調調整テーブルが読み出されて輝度調整部126に出力される。データ蓄積手段155は、出力画像データを読み書き可能に一時的に記憶する。テンプレート記憶手段156は、出力画像データに貼り付けるためのテンプレートなどの画像データを記憶し、テンプレート処理部119に出力する。処理条件テーブル記憶手段151、データ蓄積手段152,154、彩度範囲記憶手段153、テンプレート記憶手段155は、HDD(ハードディスクドライブ)、フラッシュROMなどにより構成される。
【0027】
CRT161、露光処理部162、外部プリンタ163、画像搬送部164及び通信手段165は、画像処理装置110により画像処理された出力画像データを出力画像として出力する出力手段である。CRT161は、出力画像データを出力画像として出力する。CRT161に代えて、LCD(液晶ディスプレイ)、プラズマディスプレイ、ELディスプレイなどの表示装置としてもよい。露光処理部162は、出力画像データに基づいて出力メディアである銀塩印画紙などに露光して出力画像を記録する。画像搬送部164は、デジタルスチルカメラなどにケーブルなどにより直接接続する通信接続手段、デジタルスチルカメラなどの記録媒体である各種メモリカードやCD−Rなどの記録メディアがセットされる画像データ書き込み手段などにより構成され、デジタルスチルカメラや記録メディアに画像データが出力画像データとして書き込みされる。通信手段165は、有線又は無線の、ピアツーピア又は通信ネットワークにより接続された外部機器(コンピュータ、記憶装置など)に出力画像データを送信する。
【0028】
フィルムスキャナ部131から入力された入力画像データは、フィルムスキャンデータ処理部111において、フィルムスキャナ部固有の校正操作・ネガ原稿の場合のネガポジ反転、ゴミキズ除去、グレーバランス調整、コントラスト調整、粒状ノイズ除去、鮮鋭化強調などが施され、画像調整処理部114に出力される。また、フィルムサイズ、ネガポジ種別、フィルムに光学的或いは磁気的に記録された主要被写体に関わる情報、撮影条件に関する情報(例えばAPSの記載情報内容)などが、併せて画像調整処理部114に出力される。
【0029】
反射原稿入力装置132から入力された入力画像データは、反射原稿スキャンデータ処理部112において、反射原稿入力装置固有の校正操作、ネガ原稿の場合のネガポジ反転、ゴミキズ除去、グレーバランス調整、コントラスト調整、ノイズ除去、鮮鋭化強調などが施され、画像調整処理部114に出力される。
【0030】
画像転送手段133又は通信手段134から入力された入力画像データは、画像データ書式解読処理部113において、その入力画像データのデータ書式に従い必要に応じて圧縮符号の復元・色データの表現方法の変換などを行ない、画像処理システム100内の演算に適したデータ形式に変換されて画像調整処理部114に出力される。また、画像データ書式解読処理部113は、画像転送手段133又は通信手段134から出力された入力画像データが、フィルムサイズ、ネガポジ種別、フィルムに光学的或いは磁気的に記録された主要被写体に関わる情報、撮影条件に関する情報などのヘッダ情報を含むか否かを判別し、ヘッダ情報を含む場合に、そのヘッダ情報をヘッダ情報解析部121に出力する。ヘッダ情報解析部121においては、入力されたヘッダ情報を解析して、そのヘッダ情報を装置特性補正処理部122に出力する。
【0031】
出力画像データの大きさについての指定は操作部141からユーザにより入力されるが、この他に入力デバイスから入力された入力画像データについての指定があった場合には、画像データ書式解読処理部113が該情報を検出し、画像調整処理部114へ出力するとしてもよい。また、輝度及び彩度調整装置120内の各部の機能は、後述する画像処理システム100の動作で詳細に述べる。
【0032】
画像調整処理部114では、出力画像データにテンプレート処理が必要な場合に、テンプレート記憶手段156からテンプレート処理部119を介して所定の画像データ(フレームなどのテンプレート)を呼び出す。出力画像データ生成部125は、テンプレート処理部119に出力画像データを転送する。テンプレート処理部119は、出力画像データをテンプレートと合成しテンプレート処理後の出力画像データを画像調整処理部114に出力する。画像調整処理部114は、出力画像データ生成部125又はテンプレート処理部119から入力された出力画像データを、CRT固有処理部115、プリンタ固有処理部116,117及び画像データ作成処理部118のうちの出力対象の出力デバイスに対応するものへ出力する。
【0033】
CRT固有処理部115では、画像調整処理部114から受け取った出力画像データに対して、必要に応じて画素数変更やカラーマッチングなどの処理を行ない、制御情報などを含む表示用の画像データをCRT161に送出する。プリンタ固有処理部116では、必要に応じてプリンタ固有の校正処理、カラーマッチング、画素数変更などを行ない、露光処理部162に出力画像データを送出する。プリンタ固有処理部117では、出力するプリンタ装置ごとに必要に応じてプリンタ固有の校正処理、カラーマッチング、画素数変更などを行ない、外部プリンタ163に出力画像データを送出する。
【0034】
画像データ作成処理部118においては、画像調整処理部114から入力された出力画像データに対して、データの圧縮や、必要に応じてJPEG、TIFF、Exifなどに代表される各種の汎用画像フォーマットへの変換を行ない、画像搬送部164や通信手段165へ出力画像データを出力する。
【0035】
画像処理装置110内の各部の区分は、画像処理装置110の機能の理解を助けるために設けた区分であり、必ずしも物理的に独立したデバイスとして実現される必要はなく、たとえば単一のCPUと、図示しない記憶部から読み出されてRAMに格納されたプログラムとの協働により各部が実現される構成でもよい。
【0036】
次に、図2〜図4を参照して、画像処理システム100の動作を説明する。図2は、出力デバイス及び入力画像データの輝度及び彩度を示すグラフである。図3は、画像データ出力処理を示すフローチャートである。図4は、画像データ出力処理中の輝度及び彩度調整処理を示すフローチャートである。
【0037】
画像処理システム100は、入力デバイスから入力された入力画像データを輝度調整して出力デバイスから出力する。例えば、図2のように、入力画像データのsRGBの色空間における色範囲と、出力デバイスの色再現範囲とが表される場合に、入力画像データの彩度範囲と出力デバイスの彩度範囲とに共通でない領域が生ずる場合がある。つまり、入力画像データの超過範囲A1(入力画像データの彩度範囲>出力デバイスの彩度範囲の領域)が発生する。このため、画像処理システム100は、入力画像データの彩度範囲が出力デバイスの彩度範囲に入るように輝度調整する。
【0038】
ここで、図3及び図4を参照して、画像処理システム100で実行される画像データ出力処理を説明する。画像データ出力処理は、例えば、前述のように画像処理プログラムとCPUとの協働により実現される各部で実行される。
【0039】
図3に示すように、先ず、入力デバイス131〜134のうちの少なくとも一つの入力元デバイスから入力画像データが入力され、フィルムスキャンデータ処理部111、反射原稿スキャンデータ処理部112、画像データ書式解読処理部113及び画像調整処理部114のうちの対応するものを介して画像調整処理部114に出力される(ステップS1)。
【0040】
そして、輝度及び彩度調整装置120により、入力画像データに輝度及び彩度調整処理が行われる(ステップS2)。そして、輝度調整及び彩度処理が行われた入力画像データが、出力画像データとして、画像調整処理部114から、CRT固有処理部115、プリンタ固有処理部116、プリンタ固有処理部117及び画像データ作成処理部118のうちの出力先デバイスに対応する少なくとも一つに出力される。CRT固有処理部115、プリンタ固有処理部116、プリンタ固有処理部117及び画像データ作成処理部118のうちの出力画像データが入力されたものにより、出力先の出力デバイス(161〜165)に対応するように固有の処理が出力画像データに実行され、出力先デバイスに出力される。そして、出力先デバイスにより、出力画像データが画像出力され(ステップS3)、画像データ出力処理が終了される。
【0041】
ここで、ステップS2の輝度及び彩度調整処理を詳述する。図4に示すように、先ず、画像データ書式解読処理部113により、入力画像データにヘッダ情報が含まれる場合に、そのヘッダ情報が解読され、ヘッダ情報解析部121に入力される。ヘッダ情報解析部121により、そのヘッダ情報が解析され、装置特性補正処理部122に出力される。そして、装置特性補正処理部122により、処理条件テーブル記憶部151から処理条件テーブルが読み出され、読み出された処理条件テーブルと解析されたヘッダ情報とに基づいて、前処理としての装置特性補正処理を行うための装置特性補正情報が取得される。
【0042】
また、画像調整処理部114により、入力画像データが撮影情報データ処理部123を介して入力画像データ生成部124に出力される。入力画像データ生成部124により、装置特性補正情報を用いて、入力画像データが前処理される(ステップS21)。前処理は、例えば、ホワイトバランス処理、入力デバイスの固有の色調整処理などの処理であり、輝度調整実行前の処理という意味である。
【0043】
そして、入力画像データ生成部124により、入力画像データの全画素の色相と輝度値と彩度値とが算出される(ステップS22)。そして、その算出された全画素の各色相と各輝度値とにおける輝度値に対する彩度範囲が算出され、入力画像データ生成部124により、その算出された彩度範囲が入力彩度範囲として輝度調整部126に出力される(ステップS23)。入力画像データ生成部124において、適宜、入力画像データがデータ蓄積手段152に一時的に格納される。そして、輝度調整部126において、入力彩度範囲が入力され、さらに、彩度範囲記憶手段153から出力デバイスの彩度範囲が読み出され、階調調整テーブル記憶手段153から階調調整テーブルが読み出される(ステップS24)。
【0044】
そして、輝度調整部126により、入力彩度範囲が出力デバイスの彩度範囲内であるか否かが判別される(ステップS25)。入力彩度範囲が出力デバイスの彩度範囲内である場合(ステップS25;YES)、輝度及び彩度調整処理が終了され、ステップS3に移行される。この場合、入力画像データ生成部124から、出力画像データ生成部125を介して、輝度調整されていない入力画像データが画像調整処理部114に送出される。
【0045】
入力彩度範囲が出力デバイスの彩度範囲内でない場合(ステップS25;NO)、輝度調整部126により、入力画像データ中の未選択の1つの画素が対象画素として選択される(ステップS26)。そして、輝度調整部126により、ステップS23において算出された入力彩度範囲とステップS24において取得された階調調整テーブルとに基づいて、所定の階調変換されるように対象画素の輝度調整量が決定される(ステップS27)。
【0046】
そして、輝度調整部126により、入力彩度範囲を出力デバイスの彩度範囲まで縮小して合せるように、かつ対象画素の彩度が大きくなるにつれて輝度調整量を小さくするように、ステップS24において取得された出力デバイスの彩度範囲に基づいて、既に決定された対象画素の輝度調整量が補正され、入力画像データと補正された輝度調整量とが出力画像データ生成部125に出力される(ステップS28)。
【0047】
そして、出力画像データ生成部125により、補正された輝度調整量に基づいて入力画像データが輝度調整される(ステップS29)。そして、ステップS26において、対象画素として入力画像データの全画素が選択されたか否かが判別される(ステップS30)。全画素が選択されていない場合(ステップS30;NO)、ステップS26に移行されて、次の対象画素が選択される。全画素が選択された場合(ステップS30;YES)、輝度及び彩度調整処理が終了され、ステップS3に移行される。
【0048】
ステップS26〜S30における輝度調整は、図2の超過領域A1を補正するような輝度調整となる。
【0049】
(第1の輝度及び彩度調整例)
次に、図5、図6を参照して、輝度及び彩度調整処理の具体的な例の一つである第1の輝度及び彩度調整例を説明する。本輝度及び彩度調整例における出力対象の出力デバイスを出力デバイスAとする。
【0050】
最初に、輝度及び彩度調整処理のステップS22,S23に対応して、入力画像データの全画素Kxに対応する輝度Lx、彩度Cx、色相θxの算出を説明する。輝度Lxに対する彩度Cxの範囲が入力彩度範囲となる。
【0051】
輝度値の計算方法としては、例えば、sRGB値をマトリックス演算を用いてXYZ表色系に変換し、「JISハンドブック 色彩」などに記載されているL*a*b*表色系、L*u*v*表色系又はHSI表色系へ変換し輝度値を算出する方法が挙げられる。
先ず、入力画像データの各画素のRGB値を用いてRGB値をL*a*b*値に変換する。例えば、入力画像データのある画素K1のRGB値が(R1,G1,B1)であるとすると、次式(1)、(2)、(3)に示すマトリックス変換を用いてXYZ座標系の座標値(X1,Y1,Z1)に変換する。
X1=0.4124×R1+0.3576×G1+0.1805×B1 …(1)
Y1=0.2126×R1+0.7152×G1+0.0722×B1 …(2)
Z1=0.0193×R1+0.1192×G1+0.9505×B1 …(3)
【0052】
ここで、白色点のXYZ座標値を(X0,Y0,Z0)、また白色点のL*a*b*座標値を(L0,a0,b0)とし、画素K1のL*a*b*座標系の座標値を(L1,a1,b1)とすると、
Y1/Y0>0.008856の場合、
L1=116.0×(Y1/Y0)1/3 −16.0 …(4)
となり、
Y1/Y0≦0.008856の場合、
L1=903.29 × Y1/Y0 …(5)
となる。このように、RGB値が(R1,G1,B1)である画素K1の輝度値L1が算出される。
【0053】
また、X1/X0>0.008856の場合の、
f(X1)=(X1/X0)1/3 …(6)
X1/X0≦0.008856の場合の、
f(X1)=7.78×X1/X0+16/116 …(7)
により、f(X1)を算出する。
また、Y1/Y0>0.008856の場合の、
f(Y1)=(Y1/Y0)1/3 …(8)
Y1/Y0≦0.008856の場合の、
f(Y1)=7.78×Y1/Y0+16/116 …(9)
により、f(Y1)を算出する。
また、Z1/Z0>0.008856の場合の、
f(Z1)=(Z1/Z0)1/3 …(10)
Z1/Z0≦0.008856の場合の、
f(Z1)=7.78 ×Z1/Z0+16/116 …(11)
により、f(Z1)を算出する。
【0054】
また、a1,b1は、次式(12)、(13)により算出される。
a1=500.0 ×(f(X1)−f(Y1)) …(12)
b1=200.0 ×(f(Y1)−f(Z1)) …(13)
【0055】
そして、L*a*b*座標値(L1,a1,b1)から、次式(14)、(15)により彩度C1、色相θ1を求めることができる。
C1= (a1+b11/2 …(14)
θ1= tan−1(b1/a1) …(15)
【0056】
同様にして入力画像データの全画素KxのL*a*b*座標系の座標値(Lx,ax,bx)及び彩度Cx、色相θxを算出する。入力画像データの全画素の輝度Lx、彩度Cx、色相θxから各色相における入力画像データの輝度に対する彩度値の最大値及び最小値から彩度範囲を求める。
【0057】
次に、ステップS25に対応して、色相θ2において求めた入力画像データの彩度範囲と図5に示した出力デバイスAの色再現範囲の彩度範囲とを比較する。図5は、本輝度及び彩度調整例における出力デバイスAの色相θ2における輝度L*と彩度C*の色再現範囲を示す図である。図5においてグレーに塗りつぶされた範囲が出力デバイスAの色再現範囲である。同様に他の色相においても、彩度範囲の比較を行う。
【0058】
次に、ステップS26〜S30に対応して、図5に示すように、入力画像データの彩度範囲が出力デバイスAの色再現範囲から外れている場合、入力画像データの画素である点K2の輝度調整量ΔL2は、以下のようにして求めることができる。点K2の色相θ2上で黒点(彩度Cblack=0、輝度Lblack=0)と点K2を結ぶ直線上で最も高輝度な画素点Kmaxの彩度Cmax、輝度Lmaxを求める。
【0059】
そして、図6に示す階調調整曲線を用いて仮の輝度調整量を求める。図6は、本輝度及び彩度調整例における階調調整曲線を示す図である。横軸は,入力輝度値Lin,縦軸は、調整後の出力輝度値Lout である。点K2の入力輝度値L2に対する調整後の出力輝度値は図6よりLout2となる。
そして、次式(16)により、階調調整曲線から仮の輝度調整量Δla2が求められる。
Δla2=Lout2 −L2 …(16)
【0060】
さらに、次式(17)により、入力画像データの全画素が出力デバイスAの色再現範囲内に入るように補正を行い、輝度調整量ΔL2が求められる。

Figure 2004336656
ただし、lb2は、黒点と点K2を結ぶ直線上における、出力デバイスAの色再現範囲の輝度の最大値を示す。同様にして入力画像データの全画素Kxにおいて、輝度調整量ΔLxを求め、求めた輝度調整量ΔLxと元の入力画像データとから各画素のRGB値を算出することで、入力画像データの輝度調整を行う。
【0061】
第1の輝度及び彩度調整例によれば、入力画像データの彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力彩度範囲が出力デバイスの彩度範囲に入るように輝度調整量を補正し、補正した輝度調整量ΔLxを用いて入力画像データを輝度及び彩度調整する。このため、入力彩度範囲が出力デバイスの彩度範囲に入るように輝度及び彩度調整した入力画像データを出力デバイスにおいて出力し、出力デバイスの色再現範囲に合う画像データを出力することができる。
【0062】
また、一般に彩度Cが大きいほど色再現範囲が狭くなるが、式(17)のように、彩度Cが大きいほど輝度調整量ΔLを小さくしているので、輝度調整量を用いて対象画素の輝度及び彩度調整しても色つぶれを未然に防止できる。さらに、彩度Cを考慮して輝度及び彩度調整しているので、見かけ上の彩度Cの変化を小さくすることができる。
【0063】
さらに、図6に示す階調調整曲線により、入力画像データに階調変換を行うことができる。また、階調調整曲線としては、例えば入力値と出力値の関係が線形になる線形変換や入力値と出力値の関係がS字状の曲線になる非線形変換などが挙げられる。また、色ごとに異なる階調調整を行うこともできる。特に輝度調整量を求める際に、階調変換による色調整量で輝度調整量を補正することで高速な処理を行うことができる。
【0064】
(第2の輝度及び彩度調整例)
本第2の輝度及び彩度調整例は、第1の輝度及び彩度調整例の変形例としての輝度及び彩度調整例であり、異なる部分を主として説明する。本輝度及び彩度調整例は、第1輝度及び彩度調整例において、入力画像データの色相ごとに輝度調整量が異なるように輝度及び彩度調整するものである。
【0065】
具体的にいうと、本輝度及び彩度調整例は、入力画像データの彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力彩度範囲が出力デバイスの彩度範囲に入るように、かつ入力画像データの各画素の彩度が大きくなるにつれて輝度調整量を小さくするように、かつ色相ごとに輝度調整量を異にするように輝度調整量を補正し、その輝度調整量を用いて入力画像データを輝度調整する。
【0066】
第2の輝度調整例によれば、色相ごとに輝度調整量を異にするので、入力画像データの色相が異なる領域では、異なる輝度調整量を用いて輝度及び彩度調整を行うことができる。全色相で異なる輝度及び彩度調整を行う必要は無いが、少なくとも1つの色相で他の色相と異なる輝度及び彩度調整が行われる。特に肌色の色相においては他の色相と異なり、見かけの彩度を維持することより、肌色が不自然にならないように重点がおかれた輝度及び彩度調整が施されることが好ましい。
【0067】
(第3の輝度及び彩度調整例)
本第3の輝度及び彩度調整例は、第1の輝度及び彩度調整例の変形例としての輝度調整例であり、異なる部分を主として説明する。本輝度及び彩度調整例は、第1の輝度及び彩度調整例において、少なくとも肌色の色相を含む色相以外の色相において輝度調整するものである。
【0068】
具体的にいうと、本輝度及び彩度調整例は、入力画像データの彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力彩度範囲が出力デバイスの彩度範囲に入るように、かつ少なくとも肌色の色相を含む色相以外の色相で入力画像データの各画素の彩度が大きくなるにつれて輝度調整量を小さくするように輝度調整量を補正し、その輝度調整量を用いて入力画像データを輝度及び彩度調整する。
【0069】
第3の輝度及び彩度調整例によれば、入力画像データの少なくとも肌色の色相を含む色相以外の色相において、肌色の色相と異なる色調整をすることができる。肌色の色相は特に人間の目につきやすいため、肌色の色相の性質に合った輝度調整を行うことができる。また、入力画像データ全体として、肌色再現性が高くなるように輝度及び彩度調整されることが好ましい。
【0070】
なお、第1〜第3の輝度及び彩度調整例の処理を入力画像データの各画素ではなく、LUT(ルックアップテーブル)の各格子点に輝度及び彩度調整を行い、入力画像データに対してLUT変換をすることで輝度及び彩度調整を行うものとしてもよい。このLUT変換による輝度及び彩度調整によれば、画素数の多い入力画像データを扱う場合においても、計算の高速化を図ることができる。
【0071】
また、本実施の形態では、輝度及び彩度調整装置120と各出力デバイス161〜165とが別の機器としての構成であったが、出力デバイスに輝度及び彩度調整装置120の機能を設けて、一体の画像出力装置とする構成でもよい。
【0072】
なお、上述した本実施の形態における記述は、本発明に係る好適な画像処理システム100の一例であり、これに限定されるものではない。
【0073】
【発明の効果】
請求項1、5又は6に記載の発明によれば、入力画像データの入力彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力彩度範囲が出力デバイスの彩度範囲に入るように輝度調整量を補正し、補正した輝度調整量を用いて入力画像データを輝度及び彩度調整する。このため、入力彩度範囲が出力デバイスの彩度範囲に入るように輝度及び彩度調整した入力画像データを出力デバイスにおいて出力し、出力デバイスの色再現範囲に合う画像データを出力することができる。
また、一般的に彩度が大きいほど色再現範囲が狭くなるが、本発明では彩度が大きいほど輝度調整量を小さくしているので、輝度調整量を用いて入力画像データを輝度及び彩度調整しても色つぶれを未然に防止できる。さらに、彩度を考慮して輝度及び彩度調整しているので、見かけ上の彩度変化を小さくすることができる。
【0074】
請求項2に記載の発明によれば、色相ごとに輝度調整量を異にするので、入力画像データの色相が異なる領域では、異なる輝度調整量を用いて輝度及び彩度調整を行うことができる。
【0075】
請求項3に記載の発明によれば、入力画像データの入力彩度範囲が出力デバイスの彩度範囲を超えている場合に、入力彩度範囲が出力デバイスの彩度範囲に入るように、かつ少なくとも肌色の色相を含む色相以外の色相で入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように輝度調整量を補正し、補正した輝度調整量を用いて入力画像データを輝度及び彩度調整する。このため、入力画素データの少なくとも肌色の色相を含む色相以外の色相において、肌色の色相と異なる色調整をすることができる。肌色の色相は特に人間の目につきやすいため、肌色の色相の性質に合った輝度及び彩度調整を行うことができる。
【0076】
請求項4に記載の発明によれば、入力画像データの輝度及び彩度調整において、階調変換を行うことができる。また、例えば、輝度調整量を求める際に、階調変換による色調整量で輝度調整量を補正することで高速な処理を行うことができる。
【図面の簡単な説明】
【図1】本発明に係る実施の形態の画像処理システム10を示すブロック図である。
【図2】出力デバイス及び入力画像データの輝度及び彩度を示すグラフである。
【図3】画像データ出力処理を示すフローチャートである。
【図4】画像データ出力処理中の輝度及び彩度調整処理を示すフローチャートである。
【図5】第1の輝度及び彩度調整例における出力デバイスAの色相θ2における輝度L*と彩度C*の色再現範囲を示す図である。
【図6】第1の輝度及び彩度調整例における階調調整曲線を示す図である。
【符号の説明】
100…画像処理システム
110…画像処理装置
111…フィルムスキャンデータ処理部
112…反射原稿スキャンデータ処理部
113…画像データ書式解読処理部
114…画像調整処理部
115…CRT固有処理部
116,117…プリンタ固有処理部
118…画像データ作成処理部
119…テンプレート処理部
120…輝度及び彩度調整装置
121…ヘッダ情報解析部
122…装置特性補正処理部
123…撮影情報データ処理部
124…入力画像データ生成部
125…出力画像データ生成部
126…輝度調整部
131…フィルムスキャナ部
132…反射原稿入力装置
133…画像転送手段
134,165…通信手段
141…操作部
142…制御部
151…処理条件テーブル記憶手段
152,155…データ蓄積手段
153…彩度範囲記憶手段
154…階調調整テーブル記憶手段
156…テンプレート記憶手段[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a brightness and saturation adjustment method, a brightness and saturation adjustment device, and an image output device.
[0002]
[Prior art]
Conventionally, there has been an image processing system that outputs input image data input from an input device such as a digital still camera as output image data from an output device such as a printer. In the image processing system, when adjusting the image quality automatically or manually, or adjusting the characteristics of the input device and the characteristics of the output device, the brightness and contrast of the image are adjusted.
[0003]
In particular, since the color reproduction range differs depending on the output device, it is necessary to compress colors when outputting with an output device having a narrow color reproduction range. Also, if the color range of the input image data is narrower than the color range of the output device even if the output device has the same narrow color reproduction range, there is no need to adjust the color, and it is possible to output in a color faithful to the input image data. Good. For color adjustment, image brightness, contrast adjustment, and the like are performed by adjusting RGB data, adjusting brightness, and the like.
[0004]
Particularly recently, a photographing device capable of photographing a wide luminance range has been considered (for example, see Patent Document 1). In addition, a luminance adjustment device that prevents a decrease in saturation or color loss due to luminance adjustment by using a method of adjusting luminance so that the luminance adjustment amount decreases as the saturation increases (for example, see Patent Document 2). .
[0005]
[Patent Document 1]
JP 2000-125209 A
[Patent Document 2]
JP-A-2002-335536
[0006]
[Problems to be solved by the invention]
However, in order to output input image data photographed by the photographing device described in Patent Literature 1 as more preferable output image data with a conventional output device, it is necessary to adjust luminance and saturation. Further, when the RGB data of the input image data is adjusted, the hue and the saturation may be changed. Even when adjusting the luminance, if the luminance is adjusted as it is in accordance with the operation amount, the hue and the saturation may be changed. In particular, when adjusting the luminance of colors near the three primary colors, there is a possibility that the saturation may be reduced.
[0007]
Further, the luminance adjustment device described in Patent Document 2 prevents the saturation and color loss of the output image data from being reduced, but outputs when the saturation range of the input image data is out of the color reproduction range of the output device. No consideration is given to an adjustment method for fully utilizing the color reproduction range of the device and obtaining a better output image.
[0008]
An object of the present invention is to adjust the luminance and chroma of input image data so that the chroma range of the input image data falls within the chroma range of the output device. More specifically, when the saturation range of the input image data exceeds the saturation range of the output device, the saturation of all pixels of the input image data is adjusted so as to fall within the saturation range of the output device. In addition, the luminance value of each pixel of the input image data is converted so that the converted hue and apparent saturation are not affected.
[0009]
[Means for Solving the Problems]
In order to solve the above problem, the invention according to claim 1 corrects a luminance adjustment amount so that the saturation of each pixel of input image data falls within a saturation range of an output device, and adjusts the luminance adjustment amount. In the brightness and saturation adjustment method of adjusting the brightness value of each pixel of the input image data using
Calculate the saturation value of each pixel of the input image data to be adjusted, determine the input saturation range of the input image data from the luminance value,
Compare the input saturation range and the saturation range of the output device prepared in advance,
When the input saturation range exceeds the saturation range of the output device, the input saturation range falls within the luminance range of the output device, and the saturation of each pixel of the input image data is large. The brightness adjustment amount is corrected so that the brightness adjustment amount becomes smaller as
The luminance value of each pixel of the input image data is adjusted using the corrected luminance adjustment amount.
[0010]
According to a fifth aspect of the present invention, there is provided a correction unit for correcting a luminance adjustment amount such that the saturation of each pixel of input image data falls within a saturation range of an output device, and the input image is corrected by using the luminance adjustment amount. A brightness and saturation adjustment device including: a brightness adjustment unit that adjusts a brightness value of each pixel of data;
Calculating means for calculating a saturation value of each pixel of the input image data to be adjusted, and calculating an input saturation range of the input image data from the luminance value;
Comparing means for comparing the input saturation range with a saturation range of an output device prepared in advance,
When the input saturation range exceeds the saturation range of the output device, the correction unit causes the input saturation range to fall within the luminance range of the output device, and each pixel of the input image data. The brightness adjustment amount is corrected so that the larger the saturation of the brightness, the smaller the brightness adjustment amount.
The brightness adjustment unit adjusts a brightness value of each pixel of the input image data using the corrected brightness adjustment amount.
[0011]
The invention according to claim 6 is
A brightness and saturation adjustment device according to claim 5,
An output device that outputs, as output image data, the input image data whose luminance value has been adjusted by the luminance and saturation adjustment device.
[0012]
According to the invention described in claim 1, 5 or 6, when the input saturation range of the input image data exceeds the saturation range of the output device, the input saturation range falls within the saturation range of the output device. The brightness adjustment amount is corrected as described above, and the brightness and saturation of the input image data are adjusted using the corrected brightness adjustment amount. For this reason, input image data whose luminance and saturation have been adjusted so that the input saturation range falls within the saturation range of the output device can be output to the output device, and image data that matches the color reproduction range of the output device can be output. .
In general, the higher the saturation, the narrower the color reproduction range. However, in the present invention, the higher the saturation, the smaller the luminance adjustment amount. Even if the adjustment is made, it is possible to prevent color collapse. Furthermore, since the luminance and the saturation are adjusted in consideration of the saturation, an apparent change in the saturation can be reduced.
[0013]
According to a second aspect of the present invention, in the brightness and saturation adjusting method according to the first aspect,
It is characterized in that the luminance adjustment amount differs for each hue.
[0014]
According to the second aspect of the present invention, since the luminance adjustment amount is different for each hue, in a region where the hue of the input image data is different, the luminance and saturation adjustment can be performed using the different luminance adjustment amounts. . It is not necessary to make different luminance and saturation adjustments for all hues, but at least one hue has different luminance and saturation adjustments than other hues. In particular, unlike the other hues, it is preferable that the luminance and the saturation are adjusted so that the skin color does not become unnatural by maintaining the apparent saturation, unlike the other hues.
[0015]
According to a third aspect of the present invention, in the brightness and saturation adjusting method according to the first aspect,
In correcting the brightness adjustment amount,
When the input saturation range exceeds the luminance range of the output device, the input saturation range falls within the luminance range of the output device, and the input has a hue other than a hue including at least a skin color hue. The brightness adjustment amount is corrected such that the brightness adjustment amount decreases as the saturation of each pixel of the image data increases.
[0016]
According to the invention described in claim 3, when the input saturation range of the input image data exceeds the saturation range of the output device, the input saturation range falls within the saturation range of the output device, and The luminance adjustment amount is corrected so that the luminance adjustment amount becomes smaller as the saturation of each pixel of the input image data becomes larger at a hue other than the hue including at least the skin color hue, and the input image data is corrected using the corrected luminance adjustment amount. Adjust brightness and saturation. For this reason, it is possible to perform a color adjustment different from the hue of the flesh color at least in the hue other than the hue including the hue of the flesh color. Since the hue of the flesh color is particularly noticeable to human eyes, it is possible to adjust the luminance according to the nature of the hue of the flesh color. Further, it is preferable that the luminance and the saturation of the entire input image data are adjusted so that the flesh color reproducibility is enhanced.
[0017]
According to a fourth aspect of the present invention, in the brightness and saturation adjusting method according to any one of the first to third aspects,
The adjustment of the luminance value of each pixel of the input image data includes a gradation conversion of the input image data.
[0018]
According to the fourth aspect of the present invention, it is possible to perform gradation conversion in adjusting luminance and saturation of input image data. Examples of the gradation conversion include a linear conversion in which the relationship between the input value and the output value is linear, and a non-linear conversion in which the relationship between the input value and the output value is an S-shaped curve. Further, different gradation adjustments can be performed for each color. In particular, when obtaining the luminance adjustment amount, high-speed processing can be performed by correcting the luminance adjustment amount with the color adjustment amount by gradation conversion.
[0019]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, the scope of the invention is not limited to the illustrated example.
[0020]
First, the features of the apparatus according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram illustrating an internal configuration of an image processing system 100 according to the present embodiment.
[0021]
As shown in FIG. 1, the image processing system 100 includes an image processing device 110 that outputs output image data, a film scanner unit 131, a reflection document input device 132, an image transfer unit 133, a communication unit 134, Unit 141, control unit 142, processing condition table storage unit 151, data storage unit 152, saturation range storage unit 153, gradation adjustment table storage unit 154, data storage unit 155, template storage unit 156. , A CRT 161, an exposure processing unit 162, an external printer 163, an image transport unit 164, and a communication unit 165.
[0022]
Hereinafter, the film scanner unit 131, the reflection document input device 132, the image transfer unit 133, and the communication unit 134 are collectively referred to as an input device. The CRT 161, the exposure processing unit 162, the external printer 163, the image transport unit 164, and the communication unit 165 are output devices.
[0023]
Further, the image processing apparatus 110 includes a film scan data processing unit 111, a reflection original scan data processing unit 112, an image data format decryption processing unit 113, an image adjustment processing unit 114, a CRT specific processing unit 115, a printer specific The processing unit 116 includes a printer-specific processing unit 117, an image data creation processing unit 118, a template processing unit 119, and a luminance and saturation adjustment device 120. The brightness and saturation adjustment device 120 includes a header information analysis unit 121, a device characteristic correction processing unit 122, a shooting information data processing unit 123, an input image data generation unit 124 as a calculation unit, and an output image data generation unit 125. And a brightness adjustment unit 126 as a comparison unit, a correction unit, and a brightness adjustment unit.
[0024]
The film scanner unit 131, the reflection document input device 132, the image transfer unit 133, and the communication unit 134 are input units that acquire digital input image data from an image data acquisition source. The film scanner unit 131 scans an image from a photographing film (a film photographed by an analog camera such as a color negative film or a color reversal film) as a source of image data by using transmitted light to acquire input image data. The reflection document input device 132 scans an image with a reflected light from a photo document (a photographic paper on which an image is recorded) as an image data acquisition source, and acquires input image data. The image transfer unit 133 is a communication connection unit that is directly connected to a digital still camera or the like by a cable or the like, an image data reading unit on which a recording medium such as a memory card or a CD-R that is a recording medium such as a digital still camera is set. And image data is read from a digital still camera or a recording medium and acquired as input image data. The communication unit 134 receives image data from an external device (computer, storage device, or the like) connected by a wired or wireless peer-to-peer or communication network, and acquires input image data.
[0025]
The operation unit 141 includes various function buttons and cursor keys (not shown), and outputs an operation signal corresponding to each button or key to the image adjustment processing unit 114 as an input signal. The control unit 142 is a control unit of the image processing system 100 main body.
[0026]
The processing condition table storage unit 151 is a table having processing conditions for preprocessing such as processing unique to the input device. The processing condition table is read and output to the device characteristic correction processing unit 122. The data storage unit 152 temporarily stores the input image data in a readable and writable manner. The saturation range storage unit 153 is a table having the saturation range data of the output device. The saturation range of the output device is read and output to the luminance adjustment unit 126. The gradation adjustment table storage unit 154 is a table serving as a reference for gradation adjustment in the luminance adjustment processing. The gradation adjustment table is read and output to the luminance adjustment unit 126. The data storage unit 155 temporarily stores the output image data in a readable and writable manner. The template storage unit 156 stores image data such as a template to be attached to output image data, and outputs the image data to the template processing unit 119. The processing condition table storage unit 151, the data storage units 152 and 154, the saturation range storage unit 153, and the template storage unit 155 are configured by an HDD (hard disk drive), a flash ROM, or the like.
[0027]
The CRT 161, the exposure processing unit 162, the external printer 163, the image transport unit 164, and the communication unit 165 are output units that output output image data processed by the image processing apparatus 110 as an output image. The CRT 161 outputs the output image data as an output image. Instead of the CRT 161, a display device such as an LCD (liquid crystal display), a plasma display, or an EL display may be used. The exposure processing unit 162 records an output image by exposing the output medium, such as silver halide photographic paper, based on the output image data. The image transport unit 164 includes a communication connection unit that is directly connected to a digital still camera or the like by a cable or the like, an image data writing unit on which a recording medium such as a memory card or a CD-R that is a recording medium such as a digital still camera is set. , And image data is written as output image data to a digital still camera or a recording medium. The communication unit 165 transmits output image data to an external device (computer, storage device, or the like) connected by a wired or wireless peer-to-peer or communication network.
[0028]
The input image data input from the film scanner unit 131 is subjected to a calibration operation unique to the film scanner unit, negative / positive inversion for a negative document, dust / flaw removal, gray balance adjustment, contrast adjustment, and granular noise removal in the film scan data processing unit 111. , And is output to the image adjustment processing unit 114. Further, the film size, the negative / positive type, the information on the main subject recorded optically or magnetically on the film, the information on the photographing condition (for example, the information content of the APS), and the like are output to the image adjustment processing unit 114 together. You.
[0029]
The input image data input from the reflection document input device 132 is processed by the reflection document scan data processing unit 112 to perform a calibration operation unique to the reflection document input device, negative / positive inversion for a negative document, dust / dust removal, gray balance adjustment, contrast adjustment, Noise removal, sharpening enhancement, and the like are performed, and the result is output to the image adjustment processing unit 114.
[0030]
The input image data input from the image transfer unit 133 or the communication unit 134 is subjected to decompression of a compression code and conversion of a color data expression method in the image data format decryption processing unit 113 according to the data format of the input image data as necessary. The data is converted into a data format suitable for the calculation in the image processing system 100 and output to the image adjustment processing unit 114. Further, the image data format decryption processing unit 113 converts the input image data output from the image transfer unit 133 or the communication unit 134 into information relating to a film size, a negative / positive type, and a main subject optically or magnetically recorded on the film. Then, it is determined whether or not header information such as information on photographing conditions is included, and if the header information is included, the header information is output to the header information analysis unit 121. The header information analysis unit 121 analyzes the input header information and outputs the header information to the device characteristic correction processing unit 122.
[0031]
The specification of the size of the output image data is input by the user from the operation unit 141, but if there is another specification of the input image data input from the input device, the image data format decoding processing unit 113 May detect the information and output the information to the image adjustment processing unit 114. The function of each unit in the brightness and saturation adjustment device 120 will be described in detail in the operation of the image processing system 100 described later.
[0032]
The image adjustment processing unit 114 calls out predetermined image data (a template such as a frame) from the template storage unit 156 via the template processing unit 119 when template processing is required for the output image data. The output image data generation unit 125 transfers the output image data to the template processing unit 119. The template processing unit 119 combines the output image data with the template, and outputs the output image data after the template processing to the image adjustment processing unit 114. The image adjustment processing unit 114 converts the output image data input from the output image data generation unit 125 or the template processing unit 119 into the CRT specific processing unit 115, the printer specific processing units 116 and 117, and the image data creation processing unit 118. Output to the device corresponding to the output device to be output.
[0033]
The CRT-specific processing unit 115 performs processing such as a change in the number of pixels and color matching on the output image data received from the image adjustment processing unit 114 as necessary, and converts display image data including control information and the like into the CRT 161. To send to. The printer-specific processing unit 116 performs printer-specific calibration processing, color matching, pixel number change, and the like as necessary, and sends output image data to the exposure processing unit 162. The printer-specific processing unit 117 performs printer-specific calibration processing, color matching, changing the number of pixels, and the like as necessary for each output printer, and sends output image data to the external printer 163.
[0034]
The image data creation processing unit 118 compresses the output image data input from the image adjustment processing unit 114 and, if necessary, converts the output image data into various general-purpose image formats represented by JPEG, TIFF, Exif, and the like. And outputs output image data to the image transport unit 164 and the communication unit 165.
[0035]
The divisions of each unit in the image processing apparatus 110 are divisions provided to facilitate understanding of the functions of the image processing apparatus 110, and need not necessarily be implemented as physically independent devices. Each part may be realized in cooperation with a program read from a storage unit (not shown) and stored in the RAM.
[0036]
Next, the operation of the image processing system 100 will be described with reference to FIGS. FIG. 2 is a graph showing luminance and saturation of an output device and input image data. FIG. 3 is a flowchart showing the image data output processing. FIG. 4 is a flowchart showing the brightness and saturation adjustment processing during the image data output processing.
[0037]
The image processing system 100 adjusts the brightness of the input image data input from the input device and outputs the data from the output device. For example, as shown in FIG. 2, when the color range of the input image data in the sRGB color space and the color reproduction range of the output device are represented, the saturation range of the input image data and the saturation range of the output device In some cases, a non-common area may occur. That is, an excess range A1 of the input image data (a region of the saturation range of the input image data> the saturation range of the output device) occurs. For this reason, the image processing system 100 adjusts the luminance so that the saturation range of the input image data falls within the saturation range of the output device.
[0038]
Here, the image data output processing executed by the image processing system 100 will be described with reference to FIGS. The image data output process is executed by each unit realized by the cooperation between the image processing program and the CPU as described above.
[0039]
As shown in FIG. 3, first, input image data is input from at least one of the input devices 131 to 134, and a film scan data processing unit 111, a reflection original scan data processing unit 112, and an image data format decoding Output to the image adjustment processing unit 114 via the corresponding one of the processing unit 113 and the image adjustment processing unit 114 (step S1).
[0040]
Then, the brightness and saturation adjustment processing is performed on the input image data by the brightness and saturation adjustment device 120 (step S2). Then, the input image data on which the luminance adjustment and the saturation processing have been performed is output from the image adjustment processing unit 114 to the CRT-specific processing unit 115, the printer-specific processing unit 116, the printer-specific processing unit 117, and the image data generation. The data is output to at least one of the processing units 118 corresponding to the output destination device. Output device data (161 to 165) corresponding to the output destination is determined by the input of the output image data among the CRT specific processing unit 115, the printer specific processing unit 116, the printer specific processing unit 117, and the image data creation processing unit 118. As described above, the unique processing is performed on the output image data and output to the output destination device. Then, the output image data is output by the output destination device (step S3), and the image data output process ends.
[0041]
Here, the brightness and saturation adjustment processing in step S2 will be described in detail. As shown in FIG. 4, first, when header information is included in the input image data, the header information is decrypted by the image data format decryption processing unit 113 and input to the header information analysis unit 121. The header information is analyzed by the header information analysis unit 121 and output to the device characteristic correction processing unit 122. The processing condition table is read from the processing condition table storage unit 151 by the device characteristic correction processing unit 122, and the device characteristic correction as preprocessing is performed based on the read processing condition table and the analyzed header information. Device characteristic correction information for performing the process is obtained.
[0042]
The image adjustment processing unit 114 outputs the input image data to the input image data generation unit 124 via the shooting information data processing unit 123. The input image data is preprocessed by the input image data generation unit 124 using the device characteristic correction information (step S21). The pre-processing is, for example, processing such as white balance processing and color adjustment processing unique to an input device, and means processing before execution of luminance adjustment.
[0043]
Then, the hue, the luminance value, and the saturation value of all the pixels of the input image data are calculated by the input image data generation unit 124 (Step S22). Then, a saturation range for the luminance value in each hue and each luminance value of all the calculated pixels is calculated, and the calculated saturation range is set as an input saturation range by the input image data generation unit 124. It is output to the unit 126 (step S23). In the input image data generation unit 124, the input image data is temporarily stored in the data storage unit 152 as appropriate. Then, the luminance adjustment unit 126 receives the input saturation range, reads the saturation range of the output device from the saturation range storage unit 153, and reads the gradation adjustment table from the gradation adjustment table storage unit 153. (Step S24).
[0044]
Then, the luminance adjustment unit 126 determines whether the input saturation range is within the saturation range of the output device (step S25). If the input saturation range is within the saturation range of the output device (step S25; YES), the brightness and saturation adjustment processing ends, and the routine goes to step S3. In this case, the input image data whose luminance has not been adjusted is transmitted from the input image data generation unit 124 to the image adjustment processing unit 114 via the output image data generation unit 125.
[0045]
If the input saturation range is not within the saturation range of the output device (step S25; NO), one unselected pixel in the input image data is selected by the luminance adjustment unit 126 as a target pixel (step S26). Then, based on the input saturation range calculated in step S23 and the tone adjustment table acquired in step S24, the brightness adjustment unit 126 adjusts the brightness adjustment amount of the target pixel so as to perform predetermined tone conversion. It is determined (step S27).
[0046]
Then, the luminance adjustment unit 126 obtains the input saturation range in step S24 so as to reduce and match the input saturation range to the saturation range of the output device and to decrease the luminance adjustment amount as the saturation of the target pixel increases. Based on the determined saturation range of the output device, the already determined luminance adjustment amount of the target pixel is corrected, and the input image data and the corrected luminance adjustment amount are output to the output image data generation unit 125 (step S28).
[0047]
Then, the output image data generator 125 adjusts the luminance of the input image data based on the corrected luminance adjustment amount (step S29). Then, in step S26, it is determined whether or not all the pixels of the input image data have been selected as target pixels (step S30). If all the pixels have not been selected (step S30; NO), the process moves to step S26, and the next target pixel is selected. If all the pixels have been selected (step S30; YES), the brightness and saturation adjustment processing ends, and the routine goes to step S3.
[0048]
The brightness adjustment in steps S26 to S30 is a brightness adjustment for correcting the excess area A1 in FIG.
[0049]
(First luminance and saturation adjustment example)
Next, a first luminance and saturation adjustment example, which is one of the specific examples of the luminance and saturation adjustment processing, will be described with reference to FIGS. The output device to be output in the present luminance and saturation adjustment example is an output device A.
[0050]
First, the calculation of the luminance Lx, the saturation Cx, and the hue θx corresponding to all the pixels Kx of the input image data will be described, corresponding to steps S22 and S23 of the luminance and saturation adjustment processing. The range of the saturation Cx with respect to the luminance Lx is the input saturation range.
[0051]
As a method of calculating a luminance value, for example, an sRGB value is converted into an XYZ color system using a matrix operation, and an L * a * b * color system, L * u described in “JIS Handbook Color” and the like are used. A method of calculating a luminance value by converting into a * v * color system or an HSI color system may be used.
First, the RGB values are converted into L * a * b * values using the RGB values of each pixel of the input image data. For example, assuming that the RGB value of a certain pixel K1 of the input image data is (R1, G1, B1), the coordinates of the XYZ coordinate system are calculated using the matrix transformation shown in the following equations (1), (2), and (3). Is converted to a value (X1, Y1, Z1).
X1 = 0.4124 × R1 + 0.3576 × G1 + 0.1805 × B1 (1)
Y1 = 0.2126 × R1 + 0.7152 × G1 + 0.0722 × B1 (2)
Z1 = 0.0193 × R1 + 0.1192 × G1 + 0.9505 × B1 (3)
[0052]
Here, the XYZ coordinate values of the white point are (X0, Y0, Z0), the L * a * b * coordinate values of the white point are (L0, a0, b0), and the L * a * b * coordinates of the pixel K1. Assuming that the coordinate values of the system are (L1, a1, b1),
If Y1 / Y0> 0.008856,
L1 = 116.0 × (Y1 / Y0) 1/3 -16.0 (4)
Becomes
When Y1 / Y0 ≦ 0.008856,
L1 = 903.29 × Y1 / Y0 (5)
It becomes. Thus, the luminance value L1 of the pixel K1 whose RGB value is (R1, G1, B1) is calculated.
[0053]
When X1 / X0> 0.008856,
f (X1) = (X1 / X0) 1/3 … (6)
When X1 / X0 ≦ 0.008856,
f (X1) = 7.78 × X1 / X0 + 16/116 (7)
By the calculation, f (X1) is calculated.
Further, when Y1 / Y0> 0.008856,
f (Y1) = (Y1 / Y0) 1/3 … (8)
When Y1 / Y0 ≦ 0.008856,
f (Y1) = 7.78 × Y1 / Y0 + 16/116 (9)
By the calculation, f (Y1) is calculated.
Further, when Z1 / Z0> 0.008856,
f (Z1) = (Z1 / Z0) 1/3 … (10)
When Z1 / Z0 ≦ 0.008856,
f (Z1) = 7.78 × Z1 / Z0 + 16/116 (11)
Is used to calculate f (Z1).
[0054]
A1 and b1 are calculated by the following equations (12) and (13).
a1 = 500.0 × (f (X1) −f (Y1)) (12)
b1 = 200.0 × (f (Y1) −f (Z1)) (13)
[0055]
Then, from the L * a * b * coordinate values (L1, a1, b1), the saturation C1 and the hue θ1 can be obtained by the following equations (14) and (15).
C1 = (a1 2 + B1 2 ) 1/2 … (14)
θ1 = tan -1 (B1 / a1) ... (15)
[0056]
Similarly, the coordinate values (Lx, ax, bx), saturation Cx, and hue θx of the L * a * b * coordinate system of all the pixels Kx of the input image data are calculated. From the luminance Lx, the saturation Cx, and the hue θx of all the pixels of the input image data, a saturation range is determined from the maximum and minimum values of the saturation values for the luminance of the input image data in each hue.
[0057]
Next, corresponding to step S25, the saturation range of the input image data obtained at the hue θ2 is compared with the saturation range of the color reproduction range of the output device A shown in FIG. FIG. 5 is a diagram illustrating a color reproduction range of the luminance L * and the chroma C * at the hue θ2 of the output device A in the luminance and chroma adjustment example. In FIG. 5, the range painted out in gray is the color reproduction range of the output device A. Similarly, the saturation ranges of other hues are compared.
[0058]
Next, corresponding to steps S26 to S30, when the saturation range of the input image data is out of the color reproduction range of the output device A as shown in FIG. The brightness adjustment amount ΔL2 can be obtained as follows. On the hue θ2 of the point K2, the saturation Cmax and the luminance Lmax of the pixel point Kmax having the highest luminance on a straight line connecting the black point (chroma Cblack = 0, luminance Lblack = 0) and the point K2 are obtained.
[0059]
Then, a provisional luminance adjustment amount is obtained using the gradation adjustment curve shown in FIG. FIG. 6 is a diagram illustrating a gradation adjustment curve in the main luminance and saturation adjustment example. The horizontal axis is the input luminance value Lin, and the vertical axis is the adjusted output luminance value Lout. The output luminance value after adjustment with respect to the input luminance value L2 at the point K2 is Lout2 from FIG.
Then, the temporary luminance adjustment amount Δla2 is obtained from the gradation adjustment curve by the following equation (16).
Δla2 = Lout2−L2 (16)
[0060]
Further, correction is performed by the following equation (17) so that all the pixels of the input image data fall within the color reproduction range of the output device A, and the luminance adjustment amount ΔL2 is obtained.
Figure 2004336656
Here, lb2 indicates the maximum value of the luminance of the color reproduction range of the output device A on the straight line connecting the black point and the point K2. Similarly, for all the pixels Kx of the input image data, the luminance adjustment amount ΔLx is obtained, and the RGB value of each pixel is calculated from the obtained luminance adjustment amount ΔLx and the original input image data. I do.
[0061]
According to the first brightness and saturation adjustment example, when the saturation range of the input image data exceeds the saturation range of the output device, the brightness is adjusted so that the input saturation range falls within the saturation range of the output device. The adjustment amount is corrected, and the brightness and saturation of the input image data are adjusted using the corrected brightness adjustment amount ΔLx. For this reason, input image data whose luminance and saturation have been adjusted so that the input saturation range falls within the saturation range of the output device can be output to the output device, and image data that matches the color reproduction range of the output device can be output. .
[0062]
In general, the color reproduction range becomes narrower as the saturation C becomes larger. However, as shown in Expression (17), the brightness adjustment amount ΔL becomes smaller as the saturation C becomes larger. Even if the luminance and the saturation are adjusted, it is possible to prevent the color collapse. Further, since the luminance and the saturation are adjusted in consideration of the saturation C, an apparent change in the saturation C can be reduced.
[0063]
Further, gradation conversion can be performed on the input image data by the gradation adjustment curve shown in FIG. Examples of the gradation adjustment curve include a linear conversion in which the relationship between the input value and the output value is linear, and a non-linear conversion in which the relationship between the input value and the output value is an S-shaped curve. Further, different gradation adjustments can be performed for each color. In particular, when obtaining the luminance adjustment amount, high-speed processing can be performed by correcting the luminance adjustment amount with the color adjustment amount by gradation conversion.
[0064]
(Second luminance and saturation adjustment example)
The second brightness and saturation adjustment example is a brightness and saturation adjustment example as a modified example of the first brightness and saturation adjustment example, and different portions will be mainly described. In the present example of the luminance and saturation adjustment, the luminance and the saturation are adjusted such that the luminance adjustment amount differs for each hue of the input image data in the first luminance and saturation adjustment example.
[0065]
Specifically, the present brightness and saturation adjustment example is such that when the saturation range of the input image data exceeds the saturation range of the output device, the input saturation range falls within the saturation range of the output device. The luminance adjustment amount is corrected so that the luminance adjustment amount decreases as the saturation of each pixel of the input image data increases, and the luminance adjustment amount differs for each hue. To adjust the brightness of the input image data.
[0066]
According to the second brightness adjustment example, since the brightness adjustment amount is different for each hue, in a region where the hue of the input image data is different, brightness and saturation adjustment can be performed using different brightness adjustment amounts. It is not necessary to make different luminance and saturation adjustments for all hues, but at least one hue has different luminance and saturation adjustments than other hues. In particular, unlike the other hues, it is preferable that the luminance and the saturation are adjusted so that the skin color does not become unnatural by maintaining the apparent saturation, unlike the other hues.
[0067]
(Third luminance and saturation adjustment example)
The third luminance and saturation adjustment example is a luminance adjustment example as a modified example of the first luminance and saturation adjustment example, and different portions will be mainly described. The present luminance and saturation adjustment example is for adjusting the luminance in a hue other than the hue including at least the flesh color hue in the first luminance and saturation adjustment example.
[0068]
Specifically, the present brightness and saturation adjustment example is such that when the saturation range of the input image data exceeds the saturation range of the output device, the input saturation range falls within the saturation range of the output device. The luminance adjustment amount is corrected so that the luminance adjustment amount decreases as the saturation of each pixel of the input image data increases in a hue other than the hue including at least the flesh color hue, and input is performed using the luminance adjustment amount. Adjust brightness and saturation of image data.
[0069]
According to the third luminance and saturation adjustment example, it is possible to perform a color adjustment different from the skin color hue in the input image data in hues other than the hue including at least the skin color hue. Since the hue of the flesh color is particularly noticeable to human eyes, it is possible to adjust the luminance according to the nature of the hue of the flesh color. Further, it is preferable that the luminance and the saturation of the entire input image data are adjusted so that the flesh color reproducibility is enhanced.
[0070]
Note that the processing of the first to third brightness and saturation adjustment examples is performed not on each pixel of the input image data but on each grid point of an LUT (look-up table), and the input image data is adjusted. LUT conversion may be used to adjust luminance and saturation. According to the luminance and saturation adjustment by the LUT conversion, the calculation can be speeded up even when input image data having a large number of pixels is handled.
[0071]
Further, in the present embodiment, the brightness and saturation adjustment device 120 and each of the output devices 161 to 165 are configured as separate devices, but the output device is provided with the function of the brightness and saturation adjustment device 120. , An integrated image output device.
[0072]
The description in the present embodiment described above is an example of a suitable image processing system 100 according to the present invention, and the present invention is not limited to this.
[0073]
【The invention's effect】
According to the invention described in claim 1, 5 or 6, when the input saturation range of the input image data exceeds the saturation range of the output device, the input saturation range falls within the saturation range of the output device. The brightness adjustment amount is corrected as described above, and the brightness and saturation of the input image data are adjusted using the corrected brightness adjustment amount. For this reason, input image data whose luminance and saturation have been adjusted so that the input saturation range falls within the saturation range of the output device can be output to the output device, and image data that matches the color reproduction range of the output device can be output. .
In general, the higher the saturation, the narrower the color reproduction range. However, in the present invention, the higher the saturation, the smaller the luminance adjustment amount. Even if the adjustment is made, it is possible to prevent color collapse. Furthermore, since the luminance and the saturation are adjusted in consideration of the saturation, an apparent change in the saturation can be reduced.
[0074]
According to the second aspect of the present invention, since the luminance adjustment amount is different for each hue, in a region where the hue of the input image data is different, the luminance and saturation adjustment can be performed using the different luminance adjustment amounts. .
[0075]
According to the invention described in claim 3, when the input saturation range of the input image data exceeds the saturation range of the output device, the input saturation range falls within the saturation range of the output device, and The luminance adjustment amount is corrected so that the luminance adjustment amount becomes smaller as the saturation of each pixel of the input image data becomes larger at a hue other than the hue including at least the skin color hue, and the input image data is corrected using the corrected luminance adjustment amount. Adjust brightness and saturation. For this reason, it is possible to perform color adjustment different from the flesh color hue in the hue other than the hue including at least the flesh color hue of the input pixel data. Since the hue of the flesh color is particularly noticeable to human eyes, it is possible to adjust the luminance and the saturation according to the nature of the hue of the flesh color.
[0076]
According to the fourth aspect of the present invention, it is possible to perform gradation conversion in adjusting luminance and saturation of input image data. Further, for example, when obtaining the luminance adjustment amount, high-speed processing can be performed by correcting the luminance adjustment amount with the color adjustment amount by gradation conversion.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an image processing system 10 according to an embodiment of the present invention.
FIG. 2 is a graph showing luminance and saturation of an output device and input image data.
FIG. 3 is a flowchart illustrating an image data output process.
FIG. 4 is a flowchart illustrating brightness and saturation adjustment processing during image data output processing.
FIG. 5 is a diagram illustrating a color reproduction range of luminance L * and chroma C * at hue θ2 of output device A in the first luminance and chroma adjustment example.
FIG. 6 is a diagram illustrating a gradation adjustment curve in a first luminance and saturation adjustment example.
[Explanation of symbols]
100 image processing system
110 ... Image processing device
111 ... Film scan data processing unit
112: Reflection original scan data processing unit
113 ... Image data format decryption processing unit
114 ... Image adjustment processing unit
115 ... CRT specific processing unit
116, 117: Printer-specific processing unit
118 ... Image data creation processing unit
119: template processing unit
120: Brightness and saturation adjustment device
121: Header information analysis unit
122: Device characteristic correction processing unit
123 ... Shooting information data processing unit
124 input image data generation unit
125 output image data generation unit
126 ... Brightness adjustment unit
131 ... Film scanner unit
132 ... Reflection original input device
133 ... Image transfer means
134,165 ... communication means
141 operation unit
142 ... Control unit
151 processing means table storage means
152, 155... Data storage means
153: saturation range storage means
154... Gradation adjustment table storage means
156... Template storage means

Claims (6)

入力画像データの各画素の彩度が出力デバイスの彩度範囲内に入るように輝度調整量を補正して、その輝度調整量を用いて前記入力画像データの各画素の輝度値を調整する輝度及び彩度調整方法において、
調整すべき前記入力画像データの各画素の彩度値を算出し、その輝度値より前記入力画像データの入力彩度範囲を求め、
前記入力彩度範囲と予め用意された出力デバイスの彩度範囲とを比較し、
前記入力彩度範囲が前記出力デバイスの彩度範囲を超えている場合に、前記入力彩度範囲が前記出力デバイスの輝度範囲に入るように、かつ前記入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように輝度調整量を補正し、
その補正された前記輝度調整量を用いて、前記入力画像データの各画素の輝度値を調整することを特徴とする輝度及び彩度調整方法。
A luminance adjusting unit that corrects the luminance adjustment amount so that the saturation of each pixel of the input image data falls within the saturation range of the output device, and uses the luminance adjustment amount to adjust the luminance value of each pixel of the input image data; And in the saturation adjustment method,
Calculate the saturation value of each pixel of the input image data to be adjusted, determine the input saturation range of the input image data from the luminance value,
Compare the input saturation range and the saturation range of the output device prepared in advance,
When the input saturation range exceeds the saturation range of the output device, the input saturation range falls within the luminance range of the output device, and the saturation of each pixel of the input image data is large. The brightness adjustment amount is corrected so that the brightness adjustment amount becomes smaller as
A brightness and saturation adjustment method, wherein a brightness value of each pixel of the input image data is adjusted using the corrected brightness adjustment amount.
色相ごとに輝度調整量を異にすることを特徴とする請求項1に記載の輝度及び彩度調整方法。The brightness and saturation adjustment method according to claim 1, wherein the brightness adjustment amount is different for each hue. 前記輝度調整量の補正において、
前記入力彩度範囲が前記出力デバイスの輝度範囲を超えている場合に、前記入力彩度範囲が前記出力デバイスの輝度範囲に入るように、かつ少なくとも肌色の色相を含む色相以外の色相で前記入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように前記輝度調整量を補正することを特徴とする請求項1に記載の輝度及び彩度調整方法。
In correcting the brightness adjustment amount,
When the input saturation range exceeds the luminance range of the output device, the input saturation range falls within the luminance range of the output device, and the input has a hue other than a hue including at least a skin color hue. The brightness and saturation adjustment method according to claim 1, wherein the brightness adjustment amount is corrected such that the brightness adjustment amount decreases as the saturation of each pixel of the image data increases.
前記入力画像データの各画素の輝度値の調整は、前記入力画像データの階調変換を含むことを特徴とする請求項1から3のいずれか一項に記載の輝度及び彩度調整方法。The method according to claim 1, wherein the adjustment of the luminance value of each pixel of the input image data includes a gradation conversion of the input image data. 入力画像データの各画素の彩度が出力デバイスの彩度範囲内に入るように輝度調整量を補正する補正手段と、その輝度調整量を用いて前記入力画像データの各画素の輝度値を調整する輝度調整手段とを備える輝度及び彩度調整装置において、
調整すべき前記入力画像データの各画素の彩度値を算出し、その輝度値より前記入力画像データの入力彩度範囲を求める算出手段と、
前記入力彩度範囲と予め用意された出力デバイスの彩度範囲とを比較する比較手段とを備え、
前記補正手段は、前記入力彩度範囲が前記出力デバイスの彩度範囲を超えている場合に、前記入力彩度範囲が前記出力デバイスの輝度範囲に入るように、かつ前記入力画像データの各画素の彩度が大きいほど輝度調整量が小さくなるように輝度調整量を補正し、
前記輝度調整手段は、前記補正された前記輝度調整量を用いて、前記入力画像データの各画素の輝度値を調整することを特徴とする輝度及び彩度調整装置。
Correction means for correcting the luminance adjustment amount so that the saturation of each pixel of the input image data falls within the saturation range of the output device, and adjusting the luminance value of each pixel of the input image data using the luminance adjustment amount Brightness and saturation adjustment device comprising:
Calculating means for calculating a saturation value of each pixel of the input image data to be adjusted, and calculating an input saturation range of the input image data from the luminance value;
Comparing means for comparing the input saturation range with a saturation range of an output device prepared in advance,
When the input saturation range exceeds the saturation range of the output device, the correction unit causes the input saturation range to fall within the luminance range of the output device, and each pixel of the input image data. The brightness adjustment amount is corrected so that the larger the saturation of the brightness, the smaller the brightness adjustment amount.
The brightness and saturation adjustment device, wherein the brightness adjustment unit adjusts a brightness value of each pixel of the input image data using the corrected brightness adjustment amount.
請求項5に記載の輝度及び彩度調整装置と、
前記輝度及び彩度調整装置により、輝度値が調整された前記入力画像データを出力画像データとして出力する出力デバイスとを備えることを特徴とする画像出力装置。
A brightness and saturation adjustment device according to claim 5,
An output device that outputs, as output image data, the input image data whose luminance value has been adjusted by the luminance and saturation adjustment device.
JP2003133437A 2003-05-12 2003-05-12 Method and apparatus for luminance and saturation adjusting and image output apparatus Pending JP2004336656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003133437A JP2004336656A (en) 2003-05-12 2003-05-12 Method and apparatus for luminance and saturation adjusting and image output apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003133437A JP2004336656A (en) 2003-05-12 2003-05-12 Method and apparatus for luminance and saturation adjusting and image output apparatus

Publications (1)

Publication Number Publication Date
JP2004336656A true JP2004336656A (en) 2004-11-25

Family

ID=33507978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003133437A Pending JP2004336656A (en) 2003-05-12 2003-05-12 Method and apparatus for luminance and saturation adjusting and image output apparatus

Country Status (1)

Country Link
JP (1) JP2004336656A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027570A (en) * 2007-07-23 2009-02-05 Ricoh Co Ltd Image processor, image processing method, program and recording medium
KR101279773B1 (en) * 2008-12-26 2013-07-04 닛본 덴끼 가부시끼가이샤 Image processing device, image processing method, and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027570A (en) * 2007-07-23 2009-02-05 Ricoh Co Ltd Image processor, image processing method, program and recording medium
KR101279773B1 (en) * 2008-12-26 2013-07-04 닛본 덴끼 가부시끼가이샤 Image processing device, image processing method, and storage medium
US8891865B2 (en) 2008-12-26 2014-11-18 Nec Corporation Image processing device, image processing method, and storage medium for performing a gradation correction operation in a color space

Similar Documents

Publication Publication Date Title
US7486312B2 (en) Brightness correction for image
US6975437B2 (en) Method, apparatus and recording medium for color correction
US20090066806A1 (en) Image processing device, image processing method, and image processing program
US7333136B2 (en) Image processing apparatus for carrying out tone conversion processing and color correction processing using a three-dimensional look-up table
JP7316768B2 (en) Image processing device, image processing method, and program
JPWO2005079056A1 (en) Image processing apparatus, photographing apparatus, image processing system, image processing method and program
US6744920B1 (en) Method, apparatus, and recording medium for processing image data to obtain color-balance adjusted image data based on white-balance adjusted image data
US20080062484A1 (en) Image processing device and image processing method
WO2003036960A1 (en) Control of image output using image processing control data
US20090201391A1 (en) Color processing apparatus and method
JP2004088345A (en) Image forming method, image processor, print preparation device, and storage medium
JP2004096505A (en) Image processing method, image processing apparatus, image recording apparatus, program, and recording medium
JP4208767B2 (en) Image processing apparatus and image processing method
JP3588418B2 (en) Image correction method, image correction device, and recording medium
WO2009093294A1 (en) Image signal processing device and image signal processing program
JP4300780B2 (en) Color conversion coefficient creation method, color conversion coefficient creation apparatus, program, and storage medium
JPH1075374A (en) Image processing unit and its method
JP2000092337A (en) Image processing method, its device and recording medium
JP2004336656A (en) Method and apparatus for luminance and saturation adjusting and image output apparatus
US20100238300A1 (en) Color control apparatus, method for creating color control system, and method for creating color reproduction apparatus
JP2004336655A (en) Method and apparatus for luminance adjusting and image output apparatus
JP2002094810A (en) Picture processor, picture processing method and memory medium having stored programs for the method
JP2006203571A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP2004096508A (en) Image processing method, image processing apparatus, image recording apparatus, program, and recording medium
JP2008227959A (en) Image processing device, image processing method and image processing system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20040830

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060418

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20070827

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20080221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080729

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081125