JP4092882B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP4092882B2
JP4092882B2 JP2001074588A JP2001074588A JP4092882B2 JP 4092882 B2 JP4092882 B2 JP 4092882B2 JP 2001074588 A JP2001074588 A JP 2001074588A JP 2001074588 A JP2001074588 A JP 2001074588A JP 4092882 B2 JP4092882 B2 JP 4092882B2
Authority
JP
Japan
Prior art keywords
color
image data
color space
image processing
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001074588A
Other languages
Japanese (ja)
Other versions
JP2002281330A (en
Inventor
聰 西尾
雅典 齋藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2001074588A priority Critical patent/JP4092882B2/en
Publication of JP2002281330A publication Critical patent/JP2002281330A/en
Application granted granted Critical
Publication of JP4092882B2 publication Critical patent/JP4092882B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、画像ファイルを用いた画像処理装置および画像処理方法に関する。
【0002】
【従来の技術】
パーソナルコンピュータ、ディスプレイ、プリンタ等のディジタルデータを扱う装置では、画像データを表す色空間としてsRGB色空間が標準的な色空間として用いられている。sRGB色空間は、CRTディスプレイの出力特性を考慮した色空間であり、例えば、ディジタルスチルカメラ(DSC)等の入力装置において生成された画像データがsRGB色空間よりも広い色空間によって定義されている場合であっても、出力装置がsRGB色空間に準拠した色空間を採用する限り、画像データの色彩は正しく再現されないことがある。
【0003】
この問題に対して、sRGB色空間の他に、sRGB色空間よりも広い定義領域を有する広域RGB色空間への色変換処理を経て画像データを出力(再現)する技術が提案されている。かかる技術によれば、入力装置において生成された画像データの色彩を、出力装置において正しく再現することができる。
【0004】
【発明が解決しようとする課題】
しかしながら、出力装置が印刷装置の場合には、RGB色空間に基づく画像データを色変換テーブルを用いてCMYK色空間に基づく画像データに変換するため、複数の色空間に対応する場合には、各色空間に対応して出力すべき画像の解像度、紙質の組み合わせといった印刷条件毎に色変換テーブルを備える必要がある。一方、解像度、紙質の組み合わせといった印刷条件によっては、画像データの色空間を広域色空間へ変換する画像処理を実行しても彩度の向上を図ることができない場合もある。したがって、画像データの色空間を広域RGB色空間へ変換する処理により彩度向上の効果を得ることができる印刷条件に対してのみ色変換テーブルが備えられる場合があり、印刷条件と色変換テーブルとの適切な対応が要求される。
【0005】
本発明は、上記要求を満たすためになされたものであり、印刷条件に応じた適切な色変換テーブルを用いて画像データの画像処理を行うことを目的とする。
【0006】
【課題を解決するための手段およびその作用・効果】
上記課題を解決するために本発明の第1の態様は、画像ファイルに対して画像処理を実行する画像処理装置を提供する。本発明の第1の態様に係る画像処理装置は、解像度、印刷用紙を含む印刷条件を設定する印刷条件設定手段と、画像データの色空間を複数の異なる色空間から第1の色空間に変換するための複数の色変換テーブルと、前記設定された印刷条件に基づいて、前記複数の異なる色変換テーブルの中から1つの色変換テーブルを選択する色変換テーブル選択手段と、前記画像データに対して、前記選択された色変換テーブルを用いた前記画像データの色空間の変換処理を含む画像処理を施す画像処理手段とを備えることを特徴とする。
【0007】
本発明の第1の態様に係る画像処理装置によれば、設定された印刷条件に基づいて、複数の異なる色変換テーブルの中から1つの色変換テーブルを選択し、画像データに対して、選択された色変換テーブルを用いた画像データの色空間の変換処理を含む画像処理を施すことができる。したがって、印刷条件に適切な色変換テーブルを用いて画像処理を実行することができ、印刷条件と色変換テーブルとが適合しない場合に問題となる画質の低下を防止することができる。
【0008】
本発明の第1の態様に係る画像処理装置において、前記複数の色変換テーブルは、前記異なる複数の色空間の1つであるsRGB色空間に基づく画像データを前記第1の色空間としてのCMYK色空間に基づく画像データに変換する第1の色変換テーブルと、前記異なる複数の色空間の1つであると共に、前記sRGB色空間よりも広い定義領域を有するwRGB色空間に基づく画像データを前記第1の色空間としてのCMYK色空間に基づく画像データに変換する第2の色変換テーブルとを含んでも良い。この構成を備えることにより、印刷条件と適合する場合には、画像データの色空間をsRGB色空間よりも広い定義領域を有するwRGB色空間からCMYK色空間へ変換することができるので、より画質の高い画像を出力することができる。また、印刷条件が適合しない場合には、sRGB色空間からCMYK色空間へ画像データの色空間を変換することにより画像を出力することができる。
【0009】
本発明の第1の態様に係る記載の画像処理装置において、前記色変換テーブル選択手段は、前記解像度および印刷用紙の組み合わせに対応する前記第2の色変換テーブルが存在する場合には、前記第2の色変換テーブルを選択しても良い。かかる場合には、印刷条件と適合する場合には、画像データの色空間をsRGB色空間よりも広い定義領域を有するwRGB色空間からCMYK色空間へ変換するので、より画質の高い画像を出力することができる。
【0010】
本発明の第1の態様に係る画像処理装置において、前記画像ファイルは、前記画像データと、前記画像データの画像処理を制御する画像処理制御情報とを1つのファイル内に含み、前記画像処理手段は、前記色空間の変換処理に加えて、前記画像処理制御情報に基づいて、前記画像データの色空間を、前記画像データの生成時に設定された色空間から前記異なる複数の色空間の1つである色空間に変換する画像処理を実行しても良い。かかる場合には、画像データ生成時に設定された色空間にしたがって、画像データの色空間の変換処理を含む画像処理を実行することができる。なお、画像データ生成時に設定される色空間とは、画像データ生成時に自動的に付与される画像データ生成装置の固有の色空間、および、画像データ生成時に任意に設定される色空間の双方を含むことができる。
【0011】
本発明の第1の態様に係る画像処理装置において、前記印刷条件は、前記解像度、印刷用紙に加えて出力装置の機種情報を含み、前記画像処理装置は更に、前記画像処理の施された画像データを出力装置に対して供給する供給手段を備えても良い。かかる構成を備える場合には、出力装置が有する色変換テーブルを認識することができると共に、出力装置に対して画像処理の施された画像データを供給することができる。
【0012】
本発明の第2の態様は、画像ファイルに対して画像処理を実行する画像処理装置を提供する。本発明の第2の態様に係る画像処理装置は、設定された解像度、印刷用紙を含む印刷条件を取得する印刷条件取得手段と、画像データの色空間を第1の色空間から第2の色空間に変換するための複数の色変換テーブルと、前記取得された印刷条件に基づいて、前記複数の色変換テーブルの中から1つの色変換テーブルを選択する色変換テーブル選択手段と、前記画像データに対して、前記選択された色変換テーブルを用いた前記画像データの色空間の変換処理を含む画像処理を施す画像処理手段とを備えることを特徴とする。
【0013】
本発明の第2の態様に係る画像処理方法によれば、本発明の第1の態様に係る画像処理装置と同様の作用効果を得ることができる。また、本発明の第2の態様に係る画像処理方法は、本発明の第1の態様に係る画像処理装置と同様にして、種々の態様にて実現され得る。
【0014】
本発明の第3の態様は、画像ファイルに基づいて画像データを出力する出力装置を提供する。本発明の第3の態様に係る出力装置は、本発明の第1または第2の態様に係る画像処理装置と、前記画像処理装置から供給された画像データを出力する出力手段とを備えることを特徴とする。
【0015】
本発明の第4の態様は、画像ファイルに対する画像処理方法を提供する。本発明の第4の態様に係る画像処理方法は、解像度、印刷用紙を含む印刷条件を取得し、前記取得した印刷条件に基づいて、画像データの色空間を異なる複数の色空間から第1の色空間に変換するための複数の色変換テーブルの中から1つの色変換テーブルを選択し、前記画像データに対して、前記選択した色変換テーブルを用いて前記画像データの色空間の変換処理を含む画像処理を施すことを特徴とする。
【0016】
本発明の第4の態様に係る画像処理方法によれば、本発明の第1の態様に係る画像処理装置と同様の作用効果を得ることができる。また、本発明の第4の態様に係る画像処理方法は、本発明の第1の態様に係る画像処理装置と同様にして、種々の態様にて実現され得る。
【0017】
本発明の第5の態様は、画像ファイルに対して画像処理を実行する画像処理プログラムを提供する。本発明の第5の態様に係る画像処理プログラムは、解像度、印刷用紙を含む印刷条件を設定する機能と、前記設定された印刷条件に基づいて、画像データの色空間を異なる複数の色空間から第1の色空間に変換するための複数の色変換テーブルの中から1つの色変換テーブルを選択する機能と、前記画像データに対して、前記選択された色変換テーブルを用いた前記画像データの色空間の変換処理を含む画像処理を施す機能とをコンピュータによって実現させることを特徴とする。
【0018】
本発明の第5の態様に係る画像処理プログラムによれば、本発明の第1の態様に係る画像処理装置と同様の作用効果を得ることができる。また、本発明の第5の態様に係る画像処理プログラムは、本発明の第1の態様に係る画像処理装置と同様にして、種々の態様にて実現され得る。
【0019】
【発明の実施の形態】
以下、本発明に係る画像処理装置について以下の順序にて図面を参照しつつ、実施例に基づいて説明する。
A.画像処理システムの構成:
B.画像ファイルの構成:
C.画像出力装置の構成:
D.プリンタにおける画像処理:
E.その他の実施例:
【0020】
A.画像処理システムの構成:
本実施例に係る画像処理装置を適用可能な画像処理システムの構成について図1および図2を参照して説明する。図1は本実施例に係る画像処理装置を適用可能な画像処理システムの一例を示す説明図である。図2は本実施例に係る画像処理装置が出力する画像ファイル(画像データ)を生成可能なディジタルスチルカメラの概略構成を示すブロック図である。
【0021】
画像処理システム10は、画像ファイルを生成する入力装置としてのディジタルスチルカメラ12、ディジタルスチルカメラ12にて生成された画像ファイルに基づいて画像処理を実行し、画像を出力する画像処理装置および出力装置としてのカラープリンタ20を備えている。画像処理装置としては、プリンタ20の他に、本発明に係る画像処理プログラムを実行するパーソナルコンピュータPC等が用いられ得る。また、出力装置としては、プリンタ20の他に、CRTディスプレイ、LCDディスプレイ等のモニタ14、プロジェクタ等が用いられ得る。以下の説明では、スタンドアローンにて画像処理装置および出力装置として機能するカラープリンタ20を用いるものとする。
【0022】
ディジタルスチルカメラ12は、光の情報をディジタルデバイス(CCDや光電子倍増管)に結像させることにより画像を取得するカメラであり、図2に示すように光情報を収集するためのCCD等を備える光学回路121、光学回路121を制御して画像を取得するための画像取得回路122、取得したディジタル画像を加工処理するための画像処理回路123、メモリを備えると共に各回路を制御する制御回路124を備えている。ディジタルスチルカメラ12は、取得した画像をディジタルデータとして記憶装置としてのメモリカードMCに保存する。ディジタルスチルカメラ12における画像データの保存形式としては、JPEG形式が一般的であるが、この他にもTIFF形式、GIF形式、BMP形式、RAWデータ形式等の保存形式が用いられ得る。
【0023】
ディジタルスチルカメラ12はまた、明度、コントラスト、露出補正量(露出補正値)、ホワイトバランス等の個別の画像処理制御パラメータ、および撮影条件に応じて予め複数の画像処理制御パラメータの値が設定されている撮影モードを設定するための選択・決定ボタン126、撮影画像をプレビューしたり、選択・決定ボタン126を用いて撮影モード等を設定するための液晶ディスプレイ127を備えている。
【0024】
本画像処理システム10に用いられるディジタルスチルカメラ12は、画像データGDに加えて画像データの画像処理制御情報GCを画像ファイルGFとしてメモリカードMCに格納する。すなわち、画像処理制御情報GCは、撮影時に画像データGDと共に自動的に画像ファイルGFを構成する情報としてメモリカードMCに自動的に格納される。
【0025】
ディジタルスチルカメラ12において生成された画像ファイルGFは、例えば、ケーブルCV、コンピュータPCを介して、あるいは、ケーブルCVを介してカラープリンタ20に送出される。あるいは、ディジタルスチルカメラ12にて画像ファイルGFが格納されたメモリカードMCが、メモリカード・スロットに装着されたコンピュータPCを介して、あるいは、メモリカードMCをプリンタ20に対して直接、接続することによって画像ファイルがカラープリンタ20に送出される。なお、以下の説明では、メモリカードMCがカラープリンタ20に対して直接、接続される場合に基づいて説明する。
【0026】
B.画像ファイルの構成:
図3を参照して本実施例にて用いられ得る画像ファイルの概略構成について説明する。図3は本実施例にて用いられ得る画像ファイルの内部構成の一例を概念的に示す説明図である。本実施例に係る画像ファイルGFは、例えば、ディジタルスチルカメラ用画像ファイルフォーマット規格(Exif)に従ったファイル構造を有することができる。Exifファイルの仕様は、日本電子工業振興協会(JEIDA)によって定められている。
【0027】
Exifファイルとしての画像ファイルGFは、JPEG形式の画像データを格納するJPEG画像データ格納領域111と、格納されているJPEG画像データに関する各種情報を格納する付属情報格納領域112とを備えている。付属情報格納領域112には、撮影日時、露出、シャッター速度、ホワイトバランス、露出補正量、ターゲット色空間等といったJPEG画像を出力する際に参照される画像処理制御情報GCが格納されている。また、付属情報格納領域112には、画像処理制御情報GCに加えてJPEG画像データ格納領域111に格納されているJPEG画像のサムネイル画像データがTIFF形式にて格納されている。なお、当業者にとって周知であるように、Exif形式のファイルでは、各データを特定するためにタグが用いられており、各データはタグ名によって呼ばれることがある。なお、本実施例中におけるファイルの構造、データの構造、格納領域といった用語は、ファイルまたはデータ等が記憶装置内に格納された状態におけるファイルまたはデータのイメージを意味するものである。
【0028】
画像処理制御情報GCは、ディジタルスチルカメラ12等の画像データ生成装置において画像データが生成されたとき(撮影されたとき)の画質に関連する情報であり、撮影に伴い自動的に、あるいは、ユーザにより任意に設定され得る露出時間、ISO感度、絞り、シャッタースピード、焦点距離に関するパラメータ、およびユーザによって任意に設定される露出補正量、ホワイトバランス、撮影モード、ターゲット色空間等の画像処理制御パラメータを含み得る。
【0029】
本実施例に係る上記画像ファイルGFは、ディジタルスチルカメラ12の他、ディジタルビデオカメラ、スキャナ等の入力装置(画像ファイル生成装置)によっても生成され得る。
【0030】
付属情報格納領域112の詳細なデータ構造について図4を参照して説明する。図4は本実施例に用いられ得る画像ファイルGFの付属情報格納領域112のデータ構造の一例を示す説明図である。
【0031】
付属情報格納領域112には、図示するように露出時間、レンズF値、露出制御モード、ISO感度、露出補正量、ホワイトバランス、フラッシュ、焦点距離、撮影モード等の画像処理制御情報GCに対するパラメータ値が既定のアドレスまたはオフセット値に従って格納されている。出力装置側では、所望の情報(パラメータ)に対応するアドレスまたはオフセット値を指定することにより画像処理制御情報GCを取得することができる。なお、画像処理制御情報GCは、付属情報格納領域112内の未定義領域であって、ユーザに解放されているユーザ定義領域内に格納されている。
【0032】
C.画像出力装置の構成:
図5を参照して本実施例に係る画像処理装置、すなわち、カラープリンタ20の概略構成について説明する。図5は本実施例に係るカラープリンタ20の概略構成を示すブロック図である。
【0033】
カラープリンタ20は、カラー画像の出力が可能なプリンタであり、例えば、シアン(C)、マゼンタ(M)、イエロ(Y)、ブラック(K)の4色の色インクを印刷媒体上に噴射してドットパターンを形成することによって画像を形成するインクジェット方式のプリンタである。あるいは、カラートナーを印刷媒体上に転写・定着させて画像を形成する電子写真方式のプリンタである。色インクには、上記4色に加えて、ライトシアン(薄いシアン、LC)、ライトマゼンタ(薄いマゼンタ、LM)、ダークイエロ(暗いイエロ、DY)を用いても良い。
【0034】
カラープリンタ20は、図示するように、キャリッジ21に搭載された印字ヘッド211を駆動してインクの吐出およびドット形成を行う機構と、このキャリッジ21をキャリッジモータ22によってプラテン23の軸方向に往復動させる機構と、紙送りモータ24によって印刷用紙Pを搬送する機構と、制御回路30とから構成されている。キャリッジ21をプラテン23の軸方向に往復動させる機構は、プラテン23の軸と並行に架設されたキャリッジ21を摺動可能に保持する摺動軸25と、キャリッジモータ22との間に無端の駆動ベルト26を張設するプーリ27と、キャリッジ21の原点位置を検出する位置検出センサ28等から構成されている。印刷用紙Pを搬送する機構は、プラテン23と、プラテン23を回転させる紙送りモータ24と、図示しない給紙補助ローラと、紙送りモータ24の回転をプラテン23および給紙補助ローラに伝えるギヤトレイン(図示省略)とから構成されている。
【0035】
制御回路30は、プリンタの操作パネル29と信号をやり取りしつつ、紙送りモータ24やキャリッジモータ22、印字ヘッド211の動きを適切に制御している。カラープリンタ20に供給された印刷用紙Pは、プラテン23と給紙補助ローラの間に挟み込まれるようにセットされ、プラテン23の回転角度に応じて所定量だけ送られる。
【0036】
キャリッジ21にはインクカートリッジ212とインクカートリッジ213とが装着される。インクカートリッジ212には黒(K)インクが収容され、インクカートリッジ213には他のインク、すなわち、シアン(C),マゼンタ(M),イエロ(Y)の3色インクの他に、ライトシアン(LC),ライトマゼンタ(LM),ダークイエロ(DY)の合計6色のインクが収納されている。
【0037】
次に図6を参照してカラープリンタ20の制御回路30の内部構成について説明する。図6は、カラープリンタ20の制御回路30の内部構成を示す説明図である。図示するように、制御回路30の内部には、CPU31,PROM32,RAM33,メモリカードMCからデータを取得するPCMCIAスロット34,紙送りモータ24やキャリッジモータ22等とデータのやり取りを行う周辺機器入出力部(PIO)35,タイマ36,駆動バッファ37等が設けられている。駆動バッファ37は、インク吐出用ヘッド214ないし220にドットのオン・オフ信号を供給するバッファとして使用される。これらは互いにバス38で接続され、相互にデータにやり取りが可能となっている。また、制御回路30には、所定周波数で駆動波形を出力する発振器39、および発振器39からの出力をインク吐出用ヘッド214ないし220に所定のタイミングで分配する分配出力器40も設けられている。
【0038】
制御回路30は、メモリカードMCから画像ファイルGFを読み出し、画像処理制御情報GCを解析し、解析した画像処理制御情報GCに基づいて画像処理を実行する。制御回路30は、紙送りモータ24やキャリッジモータ22の動きと同期を採りながら、所定のタイミングでドットデータを駆動バッファ37に出力する。制御回路30によって実行される詳細な画像処理の流れについては以下に説明する。
【0039】
D.カラープリンタ20における画像処理:
図7〜図9を参照して本実施例に係るカラープリンタ20における画像処理について説明する。図7は本実施例に係るカラープリンタ20における画像処理の処理ルーチンを示すフローチャートである。図8はカラープリンタ20における拡張画像処理の流れを示すフローチャートである。図9はカラープリンタ20における画像処理制御情報に基づく画像処理の処理ルーチンを示すフローチャートである。図10はカラープリンタ20における原色空間をsRGB色空間とする画像処理の流れを示すフローチャートである。図11はカラープリンタ20における通常画像処理の流れを示すフローチャートである。
【0040】
カラープリンタ20の制御回路30(CPU31)は、スロット34にメモリカードMCが差し込まれると、メモリカードMCから画像ファイルGFを読み出し、読み出した画像ファイルGFをRAM33に一時的に格納する(ステップS100)。CPU31は、ユーザにより設定された解像度、印刷用紙等についての印刷条件をプリンタドライバ(印刷制御装置)に問い合わせて取得する(ステップS110)。RGB色空間をCMYK色空間に変換するための色変換テーブルは、印刷解像度と印刷用紙の組み合わせ毎に用意されているので、設定された印刷条件に対応する広域RGB(wRGB)−CMYK色変換テーブルを保有するか否かを確認し、印刷条件に適した画像処理を実行するためである。
【0041】
CPU31は、設定された印刷用紙が、保有するwRGB−CMYK色変換テーブルに対応している対応用紙であるか否かを判定し(ステップS120)、設定された印刷用紙が対応用紙であると判定した場合には(ステップS120:Yes)、設定された印刷解像度が、保有するwRGB−CMYK色変換テーブルに対応している対応解像度であるか否かを判定する(ステップS130)。CPU31は、設定された解像度が対応解像度であると判定した場合には(ステップS130:Yes)、wRGB−CMYK色変換テーブルを用いる拡張画像処理を実行する(ステップS140)。
【0042】
CPU31は、広域色変換処理を含む画像処理が施され、印刷用画像データとなった画像データを印字ヘッド211に送出して、画像を印刷用紙上に出力して(ステップS150)本処理ルーチンを終了する。
【0043】
CPU31は、設定された印刷用紙が対応用紙でないと判定した場合(ステップS120:No)、または、設定された印刷解像度が対応解像度でないと判定した場合には(ステップS130:No)、wRGB−CMYK色変換テーブルを用いない通常画像処理を実行する(ステップS160)。CPU31は、通常色変換処理を含む画像処理が施され、印刷用画像データとなった画像データを印字ヘッド211に送出して、画像を印刷用紙上に出力して(ステップS150)本処理ルーチンを終了する。
【0044】
次に図8を参照して拡張画像処理について詳述する。CPU31は、先に読み出した画像ファイルGFの付属情報格納領域102から画像データ生成時の情報を示す画像処理制御情報GCを検索する(ステップS200)。CPU31は、画像処理制御情報を検索・発見できた場合には(ステップS210:Yes)、画像データ生成時の画像処理制御情報GCを取得して解析する(ステップS220)。CPU31は、解析した画像処理制御情報GCに基づいて後に詳述する画像処理を実行し(ステップS230)、図7に示すメインルーチンにリターンする。本実施例において、特に重要な画像処理制御情報は、画像データが生成された際の原色空間情報であり、かかる情報には、自動的に付与される画像データ生成装置固有の色空間、およびユーザによって任意に設定される色空間の双方が含まれる。画像データ生成時における原色空間情報が不明な場合には、原色空間とwRGB色空間とを正確に対応付けることができないからである。画像処理制御情報を解析して原色空間情報を取得できた場合には、後述する、取得した原色空間とwRGB色空間とを対応付ける処理を実行する。
【0045】
CPU31は、画像処理制御情報を検索・発見できなかった場合には(ステップS210:No)、画像データ生成時における画像処理制御情報を反映させることができないので、カラープリンタ20が予めデフォルト値として保有している画像処理制御情報、すなわち、各種パラメータ値をROM32から取得して原色空間をsRGBとする画像処理を実行する(ステップS240)。原色空間情報が不明な場合には、画像データの色空間とwRGB色空間との対応付けができないので、本実施例では、原色空間が不明の場合には、原色空間として一般的に用いられるsRGB色空間を原色空間としwRGB色空間に対応付ける。CPU31は、原色空間をsRGBとする画像処理を終えると、図7に示すメインルーチンにリターンする。
【0046】
カラープリンタ20において実行される画像処理制御情報に基づく画像処理について図9を参照して詳細に説明する。カラープリンタ20のCPU31は、読み出した画像ファイルGFから画像データGDを取りだす(ステップS300)。ディジタルスチルカメラ12は、既述のように画像データをJPEG形式のファイルとして保存しており、JPEGファイルでは、圧縮率を高くするためにYCbCr色空間を用いて画像データを保存している。
【0047】
CPU31は、YCrCb色空間に基づく画像データをsRGB色空間に基づく画像データに変換するために3×3マトリクス演算Sを実行する(ステップS310)。マトリクス演算Sは以下に示す演算式である。
【0048】
【数1】

Figure 0004092882
【0049】
CPU31は、こうして得られたsRGB色空間に基づく画像データに対して、ガンマ補正を実行する(ステップS320)。ガンマ補正を実行する際には、CPU31は画像処理制御情報GCからDSC側のガンマ値を取得し、取得したガンマ値を用いて映像データに対してガンマ変換処理を実行する。すなわち、ガンマ値も画像処理制御情報GCによって指定される画像処理制御パラメータ値に含まれる。ガンマ補正の演算式は以下の通りである。
【0050】
【数2】
Figure 0004092882
【0051】
CPU31は、ガンマ補正が実行された画像データGDに対して、原色空間とwRGB色空間とを対応付けるマトリクス演算(N-1M)を実行する(ステップS330)。本実施例において用いられる画像ファイルGFは、画像生成時における色空間情報を含むことができるので、画像ファイルGFが色空間情報を含んでいる場合には、CPU31は、マトリクス演算(N-1M)を実行するに際して、色空間情報を参照し、画像生成時における色空間に対応するマトリクス(N-1M)を用いてマトリクス演算を実行する。
【0052】
マトリクス演算(N-1M)はRGB色空間をXYZ色空間に変換するためのマトリクスMを用いるマトリクス演算Mと、wRGB色空間をXYZ色空間に変換するためのマトリクスNを用いるマトリクス演算Nの逆マトリクス演算N-1との合成マトリクスである。マトリクスMは、マトリクス演算SによってもたらされたsRGB色空間の定義領域内には含まれないが、原色空間の定義領域内に含まれており、データとしては有効な画像データ(色彩値)を反映して、sRGB色空間に基づく画像データを、XYZ色空間に基づく画像データに変換するためのマトリクスである。したがって、原色空間が異なればマトリクスの値は異なる。マトリクスNの逆マトリクスNは、マトリクス演算MによってXYZ色空間に基づく画像データに変換された画像データをsRGB色空間よりも広い定義領域を有するwRGB色空間に変換(RGB色空間に戻す)ためのマトリクスである。XYZ色空間は、機器の出力特性に依存しない機器独立色空間の1つであり、sRGB色空間とwRGB色空間との間における色彩値の対応付けを行うために用いられる。マトリクス演算(N-1M)は以下に示す演算式である。
【0053】
【数3】
Figure 0004092882
【0054】
マトリクス演算(N-1M)の実行後に得られる画像データGDの色空間はsRGB色空間よりも広い定義領域を有するwRGB色空間である。従来は、プリンタまたはコンピュータにおける画像処理に際して用いられる色空間はsRGBに固定されており、ディジタルスチルカメラ12の有する色空間を有効に活用することができなかった。これに対して、本実施例では、画像ファイルGFに色空間情報が含まれている場合には、色空間情報に対応してマトリクス演算Mに用いられるマトリクス(N-1M)を変更するので、ディジタルスチルカメラ12の有する色空間を有効に活用して、正しい色再現を実現することができる。
【0055】
CPU31は、マトリクス演算(N-1M)により得られた画像データに対して逆ガンマ補正を実行する(ステップS340)。ガンマ補正を実行する際には、CPU31はROM32からプリンタ側のデフォルトのガンマ値を取得し、取得したガンマ値の逆数を用いて画像データGDに対して逆ガンマ変換処理を実行する。逆ガンマ補正に用いられる演算式は以下の通りである。
【0056】
【数4】
Figure 0004092882
【0057】
CPU31は、逆ガンマ補正が施された画像データGDに対して画像画質の自動調整処理を実行する(ステップS350)。本実施例における画質自動調整処理では、画像ファイルGFに含まれている画像データGDを解析して画質を示す特性パラメータ値を取得し、画像ファイルGFに含まれている画像処理制御情報GC、取得した特性パラメータ値を反映にて画像データを補正する画質の自動調整が実行される。画質自動調整処理では、補正の目標となるべき基準パラーメータを予め定めておき、基準パラメータに対して画像データの特性パラメータが近づけるように、あるいは一致するように画像データを補正する。このとき、画像処理制御情報GCは、基準パラメータの値を変更するために用いられても良く、あるいは、基準パラメータの値に対して特性パラーメータの値を近づける程度を変更するために用いられても良い。
【0058】
画像データの補正は、例えば、明度、コントラスト、カラーバランス等については、一般的にトーンカーブと呼ばれる、RGB信号の入力レベルと出力レベルとを関連づける特性線を用いて各画素(ピクセル)単位で実行される。また、例えば、彩度、シャープネス、ノイズ低減等については、トーンカーブ処理ではなくピクセル演算処理(フィルタ処理)がピクセル単位で実行される。
【0059】
CPU31は、画質自動調整処理を終了すると、印刷のためのwRGB−CMYK色変換処理を実行する(ステップS360)。wRGB色変換処理では、CPU31は、ROM31内に格納されている、wRGB色空間をCMYK色空間に関連づける変換用ルックアップテーブル(LUT)を参照し、画像データの色空間をwRGB色空間からCMYK色空間へ変更する。すなわち、R・G・Bの階調値からなる画像データをカラープリンタ20で使用する、例えば、C・M・Y・K・LC・LMの各6色の階調値のデータに変換する。
【0060】
CPU31は、ハーフトーン処理を実行し(ステップS370)、図8に示すルーチンにリターンする。ハーフトーン処理では、色変換済みの画像データを受け取って、階調数変換処理を行う。本実施例においては、色変換後の画像データは各色毎に256階調幅を持つデータとして表現されている。これに対し、本実施例のカラープリンタ20では、「ドットを形成する」,「ドットを形成しない」のいずれかの状態しか採り得ず、本実施例のカラープリンタ20は局所的には2階調しか表現し得ない。そこで、256階調を有する画像データを、カラープリンタ20が表現可能な2階調で表現された画像データに変換する。この2階調化(2値化)処理の代表的な方法として、誤差拡散法と呼ばれる方法と組織的ディザ法と呼ばれる方法とがある。
【0061】
カラープリンタ20では、色変換処理に先立って、画像データの解像度が印刷解像度よりも低い場合は、線形補間を行って隣接画像データ間に新たなデータを生成し、逆に印刷解像度よりも高い場合は、一定の割合でデータを間引くことによって、画像データの解像度を印刷解像度に変換する解像度変換処理を実行する。また、カラープリンタ20は、ドットの形成有無を表す形式に変換された画像データを、カラープリンタ20に転送すべき順序に並べ替えてるインターレス処理を実行する。
【0062】
カラープリンタ20において実行される原色空間をsRGBとする画像処理について図10を参照して詳細に説明する。なお、各ステップにおいて実行される処理のうち、図9を参照して説明した拡張画像処理における処理と同様の処理については、簡単に説明するにとどめる。カラープリンタ20のCPU31は、読み出した画像ファイルGFから画像データGDを取りだす(ステップS400)。CPU31は、YCrCb色空間に基づく画像データをsRGB色空間に基づく画像データに変換するために3×3マトリクス演算Sを実行する(ステップS410)。マトリクス演算Sは既述の演算式である。
【0063】
CPU31は、マトリクス演算Sの実行により得られたsRGB色空間に基づく画像データGDに対して、原色空間とwRGB色空間とを対応付けるマトリクス演算(N-1M)を実行する(ステップS420)。本処理ルーチンは、画像ファイルGFに画像処理制御情報GCが含まれていないときに実行されるので、色空間情報を参照し、画像生成時における色空間に対応するマトリクス(N-1M)を用いてマトリクス演算を実行することができない。そこで、CPU31は、画像データGD生成時における色空間である原色空間をsRGBとみなして、マトリクス演算(N-1M)を実行する。なお、原色空間としてのsRGB色空間をwRGB色空間に変換するためのマトリクスN-1Mの例示は省略する。
【0064】
CPU31は、マトリクス演算(N-1M)により得られた画像データに対して画像画質の自動調整処理を実行し(ステップS430)、印刷のためのwRGB−CMYK色変換処理を実行する(ステップS440)。最後に、CPU31は、ハーフトーン処理を実行し(ステップS450)、図8に示すルーチンにリターンする。
【0065】
カラープリンタ20において実行される通常画像処理について図11を参照して詳細に説明する。なお、各ステップにおいて実行される処理のうち、図9を参照して説明した拡張画像処理における処理と同様の処理については、簡単に説明するにとどめる。カラープリンタ20のCPU31は、読み出した画像ファイルGFから画像データGDを取りだす(ステップS500)。CPU31は、YCrCb色空間に基づく画像データをsRGB色空間に基づく画像データに変換するために3×3マトリクス演算Sを実行する(ステップS510)。マトリクス演算Sは既述の演算式である。
【0066】
CPU31は、マトリクス演算Sにより得られた画像データに対して画像画質の自動調整処理を実行し(ステップS520)、印刷のためのsRGB−CMYK色変換処理を実行する(ステップS530)。本処理ルーチンは、印刷条件から判断して、wRGB−CMYK色変換を実行できない場合、すなわち、選択された印刷条件に対応するwRGB−CMYK色変換テーブルがない場合に実行されるので、通常の、sRGB−CMYK色変換テーブルが用いられる。最後に、CPU31は、ハーフトーン処理を実行し(ステップS450)、図7に示すメインルーチンにリターンする。
【0067】
以上、説明したように本実施例におけるカラープリンタ20によれば、印刷解像度および印刷用用紙の種類の組み合わせといった印刷条件に基づいて、RGB−CMYK色変換テーブルを選択することができる。さらに、本実施例では、RGB−CMYK色変換テーブルとして、画像データ生成時における色空間の定義領域内に含まれていた色彩値(画像データ)を再現することができるwRGB−CMYK色変換テーブルを有している。したがって、印刷条件に適合するRGB−CMYK色変換テーブルを用いて画像データの画像処理を実行することができると共に、印刷条件が適合する場合には、wRGB−CMYK色変換テーブルを用いた拡張画像処理によって、出力画像の画質を向上させることができる。また、全ての印刷条件について広域の色変換テーブルであるwRGB−CMYK色変換テーブルを予め用意しておく必要がなく、wRGB−CMYK色変換テーブルによる画質向上を反映することができる印刷条件についてのみwRGB−CMYK色変換テーブルを用意すればよいので、要求されるメモリリソース量を低減することができる。
【0068】
また、マトリクス演算SによってsRGB色空間に変換された画像データの色空間を、画像データ生成時における画像出力装置固有の色空間、または、任意に設定された色空間を反映してwRGB色空間に変換することができるので、原色空間との対応関係を考慮しつつ画像データの彩度を向上させることができる。
【0069】
F.その他の実施例:
上記実施例では、パーソナルコンピュータPCを介することなく、カラープリンタ20において全ての画像処理を実行し、生成された画像データGDに従って、ドットパターンが印刷媒体上に形成されるが、画像処理の全て、または、一部をコンピュータ上、ネットワークを介したサーバ上で実行するようにしても良い。この場合には、コンピュータのハードディスク等にインストールされている、レタッチアプリケーション、プリンタドライバといった画像データ処理アプリケーション(プログラム)に図7〜図11を参照して説明した画像処理機能を持たせることによって実現される。
【0070】
例えば、ディジタルスチルカメラ12にて生成された画像ファイルGFは、ケーブルを介して、あるいは、メモリカードMCを介してコンピュータに対して提供され、コンピュータ上では、ユーザの操作によってアプリケーションが起動され、画像ファイルGFの読み込み、画像処理制御情報GCの解析、プリンタドライバに対する問い合わせ、画像データGDの変換、調整が実行される。あるいは、メモリカードMCの差込を検知することによって、またあるいは、ケーブルの差込を検知することによって、アプリケーションが自動的に起動し、画像ファイルGFの読み込み、画像処理制御情報GCの解析、画像データGDの変換、調整が自動的になされても良い。
【0071】
さらに、画質自動調整を実行する特性パラメータ値を選択できるようにしても良い。例えば、カラープリンタ20にパラメータの選択ボタン、あるいは、被写体に応じて所定のパラメータの組み合わせた撮影モードパラメータの選択ボタンを供え、これら選択ボタンによって画質自動調整を実行するパラメータを選択しても良い。また、画質自動調整がパーソナルコンピュータ上で実行される場合には、プリンタドライバまたはレタッチアプリケーションのユーザーインタフェース上にて画質自動調整を実行するパラメータが選択されても良い。
【0072】
上記実施例では、共に出力装置としてカラープリンタ20を用いているが、出力装置にはCRT、LCD、プロジェクタ等の表示装置を用いることもできる。かかる場合には、出力装置としての表示装置によって、例えば、図7〜図11を用いて説明した画像処理を実行する画像処理プログラム(ディスプレイドライバ)が実行される。あるいは、CRT等がコンピュータの表示装置として機能する場合には、コンピュータ側にて画像処理プログラムが実行される。ただし、最終的に出力される画像データは、CMYK色空間ではなくRGB色空間を有している。
【0073】
以上、実施例に基づき本発明に係る画像処理装置、画像処理方法、画像処理プログラム、画像出力装置を説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることはもちろんである。
【0074】
上記実施例では、画像処理制御情報GCとして、光源、露出補正量、ターゲット色空間、明るさ、シャープネスといったパラメータを用いているが、本実施例では、少なくともターゲット色空間(画像生成時の色空間)どのパラメータを画像処理制御情報GCとして用いるかは任意の決定事項である。
【0075】
また、各数式におけるマトリクスS、N-1Mの値は例示に過ぎず、ターゲットとする色空間、あるいは、カラープリンタ20において利用可能な色空間等によって適宜変更され得ることはいうまでもない。
【0076】
上記実施例では、画像ファイル生成装置としてディジタルスチルカメラ12を用いて説明したが、この他にもスキャナ、ディジタルビデオカメラ等が用いられ得る。スキャナを用いる場合には、画像ファイルGFの取り込みデータ情報の指定はコンピュータPC上で実行されても良く、あるいは、スキャナ上に情報設定用に予め設定情報が割り当てられているプリセットボタン、任意設定のための表示画面および設定用ボタンを供えておき、スキャナ単独で実行可能にしてもよい。
【0077】
上記実施例では、画像ファイルGFの具体例としてExif形式のファイルを例にとって説明したが、本発明に係る画像ファイルの形式はこれに限られない。すなわち、画像データ生成装置において生成された画像データと、画像データの生成時条件(情報)を記述する画像処理制御情報GCとが含まれている画像ファイルであれば良い。このようなファイルであれば、画像ファイル生成装置において生成された画像データの画質を、適切に自動調整して出力装置から出力することができる。
【0078】
上記実施例において用いたディジタルスチルカメラ12、カラープリンタ20はあくまで例示であり、その構成は各実施例の記載内容に限定されるものではない。ディジタルスチルカメラ12にあっては、上記実施例に係る画像ファイルGFを生成できる機能を少なくとも備えていればよい。また、カラープリンタ20にあっては、少なくとも、本実施例に係る画像ファイルGFの画像処理制御情報GCを解析し、wRGB色空間またはsRGB色空間を用いて画像を出力(印刷)できればよい。
【図面の簡単な説明】
【図1】本実施例に係る画像処理装置を適用可能な画像データ処理システムの一例を示す説明図である。
【図2】本実施例に係る画像処理装置が処理する画像ファイル(画像データ)を生成可能なディジタルスチルカメラの概略構成を示すブロック図である。
【図3】本実施例において用いられ得るExifファイル形式にて格納されている画像ファイルの概略的な内部構造を示す説明図である。
【図4】本実施例に用いられ得る画像ファイルGFの付属情報格納領域112のデータ構造の一例を示す説明図である。
【図5】本実施例におけるカラープリンタ20の概略構成を示すブロック図である。
【図6】本実施例に係るカラープリンタ20の制御回路30の内部構成を示す説明図である。
【図7】本実施例に係るカラープリンタ20における画像処理の処理ルーチンを示すフローチャートである。
【図8】本実施例に係るカラープリンタ20における拡張画像処理の流れを示すフローチャートである。
【図9】本実施例に係るカラープリンタ20における画像処理制御情報に基づく画像処理の処理ルーチンを示すフローチャートである。
【図10】本実施例に係るカラープリンタ20における原色空間をsRGB色空間とする画像処理の流れを示すフローチャートである。
【図11】本実施例に係るカラープリンタ20における通常画像処理の流れを示すフローチャートである。
【符号の説明】
10…画像処理システム
12…ディジタルスチルカメラ
121…光学回路
122…画像取得回路
123…画像処理回路
124…制御回路
126…選択・決定ボタン
127…液晶ディスプレイ
14…ディスプレイ
20…カラープリンタ
21…キャリッジ
211…印字ヘッド
212…インクカートリッジ
213…インクカートリッジ
214〜220…インク吐出用ヘッド
22…キャリッジモータ
23…プラテン
24…紙送りモータ
25…摺動軸
26…駆動ベルト
27…プーリ
28…位置検出センサ
29…操作パネル
30…制御回路
31…演算処理装置(CPU)
32…プログラマブルリードオンリメモリ(PROM)
33…ランダムアクセスメモリ(RAM)
34…PCMCIAスロット
35…周辺機器入出力部(PIO)
36…タイマ
37…駆動バッファ
38…バス
39…発振器
40…分配出力器
GF…画像ファイル(Exifファイル)
111…JPEG画像データ格納領域
112…付属情報格納領域
MC…メモリカード[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and an image processing method using an image file.
[0002]
[Prior art]
In an apparatus that handles digital data such as a personal computer, a display, and a printer, the sRGB color space is used as a standard color space as a color space that represents image data. The sRGB color space is a color space that takes into account the output characteristics of a CRT display. For example, image data generated in an input device such as a digital still camera (DSC) is defined by a color space wider than the sRGB color space. Even in such a case, the color of the image data may not be reproduced correctly as long as the output device adopts a color space based on the sRGB color space.
[0003]
To solve this problem, a technique for outputting (reproducing) image data through color conversion processing to a wide RGB color space having a definition area wider than the sRGB color space in addition to the sRGB color space has been proposed. According to such a technique, the color of the image data generated in the input device can be correctly reproduced in the output device.
[0004]
[Problems to be solved by the invention]
However, when the output device is a printing device, image data based on the RGB color space is converted into image data based on the CMYK color space using the color conversion table. It is necessary to provide a color conversion table for each printing condition such as the combination of the resolution of the image to be output and the paper quality corresponding to the space. On the other hand, depending on printing conditions such as a combination of resolution and paper quality, saturation may not be improved even if image processing for converting the color space of image data to a wide color space is executed. Accordingly, there are cases where a color conversion table is provided only for printing conditions that can obtain the effect of improving the saturation by the process of converting the color space of the image data to the wide RGB color space. Appropriate response is required.
[0005]
SUMMARY An advantage of some aspects of the invention is that image processing of image data is performed using an appropriate color conversion table corresponding to printing conditions.
[0006]
[Means for solving the problems and their functions and effects]
In order to solve the above problems, a first aspect of the present invention provides an image processing apparatus that executes image processing on an image file. An image processing apparatus according to a first aspect of the present invention includes a printing condition setting unit that sets printing conditions including resolution and printing paper, and converts a color space of image data from a plurality of different color spaces to a first color space. A color conversion table selecting means for selecting one color conversion table from the plurality of different color conversion tables based on the set printing conditions, and a plurality of color conversion tables for performing And image processing means for performing image processing including conversion processing of a color space of the image data using the selected color conversion table.
[0007]
According to the image processing apparatus of the first aspect of the present invention, one color conversion table is selected from a plurality of different color conversion tables based on the set printing conditions, and the image data is selected. Image processing including color space conversion processing of image data using the color conversion table thus performed can be performed. Therefore, it is possible to execute image processing using a color conversion table appropriate for the printing conditions, and it is possible to prevent deterioration in image quality that becomes a problem when the printing conditions and the color conversion table do not match.
[0008]
In the image processing device according to the first aspect of the present invention, the plurality of color conversion tables include CMYK in which image data based on an sRGB color space, which is one of the plurality of different color spaces, is used as the first color space. A first color conversion table for converting into image data based on a color space; and image data based on a wRGB color space which is one of the plurality of different color spaces and has a definition area wider than the sRGB color space. And a second color conversion table for converting into image data based on the CMYK color space as the first color space. By providing this configuration, the image data color space can be converted from the wRGB color space having a definition area wider than the sRGB color space to the CMYK color space when the printing conditions are met. A high image can be output. If the printing conditions do not match, an image can be output by converting the color space of the image data from the sRGB color space to the CMYK color space.
[0009]
In the image processing apparatus according to the first aspect of the present invention, the color conversion table selection unit is configured to display the second color conversion table corresponding to a combination of the resolution and the printing paper when the second color conversion table exists. Two color conversion tables may be selected. In such a case, if the printing conditions are met, the color space of the image data is converted from the wRGB color space having a definition area wider than the sRGB color space to the CMYK color space, so that an image with higher image quality is output. be able to.
[0010]
In the image processing device according to the first aspect of the present invention, the image file includes the image data and image processing control information for controlling image processing of the image data in one file, and the image processing means. In addition to the color space conversion process, based on the image processing control information, the color space of the image data is changed to one of the different color spaces from the color space set when the image data is generated. Image processing for conversion to a color space may be executed. In such a case, image processing including conversion processing of the color space of the image data can be executed according to the color space set when the image data is generated. Note that the color space set at the time of image data generation includes both a color space unique to the image data generation device automatically given at the time of image data generation and a color space arbitrarily set at the time of image data generation. Can be included.
[0011]
In the image processing device according to the first aspect of the present invention, the printing condition includes model information of an output device in addition to the resolution and printing paper, and the image processing device further includes an image subjected to the image processing. Supply means for supplying data to the output device may be provided. When such a configuration is provided, it is possible to recognize a color conversion table included in the output device and to supply image data subjected to image processing to the output device.
[0012]
A second aspect of the present invention provides an image processing apparatus that performs image processing on an image file. An image processing apparatus according to a second aspect of the present invention includes a printing condition acquisition unit that acquires a printing condition including a set resolution and printing paper, and a color space of the image data from the first color space to the second color. A plurality of color conversion tables for converting to a space; color conversion table selecting means for selecting one color conversion table from the plurality of color conversion tables based on the acquired printing conditions; and the image data And image processing means for performing image processing including conversion processing of a color space of the image data using the selected color conversion table.
[0013]
According to the image processing method according to the second aspect of the present invention, it is possible to obtain the same operational effects as those of the image processing apparatus according to the first aspect of the present invention. The image processing method according to the second aspect of the present invention can be realized in various aspects in the same manner as the image processing apparatus according to the first aspect of the present invention.
[0014]
A third aspect of the present invention provides an output device that outputs image data based on an image file. An output device according to a third aspect of the present invention includes the image processing device according to the first or second aspect of the present invention, and an output unit that outputs image data supplied from the image processing device. Features.
[0015]
A fourth aspect of the present invention provides an image processing method for an image file. The image processing method according to the fourth aspect of the present invention acquires a printing condition including resolution and printing paper, and sets a color space of image data from a plurality of different color spaces based on the acquired printing condition. One color conversion table is selected from a plurality of color conversion tables for conversion to a color space, and the color space conversion processing of the image data is performed on the image data using the selected color conversion table. It is characterized by performing image processing including.
[0016]
According to the image processing method of the fourth aspect of the present invention, it is possible to obtain the same operational effects as those of the image processing apparatus according to the first aspect of the present invention. Further, the image processing method according to the fourth aspect of the present invention can be realized in various aspects in the same manner as the image processing apparatus according to the first aspect of the present invention.
[0017]
A fifth aspect of the present invention provides an image processing program that executes image processing on an image file. An image processing program according to a fifth aspect of the present invention includes a function for setting printing conditions including resolution and printing paper, and a color space of image data from a plurality of different color spaces based on the set printing conditions. A function of selecting one color conversion table from among a plurality of color conversion tables for conversion to the first color space, and the image data using the selected color conversion table for the image data A function of performing image processing including color space conversion processing is realized by a computer.
[0018]
According to the image processing program of the fifth aspect of the present invention, it is possible to obtain the same operational effects as those of the image processing apparatus according to the first aspect of the present invention. Further, the image processing program according to the fifth aspect of the present invention can be realized in various aspects in the same manner as the image processing apparatus according to the first aspect of the present invention.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an image processing apparatus according to the present invention will be described based on examples with reference to the drawings in the following order.
A. Image processing system configuration:
B. Image file structure:
C. Image output device configuration:
D. Image processing in the printer:
E. Other examples:
[0020]
A. Image processing system configuration:
The configuration of an image processing system to which the image processing apparatus according to this embodiment can be applied will be described with reference to FIGS. FIG. 1 is an explanatory diagram illustrating an example of an image processing system to which the image processing apparatus according to the present embodiment can be applied. FIG. 2 is a block diagram illustrating a schematic configuration of a digital still camera capable of generating an image file (image data) output from the image processing apparatus according to the present embodiment.
[0021]
An image processing system 10 includes a digital still camera 12 as an input device that generates an image file, an image processing device that executes image processing based on an image file generated by the digital still camera 12, and outputs an image. The color printer 20 is provided. As the image processing apparatus, in addition to the printer 20, a personal computer PC that executes the image processing program according to the present invention may be used. In addition to the printer 20, a monitor 14 such as a CRT display or LCD display, a projector, or the like can be used as the output device. In the following description, it is assumed that the color printer 20 that functions as an image processing apparatus and an output apparatus in a stand-alone manner is used.
[0022]
The digital still camera 12 is a camera that acquires an image by imaging light information on a digital device (CCD or photomultiplier tube), and includes a CCD or the like for collecting optical information as shown in FIG. An optical circuit 121, an image acquisition circuit 122 for acquiring an image by controlling the optical circuit 121, an image processing circuit 123 for processing the acquired digital image, and a control circuit 124 including a memory and controlling each circuit I have. The digital still camera 12 stores the acquired image as digital data in a memory card MC as a storage device. As a storage format of image data in the digital still camera 12, the JPEG format is generally used, but other storage formats such as a TIFF format, a GIF format, a BMP format, and a RAW data format can be used.
[0023]
The digital still camera 12 also has individual image processing control parameters such as brightness, contrast, exposure correction amount (exposure correction value), white balance, and a plurality of image processing control parameter values set in advance in accordance with shooting conditions. A selection / determination button 126 for setting a shooting mode, and a liquid crystal display 127 for previewing a shot image and setting a shooting mode and the like using the selection / determination button 126.
[0024]
The digital still camera 12 used in the image processing system 10 stores image processing control information GC of image data in the memory card MC as an image file GF in addition to the image data GD. That is, the image processing control information GC is automatically stored in the memory card MC as information that automatically constitutes the image file GF together with the image data GD at the time of shooting.
[0025]
The image file GF generated in the digital still camera 12 is sent to the color printer 20 via, for example, the cable CV, the computer PC, or via the cable CV. Alternatively, the memory card MC in which the image file GF is stored by the digital still camera 12 is connected to the printer 20 via the computer PC mounted in the memory card slot or directly to the printer 20. As a result, the image file is sent to the color printer 20. In the following description, the case where the memory card MC is directly connected to the color printer 20 will be described.
[0026]
B. Image file structure:
A schematic configuration of an image file that can be used in this embodiment will be described with reference to FIG. FIG. 3 is an explanatory diagram conceptually showing an example of the internal configuration of an image file that can be used in this embodiment. The image file GF according to the present embodiment can have a file structure in accordance with, for example, a digital still camera image file format standard (Exif). The specification of the Exif file is determined by the Japan Electronics Industry Promotion Association (JEIDA).
[0027]
The image file GF as an Exif file includes a JPEG image data storage area 111 that stores image data in JPEG format, and an attached information storage area 112 that stores various types of information related to the stored JPEG image data. The attached information storage area 112 stores image processing control information GC that is referred to when outputting a JPEG image such as a shooting date / time, exposure, shutter speed, white balance, exposure correction amount, target color space, and the like. Further, in the attached information storage area 112, in addition to the image processing control information GC, thumbnail image data of JPEG images stored in the JPEG image data storage area 111 is stored in the TIFF format. As is well known to those skilled in the art, in an Exif format file, tags are used to identify each data, and each data may be called by a tag name. Note that terms such as file structure, data structure, and storage area in this embodiment mean an image of a file or data in a state where the file or data is stored in the storage device.
[0028]
The image processing control information GC is information related to the image quality when image data is generated (taken) in an image data generation device such as the digital still camera 12, and is automatically associated with the shooting or the user Parameters related to exposure time, ISO sensitivity, aperture, shutter speed, focal length, and image processing control parameters such as exposure correction amount, white balance, shooting mode, target color space, etc. May be included.
[0029]
The image file GF according to the present embodiment can be generated not only by the digital still camera 12 but also by an input device (image file generation device) such as a digital video camera or a scanner.
[0030]
A detailed data structure of the auxiliary information storage area 112 will be described with reference to FIG. FIG. 4 is an explanatory diagram showing an example of the data structure of the attached information storage area 112 of the image file GF that can be used in this embodiment.
[0031]
In the attached information storage area 112, as shown in the figure, parameter values for image processing control information GC such as exposure time, lens F value, exposure control mode, ISO sensitivity, exposure correction amount, white balance, flash, focal length, shooting mode, etc. Are stored according to the default address or offset value. On the output device side, the image processing control information GC can be acquired by designating an address or an offset value corresponding to desired information (parameter). The image processing control information GC is an undefined area in the attached information storage area 112 and is stored in a user-defined area that is released to the user.
[0032]
C. Image output device configuration:
The schematic configuration of the image processing apparatus according to this embodiment, that is, the color printer 20 will be described with reference to FIG. FIG. 5 is a block diagram illustrating a schematic configuration of the color printer 20 according to the present embodiment.
[0033]
The color printer 20 is a printer capable of outputting a color image, and, for example, ejects four color inks of cyan (C), magenta (M), yellow (Y), and black (K) onto a print medium. This is an ink jet printer that forms an image by forming a dot pattern. Alternatively, it is an electrophotographic printer that forms an image by transferring and fixing color toner onto a printing medium. In addition to the above four colors, light cyan (light cyan, LC), light magenta (light magenta, LM), and dark yellow (dark yellow, DY) may be used as the color ink.
[0034]
As shown in the figure, the color printer 20 drives a print head 211 mounted on a carriage 21 to eject ink and form dots, and the carriage 21 is reciprocated in the axial direction of a platen 23 by a carriage motor 22. A mechanism for conveying the printing paper P by the paper feed motor 24, and a control circuit 30. The mechanism for reciprocating the carriage 21 in the axial direction of the platen 23 is an endless drive between the carriage motor 22 and the slide shaft 25 that slidably holds the carriage 21 laid in parallel with the axis of the platen 23. A pulley 27 that stretches the belt 26, a position detection sensor 28 that detects the origin position of the carriage 21, and the like. The mechanism for transporting the printing paper P includes a platen 23, a paper feed motor 24 that rotates the platen 23, a paper feed auxiliary roller (not shown), and a gear train that transmits the rotation of the paper feed motor 24 to the platen 23 and the paper feed auxiliary roller. (Not shown).
[0035]
The control circuit 30 appropriately controls the movement of the paper feed motor 24, the carriage motor 22, and the print head 211 while exchanging signals with the operation panel 29 of the printer. The printing paper P supplied to the color printer 20 is set so as to be sandwiched between the platen 23 and the paper feed auxiliary roller, and is fed by a predetermined amount according to the rotation angle of the platen 23.
[0036]
An ink cartridge 212 and an ink cartridge 213 are mounted on the carriage 21. The ink cartridge 212 contains black (K) ink, and the ink cartridge 213 contains light cyan (LC) in addition to other inks, that is, three color inks of cyan (C), magenta (M), and yellow (Y). ), Light magenta (LM), and dark yellow (DY).
[0037]
Next, the internal configuration of the control circuit 30 of the color printer 20 will be described with reference to FIG. FIG. 6 is an explanatory diagram showing the internal configuration of the control circuit 30 of the color printer 20. As shown in the figure, the control circuit 30 includes a CPU 31, a PROM 32, a RAM 33, a PCMCIA slot 34 for acquiring data from the memory card MC, a peripheral device input / output for exchanging data with the paper feed motor 24, the carriage motor 22, and the like. A unit (PIO) 35, a timer 36, a drive buffer 37, and the like are provided. The drive buffer 37 is used as a buffer for supplying dot on / off signals to the ink ejection heads 214 to 220. These are connected to each other via a bus 38 and can exchange data with each other. The control circuit 30 is also provided with an oscillator 39 that outputs a drive waveform at a predetermined frequency, and a distribution output device 40 that distributes the output from the oscillator 39 to the ink ejection heads 214 to 220 at a predetermined timing.
[0038]
The control circuit 30 reads the image file GF from the memory card MC, analyzes the image processing control information GC, and executes image processing based on the analyzed image processing control information GC. The control circuit 30 outputs dot data to the drive buffer 37 at a predetermined timing while synchronizing with the movements of the paper feed motor 24 and the carriage motor 22. A detailed flow of image processing executed by the control circuit 30 will be described below.
[0039]
D. Image processing in the color printer 20:
Image processing in the color printer 20 according to this embodiment will be described with reference to FIGS. FIG. 7 is a flowchart showing a processing routine of image processing in the color printer 20 according to the present embodiment. FIG. 8 is a flowchart showing the flow of extended image processing in the color printer 20. FIG. 9 is a flowchart showing a processing routine of image processing based on image processing control information in the color printer 20. FIG. 10 is a flowchart showing a flow of image processing in which the primary color space in the color printer 20 is the sRGB color space. FIG. 11 is a flowchart showing the flow of normal image processing in the color printer 20.
[0040]
When the memory card MC is inserted into the slot 34, the control circuit 30 (CPU 31) of the color printer 20 reads the image file GF from the memory card MC, and temporarily stores the read image file GF in the RAM 33 (step S100). . The CPU 31 inquires and acquires the printing conditions for the resolution, printing paper, etc. set by the user from the printer driver (printing control device) (step S110). Since a color conversion table for converting the RGB color space to the CMYK color space is prepared for each combination of print resolution and printing paper, a wide-area RGB (wRGB) -CMYK color conversion table corresponding to the set printing conditions. This is because the image processing suitable for the printing conditions is executed.
[0041]
The CPU 31 determines whether or not the set print paper is a compatible paper corresponding to the wRGB-CMYK color conversion table possessed (step S120), and determines that the set print paper is a compatible paper. If so (step S120: Yes), it is determined whether or not the set print resolution is a corresponding resolution corresponding to the held wRGB-CMYK color conversion table (step S130). When the CPU 31 determines that the set resolution is the corresponding resolution (step S130: Yes), the CPU 31 executes the extended image processing using the wRGB-CMYK color conversion table (step S140).
[0042]
The CPU 31 performs image processing including wide-area color conversion processing, sends the image data that has become image data for printing to the print head 211, and outputs the image onto the printing paper (step S150). finish.
[0043]
When the CPU 31 determines that the set printing paper is not a compatible paper (step S120: No), or when the CPU 31 determines that the set printing resolution is not a compatible resolution (step S130: No), wRGB-CMYK. Normal image processing without using a color conversion table is executed (step S160). The CPU 31 performs image processing including normal color conversion processing, sends the image data that has become image data for printing to the print head 211, and outputs the image onto the printing paper (step S150). finish.
[0044]
Next, the extended image processing will be described in detail with reference to FIG. The CPU 31 retrieves image processing control information GC indicating information at the time of image data generation from the attached information storage area 102 of the image file GF read out earlier (step S200). If the image processing control information can be retrieved and found (step S210: Yes), the CPU 31 acquires and analyzes the image processing control information GC at the time of image data generation (step S220). The CPU 31 executes image processing to be described in detail later based on the analyzed image processing control information GC (step S230), and returns to the main routine shown in FIG. In the present embodiment, particularly important image processing control information is primary color space information when image data is generated. The information includes a color space unique to the image data generation apparatus that is automatically added, and a user. Both of the color spaces arbitrarily set by are included. This is because when the primary color space information at the time of image data generation is unknown, the primary color space and the wRGB color space cannot be accurately associated. When the primary color space information can be acquired by analyzing the image processing control information, a process of associating the acquired primary color space with the wRGB color space, which will be described later, is executed.
[0045]
If the CPU 31 cannot retrieve or find the image processing control information (step S210: No), the image processing control information at the time of generating the image data cannot be reflected, so that the color printer 20 holds in advance as a default value. The obtained image processing control information, that is, various parameter values are acquired from the ROM 32, and image processing is performed in which the primary color space is sRGB (step S240). If the primary color space information is unknown, the color space of the image data cannot be associated with the wRGB color space. Therefore, in this embodiment, when the primary color space is unknown, sRGB generally used as the primary color space is not available. The color space is a primary color space and is associated with the wRGB color space. When the CPU 31 finishes the image processing for setting the primary color space to sRGB, the CPU 31 returns to the main routine shown in FIG.
[0046]
Image processing based on image processing control information executed in the color printer 20 will be described in detail with reference to FIG. The CPU 31 of the color printer 20 extracts the image data GD from the read image file GF (step S300). The digital still camera 12 stores image data as a JPEG file as described above, and the JPEG file stores image data using the YCbCr color space in order to increase the compression rate.
[0047]
The CPU 31 performs a 3 × 3 matrix operation S in order to convert image data based on the YCrCb color space into image data based on the sRGB color space (step S310). The matrix operation S is an arithmetic expression shown below.
[0048]
[Expression 1]
Figure 0004092882
[0049]
The CPU 31 executes gamma correction on the image data based on the sRGB color space thus obtained (step S320). When executing gamma correction, the CPU 31 acquires the gamma value on the DSC side from the image processing control information GC, and executes gamma conversion processing on the video data using the acquired gamma value. That is, the gamma value is also included in the image processing control parameter value specified by the image processing control information GC. The calculation formula for gamma correction is as follows.
[0050]
[Expression 2]
Figure 0004092882
[0051]
The CPU 31 performs a matrix operation (N) for associating the primary color space and the wRGB color space with the image data GD subjected to the gamma correction. -1 M) is executed (step S330). Since the image file GF used in the present embodiment can include color space information at the time of image generation, when the image file GF includes color space information, the CPU 31 performs a matrix operation (N -1 When executing (M), the color space information is referred to and a matrix (N -1 Perform a matrix operation using M).
[0052]
Matrix operation (N -1 M) is an inverse matrix operation N of a matrix operation M using a matrix M for converting the RGB color space to the XYZ color space and a matrix operation N using the matrix N for converting the wRGB color space to the XYZ color space. -1 Is a composite matrix. The matrix M is not included in the definition area of the sRGB color space brought about by the matrix operation S, but is included in the definition area of the primary color space, and valid image data (color values) is included as data. This is a matrix for reflecting and converting image data based on the sRGB color space into image data based on the XYZ color space. Therefore, the value of the matrix is different if the primary color space is different. The inverse matrix N of the matrix N is used for converting (returning to the RGB color space) image data converted into image data based on the XYZ color space by the matrix operation M into a wRGB color space having a definition area wider than the sRGB color space. Matrix. The XYZ color space is one of device-independent color spaces that does not depend on the output characteristics of the device, and is used to associate color values between the sRGB color space and the wRGB color space. Matrix operation (N -1 M) is an arithmetic expression shown below.
[0053]
[Equation 3]
Figure 0004092882
[0054]
Matrix operation (N -1 The color space of the image data GD obtained after the execution of M) is a wRGB color space having a definition area wider than the sRGB color space. Conventionally, the color space used for image processing in a printer or computer is fixed to sRGB, and the color space of the digital still camera 12 cannot be used effectively. On the other hand, in the present embodiment, when color space information is included in the image file GF, a matrix (N -1 Since M) is changed, correct color reproduction can be realized by effectively utilizing the color space of the digital still camera 12.
[0055]
The CPU 31 performs matrix calculation (N -1 Inverse gamma correction is performed on the image data obtained by M) (step S340). When executing gamma correction, the CPU 31 acquires a default gamma value on the printer side from the ROM 32, and executes an inverse gamma conversion process on the image data GD using the inverse of the acquired gamma value. The calculation formula used for inverse gamma correction is as follows.
[0056]
[Expression 4]
Figure 0004092882
[0057]
The CPU 31 executes automatic image quality adjustment processing on the image data GD that has been subjected to inverse gamma correction (step S350). In the image quality automatic adjustment processing in the present embodiment, the image data GD included in the image file GF is analyzed to acquire a characteristic parameter value indicating the image quality, and the image processing control information GC included in the image file GF is acquired. The automatic adjustment of the image quality is performed to correct the image data by reflecting the characteristic parameter value. In the automatic image quality adjustment processing, reference parameters to be corrected are determined in advance, and the image data is corrected so that the characteristic parameters of the image data are close to or match the reference parameters. At this time, the image processing control information GC may be used for changing the value of the reference parameter, or may be used for changing the degree of approaching the value of the characteristic parameter to the value of the reference parameter. good.
[0058]
Image data correction, for example, for brightness, contrast, color balance, etc., is performed for each pixel (pixel) using a characteristic line that associates the input level and output level of an RGB signal, generally called a tone curve. Is done. Further, for example, for saturation, sharpness, noise reduction, etc., pixel calculation processing (filter processing) is executed in units of pixels instead of tone curve processing.
[0059]
When finishing the automatic image quality adjustment process, the CPU 31 executes a wRGB-CMYK color conversion process for printing (step S360). In the wRGB color conversion process, the CPU 31 refers to a conversion look-up table (LUT) stored in the ROM 31 that associates the wRGB color space with the CMYK color space, and changes the color space of the image data from the wRGB color space to the CMYK color. Change to space. That is, image data composed of R, G, and B tone values is converted into tone value data for each of the six colors C, M, Y, K, LC, and LM used by the color printer 20, for example.
[0060]
The CPU 31 executes halftone processing (step S370) and returns to the routine shown in FIG. In the halftone process, the color-converted image data is received and the gradation number conversion process is performed. In this embodiment, the image data after color conversion is expressed as data having a 256 gradation width for each color. On the other hand, the color printer 20 of the present embodiment can only take one of the states of “form dots” or “do not form dots”, and the color printer 20 of this embodiment is locally on the second floor. Can only express the key. Therefore, the image data having 256 gradations is converted into image data expressed in 2 gradations that can be expressed by the color printer 20. As a representative method of the two gradation processing (binarization), there are a method called an error diffusion method and a method called a systematic dither method.
[0061]
In the color printer 20, prior to color conversion processing, when the resolution of image data is lower than the printing resolution, new data is generated between adjacent image data by performing linear interpolation, and conversely higher than the printing resolution. Performs a resolution conversion process for converting the resolution of the image data into the print resolution by thinning out the data at a constant rate. In addition, the color printer 20 executes an interlace process in which the image data converted into a format representing the presence / absence of dot formation is rearranged in the order to be transferred to the color printer 20.
[0062]
Image processing executed by the color printer 20 for the primary color space as sRGB will be described in detail with reference to FIG. Of the processing executed in each step, processing similar to that in the extended image processing described with reference to FIG. 9 will be briefly described. The CPU 31 of the color printer 20 extracts the image data GD from the read image file GF (step S400). The CPU 31 executes a 3 × 3 matrix operation S in order to convert image data based on the YCrCb color space into image data based on the sRGB color space (step S410). The matrix operation S is the above-described arithmetic expression.
[0063]
The CPU 31 performs a matrix operation (N) for associating the primary color space and the wRGB color space with the image data GD based on the sRGB color space obtained by executing the matrix operation S. -1 M) is executed (step S420). Since this processing routine is executed when the image processing control information GC is not included in the image file GF, the matrix (N) corresponding to the color space at the time of image generation is referred to by referring to the color space information. -1 Matrix operations cannot be performed using M). Therefore, the CPU 31 regards the primary color space, which is the color space at the time of image data GD generation, as sRGB and performs matrix calculation (N -1 M). Note that a matrix N for converting the sRGB color space as the primary color space into the wRGB color space -1 The illustration of M is omitted.
[0064]
The CPU 31 performs matrix calculation (N -1 An automatic image quality adjustment process is performed on the image data obtained in step M) (step S430), and a wRGB-CMYK color conversion process for printing is performed (step S440). Finally, the CPU 31 executes halftone processing (step S450) and returns to the routine shown in FIG.
[0065]
The normal image processing executed in the color printer 20 will be described in detail with reference to FIG. Of the processing executed in each step, processing similar to that in the extended image processing described with reference to FIG. 9 will be briefly described. The CPU 31 of the color printer 20 extracts the image data GD from the read image file GF (step S500). The CPU 31 executes a 3 × 3 matrix operation S in order to convert image data based on the YCrCb color space into image data based on the sRGB color space (step S510). The matrix operation S is the above-described arithmetic expression.
[0066]
The CPU 31 performs automatic image quality adjustment processing on the image data obtained by the matrix operation S (step S520), and executes sRGB-CMYK color conversion processing for printing (step S530). This processing routine is executed when the wRGB-CMYK color conversion cannot be executed based on the printing conditions, that is, when there is no wRGB-CMYK color conversion table corresponding to the selected printing conditions. An sRGB-CMYK color conversion table is used. Finally, the CPU 31 executes halftone processing (step S450) and returns to the main routine shown in FIG.
[0067]
As described above, according to the color printer 20 of this embodiment, the RGB-CMYK color conversion table can be selected based on the printing conditions such as the combination of the printing resolution and the type of printing paper. Furthermore, in this embodiment, as the RGB-CMYK color conversion table, a wRGB-CMYK color conversion table that can reproduce color values (image data) included in the definition area of the color space at the time of image data generation. Have. Therefore, image processing of image data can be executed using an RGB-CMYK color conversion table that conforms to the printing conditions, and when the printing conditions conform, extended image processing using the wRGB-CMYK color conversion table. Thus, the image quality of the output image can be improved. In addition, it is not necessary to prepare a wRGB-CMYK color conversion table, which is a wide-area color conversion table, for all printing conditions in advance, and only wRGB for printing conditions that can reflect image quality improvement by the wRGB-CMYK color conversion table. Since it is sufficient to prepare a CMYK color conversion table, the required memory resource amount can be reduced.
[0068]
Further, the color space of the image data converted into the sRGB color space by the matrix operation S is changed to the wRGB color space reflecting the color space specific to the image output apparatus at the time of generating the image data or an arbitrarily set color space. Since conversion is possible, the saturation of the image data can be improved while considering the correspondence with the primary color space.
[0069]
F. Other examples:
In the above embodiment, all image processing is executed in the color printer 20 without using the personal computer PC, and a dot pattern is formed on the print medium according to the generated image data GD. Alternatively, a part may be executed on a computer or a server via a network. In this case, the image data processing application (program) such as a retouch application or a printer driver installed in the hard disk of the computer is provided with the image processing function described with reference to FIGS. The
[0070]
For example, the image file GF generated by the digital still camera 12 is provided to a computer via a cable or via a memory card MC, and an application is activated by a user operation on the computer, and the image file GF is generated. Reading of the file GF, analysis of the image processing control information GC, inquiry to the printer driver, conversion and adjustment of the image data GD are executed. Alternatively, by detecting the insertion of the memory card MC or by detecting the insertion of the cable, the application is automatically started, the image file GF is read, the image processing control information GC is analyzed, the image Conversion and adjustment of the data GD may be automatically performed.
[0071]
Furthermore, a characteristic parameter value for executing automatic image quality adjustment may be selected. For example, the color printer 20 may be provided with a parameter selection button or a shooting mode parameter selection button in which predetermined parameters are combined according to the subject, and parameters for executing automatic image quality adjustment may be selected with these selection buttons. When automatic image quality adjustment is executed on a personal computer, a parameter for executing automatic image quality adjustment may be selected on a user interface of a printer driver or a retouch application.
[0072]
In the above-described embodiments, the color printer 20 is used as an output device. However, a display device such as a CRT, LCD, or projector can be used as the output device. In such a case, for example, an image processing program (display driver) that executes the image processing described with reference to FIGS. 7 to 11 is executed by the display device as the output device. Alternatively, when a CRT or the like functions as a computer display device, an image processing program is executed on the computer side. However, finally output image data has an RGB color space instead of a CMYK color space.
[0073]
As described above, the image processing apparatus, the image processing method, the image processing program, and the image output apparatus according to the present invention have been described based on the embodiments. However, the above-described embodiments of the present invention are intended to facilitate understanding of the present invention. However, the present invention is not limited thereto. The present invention can be changed and improved without departing from the spirit and scope of the claims, and it is needless to say that the present invention includes equivalents thereof.
[0074]
In the above embodiment, parameters such as light source, exposure correction amount, target color space, brightness, and sharpness are used as the image processing control information GC. However, in this embodiment, at least the target color space (color space at the time of image generation) is used. ) Which parameter is used as the image processing control information GC is an arbitrary decision.
[0075]
In addition, the matrix S, N in each mathematical expression -1 The value of M is merely an example, and it is needless to say that the value of M can be changed as appropriate depending on the target color space or the color space available in the color printer 20.
[0076]
In the above embodiment, the digital still camera 12 has been described as the image file generating device. However, a scanner, a digital video camera, or the like can be used. In the case of using a scanner, the specification of the captured data information of the image file GF may be executed on the computer PC, or a preset button assigned with setting information in advance for information setting on the scanner, an arbitrary setting A display screen and a setting button may be provided so that the scanner can be executed alone.
[0077]
In the above embodiment, the Exif format file has been described as a specific example of the image file GF, but the format of the image file according to the present invention is not limited to this. That is, any image file including image data generated by the image data generation device and image processing control information GC describing conditions (information) at the time of image data generation may be used. With such a file, the image quality of the image data generated by the image file generation device can be automatically adjusted appropriately and output from the output device.
[0078]
The digital still camera 12 and the color printer 20 used in the above-described embodiments are merely examples, and the configuration is not limited to the description of each embodiment. The digital still camera 12 only needs to have at least a function capable of generating the image file GF according to the above embodiment. The color printer 20 only needs to analyze at least the image processing control information GC of the image file GF according to the present embodiment and output (print) an image using the wRGB color space or the sRGB color space.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram illustrating an example of an image data processing system to which an image processing apparatus according to an embodiment can be applied.
FIG. 2 is a block diagram illustrating a schematic configuration of a digital still camera capable of generating an image file (image data) to be processed by the image processing apparatus according to the present embodiment.
FIG. 3 is an explanatory diagram showing a schematic internal structure of an image file stored in an Exif file format that can be used in this embodiment.
FIG. 4 is an explanatory diagram showing an example of a data structure of an attached information storage area 112 of an image file GF that can be used in the present embodiment.
FIG. 5 is a block diagram illustrating a schematic configuration of a color printer 20 according to the present exemplary embodiment.
FIG. 6 is an explanatory diagram illustrating an internal configuration of a control circuit 30 of the color printer 20 according to the present embodiment.
FIG. 7 is a flowchart illustrating a processing routine of image processing in the color printer 20 according to the present embodiment.
FIG. 8 is a flowchart illustrating a flow of extended image processing in the color printer 20 according to the present embodiment.
FIG. 9 is a flowchart illustrating a processing routine of image processing based on image processing control information in the color printer 20 according to the present embodiment.
FIG. 10 is a flowchart illustrating a flow of image processing in which the primary color space is set as an sRGB color space in the color printer 20 according to the present embodiment.
FIG. 11 is a flowchart illustrating a flow of normal image processing in the color printer 20 according to the present embodiment.
[Explanation of symbols]
10. Image processing system
12 ... Digital still camera
121: Optical circuit
122. Image acquisition circuit
123: Image processing circuit
124 ... Control circuit
126 ... Select / Enter button
127 ... Liquid crystal display
14 ... Display
20 Color printer
21 ... Carriage
211: Print head
212 ... Ink cartridge
213 ... Ink cartridge
214 to 220 ... Ink ejection head
22 Carriage motor
23 ... Platen
24. Paper feed motor
25 ... Sliding shaft
26 ... Driving belt
27 ... pulley
28: Position detection sensor
29 ... Control panel
30 ... Control circuit
31 ... Arithmetic processing unit (CPU)
32. Programmable read only memory (PROM)
33 ... Random access memory (RAM)
34 ... PCMCIA slot
35 ... Peripheral device input / output unit (PIO)
36 ... Timer
37 ... Drive buffer
38 ... Bus
39: Oscillator
40 ... Distribution output device
GF ... Image file (Exif file)
111 ... JPEG image data storage area
112 ... Attached information storage area
MC ... Memory card

Claims (4)

画像データを少なくとも含む画像ファイルに対して画像処理を実行する画像処理装置であって、
解像度、印刷用紙を含む印刷条件を設定する印刷条件設定手段と、
画像データの色空間を異なる複数の色空間から印刷用空間に変換するための複数の色変換テーブルであって、前記異なる複数の色空間の1つであるsRGB色空間により定義される画像データを前記第1の色空間としてのCMYK色空間により定義される画像データに変換する第1の色変換テーブルと、前記異なる複数の色空間の1つであると共に前記sRGB色空間よりも広い定義領域を有するwRGB色空間により定義される画像データを、前記第1の色空間としてのCMYK色空間により定義される画像データに変換する第2の色変換テーブルとを含む、複数の色変換テーブルと、
前記設定された印刷条件に応じて前記異なる複数の色変換テーブルの中から1つの色変換テーブルを選択する色変換テーブル選択手段であって、前記解像度および印刷用紙の組み合わせに対応する前記第2の色変換テーブルが存在する場合には、前記第2の色変換テーブルを選択する色変換テーブル選択手段と、
前記画像データに対して、前記選択された色変換テーブルを用いた前記画像データの色空間の変換処理を含む画像処理を施す画像処理手段とを備える画像処理装置。
An image processing apparatus that executes image processing on an image file including at least image data,
Printing condition setting means for setting printing conditions including resolution and printing paper;
A plurality of color conversion tables for converting a color space of image data from a plurality of different color spaces to a printing space, wherein image data defined by an sRGB color space that is one of the plurality of different color spaces A first color conversion table for converting to image data defined by a CMYK color space as the first color space, and a definition area that is one of the plurality of different color spaces and wider than the sRGB color space. A plurality of color conversion tables, including a second color conversion table that converts image data defined by the wRGB color space having image data defined by the CMYK color space as the first color space;
Color conversion table selection means for selecting one color conversion table from among the plurality of different color conversion tables according to the set printing conditions, wherein the second color conversion table selection unit corresponds to the combination of the resolution and the printing paper. If a color conversion table exists, color conversion table selection means for selecting the second color conversion table;
An image processing apparatus comprising: an image processing unit that performs image processing on the image data, including conversion processing of a color space of the image data using the selected color conversion table.
請求項1に記載の画像処理装置において、
前記画像ファイルは、前記画像データに加えて前記画像データの画像処理を制御する画像処理制御情報を1つのファイル内に含み、
前記画像処理手段は、前記色空間の変換処理に加えて、前記画像処理制御情報に基づいて、前記画像データの色空間を、前記画像データの生成時に設定された色空間から前記異なる複数の色空間に変換する画像処理を実行することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The image file includes, in one file, image processing control information for controlling image processing of the image data in addition to the image data.
In addition to the color space conversion process, the image processing means changes the color space of the image data based on the image processing control information from the color space set when the image data is generated to the plurality of different colors. An image processing apparatus that executes image processing for conversion into space.
画像データに対する画像処理方法であって、
解像度、印刷用紙を含む印刷条件を取得し、
画像データの色空間を異なる複数の色空間から印刷用空間に変換するための複数の色変換テーブルであって、前記異なる複数の色空間の1つであるsRGB色空間により定義される画像データを前記第1の色空間としてのCMYK色空間により定義される画像データに変換する第1の色変換テーブルと、前記異なる複数の色空間の1つであると共に前記sRGB色空間よりも広い定義領域を有するwRGB色空間により定義される画像データを、前記第1の色空間としてのCMYK色空間により定義される画像データに変換する第2の色変換テーブルとを含む複数の色変換テーブルの中から、前記取得された印刷条件に含まれる前記解像度および印刷用紙の組み合わせに対応する前記第2の色変換テーブルが存在する場合には、前記第2の色変換テーブルを選択し、
前記画像データに対して、前記選択された色変換テーブルを用いた前記画像データの色空間の変換処理を含む画像処理を施す画像処理方法。
An image processing method for image data,
Get printing conditions including resolution and printing paper,
A plurality of color conversion tables for converting a color space of image data from a plurality of different color spaces to a printing space, wherein image data defined by an sRGB color space that is one of the plurality of different color spaces A first color conversion table for converting to image data defined by a CMYK color space as the first color space, and a definition area that is one of the plurality of different color spaces and wider than the sRGB color space. Among a plurality of color conversion tables including a second color conversion table for converting image data defined by the wRGB color space having image data defined by the CMYK color space as the first color space, When the second color conversion table corresponding to the combination of the resolution and the printing paper included in the acquired printing condition exists, the second color Select the conversion table,
An image processing method for subjecting the image data to image processing including conversion processing of a color space of the image data using the selected color conversion table.
画像データに対して画像処理を実行する画像処理プログラムであって、
解像度、印刷用紙を含む印刷条件を設定する機能と、
画像データの色空間を異なる複数の色空間から印刷用空間に変換するための複数の色変換テーブルであって、前記異なる複数の色空間の1つであるsRGB色空間により定義される画像データを前記第1の色空間としてのCMYK色空間により定義される画像データに変換する第1の色変換テーブルと、前記異なる複数の色空間の1つであると共に前記sRGB色空間よりも広い定義領域を有するwRGB色空間により定義される画像データを、前記第1の色空間としてのCMYK色空間により定義される画像データに変換する第2の色変換テーブルとを含む複数の色変換テーブルの中から、前記設定された印刷条件に応じて1つの色変換テーブルを選択する機能であって、前記設定された印刷条件に含まれる前記解像度および印刷用紙の組み合わせに対応する前記第2の色変換テーブルが存在する場合には、前記第2の色変換テーブルを選択する機能と、
前記画像データに対して、前記選択された色変換テーブルを用いた前記画像データの色空間の変換処理を含む画像処理を施す機能とをコンピュータによって実現させる画像処理プログラム。
An image processing program for performing image processing on image data,
A function to set printing conditions including resolution and printing paper,
A plurality of color conversion tables for converting a color space of image data from a plurality of different color spaces to a printing space, wherein image data defined by an sRGB color space that is one of the plurality of different color spaces A first color conversion table for converting to image data defined by a CMYK color space as the first color space, and a definition area that is one of the plurality of different color spaces and wider than the sRGB color space. Among a plurality of color conversion tables including a second color conversion table for converting image data defined by the wRGB color space having image data defined by the CMYK color space as the first color space, A function for selecting one color conversion table in accordance with the set printing conditions, the set of resolutions and printing papers included in the set printing conditions; When the second color conversion table corresponding to the mating exists, the function of selecting the second color conversion table,
An image processing program that causes a computer to realize a function of performing image processing including color image conversion processing on the image data using the selected color conversion table.
JP2001074588A 2001-03-15 2001-03-15 Image processing apparatus and image processing method Expired - Fee Related JP4092882B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001074588A JP4092882B2 (en) 2001-03-15 2001-03-15 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001074588A JP4092882B2 (en) 2001-03-15 2001-03-15 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2002281330A JP2002281330A (en) 2002-09-27
JP4092882B2 true JP4092882B2 (en) 2008-05-28

Family

ID=18931827

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001074588A Expired - Fee Related JP4092882B2 (en) 2001-03-15 2001-03-15 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4092882B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4669862B2 (en) * 2007-07-18 2011-04-13 京セラミタ株式会社 Image forming system and print setting program
JP4517308B2 (en) 2007-12-13 2010-08-04 ソニー株式会社 Information processing apparatus and method, program, and information processing system

Also Published As

Publication number Publication date
JP2002281330A (en) 2002-09-27

Similar Documents

Publication Publication Date Title
JP5594382B2 (en) Output image adjustment for image files
JP4775410B2 (en) Output image adjustment of image data
US7933041B2 (en) Adjustment for output image of image data
JP3991606B2 (en) Color space conversion device and color space conversion method
JPWO2004008753A1 (en) Output image adjustment of image data
US20020196346A1 (en) Image processing apparatus
JP4010306B2 (en) Output image adjustment for image files
JP3520869B2 (en) Image output adjustment of image data
JP4205320B2 (en) Output image adjustment for image files
JP4295465B2 (en) Image processing device
JP4175004B2 (en) Image processing device
JP4092882B2 (en) Image processing apparatus and image processing method
JP3834516B2 (en) Output image adjustment of image data
JP3666439B2 (en) Output image adjustment for image files
JP4085661B2 (en) Print control program and image processing program
JP3960137B2 (en) Output image adjustment of image data
JP4126967B2 (en) Output image adjustment of image data
JP4595965B2 (en) Output image adjustment for image files
JP4636001B2 (en) Output image adjustment for image files
JP5206741B2 (en) Image file generation and output
JP2002314797A (en) Image file containing image processing control data
JP2010279049A (en) Output image adjustment for image files

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070508

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070705

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071030

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071129

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080115

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080225

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

Free format text: PAYMENT UNTIL: 20110314

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120314

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120314

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130314

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140314

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees