JP2004222076A - Image processing program and method - Google Patents

Image processing program and method Download PDF

Info

Publication number
JP2004222076A
JP2004222076A JP2003008660A JP2003008660A JP2004222076A JP 2004222076 A JP2004222076 A JP 2004222076A JP 2003008660 A JP2003008660 A JP 2003008660A JP 2003008660 A JP2003008660 A JP 2003008660A JP 2004222076 A JP2004222076 A JP 2004222076A
Authority
JP
Japan
Prior art keywords
data
image
processing
correction
tone curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003008660A
Other languages
Japanese (ja)
Inventor
Masaya Tamaru
雅也 田丸
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2003008660A priority Critical patent/JP2004222076A/en
Publication of JP2004222076A publication Critical patent/JP2004222076A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To perform an image processing wherein the intent of a user is reflected accurately when a perfection image is generated by range synthesis of main data and highlight data. <P>SOLUTION: CCD (charge coupled device)-RAW data recorded in a CCD-RAW recoding mode are reproduced by performing various kinds of image processing with CCD-RAW application. In the CCD-RAW application, gamma control and tone curve correction processing are performed collectively to regular data composed of only the main data. On the other hand, when special image data composed of the main data and the highlight data are reproduced, after gamma control and the range synthesis are performed, then the tone curve correction is performed. Since the tone curve correction is performed after the range synthesis, correction parameter specified by a user is applied to both of the main data and the highlight data. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、各画素のデータが、低輝度域から中輝度域までの階調を表現するメイン画像データと、メイン画像データでは表現できない高輝度域の階調を表現するハイライト画像データとから構成される画像データの画像処理方法及びプログラムに関するものである。
【0002】
【従来の技術】
CCDイメージセンサなどの撮像手段によって被写体を撮像して撮影画像をデジタルデータとして記録するデジタルカメラが知られている。CCDイメージセンサは、多数の受光素子(画素)がマトリックス状に配列された光電面を備えており、光電面の前方には、各画素がR(赤),G(緑),B(青)のいずれかに対応するようにカラーフイルタアレイが配置されている。この光電面に結像した被写体像を光電変換して、各画素毎に入射光量に応じた電荷をアナログの撮像信号として出力する。
【0003】
アナログの撮像信号は、A/Dコンバータによってデジタルに変換され、変換直後のデータは、CCD−RAWデータ(生データ)と呼ばれる。CCD−RAWデータは、1画素につき1色相当の情報しか持たないデータであるため、そのままでは観賞に堪えられるものではない。そのため、デジタルカメラの多くは、このCCD−RAWデータに対してカメラ内部でガンマ補正,ホワイトバランス補正などの各種の画像補正処理を施すことにより観賞可能な完成画像を生成し、この完成画像をJPEG形式やTIFF形式などの汎用的な画像ファイルの形式でメモリーカードなどのストレージメディアに記録する。
【0004】
しかし、プロカメラマンやハイアマチュアなどのカメラユーザーからは、CCD−RAWデータを基に自分の好みの補正や加工を加えて完成画像を生成したいという要望が多い。こうしたユーザー向けのハイスペックモデルの中には、CCDイメージセンサによって取り込まれたCCD−RAWデータを、カメラ内部で画像補正処理を実行せずに、そのままストレージメディアに記録するCCD−RAW記録モードを搭載した機種がある。
【0005】
このモードで記録されたCCD−RAWデータは、専用の画像処理プログラム(以下、CCD−RAWアプリケーションと呼ぶ)がインストールされたパーソナルコンピュータなどによって、ゲイン補正及びガンマ補正の他、ユーザーの好みに応じてトーンカーブ補正,シャープネス補正,彩度補正などの画像処理が施されて再生されるとともに、JPEGやTIFFなどの一般的な画像ファイル形式に変換される。ユーザーは、操作画面に表示されるプレビュー画像を確認しながら、所望する補正レベルを指定する。CCD−RAWアプリケーションは、ユーザーの指定に応じて補正パラメータなどを設定し、その処理条件に従って補正処理を実行する。これにより、ユーザーの意図した画質の完成画像が得られる。
【0006】
ところで、CCDイメージセンサなどの撮像素子は、一般的に写真フイルムと比較して輝度信号の再現能力を表すダイナミックレンジ(再現可能な最小値と最大値の比率)が狭いので、明暗差の大きいシーンを撮影した場合には、高輝度域が白飛びしたり、低輝度域が黒くつぶれてしまうといったことが生じる。しかし、近年の半導体製造技術の進歩により、CCDイメージセンサによって広いダイナミックレンジを持つ画像を得る方法が各種提案されてきている。
【0007】
その1つに、例えば、図7(A)に示すように、1つの画素71が、主画素71aとこの主画素71aよりも受光面積が小さい副画素71bとから構成された特殊なCCDイメージセンサ70を使用して、感度の高い主画素71aからメインデータを、感度の低い副画素71bからハイライトデータをそれぞれ取り込む方法がある。図7(B)のグラフに示すように、主画素71aは感度が高いため、副画素71bと比較して少ない入射光量で飽和する。他方、副画素71bは感度が低いため、主画素71aよりも多い入射光量で飽和する。これにより、主画素71aからは前記メインデータを、副画素71bからは前記ハイライトデータをそれぞれ取り出すことができる。こうして得られたメインデータとハイライトデータは、1つの画像ファイルに格納される。この画像ファイルは、例えば、下記特許文献1に記載された画像形成方法で再生される。この再生プロセスでは、メインデータとハイライトデータとに基づいてレンジ合成処理が施される。
【0008】
このようなメインデータとハイライトデータからなる特殊画像データは、広いダイナミックレンジが得られることから上述のハイスペックモデルユーザーのニーズに合致する。そこで、上述したCCD−RAWアプリケーションで、標準的な画像データ(1画素のデータがメインデータのみからなるデータ)に加えて、特殊画像データも再生できるようにすることが検討されている。
【0009】
【特許文献1】
特開2001−8092号公報
【0010】
【発明が解決しようとする課題】
従来のCCD−RAWアプリケーションでは、通常、ガンマ補正を行った後に、トーンカーブ補正などのユーザーの好みに応じた補正処理がなされる。また、ガンマ補正とトーンカーブ補正は、そのどちらについても補正パラメータをテーブル化したLUT(ルックアップテーブル)を使用して処理を行うのが一般的である。
【0011】
これらガンマ補正とトーンカーブ補正は、ともに入力信号レベルに対する出力信号レベルを変換するという点で共通していることから、ガンマ補正用LUTとトーンカーブ補正LUTとを結合して、これらの処理をまとめて実行するようにすれば、処理の簡略化を実現することができる。
【0012】
こうしたトーンカーブ補正処理とガンマ補正処理の結合処理は、標準画像データに対して実行する場合には問題はない。しかし、特殊画像データの場合には、メインデータの他に、ハイライトデータが含まれるため、標準画像データと同様のプロセスでメインデータのみに結合処理を行うと、ハイライトデータが表現する高輝度域についてトーンカーブ補正の効果を得ることができない。そこで、メインデータとハイライトデータの両方に対して結合処理を行うことも考えられるが、こうすると、ユーザーは、メインデータとハイライトデータの両方についてトーンカーブの補正パラメータを指定しなければならないので、処理条件の指定が複雑になり、ユーザーが意図した画質を得るのが難しいという問題があった。
【0013】
本発明は、メインデータとハイライトデータのレンジ合成によって得られる完成画像に、ユーザーの意図を正確に反映することができる画像処理方法及びプログラムを提供することを目的とする。
【0014】
【課題を解決するための手段】
前記目的を達成するために、本発明の画像処理プログラム及び方法は、各画素のデータが、主として低輝度域から中輝度域までの階調を表現するメインデータと、このメインデータで表現できない高輝度域の階調を表現するハイライトデータとの2種類のデータから構成され、これら2種類のデータに基づいてレンジ合成処理が施されることにより広いダイナミックレンジを持つ合成画像が生成可能な特殊画像データに対して、前記レンジ合成処理とともに、少なくともガンマ補正処理及びトーンカーブ補正処理を含む画像補正処理をコンピュータに実行させる場合に、前記レンジ合成処理及びガンマ補正処理を実行させた後に、前記処理条件に基づいて、トーンカーブ補正処理を実行させることを特徴とするものである。
【0015】
さらに、各画素のデータが1種類のデータからなる標準画像データと、前記特殊画像データとを識別するデータ種を識別して、前記標準画像データに対しては、ガンマ補正処理とトーンカーブ補正処理の各補正パラメータを結合した結合LUTを使用して、ガンマ補正処理とトーンカーブ補正処理とをまとめて実行させるようにするとよい。
【0016】
【発明の実施の形態】
図1に示すデジタルカメラ10は、CCD−RAW記録モードを備えており、この記録モードで取り込まれたCCD−RAWデータは、カメラ内部で画像処理が施されずに、そのままストレージメディア11に記録される。ストレージメディア11としては、メモリーカードの他、マイクロドライブ(商品名)などが使用される。また、デジタルカメラ10は、CCDイメージセンサとして、上述した特殊なCCDイメージセンサ70(図7参照)を備えており、CCD−RAW記録モードでは、メインデータのみからなる標準画像データと、メインデータとハイライトデータとからなる特殊画像データの両方を記録できるようになっている。これらの各画像データは、それぞれ標準画像ファイル及び特殊画像ファイルの各形式で格納される。これらの各ファイルは、それぞれを識別できるように異なる拡張子が付与される。
【0017】
CCD−RAWデータは、画像処理プログラムがインストールされたパーソナルコンピュータ12に取り込まれて、各種の画像処理が実行されて再生される。パーソナルコンピュータ12は、コンピュータ本体13と、モニタ14と、キーボード16及びマウス17などの入力装置18からなる。
【0018】
図2に示すように、コンピュータ本体13には、CPU21,RAM22,ハードディスクドライブで構成されるデータストレージ23,通信I/F24からなる。通信I/F24は、通信ケーブルを介してデジタルカメラ10と接続して、カメラ本体にセットされたストレージメディア11からコンピュータ本体13内に画像ファイルを取り込む画像入力手段である。RAM22は、CPU21が処理を実行する際の作業用のメモリである。
【0019】
データストレージ23には、画像処理プログラムであるCCD−RAWアプリケーション26がインストールされている。このCCD−RAWアプリケーション26で生成された完成画像は、データストレージ23に出力される。CCD−RAWアプリケーション26は、プログラム本体27,標準画像用LUT28,特殊画像用LUT29,操作画面データ30などからなる。
【0020】
このCCD−RAWアプリケーション26は、標準画像ファイルと特殊画像ファイルとを識別するデータ種識別と、ユーザーの指定に応じて画像処理条件を設定する処理条件設定と、設定された処理条件に従って各種の画像処理を実行する画像処理の各ステップとをCPU21に実行させる。データ種の識別は、例えば、各ファイルの拡張子に基づいて行われる。
【0021】
標準画像用LUT28及び特殊画像用LUT29は、ガンマ補正やトーンカーブ補正をする際の補正パラメータをテーブル形式に格納したものである。これら各LUT28,29は、必要に応じてRAM22にロードされて使用される。後述するように、CCD−RAWアプリケーション26は、データ種に応じて異なるプロセスで画像処理を実行する。その際、各LUT28,27もデータ種に応じて使い分けられる。
【0022】
標準画像データの画像処理プロセスでは、ガンマ補正とトーンカーブ補正とがまとめて実行されるので、標準画像用LUT28には、ガンマ補正とトーンカーブ補正とを結合した結合LUT28aが含まれている。他方、特殊画像データのプロセスでは、ガンマ補正とトーンカーブ補正とがそれぞれ単独で実行されるので、特殊画像用LUT29には、ガンマ補正用のLUT29aと、トーンカーブ補正用のLUT29bとがそれぞれ含まれている。補正パラメータとしては、予め定められた所定の既定値が設定されており、その補正パラメータが各LUTに格納されている。この既定の補正パラメータは、ユーザーの指定により調整が可能であり、各LUTは、それに応じて修正される。
【0023】
図3に示すように、結合LUT28aは、ガンマ補正用のLUT28bと、トーンカーブ補正用のLUT28cとを結合したものである。ガンマ補正とトーンカーブ補正は、ともに各画素の入力信号レベルに対する出力信号レベルを変換するものであるから、結合LUT28aを使用することにより、変換処理が1回で済むため、処理が簡略化されて、処理時間が短縮される。
【0024】
図4に示すように、CCD−RAWアプリケーション26は、モニタ14に表示された操作画面31を通じて各種の操作指示を受け付けるGUI(Graphical User Interface)を採用している。操作画面31は、画像表示領域32と調整部表示領域33とからなる。画像表示領域32には、選択された画像ファイルのプレビュー画像34が表示される。CCD−RAWアプリケーション26は、所望の画像ファイルを選択した状態で起動され、その起動直後に、選択された画像ファイルのデータ種(標準画像か特殊画像か)の識別を行う。そして、そのデータ種に応じた処理条件(補正パラメータ)の既定値が設定されるともに、操作画面31がモニタ14に表示される。プレビュー画像34には、設定された処理条件が適用されるようになっており、これにより、ユーザーによって指定される処理条件の結果が予め確認できるようになっている。
【0025】
調整部表示領域33には、トーンカーブ補正,ホワイトバランス補正,彩度補正,シャープネス補正,明るさ補正の各処理条件を指定するための各調整部36,37,38,39が設けられている。トーンカーブ調整部36には、横軸と横軸に入力信号レベルと出力信号レベルを取った座標上にトーンカーブ36aが表示される。このトーンカーブ36aは、マウス17のポインタ41を曲線の各部に合わせてドラッグすることで、変形される。図4に示したように、トーンカーブ36aをS字カーブにすると、画像のハイライト部分(横軸方向の右側)の明るさが増す一方、シャドウ部分(横軸方向の左側)の明るさが低下する。これにより、明るい部分は十分に明るく、暗い部分は十分に暗いというように画像全体のコントラストをはっきりさせることができる。また、このトーンカーブ36aの形状によって、入力信号の各輝度域に対して割り当てられる出力信号の階調幅が決まるので、トーンカーブ36aの形状を調整することにより、各輝度域のコントラストを調節することができる。
【0026】
その他の各調整部37〜39には、目盛とその目盛上を移動するスライダ37a〜39aが設けられている。ポインタ41を、各スライダ37a〜39aに合わせて、それぞれを目盛方向にドラッグすることにより各補正処理の補正レベルが調整される。また、画像表示領域32の下には、処理条件を確定する決定ボタン43と、処理条件を既定値に戻すためのキャンセルボタン44とが設けられている。決定ボタン43をマウス17でクリック操作すると、CCD−RAWアプリケーション26は、ユーザーによって指定された補正レベルに応じて、予め設定された処理条件の既定値を修正する。例えば、トーンカーブ36aの調整が行われると、トーンカーブ補正用のLUTに格納された補正パラメータが変更される。
【0027】
図5は、特殊画像データと標準画像データのそれぞれの画像処理プロセスの説明図である。図5(A)に示すように、標準画像データは、ゲイン補正処理を行った後、ガンマ補正とトーンカーブ補正とをまとめて実行する結合処理が行われる。この結合処理は、前記結合LUT28aに基づいて行われる。そして、この結合処理後、その他の補正処理が実行されて完成画像がデータストレージ23に出力される。
【0028】
他方、図5(B)に示すように、特殊画像データは、メインデータとハイライトデータに対してゲイン補正処理が行われる。ガンマ補正処理は、標準画像データと異なり、メインデータとハイライトデータのそれぞれに対して単独で行われる。このガンマ補正処理では、特殊画像用のガンマ補正LUT29aが使用される。この後、メインデータとハイライトデータに基づいてレンジ合成処理がなされて、広いダイナミックレンジを持つ合成データが生成される。そして、この合成データに対して、特殊画像用のトーンカーブ補正LUT29bを使用して、トーンカーブ補正が単独でなされる。トーンカーブ補正がなされた後、その他の補正処理が実行されて完成画像がデータストレージ23に出力される。
【0029】
以下、上記構成による作用について、図6のフローチャートを参照しながら説明する。デジタルカメラ10のCCD−RAW記録モードで記録された画像ファイルを選択して起動指示が与えられると、CCD−RAWアプリケーション26が起動する。CCD−RAWアプリケーション26が起動されると、CPU21は、CCD−RAWアプリケーション26の各処理ステップを実行する。CPU21は、起動直後に、まず、画像ファイルの拡張子に基づいて、データ種を判定する。そして、標準画像データの場合には、標準画像用のLUT28を選択して、標準画像用の処理条件の既定値を設定する。他方、特殊画像データの場合には、特殊画像用のLUT29を選択して、特殊画像用の処理条件の既定値を設定する。
【0030】
さらに、モニタ14に操作画面31を表示する。プレビュー画像34は、設定された処理条件の既定値に基づいて生成される。ユーザーは、プレビュー画像34を見ながら、マウス17を通じて各調整部36〜40を操作して、所望の処理条件を指定する。この処理条件の指定に際しては、特殊画像データであっても、トーンカーブ補正はレンジ合成後に行われるので、メインデータとハイライトデータのそれぞれに対して処理条件を指定する必要がないので、処理条件の調整が複雑になることはない。CPU21は、処理条件が調整されると、ユーザーの指定に応じて処理条件の既定値を変更し、変更した補正パラメータに基づいてプレビュー画像34を更新する。このように処理条件がプレビュー画像34に反映されるので、調整がしやすい。
【0031】
調整が終了した場合には、決定ボタン43をマウス17でクリックする。これにより調整した処理条件が確定する。CPU21は、確定した処理条件に基づいて、画像処理を実行する。標準画像データの場合には、図5(A)に示した画像処理プロセスを実行し、特殊画像データの場合には、図5(B)に示した画像処理プロセスを実行する。特殊画像データは、レンジ合成後の合成データに対して、トーンカーブ補正が実行されるので、低輝度域から高輝度域の全域に渡ってトーンカーブ補正の効果が得られる。このため、ユーザーの意図が、完成画像に正確に反映される。
【0032】
上記実施形態では、画像処理プログラムをコンピュータにインストールした形態で説明しているが、本発明の画像処理方法は、この形態に限られず、例えば、専用の画像処理装置によって実現したり、また、画像処理プログラムをデジタルカメラ本体に組み込んで、デジタルカメラで実現するなど、種々の形態に適用可能である。
【0033】
【発明の効果】
以上詳細に説明したように、本発明は、各画素のデータが、主として低輝度域から中輝度域までの階調を表現するメインデータと、このメインデータで表現できない高輝度域の階調を表現するハイライトデータとの2種類のデータから構成され、これら2種類のデータに基づいてレンジ合成処理が施されることにより広いダイナミックレンジを持つ合成画像が生成可能な特殊画像データに対して、前記レンジ合成処理とともに、少なくともガンマ補正処理及びトーンカーブ補正処理を含む画像補正処理を実行する場合に、前記レンジ合成処理及びガンマ補正処理を実行させた後に、前記処理条件に基づいて、トーンカーブ補正処理を実行するようにしたから、ユーザーの意図を正確に反映した完成画像を得ることができる。
【0034】
また、各画素のデータが1種類のデータからなる標準画像データと、前記特殊画像データとを識別するデータ種を識別して、前記標準画像データに対しては、ガンマ補正処理とトーンカーブ補正処理の各補正パラメータを結合した結合LUTを使用して、ガンマ補正処理とトーンカーブ補正処理とをまとめて実行するようにしたので、処理の簡略化にも寄与する。
【図面の簡単な説明】
【図1】CCD−RAWデータの再生方法の説明図である。
【図2】CCD−RAWアプリケーションとそれがインストールされたパーソナルコンピュータの構成図である。
【図3】結合LUTの説明図である。
【図4】CCD−RAWアプリケーションの操作画面の説明図である。
【図5】標準画像データと特殊画像データの画像処理プロセスの説明図である。
【図6】CCD−RAWアプリケーションを使用してCCD−RAWデータから完成画像を生成する手順を示すフローチャートである。
【図7】広いダイナミックレンジを持つ画像を生成可能なCCDイメージセンサの説明図である。
【符号の説明】
10 デジタルカメラ
11 ストレージメディア
12 パーソナルコンピュータ
26 CCD−RAWアプリケーション
28 標準画像用LUT
29 特殊画像用LUT
31 操作画面
[0001]
BACKGROUND OF THE INVENTION
According to the present invention, each pixel data includes main image data expressing gradations from a low luminance region to a medium luminance region, and highlight image data expressing gradations of a high luminance region that cannot be expressed by the main image data. The present invention relates to an image processing method and program for configured image data.
[0002]
[Prior art]
2. Description of the Related Art There is known a digital camera that captures an image of a subject by an image capturing unit such as a CCD image sensor and records a captured image as digital data. The CCD image sensor is provided with a photocathode in which a large number of light receiving elements (pixels) are arranged in a matrix. Each pixel has R (red), G (green), and B (blue) in front of the photocathode. A color filter array is arranged so as to correspond to any of the above. The subject image formed on the photocathode is photoelectrically converted, and a charge corresponding to the amount of incident light is output for each pixel as an analog imaging signal.
[0003]
The analog imaging signal is converted to digital by an A / D converter, and the data immediately after the conversion is called CCD-RAW data (raw data). Since the CCD-RAW data is data having only information corresponding to one color per pixel, it cannot be enjoyed as it is. For this reason, many digital cameras generate various types of image correction processing such as gamma correction and white balance correction for the CCD-RAW data inside the camera to generate a completed image that can be viewed. It is recorded on a storage medium such as a memory card in a general-purpose image file format such as a format or TIFF format.
[0004]
However, there are many requests from camera users such as professional photographers and high amateurs to create a completed image by adding their own correction and processing based on the CCD-RAW data. These high-spec models for users are equipped with a CCD-RAW recording mode in which CCD-RAW data captured by a CCD image sensor is recorded directly on storage media without executing image correction processing inside the camera. There is a model.
[0005]
The CCD-RAW data recorded in this mode can be used for gain correction and gamma correction as well as gain correction and gamma correction by a personal computer in which a dedicated image processing program (hereinafter referred to as CCD-RAW application) is installed. It is reproduced after being subjected to image processing such as tone curve correction, sharpness correction, and saturation correction, and is converted into a general image file format such as JPEG or TIFF. The user designates a desired correction level while confirming the preview image displayed on the operation screen. The CCD-RAW application sets correction parameters and the like according to user designation, and executes correction processing according to the processing conditions. Thereby, a completed image having an image quality intended by the user is obtained.
[0006]
By the way, an image pickup device such as a CCD image sensor generally has a narrow dynamic range (ratio between the reproducible minimum value and the maximum value) representing the reproducibility of a luminance signal as compared with a photographic film. When the image is photographed, the high brightness area may be skipped or the low brightness area may be blackened. However, various methods for obtaining an image having a wide dynamic range with a CCD image sensor have been proposed due to recent advances in semiconductor manufacturing technology.
[0007]
For example, as shown in FIG. 7A, a special CCD image sensor in which one pixel 71 includes a main pixel 71a and a sub-pixel 71b having a light receiving area smaller than that of the main pixel 71a. 70, there is a method of taking in main data from the main pixel 71a with high sensitivity and highlight data from the sub-pixel 71b with low sensitivity. As shown in the graph of FIG. 7B, since the main pixel 71a has high sensitivity, it is saturated with a smaller amount of incident light than the sub-pixel 71b. On the other hand, since the subpixel 71b has low sensitivity, it is saturated with a larger amount of incident light than the main pixel 71a. Thereby, the main data can be extracted from the main pixel 71a, and the highlight data can be extracted from the sub-pixel 71b. The main data and highlight data obtained in this way are stored in one image file. This image file is reproduced by, for example, an image forming method described in Patent Document 1 below. In this reproduction process, range synthesis processing is performed based on the main data and highlight data.
[0008]
Such special image data composed of main data and highlight data meets the needs of the above-mentioned high-spec model users because a wide dynamic range is obtained. Therefore, it is considered that special image data can be reproduced in addition to standard image data (data in which one pixel data is composed only of main data) in the above-described CCD-RAW application.
[0009]
[Patent Document 1]
Japanese Patent Laid-Open No. 2001-8092
[Problems to be solved by the invention]
In a conventional CCD-RAW application, normally, after performing gamma correction, correction processing according to user preference such as tone curve correction is performed. Further, both the gamma correction and the tone curve correction are generally performed using a LUT (lookup table) in which correction parameters are tabulated.
[0011]
Since these gamma correction and tone curve correction are common in that the output signal level is converted with respect to the input signal level, the gamma correction LUT and the tone curve correction LUT are combined to combine these processes. If executed, the process can be simplified.
[0012]
Such a combination process of tone curve correction processing and gamma correction processing has no problem when executed on standard image data. However, in the case of special image data, highlight data is included in addition to the main data, so when combining processing is performed only on the main data in the same process as the standard image data, the high brightness expressed by the highlight data is displayed. The tone curve correction effect cannot be obtained for the area. Therefore, it is conceivable to perform combining processing on both main data and highlight data, but this requires the user to specify tone curve correction parameters for both main data and highlight data. However, the specification of processing conditions is complicated, and it is difficult to obtain the image quality intended by the user.
[0013]
It is an object of the present invention to provide an image processing method and program capable of accurately reflecting a user's intention on a completed image obtained by range synthesis of main data and highlight data.
[0014]
[Means for Solving the Problems]
In order to achieve the above object, according to the image processing program and method of the present invention, the data of each pixel mainly includes main data representing gradations from a low luminance region to a middle luminance region, and high data that cannot be represented by this main data. Special data that is composed of two types of data, highlight data that represents the gradation of the luminance range, and that can generate a composite image with a wide dynamic range by performing range synthesis processing based on these two types of data In the case of causing a computer to execute image correction processing including at least gamma correction processing and tone curve correction processing together with the range combining processing on image data, the processing is performed after the range combining processing and gamma correction processing are executed. The tone curve correction process is executed based on the conditions.
[0015]
Further, a data type for identifying standard image data in which each pixel data is composed of one type of data and the special image data is identified, and for the standard image data, gamma correction processing and tone curve correction processing are performed. It is preferable to execute the gamma correction process and the tone curve correction process collectively by using a combined LUT obtained by combining the respective correction parameters.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
The digital camera 10 shown in FIG. 1 has a CCD-RAW recording mode, and the CCD-RAW data captured in this recording mode is recorded on the storage medium 11 as it is without being subjected to image processing inside the camera. The As the storage medium 11, a micro drive (product name) or the like is used in addition to a memory card. Further, the digital camera 10 includes the above-described special CCD image sensor 70 (see FIG. 7) as a CCD image sensor. In the CCD-RAW recording mode, the standard image data including only main data, main data, Both special image data consisting of highlight data can be recorded. Each of these image data is stored in a standard image file and a special image file. Each of these files is given a different extension so that it can be identified.
[0017]
The CCD-RAW data is taken into the personal computer 12 in which an image processing program is installed, and is subjected to various image processing and reproduced. The personal computer 12 includes a computer main body 13, a monitor 14, and input devices 18 such as a keyboard 16 and a mouse 17.
[0018]
As shown in FIG. 2, the computer main body 13 includes a CPU 21, a RAM 22, a data storage 23 including a hard disk drive, and a communication I / F 24. The communication I / F 24 is an image input unit that is connected to the digital camera 10 via a communication cable and captures an image file from the storage medium 11 set in the camera body into the computer body 13. The RAM 22 is a working memory when the CPU 21 executes processing.
[0019]
In the data storage 23, a CCD-RAW application 26 that is an image processing program is installed. The completed image generated by the CCD-RAW application 26 is output to the data storage 23. The CCD-RAW application 26 includes a program main body 27, a standard image LUT 28, a special image LUT 29, operation screen data 30, and the like.
[0020]
The CCD-RAW application 26 uses a data type identification for identifying a standard image file and a special image file, a processing condition setting for setting an image processing condition according to a user's specification, and various images according to the set processing condition. The CPU 21 is caused to execute each step of image processing for executing processing. Identification of the data type is performed based on, for example, the extension of each file.
[0021]
The standard image LUT 28 and the special image LUT 29 store correction parameters used for gamma correction and tone curve correction in a table format. These LUTs 28 and 29 are loaded into the RAM 22 and used as necessary. As will be described later, the CCD-RAW application 26 executes image processing by a different process depending on the data type. At this time, the LUTs 28 and 27 are also selectively used according to the data type.
[0022]
In the image processing process of the standard image data, gamma correction and tone curve correction are executed together, so the standard image LUT 28 includes a combined LUT 28a that combines gamma correction and tone curve correction. On the other hand, in the special image data process, gamma correction and tone curve correction are executed independently, so the special image LUT 29 includes a LUT 29a for gamma correction and a LUT 29b for tone curve correction. ing. As the correction parameter, a predetermined predetermined value set in advance is set, and the correction parameter is stored in each LUT. This default correction parameter can be adjusted by user designation, and each LUT is modified accordingly.
[0023]
As shown in FIG. 3, the combined LUT 28a is a combination of an LUT 28b for gamma correction and an LUT 28c for tone curve correction. Since the gamma correction and tone curve correction both convert the output signal level with respect to the input signal level of each pixel, by using the combined LUT 28a, the conversion process can be performed only once, which simplifies the process. , Processing time is shortened.
[0024]
As shown in FIG. 4, the CCD-RAW application 26 employs a GUI (Graphical User Interface) that accepts various operation instructions through an operation screen 31 displayed on the monitor 14. The operation screen 31 includes an image display area 32 and an adjustment unit display area 33. In the image display area 32, a preview image 34 of the selected image file is displayed. The CCD-RAW application 26 is activated with a desired image file selected, and immediately after the activation, the data type (standard image or special image) of the selected image file is identified. Then, a default value of the processing condition (correction parameter) corresponding to the data type is set, and the operation screen 31 is displayed on the monitor 14. The set processing conditions are applied to the preview image 34, whereby the result of the processing conditions specified by the user can be confirmed in advance.
[0025]
The adjustment unit display area 33 is provided with adjustment units 36, 37, 38, and 39 for designating processing conditions of tone curve correction, white balance correction, saturation correction, sharpness correction, and brightness correction. . In the tone curve adjustment unit 36, a tone curve 36a is displayed on the horizontal axis and the coordinates obtained by taking the input signal level and the output signal level on the horizontal axis. The tone curve 36a is deformed by dragging the pointer 41 of the mouse 17 to each part of the curve. As shown in FIG. 4, when the tone curve 36a is an S-shaped curve, the brightness of the highlight portion (right side in the horizontal axis direction) of the image increases, while the brightness of the shadow portion (left side in the horizontal axis direction) increases. descend. As a result, the contrast of the entire image can be made clear such that the bright part is sufficiently bright and the dark part is sufficiently dark. Further, since the tone width of the output signal assigned to each luminance region of the input signal is determined by the shape of the tone curve 36a, the contrast of each luminance region can be adjusted by adjusting the shape of the tone curve 36a. Can do.
[0026]
Each of the other adjustment units 37 to 39 is provided with a scale and sliders 37a to 39a that move on the scale. The correction level of each correction process is adjusted by dragging the pointer 41 to the sliders 37a to 39a and dragging them in the scale direction. Also, below the image display area 32, a determination button 43 for confirming the processing conditions and a cancel button 44 for returning the processing conditions to the default values are provided. When the determination button 43 is clicked with the mouse 17, the CCD-RAW application 26 corrects the preset value of the processing condition set in advance according to the correction level designated by the user. For example, when the tone curve 36a is adjusted, the correction parameter stored in the LUT for tone curve correction is changed.
[0027]
FIG. 5 is an explanatory diagram of the image processing processes of the special image data and the standard image data. As shown in FIG. 5A, the standard image data is subjected to a gain correction process, and then a combination process that collectively executes gamma correction and tone curve correction is performed. This joining process is performed based on the joining LUT 28a. After this combining process, other correction processes are executed, and a completed image is output to the data storage 23.
[0028]
On the other hand, as shown in FIG. 5B, the special image data is subjected to gain correction processing on the main data and the highlight data. Unlike the standard image data, the gamma correction processing is performed independently for each of the main data and the highlight data. In this gamma correction processing, a gamma correction LUT 29a for special images is used. Thereafter, range synthesis processing is performed based on the main data and the highlight data, and synthesized data having a wide dynamic range is generated. Then, tone curve correction is independently performed on the composite data using the tone curve correction LUT 29b for special images. After tone curve correction is performed, other correction processing is executed, and a completed image is output to the data storage 23.
[0029]
Hereinafter, the operation of the above configuration will be described with reference to the flowchart of FIG. When an image file recorded in the CCD-RAW recording mode of the digital camera 10 is selected and an activation instruction is given, the CCD-RAW application 26 is activated. When the CCD-RAW application 26 is activated, the CPU 21 executes each processing step of the CCD-RAW application 26. The CPU 21 first determines the data type based on the extension of the image file immediately after startup. In the case of standard image data, the standard image LUT 28 is selected, and the default values of the processing conditions for the standard image are set. On the other hand, in the case of special image data, the special image LUT 29 is selected, and the default values of the special image processing conditions are set.
[0030]
Further, an operation screen 31 is displayed on the monitor 14. The preview image 34 is generated based on the default value of the set processing condition. While viewing the preview image 34, the user operates the adjustment units 36 to 40 through the mouse 17 to designate desired processing conditions. When specifying this processing condition, even for special image data, tone curve correction is performed after range synthesis, so there is no need to specify processing conditions for each of the main data and highlight data. The adjustment is not complicated. When the processing condition is adjusted, the CPU 21 changes the default value of the processing condition according to the user's designation, and updates the preview image 34 based on the changed correction parameter. Since the processing conditions are reflected in the preview image 34 in this way, adjustment is easy.
[0031]
When the adjustment is completed, the determination button 43 is clicked with the mouse 17. As a result, the adjusted processing conditions are determined. The CPU 21 executes image processing based on the determined processing conditions. In the case of standard image data, the image processing process shown in FIG. 5A is executed. In the case of special image data, the image processing process shown in FIG. 5B is executed. In the special image data, tone curve correction is performed on the synthesized data after range synthesis, so that the effect of tone curve correction can be obtained over the entire range from the low luminance region to the high luminance region. For this reason, the user's intention is accurately reflected in the completed image.
[0032]
In the above embodiment, the image processing program is installed in a computer. However, the image processing method of the present invention is not limited to this embodiment. For example, the image processing program can be realized by a dedicated image processing apparatus, The present invention can be applied to various forms such as a processing program incorporated in a digital camera body and realized by a digital camera.
[0033]
【The invention's effect】
As described above in detail, according to the present invention, the data of each pixel mainly includes main data representing gradations from a low luminance region to a medium luminance region, and gradations in a high luminance region that cannot be represented by the main data. For special image data that is composed of two types of data, the highlight data to be expressed, and a composite image having a wide dynamic range can be generated by performing range synthesis processing based on these two types of data. When performing image correction processing including at least gamma correction processing and tone curve correction processing together with the range synthesis processing, tone curve correction is performed based on the processing conditions after executing the range synthesis processing and gamma correction processing. Since the processing is executed, a completed image that accurately reflects the user's intention can be obtained.
[0034]
Further, a data type for identifying standard image data in which each pixel data is composed of one type of data and the special image data is identified, and for the standard image data, gamma correction processing and tone curve correction processing are performed. Using the combined LUT that combines these correction parameters, the gamma correction process and the tone curve correction process are executed together, which contributes to simplification of the process.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram of a method for reproducing CCD-RAW data.
FIG. 2 is a configuration diagram of a CCD-RAW application and a personal computer on which it is installed.
FIG. 3 is an explanatory diagram of a combined LUT.
FIG. 4 is an explanatory diagram of an operation screen of a CCD-RAW application.
FIG. 5 is an explanatory diagram of an image processing process of standard image data and special image data.
FIG. 6 is a flowchart showing a procedure for generating a completed image from CCD-RAW data using a CCD-RAW application.
FIG. 7 is an explanatory diagram of a CCD image sensor capable of generating an image having a wide dynamic range.
[Explanation of symbols]
10 Digital Camera 11 Storage Media 12 Personal Computer 26 CCD-RAW Application 28 Standard Image LUT
29 LUT for special images
31 Operation screen

Claims (4)

各画素のデータが、主として低輝度域から中輝度域までの階調を表現するメインデータと、このメインデータで表現できない高輝度域の階調を表現するハイライトデータとの2種類のデータから構成され、これら2種類のデータに基づいてレンジ合成処理が施されることにより広いダイナミックレンジを持つ合成画像が生成可能な特殊画像データに対して、前記レンジ合成処理とともに、少なくともガンマ補正処理及びトーンカーブ補正処理を含む画像補正処理をコンピュータに実行させる画像処理プログラムであって、
ユーザーの指定に応じて既定の処理条件を変更するステップを含んでおり、
前記レンジ合成処理及びガンマ補正処理を実行させた後に、前記処理条件に基づいて、トーンカーブ補正処理を実行させることを特徴とする画像処理プログラム。
The data of each pixel is mainly composed of two types of data: main data that expresses gradations from a low luminance region to a medium luminance region, and highlight data that expresses gradations in a high luminance region that cannot be expressed by the main data. For special image data that is composed and can generate a combined image having a wide dynamic range by performing range combining processing based on these two types of data, at least gamma correction processing and tone together with the range combining processing An image processing program for causing a computer to execute image correction processing including curve correction processing,
Includes changing the default processing conditions according to user specifications,
An image processing program for executing tone curve correction processing based on the processing conditions after performing the range synthesis processing and gamma correction processing.
各画素のデータが1種類のデータからなる標準画像データと、前記特殊画像データとを識別するデータ種識別ステップを含んでおり、前記標準画像データに対しては、ガンマ補正処理とトーンカーブ補正処理の各補正パラメータを結合した結合LUTを使用して、ガンマ補正処理とトーンカーブ補正処理とをまとめて実行させることを特徴とする請求項1記載の画像処理プログラム。A data type identification step for identifying standard image data in which each pixel data is composed of one type of data and the special image data; and for the standard image data, a gamma correction process and a tone curve correction process The image processing program according to claim 1, wherein the gamma correction process and the tone curve correction process are collectively executed using a combined LUT obtained by combining the correction parameters. 各画素のデータが、主として低輝度域から中輝度域までの階調を表現するメインデータと、このメインデータで表現できない高輝度域の階調を表現するハイライトデータとの2種類のデータから構成され、これら2種類のデータに基づいてレンジ合成処理が施されることにより広いダイナミックレンジを持つ合成画像が生成可能な特殊画像データに対して、前記レンジ合成処理とともに、少なくともガンマ補正処理及びトーンカーブ補正処理を含む画像補正処理を施す画像処理方法において、
前記ガンマ補正処理及びレンジ合成処理を実行した後に、ユーザーの指定に応じて変更された処理条件に基づいて、トーンカーブ補正処理を実行することを特徴とする画像処理方法。
The data of each pixel is mainly composed of two types of data: main data that expresses gradations from a low luminance region to a medium luminance region, and highlight data that expresses gradations in a high luminance region that cannot be expressed by the main data. For special image data that is composed and can generate a combined image having a wide dynamic range by performing range combining processing based on these two types of data, at least gamma correction processing and tone together with the range combining processing In an image processing method for performing image correction processing including curve correction processing,
An image processing method, wherein after executing the gamma correction process and the range synthesis process, a tone curve correction process is executed based on a processing condition changed according to a user designation.
各画素のデータが1種類のデータからなる標準画像データと、前記特殊画像データとを識別して、前記標準画像データに対しては、ガンマ補正処理とトーンカーブ補正処理の各補正パラメータを結合した結合LUTを使用して、ガンマ補正処理とトーンカーブ補正処理とをまとめて実行することを特徴とする請求項3記載の画像処理方法。The standard image data in which the data of each pixel consists of one type of data and the special image data are identified, and the correction parameters of the gamma correction process and the tone curve correction process are combined with the standard image data. 4. The image processing method according to claim 3, wherein the gamma correction process and the tone curve correction process are collectively performed using a combined LUT.
JP2003008660A 2003-01-16 2003-01-16 Image processing program and method Pending JP2004222076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003008660A JP2004222076A (en) 2003-01-16 2003-01-16 Image processing program and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003008660A JP2004222076A (en) 2003-01-16 2003-01-16 Image processing program and method

Publications (1)

Publication Number Publication Date
JP2004222076A true JP2004222076A (en) 2004-08-05

Family

ID=32898396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003008660A Pending JP2004222076A (en) 2003-01-16 2003-01-16 Image processing program and method

Country Status (1)

Country Link
JP (1) JP2004222076A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011055326A (en) * 2009-09-03 2011-03-17 Nikon Corp Digital camera and image data editing program
JP2011228807A (en) * 2010-04-15 2011-11-10 Nikon Corp Image processing program, image processing apparatus, and image processing method
JP2012068923A (en) * 2010-09-24 2012-04-05 Toshiba Corp Image processing device
JP2016081427A (en) * 2014-10-21 2016-05-16 キヤノン株式会社 Image processor, image processing method and program
JP2017156311A (en) * 2016-03-04 2017-09-07 株式会社アプライド・ビジョン・システムズ Three-dimensional measurement device, three-dimensional measurement system, three-dimensional measurement method, and program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011055326A (en) * 2009-09-03 2011-03-17 Nikon Corp Digital camera and image data editing program
JP2011228807A (en) * 2010-04-15 2011-11-10 Nikon Corp Image processing program, image processing apparatus, and image processing method
US8989510B2 (en) 2010-04-15 2015-03-24 Nikon Corporation Contrast enhancement using gradation conversion processing
JP2012068923A (en) * 2010-09-24 2012-04-05 Toshiba Corp Image processing device
US10810762B2 (en) 2010-09-24 2020-10-20 Kabushiki Kaisha Toshiba Image processing apparatus
JP2016081427A (en) * 2014-10-21 2016-05-16 キヤノン株式会社 Image processor, image processing method and program
JP2017156311A (en) * 2016-03-04 2017-09-07 株式会社アプライド・ビジョン・システムズ Three-dimensional measurement device, three-dimensional measurement system, three-dimensional measurement method, and program

Similar Documents

Publication Publication Date Title
US20110205397A1 (en) Portable imaging device having display with improved visibility under adverse conditions
US8164648B2 (en) Image processing apparatus and image processing apparatus control method
JP2004128809A (en) Method and apparatus for image processing, and imaging device
US20110187892A1 (en) Image capturing apparatus, image capturing method, and program
KR100942634B1 (en) Image correction device, image correction method, and computer readable medium
JP2008022240A (en) Photographing device, image processor, image file generating method, image processing method, and image processing program
JP2012205244A (en) Image processing device and method of controlling the same
JP6624889B2 (en) Video processing apparatus, video processing method, and video processing program
JP6304293B2 (en) Image processing apparatus, image processing method, and program
US20020140827A1 (en) Image processing apparatus and image reproducing apparatus
JP2005347811A (en) White balance correction apparatus and white balance correction method, program and electronic camera apparatus
JP6929711B2 (en) Image processing device, image processing method, image processing program
JP4143425B2 (en) Image processing method and apparatus, and image processing program
JP4752421B2 (en) Image retouching method, image retouching device, and image retouching program
JP4439173B2 (en) Digital camera and information terminal
JP2011091753A (en) Imaging apparatus, image processing apparatus, and program
US9413974B2 (en) Information processing apparatus, image sensing apparatus, control method, and recording medium for conversion processing
JP2004222076A (en) Image processing program and method
JP5070921B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for development processing
JP2004349842A (en) Method and program for correcting composite image
JP5904753B2 (en) Image processing apparatus and image processing apparatus control method
JP4807315B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for executing development processing
JP5627252B2 (en) Imaging apparatus and control method thereof
JP5295289B2 (en) Imaging apparatus and control method thereof
JP2021078051A (en) Image processing device and image control method, program, and storage medium