JP3823803B2 - Image conversion parameter setting method, image conversion parameter setting device, image conversion parameter setting program, and recording medium on which image conversion parameter setting program is recorded - Google Patents

Image conversion parameter setting method, image conversion parameter setting device, image conversion parameter setting program, and recording medium on which image conversion parameter setting program is recorded Download PDF

Info

Publication number
JP3823803B2
JP3823803B2 JP2001322788A JP2001322788A JP3823803B2 JP 3823803 B2 JP3823803 B2 JP 3823803B2 JP 2001322788 A JP2001322788 A JP 2001322788A JP 2001322788 A JP2001322788 A JP 2001322788A JP 3823803 B2 JP3823803 B2 JP 3823803B2
Authority
JP
Japan
Prior art keywords
cumulative
gradation
cumulative histogram
conversion parameter
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2001322788A
Other languages
Japanese (ja)
Other versions
JP2003134341A (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.)
Noritsu Koki Co Ltd
Original Assignee
Noritsu Koki 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 Noritsu Koki Co Ltd filed Critical Noritsu Koki Co Ltd
Priority to JP2001322788A priority Critical patent/JP3823803B2/en
Publication of JP2003134341A publication Critical patent/JP2003134341A/en
Application granted granted Critical
Publication of JP3823803B2 publication Critical patent/JP3823803B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、CCD撮像デバイス等によって入力したデジタル画像を処理してモニタまたはプリンタに出力する画像処理装置に設定される画像変換パラメータ設定方法、画像変換パラメータ設定装置、画像変換パラメータ設定プログラムおよび画像変換パラメータ設定プログラムを記録した記録媒体に関する。
【0002】
【従来の技術】
従来から、画像処理装置では、例えば写真フィルムを測光して得られる各コマごとのR(赤)・G(緑)・B(青)の画像データ(デジタル画像データ)に基づいて画質の良好な画像を感光材料に焼き付けるため、画像の濃度・色・コントラストを補正する処理が行われている。この濃度・色・コントラストの補正方法としては、濃度特性曲線(ガンマカーブ,画像変換パラメータ)の形状を調整する方法(ガンマ補正)がよく用いられる。以下、ガンマ補正処理について説明する。
【0003】
まず、写真フィルム(例えばネガフィルム)の任意のコマに光を照射して透過光をRGBごとにCCD(Charge Coupled Device)で取り込む。つぎに、取り込んだRGBの画像データについて、出力される各画素ごとの濃度を図5に示す濃度特性曲線から求める。この濃度特性曲線は、例えばRGBの画像データについて、入力される階調に対する出力される階調を示したものであり、横軸が入力階調、縦軸が出力階調を示す。
【0004】
すなわち、画像処理装置は入力画像データに対し予め設定されている濃度特性曲線をかけることにより補正を行い、出力画像データを求める。さらに、出力画像データに従い、焼き付け装置が感光材料に画像を焼き付ける。なお、上記濃度特性曲線は画像処理装置の製造者(メーカー)により予め調整され、装置製造段階で画像処理装置に内蔵される演算用メモリに記録される。また、良質な画像を得るためには、撮像シーンの種類(例えば、オーバー/アンダー露光)に応じて異なる濃度特性曲線を設定する必要がある。すなわち、製造者は形状の異なる複数の濃度特性曲線を設定しなければならない。
【0005】
ここで、図6に基づいて、従来からなされてきた濃度特性曲線の設定方法を説明する。まず、CCDによって、ある種類のシーンの画像データを画像変換パラメータ設定装置に取り込む(S11)。つぎに、オペレータが濃度特性曲線の初期値(例えばγ=1.0)を画像変換パラメータ設定装置に入力する(S12)。そして、画像変換パラメータ設定装置に内蔵されている演算装置が入力画像データと上記濃度特性曲線とから出力画像データを演算し、上記濃度特性曲線とこれに基づいた画像とをモニターに表示する(S13)。なお、画像の表示は出力画像データを写真処理装置に送り、実際に写真をプリントする手順であってもよい。
【0006】
このようにしてモニターに表示された画像をオペレータが目視で確認する(S14)。ここで、良質な画像が得られているとオペレータが判断したら、濃度特性曲線の設定を完了する。
【0007】
一方、良質な画像が得られていないとオペレータが判断したら、オペレータは表示された濃度特性曲線を手入力で調整する(S15)。そして、上記演算装置が、調整された濃度特性曲線を演算し、調整された濃度特性曲線とそれに基づいた画像をモニターに表示する(S13)。以下、良質な画像が得られているとオペレータが判断するまで、S13〜S15の手順が繰り返される。このような手順で濃度特性曲線が設定される。
【0008】
【発明が解決しようとする課題】
ところが、上記手順では、オペレータはモニターに表示された濃度特性曲線の形状を手入力で調整しつつ、モニターに表示される画像の濃度・色・コントラストの変化を目視にて確認していた。すなわち、上記手順によれば、画像の濃度・色・コントラストを独立したパラメータとして調整することができず、オペレータは濃度特性曲線の形状のみを頼りに表示画像の濃度・色・コントラストが最適なものになるように濃度特性曲線を調整しなければならない。したがって、上記手順では、シ−ンの種類に応じた最適な濃度特性曲線を設定するのは困難であった。
【0009】
さらに、濃度特性曲線は撮像シーンの種類ごとに設定する必要があるが、濃度特性曲線を自動的に調整できる技術が存在しないため、濃度特性曲線の調整作業の効率は著しく低かった。
【0010】
本発明は上記の問題点を解決するためになされたもので、その目的は、撮像シ−ンの種類に応じた最適な濃度特性曲線を簡単な手順で設定することのできる画像変換パラメータ設定方法、画像変換パラメータ設定装置、画像変換パラメータ設定プログラムおよび画像変換パラメータ設定プログラムを記録した記録媒体を提供することにある。
【0011】
【課題を解決するための手段】
本発明の画像変換パラメータ設定方法は、上記の課題を解決するために、デジタル画像データを補正する画像処理装置に用いられる画像変換パラメータを設定する画像変換パラメータ設定方法において、ト−ンが目標の状態となっている目標デジタル画像データを取得する第1入力ステップと、上記目標デジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第1累積ヒストグラムを作成する第1データ作成ステップと、補正対象となるデジタル画像データを取得するステップと、上記補正対象となるデジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第2累積ヒストグラムを作成する第2入力ステップと、第2累積ヒストグラムの各階調を入力値とし、第2累積ヒストグラムの各階調の累積画素数と略一致する累積画素数である第1累積ヒストグラムの各階調を出力値とするように、画像変換パラメータを設定する第2作成ステップと、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第1対比手順と、上記対比の結果、第1累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を1段階分カウントアップし、再び第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第2対比手順と、上記対比の結果、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが一致または第2累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を入力値とし、第1累積ヒストグラムの最低階調を出力値とした画像変換パラメータを設定して、第1累積ヒストグラムの最低階調を1段階分カウントアップするパラメータ設定手順と、第1累積ヒストグラムの全階調を出力値とした画像変換パラメータが求まるまで、上記手順を繰り返すことにより、画像変換パラメータを演算する演算ステップを備えることを特徴とする。
【0012】
また、本発明の画像変換パラメータ設定装置は、上記の課題を解決するために、デジタル画像データを補正する画像処理装置に用いられる画像変換パラメータを設定する画像変換パラメータ設定装置において、ト−ンが目標の状態となっている目標デジタル画像データを取得する第1入力手段と、上記目標デジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第1累積ヒストグラムを作成する第1データ作成手段と、補正対象となるデジタル画像データを取得する第2入力手段と、上記補正対象となるデジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第2累積ヒストグラムを作成する第2データ作成手段と、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第1対比手順と、上記対比の結果、第1累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を1段階分カウントアップし、再び第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第2対比手順と、上記対比の結果、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが一致または第2累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を入力値とし、第1累積ヒストグラムの最低階調を出力値とした画像変換パラメータを設定して、第1累積ヒストグラムの最低階調を1段階分カウントアップするパラメータ設定手順と、第1累積ヒストグラムの全階調を出力値とした画像変換パラメータが求まるまで、上記手順を繰り返すことにより、画像変換パラメータを演算するパラメータ演算手段とを備えることを特徴とする。
【0013】
上記手順または構成によれば、トーンが目標の状態となっている目標デジタル画像データを取得し、各階調に対応する画素数を低段階側の階調から累積した第1累積ヒストグラムを作成するため、目標デジタル画像データにおける各階調の累積画素数を求めることができる。ここで、第1累積ヒストグラムにおける各階調の累積画素数は各階調に対応する画素数を低段階側の階調から累積したものであるので、それぞれ固有の値を示す。
【0014】
また、補正対象となるデジタル画像データを取得し、各階調に対応する画素数を低段階側の階調から累積した第2累積ヒストグラムを作成するため、取得したデジタル画像データにおける階調の各段階の累積画素数を求めることができる。ここで、第2累積ヒストグラムにおける各段階の累積画素数は各階調に対応する画素数を低段階側の階調から累積したものであるので、それぞれ固有の値を示す。したがって、第2累積ヒストグラムの各階調の累積画素数と1対1で対応する第1累積ヒストグラムの各階調を検出することができる。
【0015】
すなわち、補正対象となる入力階調に対応する目標画像データの各階調を出力階調としたパラメータを設定できる。ここで、トーンが目標の状態となっている目標デジタル画像データとは、例えば、画像のトーンが最適な状態である画像データをいう。よって、デジタル画像データの入力階調をトーンが最適な階調に変換することができる画像処理パラメータを設定することができる。
【0016】
ところで、画像のトーンは微妙に変化するものであるため、人間の直感を頼りに画像変換パラメータを調整する手順では、調整作業の効率が悪い。しかしながら、上述した手順によれば、トーンが最適な目標デジタル画像データさえあれば、第1累積ヒストグラムと第2累積ヒストグラムとを作成することにより、人間の直感とは関係なく画像変換パラメータを設定できるため、調整作業の効率を改善できる。
【0017】
なお、トーンとは、画像の濃度,色,コントラスト等の要素をいう。また、目標デジタル画像データは、例えば、フォトレタッチソフトにより作成しても構わない。フォトレタッチソフトにより作成する他に、高性能のスキャナでデジタル画像データを取り込む手順であっても構わない。
【0018】
本発明の画像変換パラメータ設定方法は、さらに、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させるス第1対比手順と、上記対比の結果、第1累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を1段階分カウントアップし、再び第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第2対比手順と、上記対比の結果、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが一致または第2累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を入力値とし、第1累積ヒストグラムの最低階調を出力値とした画像変換パラメータを設定して、第1累積ヒストグラムの最低階調を1段階分カウントアップするパラメータ設定手順と、第1累積ヒストグラムの全階調を出力値とした画像変換パラメータが求まるまで、上記手順を繰り返すことにより、画像変換パラメータを演算する演算ステップを備える。
【0019】
上記手順によれば、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが対比され、第1累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を1段階分カウントアップし、再び第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる。そして、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが一致または第2累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を入力値とし、第1累積ヒストグラムの最低階調を出力値とした画像変換パラメータを設定する。そして、第1累積ヒストグラムの最低階調を1段階分カウントアップして、第1累積ヒストグラムの全階調について画像変換パラメータが求まるまで、上記手順が繰り返されるので、第1累積ヒストグラムの全階調を入力値とした画像変換パラメータを確実に検出することができる。
【0020】
本発明の画像変換パラメータ設定方法は、上記の課題を解決するために、上記の手順に加えて、目標画像および補正対象となる画像はカラー画像であって、目標デジタル画像データおよび補正対象となるデジタル画像データが各色成分ごとに分離されていることを特徴とする。
【0021】
上記手順によれば、目標デジタル画像データおよび補正対象となるデジタル画像データから各色成分ごとに分離した画像変換パラメータを設定することができるため、カラー画像処理装置に用いられる画像変換パラメータを設定することも可能となる。
【0022】
本発明の画像変換パラメータ設定方法は、上記の課題を解決するために、上記の手順に加えて、トーンが目標の状態となっている上記第1入力ステップで取得される目標デジタル画像データをフォトレタッチソフトにより作成する第3データ作成ステップをさらに備えることを特徴とする。
【0023】
従来なされている濃度特性曲線の形状を調整する手順により、目標デジタル画像データを作成すれば、高速に目標デジタル画像データを作成することが可能である。
【0024】
しかしながら、濃度特性曲線の形状を調整する手順によれば、濃度,色,コントラスト等の要素を独立して調整することができない。一方、トーンが最適な目標デジタル画像データを作成するためには、濃度,色,コントラスト等の要素を同時に調整しなければならないので、濃度特性曲線の形状を調整する手順では、目標デジタル画像データの作成は困難である。
【0025】
ここで、フォトレタッチソフトによれば、グラフィカルユーザーインターフェイスにより画像データを調整できる。しかも、フォトレタッチソフトによるトーン補正は一般的に「明るさ」「コントラスト」「トーンカーブ」「レベル補正」を独立したパラメータとして調整でき、上記調整がリアルタイムで表示中の画像に反映される。したがって、上記ステップを備えることにより、簡易かつ瞬時に最適な目標デジタル画像データを作成することができる。
【0026】
本発明の画像変換パラメータ設定プログラムは、上記の画像変換パラメータ設定方法をコンピュータに実行させることを特徴とする。
【0027】
上記の構成によれば、上記画像処理プログラムをコンピュータが実行することにより、上述した画像変換パラメータ設定方法を実現することができる。
【0028】
上記の画像変換パラメータ設定プログラムを記録した記録媒体は、上記の画像処理プログラムをコンピュータにて読み取り可能に記録してなることを特徴とする。
【0029】
上記の構成によれば、上記記録媒体に記録された画像変換パラメータ設定プログラムをコンピュータが実行することにより、上述した本発明の画像変換パラメータ設定方法を実現することができる。
【0030】
【発明の実施の形態】
本発明の実施の一形態を図1ないし図4に基づいて以下に説明する。
【0031】
本発明の画像変換パラメータ設定方法が実行されるガンマ設定装置(画像変換パラメータ設定装置)は、例えば写真処理装置等に内蔵される画像処理装置に設定される濃度特性曲線(ガンマカーブ,画像変換パラメータ)を作成するための装置である。上記写真処理装置は写真フィルムからCCD(Charge Coupled Device)等の撮像デバイスによりデジタル画像を入力し、入力画像データを画像変換パラメータにより良質な画像データに変換し、変換された画像データに基づき、画像を感光材料に焼き付けるためのものである。すなわち、ガンマ設定装置により作成する画像変換パラメータは、画像処理装置に組み込まれているLUT(ルックアップテーブル,補正演算用メモリ)に記録される。
【0032】
まず、上記ガンマ設定装置の概略構成について説明する。上記ガンマ設定装置は、図2に示すように、フィルムスキャナ(第2入力手段)1と画像処理部2とを備えている。
【0033】
フィルムスキャナ1は、図3に示すように、写真フィルムに光を照射するスキャナ光源21と、上記写真フィルムを搬送するためのフィルムキャリア22とスキャナ光源21から出射され、上記写真フィルムを透過する光を測光することによって上記写真フィルムに記録された画像を取り込むスキャナユニット23とで構成されている。
【0034】
スキャナ光源21は、光を出射するハロゲンランプ24と熱線吸収フィルタ25と調光フィルタ26とミラー27とレンズボックス28とを、光の進行方向に沿ってこの順で備えている。また、スキャナユニット23はスキャナレンズ29とミラー30と3枚式のCCD31とを光の進行方向に沿ってこの順で備えている。また、CCD31は、A/D(Analog to Digital)変換部32と接続されている。
【0035】
したがって、ハロゲンランプ24から出射された光は、熱線吸収フィルタ25にて熱線成分が除去されて調光フィルタ26に入射し、調光フィルタ26にて調光された後、ミラー27にて進行方向が変えられてレンズボックス28に入射する。レンズボックス28では、入射光がむらのない光に拡散され、この光がフィルムキャリア22にて支持されている写真フィルムに照射される。
【0036】
そして、写真フィルムを透過した光は、スキャナレンズ29にて、ミラー30を介してCCD31の受光面に入射する。そして、CCD31は、各画素での受光量に応じたアナログの電気信号をRGBごとにA/D変換部32に送り、これらの信号がA/D変換部32にて入力画像データ(補正対象となるデジタル画像データ)に変換される。これにより、写真フィルムに記録されている画像の各画素の入力画像データがRGBごとに得られることになる。これらの入力画像データは、画像処理部2に送られる。なお、本実施の形態において、上記入力画像データは、12ビットのデータとするがこれに限定されるわけではない。例えば、0〜255までの8ビットのデータ、0〜65535までの16ビットのデータなどを考えることができる。
【0037】
画像処理部2は、写真フィルムの1コマの画像を構成する各画素のRGBの入力画像データに基づいて、写真処理装置に設定される濃度特性曲線を作成する処理を行うものである。つまり、画像処理部2は、フィルムスキャナ1から送られてきたRGBの入力画像データに基づいて、濃度特性曲線を作成する。作成された濃度特性曲線は、図示しない写真処理装置に内蔵される画像処理装置のLUTに記録される。画像処理部2は、ガンマ設定装置に組み込まれたマイクロプロセッサおよび/またはDSP(Digital Sigunal Processor)などによって構成されてもよいし、装置の外部に設けられたPC(Personal Computer)によって構成されていてもよい。
【0038】
次に、本実施の形態の特徴である画像処理部2の構成について詳細に説明する。画像処理部2は図2に示すように、補正部11、入力部(第1入力手段)12、第1データ作成部(第1データ作成手段)13、第2データ作成部(第2データ作成手段)14、ガンマカーブ作成部(演算手段)15を備えている。
【0039】
補正部11は、フィルムスキャナ1から送られるRGBごとの入力画像データを、用いた写真フィルムの感度特性に応じた入力画像データに補正する演算処理装置である。これにより、フィルムスキャナ1にて得られる入力画像データの明暗と用いる写真フィルムに記録された画像の明暗とを合わせることができる。なお、本実施の形態の補正部11では、12ビットの入力値を16ビットの出力値に変換しているが、入力値および出力値はこのビット数に限定されるわけではない。
【0040】
入力部12は、8ビットの目標画像データ(目標デジタル画像データ)を入力するための装置である。なお、目標画像データとは、本実施の形態に係る画像処理部2に入力される入力画像データのシーンと同一撮像シーンの画像データであって、画像処理部2によらずに最適なトーンに調整された画像データをいう。ここで、トーンとは、画像の濃度、色、コントラスト等の要素をいう。また、目標画像データはR(赤)・G(緑)・B(青)の各色成分ごとに入力される。なお、ここでは8ビットの目標画像データを入力しているが、このビット数に限定されるわけではない。
【0041】
第1データ作成部13は、RGBごとの目標画像データから階調を演算し、各階調に属する画素数を求め、低段階側の階調から画素数を累積した第1累積ヒストグラムを作成する演算処理装置である。なお、図4(a)は、第1累積ヒストグラムを示し、横軸は各階調(0〜255,8ビット)を表し、縦軸は累積画素数を示す。したがって、255階調における累積画素数は目標画像データの総画素数と等しくなる。
【0042】
第2データ作成部14は、フィルムスキャナ1によって取り込まれ、A/D変換部32によってデジタル信号に変換され、RGBごとの入力画像データの各階調に属する画素数を求め、低段階側の階調から画素数を累積した第2累積ヒストグラムを作成する演算処理装置である。なお、図4(b)は、第2累積ヒストグラムを示し、横軸は各階調(0〜65535)を表し、縦軸は累積画素数を示す。したがって、65535階調における累積画素数は目標画像データの総画素数と等しくなる。なお、ここでは、入力画像データが16ビットであることから16ビットの第2累積ヒストグラムが作成されているが、このビット数に限定されるわけではない。
【0043】
ガンマカーブ作成部15は、第1累積ヒストグラムと第2累積ヒストグラムとから濃度特性曲線を作成する演算処理装置である。この濃度特性曲線は、図4(c)に示すように、入力画像データの各階調に対して出力される階調を示したものであり、撮像シーンの種類(例えばオーバー/アンダー)に応じて異なる形状の曲線が作成される。作成後、これを図示しない写真処理装置のLUTに記憶させる。そして、実際にユーザが写真処理装置を使用する際、写真処理装置に入力した画像データを上記LUTにより補正することで、シーンの種類に応じた適切な画像を出力することができる。
【0044】
つぎに、第1累積ヒストグラムと第2累積ヒストグラムとから濃度特性曲線が作成される手順を図1に基づいて、具体的に説明する。
【0045】
まず、入力部12から入力された目標画像データから、図4(a)に示すような第1累積ヒストグラムが第1データ作成部13によって作成される(S1)。ここで、各階調における累積画素数を階調の低い順からAn ( n=0…255)とする。
【0046】
つぎに、フィルムスキャナ1によって取り込まれた入力画像データから図4(b)に示すような第2累積ヒストグラムが第2データ作成部14によって作成される(S2)。ここで、各階調における累積画素数を階調の低い順からBn ( n=0…65535)とする。
【0047】
そして、ガンマカーブ作成部15において、第1累積ヒストグラムにおける最低階調の累積画素数(A0 )と第2累積ヒストグラムにおける最低階調の累積画素数(B0 )とが比較される(S3)。ここで、B0 ≧A0 の場合、B0 に該当する階調を入力階調とし、これに対してA0 に該当する階調を出力階調としたガンマ値(画像変換パラメータ)を設定する(S4)。一方、B0 <A0 の場合、第2累積ヒストグラムの最低階調がカウントアップされる。すなわち最低階調がB0 からB1 へとなる。(S5)。そして、S3に戻り、A0 とB1 とが比較される。このように、ガンマ値が設定されるまで、S3およびS5の手順が繰り返される。
【0048】
さらに、ガンマ値が設定された場合、第1累積ヒストグラムの最低階調がカウントアップされる(S6)。すなわち最低階調がA0 からA1 へとなる。そして、第1累積ヒストグラムの階調が255までカウントアップされていない場合はS3の手順へ戻る(S7)。このようにして、A255 に対するBn の値がガンマ値として設定されるまで、S3〜S7の手順が繰り返される。そして、A255 に対するBn の値がガンマ値として設定された場合は、それまでに設定された全てのガンマ値がプロットされることにより、濃度特性曲線が作成される。さらに、この濃度特性曲線は上述したように図示しない写真処理装置のLUTに記録される。なお、各階調における累積画素数はそれぞれ固有の値であることから、このような手順により、第2累積ヒストグラムの各階調と1対1で対応する第1累積ヒストグラムの各階調を検出することができる。
【0049】
ここで、入力画像データから作成された第2累積ヒストグラムにこのようにして求められた濃度特性曲線をかけることで、第2累積ヒストグラムを図4(d)に示す8ビットのヒストグラムへと変換できる。図4(d)に示す8ビットのヒストグラムは、図4(a)に示す第1累積ヒストグラム、すなわち目標画像データから得られるヒストグラムと同じデータを示す。これは、濃度特性曲線が入力画像の入力階調に1対1で対応する目標画像データの階調を表したものだからである。したがって、写真処理装置において取り込まれる画像データに上記濃度特性曲線をかけることによってもトーンが最適である目標画像データと同一である8ビットの画像データへと変換することができる。なお、濃度特性曲線を用いて補正することにより出力する画像データが8ビットであっても、ビット数を変換できる装置があれば、出力する画像データのビット数を変更できることはいうまでもない。
【0050】
よって、写真処理装置製造時に濃度特性曲線を撮像シーンの種類に応じて作成し、濃度特性曲線を画像変換パラメータとして図示しない写真処理装置のLUTに記憶させておくことで、図示しない写真処理装置に取り込まれる画像データは撮像シーンの種類に応じてトーンが最適な画像データへと変換される。そして、図示しない写真処理装置は、トーンが最適な画像を感光材料に焼き付けることができる。
【0051】
また、上述した濃度特性曲線を作成する手順によると、トーンが最適な目標画像データさえあれば演算処理により濃度特性曲線を作成することができる。すなわち、従来からなされてきた人間の直感を頼りに濃度特性曲線の形状を調整するといった手順によらず、トーンが最適な画像を出力できる濃度特性曲線を作成することができる。これにより、濃度特性曲線を効率よく設定することが可能となる。
【0052】
なお、上記目標画像データは、トーンが最適なデジタル画像データであればよい。例えば、フォトレタッチソフトによりトーンが最適な目標画像データを作成しても構わない。フォトレタッチソフトによるトーン補正は一般的に「明るさ」「コントラスト」「カラーバランス」「トーンカーブ」「レベル補正」を調整できる機能を有しているが、上記目標画像データを作成する手順としては、経験的に濃度、コントラスト、カラーバランス、濃度の順に調整することが効率がよい。しかし、この順に限定されるということではない。また、上記目標画像データは、フォトレタッチソフトにより作成する他に、上記ガンマ設定装置に内蔵されていない高性能のスキャナで入力画像データを取り込む手順であっても構わない。
【0053】
また、本実施の形態においては、ガンマ設定装置によって作成された濃度特性曲線は、入力されたデジタル画像データについて補正処理が施される装置に記憶されるものであればよく、写真処理装置に限定されるものではない。
【0054】
なお、本実施の形態において、ガンマ設定装置は写真フィルムから入力画像データを取り込む構成となっているが、写真フィルムに限定されない。この場合、フィルムスキャナ1は必要なく、外部からデジタル画像データを補正部11へ入力することになる。
【0055】
さらに、濃度特性曲線を作成する手順としては、第2累積ヒストグラムの各階調を入力値とし、第2累積ヒストグラムの各階調の累積画素数と略一致する累積画素数である第1累積ヒストグラムの各階調を出力値とする手順であればよく、上記手順に特に限定されない。
【0056】
また、本実施の形態において、カラー画像について説明したがこれに限定されるものではない。例えば、モノクロ画像であっても構わない。
【0057】
ところで、以上の実施の形態で示した手順は、プログラムで実現することが可能である。このプログラムはコンピュータで読み取り可能な記録媒体に格納されている。本発明では、この記録媒体として、画像処理部2で処理が行われるために必要な図示していないメモリ(例えばROMそのもの)であってもよいし、また図示していないが外部記憶装置としてプログラム読み取り装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。
【0058】
上記いずれの場合においても、格納されているプログラムはマイクロプロセッサ(図示せず)のアクセスにより実行される構成であってもよいし、格納されているプログラムを読み出し、読み出したプログラムを図示されていないプログラム記憶エリアにダウンロードすることにより、そのプログラムが実行される構成であってもよい。この場合、ダウンロード用のプログラムは予め本体装置に格納されているものとする。
【0059】
ここで上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フロッピーディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM、EEPROM、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する媒体であってもよい。
【0060】
また、本発明においてはインターネットを含む通信ネットワークと接続可能なシステム構成であることから、通信ネットワークからプログラムをダウンロードするように流動的にプログラムを担持する媒体であってもよい。尚、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用プログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであってもよい。
【0061】
最後に、上述した実施の形態は、本発明の範囲を限定するものではなく、本発明の範囲内で種々の変更が可能である。
【0062】
【発明の効果】
本発明の画像変換パラメータ設定方法は、以上のように、ト−ンが目標の状態となっている目標デジタル画像データを取得するステップと、上記目標デジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第1累積ヒストグラムを作成するステップと、補正対象となるデジタル画像データを取得するステップと、上記補正対象となるデジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第2累積ヒストグラムを作成するステップと、第2累積ヒストグラムの各階調を入力値とし、第2累積ヒストグラムの各階調の累積画素数と略一致する累積画素数である第1累積ヒストグラムの各階調を出力値とするように、画像変換パラメータを設定するステップトを備えることを特徴とする。
【0063】
また、本発明の画像変換パラメータ設定装置は、以上のように、ト−ンが目標の状態となっている目標デジタル画像データを取得する第1入力手段と、上記目標デジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第1累積ヒストグラムを作成する第1データ作成手段と、補正対象となるデジタル画像データを取得する第2入力手段と、上記補正対象となるデジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第2累積ヒストグラムを作成する第2データ作成手段と、第2累積ヒストグラムの各階調を入力値とし、第2累積ヒストグラムの各階調の累積画素数と略一致する累積画素数である第1累積ヒストグラムの各階調を出力値とするように、画像変換パラメータを設定する演算手段とを備えることを特徴とする。
【0064】
それゆえ、補正対象となる入力階調に対応する目標画像データの各階調を出力階調としたパラメータを設定できる。よって、デジタル画像データの入力階調をトーンが最適な階調に変換することができる画像処理パラメータを設定することができる。ところで、画像のトーンは微妙に変化するものであるため、人間の直感を頼りに画像変換パラメータを調整する手順では、調整作業の効率が悪い。しかしながら、上述した手順によれば、トーンが最適な目標デジタル画像データさえあれば、第1累積ヒストグラムと第2累積ヒストグラムとを作成することにより、人間の直感とは関係なく画像変換パラメータを設定できるため、調整作業の効率を改善できるという効果を奏する。
【0065】
本発明の画像変換パラメータ設定方法は、以上のように、上記の手順に加えて、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させるステップと、上記対比の結果、第1累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を1段階分カウントアップし、再び第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させるステップと、上記対比の結果、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが一致または第2累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を入力値とし、第1累積ヒストグラムの最低階調を出力値とした画像変換パラメータを設定して、第1累積ヒストグラムの最低階調を1段階分カウントアップするステップと、第1累積ヒストグラムの全階調を出力値とした画像変換パラメータが求まるまで、上記手順を繰り返すことにより、画像変換パラメータを演算するステップとを備えることを特徴とする。
【0066】
それゆえ、第1累積ヒストグラムの全階調について画像変換パラメータが求まるまで、上記手順が繰り返されるので、第1累積ヒストグラムの全階調を入力値とした画像変換パラメータを確実に検出することができる。
【0067】
本発明の画像変換パラメータ設定方法は、以上のように、上記の手順に加えて、目標画像および補正対象となる画像はカラー画像であって、目標デジタル画像データおよび補正対象となるデジタル画像データが各色成分ごとに分離されていることを特徴とする。
【0068】
それゆえ、目標デジタル画像データおよび補正対象となるデジタル画像データから各色成分ごとに分離した画像変換パラメータを設定することができるため、カラー画像処理装置に用いられる画像変換パラメータを設定することも可能となるという効果を奏する。
【0069】
本発明の画像変換パラメータ設定方法は、以上のように、上記の手順に加えて、フォトレタッチソフトによりトーンが最適な目標デジタル画像データを作成するステップをさらに備えることを特徴とする。
【0070】
フォトレタッチソフトによれば、グラフィカルユーザーインターフェイスにより画像データを調整でき、「明るさ」「コントラスト」「トーンカーブ」「レベル補正」を独立したパラメータとして調整できる。したがって、上記ステップを備えることにより、簡易かつ瞬時に最適な目標デジタル画像データを作成することができるという効果を奏する。
【0071】
本発明の画像変換パラメータ設定プログラムは、以上のように、上記画像変換パラメータ設定方法をコンピュータに実行させることを特徴とする。
【0072】
それゆえ、上記画像処理プログラムをコンピュータが実行することにより、上述した画像変換パラメータ設定方法を実現することができるという効果を奏する。
【0073】
本発明の画像変換パラメータ設定プログラムを記録した記録媒体は、以上のように、上記画像処理プログラムをコンピュータにて読み取り可能に記録してなることを特徴とする。
【0074】
それゆえ、上記記録媒体に記録された画像変換パラメータ設定プログラムをコンピュータが実行することにより、上述した本発明の画像変換パラメータ設定方法を実現することができるという効果を奏する。
【図面の簡単な説明】
【図1】濃度特性曲線が作成される手順を示すフローチャートである。
【図2】本実施の形態に係る画像処理部の構成を示したブロック図である。
【図3】上記画像処理部を内蔵するガンマ設定装置の構成を示した説明図である。
【図4】上記画像処理部によって作成されたデータを示し、(a)は第1累積ヒストグラムであり、(b)は第2累積ヒストグラムであり、(c)は濃度特性曲線であり、(d)は上記第2累積ヒストグラムに上記濃度特性曲線をかけて得られるヒストグラムである。
【図5】入力階調に対する出力階調を表した濃度特性曲線である。
【図6】従来における濃度特性曲線が作成される手順を示すフローチャートである。
【符号の説明】
1 フィルムスキャナ(第2入力手段)
2 画像処理部
3 表示部
11 補正部
12 入力部(第1入力手段)
13 第1データ作成部(第1データ作成手段)
14 第2データ作成部(第2データ作成手段)
15 ガンマカーブ作成部(演算手段)
21 スキャナ光源
22 フィルムスキャナ
23 スキャナユニット
24 ハロゲンランプ
25 熱線吸収フィルタ
26 調光フィルタ
27 ミラー
28 レンズボックス
29 スキャナレンズ
30 ミラー
31 CCD(Charge Coupled Device)
32 A/D(Analog to Digital)変換部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image conversion parameter setting method, an image conversion parameter setting apparatus, an image conversion parameter setting program, and an image conversion which are set in an image processing apparatus that processes a digital image input by a CCD imaging device or the like and outputs the processed digital image to a monitor or printer The present invention relates to a recording medium on which a parameter setting program is recorded.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, image processing apparatuses, for example, have good image quality based on R (red), G (green), and B (blue) image data (digital image data) for each frame obtained by photometry of a photographic film. In order to print an image on a photosensitive material, processing for correcting the density, color, and contrast of the image is performed. As this density / color / contrast correction method, a method of adjusting the shape of a density characteristic curve (gamma curve, image conversion parameter) (gamma correction) is often used. Hereinafter, the gamma correction process will be described.
[0003]
First, an arbitrary frame of a photographic film (for example, a negative film) is irradiated with light, and transmitted light is captured for each RGB by a CCD (Charge Coupled Device). Next, with respect to the captured RGB image data, the density for each output pixel is obtained from the density characteristic curve shown in FIG. This density characteristic curve indicates, for example, RGB output data with respect to the input gradation, and the horizontal axis indicates the input gradation and the vertical axis indicates the output gradation.
[0004]
In other words, the image processing apparatus corrects the input image data by applying a preset density characteristic curve to obtain output image data. Further, the printing apparatus prints an image on the photosensitive material according to the output image data. The density characteristic curve is adjusted in advance by a manufacturer (manufacturer) of the image processing apparatus, and is recorded in a calculation memory built in the image processing apparatus in the apparatus manufacturing stage. In order to obtain a high-quality image, it is necessary to set different density characteristic curves according to the type of imaging scene (for example, over / under exposure). That is, the manufacturer must set a plurality of density characteristic curves having different shapes.
[0005]
Here, based on FIG. 6, a conventional method of setting a density characteristic curve will be described. First, the image data of a certain kind of scene is taken into the image conversion parameter setting device by the CCD (S11). Next, the operator inputs an initial value (for example, γ = 1.0) of the density characteristic curve to the image conversion parameter setting device (S12). Then, an arithmetic unit incorporated in the image conversion parameter setting device calculates output image data from the input image data and the density characteristic curve, and displays the density characteristic curve and an image based on the density characteristic curve on the monitor (S13). ). The display of the image may be a procedure of sending the output image data to the photo processing apparatus and actually printing the photo.
[0006]
The operator visually confirms the image displayed on the monitor in this way (S14). Here, when the operator determines that a good quality image is obtained, the setting of the density characteristic curve is completed.
[0007]
On the other hand, if the operator determines that a good image is not obtained, the operator manually adjusts the displayed density characteristic curve (S15). Then, the arithmetic device calculates the adjusted density characteristic curve, and displays the adjusted density characteristic curve and an image based on the adjusted density characteristic curve (S13). Hereinafter, the procedure of S13 to S15 is repeated until the operator determines that a good image is obtained. A density characteristic curve is set in such a procedure.
[0008]
[Problems to be solved by the invention]
However, in the above procedure, the operator visually confirms changes in density, color, and contrast of the image displayed on the monitor while manually adjusting the shape of the density characteristic curve displayed on the monitor. That is, according to the above procedure, the density, color, and contrast of the image cannot be adjusted as independent parameters, and the operator has the optimum density, color, and contrast of the displayed image relying solely on the shape of the density characteristic curve. The density characteristic curve must be adjusted so that Therefore, in the above procedure, it is difficult to set an optimum density characteristic curve corresponding to the type of scene.
[0009]
Furthermore, although it is necessary to set the density characteristic curve for each type of imaging scene, since there is no technology that can automatically adjust the density characteristic curve, the efficiency of the adjustment process of the density characteristic curve is extremely low.
[0010]
The present invention has been made to solve the above-described problems, and an object of the present invention is to provide an image conversion parameter setting method capable of setting an optimum density characteristic curve corresponding to the type of imaging scene by a simple procedure. Another object of the present invention is to provide an image conversion parameter setting device, an image conversion parameter setting program, and a recording medium recording the image conversion parameter setting program.
[0011]
[Means for Solving the Problems]
The present invention In order to solve the above-described problem, the image conversion parameter setting method of the image conversion parameter setting method for setting the image conversion parameter used in the image processing apparatus for correcting the digital image data has the tone set to the target state. Get target digital image data 1st input Based on the step and the target digital image data, a first cumulative histogram is created by accumulating the number of pixels corresponding to each gradation from the low-level gradation. First data creation A step of acquiring digital image data to be corrected, and a second cumulative histogram obtained by accumulating the number of pixels corresponding to each gradation from the low-level gradation based on the digital image data to be corrected. create 2nd input Step, and each gradation of the second cumulative histogram is set as an input value, and each gradation of the first cumulative histogram, which is the cumulative number of pixels substantially matching the number of cumulative pixels of each gradation of the second cumulative histogram, is output. Set image conversion parameters Second creation Step and , A first comparison procedure for comparing the number of cumulative pixels of the lowest gradation of the second cumulative histogram with the number of cumulative pixels of the lowest gradation of the first cumulative histogram, and the result of the comparison, the lowest gradation of the first cumulative histogram When the cumulative pixel number is larger, the lowest gradation of the second cumulative histogram is counted up by one step, and the cumulative number of pixels of the lowest gradation of the second cumulative histogram and the cumulative number of pixels of the lowest gradation of the first cumulative histogram are again counted. And the result of the comparison is that the cumulative number of pixels of the lowest gradation of the second cumulative histogram matches the cumulative number of pixels of the lowest gradation of the first cumulative histogram or the lowest of the second cumulative histogram If the number of accumulated pixels of the gradation is larger, an image conversion parameter having the lowest gradation of the second cumulative histogram as the input value and the lowest gradation of the first cumulative histogram as the output value is set, By repeating the above procedure until the parameter setting procedure for counting up the lowest gradation of one cumulative histogram by one step and the image conversion parameter having all gradations of the first cumulative histogram as output values are obtained, the image conversion parameter is changed. Calculation steps to calculate It is characterized by providing.
[0012]
Also, The present invention In order to solve the above-mentioned problem, the image conversion parameter setting device of the image conversion parameter setting device for setting the image conversion parameter used in the image processing device for correcting the digital image data has the tone set to the target state. First input means for acquiring the target digital image data, and a first cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the lower-stage gradation based on the target digital image data. 1 data creation means, second input means for acquiring digital image data to be corrected, and the number of pixels corresponding to each gradation is accumulated from the low-level gradation based on the digital image data to be corrected Second data creation means for creating the second cumulative histogram, A first comparison procedure for comparing the number of accumulated pixels of the lowest gradation of the second cumulative histogram with the number of accumulated pixels of the lowest gradation of the first cumulative histogram, and the accumulation of the lowest gradation of the first accumulated histogram as a result of the comparison When the number of pixels is larger, the lowest gradation of the second cumulative histogram is counted up by one stage, and again the cumulative number of pixels of the lowest gradation of the second cumulative histogram and the cumulative number of pixels of the lowest gradation of the first cumulative histogram And the result of the comparison is that the cumulative number of pixels of the lowest gradation of the second cumulative histogram matches the cumulative number of pixels of the lowest gradation of the first cumulative histogram or the lowest order of the second cumulative histogram. If the cumulative number of pixels in the key is larger, an image conversion parameter is set with the lowest gradation of the second cumulative histogram as the input value and the lowest gradation of the first cumulative histogram as the output value. The image conversion parameter is calculated by repeating the above procedure until the parameter setting procedure for counting up the lowest gradation of the cumulative histogram by one step and the image conversion parameter with all gradations of the first cumulative histogram as output values are obtained. Parameter calculation means to It is characterized by providing.
[0013]
According to the above procedure or configuration, the target digital image data in which the tone is in the target state is acquired, and the first cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the low-level gradation is generated. The cumulative number of pixels of each gradation in the target digital image data can be obtained. Here, the cumulative number of pixels of each gradation in the first cumulative histogram is a value obtained by accumulating the number of pixels corresponding to each gradation from the gradation on the lower stage side, and thus shows a unique value.
[0014]
In addition, in order to acquire digital image data to be corrected and create a second cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the lower gradation, each gradation stage in the acquired digital image data The cumulative number of pixels can be obtained. Here, the cumulative number of pixels at each stage in the second cumulative histogram is obtained by accumulating the number of pixels corresponding to each gradation from the low-level gradation, and thus shows a unique value. Therefore, it is possible to detect each gradation of the first cumulative histogram corresponding one-to-one with the cumulative number of pixels of each gradation of the second cumulative histogram.
[0015]
That is, it is possible to set a parameter in which each gradation of the target image data corresponding to the input gradation to be corrected is an output gradation. Here, the target digital image data in which the tone is in the target state refers to, for example, image data in which the tone of the image is in an optimal state. Therefore, it is possible to set an image processing parameter that can convert the input gradation of the digital image data into an optimum gradation.
[0016]
By the way, since the tone of the image changes slightly, the efficiency of the adjustment work is poor in the procedure of adjusting the image conversion parameter based on human intuition. However, according to the above-described procedure, as long as the target digital image data has the optimum tone, the image conversion parameters can be set regardless of human intuition by creating the first cumulative histogram and the second cumulative histogram. Therefore, the efficiency of adjustment work can be improved.
[0017]
Note that tone refers to elements such as image density, color, and contrast. Further, the target digital image data may be created by, for example, photo retouching software. In addition to creating with photo retouching software, a procedure for capturing digital image data with a high-performance scanner may be used.
[0018]
The present invention This image conversion parameter setting method further includes a step of comparing the cumulative number of pixels of the lowest gradation of the second cumulative histogram with the cumulative number of pixels of the lowest gradation of the first cumulative histogram. First contrast procedure As a result of the comparison, if the cumulative number of pixels of the lowest gradation of the first cumulative histogram is larger, the lowest gradation of the second cumulative histogram is counted up by one step, and the lowest gradation of the second cumulative histogram is again counted. The cumulative pixel number is compared with the cumulative pixel number of the lowest gradation of the first cumulative histogram. Second contrast procedure As a result of the above comparison, the cumulative number of pixels of the lowest gradation of the second cumulative histogram matches the cumulative number of pixels of the lowest gradation of the first cumulative histogram or the cumulative number of pixels of the lowest gradation of the second cumulative histogram. In many cases, an image conversion parameter is set with the lowest gradation of the second cumulative histogram as the input value and the lowest gradation of the first cumulative histogram as the output value, and the lowest gradation of the first cumulative histogram is counted for one step. Up Parameter setting procedure Then, the image conversion parameter is calculated by repeating the above procedure until the image conversion parameter having all the gradations of the first cumulative histogram as output values is obtained. Math step Prepare.
[0019]
According to the above procedure, the cumulative number of pixels of the lowest gradation of the second cumulative histogram is compared with the cumulative number of pixels of the lowest gradation of the first cumulative histogram, and the cumulative number of pixels of the lowest gradation of the first cumulative histogram is greater. If there are many, the lowest gradation of the second cumulative histogram is counted up by one step, and the cumulative number of pixels of the lowest gradation of the second cumulative histogram is again compared with the cumulative number of pixels of the lowest gradation of the first cumulative histogram. If the cumulative number of pixels of the lowest gradation of the second cumulative histogram matches the cumulative number of pixels of the lowest gradation of the first cumulative histogram or the cumulative number of pixels of the lowest gradation of the second cumulative histogram is larger, An image conversion parameter is set with the lowest gradation of the cumulative histogram as an input value and the lowest gradation of the first cumulative histogram as an output value. Then, the above procedure is repeated until the lowest gradation of the first cumulative histogram is counted up by one step and the image conversion parameters are obtained for all the gradations of the first cumulative histogram. Can be reliably detected as an image conversion parameter.
[0020]
The present invention In order to solve the above-described problem, the image conversion parameter setting method of the present invention, in addition to the above procedure, the target image and the image to be corrected are color images, and the target digital image data and the digital image to be corrected The data is separated for each color component.
[0021]
According to the above procedure, it is possible to set the image conversion parameters separated for each color component from the target digital image data and the digital image data to be corrected. Therefore, the image conversion parameters used in the color image processing apparatus are set. Is also possible.
[0022]
The present invention In order to solve the above problem, the image conversion parameter setting method of the above In addition to the procedure of Acquired in the first input step in the target state Target digital image data Photo retouching software create Third data creation The method further includes a step.
[0023]
If the target digital image data is generated by a procedure for adjusting the shape of the density characteristic curve which has been conventionally performed, the target digital image data can be generated at high speed.
[0024]
However, according to the procedure for adjusting the shape of the density characteristic curve, elements such as density, color, and contrast cannot be adjusted independently. On the other hand, in order to create target digital image data with an optimum tone, elements such as density, color, and contrast must be adjusted simultaneously. Therefore, in the procedure for adjusting the shape of the density characteristic curve, the target digital image data Creation is difficult.
[0025]
Here, according to the photo retouching software, the image data can be adjusted by the graphical user interface. In addition, tone correction by photo retouching software can generally be adjusted with “brightness”, “contrast”, “tone curve”, and “level correction” as independent parameters, and the above adjustments are reflected in an image being displayed in real time. Therefore, by providing the above steps, the optimum target digital image data can be created easily and instantaneously.
[0026]
The present invention The image conversion parameter setting program of the above The image conversion parameter setting method is executed by a computer.
[0027]
According to said structure, the image conversion parameter setting method mentioned above is realizable because a computer runs the said image processing program.
[0028]
the above The recording medium recording the image conversion parameter setting program of the above The image processing program is recorded so as to be readable by a computer.
[0029]
According to the above configuration, the above-described image conversion parameter setting method of the present invention can be realized by the computer executing the image conversion parameter setting program recorded on the recording medium.
[0030]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below with reference to FIGS.
[0031]
The gamma setting device (image conversion parameter setting device) in which the image conversion parameter setting method of the present invention is executed is, for example, a density characteristic curve (gamma curve, image conversion parameter) set in an image processing device built in a photographic processing device or the like. ) Is a device for creating. The photographic processing apparatus inputs a digital image from a photographic film by an imaging device such as a CCD (Charge Coupled Device), converts the input image data into high-quality image data using image conversion parameters, and based on the converted image data, For printing onto a photosensitive material. That is, the image conversion parameter created by the gamma setting device is recorded in an LUT (lookup table, correction calculation memory) incorporated in the image processing device.
[0032]
First, a schematic configuration of the gamma setting device will be described. As shown in FIG. 2, the gamma setting device includes a film scanner (second input unit) 1 and an image processing unit 2.
[0033]
As shown in FIG. 3, the film scanner 1 includes a scanner light source 21 for irradiating light to a photographic film, a film carrier 22 for conveying the photographic film, and light emitted from the scanner light source 21 and transmitted through the photographic film. And a scanner unit 23 that captures an image recorded on the photographic film by photometry.
[0034]
The scanner light source 21 includes a halogen lamp 24 that emits light, a heat ray absorption filter 25, a light control filter 26, a mirror 27, and a lens box 28 in this order along the light traveling direction. The scanner unit 23 includes a scanner lens 29, a mirror 30, and a three-sheet CCD 31 in this order along the light traveling direction. The CCD 31 is connected to an A / D (Analog to Digital) converter 32.
[0035]
Therefore, the light emitted from the halogen lamp 24 is removed from the heat ray component by the heat ray absorption filter 25 and is incident on the dimming filter 26. After being dimmed by the dimming filter 26, the traveling direction is given by the mirror 27. Is changed and enters the lens box 28. In the lens box 28, the incident light is diffused into uniform light, and this light is applied to the photographic film supported by the film carrier 22.
[0036]
The light transmitted through the photographic film is incident on the light receiving surface of the CCD 31 via the mirror 30 by the scanner lens 29. Then, the CCD 31 sends an analog electrical signal corresponding to the amount of light received at each pixel to the A / D converter 32 for each RGB, and these signals are input to the input image data (correction target and correction target) by the A / D converter 32. Digital image data). Thereby, input image data of each pixel of the image recorded on the photographic film is obtained for each RGB. These input image data are sent to the image processing unit 2. In the present embodiment, the input image data is 12-bit data, but is not limited to this. For example, 8-bit data from 0 to 255, 16-bit data from 0 to 65535, and the like can be considered.
[0037]
The image processing unit 2 performs processing for creating a density characteristic curve set in the photographic processing apparatus based on RGB input image data of each pixel constituting one frame image of the photographic film. That is, the image processing unit 2 creates a density characteristic curve based on the RGB input image data sent from the film scanner 1. The created density characteristic curve is recorded in an LUT of an image processing apparatus built in a photographic processing apparatus (not shown). The image processing unit 2 may be configured by a microprocessor and / or DSP (Digital Sigunal Processor) incorporated in the gamma setting device, or by a PC (Personal Computer) provided outside the device. Also good.
[0038]
Next, the configuration of the image processing unit 2 that is a feature of the present embodiment will be described in detail. As shown in FIG. 2, the image processing unit 2 includes a correction unit 11, an input unit (first input unit) 12, a first data generation unit (first data generation unit) 13, and a second data generation unit (second data generation unit). Means) 14 and a gamma curve creation section (calculation means) 15.
[0039]
The correction unit 11 is an arithmetic processing unit that corrects input image data for each of RGB sent from the film scanner 1 to input image data corresponding to the sensitivity characteristics of the photographic film used. Thereby, the contrast of the input image data obtained by the film scanner 1 can be matched with the contrast of the image recorded on the photographic film to be used. In the correction unit 11 of the present embodiment, a 12-bit input value is converted into a 16-bit output value, but the input value and the output value are not limited to this number of bits.
[0040]
The input unit 12 is a device for inputting 8-bit target image data (target digital image data). Note that the target image data is image data of the same shooting scene as the scene of the input image data input to the image processing unit 2 according to the present embodiment, and has an optimum tone regardless of the image processing unit 2. Refers to adjusted image data. Here, tone refers to elements such as image density, color, and contrast. The target image data is input for each color component of R (red), G (green), and B (blue). Although 8-bit target image data is input here, the number of bits is not limited to this.
[0041]
The first data creation unit 13 computes gradations from the target image data for each RGB, obtains the number of pixels belonging to each gradation, and creates a first cumulative histogram in which the number of pixels is accumulated from gradations on the lower stage side It is a processing device. FIG. 4A shows the first cumulative histogram, the horizontal axis represents each gradation (0 to 255, 8 bits), and the vertical axis represents the cumulative number of pixels. Therefore, the cumulative number of pixels in 255 gradations is equal to the total number of pixels of the target image data.
[0042]
The second data creation unit 14 is captured by the film scanner 1, converted to a digital signal by the A / D conversion unit 32, obtains the number of pixels belonging to each gradation of the input image data for each RGB, and the gradation on the lower stage side Is an arithmetic processing unit that creates a second cumulative histogram in which the number of pixels is accumulated. FIG. 4B shows the second cumulative histogram, the horizontal axis represents each gradation (0 to 65535), and the vertical axis represents the cumulative number of pixels. Therefore, the cumulative number of pixels in 65535 gradations is equal to the total number of pixels of the target image data. Here, since the input image data is 16 bits, a 16-bit second cumulative histogram is created, but the number of bits is not limited to this.
[0043]
The gamma curve creation unit 15 is an arithmetic processing device that creates a density characteristic curve from the first cumulative histogram and the second cumulative histogram. This density characteristic curve, as shown in FIG. 4C, shows the gradation output for each gradation of the input image data, depending on the type of imaging scene (for example, over / under). Curves with different shapes are created. After creation, this is stored in a LUT of a photo processing apparatus (not shown). When the user actually uses the photo processing apparatus, the image data input to the photo processing apparatus is corrected by the LUT, so that an appropriate image corresponding to the type of scene can be output.
[0044]
Next, a procedure for creating a density characteristic curve from the first cumulative histogram and the second cumulative histogram will be specifically described with reference to FIG.
[0045]
First, a first cumulative histogram as shown in FIG. 4A is created from the target image data input from the input unit 12 by the first data creation unit 13 (S1). Here, the cumulative number of pixels in each gradation is set to A in descending order of gradation. n (n = 0... 255).
[0046]
Next, a second cumulative histogram as shown in FIG. 4B is created from the input image data captured by the film scanner 1 by the second data creation unit 14 (S2). Here, the cumulative number of pixels in each gradation is represented by B in ascending order of gradation. n (n = 0 ... 65535).
[0047]
Then, in the gamma curve creation unit 15, the cumulative number of pixels (A 0 ) And the number of accumulated pixels (B 0 ) Is compared (S3). Where B 0 ≧ A 0 In case of B 0 The gradation corresponding to is the input gradation, and A 0 A gamma value (image conversion parameter) with the gradation corresponding to the output gradation as an output gradation is set (S4). On the other hand, B 0 <A 0 In this case, the lowest gradation of the second cumulative histogram is counted up. That is, the lowest gradation is B 0 To B 1 It becomes. (S5). And it returns to S3 and A 0 And B 1 Are compared. Thus, the procedure of S3 and S5 is repeated until the gamma value is set.
[0048]
Further, when the gamma value is set, the lowest gradation of the first cumulative histogram is counted up (S6). That is, the lowest gradation is A. 0 To A 1 It becomes. If the gradation of the first cumulative histogram has not been counted up to 255, the process returns to S3 (S7). In this way, A 255 Against B n Steps S3 to S7 are repeated until the value of is set as the gamma value. And A 255 Against B n Is set as the gamma value, a density characteristic curve is created by plotting all the gamma values set so far. Further, the density characteristic curve is recorded in the LUT of the photo processing apparatus (not shown) as described above. Since the number of accumulated pixels in each gradation is a unique value, it is possible to detect each gradation of the first cumulative histogram corresponding one-to-one with each gradation of the second cumulative histogram by such a procedure. it can.
[0049]
Here, by applying the density characteristic curve thus obtained to the second cumulative histogram created from the input image data, the second cumulative histogram can be converted to an 8-bit histogram shown in FIG. . The 8-bit histogram shown in FIG. 4D shows the same data as the first cumulative histogram shown in FIG. 4A, that is, the histogram obtained from the target image data. This is because the density characteristic curve represents the gradation of the target image data corresponding one-to-one with the input gradation of the input image. Therefore, by applying the density characteristic curve to the image data captured by the photographic processing apparatus, the image data can be converted to 8-bit image data that is the same as the target image data having the optimum tone. Needless to say, even if the output image data is 8 bits by correction using the density characteristic curve, the number of bits of the output image data can be changed if there is a device that can convert the number of bits.
[0050]
Therefore, a density characteristic curve is created according to the type of imaging scene at the time of manufacturing the photo processing apparatus, and the density characteristic curve is stored as an image conversion parameter in an LUT of the photo processing apparatus (not shown). The captured image data is converted into image data having the optimum tone according to the type of the imaging scene. A photographic processing apparatus (not shown) can print an image having the optimum tone on the photosensitive material.
[0051]
Further, according to the above-described procedure for creating the density characteristic curve, the density characteristic curve can be created by arithmetic processing as long as the target image data has the optimum tone. In other words, it is possible to create a density characteristic curve that can output an image with an optimum tone, without depending on the procedure of adjusting the shape of the density characteristic curve based on the conventional intuition of human beings. As a result, the density characteristic curve can be set efficiently.
[0052]
The target image data may be digital image data having an optimum tone. For example, target image data with an optimum tone may be created by photo retouching software. Tone correction using photo retouching software generally has a function to adjust “brightness”, “contrast”, “color balance”, “tone curve”, and “level correction”. It is efficient to empirically adjust the density, contrast, color balance, and density in this order. However, it is not limited to this order. The target image data may be created by photo retouching software, or may be a procedure for capturing input image data by a high-performance scanner that is not incorporated in the gamma setting device.
[0053]
In the present embodiment, the density characteristic curve created by the gamma setting device may be stored in a device that performs correction processing on input digital image data, and is limited to a photographic processing device. Is not to be done.
[0054]
In the present embodiment, the gamma setting device is configured to capture input image data from a photographic film, but is not limited to a photographic film. In this case, the film scanner 1 is not necessary, and digital image data is input to the correction unit 11 from the outside.
[0055]
Further, as a procedure for creating the density characteristic curve, each gradation of the second cumulative histogram is set as an input value, and each level of the first cumulative histogram, which is the cumulative number of pixels that substantially matches the cumulative number of pixels of each gradation of the second cumulative histogram. Any procedure may be used as long as the key is the output value, and the procedure is not particularly limited.
[0056]
In this embodiment, a color image has been described, but the present invention is not limited to this. For example, it may be a monochrome image.
[0057]
By the way, the procedure shown in the above embodiment can be realized by a program. This program is stored in a computer-readable recording medium. In the present invention, the recording medium may be a memory (not shown) required for processing by the image processing unit 2 (for example, a ROM itself), or a program as an external storage device (not shown). It may be a program medium provided with a reading device and readable by inserting a recording medium therein.
[0058]
In any of the above cases, the stored program may be executed by accessing a microprocessor (not shown), or the stored program is read and the read program is not shown. The program may be executed by downloading to the program storage area. In this case, it is assumed that the download program is stored in the main device in advance.
[0059]
Here, the program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a floppy disk or a hard disk, or a CD-ROM / MO / MD / DVD. Even a medium carrying a fixed program, including a disk system of an optical disk, a card system such as an IC card (including a memory card) / optical card, or a semiconductor memory such as a mask ROM, EPROM, EEPROM, flash ROM, etc. Good.
[0060]
In addition, since the present invention has a system configuration that can be connected to a communication network including the Internet, it may be a medium that fluidly carries a program so as to download the program from the communication network. When the program is downloaded from the communication network in this way, the download program may be stored in the main device in advance or may be installed from another recording medium.
[0061]
Finally, the embodiment described above does not limit the scope of the present invention, and various modifications can be made within the scope of the present invention.
[0062]
【The invention's effect】
As described above, the image conversion parameter setting method of the present invention corresponds to each gradation based on the step of acquiring the target digital image data in which the tone is in the target state and the target digital image data. A step of creating a first cumulative histogram in which the number of pixels is accumulated from the low-level gradation, a step of acquiring digital image data to be corrected, and a step of obtaining each gradation based on the digital image data to be corrected A step of creating a second cumulative histogram in which the corresponding number of pixels are accumulated from the low-level gradation, and each gradation of the second cumulative histogram is set as an input value, and substantially coincides with the cumulative number of pixels of each gradation of the second cumulative histogram. A step of setting image conversion parameters so that each gradation of the first cumulative histogram, which is the cumulative number of pixels to be output, is used as an output value. To.
[0063]
Further, as described above, the image conversion parameter setting device of the present invention is based on the first input means for acquiring the target digital image data in which the tone is in the target state, and the target digital image data. First data creating means for creating a first cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from gradations on the lower stage side, second input means for obtaining digital image data to be corrected, and the correction target Second data creating means for creating a second cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the lower-stage gradation based on the digital image data, and each gradation of the second cumulative histogram is an input value The image conversion parameter is set so that each gradation of the first cumulative histogram, which is the number of cumulative pixels substantially matching the number of cumulative pixels of each gradation of the second cumulative histogram, is used as the output value. Characterized in that it comprises calculating means for.
[0064]
Therefore, it is possible to set a parameter in which each gradation of the target image data corresponding to the input gradation to be corrected is an output gradation. Therefore, it is possible to set an image processing parameter that can convert the input gradation of the digital image data into an optimum gradation. By the way, since the tone of the image changes slightly, the efficiency of the adjustment work is poor in the procedure of adjusting the image conversion parameter based on human intuition. However, according to the above-described procedure, as long as the target digital image data has the optimum tone, the image conversion parameters can be set regardless of human intuition by creating the first cumulative histogram and the second cumulative histogram. Therefore, there is an effect that the efficiency of the adjustment work can be improved.
[0065]
As described above, the image conversion parameter setting method of the present invention compares the cumulative number of pixels of the lowest gradation of the second cumulative histogram with the cumulative number of pixels of the lowest gradation of the first cumulative histogram in addition to the above procedure. If the number of accumulated pixels of the lowest gradation of the first cumulative histogram is larger as a result of the comparison, the lowest gradation of the second cumulative histogram is counted up by one step, and the lowest floor of the second cumulative histogram is again counted. A step of comparing the cumulative number of pixels of the key with the cumulative number of pixels of the lowest gradation of the first cumulative histogram, and the result of the comparison, the cumulative number of pixels of the lowest gradation of the second cumulative histogram and the lowest order of the first cumulative histogram. When the cumulative number of pixels of the key matches or the cumulative number of pixels of the lowest gradation of the second cumulative histogram is larger, the lowest gradation of the second cumulative histogram is used as the input value, and the first cumulative hysteresis An image conversion parameter having the lowest gradation of the gram as an output value is set, the step of counting up the lowest gradation of the first cumulative histogram by one step, and an image having all gradations of the first cumulative histogram as output values And calculating the image conversion parameter by repeating the above procedure until the conversion parameter is obtained.
[0066]
Therefore, the above procedure is repeated until the image conversion parameters are obtained for all the gradations of the first cumulative histogram, so that the image conversion parameters having all the gradations of the first cumulative histogram as input values can be reliably detected. .
[0067]
As described above, in the image conversion parameter setting method of the present invention, in addition to the above procedure, the target image and the image to be corrected are color images, and the target digital image data and the digital image data to be corrected are Each color component is separated.
[0068]
Therefore, since it is possible to set image conversion parameters separated for each color component from the target digital image data and the digital image data to be corrected, it is possible to set the image conversion parameters used in the color image processing apparatus. The effect of becoming.
[0069]
As described above, the image conversion parameter setting method of the present invention is characterized by further comprising the step of creating target digital image data with an optimum tone by using photo retouching software, in addition to the above procedure.
[0070]
According to the photo retouching software, image data can be adjusted by a graphical user interface, and “brightness”, “contrast”, “tone curve”, and “level correction” can be adjusted as independent parameters. Therefore, by providing the above steps, there is an effect that the optimum target digital image data can be created easily and instantaneously.
[0071]
As described above, the image conversion parameter setting program of the present invention causes a computer to execute the image conversion parameter setting method.
[0072]
Therefore, there is an effect that the above-described image conversion parameter setting method can be realized by the computer executing the image processing program.
[0073]
The recording medium on which the image conversion parameter setting program of the present invention is recorded is characterized in that the image processing program is recorded so as to be readable by a computer as described above.
[0074]
Therefore, there is an effect that the above-described image conversion parameter setting method of the present invention can be realized by the computer executing the image conversion parameter setting program recorded on the recording medium.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a procedure for creating a density characteristic curve.
FIG. 2 is a block diagram showing a configuration of an image processing unit according to the present embodiment.
FIG. 3 is an explanatory diagram showing a configuration of a gamma setting device incorporating the image processing unit.
FIGS. 4A and 4B show data created by the image processing unit, where FIG. 4A is a first cumulative histogram, FIG. 4B is a second cumulative histogram, and FIG. 4C is a density characteristic curve; ) Is a histogram obtained by multiplying the second cumulative histogram by the density characteristic curve.
FIG. 5 is a density characteristic curve showing an output gradation with respect to an input gradation.
FIG. 6 is a flowchart showing a procedure for creating a conventional density characteristic curve.
[Explanation of symbols]
1 Film scanner (second input means)
2 Image processing section
3 Display section
11 Correction section
12 Input unit (first input means)
13 1st data preparation part (1st data preparation means)
14 Second data creation unit (second data creation means)
15 Gamma curve creation part (calculation means)
21 Scanner light source
22 Film scanner
23 Scanner unit
24 Halogen lamp
25 Heat ray absorption filter
26 Dimming filter
27 Mirror
28 Lens box
29 Scanner lens
30 mirror
31 CCD (Charge Coupled Device)
32 A / D (Analog to Digital) converter

Claims (7)

デジタル画像データを補正する画像処理装置に用いられる画像変換パラメータを設定する画像変換パラメータ設定方法において、
ト−ンが目標の状態となっている目標デジタル画像データを取得する第1入力ステップと、
上記目標デジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第1累積ヒストグラムを作成する第1データ作成ステップと、
補正対象となるデジタル画像データを取得する第2入力ステップと、
上記補正対象となるデジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第2累積ヒストグラムを作成する第2作成ステップと、
第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第1対比手順と、
上記対比の結果、第1累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を1段階分カウントアップし、再び第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第2対比手順と、
上記対比の結果、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが一致または第2累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を入力値とし、第1累積ヒストグラムの最低階調を出力値とした画像変換パラメータを設定して、第1累積ヒストグラムの最低階調を1段階分カウントアップするパラメータ設定手順と、
第1累積ヒストグラムの全階調を出力値とした画像変換パラメータが求まるまで、上記手順を繰り返すことにより、画像変換パラメータを演算する演算ステップを備えることを特徴とする画像変換パラメータ設定方法。
In an image conversion parameter setting method for setting an image conversion parameter used in an image processing apparatus for correcting digital image data,
A first input step of acquiring target digital image data in which the tone is in a target state;
A first data creation step of creating a first cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the lower-stage gradation based on the target digital image data;
A second input step for acquiring digital image data to be corrected;
A second creation step of creating a second cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the low-level gradation based on the digital image data to be corrected;
A first comparison procedure for comparing the cumulative number of pixels of the lowest gradation of the second cumulative histogram with the cumulative number of pixels of the lowest gradation of the first cumulative histogram;
As a result of the comparison, if the cumulative number of pixels of the lowest gradation of the first cumulative histogram is larger, the lowest gradation of the second cumulative histogram is counted up by one step, and the cumulative pixel of the lowest gradation of the second cumulative histogram is again counted. A second contrasting procedure for comparing the number and the cumulative number of pixels of the lowest gradation of the first cumulative histogram;
As a result of the above comparison, the cumulative number of pixels of the lowest gradation of the second cumulative histogram matches the cumulative number of pixels of the lowest gradation of the first cumulative histogram, or the cumulative number of pixels of the lowest gradation of the second cumulative histogram is greater The image conversion parameter having the lowest gradation of the second cumulative histogram as the input value and the lowest gradation of the first cumulative histogram as the output value is set, and the lowest gradation of the first cumulative histogram is counted up by one step. Parameter setting procedure,
An image conversion parameter setting method comprising a calculation step of calculating an image conversion parameter by repeating the above procedure until an image conversion parameter having all gradations of the first cumulative histogram as output values is obtained .
目標画像および補正対象となる画像はカラー画像であって、目標デジタル画像データおよび補正対象となるデジタル画像データが各色成分ごとに分離されていることを特徴とする請求項1に記載の画像変換パラメータ設定方法。The image conversion parameter according to claim 1, wherein the target image and the image to be corrected are color images, and the target digital image data and the digital image data to be corrected are separated for each color component. Setting method. トーンが目標の状態となっている、上記第1入力ステップで取得される目標デジタル画像データをフォトレタッチソフトにより作成する第3データ作成ステップをさらに備えることを特徴とする請求項1または2に記載の画像変換パラメータ設定方法。3. The third data creating step for creating the target digital image data acquired in the first input step in which the tone is in a target state by using photo retouching software. Image conversion parameter setting method. 上記第1入力ステップは、上記第2入力ステップで入力する補正対象となるデジタル画像データを取得するスキャナユニットよりも高性能なスキャナで、上記目標デジタル画像データを取り込むステップであることを特徴とする請求項1から3のいずれか1項に記載の画像変換パラメータ設定方法。The first input step is a step of capturing the target digital image data by a scanner having a higher performance than a scanner unit that acquires digital image data to be corrected input in the second input step. The image conversion parameter setting method according to any one of claims 1 to 3. デジタル画像データを補正する画像処理装置に用いられる画像変換パラメータを設定する画像変換パラメータ設定装置において、
ト−ンが目標の状態となっている目標デジタル画像データを取得する第1入力手段と、
上記目標デジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第1累積ヒストグラムを作成する第1データ作成手段と、
補正対象となるデジタル画像データを取得する第2入力手段と、
上記補正対象となるデジタル画像データに基づいて、各階調に対応する画素数を低段階側の階調から累積した第2累積ヒストグラムを作成する第2データ作成手段と、
第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第1対比手順と、
上記対比の結果、第1累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第 2累積ヒストグラムの最低階調を1段階分カウントアップし、再び第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とを対比させる第2対比手順と、
上記対比の結果、第2累積ヒストグラムの最低階調の累積画素数と第1累積ヒストグラムの最低階調の累積画素数とが一致または第2累積ヒストグラムの最低階調の累積画素数のほうが多い場合、第2累積ヒストグラムの最低階調を入力値とし、第1累積ヒストグラムの最低階調を出力値とした画像変換パラメータを設定して、第1累積ヒストグラムの最低階調を1段階分カウントアップするパラメータ設定手順と、
第1累積ヒストグラムの全階調を出力値とした画像変換パラメータが求まるまで、上記手順を繰り返すことにより、画像変換パラメータを演算するパラメータ演算手段とを備えることを特徴とする画像変換パラメータ設定装置。
In an image conversion parameter setting device for setting an image conversion parameter used in an image processing device for correcting digital image data,
First input means for acquiring target digital image data in which the tone is in a target state;
First data creating means for creating a first cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the lower-stage gradation based on the target digital image data;
Second input means for acquiring digital image data to be corrected;
Based on the digital image data to be corrected, a second data creation means for creating a second cumulative histogram in which the number of pixels corresponding to each gradation is accumulated from the gradation on the lower stage side;
A first comparison procedure for comparing the cumulative number of pixels of the lowest gradation of the second cumulative histogram with the cumulative number of pixels of the lowest gradation of the first cumulative histogram;
As a result of the comparison, if the cumulative number of pixels of the lowest gradation of the first cumulative histogram is larger, the lowest gradation of the second cumulative histogram is counted up by one step and the cumulative pixel of the lowest gradation of the second cumulative histogram is again counted. A second contrasting procedure for comparing the number and the cumulative number of pixels of the lowest gradation of the first cumulative histogram;
As a result of the above comparison, the cumulative number of pixels of the lowest gradation of the second cumulative histogram matches the cumulative number of pixels of the lowest gradation of the first cumulative histogram, or the cumulative number of pixels of the lowest gradation of the second cumulative histogram is greater The image conversion parameter having the lowest gradation of the second cumulative histogram as the input value and the lowest gradation of the first cumulative histogram as the output value is set, and the lowest gradation of the first cumulative histogram is counted up by one step. Parameter setting procedure,
An image conversion parameter setting device comprising: parameter calculation means for calculating an image conversion parameter by repeating the above procedure until an image conversion parameter having all gradations of the first cumulative histogram as output values is obtained .
請求項1ないし4のいずれか1項記載の画像変換パラメータ設定方法をコンピュータに実行させるための画像変換パラメータ設定プログラム。  An image conversion parameter setting program for causing a computer to execute the image conversion parameter setting method according to any one of claims 1 to 4. 請求項6記載の画像処理プログラムをコンピュータにて読み取り可能に記録してなることを特徴とする画像変換パラメータ設定プログラムを記録した記録媒体。  A recording medium recording an image conversion parameter setting program, wherein the image processing program according to claim 6 is recorded so as to be readable by a computer.
JP2001322788A 2001-10-19 2001-10-19 Image conversion parameter setting method, image conversion parameter setting device, image conversion parameter setting program, and recording medium on which image conversion parameter setting program is recorded Expired - Lifetime JP3823803B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001322788A JP3823803B2 (en) 2001-10-19 2001-10-19 Image conversion parameter setting method, image conversion parameter setting device, image conversion parameter setting program, and recording medium on which image conversion parameter setting program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001322788A JP3823803B2 (en) 2001-10-19 2001-10-19 Image conversion parameter setting method, image conversion parameter setting device, image conversion parameter setting program, and recording medium on which image conversion parameter setting program is recorded

Publications (2)

Publication Number Publication Date
JP2003134341A JP2003134341A (en) 2003-05-09
JP3823803B2 true JP3823803B2 (en) 2006-09-20

Family

ID=19139771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001322788A Expired - Lifetime JP3823803B2 (en) 2001-10-19 2001-10-19 Image conversion parameter setting method, image conversion parameter setting device, image conversion parameter setting program, and recording medium on which image conversion parameter setting program is recorded

Country Status (1)

Country Link
JP (1) JP3823803B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005202469A (en) * 2004-01-13 2005-07-28 Fuji Xerox Co Ltd Image processor, image processing method and program
JP4285290B2 (en) 2004-03-22 2009-06-24 富士ゼロックス株式会社 Image processing apparatus, image processing method, and program
JP4708866B2 (en) * 2004-06-17 2011-06-22 富士フイルム株式会社 Lookup table creation device and method, and lookup table creation program
JP4967866B2 (en) * 2007-07-06 2012-07-04 富士ゼロックス株式会社 Image forming apparatus
JP4967867B2 (en) * 2007-07-06 2012-07-04 富士ゼロックス株式会社 Image forming apparatus and image processing apparatus

Also Published As

Publication number Publication date
JP2003134341A (en) 2003-05-09

Similar Documents

Publication Publication Date Title
JP4081219B2 (en) Image processing method and image processing apparatus
US7289664B2 (en) Method of detecting and correcting the red eye
JP3823803B2 (en) Image conversion parameter setting method, image conversion parameter setting device, image conversion parameter setting program, and recording medium on which image conversion parameter setting program is recorded
US20040184672A1 (en) Image processing method and apparatus for correcting photographic images
JP3823865B2 (en) Image processing method, image processing program, and recording medium on which image processing program is recorded
JP2001218015A (en) Picture processing method and picture processor
JP2000011188A (en) Method for processing image and device therefor
JPH11191871A (en) Image processor
US6560374B1 (en) Image processing apparatus
JPH11317863A (en) Image processing unit
JP3576809B2 (en) Image processing device
JP2000069277A (en) Image processing unit
JP3794367B2 (en) Image processing method, image processing apparatus, photo processing apparatus, image processing program, and recording medium recording the image processing program
JP2001222710A (en) Device and method for image processing
JP2005122287A (en) Image processing method
JP2001174922A (en) Certificate photograph photographing device, image processor and certificate photograph forming system
JP3929210B2 (en) Image processing method and apparatus
JP3823883B2 (en) Image processing apparatus, image processing method, image processing program, recording medium recording image processing program, and photo printing apparatus
JP3823864B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP3653661B2 (en) Image processing device
JP4154694B2 (en) Film image input device
JP2001245153A (en) Image processing method and apparatus
JP4091220B2 (en) Image processing method and apparatus, and recording medium
JPH11353477A (en) Image processor, image processing method and recording medium recorded with software to execute the method
JP2003263634A (en) Image processing method, image processing program and recording medium with its program recorded

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040909

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060213

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: 20060606

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060619

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: 20100707

Year of fee payment: 4