[go: up one dir, main page]

JP2003348305A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method

Info

Publication number
JP2003348305A
JP2003348305A JP2002156821A JP2002156821A JP2003348305A JP 2003348305 A JP2003348305 A JP 2003348305A JP 2002156821 A JP2002156821 A JP 2002156821A JP 2002156821 A JP2002156821 A JP 2002156821A JP 2003348305 A JP2003348305 A JP 2003348305A
Authority
JP
Japan
Prior art keywords
image
dust
reading
resolution
scratches
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002156821A
Other languages
Japanese (ja)
Inventor
Nobuyuki Tochigi
伸之 栃木
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2002156821A priority Critical patent/JP2003348305A/en
Publication of JP2003348305A publication Critical patent/JP2003348305A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

(57)【要約】 【課題】 画像読取装置におけるゴミ、傷の補正におい
て誤検知による誤補正や未検知による未補正を無くし、
処理速度と補正画像を向上させる。 【解決手段】 非可視光画像からゴミ、傷の情報を検出
する検出手段を有し、可視光画像とゴミ、傷の情報から
ゴミ、傷を補正する補正手段を有する画像読み取り装置
において、検出手段によるゴミや傷の判定は閾値で行わ
れ、閾値は読み取り解像度に応じて変化する閾値変化手
段を備える。
(57) [Problem] To eliminate erroneous correction due to erroneous detection and uncorrected due to non-detection in correction of dust and scratches in an image reading device,
Improve processing speed and corrected image. An image reading apparatus includes a detection unit that detects dust and scratch information from an invisible light image, and a correction unit that corrects dust and scratch from a visible light image and dust and scratch information. The determination of dust and scratches is performed using a threshold, and the threshold includes a threshold changing unit that changes according to the reading resolution.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、原稿面のゴミや傷
により取得したデジタル画像の画像情報の欠落や劣化を
修正する補正手段を有する画像読み取り装置であり、特
に銀塩カメラによって撮影された現像済みフィルムを読
み取り、フィルムに付いたゴミや傷による情報の欠落や
劣化を修正するスキャナに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus having correction means for correcting missing or degraded image information of a digital image obtained due to dust or scratches on a document surface. The present invention relates to a scanner that reads a developed film and corrects missing or deteriorated information due to dust or scratches on the film.

【0002】[0002]

【従来の技術】従来、フィルムに記録された画像情報を
ラインセンサにより読み取り、前記ラインセンサのRG
B出力電圧をアナログアンプにより増幅した後それぞれ
A/D変換機によりデジタル信号に変換し、各種デジタ
ル画像処理を施して出力するという構成のフィルムスキ
ャナにおいて、フィルムスキャナ自体の解像度があがる
につれフィルム上のより詳細な情報を得ることが可能と
なった反面、原稿であるフィルム上に存在するごみやき
ずなどが出力画像に与える影響が大きくなってしまうと
いうことが問題となっていた。
2. Description of the Related Art Conventionally, image information recorded on a film is read by a line sensor and the RG of the line sensor is read.
The B output voltage is amplified by an analog amplifier, then converted into a digital signal by an A / D converter, and subjected to various digital image processing and output. In the film scanner, the resolution of the film scanner itself increases as the resolution of the film scanner itself increases. On the other hand, it has become possible to obtain more detailed information, but on the other hand, there has been a problem that dust and flaws existing on a film as an original have a large effect on an output image.

【0003】この問題を解決する方法として、登録特許
第2559970号では記憶媒体に記憶された画像に対
する該記憶媒体の欠陥の影響を補正する方法であって、
前記記憶媒体に赤外線エネルギー及び可視光線エネルギ
ーを当てるステップと、前記の赤外線エネルギーを前記
記憶媒体に当てることにより生じる前記欠陥に対応する
赤外線エネルギー分布を前記記憶媒体の各記憶位置に対
応付けて検出するステップと、前記可視光線エネルギー
を前記記憶媒体に当てることにより生じる可視光線エネ
ルギー分布を前記記憶媒体の前記各記憶位置に対応付け
て検出するステップと、前記記憶媒体の前記各記憶位置
について、検出された赤外線エネルギー分強度が所定の
閾値より大きい場合当該記憶位置の可視光線エネルギー
分布強度を当該記憶位置の赤外線エネルギー分布強度を
打ち消すレベルまで増強し、検出された赤外線エネルギ
ー分布強度が前記所定の閾値以下の場合当該記憶位置の
可視光線エネルギー分布強度を補間法により補正するス
テップと、を含む記憶媒体の欠陥の影響を補正する方法
を提示している。
As a method for solving this problem, Japanese Patent No. 2559970 discloses a method for correcting the effect of a defect of a storage medium on an image stored in the storage medium.
Applying infrared energy and visible light energy to the storage medium, and detecting an infrared energy distribution corresponding to the defect caused by applying the infrared energy to the storage medium in association with each storage location of the storage medium. Detecting the visible light energy distribution generated by applying the visible light energy to the storage medium in association with each of the storage locations of the storage medium; and detecting, for each of the storage locations of the storage medium, If the infrared energy component intensity is greater than a predetermined threshold, the visible light energy distribution intensity at the storage location is increased to a level that cancels the infrared energy distribution intensity at the storage location, and the detected infrared energy distribution intensity is equal to or less than the predetermined threshold. In the case of, the visible light energy of the storage location The distribution intensities presents a method for correcting the influence of defects in storage media including a step of correcting by interpolation.

【0004】こちらでは閾値に対して得られたデータの
大小で処理内容を変えることが記載されている。
It is described that the processing content is changed depending on the magnitude of data obtained with respect to a threshold.

【0005】また特開2000−341473号公報で
は非可視光でフイルムの傷やフイルム上のゴミを検知
し、検知した傷、ゴミを画像処理で補正する際に、当該
フィルム固有の情報に基づいて前記傷やゴミの検知の閾
値を制御するようにして、ゴミや傷の検出を確実に行う
一方で、傷やゴミ以外のものを傷やゴミと誤検出するこ
とのない傷補正画像処理方法およびこの方法を適用した
傷補正画像処理装置を提示している。
In Japanese Patent Application Laid-Open No. 2000-341473, a film flaw or dust on a film is detected by invisible light, and when the detected flaw or dust is corrected by image processing, it is determined based on information unique to the film. A flaw-corrected image processing method that controls the threshold value of the flaw or dust detection so as to surely detect the flaw or flaw but does not erroneously detect anything other than flaw or flaw as a flaw or dust. A flaw-corrected image processing apparatus to which this method is applied is presented.

【0006】こちらではフィルム固有の情報すなわちフ
ィルムの種類によって閾値を制御することが記載されて
いる。
Here, it is described that the threshold value is controlled by information unique to the film, ie, the type of the film.

【0007】[0007]

【発明が解決しようとする課題】しかしながらこれだけ
の制御では所謂ラボと呼ばれるところのように一定の解
像度で読み取る場合にのみ効果が得られ、ユーザーが任
意に解像度を変えることが可能な民生機としてのフラッ
トベットスキャナーやフィルムスキャナーといった画像
読み取り装置では解像度変化による赤外画像のゴミや傷
の出力変化でゴミや傷の検出を確実に検出できないとい
う問題がある。
However, such control is effective only when reading is performed at a fixed resolution, such as a so-called laboratory, and as a consumer device that allows the user to change the resolution arbitrarily. In an image reading apparatus such as a flatbed scanner or a film scanner, there is a problem that the detection of dust or flaw cannot be reliably detected due to a change in the output of dust or flaw in an infrared image due to a change in resolution.

【0008】[0008]

【課題を解決するための手段】上記のような問題を解決
するため本発明の画像読み取り装置は、可視光による画
像と非可視光による画像を読み取る手段と該非可視光に
よる読み取り手段からゴミや傷の情報を検出する検出手
段と該可視光の読み取り手段から得られた画像情報と該
検出手段によるゴミや傷の情報に基づいて原稿面上のゴ
ミや傷を補正する補正手段とを有する画像読み取り装置
において、該検出手段によるゴミや傷の判定は閾値によ
って判定され、該閾値は該読み取り手段の解像度に応じ
て変化するようにする手段を有しており、さらに読み取
り手段は画像情報をラインセンサにより読み取り、前記
ラインセンサのRGB出力電圧をアナログアンプにより
増幅した後それぞれA/D変換機によりデジタル信号に
変換し出力する手段を有することであり、さらに閾値は
閾値1、閾値2の2つから構成し、閾値の少なくとも1
つが読み取り解像度に対して非連続的に変化するか、も
しくは閾値の少なくとも1つがは読み取り解像度を引数
とする関数で表すようにすることであり、さらに非可視
光による読み取り手段において解像度をより低解像度に
変化させる方法として隣接する複数画素の平均値を用い
る平均化手段を備えることである。
In order to solve the above-mentioned problems, an image reading apparatus according to the present invention comprises means for reading an image by visible light and an image by invisible light, and dust and scratches from the means for reading by invisible light. Image reading comprising: detecting means for detecting the information of the image and image information obtained from the means for reading the visible light, and correcting means for correcting dust and scratches on the document surface based on the information of dust and scratches by the detecting means. In the apparatus, the determination of dust and scratches by the detection means is determined by a threshold value, and the threshold value has means for changing the resolution according to the resolution of the reading means. And then amplifies the RGB output voltage of the line sensor by an analog amplifier, and then converts and outputs the digital signal by an A / D converter. It is to have a further threshold is a threshold 1, constructed from two threshold 2, at least one threshold value
One changes discontinuously with respect to the reading resolution, or at least one of the thresholds is represented by a function having the reading resolution as an argument. In order to change the value of the pixel, an averaging means using an average value of a plurality of adjacent pixels is provided.

【0009】また可視光による画像と非可視光による画
像を読み取るステップと非可視光による読み取りステッ
プからゴミや傷の情報を検出する検出ステップと可視光
の読み取り手段から得られた画像情報と検出ステップに
よるゴミや傷の情報に基づいて原稿面上のゴミや傷を補
正する補正ステップと検出ステップによるゴミや傷の判
定は閾値によって判定するステップと閾値は読み取りス
テップの解像度に応じて変化する閾値変化ステップとを
備える画像処理方法を行うことである。
A step of reading an image by visible light and an image by invisible light; a step of detecting dust or flaw information from the step of reading by invisible light; and a step of detecting image information and detection information obtained by means of reading visible light. The step of determining dust and scratches by the correction step for correcting dust and scratches on the document surface based on the information of dust and scratches by the detection step and the step of determining dust and scratches by the threshold value, and the threshold value changes according to the resolution of the reading step And an image processing method comprising the steps of:

【0010】これにより解像度の変化によらず、ごみや
きず等の欠損画像の検出を確実に行いつつ、誤検出を減
らし、処理速度や画質を向上させることを目的とする。
Accordingly, it is an object of the present invention to reliably detect a defective image such as dust or a scratch regardless of a change in resolution, reduce erroneous detection, and improve processing speed and image quality.

【0011】[0011]

【発明の実施の形態】(実施例1)本発明を適用したフ
ィルムスキャナの構成を図1に示し説明する。特に原稿
としてネガフィルムを使用した場合について説明する。
(Embodiment 1) The structure of a film scanner to which the present invention is applied will be described with reference to FIG. In particular, a case where a negative film is used as a document will be described.

【0012】101はフィルムを照明するランプであり
可視光用ランプaと赤外光用ランプbからなりCPU1
16の命令を受けるランプ駆動回路110により制御さ
れている。102はフィルムを保持するフィルムフォル
ダであり、副走査モータ107により矢印A方向へ移動
可能であり、CPU116の命令を受けるモータ駆動回
路109により制御されている。また副走査位置検出セ
ンサ106によりフィルムフォルダ102の位置を検出
し、フィルムフォルダ102の初期位置を得ている。1
03は赤外光カットフィルタである。ここで副走査モー
タ107はステッピングモータを、副走査位置検出セン
サ106にはフォトインターラプタを用いている。10
4はランプ101により照射されフィルムを透過した光
をCCDラインセンサ(以下CCDと呼ぶ)105上に
結像する結像レンズである。
Reference numeral 101 denotes a lamp for illuminating the film, which comprises a lamp a for visible light and a lamp b for infrared light.
It is controlled by a lamp drive circuit 110 receiving 16 commands. Reference numeral 102 denotes a film folder for holding a film, which can be moved in the direction of arrow A by a sub-scanning motor 107, and is controlled by a motor drive circuit 109 which receives a command from the CPU 116. Further, the position of the film folder 102 is detected by the sub-scanning position detection sensor 106, and the initial position of the film folder 102 is obtained. 1
03 is an infrared light cut filter. Here, the sub-scanning motor 107 uses a stepping motor, and the sub-scanning position detection sensor 106 uses a photo interrupter. 10
Reference numeral 4 denotes an imaging lens which forms an image of light radiated from the lamp 101 and transmitted through the film on a CCD line sensor (hereinafter referred to as CCD) 105.

【0013】CCD105はCPU116の命令を受け
るCCD駆動回路108に制御され、蓄積電荷を吐き出
すタイミングを制御できる電子シャッター機能を有して
いる。CCD105はフィルムフォルダ102の移動方
向Aに垂直に位置するよう取り付けられており、この位
置関係によりCCD105の長手方向である主走査方向
と、フィルムフォルダ102の移動方向である副走査方
向は直角(直交)の関係になる。
The CCD 105 is controlled by a CCD driving circuit 108 which receives a command from the CPU 116, and has an electronic shutter function capable of controlling the timing of discharging the accumulated charges. The CCD 105 is mounted so as to be perpendicular to the moving direction A of the film folder 102. Due to this positional relationship, the main scanning direction, which is the longitudinal direction of the CCD 105, and the sub-scanning direction, which is the moving direction of the film folder 102, are perpendicular (orthogonal). ).

【0014】111はCCD105から出力されたアナ
ログ画像信号のゲイン設定やクランプ処理を行うアナロ
グ処理回路であり、アナログアンプによりRGBそれぞ
れの信号を独立に増幅することができる。112はアナ
ログ処理回路111より出力されるアナログ信号をデジ
タル信号に変換するA/D変換機である。113はA/
D変換機112によりデジタル化された画像信号を処理
するデジタル画像処理部であり、図示しないヒストグラ
ム作成部や入力信号をネガポジ変換やホワイトバランス
調整を行い適正な階調に調整する階調変換曲線を作成す
る階調変換曲線作成部などからなっている。114は画
像データを一時的に記憶するラインバッファであり、1
15はパソコンなどの外部機器との接続のためのインタ
ーフェース部である。116はフィルムスキャナー全体
のシーケンスを記憶し、外部機器の命令にしたがって各
種動作を行わせるシステムコントローラーである。
Reference numeral 111 denotes an analog processing circuit which performs gain setting and clamp processing of an analog image signal output from the CCD 105, and can independently amplify each of RGB signals by an analog amplifier. An A / D converter 112 converts an analog signal output from the analog processing circuit 111 into a digital signal. 113 is A /
A digital image processing unit that processes an image signal digitized by the D converter 112. The digital image processing unit performs a negative-positive conversion or a white balance adjustment of a not-shown histogram creation unit and a gradation conversion curve for adjusting an input signal to an appropriate gradation. It consists of a gradation conversion curve creation unit to be created. A line buffer 114 temporarily stores image data.
Reference numeral 15 denotes an interface unit for connecting to an external device such as a personal computer. Reference numeral 116 denotes a system controller that stores the sequence of the entire film scanner and performs various operations in accordance with commands from an external device.

【0015】このような構成において、システムコント
ローラー116内のソフト(以下ファームソフトと呼
ぶ)と、パソコンなどの外部機器からフィルムスキャナ
を走査するためのソフト(以下ドライバソフトと呼ぶ)
との通信によって、画像データを外部機器へ出力するよ
うになっている。
In such a configuration, software in the system controller 116 (hereinafter referred to as firmware software) and software for scanning a film scanner from an external device such as a personal computer (hereinafter referred to as driver software).
The image data is output to an external device by communicating with the external device.

【0016】次に画像処理部113において行われるゴ
ミ傷補正について図2を用いて詳しく説明する。
Next, dust correction performed by the image processing section 113 will be described in detail with reference to FIG.

【0017】S201、S202においてランプ駆動回
路による照射ランプの切り換え作用によりフィルムより
それぞれよみとられた可視画像と赤外画像がA/D変換
機112によりデジタル信号として出力され画像処理部
113に入力される。続いてS203において赤外画像
からゴミや傷を検知するための閾値の算出を行う。
In S201 and S202, the visible image and the infrared image respectively read from the film by the switching operation of the irradiation lamp by the lamp driving circuit are output as digital signals by the A / D converter 112 and input to the image processing unit 113. You. Subsequently, in S203, a threshold value for detecting dust and scratches from the infrared image is calculated.

【0018】図3〜図5を用いて赤外光によるフィルム
上のゴミや傷の検知法を説明する。図3の(A)、
(B)はフィルムに可視光を照射したときと赤外光を照
射したときのCCD105の1ライン分の出力信号をあ
らわしている。ランプ駆動回路110により可視光用ラ
ンプを照射した場合、CCD105の出力は(A)に示
すとおりゴミや傷によるCCD105の出力変化と画像
信号による変化との判別が困難である。これに対し赤外
光を照射した(B)の場合、画像信号によるCCD10
5の出力変化はほとんどないため、ごみやきずによる出
力変化があらわれ、閾値を用いることでフィルム上のご
みやきずの位置を検知することが可能となる。
A method of detecting dust and scratches on a film by infrared light will be described with reference to FIGS. FIG. 3 (A),
(B) shows an output signal for one line of the CCD 105 when the film is irradiated with visible light and infrared light. When the lamp for visible light is illuminated by the lamp driving circuit 110, it is difficult for the output of the CCD 105 to discriminate between a change in the output of the CCD 105 due to dust or a scratch and a change due to an image signal as shown in FIG. On the other hand, in the case of (B) irradiated with infrared light, the CCD 10 based on the image signal is used.
Since there is almost no change in the output of No. 5, an output change due to dust or a flaw appears, and it is possible to detect the position of the dust or flaw on the film by using a threshold.

【0019】これはフィルムの波長に対する透過率の特
性を利用したもので、一般的なフィルムは赤外光に対し
て高い透過率を有する。よって赤外光をフィルムに照射
することによりフィルム上に記録された画像情報に関係
なくフィルム上のごみやきずによる信号変化情報を得る
ことができるのである。
This utilizes the characteristics of the transmittance with respect to the wavelength of the film, and a general film has a high transmittance for infrared light. Thus, by irradiating the film with infrared light, signal change information due to dust or flaws on the film can be obtained irrespective of image information recorded on the film.

【0020】図4は読み込みの解像度変化による読み込
み画素の変化を示したもので、1画素程度の大きさのゴ
ミや傷があった場合に、最高の解像度で読みこむ場合
は、その1画素の情報がそのまま反映される。最高解像
度の1/4の低解像度の場合、ゴミや傷の情報のある1
画素とその周りの正常な3画素との平均となるため、ゴ
ミや傷の画素の情報は弱い出力となる。図5の(A)、
(B)は高解像度時と低解像度時のCCD105の1ラ
イン分の出力信号をあらわしている。前述のように低解
像度になるとゴミや傷の部分と正常な画像の部分のCC
D105の出力差が小さくなる。よって解像度を変化す
る場合にはそれに応じて閾値を変更する必要性が生じて
くる。
FIG. 4 shows a change in the read pixel due to a change in the read resolution. When there is dust or a flaw having a size of about one pixel, and when reading is performed at the highest resolution, one pixel is read. The information is reflected as it is. In the case of low resolution of 1/4 of the maximum resolution, 1 with dust and scratch information
Since the average of the pixel and three normal pixels around the pixel is obtained, the information of the pixel of the dust or flaw is weakly output. FIG. 5A,
(B) shows output signals for one line of the CCD 105 at the time of high resolution and at the time of low resolution. As described above, when the resolution becomes low, the CC of dust and scratches and normal image
The output difference of D105 becomes smaller. Therefore, when the resolution is changed, it becomes necessary to change the threshold value accordingly.

【0021】[0021]

【表1】 [Table 1]

【0022】表1で示すように最大の解像度をRとした
ときにその解像度の1/2、1/3、1/4といった解
像度ごとにそれぞれ閾値が非連続に設定されたデータを
予め記憶手段の中に持っておき、この解像度が指定され
た場合はこのデータを呼び出して用いられる。これ以外
の解像度の場合は最も近い解像度で一旦処理された後、
最後にニアレストネイバー法などの画像処理にて、拡張
もしくは圧縮し所望の解像度で出力する。例えば最大の
解像度が4000dpiだとすると4000dpi、2
000dpi、1000dpi、500dpiという解
像度ごとにそれぞれ閾値を設定し、読み取り解像度指示
が800dpiの場合は1000dpiの閾値を使用し
て、ゴミや傷の補正、ガンマ等の全ての処理がなされ、
最後に800dpiに解像度変換がなされる。
As shown in Table 1, when the maximum resolution is R, data in which threshold values are set discontinuously for each resolution such as 1/2, 1/3, and 1/4 of the resolution are stored in advance in the storage means. When the resolution is designated, this data is called and used. For other resolutions, once processed at the closest resolution,
Finally, the image is expanded or compressed by image processing such as the nearest neighbor method and output at a desired resolution. For example, if the maximum resolution is 4000 dpi, 4000 dpi, 2
Thresholds are set for each of the resolutions of 000 dpi, 1000 dpi, and 500 dpi, and when the reading resolution instruction is 800 dpi, a threshold of 1000 dpi is used, and all processes such as dust and scratch correction and gamma are performed.
Finally, the resolution is converted to 800 dpi.

【0023】またここで閾値1と閾値2が設定されてい
るのはフィルム上のゴミや傷による赤外光の減衰量に応
じて補正処理を選択したり、正常画像だが非常に明るい
画像の場合の赤外画像への写りこみかどうかを判別する
ためである。後述の写りこみは、閾値1と閾値2の間の
赤外出力であった場合に写り込んだ可視の画像の出力と
比較して予め定められた値よりも明るければ、ゴミや傷
であるとし、それよりも暗ければ、可視画像が写り込ん
でいるものと判定する。
Here, the threshold 1 and the threshold 2 are set when correction processing is selected according to the amount of attenuation of infrared light due to dust or scratches on the film, or when a normal image but a very bright image is used. This is for determining whether or not the image is reflected in an infrared image. If the reflection described later is an infrared output between the threshold 1 and the threshold 2 and is brighter than a predetermined value as compared with the output of the visible image that is reflected, it is regarded as dust or a scratch. If it is darker, it is determined that the visible image is reflected.

【0024】閾値の算出方法としては例えば赤外信号レ
ベルの最大値を算出しそこから所定の割合の位置に閾値
1を、それよりもさらに小さい割合の位置に閾値2を設
定する方法などがある。ここで閾値の算出法として赤外
信号レベルの最大値を基準にしたが、いうまでもなく平
均値や中央値を使用してもよく、とくに限定はしない。
As a method of calculating the threshold value, for example, there is a method of calculating the maximum value of the infrared signal level, and setting the threshold value 1 at a position of a predetermined ratio and the threshold value 2 at a position of a smaller ratio. . Here, the threshold value is calculated based on the maximum value of the infrared signal level, but needless to say, an average value or a median value may be used, and there is no particular limitation.

【0025】次にS204では可視画像と赤外画像のず
れを補正する処理を行う。赤外画像と可視画像はフィル
ムフォルダ102を副走査モータ107により走査する
ことにより読み取るが、本実施例では往復で可視画像と
赤外画像を別々に取得するため、送り精度による誤差が
生じることが予想される。ゴミ傷補正は画素単位で行う
補正のためそれら誤差による可視画像と赤外画像の数画
素のずれもできるだけ補正しなければならない。図6を
用いてずれ補正処理に関する説明を行う。
Next, in step S204, a process for correcting a shift between the visible image and the infrared image is performed. Although the infrared image and the visible image are read by scanning the film folder 102 with the sub-scanning motor 107, in this embodiment, since the visible image and the infrared image are separately acquired in a reciprocating manner, an error due to feeding accuracy may occur. is expected. Since dust correction is performed on a pixel-by-pixel basis, deviations of several pixels between the visible image and the infrared image due to these errors must be corrected as much as possible. The shift correction process will be described with reference to FIG.

【0026】まず赤外画像を用いて副走査方向に欠損画
素領域を所定の数だけ検出する。これは送り精度による
可視画像と赤外画像のずれを検知するための補正処理で
あるため、ずれる方向として副走査方向のみであるとい
う前提に基づいている。次に検出した欠損画素領域の赤
外画像における座標を取得する。そして可視画像と赤外
画像を所定画素数ずらしながら、それぞれに欠損画素領
域の座標に対応する可視画像と赤外画像の信号値の和を
算出する。算出した信号値の総和が最小のとき可視画像
と赤外画像の欠損画素領域が一致したとみなし、ずらし
た画素数をずれ画素数として記憶する。
First, a predetermined number of defective pixel areas are detected in the sub-scanning direction using an infrared image. Since this is a correction process for detecting a shift between the visible image and the infrared image due to the feed accuracy, it is based on the assumption that the shift direction is only the sub-scanning direction. Next, the coordinates of the detected defective pixel area in the infrared image are acquired. Then, while shifting the visible image and the infrared image by a predetermined number of pixels, the sum of the signal values of the visible image and the infrared image corresponding to the coordinates of the defective pixel area is calculated. When the sum of the calculated signal values is the minimum, it is considered that the defective pixel areas of the visible image and the infrared image match, and the number of shifted pixels is stored as the number of shifted pixels.

【0027】これは可視画像の欠損画素領域は周辺画素
よりも信号値が低いであろうという考えに基づいてい
る。また検出する欠損画素領域の数およびずらす画素数
は補正精度と所要計算時間どちらを優先するかにより決
めることができる。
This is based on the idea that the defective pixel area of the visible image will have a lower signal value than the peripheral pixels. Further, the number of defective pixel areas to be detected and the number of pixels to be shifted can be determined depending on whether correction accuracy or required calculation time is prioritized.

【0028】上記ずれ補正処理により可視画像と赤外画
像の副走査方向のずれが補正された後、S205により
一回目の補正処理である補正処理1が行われる。補正処
理1は欠損画素から連続する欠損画素領域をもとめ、欠
損画素領域の両端から修正の必要のない正常画素を検出
し、正常画素から連続する正常画素領域(正常画素パタ
ーン)を見つけ欠損画素領域を前記正常画素領域(正常
画素パターン)で置換するパターン補間を行う。
After the shift between the visible image and the infrared image in the sub-scanning direction has been corrected by the shift correction process, a correction process 1 as a first correction process is performed in S205. Correction processing 1 finds a continuous defective pixel region from the defective pixel, detects normal pixels that do not need to be corrected from both ends of the defective pixel region, finds a normal pixel region (normal pixel pattern) continuous from the normal pixels, and detects the defective pixel region. Is replaced with the normal pixel area (normal pixel pattern).

【0029】このようにしてS205の補正処理1によ
り比較的均一な画像部分が補正された後、S206の補
正処理2では補正処理1では補正しきれなかった輝度レ
ベル差の大きい画像(エッジ画像部)の欠損画素領域に
ついて、そのエッジ方向を検知してエッジ方向とほぼ平
行な方向で周辺に位置する正常画素を使って欠損画素を
置換する補正を行う。このようにS206の補正処理2
によりエッジ画像部が補正された後、さらに補正残りを
なくすため、補正処理3が施される。補正処理3は検出
された欠損画素から上下左右の4画素の内分を求め置換
する、4点内部補間を施し(S207)、このようにし
て欠損画素補正処理を施した後、修正された画素につい
て平均化処理を施し(S208)周辺画素との違和感を
無くし画像を出力する(S209)。
After the relatively uniform image portion has been corrected by the correction processing 1 in S205 in this manner, in the correction processing 2 in S206, an image having a large luminance level difference (edge image portion) that could not be completely corrected by the correction processing 1 With respect to the defective pixel region of (1), the edge direction is detected, and correction is performed to replace the defective pixel by using normal pixels located in the periphery in a direction substantially parallel to the edge direction. Thus, the correction processing 2 of S206
After the edge image portion is corrected by the above, correction process 3 is performed to further eliminate the remaining correction. In the correction process 3, a four-point internal interpolation is performed to find and replace the four pixels of the upper, lower, left, and right from the detected defective pixel (S207). Is averaged (S208), and an image is output without discomfort from surrounding pixels (S209).

【0030】(実施例2)本発明の第2の実施例を図
7、式1、式2により説明する。第2の実施例のメイン
フローは第1の実施例と同様であるので説明は省いてい
る。
(Embodiment 2) A second embodiment of the present invention will be described with reference to FIG. Since the main flow of the second embodiment is the same as that of the first embodiment, the description is omitted.

【0031】図7は読み込みの解像度変化による読み込
み画素の変化を示したもので、第1の実施例と同様に最
高の解像度で読みこむ場合は、その1画素の情報がその
まま反映される。解像度が最高の解像度の整数分の1で
ない場合、ある出力画素はゴミや傷の情報のある1画素
とその周りの正常な2画素との平均とし、次の画素は1
画素ダブらせて3画素の平均とするため、ゴミや傷の画
素の情報は弱い出力となる。式1は閾値1を求めるため
に用いる式であり、式2は同様に閾値2を求めるために
用いる式である。本実施例では出力解像度rが引数にな
った多項式となっている。これにより細かいdpiの読
み込みに対して対応可能となる。
FIG. 7 shows a change in the read pixel due to a change in the read resolution. When reading at the highest resolution, as in the first embodiment, the information of one pixel is directly reflected. If the resolution is not an integer fraction of the highest resolution, one output pixel is the average of one pixel with dust or scratch information and two normal pixels around it, and the next pixel is 1
Since the pixels are doubled and the average of the three pixels is obtained, the information on the pixels of dust and scratches is weakly output. Equation 1 is an equation used to determine the threshold 1, and Equation 2 is an equation used to determine the threshold 2 similarly. In this embodiment, the output resolution r is a polynomial having an argument. This makes it possible to deal with fine dpi reading.

【0032】なお、上記実施例は、何れも本発明を実施
するにあたっての具体化のほんの一例を示したものに過
ぎず、これらによって本発明の技術的範囲が限定的に解
釈されてはならないものである。すなわち、本発明はそ
の技術思想、またはその主要な特徴から逸脱することな
く、様々な形で実施することができる。例えば赤外画像
のCCD出力を電気的処理にて拡張してから閾値を設定
してもよい。
Each of the above embodiments is merely an example of the embodiment for carrying out the present invention, and the technical scope of the present invention should not be interpreted in a limited manner. It is. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features. For example, the threshold value may be set after the CCD output of the infrared image is expanded by electrical processing.

【0033】[0033]

【発明の効果】以上のように本発明によれば、読み取り
解像度の変化に応じて閾値を変化させることでゴミや傷
の誤検出を減らし、処理速度や補正画像を向上されるこ
とが可能となる。
As described above, according to the present invention, erroneous detection of dust and scratches can be reduced by changing the threshold value in accordance with the change in the reading resolution, and the processing speed and the corrected image can be improved. Become.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の実施例によるフィルムスキャナ構成
図である。
FIG. 1 is a configuration diagram of a film scanner according to an embodiment of the present invention.

【図2】 ごみきず補正処理のフローチャートである。FIG. 2 is a flowchart of a trash correction process.

【図3】 赤外光画像によるフィルム上のごみきず検知
を示す図である。
FIG. 3 is a diagram showing detection of dust on a film by an infrared light image.

【図4】 実施例1における解像度の違いによる画像デ
ータの出力方法を示す図である。
FIG. 4 is a diagram illustrating a method for outputting image data according to a difference in resolution according to the first embodiment.

【図5】 解像度の違いによる赤外光画像の出力を示す
図である。
FIG. 5 is a diagram showing an output of an infrared light image depending on a difference in resolution.

【図6】 ずれ補正を示す図である。FIG. 6 is a diagram illustrating shift correction.

【図7】 実施例2における解像度の違いによる画像デ
ータの出力方法を示す図である。
FIG. 7 is a diagram illustrating an output method of image data according to a difference in resolution according to the second embodiment.

【符号の説明】[Explanation of symbols]

101a 可視光用ランプ 101b 赤外光用ランプ 102 フィルムフォルダ 103 赤外光カットフィルタ 104 結像レンズ 105 CCDラインセンサ 106 副走査位置検出センサ 107 副走査モータ 108 CCD駆動回路 109 モータ駆動回路 110 ランプ駆動回路 111 アナログ処理回路 112 A/D変換機 113 デジタル画像処理部 114 ラインバッファ 115 インターフェース部 116 CPU 101a Lamp for visible light 101b Infrared lamp 102 Film folder 103 infrared cut filter 104 imaging lens 105 CCD line sensor 106 Sub-scanning position detection sensor 107 Sub-scanning motor 108 CCD drive circuit 109 Motor drive circuit 110 Lamp drive circuit 111 Analog processing circuit 112 A / D converter 113 Digital Image Processing Unit 114 line buffer 115 Interface 116 CPU

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B047 AA05 BA01 BB02 CB10 CB12 CB22 DA06 DC09 5C072 AA01 BA20 DA02 DA09 EA05 QA10 TA04 UA06 UA07 VA03 5C077 LL02 PP02 PP20 PQ18 RR04 RR15 RR16 SS01 TT06    ────────────────────────────────────────────────── ─── Continuation of front page    F term (reference) 5B047 AA05 BA01 BB02 CB10 CB12                       CB22 DA06 DC09                 5C072 AA01 BA20 DA02 DA09 EA05                       QA10 TA04 UA06 UA07 VA03                 5C077 LL02 PP02 PP20 PQ18 RR04                       RR15 RR16 SS01 TT06

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】可視光による画像と非可視光による画像を
読み取る手段と該非可視光による読み取り手段からゴミ
や傷の情報を検出する検出手段と該可視光の読み取り手
段から得られた画像情報と該検出手段によるゴミや傷の
情報に基づいて原稿面上のゴミや傷を補正する補正手段
とを有する画像読み取り装置において、 該検出手段によるゴミや傷の判定は閾値によって判定さ
れ、該閾値は該読み取り手段の解像度に応じて変化する
閾値変化手段とを備えることを特徴とする画像読み取り
装置。
1. A means for reading an image using visible light and an image using invisible light, a detecting means for detecting information on dust and scratches from the reading means using invisible light, and image information obtained from the means for reading visible light. In an image reading apparatus having correction means for correcting dust and scratches on a document surface based on information on dust and scratches by the detection means, the determination of dust and scratches by the detection means is determined by a threshold, and the threshold is An image reading apparatus comprising: a threshold changing unit that changes according to a resolution of the reading unit.
【請求項2】前記読み取り手段は画像情報をラインセン
サにより読み取り、前記ラインセンサのRGB出力電圧
をアナログアンプにより増幅した後それぞれA/D変換
機によりデジタル信号に変換し出力する手段を備えるこ
とを特徴とする請求項1記載の画像読み取り装置。
2. The apparatus according to claim 1, wherein said reading means includes means for reading image information by a line sensor, amplifying an RGB output voltage of said line sensor by an analog amplifier, and converting the digital output to a digital signal by an A / D converter. The image reading device according to claim 1, wherein:
【請求項3】前記閾値は閾値1、閾値2の2つから構成
されることを特徴とする請求項1又は2記載の画像読み
取り装置。
3. An image reading apparatus according to claim 1, wherein said threshold value comprises two threshold values, a threshold value 1 and a threshold value 2.
【請求項4】前記閾値の少なくとも1つが読み取り解像
度に対して非連続的に変化することを特徴とする請求項
1、2又は3記載の画像読み取り装置。
4. The image reading apparatus according to claim 1, wherein at least one of the threshold values changes discontinuously with respect to a reading resolution.
【請求項5】前記閾値の少なくとも1つは読み取り解像
度を引数とする関数で表されることを特徴とする請求項
1、2又は3記載の画像読み取り装置。
5. The image reading apparatus according to claim 1, wherein at least one of the thresholds is represented by a function having a reading resolution as an argument.
【請求項6】前記非可視光による読み取り手段において
解像度をより低解像度に変化させる方法として隣接する
複数画素の平均値を用いる平均化手段を備えることを特
徴とする請求項1記載の画像読み取り装置。
6. The image reading apparatus according to claim 1, further comprising an averaging unit that uses an average value of a plurality of adjacent pixels as a method of changing the resolution to a lower resolution in the invisible light reading unit. .
【請求項7】可視光による画像と非可視光による画像を
読み取るステップと、 該非可視光による読み取りステップからゴミや傷の情報
を検出する検出ステップと、 該可視光の読み取り手段から得られた画像情報と該検出
ステップによるゴミや傷の情報に基づいて原稿面上のゴ
ミや傷を補正する補正ステップと、 該検出ステップによるゴミや傷の判定は閾値によって判
定するステップと、 該閾値は該読み取りステップの解像度に応じて変化する
閾値変化ステップとを備える画像処理方法。
7. A step of reading an image by visible light and an image by invisible light, a detecting step of detecting dust or flaw information from the step of reading by invisible light, and an image obtained from the means for reading visible light. A correction step for correcting dust and scratches on the document surface based on the information and the information on dust and scratches by the detection step; a step of determining the determination of dust and scratches by the detection step by using a threshold value; A threshold changing step that changes according to the resolution of the step.
JP2002156821A 2002-05-30 2002-05-30 Image processing apparatus and image processing method Pending JP2003348305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002156821A JP2003348305A (en) 2002-05-30 2002-05-30 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002156821A JP2003348305A (en) 2002-05-30 2002-05-30 Image processing apparatus and image processing method

Publications (1)

Publication Number Publication Date
JP2003348305A true JP2003348305A (en) 2003-12-05

Family

ID=29772907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002156821A Pending JP2003348305A (en) 2002-05-30 2002-05-30 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP2003348305A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8174737B2 (en) 2007-12-28 2012-05-08 Brother Kogyo Kabushiki Kaisha Image reading apparatus
US8284463B2 (en) 2007-12-28 2012-10-09 Brother Kogyo Kabushiki Kaisha Image reading apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8174737B2 (en) 2007-12-28 2012-05-08 Brother Kogyo Kabushiki Kaisha Image reading apparatus
US8284463B2 (en) 2007-12-28 2012-10-09 Brother Kogyo Kabushiki Kaisha Image reading apparatus

Similar Documents

Publication Publication Date Title
US6979834B2 (en) Image reading device, method and program using infrared light detection to correct for defective pixels
JP5241631B2 (en) Image processing method, image processing apparatus, and program
US20110181919A1 (en) Image reading apparatus, control method thereof and computer-readable storage medium
US6750990B1 (en) Image scanning apparatus, image forming apparatus, image forming system, image scanning control method, and storage medium
JP2003101737A (en) Image processing device and image reading device
JP4933402B2 (en) Image reading device
JP2008227625A (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP2003348305A (en) Image processing apparatus and image processing method
JP5618664B2 (en) Image processing method, program, image reading apparatus, and information device
JP2001086333A (en) Image reading apparatus and image processing apparatus provided with the image reading apparatus
JP4513622B2 (en) Image reading device
JP2009303164A (en) Image reading apparatus and method of controlling the same
JP2002262083A (en) Image processing device
JP2005006249A (en) Image reading device
JP3569059B2 (en) Image reading device
JP2002165092A (en) Image processing apparatus and image processing method
US20110122462A1 (en) Image reading apparatus, control method for the same, and image forming apparatus
JP2004297691A (en) Image reading device and image processing device
JP5910002B2 (en) Image reading apparatus, document size detection method, and document size detection program
JP3589847B2 (en) Shading correction device and shading correction method
JPH11215372A (en) Shading correction device and shading correction method
JP2003032490A (en) Image processing device
JP2003198838A (en) Image processing system and image processing method
JP2002290727A (en) Image processing method, apparatus, storage medium, and program
JP3124168B2 (en) Shading correction device