JP4292873B2 - Image processing method, image processing apparatus, and image recording apparatus - Google Patents

Image processing method, image processing apparatus, and image recording apparatus Download PDF

Info

Publication number
JP4292873B2
JP4292873B2 JP2003152720A JP2003152720A JP4292873B2 JP 4292873 B2 JP4292873 B2 JP 4292873B2 JP 2003152720 A JP2003152720 A JP 2003152720A JP 2003152720 A JP2003152720 A JP 2003152720A JP 4292873 B2 JP4292873 B2 JP 4292873B2
Authority
JP
Japan
Prior art keywords
correction value
image
hardness
brightness
reference data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003152720A
Other languages
Japanese (ja)
Other versions
JP2004357001A (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.)
Konica Minolta Opto Inc
Original Assignee
Konica Minolta Opto Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Opto Inc filed Critical Konica Minolta Opto Inc
Priority to JP2003152720A priority Critical patent/JP4292873B2/en
Publication of JP2004357001A publication Critical patent/JP2004357001A/en
Application granted granted Critical
Publication of JP4292873B2 publication Critical patent/JP4292873B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Picture Signal Circuits (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、シーン参照画像データから出力媒体上での鑑賞画像形成用に最適化処理を施す画像処理方法、画像処理装置、出力媒体上に鑑賞画像を形成する画像記録装置に関する。
【0002】
【従来の技術】
近年、デジタルカメラ等の撮像装置で撮影されたデジタル画像データは、CD−R、フロッピー(登録商標)ディスク、メモリーカードなどの記憶デバイスやインターネット経由で配信され、CRT(Cathode Ray Tube)、液晶ディスプレイ、プラズマディスプレイ、携帯電話の小型液晶モニタ等の表示デバイスに表示されたり、デジタルプリンタ、インクジェットプリンタ、サーマルプリンタ等の出力デバイスを用いてハードコピー画像としてプリントされるなど、その表示方法、プリント方法は多種多様化してきている。
【0003】
またデジタル画像データを鑑賞用途で表示したりプリント出力したりする際には、鑑賞に使用するディスプレイ上又はハードコピー上において所望の画質が得られるように、デジタル画像データに対して、階調調整、輝度調整、カラーバランス調整、鮮鋭性強調に代表される種々の画像処理を施すことが一般に行われている。
【0004】
こうした多様の表示方法及びプリント方法に対応して、デジタル画像データの汎用性を高める努力がなされてきた。その一環として、デジタルRGB信号が表現する色空間を、撮像装置特性に依存しない色空間に標準化する試みがあり、現在では多くのデジタル画像データが標準化された色空間として「sRGB」を採用している(「Multimedia Systems and Equipment-Colour Measurment and Management-Part2-1:Colour Management-Default RGB Colour Space-sRGB」IEC"61966-2-1を参照)。このsRGBの色空間は、標準的なCRTディスプレイモニタの色再現領域に対応して設定されている。
【0005】
一般に、デジタルカメラは、CCD(Charge Coupled Device:電荷結合素子)と、電荷転送機構と、市松模様のカラーフィルタとを組み合わせて感色性を付与した、光電変換機能を有する撮像素子(CCD型撮像素子、以下単にCCDと称す。)を備えている。デジタルカメラにより出力されるデジタル画像データは、CCDを介して変換された電気的な元信号に、撮像素子の光電変換機能の補正(例えば、階調補正、分光感度のクロストーク補正、暗電流ノイズ抑制、鮮鋭化、ホワイトバランス調整、彩度調整等の画像処理)が施され、画像編集ソフトでの読み取り・表示が可能なように規格化された所定形式のデータフォーマットへのファイル変換・圧縮処理等を経たものである。
【0006】
このようなデータフォーマットとしては、例えば、Exifファイルの非圧縮ファイルとして採用されている「Baseline Tiff Rev.6.0RGB Full Color Image」及びJPEGフォーマットに準拠した圧縮データファイル形式が知られている。Exifファイルは、sRGBに準拠したものであり、撮像素子の光電変換機能の補正は、sRGBに準拠するディスプレイモニタ上で最も好適な画質となるよう設定されている。
【0007】
例えば、どのようなデジタルカメラであっても、sRGB信号に準拠したディスプレイモニタの標準色空間(以下、「モニタプロファイル」と称す。)で表示することを示すタグ情報と、画素数、画素配列及び1画素当たりのビット数等の機種依存情報を示す付加情報をデジタル画像データのファイルヘッダにメタデータとして書き込む機能を有して、そのようなデータフォーマット形式を採用してさえいれば、デジタル画像データをディスプレイモニタに表示する画像編集ソフト(例えば、Adobe社製Photoshop)によりタグ情報を解析し、モニタプロファイルのsRGBへの変更を促したり、自動的に変更処置を施すことができる。そのため、異なるディスプレイ間の差異を低減したり、デジタルカメラで撮影されたデジタル画像データを、ディスプレイモニタ上で好適な状態で鑑賞することが可能になっている。
【0008】
また、デジタル画像データのファイルヘッダに書き込まれる付加情報としては、上述した機種依存情報以外にも、例えば、カメラ名称、コード番号等のカメラ種別(機種)に直接関係する情報、或いは露出時間、シャッタースピード、絞り値(Fナンバー)、ISO感度、輝度値、被写体距離範囲、光源、ストロボ発光の有無、被写体領域、ホワイトバランス、ズーム倍率、被写体構成、撮影シーンタイプ、ストロボ光源の反射光の量、撮影彩度等の撮影条件、被写体の種類に関する情報等を示すタグ(コード)が用いられている。画像編集ソフトや出力デバイスは、これらの付加情報を読み取り、ハードコピー画像の画質をより好適なものとする機能を備えている。
【0009】
ところで、CRTディスプレイモニタ等の表示デバイスで表示される画像や、各種プリントデバイスによりプリントされたハードコピー画像は、用いられている蛍光体又は色材の構成によって色再現域が異なる。例えば、sRGB標準色空間に対応するCRTディスプレイモニタの色再現領域は、明るい緑や青の領域が広く、銀塩写真プリント、インクジェットプリンタ、印刷等のハードコピーでは再現できない領域がある。反対に、印刷・インクジェットのシアン領域や銀塩写真の黄色領域には、sRGB標準色空間に対応するCRTディスプレイモニタでは再現できない領域が存在する例えばコロナ社「ファインイメージングとディジタル写真」(社)日本写真学会出版委員会編444頁参照)。一方、撮影対象となる被写体シーンの中には、これらの何れの色再現領域でも再現できない領域色を呈しているものが存在する可能性がある。
【0010】
このように、特定のデバイスによる表示やプリントを前提として最適化された色空間(sRGBを含む)には、記録可能な色域に制限があるため、撮像デバイスが取得した情報を記録する際には、記録可能な色域に圧縮してマッピングする調整が必要になる。マッピングの方法としては、記録可能な色域の外にある色度点を最寄の色域境界上へマッピングしてしまうクリッピングが最も簡単であるが、これでは色域外のグラデーションが潰れてしまい、鑑賞時に違和感を覚える画像になってしまう。このため現在では、適当な閾値以上にクロマが高い領域の色度点をクロマの大きさに従って滑らかに圧縮する非線形圧縮が一般に採用されている。この結果、記録可能な色域内部の色度点においてもクロマが圧縮されて記録されることになる。(色域のマッピング方法についての詳細は、例えばコロナ社「ファインイメージングとディジタル写真」(社)日本写真学会出版委員会編447頁に記載されている。)
【0011】
また、CRTディスプレイモニタ等の表示デバイスで表示される画像や、各種プリントデバイスによりプリントされたハードコピー画像、またこれらのデバイスによる表示・プリントを前提として最適化された色空間(sRGBを含む)は、記録・再現可能な輝度域が約100:1オーダーに限定されている。これに対して撮影対象となる被写体シーンは輝度域が広く、屋外では数千:1のオーダーに至ることもしばしば発生する(例えば、東京大学出版会「新編色彩科学ハンドブック第2版」日本色彩学会編926頁参照。)。従って、撮像デバイスが取得した情報を記録する際には、輝度についても同様に圧縮が必要になる。この処理は、撮影シーンのダイナミックレンジや、撮影シーン内における主要被写体の輝度レンジに応じて、1画像毎に適切な条件を設定する必要がある。
【0012】
ところが、上記のような色域・輝度域の圧縮操作をおこなった場合、離散的数値で記録されるデジタル画像の原理に起因して、圧縮されたグラデーション情報やクリッピングされた情報はその時点で失われてしまい、再び元の状態に戻すことができない。このことが、高画質デジタル画像の汎用性において大きな制約になっている。
【0013】
例えば、sRGB標準色空間において記録された画像をプリントする場合は、sRGB標準色空間とプリントデバイスの色再現域の相違に基づいて、再度マッピングが必要になる。しかしながら、記録時に一旦圧縮された領域のグラデーション情報が失われているため、撮像デバイスが取得した情報を直接プリントデバイスの色再現域にマッピングする場合に比べてグラデーションの滑らかさが悪化する。また、記録時の階調圧縮条件が不適切で、絵が白っぽい・顔が暗い・シャドーの潰れやハイライト領域の白飛びが目立つという問題があった場合、階調設定を変更して画像を改善しようとしても、圧縮されたグラデーション情報や潰れ・白飛び部分の情報は既に失われているために、撮像デバイスが取得した情報から新たに画像を作り直す場合と比べて、著しく不十分な改善しか行うことができない。
【0014】
画像編集の過程をバックアップとして保存し、必要に応じて編集前の状態に戻す技術は古くから知られている。例えば、特許文献1には、デジタル画像データに対し、画像処理により局所的な変更を施した場合、画像処理前後のデジタル画像データとの差分画像データをバックアップデータとして保存するバックアップ装置が記載されている。また、特許文献2には、画像処理前後のデジタル画像データの差分画像データを取り保存しておくことにより、編集前のデジタル画像データを復元可能にする方法が記載されている。こうした技術は、情報損失防止の観点では有効であるが、メデイアに記録すべきデータ量の増大を伴い、その結果カメラの撮影可能枚数が減少するという問題がある。
【0015】
以上に述べてきた問題は、撮像デバイスが取得した広い色域・輝度域の情報を、鑑賞画像を想定して最適化した状態の鑑賞画像参照データに圧縮して記録することに起因する。これに対して、撮像デバイスが取得した広い色域・輝度域の情報を圧縮しないシーン参照画像データとして記録すれば、不用意な情報の損失を防止することができる。このようなシーン参照画像データを記録するのに適した標準色空間としては、例えば、「RIMM RGB」や「ERIMM RGB」が提案されている(Journal of Imaging Science and Technology 45巻 418〜426頁(2001年)参照)。
【0016】
特許文献3には、表示手段に表示した画像信号形態で記録するモードと、撮像した画像信号形態で記録するモードを有する画像処理装置が開示されている。後者の画像信号形態は、一般にRAWデータと呼ばれ、このようなデジタル画像データは、専用のアプリケーションソフト(「電子現像ソフト」と称される。)を用いて、Exifファイルなどの表示・印刷用の鑑賞画像参照データに変換する(「電子現像」又は単に「現像」と称される。)ことができる。RAWデータは、撮影時の全情報を保存しているため、鑑賞画像参照データの作り直しが可能であり、CMYK等の他の表色系ファイルを直接作れば、ディスプレイモニタ(sRGB)との色域の相違に起因して不用意に色が変更されることもない。
【0017】
ところで、近年、平面に配置された複数の画像により、立体(3次元)画像表示を行う裸眼立体視(以下、「立体視表示」と称す。)が知られるようになった。立体視表示には様々な方式があるが、何れの表示方式にも共通して、視差を生じさせるための2枚の画像(以下、単に「視差画像」と称す。)を必要とする。視差画像は、同一の被写体を異なる視点から撮影したものである。
【0018】
このような視差画像が撮影可能なデジタルカメラでは、自然な遠近感をつけるために、視点間距離、即ちレンズ間の距離(「撮影基線長」と称す。)は、人間の両目間の距離に等しい約6〜7cmに設定されている。撮影光学系が1つの一般的なデジタルカメラでは、同一の被写体に対して、連続して2度の撮影を行い、2度目の撮影時には、撮影位置を水平方向にずらすことによって視差画像を撮影可能な補助機能を備えているものがある。
【0019】
ステレオペアと呼ばれる立体視表示では、2枚の視差画像が、最低でも人間の両目間の距離と同じ約6〜7cmに保たれるように、各々の画像の大きさが調整されて、平面上に並べて配置される。平面に配置された視差画像の観察方法には、右側に配置された視差画像を右目で見る並行法と、右側に配置された視差画像を左目で見る交差法がある。並行法は、目に余計な力が必要とせずに視差画像を見ることができる反面、大きな画像を見ることができない。一方、交差法は、視差画像を寄り目にして見るため、目が疲れ易い反面、大きな画像を見ることができる。
【0020】
【特許文献1】
特開平7-57074号公報
【特許文献2】
特開2001−94778号公報
【特許文献3】
特開平11−261933号公報
【0021】
【発明が解決しようとする課題】
上述の技術を利用して、シーン参照画像データから、例えば、ディスプレイモニタ上で最適な鑑賞画像参照データへ変換する場合、RAWデータと同様に、専用のアプリケーションソフトを用いて階調変換曲線を設定したり、彩度調整を行ったりする必要がある。一般に、階調変換曲線の設定は、視覚的にカーブ形状を整えるユーザインターフェース機能を利用して、マウス操作により行われる。しかしながら、階調変換曲線の設定作業は、画像のシャドー側、中間領域、ハイライト側の硬さと明度を同時に調整するものであり、かなりの熟練度を要する。また、被写体の種類又は或いは撮影条件(例えば、ストロボ撮影、逆光)によって、階調変換曲線の設定は様々に異なってくる。更に、CRTディスプレイのようにsRGB等の規格に準拠していれば、階調変換曲線の設定の汎用性も高くメーカー側もある程度の推奨設定を容易することは可能となるが、銀塩プリンタやインクジェットプリンタ等に鑑賞画像を形成する場合には、様々な変動要因が加わり、推奨設定で十分となるケースは極めてまれである。これに加えて、ユーザの嗜好も異なるため、結局のところユーザ自身による調整に頼らざるを得ない。従って、従来の技術では、シーン参照画像データから鑑賞画像参照データに変換する際の、階調変換曲線の設定作業に係るユーザの負荷が大きく、容易に階調変換曲線を設定できないという問題があった。特に、シーン参照画像データが視差画像である場合、階調変換曲線の設定作業に係る負荷は一層大きくなる。
【0022】
本発明の課題は、シーン参照画像データから鑑賞画像参照データに変換する際の、階調変換曲線の設定作業に係る負荷を軽減する画像処理を実現することである。
【0023】
【課題を解決するための手段】
上記課題を解決するため、請求項1に記載の発明は、シーン参照画像データに、出力媒体上での鑑賞画像形成のために最適化する画像処理を施して鑑賞画像参照データを生成する画像処理方法において、前記シーン参照画像データが視差画像であるか否かを判定する判定工程と、前記判定工程において、前記シーン参照画像データが視差画像であると判定された場合、当該視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定する補正値決定工程と、予め出力媒体毎に定義された、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を、前記決定された硬さの補正値に基づいて変更する第1の変更工程と、前記階調変換曲線を、前記決定された明るさの補正値に基づいて変更する第2の変更工程と、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線に基づいて鑑賞画像参照データを生成する生成工程と、を含み、前記第1の変更工程において、前記階調変換曲線上の所定の位置を含む特定領域を不動領域として、前記決定された硬さの補正値に基づいて当該階調変換曲線の形状が変更され、前記第2の変更工程において、前記特定領域が予め定義された曲線上を移動するように、前記決定された明るさの補正値に基づいて当該階調変換曲線の形状が変更されることを特徴としている。
【0024】
請求項2に記載の発明は、請求項1に記載の画像処理方法において、被写体の種類に応じて、前記鑑賞画像参照データの硬さの補正値を算出する硬さ算出工程と、撮影条件に応じて、前記鑑賞画像参照データの明るさの補正値を算出する明るさ算出工程と、を含み、前記補正値決定工程において、前記硬さ算出工程において算出された硬さの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値が決定され、前記明るさ算出工程において算出された明るさの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの明るさの補正値が決定されることを特徴としている。
【0025】
請求項3に記載の発明は、請求項1に記載の画像処理方法において、特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出工程を含み、前記補正値決定工程において、前記視差画像の視差量と、前記硬さ・明るさ算出工程において算出された硬さの補正値及び明るさの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値が決定されることを特徴としている。
【0026】
請求項4に記載の発明は、請求項1に記載の画像処理方法において、前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記決定された彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴としている。
【0027】
請求項5に記載の発明は、請求項2に記載の画像処理方法において、特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出工程を含み、前記補正値決定工程において、前記視差画像の視差量、前記硬さ算出工程において算出された硬さの補正値及び前記硬さ・明るさ算出工程において算出された硬さの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値が決定され、前記視差画像の視差量、前記明るさ算出工程において算出された明るさの補正値及び前記硬さ・明るさ算出工程において算出された明るさの補正値に基づいて、前記鑑賞画像データの明るさの補正値が決定されることを特徴としている。
【0028】
請求項6に記載の発明は、請求項2に記載の画像処理方法において、前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴としている。
【0029】
請求項7に記載の発明は、請求項3に記載の画像処理方法において、前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴としている。
【0030】
請求項8に記載の発明は、請求項5に記載の画像処理方法において、前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴としている。
【0031】
請求項9に記載の発明は、請求項3、5、7、8の何れか一項に記載の画像処理方法において、前記特定の被写体の種類及び撮影条件の組み合わせにおいて、被写体の種類がポートレートであり、撮影条件が逆光であることを特徴としている。
【0032】
請求項10に記載の発明は、請求項4、6〜8の何れか一項に記載の画像処理方法において、前記硬さの補正値が0である場合の彩度の調整量は、鑑賞画像参照データの彩度を強調する値であることを特徴としている。
【0033】
請求項11に記載の発明は、請求項2、3、5〜10の何れか一項に記載の画像処理方法において、前記被写体の種類には、少なくともポートレート、風景、静物が含まれることを特徴としている。
【0034】
請求項12に記載の発明は、請求項2、3、5〜11の何れか一項に記載の画像処理方法において、前記撮影条件には、少なくとも逆光、ストロボ撮影が含まれることを特徴としている。
【0035】
請求項13に記載の発明は、請求項1〜12の何れか一項に記載の画像処理方法において、前記階調変換曲線の入出力値がL*である場合、前記特定領域中の所定の位置は、入力L*が40以上50未満の位置であることを特徴としている。
【0036】
請求項14に記載の発明は、請求項1〜13の何れか一項に記載の画像処理方法において、前記予め出力媒体毎に定義された階調変換曲線の硬さと明るさの初期値が、ユーザ別に記憶されていることを特徴としている。
【0037】
請求項15に記載の発明は、シーン参照画像データに、出力媒体上での鑑賞画像形成のために最適化する画像処理を施して鑑賞画像参照データを生成する画像処理装置において、前記シーン参照画像データが視差画像であるか否かを判定する判定部と、前記判定部により、前記シーン参照画像データが視差画像であると判定された場合、当該視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定する補正値決定部と、予め出力媒体毎に定義された、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を、前記決定された硬さの補正値に基づいて変更する第1の変更部と、前記階調変換曲線を、前記決定された明るさの補正値に基づいて変更する第2の変更部と、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線に基づいて鑑賞画像参照データを生成する生成部と、を備え、前記第1の変更部は、前記階調変換曲線上の所定の位置を含む特定領域を不動領域として、前記決定された硬さの補正値に基づいて当該階調変換曲線の形状を変更し、前記第2の変更部は、前記特定領域が予め定義された曲線上を移動するように、前記決定された明るさの補正値に基づいて当該階調変換曲線の形状を変更することを特徴としている。
【0038】
請求項16に記載の発明は、請求項15に記載の画像処理装置において、被写体の種類に応じて、前記鑑賞画像参照データの硬さの補正値を算出する硬さ算出部と、撮影条件に応じて、前記鑑賞画像参照データの明るさの補正値を算出する明るさ算出部と、を備え、前記補正値決定部は、前記硬さ算出部により算出された硬さの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記明るさ算出部により算出された明るさの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの明るさの補正値を決定することを特徴としている。
【0039】
請求項17に記載の発明は、請求項15に記載の画像処理装置において、特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量と、前記硬さ・明るさ算出部により算出された硬さの補正値及び明るさの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定することを特徴としている。
【0040】
請求項18に記載の発明は、請求項15に記載の画像処理装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記決定された彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0041】
請求項19に記載の発明は、請求項16に記載の画像処理装置において、特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量、前記硬さ算出部により算出された硬さの補正値及び前記硬さ・明るさ算出部により算出された硬さの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記視差画像の視差量、前記明るさ算出部により算出された明るさの補正値及び前記硬さ・明るさ算出部により算出された明るさの補正値に基づいて、前記鑑賞画像データの明るさの補正値を決定することを特徴としている。
【0042】
請求項20に記載の発明は、請求項16に記載の画像処理装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0043】
請求項21に記載の発明は、請求項17に記載の画像処理装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0044】
請求項22に記載の発明は、請求項19に記載の画像処理装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0045】
請求項23に記載の発明は、請求項17、19、21、22の何れか一項に記載の画像処理装置において、前記特定の被写体の種類及び撮影条件の組み合わせにおいて、被写体の種類がポートレートであり、撮影条件が逆光であることを特徴としている。
【0046】
請求項24に記載の発明は、請求項18、20〜22の何れか一項に記載の画像処理装置において、前記硬さの補正値が0である場合の彩度の調整量は、鑑賞画像参照データの彩度を強調する値であることを特徴としている。
【0047】
請求項25に記載の発明は、請求項16、17、19〜24の何れか一項に記載の画像処理装置において、前記被写体の種類には、少なくともポートレート、風景、静物が含まれることを特徴としている。
【0048】
請求項26に記載の発明は、請求項16、17、19〜25の何れか一項に記載の画像処理装置において、前記撮影条件には、少なくとも逆光、ストロボ撮影が含まれることを特徴としている。
【0049】
請求項27に記載の発明は、請求項15〜26の何れか一項に記載の画像処理装置において、前記階調変換曲線の入出力値がL*である場合、前記特定領域中の所定の位置は、入力L*が40以上50未満の位置であることを特徴としている。
【0050】
請求項28に記載の発明は、請求項15〜27の何れか一項に記載の画像処理装置において、前記予め出力媒体毎に定義された階調変換曲線の硬さと明るさの初期値が、ユーザ別に記憶されていることを特徴としている。
【0051】
請求項29に記載の発明は、シーン参照画像データに、出力媒体上での鑑賞画像形成のために最適化する画像処理を施して鑑賞画像参照データを生成し、生成された鑑賞画像データを出力媒体上に形成する画像記録装置において、前記シーン参照画像データが視差画像であるか否かを判定する判定部と、前記判定部により、前記シーン参照画像データが視差画像であると判定された場合、当該視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定する補正値決定部と、予め出力媒体毎に定義された、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を、前記決定された硬さの補正値に基づいて変更する第1の変更部と、前記階調変換曲線を、前記決定された明るさの補正値に基づいて変更する第2の変更部と、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線に基づいて鑑賞画像参照データを生成する生成部と、を備え、前記第1の変更部は、前記階調変換曲線上の所定の位置を含む特定領域を不動領域として、前記決定された硬さの補正値に基づいて当該階調変換曲線の形状を変更し、前記第2の変更部は、前記特定領域が予め定義された曲線上を移動するように、前記決定された明るさの補正値に基づいて当該階調変換曲線の形状を変更することを特徴としている。
【0052】
請求項30に記載の発明は、請求項29に記載の画像記録装置において、被写体の種類に応じて、前記鑑賞画像参照データの硬さの補正値を算出する硬さ算出部と、撮影条件に応じて、前記鑑賞画像参照データの明るさの補正値を算出する明るさ算出部と、を備え、前記補正値決定部は、前記硬さ算出部により算出された硬さの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記明るさ算出部により算出された明るさの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの明るさの補正値を決定することを特徴としている。
【0053】
請求項31に記載の発明は、請求項29に記載の画像記録装置において、特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量と、前記硬さ・明るさ算出部により算出された硬さの補正値及び明るさの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定することを特徴としている。
【0054】
請求項32に記載の発明は、請求項29に記載の画像記録装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記決定された彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0055】
請求項33に記載の発明は、請求項30に記載の画像記録装置において、特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量、前記硬さ算出部により算出された硬さの補正値及び前記硬さ・明るさ算出部により算出された硬さの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記視差画像の視差量、前記明るさ算出部により算出された明るさの補正値及び前記硬さ・明るさ算出部により算出された明るさの補正値に基づいて、前記鑑賞画像データの明るさの補正値を決定することを特徴としている。
【0056】
請求項34に記載の発明は、請求項30に記載の画像記録装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0057】
請求項35に記載の発明は、請求項31に記載の画像記録装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0058】
請求項36に記載の発明は、請求項33に記載の画像記録装置において、前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴としている。
【0059】
請求項37に記載の発明は、請求項31、33、35、36の何れか一項に記載の画像記録装置において、前記特定の被写体の種類及び撮影条件の組み合わせにおいて、被写体の種類がポートレートであり、撮影条件が逆光であることを特徴としている。
【0060】
請求項38に記載の発明は、請求項32、34〜36の何れか一項に記載の画像記録装置において、前記硬さの補正値が0である場合の彩度の調整量は、鑑賞画像参照データの彩度を強調する値であることを特徴としている。
【0061】
請求項39に記載の発明は、請求項30、31、33〜38の何れか一項に記載の画像記録装置において、前記被写体の種類には、少なくともポートレート、風景、静物が含まれることを特徴としている。
【0062】
請求項40に記載の発明は、請求項30、31、33〜39の何れか一項に記載の画像記録装置において、前記撮影条件には、少なくとも逆光、ストロボ撮影が含まれることを特徴としている。
【0063】
請求項41に記載の発明は、請求項29〜40の何れか一項に記載の画像記録装置において、前記階調変換曲線の入出力値がL*である場合、前記特定領域中の所定の位置は、入力L*が40以上50未満の位置であることを特徴としている。
【0064】
請求項42に記載の発明は、請求項29〜41の何れか一項に記載の画像記録装置において、前記予め出力媒体毎に定義された階調変換曲線の硬さと明るさの初期値が、ユーザ別に記憶されていることを特徴としている。
【0065】
本発明によれば、シーン参照画像データが視差画像である場合、その視差画像の視差量に基づいて硬さ補正値及び明るさ補正値を決定し、その硬さ補正値及び明るさ補正値に基づいて、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を調整するようにしたことにより、立体視表示の画像の画質を向上させることができる。また、階調変換曲線上の所定の位置を含む特定領域を不動領域として、階調変換曲線の形状を変更することによって鑑賞画像参照データの硬さを調整し、特定領域が予め定義された曲線状を移動するように、階調変換曲線の形状を変更することによって鑑賞画像参照データの明るさを調整することにより、階調変換曲線の設定作業の効率化を図ることができる。また、明るさ変動が抑制された、鑑賞画像参照データの硬さ調整が可能になる。更に、硬さ変動が抑制された、鑑賞画像参照データの明るさ調整が可能になる。
【0066】
また、被写体の種類に応じて鑑賞画像参照データの硬さを調整し、撮影条件に応じて鑑賞画像参照データの明るさを調整することにより、階調変換曲線の設定作業を効率化することができる。また、特定の被写体の種類及び撮影条件の組み合わせに応じて鑑賞画像参照データの硬さ及び明るさを調整することにより、階調変換曲線の設定作業を更に効率化することができる。
【0067】
更に、鑑賞画像参照データの硬さの補正値に応じて、当該鑑賞画像参照データの彩度を調整可能にしたことにより、階調変換曲線の設定作業が効率化されるとともに、好ましい鑑賞画像参照データを得ることができる。
【0068】
次に、本発明において使用される用語について詳細に説明する。
【0069】
本発明の記載において「生成」とは、本発明の画像処理方法、画像処理装置及び画像記録装置内において作用するプログラム及び処理回路が、画像信号を新たに作り出すことである。なお「作成」を同義語として用いることもある。
【0070】
また、「シーン参照画像データ」とは、少なくとも撮像素子自体の分光感度に基づく各色チャンネルの信号強度を上述のRIMM RGBやERIMM RGB等の標準色空間にマッピング済みであり、階調変換、鮮鋭性強調、彩度強調のような画像鑑賞時の効果を向上するためにデータ内容を改変する画像処理が省略された状態の画像データを意味する。またシーン参照画像データは、撮像装置の光電変換特性(opto-electronic conversion function、例えば、コロナ社「ファインイメージングとディジタル写真」(社)日本写真学会出版委員会編449頁参照。)の補正を行ったものであることが好ましい。標準化されたシーン参照画像データの情報量(例えば階調数)は、A/D変換器の性能に準じ、鑑賞画像参照データで必要とされる情報量(例えば階調数)と同等以上であることが好ましい。例えば、鑑賞画像参照データの階調数が1チャンネルあたり8bitである場合、シーン参照画像データの階調数は12bit以上が好ましく、14bit以上がより好ましく、16bit以上が更に好ましい。
【0071】
また、「鑑賞画像参照データ」とは、CRT、液晶ディスプレイ、プラズマディスプレイ、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の「出力媒体」上のハードコピー画像生成に用いるデジタル画像データを意味する。CRT、液晶ディスプレイ、プラズマディスプレイ等の表示デバイスと、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の出力媒体上において、最適な画像が得られるよう「最適化処理」が施されている。
【0072】
また、「最適化する画像処理」とは、CRT、液晶ディスプレイ、プラズマディスプレイ等の表示デバイスや、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の出力媒体上において、最適な画像を得るための処理であり、例えば、sRGB規格に準拠したCRTディスプレイモニタに表示することを前提とした場合、sRGB規格の色域内で最適な色再現が得られるように処理される。また、銀塩印画紙への出力を前提とした場合、銀塩印画紙の色域内で最適な色再現が得られるように処理される。また色域の圧縮の以外にも、16bitから8bitへの階調圧縮、出力画素数の低減及び出力デバイスの出力特性(LUT)への対応処理等も含まれる。更に、ノイズ抑制、鮮鋭化、カラーバランス調整、彩度調整、覆い焼き処理等の画像処理が行われることは言うまでもない。
【0073】
また、「出力媒体」とは、CRT、液晶ディスプレイ、プラズマディスプレイ等の表示デバイスや、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙などである。
【0074】
また、「視差画像」とは、撮像装置により撮影された、ステレオペアによる立体視表示に必要な、少なくとも2点の異なる視点から撮影されたデジタル画像データである。視差画像の取得には、下記の2つの方法が挙げられる。▲1▼1台の撮像装置の位置を変えて、少なくとも2回の撮影によって取得する方法。▲2▼2台の撮像装置を所定の間隔で配置し、各々の撮像装置の1回の撮影により取得する方法。▲3▼所定の間隔で配置された2つの撮像光学系を有する1台の撮像装置の撮影により取得する方法。
【0075】
視差画像は、異なる視点から撮影されたデジタル画像データ毎に、個々に保存されていてもよいが、1つの視差画像に、他の視差画像の差分データを添付するように保存されることが好ましい。視差画像が個々に保存されている場合には、1つの被写体に対する視差画像を特定するための情報が添付されていることが好ましい。1つの視差画像に、他の視差画像の差分データが添付されている場合には、当該1つの視差画像に、差分データが添付されていることを示す情報を添付するのが好ましい。
【0076】
また、「階調変換曲線」とは、「シーン参照画像データ」を「鑑賞画像参照データ」への変換するための入出力変換曲線(「Look Up Table」、以下単に「LUT」と称す。)であり、横軸に入力L*、縦軸に出力L*で表されるグラフ上の曲線として、図1のように表される。図1において、入力L*、被写体の明度(輝度)値であり、CCD出力のリニア部に対して正比例する。出力L*は、入力L*をsRGB色空間にマッピングしたとき、所定の明度(輝度)計算式により得られる値を用いて階調変換した値である。
【0077】
また、「予め出力媒体毎に定義された、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線」とは、CRT、液晶ディスプレイ、プラズマディスプレイ等の表示デバイス、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙などの種類毎に、「階調変換曲線」が用意されていることを意味する。
【0078】
また、「階調変換曲線上の所定の位置を含む特定領域」とは、図2に示すように、シーン参照画像データから鑑賞画像参照データへ変換する階調変換曲線上の点を含む一定の領域を示す。ここで、「所定の位置」は、請求項13、27、41に記載したように、入力L*が40以上50未満の位置であることが好ましい。
【0079】
「特定領域」の範囲、「特定領域」と「所定の位置」との関係は、階調変換曲線の形状を変更する関係式に依存する。ユーザによって入力される「硬さの補正値」(硬さ調整パラメータ)を用いて階調変換曲線の形状を変更する関係式を定義する際には、「所定の位置」が、「特定領域」の中心となり、特定領域の範囲が極力小さくなるよう配慮することが好ましい。特に、特定領域の範囲が、入出力L*でΔ10以下が好ましく、5以下が更に好ましい。なお、硬さ調整パラメータは1つであることが好ましい。
【0080】
「特定領域を不動領域として、前記硬さの補正値に基づいて当該階調変換曲線の形状が変更され(形状を変更し)」とは、図2に示すように、特定領域内の階調変換曲線上の少なくとも一点について入出力値を固定し、硬さを調整することによりS字上のカーブ形状を再現するものである。硬さを硬く設定した場合には、特定領域を通過する階調変換曲線上の点における傾きが大きくなる。なお、図2中の1は「所定の位置」を表し、2は「特定領域」を表す。本発明において、図2の入力L*=0の出力値はL*=0に固定され、入力L*=100の出力値はL*=100に固定されていることが好ましい。このように不動領域を設定することにより、明るさ変動の抑制された、鑑賞画像参照データの硬さ調整が可能となる。
【0081】
また、「特定領域が予め定義された曲線上を移動するように、前記明るさの補正値に基づいて当該階調変換曲線の形状が変更され(形状を変更し)」とは、図3に示すように、明るさを変更しても、特定領域は常に予め決められた放物線状の移動軌跡上にあるように、階調変換曲線の形状を設定することを意図するものである。なお、図3中の4は明るさ調整前の初期状態における「所定の位置」を示し、3は明るさを明るく調整したときの「所定の位置」を示し、5は明るさを暗く調整したときの「所定の位置」を示す。
【0082】
ユーザによって入力される「明るさの補正値」(明るさ調整パラメータ)を用いて階調変換曲線の形状を変更する関係式を定義する際には、移動軌跡上からのずれ量がなるべく小さくなるようにすることが好ましい。また、本発明において、図3の入力L*=0の出力値はL*=0に固定され、入力L*=100の出力値はL*=100に固定されていることが好ましい。なお、明るさ調整パラメータは一つであることが好ましい。このように移動軌跡を設定することにより、硬さの変動の抑制された、鑑賞画像参照データの明るさ調整が可能となる。
【0083】
また、「被写体の種類に応じて、前記鑑賞画像参照データの硬さの補正値を算出する」とは、被写体の種類毎に異なる硬さに調整することであり、具体的には、予め被写体の種類毎に異なる数値で設定しておき、自動的に判別又はオペレータがマニュアル操作で入力した被写体(主要被写体)の種類情報に従って、硬さを補正(調整)することである。これは、ポートレート、屋外等の被写体の種類の違いによって、硬さが調整されることが多いという、硬さ調整因子に関する調査から得た知見に基づくものである。本発明においては、請求項11、25、39に記載したように、被写体の種類に、少なくともポートレート、風景、静物が含まれていることが好ましい。
【0084】
なお、本発明の記載において「被写体の種類」とは、撮影者が意図して撮影するものに対する区分を示す。また、本発明の記載において「ポートレート」とは、顔の占める領域が、画面全体の20%以上である被写体を示す。また、本発明の記載において「風景」とは、屋外における撮影シーンであり、且つ、空、木々の緑、山並み等の自然が被写体である場合を示す。また、本発明の記載において「静物」とは、生物以外の物が占める領域が、画面全体の50%以上である被写体を示す。
【0085】
なお、「被写体の種類」は、画質を主観的により好ましいものに最適化する指標として用いることができる。例えば、人物と風景(静物)とでは、鮮鋭性、平滑性、彩度値及び階調性において、最適値が異なることが知られている。また、視差量と、被写体距離と、被写体種類の情報を組み合わせることにより、画質向上の効果を更に高めることができる。例えば、被写体が人物である場合には、階調の軟調化、平滑化処理、彩度強調の程度を、視差量の値、即ち、人物の大きさに応じて調整する。被写体が建物である場合は、階調の硬調化、鮮鋭化処理、彩度低下の程度を、視差量の値、即ち、建物の大きさに応じて調整する。
【0086】
また、「撮影条件に応じて、前記鑑賞画像参照データの明るさの補正値を決定する」とは、撮影条件毎に異なる明るさに調整することであり、具体的には、予め撮影条件毎に異なる数値で設定しておき、自動的に判別又はオペレータがマニュアル操作で入力した撮影条件の情報に従って、明るさ調整することである。これは、ストロボ、逆光などの撮影条件による違いによって、明るさ調整されることが多いという、明るさ調整因子に関する調査から得た知見に基づくものである。本発明においては、請求項12、26、40に記載したように、撮影条件に、少なくとも逆光、ストロボが含まれていることが好ましい。このように、被写体の種類に応じて鑑賞画像参照データの硬さを調整し、撮影条件に応じて鑑賞画像参照データの明るさを調整するようにしたことで、階調変換曲線の変更を効率化することができる。
【0087】
本発明の記載において「撮影条件」とは、主に撮影時の光源状態に関する条件を示す。また、本発明の記載において「逆光」とは、太陽の位置が、撮影者の正面から左右45度以内ある晴天時の撮影条件を示す。また、本発明の記載において「ストロボ」とは、ストロボを使用して撮影する撮影条件を示す。
【0088】
また、「特定の被写体の種類と撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定する」とは、予め特定の被写体と撮影条件の組み合わせを設定しておき、この組み合わせに該当する撮影画像データに関しては、特殊な条件で硬さ、明るさの調整処理を施すことに対応する。これは、上述の硬さと明るさの調整を支配する要因に関し調査を実施した視覚実験において、特定の被写体と撮影条件との組み合わせにおいて、著しく大きな硬さの補正値及び明るさの補正値が存在するという知見に基づくものである。
【0089】
また、「硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する」とは、硬さの補正値に応じて、彩度調整量(%)が決定されるよう、予め関係式を定義しておくことである。これは、上述の硬さと明るさの調整を支配する要因に関し調査を実施した視覚実験において得られた、硬さ補正値と彩度調整量は相関するという知見に基づくものである。また、鑑賞画像参照データからの硬さ補正値が0のときの彩度調整量は、+10%が最も多いという結果も得られている。このため、請求項10、24、38に記載したように、硬さの補正値が0であるときの彩度調整量は、彩度強調を施す設定であることが好ましい。
【0090】
なお、本発明の「画像記録装置」は、撮像装置により取得されるデジタル画像データに対し、本発明の画像処理を施す機構以外にも、カラーネガフィルム、カラーリバーサルフィルム、白黒ネガフィルム、白黒リバーサルフィルム等、アナログカメラにより記録された写真感光材料の駒画像情報を入力するフィルムスキャナ、銀塩印画紙であるカラーペーパー上に再現された画像情報を入力するフラットベットスキャナを備えていてもよい。また、コンパクトフラッシュ(登録商標)、メモリースティック(登録商標)、スマートメディア(登録商標)、マルチメディアカード(登録商標)、フロッピー(登録商標)ディスク、光磁気記憶媒体(MO)、CD−R等、公知のあらゆる可搬式の「メディア」に保存されたデジタル画像データを読み取る手段や、ネットワークなどの通信手段を介してデジタル画像データを遠隔地より取得し、CRT、液晶ディスプレイ、プラズマディスプレイ等の表示デバイス、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等、公知のあらゆる「出力媒体」に鑑賞画像を形成する処理手段とを備えていてもよい。
【0091】
【発明の実施の形態】
以下、図を参照して本発明の実施の形態を詳細に説明する。
まず、構成を説明する。
【0092】
〈画像記録装置1の外観構成〉
まず、画像記録装置1の構成を説明する。
【0093】
図4は、本発明の実施の形態における画像記録装置1の外観構成を示す斜視図である。画像記録装置1は、図4に示すように、筐体2の一側面に、感光材料を装填するためのマガジン装填部3が備えられている。筐体2の内側には、感光材料に露光する露光処理部4と、露光された感光材料を現像処理して乾燥し、プリントを作成するためのプリント作成部5が備えられている。筐体2の他側面には、プリント作成部5で作成されたプリントを排出するためのトレー6が備えられている。
【0094】
また、筐体2の上部には、表示装置としてのCRT(Cathode Ray Tube)8、透過原稿を読み込む装置であるフィルムスキャナ部9、反射原稿入力装置10、操作部11が備えられている。このCRT8が、プリントを作成しようとする画像情報の画像を画面に表示する表示手段を構成している。更に、筐体2には、各種デジタル記録媒体に記録された画像情報を読み取り可能な画像読込部14、各種デジタル記録媒体に画像信号を書き込み(出力)可能な画像書込部15が備えられている。また、筐体2の内部には、これらの各部を集中制御する制御部7が備えられている。
【0095】
画像読込部14には、PCカード用アダプタ14a、フロッピー(登録商標)ディスク用アダプタ14bが備えられ、PCカード13aやフロッピー(登録商標)ディスク13bが差し込み可能になっている。PCカード13aは、例えば、デジタルカメラで撮像された複数の駒画像データが記録されたメモリを有する。フロッピー(登録商標)ディスク13bには、例えば、デジタルカメラで撮像された複数の駒画像データが記録される。PCカード13a及びフロッピー(登録商標)ディスク13b以外に駒画像データが記録される記録媒体としては、例えば、マルチメディアカード(登録商標)、メモリースティック(登録商標)、MDデータ、CD−ROM等がある。
【0096】
画像書込部15には、フロッピー(登録商標)ディスク用アダプタ15a、MO用アダプタ15b、光ディスク用アダプタ15cが備えられ、それぞれ、FD16a、MO16b、光ディスク16cが差し込み可能になっている。光ディスク16cとしては、CD−R、DVD−R等がある。
【0097】
なお、図4では、操作部11、CRT8、フィルムスキャナ部9、反射原稿入力装置10、画像読込部14が、筐体2に一体的に備えられた構造となっているが、これらの何れか1つ以上を別体として設けるようにしてもよい。
【0098】
また、図4に示した画像記録装置1では、感光材料に露光して現像してプリントを作成するものが例示されているが、プリント作成方式はこれに限定されず、例えば、インクジェット方式、電子写真方式、感熱方式、昇華方式等の方式を用いてもよい。
【0099】
〈画像記録装置1の内部構成〉
図5は、画像記録装置1の内部構成を示すブロック図である。画像記録装置1は、図5に示すように、制御部7、露光処理部4、プリント生成部5、フィルムスキャナ部9、反射原稿入力装置10、画像読込部14、通信手段(入力)32、画像書込部15、データ蓄積手段71、テンプレート記憶手段72、操作部11、CRT8、通信手段(出力)33から構成される。
【0100】
制御部7は、マイクロコンピュータにより構成され、ROM(Read Only Memory)等の記憶部(図示略)に記憶されている画像処理プログラム等の各種制御プログラムと、CPU(Central Processing Unit)(図示略)との協働により、画像記録装置1を構成する各部の動作を制御する。
【0101】
制御部7は、本発明の画像処理装置に係る画像処理部70を有し、操作部12からの入力信号(指令情報)に基づいて、フィルムスキャナ部9や反射原稿入力装置10から読み取られた画像信号、画像読込部14から読み込まれた画像信号、外部機器から通信手段32を介して入力された画像信号に対して、本発明の画像処理を施して露光用画像情報を形成し、露光処理部4に出力する。また、画像処理部70は、画像処理された画像信号に対して出力形態に応じた変換処理を施して出力する。画像処理部70の出力先としては、CRT8、画像書込部15、通信手段(出力)33等がある。
【0102】
露光処理部4は、感光材料に画像の露光を行い、この感光材料をプリント作成部5に出力する。プリント作成部5は、露光された感光材料を現像処理して乾燥し、プリントP1、P2、P3を作成する。プリントP1は、サービスサイズ、ハイビジョンサイズ、パノラマサイズ等のプリントであり、プリントP2は、A4サイズのプリントであり、プリントP3は、名刺サイズのプリントである。
【0103】
フィルムスキャナ部9は、アナログカメラにより撮像された現像済みのネガフィルムN、リバーサルフィルム等の透過原稿に記録された駒画像を読み取り、駒画像のデジタル画像信号を取得する。反射原稿入力装置10は、フラットベットスキャナにより、プリントP(写真プリント、書画、各種の印刷物)上の画像を読み取り、デジタル画像信号を取得する。
【0104】
画像読込部14は、PCカード13aやフロッピー(登録商標)ディスク13bに記録された駒画像情報を読み出して制御部7に転送する。この画像読込部14は、画像転送手段30として、PCカード用アダプタ14a、フロッピー(登録商標)ディスク用アダプタ14b等を有する。画像読込部14は、PCカード用アダプタ14aに差し込まれたPCカード13aや、フロッピー(登録商標)ディスク用アダプタ14bに差し込まれたフロッピー(登録商標)ディスク13bに記録された駒画像情報を読み取り、制御部7に転送する。PCカード用アダプタ14aとしては、例えばPCカードリーダやPCカードスロット等が用いられる。
【0105】
通信手段(入力)32は、画像記録装置1が設置された施設内の別のコンピュータや、インターネット等を介した遠方のコンピュータから、撮像画像を表す画像信号やプリント命令信号を受信する。
【0106】
画像書込部15は、画像搬送部31として、フロッピー(登録商標)ディスク用アダプタ15a、MO用アダプタ15b、光ディスク用アダプタ15cを備えている。画像書込部15は、制御部7から入力される書込信号に従って、フロッピー(登録商標)ディスク用アダプタ15aに差し込まれたフロッピー(登録商標)ディスク16a、MO用アダプタ15bに差し込まれたMO16b、光ディスク用アダプタ15cに差し込まれた光ディスク16cに、本発明における画像処理方法によって生成された画像信号を書き込む。
【0107】
データ蓄積手段71は、画像情報とそれに対応する注文情報(どの駒の画像から何枚プリントを作成するかの情報、プリントサイズの情報等)とを記憶し、順次蓄積する。
【0108】
テンプレート記憶手段72は、サンプル識別情報D1、D2、D3に対応するサンプル画像データである背景画像、イラスト画像等と合成領域を設定する少なくとも1個のテンプレートのデータを記憶している。オペレータの操作によりセットしてテンプレート記憶手段72に予め記憶された複数のテンプレートから所定のテンプレートを選択し、駒画像情報は選択されたテンプレートにより合成し、指定されるサンプル識別情報D1、D2、D3に基づいて選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成する。このテンプレートによる合成は、周知のクロマキー法によって行なわれる。
【0109】
なお、プリントのサンプルを指定するサンプル識別情報D1、D2、D3は、操作部211から入力されるように構成されているが、これらのサンプル識別情報は、プリントのサンプル又は注文シートに記録されているため、OCR等の読み取り手段により読み取ることができる。或いは、オペレータのキーボード操作により入力することもできる。
【0110】
このようにプリントのサンプルを指定するサンプル識別情報D1に対応してサンプル画像データを記録しておき、プリントのサンプルを指定するサンプル識別情報D1を入力し、この入力されるサンプル識別情報D1に基づきサンプル画像データを選択し、この選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成するため、種々の実物大のサンプルをユーザが実際に手にしてプリントの注文ができ、幅広いユーザの多様な要求に応じることができる。
【0111】
また、第1のサンプルを指定する第1のサンプル識別情報D2と第1のサンプルの画像データを記憶し、また、第2のサンプルを指定する第2のサンプル識別情報D3と第2のサンプルの画像データを記憶し、指定される第1及び第2のサンプル識別情報D2、D3とに基づいて選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成するため、さらに多種多様の画像を合成することができ、より一層幅広いユーザの多様な要求に応じたプリントを作成することができる。
【0112】
操作部11は、情報入力手段12を有する。情報入力手段12は、例えば、タッチパネル等により構成されており、情報入力手段12の押下信号を入力信号として制御部7に出力する。なお、操作部11は、キーボードやマウス等を備えて構成するようにしてもよい。CRT8は、制御部7から入力された表示制御信号に従って、画像情報等を表示する。
【0113】
通信手段(出力)33は、本発明の画像処理を施した後の撮影画像を表す画像信号と、それに付帯するオーダー情報を、画像記録装置1が設置された施設内の他のコンピュータや、インターネット等を介した遠方のコンピュータに対して送信する。
【0114】
図5に示すように、画像記録装置1は、各種デジタルメディアの画像及び画像原稿を分割測光して得られた画像情報を取り込む画像入力手段と、画像処理手段と、処理済の画像を表示、プリント出力、画像記録メディアに書き込む画像出力手段と、通信回線を介して施設内の別のコンピュータやインターネット等を介した遠方のコンピュータに対して画像データと付帯するオーダー情報を送信する手段と、を備える。
【0115】
次に、図5の画像処理部70で実行される処理について、実施例1〜実施例4を挙げて説明する。
【0116】
[実施例1]
まず、実施例1における構成を説明する。
【0117】
〈画像処理部の構成〉
図6は、請求項29に記載の発明に係る画像処理部70の機能的構成を示すブロック図である。画像処理部70は、図6に示すように、画像調整処理部701、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、テンプレート処理部705、CRT固有処理部706、プリンタ固有処理部▲1▼707、プリンタ固有処理部▲2▼708、画像データ作成処理部709、ヘッダ情報解析部102、装置特性補正処理部103a、処理条件テーブル103b、シーン参照画像データ生成部104、鑑賞画像参照データ生成部107、階調変換曲線データメモリ116、硬さ・明るさ設定入力部109、視差量・補正値算出部119により構成される。
【0118】
フィルムスキャンデータ処理部702は、フィルムスキャナ部9から入力された画像データに対し、フィルムスキャナ部9固有の校正操作、ネガポジ反転(ネガ原稿の場合)、ゴミキズ除去、グレーバランス調整、コントラスト調整、粒状ノイズ除去、鮮鋭化強調等の処理を施し、処理済の画像データを画像調整処理部701に出力する。また、フィルムサイズ、ネガポジ種別、フィルムに光学的或いは磁気的に記録された主要被写体に関わる情報、撮影条件に関する情報(例えば、APSの記載情報内容)等も併せて画像調整処理部701に出力する。
【0119】
反射原稿スキャンデータ処理部703は、反射原稿入力装置10から入力された画像データに対し、反射原稿入力装置10固有の校正操作、ネガポジ反転(ネガ原稿の場合)、ゴミキズ除去、グレーバランス調整、コントラスト調整、ノイズ除去、鮮鋭化強調等の処理を施し、処理済の画像データを画像調整処理部701に出力する。
【0120】
画像データ書式解読処理部704は、画像転送手段30及び/又は通信手段(入力)32から入力された画像データに対し、その画像データのデータ書式に従って、必要に応じて圧縮符号の復元、色データの表現方法の変換等の処理を施し、画像処理部70内の演算に適したデータ形式に変換し、画像調整処理部701に出力する。また、画像データ書式解読処理部704は、操作部11、通信手段(入力)32、画像転送手段30の何れかから出力画像の大きさが指定された場合、その指定された情報を検出し、画像調整処理部701に出力する。なお、画像転送手段30により指定される出力画像の大きさについての情報は、画像転送手段30が取得した画像データのヘッダ情報、タグ情報に埋め込まれている。
【0121】
画像調整処理部701は、操作部11又は制御部7の指令に基づいて、フィルムスキャナ部9、反射原稿入力装置10、画像転送手段30、通信手段(入力)32、テンプレート処理部705から受け取った画像データに対して、後述する方法で、出力メディア上で画像を観察する際に好ましい印象を与える画像処理を施して出力用のデジタル画像データを生成し、CRT固有処理部706、プリンタ固有処理部▲1▼707、プリンタ固有処理部▲2▼708、画像データ作成処理部709、データ蓄積手段71に出力する。この画像処理において、画像調整処理部701は、操作部11及び制御部7からの指令に基づいて、階調変換曲線データメモリ116から、出力デバイス及び出力メディアに適合する鑑賞画像参照データを作成するための階調変換曲線データを読み出し、鑑賞画像参照データ生成部107に出力する。
【0122】
テンプレート処理部705は、画像調整処理部701からの指令に基づいて、テンプレート記憶手段72から所定の画像データ(テンプレート)を読み出して、画像処理対象の画像データとテンプレートを合成するテンプレート処理を行い、テンプレート処理後の画像データを画像調整処理部701に出力する。
【0123】
ヘッダ情報解析部102は、画像データ書式解読処理部704によって、画像データが、画像転送手段30又は通信手段(入力)32から入力されたことが判別された場合、撮像装置特性補正データを解読する。
【0124】
装置特性補正処理部103aは、処理条件テーブル103bを参照し、撮像装置特性補正データから、画像処理条件を決定する。シーン参照画像データ生成部104は、装置特性補正処理部103aにより決定された画像処理条件に従って、シーン参照画像データを生成する。また、シーン参照画像データ生成部104は、生成されたシーン参照画像データが視差画像であるか否かを判定し、判定結果を視差量・補正値算出部119に出力する。
【0125】
視差量・補正値算出部119は、シーン参照画像データ生成部104から、シーン参照画像データが視差画像であるという判定結果が入力された場合、その視差画像から視差量を算出し、その視差量に応じた硬さ補正値及び明るさ補正値(図8参照)を算出する。
【0126】
鑑賞画像参照データ生成部107は、階調変換曲線データとシーン参照画像データから鑑賞画像参照データを生成する。また、鑑賞画像参照データ生成部107は、硬さ・明るさ設定入力部109より指定された硬さ補正値及び明るさ補正値と、視差量・補正値算出部119により算出された硬さ補正値及び明るさ補正値から、実際に階調変換曲線を修正するための硬さ補正値及び明るさ補正値を決定し、決定された硬さ補正値及び明るさ補正値に基づき、階調変換曲線データメモリ116から読み出した階調変換曲線に修正(変更)処理を施して、再度、鑑賞画像参照データを生成する。
【0127】
CRT固有処理部706は、画像調整処理部701から入力された画像データに対して、必要に応じて画素数変更やカラーマッチング等の処理を施し、制御情報等表示が必要な情報と合成した表示用の画像データをCRT8に出力する。
【0128】
プリンタ固有処理部▲1▼707は、必要に応じてプリンタ固有の校正処理、カラーマッチング、画素数変更等の処理を行い、処理済の画像データを露光処理部4に出力する。
【0129】
本発明の画像記録装置1に、大判インクジェットプリンタ等の外部プリンタ51が接続可能な場合には、接続するプリンタ装置毎にプリンタ固有処理部▲2▼708が備えられている。このプリンタ固有処理部▲2▼708は、プリンタ固有の校正処理、カラーマッチング、画素数変更等の処理を施し、処理済の画像データを外部プリンタ51に出力する。
【0130】
画像データ書式作成処理部709は、画像調整処理部701から入力された画像データに対して、必要に応じてJPEG、TIFF、Exif等に代表される各種の汎用画像フォーマットへの変換を施し、処理済の画像データを画像搬送部31や通信手段(出力)33に出力する。
【0131】
なお、鑑賞画像参照データ生成部107において作成される画像データは、CRT固有処理部706、プリンタ固有処理部▲1▼707、プリンタ固有処理部▲2▼708、画像データ作成処理部709における処理を前提としたものであり、画像データ作成処理部709においては、鑑賞画像参照データの書式に基づき、CRT用、露光出力部用、外部プリンタ用、通信手段(出力)用等、最適化した画像データであることを示すステータスファイルを添付した上で、個々に画像搬送部31に出力することが可能である。
【0132】
図6に示した、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、画像調整処理部701、CRT固有処理部706、プリンタ固有処理部▲1▼707、プリンタ固有処理部▲2▼708、画像データ作成処理部709、という区分は、画像処理部70の機能の理解を助けるために設けた区分であり、必ずしも物理的に独立したデバイスとして実現される必要はなく、例えば、単一のCPUにおけるソフトウエア処理の種類の区分として実現されてもよい。
【0133】
また、ヘッダ情報解析部102、装置特性補正処理部103a、撮影情報データ処理部106、シーン参照画像データ生成部104、鑑賞画像参照データ生成部107、という区分も、画像処理部70における本発明の機能の理解を助けるために設けた区分であり、必ずしも物理的に独立したデバイスとして実現される必要はなく、例えば、単一のCPUにおけるソフトウエア処理の種類の区分として実現されてもよい。
【0134】
〈画像処理装置の構成〉
次に、図7のブロック図を参照して、請求項15に記載の発明に係る画像処理装置115について説明する。画像処理装置115は、図6の画像処理部70の一部分を構成するもので、図7に示すように、入力部101、ヘッダ情報解析部102、第1処理部113及び第2処理部114により構成される。第1処理部113には、ヘッダ情報解析部102が接続され、第2処理部114には、記憶デバイス110、出力デバイス111、表示デバイス112が接続される。
【0135】
入力部101は、撮像装置によって記録された画像データを記憶メディアから読み出す。ヘッダ情報解析部102は、入力部101から読み出された画像データのヘッダ情報を解析し、当該画像データに添付された撮像装置特性補正データと被写体情報とに分ける。
【0136】
第1処理部113は、装置特性補正処理部103a、処理条件テーブル103b、シーン参照画像データ生成部104、一時記憶メモリ105、視差量・補正値算出部119により構成される。
【0137】
装置特性補正処理部103aは、処理条件テーブル103bを参照し、撮像装置特性補正データから、シーン参照画像データの生成条件を決定し、その決定されたシーン参照画像データ生成条件をシーン参照画像データ生成部103に出力する。
【0138】
シーン参照画像データ生成部104は、装置特性補正処理部103aにより決定されたシーン参照画像データ生成条件に従って、画像処理対象の画像データから、撮像装置特性補正処理が施されたシーン参照画像データを生成する。また、シーン参照画像データ生成部104は、画像処理対象の画像データのタグ情報から、生成されたシーン参照画像データが視差画像であるか否かを判定し、判定結果を視差量・補正値算出部119に出力する。一時記憶メモリ105は、シーン参照画像データ生成部104により生成されたシーン参照画像データを一時的に記憶する。
【0139】
視差量・補正値算出部119は、シーン参照画像データ生成部104から、シーン参照画像データが視差画像であるという判定結果が入力された場合、当該視差画像から視差量を算出し、図8(a)に示す視差量と硬さ補正値の関係から、算出された視差量に応じた硬さ補正値を算出する。また、視差量・補正値算出部119は、図8(b)に示す視差量と明るさ補正値の関係から、算出された視差量に応じた明るさ補正値を算出する。図8(a)では、視差量が大きいほど(即ち、被写体が近いほど)、階調を硬調化するように硬さ補正値が設定されている。図8(b)では、視差量が大きいほど(即ち、被写体が近いほど)、画像を明るくするように明るさ補正値が設定されている。視差量の算出方法の詳細は、後に図9〜図11を参照して説明する。なお、シーン参照画像データのタグ情報に、視差画像の視差量が書き込まれていてもよい。
【0140】
設定入力部(図示略)は、デジタル画像データを出力する記憶デバイス110、出力デバイス111、表示デバイス112の種類に関する操作情報を、第2処理部114の鑑賞画像参照データ生成部107に出力する。
【0141】
第2処理部114は、階調変換曲線データメモリ116、硬さ・明るさ設定入力部109、鑑賞画像参照データ生成部107、一時記憶メモリ108により構成される。
【0142】
階調変換曲線データメモリ116は、出力媒体毎に、階調変換曲線データ、特定領域データ、移動軌跡データを記憶する。
【0143】
硬さ・明るさ設定入力部109は、鑑賞画像参照データの硬さ補正値、明るさ補正値を入力するための入力デバイスを備える。
【0144】
鑑賞画像参照データ生成部107は、一時記憶メモリ105に記憶されたシーン参照画像データが読み出され、設定入力部(図示略)により出力媒体が指定されると、階調変換曲線データメモリ116から、指定された出力媒体に対応する階調変換曲線データを読み出し、読み出した階調変換曲線データに基づいて、鑑賞画像参照データを生成する。
【0145】
また、鑑賞画像参照データ生成部107は、硬さ・明るさ設定入力部109から入力された硬さ補正値と、視差量・補正値算出部119により算出された硬さ補正値の和を、実際に階調変換曲線を修正するための硬さ補正値として決定し、階調変換曲線データメモリ116から、特定領域データを読み出し、決定された硬さ補正値に基づいて階調変換曲線の修正(変更)処理を行う。更に、鑑賞画像参照データ生成部107は、硬さ・明るさ設定入力部109から入力された明るさ補正値と、視差量・補正値算出部119により算出された明るさ補正値の和を、実際に階調変換曲線を修正するための明るさ補正値として決定し、階調変換曲線データメモリ116から、移動軌跡データを読み出し、決定された明るさ補正値に基づいて階調変換曲線の修正(変更)処理を行う。また、鑑賞画像参照データ生成部107は、修正された階調変換曲線に基づいて、鑑賞画像参照データを再生成する。階調変換曲線を修正して新たな階調変換曲線を作成する方法の詳細は、後に説明する。
【0146】
なお、上述では、硬さ・明るさ設定入力部109から入力された硬さ補正値(A)と、視差量・補正値算出部119により算出された硬さ補正値(B)の和(A+B)を、実際に階調変換曲線を修正するための硬さ補正値として決定するようにしたが、これに限定されない。明るさ補正値の決定についても同様である。
【0147】
一時記憶メモリ108は、鑑賞画像参照データ生成部107において生成された鑑賞画像参照データを一時的に記憶する。一時記憶メモリ108に記憶された鑑賞画像参照データは、設定入力部(図示略)からの操作情報に従い、記憶デバイス110、出力デバイス111、表示デバイス112の何れかに出力される。
【0148】
〈視差量の算出方法〉
次に、図9〜図11を参照して、視差量の算出方法について説明する。
【0149】
図9に、立体視表示用の画像取得に用いられる撮像装置の2つの撮像光学系(CCD1、CCD2)と、距離の異なる被写体(P1、P2)との関係を示す。CCD1とCCD2との距離Wは、撮影基線長と呼ばれ、通常、人間の両目間の距離に等しい約6〜7cmに設定されている。fは、レンズの焦点距離であり、CCD1とCCD2で同一の値に設定されている。P1は、レンズからH1の撮影距離に位置する建物被写体上の特定の位置を表し、P2は、レンズからH2の撮影距離に位置する人物被写体上の特定の位置を表している。
【0150】
図9において、被写体P1とP2のうち、レンズから近い位置にある被写体P2は、CC1とCCD2とで、結像する位置のずれが大きく異なるのに対し、レンズから遠い位置にある被写体P1は、CCD1とCCD2とで、結像する位置のずれが小さいことがわかる。
【0151】
CCD1及びCCD2における被写体P1の結像位置から、被写体P1の結像距離S1を算出し、CCD1及びCCD2における被写体P2の結像位置から、被写体P2の結像距離S2が算出される。結像距離S1から撮影基線長Wを差し引くと、被写体P1の視差量V=S1−Wが得られ、結像距離S2から撮影基線長Wを差し引くと、被写体P2の視差量V=S2−Wが得られる。
【0152】
また、視差量の算出には、撮影距離情報を補助的に用いることが好ましい。撮影距離は、赤外線の発光部と受光部をCCD1、CCD2と同じ基線長に配置することにより、計測可能となる。これは撮影レンズの自動焦点(オートフォーカス)用の距離測定方法として一般的に用いられる。この場合、視差量Vは、撮影距離Hと撮影基線長Wから、下記の式(1)により算出することができる。
【数1】
V=f×(W/H) (1)
式(1)において、W/Hは、基線比を表す。
【0153】
被写体P1、P2の検出方法は、シーン参照画像データに対する特徴抽出処理や類似度判定等の、公知のあらゆる手法を用いることができる。特定の被写体を検出する方法の一例として、図10に示すような、被写体の輪郭抽出や瞳位置検出等が挙げられる。
【0154】
また、図11に示すように、肌色領域や高彩度領域等、所定の色を抽出することにより、被写体の領域を検出することができる。このように、特定の色領域を抽出するには、画像データのRGB値を、HSV表色系(H:色相、S:彩度、V:明度)に変換し、色相と彩度の2次元ヒストグラムを作成し、作成した2次元ヒストグラムから、色相と彩度の抽出条件を決定することにより実現できる。例えば、色相を10〜30度にし、彩度(0〜255)を50〜100に制限すると、肌色領域を抽出することができる。
【0155】
〈階調変換曲線の作成〉
まず、初期階調変換曲線の作成方法について説明する。階調変換曲線の作成は、シーン参照画像データに対し、IEC61966-2-1が規定する下記の式(2)〜式(5)と、JISZ8729が規定する下記の式(6)を適用して得られる明度(輝度)値を用いることによって行われる。
【0156】
【数2】

Figure 0004292873
【数3】
Figure 0004292873
【数4】
Figure 0004292873
【数5】
Figure 0004292873
【数6】
Figure 0004292873
【0157】
式(2)〜式(5)は、8bitの画像データ(RsRGB(8)、GsRGB(8)、BsRGB(8))から等色関数の三刺激値(X、Y、Z)に変換することを示している。ここで、等色関数とは、人間の目の分光感度分布を示す関数である。ここで、式(2)〜式(5)におけるsRGBは、画像データのRGB値が、sRGB規格に準拠することを示し、式(2)中の(8)は、8bit(0〜255)の画像データであることを示している。
【0158】
また、式(6)において、L*は輝度を示す。階調変換曲線では、輝度のみの入力値と出力値の関係を規定しているため、a*b*は不要となり、L*のみが算出される。また、式(6)のYnは、標準白色板のYを示し、D65は、色温度が6500Kの光を標準白色版に照明したときの刺激値を示す。式(6)では、Yn=1である。
【0159】
式(6)によりL*が求められると、硬さ、明るさの初期値、特定領域内の所定の位置を設定することにより、初期階調変換曲線が作成される。例えば、L*=20〜50の硬さを1.42、L*=20〜75の硬さを1.35、特定領域(不動領域)内の所定の位置としての入力L*を44.4に設定することができる。硬さ、明るさの初期値、所定の位置は、硬さ・明るさ設定部109又は操作部11により、ユーザ別に設定し、階調変換曲線データメモリ116に記憶することが可能である。
【0160】
次に、初期階調変換曲線上の特定領域(不動領域)を用いて「硬さ」、「明るさ」を調整し、新たな階調変換曲線を作成する条件式の例を以下に示す。
【0161】
階調変換曲線の調整係数として、下記の2係数(FC, FL)を定義する。
▲1▼FC:硬さの調整係数 (-2<FC <2、FC= 0で初期階調変換曲線)
▲2▼FL:明るさの調整係数 (-2<FL <2、FL= 0で初期階調変換曲線)
これらの調整係数によって階調変換曲線を変更するために必要な変数は、式(7)のようになる。
【数7】
Figure 0004292873
【0162】
式(7)において、Lは、出力L*=50となる入力L*を示し、Lsは、出力L*=20となる入力L*を示し、Lhは、出力L*=75となる入力L*を示し、Gsは、入力L*=20〜50での硬さを示し、Gは、入力L*=20〜75での硬さを示す。
【0163】
式(7)により算出されたLs、L、Lhにより、(0, 0)、(Ls, 20)、(L, 50)、(Lh, 75)、(100, 100)の5点を通る滑らかな曲線は、スプライン補間の両端条件を2階微分値=0とする3次スプライン補間により算出される。以下、スプライン補間について説明する。
【0164】
与えられた点をx0、x1、x2、…、xnとし、その関数値を式(8)のように定義する。
【数8】
Figure 0004292873
また、これらの分点により閉区間[a、b]を分割した小区間を次のように定義する。[xj, xj+1] (0≦j≦n-1)、但し、a=x0<x1<x2、…<xn=b。
【0165】
区間[a、b]で2階連続微分可能な3次の区分多項式は、3次スプライン関数と呼ばれ、これをs(x)と表す。この3次スプライン関数は、分割された小区間[xj, xj+1]毎に、式(10)で定義される多項式sj(x)で表せる。
【数9】
Figure 0004292873
式(9)より、u0、u1、u2、…、unを求め、下記の式(10)に代入する。
【数10】
Figure 0004292873
【0166】
スプライン補間の他の具体的な例として、Math Soft 社MathCAD2000 のlspline関数、渡辺力・名取亮・小国力 監修「Fortran77による数値計算ソフトウエア」丸善株式会社248ページの SPLC 関数( DF(1)=DF(2)=0, IOPT(1)=IOPT(2)=1 として使用)、黒瀬能筆・松島勇雄・松雄俊彦 共著「C言語による科学技術計算サブルーチンライブラリ」啓学出版162ページの SPLINT関数、三上直樹著「アルゴリズム教科書」CQ出版社110ページのspline 関数、W.H.Press, S.A.Teukolsky, W.T.Vetterling, B.P.Flannery著「Numerical Recipes in C 日本語版」技術評論社106ページの spline 関数などを用いることができる。
【0167】
図12に、硬さの調整係数FCが−2、−1、0、+1、+2、明るさの調整係数FLが0の場合の階調変換曲線を示す。図12において、曲線GP2は、FC=+2の場合を示し、曲線GP1は、FC=+1の場合を示し、曲線GP0は、FC=0の場合を示し、曲線GM1は、FC=−1の場合を示し、曲線GM2は、FC=−2の場合を示す。
【0168】
図13に、明るさの調整係数FLが−2、−1、0、+1、+2、硬さの調整係数FCが0の場合の階調変換曲線を示す。図13において、曲線GP2は、FL=+2の場合を示し、曲線GP1は、FL=+1の場合を示し、曲線GP0は、FL=0の場合を示し、曲線GM1は、FL=−1の場合を示し、曲線GM2は、FL=−2の場合を示す。
【0169】
図14に、明るさの調整係数FLが−2、−1、0、+1、+2、硬さの調整係数FCが0のときの特定領域(不動領域)の移動軌跡を示す。なお、上述の階調変換曲線の作成方法は、下記の各実施例においても適用される。また、階調変換曲線の作成方法は、上述の方法に限定されるものではない。
【0170】
次に、実施例1における動作を説明する。
図15のフローチャートを参照して、実施例1における画像処理について説明する。
【0171】
まず、シーン参照画像データの入力が指示された後(ステップS101)、設定入力部(図示略)により、出力媒体が指定されると(ステップS102)、階調変換曲線データメモリ116から、ステップS102において指定された出力媒体に対応する階調変換曲線データが読み出され(ステップS103)、その読み出された階調変換曲線データに基づいて、シーン参照画像データから鑑賞画像参照データが生成される(ステップS104)。
【0172】
次いで、画像処理対象のシーン参照画像データが視差画像であるか否かが判定される(ステップS105)。ステップS105において、シーン参照画像データが視差画像でないと判定された場合(ステップS105;NO)、後述のステップS108に移行する。
【0173】
ステップS105において、シーン参照画像データが視差画像であると判定された場合(ステップS105;YES)、その視差画像から視差量が算出される(ステップS106)。次いで、図8のグラフに基づいて、ステップS106において算出された視差量に応じた硬さ補正値及び明るさ補正値が算出される(ステップS107)。
【0174】
シーン参照画像データが視差画像でない場合、硬さ・明るさ設定入力部109により、硬さ補正値が入力されると、その入力された硬さ補正値が、実際に階調変換曲線を修正するための硬さ補正値として決定される(ステップS108)。シーン参照画像データが視差画像である場合、硬さ・明るさ設定入力部109により、硬さ補正値が入力されると、その入力された硬さ補正値と、ステップS107において視差量に応じて算出された硬さ補正値の和が、実際に階調変換曲線を修正するための硬さ補正値として決定される(ステップS108)。
【0175】
硬さ補正値が決定されると、階調変換曲線データメモリ116から特定領域データが読み出され(ステップS109)、ステップS108において決定された硬さ補正値に従って階調変換曲線の修正処理が施される(ステップS110)。
【0176】
シーン参照画像データが視差画像でない場合、硬さ・明るさ設定入力部109により、明るさ補正値が入力されると、その入力された明るさ補正値が、実際に階調変換曲線を修正するための明るさ補正値として決定される(ステップS111)。シーン参照画像データが視差画像である場合、硬さ・明るさ設定入力部109により明るさ補正値が入力されると、その入力された明るさ補正値と、ステップS107において算出された視差量に応じて算出された明るさ補正値の和が、実際に階調変換曲線を修正するための明るさ補正値として決定される(ステップS111)。
【0177】
明るさ補正値が決定されると、階調変換曲線データメモリ116から移動軌跡データが読み出され(ステップS112)、ステップS111において決定された明るさ補正値に従って階調変換曲線の修正処理が施される(ステップS113)。次いで、修正された階調変換曲線に基づいて鑑賞画像参照データが再生成され(ステップS114)、本画像処理が終了する。
【0178】
以上のように、実施例1によれば、鑑賞画像参照データの硬さ補正値に基づいて階調変換曲線を調整し、明るさ補正値に基づいて階調変換曲線を調整し、それぞれの調整効果の干渉を抑制した画像処理を行うことにより、理想的な階調変換曲線の設定が可能になる。また、設定作業に係る負荷を軽減することができ、階調変換曲線の設定作業の効率化を図ることができる。更に、シーン参照画像データが視差画像である場合、その視差画像の視差量に基づいて硬さ補正値及び明るさ補正値を算出し、その硬さ補正値及び明るさ補正値に基づいて階調変換曲線を調整するようにしたことにより、立体視表示の画像の画質を向上させることができる。
【0179】
[実施例2]
まず、実施例2における構成を説明する。
【0180】
〈画像処理部の構成〉
図16は、請求項30に記載の発明に係る画像処理部70の機能的構成を示すブロック図である。画像処理部70は、図16に示すように、画像調整処理部701、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、テンプレート処理部705、CRT固有処理部706、プリンタ固有処理部▲1▼707、プリンタ固有処理部▲2▼708、画像データ作成処理部709、ヘッダ情報解析部102、装置特性補正処理部103a、処理条件テーブル103b、シーン参照画像データ生成部104、鑑賞画像参照データ生成部107、階調変換曲線データメモリ116、撮影情報データ処理部106、視差量・補正値算出部119により構成される。以下、実施例2の画像処理部70を構成する各部のうち、実施例1の画像処理部70(図6参照)と異なる点のみ説明する。
【0181】
ヘッダ情報解析部102は、画像データ書式解読処理部704によって、画像データが、画像転送手段30又は通信手段(入力)32から入力されたことが判別された場合、撮像装置特性補正データと撮影情報データを解読する。
【0182】
撮影情報データ処理部106は、ヘッダ情報解析部102から撮影情報データに含まれる、被写体の種類と撮影情報に関する情報から、鑑賞画像参照データの硬さ補正値及び明るさ補正値を算出し(表1及び表2参照)、算出結果を鑑賞画像参照データ生成部107に出力する。視差量・補正値算出部119は、視差画像から視差量を算出し、視差量及び被写体の種類に応じた硬さ補正値及び明るさ補正値(図18参照)を算出する。
【0183】
鑑賞画像参照データ生成部107は、階調変換曲線データとシーン参照画像データから鑑賞画像参照データを生成する。また、鑑賞画像参照データ生成部107は、撮影情報データ処理部106で算出された硬さ補正値及び明るさ補正値と、視差量・補正値算出部119により算出された硬さ補正値及び明るさ補正値から、実際に階調変換曲線を修正するための硬さ補正値及び明るさ補正値を決定し、決定された硬さ補正値及び明るさ補正値に基づいて、階調変換曲線に修正(変更)処理を施して、再度、鑑賞画像参照データを生成する。
【0184】
〈画像処理装置の構成〉
次に、図17のブロック図を参照して、請求項16に記載の発明に係る画像処理装置115について説明する。画像処理装置115は、図16の画像処理部70の一部分を構成するもので、図17に示すように、入力部101、ヘッダ情報解析部102、第1処理部113及び第2処理部114により構成される。第1処理部113には、ヘッダ情報解析部102が接続され、第2処理部114には、記憶デバイス110、出力デバイス111、表示デバイス112が接続される。以下、実施例2の画像処理装置115を構成する各部のうち、実施例1の画像処理装置115(図7参照)と異なる点のみ説明する。
【0185】
ヘッダ情報解析部102は、入力部101から読み出された画像データのヘッダ情報を解析し、被写体情報と、当該画像データに添付された撮像装置特性補正データと、撮影情報データに分ける。
【0186】
第1処理部113は、装置特性補正処理部103a、処理条件テーブル103b、シーン参照画像データ生成部104、一時記憶メモリ105、視差量・補正値算出部119により構成される。第1処理部113において、視差量・補正値算出部119以外の構成説明は、実施例1での説明と同一ゆえ、ここでは省略する。
【0187】
視差量・補正値算出部119は、視差画像から視差量を算出し、図18(a)に示す視差量と硬さ補正値の関係から、被写体の種類及び算出された視差量に応じた硬さ補正値を算出する。また、視差量・補正値算出部119は、図18(b)に示す視差量と明るさ補正値の関係から、被写体の種類及び算出された視差量に応じた明るさ補正値を算出する。図18(a)では、被写体が人物である場合、視差量が大きくなるほど階調を軟調化し、被写体が風景や静物である場合、視差量が大きくなるほど階調を硬調化するように硬さ補正値が設定されている。図18(b)では、被写体が人物である場合、視差量が大きくなるほど明るくし、被写体が静物である場合、視差量に関係なく明るさを不変にするように明るさ補正値が設定されている。
【0188】
第2処理部114は、鑑賞画像参照データ生成部107、一時記憶メモリ108、階調変換曲線データメモリ116、撮影情報データ処理部106により構成される。一時記憶メモリ108及び階調変換曲線データメモリ116の構成説明は、実施例1での説明と同一ゆえ、ここでは省略する。
【0189】
撮影情報データ処理部106は、ヘッダ情報解析部102から入力された撮影情報データに含まれる被写体の種類に関する情報から、鑑賞画像参照データの硬さ補正値を算出し、撮影情報データに含まれる撮影条件に関する情報から、鑑賞画像参照データの明るさ補正値を算出し、算出結果を鑑賞画像参照データ生成部107に出力する。
【0190】
以下、被写体の種類に応じて階調変換曲線の硬さを調整する条件を例示する。表1に、各被写体毎の初期階調変換曲線からの硬さ(L*20〜75)の差(Δ硬さ)及びFc値(硬さの調整係数)の参考値を示す。
【表1】
Figure 0004292873
【0191】
次に、撮影条件に応じて該階調変換曲線の明るさ(明度)を調整する条件を例示する。表2に、各撮影条件毎の初期階調変換曲線からの明るさ(L*50)の差(Δ明るさ)及びFL値(明るさの調整係数)の参考値を示す。
【表2】
Figure 0004292873
【0192】
鑑賞画像参照データ生成部107は、一時記憶メモリ105に記憶されたシーン参照画像データが読み出され、設定入力部(図示略)により出力媒体が指定されると、階調変換曲線データメモリ116から、指定された出力媒体に対応する階調変換曲線データを読み出し、読み出した階調変換曲線データに基づいて、鑑賞画像参照データを生成する。
【0193】
また、鑑賞画像参照データ生成部107は、撮影情報データ処理部106により算出された硬さ補正値と、視差量・補正値算出部119により算出された硬さ補正値の和を、実際の階調変換曲線を修正するための硬さ補正値として決定し、階調変換曲線データメモリ116から、特定領域データを読み出し、決定された硬さ補正値に基づいて階調変換曲線の修正(変更)処理を行う。更に、鑑賞画像参照データ生成部107は、撮影情報データ処理部106により算出された明るさ補正値と、視差量・補正値算出部119により算出された明るさ補正値の和を、実際の階調変換曲線を修正するための明るさ補正値として決定し、階調変換曲線データメモリ116から、移動軌跡データを読み出し、決定された明るさ補正値に基づいて階調変換曲線の修正(変更)処理を行う。また、鑑賞画像参照データ生成部107は、修正された階調変換曲線に基づいて、鑑賞画像参照データを再生成する。
【0194】
なお、上述では、撮影情報データ処理部106により算出された硬さ補正値(C)と、視差量・補正値算出部119により算出された硬さ補正値(D)の和(C+D)を、実際に階調変換曲線を修正するための硬さ補正値として決定するようにしたが、これに限定されない。明るさ補正値の決定についても同様である。
【0195】
次に、実施例2における動作を説明する。
図19のフローチャートを参照して、実施例2における画像処理について説明する。
【0196】
まず、シーン参照画像データの入力が指示された後(ステップS201)、設定入力部(図示略)により、出力媒体が指定されると(ステップS202)、階調変換曲線データメモリ116から、ステップS202において指定された出力媒体に対応する階調変換曲線データが読み出され(ステップS203)、その読み出された階調変換曲線データに基づいて、シーン参照画像データから鑑賞画像参照データが生成される(ステップS204)。
【0197】
次いで、画像処理対象のシーン参照画像データが視差画像であるか否かが判定される(ステップS205)。ステップS205において、シーン参照画像データが視差画像であると判定された場合(ステップS205;YES)、その視差画像から視差量が算出される(ステップS206)。次いで、ヘッダ情報解析部102から、シーン参照画像データのヘッダに記録されている撮影情報データが読み出され、被写体の種類が特定される。そして、図18のグラフに基づいて、特定された被写体の種類と、ステップS206において算出された視差量に対応する硬さ補正値及び明るさ補正値が算出される(ステップS207)。
【0198】
ステップS205において、シーン参照画像データが視差画像でないと判定された場合(ステップS205;NO)、ヘッダ情報解析部102から、シーン参照画像データのヘッダに記録されている撮影情報データが読み出され、被写体の種類が特定される。そして、特定された被写体の種類から、例えば、表1に基づいて、硬さ補正値が算出され、この算出された硬さ補正値が、実際に階調変換曲線を修正するための硬さ補正値として決定される(ステップS208)。
【0199】
シーン参照画像データが視差画像である場合は、ステップS207において特定された被写体の種類から、表1に基づいて、硬さ補正値が算出され、この算出された硬さ補正値と、ステップS207において算出された硬さ補正値の和が、実際に階調変換曲線を修正するための硬さ補正値として決定される(ステップS208)。硬さ補正値が決定されると、階調変換曲線データメモリ116から特定領域データが読み出され(ステップS209)、ステップS208において決定された硬さ補正値に従って階調変換曲線の修正処理が施される(ステップS210)。
【0200】
次いで、ヘッダ情報解析部102から、シーン参照画像データのヘッダに記録されている撮影情報データが読み出され、撮影条件が特定される。そして、特定された撮影条件から、例えば、表2に基づいて、明るさ補正値が算出され、この算出された明るさ補正値と、ステップS207において算出された明るさ補正値の和が、実際に階調変換曲線を修正するための明るさ補正値として決定される(ステップS211)。
【0201】
明るさ補正値が決定されると、階調変換曲線データメモリ116から移動軌跡データが読み出され(ステップS212)、ステップS211において決定された明るさ補正値に従って階調変換曲線の修正処理が施される(ステップS213)。次いで、修正された階調変換曲線に基づいて鑑賞画像参照データが再生成され(ステップS214)、本画像処理が終了する。
【0202】
以上のように、実施例2によれば、被写体の種類に応じて鑑賞画像参照データの硬さ補正値を決定して、硬さ補正値に基づいて階調変換曲線を調整し、撮影条件に応じて鑑賞画像参照データの明るさ補正値を決定して、明るさ補正値に基づいて階調変換曲線を調整することにより、理想的な階調変換曲線の設定が可能になる。また、階調変換曲線の設定作業に係る負荷を軽減することができ、階調変換曲線の設定作業が更に効率化される。更に、シーン参照画像データが視差画像である場合、その視差画像の視差量及び被写体の種類に基づいて硬さ補正値及び明るさ補正値を算出し、その硬さ補正値及び明るさ補正値に基づいて階調変換曲線を調整するようにしたことにより、立体視表示の画像の画質を一層向上させることができる。
【0203】
[実施例3]
まず、実施例3における構成を説明する。
【0204】
〈画像処理部の構成〉
図20は、請求項31に記載の発明に係る画像処理部70の機能的構成を示すブロック図である。画像処理部70は、図20に示すように、画像調整処理部701、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、テンプレート処理部705、CRT固有処理部706、プリンタ固有処理部▲1▼707、プリンタ固有処理部▲2▼708、画像データ作成処理部709、ヘッダ情報解析部102、装置特性補正処理部103a、処理条件テーブル103b、シーン参照画像データ生成部104、鑑賞画像参照データ生成部107、階調変換曲線データメモリ116、撮影情報データ処理部106、条件算出部303、視差量・補正値算出部119により構成される。以下、実施例3の画像処理部70を構成する各部のうち、実施例2の画像処理部70(図16参照)と異なる点のみ説明する。
【0205】
撮影情報データ処理部106は、ヘッダ情報解析部102から撮影情報データに含まれる、被写体の種類と撮影情報に関する情報から、被写体の種類と撮影条件の特定の組み合わせがあるか否かを判別し、特定の組み合わせがあれば、その組み合わせのデータを条件算出部303に出力する。
【0206】
条件算出部303は、被写体の種類と撮影情報の組み合わせ毎に、適合する硬さ補正値及び明るさ補正値のデータを予め格納しており(後述の表3参照)、撮影情報データ処理部106から入力された組み合わせのデータに従って、鑑賞画像参照データの硬さ補正値及び明るさ補正値を算出する。
【0207】
鑑賞画像参照データ生成部107は、階調変換曲線データとシーン参照画像データから鑑賞画像参照データを生成する。また、鑑賞画像参照データ生成部107は、条件処理部303で算出された硬さ補正値及び明るさ補正値と、視差量・補正値算出部119により算出された硬さ補正値及び明るさ補正値から、実際に階調変換曲線を修正するための硬さ補正値及び明るさ補正値を決定し、決定された硬さ補正値及び明るさ補正値に基づいて、階調変換曲線に修正(変更)処理を施して、再度、鑑賞画像参照データを生成する。
【0208】
〈画像処理装置の構成〉
次に、図21のブロック図を参照して、請求項17に記載の発明に係る画像処理装置115について説明する。画像処理装置115は、図20の画像処理部70の一部分を構成するもので、図21に示すように、入力部101、ヘッダ情報解析部102、第1処理部113及び第2処理部114により構成される。第1処理部113には、ヘッダ情報解析部102が接続され、第2処理部114には、記憶デバイス110、出力デバイス111、表示デバイス112が接続される。以下、実施例3の画像処理装置115を構成する各部のうち、実施例2の画像処理装置115(図17参照)と異なる点のみ説明する。
【0209】
ヘッダ情報解析部102及び第1処理部113の構成説明は、実施例2での説明と同一ゆえ、ここでは省略する。
【0210】
第2処理部114は、鑑賞画像参照データ生成部107、一時記憶メモリ108、階調変換曲線データメモリ116、撮影情報データ処理部106、条件算出部303により構成される。一時記憶メモリ108及び階調変換曲線データメモリ116の構成説明は、実施例1での説明と同一ゆえ、ここでは省略する。
【0211】
撮影情報データ処理部106は、ヘッダ情報解析部102から撮影情報データに含まれる、被写体の種類と撮影情報に関する情報から、被写体の種類と撮影条件の特定の組み合わせがあるか否かを判別し、特定の組み合わせがあれば、その組み合わせのデータを条件算出部303に出力する。
【0212】
条件算出部303は、被写体の種類と撮影情報の組み合わせ毎に、適合する硬さ補正値及び明るさ補正値のデータを予め格納(後述の表3参照)しており、撮影情報データ処理部106から入力された組み合わせのデータに従って、鑑賞画像参照データの硬さ補正値及び明るさ補正値を算出する。
【0213】
以下、特定の被写体の種類と撮影条件の組み合わせによる、硬さ補正値と明るさ(明度)補正値の設定例を示す。表3に、被写体の種類がポートレート、撮影条件がストロボ及び逆光である場合の、初期階調変換曲線からの硬さ(L*20〜75)の差(Δ硬さ)及び対応するFc値(硬さの調整係数)と、初期階調変換曲線からの明るさ(L*50)の差(Δ明るさ)及び対応するFL値(明るさの調整係数)の参考値を示す。
【表3】
Figure 0004292873
【0214】
鑑賞画像参照データ生成部107は、一時記憶メモリ105に記憶されたシーン参照画像データが読み出され、設定入力部(図示略)により出力媒体が指定されると、階調変換曲線データメモリ116から、指定された出力媒体に対応する階調変換曲線データを読み出し、読み出した階調変換曲線データに基づいて、鑑賞画像参照データを生成する。
【0215】
また、鑑賞画像参照データ生成部107は、条件処理部303により算出された硬さ補正値と、視差量・補正値算出部119により算出された硬さ補正値の和を、実際の階調変換曲線を修正するための硬さ補正値として決定し、階調変換曲線データメモリ116から、特定領域データを読み出し、決定された硬さ補正値に基づいて階調変換曲線の修正(変更)処理を行う。更に、鑑賞画像参照データ生成部107は、条件処理部303により算出された明るさ補正値と、視差量・補正値算出部119により算出された明るさ補正値の和を、実際の階調変換曲線を修正するための明るさ補正値として決定し、階調変換曲線データメモリ116から、移動軌跡データを読み出し、決定された明るさ補正値に基づいて階調変換曲線の修正(変更)処理を行う。また、鑑賞画像参照データ生成部107は、修正された階調変換曲線に基づいて、鑑賞画像参照データを再生成する。
【0216】
なお、上述では、条件処理部303により算出された硬さ補正値(E)と、視差量・補正値算出部119により算出された硬さ補正値(F)の和(E+F)を、実際に階調変換曲線を修正するための硬さ補正値として決定するようにしたが、これに限定されない。明るさ補正値の決定についても同様である。
【0217】
次に、実施例3における動作を説明する。
図22のフローチャートを参照して、実施例3における画像処理について説明する。
【0218】
まず、シーン参照画像データの入力が指示された後(ステップS301)、設定入力部(図示略)により、出力媒体が指定されると(ステップS302)、階調変換曲線データメモリ116から、ステップS302において指定された出力媒体に対応する階調変換曲線データが読み出され(ステップS303)、その読み出された階調変換曲線データに基づいて、シーン参照画像データから鑑賞画像参照データが生成される(ステップS304)。
【0219】
次いで、画像処理対象のシーン参照画像データが視差画像であるか否かが判定される(ステップS305)。ステップS305において、シーン参照画像データが視差画像であると判定された場合(ステップS305;YES)、その視差画像から視差量が算出される(ステップS306)。次いで、ヘッダ情報解析部102から、シーン参照画像データのヘッダに記録されている撮影情報データが読み出され、被写体の種類が特定される。そして、図18のグラフに基づいて、特定された被写体の種類と、ステップS306において算出された視差量に対応する硬さ補正値及び明るさ補正値が算出される(ステップS307)。
【0220】
ステップS305において、シーン参照画像データが視差画像でないと判定された場合(ステップS305;NO)、ヘッダ情報解析部102から、シーン参照画像データのヘッダに記録されている撮影情報データが読み出され、被写体の種類及び撮影条件が特定される。そして、特定された被写体の種類及び撮影条件の組み合わせから、例えば、表3に基づいて、硬さ補正値及び明るさ補正値が算出され、これら算出された硬さ補正値及び明るさ補正値が、実際に階調変換曲線を修正するための硬さ補正値及び明るさ補正値として決定される(ステップS308)。
【0221】
シーン参照画像データが視差画像である場合は、被写体の種類及び撮影条件の組み合わせに基づいて算出された硬さ補正値と、ステップS307において視差量に応じて算出された硬さ補正値の和が、実際に階調変換曲線を修正するための硬さ補正値として決定される。また、被写体の種類及び撮影条件の組み合わせに基づいて算出された明るさ補正値と、ステップS307において視差量に応じて算出された明るさ補正値の和が、実際に階調変換曲線を修正するための明るさ補正値として決定される(ステップS308)。
【0222】
硬さ補正値及び明るさ補正値が決定されると、階調変換曲線データメモリ116から特定領域データが読み出され(ステップS309)、ステップS308において決定された硬さ補正値に従って階調変換曲線の修正処理が施される(ステップS310)。
【0223】
次いで、階調変換曲線データメモリ116から移動軌跡データが読み出され(ステップS311)、ステップS308において決定された明るさ補正値に従って階調変換曲線の修正処理が施される(ステップS312)。次いで、修正された階調変換曲線に基づいて鑑賞画像参照データが再生成され(ステップS313)、本画像処理が終了する。
【0224】
以上のように、実施例3によれば、被写体の種類及び撮影条件の組み合わせに応じて、鑑賞画像参照データの硬さ補正値及び明るさ補正値を決定して、その決定された硬さ補正値及び明るさ補正値に基づいて階調変換曲線の調整を行うようにしたことにより、階調変換曲線の設定作業に係る負荷を軽減することができ、階調変換曲線の設定作業が更に効率化される。更に、シーン参照画像データが視差画像である場合、その視差画像の視差量及び被写体の種類に基づいて硬さ補正値及び明るさ補正値を算出し、その硬さ補正値及び明るさ補正値に基づいて階調変換曲線を調整するようにしたことにより、立体視表示の画像の画質を一層向上させることができる。
【0225】
[実施例4]
まず、実施例4における構成を説明する。
【0226】
〈画像処理部の構成〉
図23は、請求項32に記載の発明に係る画像処理部70の機能的構成を示すブロック図である。画像処理部70は、図23に示すように、画像調整処理部701、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、テンプレート処理部705、CRT固有処理部706、プリンタ固有処理部▲1▼707、プリンタ固有処理部▲2▼708、画像データ作成処理部709、ヘッダ情報解析部102、装置特性補正処理部103a、処理条件テーブル103b、シーン参照画像データ生成部104、鑑賞画像参照データ生成部107、階調変換曲線データメモリ116、硬さ・明るさ設定入力部109、彩度補正データ算出部304、視差量・補正値算出部119により構成される。以下、実施例4の画像処理部70を構成する各部のうち、実施例1の画像処理部70(図6参照)と異なる点のみ説明する。
【0227】
彩度補正データ算出部304は、硬さ・明るさ設定入力部109により指定された硬さ補正値(及び視差量に応じて算出された硬さ補正値)に基づいて、鑑賞画像参照データの彩度調整量を算出する。
【0228】
鑑賞画像参照データ生成部107は、階調変換曲線データとシーン参照画像データから鑑賞画像参照データを生成する。また、鑑賞画像参照データ生成部107は、硬さ・明るさ設定入力部107により指定された硬さ補正値及び明るさ補正値と、視差量・補正値算出部119により算出された硬さ補正値及び明るさ補正値から、実際に階調変換曲線を修正するための硬さ補正値及び明るさ補正値を決定し、決定された硬さ補正値及び明るさ補正値に基づいて、階調変換曲線に修正(変更)処理を施す。更に、鑑賞画像参照データ生成部107は、修正された階調変換曲線と、彩度補正データ算出部304により算出された彩度調整量に基づいて、再度、鑑賞画像参照データを生成する。
【0229】
〈画像処理装置の構成〉
次に、図24のブロック図を参照して、請求項18に記載の発明に係る画像処理装置115について説明する。画像処理装置115は、図23の画像処理部70の一部分を構成するもので、図24に示すように、入力部101、ヘッダ情報解析部102、第1処理部113及び第2処理部114により構成される。第1処理部113には、ヘッダ情報解析部102が接続され、第2処理部114には、記憶デバイス110、出力デバイス111、表示デバイス112が接続される。以下、実施例4の画像処理装置115を構成する各部のうち、実施例1の画像処理装置115(図7参照)と異なる点のみ説明する。
【0230】
ヘッダ情報解析部102及び第1処理部113の構成説明は、実施例1での説明と同一ゆえ、ここでは省略する。
【0231】
第2処理部114は、鑑賞画像参照データ生成部107、一時記憶メモリ108、階調変換曲線データメモリ116、硬さ・明るさ設定入力部109、彩度補正データ算出部304により構成される。一時記憶メモリ108、階調変換曲線データメモリ116及び硬さ・明るさ設定入力部109の構成説明は、実施例1での説明と同一ゆえ、ここでは省略する。
【0232】
彩度補正データ算出部304は、硬さ・明るさ設定入力部109により指定された硬さ補正値(及び視差量に応じて算出された硬さ補正値)に基づいて、鑑賞画像参照データの彩度調整量を算出する。以下、硬さ補正値によって階調変換曲線を調整した程度に応じて、彩度調整量を算出する定義式の一例を示す。指定された硬さ補正値に対応する硬さの調整係数をFc、硬さ(L*25〜75)の初期階調変換曲線からの差(Δ硬さ)をDG、彩度調整量(%)をPSとすると、彩度調整量PSは、下記の式(11)のように表される。
【数11】
Figure 0004292873
式(11)では、硬さの調整量が0、即ち、硬さの調整係数が0であるときの彩度調整量(強調量)が+10%(強調)に設定される場合を示している。図25に、式(11)が示すDG(=Δγ)とPSの関係を示す。
【0233】
鑑賞画像参照データ生成部107は、一時記憶メモリ105に記憶されたシーン参照画像データが読み出され、設定入力部(図示略)により出力媒体が指定されると、階調変換曲線データメモリ116から、指定された出力媒体に対応する階調変換曲線データを読み出し、読み出した階調変換曲線データに基づいて、鑑賞画像参照データを生成する。
【0234】
また、鑑賞画像参照データ生成部107は、硬さ・明るさ設定入力部109から入力された硬さ補正値と、視差量・補正値算出部119により算出された硬さ補正値の和を、実際に階調変換曲線を修正するための硬さ補正値として決定し、階調変換曲線データメモリ116から、特定領域データを読み出し、決定された硬さ補正値に基づいて階調変換曲線の修正(変更)処理を行う。更に、鑑賞画像参照データ生成部107は、硬さ・明るさ設定入力部109から入力された明るさ補正値と、視差量・補正値算出部119により算出された明るさ補正値の和を、実際に階調変換曲線を修正するための明るさ補正値として決定し、階調変換曲線データメモリ116から、移動軌跡データを読み出し、決定された明るさ補正値に基づいて階調変換曲線の修正(変更)処理を行う。また、鑑賞画像参照データ生成部107は、修正された階調変換曲線と、彩度補正データ算出部304により算出された彩度調整量に基づいて、再度、鑑賞画像参照データを生成する。
【0235】
なお、上述では、硬さ・明るさ設定入力部109から入力された硬さ補正値(A)と、視差量・補正値算出部119により算出された硬さ補正値(B)の和(A+B)を、実際に階調変換曲線を修正するための硬さ補正値として決定するようにしたが、これに限定されない。明るさ補正値の決定についても同様である。
【0236】
次に、次に、実施例4における動作を説明する。
図26のフローチャートを参照して、実施例4における画像処理について説明する。
【0237】
まず、シーン参照画像データの入力が指示された後(ステップS401)、設定入力部(図示略)により、出力媒体が指定されると(ステップS402)、階調変換曲線データメモリ116から、ステップS402において指定された出力媒体に対応する階調変換曲線データが読み出され(ステップS403)、その読み出された階調変換曲線データに基づいて、シーン参照画像データから鑑賞画像参照データが生成される(ステップS404)。
【0238】
次いで、画像処理対象のシーン参照画像データが視差画像であるか否かが判定される(ステップS405)。ステップS405において、シーン参照画像データが視差画像でないと判定された場合(ステップS405;NO)、後述のステップS408に移行する。
【0239】
ステップS405において、シーン参照画像データが視差画像であると判定された場合(ステップS405;YES)、その視差画像から視差量が算出される(ステップS406)。次いで、図8のグラフに基づいて、ステップS406において算出された視差量に応じた硬さ補正値及び明るさ補正値が算出される(ステップS407)。
【0240】
シーン参照画像データが視差画像でない場合、硬さ・明るさ設定入力部109により、硬さ補正値が入力されると、その入力された硬さ補正値が、実際に階調変換曲線を修正するための硬さ補正値として決定される(ステップS408)。シーン参照画像データが視差画像である場合、硬さ・明るさ設定入力部109により、硬さ補正値が入力されると、その入力された硬さ補正値と、ステップS407において視差量に応じて算出された硬さ補正値の和が、実際に階調変換曲線を修正するための硬さ補正値として決定される(ステップS408)。
【0241】
硬さ補正値が決定されると、階調変換曲線データメモリ116から特定領域データが読み出され(ステップS409)、ステップS408において決定された硬さ補正値に従って階調変換曲線の修正処理が施される(ステップS410)。
【0242】
シーン参照画像データが視差画像でない場合、硬さ・明るさ設定入力部109により、明るさ補正値が入力されると、その入力された明るさ補正値が、実際に階調変換曲線を修正するための明るさ補正値として決定される(ステップS411)。シーン参照画像データが視差画像である場合、硬さ・明るさ設定入力部109により、明るさ補正値が入力されると、その入力された明るさ補正値と、ステップS407において視差量に応じて算出された明るさ補正値の和が、実際に階調変換曲線を修正するための明るさ補正値として決定される(ステップS411)。
【0243】
明るさ補正値が決定されると、階調変換曲線データメモリ116から移動軌跡データが読み出され(ステップS412)、ステップS411において決定された明るさ補正値に従って階調変換曲線の修正処理が施される(ステップS413)。
【0244】
次いで、ステップS408において決定された硬さ補正値に基づいて彩度調整量が算出される(ステップS414)。次いで、修正処理が施された階調変換曲線と、彩度調整量に基づいて、鑑賞画像参照データが再生成され(ステップS415)、本画像処理が終了する。
【0245】
以上のように、実施例4によれば、鑑賞画像参照データの硬さ補正値に基づいて階調変換曲線を調整し、明るさ補正値に基づいて階調変換曲線を調整し、硬さ補正値に基づいて彩度調整量を決定し、調整(修正)された階調変換曲線及び彩度調整量に基づいて鑑賞画像参照データを生成するようにしたことにより、階調変換曲線の設定作業に係る負荷を軽減することができ、理想的な階調変換曲線の設定作業が更に効率化される。更に、シーン参照画像データが視差画像である場合、その視差画像の視差量に基づいて硬さ補正値及び明るさ補正値を算出し、その硬さ補正値及び明るさ補正値に基づいて階調変換曲線を調整するようにしたことにより、立体視表示の画像の画質を向上させることができる。
【0246】
なお、上記各実施の形態における記述内容は、本発明の趣旨を逸脱しない範囲で適宜変更可能である。
【0247】
例えば、実施例2と実施例3を組み合わせることにより、被写体の種類に応じて鑑賞画像参照データの硬さを設定し、撮影条件に応じて鑑賞画像参照データの明るさを設定し、被写体の種類と撮影条件の組み合わせによって、鑑賞画像参照データの硬さと明るさを設定するようにしてもよい。
【0248】
また、実施例2と実施例4を組み合わせることにより、被写体の種類に応じて鑑賞画像参照データの硬さを設定し、撮影条件に応じて鑑賞画像参照データの明るさを設定し、鑑賞画像参照データの硬さを調整した程度に応じて、鑑賞画像参照データの彩度を調整するようにしてもよい。
【0249】
更に、実施例3と実施例4を組み合わせることにより、被写体の種類と撮影条件の組み合わせによって、鑑賞画像参照データの硬さと明るさを設定し、鑑賞画像参照データの硬さを調整した程度に応じて、鑑賞画像参照データの彩度を調整するようにしてもよい。
【0250】
また、実施例2と実施例3と実施例4を組み合わせることにより、被写体の種類に応じて鑑賞画像参照データの硬さを設定し、撮影条件に応じて鑑賞画像参照データの明るさを設定するとともに、被写体の種類と撮影条件の組み合わせによって、鑑賞画像参照データの硬さと明るさを設定し、鑑賞画像参照データの硬さを調整した程度に応じて、鑑賞画像参照データの彩度を調整するようにしてもよい。
【0251】
【発明の効果】
本発明によれば、シーン参照画像データが視差画像である場合、その視差画像の視差量に基づいて硬さ補正値及び明るさ補正値を決定し、その硬さ補正値及び明るさ補正値に基づいて、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を調整するようにしたことにより、立体視表示の画像の画質を向上させることができる。また、階調変換曲線上の所定の位置を含む特定領域を不動領域として、階調変換曲線の形状を変更することによって鑑賞画像参照データの硬さを調整し、特定領域が予め定義された曲線状を移動するように、階調変換曲線の形状を変更することによって鑑賞画像参照データの明るさを調整することにより、階調変換曲線の設定作業の効率化を図ることができる。また、明るさ変動が抑制された、鑑賞画像参照データの硬さ調整が可能になる。更に、硬さ変動が抑制された、鑑賞画像参照データの明るさ調整が可能になる。
【0252】
また、被写体の種類に応じて鑑賞画像参照データの硬さを調整し、撮影条件に応じて鑑賞画像参照データの明るさを調整することにより、階調変換曲線の設定作業を効率化することができる。また、特定の被写体の種類及び撮影条件の組み合わせに応じて鑑賞画像参照データの硬さ及び明るさを調整することにより、階調変換曲線の設定作業を更に効率化することができる。
【0253】
更に、鑑賞画像参照データの硬さの補正値に応じて、当該鑑賞画像参照データの彩度を調整可能にしたことにより、階調変換曲線の設定作業が効率化されるとともに、好ましい鑑賞画像参照データを得ることができる。
【図面の簡単な説明】
【図1】シーン参照画像データを鑑賞画像参照データに変換するための階調変換曲線を示す図。
【図2】図1の階調変換曲線上の所定の位置1と、その所定の位置1を含む特定領域2を示す図。
【図3】図2の特定領域2の移動軌跡を説明するための図。
【図4】本実施の形態における画像記録装置1の外観構成を示す斜視図である。
【図5】画像記録装置1の内部構成を示すブロック図である。
【図6】本発明の実施例1における画像処理部70の機能的構成を示すブロック図。
【図7】本発明の実施例1における画像処理装置115の機能的構成を示すブロック図。
【図8】視差量と硬さ補正値の関係(同図(a))と、視差量と明るさ補正値の関係(同図(b))を示す図。
【図9】視差量の算出方法を説明するための図。
【図10】被写体の検出方法を説明するための図。
【図11】被写体の検出方法を説明するための図。
【図12】階調変換曲線の一例を示す図。
【図13】階調変換曲線の一例を示す図。
【図14】階調変換曲線における特定領域(不動領域)の移動軌跡の一例を示す図。
【図15】実施例1における画像処理を示すフローチャート。
【図16】本発明の実施例2における画像処理部70の機能的構成を示すブロック図。
【図17】本発明の実施例2における画像処理装置115の機能的構成を示すブロック図。
【図18】被写体の種類別の視差量と硬さ補正値の関係(同図(a))と、被写体の種類別の視差量と明るさ補正値の関係(同図(b))を示す図。
【図19】実施例2における画像処理を示すフローチャート。
【図20】本発明の実施例3における画像処理部70の機能的構成を示すブロック図。
【図21】本発明の実施例3における画像処理装置115の機能的構成を示すブロック図。
【図22】実施例3における画像処理を示すフローチャート。
【図23】本発明の実施例4における画像処理部70の機能的構成を示すブロック図。
【図24】本発明の実施例4における画像処理装置115の機能的構成を示すブロック図。
【図25】硬さ(L*25〜75)の初期階調変換曲線からの差DG(Δγ)と、彩度調整量PS(%)の関係を示す図。
【図26】実施例4における画像処理を示すフローチャート。
【符号の説明】
1 画像記録装置
4 露光処理部
5 プリント作成部
7 制御部
8 CRT
9 フィルムスキャナ部
10 反射原稿入力装置
11 操作部
12 情報入力手段
14 画像読込部
15 画像書込部
30 画像転送手段
31 画像搬送部
32 通信手段(入力)
33 通信手段(出力)
51 外部プリンタ
70 画像処理部
701 画像調整処理部
702 フィルムスキャンデータ処理部
703 反射原稿スキャンデータ処理部
704 画像データ書式解読処理部
705 テンプレート処理部
706 CRT固有処理部
707 プリント固有処理部▲1▼
708 プリント固有処理部▲2▼
709 画像データ作成処理部
71 データ蓄積手段
72 テンプレート記憶手段
101 入力部
102 ヘッダ情報解析部
103a 処理条件テーブル
103b 装置特性補正処理部
104 シーン参照画像データ生成部
105、108 一時記憶メモリ
106 撮影情報データ処理部
107 鑑賞画像参照データ生成部
109 硬さ・明るさ設定入力部
116 階調変換曲線データメモリ
119 視差量・補正値算出部
303 条件算出部
304 彩度補正データ算出部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method, an image processing apparatus, and an image recording apparatus for forming an appreciation image on an output medium, which performs an optimization process for forming an appreciation image on an output medium from scene reference image data.
[0002]
[Prior art]
In recent years, digital image data captured by an imaging device such as a digital camera is distributed via a storage device such as a CD-R, a floppy (registered trademark) disk, a memory card, or the Internet, and a CRT (Cathode Ray Tube) or liquid crystal display. Displayed on a display device such as a plasma display or a small liquid crystal monitor of a mobile phone, or printed as a hard copy image using an output device such as a digital printer, an inkjet printer, or a thermal printer. It has been diversified.
[0003]
Also, when digital image data is displayed for viewing or printed out, gradation adjustment is performed on the digital image data so that the desired image quality can be obtained on the display or hard copy used for viewing. In general, various image processes represented by brightness adjustment, color balance adjustment, and sharpness enhancement are performed.
[0004]
In response to these various display methods and printing methods, efforts have been made to increase the versatility of digital image data. As part of this effort, there is an attempt to standardize the color space represented by the digital RGB signal to a color space that does not depend on the characteristics of the imaging device. Currently, “sRGB” is adopted as a standardized color space for many digital image data. (See "Multimedia Systems and Equipment-Colour Measurment and Management-Part2-1: Color Management-Default RGB Color Space-sRGB" IEC "61966-2-1.) This sRGB color space is a standard CRT display. It is set corresponding to the color reproduction area of the monitor.
[0005]
In general, a digital camera is an imaging device having a photoelectric conversion function (CCD-type imaging) to which color sensitivity is imparted by combining a charge coupled device (CCD), a charge transfer mechanism, and a checkered color filter. Element, hereinafter simply referred to as CCD). Digital image data output from the digital camera is converted into an electrical original signal converted via the CCD, with correction of the photoelectric conversion function of the image sensor (for example, gradation correction, spectral sensitivity crosstalk correction, dark current noise). File conversion / compression processing into a predetermined data format that has been standardized so that it can be read / displayed by image editing software (image processing such as suppression, sharpening, white balance adjustment, saturation adjustment, etc.) Etc.
[0006]
As such a data format, for example, “Baseline Tiff Rev. 6.0 RGB Full Color Image” adopted as an uncompressed file of an Exif file and a compressed data file format conforming to the JPEG format are known. The Exif file conforms to sRGB, and the correction of the photoelectric conversion function of the image sensor is set so as to obtain the most suitable image quality on a display monitor conforming to sRGB.
[0007]
For example, tag information indicating that any digital camera is displayed in a standard color space of a display monitor (hereinafter referred to as “monitor profile”) compliant with the sRGB signal, the number of pixels, the pixel array, The digital image data has a function of writing additional information indicating model-dependent information such as the number of bits per pixel as metadata in the file header of the digital image data. The tag information is analyzed by image editing software (for example, Photoshop manufactured by Adobe), and the monitor profile is prompted to change to sRGB, or the change processing is automatically performed. Therefore, it is possible to reduce the difference between different displays and to view digital image data taken with a digital camera in a suitable state on a display monitor.
[0008]
Further, as additional information written in the file header of digital image data, in addition to the above-mentioned model-dependent information, for example, information directly related to the camera type (model) such as camera name and code number, exposure time, shutter Speed, aperture value (F number), ISO sensitivity, brightness value, subject distance range, light source, presence / absence of strobe emission, subject area, white balance, zoom magnification, subject composition, shooting scene type, amount of reflected light from strobe light source, A tag (code) indicating shooting conditions such as shooting saturation, information on the type of subject, and the like is used. The image editing software and the output device have a function of reading the additional information and making the image quality of the hard copy image more suitable.
[0009]
By the way, an image displayed on a display device such as a CRT display monitor and a hard copy image printed by various printing devices have different color gamuts depending on the configuration of the phosphor or color material used. For example, the color reproduction area of a CRT display monitor corresponding to the sRGB standard color space has a wide bright green and blue area, and there are areas that cannot be reproduced by hard copy such as silver halide photographic prints, inkjet printers, and printing. On the other hand, there are areas that cannot be reproduced with a CRT display monitor that supports the sRGB standard color space in the cyan area of printing / inkjet and the yellow area of silver halide photography. For example, Corona “Fine Imaging and Digital Photography” Japan (See page 444 of the Photographic Society Publishing Committee). On the other hand, there is a possibility that some subject scenes to be photographed exhibit area colors that cannot be reproduced in any of these color reproduction areas.
[0010]
As described above, since the color space (including sRGB) optimized on the premise of display or printing by a specific device is limited in the recordable color gamut, the information acquired by the imaging device is recorded. Needs to be compressed and mapped to a recordable color gamut. As the mapping method, clipping that maps chromaticity points outside the recordable color gamut onto the nearest color gamut boundary is the simplest, but this will collapse the gradation outside the color gamut, It becomes an image that feels strange when watching. For this reason, at present, non-linear compression is generally employed in which chromaticity points in a region where the chroma is higher than an appropriate threshold value are smoothly compressed according to the size of the chroma. As a result, the chroma is also compressed and recorded at chromaticity points within the recordable color gamut. (Details of the color gamut mapping method are described in, for example, Corona, “Fine Imaging and Digital Photography”, page 447 of the Japan Photographic Society Publishing Committee.)
[0011]
Further, an image displayed on a display device such as a CRT display monitor, a hard copy image printed by various printing devices, and a color space (including sRGB) optimized on the premise of display / printing by these devices The recordable / reproducible luminance range is limited to about 100: 1 order. On the other hand, the subject scene to be photographed has a wide luminance range and often reaches the order of several thousand: 1 outdoors (for example, “New Color Science Handbook 2nd Edition” published by the University of Tokyo Press) Pp. 926). Therefore, when recording the information acquired by the imaging device, the luminance needs to be similarly compressed. In this process, it is necessary to set appropriate conditions for each image in accordance with the dynamic range of the shooting scene and the luminance range of the main subject in the shooting scene.
[0012]
However, when the color gamut / luminance gamut compression operation described above is performed, the compressed gradation information and clipped information are lost at that time due to the principle of digital images recorded as discrete values. It is broken and cannot be restored to the original state. This is a major limitation on the versatility of high-quality digital images.
[0013]
For example, when printing an image recorded in the sRGB standard color space, mapping is required again based on the difference in the color reproduction range between the sRGB standard color space and the print device. However, since the gradation information of the area once compressed at the time of recording is lost, the smoothness of gradation is deteriorated as compared with the case where the information acquired by the imaging device is directly mapped to the color reproduction area of the printing device. Also, if the gradation compression conditions at the time of recording are inadequate, and the picture is whitish, the face is dark, the shadows are crushed, or the highlight area is overly conspicuous, change the gradation settings and change the image. Even if you try to improve it, the compressed gradation information and the information on the crushed and overexposed parts are already lost, so there is only a significant improvement compared to recreating a new image from the information acquired by the imaging device. I can't do it.
[0014]
A technique for storing the image editing process as a backup and returning it to the state before editing as necessary has long been known. For example, Patent Document 1 describes a backup device that stores, as backup data, differential image data from digital image data before and after image processing when digital image data is locally changed by image processing. Yes. Japanese Patent Application Laid-Open No. 2005-228561 describes a method for restoring digital image data before editing by saving and saving differential image data of digital image data before and after image processing. Although such a technique is effective from the viewpoint of preventing information loss, there is a problem in that the number of images that can be captured by the camera decreases as the amount of data to be recorded on the media increases.
[0015]
The problem described above is caused by compressing and recording information on a wide color gamut and luminance range acquired by the imaging device into appreciation image reference data in an optimized state assuming an appreciation image. In contrast, if information on a wide color gamut / luminance gamut acquired by the imaging device is recorded as uncompressed scene reference image data, inadvertent loss of information can be prevented. As standard color spaces suitable for recording such scene reference image data, for example, “RIMM RGB” and “ERIMM RGB” have been proposed (Journal of Imaging Science and Technology 45, pp. 418-426 ( 2001)).
[0016]
Patent Document 3 discloses an image processing apparatus having a mode for recording in the form of an image signal displayed on the display means and a mode for recording in the form of a captured image signal. The latter image signal form is generally referred to as RAW data, and such digital image data is used for display / printing of Exif files, etc., using dedicated application software (referred to as “electronic development software”). Can be converted into appreciation image reference data (referred to as “electronic development” or simply “development”). Since RAW data stores all information at the time of shooting, it is possible to recreate appreciation image reference data. If another color system file such as CMYK is created directly, the color gamut with the display monitor (sRGB) The color is not inadvertently changed due to the difference.
[0017]
By the way, in recent years, autostereoscopic viewing (hereinafter referred to as “stereoscopic display”) in which stereoscopic (three-dimensional) image display is performed using a plurality of images arranged on a plane has been known. There are various types of stereoscopic display, but in common with any display method, two images (hereinafter simply referred to as “parallax images”) for generating parallax are required. A parallax image is obtained by photographing the same subject from different viewpoints.
[0018]
In a digital camera capable of shooting such a parallax image, the distance between viewpoints, that is, the distance between lenses (referred to as “shooting baseline length”) is the distance between human eyes in order to give a natural perspective. It is set to about 6-7 cm which is equal. With a general digital camera with one photographic optical system, it is possible to shoot a parallax image by shifting the shooting position in the horizontal direction at the time of the second shooting, and shooting the same subject twice continuously. There are some that have an auxiliary function.
[0019]
In the stereoscopic display called a stereo pair, the size of each image is adjusted so that the two parallax images are kept at about 6-7 cm, which is the same as the distance between the human eyes, on the plane. Are arranged side by side. As a method for observing the parallax image arranged on the plane, there are a parallel method in which the parallax image arranged on the right side is viewed with the right eye and an intersection method in which the parallax image arranged on the right side is viewed with the left eye. In the parallel method, a parallax image can be viewed without requiring extra power on the eyes, but a large image cannot be viewed. On the other hand, since the intersection method looks at the parallax image as a close eye, the eyes are easily tired, but a large image can be seen.
[0020]
[Patent Document 1]
JP 7-57074 A
[Patent Document 2]
JP 2001-94778 A
[Patent Document 3]
JP 11-261933 A
[0021]
[Problems to be solved by the invention]
When converting scene reference image data to optimal viewing image reference data on a display monitor using the above-described technique, a gradation conversion curve is set using dedicated application software as with RAW data. Or adjust saturation. In general, the gradation conversion curve is set by a mouse operation using a user interface function for visually adjusting the curve shape. However, the setting operation of the gradation conversion curve is to adjust the hardness and lightness of the shadow side, intermediate area, and highlight side of the image at the same time, and requires considerable skill. Also, the setting of the gradation conversion curve varies depending on the type of subject or shooting conditions (for example, flash photography, backlight). Furthermore, if it conforms to a standard such as sRGB as in a CRT display, the versatility of setting the gradation conversion curve is high, and the manufacturer can easily make some recommended settings. When an appreciation image is formed on an ink jet printer or the like, there are very few cases where the recommended setting is sufficient due to various fluctuation factors. In addition to this, since the user's preference is also different, after all, it is necessary to rely on the adjustment by the user himself. Therefore, the conventional technique has a problem that the gradation conversion curve cannot be easily set due to a heavy load on the user for setting the gradation conversion curve when converting the scene reference image data to the viewing image reference data. It was. In particular, when the scene reference image data is a parallax image, the load related to the setting operation of the gradation conversion curve is further increased.
[0022]
An object of the present invention is to realize image processing that reduces a load related to a setting operation of a gradation conversion curve when converting scene reference image data to appreciation image reference data.
[0023]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, the invention according to claim 1 is directed to image processing for generating appreciation image reference data by performing image processing optimized for appreciation image formation on an output medium on scene reference image data. In the method, a determination step of determining whether the scene reference image data is a parallax image, and a parallax amount of the parallax image when the scene reference image data is determined to be a parallax image in the determination step A correction value determining step for determining the hardness correction value and the brightness correction value of the viewing image reference data based on the above, and from the scene reference image data defined in advance for each output medium to the viewing image reference data A first changing step of changing a gradation conversion curve indicating conversion based on the determined hardness correction value; and changing the gradation conversion curve based on the determined brightness correction value. And a generation step of generating appreciation image reference data based on the gradation conversion curve changed in the first change step and the second change step. In the changing step, a specific area including a predetermined position on the gradation conversion curve is set as a non-moving area, and the shape of the gradation conversion curve is changed based on the determined hardness correction value. In the changing step, the shape of the gradation conversion curve is changed based on the determined brightness correction value so that the specific area moves on a predefined curve.
[0024]
According to a second aspect of the present invention, in the image processing method according to the first aspect, a hardness calculation step of calculating a correction value of the hardness of the appreciation image reference data according to the type of the subject, and a photographing condition. Accordingly, a brightness calculation step of calculating a correction value of the brightness of the viewing image reference data, and in the correction value determination step, the hardness correction value calculated in the hardness calculation step, and Based on the parallax amount of the parallax image, a correction value for the hardness of the viewing image reference data is determined, and based on the brightness correction value calculated in the brightness calculation step and the parallax amount of the parallax image, A correction value for brightness of the viewing image reference data is determined.
[0025]
According to a third aspect of the present invention, in the image processing method according to the first aspect, the correction value of the hardness and the correction of the brightness of the appreciation image reference data according to the combination of the type of the specific subject and the photographing condition. A hardness / brightness calculation step of calculating a value, and in the correction value determination step, a parallax amount of the parallax image, a correction value of the hardness calculated in the hardness / brightness calculation step, and a brightness Based on the correction value, a hardness correction value and a brightness correction value of the viewing image reference data are determined.
[0026]
According to a fourth aspect of the present invention, in the image processing method according to the first aspect, the saturation adjustment amount of the appreciation image reference data is determined based on the hardness correction value determined in the correction value determination step. A saturation determination step, and in the generation step, the gradation conversion curve changed in the first change step and the second change step, and the appreciation based on the determined saturation adjustment amount It is characterized in that image reference data is generated.
[0027]
According to a fifth aspect of the present invention, in the image processing method according to the second aspect, the correction value for the hardness and the correction of the brightness of the viewing image reference data according to the combination of the type of the specific subject and the photographing condition. A hardness / brightness calculation step of calculating a value, and in the correction value determination step, a parallax amount of the parallax image, a correction value of the hardness calculated in the hardness calculation step, and the hardness / brightness calculation Based on the hardness correction value calculated in the step, the hardness correction value of the viewing image reference data is determined, and the parallax amount of the parallax image, the brightness correction value calculated in the brightness calculation step The brightness correction value of the viewing image data is determined based on the brightness correction value calculated in the hardness / brightness calculation step.
[0028]
According to a sixth aspect of the present invention, in the image processing method according to the second aspect, the amount of adjustment of the saturation of the viewing image reference data is determined based on the hardness correction value determined in the correction value determination step. Viewing image reference data based on the gradation conversion curves changed in the first changing step and the second changing step and the saturation adjustment amount in the generating step Is generated.
[0029]
According to a seventh aspect of the present invention, in the image processing method according to the third aspect, the amount of saturation adjustment of the viewing image reference data is determined based on the hardness correction value determined in the correction value determination step. Viewing image reference data based on the gradation conversion curves changed in the first changing step and the second changing step and the saturation adjustment amount in the generating step Is generated.
[0030]
According to an eighth aspect of the present invention, in the image processing method according to the fifth aspect, the saturation adjustment amount of the appreciation image reference data is determined based on the hardness correction value determined in the correction value determination step. Viewing image reference data based on the gradation conversion curves changed in the first changing step and the second changing step and the saturation adjustment amount in the generating step Is generated.
[0031]
According to a ninth aspect of the present invention, in the image processing method according to any one of the third, fifth, seventh, and eighth aspects, in the combination of the specific subject type and the photographing condition, the subject type is a portrait. It is characterized in that the photographing condition is backlight.
[0032]
According to a tenth aspect of the present invention, in the image processing method according to any one of the fourth, sixth to eighth aspects, the saturation adjustment amount when the hardness correction value is 0 is an appreciation image. It is a value that emphasizes the saturation of the reference data.
[0033]
According to an eleventh aspect of the present invention, in the image processing method according to any one of the second, third, and fifth to tenth aspects, the type of the subject includes at least a portrait, a landscape, and a still life. It is a feature.
[0034]
According to a twelfth aspect of the present invention, in the image processing method according to any one of the second, third, and fifth to eleventh aspects, the photographing condition includes at least backlighting and strobe photographing. .
[0035]
A thirteenth aspect of the present invention is the image processing method according to any one of the first to twelfth aspects, wherein when the input / output value of the gradation conversion curve is L *, the predetermined region in the specific region is The position is characterized in that the input L * is a position of 40 or more and less than 50.
[0036]
The invention according to claim 14 is the image processing method according to any one of claims 1 to 13, wherein initial values of hardness and brightness of a gradation conversion curve defined in advance for each output medium are as follows: It is characterized by being stored for each user.
[0037]
According to a fifteenth aspect of the present invention, in the image processing apparatus for generating appreciation image reference data by performing image processing optimized for appreciation image formation on an output medium on the scene reference image data, the scene reference image is generated. When the determination unit determines whether the data is a parallax image, and the determination unit determines that the scene reference image data is a parallax image, the appreciation image is based on the parallax amount of the parallax image. A correction value determination unit for determining a correction value for hardness and a correction value for brightness of reference data, and a gradation conversion curve that is defined in advance for each output medium and indicates conversion from scene reference image data to appreciation image reference data A first changing unit that changes the gradation conversion curve based on the determined brightness correction value, and a first changing unit that changes the gradation conversion curve based on the determined brightness correction value. The first A generation unit that generates appreciation image reference data based on the gradation conversion curve changed by the further change unit and the second change unit, and the first change unit has a predetermined value on the gradation conversion curve. The specific area including the position is defined as a non-moving area, and the shape of the gradation conversion curve is changed based on the determined hardness correction value. The second changing unit is configured to predefine the specific area. It is characterized in that the shape of the gradation conversion curve is changed based on the determined brightness correction value so as to move on the curve.
[0038]
According to a sixteenth aspect of the present invention, in the image processing device according to the fifteenth aspect, a hardness calculation unit that calculates a correction value of the hardness of the appreciation image reference data according to the type of the subject, and a photographing condition. Accordingly, a brightness calculation unit that calculates a correction value of the brightness of the viewing image reference data, and the correction value determination unit includes the hardness correction value calculated by the hardness calculation unit, Based on the parallax amount of the parallax image, the correction value of the hardness of the viewing image reference data is determined, and based on the brightness correction value calculated by the brightness calculation unit and the parallax amount of the parallax image, A correction value for brightness of the appreciation image reference data is determined.
[0039]
According to a seventeenth aspect of the present invention, in the image processing device according to the fifteenth aspect, the correction value of the hardness and the correction of the brightness of the appreciation image reference data according to the combination of the type of the specific subject and the photographing condition. A hardness / brightness calculation unit that calculates a value, and the correction value determination unit calculates a parallax amount of the parallax image, a hardness correction value and a brightness calculated by the hardness / brightness calculation unit. Based on the correction value, the hardness correction value and the brightness correction value of the viewing image reference data are determined.
[0040]
According to an eighteenth aspect of the present invention, in the image processing apparatus according to the fifteenth aspect, an amount of adjustment of the saturation of the appreciation image reference data is determined based on the correction value of hardness determined by the correction value determination unit. A saturation determining unit that performs the appreciation based on the gradation conversion curve changed by the first changing unit and the second changing unit and the determined amount of saturation adjustment. It is characterized by generating image reference data.
[0041]
According to a nineteenth aspect of the present invention, in the image processing apparatus according to the sixteenth aspect, a correction value of hardness and a correction of brightness of the appreciation image reference data according to a combination of a specific subject type and a photographing condition. A hardness / brightness calculation unit that calculates a value, and the correction value determination unit calculates a parallax amount of the parallax image, a correction value of the hardness calculated by the hardness calculation unit, and the hardness / brightness calculation. Based on the hardness correction value calculated by the unit, the hardness correction value of the viewing image reference data is determined, the parallax amount of the parallax image, the brightness correction value calculated by the brightness calculation unit The brightness correction value of the viewing image data is determined based on the brightness correction value calculated by the hardness / brightness calculation unit.
[0042]
According to a twentieth aspect of the present invention, in the image processing apparatus according to the sixteenth aspect, the amount of saturation adjustment of the appreciation image reference data is determined based on the hardness correction value determined by the correction value determination unit. And the generation unit is configured to apply the viewing image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. It is characterized by generating.
[0043]
According to a twenty-first aspect of the present invention, in the image processing device according to the seventeenth aspect, the amount of adjustment of the saturation of the viewing image reference data is determined based on the hardness correction value determined by the correction value determining unit. And the generation unit is configured to apply the viewing image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. It is characterized by generating.
[0044]
According to a twenty-second aspect of the present invention, in the image processing apparatus according to the nineteenth aspect, an amount of saturation adjustment of the viewing image reference data is determined based on the hardness correction value determined by the correction value determination unit. And the generation unit is configured to apply the viewing image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. It is characterized by generating.
[0045]
According to a twenty-third aspect of the present invention, in the image processing apparatus according to any one of the seventeenth, nineteenth, twenty-first, and twenty-second aspect, in the combination of the specific subject type and the photographing condition, the subject type is a portrait. It is characterized in that the photographing condition is backlight.
[0046]
According to a twenty-fourth aspect of the present invention, in the image processing apparatus according to any one of the eighteenth and twenty-second aspects, the saturation adjustment amount when the hardness correction value is 0 is an appreciation image. It is a value that emphasizes the saturation of the reference data.
[0047]
According to a twenty-fifth aspect of the present invention, in the image processing device according to any one of the sixteenth, seventeenth, and nineteenth to twenty-fourth aspects, the types of the subject include at least a portrait, a landscape, and a still life. It is a feature.
[0048]
According to a twenty-sixth aspect of the present invention, in the image processing apparatus according to any one of the sixteenth, seventeenth, and nineteenth to twenty-fifth aspects, the photographing conditions include at least backlighting and strobe photographing. .
[0049]
According to a twenty-seventh aspect of the present invention, in the image processing apparatus according to any one of the fifteenth to twenty-sixth aspects, when an input / output value of the gradation conversion curve is L *, a predetermined value in the specific region is set. The position is characterized in that the input L * is a position of 40 or more and less than 50.
[0050]
According to a twenty-eighth aspect of the present invention, in the image processing apparatus according to any one of the fifteenth to twenty-seventh aspects, initial values of hardness and brightness of a gradation conversion curve defined in advance for each output medium are: It is characterized by being stored for each user.
[0051]
According to the twenty-ninth aspect of the present invention, the scene reference image data is subjected to image processing that is optimized for appreciation image formation on the output medium to generate appreciation image reference data, and the generated appreciation image data is output. In the image recording apparatus formed on the medium, a determination unit that determines whether or not the scene reference image data is a parallax image, and the determination unit determines that the scene reference image data is a parallax image A correction value determining unit that determines a correction value of hardness and a correction value of brightness of the viewing image reference data based on a parallax amount of the parallax image, and scene reference image data defined in advance for each output medium A first changing unit that changes a gradation conversion curve indicating conversion from image to viewing image reference data based on the determined correction value of hardness, and the gradation conversion curve includes the determined brightness. Correction A second change unit that changes based on the first change unit, and a generation unit that generates appreciation image reference data based on the gradation conversion curve changed by the first change unit and the second change unit, The first changing unit changes a shape of the gradation conversion curve based on the determined hardness correction value, with a specific region including a predetermined position on the gradation conversion curve as a non-moving region, The second changing unit changes the shape of the gradation conversion curve based on the determined brightness correction value so that the specific region moves on a predefined curve. Yes.
[0052]
According to a thirty-third aspect of the present invention, in the image recording device according to the twenty-ninth aspect, a hardness calculation unit that calculates a correction value of the hardness of the appreciation image reference data according to the type of the subject, and a photographing condition Accordingly, a brightness calculation unit that calculates a correction value of the brightness of the viewing image reference data, and the correction value determination unit includes the hardness correction value calculated by the hardness calculation unit, Based on the parallax amount of the parallax image, the correction value of the hardness of the viewing image reference data is determined, and based on the brightness correction value calculated by the brightness calculation unit and the parallax amount of the parallax image, A correction value for brightness of the appreciation image reference data is determined.
[0053]
According to a thirty-first aspect of the present invention, in the image recording device according to the twenty-ninth aspect, the correction value of the hardness of the appreciation image reference data and the correction of the brightness according to the combination of the type of the specific subject and the photographing condition. A hardness / brightness calculation unit that calculates a value, and the correction value determination unit calculates a parallax amount of the parallax image, a hardness correction value and a brightness calculated by the hardness / brightness calculation unit. Based on the correction value, the hardness correction value and the brightness correction value of the viewing image reference data are determined.
[0054]
According to a thirty-second aspect of the present invention, in the image recording apparatus according to the twenty-ninth aspect, the amount of adjustment of the saturation of the viewing image reference data is determined based on the hardness correction value determined by the correction value determination unit. A saturation determining unit that performs the appreciation based on the gradation conversion curve changed by the first changing unit and the second changing unit and the determined amount of saturation adjustment. It is characterized by generating image reference data.
[0055]
According to a thirty-third aspect of the present invention, in the image recording apparatus according to the thirty-third aspect, a correction value of hardness and a correction of brightness of the appreciation image reference data according to a combination of a specific subject type and photographing conditions A hardness / brightness calculation unit that calculates a value, and the correction value determination unit calculates a parallax amount of the parallax image, a correction value of the hardness calculated by the hardness calculation unit, and the hardness / brightness calculation. Based on the hardness correction value calculated by the unit, the hardness correction value of the viewing image reference data is determined, the parallax amount of the parallax image, the brightness correction value calculated by the brightness calculation unit The brightness correction value of the viewing image data is determined based on the brightness correction value calculated by the hardness / brightness calculation unit.
[0056]
According to a thirty-fourth aspect of the present invention, in the image recording apparatus according to the thirty-third aspect, an amount of saturation adjustment of the appreciation image reference data is determined based on the hardness correction value determined by the correction value determination unit. And the generation unit is configured to apply the viewing image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. It is characterized by generating.
[0057]
According to a thirty-fifth aspect of the present invention, in the image recording apparatus according to the thirty-first aspect, an amount of saturation adjustment of the appreciation image reference data is determined based on the hardness correction value determined by the correction value determination unit. And the generation unit is configured to apply the viewing image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. It is characterized by generating.
[0058]
According to a thirty-sixth aspect of the present invention, in the image recording apparatus according to the thirty-third aspect, an amount of saturation adjustment of the appreciation image reference data is determined based on the hardness correction value determined by the correction value determination unit. And the generation unit is configured to apply the viewing image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. It is characterized by generating.
[0059]
According to a thirty-seventh aspect of the present invention, in the image recording apparatus according to any one of the thirty-first, thirty-third, thirty-five, and thirty-sixth aspects, in the combination of the specific subject type and the photographing condition, the subject type is a portrait. It is characterized in that the photographing condition is backlight.
[0060]
According to a thirty-eighth aspect of the present invention, in the image recording apparatus according to any one of the thirty-second and thirty-fourth to thirty-sixth aspects, the saturation adjustment amount when the hardness correction value is zero is an appreciation image. It is a value that emphasizes the saturation of the reference data.
[0061]
According to a thirty-ninth aspect of the present invention, in the image recording apparatus according to any one of the thirty-third, thirty-one, and thirty-third to thirty-eight aspects, the types of the subject include at least a portrait, a landscape, and a still life. It is a feature.
[0062]
The invention according to claim 40 is the image recording apparatus according to any one of claims 30, 31, 33 to 39, wherein the photographing conditions include at least backlighting and flash photography. .
[0063]
In the image recording apparatus according to any one of claims 29 to 40, when the input / output value of the gradation conversion curve is L *, the image recording apparatus according to any one of claims 29 to 40 has a predetermined value in the specific area. The position is characterized in that the input L * is a position of 40 or more and less than 50.
[0064]
The invention according to claim 42 is the image recording apparatus according to any one of claims 29 to 41, wherein initial values of hardness and brightness of a gradation conversion curve defined in advance for each output medium are: It is characterized by being stored for each user.
[0065]
According to the present invention, when the scene reference image data is a parallax image, the hardness correction value and the brightness correction value are determined based on the parallax amount of the parallax image, and the hardness correction value and the brightness correction value are determined. Based on this, the tone conversion curve indicating the conversion from the scene reference image data to the appreciation image reference data is adjusted, so that the image quality of the stereoscopic display image can be improved. In addition, the hardness of the viewing image reference data is adjusted by changing the shape of the gradation conversion curve using a specific area including a predetermined position on the gradation conversion curve as a non-moving area, and the specific area is a curve in which the specific area is defined in advance. By adjusting the brightness of the viewing image reference data by changing the shape of the gradation conversion curve so as to move, the efficiency of the gradation conversion curve setting work can be improved. Further, it is possible to adjust the hardness of the viewing image reference data in which the brightness fluctuation is suppressed. Furthermore, it is possible to adjust the brightness of the viewing image reference data in which the variation in hardness is suppressed.
[0066]
In addition, by adjusting the hardness of the viewing image reference data according to the type of the subject and adjusting the brightness of the viewing image reference data according to the shooting conditions, it is possible to improve the efficiency of setting the gradation conversion curve. it can. In addition, by adjusting the hardness and brightness of the viewing image reference data according to the combination of the specific subject type and the shooting conditions, it is possible to further improve the efficiency of setting the gradation conversion curve.
[0067]
In addition, since the saturation of the viewing image reference data can be adjusted according to the correction value of the hardness of the viewing image reference data, the setting operation of the gradation conversion curve is made efficient, and preferable viewing of the viewing image is performed. Data can be obtained.
[0068]
Next, terms used in the present invention will be described in detail.
[0069]
In the description of the present invention, “generation” means that a program and a processing circuit that operate in the image processing method, image processing apparatus, and image recording apparatus of the present invention newly generate an image signal. “Create” may be used as a synonym.
[0070]
“Scene reference image data” means that the signal intensity of each color channel based on at least the spectral sensitivity of the image sensor itself has been mapped to the standard color space such as RIM RGB, ERIMM RGB, etc. It means image data in a state in which image processing for modifying data contents in order to improve the effect at the time of image viewing such as enhancement and saturation enhancement is omitted. In addition, the scene reference image data corrects the photoelectric conversion characteristics (opto-electronic conversion function, for example, “Fine Imaging and Digital Photography” of Corona Co., Ltd., page 449 of the Japan Photographic Society Publishing Committee). It is preferable that The information amount (for example, the number of gradations) of the standardized scene reference image data is equal to or greater than the information amount (for example, the number of gradations) required for the viewing image reference data in accordance with the performance of the A / D converter. It is preferable. For example, when the number of gradations of the viewing image reference data is 8 bits per channel, the number of gradations of the scene reference image data is preferably 12 bits or more, more preferably 14 bits or more, and even more preferably 16 bits or more.
[0071]
“Appreciation image reference data” means digital image data used for generating a hard copy image on an “output medium” such as a CRT, liquid crystal display, plasma display, silver halide photographic paper, inkjet paper, thermal printer paper or the like. . An “optimization process” is performed so that an optimal image can be obtained on a display device such as a CRT, a liquid crystal display, a plasma display, and an output medium such as a silver salt photographic paper, an inkjet paper, and a thermal printer paper.
[0072]
In addition, “optimized image processing” is to obtain an optimal image on a display device such as a CRT, a liquid crystal display, a plasma display, or an output medium such as a silver salt photographic paper, an inkjet paper, or a thermal printer paper. For example, when it is assumed that the image is displayed on a CRT display monitor compliant with the sRGB standard, the process is performed so that an optimum color reproduction is obtained within the color gamut of the sRGB standard. Also, assuming output to silver salt photographic paper, processing is performed so that optimum color reproduction is obtained within the color gamut of the silver salt photographic paper. In addition to color gamut compression, gradation compression from 16 bits to 8 bits, reduction of the number of output pixels, and processing for handling output characteristics (LUT) of the output device are also included. Furthermore, it goes without saying that image processing such as noise suppression, sharpening, color balance adjustment, saturation adjustment, and dodging processing is performed.
[0073]
The “output medium” is a display device such as a CRT, a liquid crystal display, or a plasma display, silver salt photographic paper, inkjet paper, thermal printer paper, or the like.
[0074]
The “parallax image” is digital image data taken from at least two different viewpoints necessary for stereoscopic display by a stereo pair, taken by an imaging device. There are the following two methods for obtaining the parallax image. (1) A method in which the position of one imaging device is changed and acquired by at least two shootings. (2) A method in which two image pickup devices are arranged at a predetermined interval and acquired by one shooting of each image pickup device. {Circle around (3)} A method of obtaining by photographing with one imaging device having two imaging optical systems arranged at a predetermined interval.
[0075]
The parallax images may be stored individually for each digital image data photographed from different viewpoints, but are preferably stored so that difference data of other parallax images is attached to one parallax image. . When parallax images are stored individually, it is preferable that information for specifying the parallax image for one subject is attached. When difference data of another parallax image is attached to one parallax image, it is preferable to attach information indicating that the difference data is attached to the one parallax image.
[0076]
The “tone conversion curve” is an input / output conversion curve (“Look Up Table”, hereinafter simply referred to as “LUT”) for converting “scene reference image data” to “viewing image reference data”. FIG. 1 shows a curve on the graph represented by the input L * on the horizontal axis and the output L * on the vertical axis. In FIG. 1, the input L * and the brightness (luminance) value of the subject are directly proportional to the linear portion of the CCD output. The output L * is a value obtained by gradation conversion using a value obtained by a predetermined brightness (luminance) calculation formula when the input L * is mapped to the sRGB color space.
[0077]
In addition, “a gradation conversion curve that is pre-defined for each output medium and indicates conversion from scene reference image data to appreciation image reference data” refers to a display device such as a CRT, a liquid crystal display, or a plasma display, silver salt photographic paper This means that a “tone conversion curve” is prepared for each type of inkjet paper, thermal printer paper, and the like.
[0078]
Further, the “specific region including a predetermined position on the gradation conversion curve” means a certain area including a point on the gradation conversion curve for converting scene reference image data to appreciation image reference data as shown in FIG. Indicates the area. Here, the “predetermined position” is preferably a position where the input L * is 40 or more and less than 50, as described in claims 13, 27, and 41.
[0079]
The range of “specific region” and the relationship between “specific region” and “predetermined position” depend on a relational expression that changes the shape of the gradation conversion curve. When defining the relational expression for changing the shape of the gradation conversion curve using the “hardness correction value” (hardness adjustment parameter) input by the user, the “predetermined position” is the “specific region”. It is preferable to consider that the range of the specific region becomes as small as possible. In particular, the range of the specific region is preferably Δ10 or less, and more preferably 5 or less, at the input / output L *. Note that the hardness adjustment parameter is preferably one.
[0080]
“The shape of the gradation conversion curve is changed (the shape is changed) based on the correction value of the hardness with the specific region as a non-moving region” as shown in FIG. An input / output value is fixed for at least one point on the conversion curve, and the curve shape on the S-shape is reproduced by adjusting the hardness. When the hardness is set to be hard, the slope at a point on the gradation conversion curve that passes through the specific region increases. Note that 1 in FIG. 2 represents a “predetermined position” and 2 represents a “specific area”. In the present invention, the output value of input L * = 0 in FIG. 2 is preferably fixed at L * = 0, and the output value of input L * = 100 is preferably fixed at L * = 100. By setting the immovable region in this way, it is possible to adjust the hardness of the viewing image reference data in which the variation in brightness is suppressed.
[0081]
Further, “the shape of the gradation conversion curve is changed (the shape is changed) based on the brightness correction value so that the specific region moves on a predefined curve” is shown in FIG. As shown, even if the brightness is changed, the shape of the gradation conversion curve is intended to be set so that the specific region is always on a predetermined parabolic movement locus. 3 in FIG. 3 indicates a “predetermined position” in the initial state before the brightness adjustment, 3 indicates a “predetermined position” when the brightness is adjusted brightly, and 5 indicates a brightness adjusted darkly. "Predetermined position" is shown.
[0082]
When defining a relational expression that changes the shape of the gradation conversion curve using the “brightness correction value” (brightness adjustment parameter) input by the user, the amount of deviation from the movement locus is as small as possible. It is preferable to do so. In the present invention, it is preferable that the output value of the input L * = 0 in FIG. 3 is fixed to L * = 0, and the output value of the input L * = 100 is fixed to L * = 100. Note that the brightness adjustment parameter is preferably one. By setting the movement trajectory in this way, it is possible to adjust the brightness of the viewing image reference data in which the variation in hardness is suppressed.
[0083]
Further, “calculating the correction value of the hardness of the viewing image reference data according to the type of the subject” is to adjust the hardness different for each type of the subject. Is set with a different numerical value for each type, and the hardness is corrected (adjusted) automatically according to the type information of the subject (main subject) input automatically or manually by the operator. This is based on the knowledge obtained from the investigation on the hardness adjustment factor that the hardness is often adjusted depending on the type of the subject such as portrait and outdoor. In the present invention, as described in claims 11, 25, and 39, it is preferable that at least portrait, landscape, and still life are included in the types of subjects.
[0084]
In the description of the present invention, “subject type” indicates a category for what the photographer intends to photograph. In the description of the present invention, “portrait” refers to a subject whose area occupied by the face is 20% or more of the entire screen. Further, in the description of the present invention, “landscape” refers to a case where an outdoor shooting scene and nature such as the sky, green trees, and mountains are subjects. In the description of the present invention, “still life” refers to a subject whose area occupied by objects other than living things is 50% or more of the entire screen.
[0085]
The “subject type” can be used as an index for optimizing the image quality to be subjectively preferable. For example, it is known that optimum values differ in sharpness, smoothness, saturation value, and gradation in a person and a landscape (still life). Further, the effect of improving the image quality can be further enhanced by combining the parallax amount, the subject distance, and the subject type information. For example, when the subject is a person, the degree of gradation softening, smoothing processing, and saturation enhancement is adjusted according to the value of the parallax amount, that is, the size of the person. In the case where the subject is a building, the degree of gradation gradation enhancement, sharpening processing, and saturation reduction is adjusted according to the value of the amount of parallax, that is, the size of the building.
[0086]
Further, “determining the correction value of the brightness of the viewing image reference data according to the shooting conditions” means adjusting the brightness to be different for each shooting condition, specifically, for each shooting condition in advance. Are set with different numerical values, and the brightness is automatically adjusted in accordance with the information of the photographing conditions automatically determined or manually input by the operator. This is based on the knowledge obtained from the investigation on the brightness adjustment factor that the brightness is often adjusted due to differences in photographing conditions such as strobe light and backlight. In the present invention, as described in claims 12, 26, and 40, it is preferable that the photographing conditions include at least backlight and strobe light. In this way, the hardness of the viewing image reference data is adjusted according to the type of subject, and the brightness of the viewing image reference data is adjusted according to the shooting conditions, so that the gradation conversion curve can be changed efficiently. Can be
[0087]
In the description of the present invention, “imaging condition” mainly indicates a condition relating to a light source state at the time of imaging. In the description of the present invention, “backlight” indicates a shooting condition in fine weather where the position of the sun is within 45 degrees from the front of the photographer. In the description of the present invention, “strobe” refers to a shooting condition for shooting using a strobe.
[0088]
Further, “determining the hardness correction value and the brightness correction value of the appreciation image reference data according to the combination of the type of the specific subject and the shooting condition” refers to the combination of the specific subject and the shooting condition in advance. Is set, and the captured image data corresponding to this combination corresponds to the adjustment of hardness and brightness under special conditions. This is because, in a visual experiment in which the factors governing the adjustment of the hardness and brightness described above were investigated, there were extremely large hardness correction values and brightness correction values for a combination of a specific subject and shooting conditions. It is based on the knowledge of doing.
[0089]
Also, “determining the saturation adjustment amount of the viewing image reference data based on the hardness correction value” means that the saturation adjustment amount (%) is determined according to the hardness correction value. It is to define a relational expression in advance. This is based on the knowledge that the hardness correction value and the saturation adjustment amount correlate with each other obtained in the visual experiment in which the investigation is performed on the factors governing the adjustment of the above-described hardness and brightness. Further, it is also obtained that the saturation adjustment amount when the hardness correction value from the appreciation image reference data is 0 is the largest + 10%. Therefore, as described in claims 10, 24, and 38, it is preferable that the saturation adjustment amount when the hardness correction value is 0 is a setting for performing saturation enhancement.
[0090]
The “image recording apparatus” of the present invention includes a color negative film, a color reversal film, a black and white negative film, and a black and white reversal film in addition to the mechanism for performing the image processing of the present invention on digital image data acquired by an imaging apparatus. For example, a film scanner for inputting frame image information of a photographic photosensitive material recorded by an analog camera, and a flatbed scanner for inputting image information reproduced on color paper which is silver salt photographic paper may be provided. In addition, compact flash (registered trademark), memory stick (registered trademark), smart media (registered trademark), multimedia card (registered trademark), floppy (registered trademark) disk, magneto-optical storage medium (MO), CD-R, etc. Display device such as CRT, liquid crystal display, plasma display, etc., which acquires digital image data from a remote location via means for reading digital image data stored in any known portable “media” or communication means such as a network And a processing means for forming an appreciation image on any known “output medium” such as silver salt photographic paper, ink jet paper, thermal printer paper and the like.
[0091]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
First, the configuration will be described.
[0092]
<Appearance Configuration of Image Recording Apparatus 1>
First, the configuration of the image recording apparatus 1 will be described.
[0093]
FIG. 4 is a perspective view showing an external configuration of the image recording apparatus 1 according to the embodiment of the present invention. As shown in FIG. 4, the image recording apparatus 1 includes a magazine loading unit 3 for loading a photosensitive material on one side surface of the housing 2. Inside the housing 2 are provided an exposure processing unit 4 for exposing the photosensitive material, and a print creating unit 5 for developing and drying the exposed photosensitive material to create a print. On the other side surface of the housing 2, a tray 6 for discharging the print created by the print creation unit 5 is provided.
[0094]
In addition, a CRT (Cathode Ray Tube) 8 serving as a display device, a film scanner unit 9 serving as a device for reading a transparent document, a reflective document input device 10, and an operation unit 11 are provided on the upper portion of the housing 2. The CRT 8 constitutes display means for displaying an image of image information to be printed on the screen. Further, the housing 2 includes an image reading unit 14 that can read image information recorded on various digital recording media, and an image writing unit 15 that can write (output) image signals to various digital recording media. Yes. In addition, a control unit 7 that centrally controls these units is provided inside the housing 2.
[0095]
The image reading unit 14 includes a PC card adapter 14a and a floppy (registered trademark) disk adapter 14b, and a PC card 13a and a floppy (registered trademark) disk 13b can be inserted therein. The PC card 13a has, for example, a memory in which a plurality of frame image data captured by a digital camera is recorded. For example, a plurality of frame image data captured by a digital camera is recorded on the floppy (registered trademark) disk 13b. Examples of the recording medium on which frame image data is recorded other than the PC card 13a and the floppy (registered trademark) disk 13b include a multimedia card (registered trademark), a memory stick (registered trademark), MD data, and a CD-ROM. .
[0096]
The image writing unit 15 is provided with a floppy (registered trademark) disk adapter 15a, an MO adapter 15b, and an optical disk adapter 15c, into which an FD 16a, an MO 16b, and an optical disk 16c can be respectively inserted. Examples of the optical disc 16c include a CD-R and a DVD-R.
[0097]
In FIG. 4, the operation unit 11, the CRT 8, the film scanner unit 9, the reflection original input device 10, and the image reading unit 14 are integrally provided in the housing 2. One or more may be provided separately.
[0098]
Further, in the image recording apparatus 1 shown in FIG. 4, there is exemplified an apparatus that creates a print by exposing to a photosensitive material and developing it. However, the print production method is not limited to this. A method such as a photographic method, a thermal method, or a sublimation method may be used.
[0099]
<Internal Configuration of Image Recording Apparatus 1>
FIG. 5 is a block diagram showing the internal configuration of the image recording apparatus 1. As shown in FIG. 5, the image recording apparatus 1 includes a control unit 7, an exposure processing unit 4, a print generation unit 5, a film scanner unit 9, a reflection original input device 10, an image reading unit 14, a communication unit (input) 32, The image writing unit 15, data storage unit 71, template storage unit 72, operation unit 11, CRT 8, and communication unit (output) 33 are configured.
[0100]
The control unit 7 includes a microcomputer, and various control programs such as an image processing program stored in a storage unit (not shown) such as a ROM (Read Only Memory), and a CPU (Central Processing Unit) (not shown). The operation of each part constituting the image recording apparatus 1 is controlled in cooperation with the.
[0101]
The control unit 7 includes an image processing unit 70 according to the image processing apparatus of the present invention, and is read from the film scanner unit 9 or the reflective original input device 10 based on an input signal (command information) from the operation unit 12. The image processing of the present invention is performed on the image signal, the image signal read from the image reading unit 14 and the image signal input from the external device via the communication means 32 to form image information for exposure, and exposure processing Output to part 4. Further, the image processing unit 70 performs a conversion process corresponding to the output form on the image signal subjected to the image processing, and outputs the image signal. Output destinations of the image processing unit 70 include the CRT 8, the image writing unit 15, the communication means (output) 33, and the like.
[0102]
The exposure processing unit 4 exposes an image to the photosensitive material and outputs the photosensitive material to the print creating unit 5. The print creating unit 5 develops and exposes the exposed photosensitive material to create prints P1, P2, and P3. The print P1 is a service size, high-definition size, panoramic size print, the print P2 is an A4 size print, and the print P3 is a business card size print.
[0103]
The film scanner unit 9 reads a frame image recorded on a transparent original such as a developed negative film N or a reversal film imaged by an analog camera, and acquires a digital image signal of the frame image. The reflective original input device 10 reads an image on a print P (photo print, document, various printed materials) by a flat bed scanner, and acquires a digital image signal.
[0104]
The image reading unit 14 reads frame image information recorded on the PC card 13 a or the floppy (registered trademark) disk 13 b and transfers the frame image information to the control unit 7. The image reading unit 14 includes, as the image transfer means 30, a PC card adapter 14a, a floppy (registered trademark) disk adapter 14b, and the like. The image reading unit 14 reads frame image information recorded on the PC card 13a inserted into the PC card adapter 14a or the floppy (registered trademark) disk 13b inserted into the floppy (registered trademark) disk adapter 14b. Transfer to the control unit 7. For example, a PC card reader or a PC card slot is used as the PC card adapter 14a.
[0105]
The communication means (input) 32 receives an image signal representing a captured image and a print command signal from another computer in the facility where the image recording apparatus 1 is installed, or a distant computer via the Internet or the like.
[0106]
The image writing unit 15 includes, as the image conveying unit 31, a floppy (registered trademark) disk adapter 15a, an MO adapter 15b, and an optical disk adapter 15c. In accordance with a write signal input from the control unit 7, the image writing unit 15 includes a floppy (registered trademark) disk 16a inserted into the floppy (registered trademark) disk adapter 15a, an MO 16b inserted into the MO adapter 15b, The image signal generated by the image processing method according to the present invention is written to the optical disk 16c inserted into the optical disk adapter 15c.
[0107]
The data storage unit 71 stores and sequentially stores image information and order information corresponding to the image information (information on how many prints are to be created from images of which frames, print size information, and the like).
[0108]
The template storage means 72 stores at least one template data for setting a synthesis area and a background image, an illustration image, and the like, which are sample image data corresponding to the sample identification information D1, D2, and D3. A predetermined template is selected from a plurality of templates that are set by the operation of the operator and stored in advance in the template storage means 72, and the frame image information is synthesized by the selected template and designated sample identification information D1, D2, D3 The sample image data selected on the basis of the image data and the image data and / or character data based on the order are combined to create a print based on the specified sample. The synthesis using this template is performed by a well-known chroma key method.
[0109]
Note that sample identification information D1, D2, and D3 for specifying a print sample is configured to be input from the operation unit 211. These sample identification information is recorded on a print sample or an order sheet. Therefore, it can be read by reading means such as OCR. Or it can also input by an operator's keyboard operation.
[0110]
In this way, sample image data is recorded corresponding to the sample identification information D1 for designating the print sample, the sample identification information D1 for designating the print sample is input, and based on the input sample identification information D1. Select the sample image data, synthesize the selected sample image data with the image data and / or text data based on the order, and create a print based on the specified sample. Can actually place a print order and meet the diverse requirements of a wide range of users.
[0111]
Also, the first sample identification information D2 designating the first sample and the image data of the first sample are stored, and the second sample identification information D3 designating the second sample and the second sample The image data is stored, the sample image data selected based on the designated first and second sample identification information D2 and D3, and the image data and / or character data based on the order are synthesized, and according to the designation In order to create a print based on a sample, it is possible to synthesize a wider variety of images, and it is possible to create a print that meets a wider variety of user requirements.
[0112]
The operation unit 11 includes information input means 12. The information input unit 12 is configured by a touch panel, for example, and outputs a pressing signal from the information input unit 12 to the control unit 7 as an input signal. Note that the operation unit 11 may be configured to include a keyboard, a mouse, and the like. The CRT 8 displays image information and the like according to the display control signal input from the control unit 7.
[0113]
The communication means (output) 33 sends an image signal representing a photographed image after image processing of the present invention and order information attached thereto to other computers in the facility where the image recording apparatus 1 is installed, the Internet Etc. to a distant computer via
[0114]
As shown in FIG. 5, the image recording apparatus 1 displays an image input unit that captures image information obtained by dividing and metering images of various digital media and an image original, an image processing unit, and a processed image. Print output, image output means for writing to an image recording medium, and means for transmitting image data and accompanying order information to another computer in the facility or a distant computer via the Internet via a communication line, Prepare.
[0115]
Next, processing executed by the image processing unit 70 in FIG. 5 will be described with reference to the first to fourth embodiments.
[0116]
[Example 1]
First, the configuration in the first embodiment will be described.
[0117]
<Configuration of image processing unit>
FIG. 6 is a block diagram showing a functional configuration of the image processing unit 70 according to the twenty-ninth aspect of the present invention. As shown in FIG. 6, the image processing unit 70 includes an image adjustment processing unit 701, a film scan data processing unit 702, a reflection original scan data processing unit 703, an image data format decoding processing unit 704, a template processing unit 705, and CRT specific processing. Section 706, printer specific processing section (1) 707, printer specific processing section (2) 708, image data creation processing section 709, header information analysis section 102, apparatus characteristic correction processing section 103a, processing condition table 103b, scene reference image data A generation unit 104, an appreciation image reference data generation unit 107, a gradation conversion curve data memory 116, a hardness / brightness setting input unit 109, and a parallax amount / correction value calculation unit 119 are configured.
[0118]
The film scan data processing unit 702 performs a calibration operation specific to the film scanner unit 9, negative / positive reversal (in the case of a negative document), dust flaw removal, gray balance adjustment, contrast adjustment, granularity for the image data input from the film scanner unit 9. Processing such as noise removal and sharpening enhancement is performed, and processed image data is output to the image adjustment processing unit 701. Also, the film size, negative / positive type, information relating to the main subject optically or magnetically recorded on the film, information relating to the photographing conditions (for example, information content described in APS) and the like are also output to the image adjustment processing unit 701. .
[0119]
The reflection original scan data processing unit 703 performs a calibration operation unique to the reflection original input device 10, negative / positive reversal (in the case of a negative original), dust flaw removal, gray balance adjustment, and contrast for the image data input from the reflection original input device 10. Processing such as adjustment, noise removal, and sharpening enhancement is performed, and processed image data is output to the image adjustment processing unit 701.
[0120]
The image data format decoding processing unit 704 restores the compression code as necessary according to the data format of the image data input from the image transfer means 30 and / or the communication means (input) 32, and the color data. Are converted into a data format suitable for calculation in the image processing unit 70 and output to the image adjustment processing unit 701. In addition, when the size of the output image is specified from any of the operation unit 11, the communication unit (input) 32, and the image transfer unit 30, the image data format decoding processing unit 704 detects the specified information, The image is output to the image adjustment processing unit 701. Information about the size of the output image designated by the image transfer means 30 is embedded in the header information and tag information of the image data acquired by the image transfer means 30.
[0121]
The image adjustment processing unit 701 receives from the film scanner unit 9, the reflection original input device 10, the image transfer unit 30, the communication unit (input) 32, and the template processing unit 705 based on the command from the operation unit 11 or the control unit 7. The image data is subjected to image processing that gives a favorable impression when observing the image on the output medium by the method described later to generate digital image data for output, and a CRT specific processing unit 706, a printer specific processing unit (1) 707, printer specific processing unit (2) 708, image data creation processing unit 709, and data storage means 71. In this image processing, the image adjustment processing unit 701 creates appreciation image reference data suitable for the output device and output medium from the gradation conversion curve data memory 116 based on commands from the operation unit 11 and the control unit 7. The gradation conversion curve data for reading is read out and output to the appreciation image reference data generation unit 107.
[0122]
The template processing unit 705 reads out predetermined image data (template) from the template storage unit 72 based on a command from the image adjustment processing unit 701, and performs template processing for combining the image data to be processed with the template. The image data after the template processing is output to the image adjustment processing unit 701.
[0123]
The header information analysis unit 102 decodes the imaging device characteristic correction data when the image data format decoding processing unit 704 determines that the image data is input from the image transfer unit 30 or the communication unit (input) 32. .
[0124]
The device characteristic correction processing unit 103a refers to the processing condition table 103b and determines an image processing condition from the imaging device characteristic correction data. The scene reference image data generation unit 104 generates scene reference image data in accordance with the image processing conditions determined by the device characteristic correction processing unit 103a. The scene reference image data generation unit 104 determines whether the generated scene reference image data is a parallax image, and outputs the determination result to the parallax amount / correction value calculation unit 119.
[0125]
When the determination result that the scene reference image data is a parallax image is input from the scene reference image data generation unit 104, the parallax amount / correction value calculation unit 119 calculates the parallax amount from the parallax image, and the parallax amount The hardness correction value and the brightness correction value (see FIG. 8) according to the above are calculated.
[0126]
The appreciation image reference data generation unit 107 generates appreciation image reference data from the gradation conversion curve data and the scene reference image data. Also, the viewing image reference data generation unit 107 includes the hardness correction value and the brightness correction value specified by the hardness / brightness setting input unit 109, and the hardness correction calculated by the parallax amount / correction value calculation unit 119. The hardness correction value and the brightness correction value for actually correcting the tone conversion curve are determined from the value and the brightness correction value, and the tone conversion is performed based on the determined hardness correction value and the brightness correction value. The gradation conversion curve read from the curve data memory 116 is corrected (changed), and the viewing image reference data is generated again.
[0127]
The CRT specific processing unit 706 performs a process such as changing the number of pixels and color matching on the image data input from the image adjustment processing unit 701 as necessary, and combines the information with information that needs to be displayed, such as control information. Image data is output to the CRT 8.
[0128]
The printer-specific processing unit {circle around (1)} 707 performs printer-specific calibration processing, color matching, pixel number change processing and the like as necessary, and outputs processed image data to the exposure processing unit 4.
[0129]
When an external printer 51 such as a large-format ink jet printer can be connected to the image recording apparatus 1 of the present invention, a printer specific processing unit {circle around (2)} 708 is provided for each connected printer device. This printer-specific processing unit {circle around (2)} 708 performs printer-specific calibration processing, color matching, pixel number change, and the like, and outputs processed image data to the external printer 51.
[0130]
The image data format creation processing unit 709 converts the image data input from the image adjustment processing unit 701 into various general-purpose image formats typified by JPEG, TIFF, Exif, and the like as necessary. The completed image data is output to the image transport unit 31 and the communication means (output) 33.
[0131]
The image data created in the appreciation image reference data generation unit 107 is processed by the CRT unique processing unit 706, the printer unique processing unit (1) 707, the printer unique processing unit (2) 708, and the image data creation processing unit 709. Based on the format of the appreciation image reference data, the image data creation processing unit 709 optimizes image data for CRT, exposure output unit, external printer, communication means (output), etc. Can be individually output to the image transport unit 31.
[0132]
The film scan data processing unit 702, the reflection original scan data processing unit 703, the image data format decoding processing unit 704, the image adjustment processing unit 701, the CRT specific processing unit 706, the printer specific processing unit (1) 707 shown in FIG. The printer-specific processing unit {circle around (2)} 708 and the image data creation processing unit 709 are provided to help understand the functions of the image processing unit 70 and need to be realized as physically independent devices. For example, it may be realized as a type of software processing in a single CPU.
[0133]
The header information analysis unit 102, device characteristic correction processing unit 103a, shooting information data processing unit 106, scene reference image data generation unit 104, and appreciation image reference data generation unit 107 are also classified into the image processing unit 70 according to the present invention. This is a division provided to assist in understanding the function, and is not necessarily realized as a physically independent device. For example, it may be realized as a division of the type of software processing in a single CPU.
[0134]
<Configuration of image processing device>
Next, an image processing apparatus 115 according to the present invention will be described with reference to the block diagram of FIG. The image processing apparatus 115 constitutes a part of the image processing unit 70 in FIG. 6 and includes an input unit 101, a header information analysis unit 102, a first processing unit 113, and a second processing unit 114 as shown in FIG. Composed. The header information analysis unit 102 is connected to the first processing unit 113, and the storage device 110, the output device 111, and the display device 112 are connected to the second processing unit 114.
[0135]
The input unit 101 reads image data recorded by the imaging device from a storage medium. The header information analysis unit 102 analyzes the header information of the image data read from the input unit 101, and divides it into imaging device characteristic correction data and subject information attached to the image data.
[0136]
The first processing unit 113 includes an apparatus characteristic correction processing unit 103a, a processing condition table 103b, a scene reference image data generation unit 104, a temporary storage memory 105, and a parallax amount / correction value calculation unit 119.
[0137]
The device characteristic correction processing unit 103a refers to the processing condition table 103b, determines the generation conditions for scene reference image data from the image pickup device characteristic correction data, and generates the determined scene reference image data generation conditions as scene reference image data generation. Output to the unit 103.
[0138]
The scene reference image data generation unit 104 generates scene reference image data subjected to the imaging device characteristic correction processing from the image data to be processed according to the scene reference image data generation conditions determined by the device characteristic correction processing unit 103a. To do. Further, the scene reference image data generation unit 104 determines whether the generated scene reference image data is a parallax image from the tag information of the image data to be processed, and calculates the determination result as a parallax amount / correction value. Output to the unit 119. The temporary storage memory 105 temporarily stores the scene reference image data generated by the scene reference image data generation unit 104.
[0139]
When the determination result that the scene reference image data is a parallax image is input from the scene reference image data generation unit 104, the parallax amount / correction value calculation unit 119 calculates the parallax amount from the parallax image, and FIG. Based on the relationship between the parallax amount and the hardness correction value shown in a), a hardness correction value corresponding to the calculated parallax amount is calculated. Also, the parallax amount / correction value calculation unit 119 calculates a brightness correction value according to the calculated parallax amount from the relationship between the parallax amount and the brightness correction value illustrated in FIG. In FIG. 8A, the hardness correction value is set so that the gradation is increased as the amount of parallax increases (that is, as the subject is closer). In FIG. 8B, the brightness correction value is set so that the larger the amount of parallax (that is, the closer the subject is), the brighter the image. Details of the method of calculating the amount of parallax will be described later with reference to FIGS. Note that the parallax amount of the parallax image may be written in the tag information of the scene reference image data.
[0140]
The setting input unit (not shown) outputs operation information regarding the types of the storage device 110, the output device 111, and the display device 112 that output digital image data to the appreciation image reference data generation unit 107 of the second processing unit 114.
[0141]
The second processing unit 114 includes a gradation conversion curve data memory 116, a hardness / brightness setting input unit 109, an appreciation image reference data generation unit 107, and a temporary storage memory 108.
[0142]
The gradation conversion curve data memory 116 stores gradation conversion curve data, specific area data, and movement trajectory data for each output medium.
[0143]
The hardness / brightness setting input unit 109 includes an input device for inputting the hardness correction value and the brightness correction value of the viewing image reference data.
[0144]
The appreciation image reference data generation unit 107 reads the scene reference image data stored in the temporary storage memory 105, and when the output medium is designated by the setting input unit (not shown), the gradation conversion curve data memory 116 Then, gradation conversion curve data corresponding to the designated output medium is read, and appreciation image reference data is generated based on the read gradation conversion curve data.
[0145]
The appreciation image reference data generation unit 107 calculates the sum of the hardness correction value input from the hardness / brightness setting input unit 109 and the hardness correction value calculated by the parallax amount / correction value calculation unit 119. It is determined as a hardness correction value for actually correcting the gradation conversion curve, the specific area data is read from the gradation conversion curve data memory 116, and the gradation conversion curve is corrected based on the determined hardness correction value. (Change) process. Furthermore, the viewing image reference data generation unit 107 calculates the sum of the brightness correction value input from the hardness / brightness setting input unit 109 and the brightness correction value calculated by the parallax amount / correction value calculation unit 119. It is determined as a brightness correction value for actually correcting the gradation conversion curve, the movement trajectory data is read from the gradation conversion curve data memory 116, and the gradation conversion curve is corrected based on the determined brightness correction value. (Change) process. The appreciation image reference data generation unit 107 regenerates the appreciation image reference data based on the corrected gradation conversion curve. Details of the method of creating a new gradation conversion curve by correcting the gradation conversion curve will be described later.
[0146]
In the above description, the sum of the hardness correction value (A) input from the hardness / brightness setting input unit 109 and the hardness correction value (B) calculated by the parallax amount / correction value calculation unit 119 (A + B) ) Is determined as a hardness correction value for actually correcting the gradation conversion curve, but is not limited to this. The same applies to the determination of the brightness correction value.
[0147]
The temporary storage memory 108 temporarily stores the appreciation image reference data generated by the appreciation image reference data generation unit 107. The viewing image reference data stored in the temporary storage memory 108 is output to any of the storage device 110, the output device 111, and the display device 112 in accordance with operation information from a setting input unit (not shown).
[0148]
<Calculation method of parallax amount>
Next, a method for calculating the amount of parallax will be described with reference to FIGS.
[0149]
FIG. 9 shows the relationship between the two imaging optical systems (CCD1, CCD2) of the imaging apparatus used for acquiring images for stereoscopic display and subjects (P1, P2) having different distances. The distance W between the CCD 1 and the CCD 2 is called the photographing base line length, and is usually set to about 6 to 7 cm, which is equal to the distance between the human eyes. f is the focal length of the lens, and is set to the same value for the CCD 1 and the CCD 2. P1 represents a specific position on the building subject located at the shooting distance of H1 from the lens, and P2 represents a specific position on the person subject located at the shooting distance of H2 from the lens.
[0150]
In FIG. 9, among the subjects P1 and P2, the subject P2 located near the lens differs greatly in CC1 and CCD2, but the subject P1 located far from the lens differs greatly in the image formation position. It can be seen that the CCD 1 and the CCD 2 have a small shift in image forming position.
[0151]
The imaging distance S1 of the subject P1 is calculated from the imaging position of the subject P1 in the CCD1 and CCD2, and the imaging distance S2 of the subject P2 is calculated from the imaging position of the subject P2 in the CCD1 and CCD2. Subtracting the imaging baseline length W from the imaging distance S1 yields the parallax amount V = S1-W of the subject P1, and subtracting the imaging baseline length W from the imaging distance S2 results in the parallax amount V = S2-W of the subject P2. Is obtained.
[0152]
In addition, it is preferable to use the shooting distance information as a supplement for calculating the amount of parallax. The photographing distance can be measured by arranging the infrared light emitting part and the light receiving part at the same base line length as that of the CCD 1 and the CCD 2. This is generally used as a distance measuring method for automatic focusing (autofocus) of a photographing lens. In this case, the parallax amount V can be calculated from the shooting distance H and the shooting baseline length W by the following equation (1).
[Expression 1]
V = f × (W / H) (1)
In Formula (1), W / H represents a baseline ratio.
[0153]
Any known method such as feature extraction processing or similarity determination for scene reference image data can be used as a method for detecting the subjects P1 and P2. As an example of a method for detecting a specific subject, extraction of the contour of the subject, detection of the pupil position, and the like as shown in FIG.
[0154]
Also, as shown in FIG. 11, the subject area can be detected by extracting a predetermined color such as a skin color area or a high saturation area. Thus, in order to extract a specific color region, the RGB values of the image data are converted into the HSV color system (H: hue, S: saturation, V: lightness), and two-dimensional hue and saturation are obtained. This can be realized by creating a histogram and determining hue and saturation extraction conditions from the created two-dimensional histogram. For example, if the hue is 10 to 30 degrees and the saturation (0 to 255) is limited to 50 to 100, the skin color region can be extracted.
[0155]
<Creation of gradation conversion curve>
First, a method for creating an initial gradation conversion curve will be described. The gradation conversion curve is created by applying the following formulas (2) to (5) defined by IEC61966-2-1 and the following formula (6) defined by JISZ8729 to the scene reference image data. This is done by using the lightness (luminance) value obtained.
[0156]
[Expression 2]
Figure 0004292873
[Equation 3]
Figure 0004292873
[Expression 4]
Figure 0004292873
[Equation 5]
Figure 0004292873
[Formula 6]
Figure 0004292873
[0157]
Expressions (2) to (5) are expressed as 8-bit image data (RsRGB (8), GsRGB (8), BsRGB (8)) To the tristimulus values (X, Y, Z) of the color matching function. Here, the color matching function is a function indicating the spectral sensitivity distribution of the human eye. Here, sRGB in the expressions (2) to (5) indicates that the RGB value of the image data conforms to the sRGB standard, and (8) in the expression (2) is 8 bits (0 to 255). It shows that it is image data.
[0158]
Moreover, in Formula (6), L * shows a brightness | luminance. Since the gradation conversion curve defines the relationship between the input value and the output value only for luminance, a * b * is not necessary, and only L * is calculated. Also, Y in equation (6)nIndicates Y of a standard white plate, D65Indicates a stimulation value when a standard white plate is illuminated with light having a color temperature of 6500K. In equation (6), Yn= 1.
[0159]
When L * is obtained by Expression (6), an initial gradation conversion curve is created by setting the initial values of hardness and brightness and a predetermined position in the specific area. For example, the hardness of L * = 20 to 50 is 1.42, the hardness of L * = 20 to 75 is 1.35, and the input L * as a predetermined position in a specific region (non-moving region) is 44.4. Can be set to The initial values of hardness and brightness and the predetermined position can be set for each user by the hardness / brightness setting unit 109 or the operation unit 11 and stored in the gradation conversion curve data memory 116.
[0160]
Next, an example of a conditional expression for adjusting a “hardness” and “brightness” using a specific area (non-moving area) on the initial gradation conversion curve and creating a new gradation conversion curve is shown below.
[0161]
The following two coefficients (FC, FL) Is defined.
▲ 1 ▼ FC: Hardness adjustment factor (-2 <FC<2, FC= 0 Initial gradation conversion curve)
▲ 2 ▼ FL: Brightness adjustment factor (-2 <FL<2, FL= 0 Initial gradation conversion curve)
A variable necessary for changing the gradation conversion curve by these adjustment coefficients is expressed by Equation (7).
[Expression 7]
Figure 0004292873
[0162]
In Expression (7), L represents an input L * at which the output L * = 50, Ls represents an input L * at which the output L * = 20, and Lh represents an input L at which the output L * = 75. *, Gs indicates the hardness at the input L * = 20 to 50, and G indicates the hardness at the input L * = 20 to 75.
[0163]
Smooth through 5 points (0, 0), (Ls, 20), (L, 50), (Lh, 75), (100, 100) by Ls, L, and Lh calculated by equation (7) A simple curve is calculated by cubic spline interpolation with the second-order differential value = 0 as both-end conditions of spline interpolation. Hereinafter, the spline interpolation will be described.
[0164]
The given point x0, X1, X2, ..., xnAnd the function value is defined as in equation (8).
[Equation 8]
Figure 0004292873
Further, a small section obtained by dividing the closed section [a, b] by these dividing points is defined as follows. [xj, xj + 1] (0≤j≤n-1) where a = x0<x1<x2,… <Xn= B.
[0165]
A cubic polynomial that can be second-order differentiated in the interval [a, b] is called a cubic spline function, which is represented as s (x). This cubic spline function is divided into subsections [xj, xj + 1], The polynomial s defined by equation (10)jIt can be expressed as (x).
[Equation 9]
Figure 0004292873
From equation (9), u0, U1, U2, ..., unIs substituted into the following equation (10).
[Expression 10]
Figure 0004292873
[0166]
Other specific examples of spline interpolation include MathSoft's MathCAD2000 lspline function, Watanabe Tsutomu, Natori Ryo, Oguni Tsuji supervised "Numerical calculation software by Fortran77" Maruzen Co., Ltd. page 248 SPLC function (DF (1) = DF (2) = 0, IOPT (1) = IOPT (2) = 1), Noriyoshi Kurose, Isao Matsushima, Toshihiko Matsuo "SPLINT function" page 162 , Using the spline function on page 110 of CQ Publishing, "Algorithm Textbook" written by Naoki Mikami, and the spline function on page 106 of Technical Review, "Numerical Recipes in C Japanese Version" written by WHPress, SATeukolsky, WTVetterling, BPFlannery be able to.
[0167]
Figure 12 shows the hardness adjustment factor FCIs -2, -1, 0, +1, +2, brightness adjustment factor FLThe gradation conversion curve when is 0 is shown. In FIG. 12, the curve GP2 is FC= + 2 indicates the curve GP1 is FC= + 1, the curve GP0 is FC= 0, the curve GM1 is FC= -1 indicates the curve GM2 is FC==-2.
[0168]
FIG. 13 shows the brightness adjustment factor F.LIs -2, -1, 0, +1, +2, hardness adjustment factor FCThe gradation conversion curve when is 0 is shown. In FIG. 13, the curve GP2 is FL= + 2 indicates the curve GP1 is FL= + 1, the curve GP0 is FL= 0, the curve GM1 is FL= -1 indicates the curve GM2 is FL==-2.
[0169]
FIG. 14 shows the brightness adjustment factor F.LIs -2, -1, 0, +1, +2, hardness adjustment factor FCThe movement trajectory of the specific area (non-moving area) when is 0 is shown. Note that the above-described method for creating a gradation conversion curve is also applied to the following embodiments. Further, the method of creating the gradation conversion curve is not limited to the method described above.
[0170]
Next, the operation in the first embodiment will be described.
Image processing in the first embodiment will be described with reference to the flowchart of FIG.
[0171]
First, after input of scene reference image data is instructed (step S101), an output medium is designated by a setting input unit (not shown) (step S102). From the gradation conversion curve data memory 116, step S102 is performed. In step S103, gradation conversion curve data corresponding to the output medium specified in step S103 is read, and appreciation image reference data is generated from the scene reference image data based on the read gradation conversion curve data. (Step S104).
[0172]
Next, it is determined whether or not the scene reference image data to be processed is a parallax image (step S105). If it is determined in step S105 that the scene reference image data is not a parallax image (step S105; NO), the process proceeds to step S108 described later.
[0173]
If it is determined in step S105 that the scene reference image data is a parallax image (step S105; YES), a parallax amount is calculated from the parallax image (step S106). Next, a hardness correction value and a brightness correction value corresponding to the parallax amount calculated in step S106 are calculated based on the graph of FIG. 8 (step S107).
[0174]
When the scene reference image data is not a parallax image, when the hardness correction value is input by the hardness / brightness setting input unit 109, the input hardness correction value actually corrects the gradation conversion curve. Is determined as a hardness correction value (step S108). When the scene reference image data is a parallax image, when a hardness correction value is input by the hardness / brightness setting input unit 109, the input hardness correction value and the amount of parallax in step S107 are determined. The sum of the calculated hardness correction values is determined as the hardness correction value for actually correcting the gradation conversion curve (step S108).
[0175]
When the hardness correction value is determined, the specific area data is read from the gradation conversion curve data memory 116 (step S109), and the gradation conversion curve is corrected according to the hardness correction value determined in step S108. (Step S110).
[0176]
When the scene reference image data is not a parallax image, when the brightness correction value is input by the hardness / brightness setting input unit 109, the input brightness correction value actually corrects the gradation conversion curve. Is determined as a brightness correction value (step S111). When the scene reference image data is a parallax image, when a brightness correction value is input by the hardness / brightness setting input unit 109, the input brightness correction value and the parallax amount calculated in step S107 are set. The sum of the brightness correction values calculated accordingly is determined as the brightness correction value for actually correcting the gradation conversion curve (step S111).
[0177]
When the brightness correction value is determined, the movement trajectory data is read from the gradation conversion curve data memory 116 (step S112), and the gradation conversion curve is corrected according to the brightness correction value determined in step S111. (Step S113). Next, the appreciation image reference data is regenerated based on the corrected gradation conversion curve (step S114), and the image processing ends.
[0178]
As described above, according to the first embodiment, the gradation conversion curve is adjusted based on the hardness correction value of the viewing image reference data, and the gradation conversion curve is adjusted based on the brightness correction value. By performing image processing that suppresses interference of effects, an ideal tone conversion curve can be set. In addition, the load related to the setting work can be reduced, and the efficiency of the setting work of the gradation conversion curve can be improved. Further, when the scene reference image data is a parallax image, a hardness correction value and a brightness correction value are calculated based on the parallax amount of the parallax image, and a gradation is calculated based on the hardness correction value and the brightness correction value. By adjusting the conversion curve, the image quality of the stereoscopic display image can be improved.
[0179]
[Example 2]
First, the configuration in the second embodiment will be described.
[0180]
<Configuration of image processing unit>
FIG. 16 is a block diagram showing a functional configuration of the image processing unit 70 according to the thirtieth aspect of the present invention. As shown in FIG. 16, the image processing unit 70 includes an image adjustment processing unit 701, a film scan data processing unit 702, a reflection original scan data processing unit 703, an image data format decoding processing unit 704, a template processing unit 705, and CRT specific processing. Section 706, printer specific processing section (1) 707, printer specific processing section (2) 708, image data creation processing section 709, header information analysis section 102, apparatus characteristic correction processing section 103a, processing condition table 103b, scene reference image data The generation unit 104, the appreciation image reference data generation unit 107, the gradation conversion curve data memory 116, the shooting information data processing unit 106, and the parallax amount / correction value calculation unit 119 are configured. In the following, only the differences from the image processing unit 70 of the first embodiment (see FIG. 6) among the components constituting the image processing unit 70 of the second embodiment will be described.
[0181]
When the image data format decoding processing unit 704 determines that the image data has been input from the image transfer unit 30 or the communication unit (input) 32, the header information analysis unit 102 captures image capturing device characteristic correction data and imaging information. Decrypt the data.
[0182]
The shooting information data processing unit 106 calculates the hardness correction value and the brightness correction value of the viewing image reference data from the information regarding the type of the subject and the shooting information included in the shooting information data from the header information analysis unit 102 (Table 1 and Table 2), and outputs the calculation result to the appreciation image reference data generation unit 107. The parallax amount / correction value calculation unit 119 calculates a parallax amount from the parallax image, and calculates a hardness correction value and a brightness correction value (see FIG. 18) according to the parallax amount and the type of the subject.
[0183]
The appreciation image reference data generation unit 107 generates appreciation image reference data from the gradation conversion curve data and the scene reference image data. The appreciation image reference data generation unit 107 also calculates the hardness correction value and the brightness correction value calculated by the photographing information data processing unit 106, and the hardness correction value and the brightness calculated by the parallax amount / correction value calculation unit 119. From the correction value, a hardness correction value and a brightness correction value for actually correcting the gradation conversion curve are determined, and based on the determined hardness correction value and the brightness correction value, a gradation conversion curve is obtained. A correction (change) process is performed, and viewing image reference data is generated again.
[0184]
<Configuration of image processing device>
Next, an image processing apparatus 115 according to the sixteenth aspect of the present invention will be described with reference to the block diagram of FIG. The image processing apparatus 115 constitutes a part of the image processing unit 70 of FIG. 16, and includes an input unit 101, a header information analysis unit 102, a first processing unit 113, and a second processing unit 114 as shown in FIG. Composed. The header information analysis unit 102 is connected to the first processing unit 113, and the storage device 110, the output device 111, and the display device 112 are connected to the second processing unit 114. Hereinafter, only differences from the image processing apparatus 115 according to the first embodiment (see FIG. 7) among the respective units constituting the image processing apparatus 115 according to the second embodiment will be described.
[0185]
The header information analysis unit 102 analyzes the header information of the image data read from the input unit 101 and divides it into subject information, imaging device characteristic correction data attached to the image data, and imaging information data.
[0186]
The first processing unit 113 includes an apparatus characteristic correction processing unit 103a, a processing condition table 103b, a scene reference image data generation unit 104, a temporary storage memory 105, and a parallax amount / correction value calculation unit 119. In the first processing unit 113, the description of the configuration other than the parallax amount / correction value calculation unit 119 is the same as the description in the first embodiment, and is omitted here.
[0187]
The parallax amount / correction value calculation unit 119 calculates the parallax amount from the parallax image, and based on the relationship between the parallax amount and the hardness correction value illustrated in FIG. A correction value is calculated. Further, the parallax amount / correction value calculation unit 119 calculates a brightness correction value according to the type of subject and the calculated parallax amount from the relationship between the parallax amount and the brightness correction value illustrated in FIG. In FIG. 18A, when the subject is a person, the tone is softened as the amount of parallax increases, and when the subject is a landscape or a still life, the tone correction is performed so that the tone is increased as the amount of parallax increases. Value is set. In FIG. 18B, when the subject is a person, the brightness correction value is set so that the brightness is increased as the amount of parallax increases, and when the subject is a still object, the brightness is set to be constant regardless of the amount of parallax. Yes.
[0188]
The second processing unit 114 includes an appreciation image reference data generation unit 107, a temporary storage memory 108, a gradation conversion curve data memory 116, and a photographing information data processing unit 106. The description of the configuration of the temporary storage memory 108 and the gradation conversion curve data memory 116 is the same as that described in the first embodiment, and is omitted here.
[0189]
The shooting information data processing unit 106 calculates the hardness correction value of the viewing image reference data from the information regarding the type of subject included in the shooting information data input from the header information analysis unit 102, and the shooting information included in the shooting information data The brightness correction value of the viewing image reference data is calculated from the information regarding the condition, and the calculation result is output to the viewing image reference data generation unit 107.
[0190]
Hereinafter, conditions for adjusting the hardness of the gradation conversion curve according to the type of subject will be exemplified. Table 1 shows reference values of the difference (Δ hardness) and Fc value (hardness adjustment coefficient) of hardness (L * 20 to 75) from the initial gradation conversion curve for each subject.
[Table 1]
Figure 0004292873
[0191]
Next, conditions for adjusting the brightness (brightness) of the gradation conversion curve according to the shooting conditions will be exemplified. Table 2 shows the difference in brightness (L * 50) from the initial gradation conversion curve for each shooting condition (Δ brightness) and FLIndicates the reference value of the value (brightness adjustment factor).
[Table 2]
Figure 0004292873
[0192]
The appreciation image reference data generation unit 107 reads the scene reference image data stored in the temporary storage memory 105, and when the output medium is designated by the setting input unit (not shown), the gradation conversion curve data memory 116 Then, gradation conversion curve data corresponding to the designated output medium is read, and appreciation image reference data is generated based on the read gradation conversion curve data.
[0193]
The appreciation image reference data generation unit 107 calculates the sum of the hardness correction value calculated by the shooting information data processing unit 106 and the hardness correction value calculated by the parallax amount / correction value calculation unit 119 as an actual floor. It is determined as a hardness correction value for correcting the tone conversion curve, the specific area data is read from the gradation conversion curve data memory 116, and the gradation conversion curve is corrected (changed) based on the determined hardness correction value. Process. Furthermore, the viewing image reference data generation unit 107 calculates the sum of the brightness correction value calculated by the shooting information data processing unit 106 and the brightness correction value calculated by the parallax amount / correction value calculation unit 119 as an actual floor. It is determined as a brightness correction value for correcting the tone conversion curve, the movement trajectory data is read from the tone conversion curve data memory 116, and the tone conversion curve is corrected (changed) based on the determined brightness correction value. Process. The appreciation image reference data generation unit 107 regenerates the appreciation image reference data based on the corrected gradation conversion curve.
[0194]
In the above description, the sum (C + D) of the hardness correction value (C) calculated by the photographing information data processing unit 106 and the hardness correction value (D) calculated by the parallax amount / correction value calculation unit 119 is calculated as follows. Although it is determined as the hardness correction value for actually correcting the gradation conversion curve, the present invention is not limited to this. The same applies to the determination of the brightness correction value.
[0195]
Next, the operation in the second embodiment will be described.
Image processing in the second embodiment will be described with reference to the flowchart of FIG.
[0196]
First, after input of scene reference image data is instructed (step S201), when an output medium is designated by a setting input unit (not shown) (step S202), the gradation conversion curve data memory 116 reads the step S202. In step S203, gradation conversion curve data corresponding to the output medium specified in step S203 is read, and appreciation image reference data is generated from the scene reference image data based on the read gradation conversion curve data. (Step S204).
[0197]
Next, it is determined whether or not the scene reference image data to be processed is a parallax image (step S205). If it is determined in step S205 that the scene reference image data is a parallax image (step S205; YES), a parallax amount is calculated from the parallax image (step S206). Next, the shooting information data recorded in the header of the scene reference image data is read from the header information analysis unit 102, and the type of the subject is specified. Then, based on the graph of FIG. 18, the type of the specified subject and the hardness correction value and the brightness correction value corresponding to the parallax amount calculated in step S206 are calculated (step S207).
[0198]
When it is determined in step S205 that the scene reference image data is not a parallax image (step S205; NO), the shooting information data recorded in the header of the scene reference image data is read from the header information analysis unit 102, The type of subject is specified. Then, a hardness correction value is calculated from the identified subject type, for example, based on Table 1, and the calculated hardness correction value is used to actually correct the tone conversion curve. It is determined as a value (step S208).
[0199]
When the scene reference image data is a parallax image, a hardness correction value is calculated based on the type of subject specified in step S207 based on Table 1, and the calculated hardness correction value and in step S207. The sum of the calculated hardness correction values is determined as a hardness correction value for actually correcting the gradation conversion curve (step S208). When the hardness correction value is determined, the specific area data is read from the gradation conversion curve data memory 116 (step S209), and the gradation conversion curve is corrected according to the hardness correction value determined in step S208. (Step S210).
[0200]
Next, the shooting information data recorded in the header of the scene reference image data is read from the header information analysis unit 102, and the shooting conditions are specified. Then, for example, the brightness correction value is calculated from the specified shooting conditions based on Table 2, and the sum of the calculated brightness correction value and the brightness correction value calculated in step S207 is actually The brightness correction value for correcting the gradation conversion curve is determined (step S211).
[0201]
When the brightness correction value is determined, the movement trajectory data is read from the gradation conversion curve data memory 116 (step S212), and the gradation conversion curve is corrected according to the brightness correction value determined in step S211. (Step S213). Next, the appreciation image reference data is regenerated based on the corrected gradation conversion curve (step S214), and the image processing ends.
[0202]
As described above, according to the second embodiment, the hardness correction value of the viewing image reference data is determined according to the type of the subject, the gradation conversion curve is adjusted based on the hardness correction value, and the shooting condition is set. Accordingly, by determining the brightness correction value of the viewing image reference data and adjusting the gradation conversion curve based on the brightness correction value, an ideal gradation conversion curve can be set. In addition, it is possible to reduce the load related to the gradation conversion curve setting operation, and the gradation conversion curve setting operation is further improved in efficiency. Further, when the scene reference image data is a parallax image, the hardness correction value and the brightness correction value are calculated based on the parallax amount of the parallax image and the type of the subject, and the hardness correction value and the brightness correction value are calculated. By adjusting the gradation conversion curve based on this, the image quality of the stereoscopic display image can be further improved.
[0203]
[Example 3]
First, the configuration in the third embodiment will be described.
[0204]
<Configuration of image processing unit>
FIG. 20 is a block diagram showing a functional configuration of the image processing unit 70 according to the invention of claim 31. As shown in FIG. 20, the image processing unit 70 includes an image adjustment processing unit 701, a film scan data processing unit 702, a reflection original scan data processing unit 703, an image data format decoding processing unit 704, a template processing unit 705, and CRT specific processing. Section 706, printer specific processing section (1) 707, printer specific processing section (2) 708, image data creation processing section 709, header information analysis section 102, apparatus characteristic correction processing section 103a, processing condition table 103b, scene reference image data The generation unit 104, the appreciation image reference data generation unit 107, the gradation conversion curve data memory 116, the shooting information data processing unit 106, the condition calculation unit 303, and the parallax amount / correction value calculation unit 119 are configured. In the following, only the differences from the image processing unit 70 of the second embodiment (see FIG. 16) among the units constituting the image processing unit 70 of the third embodiment will be described.
[0205]
The shooting information data processing unit 106 determines whether or not there is a specific combination of the type of subject and shooting conditions from the information regarding the type of subject and shooting information included in the shooting information data from the header information analysis unit 102, If there is a specific combination, the data of the combination is output to the condition calculation unit 303.
[0206]
The condition calculation unit 303 stores in advance data of a hardness correction value and a brightness correction value that match each type of subject and shooting information (see Table 3 described later), and the shooting information data processing unit 106. The hardness correction value and the brightness correction value of the viewing image reference data are calculated in accordance with the combination data input from.
[0207]
The appreciation image reference data generation unit 107 generates appreciation image reference data from the gradation conversion curve data and the scene reference image data. The viewing image reference data generation unit 107 also calculates the hardness correction value and the brightness correction value calculated by the condition processing unit 303, and the hardness correction value and the brightness correction calculated by the parallax amount / correction value calculation unit 119. The hardness correction value and the brightness correction value for actually correcting the gradation conversion curve are determined from the values, and the gradation conversion curve is corrected based on the determined hardness correction value and the brightness correction value ( Change) processing is performed, and the viewing image reference data is generated again.
[0208]
<Configuration of image processing device>
Next, an image processing apparatus 115 according to the seventeenth aspect of the present invention will be described with reference to the block diagram of FIG. The image processing apparatus 115 constitutes a part of the image processing unit 70 in FIG. 20, and includes an input unit 101, a header information analysis unit 102, a first processing unit 113, and a second processing unit 114 as shown in FIG. Composed. The header information analysis unit 102 is connected to the first processing unit 113, and the storage device 110, the output device 111, and the display device 112 are connected to the second processing unit 114. Hereinafter, only the differences from the image processing apparatus 115 (see FIG. 17) of the second embodiment will be described among the components constituting the image processing apparatus 115 of the third embodiment.
[0209]
The description of the configuration of the header information analysis unit 102 and the first processing unit 113 is the same as the description in the second embodiment, and is omitted here.
[0210]
The second processing unit 114 includes an appreciation image reference data generation unit 107, a temporary storage memory 108, a gradation conversion curve data memory 116, a shooting information data processing unit 106, and a condition calculation unit 303. The description of the configuration of the temporary storage memory 108 and the gradation conversion curve data memory 116 is the same as that described in the first embodiment, and is omitted here.
[0211]
The shooting information data processing unit 106 determines whether or not there is a specific combination of the type of subject and shooting conditions from the information regarding the type of subject and shooting information included in the shooting information data from the header information analysis unit 102, If there is a specific combination, the data of the combination is output to the condition calculation unit 303.
[0212]
The condition calculation unit 303 stores in advance data of a hardness correction value and a brightness correction value that match each type of subject and shooting information (see Table 3 described later), and the shooting information data processing unit 106 The hardness correction value and the brightness correction value of the viewing image reference data are calculated in accordance with the combination data input from.
[0213]
Hereinafter, setting examples of the hardness correction value and the brightness (brightness) correction value according to a combination of a specific subject type and shooting conditions will be described. Table 3 shows differences in hardness (L * 20 to 75) from the initial gradation conversion curve (Δ hardness) and corresponding Fc values when the subject type is portrait and the shooting conditions are strobe and backlight. (Hardness adjustment coefficient), the difference between brightness (L * 50) from the initial gradation conversion curve (Δ brightness) and the corresponding FLIndicates the reference value of the value (brightness adjustment factor).
[Table 3]
Figure 0004292873
[0214]
The appreciation image reference data generation unit 107 reads the scene reference image data stored in the temporary storage memory 105, and when the output medium is designated by the setting input unit (not shown), the gradation conversion curve data memory 116 Then, gradation conversion curve data corresponding to the designated output medium is read, and appreciation image reference data is generated based on the read gradation conversion curve data.
[0215]
Also, the appreciation image reference data generation unit 107 converts the sum of the hardness correction value calculated by the condition processing unit 303 and the hardness correction value calculated by the parallax amount / correction value calculation unit 119 into an actual gradation conversion. The hardness correction value for correcting the curve is determined, the specific area data is read from the gradation conversion curve data memory 116, and the gradation conversion curve correction (change) processing is performed based on the determined hardness correction value. Do. Further, the appreciation image reference data generation unit 107 converts the brightness correction value calculated by the condition processing unit 303 and the brightness correction value calculated by the parallax amount / correction value calculation unit 119 into an actual tone conversion. The brightness correction value for correcting the curve is determined, the movement trajectory data is read out from the gradation conversion curve data memory 116, and the gradation conversion curve is corrected (changed) based on the determined brightness correction value. Do. The appreciation image reference data generation unit 107 regenerates the appreciation image reference data based on the corrected gradation conversion curve.
[0216]
In the above description, the sum (E + F) of the hardness correction value (E) calculated by the condition processing unit 303 and the hardness correction value (F) calculated by the parallax amount / correction value calculation unit 119 is actually calculated. Although it is determined as the hardness correction value for correcting the gradation conversion curve, the present invention is not limited to this. The same applies to the determination of the brightness correction value.
[0217]
Next, the operation in the third embodiment will be described.
Image processing in the third embodiment will be described with reference to the flowchart of FIG.
[0218]
First, after input of scene reference image data is instructed (step S301), an output medium is designated by a setting input unit (not shown) (step S302). In step S303, gradation conversion curve data corresponding to the output medium designated in step S303 is read out, and appreciation image reference data is generated from the scene reference image data based on the read out gradation conversion curve data. (Step S304).
[0219]
Next, it is determined whether or not the scene reference image data to be processed is a parallax image (step S305). If it is determined in step S305 that the scene reference image data is a parallax image (step S305; YES), the parallax amount is calculated from the parallax image (step S306). Next, the shooting information data recorded in the header of the scene reference image data is read from the header information analysis unit 102, and the type of the subject is specified. Then, based on the graph of FIG. 18, the type of the specified subject and the hardness correction value and the brightness correction value corresponding to the parallax amount calculated in step S306 are calculated (step S307).
[0220]
When it is determined in step S305 that the scene reference image data is not a parallax image (step S305; NO), the shooting information data recorded in the header of the scene reference image data is read from the header information analysis unit 102, The type of subject and shooting conditions are specified. Then, based on the combination of the specified subject type and shooting conditions, for example, based on Table 3, a hardness correction value and a brightness correction value are calculated, and these calculated hardness correction value and brightness correction value are calculated. Then, it is determined as a hardness correction value and a brightness correction value for actually correcting the gradation conversion curve (step S308).
[0221]
When the scene reference image data is a parallax image, the sum of the hardness correction value calculated based on the combination of the type of subject and the shooting conditions and the hardness correction value calculated according to the parallax amount in step S307 is obtained. It is determined as a hardness correction value for actually correcting the gradation conversion curve. The sum of the brightness correction value calculated based on the combination of the type of subject and the shooting conditions and the brightness correction value calculated according to the amount of parallax in step S307 actually corrects the gradation conversion curve. Is determined as a brightness correction value (step S308).
[0222]
When the hardness correction value and the brightness correction value are determined, specific area data is read from the gradation conversion curve data memory 116 (step S309), and the gradation conversion curve is determined according to the hardness correction value determined in step S308. The correction process is performed (step S310).
[0223]
Next, movement trajectory data is read from the gradation conversion curve data memory 116 (step S311), and a gradation conversion curve correction process is performed according to the brightness correction value determined in step S308 (step S312). Next, the appreciation image reference data is regenerated based on the corrected gradation conversion curve (step S313), and the image processing ends.
[0224]
As described above, according to the third embodiment, the hardness correction value and the brightness correction value of the viewing image reference data are determined according to the combination of the type of the subject and the shooting conditions, and the determined hardness correction is performed. By adjusting the gradation conversion curve based on the value and the brightness correction value, it is possible to reduce the load related to the gradation conversion curve setting work, and the gradation conversion curve setting work is more efficient. It becomes. Further, when the scene reference image data is a parallax image, the hardness correction value and the brightness correction value are calculated based on the parallax amount of the parallax image and the type of the subject, and the hardness correction value and the brightness correction value are calculated. By adjusting the gradation conversion curve based on this, the image quality of the stereoscopic display image can be further improved.
[0225]
[Example 4]
First, the configuration in the fourth embodiment will be described.
[0226]
<Configuration of image processing unit>
FIG. 23 is a block diagram showing a functional configuration of the image processing unit 70 according to the invention as set forth in claim 32. As shown in FIG. 23, the image processing unit 70 includes an image adjustment processing unit 701, a film scan data processing unit 702, a reflection original scan data processing unit 703, an image data format decoding processing unit 704, a template processing unit 705, and CRT specific processing. Section 706, printer specific processing section (1) 707, printer specific processing section (2) 708, image data creation processing section 709, header information analysis section 102, apparatus characteristic correction processing section 103a, processing condition table 103b, scene reference image data A generation unit 104, an appreciation image reference data generation unit 107, a gradation conversion curve data memory 116, a hardness / brightness setting input unit 109, a saturation correction data calculation unit 304, and a parallax amount / correction value calculation unit 119 are configured. . In the following, only the differences between the image processing unit 70 of the first embodiment (see FIG. 6) and the components constituting the image processing unit 70 of the fourth embodiment will be described.
[0227]
The saturation correction data calculation unit 304 uses the hardness correction value specified by the hardness / brightness setting input unit 109 (and the hardness correction value calculated according to the parallax amount) of the appreciation image reference data. The saturation adjustment amount is calculated.
[0228]
The appreciation image reference data generation unit 107 generates appreciation image reference data from the gradation conversion curve data and the scene reference image data. The appreciation image reference data generation unit 107 also includes a hardness correction value and a brightness correction value specified by the hardness / brightness setting input unit 107, and a hardness correction calculated by the parallax amount / correction value calculation unit 119. The hardness correction value and the brightness correction value for actually correcting the gradation conversion curve are determined from the value and the brightness correction value, and the gradation is determined based on the determined hardness correction value and the brightness correction value. A correction (change) process is applied to the conversion curve. Furthermore, the appreciation image reference data generation unit 107 generates appreciation image reference data again based on the corrected gradation conversion curve and the saturation adjustment amount calculated by the saturation correction data calculation unit 304.
[0229]
<Configuration of image processing device>
Next, an image processing apparatus 115 according to the eighteenth aspect of the present invention will be described with reference to the block diagram of FIG. The image processing apparatus 115 constitutes a part of the image processing unit 70 of FIG. 23, and includes an input unit 101, a header information analysis unit 102, a first processing unit 113, and a second processing unit 114 as shown in FIG. Composed. The header information analysis unit 102 is connected to the first processing unit 113, and the storage device 110, the output device 111, and the display device 112 are connected to the second processing unit 114. Hereinafter, only differences from the image processing apparatus 115 according to the first embodiment (see FIG. 7) among the components constituting the image processing apparatus 115 according to the fourth embodiment will be described.
[0230]
The description of the configuration of the header information analysis unit 102 and the first processing unit 113 is the same as the description in the first embodiment, and is omitted here.
[0231]
The second processing unit 114 includes an appreciation image reference data generation unit 107, a temporary storage memory 108, a gradation conversion curve data memory 116, a hardness / brightness setting input unit 109, and a saturation correction data calculation unit 304. The description of the configuration of the temporary storage memory 108, the gradation conversion curve data memory 116, and the hardness / brightness setting input unit 109 is the same as that described in the first embodiment, and is omitted here.
[0232]
The saturation correction data calculation unit 304 uses the hardness correction value specified by the hardness / brightness setting input unit 109 (and the hardness correction value calculated according to the parallax amount) of the appreciation image reference data. The saturation adjustment amount is calculated. Hereinafter, an example of a definition formula for calculating the saturation adjustment amount according to the degree to which the gradation conversion curve is adjusted by the hardness correction value will be shown. Fc is the hardness adjustment coefficient corresponding to the specified hardness correction value, DG is the difference (Δ hardness) from the initial tone conversion curve of hardness (L * 25 to 75), and saturation adjustment amount (%) ) Is PS, the saturation adjustment amount PS is expressed by the following equation (11).
## EQU11 ##
Figure 0004292873
Expression (11) shows a case where the saturation adjustment amount (emphasis amount) is set to + 10% (emphasis) when the hardness adjustment amount is 0, that is, the hardness adjustment coefficient is 0. . FIG. 25 shows the relationship between DG (= Δγ) and PS indicated by equation (11).
[0233]
The appreciation image reference data generation unit 107 reads the scene reference image data stored in the temporary storage memory 105, and when the output medium is designated by the setting input unit (not shown), the gradation conversion curve data memory 116 Then, gradation conversion curve data corresponding to the designated output medium is read, and appreciation image reference data is generated based on the read gradation conversion curve data.
[0234]
The appreciation image reference data generation unit 107 calculates the sum of the hardness correction value input from the hardness / brightness setting input unit 109 and the hardness correction value calculated by the parallax amount / correction value calculation unit 119. It is determined as a hardness correction value for actually correcting the gradation conversion curve, the specific area data is read from the gradation conversion curve data memory 116, and the gradation conversion curve is corrected based on the determined hardness correction value. (Change) process. Furthermore, the viewing image reference data generation unit 107 calculates the sum of the brightness correction value input from the hardness / brightness setting input unit 109 and the brightness correction value calculated by the parallax amount / correction value calculation unit 119. It is determined as a brightness correction value for actually correcting the gradation conversion curve, the movement trajectory data is read from the gradation conversion curve data memory 116, and the gradation conversion curve is corrected based on the determined brightness correction value. (Change) process. The appreciation image reference data generation unit 107 generates appreciation image reference data again based on the corrected gradation conversion curve and the saturation adjustment amount calculated by the saturation correction data calculation unit 304.
[0235]
In the above description, the sum of the hardness correction value (A) input from the hardness / brightness setting input unit 109 and the hardness correction value (B) calculated by the parallax amount / correction value calculation unit 119 (A + B) ) Is determined as a hardness correction value for actually correcting the gradation conversion curve, but is not limited to this. The same applies to the determination of the brightness correction value.
[0236]
Next, the operation in the fourth embodiment will be described.
Image processing according to the fourth embodiment will be described with reference to the flowchart of FIG.
[0237]
First, after input of scene reference image data is instructed (step S401), when an output medium is designated by a setting input unit (not shown) (step S402), the gradation conversion curve data memory 116 reads the step S402. In step S403, gradation conversion curve data corresponding to the output medium designated in step S403 is read out, and appreciation image reference data is generated from the scene reference image data based on the read out gradation conversion curve data. (Step S404).
[0238]
Next, it is determined whether or not the scene reference image data to be processed is a parallax image (step S405). If it is determined in step S405 that the scene reference image data is not a parallax image (step S405; NO), the process proceeds to step S408 described later.
[0239]
If it is determined in step S405 that the scene reference image data is a parallax image (step S405; YES), a parallax amount is calculated from the parallax image (step S406). Next, a hardness correction value and a brightness correction value corresponding to the parallax amount calculated in step S406 are calculated based on the graph of FIG. 8 (step S407).
[0240]
When the scene reference image data is not a parallax image, when the hardness correction value is input by the hardness / brightness setting input unit 109, the input hardness correction value actually corrects the gradation conversion curve. Is determined as a hardness correction value (step S408). When the scene reference image data is a parallax image, when a hardness correction value is input by the hardness / brightness setting input unit 109, the input hardness correction value and the amount of parallax in step S407 are determined. The sum of the calculated hardness correction values is determined as the hardness correction value for actually correcting the gradation conversion curve (step S408).
[0241]
When the hardness correction value is determined, the specific area data is read from the gradation conversion curve data memory 116 (step S409), and the gradation conversion curve is corrected according to the hardness correction value determined in step S408. (Step S410).
[0242]
When the scene reference image data is not a parallax image, when the brightness correction value is input by the hardness / brightness setting input unit 109, the input brightness correction value actually corrects the gradation conversion curve. Is determined as a brightness correction value (step S411). When the scene reference image data is a parallax image, when a brightness correction value is input by the hardness / brightness setting input unit 109, the input brightness correction value and the amount of parallax in step S407 are determined. The sum of the calculated brightness correction values is determined as the brightness correction value for actually correcting the gradation conversion curve (step S411).
[0243]
When the brightness correction value is determined, movement trajectory data is read from the gradation conversion curve data memory 116 (step S412), and the gradation conversion curve is corrected according to the brightness correction value determined in step S411. (Step S413).
[0244]
Next, the saturation adjustment amount is calculated based on the hardness correction value determined in step S408 (step S414). Next, the appreciation image reference data is regenerated based on the gradation conversion curve subjected to the correction processing and the saturation adjustment amount (step S415), and the image processing ends.
[0245]
As described above, according to the fourth embodiment, the tone conversion curve is adjusted based on the hardness correction value of the viewing image reference data, the tone conversion curve is adjusted based on the brightness correction value, and the hardness correction is performed. Setting the gradation conversion curve by determining the saturation adjustment amount based on the value and generating the viewing image reference data based on the adjusted (corrected) gradation conversion curve and the saturation adjustment amount Therefore, the setting operation of an ideal gradation conversion curve can be further improved. Further, when the scene reference image data is a parallax image, a hardness correction value and a brightness correction value are calculated based on the parallax amount of the parallax image, and a gradation is calculated based on the hardness correction value and the brightness correction value. By adjusting the conversion curve, the image quality of the stereoscopic display image can be improved.
[0246]
Note that the description content in each of the above embodiments can be changed as appropriate without departing from the spirit of the present invention.
[0247]
For example, by combining the second and third embodiments, the hardness of the viewing image reference data is set according to the type of the subject, the brightness of the viewing image reference data is set according to the shooting condition, and the type of the subject The brightness and brightness of the viewing image reference data may be set according to the combination of the shooting conditions.
[0248]
Also, by combining the second and fourth embodiments, the hardness of the viewing image reference data is set according to the type of the subject, the brightness of the viewing image reference data is set according to the shooting conditions, and the viewing image is referenced. You may make it adjust the saturation of appreciation image reference data according to the grade which adjusted the hardness of data.
[0249]
Further, by combining the third and fourth embodiments, the hardness and brightness of the viewing image reference data is set according to the combination of the type of subject and the shooting conditions, and the hardness of the viewing image reference data is adjusted according to the degree of adjustment. Thus, the saturation of the viewing image reference data may be adjusted.
[0250]
Further, by combining the second embodiment, the third embodiment, and the fourth embodiment, the hardness of the viewing image reference data is set according to the type of the subject, and the brightness of the viewing image reference data is set according to the shooting conditions. In addition, the hardness and brightness of the viewing image reference data are set according to the combination of the type of subject and the shooting conditions, and the saturation of the viewing image reference data is adjusted according to the degree to which the hardness of the viewing image reference data is adjusted. You may do it.
[0251]
【The invention's effect】
According to the present invention, when the scene reference image data is a parallax image, the hardness correction value and the brightness correction value are determined based on the parallax amount of the parallax image, and the hardness correction value and the brightness correction value are determined. Based on this, the tone conversion curve indicating the conversion from the scene reference image data to the appreciation image reference data is adjusted, so that the image quality of the stereoscopic display image can be improved. In addition, the hardness of the viewing image reference data is adjusted by changing the shape of the gradation conversion curve using a specific area including a predetermined position on the gradation conversion curve as a non-moving area, and the specific area is a curve in which the specific area is defined in advance. By adjusting the brightness of the viewing image reference data by changing the shape of the gradation conversion curve so as to move, the efficiency of the gradation conversion curve setting work can be improved. Further, it is possible to adjust the hardness of the viewing image reference data in which the brightness fluctuation is suppressed. Furthermore, it is possible to adjust the brightness of the viewing image reference data in which the variation in hardness is suppressed.
[0252]
In addition, by adjusting the hardness of the viewing image reference data according to the type of the subject and adjusting the brightness of the viewing image reference data according to the shooting conditions, it is possible to improve the efficiency of setting the gradation conversion curve. it can. In addition, by adjusting the hardness and brightness of the viewing image reference data according to the combination of the specific subject type and the shooting conditions, it is possible to further improve the efficiency of setting the gradation conversion curve.
[0253]
In addition, since the saturation of the viewing image reference data can be adjusted according to the correction value of the hardness of the viewing image reference data, the setting operation of the gradation conversion curve is made efficient, and preferable viewing of the viewing image is performed. Data can be obtained.
[Brief description of the drawings]
FIG. 1 is a diagram showing a gradation conversion curve for converting scene reference image data to appreciation image reference data.
2 is a diagram showing a predetermined position 1 on the gradation conversion curve of FIG. 1 and a specific area 2 including the predetermined position 1. FIG.
FIG. 3 is a diagram for explaining a movement trajectory of a specific area 2 in FIG. 2;
FIG. 4 is a perspective view showing an external configuration of an image recording apparatus 1 in the present embodiment.
5 is a block diagram showing an internal configuration of the image recording apparatus 1. FIG.
FIG. 6 is a block diagram showing a functional configuration of an image processing unit 70 in Embodiment 1 of the present invention.
FIG. 7 is a block diagram showing a functional configuration of the image processing apparatus 115 according to the first embodiment of the present invention.
FIG. 8 is a diagram showing the relationship between the parallax amount and the hardness correction value (FIG. 8A) and the relationship between the parallax amount and the brightness correction value (FIG. 8B).
FIG. 9 is a diagram for explaining a parallax amount calculation method;
FIG. 10 is a diagram for explaining a subject detection method;
FIG. 11 is a diagram for explaining a subject detection method;
FIG. 12 is a diagram illustrating an example of a gradation conversion curve.
FIG. 13 is a diagram illustrating an example of a gradation conversion curve.
FIG. 14 is a diagram illustrating an example of a movement locus of a specific region (non-moving region) in a gradation conversion curve.
15 is a flowchart showing image processing in Embodiment 1. FIG.
FIG. 16 is a block diagram showing a functional configuration of an image processing unit in Embodiment 2 of the present invention.
FIG. 17 is a block diagram showing a functional configuration of an image processing apparatus 115 in Embodiment 2 of the present invention.
18 shows the relationship between the parallax amount and the hardness correction value for each subject type (FIG. 18A), and the relationship between the parallax amount and the brightness correction value for each subject type (FIG. 18B). Figure.
FIG. 19 is a flowchart illustrating image processing according to the second embodiment.
FIG. 20 is a block diagram illustrating a functional configuration of an image processing unit in Embodiment 3 of the present invention.
FIG. 21 is a block diagram showing a functional configuration of an image processing apparatus 115 in Embodiment 3 of the present invention.
FIG. 22 is a flowchart illustrating image processing according to the third embodiment.
FIG. 23 is a block diagram illustrating a functional configuration of an image processing unit in Embodiment 4 of the present invention.
FIG. 24 is a block diagram showing a functional configuration of an image processing apparatus 115 in Embodiment 4 of the present invention.
FIG. 25 is a view showing a relationship between a difference DG (Δγ) from an initial gradation conversion curve of hardness (L * 25 to 75) and a saturation adjustment amount PS (%).
FIG. 26 is a flowchart illustrating image processing according to the fourth embodiment.
[Explanation of symbols]
1 Image recording device
4 Exposure processing section
5 Print creation department
7 Control unit
8 CRT
9 Film scanner
10 Reflective document input device
11 Operation unit
12 Information input means
14 Image reading part
15 Image writing unit
30 Image transfer means
31 Image transport unit
32 Communication means (input)
33 Communication means (output)
51 External printer
70 Image processing unit
701 Image adjustment processing unit
702 Film scan data processing section
703 Reflected original scan data processing unit
704 Image data format decoding processor
705 Template processing unit
706 CRT-specific processing section
707 Print unique processing section (1)
708 Print specific processing section (2)
709 Image data creation processing unit
71 Data storage means
72 Template storage means
101 Input section
102 Header information analysis unit
103a Processing condition table
103b Device characteristic correction processing unit
104 Scene reference image data generation unit
105, 108 Temporary storage memory
106 Shooting information data processing unit
107 viewing image reference data generation unit
109 Hardness / brightness setting input section
116 Gradation conversion curve data memory
119 Parallax amount / correction value calculation unit
303 Condition calculation unit
304 Saturation correction data calculation unit

