JP2004140553A - Image processing method, image processor, photo processor, image processing program, and recording medium with image processing program recorded thereon - Google Patents

Image processing method, image processor, photo processor, image processing program, and recording medium with image processing program recorded thereon Download PDF

Info

Publication number
JP2004140553A
JP2004140553A JP2002302751A JP2002302751A JP2004140553A JP 2004140553 A JP2004140553 A JP 2004140553A JP 2002302751 A JP2002302751 A JP 2002302751A JP 2002302751 A JP2002302751 A JP 2002302751A JP 2004140553 A JP2004140553 A JP 2004140553A
Authority
JP
Japan
Prior art keywords
value
correction
color
color component
output gradation
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.)
Granted
Application number
JP2002302751A
Other languages
Japanese (ja)
Other versions
JP3794367B2 (en
Inventor
Koji Kita
北 耕次
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 JP2002302751A priority Critical patent/JP3794367B2/en
Priority to EP03022500A priority patent/EP1411714B1/en
Priority to DE60324515T priority patent/DE60324515D1/en
Priority to US10/687,727 priority patent/US7466857B2/en
Priority to CN 200310101408 priority patent/CN1251479C/en
Publication of JP2004140553A publication Critical patent/JP2004140553A/en
Application granted granted Critical
Publication of JP3794367B2 publication Critical patent/JP3794367B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method or the like whereby the color balance is not damaged even when a density correction is applied to received image data. <P>SOLUTION: The image processing method includes: a step S6 for deciding a maximum value and a minimum value among correction values of each color component for each pixel, obtaining a difference between the minimum value and the correction values of each color component respectively, and obtaining a difference between the maximum value and the minimum value; a step S6 for obtaining a value resulting from dividing the difference between the correction value and the minimum value obtained by each color component by the difference between the maximum value and the minimum value as a color ratio given for each color component; and a step S7 for setting output image data to be a highest output gradation as to a color component whose correction value is greater than the highest output gradation, setting output image data to be a lowest output gradation as to a color component whose correction value is smaller than the lowest output gradation, and setting the output gradation of each color component so that a ratio of the difference from a lowest value matches with the color ratio. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、良質な画像を得るために、CCD(Charge Coupled Device,電荷結合素子)等の撮像素子によって取り込まれたデジタル画像データに対して、画像処理を施す画像処理方法、画像処理装置、写真処理装置、画像処理プログラム、および画像処理プログラムを記録した記録媒体に関するものである。
【0002】
【従来の技術】
従来、写真の焼き付けは、原画像が記録されている写真フィルムに光を照射し、この写真フィルムを透過した光を印画紙上に照射するアナログ露光により行われてきた。また、近年では、写真フィルム上の画像をスキャナ等によって読み取ることによって得られるデジタル画像データや、デジタルカメラによる撮影によって得られる画像データなどに基づいて、青,緑,赤の単色光を印画紙に照射するデジタル露光が活発に行われている。
【0003】
このデジタル露光を行う構成としては、種々のものが提案されているが、その一例として、レーザー光をデジタル画像データに応じて変調させながら印画紙を走査露光する構成がある。このような構成の焼付装置は、青,緑,赤の各色成分のレーザー光を発生する光源を備えており、以下に示す手順で焼き付け動作を行う。まず、入力される色成分ごとのデジタル画像データに基づいて、各色成分のレーザー光が変調される。そして、変調されたレーザー光が、ポリゴンミラー等の偏向器によって主走査方向に偏向され、fθレンズなどの光学系を介して、印画紙上に照射される。そして、これと同時に印画紙を副走査方向に搬送移動させることによって走査露光が行われ、2次元のカラー画像が印画紙上に焼き付けられる。
【0004】
ところで、写真処理の分野において、写真フィルム上の画像をスキャナ等によって読み取ることによって得られる入力時のデジタル画像データは、出力時(モニター表示や焼き付け)のデジタル画像データよりも、階調が豊富(色が深い)に設定されていることが一般的である。例えば、12ビットの入力デジタル画像データ(以下、適宜「入力画像データ」とする)は、8ビットの出力デジタル画像データ(以下、適宜「出力画像データ」とする)にビット変換されるのが一般的である。
【0005】
このように、出力画像データの階調よりも入力画像データの階調のほうが豊富に設定されているのは、ネガフィルムの濃度の表現幅が非常に広く設計されていて、ネガフィルムの持つ幅広い濃度情報を精度よくデジタル画像データに取り込むと共に、出力画像データの階調を印画紙の発色特性に合わせているためである。また、ネガフィルムの濃度の表現幅が非常に広く設計されているのは、露出調整機能を持たないカメラ(例えば、使い捨てカメラ)でも、適正な撮影を可能にして、カメラに関しての素人でも容易に写真撮影を行えるようにするためである。
【0006】
さらに、入力画像データから出力画像データへビット変換する場合、入力画像データの階調の変化をそのまま出力画像データで再現するために、図10(a)に示すような関数を用いて、入力画像データの分布範囲内の階調を、そのまま出力画像データの階調とすることによって、12ビットのデータから8ビットのデータに変換している。
【0007】
一方、デジタル画像データに対して種々の処理を施すことにより、出力画像データから再現される画像の濃度や色深度を補正することが可能である(例えば、特許文献1,特許文献2参照)。ここで、デジタル画像データに施す濃度補正の手法としては様々なものが存在するが、上記関数(以下、「補正用関数」とする)の位置をシフトさせることにより、濃度補正を行う手法が広く知られている。例えば、図10(a)に示す補正用関数から得られる出力画像を全体的に濃くしたい場合、図10(b)に示すように、上記補正用関数をシフトさせることにより上記濃度補正を行う。すなわち、上記関数の位置をシフトさせると、各入力階調から得られる出力階調を調整することができるので、1つの入力画像データから様々な濃度の出力画像データを得ることができる。
【0008】
【特許文献1】
特開平11−331596号公報(公開日 平成11年11月30日)
【0009】
【特許文献2】
特開2002−44422号公報(公開日 平成14年2月8日)
【0010】
【発明が解決しようとする課題】
ところが、上記濃度補正を行うと、図10(b)に示すように、入力画像データの分布範囲内において、とり得る出力階調の範囲を超えた補正値に変換される入力階調が存在することもあり得る。すなわち、図10(b)に示す補正用関数において、太線の箇所に対応する入力階調からは、階調として出力できない。つまり、上記補正用関数をシフトさせることで、ある補正値が最高出力階調を超える場合、該補正値を階調として出力できず、ある補正値が最低出力階調を下回る場合、該補正値を階調として出力できない。
【0011】
したがって、出力可能な階調の範囲より大きな補正値を一律に最高出力階調(8ビットの場合は255)に変換し、出力可能な階調の範囲より小さな補正値を一律に最低出力階調(0)に一律変換(以下、カッティング処理とする)しなければ、デジタル画像データを出力することができない。ここで、上記補正用関数により入力画像データを出力画像データに変換することにより、少なくとも1の色成分のデジタル画像データで上記切り出し処理がなされた場合、各色成分の出力画像データの間でカラーバランスが崩れることがある。
【0012】
例えば、上記補正用関数が、正の比例定数の1次式であって、12ビットの入力画像データ(B,G,R)=(200,250,300)を8ビットの出力画像データへビット変換する場合について説明する。
【0013】
(a)入力階調200が最高出力階調255となるように、上記補正用関数の位置が設定されている場合
この場合、上記補正用関数によって、(b,g,r)=(255,305,355)の補正値を得る。しかし、g=305,r=355は出力可能な階調の範囲を超えているので、g=305,r=355に上記カッティング処理が施される。これにより、出力階調は(B,G,R)=(255,255,255)となる。よって、出力画像データのカラーバランスは崩れる。
【0014】
(b)入力階調250が最高出力階調255となるように、上記補正用関数の位置が設定されている場合
この場合、上記補正用関数によって、(b,g,r)=(205,255,300)の補正値を得る。しかし、r=300は出力可能な階調の範囲を超えているので、r=300に上記カッティング処理が施される。これにより、出力階調は(B,G,R)=(205,255,255)となる。よって、出力画像データのカラーバランスは崩れる。
(c)入力階調300が最高入力階調255となるように、上記補正用関数の位置が設定されている場合
この場合、上記補正用関数によって、(b,g,r)=(155,205,255)の補正値を得る。ここで、各補正値は、出力可能な階調の範囲におさまっているので、上記カッティング処理は行われず、出力階調は(B,G,R)=(155,205,255)となり、カラーバランスが維持される。
【0015】
このように、B,G,Rのうちのいずれか1色以上の入力画像データから得られる補正値について、上記カッティング処理によって最高出力階調または最低出力階調に変換されると、カラーバランスが崩れてしまうという問題が生じる。
【0016】
そこで、本発明は、上記補正用関数の位置を座標上でシフトさせる濃度補正において、出力画像データのカラーバランスが崩れない画像処理方法、画像処理装置、写真処理装置、画像処理プログラム、および画像処理プログラムを記録した記録媒体を提供することにある。
【0017】
【課題を解決するための手段】
本発明の画像処理方法は、上記課題を解決するために、デジタル画像データの入力階調に対する出力階調の補正値を示した補正用関数を座標上でシフトさせることにより濃度補正を行う画像処理方法であって、画素ごとに、各色成分の補正値のなかから、最大値と最小値とを定め、上記各色成分の補正値と上記最小値との差分をそれぞれ求めると共に、上記最大値と最小値との差分を求める第1ステップと、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算した値を、色成分ごとに与えられる色比率として求める第2ステップと、上記補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、上記補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定すると共に、最低値からの差分の比が上記色比率に合うように各色成分の出力階調を設定する第3ステップとを備えることを特徴とする。
【0018】
また、本発明の画像処理装置は、上記課題を解決するために、デジタル画像データの入力階調に対する出力階調の補正値を示した補正用関数を座標上でシフトさせることにより濃度補正を行う画像処理装置であって、画素ごとに、各色成分の補正値のなかから、最大値と最小値とを定め、上記各色成分の補正値と上記最小値との差分をそれぞれ求めると共に、上記最大値と最小値との差分を求める差分演算部と、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算した値を、色成分ごとに与えられる色比率として求める色比率演算部と、上記補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、上記補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定すると共に、最低値からの差分の比が上記色比率に合うように各色成分の出力階調を設定する色保存部とを備えることを特徴とする。
【0019】
上記手順または構成によれば、デジタル画像データの入力階調に対する補正値を示した補正用関数を座標上でシフトさせることにより出力画像の濃度補正を行っている。ここで、上記補正用関数を座標上でシフトさせると、上記補正用関数から得られる色成分ごとの補正値のカラーバランスは維持されるものの、出力階調のとりえる範囲を超えた補正値が得られることもある。
【0020】
そこで、上記手順によれば、画素ごとに、各色成分の補正値のうち、最大値と最小値とを定めている。そして、色成分ごとの補正値と上記最小値との差分をそれぞれ求めている。これにより、各色成分の補正値において、最も低い補正値からの差分を求めることができる。
【0021】
つぎに、上記最大値と最小値との差分を求め、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算している。これにより、各色成分において、最も低い補正値からの差分を比率とした値である色比率を求めることができる。
【0022】
そして、上記補正用関数の補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定する。そして、最低値からの差分の比が上記色比率に合うように他の色成分の出力階調を設定すれば、出力階調のとり得る範囲内で、カラーバランスを維持した出力階調を生成できる。一方、上記補正用関数の補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定する。そして、最低値からの差分の比が上記色比率に合うように他の色成分の出力階調を設定すれば、出力階調のとり得る範囲内で、カラーバランスを維持した出力階調を生成できる。これにより、カラーバランスを維持した濃度補正が可能となる。
【0023】
本発明の画像処理方法は、上記手順に加えて、上記補正値が、少なくとも1の色成分で、最高出力階調よりも大きい場合、最高出力階調と上記最小値との差分に色成分ごとの上記色比率を乗じた値に上記最小値を加算して得られる値を、色成分ごとの出力階調として設定することにより、第3ステップを実行することを特徴としてもよい。
【0024】
上記色比率は、上記最大値と最小値との差分を求め、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算して得られる値である。したがって、各色成分のうち、補正値が最小値に係る色成分に与えられる色比率は0になると共に、補正値が最大値に係る色成分に与えられる色比率は1になる。
【0025】
そこで、上記手順によれば、上記補正値が、少なくとも1の色成分で、最高出力階調よりも大きい場合、最高出力階調と上記最小値との差分に色成分ごとの上記色比率を乗じた値に上記最小値を加算して得られる値を、色成分ごとの出力階調としている。ここで、上記補正値が最大値の色成分については、色比率が1であるので、上記手順で得られる出力階調は最高出力階調と同一値になる。一方、補正値が上記最低値の色成分については、色比率が0であるので、上記手順で得られる出力階調は上記最低値と同一値になる。
【0026】
したがって、上記手順によれば、少なくとも1の色成分で、補正値が最高出力階調より大きい場合に、上記補正値が最大値の色成分については最高出力階調にできると共に、上記補正値が最小値の色成分については該最小値をそのまま出力階調にできる。よって、少なくとも1の色成分で、上記濃度補正による上記補正値が最高出力階調より大きい場合は、該補正値を最高出力階調に設定しつつ、上記色比率に応じたカラーバランスを維持した色成分ごとの出力階調を生成することが可能となる。
【0027】
本発明の画像処理方法は、上記手順に加えて、上記補正値が、少なくとも1の色成分で、最低出力階調よりも低い場合、上記最大値に色成分ごとの上記色比率を乗じて得られる値を、色成分ごとの出力階調に設定することにより、第3ステップを実行することを特徴としてもよい。
【0028】
上記色比率は、上記最大値と最小値との差分を求め、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算して得られる値である。したがって、各色成分の補正値のうち、補正値が最小値に係る色成分に与えられる色比率は0になると共に、補正値が最大値に係る色成分に与えられる色比率は1になる。
【0029】
そこで、上記手順によれば、上記補正値が、少なくとも1の色成分で、最低出力階調よりも低い場合に、上記最大値に色成分ごとの上記色比率を乗じた値を、色成分ごとの出力階調としている。ここで、補正値が最低値の色成分については、上記色比率が0であるので、上記手順で得られる出力階調は0、すなわち最低出力階調と同一値となる。一方、上記補正値が上記最大値の色成分については、色比率が1であるので、上記手順で得られる出力階調は上記最大値と同一値になる。
【0030】
したがって、上記手順によれば、少なくとも1の色成分で、補正値が最低出力階調より小さい場合に、上記補正値が上記最小値の色成分については最低出力階調にできると共に、上記補正値が上記最大値の色成分については該最大値をそのまま出力階調にできる。よって、少なくとも1の色成分で、上記濃度補正による補正値が最低出力階調より小さい場合は、該補正値を最低出力階調に設定しつつ、上記色比率に応じたカラーバランスを維持した色成分ごとの出力階調を生成することが可能となる。
【0031】
本発明の写真処理装置は、上記課題を解決するために、上記画像処理装置と、上記画像処理装置が出力するデジタル画像データに基づいて、印画紙上に画像を再現するプリンタとを備えることを特徴とする。
【0032】
上記構成によれば、上記画像処理装置が出力するデジタル画像データに基づいて、印画紙上に画像を再現している。したがって、写真処理装置の個体差や経時変化に関係なく、カラーバランスの安定した画像を再現することが可能となる。
【0033】
上記画像処理プログラムは、上記課題を解決するために、上記画像処理方法をコンピュータに実行させることを特徴とする。
【0034】
上記コンピュータ読み取り可能な記録媒体は、上記画像処理プログラムを記録したことを特徴とする。
【0035】
【発明の実施の形態】
本発明の実施の一形態について、図面に基づいて説明すれば以下の通りである。
【0036】
本実施の形態に係る写真処理装置は、写真フィルムに記録されている画像を、感光材料としての印画紙上に焼き付けるものであり、図2に示すように、フィルムスキャナ1と、画像処理装置2と、焼付部(プリンタ)3とを備えている。
【0037】
フィルムスキャナ1は、図3に示すように、写真フィルムに光を照射するスキャナ光源21と、上記写真フィルムを搬送するためのフィルムキャリア22と、スキャナ光源21から出射され、上記写真フィルムを透過する光を測光することによって上記写真フィルムに記録された画像を取り込むスキャナユニット23とで構成されている。なお、ここでの写真フィルムはネガフィルムであるものとする。
【0038】
スキャナ光源21は、光を出射するハロゲンランプ24と、熱線吸収フィルタ25と、調光フィルタ26と、ミラー27と、レンズボックス28とを、光の進行方向に沿ってこの順で備えている。また、スキャナユニット23は、スキャナレンズ(ズームレンズ)29と、ミラー30と、3板式のCCD(Charge Coupled Device)31とを、光の進行方向に沿ってこの順で備えている。
【0039】
ここで、フィルムスキャナ1が、上記写真フィルムに記録された画像を取り込む手順を説明する。まず、フィルムキャリア22にて、写真フィルムの任意のコマが支持されると、ハロゲンランプ24から出射された光は、熱線吸収フィルタ25にて熱線成分が除去されて調光フィルタ26に入射し、調光フィルタ26にて調光された後、ミラー27にて進行方向が変えられてレンズボックス28に入射する。レンズボックス28では、入射光がむらのない光に拡散され、この光がフィルムキャリア22にて支持されている写真フィルムの任意のコマに照射される。
【0040】
そして、写真フィルムを透過した光は、スキャナレンズ29にて、ミラー30を介してCCD31の受光面を露光するような光に変換された後、ミラー30にて進行方向を変えられてCCD31の受光面に入射する。これにより、CCD31は、写真フィルムの任意のコマにおける色成分(青、緑、赤)ごとのアナログ画像データ(アナログの電気信号)を取得できる。これにより、写真フィルムに記録されている画像のアナログ画像データが色成分ごとに得られることになる。そして、フィルムスキャナ1は、上記アナログ画像データを以下に記す画像処理装置2へ送信する。
【0041】
画像処理装置2は、上記アナログ画像データをデジタル画像データに変換し、各画素の色成分ごとのデジタル画像データに画像処理を行うものである。なお、画像処理装置2の詳細な構成については後述する。また、画像処理装置2は、写真焼付装置に組み込まれたマイクロプロセッサおよび/またはDSP(Digital Signal Processor)などによって構成されてもよいし、装置の外部に設けられたPC(Personal Computer)によって構成されてもよい。また、画像処理装置2は、フィルムスキャナ1から送られてきた画像データを一時的に格納するRAM(Random Access Memory),ROM(Read Only Memory)等のメモリ(図示せず)を備えている。
【0042】
焼付部(プリンタ)3は、画像処理装置2にて出力された色成分ごとのデジタル画像データに基づいて光変調素子の各画素を駆動することにより、印画紙を焼き付け、画像を生成するためのものである。上記の光変調素子としては、例えばPLZT露光ヘッド、DMD(Digital Micromirror Device)、LCD(液晶表示装置)、LCS(液晶シャッタ)、LED(Light Emitting Diode)パネル、レーザー、FOCRT(Fiber Optic Cathode Ray Tube)、CRTが挙げられる。
【0043】
次に、画像処理装置2について説明する。画像処理装置2は、図4に示すように、A/D(Analog to Digital)変換部4、対数変換部5、濃度補正部6、差分・比率演算部7、色保存部8から構成される。
【0044】
A/D変換部4は、フィルムスキャナ1から送られてきた色成分ごとのアナログ画像データに対して標本化および量子化を行うことにより、色成分ごとのデジタル画像データ(デジタルの電気信号)を出力し、これを対数変換部5へ送信するブロックである。なお、本実施の形態においては、ここで出力されるデジタル画像データは、16ビットのデジタルデータ(0〜65535階調)であるが、ビット数はこれに限定されるものではない。
【0045】
対数変換部5は、A/D変換部4から送られてきた色成分ごとの16ビットのデジタル画像データに対数変換処理を施し、色成分ごとの12ビットのデジタル画像データを出力するためのブロックである。ここで、対数変換処理とは、図5に示す露光濃度特性曲線が記憶されたLUT(ルックアップテーブル,補正演算装置)を用いて、デジタル画像データのグラデーションを調整する処理をいう。また、ネガフィルムから取り込まれたデジタル画像データにあっては、上記対数変換処理により、ネガフィルム上の画像の明暗と、印画紙上の画像の明暗とを一致させることができる。なお、ここでは、16ビットのデジタル画像データが入力して、12ビットのデジタルが出力しているが、デジタル画像データのビット数はこれに限定されるものではない。
【0046】
濃度補正部6は、対数変換部5から送られてきた色成分ごとの12ビットのデジタル画像データに濃度補正処理を施し、8ビットのデジタル画像データを出力するためのブロックである。ここで、濃度補正処理とは、図6(a)に示す補正用関数を用いて、入力画像データの分布の範囲内の各入力階調(例えば、2000〜2500)に対応する出力階調の補正値を調整することにより、印画紙上に再現される画像の濃度を補正する処理をいう。具体的には、オペレータからの入力指示により、図6(b)に示すように、上記補正用関数の位置をシフトさせることにより、デジタル画像データの各入力階調に対する各出力階調の補正値を調整する。これにより、シフトした階調分だけ、各出力階調の濃度を調整することができる。なお、濃度補正部6において、デジタル画像データのビット数を8ビットにまで変換しているのは、印画紙の感光特性にあわせた濃度幅でデジタル画像データを出力するためである。ただし、出力画像データのビット数は8ビットに限定されるものではない。
【0047】
また、本実施の形態における濃度補正処理では、上記補正用関数をシフトさせ、各入力階調に対する各出力階調の補正値を調整することにより行われている。したがって、シフト後の補正用関数の位置、または入力画像データの分布範囲内における画素値によっては、出力階調のとり得る範囲(0〜255)におさまらない補正値が得られることもあり得る(図6(b)の太線参照)。そこで、本実施の形態では、濃度補正部6が、少なくとも1の色成分で上記補正用関数によってこのような補正値が得られる画素を不適正画素と判断している。
【0048】
さらに、濃度補正部6は、不適正画素において、上記補正用関数によって得られた、出力階調のとり得る範囲におさまらない補正値を最高出力階調または最低出力階調に変換する(以下、この処理を「カッティング処理」とする)。具体的には、濃度補正部6は、上記補正用関数から得られた256以上の補正値を最高出力階調である255に変換し、上記補正用関数から得られた−1以下の補正値を最低出力階調である0に変換する。なお、このようなカッティング処理が行われた場合、その画素のカラーバランスは崩れることになる。例えば、入力階調(B,G,R)=(250,150,50)に対し、上記補正用関数から得られる補正値が(b,g,r)=(300,200,100)の場合、上記カッティング処理によって得られる値は(B,G,R)=(255,200,100)となる。この場合、上記補正用関数によって得られる値のカラーバランスは崩れていないものの、カッティング処理により得られる値のカラーバランスは崩れている。なお、本実施の形態では、上記カッティング処理を行っているが、上記カッティング処理は本発明に必ずしも必要なものではない。
【0049】
差分・比率演算部(差分演算部,比率演算部)7は、濃度補正部6によって検出された不適正画素に関し、上記補正用関数によって画素ごとに得られた各色成分の補正値のうち、最大値と最小値とを定める。そして、差分・比率演算部7は、上記不適正画素に関し、上記最大値と最小値との差分および、上記補正用関数により得られた補正値と上記最小値との差分を色成分ごとに求めると共に、上記各差分から色比率を求めるブロックである。なお、上記色比率とは、色保存部8において、不適正画素に対してカラーバランスを調整する処理を行うのに用いられる比率である。また、上記各差分を求めるブロックと上記色比率を求めるブロックとを別々に構成していても構わない。
【0050】
色保存部8は、上記不適正画素に対して、カラーバランスを維持した出力階調を生成し、8ビットの出力画像データを出力するブロックである。すなわち、上記カッティング処理を行うとカラーバランスが崩れてしまう不適正画素に対し、色保存部8は、カラーバランスが維持された色成分ごとのデジタル画像データ(8ビット)を生成する。
【0051】
つぎに、画像処理装置2によって実行される本実施の形態に係る画像処理の手順を図1に示すフローチャートに基づいて説明する。まず、フィルムスキャナ1は、写真フィルムから取り込んだ色成分ごとのアナログ画像データを画像処理装置2へ送信する。つぎに、A/D変換部4は、画像処理装置2に取り込まれた上記色成分ごとのアナログ画像データを、色成分ごとのデジタル画像データに変換する(S1)。そして、A/D変換部4は、上記色成分ごとのデジタル画像データ(16ビットのデータ)を対数変換部5に送信する。ここで、対数変換部5は、上記色成分ごとのデジタル画像データに対数変換処理を施す(S2)と共に、上記色成分ごとのデジタル画像データを12ビットのデータとして濃度補正部6へ送信する。
【0052】
さらに、濃度補正部6は、対数変換部5から送られてきた上記色成分ごとのデジタル画像データに上記濃度補正処理を施す(S3)。そして、濃度補正部6は、補正用関数により得られた補正値が、少なくともいずれか1の色成分で、出力階調の範囲(0〜255)におさまっていない画素を不適正画素と判断する(S4)。つぎに、濃度補正部6は、不適正画素に対して、上記カッティング処理を実行する(S5)。
【0053】
つぎに、差分・比率演算部7は、濃度補正部6により判断された不適正画素に関し、上記補正用関数から得られた各色成分の補正値の最大値と最小値との差分および、各色成分の補正値と上記最小値との差分を色成分ごとに求めると共に、これらの差分から色成分ごとの色比率を求める(S6)。そして、色保存部8は、不適正画素に関し、上記補正用関数から得られた各色成分の補正値および上記色比率を用いて、出力階調を演算し、色成分ごとのデジタル画像データを出力する(S7)。これにより、不適正画素について、カラーバランスの整ったデジタル画像データが得られることになる。なお、S4ないしS7における処理手順の詳細については、後に詳述する。
【0054】
その後、画像処理装置2は、濃度補正処理、カラーバランスの調整処理が行われた色成分ごとのデジタル画像データを写真焼付装置3に送信する。そして、写真焼付装置3は、画像処理装置2から送られてきた色成分ごとのデジタル画像データに基づいて、印画紙上に画像を焼き付ける。以上のような一連の処理によって、本実施の形態に係る画像処理が終了する。
【0055】
つぎに、S4ないしS7における処理手順の詳細を説明する。まず、濃度補正処理後の色成分ごとのデジタル画像データから不適正画素を検出する手順(S4)を説明する。本実施の形態においては、写真フィルムが表現できる濃度幅でデジタル画像データを入力すると共に、印画紙の感光特性にあわせた濃度幅でデジタル画像データを出力するために、上記濃度補正処理においては、12ビットのデジタル画像データを8ビットのデジタル画像データに変換している。
【0056】
さらに、上記濃度補正処理において、入力画像データの階調の変化をそのまま出力画像データで再現するために、図6(a)(b)に示す補正用関数を用いて、入力画像データの階調のとり得る範囲の一部をそのまま出力することによって、12ビットのデータから8ビットのデータに変換している。したがって、本実施の形態における濃度補正処理では、8ビットのデジタル画像データを出力するので、表現可能な出力階調の幅は0〜255である。
【0057】
一方、上記濃度補正処理とは、図6(b)に示すように、上記補正用関数の位置をシフトさせることにより、各入力階調に対する各出力階調の各補正値を調整するものである。したがって、上記補正用関数の位置、または入力画像データの分布範囲内における画素値によっては、補正用関数から得られる補正値が256以上になることや、−1以下になることもある。すなわち、上記補正用関数から得られる補正値が出力階調のとりえる範囲を超えることもあり得る。そこで、濃度補正部6は、少なくともいずれか1の色成分で、上記補正用関数から得られる補正値が8ビットの出力階調の幅におさまらない画素を不適正画素として検出している。
【0058】
つぎに、上記不適正画素に対して実行されるカッティング処理(S5)の詳細について説明する。上記濃度処理部6における補正用関数から得られた補正値が出力階調のとり得る範囲におさまらない場合、その補正値をそのままデジタル画像データとして出力することができない。したがって、このような補正値を最高出力階調または最低出力階調に変換してから、デジタル画像データとして出力する必要がある。具体的には、濃度補正部6は、上記補正用関数から得られた補正値が256以上の場合、その値を最高出力階調である255に変換し、上記補正用関数から得られた補正値が−1以下の場合、その値を最低出力階調である0に変換する。
【0059】
したがって、少なくとも1の色成分において、カッティング処理がなされた不適正画素は、そのカラーバランスを崩すことになる。例えば、上記濃度補正部6における補正用関数から(b,g,r)=(200,250,300)の補正値が得られたとすると、r=300が上記濃度補正部6の出力階調の範囲を超えている。この場合、上記カッティング処理によって、(B,G,R)=(200,250,255)の値が得られ、該カッティング処理によってカラーバランスが崩れることがわかる。
【0060】
つぎに、不適正画素に関し、濃度補正処理における補正用関数から得られた、色成分ごとの値の最大値と最小値との差分および、各色成分の補正値と上記最小値との差分を求めると共に、これらの差分から色比率を求める手順(S6)を説明する。差分・比率演算部7は、各不適正画素において、以下に示す演算を実行する。
【0061】
入力階調(B,G,R)に対して、上記濃度補正処理を行うことにより、補正用関数から得られた補正値を(b,g,r)とすると共に、(b,g,r)のうちの最小値をminとして、最大値をmaxとすると、
b´=b−min
g´=g−min
r´=r−min
max´=max−min
を演算する。
【0062】
そして、各不適正画素において色成分ごとに与えられる色比率を(b´´,g´´,r´´)とすると、
b´´=b´÷max´
g´´=g´÷max´
r´´=r´÷max´
を演算する。
【0063】
つぎに、色保存部8による処理の詳細について説明する(S8)。色保存部8は、上記各不適正画素に関して、以下の演算を実行することにより、色成分ごとのデジタル画像データを算出する(以下、「色保存処理」とする)。色保存処理から得られるデジタル画像データを(B´,G´,R´)とすると、少なくとも1の色成分で、上記補正用関数から得られた補正値が最高出力階調より高い不適正画素に対しては、
B´=(255−min)×b´´+min
G´=(255−min)×g´´+min
R´=(255−min)×r´´+min
により、色成分ごとの出力階調を演算する。
【0064】
一方、少なくとも1の色成分で、上記補正用関数から得られた補正値が最低出力階調より低い不適正画素に対しては、
B´=max×b´´
G´=max×g´´
R´=max×r´´
により、色成分ごとの出力階調を演算する。
【0065】
〔実施例1〕
入力階調が(B,G,R)=(150,200,250)である画素Aに対して、上記濃度補正処理を行うことによって、上記補正用関数から得られた補正値が(b,g,r)=(200,250,300)となるものとする。ここで、濃度補正部6は8ビットのデジタル画像データを出力するので、最高出力階調は255である。したがって、補正用関数から得られた補正値におけるr=300は、出力階調のとりえる範囲を超えている。よって、濃度補正部6は、画素Aを不適正画素として検出すると共に、画素Aのr=300にカッティング処理を施して得られる値は(B,G,R)=(200,250,250)となる。
【0066】
つぎに、差分・比率演算部7は、画素Aについて、b´,g´,r´およびmax´を算出する。上記補正用関数から得られた補正値であるb,g,rのうち、最低値はb=200であり、最高値はr=300であるから、
b´=b−min=200−200=0
g´=g−min=250−200=50
r´=r−min=300−200=100
max´=max−min=300−200=100
となる。
【0067】
さらに、差分・濃度演算部7は、画素Aについて、b´´,g´´,r´´を算出する。
b´´=b´÷max´=0÷100=0
g´´=g´÷max´=50÷100=0.5
r´´=r´÷max´=100÷100=1.0
また、補正用関数から得られた補正値のうち、r=300は最高出力階調より高い値である。したがって、色保存部8は、以下の演算により、画素Aの出力階調を算出する。なお、小数点以下は四捨五入する。
B´=(255−min)×b´´+min=(255−200)×0+200=200
G´=(255−min)×g´´+min=(255−200)×0.5+200=228
R´=(255−min)×r´´+min=(255−200)×1.0+200=255となる。
【0068】
ここで、画素Aの入力階調は(B,G,R)=(150,200,250)である一方、濃度補正処理における補正用関数から得られる補正値は(b,g、r)=(200,250,300)であり、カッティング処理により得られる値は(B,G,R)=(200,250,255)である。
【0069】
ここで、濃度補正処理における補正関数から得られる値のカラーバランスは崩れていない一方で、カッティング処理によって得られる値のカラーバランスは崩れている。しかしながら、色補正部8により得られる画素Aの出力階調は(B´,G´,R´)=(200,228,255)となり、カッティング処理から得られた値よりもカラーバランスが崩れていないことがわかる。
【0070】
〔実施例2〕
入力階調が(B,G,R)=(0,50,100)である画素Cに対して、上記濃度補正処理を行うことによって、上記補正用関数から得られた補正値が(b,g,r)=(−50,0,100)となるものとする。ここで、濃度補正部6が出力するデジタル画像データの最低出力階調は0である。したがって、補正用関数から得られた補正値におけるb=−50は、出力階調のとりえる範囲を超えている。よって、濃度補正部6は、画素Cを不適正画素として検出すると共に、画素Cのb=−50にカッティング処理を施して得られる値は(B,G,R)=(0,0,100)となる。
【0071】
つぎに、差分・比率演算部7は、画素Cについて、b´,g´,r´およびmax´を算出する。上記補正用関数から得られた補正値であるb,g,rのうち、最低値はb=−50であり、最高値はr=100であるから、
b´=b−min=−50−(−50)=0
g´=g−min=0−(−50)=50
r´=r−min=100−(−50)=150
max´=max−min=100−(−50)=150
となる。
【0072】
さらに、差分・比率演算部7は、画素Cについて、b´´,g´´,r´´を算出する。
b´´=b´÷max´=0÷150=0
g´´=g´÷max´=50÷150=0.33…
r´´=r´÷max´=150÷150=1.0
また、補正用関数から得られた補正値のうち、b=−50はより低い値である。したがって、色保存部8は、以下の演算により、画素Cの出力階調を算出する。なお、小数点以下は四捨五入する。
B=max×b´´=100×0=0
G=max×g´´=100×0.33…=33
R=max×r´´=100×1.0=100
となる。
【0073】
ここで、画素Cの入力階調は(B,G,R)=(0,50,100)である一方、濃度補正処理における補正用関数から得られる補正値は(b,g、r)=(−50,0,100)であり、カッティング処理により得られる値は(B,G,R)=(0,0,100)である。ここで、濃度補正処理における補正用関数から得られる補正値のカラーバランスは崩れていない一方で、カッティング処理によって得られる値のカラーバランスは崩れている。しかしながら、色補正部8により得られる画素Cの出力階調は(B´,G´,R´)=(0,33,100)となり、カッティング処理から得られた出力階調よりもカラーバランスが崩れていないことがわかる。
【0074】
以上のように、上記画像処理によれば、デジタル画像データの入力階調に対する補正値を示した補正用関数を座標上でシフトさせることにより出力画像の濃度補正を行っている。ここで、上記補正用関数を座標上でシフトさせると、上記補正用関数から得られる色成分ごとの補正値のカラーバランスは維持されるものの、出力階調のとりえる範囲を超えた補正値が得られることもある。
【0075】
そこで、上記手順によれば、画素ごとに、上記補正用関数から得られた各色成分の補正値のうち、最大値と最小値とを定めている。そして、色成分ごとの補正値と上記最小値との差分をそれぞれ求めている。これにより、各色成分の補正値において、最も低い補正値からの差分を求めることができる。
【0076】
つぎに、上記最大値と最小値との差分を求め、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算している。これにより、各色成分において、最も低い補正値からの差分を比率とした値である色比率を求めることができる。
【0077】
さらに、S7においては、補正用関数から得られた各色成分の補正値と上記色比率とから、各色成分のデジタル画像データを出力している(出力階調の算出)。この結果、上記補正用関数の補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、最低値からの差分の比が上記色比率に合うように他の色成分の出力階調を設定することになる。これにより、出力階調のとり得る範囲内で、カラーバランスを維持した出力階調を生成できる。一方、上記補正用関数の補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定し、最低値からの差分の比が上記色比率に合うように他の色成分の出力階調を設定することとなる。これにより、出力階調のとり得る範囲内で、カラーバランスを維持した出力階調を生成できる。よって、カラーバランスを維持した濃度補正が可能となる。
【0078】
また、上記色比率は、上記最大値と最小値との差分を求め、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算して得られる値である。したがって、各色成分のうち、補正値が最小値の色比率は0になると共に、補正値が最大値の色比率は1になる。
【0079】
そこで、上記手順によれば、補正値が、少なくとも1の色成分で、最高出力階調よりも大きい場合、最高出力階調と上記最小値との差分に色成分ごとの上記色比率を乗じた値に上記最小値を加算して得られる値を、色成分ごとの出力階調としている。ここで、上記補正値が最大値の色成分については、色比率が1であるので、上記手順で得られる出力階調は最高出力階調と同一値になる。一方、補正値が上記最低値の色成分については、色比率が0であるので、上記手順で得られる出力階調は上記最低値と同一値になる。
【0080】
したがって、上記手順によれば、少なくとも1の色成分で、補正値が最高出力階調より大きい場合に、上記補正値が最大値の色成分については最高出力階調にできると共に、上記補正値が最小値の色成分については該最小値をそのまま出力階調にできる。よって、少なくとも1の色成分で、上記濃度補正による上記補正値が最高出力階調より大きい場合は、該補正値を最高出力階調に設定しつつ、上記色比率に応じたカラーバランスを維持した色成分ごとの出力階調を生成することが可能となる。
【0081】
さらに、上記手順によれば、上記補正値が、少なくとも1の色成分で、最低出力階調よりも低い場合に、上記最大値に色成分ごとの上記色比率を乗じた値を、色成分ごとの出力階調としている。ここで、補正値が最低値の色成分については、上記色比率が0であるので、上記手順で得られる出力階調は0、すなわち最低出力階調と同一値となる。一方、上記補正値が上記最大値の色成分については、色比率が1であるので、上記手順で得られる出力階調は上記最大値と同一値になる。
【0082】
したがって、上記手順によれば、少なくとも1の色成分で、補正値が最低出力階調より小さい場合に、上記補正値が上記最小値の色成分については最低出力階調にできると共に、上記補正値が上記最大値の色成分については該最大値をそのまま出力階調にできる。よって、少なくとも1の色成分で、上記濃度補正による補正値が最低出力階調より小さい場合は、該補正値を最低出力階調に設定しつつ、上記色比率に応じたカラーバランスを維持した色成分ごとの出力階調を生成することが可能となる。
【0083】
ここで、上記不適正画素に関して、色保存部8によるカラーバランスを整える処理がなされた画像を図8(a)(b)(c)に示す。さらに、上記不適正画素に関して、色保存部8による処理を行わずに、上記カッティング処理がなされた画像を図9(a)(b)(c)に示す。なお、図8(a)と図9(a)とでは同一の濃度補正処理(ハイライト調)がなされたものであり、図8(b)と図9(b)とでは同一の濃度補正処理(ハーフトーン)がなされたものであり、図8(c)と図9(c)とでは同一の濃度補正処理(シャドウ調)がなされている。図9(a)(b)(c)によれば、画像が濃くなるに従って、花びらの黄色部分やディテールが薄くなるという不具合が生じることがわかる。しかし、図8(a)(b)(c)によれば、そのような不具合は生じないことがわかる。
【0084】
なお、上記補正用関数では、1次式(直線)によりデジタル画像データの入力階調を出力階調に変換しているが、1次式に限定されるものではなく、例えば図7に示すガンマカーブであっても構わない。
【0085】
ところで、以上の実施の形態で説明した処理は、プログラムで実現することが可能である。このプログラムはコンピュータで読み取り可能な記録媒体に格納されている。本発明では、この記録媒体として、画像処理装置2で処理が行われるために必要な図示していないメモリ(例えばROMそのもの)であってもよいし、また図示していないが外部記憶装置としてプログラム読み取り装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであっても構わない。
【0086】
上記いずれの場合においても、格納されているプログラムはマイクロプロセッサ(図示せず)のアクセスにより実行される構成であってもよいし、格納されているプログラムを読み出し、読み出したプログラムを図示されていないプログラム記憶エリアにダウンロードすることにより、そのプログラムが実行される構成であってもよい。この場合、ダウンロード用のプログラムは予め本体装置に格納されているものとする。
【0087】
ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリーカードを含む)/光カードのカード系、あるいはマスクROM、EPROM、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する媒体であってもよい。
【0088】
最後に、上述した実施の形態は、本発明の範囲を限定するものではなく、本発明の範囲内で種々の変更が可能である。
【0089】
【発明の効果】
本発明の画像処理方法は、以上のように、デジタル画像データの入力階調に対する出力階調の補正値を示した補正用関数を座標上でシフトさせることにより濃度補正を行う画像処理方法であって、画素ごとに、各色成分の補正値のなかから、最大値と最小値とを定め、上記各色成分の補正値と上記最小値との差分をそれぞれ求めると共に、上記最大値と最小値との差分を求める第1ステップと、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算した値を、色成分ごとに与えられる色比率として求める第2ステップと、上記補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、上記補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定すると共に、最低値からの差分の比が上記色比率に合うように各色成分の出力階調を設定する第3ステップとを備えることを特徴とする。
【0090】
また、本発明の画像処理装置は、上記課題を解決するために、デジタル画像データの入力階調に対する出力階調の補正値を示した補正用関数を座標上でシフトさせることにより濃度補正を行う画像処理装置であって、画素ごとに、各色成分の補正値のなかから、最大値と最小値とを定め、上記各色成分の補正値と上記最小値との差分をそれぞれ求めると共に、上記最大値と最小値との差分を求める差分演算部と、色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算した値を、色成分ごとに与えられる色比率として求める色比率演算部と、上記補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、上記補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定すると共に、最低値からの差分の比が上記色比率に合うように各色成分の出力階調を設定する色保存部とを備えることを特徴とする。
【0091】
これにより、上記補正用関数の補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、最低値からの差分の比が各色成分間の差分の比が上記色比率に合うように他の色成分の出力階調を設定すれば、出力階調のとり得る範囲内で、カラーバランスを維持した出力階調を生成できる。一方、上記補正用関数の補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定し、最低値からの差分の比が上記色比率に合うように他の色成分の出力階調を設定すれば、出力階調のとり得る範囲内で、カラーバランスを維持した出力階調を生成できる。したがって、カラーバランスを維持した濃度補正が可能となる。
【0092】
本発明の画像処理方法は、上記手順に加えて、上記補正値が、少なくとも1の色成分で、最高出力階調よりも大きい場合、最高出力階調と上記最小値との差分に色成分ごとの上記色比率を乗じた値に上記最小値を加算して得られる値を、色成分ごとの出力階調として設定することにより、第3ステップを実行することを特徴としてもよい。
【0093】
これにより、少なくとも1の色成分で、上記濃度補正による上記補正値が最高出力階調より大きい場合は、該補正値を最高出力階調に設定しつつ、上記色比率に応じたカラーバランスを維持した色成分ごとの出力階調を生成することが可能となる。
【0094】
本発明の画像処理方法は、上記手順に加えて、上記補正値が、少なくとも1の色成分で、最低出力階調よりも低い場合、上記最大値に色成分ごとの上記色比率を乗じて得られる値を、色成分ごとの出力階調に設定することにより、第3ステップを実行することを特徴としてもよい。
【0095】
これにより、少なくとも1の色成分で、上記濃度補正による補正値が最低出力階調より小さい場合は、該補正値を最低出力階調に設定しつつ、上記色比率に応じたカラーバランスを維持した色成分ごとの出力階調を生成することが可能となる。
【0096】
本発明の写真処理装置は、上記課題を解決するために、上記画像処理装置と、上記画像処理装置が出力するデジタル画像データに基づいて、印画紙上に画像を再現するプリンタとを備えることを特徴とする。
【0097】
上記構成によれば、上記画像処理装置が出力するデジタル画像データに基づいて、印画紙上に画像を再現している。したがって、写真処理装置の個体差や経時変化に関係なく、カラーバランスの安定した画像を再現することが可能となる。
【0098】
上記画像処理プログラムは、上記課題を解決するために、上記画像処理方法をコンピュータに実行させることを特徴とする。
【0099】
上記コンピュータ読み取り可能な記録媒体は、上記画像処理プログラムを記録したことを特徴とする。
【図面の簡単な説明】
【図1】本発明に係る画像処理方法の処理の流れを示したフローチャートである。
【図2】上記画像処理方法が実現される画像出力システムの概略構成を示したブロック図である。
【図3】上記画像出力システムに構成されているフィルムスキャナの概略構成を示した説明図である。
【図4】上記画像出力システムに構成されている画像処理装置の概略構成を示したブロック図である。
【図5】露光濃度特性曲線を示したグラフである。
【図6】図6(a)は、濃度補正部に設定されている補正用関数を示したグラフであり、図6(b)は、図6(a)の補正用関数の位置をシフトさせたグラフである。
【図7】ガンマカーブを示したグラフである。
【図8】図8は、フィルムスキャナが取り込んだデジタル画像データに対し、色保存部によってカラーバランスが調整された画像であって、図8(a)は、ハイライト調で濃度補正処理がなされた画像を示し、図8(b)は、ハーフトーンで濃度補正処理がなされた画像を示し、図8(c)は、シャドウ調で濃度補正処理がなされた画像を示す。
【図9】図9は、フィルムスキャナが取り込んだデジタル画像データに対し、カッティング処理を施した画像であって、図9(a)は、ハイライト調で濃度補正処理がなされた画像を示し、図9(b)は、ハーフトーンで濃度補正処理がなされた画像を示し、図9(c)は、シャドウ調で濃度補正処理がなされた画像を示す。
【図10】図10(a)は、12ビットのデジタル画像データを8ビットのデジタル画像データに変換する補正用関数を示したグラフであり、図10(b)は、図10(a)の補正用関数の位置をシフトさせたグラフである。
【符号の説明】
1  フィルムスキャナ
2  画像処理装置
3  焼付部(プリンタ)
4  A/D変換部
5  対数変換部
6  濃度補正部
7  差分・比率演算部(差分演算部,比率演算部)
8  色保存部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention provides an image processing method, an image processing apparatus, and an image processing method for performing image processing on digital image data captured by an imaging device such as a CCD (Charge Coupled Device) in order to obtain a high-quality image. The present invention relates to a processing device, an image processing program, and a recording medium storing the image processing program.
[0002]
[Prior art]
Conventionally, printing of a photograph has been performed by irradiating a photographic film on which an original image is recorded with light, and irradiating the photographic paper with light transmitted through the photographic film, by analog exposure. In recent years, monochromatic light of blue, green, and red is printed on photographic paper based on digital image data obtained by reading an image on a photographic film by a scanner or image data obtained by photographing with a digital camera. Digital exposure for irradiation is being actively performed.
[0003]
Various configurations for performing the digital exposure have been proposed. As an example, there is a configuration in which a photographic paper is scanned and exposed while modulating a laser beam according to digital image data. The printing apparatus having such a configuration includes a light source that generates laser light of each of blue, green, and red color components, and performs a printing operation in the following procedure. First, laser light of each color component is modulated based on digital image data for each input color component. Then, the modulated laser light is deflected in the main scanning direction by a deflector such as a polygon mirror, and is irradiated onto photographic paper via an optical system such as an fθ lens. At the same time, the photographic printing paper is conveyed and moved in the sub-scanning direction to perform scanning exposure, and a two-dimensional color image is printed on the photographic printing paper.
[0004]
By the way, in the field of photographic processing, digital image data at the time of input obtained by reading an image on a photographic film with a scanner or the like has more gradation than digital image data at the time of output (monitor display or printing) ( In general, the color is set to “deep”. For example, generally, 12-bit input digital image data (hereinafter, appropriately referred to as “input image data”) is bit-converted into 8-bit output digital image data (hereinafter, appropriately referred to as “output image data”). It is a target.
[0005]
As described above, the gradation of the input image data is set more abundantly than the gradation of the output image data because the expression width of the density of the negative film is designed to be very wide, and the wide range of the negative film has This is because the density information is accurately fetched into the digital image data, and the gradation of the output image data is adjusted to the coloring characteristics of the photographic paper. Also, the expression width of the density of the negative film is designed to be very wide, even if the camera does not have an exposure adjustment function (for example, a disposable camera). This is to enable photographing.
[0006]
Further, when performing bit conversion from the input image data to the output image data, in order to reproduce the change in the gradation of the input image data as it is in the output image data, a function as shown in FIG. By converting the gradation within the data distribution range into the gradation of the output image data as it is, the data is converted from 12-bit data to 8-bit data.
[0007]
On the other hand, by performing various processes on digital image data, it is possible to correct the density and color depth of an image reproduced from output image data (for example, see Patent Documents 1 and 2). Here, there are various methods of density correction applied to digital image data, and a method of performing density correction by shifting the position of the function (hereinafter referred to as “correction function”) is widely used. Are known. For example, when it is desired to make the output image obtained from the correction function shown in FIG. 10A overall darker, the density correction is performed by shifting the correction function as shown in FIG. 10B. That is, by shifting the position of the function, the output gradation obtained from each input gradation can be adjusted, so that output image data of various densities can be obtained from one input image data.
[0008]
[Patent Document 1]
JP-A-11-331596 (Published November 30, 1999)
[0009]
[Patent Document 2]
Japanese Patent Application Laid-Open No. 2002-44422 (published on February 8, 2002)
[0010]
[Problems to be solved by the invention]
However, when the density correction is performed, as shown in FIG. 10B, in the distribution range of the input image data, there is an input tone that is converted into a correction value that exceeds the range of possible output tones. It is possible. That is, in the correction function shown in FIG. 10B, an input tone corresponding to a thick line cannot be output as a tone. That is, by shifting the correction function, when a certain correction value exceeds the highest output gradation, the correction value cannot be output as a gradation, and when a certain correction value is lower than the lowest output gradation, the correction value Cannot be output as gradation.
[0011]
Therefore, a correction value larger than the range of outputable gradations is uniformly converted to the highest output gradation (255 in the case of 8 bits), and a correction value smaller than the range of outputable gradations is uniformly set to the lowest output gradation. Unless uniform conversion (hereinafter referred to as cutting processing) is performed on (0), digital image data cannot be output. Here, by converting the input image data into the output image data by the correction function, when the above-described extraction processing is performed on the digital image data of at least one color component, the color balance between the output image data of each color component is obtained. May collapse.
[0012]
For example, the correction function is a linear expression of a positive proportional constant, and converts 12-bit input image data (B, G, R) = (200, 250, 300) into 8-bit output image data. The case of conversion will be described.
[0013]
(A) When the position of the correction function is set so that the input gradation 200 becomes the maximum output gradation 255
In this case, a correction value of (b, g, r) = (255, 305, 355) is obtained by the correction function. However, since g = 305 and r = 355 are beyond the range of gray levels that can be output, the cutting processing is performed on g = 305 and r = 355. Thereby, the output gradation becomes (B, G, R) = (255, 255, 255). Therefore, the color balance of the output image data is lost.
[0014]
(B) When the position of the correction function is set so that the input gradation 250 becomes the maximum output gradation 255
In this case, a correction value of (b, g, r) = (205, 255, 300) is obtained by the correction function. However, since r = 300 is beyond the range of gray levels that can be output, the above cutting process is performed on r = 300. Thus, the output gradation becomes (B, G, R) = (205, 255, 255). Therefore, the color balance of the output image data is lost.
(C) When the position of the correction function is set so that the input gradation 300 becomes the maximum input gradation 255
In this case, a correction value of (b, g, r) = (155, 205, 255) is obtained by the correction function. Here, since each correction value falls within the range of outputable gradations, the above-described cutting process is not performed, and the output gradations are (B, G, R) = (155, 205, 255), and Balance is maintained.
[0015]
As described above, when the correction value obtained from the input image data of one or more of the colors B, G, and R is converted into the highest output gradation or the lowest output gradation by the above-described cutting process, the color balance is improved. There is a problem of collapse.
[0016]
Therefore, the present invention provides an image processing method, an image processing apparatus, a photographic processing apparatus, an image processing program, and an image processing method in which the color balance of output image data is not lost in density correction for shifting the position of the correction function on coordinates. It is to provide a recording medium on which a program is recorded.
[0017]
[Means for Solving the Problems]
In order to solve the above-described problems, the image processing method of the present invention performs image processing for performing density correction by shifting a correction function indicating a correction value of an output gradation with respect to an input gradation of digital image data on coordinates. A method of determining, for each pixel, a maximum value and a minimum value from among the correction values of each color component, obtaining a difference between the correction value of each color component and the minimum value, and obtaining the difference between the maximum value and the minimum value. A first step of calculating a difference between the correction value and the minimum value, and a value obtained by dividing the difference between the correction value and the minimum value obtained for each color component by the difference between the maximum value and the minimum value. In the second step for obtaining the color ratio, for the color component whose correction value is larger than the maximum output gradation, the output image data is set to the maximum output gradation, and for the color component whose correction value is smaller than the minimum output gradation, , Output image data Sets the data to the minimum output gradation, the ratio of the difference from the minimum value, characterized in that it comprises a third step of setting the output gradation of each color component to suit the color ratio.
[0018]
Further, in order to solve the above problem, the image processing apparatus of the present invention performs density correction by shifting a correction function indicating a correction value of an output gradation with respect to an input gradation of digital image data on coordinates. In the image processing apparatus, for each pixel, a maximum value and a minimum value are determined from among correction values of each color component, and a difference between the correction value of each color component and the minimum value is determined, and the maximum value is determined. A difference calculation unit for calculating a difference between the minimum value and the minimum value, and a value obtained by dividing a difference between the correction value and the minimum value obtained for each color component by a difference between the maximum value and the minimum value, for each color component. A color ratio calculation unit for obtaining a given color ratio, and for a color component whose correction value is larger than the highest output gradation, the output image data is set to the highest output gradation, and a color whose correction value is smaller than the lowest output gradation. For output components, Sets the data to the minimum output gradation, the ratio of the difference from the minimum value, characterized in that it comprises a color storage unit that sets the output gradation of each color component to suit the color ratio.
[0019]
According to the above procedure or configuration, the density correction of the output image is performed by shifting the correction function indicating the correction value for the input gradation of the digital image data on the coordinates. Here, if the correction function is shifted on the coordinates, the color balance of the correction value for each color component obtained from the correction function is maintained, but the correction value exceeding the range of the output gradation may be obtained. May be obtained.
[0020]
Therefore, according to the above procedure, the maximum value and the minimum value among the correction values of each color component are determined for each pixel. Then, the difference between the correction value for each color component and the minimum value is obtained. This makes it possible to obtain a difference from the lowest correction value in the correction value of each color component.
[0021]
Next, the difference between the maximum value and the minimum value is obtained, and the difference between the correction value and the minimum value obtained for each color component is divided by the difference between the maximum value and the minimum value. This makes it possible to obtain a color ratio, which is a value in which a difference from the lowest correction value is a ratio for each color component.
[0022]
Then, for the color component whose correction value of the correction function is larger than the highest output gradation, the output image data is set to the highest output gradation. Then, if the output gradation of another color component is set so that the ratio of the difference from the lowest value matches the above-mentioned color ratio, the output gradation which maintains the color balance within the range of the output gradation can be generated. it can. On the other hand, for a color component whose correction value of the correction function is smaller than the lowest output gradation, the output image data is set to the lowest output gradation. Then, if the output gradation of another color component is set so that the ratio of the difference from the lowest value matches the above-mentioned color ratio, the output gradation which maintains the color balance within the range of the output gradation can be generated. it can. This enables density correction while maintaining color balance.
[0023]
In the image processing method according to the present invention, in addition to the above procedure, when the correction value is at least one color component and is larger than a maximum output gradation, a difference between a maximum output gradation and the minimum value is calculated for each color component. The third step may be performed by setting a value obtained by adding the minimum value to a value obtained by multiplying the above color ratio as an output gradation for each color component.
[0024]
The color ratio is obtained by calculating the difference between the maximum value and the minimum value, and dividing the difference between the correction value and the minimum value obtained for each color component by the difference between the maximum value and the minimum value. Value. Accordingly, among the color components, the color ratio given to the color component having the minimum correction value is 0, and the color ratio given to the color component having the maximum correction value is 1.
[0025]
Therefore, according to the above procedure, when the correction value is at least one color component and is larger than the maximum output gradation, the difference between the maximum output gradation and the minimum value is multiplied by the color ratio for each color component. The value obtained by adding the minimum value to the calculated value is used as the output gradation for each color component. Here, as for the color component having the maximum correction value, the color ratio is 1, so that the output gradation obtained by the above procedure has the same value as the maximum output gradation. On the other hand, since the color ratio of the color component having the minimum correction value is 0, the output gradation obtained by the above procedure has the same value as the minimum value.
[0026]
Therefore, according to the above procedure, when the correction value of at least one color component is larger than the maximum output gradation, the color component having the maximum correction value can be set to the maximum output gradation, and the correction value can be set to the maximum output gradation. With respect to the color component having the minimum value, the minimum value can be directly used as the output gradation. Therefore, when the correction value by the density correction is larger than the maximum output gradation for at least one color component, the color balance according to the color ratio is maintained while setting the correction value to the maximum output gradation. An output gradation for each color component can be generated.
[0027]
In the image processing method of the present invention, in addition to the above procedure, when the correction value is at least one color component and is lower than the lowest output gradation, the correction value is obtained by multiplying the maximum value by the color ratio for each color component. The third step may be performed by setting a value to be output as an output gradation for each color component.
[0028]
The color ratio is obtained by calculating the difference between the maximum value and the minimum value, and dividing the difference between the correction value and the minimum value obtained for each color component by the difference between the maximum value and the minimum value. Value. Therefore, among the correction values of the respective color components, the color ratio given to the color component having the minimum correction value is 0, and the color ratio given to the color component having the maximum correction value is 1.
[0029]
Therefore, according to the above procedure, when the correction value is at least one color component and lower than the lowest output gradation, a value obtained by multiplying the maximum value by the color ratio for each color component is calculated for each color component. Output gradation. Here, for the color component having the lowest correction value, the color ratio is 0, so that the output gradation obtained by the above procedure is 0, that is, the same value as the lowest output gradation. On the other hand, since the color ratio of the color component whose correction value is the maximum value is 1, the output gradation obtained by the above procedure has the same value as the maximum value.
[0030]
Therefore, according to the above procedure, when the correction value of at least one color component is smaller than the minimum output gradation, the color component having the minimum correction value can be set to the minimum output gradation, and the correction value can be reduced. However, for the color component having the maximum value, the maximum value can be directly used as the output gradation. Therefore, for at least one color component, when the correction value by the density correction is smaller than the lowest output gradation, the color that maintains the color balance according to the color ratio while setting the correction value to the lowest output gradation is set. It is possible to generate an output gradation for each component.
[0031]
According to another aspect of the present invention, there is provided a photographic processing apparatus including: the image processing apparatus; and a printer that reproduces an image on photographic paper based on digital image data output by the image processing apparatus. And
[0032]
According to the configuration, the image is reproduced on the photographic paper based on the digital image data output by the image processing device. Therefore, it is possible to reproduce an image with a stable color balance irrespective of individual differences and aging of the photographic processing apparatus.
[0033]
The image processing program causes a computer to execute the image processing method in order to solve the above problem.
[0034]
The computer-readable recording medium stores the image processing program.
[0035]
BEST MODE FOR CARRYING OUT THE INVENTION
One embodiment of the present invention will be described below with reference to the drawings.
[0036]
The photographic processing apparatus according to the present embodiment prints an image recorded on a photographic film on photographic paper as a photosensitive material. As shown in FIG. 2, a film scanner 1 and an image processing apparatus 2 And a printing unit (printer) 3.
[0037]
As shown in FIG. 3, the film scanner 1 irradiates light to the photographic film with a scanner light source 21, a film carrier 22 for conveying the photographic film, and is emitted from the scanner light source 21 and transmitted through the photographic film. And a scanner unit 23 for taking in an image recorded on the photographic film by measuring light. The photographic film here is a negative film.
[0038]
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. Further, the scanner unit 23 includes a scanner lens (zoom lens) 29, a mirror 30, and a three-plate type CCD (Charge Coupled Device) 31 in this order along the light traveling direction.
[0039]
Here, a procedure in which the film scanner 1 captures an image recorded on the photographic film will be described. First, when an arbitrary frame of a photographic film is supported by the film carrier 22, the light emitted from the halogen lamp 24 has its heat ray component removed by the heat ray absorption filter 25 and enters the light control filter 26, After being dimmed by the dimming filter 26, the traveling direction is changed by the mirror 27 and the light enters the lens box 28. In the lens box 28, the incident light is diffused into uniform light, and this light is applied to an arbitrary frame of the photographic film supported by the film carrier 22.
[0040]
The light transmitted through the photographic film is converted by the scanner lens 29 into light for exposing the light receiving surface of the CCD 31 via the mirror 30, and then the traveling direction is changed by the mirror 30 to receive the light of the CCD 31. Incident on the surface. Thereby, the CCD 31 can acquire analog image data (analog electric signals) for each color component (blue, green, red) in an arbitrary frame of the photographic film. As a result, analog image data of an image recorded on the photographic film is obtained for each color component. Then, the film scanner 1 transmits the analog image data to the image processing device 2 described below.
[0041]
The image processing device 2 converts the analog image data into digital image data and performs image processing on digital image data for each color component of each pixel. The detailed configuration of the image processing device 2 will be described later. Further, the image processing device 2 may be configured by a microprocessor and / or a DSP (Digital Signal Processor) incorporated in the photographic printing device, or may be configured by a PC (Personal Computer) provided outside the device. You may. Further, the image processing apparatus 2 includes a memory (not shown) such as a RAM (Random Access Memory) and a ROM (Read Only Memory) for temporarily storing image data sent from the film scanner 1.
[0042]
The printing unit (printer) 3 drives each pixel of the light modulation element based on the digital image data for each color component output from the image processing device 2 to print photographic paper and generate an image. Things. Examples of the light modulating element include a PLZT exposure head, a DMD (Digital Micromirror Device), an LCD (Liquid Crystal Display), an LCS (Liquid Crystal Shutter), an LED (Light Emitting Diode) panel, a laser, and a FOCRT (Fiber Optic Radio Rail). ) And CRT.
[0043]
Next, the image processing device 2 will be described. As shown in FIG. 4, the image processing device 2 includes an A / D (Analog to Digital) converter 4, a logarithmic converter 5, a density correction unit 6, a difference / ratio calculation unit 7, and a color storage unit 8. .
[0044]
The A / D converter 4 samples and quantizes the analog image data for each color component sent from the film scanner 1 to convert digital image data (digital electric signal) for each color component. This is a block for outputting and transmitting this to the logarithmic conversion unit 5. In the present embodiment, the digital image data output here is 16-bit digital data (0 to 65535 gradations), but the number of bits is not limited to this.
[0045]
A logarithmic converter 5 performs a logarithmic conversion process on the 16-bit digital image data for each color component sent from the A / D converter 4 and outputs 12-bit digital image data for each color component. It is. Here, the logarithmic conversion process refers to a process of adjusting the gradation of digital image data using an LUT (look-up table, correction operation device) storing an exposure density characteristic curve shown in FIG. In the digital image data captured from the negative film, the brightness of the image on the negative film and the brightness of the image on the photographic paper can be matched by the logarithmic conversion process. Here, 16-bit digital image data is input and 12-bit digital is output, but the number of bits of digital image data is not limited to this.
[0046]
The density correction unit 6 is a block for performing density correction processing on 12-bit digital image data for each color component sent from the logarithmic conversion unit 5 and outputting 8-bit digital image data. Here, the density correction processing refers to the processing of the output gradation corresponding to each input gradation (for example, 2000 to 2500) within the range of the distribution of the input image data by using the correction function shown in FIG. This is a process of adjusting the density of an image reproduced on photographic paper by adjusting the correction value. Specifically, as shown in FIG. 6B, the position of the correction function is shifted according to an input instruction from the operator, so that the correction value of each output gradation with respect to each input gradation of digital image data is obtained. To adjust. Thereby, the density of each output gradation can be adjusted by the shifted gradation. The reason why the density correction unit 6 converts the number of bits of digital image data to 8 bits is to output digital image data with a density width that matches the photosensitive characteristics of photographic paper. However, the number of bits of the output image data is not limited to 8 bits.
[0047]
Further, in the density correction processing in the present embodiment, the correction function is shifted and the correction value of each output gradation for each input gradation is adjusted. Therefore, depending on the position of the correction function after the shift or the pixel value in the distribution range of the input image data, a correction value that does not fall within the range (0 to 255) that the output gradation can take may be obtained ( (See the thick line in FIG. 6B). Thus, in the present embodiment, the density correction unit 6 determines that a pixel for which such a correction value is obtained by the correction function for at least one color component is an inappropriate pixel.
[0048]
Further, the density correction unit 6 converts a correction value, which is obtained by the correction function and does not fall within a range that can be taken by an output tone, into a maximum output tone or a minimum output tone in the inappropriate pixel (hereinafter, referred to as a “lowest output tone”) This processing is referred to as “cutting processing”). More specifically, the density correction unit 6 converts a correction value of 256 or more obtained from the correction function into a maximum output gradation of 255, and obtains a correction value of -1 or less obtained from the correction function. Is converted to 0 which is the lowest output gradation. When such a cutting process is performed, the color balance of the pixel is lost. For example, when the correction value obtained from the correction function is (b, g, r) = (300, 200, 100) for the input gradation (B, G, R) = (250, 150, 50) , The value obtained by the above cutting process is (B, G, R) = (255, 200, 100). In this case, the color balance of the value obtained by the correction function is not broken, but the color balance of the value obtained by the cutting process is broken. In the present embodiment, the cutting process is performed, but the cutting process is not always necessary for the present invention.
[0049]
The difference / ratio calculation unit (difference calculation unit, ratio calculation unit) 7 is configured to calculate the maximum value among the correction values of each color component obtained for each pixel by the correction function for the inappropriate pixel detected by the density correction unit 6. Determine the value and the minimum value. Then, the difference / ratio calculation unit 7 calculates, for each color component, a difference between the maximum value and the minimum value and a difference between the correction value obtained by the correction function and the minimum value for the inappropriate pixel. And a block for obtaining a color ratio from each difference. Note that the color ratio is a ratio used in the color storage unit 8 to perform a process of adjusting the color balance for inappropriate pixels. Further, the block for calculating each difference and the block for calculating the color ratio may be separately configured.
[0050]
The color storage unit 8 is a block that generates an output gradation with the color balance maintained for the inappropriate pixel and outputs 8-bit output image data. That is, the color storage unit 8 generates digital image data (8 bits) for each color component in which the color balance is maintained for an inappropriate pixel in which the color balance is lost when the cutting process is performed.
[0051]
Next, a procedure of image processing according to the present embodiment executed by the image processing apparatus 2 will be described based on a flowchart shown in FIG. First, the film scanner 1 transmits analog image data for each color component captured from a photographic film to the image processing device 2. Next, the A / D converter 4 converts the analog image data for each color component taken into the image processing device 2 into digital image data for each color component (S1). Then, the A / D converter 4 transmits the digital image data (16-bit data) for each color component to the logarithmic converter 5. Here, the logarithmic conversion unit 5 performs logarithmic conversion processing on the digital image data for each color component (S2), and transmits the digital image data for each color component to the density correction unit 6 as 12-bit data.
[0052]
Further, the density correction section 6 performs the density correction processing on the digital image data for each color component sent from the logarithmic conversion section 5 (S3). Then, the density correction unit 6 determines that a pixel whose correction value obtained by the correction function is at least one color component and does not fall within the output gradation range (0 to 255) is an inappropriate pixel. (S4). Next, the density correction unit 6 performs the above-described cutting process on the inappropriate pixel (S5).
[0053]
Next, the difference / ratio calculation unit 7 calculates the difference between the maximum value and the minimum value of the correction value of each color component obtained from the correction function and the color component Is calculated for each color component, and the color ratio of each color component is calculated from these differences (S6). The color storage unit 8 calculates an output gradation for the inappropriate pixel using the correction value of each color component obtained from the correction function and the color ratio, and outputs digital image data for each color component. (S7). As a result, digital image data with a proper color balance can be obtained for inappropriate pixels. The details of the processing procedure in S4 to S7 will be described later.
[0054]
After that, the image processing device 2 transmits to the photographic printing device 3 digital image data for each color component on which the density correction process and the color balance adjustment process have been performed. The photographic printing device 3 prints an image on photographic paper based on the digital image data for each color component sent from the image processing device 2. With the series of processes described above, the image processing according to the present embodiment ends.
[0055]
Next, details of the processing procedure in S4 to S7 will be described. First, a procedure (S4) of detecting an inappropriate pixel from digital image data for each color component after the density correction processing will be described. In the present embodiment, in order to input digital image data with a density width that can be expressed by a photographic film and to output digital image data with a density width that matches the photosensitive characteristics of photographic paper, in the density correction processing, The 12-bit digital image data is converted into 8-bit digital image data.
[0056]
Further, in the above-described density correction processing, in order to reproduce the change in the tone of the input image data as it is in the output image data, the tone of the input image data is corrected using the correction functions shown in FIGS. By outputting a part of the range that can be taken as it is, the data is converted from 12-bit data to 8-bit data. Therefore, in the density correction processing according to the present embodiment, 8-bit digital image data is output, and the expressible output gradation width is 0 to 255.
[0057]
On the other hand, the density correction process adjusts each correction value of each output gradation for each input gradation by shifting the position of the correction function as shown in FIG. 6B. . Therefore, depending on the position of the correction function or the pixel value within the distribution range of the input image data, the correction value obtained from the correction function may be 256 or more, or -1 or less. That is, the correction value obtained from the correction function may exceed the range of the output gradation. Therefore, the density correction unit 6 detects, as at least one of the color components, a pixel whose correction value obtained from the correction function does not fall within the width of the 8-bit output gradation, as an inappropriate pixel.
[0058]
Next, the details of the cutting process (S5) performed on the inappropriate pixel will be described. If the correction value obtained from the correction function in the density processing unit 6 does not fall within the range of the output gradation, the correction value cannot be output as digital image data as it is. Therefore, it is necessary to convert such a correction value into the highest output gradation or the lowest output gradation before outputting it as digital image data. Specifically, when the correction value obtained from the correction function is 256 or more, the density correction unit 6 converts the value to 255, which is the highest output gradation, and corrects the correction value obtained from the correction function. If the value is -1 or less, the value is converted to 0, which is the lowest output gradation.
[0059]
Therefore, in at least one color component, an inappropriate pixel that has been subjected to the cutting process will lose its color balance. For example, assuming that a correction value of (b, g, r) = (200, 250, 300) is obtained from the correction function in the density correction unit 6, r = 300 is the output gradation of the density correction unit 6. Out of range. In this case, the value of (B, G, R) = (200, 250, 255) is obtained by the above-described cutting process, and it can be seen that the color balance is broken by the cutting process.
[0060]
Next, regarding the inappropriate pixel, the difference between the maximum value and the minimum value of each color component and the difference between the correction value of each color component and the minimum value obtained from the correction function in the density correction process are calculated. In addition, a procedure (S6) for obtaining a color ratio from these differences will be described. The difference / ratio calculation unit 7 performs the following calculation on each inappropriate pixel.
[0061]
By performing the above-described density correction processing on the input gradation (B, G, R), the correction value obtained from the correction function is set to (b, g, r) and (b, g, r) ) Is min and the maximum is max,
b '= b-min
g '= g-min
r '= r-min
max '= max-min
Is calculated.
[0062]
When the color ratio given to each color component in each inappropriate pixel is (b '', g '', r ''),
b '' = b '÷ max'
g '' = g '÷ max'
r ″ = r ′ ÷ max ′
Is calculated.
[0063]
Next, the details of the process performed by the color storage unit 8 will be described (S8). The color storage unit 8 calculates digital image data for each color component by executing the following calculation for each of the inappropriate pixels (hereinafter, referred to as “color storage processing”). Assuming that digital image data obtained from the color preservation processing is (B ′, G ′, R ′), an unsuitable pixel whose correction value obtained from the correction function is higher than the maximum output gradation in at least one color component. For
B ′ = (255−min) × b ″ + min
G ′ = (255−min) × g ″ + min
R ′ = (255−min) × r ″ + min
, The output gradation for each color component is calculated.
[0064]
On the other hand, for an inappropriate pixel in which at least one color component and the correction value obtained from the correction function is lower than the lowest output gradation,
B ′ = max × b ″
G ′ = max × g ″
R ′ = max × r ″
, The output gradation for each color component is calculated.
[0065]
[Example 1]
By performing the density correction processing on the pixel A whose input gradation is (B, G, R) = (150, 200, 250), the correction value obtained from the correction function becomes (b, G, R). g, r) = (200, 250, 300). Here, since the density correction unit 6 outputs 8-bit digital image data, the maximum output gradation is 255. Therefore, r = 300 in the correction value obtained from the correction function exceeds the range of the output gradation. Accordingly, the density correction unit 6 detects the pixel A as an inappropriate pixel, and obtains (B, G, R) = (200, 250, 250) by performing a cutting process on r = 300 of the pixel A. It becomes.
[0066]
Next, the difference / ratio calculation unit 7 calculates b ′, g ′, r ′, and max ′ for the pixel A. Of the correction values b, g, and r obtained from the correction function, the lowest value is b = 200, and the highest value is r = 300.
b '= b-min = 200-200 = 0
g '= g-min = 250-200 = 50
r '= r-min = 300-200 = 100
max '= max-min = 300-200 = 100
It becomes.
[0067]
Further, the difference / density calculation unit 7 calculates b ″, g ″, and r ″ for the pixel A.
b ″ = b ′ ÷ max ′ = 0 ÷ 100 = 0
g ″ = g ′ ÷ max ′ = 50 ÷ 100 = 0.5
r ″ = r ′ ÷ max ′ = 100 ÷ 100 = 1.0
Further, among the correction values obtained from the correction function, r = 300 is a value higher than the highest output gradation. Therefore, the color storage unit 8 calculates the output gradation of the pixel A by the following calculation. The fractional part is rounded off.
B ′ = (255−min) × b ″ + min = (255−200) × 0 + 200 = 200
G ′ = (255−min) × g ″ + min = (255−200) × 0.5 + 200 = 228
R ′ = (255−min) × r ″ + min = (255−200) × 1.0 + 200 = 255
[0068]
Here, the input gradation of the pixel A is (B, G, R) = (150, 200, 250), while the correction value obtained from the correction function in the density correction processing is (b, g, r) = (200, 250, 300), and the value obtained by the cutting process is (B, G, R) = (200, 250, 255).
[0069]
Here, while the color balance of the value obtained from the correction function in the density correction processing is not broken, the color balance of the value obtained by the cutting processing is broken. However, the output gradation of the pixel A obtained by the color correction unit 8 is (B ′, G ′, R ′) = (200, 228, 255), and the color balance is more distorted than the value obtained from the cutting process. I understand that there is no.
[0070]
[Example 2]
By performing the density correction processing on the pixel C whose input gradation is (B, G, R) = (0, 50, 100), the correction value obtained from the correction function becomes (b, G, R). g, r) = (− 50, 0, 100). Here, the lowest output gradation of the digital image data output from the density correction unit 6 is 0. Therefore, b = −50 in the correction value obtained from the correction function exceeds the range of the output gradation. Therefore, the density correction unit 6 detects the pixel C as an inappropriate pixel, and obtains (B, G, R) = (0, 0, 100) by performing a cutting process on b = −50 of the pixel C. ).
[0071]
Next, the difference / ratio calculator 7 calculates b ′, g ′, r ′ and max ′ for the pixel C. Of the correction values b, g, and r obtained from the correction function, the lowest value is b = −50 and the highest value is r = 100.
b ′ = b−min = −50 − (− 50) = 0
g '= g-min = 0-(-50) = 50
r ′ = r−min = 100 − (− 50) = 150
max ′ = max−min = 100 − (− 50) = 150
It becomes.
[0072]
Further, the difference / ratio calculator 7 calculates b ″, g ″, and r ″ for the pixel C.
b ″ = b ′ ÷ max ′ = 0 ÷ 150 = 0
g '' = g '÷ max' = 50 ÷ 150 = 0.33 ...
r ″ = r ′ ÷ max ′ = 150 ÷ 150 = 1.0
Further, among the correction values obtained from the correction function, b = −50 is a lower value. Therefore, the color storage unit 8 calculates the output gradation of the pixel C by the following calculation. The fractional part is rounded off.
B = max × b ″ = 100 × 0 = 0
G = max × g ″ = 100 × 0.33... = 33
R = max × r ″ = 100 × 1.0 = 100
It becomes.
[0073]
Here, the input gradation of the pixel C is (B, G, R) = (0, 50, 100), while the correction value obtained from the correction function in the density correction processing is (b, g, r) = (−50, 0, 100), and the value obtained by the cutting process is (B, G, R) = (0, 0, 100). Here, while the color balance of the correction value obtained from the correction function in the density correction processing is not broken, the color balance of the value obtained by the cutting processing is broken. However, the output gradation of the pixel C obtained by the color correction unit 8 is (B ', G', R ') = (0, 33, 100), and the color balance is higher than that of the output gradation obtained from the cutting process. You can see that it has not collapsed.
[0074]
As described above, according to the image processing, the density correction of the output image is performed by shifting the correction function indicating the correction value for the input gradation of the digital image data on the coordinates. Here, if the correction function is shifted on the coordinates, the color balance of the correction value for each color component obtained from the correction function is maintained, but the correction value exceeding the range of the output gradation may be obtained. May be obtained.
[0075]
Therefore, according to the above procedure, the maximum value and the minimum value of the correction values of the respective color components obtained from the correction function are determined for each pixel. Then, the difference between the correction value for each color component and the minimum value is obtained. This makes it possible to obtain a difference from the lowest correction value in the correction value of each color component.
[0076]
Next, the difference between the maximum value and the minimum value is obtained, and the difference between the correction value and the minimum value obtained for each color component is divided by the difference between the maximum value and the minimum value. This makes it possible to obtain a color ratio, which is a value in which a difference from the lowest correction value is a ratio for each color component.
[0077]
Further, in S7, digital image data of each color component is output from the correction value of each color component obtained from the correction function and the color ratio (calculation of output gradation). As a result, for a color component in which the correction value of the correction function is larger than the highest output gradation, the output image data is set to the highest output gradation, and other values are set so that the ratio of the difference from the lowest value matches the color ratio. The output gradation of the color component is set. As a result, it is possible to generate an output gradation while maintaining a color balance within a range that the output gradation can take. On the other hand, for a color component for which the correction value of the correction function is smaller than the lowest output gradation, the output image data is set to the lowest output gradation, and other color components are set so that the ratio of the difference from the lowest value matches the color ratio. The output gradation of the color component is set. As a result, it is possible to generate an output gradation while maintaining a color balance within a range that the output gradation can take. Therefore, density correction can be performed while maintaining color balance.
[0078]
Further, the color ratio is obtained by calculating the difference between the maximum value and the minimum value, and dividing the difference between the correction value and the minimum value obtained for each color component by the difference between the maximum value and the minimum value. The value obtained. Therefore, among the respective color components, the color ratio having the minimum correction value is 0, and the color ratio having the maximum correction value is 1.
[0079]
Therefore, according to the above procedure, when the correction value is at least one color component and is larger than the maximum output gradation, the difference between the maximum output gradation and the minimum value is multiplied by the color ratio for each color component. The value obtained by adding the minimum value to the value is used as the output gradation for each color component. Here, as for the color component having the maximum correction value, the color ratio is 1, so that the output gradation obtained by the above procedure has the same value as the maximum output gradation. On the other hand, since the color ratio of the color component having the minimum correction value is 0, the output gradation obtained by the above procedure has the same value as the minimum value.
[0080]
Therefore, according to the above procedure, when the correction value of at least one color component is larger than the maximum output gradation, the color component having the maximum correction value can be set to the maximum output gradation, and the correction value can be set to the maximum output gradation. With respect to the color component having the minimum value, the minimum value can be directly used as the output gradation. Therefore, when the correction value by the density correction is larger than the maximum output gradation for at least one color component, the color balance according to the color ratio is maintained while setting the correction value to the maximum output gradation. An output gradation for each color component can be generated.
[0081]
Further, according to the above procedure, when the correction value is at least one color component and is lower than the lowest output gradation, a value obtained by multiplying the maximum value by the color ratio for each color component is calculated for each color component. Output gradation. Here, for the color component having the lowest correction value, the color ratio is 0, so that the output gradation obtained by the above procedure is 0, that is, the same value as the lowest output gradation. On the other hand, since the color ratio of the color component whose correction value is the maximum value is 1, the output gradation obtained by the above procedure has the same value as the maximum value.
[0082]
Therefore, according to the above procedure, when the correction value of at least one color component is smaller than the minimum output gradation, the color component having the minimum correction value can be set to the minimum output gradation, and the correction value can be reduced. However, for the color component having the maximum value, the maximum value can be directly used as the output gradation. Therefore, for at least one color component, when the correction value by the density correction is smaller than the lowest output gradation, the color that maintains the color balance according to the color ratio while setting the correction value to the lowest output gradation is set. It is possible to generate an output gradation for each component.
[0083]
Here, FIGS. 8A, 8B, and 8C show images on which the color preserving unit 8 has performed the process of adjusting the color balance for the inappropriate pixels. 9 (a), 9 (b) and 9 (c) show images obtained by performing the above-described cutting processing without performing the processing by the color storage unit 8 on the above-mentioned inappropriate pixels. Note that the same density correction processing (highlight tone) is performed in FIGS. 8A and 9A, and the same density correction processing is performed in FIGS. 8B and 9B. (Halftone), and the same density correction processing (shadow tone) is performed in FIGS. 8C and 9C. According to FIGS. 9A, 9B, and 9C, it can be seen that as the image becomes darker, there occurs a problem that the yellow portion and the details of the petals become lighter. However, according to FIGS. 8A, 8B, and 8C, it is understood that such a problem does not occur.
[0084]
In the correction function, the input gradation of the digital image data is converted to the output gradation by a linear expression (straight line). However, the conversion is not limited to the linear expression, and for example, the gamma shown in FIG. It may be a curve.
[0085]
By the way, the processing described in the above embodiment can be realized by a program. This program is stored in a computer-readable recording medium. According to the present invention, the recording medium may be a memory (not shown) (not shown) required for the image processing device 2 to perform the processing, or a program (not shown) may be used as an external storage device. It may be a program medium provided with a reading device and readable by inserting a recording medium into the reading device.
[0086]
In any of the above cases, the stored program may be configured to be executed by accessing a microprocessor (not shown), or the stored program may be read and the read program may not be shown. The program may be executed by downloading the program to the program storage area. In this case, it is assumed that the download program is stored in the main device in advance.
[0087]
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 (registered trademark) disk or a hard disk, or a CD-ROM / MO / It is a disk system of an optical disk such as an MD / DVD, a card system of an IC card (including a memory card) / optical card, or a medium that carries a fixed program including a semiconductor memory such as a mask ROM, EPROM, flash ROM, or the like. You may.
[0088]
Lastly, the embodiments described above do not limit the scope of the present invention, and various changes can be made within the scope of the present invention.
[0089]
【The invention's effect】
As described above, the image processing method of the present invention is an image processing method for performing density correction by shifting a correction function indicating a correction value of an output gradation with respect to an input gradation of digital image data on coordinates. For each pixel, a maximum value and a minimum value are determined from among the correction values of each color component, and a difference between the correction value of each color component and the minimum value is determined, and the difference between the maximum value and the minimum value is determined. A first step of calculating a difference, and dividing a difference between the correction value and the minimum value obtained for each color component by a difference between the maximum value and the minimum value as a color ratio given to each color component In the second step to be determined, the output image data is set to the highest output gradation for the color component whose correction value is larger than the highest output gradation, and the output image data is set for the color component whose correction value is smaller than the lowest output gradation. Get out data And sets the tone, the ratio of the difference from the minimum value, characterized in that it comprises a third step of setting the output gradation of each color component to suit the color ratio.
[0090]
Further, in order to solve the above problem, the image processing apparatus of the present invention performs density correction by shifting a correction function indicating a correction value of an output gradation with respect to an input gradation of digital image data on coordinates. In the image processing apparatus, for each pixel, a maximum value and a minimum value are determined from among correction values of each color component, and a difference between the correction value of each color component and the minimum value is determined, and the maximum value is determined. A difference calculation unit for calculating a difference between the minimum value and the minimum value, and a value obtained by dividing a difference between the correction value and the minimum value obtained for each color component by a difference between the maximum value and the minimum value, for each color component. A color ratio calculation unit for obtaining a given color ratio, and for a color component whose correction value is larger than the highest output gradation, the output image data is set to the highest output gradation, and a color whose correction value is smaller than the lowest output gradation. For output components, Sets the data to the minimum output gradation, the ratio of the difference from the minimum value, characterized in that it comprises a color storage unit that sets the output gradation of each color component to suit the color ratio.
[0091]
Accordingly, for a color component whose correction value of the correction function is larger than the highest output gradation, the output image data is set to the highest output gradation, and the ratio of the difference from the lowest value is the ratio of the difference between the color components. If the output gradation of another color component is set so as to match the above-mentioned color ratio, it is possible to generate an output gradation in which the color balance is maintained within the range of the output gradation. On the other hand, for a color component for which the correction value of the correction function is smaller than the lowest output gradation, the output image data is set to the lowest output gradation, and other color components are set so that the ratio of the difference from the lowest value matches the color ratio. By setting the output gradation of the color component, it is possible to generate the output gradation with the color balance maintained within the range of the output gradation. Therefore, density correction while maintaining the color balance can be performed.
[0092]
In the image processing method according to the present invention, in addition to the above procedure, when the correction value is at least one color component and is larger than a maximum output gradation, a difference between a maximum output gradation and the minimum value is calculated for each color component. The third step may be performed by setting a value obtained by adding the minimum value to a value obtained by multiplying the above color ratio as an output gradation for each color component.
[0093]
With this, when the correction value obtained by the density correction is larger than the maximum output gradation for at least one color component, the color balance according to the color ratio is maintained while setting the correction value to the maximum output gradation. It is possible to generate the output gradation for each of the color components.
[0094]
In the image processing method of the present invention, in addition to the above procedure, when the correction value is at least one color component and is lower than the lowest output gradation, the correction value is obtained by multiplying the maximum value by the color ratio for each color component. The third step may be performed by setting a value to be output as an output gradation for each color component.
[0095]
Thereby, when the correction value by the density correction is smaller than the minimum output gradation for at least one color component, the color balance according to the color ratio is maintained while setting the correction value to the minimum output gradation. An output gradation for each color component can be generated.
[0096]
According to another aspect of the present invention, there is provided a photographic processing apparatus including: the image processing apparatus; and a printer that reproduces an image on photographic paper based on digital image data output by the image processing apparatus. And
[0097]
According to the configuration, the image is reproduced on the photographic paper based on the digital image data output by the image processing device. Therefore, it is possible to reproduce an image with a stable color balance irrespective of individual differences and aging of the photographic processing apparatus.
[0098]
The image processing program causes a computer to execute the image processing method in order to solve the above problem.
[0099]
The computer-readable recording medium stores the image processing program.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a processing flow of an image processing method according to the present invention.
FIG. 2 is a block diagram showing a schematic configuration of an image output system in which the image processing method is realized.
FIG. 3 is an explanatory diagram showing a schematic configuration of a film scanner included in the image output system.
FIG. 4 is a block diagram illustrating a schematic configuration of an image processing device configured in the image output system.
FIG. 5 is a graph showing an exposure density characteristic curve.
FIG. 6A is a graph showing a correction function set in a density correction unit, and FIG. 6B is a diagram in which the position of the correction function in FIG. 6A is shifted. FIG.
FIG. 7 is a graph showing a gamma curve.
FIG. 8 is an image in which the color balance has been adjusted by a color storage unit with respect to digital image data captured by a film scanner. FIG. FIG. 8B shows an image on which density correction processing has been performed in halftone, and FIG. 8C shows an image on which density correction processing has been performed in shadow tone.
FIG. 9 is an image obtained by performing a cutting process on digital image data captured by a film scanner, and FIG. 9A shows an image in which a density correction process is performed in a highlight tone; FIG. 9B shows an image on which density correction processing has been performed in halftone, and FIG. 9C shows an image on which density correction processing has been performed in shadow tone.
10A is a graph showing a correction function for converting 12-bit digital image data into 8-bit digital image data, and FIG. 10B is a graph showing the correction function of FIG. 10A. It is the graph which shifted the position of the function for correction.
[Explanation of symbols]
1 Film scanner
2 Image processing device
3 Printing unit (printer)
4 A / D converter
5 Logarithmic converter
6 Density correction unit
7 Difference / ratio calculator (difference calculator, ratio calculator)
8 color storage

Claims (7)

デジタル画像データの入力階調に対する出力階調の補正値を示した補正用関数を座標上でシフトさせることにより濃度補正を行う画像処理方法であって、
画素ごとに、各色成分の補正値のなかから、最大値と最小値とを定め、上記各色成分の補正値と上記最小値との差分をそれぞれ求めると共に、上記最大値と最小値との差分を求める第1ステップと、
色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算した値を、色成分ごとに与えられる色比率として求める第2ステップと、
上記補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、上記補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定すると共に、最低値からの差分の比が上記色比率に合うように各色成分の出力階調を設定する第3ステップとを備えることを特徴とする画像処理方法。
An image processing method for performing density correction by shifting a correction function indicating a correction value of an output gradation with respect to an input gradation of digital image data on coordinates,
For each pixel, among the correction values of each color component, a maximum value and a minimum value are determined, and a difference between the correction value of each color component and the minimum value is obtained, and a difference between the maximum value and the minimum value is calculated. The first step to seek;
A second step of obtaining a value obtained by dividing a difference between the correction value and the minimum value obtained for each color component by a difference between the maximum value and the minimum value as a color ratio given to each color component;
For color components whose correction value is larger than the highest output gradation, the output image data is set to the highest output gradation. For color components whose correction value is smaller than the lowest output gradation, the output image data is set to the lowest output gradation. And setting the output gradation of each color component such that the ratio of the difference from the lowest value matches the color ratio.
上記補正値が、少なくとも1の色成分で、最高出力階調よりも大きい場合、最高出力階調と上記最小値との差分に色成分ごとの上記色比率を乗じた値に上記最小値を加算して得られる値を、色成分ごとの出力階調として設定することにより、第3ステップを実行することを特徴とする請求項1に記載の画像処理方法。If the correction value is at least one color component and is larger than the maximum output gradation, the minimum value is added to a value obtained by multiplying the difference between the maximum output gradation and the minimum value by the color ratio for each color component. 2. The image processing method according to claim 1, wherein the third step is performed by setting a value obtained as a result as an output gradation for each color component. 上記補正値が、少なくとも1の色成分で、最低出力階調よりも低い場合、上記最大値に色成分ごとの上記色比率を乗じて得られる値を、色成分ごとの出力階調に設定することにより、第3ステップを実行することを特徴とする請求項1に記載の画像処理方法。If the correction value is at least one color component and is lower than the lowest output gradation, a value obtained by multiplying the maximum value by the color ratio for each color component is set as the output gradation for each color component. The image processing method according to claim 1, wherein the third step is performed. デジタル画像データの入力階調に対する出力階調の補正値を示した補正用関数を座標上でシフトさせることにより濃度補正を行う画像処理装置であって、
画素ごとに、各色成分の補正値のなかから、最大値と最小値とを定め、上記各色成分の補正値と上記最小値との差分をそれぞれ求めると共に、上記最大値と最小値との差分を求める差分演算部と、
色成分ごとに得られた上記補正値と最小値との差分を、上記最大値と最小値との差分で除算した値を、色成分ごとに与えられる色比率として求める色比率演算部と、
上記補正値が最高出力階調より大きい色成分については、出力画像データを最高出力階調に設定し、上記補正値が最低出力階調より小さい色成分については、出力画像データを最低出力階調に設定すると共に、最低値からの差分の比が上記色比率に合うように各色成分の出力階調を設定する色保存部とを備えることを特徴とする画像処理装置。
An image processing apparatus that performs density correction by shifting a correction function indicating a correction value of an output gradation with respect to an input gradation of digital image data on coordinates,
For each pixel, among the correction values of each color component, a maximum value and a minimum value are determined, and a difference between the correction value of each color component and the minimum value is obtained, and a difference between the maximum value and the minimum value is calculated. A difference calculation unit to be obtained;
A color ratio calculation unit that obtains a value obtained by dividing a difference between the correction value and the minimum value obtained for each color component by a difference between the maximum value and the minimum value as a color ratio given to each color component,
For color components whose correction value is larger than the highest output gradation, the output image data is set to the highest output gradation. For color components whose correction value is smaller than the lowest output gradation, the output image data is set to the lowest output gradation. And a color storage unit that sets the output gradation of each color component such that the ratio of the difference from the lowest value matches the color ratio.
請求項4に記載の画像処理装置と、上記画像処理装置が出力するデジタル画像データに基づいて、印画紙上に画像を再現するプリンタとを備えることを特徴とする写真処理装置。A photographic processing apparatus comprising: the image processing apparatus according to claim 4; and a printer that reproduces an image on photographic paper based on digital image data output by the image processing apparatus. 請求項1ないし3のいずれか1項に記載の画像処理方法をコンピュータに実行させるための画像処理プログラム。An image processing program for causing a computer to execute the image processing method according to claim 1. 請求項6に記載の画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium recording the image processing program according to claim 6.
JP2002302751A 2002-10-17 2002-10-17 Image processing method, image processing apparatus, photo processing apparatus, image processing program, and recording medium recording the image processing program Expired - Lifetime JP3794367B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2002302751A JP3794367B2 (en) 2002-10-17 2002-10-17 Image processing method, image processing apparatus, photo processing apparatus, image processing program, and recording medium recording the image processing program
EP03022500A EP1411714B1 (en) 2002-10-17 2003-10-09 Conversion correcting method of color image data and photographic processing apparatus implementing the method
DE60324515T DE60324515D1 (en) 2002-10-17 2003-10-09 Translation correction method for color image data and photographic processing apparatus for carrying out this method
US10/687,727 US7466857B2 (en) 2002-10-17 2003-10-16 Conversion correcting method of color image data and photographic processing apparatus implementing the method
CN 200310101408 CN1251479C (en) 2002-10-17 2003-10-17 Method for changing correcting coloruimage data and picture processing device using the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002302751A JP3794367B2 (en) 2002-10-17 2002-10-17 Image processing method, image processing apparatus, photo processing apparatus, image processing program, and recording medium recording the image processing program

Publications (2)

Publication Number Publication Date
JP2004140553A true JP2004140553A (en) 2004-05-13
JP3794367B2 JP3794367B2 (en) 2006-07-05

Family

ID=32450729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002302751A Expired - Lifetime JP3794367B2 (en) 2002-10-17 2002-10-17 Image processing method, image processing apparatus, photo processing apparatus, image processing program, and recording medium recording the image processing program

Country Status (2)

Country Link
JP (1) JP3794367B2 (en)
CN (1) CN1251479C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006137361A1 (en) * 2005-06-20 2006-12-28 Nikon Corporation Image processing device, image processing method, image processing program product, and imaging device
JP2016046764A (en) * 2014-08-26 2016-04-04 有限会社ロジック・アンド・システムズ Image signal processing method and image signal processing device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848569B2 (en) * 2005-12-14 2010-12-07 Micron Technology, Inc. Method and apparatus providing automatic color balancing for digital imaging systems
CN103096087B (en) * 2013-02-06 2015-09-23 上海国茂数字技术有限公司 A kind of image and video coding-decoding method and system
US10063824B2 (en) * 2014-11-05 2018-08-28 Apple Inc. Mapping image/video content to target display devices with variable brightness levels and/or viewing conditions

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006137361A1 (en) * 2005-06-20 2006-12-28 Nikon Corporation Image processing device, image processing method, image processing program product, and imaging device
US8103119B2 (en) 2005-06-20 2012-01-24 Nikon Corporation Image processing device, image processing method, image processing program product, and image-capturing device
JP2016046764A (en) * 2014-08-26 2016-04-04 有限会社ロジック・アンド・システムズ Image signal processing method and image signal processing device

Also Published As

Publication number Publication date
CN1251479C (en) 2006-04-12
CN1497939A (en) 2004-05-19
JP3794367B2 (en) 2006-07-05

Similar Documents

Publication Publication Date Title
JP4081219B2 (en) Image processing method and image processing apparatus
JPS6368863A (en) Method and apparatus for reproducing original
JP4629226B2 (en) Method and apparatus for calibrating an imaging device having a plurality of imaging output devices
JP2004030370A (en) Image processing method, image processing program, and recording medium with image processing program recorded thereon
JP3794367B2 (en) Image processing method, image processing apparatus, photo processing apparatus, image processing program, and recording medium recording the image processing program
US20040184672A1 (en) Image processing method and apparatus for correcting photographic images
JPH11191871A (en) Image processor
JP3823865B2 (en) Image processing method, image processing program, and recording medium on which image processing program is recorded
JPH11317863A (en) Image processing unit
US6674466B1 (en) Image processing apparatus utilizing light distribution characteristics of an electronic flash
US20050129287A1 (en) Image processing method
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
JP3086352B2 (en) Gray balance correction method
JP2004133551A (en) Image processing method, image processor, image processing program and recording medium having image processing program recorded thereon
JPH10262132A (en) Image reading device
JP3823883B2 (en) Image processing apparatus, image processing method, image processing program, recording medium recording image processing program, and photo printing apparatus
JP3576812B2 (en) Image processing apparatus and image processing method
JPH1013680A (en) Image processing method and image processor
JPH01106578A (en) Method for setting picture processing data
JP3319623B2 (en) Gray balance correction method
JP2001245153A (en) Image processing method and apparatus
JPH1013679A (en) Method and device for reproducing image
JP4154694B2 (en) Film image input device
JP2003263634A (en) Image processing method, image processing program and recording medium with its program recorded
JP3719860B2 (en) Color correction method and apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040304

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051101

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051220

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060404

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

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 6

S801 Written request for registration of abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311801

ABAN Cancellation due to abandonment
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350