JP3999157B2 - Output image adjustment for image files - Google Patents

Output image adjustment for image files Download PDF

Info

Publication number
JP3999157B2
JP3999157B2 JP2003101740A JP2003101740A JP3999157B2 JP 3999157 B2 JP3999157 B2 JP 3999157B2 JP 2003101740 A JP2003101740 A JP 2003101740A JP 2003101740 A JP2003101740 A JP 2003101740A JP 3999157 B2 JP3999157 B2 JP 3999157B2
Authority
JP
Japan
Prior art keywords
image
image data
image quality
control information
processing control
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 - Lifetime
Application number
JP2003101740A
Other languages
Japanese (ja)
Other versions
JP2003348343A (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 JP2003101740A priority Critical patent/JP3999157B2/en
Publication of JP2003348343A publication Critical patent/JP2003348343A/en
Application granted granted Critical
Publication of JP3999157B2 publication Critical patent/JP3999157B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、画像ファイルの画質を調整する画像調整技術に関する。
【0002】
【従来の技術】
ディジタルスチルカメラ(DSC)、ディジタルビデオカメラ(DVC)、スキャナ等によって生成された画像データの画質は、パーソナルコンピュータ上で画像レタッチアプリケーションを用いることによって任意に調整することができる。画像レタッチアプリケーションには、一般的に、画像データの画質を自動的に調整する画像調整機能が備えられており、この画像調整機能を利用すれば、出力装置から出力する画像データの画質を容易に向上させることができる。画像ファイルの出力装置としては、例えば、CRT、LCD、プリンタ、プロジェクタ、テレビ受像器などが知られている。
【0003】
また、出力装置の1つであるプリンタの動作を制御するプリンタドライバにも、画像データの画質を自動的に調整する機能が備えられており、このようなプリンタドライバを利用しても、印刷される画像データの画質を容易に向上させることができる。
【0004】
【発明が解決しようとする課題】
しかしながら、これら画像レタッチアプリケーションおよびプリンタドライバによって提供される画質自動調整機能では、一般的な画質特性を有する画像データを基準として画質補正が実行される。これに対して、画像処理の対象となる画像データは様々な条件下で生成され得るため、一律に画質自動調整機能を実行し、規定値を用いて画像データの画質パラメータ値を変更しても、画質を向上させることができない場合がある。
【0005】
また、DSC等の画像データ生成装置の中には、画像データ生成時に画像データの画質を任意に調整できるものもあり、ユーザは意図的に所定の画質を有する画像データを生成することができる。あるいは、ユーザは撮影条件に応じて予め設定された撮影画質にて撮影条件に適した画像データを生成することができる。このような画像データに対して、画質自動調整機能を実行すると、画像データが有する意図的な画質までも自動的に基準とする画質に基づいて調整されてしまい、ユーザの意図を反映した自動画質調整を実行することができないという問題があった。また、DSC側で設定された撮影条件が自動画質調整において上手く反映されないという問題があった。なお、こうした問題はDSCに限らず、DVC等の他の画像ファイル生成装置においても共通の課題である。
【0006】
本発明は、上記問題を解決するためになされたものであり、個々の画像データに対応して画質を適切に自動調整することを目的とする。また、恣意的に設定された画質調整条件を損なうことなく画像データの画質を自動調整することを目的とする。
【0020】
【課題を解決するための手段および作用・効果】
上記課題を解決するために本発明の第1の態様は、画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられ得る画像データを生成する画像データ生成装置を提供する。本発明の第1の態様に係る画像データ生成装置は、前記出力装置にて用いられる画像データを入力するための画像データ入力手段と、前記画像データの解析結果と基準値とを用いて画像データに対して画質調整処理実行る前記出力装置における、前記画質調整処理の条件を指定する画像処理制御情報を指定する画像処理制御情報指定手段と、前記指定された画像処理制御情報と、前記入力された画像データとを関連付けて出力する画像データ出力手段とを備えることを特徴とする。
【0021】
本発明の第1の態様に係る画像データ生成装置によれば、画像処理装置、および前記画像データの解析結果に基づいた画質調整処理が実行される前記出力装置における、前記画像データに対する画質調整処理の条件を指定する画像処理制御情報と画像データとを関連付けて出力することができるので、画像処理制御情報と画像データとを適切に関連付けることが可能となり、個々の画像データに対する画像データの解析結果に基づいた自動画質調整を容易に実現させることができる。また、恣意的に設定された画像処理制御情報と画像データとを関連付けることができるので、画像処理制御情報を反映して画像データの画質を自動調整することができる。
【0022】
本発明の第の態様に係る画像データ生成装置において、前記画像処理制御情報は、前記出力装置における画質調整処理において画質調整処理の基準として用いられる基準画質パラメータを修正するためのデータであっても良い。画像処理制御情報が基準画質パラメータを修正するためのデータの場合には、出力装置または画像処理装置は、画像処理制御情報の解析を経て基準画質パラメータを修正した後に画質調整処理を実行することができる。また、前記画像処理制御情報は、前記出力装置における画質調整処理において画質調整処理の基準値として用いられる基準画質パラメータ値であっても良い。画像処理制御情報が基準画質パラメータの場合には、出力装置または画像処理装置は、変更処理を実行することなく、直接、基準画質パラメータを用いて画質調整処理を実行することができる。更に、前記画像処理制御情報は、前記画像データの画質を表す画質パラメータに対応していると共に、前記出力装置における画質調整処理の基準値として用いられる、複数の基準画質パラメータ値の組み合わせであっても良い。画像処理制御情報が複数の基準画質パラメータ値の組み合わせの場合には、特定の撮影条件に応じて基準画質パラメータ値を組み合わせることができる。
【0023】
本発明の第の態様に係る画像データ生成装置において、前記画像処理制御情報は、前記出力装置における画質調整処理の基準値として用いられる基準画質パラメータ値と前記画像データの画質を表す画質パラメータ値とに基づいて求められる前記画像データを補正するための補正量の適用の程度を指定するためのデータであっても良い。かかる場合には、指定した補正量の適用の程度に従う画像データの補正を実現させることができる。また、前記画像処理制御情報は、前記画像データの画質を表す画質パラメータに対応していると共に、前記出力装置における画質調整処理の基準値として用いられる、複数の基準画質パラメータ値の修正の傾向を指定するためのデータであっても良い。画像処理制御情報が基準画質パラメータ値の修正の傾向を指定するためのデータの場合には、出力装置または画像処理装置は、指定された傾向に従って単一または複数の基準画質パラメータ値の修正を実行し、修正された基準画質パラメータ値に基づいて画質調整処理を実行することができる。さらに、前記画像処理制御情報は、前記撮影条件毎に、少なくとも、コントラスト、明るさ、カラーバランス、彩度、シャープネス、記憶色、およびノイズ除去についての前記基準画質パラメータの修正の傾向を示すデータを含んでも良い。
【0024】
本発明の第6の態様に係る画像ファイル生成装置において、
前記画質調整処理条件指定手段は、
前記画質調整処理条件を表示する表示手段と、
前記画質調整処理条件を選択、決定するための決定手段とを備えても良い。
【0025】
本発明の第の態様に係る画像データ生成装置において、前記画像データ出力手段は、前記画像処理制御情報と前記画像データとを同一のファイル内に格納して出力しても良い。かかる場合には、画像処理制御情報と画像データとを容易に対応付けることができる。本発明の第の態様に係る画像データ生成装置はさらに、前記出力装置にて出力するための画像データを生成する画像データ生成手段を備えても良い。かかる場合には、生成した画像データに対応して画像処理制御情報を生成することができる。
【0026】
本発明の第2の態様は、画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられる画像データを生成するプログラムを提供する。本発明の第2の態様に係るプログラムは、前記出力装置にて画像を出力するために用いられる画像データを取得する機能と、前記画像データの解析結果に基づいた画質調整処理が実行される前記出力装置における、前記画像データの解析結果と基準値とを用いて画像データに対して画質調整処理実行る前記出力装置における、前記画質調整処理の条件を指定する画像処理制御情報を指定する機能と、前記指定した画像処理制御情報と、前記取得した画像データとを関連付けて出力する機能とをコンピュータに実現させることを特徴とする。
【0027】
本発明の第2の態様に係るプログラムは、本発明の第1の態様に係る画像データ生成装置と同様の作用効果を奏すると共に、本発明の第1の態様に係る画像データ生成装置と同様にして種々の態様にて実現される。
本発明の第1の態様は、本発明の第3の態様に係る画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられ得る画像データを生成する画像データ生成方法としても実現され得る。本発明の第3の態様に係る画像データ生成方法は、前記画像データの解析結果に基づいた画質調整処理が実行される前記出力装置における、前記画像データの解析結果と基準値とを用いて画像データに対して画質調整処理実行る前記出力装置における、前記画質調整処理の条件を指定する画像処理制御情報を指定し、前記指定した画像処理制御情報と、入力された画像データとを関連付けて出力することを特徴とする。
本発明の第3の態様に係る画像データ生成方法は、本発明の第1の態様に係る画像データ生成装置と同様の作用効果を奏すると共に、本発明の第1の態様に係る画像データ生成装置と同様にして種々の態様にて実現される。
【0030】
【発明の実施の形態】
以下、本発明に係る画像ファイルの画像調整について以下の順序にて図面を参照しつつ、いくつかの実施例に基づいて説明する。
A.画像処理システムの構成:
B.画像ファイルの構成:
C.画像出力装置の構成:
D.ディジタルスチルカメラにおける画像処理:
E.プリンタにおける画像処理:
F.その他の実施例:
【0031】
A.画像処理システムの構成:
第1の実施例に係る画像処理装置を適用可能な画像処理システムの構成について図1および図2を参照して説明する。図1は第1実施例に係る画像処理装置を適用可能な画像処理システムの一例を示す説明図である。図2は第1実施例に係る画像処理装置が出力する画像ファイル(画像データ)を生成可能なディジタルスチルカメラの概略構成を示すブロック図である。
【0032】
画像処理システム10は、画像ファイルを生成する入力装置としてのディジタルスチルカメラ12、ディジタルスチルカメラ12にて生成された画像ファイルに基づいて画像処理を実行し、画像を出力する出力装置としてのカラープリンタ20を備えている。出力装置としては、プリンタ20の他に、CRTディスプレイ、LCDディスプレイ等のモニタ14、プロジェクタ等が用いられ得るが、以下の説明では、カラープリンタ20を出力装置として用いるものとする。
【0033】
ディジタルスチルカメラ12は、光の情報をディジタルデバイス(CCDや光電子倍増管)に結像させることにより画像を取得するカメラであり、図2に示すように光情報を収集するためのCCD等を備える光学回路121、光学回路121を制御して画像を取得するための画像取得回路122、取得したディジタル画像を加工処理するための画像処理回路123、メモリを備えると共に各回路を制御する制御回路124を備えている。ディジタルスチルカメラ12は、取得した画像をディジタルデータとして記憶装置としてのメモリカードMCに保存する。ディジタルスチルカメラ12における画像データの保存形式としては、JPEG形式が一般的であるが、この他にもTIFF形式、GIF形式、BMP形式、RAW形式等の保存形式が用いられ得る。
【0034】
ディジタルスチルカメラ12はまた、明度、コントラスト、露出補正量(露出補正値)、ホワイトバランス等の個別の画像処理制御パラメータ、および撮影条件に応じて予め複数の画像処理制御パラメータの値が設定されている撮影モードを設定するための選択・決定ボタン126、撮影画像をプレビューしたり、選択・決定ボタン126を用いて撮影モード等を設定するための液晶ディスプレイ127を備えている。選択・決定ボタン126および液晶ディスプレイ127を用いた撮影モード、画質パラメータの設定手順については後述する。
【0035】
本画像処理システム10に用いられるディジタルスチルカメラ12は、画像データGDに加えて画像データの画像処理制御情報GCを画像ファイルGFとしてメモリカードMCに格納する。すなわち、画像処理制御情報GCは、撮影時に画像データGDと共に自動的に画像ファイルGFとしてメモリカードMCに自動的に格納される。ユーザによって、人物、夜景、夕景といった撮影条件に適した撮影モードが選択された場合には、選択された撮影モードに対応する画像処理制御パラメータのパラメータ値を、あるいは、個別に、露光補正量、ホワイトバランス等の画像処理制御パラメータが任意の値に設定されている場合には、設定された画像処理制御パラメータの設定値を画像処理制御情報GCとして含む画像ファイルGFがメモリカードMCに格納される。
【0036】
ディジタルスチルカメラ12において、自動撮影モードにて撮影が実行された場合には、撮影時に自動的に設定された露出時間、ホワイトバランス、絞り、シャッタースピード、レンズの焦点距離等のパラメータの値が画像処理制御パラメータとして取り扱われ、これら画像処理制御パラメータを含む画像ファイルGFがメモリカードMCに格納される。なお、各撮影モードに適用されるパラメータ、およびパラメータ値はディジタルスチルカメラ12の制御回路124内のメモリ上に保有されている。
【0037】
ディジタルスチルカメラ12において生成された画像ファイルGFは、例えば、ケーブルCV、コンピュータPCを介して、あるいは、ケーブルCVを介してカラープリンタ20に送出される。あるいは、ディジタルスチルカメラ12にて画像ファイルGFが格納されたメモリカードMCが、メモリカード・スロットに装着されたコンピュータPCを介して、あるいは、メモリカードMCをプリンタ20に対して直接、接続することによって画像ファイルがカラープリンタ20に送出される。なお、以下の説明では、メモリカードMCがカラープリンタ20に対して直接、接続される場合に基づいて説明する。
【0038】
B.画像ファイルの構成:
図3を参照して本実施例にて用いられ得る画像ファイルの概略構成について説明する。図3は本実施例にて用いられ得る画像ファイルの内部構成の一例を概念的に示す説明図である。画像ファイルGFは、画像データGDを格納する画像データ格納領域101と、画像データの自動画質調整時に参照、適用される画像処理制御情報(画質調整処理条件)GCを格納する画像処理制御情報格納領域102を備えている。画像データGDは、例えば、JPEG形式で格納されており、画像処理制御情報GCはTIFF形式で格納されている。なお、本実施例中におけるファイルの構造、データの構造、格納領域といった用語は、ファイルまたはデータ等が記憶装置内に格納された状態におけるファイルまたはデータのイメージを意味するものである。
【0039】
画像処理制御情報GCは、ディジタルスチルカメラ12等の画像データ生成装置において生成された画像データを、画像処理する際の画像処理条件を指定する情報であり、ユーザにより任意に設定され得る露出時間、ISO感度、絞り、シャッタースピード、焦点距離に関するパラメータ、およびユーザによって任意に設定される露出補正量、ホワイトバランス、撮影モード、ターゲット色空間等の画像処理制御パラメータを含み得る。あるいは、ユーザにより撮影モードが指定されている場合には、撮影に伴い自動的に、指定された撮影モードに関連する画像処理制御パラメータの組み合わせが画像処理制御情報GCとして含まれ得る。
【0040】
本実施例に係る上記画像ファイルGFは、ディジタルスチルカメラ12の他、ディジタルビデオカメラ、スキャナ等の入力装置(画像ファイル生成装置)によっても生成され得る。ディジタルビデオカメラにて生成される場合には、例えば、静止画像データと出力制御情報とを格納する画像ファイル、あるいは、MPEG形式等の動画像データと出力制御情報とを含む動画像ファイルが生成される。この動画像ファイルが用いられる場合には、動画の全部または一部のフレームに対して出力制御情報に応じた出力制御が実行される。
【0041】
本実施例に係る画像ファイルGFは、基本的に上記の画像データ領域101と、画像処理制御情報格納領域102を備えていれば良く、既に規格化されているファイル形式に従ったファイル構造を取ることができる。以下、本実施例に係る画像ファイルGFを規格化されているファイル形式に適合させた場合について具体的に説明する。
【0042】
本実施例に係る画像ファイルGFは、例えば、ディジタルスチルカメラ用画像ファイルフォーマット規格(Exif)に従ったファイル構造を有することができる。Exifファイルの仕様は、電子情報技術産業協会(JEITA)によって定められている。本実施例に係る画像ファイルGFが、このExifファイル形式に従うファイル形式を有する場合のファイル内部の概略構造について図4を参照して説明する。図4はExifファイル形式にて格納されている本実施例に係る画像ファイルGFの概略的な内部構造を示す説明図である。
【0043】
Exifファイルとしての画像ファイルGFEは、JPEG形式の画像データを格納するJPEG画像データ格納領域111と、格納されているJPEG画像データに関する各種情報を格納する付属情報格納領域112とを備えている。JPEGデータ格納領域111は、上記画像データ格納領域101に相当し、付属情報格納領域112は、上記画像処理制御情報格納領域102に相当する。すなわち、付属情報格納領域112には、撮影日時、露出、シャッター速度、ホワイトバランス、露出補正量、ターゲット色空間等といったJPEG画像を出力する際に参照される画像処理制御情報GC(画質調整処理条件)が格納されている。また、付属情報格納領域112には、画像処理制御情報GCに加えてJPEG画像データ格納領域111に格納されているJPEG画像のサムネイル画像データがTIFF形式にて格納されている。なお、当業者にとって周知であるように、Exif形式のファイルでは、各データを特定するためにタグが用いられており、各データはタグ名によって呼ばれることがある。
【0044】
付属情報格納領域112の詳細なデータ構造について図5を参照して説明する。図5は本実施例に用いられ得る画像ファイルGFの付属情報格納領域112のデータ構造の一例を示す説明図である。
【0045】
付属情報格納領域112には、図示するように露出時間、レンズF値、露出制御モード、ISO感度、露出補正量、ホワイトバランス、フラッシュ、焦点距離、撮影モード等の画像処理制御情報GCに対するパラメータ値が既定のアドレスまたはオフセット値に従って格納されている。出力装置側では、所望の情報(パラメータ)に対応するアドレスまたはオフセット値を指定することにより画像処理制御情報GCを取得することができる。なお、画像処理制御情報GCは、付属情報格納領域112内の未定義領域であって、ユーザに解放されているユーザ定義領域内に格納されている。
【0046】
C.画像出力装置の構成:
図6を参照して本実施例に係る画像出力装置、すなわち、カラープリンタ20の概略構成について説明する。図6は本実施例に係るカラープリンタ20の概略構成を示すブロック図である。
【0047】
カラープリンタ20は、カラー画像の出力が可能なプリンタであり、例えば、シアン(C)、マゼンタ(M)、イエロー(Y)、ブラック(K)の4色の色インクを印刷媒体上に噴射してドットパターンを形成することによって画像を形成するインクジェット方式のプリンタである。あるいは、カラートナーを印刷媒体上に転写・定着させて画像を形成する電子写真方式のプリンタである。色インクには、上記4色に加えて、ライトシアン(薄いシアン、LC)、ライトマゼンタ(薄いマゼンタ、LM)、ダークイエロ(暗いイエロ、DY)を用いても良い。
【0048】
カラープリンタ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および給紙補助ローラに伝えるギヤトレイン(図示省略)とから構成されている。
【0049】
制御回路30は、プリンタの操作パネル29と信号をやり取りしつつ、紙送りモータ24やキャリッジモータ22、印字ヘッド211の動きを適切に制御している。カラープリンタ20に供給された印刷用紙Pは、プラテン23と給紙補助ローラの間に挟み込まれるようにセットされ、プラテン23の回転角度に応じて所定量だけ送られる。
【0050】
キャリッジ21にはインクカートリッジ212とインクカートリッジ213とが装着される。インクカートリッジ212には黒(K)インクが収容され、インクカートリッジ213には他のインク、すなわち、シアン(C),マゼンタ(M),イエロ(Y)の3色インクの他に、ライトシアン(LC),ライトマゼンタ(LM),ダークイエロ(DY)の合計6色のインクが収納されている。
【0051】
次に図7を参照してカラープリンタ20の制御回路30の内部構成について説明する。図7は、カラープリンタ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も設けられている。
【0052】
制御回路30は、メモリカードMCから画像ファイルGFを読み出し、付属情報AIを解析し、解析した制御情報AIに基づいて画像処理を実行する。制御回路30は、紙送りモータ24やキャリッジモータ22の動きと同期を採りながら、所定のタイミングでドットデータを駆動バッファ37に出力する。制御回路30によって実行される詳細な画像処理の流れについては後述する。
【0053】
D.ディジタルスチルカメラにおける画像処理:
以下、図8を参照してディジタルスチルカメラ12における画像処理について説明する。図8はディジタルスチルカメラ12における画像ファイルGFの生成処理の流れを示すフローチャートである。
【0054】
ディジタルスチルカメラ12の制御回路124は、撮影に先立ってユーザによって撮影モード、または、ホワイトバランス、露出補正量等の画像処理制御情報(画像処理制御パラメータ)が設定されているか否かを判定する(ステップS100)。これら画像処理制御情報の設定は、選択・設定ボタン126を操作して、液晶ディスプレイ127上に表示される、予め用意されている撮影モードの中からユーザが選択することにより実行される。あるいは、同様に選択・設定ボタン126を操作して、液晶ディスプレイ127上にて明度、コントラスト等の画像処理制御パラメータの値をユーザが設定することにより実行される。
【0055】
選択・設定ボタン126を用いて液晶ディスプレイ127上にて画像処理制御パラメータを設定する手順について図9〜図11を参照して説明する。図9〜図11は、液晶ディスプレイ127の例示的な表示態様を示す説明図である。選択・設定ボタン126を操作して液晶ディスプレイ127上に表示されている「画像処理制御」領域A1を選択すると(図9参照)、「撮影モード」領域A2および「画像処理制御パラメータ」領域A3が液晶ディスプレイ127上に表示される(図10参照)。撮影モードは番号1,2...によって設定され、画像処理制御パラメータは、所望の数字を入力することによって設定される。例えば、撮影モードのいずれかが設定された場合には、図11に示すように、設定された撮影モードにおいて設定された個々の画像処理制御パラメータの設定状態が液晶ディスプレイ127上に表示される。なお、この例示では、各画像処理制御パラメータの設定状態は、ユーザに分かり易い態様にて表示されているが、パラメータ値が表示されても良い。
【0056】
制御回路124は、画像処理制御情報が設定されていると判定した場合には(ステップS100:Yes)、撮影要求、例えば、シャッターボタンの押し下げに応じて、設定された画像処理制御情報によって規定されるパラメータ値を用いて画像データGDを生成する(ステップS110)。制御回路124は、生成した画像データGDと、任意設定された補正条件および自動的に付与される補正条件を含む画像処理制御情報GCとを画像ファイルGFとしてメモリカードMCに格納して(ステップS120)、本処理ルーチンを終了する。ディジタルスチルカメラ12において生成されたデータは、RGB色空間から変換され、YCbCr色空間によって表される。
【0057】
これに対して、制御回路124は、画像処理制御情報が設定されていないと判定した場合には(ステップS100:No)、撮影要求に応じて画像データGDを生成する(ステップS130)。制御回路124は、生成した画像データGDと、画像データ生成時に自動的に付与される補正条件を含む画像処理制御情報GCとを画像ファイルGFとしてメモリカードMCに格納し(ステップS140)、本処理ルーチンを終了する。なお、画像処理制御情報GCは、既述の通り、所定のファイル形式を有するファイル構造の中のユーザ定義領域内に格納される。
【0058】
ディジタルスチルカメラ12において実行される以上の処理によって、メモリカードMCに格納されている画像ファイルGFには画像データGDと共に画像データ生成時に自動的に付与される補正条件および任意に設定される補正条件を含む画像処理制御情報GCが備えられることとなる。
【0059】
E.カラープリンタ20における画像処理:
図12〜図15を参照して本実施例に係るカラープリンタ20における画像処理について説明する。図12は本実施例に係るカラープリンタ20における画像処理の処理ルーチンを示すフローチャートである。図13はカラープリンタ20における画像処理の流れを示すフローチャートである。図14はカラープリンタ20における自動画質調整処理の概念を示す説明図である。図15はカラープリンタ20における自動画質調整の処理ルーチンを示すフローチャートである。なお、本実施例に従うカラープリンタ20における画像処理は、色空間変換処理を先に実行し、後に自動画質調整を実行する。
【0060】
カラープリンタ20の制御回路30(CPU31)は、スロット34にメモリカードMCが差し込まれると、メモリカードMCから画像ファイルGFを読み出し、読み出した画像ファイルGFをRAM33に一時的に格納する(ステップS100)。CPU31は読み出した画像ファイルGFの付属情報格納領域102から画像データ生成時の情報を示す画像処理制御情報GCを検索する(ステップS110)。CPU31は、画像処理制御情報を検索・発見できた場合には(ステップS120:Yes)、画像データ生成時の画像処理制御情報GCを取得して解析する(ステップS130)。CPU31は、解析した画像処理制御情報GCに基づいて後に詳述する画像処理を実行し(ステップS140)、処理された画像データをプリントアウトする(ステップS150)。
【0061】
CPU31は、画像処理制御情報を検索・発見できなかった場合には(ステップS120:No)、画像データ生成時における画像処理制御情報を反映させることができないので、カラープリンタ20が予めデフォルト値として保有している画像処理制御情報、すなわち、各種パラメータ値をROM32から取得して通常の画像処理を実行する(ステップS160)。CPU31は、処理した画像データをプリントアウトして(ステップS150)、本処理ルーチンを終了する。
【0062】
カラープリンタ20において実行される画像処理について図13を参照して詳細に説明する。カラープリンタ20のCPU31は、読み出した画像ファイルGFから画像データGDを取りだす(ステップS200)。ディジタルスチルカメラ12は、既述のように画像データをJPEG形式のファイルとして保存しており、JPEGファイルでは、圧縮率を高くするためにYCbCr色空間を用いて画像データを保存している。
【0063】
CPU31は、YCrCb色空間に基づく画像データをRGB色空間に基づく画像データに変換するために3×3マトリックス演算Sを実行する(ステップS210)。マトリックス演算Sは以下に示す演算式である。
【0064】
【数1】

Figure 0003999157
【0065】
CPU31は、こうして得られたRGB色空間に基づく画像データに対して、ガンマ補正、並びに、マトリックス演算Mを実行する(ステップS220)。ガンマ補正を実行する際には、CPU31は画像処理制御情報GCからDSC側のガンマ値を取得し、取得したガンマ値を用いて映像データに対してガンマ変換処理を実行する。すなわち、ガンマ値も画像処理制御情報GCによって指定される画像処理制御パラメータ値に含まれる。マトリックス演算MはRGB色空間をXYZ色空間に変換するための演算処理である。本実施例において用いられる画像ファイルGFは、画像処理時に用いるべき色空間情報を指定することができるので、画像ファイルGFが色空間情報を含んでいる場合には、CPU31は、マトリックス演算Mを実行するに際して、色空間情報を参照し、指定された色空間に対応するマトリックス(M)を用いてマトリックス演算を実行する。マトリックス演算Mは以下に示す演算式である。
【0066】
【数2】
Figure 0003999157
【0067】
マトリックス演算Mの実行後に得られる画像データGDの色空間はXYZ色空間である。従来は、プリンタまたはコンピュータにおける画像処理に際して用いられる色空間はsRGBに固定されており、ディジタルスチルカメラ12の有する色空間を有効に活用することができなかった。これに対して、本実施例では、画像ファイルGFによって色空間が指定されている場合には、色空間情報に対応してマトリックス演算Mに用いられるマトリックス(M)を変更するプリンタ(プリンタドライバ)を用いている。したがって、ディジタルスチルカメラ12の有する色空間を有効に活用して、正しい色再現を実現することができる。
【0068】
CPU31は、画像処理制御情報GCに基づく画像調整を実行するために、画像データGDの色空間をXYZ色空間からwRGB色空間へ変換する処理、すなわち、マトリックス演算N-1および逆ガンマ補正を実行する(ステップS230)。なお、wRGB色空間はsRGB色空間よりも広い色空間である。ガンマ補正を実行する際には、CPU31はROM32からプリンタ側のデフォルトのガンマ値を取得し、取得したガンマ値の逆数を用いて映像データに対して逆ガンマ変換処理を実行する。マトリックス演算N-1を実行する場合には、CPU31はROM31からwRGB色空間への変換に対応するマトリックス(N-1)を用いてマトリックス演算を実行する。マトリックス演算N-1は以下に示す演算式である。
【0069】
【数3】
Figure 0003999157
【0070】
マトリックス演算N-1実行後に得られる画像データGDの色空間はwRGB色空間である。このwRGB色空間は既述のように、sRGB色空間よりも広い色空間であり、ディジタルスチルカメラ12によって生成可能な色空間に対応している。
【0071】
CPU31は、画像画質の自動調整処理を実行する(ステップS240)。本実施例における画質自動調整処理の概念について図14を参照して説明する。画像ファイルGFには、画質調整の対象となる画像データGDと画質調整に際して用いられる画像処理制御情報GCが含まれている。カラープリンタ20(CPU31)は、画像データGDを解析して画像データGDの特性を示す画像統計値(特性パラメータ値)SVを取得すると共に、画像処理制御情報GCを解析して基準画質パラメータ値SP、および手動補正パラメータ値MPを取得する。カラープリンタ20は、画像統計値SVおよび基準画質パラメータ値SPに基づいて自動画質調整パラメータAPを決定し、さらに、最終画質調整パラメータFP=AP+MPを決定する。カラープリンタ20は、決定した最終画質調整パラメータFPを用いて画像データGDの画質を調整し、調整済みの画像データGD’をプリンタドライバへ出力する。
【0072】
この自動画質調整処理の詳細について図15を参照して詳細に説明する。CPU31は、先ず、画像データGDを解析して画像データGDの特性を示す各種の特性パラメータ値(画像統計値)SVを取得し、RAM32に一時的に格納する(ステップS300)。CPU31は、画像ファイルGFから画像処理制御情報GCを取得し(ステップS310)、画像処理制御情報GCに基づいて手動補正パラメータ値MPを取得する(ステップS320)。手動補正パラメータ値MPとして取得されるパラメータには、ホワイトバランス、露出補正量、露出時間、絞り、ISO、焦点距離等といった画像処理制御パラメータが含まれる。これら手動補正パラメータ値MPは、画像データGDの解析結果、すなわち、画像統計値SVとは独立した値であり、最終画質調整パラメータFPにそのままの値が反映される。
【0073】
CPU31は、取得した画像処理制御情報GCに撮影モードを指定するパラメータ値が含まれているか否かを判定する(ステップS320)。本実施例では、自動画質調整パラメータ値AP、すなわち、画像データGDの画像統計値SVを反映した自動画質調整量、を決定するにあたって、撮影シーン毎に複数の異なる画像処理制御パラメータが組み合わされた撮影モードを用いる。また、本実施例では、撮影モードは1,2...といった参照番号によって指定されるので、撮影モードが指定されている場合には、参照番号に基づいて各撮影モードを定義する個々の画像処理制御パラメータを解析、決定する必要が有る。CPU31は、撮影モードの指定がなされていると判定した場合には(ステップS330:Yes)、指定された参照番号に基づいて撮影モードを解析して撮影モードを定義する各画像処理制御パラメータを取得して、後述する手順にて基準画質パラメータ値SPを決定する(ステップS340)。なお、撮影モードが設定されている場合であっても、手動補正パラメータ値MPを並列して指定することができるのは既述の通りである。
【0074】
撮影モードを定義する各画像処理制御パラメータの組み合わせと、撮影モードを指定する数値の組み合わせは図16に示すとおりである。図16は、撮影モード、画質パラメータ、撮影モードを指定する数値の組み合わせの一例を示す説明図である。各撮影モードに対するコントラスト、明るさといった項目は、画質自動調整の結果として得られる画質の状態をわかりやすく示しており、各項目が指定する画質の状態はCPU31によって解析され、指定された画質の状態を実現するために、各項目に対して単数、または、複数の画像処理制御パラメータ値が設定される。撮影モード1は、例えば、標準的な撮影条件に適し、撮影モード2は、例えば、人物を撮影する撮影条件に適し、撮影モード3は、例えば、風景を撮影する撮影条件に適し、撮影モード4は、例えば、夕景を撮影する撮影条件に適し、撮影モード5は、例えば、夜景を撮影する撮影条件に適し、撮影モード6は、例えば、花を撮影する撮影条件に適する。撮影モード7は、例えば、マクロ撮影の撮影条件に適し、撮影モード8は、例えば、スポーツをしている人物を撮影する撮影条件に適し、撮影モード9は、例えば、逆光下での撮影条件に適し、撮影モード10は、例えば、紅葉を撮影する撮影条件に適し、撮影モード11は、例えば、記念撮影を撮影する撮影条件に適する。なお、撮影モードが設定されていない場合には、設定されている撮影モードを示すパラメータは、0に設定される。
【0075】
CPU31は、撮影モードの指定がなされていない、すなわち、撮影モードのパラメータが0に設定されている判定した場合には(ステップS330:No)、画質調整処理において個々に設定されている画像処理制御パラメータを反映するためステップS350の処理に進む。
【0076】
CPU31は、取得した画像処理制御パラメータの値を反映しつつ、各パラメータ毎に設定されている基準値を変更(修正)する。各パラメータ毎に設定されている基準値は、一般的な画像生成条件にて生成された画像データを想定した値である。そこで、撮影者(画像生成者)の意図を正しく反映した自動画質調整を実現するために、特に、撮影者が任意に設定可能な画像処理制御条件について、個々の画像処理制御条件を考慮して、基準値を変更する。なお、基準値は、定量評価と感応評価による画像評価によって予め定められた画像の出力結果が最適となるパラメータの指標値である。
【0077】
例えば、撮影モードのパラメータが2に設定されている場合、明度基準値は標準値128からやや明るい値144に変更され、彩度基準値は標準値128からやや弱い値102に変更され、シャープネス基準値は標準値200からやや弱い値150に変更される。また、コントラスト補正係数は標準値5からやや軟調な値2に変更され、カラーバランス補正係数は標準値5のまま維持される。各基準値、各係数の変更は、例えば、各基準値および各係数に対して数値を増減することにより、または、各基準値および各係数を所定の割合で増減することによって実現される。あるいは、例えば、明度基準値については、やや明るい値として144、やや暗い値として112をデフォルト値として用意しておき、やや明るい、やや暗いといった補正の傾向に応じて基準値を置き換えても良い。
【0078】
CPU31は、上記のようにして修正された基準画質パラメータ値SPと画質パラメータ値SVとの偏差を求め、その偏差を自動画質調整パラメータ値APに決定する(ステップS350)。例えば、画質パラメータ値SVとして、明度160、シャープネス155の場合には、明度についての自動画質調整パラメータ値AP=160−144=16、シャープネスについての自動画質調整パラメータ値AP=155−150=5となる。
【0079】
CPU31は、図17に示すように、決定した自動画質調整パラメータ値APと取得した手動補正パラメータ値MPとから最終画質調整パラメータFP(画像データ補正量)=AP+MPを求め、最終画質調整パラメータFPを反映して自動画質調整を実行する(ステップS360)。図17は、明度、シャープネスについて、各パラメータAP、MP、FP、FP’の例示値を示す説明図である。例えば、手動補正パラメータ値MPとして、明度+10、シャープネス−10が設定されている場合には、明度についての最終画質調整パラメータFP=16+10=26、シャープネスについての最終画質調整パラメータFP=5−10=−5となる。CPU31は、シャドウ、ハイライト、明度、コントラスト、カラーバランス、記憶色補正の各画質パラメータに対しては、図18に示す画像データGDのRGB成分の入力レベルと出力レベルとを対応付けるトーンカーブ(Sカーブ)を用いて画質の調整を実行する。図18は最終画質調整パラメータFPを反映して変更されるトーンカーブを例示する説明図である。トーンカーブを用いて画質を調整する場合には、各画質パラメータに対する各FPを反映して、RGBの各成分についてそれぞれの1つのトーンカーブを変更し、最後に、変更したRGBの各成分に対応する各トーンカーブを用いて画像データGDのRGBの各成分について入力−出力変換を行う。この結果、画質が調整された画像データGDが得られる。
【0080】
各画質パラメータに対する画質の自動調整処理は、例えば、以下のように具体的に実行される。
・コントラスト、シャドー、ハイライトについては、画像データからシャドウポイントとハイライトポイントとを検出して基準値に基づくレベル補正を実行し、ヒストグラムの伸張を実行する。また、輝度標準偏差に基づいて、基準値に基づいてトーンカーブの補正を実行する。
・明るさについては、画像データを14分割した個々の領域から計算される輝度値に基づいて、画像が暗い(露出不足)か明るい(露出超過)であるかを判定し、基準値に基づいてトーンカーブの補正を実行する。
・カラーバランスについては、画像データのR成分、G成分、B成分の各ヒストグラムからカラーバランスの偏りを分析し、R成分、G成分、B成分の各トーンカーブをRGB各成分に対する基準値に基づいてそれぞれ補正して色かぶりを軽減する。なお、撮影モードが4,5に設定されている場合には、たとえ色かぶりが発生していても意図的な色かぶりであるため、カラーバランスの自動調整は実行せず、ユーザの意図を反映させた画質補正を実行する。
・彩度については、画像データの彩度分布を分析し、基準値に基づいて彩度の強調を実行する。したがって、低彩度の画像データほど彩度強調のレベルが大きくなる。
・シャープネスについては、画像データの周波数とエッジの強度分布を解析し、基準値に基づいてアンシャープマスクを実施することにより補正が実行される。基準値は、周波数分布に基づいて決定され、高周波画像データ(風景等)ほど基準値が小さくなり、低周波画像データ(人物等)ほど基準値が大きくなる。また、アンシャープマスクの適用量は、エッジ強度分布に依存しており、ぼけた特性を有する画像データほどその適用量が大きくなる。
・記憶色については、一般的に、記憶色と呼ばれる「肌色」、「緑色」、「空色」、「夕陽の赤色」等について、画像データから該当する画層を抽出し、好ましいと思われる色になるよう補正を実行する。
・ノイズ除去については、YCbCrの色差成分CbCrについて平滑化フィルタを作用させることによって、カラーノイズを軽減することにより実行する。
【0081】
画像処理制御パラメータには、最終画質調整パラメータFPの適用のレベル、すなわち、画像データDGを基準値に基づく画像データに近づける程度を指定するレベル指定パラメータLPも含まれる。レベル指定パラメータLPは、例えば、FP’=AP*(LP/5)+MPといったように用いられ、自動補正パラメータ値APに対してのみ反映され、手動補正パラメータ値MPには反映されない。したがって、例えば、LP=10の場合には、図17に示すように最終画質調整パラメータAPの値が2倍され、LP=5の場合には、最終画質調整パラメータAPの値は1倍される。トーンカーブは、FP’に基づいて変更され、LP=10の場合には、トーンカーブの変更量が2倍となる。また、基準値を変更することなく、基準値へ近づけるレベルのみを画像処理制御情報GCに基づいて変更しても良い。
【0082】
次に、測光方式、レンズ焦点距離といったディジタルスチルカメラ12の作動(撮影)条件に対応する画像処理制御パラメータを反映した画質自動調整処理について説明する。測光方式の画像処理制御パラメータが、スポット測光、マルチスポット測光、部分測光を示す場合には、明度(明るさ)についての自動画質調整処理を行わない。一般的な測光方式では、画面全体の明るさを演算して適正露出を取得するが、スポット測光では、画面の部分的な明るさを測光して、測光した領域が適正になるように露出を決定する。つまり、ユーザによって、画面の特定の領域を適正露出にして欲しいとの意図が指示されることになる。このような場合に、明度を自動調整してしまうと、ユーザの意図が反映されない画質調整処理が実行されることになる。したがって、これら3つの測光モードの時には、明度の自動調整を実行しない。
【0083】
撮影時におけるレンズ焦点距離とFナンバーとに基づいて、シャープネスの基準値を変更する。一般的に、「ぼけ」はレンズの焦点距離とFナンバー(絞り)とによって決定される。したがって、シャープネスを自動調整する際に、シャープネスに対応する基準値をレンズ焦点距離とFナンバーとに関連づけることによって、撮影時に想定されたぼけを反映した画質調整処理を実行することができる。例えば、広角レンズ(35mm以下)でF13(絞り大)の場合、一般的に、風景や記念撮影などで手前から背景に至るまで画面全体にわたってピントを合わせてシャープに撮影したいという意図が撮影者にはあるものと判定することができる。そこで、かかる場合には、シャープネスの基準値を小さくしてより多くの画祖にシャープネス効果を与え、シャープネスの適用量を多くしてよりシャープになるように画質調整を実行する。一方、望遠レンズ(100mm以上)でF2(絞り開放)の場合、一般的に、ポートレイトなどで、被写体を浮き上がらせるために背景をぼかしたいという意図が撮影者にはあるものと判定することができる。そこで、かかる場合には、シャープネスの基準値を大きくして、肌などの滑らかな領域にはシャープネス効果を与えず、背景と被写体との境界画素にのみシャープネス効果を与え、シャープネスの適用量を小さくして、肌などを荒らさないように画質調整処理を実行する。
【0084】
レンズ焦点距離f(mm)とFナンバーとから求められるぼかし指数をf/Fと定義すると図19に示すような関係となる。図19はレンズ焦点距離f(mm)とFナンバーとから求められるぼかし指数をf/Fを説明する説明図である。
【0085】
CPU31は、上記の画質自動調整を実行した後(ステップS360)、メインルーチンである画像処理ルーチンにリターンする。
【0086】
CPU31は、画質自動調整処理を終了すると、印刷のためのwRGB色変換処理およびハーフトーン処理を実行する(ステップS250)。wRGB色変換処理では、CPU31は、ROM31内に格納されているwRGB色空間に対応したCMYK色空間への変換用ルックアップテーブル(LUT)を参照し、画像データの色空間をwRGB色空間からCMYK色空間へ変更する。すなわち、R・G・Bの階調値からなる画像データをカラープリンタ20で使用する、例えば、C・M・Y・K・LC・LMの各6色の階調値のデータに変換する。
【0087】
ハーフトーン処理では、色変換済みの画像データを受け取って、階調数変換処理を行う。本実施例においては、色変換後の画像データは各色毎に256階調幅を持つデータとして表現されている。これに対し、本実施例のカラープリンタ20では、「ドットを形成する」,「ドットを形成しない」のいずれかの状態しか採り得ず、本実施例のカラープリンタ20は局所的には2階調しか表現し得ない。そこで、256階調を有する画像データを、カラープリンタ20が表現可能な2階調で表現された画像データに変換する。この2階調化(2値化)処理の代表的な方法として、誤差拡散法と呼ばれる方法と組織的ディザ法と呼ばれる方法とがある。
【0088】
カラープリンタ20では、色変換処理に先立って、画像データの解像度が印刷解像度よりも低い場合は、線形補間を行って隣接画像データ間に新たなデータを生成し、逆に印刷解像度よりも高い場合は、一定の割合でデータを間引くことによって、画像データの解像度を印刷解像度に変換する解像度変換処理を実行する。また、カラープリンタ20は、ドットの形成有無を表す形式に変換された画像データを、カラープリンタ20に転送すべき順序に並べ替えてるインターレス処理を実行する。
【0089】
以上、説明したように本実施例におけるディジタルスチルカメラ12によれば、ディジタルスチルカメラ12上において、プリンタ20において実行される画質調整処理における画像処理制御条件を設定することができる。したがって、撮影時に、画像データに対する所望の画像処理制御条件を設定することが可能となり、撮影時に望んでいた画像処理制御条件を適切に反映した画質調整処理を実現することができる。また、画像データと撮影時に想定した画像処理制御条件とを容易に関連付けることができると共に、各画像データに適した個々の画像処理制御条件を付すことができる。さらに、画像データの画質を自動調整する際に、改めて画像処理制御条件を設定する必要がなく、画像処理制御条件を反映した画質調整処理を容易化することができる。
【0090】
また、本実施例におけるカラープリンタ20によれば、画像ファイルGF内に含まれる画像処理制御情報GCを反映して画像データGDの画質を自動調整することができる。したがって、撮影時の撮影条件を反映して、個々の画像データに適した画質自動調整を実行することができる。さらに、ユーザによって恣意的に画像データの画質調整条件が設定されている場合には、恣意的に設定された画像処理制御条件を反映して画質自動調整が実行されるので、恣意的な出力画質調整条件が修正され、ユーザの意図を反映することができないという、従来の画質自動調整機能における問題を解決することができる。
【0091】
また、画像ファイルGFに含まれている画像処理制御情報GCを用いて自動的に画質を調整することができるので、フォトレタッチアプリケーションまたはプリンタドライバ上で画質調整を行うことなく、手軽にユーザの撮影意図を反映した、高品質の印刷結果を得ることができる。
【0092】
なお、上記実施例では、自動的に画質調整処理を実行する例について説明しているが、カラープリンタ20の操作パネル上に画質自動調整ボタンを供え、かかる画質自動調整ボタンによって画質自動調整が選択されている場合にだけ、上記実施例の画質自動調整処理を実行するようにしても良い。
【0093】
F.その他の実施例:
上記実施例では、画像処理制御情報GCを反映するにあたって、画像処理制御情報GCを解析し、画像処理制御パラメータを取得して基準値、適用レベルを変更しているが、画像処理制御情報GCに基づいて画像データGDを直接補正しても良い。このとき、画像処理制御情報GCは、画像データGDをどの程度変化させるか、例えば、明度の補正量を+10増加させる、明度を+10%増加させるといった情報を有すればよい。かかる場合には、画像データGDの画質特性に左右されることなく、ユーザの意図する補正の傾向を画質調整処理に反映することができる。
【0094】
上記実施例では、パーソナルコンピュータPCを介することなく、カラープリンタ20において全ての画像処理を実行し、生成された画像データGDに従って、ドットパターンが印刷媒体上に形成されるが、画像処理の全て、または、一部をコンピュータ上、ネットワークを介したサーバ上で実行するようにしても良い。この場合には、コンピュータのハードディスク等にインストールされている、レタッチアプリケーション、プリンタドライバといった画像データ処理アプリケーション(プログラム)に図14を参照して説明した画像処理機能を持たせることによって実現される。ディジタルスチルカメラ12にて生成された画像ファイルGFは、ケーブルを介して、あるいは、メモリカードMCを介してコンピュータに対して提供される。コンピュータ上では、ユーザの操作によってアプリケーションが起動され、画像ファイルGFの読み込み、画像処理制御情報GCの解析、画像データGDの変換、調整が実行される。あるいは、メモリカードMCの差込を検知することによって、またあるいは、ケーブルの差込を検知することによって、アプリケーションが自動的に起動し、画像ファイルGFの読み込み、画像処理制御情報GCの解析、画像データGDの変換、調整が自動的になされても良い。
【0095】
さらに、画質自動調整を実行する特性パラメータ値を選択できるようにしても良い。例えば、カラープリンタ20にパラメータの選択ボタン、あるいは、被写体に応じて所定のパラメータの組み合わせた撮影モードパラメータの選択ボタンを供え、これら選択ボタンによって画質自動調整を実行するパラメータを選択しても良い。また、画質自動調整がパーソナルコンピュータ上で実行される場合には、プリンタドライバまたはレタッチアプリケーションのユーザーインタフェース上にて画質自動調整を実行するパラメータが選択されても良い。
【0096】
カラープリンタ20における画像処理は、図20に示すように画質自動調整処理を先に実行し、後に色空間の変換を実行しても良い。基本情報を処理しても良い。
【0097】
上記実施例では、共に出力装置としてカラープリンタ20を用いているが、出力装置にはCRT、LCD、プロジェクタ等の表示装置を用いることもできる。かかる場合には、出力装置としての表示装置によって、例えば、図12、図13等を用いて説明した画像処理を実行する画像処理プログラム(ディスプレイドライバ)が実行される。あるいは、CRT等がコンピュータの表示装置として機能する場合には、コンピュータ側にて画像処理プログラムが実行される。ただし、最終的に出力される画像データは、CMYK色空間ではなくRGB色空間を有している。
【0098】
かかる場合には、カラープリンタ20を介した印刷結果に画像データ生成時の情報を反映できたのと同様にして、CRT等の表示装置における表示結果に画像データ生成時の画像処理制御情報GCを反映することができる。したがって、ディジタルスチルカメラ12によって生成された画像データGDをより正確に表示させることができる。
【0099】
以上、実施例に基づき本発明に係る出力装置、画像処理装置、プログラムを説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることはもちろんである。
【0100】
上記実施例では、ディジタルスチルカメラ12において撮影モード、画像処理制御パラメータが設定され、設定された撮影モード、画像処理制御パラメータをプリンタ20において解析した後に、基準値を変更している。すなわち、画像処理制御コマンドを用いて画像データGDの自動画質調整処理が実行されている。しかしながら、ディジタルスチルカメラ12において撮影モード、画像処理制御パラメータから基準値を変更する処理を実行し、プリンタ20に対しては基準値、適用レベル、すなわち、値そのものを提供するようにしてもよい。かかる場合には、プリンタ20には基準値を用いた画質調整機能が備わっていれば、個々の撮影条件にあった画質調整処理、ユーザの意図を反映した画質調整処理を自動的に実行することができる。
【0101】
上記実施例では、画像処理制御情報GCとして、光源、露出補正量、ターゲット色空間、明るさ、シャープネスといったパラメータを用いているが、どのパラメータを画像処理制御情報GCとして用いるかは任意の決定事項である。
【0102】
また、図8の表に例示した各パラメータの値は、あくまでも例示に過ぎず、この値によって本願に係る発明が制限されることはない。さらに、各数式におけるマトリックスS、M、N-1の値は例示に過ぎず、ターゲットとする色空間、あるいは、カラープリンタ20において利用可能な色空間等によって適宜変更され得ることはいうまでもない。
【0103】
上記実施例では、画像ファイル生成装置としてディジタルスチルカメラ12を用いて説明したが、この他にもスキャナ、ディジタルビデオカメラ等が用いられ得る。スキャナを用いる場合には、画像ファイルGFの取り込みデータ情報の指定はコンピュータPC上で実行されても良く、あるいは、スキャナ上に情報設定用に予め設定情報が割り当てられているプリセットボタン、任意設定のための表示画面および設定用ボタンを供えておき、スキャナ単独で実行可能にしてもよい。
【0104】
上記実施例では、sRGB色空間からwRGB色空間への色空間特性の変更に際して、マトリクスMおよびマトリクスN-1をそれぞれ独立して演算処理しているが、マトリクスMおよびマトリクスN-1を合成した合成マトリクス(MN-1)を用いたマトリクス演算によって実行されても良い。さらに、必要に応じて様々な変換系マトリクスを合成するようにしても良い。マトリクスの合成により、一連のマトリクス演算処理を高速化することができる。
【0105】
上記実施例では、画像ファイルGFの具体例としてExif形式のファイルを例にとって説明したが、本発明に係る画像ファイルの形式はこれに限られない。すなわち、画像データ生成装置において生成された画像データと、画像データの生成時条件(情報)を記述する画像処理制御情報GCとが含まれている画像ファイルであれば良い。このようなファイルであれば、画像ファイル生成装置において生成された画像データの画質を、適切に自動調整して出力装置から出力することができる。
【0106】
上記実施例において用いたディジタルスチルカメラ12、カラープリンタ20はあくまで例示であり、その構成は各実施例の記載内容に限定されるものではない。ディジタルスチルカメラ12にあっては、上記実施例に係る画像ファイルGFを生成できる機能を少なくとも備えていればよい。また、カラープリンタ20にあっては、少なくとも、本実施例に係る画像ファイルGFの画像処理制御情報GCを解析し、特に明度に関してユーザの意図を反映して画質を自動調整し、画像を出力(印刷)できればよい。
【0107】
なお、画像データと画像処理制御情報GCとが含まれる画像ファイルGFには、画像処理制御情報GCとを関連付ける関連付けデータを生成し、1または複数の画像データと画像処理制御情報GCとをそれぞれ独立したファイルに格納し、画像処理の際に関連付けデータを参照して画像データと画像処理制御情報GCとを関連付け可能なファイルも含まれる。かかる場合には、画像データと画像処理制御情報GCとが別ファイルに格納されているものの、画像処理制御情報GCを利用する画像処理の時点では、画像データおよび画像処理制御情報GCとが一体不可分の関係にあり、実質的に同一のファイルに格納されている場合と同様に機能するからである。すなわち、少なくとも画像処理の時点において、画像データと画像処理制御情報GCとが関連付けられて用いられる態様は、本実施例における画像ファイルGFに含まれる。さらに、CD−ROM、CD−R、DVD−ROM、DVD−RAM等の光ディスクメディアに格納されている動画像ファイルも含まれる。
【図面の簡単な説明】
【図1】第1の実施例に係る画像処理装置を適用可能な画像データ処理システムの一例を示す説明図である。
【図2】第1の実施例に係る画像処理装置が処理する画像ファイル(画像データ)を生成可能なディジタルスチルカメラの概略構成を示すブロック図である。
【図3】第1の実施例において用いられ得る画像ファイルの内部構成を概念的に示す説明図である。
【図4】 Exifファイル形式にて格納されている画像ファイルの概略的な内部構造を示す説明図である。
【図5】第1の実施例に用いられ得る画像ファイルGFの付属情報格納領域112のデータ構造の一例を示す説明図である。
【図6】第1の実施例におけるカラープリンタ20の概略構成を示すブロック図である。
【図7】カラープリンタ20の制御回路30の内部構成を示す説明図である。
【図8】ディジタルスチルカメラ12における画像ファイルGFの生成処理の流れを示すフローチャートである。
【図9】液晶ディスプレイ127の例示的な表示態様を示す説明図である。
【図10】液晶ディスプレイ127の例示的な表示態様を示す説明図である。
【図11】液晶ディスプレイ127の例示的な表示態様を示す説明図である。
【図12】第1の実施例におけるカラープリンタ20における画像処理の処理ルーチンを示すフローチャートである。
【図13】第1の実施例におけるカラープリンタ20において実行される画像処理の流れを示すフローチャートである。
【図14】第1の実施例におけるカラープリンタ20における自動画質調整処理の概念を示す説明図である。
【図15】カラープリンタ20における自動画質調整の処理ルーチンを示すフローチャートである。
【図16】撮影モード、画質パラメータ、撮影モードを指定する参照番号の組み合わせの一例を示す説明図である。
【図17】明度、シャープネスについて、各パラメータAP、MP、FP、FP’の例示値を示す説明図である。
【図18】最終画質調整パラメータFPを反映して変更されるトーンカーブを例示する説明図である。
【図19】レンズ焦点距離f(mm)とFナンバーとから求められるぼかし指数をf/Fを説明する説明図である。
【図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…分配出力器
100…画像ファイル(Exifファイル)
101…JPEG画像データ格納領域
102…付属情報格納領域
103…Makernote格納領域
MC…メモリカード[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image adjustment technique for adjusting the image quality of an image file.
[0002]
[Prior art]
The image quality of image data generated by a digital still camera (DSC), a digital video camera (DVC), a scanner, or the like can be arbitrarily adjusted by using an image retouching application on a personal computer. An image retouching application generally has an image adjustment function that automatically adjusts the image quality of image data. By using this image adjustment function, the image quality of image data output from an output device can be easily set. Can be improved. Known image file output devices include CRTs, LCDs, printers, projectors, television receivers, and the like.
[0003]
Also, a printer driver that controls the operation of a printer, which is one of the output devices, has a function of automatically adjusting the image quality of image data. Even if such a printer driver is used, printing is performed. The image quality of the image data can be easily improved.
[0004]
[Problems to be solved by the invention]
However, in the automatic image quality adjustment function provided by the image retouching application and the printer driver, image quality correction is executed with reference to image data having general image quality characteristics. On the other hand, since image data to be subjected to image processing can be generated under various conditions, even if the image quality automatic adjustment function is uniformly executed and the image quality parameter value of the image data is changed using the specified value, The image quality may not be improved.
[0005]
Some image data generation apparatuses such as DSC can arbitrarily adjust the image quality of image data when generating the image data, and the user can intentionally generate image data having a predetermined image quality. Alternatively, the user can generate image data suitable for the shooting conditions with the shooting image quality set in advance according to the shooting conditions. When the automatic image quality adjustment function is executed for such image data, even the intentional image quality of the image data is automatically adjusted based on the reference image quality. There was a problem that the adjustment could not be performed. In addition, there has been a problem that the shooting conditions set on the DSC side are not well reflected in automatic image quality adjustment. Such a problem is not limited to DSC, but is common to other image file generation apparatuses such as DVC.
[0006]
The present invention has been made to solve the above problems, and an object thereof is to appropriately and automatically adjust the image quality corresponding to individual image data. It is another object of the present invention to automatically adjust the image quality of image data without impairing arbitrarily set image quality adjustment conditions.
[0020]
[Means for solving the problems and actions / effects]
In order to solve the above-described problem, the first aspect of the present invention provides image data subjected to image quality adjustment processing. Use image An image data generation device for generating image data that can be used in an output device for output is provided. An image data generation device according to a first aspect of the present invention is the output device. Used Enter image data for Image data input means and analysis result of the image data And image data using Image quality adjustment processing The Execution You In the output device Drawing Image processing control information that specifies conditions for quality adjustment processing Image processing control information to specify The image processing apparatus includes: designation means; and image data output means for outputting the designated image processing control information and the inputted image data in association with each other.
[0021]
According to the image data generation device according to the first aspect of the present invention, an image processing device, and Image quality adjustment processing based on the analysis result of the image data is executed In the output device Kick Since the image processing control information specifying the image quality adjustment processing conditions for the image data and the image data can be output in association with each other, the image processing control information and the image data can be appropriately associated with each other. Automatic image quality adjustment based on the image data analysis result for the image data can be easily realized. In addition, since the arbitrarily set image processing control information can be associated with the image data, the image quality of the image data can be automatically adjusted by reflecting the image processing control information.
[0022]
First of the present invention 1 Images related to the aspect data In the generator, Image processing control information May be data for correcting a reference image quality parameter used as a reference for image quality adjustment processing in the image quality adjustment processing in the output device. Image processing control information Is data for correcting the reference image quality parameter, the output device or the image processing device Image processing control information The image quality adjustment process can be executed after correcting the reference image quality parameters through the above analysis. Also, the above Image processing control information May be a reference image quality parameter value used as a reference value for image quality adjustment processing in image quality adjustment processing in the output device. Image processing control information Is the reference image quality parameter, the output device or the image processing apparatus can directly execute the image quality adjustment process using the reference image quality parameter without executing the change process. Furthermore, the Image processing control information May correspond to an image quality parameter representing the image quality of the image data and may be a combination of a plurality of reference image quality parameter values used as a reference value for image quality adjustment processing in the output device. Image processing control information Is a combination of a plurality of reference image quality parameter values, the reference image quality parameter values can be combined according to specific shooting conditions.
[0023]
First of the present invention 1 Images related to the aspect data In the generator, Image processing control information Is a degree of application of a correction amount for correcting the image data obtained based on a reference image quality parameter value used as a reference value for image quality adjustment processing in the output device and an image quality parameter value representing the image quality of the image data It may be data for designating. In such a case, it is possible to realize correction of image data according to the degree of application of the specified correction amount. Also, the above Image processing control information Is data for designating a correction tendency of a plurality of reference image quality parameter values, which corresponds to an image quality parameter representing the image quality of the image data and is used as a reference value for image quality adjustment processing in the output device. May be. Image processing control information Is data for designating a correction tendency of the reference image quality parameter value, the output device or the image processing apparatus executes correction of one or more reference image quality parameter values according to the specified tendency, and is corrected. The image quality adjustment process can be executed based on the reference image quality parameter value. In addition, Image processing control information May include at least data indicating a tendency of correction of the reference image quality parameter for contrast, brightness, color balance, saturation, sharpness, memory color, and noise removal for each photographing condition.
[0024]
In the image file generation device according to the sixth aspect of the present invention,
The image quality adjustment processing condition specifying means is
Display means for displaying the image quality adjustment processing conditions;
A determining means for selecting and determining the image quality adjustment processing condition may be provided.
[0025]
First of the present invention 1 Images related to the aspect data In the generator, The image data output means stores and outputs the image processing control information and the image data in the same file. You may do it. In such a case, the image processing control information can be easily associated with the image data. First of the present invention 1 Images related to the aspect data The generation device may further include image data generation means for generating image data to be output by the output device. In such a case, image processing control information can be generated corresponding to the generated image data.
[0026]
According to a second aspect of the present invention, image data on which image quality adjustment processing has been executed is stored. Use image A program for generating image data used in an output device for outputting is provided. The program according to the second aspect of the present invention is executed by the output device. the image To output Used for A function of obtaining image data and an analysis result of the image data in the output device in which an image quality adjustment process based on the analysis result of the image data is executed And image data using Image quality adjustment processing The Execution You In the output device Drawing A computer is configured to realize a function of designating image processing control information for designating quality adjustment processing conditions, and a function of outputting the designated image processing control information and the acquired image data in association with each other. .
[0027]
The program according to the second aspect of the present invention has the same operational effects as the image data generation apparatus according to the first aspect of the present invention, and is similar to the image data generation apparatus according to the first aspect of the present invention. In various ways.
According to a first aspect of the present invention, there is provided image data on which image quality adjustment processing according to the third aspect of the present invention has been executed. Use image The present invention can also be realized as an image data generation method for generating image data that can be used in an output device for output. The image data generation method according to the third aspect of the present invention is the image data analysis result in the output device in which an image quality adjustment process based on the image data analysis result is executed. And image data using Image quality adjustment processing The Execution You In the output device Drawing Image processing control information for specifying a quality adjustment processing condition is specified, and the specified image processing control information and input image data are output in association with each other.
The image data generation method according to the third aspect of the present invention has the same effects as the image data generation apparatus according to the first aspect of the present invention, and the image data generation apparatus according to the first aspect of the present invention. In the same manner as described above, it can be realized in various modes.
[0030]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, image adjustment of an image file according to the present invention will be described based on several embodiments 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 digital still cameras:
E. Image processing in the printer:
F. Other examples:
[0031]
A. Image processing system configuration:
The configuration of an image processing system to which the image processing apparatus according to the first embodiment can be applied will be described with reference to FIGS. FIG. 1 is an explanatory diagram illustrating an example of an image processing system to which the image processing apparatus according to the first embodiment can be applied. FIG. 2 is a block diagram showing 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 first embodiment.
[0032]
An image processing system 10 includes a digital still camera 12 as an input device that generates an image file, a color printer as an output device that executes image processing based on the image file generated by the digital still camera 12 and outputs an image. 20 is provided. As the output device, 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. In the following description, the color printer 20 is used as the output device.
[0033]
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, a JPEG format is generally used, but other storage formats such as a TIFF format, a GIF format, a BMP format, and a RAW format can be used.
[0034]
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. The shooting mode and image quality parameter setting procedures using the selection / determination button 126 and the liquid crystal display 127 will be described later.
[0035]
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 an image file GF together with the image data GD at the time of shooting. When a shooting mode suitable for shooting conditions such as a person, a night view, and a sunset scene is selected by the user, the parameter value of the image processing control parameter corresponding to the selected shooting mode or the exposure correction amount, When an image processing control parameter such as white balance is set to an arbitrary value, an image file GF including the set value of the set image processing control parameter as image processing control information GC is stored in the memory card MC. .
[0036]
When the digital still camera 12 performs shooting in the automatic shooting mode, the values of parameters such as exposure time, white balance, aperture, shutter speed, and lens focal length that are automatically set at the time of shooting are displayed in the image. Treated as processing control parameters, an image file GF including these image processing control parameters is stored in the memory card MC. It should be noted that parameters and parameter values applied to each shooting mode are held in a memory in the control circuit 124 of the digital still camera 12.
[0037]
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 in 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.
[0038]
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. An image file GF includes an image data storage area 101 for storing image data GD, and an image processing control information storage area for storing image processing control information (image quality adjustment processing conditions) GC that is referred to and applied during automatic image quality adjustment of image data. 102. For example, the image data GD is stored in the JPEG format, and the image processing control information GC is stored in the TIFF format. 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.
[0039]
The image processing control information GC is information for specifying image processing conditions when image processing is performed on image data generated by an image data generation device such as the digital still camera 12, and an exposure time that can be arbitrarily set by the user. It may include parameters related to ISO sensitivity, aperture, shutter speed, focal length, and image processing control parameters such as exposure correction amount, white balance, shooting mode, and target color space that are arbitrarily set by the user. Alternatively, when the shooting mode is designated by the user, a combination of image processing control parameters related to the designated shooting mode can be automatically included as the image processing control information GC along with the shooting.
[0040]
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. When generated by a digital video camera, for example, an image file storing still image data and output control information, or a moving image file including moving image data such as MPEG format and output control information is generated. The When this moving image file is used, output control according to the output control information is performed on all or some of the frames of the moving image.
[0041]
The image file GF according to the present embodiment only needs to include the image data area 101 and the image processing control information storage area 102 described above, and has a file structure in accordance with an already standardized file format. be able to. The case where the image file GF according to the present embodiment is adapted to a standardized file format will be specifically described below.
[0042]
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). Exif file specifications are defined by the Japan Electronics and Information Technology Industries Association (JEITA). A schematic internal structure of the file when the image file GF according to the present embodiment has a file format conforming to the Exif file format will be described with reference to FIG. FIG. 4 is an explanatory diagram showing a schematic internal structure of the image file GF according to this embodiment stored in the Exif file format.
[0043]
The image file GFE 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 JPEG data storage area 111 corresponds to the image data storage area 101, and the attached information storage area 112 corresponds to the image processing control information storage area 102. That is, in the attached information storage area 112, image processing control information GC (image quality adjustment processing condition) that is referred to when outputting a JPEG image such as shooting date / time, exposure, shutter speed, white balance, exposure correction amount, target color space, and the like. ) Is stored. 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.
[0044]
A detailed data structure of the attached information storage area 112 will be described with reference to FIG. FIG. 5 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.
[0045]
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.
[0046]
C. Image output device configuration:
The schematic configuration of the image output apparatus according to this embodiment, that is, the color printer 20 will be described with reference to FIG. FIG. 6 is a block diagram illustrating a schematic configuration of the color printer 20 according to the present embodiment.
[0047]
The color printer 20 is a printer that can output a color image. For example, four color inks of cyan (C), magenta (M), yellow (Y), and black (K) are ejected 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.
[0048]
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).
[0049]
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.
[0050]
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).
[0051]
Next, the internal configuration of the control circuit 30 of the color printer 20 will be described with reference to FIG. FIG. 7 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.
[0052]
The control circuit 30 reads the image file GF from the memory card MC, analyzes the attached information AI, and executes image processing based on the analyzed control information AI. 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 later.
[0053]
D. Image processing in digital still cameras:
Hereinafter, image processing in the digital still camera 12 will be described with reference to FIG. FIG. 8 is a flowchart showing a flow of processing for generating the image file GF in the digital still camera 12.
[0054]
The control circuit 124 of the digital still camera 12 determines whether image processing control information (image processing control parameters) such as a white balance and an exposure correction amount is set by the user prior to image capture (image processing control parameter). Step S100). The setting of the image processing control information is executed by the user selecting a preset shooting mode displayed on the liquid crystal display 127 by operating the selection / setting button 126. Alternatively, it is executed by operating the selection / setting button 126 in the same manner and setting the values of image processing control parameters such as brightness and contrast on the liquid crystal display 127 by the user.
[0055]
A procedure for setting an image processing control parameter on the liquid crystal display 127 using the selection / setting button 126 will be described with reference to FIGS. 9 to 11 are explanatory diagrams illustrating exemplary display modes of the liquid crystal display 127. When the “image processing control” area A1 displayed on the liquid crystal display 127 is selected by operating the selection / setting button 126 (see FIG. 9), the “shooting mode” area A2 and the “image processing control parameter” area A3 are displayed. It is displayed on the liquid crystal display 127 (see FIG. 10). The shooting modes are numbers 1, 2,. . . The image processing control parameter is set by inputting a desired number. For example, when any of the shooting modes is set, the setting state of each image processing control parameter set in the set shooting mode is displayed on the liquid crystal display 127 as shown in FIG. In this example, the setting state of each image processing control parameter is displayed in an easy-to-understand manner for the user, but a parameter value may be displayed.
[0056]
When the control circuit 124 determines that the image processing control information has been set (step S100: Yes), the control circuit 124 is defined by the set image processing control information in response to a shooting request, for example, pressing the shutter button. Image data GD is generated using the parameter values (step S110). The control circuit 124 stores the generated image data GD and image processing control information GC including arbitrarily set correction conditions and automatically given correction conditions as an image file GF in the memory card MC (step S120). ), This processing routine is terminated. Data generated by the digital still camera 12 is converted from the RGB color space and represented by the YCbCr color space.
[0057]
On the other hand, when determining that the image processing control information is not set (step S100: No), the control circuit 124 generates the image data GD in response to the photographing request (step S130). The control circuit 124 stores the generated image data GD and the image processing control information GC including the correction condition automatically given at the time of generating the image data as an image file GF in the memory card MC (Step S140). End the routine. Note that the image processing control information GC is stored in a user-defined area in a file structure having a predetermined file format as described above.
[0058]
Through the above processing executed in the digital still camera 12, the image file GF stored in the memory card MC is automatically given with the image data GD and the correction conditions that are automatically given when the image data is generated and the correction conditions that are arbitrarily set The image processing control information GC including is provided.
[0059]
E. 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. 12 is a flowchart showing a processing routine of image processing in the color printer 20 according to the present embodiment. FIG. 13 is a flowchart showing the flow of image processing in the color printer 20. FIG. 14 is an explanatory diagram showing the concept of automatic image quality adjustment processing in the color printer 20. FIG. 15 is a flowchart showing a processing routine for automatic image quality adjustment in the color printer 20. In the image processing in the color printer 20 according to the present embodiment, color space conversion processing is executed first, and automatic image quality adjustment is executed later.
[0060]
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 retrieves image processing control information GC indicating information at the time of image data generation from the attached information storage area 102 of the read image file GF (step S110). If the image processing control information can be retrieved and found (step S120: Yes), the CPU 31 acquires and analyzes the image processing control information GC at the time of image data generation (step S130). The CPU 31 executes image processing to be described in detail later based on the analyzed image processing control information GC (step S140), and prints out the processed image data (step S150).
[0061]
If the CPU 31 cannot retrieve / discover the image processing control information (step S120: No), it cannot reflect the image processing control information at the time of image data generation, so the color printer 20 holds it as a default value in advance. The acquired image processing control information, that is, various parameter values are acquired from the ROM 32, and normal image processing is executed (step S160). The CPU 31 prints out the processed image data (step S150) and ends this processing routine.
[0062]
Image processing 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 S200). 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.
[0063]
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 RGB color space (step S210). The matrix operation S is an arithmetic expression shown below.
[0064]
[Expression 1]
Figure 0003999157
[0065]
The CPU 31 executes gamma correction and matrix operation M on the image data based on the RGB color space thus obtained (step S220). 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 matrix operation M is an operation process for converting the RGB color space into the XYZ color space. Since the image file GF used in the present embodiment can specify color space information to be used at the time of image processing, when the image file GF includes color space information, the CPU 31 executes a matrix operation M. In this case, the matrix operation is executed by referring to the color space information and using the matrix (M) corresponding to the designated color space. The matrix operation M is an arithmetic expression shown below.
[0066]
[Expression 2]
Figure 0003999157
[0067]
The color space of the image data GD obtained after execution of the matrix operation M is an XYZ 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 a color space is specified by the image file GF, a printer (printer driver) that changes the matrix (M) used for the matrix operation M corresponding to the color space information. Is used. Therefore, the color space of the digital still camera 12 can be effectively used to realize correct color reproduction.
[0068]
The CPU 31 performs processing for converting the color space of the image data GD from the XYZ color space to the wRGB color space in order to execute image adjustment based on the image processing control information GC, that is, matrix operation N -1 Then, reverse gamma correction is executed (step S230). The wRGB color space is a wider color space than the sRGB color space. 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 video data using the inverse of the acquired gamma value. Matrix operation N -1 Is executed, the CPU 31 executes a matrix (N) corresponding to the conversion from the ROM 31 to the wRGB color space. -1 ) To perform matrix operation. Matrix operation N -1 Is an arithmetic expression shown below.
[0069]
[Equation 3]
Figure 0003999157
[0070]
Matrix operation N -1 The color space of the image data GD obtained after execution is the wRGB color space. As described above, the wRGB color space is a color space wider than the sRGB color space, and corresponds to a color space that can be generated by the digital still camera 12.
[0071]
The CPU 31 executes an automatic image quality adjustment process (step S240). The concept of image quality automatic adjustment processing in this embodiment will be described with reference to FIG. The image file GF includes image data GD to be subjected to image quality adjustment and image processing control information GC used for image quality adjustment. The color printer 20 (CPU 31) analyzes the image data GD to obtain an image statistical value (characteristic parameter value) SV indicating the characteristics of the image data GD, and analyzes the image processing control information GC to analyze the reference image quality parameter value SP. , And the manual correction parameter value MP is acquired. The color printer 20 determines the automatic image quality adjustment parameter AP based on the image statistical value SV and the reference image quality parameter value SP, and further determines the final image quality adjustment parameter FP = AP + MP. The color printer 20 adjusts the image quality of the image data GD using the determined final image quality adjustment parameter FP, and outputs the adjusted image data GD ′ to the printer driver.
[0072]
Details of the automatic image quality adjustment processing will be described in detail with reference to FIG. First, the CPU 31 analyzes the image data GD, acquires various characteristic parameter values (image statistical values) SV indicating the characteristics of the image data GD, and temporarily stores them in the RAM 32 (step S300). The CPU 31 acquires the image processing control information GC from the image file GF (step S310), and acquires the manual correction parameter value MP based on the image processing control information GC (step S320). Parameters acquired as the manual correction parameter value MP include image processing control parameters such as white balance, exposure correction amount, exposure time, aperture, ISO, and focal length. These manual correction parameter values MP are independent of the analysis result of the image data GD, that is, the image statistical value SV, and the values are reflected as they are in the final image quality adjustment parameter FP.
[0073]
The CPU 31 determines whether or not the acquired image processing control information GC includes a parameter value that designates a shooting mode (step S320). In this embodiment, in determining the automatic image quality adjustment parameter value AP, that is, the automatic image quality adjustment amount reflecting the image statistical value SV of the image data GD, a plurality of different image processing control parameters are combined for each shooting scene. Use shooting mode. In this embodiment, the shooting mode is 1, 2,. . . Therefore, when a shooting mode is specified, it is necessary to analyze and determine individual image processing control parameters that define each shooting mode based on the reference number. If the CPU 31 determines that the shooting mode is specified (step S330: Yes), the CPU 31 analyzes each shooting mode based on the specified reference number and acquires each image processing control parameter that defines the shooting mode. Then, the reference image quality parameter value SP is determined by the procedure described later (step S340). As described above, the manual correction parameter value MP can be specified in parallel even when the shooting mode is set.
[0074]
Combinations of image processing control parameters that define the shooting mode and combinations of numerical values that specify the shooting mode are as shown in FIG. FIG. 16 is an explanatory diagram illustrating an example of a combination of numerical values for designating a shooting mode, an image quality parameter, and a shooting mode. Items such as contrast and brightness for each shooting mode indicate the state of the image quality obtained as a result of the automatic image quality adjustment, and the state of the image quality designated by each item is analyzed by the CPU 31, and the state of the designated image quality In order to realize the above, one or a plurality of image processing control parameter values are set for each item. The shooting mode 1 is suitable for standard shooting conditions, for example, the shooting mode 2 is suitable for shooting conditions for shooting a person, for example, and the shooting mode 3 is suitable for shooting conditions for shooting a landscape, for example. Is suitable for, for example, photographing conditions for photographing a sunset scene, the photographing mode 5 is suitable for, for example, photographing conditions for photographing a night scene, and the photographing mode 6 is suitable for, for example, photographing conditions for photographing a flower. The shooting mode 7 is suitable for shooting conditions for macro shooting, for example, the shooting mode 8 is suitable for shooting conditions for shooting a person who is playing sports, for example, and the shooting mode 9 is for shooting conditions under backlight, for example. Suitably, the shooting mode 10 is suitable for shooting conditions for shooting autumn leaves, for example, and the shooting mode 11 is suitable for shooting conditions for shooting commemorative photography, for example. When the shooting mode is not set, the parameter indicating the set shooting mode is set to 0.
[0075]
When the CPU 31 determines that the shooting mode is not specified, that is, the shooting mode parameter is set to 0 (step S330: No), the image processing control individually set in the image quality adjustment processing is determined. The process proceeds to step S350 to reflect the parameters.
[0076]
The CPU 31 changes (corrects) the reference value set for each parameter while reflecting the value of the acquired image processing control parameter. The reference value set for each parameter is a value that assumes image data generated under general image generation conditions. Therefore, in order to realize automatic image quality adjustment that correctly reflects the intention of the photographer (image creator), the image processing control conditions that can be arbitrarily set by the photographer are considered in consideration of individual image processing control conditions. , Change the reference value. The reference value is an index value of a parameter that optimizes an output result of an image determined in advance by image evaluation based on quantitative evaluation and sensitivity evaluation.
[0077]
For example, when the shooting mode parameter is set to 2, the lightness reference value is changed from the standard value 128 to a slightly bright value 144, the saturation reference value is changed from the standard value 128 to a slightly weak value 102, and the sharpness reference value is set. The value is changed from the standard value 200 to a slightly weak value 150. Further, the contrast correction coefficient is changed from the standard value 5 to a slightly soft value 2, and the color balance correction coefficient is maintained at the standard value 5. The change of each reference value and each coefficient is realized, for example, by increasing or decreasing a numerical value with respect to each reference value and each coefficient, or by increasing or decreasing each reference value and each coefficient at a predetermined ratio. Alternatively, for example, with respect to the lightness reference value, 144 may be prepared as a slightly bright value and 112 as a slightly dark value, and the reference value may be replaced according to a correction tendency such as slightly bright or slightly dark.
[0078]
The CPU 31 obtains a deviation between the reference image quality parameter value SP modified as described above and the image quality parameter value SV, and determines the deviation as the automatic image quality adjustment parameter value AP (step S350). For example, when the image quality parameter value SV is lightness 160 and sharpness 155, automatic image quality adjustment parameter value AP = 160-144 = 16 for lightness and automatic image quality adjustment parameter value AP = 155-150 = 5 for sharpness. Become.
[0079]
As shown in FIG. 17, the CPU 31 obtains a final image quality adjustment parameter FP (image data correction amount) = AP + MP from the determined automatic image quality adjustment parameter value AP and the acquired manual correction parameter value MP, and determines the final image quality adjustment parameter FP. Reflecting and executing automatic image quality adjustment (step S360). FIG. 17 is an explanatory diagram showing exemplary values of the parameters AP, MP, FP, and FP ′ for brightness and sharpness. For example, when the lightness +10 and the sharpness −10 are set as the manual correction parameter value MP, the final image quality adjustment parameter FP = 16 + 10 = 26 for lightness, and the final image quality adjustment parameter FP for sharpness = 5-10 = -5. The CPU 31 adjusts the tone curve (S) that associates the input level and the output level of the RGB components of the image data GD shown in FIG. 18 with respect to the image quality parameters of shadow, highlight, brightness, contrast, color balance, and memory color correction. Curve) to adjust the image quality. FIG. 18 is an explanatory diagram illustrating a tone curve that is changed to reflect the final image quality adjustment parameter FP. When adjusting image quality using tone curves, each tone curve is changed for each RGB component, reflecting each FP for each image quality parameter, and finally, each changed RGB component is supported. Input-output conversion is performed for each RGB component of the image data GD using each tone curve. As a result, image data GD with an adjusted image quality is obtained.
[0080]
The automatic image quality adjustment processing for each image quality parameter is specifically executed as follows, for example.
For contrast, shadow, and highlight, the shadow point and highlight point are detected from the image data, level correction based on the reference value is executed, and histogram expansion is executed. Further, the tone curve is corrected based on the reference value based on the luminance standard deviation.
As for brightness, it is determined whether the image is dark (underexposure) or bright (overexposure) based on the brightness value calculated from each area obtained by dividing the image data into 14 parts, and based on the reference value Perform tone curve correction.
-For color balance, the color balance bias is analyzed from the R, G, and B component histograms of the image data, and the tone curves for the R, G, and B components are based on the reference values for the RGB components. Correct each to reduce color cast. If the shooting mode is set to 4 or 5, the color balance is not adjusted automatically because it is an intentional color cast even if a color cast occurs, reflecting the user's intention. Execute the selected image quality correction.
For saturation, the saturation distribution of the image data is analyzed, and saturation enhancement is executed based on the reference value. Therefore, the level of saturation enhancement increases as the image data has lower saturation.
For sharpness, correction is performed by analyzing the frequency and edge intensity distribution of the image data and performing an unsharp mask based on the reference value. The reference value is determined based on the frequency distribution, and the reference value decreases as the high-frequency image data (landscape or the like), and the reference value increases as the low-frequency image data (such as a person). The application amount of the unsharp mask depends on the edge intensity distribution, and the application amount of the image data having a blurred characteristic increases.
-Regarding the memory color, the color that seems to be preferable by extracting the corresponding layer from the image data for "skin color", "green", "sky blue", "red sky" etc. Execute correction so that
Noise removal is performed by reducing color noise by applying a smoothing filter to the color difference component CbCr of YCbCr.
[0081]
The image processing control parameter also includes a level designation parameter LP that designates the level of application of the final image quality adjustment parameter FP, that is, the degree to which the image data DG approaches the image data based on the reference value. The level designation parameter LP is used as, for example, FP ′ = AP * (LP / 5) + MP, and is reflected only on the automatic correction parameter value AP and not on the manual correction parameter value MP. Therefore, for example, when LP = 10, the value of the final image quality adjustment parameter AP is doubled as shown in FIG. 17, and when LP = 5, the value of the final image quality adjustment parameter AP is multiplied by 1. . The tone curve is changed based on FP ′. When LP = 10, the tone curve change amount is doubled. Further, only the level that approaches the reference value may be changed based on the image processing control information GC without changing the reference value.
[0082]
Next, automatic image quality adjustment processing that reflects image processing control parameters corresponding to the operation (photographing) conditions of the digital still camera 12 such as the photometric method and the lens focal length will be described. When the photometric image processing control parameter indicates spot photometry, multi-spot photometry, or partial photometry, automatic image quality adjustment processing for brightness (brightness) is not performed. In general metering methods, the appropriate brightness is obtained by calculating the brightness of the entire screen, but in spot metering, exposure is performed so that the measured area is appropriate by measuring the partial brightness of the screen. decide. In other words, the user is instructed to desire a specific area of the screen to be properly exposed. In such a case, if the brightness is automatically adjusted, an image quality adjustment process that does not reflect the user's intention is executed. Therefore, in these three metering modes, automatic brightness adjustment is not executed.
[0083]
The sharpness reference value is changed based on the lens focal length and F number at the time of shooting. In general, “blur” is determined by the focal length of the lens and the F number (aperture). Therefore, when automatically adjusting the sharpness, it is possible to execute the image quality adjustment process reflecting the blur assumed at the time of shooting by associating the reference value corresponding to the sharpness with the lens focal length and the F number. For example, in the case of F13 (large aperture) with a wide-angle lens (35 mm or less), the photographer generally intends to focus sharply on the entire screen from the front to the background for landscapes and commemorative photography. Can be determined to be. Therefore, in such a case, the sharpness reference value is decreased to give a sharpness effect to more imagers, and the image quality adjustment is executed so as to be sharper by increasing the amount of sharpness applied. On the other hand, in the case of F2 (open aperture) with a telephoto lens (100 mm or more), it is generally determined that the photographer has an intention of blurring the background in order to lift up the subject with a portrait or the like. it can. Therefore, in such a case, the sharpness reference value is increased, the sharpness effect is not given to smooth areas such as skin, but only the boundary pixels between the background and the subject are given, and the sharpness application amount is reduced. Then, the image quality adjustment process is executed so as not to roughen the skin.
[0084]
If the blurring index obtained from the lens focal length f (mm) and the F number is defined as f / F, the relationship shown in FIG. 19 is obtained. FIG. 19 is an explanatory diagram for explaining f / F as a blurring index obtained from the lens focal length f (mm) and the F number.
[0085]
After executing the automatic image quality adjustment (step S360), the CPU 31 returns to the image processing routine which is the main routine.
[0086]
When finishing the automatic image quality adjustment process, the CPU 31 executes a wRGB color conversion process and a halftone process for printing (step S250). In the wRGB color conversion process, the CPU 31 refers to a look-up table (LUT) for conversion to the CMYK color space corresponding to the wRGB color space stored in the ROM 31, and changes the color space of the image data from the wRGB color space to the CMYK. Change to color space. That is, image data composed of R, G, and B tone values is converted to data of tone values of, for example, six colors of C, M, Y, K, LC, and LM used by the color printer 20.
[0087]
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.
[0088]
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.
[0089]
As described above, according to the digital still camera 12 in the present embodiment, the image processing control condition in the image quality adjustment process executed in the printer 20 can be set on the digital still camera 12. Therefore, it is possible to set desired image processing control conditions for image data at the time of shooting, and it is possible to realize image quality adjustment processing that appropriately reflects the image processing control conditions desired at the time of shooting. In addition, image data and image processing control conditions assumed at the time of shooting can be easily associated with each other, and individual image processing control conditions suitable for each image data can be attached. Furthermore, when the image quality of the image data is automatically adjusted, it is not necessary to set the image processing control condition again, and the image quality adjustment processing reflecting the image processing control condition can be facilitated.
[0090]
Further, according to the color printer 20 of the present embodiment, the image quality of the image data GD can be automatically adjusted by reflecting the image processing control information GC included in the image file GF. Therefore, automatic image quality adjustment suitable for individual image data can be executed reflecting the shooting conditions at the time of shooting. Furthermore, when image quality adjustment conditions for image data are arbitrarily set by the user, automatic image quality adjustment is performed reflecting the arbitrarily set image processing control conditions, so that arbitrary output image quality It is possible to solve the problem in the conventional automatic image quality adjustment function that the adjustment condition is corrected and the user's intention cannot be reflected.
[0091]
Also, since the image quality can be automatically adjusted using the image processing control information GC included in the image file GF, the user can easily shoot without adjusting the image quality on the photo retouching application or the printer driver. It is possible to obtain a high-quality printing result reflecting the intention.
[0092]
In the above embodiment, an example in which image quality adjustment processing is automatically executed has been described. However, an automatic image quality adjustment button is provided on the operation panel of the color printer 20, and automatic image quality adjustment is selected by the image quality automatic adjustment button. The image quality automatic adjustment process of the above-described embodiment may be executed only when it is performed.
[0093]
F. Other examples:
In the above embodiment, when the image processing control information GC is reflected, the image processing control information GC is analyzed, the image processing control parameters are acquired, and the reference value and the application level are changed. Based on this, the image data GD may be corrected directly. At this time, the image processing control information GC may include information on how much the image data GD is changed, for example, to increase the lightness correction amount by +10 or to increase the lightness by + 10%. In such a case, the correction tendency intended by the user can be reflected in the image quality adjustment process without being influenced by the image quality characteristics of the image data GD.
[0094]
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 a hard disk of a computer is provided with the image processing function described with reference to FIG. The image file GF generated by the digital still camera 12 is provided to the computer via a cable or a memory card MC. On the computer, an application is activated by a user operation, and reading of the image file GF, analysis of the image processing control information GC, 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.
[0095]
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.
[0096]
In the image processing in the color printer 20, as shown in FIG. 20, automatic image quality adjustment processing may be executed first, and color space conversion may be executed later. Basic information may be processed.
[0097]
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, an image processing program (display driver) that executes the image processing described with reference to FIGS. 12 and 13 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.
[0098]
In such a case, the image processing control information GC at the time of image data generation is added to the display result on a display device such as a CRT in the same manner that the information at the time of image data generation can be reflected in the print result via the color printer 20. Can be reflected. Therefore, the image data GD generated by the digital still camera 12 can be displayed more accurately.
[0099]
As described above, the output device, the image processing device, and the program according to the present invention have been described based on the embodiments. However, the embodiments of the present invention described above are for facilitating the understanding of the present invention. It is not limited. 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.
[0100]
In the above embodiment, the shooting mode and image processing control parameters are set in the digital still camera 12, and after the set shooting mode and image processing control parameters are analyzed in the printer 20, the reference value is changed. That is, automatic image quality adjustment processing of the image data GD is executed using the image processing control command. However, the digital still camera 12 may execute processing for changing the reference value from the shooting mode and the image processing control parameter, and provide the printer 20 with the reference value, application level, that is, the value itself. In such a case, if the printer 20 has an image quality adjustment function using the reference value, the image quality adjustment process that matches the individual shooting conditions and the image quality adjustment process that reflects the user's intention are automatically executed. Can do.
[0101]
In the above embodiment, parameters such as the light source, exposure correction amount, target color space, brightness, and sharpness are used as the image processing control information GC, but which parameters are used as the image processing control information GC is an arbitrary decision. It is.
[0102]
Further, the values of the parameters illustrated in the table of FIG. 8 are merely examples, and the invention according to the present application is not limited by these values. Further, the matrix S, M, N in each mathematical expression -1 This value is merely an example, and it is needless to say that the value can be appropriately changed according to the target color space or the color space available in the color printer 20.
[0103]
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.
[0104]
In the above embodiment, when changing the color space characteristics from the sRGB color space to the wRGB color space, the matrix M and the matrix N -1 Are processed independently, matrix M and matrix N -1 Is a composite matrix (MN -1 ). Furthermore, various conversion system matrices may be combined as necessary. By combining the matrices, a series of matrix calculation processes can be speeded up.
[0105]
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.
[0106]
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. Further, in the color printer 20, at least the image processing control information GC of the image file GF according to the present embodiment is analyzed, and the image quality is automatically adjusted to reflect the user's intention regarding the brightness, and the image is output ( Printing).
[0107]
In addition, in the image file GF including the image data and the image processing control information GC, association data for associating the image processing control information GC is generated, and one or a plurality of image data and the image processing control information GC are independent of each other. Also included is a file that can be stored in the above-mentioned file and that can associate the image data with the image processing control information GC by referring to the association data at the time of image processing. In such a case, although the image data and the image processing control information GC are stored in separate files, the image data and the image processing control information GC are inseparably integrated at the time of image processing using the image processing control information GC. This is because they function in the same manner as when they are stored in substantially the same file. That is, an aspect in which image data and image processing control information GC are used in association with each other at least at the time of image processing is included in the image file GF in the present embodiment. Furthermore, a moving image file stored in an optical disc medium such as a CD-ROM, a CD-R, a DVD-ROM, a DVD-RAM is also included.
[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 a first embodiment can be applied.
FIG. 2 is a block diagram showing 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 first embodiment.
FIG. 3 is an explanatory diagram conceptually showing the internal structure of an image file that can be used in the first embodiment.
FIG. 4 is an explanatory diagram showing a schematic internal structure of an image file stored in an Exif file format.
FIG. 5 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 first embodiment.
FIG. 6 is a block diagram illustrating a schematic configuration of a color printer 20 according to the first embodiment.
7 is an explanatory diagram showing an internal configuration of a control circuit 30 of the color printer 20. FIG.
FIG. 8 is a flowchart showing a flow of processing for generating an image file GF in the digital still camera 12;
FIG. 9 is an explanatory diagram illustrating an exemplary display mode of the liquid crystal display 127;
10 is an explanatory diagram showing an exemplary display mode of the liquid crystal display 127. FIG.
11 is an explanatory diagram showing an exemplary display mode of the liquid crystal display 127. FIG.
FIG. 12 is a flowchart illustrating a processing routine of image processing in the color printer 20 according to the first embodiment.
FIG. 13 is a flowchart showing a flow of image processing executed in the color printer 20 in the first embodiment.
FIG. 14 is an explanatory diagram showing a concept of automatic image quality adjustment processing in the color printer 20 according to the first embodiment.
15 is a flowchart showing a processing routine for automatic image quality adjustment in the color printer 20. FIG.
FIG. 16 is an explanatory diagram illustrating an example of a combination of reference numbers for specifying a shooting mode, an image quality parameter, and a shooting mode;
FIG. 17 is an explanatory diagram showing exemplary values of parameters AP, MP, FP, and FP ′ for brightness and sharpness.
FIG. 18 is an explanatory diagram illustrating a tone curve that is changed to reflect a final image quality adjustment parameter FP;
FIG. 19 is an explanatory diagram for explaining f / F as a blurring index obtained from a lens focal length f (mm) and an F number.
FIG. 20 is a flowchart illustrating a processing routine for image processing according to another 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
100 ... Image file (Exif file)
101 ... JPEG image data storage area
102 ... Attached information storage area
103 ... Makernote storage area
MC ... Memory card

Claims (11)

画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられ得る画像データを生成する画像データ生成装置であって、
前記出力装置にて用いられる画像データを入力するための画像データ入力手段と、
前記画像データの解析結果により得られる前記画像データの画質を表す画質特性値画質調整処理の基準値とに基づいて求められる補正量を用いて画像データに対して画質調整処理を実行する前記出力装置において、前記基準値として用いられる基準画質パラメータ値を修正するための画像処理制御情報を指定する画像処理制御情報指定手段と、
前記指定された画像処理制御情報と、前記入力された画像データとを関連付けて出力する画像データ出力手段とを備える画像データ生成装置。
An image data generation device that generates image data that can be used in an output device that outputs an image using image data subjected to image quality adjustment processing,
Image data input means for inputting image data used in the output device;
The output for performing image quality adjustment processing on image data using a correction amount obtained based on an image quality characteristic value representing the image quality of the image data obtained from an analysis result of the image data and a reference value for image quality adjustment processing and have your device, and the image processing control information designating means for designating image processing control information for modifying the reference image quality parameter value used as the reference value,
An image data generation device comprising: image data output means for associating and outputting the designated image processing control information and the input image data.
画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられ得る画像データを生成する画像データ生成装置であって、
前記出力装置にて用いられる画像データを入力するための画像データ入力手段と、
前記画像データの解析結果により得られる前記画像データの画質を表す画質特性値画質調整処理の基準値とに基づいて求められる補正量を用いて画像データに対して画質調整処理を実行する前記出力装置において、前記基準値として用いられる基準画質パラメータ値を指定する画像処理制御情報を指定する画像処理制御情報指定手段と、
前記指定された画像処理制御情報と、前記入力された画像データとを関連付けて出力する画像データ出力手段とを備える画像データ生成装置。
An image data generation device that generates image data that can be used in an output device that outputs an image using image data subjected to image quality adjustment processing,
Image data input means for inputting image data used in the output device;
The output for performing image quality adjustment processing on image data using a correction amount obtained based on an image quality characteristic value representing the image quality of the image data obtained from an analysis result of the image data and a reference value for image quality adjustment processing and have your device, and the image processing control information designating means for designating image processing control information specifying the reference image quality parameter value used as the reference value,
An image data generation device comprising: image data output means for associating and outputting the designated image processing control information and the input image data.
請求項2に記載の画像データ生成装置において、
前記画像処理制御情報は、前記画質特性値として用いられる画質パラメータに対応し、前記基準値として用いられる、複数の基準画質パラメータ値の組み合わせであることを特徴とする画像データ生成装置。
The image data generation device according to claim 2,
The image processing control information corresponds to an image quality parameter used as the image quality characteristic value and is a combination of a plurality of reference image quality parameter values used as the reference value.
画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられ得る画像データを生成する画像データ生成装置であって、
前記出力装置にて用いられる画像データを入力するための画像データ入力手段と、
前記画像データの解析結果により得られる前記画像データの画質を表す画質特性値として用いられる画質パラメータ値画質調整処理の基準値として用いられる基準画質パラメータ値に基づいて求められる補正量を用いて画像データに対して画質調整処理を実行する前記出力装置における、前記補正量の適用の程度を指定するための画像処理制御情報を指定する画像処理制御情報指定手段と、
前記指定された画像処理制御情報と、前記入力された画像データとを関連付けて出力する画像データ出力手段とを備える画像データ生成装置。
An image data generation device that generates image data that can be used in an output device that outputs an image using image data subjected to image quality adjustment processing,
Image data input means for inputting image data used in the output device;
Using a correction amount obtained based on an image quality parameter value used as an image quality characteristic value representing the image quality of the image data obtained from an analysis result of the image data and a reference image quality parameter value used as a reference value for image quality adjustment processing Image processing control information designating means for designating image processing control information for designating the degree of application of the correction amount in the output device that performs image quality adjustment processing on image data;
An image data generation device comprising: image data output means for associating and outputting the designated image processing control information and the input image data.
画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられ得る画像データを生成する画像データ生成装置であって、
前記出力装置にて用いられる画像データを入力するための画像データ入力手段と、
前記画像データの解析結果により得られる前記画像データの画質を表す画質特性値として用いられる画質パラメータ値画質調整処理の基準値として用いられる基準画質パラメータ値に基づいて求められる補正量を用いて画像データに対して画質調整処理を実行する前記出力装置における、前記画質パラメータに対応し、複数の前記基準画質パラメータ値の修正の傾向を指定するための画像処理制御情報を指定する画像処理制御情報指定手段と、
前記指定された画像処理制御情報と、前記入力された画像データとを関連付けて出力する画像データ出力手段とを備える画像データ生成装置。
前記画質パラメータに対応し、複数の前記基準画質パラメータ値の修正の傾向を指定するためのデータであることを特徴とする画像データ生成装置。
An image data generation device that generates image data that can be used in an output device that outputs an image using image data subjected to image quality adjustment processing,
Image data input means for inputting image data used in the output device;
Using a correction amount obtained based on an image quality parameter value used as an image quality characteristic value representing the image quality of the image data obtained from an analysis result of the image data and a reference image quality parameter value used as a reference value for image quality adjustment processing Image processing control information for designating image processing control information for designating a correction tendency of the plurality of reference image quality parameter values corresponding to the image quality parameter in the output device that executes image quality adjustment processing on image data Designation means;
An image data generation device comprising: image data output means for associating and outputting the designated image processing control information and the input image data.
An image data generation apparatus, which is data for designating a correction tendency of a plurality of reference image quality parameter values corresponding to the image quality parameters.
請求項5に記載の画像データ生成装置において、
前記画像処理制御情報は、前記撮影条件毎に、少なくとも、コントラスト、明るさ、カラーバランス、彩度、シャープネス、記憶色、およびノイズ除去についての前記基準画質パラメータの修正の傾向を示すデータを含むことを特徴とする画像データ生成装置。
The image data generation device according to claim 5,
The image processing control information includes at least data indicating the correction tendency of the reference image quality parameter for contrast, brightness, color balance, saturation, sharpness, memory color, and noise removal for each shooting condition. An image data generation device characterized by the above.
請求項1ないし請求項7のいずれかに記載の画像データ生成装置において、
前記画質調整処理条件指定手段は、
前記画質調整処理条件を表示する表示手段と、
前記画質調整処理条件を選択、決定するための決定手段とを備えることを特徴とする画像データ生成装置。
In the image data generation device according to any one of claims 1 to 7,
The image quality adjustment processing condition specifying means is
Display means for displaying the image quality adjustment processing conditions;
An image data generation apparatus comprising: a determination unit for selecting and determining the image quality adjustment processing condition.
請求項1ないし請求項7のいずれかに記載の画像データ生成装置において、
前記画像データ出力手段は、前記画像処理制御情報と前記画像データとを同一のファイル内に格納して出力することを特徴とする画像データ生成装置。
In the image data generation device according to any one of claims 1 to 7,
The image data output means stores the image processing control information and the image data in the same file and outputs them.
請求項1ないし請求項7のいずれかに記載の画像データ生成装置はさらに、
前記出力装置にて画像を出力するために用いられる画像データを生成する画像データ生成手段を備えることを特徴とする画像データ生成装置。
The image data generation device according to any one of claims 1 to 7, further comprising:
An image data generation device comprising image data generation means for generating image data used for outputting an image by the output device.
画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられる画像データを生成するプログラムであって、
前記出力装置にて画像を出力するために用いられる画像データを取得する機能と、
前記画像データの解析結果により得られる前記画像データの画質を表す画質特性値画質調整処理の基準値とに基づいて求められる補正量を用いて画像データに対して画質調整処理を実行する前記出力装置において、前記基準値として用いられる基準画質パラメータ値を修正するための画像処理制御情報を指定する機能と、
前記指定した画像処理制御情報と、前記取得した画像データとを関連付けて出力する機能とをコンピュータに実現させるプログラム。
A program for generating image data used in an output device that outputs an image using image data subjected to image quality adjustment processing,
A function of acquiring image data used to output an image in the output device;
The output for performing image quality adjustment processing on image data using a correction amount obtained based on an image quality characteristic value representing the image quality of the image data obtained from an analysis result of the image data and a reference value for image quality adjustment processing and have your device, the ability to specify the image processing control information for modifying the reference image quality parameter value used as the reference value,
A program for causing a computer to realize a function of outputting the specified image processing control information and the acquired image data in association with each other.
画質調整処理が実行された画像データを用いて画像を出力する出力装置において用いられ得る画像データを生成する画像データ生成方法であって、
前記画像データの解析結果により得られる前記画像データの画質を表す画質特性値画質調整処理の基準値とに基づいて求められる補正量を用いて画像データに対して画質調整処理を実行する前記出力装置において、前記基準値として用いられる基準画質パラメータ値を修正するための画像処理制御情報を指定し、
前記指定した画像処理制御情報と、入力された画像データとを関連付けて出力する画像データ生成方法。
An image data generation method for generating image data that can be used in an output device that outputs an image using image data subjected to image quality adjustment processing,
The output for performing image quality adjustment processing on image data using a correction amount obtained based on an image quality characteristic value representing the image quality of the image data obtained from an analysis result of the image data and a reference value for image quality adjustment processing and have your device, specify the image processing control information for modifying the reference image quality parameter value used as the reference value,
An image data generation method for outputting the specified image processing control information in association with input image data.
JP2003101740A 2001-01-17 2003-04-04 Output image adjustment for image files Expired - Lifetime JP3999157B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003101740A JP3999157B2 (en) 2001-01-17 2003-04-04 Output image adjustment for image files

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2001008866 2001-01-17
JP2001-8866 2001-02-09
JP2001-74671 2001-03-15
JP2001074671 2001-03-15
JP2003101740A JP3999157B2 (en) 2001-01-17 2003-04-04 Output image adjustment for image files

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001249912A Division JP3725454B2 (en) 2001-01-17 2001-08-21 Output image adjustment for image files

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2003164619A Division JP4266716B2 (en) 2001-01-17 2003-06-10 Output image adjustment for image files
JP2003164605A Division JP4015066B2 (en) 2001-01-17 2003-06-10 Output image adjustment for image files

Publications (2)

Publication Number Publication Date
JP2003348343A JP2003348343A (en) 2003-12-05
JP3999157B2 true JP3999157B2 (en) 2007-10-31

Family

ID=29783070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003101740A Expired - Lifetime JP3999157B2 (en) 2001-01-17 2003-04-04 Output image adjustment for image files

Country Status (1)

Country Link
JP (1) JP3999157B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4877102B2 (en) * 2006-09-12 2012-02-15 セイコーエプソン株式会社 Printing apparatus and image processing method in printing apparatus
US8243328B2 (en) 2007-04-20 2012-08-14 Seiko Epson Corporation Printing method, printing apparatus, and storage medium storing a program
JP4882927B2 (en) 2007-08-31 2012-02-22 セイコーエプソン株式会社 Category identification method

Also Published As

Publication number Publication date
JP2003348343A (en) 2003-12-05

Similar Documents

Publication Publication Date Title
JP3725454B2 (en) Output image adjustment for image files
JP5131313B2 (en) Output image adjustment of image data
US7933041B2 (en) Adjustment for output image of image data
JP2002314803A (en) Generation and output of image file
JPWO2004008753A1 (en) Output image adjustment of image data
JP4266716B2 (en) Output image adjustment for image files
JP4015066B2 (en) Output image adjustment for image files
JP2003060935A (en) Output image adjustment method for image file
JP3520869B2 (en) Image output adjustment of image data
JP5045808B2 (en) Output image adjustment for image files
JP3999157B2 (en) Output image adjustment for image files
JP3834516B2 (en) Output image adjustment of image data
JP3960137B2 (en) Output image adjustment of image data
JP3797346B2 (en) Output image adjustment of image data
JP4126967B2 (en) Output image adjustment of image data
JP2006222977A (en) Output image adjustment of image data
JP5206741B2 (en) Image file generation and output
JP2005033502A (en) Image processor
JP2005033516A (en) Output image adjustment of image data
JP2003037815A (en) Generation and output of image file
JP2007174683A (en) Image data output adjustment

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040309

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040506

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050322

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050519

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051025

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070614

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070808

R150 Certificate of patent or registration of utility model

Ref document number: 3999157

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100817

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110817

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120817

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130817

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term