Claims (42)

シーン参照画像データに、出力媒体上での鑑賞画像形成のために最適化する画像処理を施して鑑賞画像参照データを生成する画像処理方法において、
前記シーン参照画像データが視差画像であるか否かを判定する判定工程と、
前記判定工程において、前記シーン参照画像データが視差画像であると判定された場合、当該視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定する補正値決定工程と、
予め出力媒体毎に定義された、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を、前記決定された硬さの補正値に基づいて変更する第1の変更工程と、
前記階調変換曲線を、前記決定された明るさの補正値に基づいて変更する第2の変更工程と、
前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線に基づいて鑑賞画像参照データを生成する生成工程と、を含み、
前記第1の変更工程において、前記階調変換曲線上の所定の位置を含む特定領域を不動領域として、前記決定された硬さの補正値に基づいて当該階調変換曲線の形状が変更され、
前記第2の変更工程において、前記特定領域が予め定義された曲線上を移動するように、前記決定された明るさの補正値に基づいて当該階調変換曲線の形状が変更されることを特徴とする画像処理方法。
In an image processing method for generating appreciation image reference data by performing image processing optimized for scene appreciation image formation on an output medium on scene reference image data,
A determination step of determining whether or not the scene reference image data is a parallax image;
In the determination step, when it is determined that the scene reference image data is a parallax image, the hardness correction value and the brightness correction value of the viewing image reference data are determined based on the parallax amount of the parallax image. A correction value determination step to be performed;
A first changing step for changing a gradation conversion curve, which is defined in advance for each output medium and indicates a conversion from scene reference image data to appreciation image reference data, based on the determined hardness correction value;
A second changing step of changing the gradation conversion curve based on the determined brightness correction value;
Generating a viewing image reference data based on the gradation conversion curve changed in the first changing step and the second changing step,
In the first changing step, the shape of the gradation conversion curve is changed based on the determined hardness correction value, with a specific region including a predetermined position on the gradation conversion curve as a fixed region,
In the second changing step, the shape of the gradation conversion curve is changed based on the determined brightness correction value so that the specific region moves on a predefined curve. An image processing method.
被写体の種類に応じて、前記鑑賞画像参照データの硬さの補正値を算出する硬さ算出工程と、
撮影条件に応じて、前記鑑賞画像参照データの明るさの補正値を算出する明るさ算出工程と、を含み、
前記補正値決定工程において、前記硬さ算出工程において算出された硬さの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値が決定され、前記明るさ算出工程において算出された明るさの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの明るさの補正値が決定されることを特徴とする請求項1に記載の画像処理方法。
A hardness calculation step of calculating a correction value of the hardness of the viewing image reference data according to the type of the subject;
A brightness calculation step of calculating a correction value of brightness of the appreciation image reference data according to shooting conditions,
In the correction value determination step, a hardness correction value of the viewing image reference data is determined based on the hardness correction value calculated in the hardness calculation step and the parallax amount of the parallax image, and the brightness The brightness correction value of the viewing image reference data is determined based on the brightness correction value calculated in the height calculation step and the parallax amount of the parallax image. Image processing method.
特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出工程を含み、
前記補正値決定工程において、前記視差画像の視差量と、前記硬さ・明るさ算出工程において算出された硬さの補正値及び明るさの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値が決定されることを特徴とする請求項1に記載の画像処理方法。
A hardness / brightness calculation step of calculating a hardness correction value and a brightness correction value of the viewing image reference data according to a combination of a specific subject type and shooting conditions,
Based on the parallax amount of the parallax image and the hardness correction value and the brightness correction value calculated in the hardness / brightness calculation step in the correction value determination step, the hardness of the viewing image reference data The image processing method according to claim 1, wherein a correction value and a brightness correction value are determined.
前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、
前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記決定された彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴とする請求項1に記載の画像処理方法。
A saturation determination step of determining an adjustment amount of saturation of the viewing image reference data based on the correction value of the hardness determined in the correction value determination step;
In the generation step, appreciation image reference data is generated based on the gradation conversion curve changed in the first change step and the second change step and the determined saturation adjustment amount. The image processing method according to claim 1.
特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出工程を含み、
前記補正値決定工程において、前記視差画像の視差量、前記硬さ算出工程において算出された硬さの補正値及び前記硬さ・明るさ算出工程において算出された硬さの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値が決定され、前記視差画像の視差量、前記明るさ算出工程において算出された明るさの補正値及び前記硬さ・明るさ算出工程において算出された明るさの補正値に基づいて、前記鑑賞画像データの明るさの補正値が決定されることを特徴とする請求項2に記載の画像処理方法。
A hardness / brightness calculation step of calculating a hardness correction value and a brightness correction value of the viewing image reference data according to a combination of a specific subject type and shooting conditions,
Based on the parallax amount of the parallax image, the hardness correction value calculated in the hardness calculation step, and the hardness correction value calculated in the hardness / brightness calculation step in the correction value determination step, The hardness correction value of the viewing image reference data is determined, the parallax amount of the parallax image, the brightness correction value calculated in the brightness calculation step, and the brightness calculated in the hardness / brightness calculation step. The image processing method according to claim 2, wherein a correction value for brightness of the viewing image data is determined based on a correction value for height.
前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、
前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴とする請求項2に記載の画像処理方法。
A saturation determination step of determining an adjustment amount of saturation of the viewing image reference data based on the correction value of the hardness determined in the correction value determination step;
In the generating step, appreciation image reference data is generated based on the gradation conversion curve changed in the first changing step and the second changing step and the saturation adjustment amount. The image processing method according to claim 2.
前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、
前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴とする請求項3に記載の画像処理方法。
A saturation determination step of determining an adjustment amount of saturation of the viewing image reference data based on the correction value of the hardness determined in the correction value determination step;
In the generating step, appreciation image reference data is generated based on the gradation conversion curve changed in the first changing step and the second changing step and the adjustment amount of the saturation. The image processing method according to claim 3.
前記補正値決定工程において決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定工程を含み、
前記生成工程において、前記第1の変更工程及び前記第2の変更工程において変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データが生成されることを特徴とする請求項5に記載の画像処理方法。
A saturation determination step of determining an adjustment amount of saturation of the viewing image reference data based on the correction value of the hardness determined in the correction value determination step;
In the generating step, appreciation image reference data is generated based on the gradation conversion curve changed in the first changing step and the second changing step and the adjustment amount of the saturation. The image processing method according to claim 5.
前記特定の被写体の種類及び撮影条件の組み合わせにおいて、被写体の種類がポートレートであり、撮影条件が逆光であることを特徴とする請求項3、5、7、8の何れか一項に記載の画像処理方法。9. The method according to claim 3, wherein, in the combination of the specific subject type and the photographing condition, the subject type is a portrait and the photographing condition is a backlight. Image processing method. 前記硬さの補正値が0である場合の彩度の調整量は、鑑賞画像参照データの彩度を強調する値であることを特徴とする請求項4、6〜8の何れか一項に記載の画像処理方法。The saturation adjustment amount when the hardness correction value is 0 is a value that emphasizes the saturation of the viewing image reference data, according to any one of claims 4 and 6-8. The image processing method as described. 前記被写体の種類には、少なくともポートレート、風景、静物が含まれることを特徴とする請求項2、3、5〜10の何れか一項に記載の画像処理方法。The image processing method according to claim 2, wherein at least a portrait, a landscape, and a still life are included in the types of subjects. 前記撮影条件には、少なくとも逆光、ストロボ撮影が含まれることを特徴とする請求項2、3、5〜11の何れか一項に記載の画像処理方法。The image processing method according to claim 2, wherein the photographing condition includes at least backlighting and flash photography. 前記階調変換曲線の入出力値がL*である場合、前記特定領域中の所定の位置は、入力L*が40以上50未満の位置であることを特徴とする請求項1〜12の何れか一項に記載の画像処理方法。The input / output value of the gradation conversion curve is L *, and the predetermined position in the specific region is a position where the input L * is 40 or more and less than 50. An image processing method according to claim 1. 前記予め出力媒体毎に定義された階調変換曲線の硬さと明るさの初期値が、ユーザ別に記憶されていることを特徴とする請求項1〜13の何れか一項に記載の画像処理方法。The image processing method according to claim 1, wherein initial values of the hardness and brightness of the gradation conversion curve defined in advance for each output medium are stored for each user. . シーン参照画像データに、出力媒体上での鑑賞画像形成のために最適化する画像処理を施して鑑賞画像参照データを生成する画像処理装置において、
前記シーン参照画像データが視差画像であるか否かを判定する判定部と、
前記判定部により、前記シーン参照画像データが視差画像であると判定された場合、当該視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定する補正値決定部と、
予め出力媒体毎に定義された、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を、前記決定された硬さの補正値に基づいて変更する第1の変更部と、
前記階調変換曲線を、前記決定された明るさの補正値に基づいて変更する第2の変更部と、
前記第1の変更部及び前記第2の変更部により変更された階調変換曲線に基づいて鑑賞画像参照データを生成する生成部と、を備え、
前記第1の変更部は、前記階調変換曲線上の所定の位置を含む特定領域を不動領域として、前記決定された硬さの補正値に基づいて当該階調変換曲線の形状を変更し、
前記第2の変更部は、前記特定領域が予め定義された曲線上を移動するように、前記決定された明るさの補正値に基づいて当該階調変換曲線の形状を変更することを特徴とする画像処理装置。
In an image processing device that generates scene image reference data by performing image processing optimized for scene image formation on an output medium on scene reference image data,
A determination unit that determines whether or not the scene reference image data is a parallax image;
When the determination unit determines that the scene reference image data is a parallax image, the hardness correction value and the brightness correction value of the viewing image reference data are determined based on the parallax amount of the parallax image. A correction value determination unit to perform,
A first changing unit configured to change a gradation conversion curve that is defined in advance for each output medium and indicates conversion from scene reference image data to appreciation image reference data based on the determined hardness correction value;
A second changing unit that changes the gradation conversion curve based on the determined brightness correction value;
A generating unit that generates appreciation image reference data based on the gradation conversion curve changed by the first changing unit and the second changing unit;
The first changing unit changes a shape of the gradation conversion curve based on the determined hardness correction value, with a specific region including a predetermined position on the gradation conversion curve as a non-moving region,
The second changing unit changes the shape of the gradation conversion curve based on the determined brightness correction value so that the specific area moves on a predefined curve. An image processing apparatus.
被写体の種類に応じて、前記鑑賞画像参照データの硬さの補正値を算出する硬さ算出部と、
撮影条件に応じて、前記鑑賞画像参照データの明るさの補正値を算出する明るさ算出部と、を備え、
前記補正値決定部は、前記硬さ算出部により算出された硬さの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記明るさ算出部により算出された明るさの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの明るさの補正値を決定することを特徴とする請求項15に記載の画像処理装置。
A hardness calculation unit that calculates a correction value of the hardness of the viewing image reference data according to the type of the subject;
A brightness calculation unit that calculates a correction value of the brightness of the appreciation image reference data according to shooting conditions,
The correction value determination unit determines a correction value of hardness of the viewing image reference data based on a correction value of hardness calculated by the hardness calculation unit and a parallax amount of the parallax image, and the brightness 16. The image according to claim 15, wherein a brightness correction value of the appreciation image reference data is determined based on a brightness correction value calculated by a height calculation unit and a parallax amount of the parallax image. Processing equipment.
特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量と、前記硬さ・明るさ算出部により算出された硬さの補正値及び明るさの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定することを特徴とする請求項15に記載の画像処理装置。The correction value determination unit includes a hardness / brightness calculation unit that calculates a hardness correction value and a brightness correction value of the viewing image reference data according to a combination of a specific subject type and shooting conditions. Based on the parallax amount of the parallax image, the hardness correction value and the brightness correction value calculated by the hardness / brightness calculation unit, the hardness correction value and the brightness of the viewing image reference data The image processing apparatus according to claim 15, wherein a correction value is determined. 前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記決定された彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項15に記載の画像処理装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generating unit generates appreciation image reference data based on the gradation conversion curve changed by the first changing unit and the second changing unit and the determined saturation adjustment amount. The image processing apparatus according to claim 15, characterized in that:
特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量、前記硬さ算出部により算出された硬さの補正値及び前記硬さ・明るさ算出部により算出された硬さの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記視差画像の視差量、前記明るさ算出部により算出された明るさの補正値及び前記硬さ・明るさ算出部により算出された明るさの補正値に基づいて、前記鑑賞画像データの明るさの補正値を決定することを特徴とする請求項16に記載の画像処理装置。The correction value determination unit includes a hardness / brightness calculation unit that calculates a hardness correction value and a brightness correction value of the viewing image reference data according to a combination of a specific subject type and shooting conditions. Based on the parallax amount of the parallax image, the hardness correction value calculated by the hardness calculation unit, and the hardness correction value calculated by the hardness / brightness calculation unit, A hardness correction value is determined, based on the parallax amount of the parallax image, the brightness correction value calculated by the brightness calculation unit, and the brightness correction value calculated by the hardness / brightness calculation unit The image processing apparatus according to claim 16, wherein a correction value for brightness of the viewing image data is determined. 前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項16に記載の画像処理装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generation unit generates appreciation image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. The image processing apparatus according to claim 16.
前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項17に記載の画像処理装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generation unit generates appreciation image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. The image processing apparatus according to claim 17.
前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項19に記載の画像処理装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generation unit generates appreciation image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. The image processing apparatus according to claim 19.
前記特定の被写体の種類及び撮影条件の組み合わせにおいて、被写体の種類がポートレートであり、撮影条件が逆光であることを特徴とする請求項17、19、21、22の何れか一項に記載の画像処理装置。23. The combination of any one of claims 17, 19, 21, and 22, wherein in the combination of the specific subject type and the photographing condition, the subject type is a portrait and the photographing condition is a backlight. Image processing device. 前記硬さの補正値が0である場合の彩度の調整量は、鑑賞画像参照データの彩度を強調する値であることを特徴とする請求項18、20〜22の何れか一項に記載の画像処理装置。The saturation adjustment amount when the correction value of the hardness is 0 is a value that emphasizes the saturation of the viewing image reference data. The image processing apparatus described. 前記被写体の種類には、少なくともポートレート、風景、静物が含まれることを特徴とする請求項16、17、19〜24の何れか一項に記載の画像処理装置。The image processing apparatus according to any one of claims 16, 17, and 19 to 24, wherein the types of subjects include at least a portrait, a landscape, and a still life. 前記撮影条件には、少なくとも逆光、ストロボ撮影が含まれることを特徴とする請求項16、17、19〜25の何れか一項に記載の画像処理装置。The image processing apparatus according to any one of claims 16, 17, and 19 to 25, wherein the photographing conditions include at least backlighting and flash photography. 前記階調変換曲線の入出力値がL*である場合、前記特定領域中の所定の位置は、入力L*が40以上50未満の位置であることを特徴とする請求項15〜26の何れか一項に記載の画像処理装置。The input / output value of the gradation conversion curve is L *, and the predetermined position in the specific region is a position where the input L * is 40 or more and less than 50. An image processing apparatus according to claim 1. 前記予め出力媒体毎に定義された階調変換曲線の硬さと明るさの初期値が、ユーザ別に記憶されていることを特徴とする請求項15〜27の何れか一項に記載の画像処理装置。The image processing apparatus according to any one of claims 15 to 27, wherein initial values of hardness and brightness of a gradation conversion curve defined in advance for each output medium are stored for each user. . シーン参照画像データに、出力媒体上での鑑賞画像形成のために最適化する画像処理を施して鑑賞画像参照データを生成し、生成された鑑賞画像データを出力媒体上に形成する画像記録装置において、
前記シーン参照画像データが視差画像であるか否かを判定する判定部と、
前記判定部により、前記シーン参照画像データが視差画像であると判定された場合、当該視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定する補正値決定部と、
予め出力媒体毎に定義された、シーン参照画像データから鑑賞画像参照データへの変換を示す階調変換曲線を、前記決定された硬さの補正値に基づいて変更する第1の変更部と、
前記階調変換曲線を、前記決定された明るさの補正値に基づいて変更する第2の変更部と、
前記第1の変更部及び前記第2の変更部により変更された階調変換曲線に基づいて鑑賞画像参照データを生成する生成部と、を備え、
前記第1の変更部は、前記階調変換曲線上の所定の位置を含む特定領域を不動領域として、前記決定された硬さの補正値に基づいて当該階調変換曲線の形状を変更し、
前記第2の変更部は、前記特定領域が予め定義された曲線上を移動するように、前記決定された明るさの補正値に基づいて当該階調変換曲線の形状を変更することを特徴とする画像記録装置。
In an image recording apparatus that generates scene image reference data by performing image processing optimized for scene image formation on an output medium on scene reference image data, and forms the generated scene image data on the output medium ,
A determination unit that determines whether or not the scene reference image data is a parallax image;
When the determination unit determines that the scene reference image data is a parallax image, the hardness correction value and the brightness correction value of the viewing image reference data are determined based on the parallax amount of the parallax image. A correction value determination unit to perform,
A first changing unit configured to change a gradation conversion curve that is defined in advance for each output medium and indicates conversion from scene reference image data to appreciation image reference data based on the determined hardness correction value;
A second changing unit that changes the gradation conversion curve based on the determined brightness correction value;
A generating unit that generates appreciation image reference data based on the gradation conversion curve changed by the first changing unit and the second changing unit;
The first changing unit changes a shape of the gradation conversion curve based on the determined hardness correction value, with a specific region including a predetermined position on the gradation conversion curve as a non-moving region,
The second changing unit changes the shape of the gradation conversion curve based on the determined brightness correction value so that the specific area moves on a predefined curve. An image recording apparatus.
被写体の種類に応じて、前記鑑賞画像参照データの硬さの補正値を算出する硬さ算出部と、
撮影条件に応じて、前記鑑賞画像参照データの明るさの補正値を算出する明るさ算出部と、を備え、
前記補正値決定部は、前記硬さ算出部により算出された硬さの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記明るさ算出部により算出された明るさの補正値と、前記視差画像の視差量に基づいて、前記鑑賞画像参照データの明るさの補正値を決定することを特徴とする請求項29に記載の画像記録装置。
A hardness calculation unit that calculates a correction value of the hardness of the viewing image reference data according to the type of the subject;
A brightness calculation unit that calculates a correction value of the brightness of the appreciation image reference data according to shooting conditions,
The correction value determination unit determines a correction value of hardness of the viewing image reference data based on the correction value of hardness calculated by the hardness calculation unit and the amount of parallax of the parallax image, and the brightness 30. The image according to claim 29, wherein a brightness correction value of the viewing image reference data is determined based on a brightness correction value calculated by a height calculation unit and a parallax amount of the parallax image. Recording device.
特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量と、前記硬さ・明るさ算出部により算出された硬さの補正値及び明るさの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を決定することを特徴とする請求項29に記載の画像記録装置。The correction value determination unit includes a hardness / brightness calculation unit that calculates a hardness correction value and a brightness correction value of the viewing image reference data according to a combination of a specific subject type and shooting conditions. Based on the parallax amount of the parallax image, the hardness correction value and the brightness correction value calculated by the hardness / brightness calculation unit, the hardness correction value and the brightness of the viewing image reference data 30. The image recording apparatus according to claim 29, wherein a correction value is determined. 前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記決定された彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項29に記載の画像記録装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generating unit generates appreciation image reference data based on the gradation conversion curve changed by the first changing unit and the second changing unit and the determined saturation adjustment amount. 30. The image recording apparatus according to claim 29, characterized in that:
特定の被写体の種類及び撮影条件の組み合わせに応じて、前記鑑賞画像参照データの硬さの補正値及び明るさの補正値を算出する硬さ・明るさ算出部を備え、前記補正値決定部は、前記視差画像の視差量、前記硬さ算出部により算出された硬さの補正値及び前記硬さ・明るさ算出部により算出された硬さの補正値に基づいて、前記鑑賞画像参照データの硬さの補正値を決定し、前記視差画像の視差量、前記明るさ算出部により算出された明るさの補正値及び前記硬さ・明るさ算出部により算出された明るさの補正値に基づいて、前記鑑賞画像データの明るさの補正値を決定することを特徴とする請求項30に記載の画像記録装置。The correction value determination unit includes a hardness / brightness calculation unit that calculates a hardness correction value and a brightness correction value of the viewing image reference data according to a combination of a specific subject type and shooting conditions. Based on the parallax amount of the parallax image, the hardness correction value calculated by the hardness calculation unit, and the hardness correction value calculated by the hardness / brightness calculation unit, A hardness correction value is determined, based on the parallax amount of the parallax image, the brightness correction value calculated by the brightness calculation unit, and the brightness correction value calculated by the hardness / brightness calculation unit 31. The image recording apparatus according to claim 30, wherein a correction value for brightness of the viewing image data is determined. 前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項30に記載の画像記録装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generation unit generates appreciation image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. The image recording apparatus according to claim 30.
前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項31に記載の画像記録装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generation unit generates appreciation image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. 32. The image recording apparatus according to claim 31.
前記補正値決定部により決定された硬さの補正値に基づいて、鑑賞画像参照データの彩度の調整量を決定する彩度決定部を備え、
前記生成部は、前記第1の変更部及び前記第2の変更部により変更された階調変換曲線と、前記彩度の調整量に基づいて、鑑賞画像参照データを生成することを特徴とする請求項33に記載の画像記録装置。
A saturation determination unit that determines an adjustment amount of the saturation of the viewing image reference data based on the correction value of the hardness determined by the correction value determination unit;
The generation unit generates appreciation image reference data based on the gradation conversion curve changed by the first change unit and the second change unit and the saturation adjustment amount. 34. The image recording apparatus according to claim 33.
前記特定の被写体の種類及び撮影条件の組み合わせにおいて、被写体の種類がポートレートであり、撮影条件が逆光であることを特徴とする請求項31、33、35、36の何れか一項に記載の画像記録装置。37. The combination of any one of the specific subject type and shooting conditions, wherein the subject type is portrait and the shooting condition is backlight. Image recording device. 前記硬さの補正値が0である場合の彩度の調整量は、鑑賞画像参照データの彩度を強調する値であることを特徴とする請求項32、34〜36の何れか一項に記載の画像記録装置。37. The saturation adjustment amount when the hardness correction value is 0 is a value that emphasizes the saturation of the viewing image reference data. The image recording apparatus described. 前記被写体の種類には、少なくともポートレート、風景、静物が含まれることを特徴とする請求項30、31、33〜38の何れか一項に記載の画像記録装置。The image recording apparatus according to any one of claims 30, 31, and 33 to 38, wherein the types of subjects include at least a portrait, a landscape, and a still life. 前記撮影条件には、少なくとも逆光、ストロボ撮影が含まれることを特徴とする請求項30、31、33〜39の何れか一項に記載の画像記録装置。40. The image recording apparatus according to any one of claims 30, 31, 33 to 39, wherein the photographing condition includes at least backlighting and strobe photographing. 前記階調変換曲線の入出力値がL*である場合、前記特定領域中の所定の位置は、入力L*が40以上50未満の位置であることを特徴とする請求項29〜40の何れか一項に記載の画像記録装置。The input / output value of the gradation conversion curve is L *, and the predetermined position in the specific region is a position where the input L * is 40 or more and less than 50. An image recording apparatus according to claim 1. 前記予め出力媒体毎に定義された階調変換曲線の硬さと明るさの初期値が、ユーザ別に記憶されていることを特徴とする請求項29〜41の何れか一項に記載の画像記録装置。The image recording apparatus according to any one of claims 29 to 41, wherein initial values of hardness and brightness of a gradation conversion curve defined in advance for each output medium are stored for each user. .
JP2003152720A 2003-05-29 2003-05-29 Image processing method, image processing apparatus, and image recording apparatus Expired - Fee Related JP4292873B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003152720A JP4292873B2 (en) 2003-05-29 2003-05-29 Image processing method, image processing apparatus, and image recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003152720A JP4292873B2 (en) 2003-05-29 2003-05-29 Image processing method, image processing apparatus, and image recording apparatus

Publications (2)

Publication Number Publication Date
JP2004357001A JP2004357001A (en) 2004-12-16
JP4292873B2 true JP4292873B2 (en) 2009-07-08

Family

ID=34047864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003152720A Expired - Fee Related JP4292873B2 (en) 2003-05-29 2003-05-29 Image processing method, image processing apparatus, and image recording apparatus

Country Status (1)

Country Link
JP (1) JP4292873B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100739764B1 (en) * 2005-11-28 2007-07-13 삼성전자주식회사 Apparatus and method for processing 3 dimensional video signal
JP4609805B2 (en) * 2009-05-28 2011-01-12 Necカシオモバイルコミュニケーションズ株式会社 Terminal device and program
WO2014050689A1 (en) * 2012-09-27 2014-04-03 シャープ株式会社 Image processing device

Also Published As

Publication number Publication date
JP2004357001A (en) 2004-12-16

Similar Documents

Publication Publication Date Title
JP4131192B2 (en) Imaging apparatus, image processing apparatus, and image recording apparatus
US20040095478A1 (en) Image-capturing apparatus, image-processing apparatus, image-recording apparatus, image-processing method, program of the same and recording medium of the program
US20040247175A1 (en) Image processing method, image capturing apparatus, image processing apparatus and image recording apparatus
JP2005190435A (en) Image processing method, image processing apparatus and image recording apparatus
US20070247474A1 (en) Method, apparatus and recording medium for image processing
JP2005026800A (en) Image processing method, imaging apparatus, image processing apparatus, and image recording apparatus
JP2005208817A (en) Image processing method, image processor, and image recording device
JPWO2005079056A1 (en) Image processing apparatus, photographing apparatus, image processing system, image processing method and program
US20040041920A1 (en) Image forming method, image processing apparatus, and image recording apparatus
JP2006325015A (en) Image processing method, image processing apparatus, imaging apparatus, and image processing program
US20040041926A1 (en) Image-capturing apparatus, imager processing apparatus and image recording apparatus
US7324702B2 (en) Image processing method, image processing apparatus, image recording apparatus, program, and recording medium
US20040036899A1 (en) Image forming method, image processing apparatus, print producing apparatus and memory medium
JP2005192162A (en) Image processing method, image processing apparatus, and image recording apparatus
JP2004336521A (en) Image processing method, image processor, and image recording apparatus
JP2006203566A (en) Imaging apparatus, image processing apparatus and image processing method
JP4292873B2 (en) Image processing method, image processing apparatus, and image recording apparatus
US20040036892A1 (en) Image processing method, image processing apparatus, image recording apparatus and recording medium
JP2005192158A (en) Image processing method, image processing apparatus, and image recording apparatus
JP2004328534A (en) Image forming method, image processing apparatus and image recording apparatus
US20040042025A1 (en) Image processing method, image processing apparatus, image recording apparatus, program and recording medium
JP2006203571A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP2005202749A (en) Image processing method, image processing apparatus, and image recording apparatus
JP2006203573A (en) Imaging apparatus, image processor, and image recording apparatus
JP2004328530A (en) Imaging apparatus, image processing apparatus, and image recording apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060509

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20070827

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20080221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090312

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090317

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090330

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

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140417

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees