JP4636714B2 - Signal processing method, image reading apparatus, program, and medium - Google Patents
Signal processing method, image reading apparatus, program, and medium Download PDFInfo
- Publication number
- JP4636714B2 JP4636714B2 JP2001074324A JP2001074324A JP4636714B2 JP 4636714 B2 JP4636714 B2 JP 4636714B2 JP 2001074324 A JP2001074324 A JP 2001074324A JP 2001074324 A JP2001074324 A JP 2001074324A JP 4636714 B2 JP4636714 B2 JP 4636714B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- dust
- scratch
- visible light
- light image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Facsimile Scanning Arrangements (AREA)
- Image Input (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、信号処理方法、画像読取装置プログラムおよび媒体に関し、更に詳しくは原稿上のゴミやキズによる欠陥部分等を補正する信号処理方法、画像読取装置、プログラムおよび媒体に関するものである。
【0002】
【従来の技術】
従来の例えば透過原稿の画像読取装置における概略構成を図13に示す。図13において、原稿台ガラス141上に載置されたポジ、ネガ等の透過原稿142を、さらにその上部に設置された拡散板143を介して透過原稿照明用ランプ144で照明し、透過原稿142からの透過光を、ミラー147、ハノ字ミラー148、結像レンズ149を介してCCD150に送り、多数の単位個体撮像素子がライン状に配置されたCCD150にて電気信号に変換することにより主走査方向の画像を形成する。
【0003】
この場合の副走査方向の画像形成は、透過原稿142に対して透過原稿照明用ランプ144、ミラー147を同一速度、同一位相を保ったまま、副走査方向に機械的に移動させ、ハノ字ミラー148を同方向に走査速度2分の1で追従させ、透過原稿142からCCD150までの光路長(共役関係)を一定に保ちながら行い、主走査と合わせてトータルで2次元の画像を形成する。
【0004】
また、上記のような透過原稿の画像読取装置において、不透明の用紙に記載された原稿に光を照射して前記用紙から反射する光が処理されるタイプの所謂、反射原稿を読み取ることも可能である。その場合は、透過原稿142の代わりに反射原稿を載置し、透過原稿照明用ランプ144を消灯し、反射原稿照明用ランプ145を点灯させて反射原稿照明用ランプ145による直接光束と反射笠146による反射光束とにより照明し、反射原稿からの反射光をCCD150にて読み取れば、透過原稿の場合と同様に、主走査方向の画像を形成することができる。
【0005】
特にカラー読み取り方式では、反射原稿照明用ランプ145に白色の分光特性を持つランプを用い、且つCCD150に、RGBそれぞれの色のフィルタを有する3ラインタイプCCDを用いて、1回の走査にてRGBの各色の画像情報を同時に読み、画像処理回路上にて、同一ライン上のRGBの各色の信号を重ね合わせることによってカラー画像を形成する3ラインカラー画像読み取り方式が一般に知られている。
【0006】
ところで、上記のような透過原稿の画像読取装置において、透過原稿上のゴミ・キズなどによる画像上の欠陥部分を補正するためには、画像読取後に画像編集ソフトによりレタッチ修正する以外に有効な方法がなかった。そのために、欠陥部分の補正には非常に時間を要していた。
【0007】
近年、このような透過原稿用の画像読取装置において、透過原稿上に存在する埃などのゴミや、フィルム面の損傷(キズ)を検知し(以下、この検知を「ゴミ・キズ検知」という)、読み取られた画像から、これらのゴミやキズの影響を画像処理にて取り除く、いわゆるゴミ・キズ除去のための機能を備えた画像読取装置が開発されてきている。
【0008】
図14は、従来のゴミ・キズ検知用の機能を有する画像読取装置1を示す図であり、図13に示した画像処理装置と同一の構成部分には同一の参照符号を付して、その説明を省略する。
【0009】
図14において、151は波長約880nmに発光強度のピークを有するLEDから成る赤外光ランプである。
【0010】
また、図15は、画像読取装置1により得られる画像データを用いて、ゴミ・キズ除去を行うゴミ・キズ除去部2の機能構成を示すブロック図である。図15において、21は画像読み取り装置1により読み込んだ画像データを入力するためのインターフェース(I/F)、22は透過原稿照明用ランプ144または反射原稿照明用ランプ145を用いて読み込んだ画像(以下、「普通画像」と呼ぶ。)を記憶するための画像メモリ、23は赤外光ランプ151を用いて読み込んだ画像(以下、「赤外光画像」と呼ぶ。)を記憶するための赤外光画像メモリ、24は予め決められた閾値を保持する閾値保持部、25はゴミ・キズ検知部、26はゴミ・キズ補正部である。
【0011】
図16は、透過原稿照明用ランプ144及び赤外光ランプ151の分光強度分布を示す図であり、各ランプの特性を実線、一点鎖線によってそれぞれ示す。また、図17は一般的なネガ、ポジカラーフィルムのシアン色、イエロー色、マゼンタ色の各色素の分光透過率特性と、赤外光ランプ151の分光強度分布のピーク波長(約880mm)を示したものである。図17にて明らかなように、一般的なカラーフィルムの場合には、どの色素であっても約880nmにおける透過率は非常に高いため、フィルム上の画像によらず赤外光ランプの光束はほとんど通過することになる。
【0012】
以下、ゴミ・キズ除去動作を行う場合の透過原稿読取動作について、図18に示すフローチャートに従って詳細に説明する。
【0013】
先ず、ステップS10において、図14の反射原稿照明用ランプ145及び赤外光ランプ151を消灯し、透過原稿照明用ランプ144を点灯させる。このとき透過原稿照明用ランプ144の照明光束は拡散板143によって斑なく拡散され、その拡散光束が透過原稿142を透過する。この透過光束がミラー147、ハノ字ミラー148を通過し、さらに結像レンズ149を通過し、CCD150に投影される。CCD150上に投影された画像は電気信号に変換され、図15のI/F21を介して画像メモリ22に一時記憶される。ここで、透過原稿がネガフィルムの場合には、反転処理でポジ画像を得てから画像メモリ22に一時記憶される。
【0014】
次に、ステップS20において、図14の反射原稿照明用ランプ145と透過原稿照明用ランプ144とを消灯し、赤外光ランプ151を点灯させる。図16に示すような特性を備えた赤外光ランプ151の照明光束は拡散板143によって斑なく拡散され、その拡散光束が透過原稿142を透過し、更にミラー147、ハノ字ミラー148、結像レンズ149を通過した光はCCD150に投影される。従って、透過原稿142を透過した赤外光ランプ151の照明光束は、図17に示すようにネガ、ポジ等の透過原稿142の画像(感光像)によらず透過し、物理的に光路を遮る埃、ゴミ・キズ等の像がCCD150上に蔭として投影される。CCD150上に投影された赤外光画像は電気信号に変換され、図15のI/F21を介して赤外光画像メモリ23に一時記憶される。
【0015】
次にステップS30以降の工程でゴミ・キズの検出及び補正を行うが、ゴミ・キズ検知の原理についてここで詳しく説明する。
【0016】
図19は、透過原稿照明用ランプ144及び赤外光ランプ151による読取画像の階調レベルを主走査方向にプロットしたものと、ゴミなどの関係をわかりやすく図示したものである。図19(a)において、181はポジフィルム、182はポジフィルム181上のゴミである。図19(b)は図19(a)の部分を透過原稿照明用ランプ144で読み取った場合の階調レベルであり、暗い部分ほど階調レベルは低い値を示しており、ゴミ182の部分の階調レベルは、ポジフィルム上の画像によらずに当然低くなっている。図19(c)は同じく図19(a)の部分を赤外光ランプ151で読み取った場合の階調レベルであり、ゴミ182の部分の階調レベルは赤外光も通過しないために低くなり、ゴミ182以外の部分は赤外光が通過してしまうためにほぼ一定のレベル183となる。そこでレベル183よりも低い階調レベルに閾値184を設定し、閾値184以下の部分を抽出することでゴミによる欠陥領域185の検出が可能となる。
【0017】
この閾値184は閾値保持部24に予め保持されており、従って、ステップS30において、ゴミ・キズ検知部25は閾値保持部24からこの閾値184を読み出し、赤外光画像メモリ23から赤外光画像データを読み出して、順次赤外光画像データと閾値184とを比較することで、欠陥領域185を検出する。
【0018】
赤外光画像データが閾値184よりも小さい場合は(ステップS30でNO)、ステップS40でこの欠陥領域185を欠陥領域185の周囲の正常な領域から補間処理などを行うことにより、ゴミ182による影響を軽減する。上記比較動作を全ての赤外光画像データについて行い、欠陥領域が検出されると、対応する普通画像のデータに対して補間処理を行う(ステップS50)。
【0019】
【発明が解決しようとする課題】
しかしながら、非可視光画像を用いてゴミ・キズの検知を行うためには、同じ原稿を非可視光による走査読取りと可視光による走査読取りというように2回読まなくてはならない。そのために光電変換手段、光学系、及びその処理回路の少なくとも一部を含む走査部にて原稿を走査する必要がある。すると、ゴミ・キズを検出するための非可視光走査読取りによる画像と、実際の画像情報を得るための可視光走査読取りによる画像との間に走査部の動作精度の問題等によるずれが生じ、結果的にゴミ・キズの除去が満足には出来ないという問題があった。
【0020】
本発明は上記問題点を鑑みてなされたものであり、原稿を読み取ってゴミ・キズを補正する場合に、複数回の走査動作の繰り返しのずれが生じても、適切なゴミ・キズ検出と補正を安定して行うことを目的とする。
【0021】
さらに、照明、光センサおよび原稿の波長特性が必ずしも理想的な特性ではないために非可視光画像に可視光画像の影響が及ぶことがあり、また、フィルムホルダの影が非可視光画像に影響を及ぼすこともあり、ゴミ・キズによる欠陥ではない可視光画像を誤って補正するという問題があった。
【0022】
本発明は、上記問題点を鑑みてなされたものであり、波長特性の理想からのずれや、フィルムホルダの影等による影響を軽減することを目的とする。
【0023】
また、高い指定解像度で読とられた場合、画像データが多くなるため、普通画像と赤外光画像のゴミ・キズ位置検出するのに非常に長い時間を要することになるという問題があった。
【0024】
本発明はさらに、上記問題点を鑑みてなされたものであり、ゴミ・キズ修復効果を低下させることなく、ゴミ・キズ除去処理を高速化することを目的とする。
【0025】
【課題を解決するための手段】
本発明は、上記問題点を解決するためになされたものであり、以下の様に構成される。
【0026】
可視光を照射する可視光照射手段と、非可視光を照射する非可視光照射手段とによりそれぞれ原稿を照射し、原稿の光学像を光電変換して得られる可視光画像信号および非可視光画像信号を処理する信号処理方法であって、前記非可視光画像信号から第一のゴミ・キズ画像信号を生成する工程と、前記可視光画像信号において、前記第一のゴミ・キズ画像信号のゴミ・キズ位置に対応する画素を、所定画素ずつずらして、各ずらし量毎にゴミ・キズ位置に対応する画素の信号値の和を算出する算出工程を含む相関演算を行い、前記可視光画像と前記第一のゴミ・キズ画像とのズレ量を求めるズレ量検出工程と、前記ズレ量検出工程で検出されたズレ量と、前記非可視光画像信号を用いて前記可視光画像信号を補正する補正工程とを有し、前記補正工程は、前記非可視光画像信号から第二の閾値を用いて第二のゴミ・キズ画像信号を生成する工程を有し、前記ズレ量と第二のゴミ・キズ画像信号を用いて前記可視光画像信号を補正することを特徴とする信号処理方法。
【0048】
【発明の実施の形態】
以下、添付図面を参照して本発明の好適な実施の形態を詳細に説明する。
【0049】
<第一の実施形態>
第一の実施の形態を図1から図3を用いて説明する。なお、画像読み取り装置の構成は図14に示すものと同様であるので、説明を省略する。また図1は、本第一の実施形態の画像読取装置1から出力される画像信号に対してゴミ・キズ除去を行うゴミ・キズ除去部3の機能構成を示すブロック図である。なお、図1では、ゴミ・キズ除去部3は画像読み取り装置1とは別の装置として示されているが、画像読み取り装置1内部に構成しても構わない。
【0050】
図1において、21は画像読み取り装置1により読み込んだ画像データを入力するためのインターフェース(I/F)、22は透過原稿照明用ランプ144または反射原稿照明用ランプ145を用いて読み込んだ画像を記憶するための画像メモリ、23は赤外光ランプ151を用いて読み込んだ画像や、ゴミ・キズ位置を示す画像を記憶するための赤外光画像メモリ、25はゴミ・キズ検知部、26はゴミ・キズ補正部、31はヒストグラム生成部、32は閾値決定・保存部、33は位置ずれ量検出部である。
【0051】
次に、図2のフローチャートを参照しながら、本第一の実施形態におけるゴミ・キズ除去動作を行う場合の透過原稿読取動作について詳細に説明する。
【0052】
先ず、ステップS201において、図14の反射原稿照明用ランプ145及び赤外光ランプ151を消灯し、透過原稿照明用ランプ144を点灯させる。このとき透過原稿照明用ランプ144の照明光束は拡散板143によって斑なく拡散され、その拡散光束が透過原稿142を透過する。この透過光束がミラー147、ハノ字ミラー148を通過し、さらに結像レンズ149を通過し、CCD150に投影される。CCD150上に投影された画像は電気信号に変換され、図1のI/F21を介して画像メモリ22に一時記憶される。ここで、透過原稿がネガフィルムの場合、反転処理を行いポジ画像を得てから画像メモリ22に一時記憶する(以下、「普通画像」と呼ぶ。)。透過原稿がネガフィルムであるか、ポジフィルムであるかは、予めユーザが指定する。
【0053】
次に、ステップS202において、図14の反射原稿照明用ランプ145と透過原稿照明用ランプ144とを消灯し、赤外光ランプ151を点灯させる。図15に示すような特性を備えた赤外光ランプ151の照明光束は拡散板143によって斑なく拡散され、その拡散光束が透過原稿142を透過し、更にミラー147、ハノ字ミラー148、結像レンズ149を通過した光はCCD150に投影される。従って、透過原稿142を透過した赤外光ランプ151の照明光束は、図16に示すようにネガ、ポジ等の透過原稿142の画像(感光像)によらず透過し、物理的に光路を遮る埃、ゴミ・キズ等の像がCCD150上に蔭として投影される。CCD150上に投影された赤外光画像は電気信号に変換され、図1のI/F21を介して赤外光画像メモリ23に一時記憶される(以下、「赤外光画像」と呼ぶ。)。
【0054】
次に、ステップS203において、赤外光画像メモリ23に一時記憶された赤外光画像データを用いて、32の閾値決定・保持部にてステップS204で用いる閾値Laを算出し、保持する。この算出方法について後程説明する。
【0055】
次に、ステップS204において、ゴミ・キズ検知部25は閾値決定・保持部32から閾値Laを読み出し、赤外光画像メモリ23から赤外光画像データを読み出して、順次赤外光画像データと閾値Laとを比較することで、ゴミ・キズを検出し、第一ゴミ・キズ位置画像を生成し、赤外光画像メモリ23に一時追加記憶する。
【0056】
次にステップS205において、位置ずれ量検出部33は、画像メモリ22に記憶されている普通画像と赤外光画像メモリ23に記憶されている第一ゴミ・キズ位置画像との位置ずれ量を検出する。検出の詳細は、後程説明する。
【0057】
次にステップ206において、赤外光画像メモリ23に一時記憶された赤外光画像データを用いて、32の閾値決定・保持部にてステップS207で用いる閾値Lbを算出し、保持する。このLbの算出方法についても後程説明する。
【0058】
次にステップS207において、ゴミ・キズ検知部25は閾値決定・保持部32から閾値Lbを読み出し、赤外光画像メモリ23から赤外光画像データを読み出して、順次赤外光画像データと閾値Lbとを比較することで、ゴミ・キズを検出し、第二ゴミ・キズ位置画像を生成し、赤外光画像メモリ23に一時追加記憶する。
【0059】
次にステップS208において、補正部26は、赤外光画像メモリ23に記憶されている第二ゴミ・キズ位置画像からゴミ・キズ位置を読み出して、ステップ205で検出した位置ずれ量だけずらす。このずらした位置に対応する画像メモリ22に記憶されている普通画像の画像データは、ゴミ・キズにより欠損が生じた欠陥領域のデータであると判断する。この普通画像の欠陥領域のデータを欠陥領域の周囲の正常な領域から補間処理などを行うことにより、ゴミ・キズによる影響を軽減する。第二ゴミ・キズ位置画像のゴミ・キズ位置の全てに対して、ステップ205で検出した位置ずれ量だけずらした位置に対応する普通画像の画像データを補正処理することにより、ゴミ・キズの影響の軽減された普通画像を得ることが出来る。
【0060】
<第二の実施形態>
第二の実施の形態を図8から図10を用いて説明する。図8(a)は、ポジフィルム101上にゴミ102がある状態を示し、図8の(b)は図8(a)の部分を図14に示す透過原稿照明用ランプ144で指定解像度によって読み取った場合の階調レベルを示す。ゴミ上での階調レベルは、光が透過しないため下に凸となった階調レベル分布が得られる。また、図8(c)は同じく図8(a)の部分を図14に示す赤外光ランプ151で読み取った場合の階調レベルを示し、特に指定解像度より大幅に低解像度で読み取った場合を示している。この場合、ゴミ・キズ情報をより低解像度で読み取ったために階調レベルが緩やかに変化する。赤外光画像図8(c)のゴミ・キズの影響を受けていない階調レベルL1に対して、所定レベルΔL12として予め設定された閾値(あるいはヒストグラム及び階調レベル解析によって定められた閾値)だけ差を持つ階調レベルL2を設定し、階調レベルL2にて2値化処理し、ゴミ・キズ検知情報を確定する。図8(b)で、ゴミ・キズによって影響を受けたゴミ・キズ幅をP1とし、図8(c)でゴミ・キズ検知情報として確定されたゴミ・キズ幅をP2とすれば、図8(c)ではより低解像度で読み取ったためにP1より大きいP2なる幅で検出されることになり、正しくゴミ・キズ位置を特定するには不十分である場合を意味している。
【0061】
図8(d)は、同じく図8(a)の部分を図14に示す赤外光ランプ151で読み取った場合の階調レベルを示し、特に指定解像度で読み取った場合を示している。この場合、ゴミ・キズ情報をより高解像度で読み取ったために階調レベルが緻密に変化している。この場合のゴミ・キズの影響を受けていない階調レベルL3に対して、赤外光画像を所定レベルΔL34として予め設定された閾値(あるいはヒストグラム及び階調レベル解析によって定められた閾値)だけ差を持つ階調レベルL4を設定し、階調レベルL4にて2値化処理し、ゴミ・キズ検知情報を確定する。図8(d)でゴミ・キズ検知情報として確定されたゴミ・キズ幅をP3とすれば、図8(d)では指定解像度で読み取ったためにP1とほぼ等しいP3なる幅で検出されることになり、正しくゴミ・キズ位置を特定することが出来ることを意味している。
【0062】
図8(c)、(d)で説明したように、赤外光画像で得たい情報は、解像度や階調分布ではなくゴミ・キズ幅である。つまりは、指定解像度より低い解像度であってもゴミ・キズ幅を特定できれば良いことを意味しており、例えば指定解像度より約1/2の低い解像度で読みこんだ場合でも、所定の閾値を設けてやることで、ほぼ正確にゴミ・キズ幅を特定できる。
【0063】
図8(e)は、同じく図8(a)の部分を図14に示す赤外光ランプ151で読み取った場合の階調レベルを示し、特に指定解像度の1/2の解像度で読み取った場合を示している。この場合にも、ゴミ・キズ情報をより指定解像度で読み取った場合と酷似して階調レベルが緻密に変化している。この場合のゴミ・キズの影響を受けていない階調レベルL5に対して、赤外光画像を所定レベルΔL56として予め設定された閾値(あるいはヒストグラム及び階調レベル解析によって定められた閾値)だけ差を持つ階調レベルL6を設定し、階調レベルL6にて2値化処理し、ゴミ・キズ検知情報を確定する。図8(e)でゴミ・キズ検知情報として確定されたゴミ・キズ幅をP4とすれば、図8(e)では指定解像度の1/2の解像度で読み取っても、P1とほぼ等しいP4なる幅で検出されることになり、正しくゴミ・キズ位置を特定することが出来ることを意味している。
【0064】
つまり、図8(e)で赤外光画像を読み取っても、正しくゴミ・キズ位置を特定できる効果としては、指定解像度より1/2の解像度で赤外光画像を読みこんだ場合でもゴミ・キズ除去性能を低下させることなく、高速化が図られることになる。
【0065】
図10に読取り画像の模式図を示す。画像読取装置1で読み取った画像例として、ゴミ・キズを含むポジフィルムを読み取った場合の普通画像を図10(a)、(c)に、赤外光画像を図10(b),(d)に示した。図10(a)、(b)は、低解像度で普通画像と赤外光画像を読取った画像を示す。また、図10(c)、(d)は高解像度の2倍の指定解像度で読み取った場合を示し、画素幅Rv'、副走査画素幅RL として空間的に示した図である。また、図10(d)は、(b)を2倍に拡大した図としての説明にも使用する。図10(a)、(c)の普通画像ではゴミ・キズのあるところでは暗い濃度レベルの画素情報となり、図10(b),(d)の赤外光画像ではゴミ・キズ検出処理により2値化されゴミ・キズ位置が明確化されている。
【0066】
以下、ゴミ・キズ除去動作を行う場合の透過原稿読取動作について、図9に示すフローチャートに従って詳細に説明する。
【0067】
先ず、ステップS301において、図14の反射原稿照明用ランプ145及び赤外光ランプ151を消灯し、透過原稿照明用ランプ144を点灯させる。このとき透過原稿照明用ランプ144の照明光束は拡散板143によって斑なく拡散され、その拡散光束が透過原稿142を透過する。この透過光束がミラー147、ハノ字ミラー148を通過し、さらに結像レンズ149を通過し、CCD150に投影される。CCD150上に投影された画像は電気信号に変換され、図15のI/F21を介して画像メモリ22に一時記憶される。このとき、指定解像度Rsで読み取られた普通画像が得られたことになる。
【0068】
次に、ステップS302において、図14の反射原稿照明用ランプ145と透過原稿照明用ランプ144とを消灯し、赤外光ランプ151を点灯させる。図16に示すような特性を備えた赤外光ランプ151の照明光束は拡散板143によって斑なく拡散され、その拡散光束が透過原稿142を透過し、更にミラー147、ハノ字ミラー148、結像レンズ149を通過した光はCCD150に投影される。従って、透過原稿142を透過した赤外光ランプ151の照明光束は、図17に示すようにネガ、ポジ等の透過原稿142の画像(感光像)によらず透過し、物理的に光路を遮る埃、ゴミ、キズ等の像がCCD150上に蔭として投影される。CCD150上に投影された赤外線画像は電気信号に変換され、図15のI/F21を介して赤外線画像メモリ23に一時記憶される。このときは指定解像度より低い所定解像度Rnで読み取られた赤外光画像が得られる。
【0069】
次にステップS303では、ステップS302で得られた赤外光画像を所定解像度Rnから指定解像度RsにM倍の変倍処理を加える。なお M=Rs/Rn。ここで、赤外光画像は指定解像度と同じ画素単位で空間距離を扱えるようになる。
【0070】
次にステップS304の工程で、ゴミ・キズの普通画像中の位置検出のために、図12で示すように普通画像と赤外光画像とでS301とS302の走査の精度に伴いゴミ・キズ位置がずれて得られる場合の、位置ずれ量の検知を普通画像のM画素毎に行う。位置ずれ量検出の詳細は、後程説明する。例えば、図10(b)のゴミ・キズ位置画像と図10(d)の様に変倍率が2倍であれば、2画素毎にずれ量の検出を行う。M画素毎に行ったずれ量検出の総和から画像全体のずれ量を検出する。
【0071】
次にステップS305にて、普通画像中のゴミ・キズ画像を修復する。ここでは、普通画像において、赤外光画像から得られたゴミ・キズ位置をステップS304で得られたズレ量だけずらした位置に対応する画像のゴミ・キズ画像を修復する。そして、ゴミ・キズ除去処理を終了する。本フローチャートに従えば、赤外光画像の読み取り速度を速めることができ、結果としてゴミ・キズ除去性能を低下させることなく高速化が図れることになる。
【0072】
<第三の実施形態>
図10、図11を用いて、第三の実施形態を説明する。図10は第二の実施の形態で説明した。ゴミ・キズ除去動作を行う場合の透過原稿読取動作について、図11に示すフローチャートに従って詳細に説明する。
【0073】
先ず、ステップS101、S102は第二の実施形態で説明したステップS301、S302と同様であるが、ステップS102では、解像度がS101と同じRsで読取る。ここで、ステップS101、S102の解像度が非常に高い場合には、第1の実施形態の図8で説明した様に、ゴミ・キズ位置を特定するに、ある解像度以上の高解像度で赤外光画像を読み取らずとも良い場合がある。普通画像と赤外光画像の位置合わせを行う際にも同様の効果が得られる。この境の解像度を、予め定められた所定解像度Rdとして設定しておく。
【0074】
次にステップS103では、ステップS102で得られた赤外光画像が、予め定められた所定解像度Rdより低いかどうかを判定し、低い場合にはステップS104、ステップS106を経由し、一画素毎にゴミ・キズの位置ズレ量を検出する。S103で所定解像度Rdと同じ、もしくは高い解像度であった場合、ステップS105、ステップS106を経由する。このとき、図2で示されるような指定解像度が非常に高解像度である場合、普通画像と赤外光画像とではS101とS102のステップに伴うゴミ・キズ位置がずれて得られる場合の位置ずれ量検出を、M(=Rs/Rn)画素毎にゴミ・キズ位置ずれ量検出を行うことで高速化することが可能となる。 ステップS106で検出した位置ずれ量でゴミ・キズ位置を補正して、普通画像中のゴミ・キズ画像を修復し、ゴミ・キズ除去処理を終了する。本フローチャートに従えば、指定解像度が非常に高解像度である場合、普通画像と赤外光画像のゴミ・キズ位置合わせ処理を速めることができ、結果としてゴミ・キズ除去性能を低下させることなく高速化が図れることになる。
【0075】
以下に、本実施形態に共通の、位置ずれ量検知と閾値La、Lbの検出について説明する。
【0076】
<位置ずれ量検出>
以下、図3、4、5を参照して、位置ずれ量検出部33による普通画像と第一ゴミ・キズ位置画像との位置ずれ量の検出について説明する。
【0077】
図3に位置ずれ量検出を示すフローチャートを示し、図4に本実施形態の位置ずれ補正を説明した模式図を示す。図4において図示する通り、下方向を副走査方向、横方向を主走査方向とする。図4において401,402は(a)の赤外光画像でゴミ・キズと検出された画素であり、(b)の普通画像における403,404の画素座標はそれぞれ401,402の座標に対応している。しかし、実際は赤外光画像と普通画像間には前述の通り位置ずれが発生しており、401のゴミ・キズ画素は403の画素の上下数ピクセルにずれている可能性がある。ゴミ・キズ位置画像データは普通画像において、ポジフィルムの場合はそのまま低い濃度値として、ネガフィルムの場合は反転されて高い濃度値として普通画像に表現される。そこで、赤外上のゴミ・キズ座標401に対応する可視上のゴミ・キズ座標403から副走査方向±Npixelの範囲の画素の濃度値を求める。求めた(2N+1)画素の中でポジフィルムの場合は一番低い濃度値、ネガフィルムの場合は一番高い濃度値の画素が実際に普通画像上でゴミ・キズに対応する画素として、普通画像と赤外光画像のずれ量がわかる(ステップS301)。しかし、1つの画素だけで、ずれ量を判定すると誤った位置ずれ判定をしてゴミ・キズ画素で検出もれが発生する可能性がある。そこで、ずれ量毎の普通画像における濃度値の合計量を求めることにより位置ずれ判定の精度を上げる。図5にその例を示す。図5(a)はずれを検出する範囲をN=10とした場合のポジフィルムにおける例を表す。画素▲1▼,▲2▼,▲3▼,・・・は赤外光画像においてゴミ・キズと判定された全ての画素であり、各画素毎に±10pixelの範囲の濃度値を求め、ずれ量毎にその濃度値の合計を求める(ステップ302)。図5(a)の例においては、ずれ量+1pixelの合計値が最小値となっているので、この場合は赤外光画像と普通画像のずれ量を副走査方向+1pixelとして、ゴミ・キズ検出時に補正を行うことになる(ステップ303)。なお、濃度値の合計値でなく平均値を用いても同様の結果を得ることが出来る。図3のステップ304に示すとおり、主走査方向に対しても同様のずれ補正量決定を行う。なお、図5(b)で、赤外光画像においてゴミ・キズと判定された全ての画素▲1▼,▲2▼,▲3▼,・・・でのずれ量毎の普通画素における濃度値の合計量を求めたが、計算時間短縮のために、図5(b)に示すように、画素▲1▼、▲3▼、▲5▼、・・・のように二画素毎におこなうこともできる。また、第三の実施形態の図11のステップS105で、Mが2の場合、図10(c)、(d)に示すように2画素毎に位置ズレ検出を行う。この場合主走査、副走査方向ともに2画素毎に位置ズレ量を検出するので図5(c)に示すような計算を行って、ズレ量を検出する。図5(c)は図5(a)と比べて、計算量が1/4になっている。
【0078】
<閾値La,Lbの算出>
以下、閾値決定・保存部32による、赤外光画像からゴミ・キズ位置検知を行う場合に用いる閾値La,Lbの算出について説明する。
【0079】
赤外光による透過原稿の読取によって、ゴミ・キズの位置を検出する場合、赤外光画像のヒストグラムを用いてそこから閾値を求め、閾値以下の画素をゴミ・キズと判定して、その画素に対応する普通画像中の画素の補正をする。
【0080】
閾値を決定する方法としては、赤外画像のヒストグラムから算出された平均値から、標準偏差の値をn倍したものを引いた値を閾値とする。式(1)に、この方法を表す。
Threshold = Average - SD x n (1)
Threshold : 閾値
Average : 赤外画像の平均値
SD : 赤外画像の標準偏差
n : 係数n
図16は可視光、及び赤外光(ピーク波長880nm)の分光強度分布を示した図であり、図17は一般的なネガ・ポジカラーフィルムのイエロー色、マゼンダ色、シアン色の透過率を示した図である。
【0081】
図17で明らかなように一般的なカラーフィルムの場合、どのような色素であっても赤外光付近の透過率は非常に高いので、赤外光ランプの光束はほとんど透過する。しかし、透過率が高いと言っても100%に達していない。また、フィルムの成分によっては赤外光付近の透過率が低いものもある。そのようなフィルムを赤外光でスキャンした場合など特に上記の理由から、ゴミ・キズだけでなく、本来可視光で得られる画像情報も赤外光画像に写り込んでしまう可能性がある。
赤外光画像と普通画像のずれ量を求める時に、普通画像情報まで写り込んでしまうと、ずれ補正量の計算に誤差の発生をもたらす。そこで、図2の位置ずれ補正のための第一のゴミ・キズ検出204とゴミ・キズ補正のための第二のゴミ・キズ検出207とで異なる閾値を用いる。
【0082】
図6は赤外光画像のヒストグラムの例を表したもので、Ta602は第一の閾値を、Tb603は第二の閾値を表す。第一の閾値Taは、ずれ補正量を測定するためのものであり、ゴミ・キズ以外の写り込みがないようなレベルに比較的低めに設定する。一方、第二の閾値Tbは、ずれ補正後に除去すべきゴミ・キズの判定に用いるためのものであり、そのレベルは写り込みが赤外光画像に残ったとしても、ゴミ・キズに検出漏れが無いように設定する。
【0083】
前述の式(1)において、係数nの設定によりゴミ・キズ検出の強弱を調整することができる。nを大きくしすぎると検出漏れが発生する可能性があり、逆にnを小さくすると検出漏れは減るが、写り込みが発生する可能性が高くなる。
【0084】
ゴミ・キズ検出のための第二の閾値Tbの時係数nをn=bと設定し、第一の閾値Taの時の係数n=aは、2つの係数の関係をa>bと設定することにより位置ずれ補正の閾値が常に一定値低くなるので、写り込みの影響を少なくすることが可能である。
【0085】
図7は赤外光画像にフィルムホルダの枠が写り込んだ場合のヒストグラムの例を示す。透過原稿を画像読取装置に載置する際にフィルムを固定するためにフィルムホルダを使用する。フィルムホルダは通常プラスチック等で形成され、赤外光画像を読み込んだ時に読取領域にフィルムホルダが写り込んでいると、フィルムホルダは光を通さないのでフィルムホルダ部(以降ホルダシャドウと言う)は通常のゴミ・キズよりも非常に低い濃度値となる。すると赤外光画像の濃度平均値は図5の501にあるようにホルダシャドウが無い場合よりも低くなり、同時に標準偏差も大きくなる。すると前記式(1)は次に示す式(2)のようになるので、Thresholdが低くなり、第一の閾値Ta'、第二の閾値Tb'も図7の702,703のように低くなる。
Threshold(↓↓) = Average(↓) − SD(↑) × n (2)
この場合、ホルダシャドウの入りこむ大きさによっては図7の702,703のように閾値が下がりすぎてしまい、ゴミ・キズ判定、及び位置ずれ判定に誤りを及ぼす恐れがある。また、ホルダシャドウは入っていなくても、写り込みが原因で同様の現象が起こる可能性がある。そこで標準偏差SDに最大リミット値を設けて計算した標準偏差がリミットよりも大きい場合はホルダシャドウ、あるいは写り込みの影響があるとして、あらかじめ設定する固定値に置き換える。
【0086】
〔他の実施形態〕
本発明は、複数の機器から構成されるシステムに適用しても、一つの機器からなる装置に適用してもよい。
【0087】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0088】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0089】
【発明の効果】
以上説明したように、画像読取装置において、可視光による可視光画像と非可視光画像に位置ずれが発生した場合でも、ずれ量の検出をすることによりずれ補正を行い、支障無くゴミ・キズ補正を行うことが可能となる。
【0090】
また、非可視光画像への可視光の影響を除去し、必要以上の画像補正を防止することが可能となる。
【0091】
また、画像読取装置において、可視光にて読み取った画像の解像度と異なる解像度で非可視光で読み取った画像にてゴミ・キズ除去を行った場合でもゴミ・キズ除去性能を低下させることなくゴミ・キズ位置を特定できるため、非可視光での読み取り速度を最適化でき、ゴミ・キズ除去機能の高速化が可能となる。
【0092】
また、ゴミ・キズの大きさに対し非常に高解像度で読み取った場合には、可視光にて読み取った画像のゴミ・キズ位置を特定するのに、ゴミ・キズ除去性能を低下させることなく非可視光と可視光で読み取った画像を処理する画素単位を間引くことができるため、ゴミ・キズ位置の特定処理を早めることができるため、ゴミ・キズ除去機能の高速化が可能となる。
【図面の簡単な説明】
【図1】本発明の第一の実施の形態における画像読み取りシステムの構成を示すブロック図である。
【図2】本発明の第一の実施の形態におけるゴミ・キズ除去部での処理を示すフローチャートである。
【図3】本発明の第一の実施の形態における位置ずれ量検出部での処理を示すフローチャートである。
【図4】本発明の第一の実施の形態における位置ずれ量の検出を説明する図である。
【図5】本発明の第一の実施の形態における位置ずれ量検出部での位置ずれ検出計算の例を示す図である。
【図6】本発明の第一の実施の形態における閾値決定・保存部での2つの閾値の設定を表す図である。
【図7】本発明の第一の実施の形態における閾値決定・保存部でのホルダシャドウが写り込んだ場合のヒストグラム、閾値設定を表す図である。
【図8】本発明の第二の実施の形態を説明する模式図である。
【図9】本発明の第二の実施の形態における画像読取装置における処理を示すフローチャートである。
【図10】本発明の第二と第三の実施の形態を説明する模式図である。
【図11】本発明の第三の実施の形態における画像読取装置における処理を示すフローチャートである。
【図12】本発明の第三の実施の形態における解像度が低い場合の模式図である。
【図13】従来の画像読取装置の構成図である。
【図14】透過原稿上のゴミ・キズによる欠陥領域を検出する従来の画像読取装置の構成図である。
【図15】従来の画像読み取りシステムの構成を示すブロック図である。
【図16】透過原稿照明用ランプと、赤外光ランプの分光強度分布を示す図である。
【図17】一般のカラーフィルムにおける3色の色素の分光透過率特性と、赤外光ランプの分光強度分布のピーク波長を示す図である。
【図18】ゴミ・キズ除去部での従来の処理を示すフローチャートである。
【図19】従来例における、フィルム上のゴミと、透過原稿照明用ランプ及び赤外光ランプによりフィルムを読み込んで得た階調レベルとの関係を示す図である。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a signal processing method, an image reading apparatus program, and a medium, and more particularly to a signal processing method, an image reading apparatus, a program, and a medium for correcting a defective portion due to dust or scratches on a document.
[0002]
[Prior art]
FIG. 13 shows a schematic configuration of a conventional image reading apparatus for a transparent original, for example. In FIG. 13, a positive or negative transparent original 142 placed on an
[0003]
In this case, image formation in the sub-scanning direction is performed by mechanically moving the transmission
[0004]
Further, in the transparent original image reading apparatus as described above, it is also possible to read a so-called reflective original of a type in which light reflected on the original is processed by irradiating light on the original described on the opaque paper. is there. In this case, a reflective original is placed instead of the transparent original 142, the transparent
[0005]
In particular, in the color reading method, a lamp having white spectral characteristics is used as the reflective document illumination lamp 145, and a three-line type CCD having RGB color filters is used as the
[0006]
By the way, in the image reading apparatus for a transparent document as described above, in order to correct a defective portion on an image due to dust or scratches on the transparent document, an effective method other than retouch correction by image editing software after image reading is performed. There was no. Therefore, it takes a very long time to correct the defective portion.
[0007]
In recent years, in such an image reading apparatus for a transparent document, dust such as dust existing on the transparent document or damage (scratches) on the film surface is detected (hereinafter, this detection is referred to as “dust / scratch detection”). An image reading apparatus having a function for removing so-called dust / scratches, which removes the influence of dust and scratches from the read image by image processing, has been developed.
[0008]
FIG. 14 is a diagram showing an
[0009]
In FIG. 14, reference numeral 151 denotes an infrared lamp composed of an LED having a light emission intensity peak at a wavelength of about 880 nm.
[0010]
FIG. 15 is a block diagram illustrating a functional configuration of a dust /
[0011]
FIG. 16 is a diagram showing the spectral intensity distribution of the transparent
[0012]
Hereinafter, the transparent document reading operation when the dust / scratch removing operation is performed will be described in detail with reference to the flowchart shown in FIG.
[0013]
First, in step S10, the reflective original illumination lamp 145 and the infrared light lamp 151 in FIG. 14 are turned off, and the transparent
[0014]
Next, in step S20, the reflective document illumination lamp 145 and the transparent
[0015]
Next, dust and scratch detection and correction are performed in the steps after step S30. The principle of dust and scratch detection will be described in detail here.
[0016]
FIG. 19 illustrates the relationship between dust and the like in which the gradation level of the read image obtained by the transparent
[0017]
The
[0018]
If the infrared light image data is smaller than the threshold value 184 (NO in step S30), the
[0019]
[Problems to be solved by the invention]
However, in order to detect dust and scratches using a non-visible light image, the same document must be read twice, such as scanning reading using non-visible light and scanning reading using visible light. Therefore, it is necessary to scan the original with a scanning unit including at least a part of the photoelectric conversion means, the optical system, and the processing circuit. Then, a deviation due to a problem of the operation accuracy of the scanning unit occurs between an image by non-visible light scanning reading for detecting dust and scratches and an image by visible light scanning reading for obtaining actual image information, As a result, there was a problem that removal of dust and scratches was not satisfactory.
[0020]
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems. When a document is scanned to correct dust / scratches, even if a plurality of scanning operations are repeatedly deviated, appropriate dust / scratch detection and correction are performed. The purpose is to perform stably.
[0021]
In addition, the wavelength characteristics of the illumination, light sensor, and document are not necessarily ideal, so the visible light image may affect the non-visible light image, and the shadow of the film holder may affect the non-visible light image. There is a problem that a visible light image that is not a defect due to dust and scratches is erroneously corrected.
[0022]
The present invention has been made in view of the above-described problems, and an object of the present invention is to reduce the influence of deviation from ideal wavelength characteristics, shadow of a film holder, and the like.
[0023]
In addition, there is a problem that it takes a very long time to detect dust / scratch positions of a normal image and an infrared light image because image data increases when read at a high specified resolution.
[0024]
The present invention has been made in view of the above problems, and an object of the present invention is to speed up the dust / scratch removal process without deteriorating the dust / scratch repair effect.
[0025]
[Means for Solving the Problems]
The present invention has been made to solve the above problems, and is configured as follows.
[0026]
A visible light image signal and a non-visible light image obtained by irradiating an original with a visible light irradiating means for irradiating visible light and an invisible light irradiating means for irradiating invisible light, respectively, and photoelectrically converting the optical image of the original. A signal processing method for processing a signal, the step of generating a first dust / scratch image signal from the non-visible light image signal, and the first dust / scratch image signal in the visible light image signal. And calculating a sum of signal values of the pixels corresponding to the dust / scratch position for each shift amount by shifting the pixels corresponding to the dust / scratch position by a predetermined pixel. Correlation calculation Using a displacement amount detection step for obtaining a displacement amount between the visible light image and the first dust / scratch image, a displacement amount detected in the displacement amount detection step, and the invisible light image signal. A correction step of correcting the visible light image signal, and the correction step includes a step of generating a second dust / scratch image signal from the non-visible light image signal using a second threshold, The visible light image signal is corrected using the deviation amount and the second dust / scratch image signal. And a signal processing method.
[0048]
DETAILED DESCRIPTION OF THE INVENTION
DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0049]
<First embodiment>
A first embodiment will be described with reference to FIGS. The configuration of the image reading apparatus is the same as that shown in FIG. FIG. 1 is a block diagram illustrating a functional configuration of a dust /
[0050]
In FIG. 1,
[0051]
Next, the transparent original reading operation when the dust / scratch removing operation in the first embodiment is performed will be described in detail with reference to the flowchart of FIG.
[0052]
First, in step S201, the reflection original illumination lamp 145 and the infrared light lamp 151 in FIG. 14 are turned off, and the transmission
[0053]
Next, in step S202, the reflective document illumination lamp 145 and the transparent
[0054]
Next, in step S203, using the infrared light image data temporarily stored in the infrared
[0055]
Next, in step S204, the dust /
[0056]
In step S <b> 205, the displacement
[0057]
Next, in
[0058]
In step S207, the dust /
[0059]
In step S <b> 208, the
[0060]
<Second Embodiment>
A second embodiment will be described with reference to FIGS. FIG. 8A shows a state where
[0061]
FIG. 8D shows the gradation level when the portion of FIG. 8A is read with the infrared lamp 151 shown in FIG. 14, and particularly shows the case where it is read with the specified resolution. In this case, since the dust / scratch information is read at a higher resolution, the gradation level changes precisely. In this case, the difference between the gradation level L3 not affected by dust and scratches by a threshold (or a threshold determined by histogram and gradation level analysis) set in advance as the predetermined level ΔL34 for the infrared light image. Is set, and binarization processing is performed at the gradation level L4 to determine dust / scratch detection information. If the dust / scratch width determined as dust / scratch detection information in FIG. 8 (d) is P3, since it is read at the designated resolution in FIG. 8 (d), it is detected with a width of P3 that is substantially equal to P1. This means that the garbage / scratch position can be specified correctly.
[0062]
As described in FIGS. 8C and 8D, the information desired to be obtained from the infrared light image is not the resolution or the gradation distribution but the dust / flaw width. This means that even if the resolution is lower than the specified resolution, it is sufficient if the dust / scratch width can be specified. For example, even when reading at a resolution about 1/2 lower than the specified resolution, a predetermined threshold is set. By doing so, it is possible to specify the width of dust and scratches almost accurately.
[0063]
FIG. 8 (e) shows the gradation level when the portion of FIG. 8 (a) is read with the infrared lamp 151 shown in FIG. 14, and in particular, the case where it is read with a resolution of 1/2 of the designated resolution. Show. In this case as well, the gradation level changes precisely, much like the case where dust / scratch information is read at a specified resolution. In this case, the difference between the gradation level L5 not affected by dust and scratches by a threshold (or a threshold determined by histogram and gradation level analysis) set in advance as the predetermined level ΔL56 for the infrared light image. Is set, and binarization processing is performed at the gradation level L6 to determine dust / scratch detection information. If the dust / scratch width determined as dust / scratch detection information in FIG. 8 (e) is P4, even if it is read at half the specified resolution in FIG. 8 (e), P4 is almost equal to P1. This means that the dust / scratch position can be correctly identified.
[0064]
In other words, even if the infrared light image is read in FIG. 8 (e), the dust / scratch position can be correctly specified even if the infrared light image is read at a
[0065]
FIG. 10 shows a schematic diagram of the read image. As an example of an image read by the
[0066]
Hereinafter, the transparent document reading operation when the dust / scratch removing operation is performed will be described in detail with reference to the flowchart shown in FIG.
[0067]
First, in step S301, the reflective original illumination lamp 145 and the infrared light lamp 151 in FIG. 14 are turned off, and the transparent
[0068]
Next, in step S302, the reflective document illumination lamp 145 and the transparent
[0069]
In step S303, the infrared light image obtained in step S302 is subjected to a magnification process of M times from the predetermined resolution Rn to the specified resolution Rs. M = Rs / Rn. Here, the infrared light image can handle the spatial distance in the same pixel unit as the designated resolution.
[0070]
Next, in step S304, in order to detect the position of the dust / scratch in the normal image, the position of the dust / scratch in accordance with the scanning accuracy of S301 and S302 for the normal image and the infrared image as shown in FIG. When the difference is obtained, the amount of misalignment is detected for each M pixel of the normal image. Details of the positional deviation amount detection will be described later. For example, if the zoom ratio is double as shown in FIG. 10B and the dust / scratch position image in FIG. 10B, the amount of deviation is detected every two pixels. The shift amount of the entire image is detected from the sum of the shift amount detection performed for each M pixel.
[0071]
In step S305, the dust / scratch image in the normal image is repaired. Here, in the normal image, the dust / scratch image of the image corresponding to the position where the dust / scratch position obtained from the infrared light image is shifted by the shift amount obtained in step S304 is repaired. Then, the dust / scratch removal process ends. According to this flowchart, the reading speed of the infrared light image can be increased, and as a result, the speed can be increased without deteriorating the dust / scratch removal performance.
[0072]
<Third embodiment>
A third embodiment will be described with reference to FIGS. 10 and 11. FIG. 10 has been described in the second embodiment. The transparent original reading operation when the dust / scratch removing operation is performed will be described in detail with reference to the flowchart shown in FIG.
[0073]
First, Steps S101 and S102 are the same as Steps S301 and S302 described in the second embodiment, but in Step S102, the resolution is read with the same Rs as S101. Here, when the resolutions of steps S101 and S102 are very high, as described with reference to FIG. 8 of the first embodiment, in order to specify the dust / scratch position, infrared light with a higher resolution than a certain resolution is used. There are cases where it is not necessary to read an image. The same effect can be obtained when aligning the normal image and the infrared light image. The resolution at this boundary is set as a predetermined resolution Rd.
[0074]
Next, in step S103, it is determined whether or not the infrared light image obtained in step S102 is lower than a predetermined resolution Rd. If lower than the predetermined resolution Rd, step S104 and step S106 are used for each pixel. Detects the amount of dust and scratch displacement. If the resolution is the same as or higher than the predetermined resolution Rd in S103, the process goes through steps S105 and S106. At this time, when the designated resolution as shown in FIG. 2 is very high, the positional deviation in the case where the dust / flaw position associated with the steps of S101 and S102 is shifted between the normal image and the infrared light image. The amount detection can be speeded up by detecting the amount of dust / scratch displacement for each M (= Rs / Rn) pixels. The dust / scratch position is corrected with the amount of displacement detected in step S106, the dust / scratch image in the normal image is repaired, and the dust / scratch removal process ends. According to this flowchart, if the specified resolution is very high, the dust / scratch alignment processing of the normal image and the infrared light image can be accelerated, and as a result, the dust / scratch removal performance is reduced without degrading. Can be achieved.
[0075]
Hereinafter, detection of the amount of misalignment and detection of the threshold values La and Lb, which are common to this embodiment, will be described.
[0076]
<Position detection>
Hereinafter, with reference to FIGS. 3, 4, and 5, detection of the displacement amount between the normal image and the first dust / scratch position image by the
[0077]
FIG. 3 shows a flowchart showing the positional deviation amount detection, and FIG. 4 shows a schematic diagram explaining the positional deviation correction of the present embodiment. As shown in FIG. 4, the downward direction is the sub-scanning direction and the horizontal direction is the main scanning direction. In FIG. 4, 401 and 402 are pixels detected as dust / scratches in the infrared light image of (a), and the pixel coordinates of 403 and 404 in the normal image of (b) correspond to the coordinates of 401 and 402, respectively. ing. However, in actuality, there is a positional shift between the infrared light image and the normal image as described above, and there is a possibility that the dust /
[0078]
<Calculation of threshold values La and Lb>
Hereinafter, calculation of the threshold values La and Lb used when the threshold value determination /
[0079]
When the position of dust / scratches is detected by reading a transparent original using infrared light, a threshold value is obtained from the infrared image histogram, and pixels below the threshold value are determined as dust / scratches. The pixel in the normal image corresponding to is corrected.
[0080]
As a method for determining the threshold value, a value obtained by subtracting n times the standard deviation value from the average value calculated from the histogram of the infrared image is used as the threshold value. Formula (1) represents this method.
Threshold = Average-SD xn (1)
Threshold: Threshold
Average: Average value of infrared image
SD: Standard deviation of infrared image
n: coefficient n
FIG. 16 is a diagram showing spectral intensity distributions of visible light and infrared light (peak wavelength: 880 nm), and FIG. 17 shows transmittances of yellow, magenta, and cyan colors of a general negative / positive color film. FIG.
[0081]
As is apparent from FIG. 17, in the case of a general color film, the transmittance in the vicinity of infrared light is very high for any pigment, so that the luminous flux of the infrared light lamp is almost transmitted. However, even if the transmittance is high, it has not reached 100%. Some film components have low transmittance near infrared light. For example, when such a film is scanned with infrared light, not only dust and scratches but also image information originally obtained with visible light may be reflected in the infrared light image.
If normal image information is captured when obtaining the amount of deviation between the infrared light image and the normal image, an error occurs in the calculation of the amount of deviation correction. Therefore, different threshold values are used for the first dust / scratch detection 204 for correcting the misalignment in FIG. 2 and the second dust /
[0082]
FIG. 6 illustrates an example of a histogram of an infrared light image, where
[0083]
In the above equation (1), the intensity of dust / scratch detection can be adjusted by setting the coefficient n. If n is excessively increased, detection failure may occur. Conversely, if n is decreased, detection failure is reduced, but the possibility of occurrence of reflection increases.
[0084]
The time coefficient n for the second threshold Tb for dust / scratch detection is set to n = b, and the coefficient n = a for the first threshold Ta sets the relationship between the two coefficients as a> b As a result, the threshold value for misregistration correction is always reduced by a certain value, so that the influence of reflection can be reduced.
[0085]
FIG. 7 shows an example of a histogram when the frame of the film holder is reflected in the infrared light image. A film holder is used to fix the film when the transparent original is placed on the image reading apparatus. The film holder is usually formed of plastic or the like, and when the infrared light image is read, if the film holder is reflected in the reading area, the film holder does not transmit light, so the film holder part (hereinafter referred to as holder shadow) is usually The density value is much lower than that of trash and scratches. Then, the density average value of the infrared light image is lower than that in the case where there is no holder shadow as indicated by 501 in FIG. 5, and at the same time, the standard deviation is also increased. Then, since the equation (1) becomes the following equation (2), the threshold value is lowered, and the first threshold value Ta ′ and the second threshold value Tb ′ are also lowered as shown by 702 and 703 in FIG. .
Threshold (↓↓) = Average (↓) − SD (↑) × n (2)
In this case, depending on the size of the holder shadow, the threshold value may decrease too much as indicated by
[0086]
[Other Embodiments]
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device.
[0087]
Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or CPU) of the system or apparatus. Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0088]
Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.
[0089]
【The invention's effect】
As described above, in the image reading apparatus, even when a positional deviation occurs between a visible light image and a non-visible light image due to visible light, the deviation correction is performed by detecting the deviation amount, and dust / scratch correction is performed without any problem. Can be performed.
[0090]
In addition, it is possible to remove the influence of visible light on the invisible light image and prevent unnecessary image correction.
[0091]
In addition, in the image reading apparatus, even if dust / scratch removal is performed on an image read with invisible light at a resolution different from the resolution of the image read with visible light, dust / scratch removal performance is not deteriorated. Since the scratch position can be specified, the reading speed with invisible light can be optimized, and the dust / scratch removal function can be accelerated.
[0092]
Also, when scanning at very high resolution relative to the size of dust / scratches, it is possible to identify dust / scratch positions in images scanned with visible light without degrading dust / scratch removal performance. Since the pixel unit for processing the image read with visible light and visible light can be thinned out, it is possible to speed up the dust / scratch position specifying process, so that the dust / scratch removal function can be speeded up.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an image reading system according to a first embodiment of the present invention.
FIG. 2 is a flowchart showing a process in a dust / scratch removal unit in the first embodiment of the present invention.
FIG. 3 is a flowchart showing processing in a misregistration amount detection unit in the first embodiment of the present invention.
FIG. 4 is a diagram for explaining detection of a displacement amount in the first embodiment of the present invention.
FIG. 5 is a diagram illustrating an example of misregistration detection calculation in a misregistration amount detection unit according to the first embodiment of the present invention.
FIG. 6 is a diagram illustrating setting of two threshold values in a threshold value determining / storing unit according to the first embodiment of the present invention.
FIG. 7 is a diagram illustrating a histogram and threshold setting when a holder shadow is reflected in a threshold determination / storing unit according to the first embodiment of the present invention.
FIG. 8 is a schematic diagram for explaining a second embodiment of the present invention.
FIG. 9 is a flowchart showing processing in the image reading apparatus according to the second embodiment of the present invention.
FIG. 10 is a schematic diagram for explaining second and third embodiments of the present invention.
FIG. 11 is a flowchart showing processing in the image reading apparatus according to the third embodiment of the present invention.
FIG. 12 is a schematic diagram when the resolution is low in the third exemplary embodiment of the present invention.
FIG. 13 is a configuration diagram of a conventional image reading apparatus.
FIG. 14 is a configuration diagram of a conventional image reading apparatus that detects a defective area due to dust and scratches on a transparent original.
FIG. 15 is a block diagram illustrating a configuration of a conventional image reading system.
FIG. 16 is a diagram showing spectral intensity distributions of a transparent document illumination lamp and an infrared lamp.
FIG. 17 is a diagram showing the spectral transmittance characteristics of three color pigments in a general color film and the peak wavelength of the spectral intensity distribution of an infrared light lamp.
FIG. 18 is a flowchart showing a conventional process in a dust / scratch removal unit.
FIG. 19 is a diagram showing a relationship between dust on a film and gradation levels obtained by reading the film with a transparent document illumination lamp and an infrared lamp in a conventional example.
Claims (7)
前記非可視光画像信号から第一のゴミ・キズ画像信号を生成する工程と、
前記可視光画像信号において、前記第一のゴミ・キズ画像信号のゴミ・キズ位置に対応する画素を、所定画素ずつずらして、各ずらし量毎にゴミ・キズ位置に対応する画素の信号値の和を算出する算出工程を含む相関演算を行い、前記可視光画像と前記第一のゴミ・キズ画像とのズレ量を求めるズレ量検出工程と、
前記ズレ量検出工程で検出されたズレ量と、前記非可視光画像信号とを用いて前記可視光画像信号を補正する補正工程とを有し、
前記補正工程は、前記非可視光画像信号から第二の閾値を用いて第二のゴミ・キズ画像信号を生成する工程を有し、前記ズレ量と第二のゴミ・キズ画像信号を用いて前記可視光画像信号を補正することを特徴とする信号処理方法。A visible light image signal and a non-visible light image obtained by irradiating an original with a visible light irradiating means for irradiating visible light and an invisible light irradiating means for irradiating invisible light, respectively, and photoelectrically converting the optical image of the original. A signal processing method for processing a signal, comprising:
Generating a first dust / scratch image signal from the invisible light image signal;
In the visible light image signal, the pixel corresponding to the dust / scratch position of the first dust / scratch image signal is shifted by a predetermined pixel, and the signal value of the pixel corresponding to the dust / scratch position for each shift amount. A shift amount detection step of performing a correlation operation including a calculation step of calculating a sum and obtaining a shift amount between the visible light image and the first dust / scratch image;
A correction step of correcting the visible light image signal using the deviation amount detected in the deviation amount detection step and the non-visible light image signal,
The correction step includes a step of generating a second dust / scratch image signal from the non-visible light image signal using a second threshold, and using the shift amount and the second dust / scratch image signal. A signal processing method comprising correcting the visible light image signal.
Priority Applications (9)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001074324A JP4636714B2 (en) | 2001-03-15 | 2001-03-15 | Signal processing method, image reading apparatus, program, and medium |
| TW091104492A TW563345B (en) | 2001-03-15 | 2002-03-11 | Image processing for correcting defects of read image |
| EP02005737A EP1241866B1 (en) | 2001-03-15 | 2002-03-13 | Image processing method for correcting defects of scanned image |
| MYPI20020911A MY128231A (en) | 2001-03-15 | 2002-03-13 | Image processing for correcting defects of read image. |
| US10/098,904 US7006705B2 (en) | 2001-03-15 | 2002-03-13 | Image processing for correcting defects of read image |
| CNB2006100045898A CN100459656C (en) | 2001-03-15 | 2002-03-14 | Image processing for correcting defects of read image |
| CNB02119811XA CN1250013C (en) | 2001-03-15 | 2002-03-14 | Image processing for correcting read image defects |
| US11/197,709 US7245784B2 (en) | 2001-03-15 | 2005-08-03 | Image processing for correcting defects of read image |
| US11/671,834 US7391928B2 (en) | 2001-03-15 | 2007-02-06 | Image processing for correcting defects of read image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001074324A JP4636714B2 (en) | 2001-03-15 | 2001-03-15 | Signal processing method, image reading apparatus, program, and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002279414A JP2002279414A (en) | 2002-09-27 |
| JP4636714B2 true JP4636714B2 (en) | 2011-02-23 |
Family
ID=18931615
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001074324A Expired - Fee Related JP4636714B2 (en) | 2001-03-15 | 2001-03-15 | Signal processing method, image reading apparatus, program, and medium |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP4636714B2 (en) |
| CN (1) | CN100459656C (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007068145A (en) | 2005-08-05 | 2007-03-15 | Seiko Epson Corp | Calibration system and calibration method |
| JP4432943B2 (en) | 2006-08-18 | 2010-03-17 | セイコーエプソン株式会社 | Line position calculation method and correction value acquisition method |
| CN106961534A (en) * | 2016-01-11 | 2017-07-18 | 深圳市安普盛科技有限公司 | A kind of mobile communication terminal and its scan method with scan function |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN2342418Y (en) * | 1997-04-01 | 1999-10-06 | 鸿友科技股份有限公司 | Infrared light source scanning device |
| JPH1115951A (en) * | 1997-06-24 | 1999-01-22 | Sharp Corp | Displacement detecting device and image synthesizing device |
| US6075590A (en) * | 1998-03-02 | 2000-06-13 | Applied Science Fiction, Inc. | Reflection infrared surface defect correction |
| JP3689568B2 (en) * | 1998-09-30 | 2005-08-31 | キヤノン株式会社 | Image reading apparatus, image reading method, and storage medium |
| JP3563975B2 (en) * | 1998-09-25 | 2004-09-08 | キヤノン株式会社 | Image reading apparatus, image reading method, and storage medium |
| JP2001016413A (en) * | 1999-06-30 | 2001-01-19 | Fuji Photo Film Co Ltd | Image reader |
-
2001
- 2001-03-15 JP JP2001074324A patent/JP4636714B2/en not_active Expired - Fee Related
-
2002
- 2002-03-14 CN CNB2006100045898A patent/CN100459656C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN1829278A (en) | 2006-09-06 |
| CN100459656C (en) | 2009-02-04 |
| JP2002279414A (en) | 2002-09-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4401590B2 (en) | Image data processing method and image data processing apparatus | |
| US7006705B2 (en) | Image processing for correcting defects of read image | |
| EP1244286B1 (en) | Image reading apparatus and illumination apparatus | |
| JP3754870B2 (en) | Image reading apparatus, shading correction method, and storage medium | |
| JPH0654194A (en) | Method for compensation of contaminated or damaged region of manuscript platen and image playback apparatus | |
| US6775419B2 (en) | Image processing method, image processing apparatus, and storage medium for storing control process | |
| JP2005065276A (en) | System and method for automatic correction of illumination noise caused by ambient light | |
| US7113619B1 (en) | Image reading method, image reading apparatus and method of discriminating defect of image data | |
| US20060209367A1 (en) | Method and apparatus for image processing | |
| US7400430B2 (en) | Detecting and compensating for color misregistration produced by a color scanner | |
| JP4636714B2 (en) | Signal processing method, image reading apparatus, program, and medium | |
| JPH0670097A (en) | Picture reader | |
| US8089669B2 (en) | Apparatus and control method for image reading, image forming apparatus | |
| JP4871665B2 (en) | Image input apparatus and image forming apparatus | |
| JP4630477B2 (en) | Image signal processing method | |
| US6734997B2 (en) | Method of detecting defects on a transparent film in a scanner | |
| JP4239302B2 (en) | Image reading device | |
| JP3563975B2 (en) | Image reading apparatus, image reading method, and storage medium | |
| US6532084B1 (en) | Method for detecting the relative location of an image reading head and a light source | |
| JP4630476B2 (en) | Image signal processing apparatus, image signal processing method, image reading system, program, and medium | |
| JP5020904B2 (en) | Image reading apparatus, control method therefor, and image forming apparatus | |
| JPS6285573A (en) | Shading correcting device | |
| JP2001223892A (en) | Image processing apparatus, method and storage medium | |
| JPH05110881A (en) | Color reader | |
| JPH0514721A (en) | Picture reader |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080317 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20100201 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100420 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100427 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100628 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20100630 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100824 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101025 |
|
| 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: 20101116 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20101122 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131203 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4636714 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |