JP2004222078A - Image processor, image processing method, and program thereof - Google Patents
Image processor, image processing method, and program thereof Download PDFInfo
- Publication number
- JP2004222078A JP2004222078A JP2003008712A JP2003008712A JP2004222078A JP 2004222078 A JP2004222078 A JP 2004222078A JP 2003008712 A JP2003008712 A JP 2003008712A JP 2003008712 A JP2003008712 A JP 2003008712A JP 2004222078 A JP2004222078 A JP 2004222078A
- Authority
- JP
- Japan
- Prior art keywords
- color space
- image data
- image
- unit
- correction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims description 10
- 238000012937 correction Methods 0.000 claims abstract description 130
- 238000012545 processing Methods 0.000 claims abstract description 97
- 238000004458 analytical method Methods 0.000 claims description 50
- 238000000034 method Methods 0.000 claims description 37
- 238000006243 chemical reaction Methods 0.000 claims description 33
- 230000006835 compression Effects 0.000 claims description 9
- 238000007906 compression Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 description 14
- 238000009499 grossing Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 239000000284 extract Substances 0.000 description 6
- 238000009825 accumulation Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003702 image correction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、デジタル画像に対して画質補正処理を行う画像処理装置、画像処理方法、及びそのプログラムに関する。
【0002】
【従来の技術】
画像データは、ディジタルスチルカメラ等によるデータ生成段階、転送または蓄積段階、コンピュータ端末上でなされる画像処理段階、および、プリンタ等による印刷段階などの各段階で異なる色空間により表現されている。例えば、データ生成段階ではdRGB色空間、転送または蓄積段階ではsYCC色空間、画像処理段階ではsRGB色空間、印刷段階ではCMYK色空間がそれぞれ用いられている。
これらの色空間は、互いに表現する色表現域が異なるため、色空間の変換を繰り返すうちに、画像データの一部が失われるといった問題があった。
例えば、JPEG(Joint Photographic Experts Group)等で圧縮され転送されてきた画像データは、sYCC色空間で表現されているが、画像処理装置または画像形成装置内で、色表現域の狭いsRGB色空間に変換されていた。そのため、sYCC色空間では表現されていた階調が表現されず、一方で、この階調を維持するためにsRGB色空間の階調を増やすと、画像データのデータサイズが膨大になってしまう。
このような問題に対して、sRGB表色系よりも広い色表現域を有するwRGB表色系を用いて、表現色数を維持する画像処理装置が開示されている(例えば、特許文献1)。
【0003】
なお、画像データに付随する付随情報を用いて、画像データの生成者の意図を反映させた画質調整のパラメータを設定する方法が開示されている(例えば、特許文献2および特許文献3)。
【0004】
【特許文献1】
特開2002−344763号公報
【特許文献2】
特開2002−344881号公報
【特許文献3】
特開2002−344889号公報
【0005】
【発明が解決しようとする課題】
本発明は、上述した背景からなされたものであり、広い色空間情報を保持した状態で、画像処理を行うことができる画像処理装置を提供することを目的とする。
【0006】
【課題を解決するための手段】
[画像処理装置]
上記目的を達成するために、本発明にかかる画像処理装置は、所定の色空間で表現された画像データを取得するデータ取得手段と、前記データ取得手段により取得された画像データに基づいて、補正量を算出する補正量算出手段と、前記色空間で表現され、前記データ取得手段により取得された画像データに対して、前記補正量算出部により算出された補正量に応じた画質補正処理を行う画質補正手段とを有する。
【0007】
好適には、前記補正量算出手段は、前記色空間で表現された画像データの一部を解析し、この解析結果に基づいて補正量を算出する。
【0008】
好適には、前記色空間で表現された画像データの一部を、RGB色空間で表現された画像データに変換する色空間変換手段をさらに有し、前記補正量算出手段は、前記色空間変換手段により変換された画像データを解析し、この解析結果に基づいて補正量を算出する。
【0009】
好適には、前記色空間変換手段は、画像データの一部を、sRGB色空間よりも色表現域が広いRGB空間に変換する。
【0010】
好適には、前記画像データに付随する付随情報を取得する付随情報取得手段をさらに有し、前記色空間変換手段は、前記付随情報取得手段により取得された付随情報に基づいて、画像データの変換先の色空間を選択する。
【0011】
好適には、前記色空間変換手段は、取得された付随情報に基づいて、sRGB色空間、または、sRGB色空間よりも色表現域が広いRGB色空間を、画像データの変換先として選択する。
【0012】
好適には、前記画質補正手段は、色変換処理およびシャープネス補正処理の少なくとも一方を、前記画質補正処理として行う。
【0013】
好適には、画像データを復号化する復号化手段をさらに有し、前記データ取得手段は、前記圧縮方式で圧縮された画像データを取得し、前記画質補正手段は、前記復号化手段により復号化され、前記圧縮方式に対応する色空間で表現されている画像データに対して、画質補正処理を行う。
【0014】
好適には、前記色空間は、輝度色差色空間であり、前記画質補正手段は、輝度色差色空間で表現された画像データに対して、画質補正処理を行う。
【0015】
好適には、前記色空間は、JPEG圧縮方式に対応するsYCC色空間であり、前記データ取得手段は、JPEG圧縮方式で圧縮された画像データを取得し、前記復号化手段は、前記データ取得手段により取得された画像データを復号化して、sYCC色空間で表現された画像データとし、前記画質補正手段は、前記復号化手段により復号化され、sYCC色空間で表現された画像データに対して、画質補正処理を行う。
【0016】
[画像処理方法]
また、本発明にかかる画像処理方法は、所定の色空間で表現された画像データを取得し、取得された画像データに基づいて、補正量を算出し、前記色空間で表現された画像データに対して、算出された補正量に応じた画質補正処理を行う。
【0017】
[プログラム]
また、本発明にかかるプログラムは、コンピュータを含む画像処理装置において、所定の色空間で表現された画像データを取得するステップと、取得された画像データに基づいて、補正量を算出するステップと、前記色空間で表現された画像データに対して、算出された補正量に応じた画質補正処理を行うステップとを前記画像処理装置のコンピュータに実行させる。
【0018】
【発明の実施の形態】
[第1の実施形態]
以下、本発明の第1の実施形態について図面を参照して説明する。
図1は、本発明にかかる画像処理方法が適応されるプリンタ装置1のハードウェア構成を、その制御装置2を中心に例示する図である。
図1に示すように、プリンタ装置1は、制御装置2およびコピー装置本体10から構成される。
制御装置2は、CPU202およびメモリ204などを含む制御装置本体20と、通信装置22と、HDD・CD装置などの記録装置24と、LCD表示装置あるいはCRT表示装置およびキーボード・タッチパネルなどを含むユーザインターフェース装置(UI装置)26とから構成される。
プリンタ装置1は、ディジタルスチルカメラまたはスキャナ等で生成された画像データを、USBケーブルやLANケーブル等に接続された通信装置22、または、リムーバブルメディアが挿入可能な記録装置24を介して取得し、入力された画像データに対して、入力時の色空間で表現されたデータのままで画質補正処理を行い、画質補正処理後に画像データをCMYK色空間に変換してシート上に印刷する。
なお、画像データは、JPEGで圧縮され、転送または蓄積される場合が多いので、プリンタ装置1に入力される画像データが、JPEGに対応するsYCC色空間で表現されている場合を具体例として以下説明する。sYCC色空間は、輝度と色度とを互いに直交するパラメータで表現する色空間であり、JPEGに対応する色空間である。
【0019】
また、プリンタ装置1は、画質補正処理後の画像データ(sYCC色空間表現)をJPEG等で圧縮し、通信装置22または記録装置24を介して外部に出力してもよい。
以下、プリンタ装置1が、ディジタルスチルカメラまたはスキャナ等でJPEG圧縮された画像データを取得し、これに対して画像処理を施した後でシート上に印刷する形態を具体例として説明する。
【0020】
図2は、制御装置2(図1)により実行され、本発明にかかる画像処理方法を実現する画像処理プログラム5の構成を示す図である。なお、本実施形態の画像処理プログラム5は、制御装置2にインストールされた画像処理プログラム5として実現される場合を具体例として説明するが、画像処理プログラム5の一部または全部の機能が専用のハードウエアで構成されていてもよい。
図2に示すように、画像処理プログラム5は、タグ取得部510、画像取得部520、復号化部530、平滑化処理部540、部分抽出部550、解析部560、補正データベース(補正DB)568、画質補正処理部570および画像出力部580を有する。
また、解析部560は、タグ解析部562、特徴量解析部564および補正量算出部566を含み、画質補正処理部570は、3D−LUT処理部572、記憶色処理部574およびシャープネス強調処理部576を含む。
【0021】
画像処理プログラム5において、タグ取得部510は、画像データに付随する付随情報(以下、タグデータ)を読み込んで、解析部560に対して出力する。タグデータは、例えば、ディジタルスチルカメラの標準画像フォーマットであるExif(Exchangeable image file format for digital still cameras)に格納されたデータであり、撮影シーン、被写体領域、露出モード、ホワイトバランス、ディジタルズーム倍率、焦点距離、撮影コントラスト、撮影彩度、撮影シャープネスおよび被写体距離レンジ等を特定するための情報を含む。
【0022】
画像取得部520は、通信装置22または記録装置24を介して、JPEG圧縮された画像データを取得し、復号化部530に対して出力する。
復号化部530は、画像取得部520から入力された画像データを復号化して、平滑化処理部540に対して出力する。
平滑化処理部540は、復号化された画像データに対して、平滑化処理を施してノイズを抑制し、部分抽出部550および画質補正処理部570に対して出力する。
【0023】
部分抽出部550は、平滑化処理部540から入力された画像データに基づいて、データサイズを低減させたサムネイル画像を生成し、解析部560に対して出力する。また、部分抽出部550は、記憶色処理部574から入力された画像データから、画像の主題となる部分の画像データ(以下、切出し画像)を生成し、解析部560に対して出力する。画像の主題となる部分は、画像の中心部分にある場合が多いので、部分抽出部550は、例えば、画像データの中心部分を切り出して、切出し画像とする。
【0024】
解析部560は、タグ解析部562、特徴量解析部564および補正量算出部566を含み、補正量を算出して、画質補正処理部570に対して出力する。
タグ解析部562は、タグ取得部510により取得されたタグデータに基づいて、撮影シーン、撮影日時、カメラの種類、フラッシュの有無、ホワイトバランス、撮影コントラスト、撮影彩度および撮影シャープネス等の撮影情報を特定する。
また、タグ解析部562は、ICC(Internatinal Color Consortium)プロファイルのように、画像の色の特性を表す情報が内包されていれば、後工程の解析のために、ガンマ特性または標準解析空間(例えばsRGBなど)に対応するように補正する。
【0025】
特徴量解析部564は、部分抽出部550から入力されたサムネイル画像または切出し画像を解析して、画像の特徴量を抽出する。
例えば、特徴量解析部564は、RGBヒストグラムまたは画像データのHSLヒストグラムなどに基づいて、画像内の明度分布、彩度分布およびカラーバランスを特徴づける特徴量を算出したり、画像サイズ、画像データのエッジ量およびエッジ強度などに基づいて、画像シャープネスのエッジ度を特徴量として算出する。
また、特徴量解析部564は、画像内部の肌色分布および顔らしさの形状抽出などを組み合わせ、人物らしさの特徴量を抽出し、さらに、このシーンが人物主体のシーンであるかどうかなどのシーンを分類するための特徴量、主要被写体の顔の大きさを示す特徴量、および、人物人数を示す特徴量等を算出してもよい。
また、特徴量解析部564は、画像内部の局所的な明るさの分布状態などからシーンの撮影状況(主要被写体の逆光状況および人物の大きさ等)などの特徴量を抽出し、さらに、逆光状態を示す特徴量を算出してもよい。
【0026】
補正量算出部566は、タグ解析部562により特定された撮影情報、および、特徴量解析部564により算出された特徴量に基づいて、補正量を算出する。より具体的には、補正量算出部566は、撮影情報および特徴量を用いて画像を分類し、補正DB568を参照して、この画像の分類に対応する補正方法および補正パラメータの検索を行う。
補正DB568は、画像の分類と、補正方法および補正パラメータとを対応付けており、補正量算出部566は、画像の分類に対応する補正方法および補正パラメータを画質補正処理部570に対して出力する。なお、補正パラメータは、sYCC色空間に対応する三次元LUT(以下、3D−LUT)処理、記憶色補正およびシャープネス強調のパラメータである。
【0027】
画質補正処理部570は、3D−LUT処理部572、記憶色処理部574およびシャープネス強調処理部576を含み、平滑化処理部540から入力された画像データに対して画質補正処理を行い、画像出力部580に対して出力する。その際、画質補正処理部570は、補正量算出部566から入力される補正方法および補正パラメータに応じて、明暗コントラスト補正、色相・カラーバランス補正、彩度補正、記憶色補正およびシャープネス強調処理等を、画質補正処理として行う。
【0028】
画像出力部580は、画質補正処理部570から入力された画像データをCMYK色空間に変換し、プリンタ装置本体10のプリントエンジン(不図示)を制御してシート上に印刷する。画像出力部580は、入力された画像データ(sYCC色空間)をJPEG圧縮し、通信装置22または記録装置24を制御して外部に出力してもよい。
【0029】
[全体動作]
図3は、プリンタ装置1(画像処理プログラム5)の第1の動作(S10)を示すフローチャートである。
ステップ100(S100)において、UI装置26が、画像印刷の指示を受け付けると、画像データ取得部520は、通信装置22または記録装置24を介して、JPEGで圧縮された画像データを取得し、復号化部530に対して出力する。また、タグ取得部510は、画像データに付随するタグデータを取得して、解析部560に対して出力する。
【0030】
ステップ102(S102)において、復号化部530は、入力された画像データを復号化し、平滑化処理部540に対して出力する。なお、復号化された画像データは、sYCC色空間で表現されたデータである。
ステップ104(S104)において、平滑化処理部540は、入力された画像データに対して、平滑化処理を施して、部分抽出部550および画質補正処理部570に対して出力する。
【0031】
ステップ106(S106)において、部分抽出部550は、平滑化処理部540から入力された画像データに基づいて、サムネイル画像を生成し、解析部560に対して出力される。なお、サムネイル画像も、sYCC色空間で表現されたデータである。
【0032】
ステップ108(S108)において、解析部560におけるタグ解析部562は、タグデータを解析して、撮影時の状況を特定する撮影情報を生成し、特徴量解析部564は、サムネイル画像を解析して、特徴量を算出する。補正量算出部566は、生成された撮影情報と、算出された特徴量とに対応する3D−LUT処理および記憶色補正の補正パラメータを、補正DB568から抽出し、画質補正処理部570に対して出力する。
【0033】
ステップ110(S110)において、画質補正処理部570のおける3D−LUT処理部572は、三次元表現されたLUTを参照して、入力された補正パラメータに対応する補正を、平滑化処理部540から入力された画像データに対して行う。その後、記憶色処理部574は、入力された補正パラメータに応じて、記憶色補正を行い、部分抽出部550に対して補正後の画像データを出力する。なお、補正後の画像データは、画質補正処理部570にも保持されている。
【0034】
ステップ112(S112)において、部分抽出部550は、記憶色処理部570から入力された画像データから、切出し画像を生成し、解析部560に対して出力する。
【0035】
ステップ114(S114)において、解析部560におけるタグ解析部562は、タグデータを解析して、シャープネス強度に関連する撮影情報を生成し、特徴量解析部564は、切出し画像を解析して、シャープネス強度に関する特徴量を算出する。補正量算出部566は、生成された撮影情報と、算出された特徴量とに対応するシャープネス強調処理の補正パラメータを、補正DB568から抽出し、画質補正処理部570に対して出力する。
【0036】
ステップ116(S116)において、画質補正処理部570におけるシャープネス強調処理部576は、入力された補正パラメータに応じて、記憶色補正がなされた画像データに対して、シャープネス強調処理を施し、画像出力部580に対して出力する。
【0037】
ステップ118(S118)において、画像出力部580は、入力された画像データ(sYCC)をCMYK色空間で表現されたデータに変換し、プリンタ装置本体10を制御して、変換後の画像データを用いて画像を印刷する。
【0038】
以上説明したように、プリンタ装置1は、画質補正処理、および、画質補正の補正パラメータを決定するための解析処理を、入力された画像データの色空間表現のままで行うことにより、色空間を変換するための処理を省略できる。また、本例では、プリンタ装置1は、JPEG圧縮に対応するsYCC色空間のまま画質補正処理等を行うので、画像データの一時蓄積時または画像データの転送時に、色空間の変換なしにJPEGで再圧縮できる。
また、sYCC色空間はsRGB色空間よりも色表現域が広いので、sYCC色空間からsRGB色空間に変換すると階調が落ちるという問題があったが、本例のプリンタ装置1は、画像データ入力時の画像データにより表現されていた階調を落とすことなく、画質補正処理を行うことができる。
なお、上記実施形態では説明を簡単にするために、プリンタ装置内で一般的に行われている補正処理の一部を具体例として説明したが、これに限定されるものではなく、本発明にかかるプリンタ装置1は、データ入力時と同じ色空間表現で様々な画像補正処理を行うことができる。
【0039】
[第2の実施形態]
次に、本発明の第2の実施形態を説明する。
第1の実施形態では、解析部560における解析処理も、sYCC色空間で表現された画像データを用いてなされていたが、第2の実施形態では、解析処理についてのみ、sYCC色空間で表現された画像データをRBG色空間に変換して行う。なお、解析処理は、必ずしも画像データ全体が必要な訳ではないので、画像データの一部について色空間を変換し、解析処理に用いる。
また、RGB色空間には、sRGB色空間と、これよりも色表現域が広い拡張RGB色空間とがあるが、画像データ生成時の意図に応じて、解析処理に用いる色空間を選択する。
以下、このような観点から第1の実施形態に変更を加えたものを、第2の実施形態として説明する。
【0040】
図4は、第2の画像処理プログラム52の構成を示す図である。なお、図4における各構成のうち、図2で説明したものと実質的に同一なものには同一の符号が付されている。
図4に示すように、第2の画像処理プログラム52は、解析部560内に、色空間変換部563を加えた構成をとる。色空間変換部563は、部分抽出部550から入力された画像データ(sYCC色空間)を、sRGB色空間または拡張RGB色空間で表現された画像データに変換する。
【0041】
また、本例のタグ解析部562は、タグデータを解析して、入力時の画像データの色空間(本例ではsYCC色空間)が撮影時に意図して利用されたものか否かを特定し、色空間情報として色空間変換部563に対して出力する。色空間変換部563は、タグ解析部562から入力された色空間情報に応じて、変換する色空間を選択する。より具体的には、色空間変換部563は、sYCC色空間が意図的に利用された場合に、拡張RGB色空間を選択して画像データを変換し、これ以外の場合に、sRGB色空間を選択して画像データを変換する。
意図せずにsYCC色空間が利用された場合に、画質補正処理において、おかしな色変換がなされる可能性があるので、sYCC色空間に変換された画像データを用いて解析処理を行うことにより、解析処理の精度を上げて、おかしな色変換を防止する。
【0042】
図5は、プリンタ装置1(画像処理プログラム52)の第2の動作(S12)を示すフローチャートである。なお、図5に示された各処理のうち、図3に示されたものと実質的に同一なものには同一の符号が付されている。
【0043】
S106で、部分抽出部550が、sYCC色空間で表現されたサムネール画像のデータを生成して、解析部560に対して出力すると、ステップ120(S120)において、タグ解析部562は、タグデータを解析して、sYCC色空間が意図的に利用されたものか否かを特定する。
【0044】
ステップ122(S122)において、画像処理プログラム52は、sYCC色空間が意図的に利用されたものである場合に、S124の処理に移行し、これ以外の場合に、S126の処理に移行する。
ステップ124(S124)において、色空間変換部563は、部分抽出部550から入力されたサムネール画像(sYCC色空間)を、拡張RGB色空間で表現された画像データに変換する。すなわち、色空間変換部563は、撮影時にsYCC色空間が意図的に利用されたと判断された場合に、拡張RGB色空間を選択する。
【0045】
一方、ステップ126(S126)において、色空間変換部563は、部分抽出部550から入力されたサムネール画像(sYCC色空間)を、sRGB色空間で表現された画像データに変換する。すなわち、色空間変換部563は、撮影時にsYCC色空間が意図的に利用されたと判断できなかった場合に、拡張RGB色空間よりも色表現域が狭いsRGB色空間を選択する。
なお、シャープネス強調の補正パラメータを設定する場合には、RGB色空間に変換しないので、色空間変換部563は、切出し画像に対して色空間変換を行わない。
【0046】
以上説明したように、第2の実施形態におけるプリンタ装置1は、補正パラメータ等を設定するための解析処理において、RGB色空間で表現された画像データを利用することができ、従来の製品等の整合性をとることができる。すなわち、従来、補正処理およびそのための解析処理は、RGB色空間で表現された画像データに基づいてなされており、RGB色空間で評価された特徴量と、補正パラメータ等とを対応付けるデータを、本プリンタ装置1に引き継ぎたい場合に好適である。
また、sYCC色空間で表現された画像データの中には、実世界では存在しないような色のデータが含まれる場合があるが、色表現域が狭いRGB色空間に変換することにより、存在し得ない色データは、色表現域から外れて削除され、解析処理の精度を上げることができる。本実施形態におけるプリンタ装置1は、RGB色空間に変換して、存在し得ない色データ等をフィルタリングすることにより、解析処理の精度を上げることができる。
なお、色空間変換の対象は、画像データの一部であるサムネイル画像であるため、色空間変換処理の負荷もそれほど大きくなく、拡張RGB色空間を採用してもデータサイズはそれほど大きくならない。
【0047】
なお、上記実施形態では、本発明がプリンタ装置1に適用される形態を具体例として説明したが、これに限定されるものではなく、デジタルカメラ、スキャナ、コンピュータ端末または携帯電話等に適用されてもよい。
例えば、ディジタルカメラまたはスキャナ等では、まず色表現域の広いRGB色空間(dRGB)の画像データが生成されるが、データ伝送または記録領域の都合で、sYCC色空間等の色空間に変換され圧縮される。そこで、ディジタルカメラまたはスキャナ等の場合には、sYCC色空間に変換された後の画像データに画像処理を施す場面で、本発明を適応することができる。
【0048】
【発明の効果】
以上説明したように、本発明にかかる画像処理装置、画像処理方法、及びそのプログラムによれば、広い色空間情報を保持したまま、画像処理を行うことができる。
【図面の簡単な説明】
【図1】本発明にかかる画像処理方法が適応されるプリンタ装置1のハードウェア構成を、その制御装置2を中心に例示する図である。
【図2】制御装置2(図1)により実行され、本発明にかかる画像処理方法を実現する第1の画像処理プログラム5の構成を示す図である。
【図3】プリンタ装置1(画像処理プログラム5)の第1の動作(S10)を示すフローチャートである。
【図4】第2の画像処理プログラム52の構成を示す図である。
【図5】プリンタ装置1(画像処理プログラム52)の第2の動作(S12)を示すフローチャートである。
【符号の説明】
1・・・プリンタ装置
10・・・プリンタ装置本体
2・・・制御装置
20・・・制御装置本体
202・・・CPU
204・・・メモリ
22・・・通信装置
24・・・記録装置
240・・・記録媒体
26・・・UI装置
5・・・画像処理プログラム
510・・・タグ取得部
520・・・画像取得部
530・・・復号化部
540・・・平滑化処理部
550・・・部分抽出部
560・・・解析部
562・・・タグ解析部
563・・・色空間変換部
564・・・特徴量解析部
566・・・補正量算出部
568・・・補正データベース
570・・・画質補正処理部
572・・・3D−LUT処理部
574・・・記憶色処理部
576・・・シャープネス強調処理部
580・・・画像出力部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus, an image processing method, and a program for performing image quality correction processing on a digital image.
[0002]
[Prior art]
Image data is expressed in different color spaces at each stage such as a data generation stage by a digital still camera or the like, a transfer or accumulation stage, an image processing stage performed on a computer terminal, and a printing stage by a printer or the like. For example, a dRGB color space is used in the data generation stage, an sYCC color space is used in the transfer or accumulation stage, an sRGB color space is used in the image processing stage, and a CMYK color space is used in the printing stage.
Since these color spaces have different color expression ranges, there is a problem that a part of image data is lost as the color space conversion is repeated.
For example, image data compressed and transferred by JPEG (Joint Photographic Experts Group) or the like is expressed in the sYCC color space. However, in the image processing apparatus or the image forming apparatus, the image data is transferred to the sRGB color space having a narrow color gamut. Had been converted. Therefore, the gradation expressed in the sYCC color space is not expressed. On the other hand, if the gradation in the sRGB color space is increased to maintain this gradation, the data size of the image data becomes enormous.
To cope with such a problem, an image processing apparatus that maintains the number of expression colors by using a wRGB color system having a wider color gamut than the sRGB color system has been disclosed (for example, Patent Document 1).
[0003]
A method of setting image quality adjustment parameters that reflect the intention of the creator of the image data using the accompanying information accompanying the image data is disclosed (for example, Patent Literature 2 and Patent Literature 3).
[0004]
[Patent Document 1]
Japanese Patent Application Laid-Open No. 2002-344763 [Patent Document 2]
Japanese Patent Application Laid-Open No. 2002-348881 [Patent Document 3]
JP-A-2002-344889
[Problems to be solved by the invention]
The present invention has been made in view of the above background, and has as its object to provide an image processing apparatus capable of performing image processing while holding wide color space information.
[0006]
[Means for Solving the Problems]
[Image processing device]
In order to achieve the above object, an image processing apparatus according to the present invention includes a data acquisition unit that acquires image data expressed in a predetermined color space, and a correction based on the image data acquired by the data acquisition unit. A correction amount calculating unit for calculating an amount, and performing image quality correction processing on the image data expressed in the color space and obtained by the data obtaining unit in accordance with the correction amount calculated by the correction amount calculating unit. Image quality correction means.
[0007]
Preferably, the correction amount calculating means analyzes a part of the image data expressed in the color space, and calculates a correction amount based on the analysis result.
[0008]
Preferably, the image processing apparatus further includes a color space conversion unit that converts a part of the image data expressed in the color space into image data expressed in an RGB color space, and the correction amount calculation unit includes the color space conversion unit. The image data converted by the means is analyzed, and a correction amount is calculated based on the analysis result.
[0009]
Preferably, the color space conversion means converts a part of the image data into an RGB space having a wider color expression range than the sRGB color space.
[0010]
Preferably, the image processing apparatus further includes additional information acquisition means for acquiring additional information associated with the image data, wherein the color space conversion means converts the image data based on the additional information obtained by the additional information acquisition means. Select the destination color space.
[0011]
Preferably, the color space conversion means selects an sRGB color space or an RGB color space having a wider color gamut than the sRGB color space as a conversion destination of the image data based on the acquired accompanying information.
[0012]
Preferably, the image quality correction unit performs at least one of a color conversion process and a sharpness correction process as the image quality correction process.
[0013]
Preferably, the apparatus further comprises decoding means for decoding the image data, wherein the data obtaining means obtains the image data compressed by the compression method, and wherein the image quality correcting means decodes the image data by the decoding means. Then, image quality correction processing is performed on image data expressed in a color space corresponding to the compression method.
[0014]
Preferably, the color space is a luminance color difference color space, and the image quality correction unit performs image quality correction processing on the image data expressed in the luminance color difference color space.
[0015]
Preferably, the color space is an sYCC color space corresponding to a JPEG compression method, the data acquisition means acquires image data compressed by a JPEG compression method, and the decoding means Is decoded into image data expressed in the sYCC color space, and the image quality correction unit decodes the image data decoded by the decoding unit and expresses the image data in the sYCC color space. Perform image quality correction processing.
[0016]
[Image processing method]
Further, the image processing method according to the present invention obtains image data expressed in a predetermined color space, calculates a correction amount based on the obtained image data, and converts the correction amount into image data expressed in the color space. On the other hand, image quality correction processing according to the calculated correction amount is performed.
[0017]
[program]
Further, the program according to the present invention, in an image processing apparatus including a computer, a step of acquiring image data expressed in a predetermined color space, a step of calculating a correction amount based on the acquired image data, Performing image quality correction processing on the image data expressed in the color space according to the calculated correction amount.
[0018]
BEST MODE FOR CARRYING OUT THE INVENTION
[First Embodiment]
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram exemplifying a hardware configuration of a printer device 1 to which an image processing method according to the present invention is applied, focusing on a control device 2 thereof.
As shown in FIG. 1, the printer device 1 includes a control device 2 and a copying device
The control device 2 includes a control device
The printer device 1 acquires image data generated by a digital still camera or a scanner via the communication device 22 connected to a USB cable, a LAN cable, or the like, or the
Since image data is often compressed, transferred, or stored in JPEG, a specific example in which the image data input to the printer device 1 is expressed in the sYCC color space corresponding to JPEG will be described below. explain. The sYCC color space is a color space in which luminance and chromaticity are expressed by mutually orthogonal parameters, and is a color space corresponding to JPEG.
[0019]
Further, the printer device 1 may compress the image data (sYCC color space expression) after the image quality correction processing by JPEG or the like, and output the image data to the outside via the communication device 22 or the
Hereinafter, a specific example will be described in which the printer device 1 acquires JPEG-compressed image data with a digital still camera or a scanner, performs image processing on the image data, and prints the image data on a sheet.
[0020]
FIG. 2 is a diagram showing a configuration of an image processing program 5 which is executed by the control device 2 (FIG. 1) and realizes the image processing method according to the present invention. The image processing program 5 according to the present embodiment will be described as a specific example in which the image processing program 5 is implemented as the image processing program 5 installed in the control device 2. However, some or all of the functions of the image processing program 5 are dedicated. It may be constituted by hardware.
As shown in FIG. 2, the image processing program 5 includes a
The
[0021]
In the image processing program 5, the
[0022]
The
The
[0023]
The
[0024]
The
The
In addition, if information indicating the color characteristics of an image is included, such as an ICC (International Color Consortium) profile, the
[0025]
The feature
For example, the feature
In addition, the feature
In addition, the feature
[0026]
The correction
The
[0027]
The image quality
[0028]
The
[0029]
[Overall operation]
FIG. 3 is a flowchart showing the first operation (S10) of the printer device 1 (image processing program 5).
In step 100 (S100), when the
[0030]
In step 102 (S102), the
In step 104 (S104), the smoothing
[0031]
In step 106 (S106), the
[0032]
In step 108 (S108), the
[0033]
In step 110 (S110), the 3D-
[0034]
In step 112 (S112), the
[0035]
In step 114 (S114), the
[0036]
In step 116 (S116), the sharpness
[0037]
In step 118 (S118), the
[0038]
As described above, the printer apparatus 1 performs the image quality correction process and the analysis process for determining the correction parameter of the image quality correction while maintaining the color space expression of the input image data, thereby changing the color space. The process for conversion can be omitted. Further, in this example, the printer device 1 performs image quality correction processing or the like in the sYCC color space corresponding to JPEG compression. Therefore, when temporarily storing image data or transferring image data, the printer device 1 uses JPEG without color space conversion. Can be recompressed.
Further, since the sYCC color space has a wider color gamut than the sRGB color space, there is a problem that the gradation is reduced when the sYCC color space is converted to the sRGB color space. The image quality correction process can be performed without lowering the gradation expressed by the image data at the time.
In the above-described embodiment, for the sake of simplicity, a part of the correction processing generally performed in the printer device has been described as a specific example. However, the present invention is not limited to this. The printer device 1 can perform various image correction processes in the same color space expression as when data is input.
[0039]
[Second embodiment]
Next, a second embodiment of the present invention will be described.
In the first embodiment, the analysis processing in the
In addition, the RGB color space includes an sRGB color space and an extended RGB color space having a wider color expression range. The color space used for the analysis process is selected according to the intention when generating image data.
Hereinafter, a modification of the first embodiment from such a viewpoint will be described as a second embodiment.
[0040]
FIG. 4 is a diagram showing a configuration of the second image processing program 52. In addition, among the components in FIG. 4, those substantially the same as those described in FIG. 2 are denoted by the same reference numerals.
As shown in FIG. 4, the second image processing program 52 has a configuration in which a color
[0041]
In addition, the
When the sYCC color space is used unintentionally, in the image quality correction process, a strange color conversion may be performed. Therefore, by performing the analysis process using the image data converted into the sYCC color space, Improve the accuracy of analysis processing to prevent strange color conversion.
[0042]
FIG. 5 is a flowchart showing the second operation (S12) of the printer device 1 (image processing program 52). 5 that are substantially the same as those shown in FIG. 3 are denoted by the same reference numerals.
[0043]
In step S106, the
[0044]
In step 122 (S122), when the sYCC color space is intentionally used, the image processing program 52 shifts to the processing of S124, and otherwise shifts to the processing of S126.
In step 124 (S124), the color
[0045]
On the other hand, in step 126 (S126), the color
When setting a sharpness enhancement correction parameter, the color
[0046]
As described above, the printer device 1 according to the second embodiment can use image data expressed in the RGB color space in the analysis processing for setting correction parameters and the like, and Consistency can be achieved. That is, conventionally, the correction process and the analysis process therefor have been performed based on image data expressed in an RGB color space, and data for associating a feature amount evaluated in the RGB color space with a correction parameter, etc. This is suitable when it is desired to take over to the printer device 1.
In some cases, image data expressed in the sYCC color space includes data of a color that does not exist in the real world, but exists by converting to a RGB color space having a narrow color expression range. Unacquired color data is deleted outside the color gamut, and the accuracy of the analysis process can be improved. The printer device 1 according to the present embodiment can improve the accuracy of the analysis process by converting to an RGB color space and filtering color data that cannot exist.
Note that the color space conversion target is a thumbnail image which is a part of the image data, so that the load of the color space conversion processing is not so large, and the data size does not increase so much even if the extended RGB color space is adopted.
[0047]
In the above embodiment, the embodiment in which the present invention is applied to the printer device 1 has been described as a specific example. However, the present invention is not limited to this, and is applicable to a digital camera, a scanner, a computer terminal, a mobile phone, or the like. Is also good.
For example, in a digital camera or a scanner, first, image data in an RGB color space (dRGB) having a wide color expression range is generated. However, the image data is converted into a color space such as an sYCC color space and compressed for convenience of data transmission or a recording region. Is done. Therefore, in the case of a digital camera or a scanner, the present invention can be applied to a case where image processing is performed on image data converted into the sYCC color space.
[0048]
【The invention's effect】
As described above, according to the image processing apparatus, the image processing method, and the program thereof according to the present invention, it is possible to perform image processing while holding wide color space information.
[Brief description of the drawings]
FIG. 1 is a diagram exemplifying a hardware configuration of a printer device 1 to which an image processing method according to the present invention is applied, focusing on a control device 2 thereof.
FIG. 2 is a diagram showing a configuration of a first image processing program 5 which is executed by a control device 2 (FIG. 1) and realizes an image processing method according to the present invention.
FIG. 3 is a flowchart illustrating a first operation (S10) of the printer device 1 (image processing program 5).
FIG. 4 is a diagram showing a configuration of a second image processing program 52.
FIG. 5 is a flowchart showing a second operation (S12) of the printer device 1 (image processing program 52).
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ...
204 memory 22
Claims (12)
前記データ取得手段により取得された画像データに基づいて、補正量を算出する補正量算出手段と、
前記色空間で表現され、前記データ取得手段により取得された画像データに対して、前記補正量算出部により算出された補正量に応じた画質補正処理を行う画質補正手段と
を有する画像処理装置。Data acquisition means for acquiring image data expressed in a predetermined color space,
A correction amount calculating unit that calculates a correction amount based on the image data acquired by the data acquiring unit;
An image processing apparatus comprising: an image quality correction unit that performs an image quality correction process on the image data expressed in the color space and acquired by the data acquisition unit in accordance with the correction amount calculated by the correction amount calculation unit.
請求項1に記載の画像処理装置。The image processing apparatus according to claim 1, wherein the correction amount calculating unit analyzes a part of the image data expressed in the color space, and calculates a correction amount based on a result of the analysis.
をさらに有し、
前記補正量算出手段は、前記色空間変換手段により変換された画像データを解析し、この解析結果に基づいて補正量を算出する
請求項1に記載の画像処理装置。Color space conversion means for converting a part of the image data expressed in the color space into image data expressed in an RGB color space;
The image processing apparatus according to claim 1, wherein the correction amount calculation unit analyzes the image data converted by the color space conversion unit, and calculates a correction amount based on the analysis result.
請求項3に記載の画像処理装置。4. The image processing apparatus according to claim 3, wherein the color space conversion unit converts a part of the image data into an RGB space having a wider color gamut than an sRGB color space.
をさらに有し、
前記色空間変換手段は、前記付随情報取得手段により取得された付随情報に基づいて、画像データの変換先の色空間を選択する
請求項3に記載の画像処理装置。Further having an accompanying information acquisition means for acquiring accompanying information attached to the image data,
The image processing apparatus according to claim 3, wherein the color space conversion unit selects a color space to which the image data is to be converted based on the accompanying information acquired by the accompanying information acquiring unit.
請求項5に記載の画像処理装置。6. The image data conversion apparatus according to claim 5, wherein the color space conversion means selects an sRGB color space or an RGB color space having a wider color gamut than the sRGB color space based on the acquired accompanying information. Image processing device.
請求項1〜6のいずれかに記載の画像処理装置。The image processing apparatus according to claim 1, wherein the image quality correction unit performs at least one of a color conversion process and a sharpness correction process as the image quality correction process.
をさらに有し、
前記データ取得手段は、前記圧縮方式で圧縮された画像データを取得し、
前記画質補正手段は、前記復号化手段により復号化され、前記圧縮方式に対応する色空間で表現されている画像データに対して、画質補正処理を行う
請求項1〜7のいずれかに記載の画像処理装置。A decoding unit for decoding the image data,
The data acquisition unit acquires image data compressed by the compression method,
The image quality correction unit according to claim 1, wherein the image quality correction unit performs an image quality correction process on the image data decoded by the decoding unit and expressed in a color space corresponding to the compression scheme. Image processing device.
前記画質補正手段は、輝度色差色空間で表現された画像データに対して、画質補正処理を行う
請求項1〜8のいずれかに記載の画像処理装置。The color space is a luminance color difference color space,
The image processing apparatus according to claim 1, wherein the image quality correction unit performs an image quality correction process on the image data expressed in the luminance color difference color space.
前記データ取得手段は、JPEG圧縮方式で圧縮された画像データを取得し、
前記復号化手段は、前記データ取得手段により取得された画像データを復号化して、sYCC色空間で表現された画像データとし、
前記画質補正手段は、前記復号化手段により復号化され、sYCC色空間で表現された画像データに対して、画質補正処理を行う
請求項8に記載の画像処理装置。The color space is an sYCC color space corresponding to the JPEG compression method,
The data acquisition means acquires image data compressed by the JPEG compression method,
The decoding means decodes the image data obtained by the data obtaining means to obtain image data expressed in an sYCC color space,
The image processing apparatus according to claim 8, wherein the image quality correction unit performs an image quality correction process on the image data decoded by the decoding unit and expressed in an sYCC color space.
取得された画像データに基づいて、補正量を算出し、
前記色空間で表現された画像データに対して、算出された補正量に応じた画質補正処理を行う
画像処理方法。Acquire image data expressed in a predetermined color space,
A correction amount is calculated based on the acquired image data,
An image processing method for performing image quality correction processing on the image data expressed in the color space according to the calculated correction amount.
所定の色空間で表現された画像データを取得するステップと、
取得された画像データに基づいて、補正量を算出するステップと、
前記色空間で表現された画像データに対して、算出された補正量に応じた画質補正処理を行うステップと
を前記画像処理装置のコンピュータに実行させるプログラム。In an image processing apparatus including a computer,
Obtaining image data represented in a predetermined color space;
Calculating a correction amount based on the acquired image data;
Performing image quality correction processing on the image data expressed in the color space according to the calculated correction amount.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003008712A JP2004222078A (en) | 2003-01-16 | 2003-01-16 | Image processor, image processing method, and program thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003008712A JP2004222078A (en) | 2003-01-16 | 2003-01-16 | Image processor, image processing method, and program thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004222078A true JP2004222078A (en) | 2004-08-05 |
Family
ID=32898438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003008712A Pending JP2004222078A (en) | 2003-01-16 | 2003-01-16 | Image processor, image processing method, and program thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004222078A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006022028A1 (en) * | 2004-08-27 | 2006-03-02 | Seiko Epson Corporation | Image reproduction using particular color space |
JP2006135546A (en) * | 2004-11-04 | 2006-05-25 | Canon Inc | Image processing device, information processing device, and image processing method thereof |
JP2007142506A (en) * | 2005-11-15 | 2007-06-07 | Seiko Epson Corp | Image processing apparatus, image processing method, and program |
JP2007142911A (en) * | 2005-11-21 | 2007-06-07 | Seiko Epson Corp | Image processing apparatus, image processing method, and program |
JP2011035635A (en) * | 2009-07-31 | 2011-02-17 | Casio Computer Co Ltd | Image processor and method |
US7916202B2 (en) | 2003-02-27 | 2011-03-29 | Seiko Epson Corporation | Image reproduction using a specific color space |
-
2003
- 2003-01-16 JP JP2003008712A patent/JP2004222078A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7916202B2 (en) | 2003-02-27 | 2011-03-29 | Seiko Epson Corporation | Image reproduction using a specific color space |
US9538046B2 (en) | 2003-02-27 | 2017-01-03 | Seiko Epson Corporation | Image reproduction using a particular color space |
WO2006022028A1 (en) * | 2004-08-27 | 2006-03-02 | Seiko Epson Corporation | Image reproduction using particular color space |
US7755639B2 (en) | 2004-08-27 | 2010-07-13 | Seiko Epson Corporation | Image reproduction using a particular color space |
US8207985B2 (en) | 2004-08-27 | 2012-06-26 | Seiko Epson Corporation | Image reproduction using a particular color space |
JP2006135546A (en) * | 2004-11-04 | 2006-05-25 | Canon Inc | Image processing device, information processing device, and image processing method thereof |
JP4592074B2 (en) * | 2004-11-04 | 2010-12-01 | キヤノン株式会社 | Image processing apparatus and method thereof, and information processing apparatus and method thereof |
JP2007142506A (en) * | 2005-11-15 | 2007-06-07 | Seiko Epson Corp | Image processing apparatus, image processing method, and program |
JP4682814B2 (en) * | 2005-11-15 | 2011-05-11 | セイコーエプソン株式会社 | Image processing apparatus, image processing method, and program |
JP2007142911A (en) * | 2005-11-21 | 2007-06-07 | Seiko Epson Corp | Image processing apparatus, image processing method, and program |
JP4682818B2 (en) * | 2005-11-21 | 2011-05-11 | セイコーエプソン株式会社 | Image processing apparatus, image processing method, and program |
JP2011035635A (en) * | 2009-07-31 | 2011-02-17 | Casio Computer Co Ltd | Image processor and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7454056B2 (en) | Color correction device, color correction method, and color correction program | |
JP3520859B2 (en) | Image file output image adjustment | |
US7375848B2 (en) | Output image adjustment method, apparatus and computer program product for graphics files | |
US20040095478A1 (en) | Image-capturing apparatus, image-processing apparatus, image-recording apparatus, image-processing method, program of the same and recording medium of the program | |
US20030058349A1 (en) | Method, apparatus, and program for image processing | |
US8391646B2 (en) | Image processing device and method that performs image quality adjustment and resize processing on image data | |
JP2004341889A (en) | Image brightness correction processing | |
JP2002314936A (en) | Generation of image file and image processing | |
JP2005295508A (en) | Conversion of color image into monochrome image | |
JPWO2005079056A1 (en) | Image processing apparatus, photographing apparatus, image processing system, image processing method and program | |
JP7316768B2 (en) | Image processing device, image processing method, and program | |
JP2004096506A (en) | Image forming method, image processor and image recording device | |
US20040041926A1 (en) | Image-capturing apparatus, imager processing apparatus and image recording apparatus | |
JP2004341901A (en) | Decision of back light figure image | |
JP2005210495A (en) | Image processing apparatus, method, and program | |
JP2005354372A (en) | Apparatus and method for image recording device, method and system for image processing | |
JP2004096505A (en) | Image processing method, image processing apparatus, image recording apparatus, program, and recording medium | |
JP2004088345A (en) | Image forming method, image processor, print preparation device, and storage medium | |
US20110279837A1 (en) | Image processing system, information processing system, control method, and program | |
JP3925476B2 (en) | Judgment of shooting scene and image processing according to shooting scene | |
JP2004222078A (en) | Image processor, image processing method, and program thereof | |
JP2008154261A (en) | Determination of photographed scene and image processing based on photographed scene | |
JP4006590B2 (en) | Image processing apparatus, scene determination apparatus, image processing method, scene determination method, and program | |
JP4150490B2 (en) | Image processing system, image processing method, and recording medium | |
JP4533277B2 (en) | Image processing apparatus, image processing method, and table creation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060110 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070921 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071217 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080213 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080620 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080819 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20081007 |