JP2007129278A - Image reading apparatus - Google Patents

Image reading apparatus Download PDF

Info

Publication number
JP2007129278A
JP2007129278A JP2005317819A JP2005317819A JP2007129278A JP 2007129278 A JP2007129278 A JP 2007129278A JP 2005317819 A JP2005317819 A JP 2005317819A JP 2005317819 A JP2005317819 A JP 2005317819A JP 2007129278 A JP2007129278 A JP 2007129278A
Authority
JP
Japan
Prior art keywords
data
correction data
correction
unit
document
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.)
Withdrawn
Application number
JP2005317819A
Other languages
Japanese (ja)
Inventor
Kazuhiro Ishiguro
和宏 石黒
Hiroyuki Suzuki
浩之 鈴木
Masaaki Saka
匡晃 坂
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.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies 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 Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2005317819A priority Critical patent/JP2007129278A/en
Publication of JP2007129278A publication Critical patent/JP2007129278A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To accurately eliminate the effect of a change in the intensity of light rays emitted onto an original. <P>SOLUTION: The image reading apparatus includes: a light source for emitting light rays to a read object; a line sensor for receiving the light rays reflected from the read object and outputting data; a correction data determining section 213 for determining correction data on the basis of shading board data which the line sensor outputs by receiving the light rays reflected from a shading board whose reflection factor is predetermined; a shading correction section for using the correction data to correct original data which the line sensor outputs by receiving the light rays reflected from an original; and a gradation characteristic detection section 234, a gradation characteristic comparison section 233, and a selector 232 for revising the correction data used by the shading correction section on the basis of the original data which the line sensor outputs by receiving the light rays reflected from the original. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、画像読取装置に関し、特に原稿を搬送しながら読取る画像読取装置に関する。   The present invention relates to an image reading apparatus, and more particularly to an image reading apparatus that reads an original while conveying it.

近年、スキャナ、ファクシミリ、複写機などでは、主走査方向に複数の光電変換素子を配列したラインセンサを固定して設置し、主走査方向と直交する副走査方向に原稿を搬送することによりラインセンサで原稿を読取る読取方式(以下「原稿搬送方式」という)を採用したものがある。光源となるランプには陰極線管が用いられ、このランプは、その個体差および使用期間により主走査方向の光量分布が変化する。このため、原稿を読み取る前の段階で、反射率が既知のシェーディング板を読み取ることにより、主走査方向の光量分布を記憶しておき、原稿を読み取って得られるデータを記憶した光量分布に従って補正する、いわゆるシェーディング補正が行われる。   In recent years, in scanners, facsimiles, copiers, etc., a line sensor in which a plurality of photoelectric conversion elements are arranged in a main scanning direction is fixed and installed, and a line sensor is conveyed by conveying a document in a sub scanning direction orthogonal to the main scanning direction. In some cases, a reading method for reading a document (hereinafter referred to as “document transport method”) is employed. A cathode ray tube is used as a lamp serving as a light source, and the light amount distribution in the main scanning direction varies depending on the individual difference and the period of use. For this reason, by reading a shading plate with a known reflectivity before reading the document, the light amount distribution in the main scanning direction is stored, and the data obtained by reading the document is corrected according to the stored light amount distribution. So-called shading correction is performed.

一方、ランプが発光する光の強度は、時間の経過とともに変化する。原稿搬送方式においては、複数の原稿を連続して搬送している間は、ラインセンサでシェーディング板を読み取ることができない。このため、原稿搬送方式においては、複数の原稿を連続して搬送している間は、ランプの発光強度の変化に対応することができないといった問題があった。   On the other hand, the intensity of light emitted from the lamp changes with time. In the document transport method, the shading plate cannot be read by the line sensor while a plurality of documents are being transported continuously. For this reason, the document transport method has a problem that it cannot cope with a change in the light emission intensity of the lamp while a plurality of documents are continuously transported.

この問題を解決するために、特開2002−271591号公報には、原稿の読み取り箇所を照射する光源と、シェーディング補正用の基準板と、前記光源が点灯を開始してからの経過時間を測定する計時手段と、原稿の読み取りを行っていない時間帯に前記光源を点灯させ前記基準板を読み取って点灯開始からの経過時間に対応するシェーディング補正用データを作成するシェーディング補正用データ作成手段と、このシェーディング補正用データ作成手段によって作成したシェーディング補正用データを記憶するシェーディング補正用データ記憶手段と、原稿の読み取りが行われるとき前記光源の点灯開始からの経過時間に対応するシェーディング補正用データをシェーディング補正用データ記憶手段から逐次読み出して原稿の画像情報を補正するシェーディング補正手段とを具備することを特徴とする画像読取装置が記載されている。   In order to solve this problem, Japanese Patent Laid-Open No. 2002-271591 discloses a light source that irradiates a reading position of a document, a reference plate for shading correction, and an elapsed time after the light source starts to turn on. Clocking means for performing, shading correction data creating means for creating the shading correction data corresponding to the elapsed time from the start of lighting by turning on the light source and reading the reference plate during a time period when the document is not read, Shading correction data storage means for storing shading correction data created by the shading correction data creation means, and shading correction data corresponding to the elapsed time from the start of lighting of the light source when the document is read. Image information of the original read out sequentially from the correction data storage means Image reading apparatus is described characterized by comprising a correction to shading correction means.

しかしながら、特開2002−271591号公報に記載の画像読取装置は、光源を点灯させ基準板を読み取って点灯開始からの経過時間に対応するシェーディング補正用データを作成する間の光源の状態と、原稿を読み取る間の光源の状態とが一致することを前提としている。このため、原稿を読取っている間の光源の発光強度の変化が、シェーディング補正用データを作成している間に計測した光源の発光強度の変化と異なる場合には、正確にシェーディング補正できないといった問題がある。
特開2002−271591号公報
However, the image reading apparatus described in Japanese Patent Application Laid-Open No. 2002-271591 discloses the state of the light source while the light source is turned on and the reference plate is read to generate shading correction data corresponding to the elapsed time from the start of lighting. It is assumed that the state of the light source matches during reading. For this reason, if the change in the light emission intensity of the light source while reading the document is different from the change in the light emission intensity of the light source measured while creating the shading correction data, the shading correction cannot be performed accurately. There is.
Japanese Patent Laid-Open No. 2002-271591

この発明は上述した問題点を解決するためになされたもので、この発明の目的の一つは、原稿で反射した光を受光して得られるデータから原稿に照射される光の強度の変化による影響を正確に除去することが可能な画像読取装置を提供することである。   The present invention has been made to solve the above-described problems, and one of the objects of the present invention is based on a change in the intensity of light applied to a document from data obtained by receiving light reflected by the document. An object of the present invention is to provide an image reading apparatus capable of accurately removing the influence.

上述した目的を達成するためにこの発明のある局面によれば、画像読取装置は、読取対象に光を照射する照射手段と、読取対象で反射した光を受光し、データを出力する光電変換手段と、光電変換手段が反射率の予め定められた基準板で反射した光を受光して出力するデータに基づいて、補正用データを決定する補正用データ決定手段と、光電変換手段が原稿で反射した光を受光して出力するデータを、補正用データを用いて補正する補正手段と、光電変換手段が原稿で反射した光を受光して出力するデータに基づいて、補正手段で用いる補正用データを変更する変更手段とを備える。   In order to achieve the above-described object, according to an aspect of the present invention, an image reading apparatus includes an irradiation unit that irradiates light to a reading target, and a photoelectric conversion unit that receives light reflected by the reading target and outputs data. And correction data determining means for determining correction data based on data output by receiving light reflected by a reference plate having a predetermined reflectance, and the photoelectric conversion means is reflected by the manuscript. Correction data used by the correction means based on the data output by receiving and outputting the light reflected by the original by the photoelectric conversion means And changing means for changing.

この発明に従えば、光電変換手段が基準板で反射した光を受光して出力するデータに基づいて決定された補正用データが、光電変換手段が原稿で反射した光を受光して出力するデータに基づいて変更される。このため、照射手段の照射する光の強度が時間の経過に伴って変化しても、照射手段の照射する光の強度に応じた補正用データを用いて、読取手段が原稿で反射した光を受光して出力するデータが補正される。その結果、原稿で反射した光を受光して得られるデータから原稿に照射される光の強度の変化による影響を正確に除去することが可能な画像読取装置を提供することができる。   According to the present invention, the correction data determined based on the data that the photoelectric conversion means receives and outputs the light reflected by the reference plate is the data that the photoelectric conversion means receives and outputs the light reflected by the document. Will be changed based on. For this reason, even if the intensity of the light emitted by the irradiating means changes with time, the reading means reflects the light reflected by the document using correction data corresponding to the intensity of the light emitted by the irradiating means. The data received and output is corrected. As a result, it is possible to provide an image reading apparatus capable of accurately removing the influence of a change in the intensity of light applied to a document from data obtained by receiving light reflected from the document.

好ましくは、照射手段が光を照射してからの経過時間を計時する計時手段をさらに備え、変更手段は、計時手段により計時された経過時間に基づいて、変更可能な補正用データの範囲を制限する制限手段を含む。   Preferably, the electronic device further includes a time measuring unit that measures an elapsed time after the irradiation unit has irradiated the light, and the changing unit limits the range of correction data that can be changed based on the elapsed time measured by the time measuring unit. Limiting means.

この発明に従えば、照射手段が光を照射してからの経過時間に基づいて、変更可能な補正用データの範囲が制限される。このため、光電変換手段が原稿で反射した光を受光して出力するデータに基づいて変更される補正用データが、誤った値に変更されるのを防止することができる。   According to the present invention, the range of correction data that can be changed is limited based on the elapsed time since the irradiation means has irradiated light. For this reason, it is possible to prevent the correction data that is changed based on the data that the photoelectric conversion means receives and outputs the light reflected from the document from being changed to an incorrect value.

好ましくは、原稿を予め定められた読取位置に搬送する原稿搬送手段と、照射手段に対向する位置に固定して設けられた反射板とをさらに備え、変更手段は、原稿が読取位置を通過する前に光電変換手段が反射板で反射した光を受光して出力するデータに基づいて、変更可能な補正用データの範囲を制限する制限手段とを含む。   Preferably, the image forming apparatus further includes a document conveying unit that conveys the document to a predetermined reading position and a reflecting plate that is fixedly provided at a position facing the irradiation unit, and the changing unit passes the document through the reading position. Limiting means for limiting the range of correction data that can be changed based on data that is received and output by the photoelectric conversion means previously received by the reflector.

この発明に従えば、原稿が読取位置を通過する前に光電変換手段が反射板で反射した光を受光して出力するデータに基づいて、変更可能な補正用データの範囲が制限される。このため、光電変換手段が原稿で反射した光を受光して出力するデータに基づいて変更される補正用データが、誤った値に変更されるのを防止することができる。   According to this invention, the range of correction data that can be changed is limited based on the data that the photoelectric conversion means receives and outputs the light reflected by the reflecting plate before the document passes the reading position. For this reason, it is possible to prevent the correction data that is changed based on the data that the photoelectric conversion means receives and outputs the light reflected from the document from being changed to an incorrect value.

好ましくは、補正用データ決定手段は、光電変換手段が基準板で反射した光を受光して出力するデータと、予め定められた目標値とから基準補正用データを生成する基準補正用データ生成手段と、基準補正用データと予め定められた係数とから少なくとも1つの変動補正用データを生成する第2補正用データ生成手段とを含む。   Preferably, the correction data determining means generates reference correction data from data output by receiving light reflected from the reference plate by the photoelectric conversion means and a predetermined target value. And second correction data generation means for generating at least one variation correction data from the reference correction data and a predetermined coefficient.

この発明に従えば、光電変換手段が基準板で反射した光を受光して出力するデータと、予め定められた目標値とから基準補正用データが生成され、基準補正用データと予め定められた係数とから少なくとも1つの変動補正用データが生成される。このため、補正用データを容易に生成することができる。   According to the present invention, the reference correction data is generated from the data that the photoelectric conversion means receives and outputs the light reflected by the reference plate and the predetermined target value, and the reference correction data is determined in advance. At least one variation correction data is generated from the coefficients. For this reason, the correction data can be easily generated.

好ましくは、変更手段は、光電変換手段が出力する第1のデータと、光電変換手段が出力する第2のデータとを比較する原稿データ比較手段を含み、原稿データ比較手段による比較結果に基づいて、補正手段で用いる補正用データを変更する。   Preferably, the changing means includes document data comparison means for comparing the first data output from the photoelectric conversion means and the second data output from the photoelectric conversion means, and based on the comparison result by the document data comparison means. The correction data used by the correction means is changed.

好ましくは、光電変換手段は、分光感度が互いに異なるフィルタを有する複数のラインセンサを含み、補正用データ決定手段は、複数のラインセンサそれぞれが基準板で反射した光を受光して出力するデータに基づいて、複数のラインセンサそれぞれに対応した補正用データを決定し、補正手段は、複数のラインセンサそれぞれが原稿で反射した光を受光して出力するデータを、複数のラインセンサそれぞれに対応する補正用データを用いて補正し、変更手段は、複数のラインセンサそれぞれが原稿で反射した光を受光して出力するデータに基づいて、補正手段で補正に用いる補正用データを変更する。   Preferably, the photoelectric conversion means includes a plurality of line sensors having filters having different spectral sensitivities, and the correction data determination means receives data reflected by the reference plate and outputs the data reflected by the line sensors. Based on this, the correction data corresponding to each of the plurality of line sensors is determined, and the correction means receives the data reflected by the document from each of the plurality of line sensors and outputs the data corresponding to each of the plurality of line sensors. Correction is performed using the correction data, and the change unit changes the correction data used for correction by the correction unit based on data output by receiving the light reflected from the document by each of the plurality of line sensors.

この発明の他の局面によれば、画像読取装置は、読取対象に光を照射する照射手段と、読取対象で反射した光を受光し、データを出力する光電変換手段と、複数の補正用データを予め記憶する記憶手段と、光電変換手段が反射率の予め定められた基準板で反射した光を受光して出力するデータに基づいて、複数の補正用データのうちから基準補正用データおよび少なくとも1つの変動補正用データを選択する選択手段と、光電変換手段が原稿で反射した光を受光して出力するデータに基づいて、選択手段により選択された基準補正用データおよび少なくとも1つの変動補正用データのうちからいずれか1つを選択して実行補正データに設定する設定手段と、光電変換手段が原稿で反射した光を受光して出力するデータを、設定された実行補正用データを用いて補正する補正手段とを備える。   According to another aspect of the present invention, an image reading apparatus includes an irradiation unit that irradiates light to a reading target, a photoelectric conversion unit that receives light reflected by the reading target and outputs data, and a plurality of correction data. Storage means for storing in advance, data for receiving and outputting light reflected by a reference plate having a predetermined reflectance by the photoelectric conversion means, and reference correction data and at least one of a plurality of correction data Selection means for selecting one fluctuation correction data, and reference correction data selected by the selection means and at least one fluctuation correction data based on data output by receiving light reflected from the original by the photoelectric conversion means Setting means for selecting any one of the data and setting it as execution correction data, and data for receiving and outputting the light reflected from the original by the photoelectric conversion means, And correction means for correcting using data.

この発明に従えば、光電変換手段が基準板で反射した光を受光して出力するデータに基づいて、複数の補正用データのうちから基準補正用データおよび少なくとも1つの変動補正用データが選択され、光電変換手段が原稿で反射した光を受光して出力するデータに基づいて、選択された基準補正用データおよび少なくとも1つの変動補正用データのうちからいずれか1つが選択されて実行補正データに設定される。このため、照射手段の照射する光の強度が時間の経過に伴って変化しても、照射手段の照射する光の強度に応じた実行補正用データが、複数の補正用データのうちから選択され、その実行補正用データを用いて、光電変換手段が原稿で反射した光を受光して出力するデータが補正される。その結果、原稿で反射した光を受光して得られるデータから原稿に照射される光の強度の変化による影響を除去することが可能な画像読取装置を提供することができる。   According to the present invention, the reference correction data and at least one variation correction data are selected from the plurality of correction data based on the data that the photoelectric conversion means receives and outputs the light reflected by the reference plate. The photoelectric conversion means receives one of the light reflected from the original and outputs it, and one of the selected reference correction data and at least one variation correction data is selected as execution correction data. Is set. For this reason, even if the intensity of the light irradiated by the irradiation unit changes with time, execution correction data corresponding to the intensity of the light irradiated by the irradiation unit is selected from the plurality of correction data. The execution correction data is used to correct the data that the photoelectric conversion means receives and outputs the light reflected from the document. As a result, it is possible to provide an image reading apparatus capable of removing the influence due to the change in the intensity of the light applied to the original from the data obtained by receiving the light reflected by the original.

以下、本発明の実施の形態について図面を参照して説明する。以下の説明では同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがってそれらについての詳細な説明は繰返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

<第1の実施の形態>
図1は、本発明の第1の実施の形態における画像読取装置を備えたMFP(Multi Function Peripheral)の斜視図である。図1を参照して、MFP100は、原稿を読取るための画像読取装置110と、画像読取装置110の下部に設けられた画像形成装置121とを含む。画像読取装置110は、本体部120にその一部が収納されており、自動原稿搬送装置(ADF)111を備える。画像形成装置121は、本体部120の画像読取装置110の下方に収納され、画像読取装置110が原稿を読取って出力する画像データに基づいて、紙などの記録媒体に画像を形成する。MFP100は、ファクシミリ、ローカルエリアネットワーク(LAN)、公衆交換電話網(PSTN)などのネットワークと接続するための通信インタフェースを備える。
<First Embodiment>
FIG. 1 is a perspective view of an MFP (Multi Function Peripheral) including an image reading apparatus according to the first embodiment of the present invention. Referring to FIG. 1, MFP 100 includes an image reading device 110 for reading a document, and an image forming device 121 provided below the image reading device 110. A part of the image reading apparatus 110 is housed in the main body 120 and includes an automatic document feeder (ADF) 111. The image forming apparatus 121 is housed below the image reading apparatus 110 of the main body 120, and forms an image on a recording medium such as paper based on image data output by the image reading apparatus 110 reading a document. MFP 100 includes a communication interface for connecting to a network such as a facsimile, a local area network (LAN), and a public switched telephone network (PSTN).

図2は、画像読取装置110の内部構成の概略を示す図である。ADF111は、原稿150を原稿読取位置Lに搬送するためのタイミングローラ対151と、原稿読取位置L付近において原稿の搬送をガイドするための上部規制板153と、原稿読取位置Lを通過した原稿150を排出するために原稿150を搬送するためのローラ対152とを備える。   FIG. 2 is a diagram showing an outline of the internal configuration of the image reading apparatus 110. The ADF 111 includes a pair of timing rollers 151 for transporting the document 150 to the document reading position L, an upper restriction plate 153 for guiding document transportation in the vicinity of the document reading position L, and the document 150 that has passed the document reading position L. And a roller pair 152 for conveying the document 150 to discharge the document.

ADF111は、複数ある原稿150を1枚ずつ順に原稿読取位置Lに搬送する。ADF111は、積載された複数の原稿150の最上段から1枚の原稿をさばき、タイミングローラ対151に供給する。上部規制板153は、原稿の通路側の原稿読取位置L付近に背景板154を有する。背景板154は、原稿を透過した光を反射するため、反射率が高く、かつ、反射率が均一であることが望ましい。反射する光にムラがあると、ノイズとなるからである。   The ADF 111 sequentially transports a plurality of documents 150 to the document reading position L one by one. The ADF 111 separates one document from the top of the stacked plurality of documents 150 and supplies it to the timing roller pair 151. The upper restriction plate 153 has a background plate 154 in the vicinity of the document reading position L on the document path side. Since the background plate 154 reflects the light transmitted through the document, it is desirable that the background plate 154 has a high reflectance and a uniform reflectance. This is because if the reflected light is uneven, it becomes noise.

画像読取装置110の本体部120に収納される部分は、透明な部材から構成された原稿台155と、原稿の搬送経路の一部を形成する通紙ガイド157と、原稿台155と通紙ガイド157との間に設置されたシェーディング板156と、光を照射するための光源159と、光源159からの光を反射させる反射部材160と、反射ミラー161,162と、スライダ158と、レンズ163と、3つのラインセンサが主走査方向に配列された読取部219とを含む。   A portion housed in the main body 120 of the image reading apparatus 110 includes a document table 155 made of a transparent member, a sheet passing guide 157 that forms a part of the document transport path, and the document table 155 and the sheet passing guide. 157, a light source 159 for irradiating light, a reflecting member 160 for reflecting light from the light source 159, reflecting mirrors 161 and 162, a slider 158, a lens 163, and the like. And a reading unit 219 in which three line sensors are arranged in the main scanning direction.

原稿150は、タイミングローラ対151により、原稿台155と上部規制板153との間を矢印D1の方向に搬送される。そして、搬送されながら読取位置Lにおいて、読取部219によりその画像が逐次読取られる。ADF111が原稿を搬送する方向は、読取位置Lにおいて副走査方向である。   The document 150 is conveyed by the timing roller pair 151 between the document table 155 and the upper regulating plate 153 in the direction of the arrow D1. The image is sequentially read by the reading unit 219 at the reading position L while being conveyed. The direction in which the ADF 111 transports the document is the sub-scanning direction at the reading position L.

スライダ158は、光源159、反射部材160および反射ミラー161を保持する。スライダ158は、図中D2方向に往復して移動することが可能であり、原稿を読取る間は原稿読取位置Lの下方位置で停止し、原稿を読取る前の段階でシェーディング板156の下方位置で停止する。スライダ158の移動に伴って、反射ミラー162が移動することにより、反射光の光路長が実質的に一定に保たれる。   The slider 158 holds the light source 159, the reflecting member 160, and the reflecting mirror 161. The slider 158 can reciprocate in the direction D2 in the figure, and stops at a position below the document reading position L while reading the document, and at a position below the shading plate 156 before reading the document. Stop. As the slider 158 moves, the reflection mirror 162 moves, so that the optical path length of the reflected light is kept substantially constant.

スライダ158がシェーディング板156の下方に位置するとき、光源159が照射する光は、シェーディング板156に照射される。光源159が照射した光の一部がシェーディング板156で反射して、さらに、反射ミラー161,162で反射してレンズ163に導かれる。レンズ163は、それに入射する光を集光して読取部219の各ラインセンサ上に結像する。   When the slider 158 is positioned below the shading plate 156, the light emitted from the light source 159 is applied to the shading plate 156. Part of the light emitted from the light source 159 is reflected by the shading plate 156, further reflected by the reflecting mirrors 161 and 162, and guided to the lens 163. The lens 163 collects light incident thereon and forms an image on each line sensor of the reading unit 219.

スライダ158が原稿読取位置Lの下方に位置するとき、光源159が照射する光は、原稿読取位置Lに照射される。原稿読取位置Lに原稿150が存在すれば、光源159が照射した光の一部が原稿で反射して、さらに、反射ミラー161,162で反射してレンズ163に導かれる。レンズ163は、それに入射する光を集光して読取部219の各ラインセンサ上に結像する。また、原稿読取位置L1に原稿150が存在しなければ、光源159が照射した光の一部が背景板154で反射して、さらに、反射ミラー161,162で反射してレンズ163に導かれる。レンズ163は、それに入射する光を集光して読取部219の各ラインセンサ上に結像する。   When the slider 158 is positioned below the document reading position L, the light emitted from the light source 159 is irradiated to the document reading position L. If the document 150 exists at the document reading position L, a part of the light emitted from the light source 159 is reflected by the document and further reflected by the reflection mirrors 161 and 162 and guided to the lens 163. The lens 163 collects light incident thereon and forms an image on each line sensor of the reading unit 219. If the original 150 does not exist at the original reading position L 1, part of the light emitted from the light source 159 is reflected by the background plate 154 and further reflected by the reflecting mirrors 161 and 162 and guided to the lens 163. The lens 163 collects light incident thereon and forms an image on each line sensor of the reading unit 219.

画像読取装置110は、ADF111が複数の原稿を順に搬送する場合に、ADF111が原稿の搬送を開始する前の段階で、スライダ158をシェーディング板156の下方に移動させて停止させ、後述するシェーディング補正用データを生成する。シェーディング補正用データを生成した後、画像読取装置110は、スライダ158を原稿読取位置Lの下方に移動させて停止させ、ADF111に複数枚の原稿を順に搬送させる。   When the ADF 111 transports a plurality of documents in order, the image reading apparatus 110 moves the slider 158 below the shading plate 156 and stops it before the ADF 111 starts transporting the document, and the shading correction described later. Data is generated. After generating the shading correction data, the image reading apparatus 110 moves the slider 158 below the document reading position L to stop it, and causes the ADF 111 to transport a plurality of documents in order.

読取部219は、3つのラインセンサを備える。3つのラインセンサそれぞれは、副走査方向と実質的に垂直な主走査方向に複数の光電変換素子が配列されている。3つのラインセンサそれぞれは、互いに分光感度が異なるフィルタを有し、複数の光電変換素子はフィルタを透過した光を受光する。具体的には、赤(R)、緑(G)および青(B)の各波長の光を透過するフィルタを有する。このため、赤(R)のフィルタを有するラインセンサは、赤色の光の強度を示すRデータを出力し、緑(G)のフィルタを有するラインセンサは、緑色の光の強度を示すGデータを出力し、青(B)のフィルタを有するラインセンサは、青色の光の強度を示すBデータを出力する。   The reading unit 219 includes three line sensors. Each of the three line sensors has a plurality of photoelectric conversion elements arranged in a main scanning direction substantially perpendicular to the sub-scanning direction. Each of the three line sensors has filters having different spectral sensitivities, and the plurality of photoelectric conversion elements receive light transmitted through the filters. Specifically, a filter that transmits light of each wavelength of red (R), green (G), and blue (B) is included. Therefore, a line sensor having a red (R) filter outputs R data indicating the intensity of red light, and a line sensor having a green (G) filter outputs G data indicating the intensity of green light. The line sensor that outputs and has a blue (B) filter outputs B data indicating the intensity of blue light.

図3は、MFPの回路構成の一例を示すブロック図である。図3を参照して、MFP100は、それぞれがバス229に接続された、MFP100の全体を制御するためのCPU(Central Processing Unit)210と、不揮発性メモリ(ROM)211と、ランダムアクセスメモリ(RAM)212と、補正用データ決定部213と、画像処理部215と、光源制御部217と、読取部219と、画像形成部221と、スライダ158の移動を制御するスライダ制御部223と、ADF111を制御するための原稿搬送制御部225と、ユーザによる操作の入力を受付けるための操作部227とを含む。   FIG. 3 is a block diagram illustrating an example of a circuit configuration of the MFP. Referring to FIG. 3, MFP 100 is connected to bus 229, and includes a CPU (Central Processing Unit) 210 for controlling the entire MFP 100, a non-volatile memory (ROM) 211, and a random access memory (RAM). ) 212, correction data determination unit 213, image processing unit 215, light source control unit 217, reading unit 219, image forming unit 221, slider control unit 223 that controls the movement of the slider 158, and ADF 111. A document conveyance control unit 225 for controlling and an operation unit 227 for receiving an input of an operation by the user are included.

光源制御部217は、光源159と接続され、光源159の点灯と消灯とを切替える。スライダ制御部223は、スライダ158を移動させるためのモータ224と接続され、モータ224の駆動を制御する。スライダ制御部223は、モータ224を制御することにより、スライダ158を位置決めする。すなわち、スライダ制御部223は、スライダ158を、シェーディング板156の下方の位置、または原稿読取位置Lの下方の位置に移動させる。   The light source control unit 217 is connected to the light source 159 and switches between turning on and off the light source 159. The slider control unit 223 is connected to a motor 224 for moving the slider 158 and controls driving of the motor 224. The slider control unit 223 positions the slider 158 by controlling the motor 224. That is, the slider control unit 223 moves the slider 158 to a position below the shading plate 156 or a position below the document reading position L.

読取部219が出力するデータ(Rデータ、GデータおよびBデータ)は、画像処理部215に出力される。画像処理部215は、読取部219が出力する画像データを処理する。画像処理部215については後述するが、画像処理部215は、画像データをシェーディング補正するシェーディング補正部を含む。   Data (R data, G data, and B data) output by the reading unit 219 is output to the image processing unit 215. The image processing unit 215 processes image data output from the reading unit 219. The image processing unit 215 will be described later, but the image processing unit 215 includes a shading correction unit that performs shading correction on image data.

ROM211は、Rデータ、GデータおよびBデータそれぞれに対応した複数の補正用データを記憶する。複数の補正用データは、複数の基準補正用データと、複数の基準補正用データそれぞれに対応した複数の変動補正用データを含む。   The ROM 211 stores a plurality of correction data corresponding to R data, G data, and B data. The plurality of correction data includes a plurality of reference correction data and a plurality of variation correction data corresponding to each of the plurality of reference correction data.

ここで、補正用データについて説明する。基準補正用データは、読取部219がシェーディング板156で反射した光を受光して出力するデータ(以下「シェーディング板データ」という)に基づいて定まる値である。また、読取部219が原稿150で反射した光を受光して出力するデータを、以下「原稿データ」という。シェーディング板156の反射率は、予め判っており、不変であるので、光源159の照射する光の強度とシェーディング板データとは比例する。このため、シェーディング板データから、シェーディング板データを基準値に補正するための係数が定まる。基準補正用データは、この求められた係数に対応する複数の値を含む。明度が0〜255の範囲を取り得る値とすると、たとえば、シェーディング板データが230であった場合、基準値を255とすれば係数は255/230となる。この係数にしたがって、0〜255それぞれの値に対応した値を有する1つの基準補正用データが定まる。したがって、1つの基準補正用データは、256個の値を有する。基準補正用データは、シェーディング板データが取り得る範囲0〜255の値のそれぞれに対応して予め定められて、ROM211に記憶されている。すなわち、ROM211は、Rデータ、BデータおよびBデータごとに、256個の基準補正用データを記憶する。   Here, the correction data will be described. The reference correction data is a value determined based on data (hereinafter referred to as “shading plate data”) that is received by the reading unit 219 and received by the light reflected by the shading plate 156. Further, the data that the reading unit 219 receives and outputs the light reflected from the document 150 is hereinafter referred to as “document data”. Since the reflectance of the shading plate 156 is known in advance and is not changed, the intensity of light emitted from the light source 159 is proportional to the shading plate data. For this reason, a coefficient for correcting the shading plate data to the reference value is determined from the shading plate data. The reference correction data includes a plurality of values corresponding to the obtained coefficient. Assuming that the brightness can be in the range of 0 to 255, for example, if the shading board data is 230, if the reference value is 255, the coefficient is 255/230. According to this coefficient, one reference correction data having values corresponding to the respective values of 0 to 255 is determined. Therefore, one reference correction data has 256 values. The reference correction data is determined in advance corresponding to each of the values in the range of 0 to 255 that the shading plate data can take, and is stored in the ROM 211. That is, the ROM 211 stores 256 reference correction data for each of R data, B data, and B data.

変動補正用データは、1つの基準補正用データに対応する1以上のデータである。ここでは、1つの基準補正用データに、プラス側に10レベル、マイナス側に2レベルの合計12レベルの変動補正用データを対応させている。プラスレベルの変動補正用データは、光源159の照射する光の強度が、シェーディング板データが取得された時点よりも弱くなった場合に用いられる。マイナスレベルの変動補正用データは、光源159の照射する光の強度が、シェーディング板データが取得された時点よりも強くなった場合に用いられる。ここでは、シェーディング板データが取得された時点に、そのシェーディング板データにより定まる補正用データのレベルを「0」とし、光源159の照射する光の強度が、シェーディング板データが取得された時点の強度に比較して、2階調低くなった場合の補正用データのレベルをプラス1レベル、4階調低くなった場合のレベルをプラス2レベル、・・・、20階調低くなった場合のレベルをプラス10レベルとし、2階調高くなった場合のレベルをマイナス1レベル、4階調高くなった場合のレベルをマイナス2レベルとしている。したがって、レベル0の補正用データは、基準補正用データであり、レベル0以外のレベルの補正用データは変動補正用データである。以下、レベルN(Nは、−2≦N≦10の整数)の補正用データを、補正用データ(N)と示す。   The fluctuation correction data is one or more data corresponding to one reference correction data. Here, a total of 12 levels of fluctuation correction data of 10 levels on the plus side and 2 levels on the minus side are associated with one reference correction data. The plus level fluctuation correction data is used when the intensity of light emitted from the light source 159 becomes weaker than when the shading plate data is acquired. The minus level fluctuation correction data is used when the intensity of light emitted from the light source 159 becomes stronger than when the shading plate data is acquired. Here, when the shading plate data is acquired, the level of the correction data determined by the shading plate data is set to “0”, and the intensity of light emitted from the light source 159 is the intensity at the time when the shading plate data is acquired. Compared to the above, the level of the correction data when 2 gradations are lowered is plus 1 level, the level when 4 gradations are lowered is plus 2 levels,..., The level when 20 gradations are lowered Is 10 levels, the level when 2 gradations are increased is minus 1 level, and the level when 4 gradations are increased is minus 2 level. Therefore, the correction data for level 0 is reference correction data, and the correction data for levels other than level 0 is fluctuation correction data. Hereinafter, the correction data of level N (N is an integer of −2 ≦ N ≦ 10) will be referred to as correction data (N).

レベル0以外の補正用データ(N)(変動補正用データ)は、補正用データ(0)(基準補正用データ)に対応し、補正用データ(0)を定めるために用いたシェーディング板データから定まる。変動補正用データは、基準補正用データと同様に、0〜255全ての値それぞれに対応した256の値を有する。たとえば、補正用データ(0)を定めるために用いたシェーディング板データが230であった場合、原稿データの値230に対応する補正用データ(0)の値と、シェーディング板データが取得された時点の強度に比較して4階調低くなった場合の原稿データの値234に対応する補正用データ(−2)の値は同じ255となる。ROM211は、Rデータ、GデータおよびBデータごとに、256個の基準補正用データそれぞれに対応して12レベルの変動補正用データを記憶する。   The correction data (N) other than level 0 (variation correction data) corresponds to the correction data (0) (reference correction data), and is based on the shading plate data used to determine the correction data (0). Determined. Like the reference correction data, the fluctuation correction data has 256 values corresponding to all the values 0 to 255. For example, when the shading board data used to determine the correction data (0) is 230, the correction data (0) value corresponding to the original data value 230 and the time when the shading board data is acquired. The value of the correction data (−2) corresponding to the original data value 234 when the gradation is lower by 4 tones than the intensity of the same is 255. The ROM 211 stores 12 levels of fluctuation correction data corresponding to 256 pieces of reference correction data for each of R data, G data, and B data.

なお、ここでは変動補正用データのレベル数を、プラス側に10レベル、マイナス側に2レベルの合計12レベルにし、レベル間隔を2階調としたが、レベル数およびレベル間隔はこれらに限定されるものではなく、光源159の特性に応じて定めればよい。   Here, the number of levels of the fluctuation correction data is set to 12 levels, 10 levels on the plus side and 2 levels on the minus side, and the level interval is 2 gradations. However, the number of levels and the level interval are limited to these. What is necessary is just to determine according to the characteristic of the light source 159 instead of a thing.

補正用データ決定部213は、画像処理部215がシェーディング補正するために用いる補正用データを決定し、決定した補正用データを画像処理部215に出力する。具体的には、補正用データ決定部213は、シェーディング板データに基づいて、ROM211に記憶されている複数の基準補正用データのうちから1つの基準補正用データを選択する。この基準補正用データを、画像処理部215がシェーディング補正するために用いる補正用データとして、画像処理部215に出力する。また、補正用データ決定部213は、読取部219が原稿150で反射した光を受光して出力するデータ(原稿データ)に基づいて、先に選択した基準補正用データとその基準補正用データに対応する複数の変動補正用データのうちから1つを選択して、シェーディング補正に用いる実行補正用データを設定する。この設定した実行補正用データを、画像処理部215がシェーディング補正するために用いる補正用データとして、画像処理部215に出力する。   The correction data determination unit 213 determines correction data used by the image processing unit 215 for shading correction, and outputs the determined correction data to the image processing unit 215. Specifically, the correction data determination unit 213 selects one reference correction data from among a plurality of reference correction data stored in the ROM 211 based on the shading plate data. The reference correction data is output to the image processing unit 215 as correction data used by the image processing unit 215 for shading correction. Further, the correction data determination unit 213 receives the reference correction data and the reference correction data selected previously based on the data (document data) output by receiving the light reflected from the document 150 by the reading unit 219. One of a plurality of corresponding variation correction data is selected, and execution correction data used for shading correction is set. The set execution correction data is output to the image processing unit 215 as correction data used by the image processing unit 215 for shading correction.

画像形成部221は、画像形成装置121を制御して、画像処理部215で処理された画像データに基づいて、画像形成装置121に紙などの記録媒体に画像を形成させて、画像データを可視化させる。   The image forming unit 221 controls the image forming apparatus 121 to cause the image forming apparatus 121 to form an image on a recording medium such as paper based on the image data processed by the image processing unit 215 to visualize the image data. Let

原稿搬送制御部225は、ADF111に接続され、原稿150の搬送を制御する。原稿搬送制御部225は、ADF111の原稿を搬送する経路中で原稿150が存在する位置を検出し、原稿の位置をCPU210に出力する。このため、CPU210では、原稿150が原稿読取位置Lに存在するか否か判断することができる。   The document conveyance control unit 225 is connected to the ADF 111 and controls the conveyance of the document 150. The document conveyance control unit 225 detects the position where the document 150 exists in the path for conveying the document of the ADF 111 and outputs the position of the document to the CPU 210. Therefore, the CPU 210 can determine whether or not the document 150 exists at the document reading position L.

操作部227は、MFP100の本体部120の上面に設けられ、キーボードなどの入力部および、液晶表示装置などの表示部を含む。入力部は、ユーザの操作の入力を受付け、表示部は所定の情報を表示して、ユーザに情報を提供する。表示部は、ユーザによる操作の入力を支援する。   Operation unit 227 is provided on the upper surface of main body unit 120 of MFP 100 and includes an input unit such as a keyboard and a display unit such as a liquid crystal display device. The input unit receives an input of a user operation, and the display unit displays predetermined information and provides the user with information. The display unit supports input of an operation by the user.

図4は、画像処理部の機能の概要を示す機能ブロック図である。図4を参照して、画像処理部215は、読取部219および補正用データ決定部213と接続される。画像処理部215は、読取部219から1ライン分のアナログのデータ(Rデータ、GデータおよびBデータ)が入力され、補正用データ決定部213から補正用データが入力される。画像処理部215は、読取部219が出力する1ライン分のデータを順に処理するために直列に接続された、アナログデジタル変換部(A/D変換部)251と、シェーディング補正部252と、ライン間補正部253と、色収差補正部254と、ノイズ検出処理部255と、プリンタインタフェース256とを含む。   FIG. 4 is a functional block diagram illustrating an outline of functions of the image processing unit. Referring to FIG. 4, image processing unit 215 is connected to reading unit 219 and correction data determination unit 213. The image processing unit 215 receives analog data (R data, G data, and B data) for one line from the reading unit 219, and receives correction data from the correction data determination unit 213. The image processing unit 215 includes an analog / digital conversion unit (A / D conversion unit) 251, a shading correction unit 252, a line connected in series in order to sequentially process data for one line output from the reading unit 219. It includes an interval correction unit 253, a chromatic aberration correction unit 254, a noise detection processing unit 255, and a printer interface 256.

A/D変換部251は、読取部219から1ライン分のアナログのデータ(Rデータ、GデータおよびBデータ)が入力され、入力されたアナログデータをデジタルデータに変換する。A/D変換部251は、デジタルのデータ(Rデータ、GデータおよびBデータ)をシェーディング補正部252および補正用データ決定部213に出力する。補正用データ決定部213は、入力されたデジタルのデータ(Rデータ、GデータおよびBデータ)に従って、画像処理部215がシェーディング補正するために用いる補正用データを決定し、決定した補正用データをシェーディング補正部252に出力する。   The A / D conversion unit 251 receives one line of analog data (R data, G data, and B data) from the reading unit 219, and converts the input analog data into digital data. The A / D conversion unit 251 outputs digital data (R data, G data, and B data) to the shading correction unit 252 and the correction data determination unit 213. The correction data determination unit 213 determines correction data used by the image processing unit 215 for shading correction according to the input digital data (R data, G data, and B data), and the determined correction data is used. The result is output to the shading correction unit 252.

シェーディング補正部252は、A/D変換部251より入力されるデジタルのデータに、補正用データ決定部213から入力される補正用データに従ってシェーディング補正処理を実行する。シェーディング補正処理は、A/D変換部251より入力されるデータから光源159の照明ムラ等を除去する処理である。シェーディング補正部252は、シェーディング補正したデータをライン間補正部253に出力する。ライン間補正部253は、Rデータ、GデータおよびBデータそれぞれが原稿の同一ラインとなるようにRデータ、GデータおよびBデータを同期させる処理を実行する。色収差補正部254は、レンズ163による主走査方向の歪を補正する処理を実行する。ノイズ検出処理部255は、Rデータ、Gデータ、Bデータのそれぞれからノイズを検出して、検出したノイズを除去する処理を実行する。プリンタインタフェース256は、ノイズ検出処理部255から入力されるデータ(Rデータ、Gデータ、Bデータ)を画像形成装置121に出力する。   The shading correction unit 252 performs shading correction processing on the digital data input from the A / D conversion unit 251 according to the correction data input from the correction data determination unit 213. The shading correction process is a process for removing uneven illumination of the light source 159 from the data input from the A / D conversion unit 251. The shading correction unit 252 outputs the shading corrected data to the interline correction unit 253. The interline correction unit 253 executes a process of synchronizing the R data, the G data, and the B data so that each of the R data, the G data, and the B data becomes the same line of the document. The chromatic aberration correction unit 254 executes processing for correcting distortion in the main scanning direction caused by the lens 163. The noise detection processing unit 255 detects noise from each of the R data, G data, and B data, and executes processing for removing the detected noise. The printer interface 256 outputs data (R data, G data, B data) input from the noise detection processing unit 255 to the image forming apparatus 121.

図5は、補正用データ決定部の機能の概要を示す機能ブロック図である。図5を参照して、補正用データ決定部213は、補正用データ選択部231と、セレクタ232と、階調特性比較部233と、階調特性検出部234とを含む。補正用データ決定部213には、シェーディング板データと、原稿データとが入力される。シェーディング板データと、原稿データとは、それぞれRデータ、GデータおよびBデータの3種類があるが、いずれの場合も同じ処理なので、ここでは説明を簡単にするため1つのデータについて説明することとし、単にシェーディング板データまたは原稿データというときは、Rデータ、GデータおよびBデータのいずれか1つを示す。   FIG. 5 is a functional block diagram showing an outline of the function of the correction data determination unit. Referring to FIG. 5, correction data determination unit 213 includes a correction data selection unit 231, a selector 232, a gradation characteristic comparison unit 233, and a gradation characteristic detection unit 234. Shading plate data and document data are input to the correction data determination unit 213. There are three types of shading board data and document data, R data, G data, and B data, respectively, but since they are the same in any case, only one data will be described here for the sake of simplicity. When simply referred to as shading board data or document data, any one of R data, G data, and B data is indicated.

補正用データ選択部231は、A/D変換部251が出力するデータのうち、シェーディング板データが入力される。補正用データ選択部231は、シェーディング板データに基づいて、ROM211に記憶されている複数の補正用データのうちから1つの基準補正用データと、その基準補正用データに対応する変動補正用データを選択する。補正用データ選択部231は、選択した基準補正用データをレベル0の補正用データ(0)に設定し、変動補正用データをレベルがマイナス2、マイナス1、プラス1〜10の補正用データ(N)(Nは、−2≦N<0、0<N≦10の整数)に設定して、それらをRAM212に補正用データとして記憶する。   Of the data output from the A / D converter 251, the shading plate data is input to the correction data selector 231. Based on the shading plate data, the correction data selection unit 231 selects one reference correction data from among a plurality of correction data stored in the ROM 211 and variation correction data corresponding to the reference correction data. select. The correction data selection unit 231 sets the selected reference correction data to level 0 correction data (0), and changes the correction data to the correction data (levels minus 2, minus 1, plus 1 to 10). N) (N is an integer of −2 ≦ N <0 and 0 <N ≦ 10), and stores them in the RAM 212 as correction data.

なお、補正用データ選択部231が、シェーディング板データに基づいて基準補正用データと変動補正用データとを生成するようにしてもよい。この場合には、ROM211に複数の補正用データを記憶しておく必要はない。補正用データ選択部231は、シェーディング板データから、シェーディング板データを基準値に補正するための係数を求める。基準補正用データは、この求められた係数に対応する複数の値を含む。具体的には、明度が0〜255の範囲を取り得る値とすると、シェーディング板データが230であった場合、基準値を255とすれば係数は255/230となる。この係数にしたがって、0〜255それぞれの値に対応した値を有する1つの基準補正用データが定まる。たとえば、補正用データ選択部231は、0〜255それぞれの値に対して、係数(255/230)を乗じた値の少数点以下を四捨五入、切り捨てまたは切り上げした整数部分を含む基準補正用データを生成する。ただし、補正用データ選択部231は、0〜255のいずれかの値に係数を乗じた値が255を越える場合には、基準補正用データを255とする。したがって、補正用データ選択部231は、256個の値を有する1つの基準補正用データを生成する。また、光源159の照射する光の強度は、主走査方向にバラツキがあるので、補正用データ選択部231は、読取部219が備える複数の光電変換素子それぞれに対して、基準補正用データを生成する。なお、基準補正用データの生成は、上述した方法に限定されることなく、他の種々の方法を用いることができる。   The correction data selection unit 231 may generate the reference correction data and the fluctuation correction data based on the shading plate data. In this case, it is not necessary to store a plurality of correction data in the ROM 211. The correction data selection unit 231 obtains a coefficient for correcting the shading plate data to the reference value from the shading plate data. The reference correction data includes a plurality of values corresponding to the obtained coefficient. Specifically, assuming that the lightness can take a range of 0 to 255, when the shading board data is 230, the coefficient is 255/230 if the reference value is 255. According to this coefficient, one reference correction data having values corresponding to the respective values of 0 to 255 is determined. For example, the correction data selection unit 231 obtains reference correction data including an integer part obtained by rounding, rounding down, or rounding up a value obtained by multiplying each value of 0 to 255 by a coefficient (255/230). Generate. However, the correction data selection unit 231 sets the reference correction data to 255 when the value obtained by multiplying any of the values 0 to 255 by the coefficient exceeds 255. Therefore, the correction data selection unit 231 generates one reference correction data having 256 values. Since the intensity of light emitted from the light source 159 varies in the main scanning direction, the correction data selection unit 231 generates reference correction data for each of the plurality of photoelectric conversion elements provided in the reading unit 219. To do. The generation of the reference correction data is not limited to the method described above, and various other methods can be used.

変動補正用データは、1つの基準補正用データに対応する1以上のデータである。補正用データ選択部231は、基準補正用データに係数を乗算することによって12レベルの変動補正用データを求める。また、補正用データ選択部231は、先に基準補正用データを定めるために用いたシェーディング板データを用いて、変動補正用データを求めるようにしてもよい。先に基準補正用データを定めるために用いたシェーディング板データが230であり、かつ、基準値を255としたので、補正用データ選択部231は、係数255/(230−2N)を求める。ただし、Nは−2以上10以下の0以外の整数である。したがって、12個の補正用データ(N)が定まる。ここでは、一例としてレベルLevelがマイナス2の変動補正用データの生成について説明する。この場合、係数は(255/(230−2×(−2))となる。補正用データ選択部231は、この係数に従って、0〜255それぞれの値に対応した値を有する補正用データ(−2)を求める。たとえば、0〜255それぞれの値に対して、係数(255/(230−2×(−2)))を乗じた値の少数点以下を四捨五入、切り捨てまたは切り上げした整数部分を補正用データ(−2)とする。ただし、0〜255のいずれかの値に係数を乗じた値が255を越える場合には、補正用データ選択部231は、補正用データ(−2)を255とする。したがって、補正用データ選択部231は、256個の値を有する1つの補正用データ(−2)を生成する。また、光源159の照射する光の強度は、主走査方向にバラツキがあるので、補正用データ選択部231は、読取部219が備える複数の光電変換素子それぞれに対して、補正用データ(−2)を生成する。なお、ここでは、12レベルの変動補正用データを求めるようにしたが、レベル数はこれに限定されない。また、変動補正用データの生成は、上述した方法に限定されることなく、他の種々の方法を用いることができる。   The fluctuation correction data is one or more data corresponding to one reference correction data. The correction data selection unit 231 obtains 12-level fluctuation correction data by multiplying the reference correction data by a coefficient. Further, the correction data selection unit 231 may obtain the fluctuation correction data by using the shading plate data used to determine the reference correction data. Since the shading plate data used to determine the reference correction data is 230 and the reference value is 255, the correction data selection unit 231 obtains the coefficient 255 / (230-2N). However, N is an integer other than 0 which is not less than −2 and not more than 10. Accordingly, twelve correction data (N) are determined. Here, as an example, generation of fluctuation correction data having a level Level of minus 2 will be described. In this case, the coefficient is (255 / (230-2 × (−2)) The correction data selection unit 231 has correction data (−) having values corresponding to the respective values of 0 to 255 according to the coefficient. For example, an integer part obtained by rounding, rounding down, or rounding up a decimal point after a value obtained by multiplying each value of 0 to 255 by a coefficient (255 / (230-2 × (−2))) is obtained. The correction data (−2) is obtained, but when the value obtained by multiplying any of the values 0 to 255 by the coefficient exceeds 255, the correction data selection unit 231 sets the correction data (−2) as the correction data (−2). Therefore, the correction data selection unit 231 generates one correction data (−2) having 256 values, and the intensity of light emitted from the light source 159 varies in the main scanning direction. Because there is for correction The data selection unit 231 generates correction data (−2) for each of the plurality of photoelectric conversion elements included in the reading unit 219. Note that, here, 12-level fluctuation correction data is obtained. The number of levels is not limited to this, and the generation of fluctuation correction data is not limited to the method described above, and various other methods can be used.

階調特性検出部234は、A/D変換部251が出力するデータのうち原稿データが入力される。階調特性検出部234は、原稿データから階調特性を検出し、検出した階調特性をRAM212に記憶する。ここでは、階調特性は、原稿1枚分の原稿データのうち最大の明度としている。階調特性検出部234は、原稿一枚分の原稿データのうちから明度の最大値を検出し、検出した最大値を階調特性として検出する。原稿データは1ライン分ごとに入力されるため、階調特性検出部234は、1ライン分の原稿データが入力されるごとに最大値を更新し、原稿1枚分の原稿データが入力された後に、最大値を階調特性として検出する。階調特性検出部234は、検出した階調特性をRAM212に記憶する。これにより、原稿1枚分の原稿データが入力されるごとに、RAM212に原稿の階調特性が記憶されることになる。なお、ここでは、原稿1枚分の原稿データから階調特性を検出するようにしたが、原稿を複数の領域に分割して、分割した領域ごとに階調特性を検出するようにしてもよい。この場合、階調特性検出部234は、原稿を分割した領域の原稿データが入力されるごとに、階調特性を検出して記憶することになる。   The gradation characteristic detection unit 234 receives document data among the data output from the A / D conversion unit 251. The gradation characteristic detection unit 234 detects gradation characteristics from document data, and stores the detected gradation characteristics in the RAM 212. Here, the gradation characteristic is the maximum brightness of the original data for one original. The gradation characteristic detection unit 234 detects the maximum value of brightness from the original data for one original, and detects the detected maximum value as the gradation characteristic. Since the document data is input for each line, the gradation characteristic detecting unit 234 updates the maximum value every time the document data for one line is input, and the document data for one document is input. Later, the maximum value is detected as a gradation characteristic. The gradation characteristic detection unit 234 stores the detected gradation characteristic in the RAM 212. Thus, every time document data for one document is input, the gradation characteristics of the document are stored in the RAM 212. Here, the gradation characteristics are detected from the document data for one original. However, the original may be divided into a plurality of areas, and the gradation characteristics may be detected for each of the divided areas. . In this case, the gradation characteristic detecting unit 234 detects and stores the gradation characteristic every time document data of an area obtained by dividing the document is input.

階調特性比較部233は、RAM212に記憶された階調特性を読み出して、最初の原稿に対応する階調特性と、最後の原稿に対応する階調特性とを比較する。最初の原稿とは、読取部219でシェーディング板156を読み取った後、読取部219で最初に読み取る原稿をいう。最後の原稿とは、読取部219で最後に読み取った原稿をいう。たとえば、読取部219で、2枚の原稿を読み取った場合、第1番目に読み取った原稿が最初の原稿であり、第2番目に読み取った原稿が最後の原稿である。さらに、読取部219で原稿を読み取りが継続されて、5枚の原稿を読み取った時点では、最初の原稿は第1番目に読み取った原稿であり、最後の原稿は第5番目に読み取った原稿である。階調特性比較部233は、最初の原稿に対応する階調特性を変数Data1に設定し、最後の原稿に対応する階調特性を変数Data2に設定し、両者の比Sel(=Data1/Data2)を算出し、レベルを決定する。階調特性比較部233は、決定したレベルをセレクタ232に出力する。階調特性比較部233が、最初にレベルを決定するのは、2枚目の原稿の原稿データが入力された後、3枚目の原稿の原稿データが入力される前なので、階調特性比較部233は、最初にレベルを決定する前には、レベル0をセレクタ232に出力する。レベルは、Selが1より小さければプラスレベル、1より大きければマイナスレベルとなる。具体的には、Data1に比較して、Data2が2階調高ければマイナス1レベル、Data2が4階調高ければマイナス2レベル、Data2が2階調低ければプラス1レベル、Data2が4階調低ければプラス2レベル、・・・、Data2が20階調低ければプラス10レベルである。   The gradation characteristic comparison unit 233 reads the gradation characteristic stored in the RAM 212 and compares the gradation characteristic corresponding to the first document with the gradation characteristic corresponding to the last document. The first document refers to a document that is first read by the reading unit 219 after the reading unit 219 reads the shading plate 156. The last document refers to the document read last by the reading unit 219. For example, when the reading unit 219 reads two originals, the first original read is the first original, and the second original read is the last original. Further, when the reading unit 219 continues to read the original and five originals are read, the first original is the first original and the last original is the fifth original. is there. The gradation characteristic comparison unit 233 sets the gradation characteristic corresponding to the first document to the variable Data1, sets the gradation characteristic corresponding to the last document to the variable Data2, and the ratio Sel between them (= Data1 / Data2). Is calculated and the level is determined. The gradation characteristic comparison unit 233 outputs the determined level to the selector 232. The gradation characteristic comparison unit 233 first determines the level since the original data of the second original is input and before the original data of the third original is input. The unit 233 outputs level 0 to the selector 232 before first determining the level. The level is a plus level if Sel is less than 1, and a minus level if Sel is greater than 1. Specifically, compared to Data1, if Data2 is 2 gradations high, minus 1 level, if Data2 is 4 gradations high, minus 2 level, if Data2 is 2 gradations low, plus 1 level, and Data2 is 4 gradations lower. If Data2 is 20 gradations low, it is a plus 10 level.

セレクタ232は、階調特性比較部233からレベルが入力される。セレクタ232は、入力されたレベルの補正用データを、RAM212から読み出して、シェーディング補正部252に出力する。   The selector 232 receives the level from the gradation characteristic comparison unit 233. The selector 232 reads the input level correction data from the RAM 212 and outputs it to the shading correction unit 252.

図6は、第1の実施の形態におけるMFPで実行される読取処理の流れの一例を示すフローチャートである。図6を参照して、CPU210は、ユーザによる原稿の読取を開始する指示が受付けられるまで待機状態となり(ステップS01でNO)、読取開始指示が受付けられると処理をステップS02に進める。CPU210は、操作部227が備えるスタートボタンの指示を検出することにより、読取開始指示の受付けを検出する。   FIG. 6 is a flowchart illustrating an example of the flow of reading processing executed by the MFP according to the first embodiment. Referring to FIG. 6, CPU 210 is in a standby state until an instruction to start reading a document by the user is received (NO in step S01), and when the reading start instruction is received, the process proceeds to step S02. CPU 210 detects acceptance of a reading start instruction by detecting an instruction of a start button provided in operation unit 227.

CPU210は、スライダ制御部223にスライダ158をシェーディング板156の下方に移動させる(ステップS02)。その後、CPU210は、光源制御部217に光源159を点灯させる(ステップS03)。これにより、読取部219が、シェーディング板156で反射した光を受光し、シェーディング板データを出力する。シェーディング板データは、補正用データ決定部213に出力される。   The CPU 210 causes the slider control unit 223 to move the slider 158 below the shading plate 156 (step S02). Thereafter, the CPU 210 causes the light source control unit 217 to turn on the light source 159 (step S03). As a result, the reading unit 219 receives the light reflected by the shading plate 156 and outputs shading plate data. The shading board data is output to the correction data determination unit 213.

次に、補正用データ決定部213は、入力されるシェーディング板データを用いて、ROM211から補正用データ(N)を選択する(ステップS05)。補正用データ(N)は、レベルが0(N=0)の基準補正用データと、レベルが−2、−1、1〜10の変動補正用データとを含む。補正用データ決定部213は、選択した補正用データ(N)をRAM212に記憶する。   Next, the correction data determination unit 213 selects the correction data (N) from the ROM 211 using the input shading plate data (step S05). The correction data (N) includes reference correction data with a level of 0 (N = 0) and fluctuation correction data with levels of -2, -1, 1-10. The correction data determination unit 213 stores the selected correction data (N) in the RAM 212.

次に、補正用データ決定部213は、レベルが0の基準補正用データである補正用データ(0)を選択し(ステップS05)、画像処理部215のシェーディング補正部252に補正用データ(0)を出力する(ステップS06)。これにより、シェーディング補正部252は、シェーディング補正に用いるための補正用データに、入力された補正用データ(0)を設定し、以降に入力される原稿データに、この設定された補正用データ(0)を用いてシェーディング補正処理を実行する。シェーディング補正部252では、次に補正用データが入力されるまで、設定された補正用データを用いてシェーディング補正を実行する。   Next, the correction data determination unit 213 selects the correction data (0) that is the reference correction data with the level 0 (step S05), and sends the correction data (0) to the shading correction unit 252 of the image processing unit 215. ) Is output (step S06). Accordingly, the shading correction unit 252 sets the input correction data (0) as correction data to be used for shading correction, and sets the correction data ( 0) is used to execute the shading correction process. The shading correction unit 252 performs shading correction using the set correction data until the next correction data is input.

CPU210は、スライダ制御部223にスライダ158を原稿読取位置Lの下方に移動させる(ステップS07)。次に、CPU210は、原稿搬送制御部225に原稿の搬送を開始させる(ステップS08)。これにより、読取部219は、原稿読取位置Lを通過する原稿で反射した光を受光し、原稿データを出力する(ステップS09)。原稿データは、補正用データ決定部213および画像処理部215に出力される。   The CPU 210 causes the slider control unit 223 to move the slider 158 below the document reading position L (step S07). Next, the CPU 210 causes the document conveyance control unit 225 to start document conveyance (step S08). As a result, the reading unit 219 receives the light reflected by the document passing through the document reading position L and outputs document data (step S09). The document data is output to the correction data determination unit 213 and the image processing unit 215.

そして、補正用データ決定部213は、原稿1枚分の原稿データを受信すると、その原稿に対する階調特性を検出する(ステップS10)。そして、補正用データ決定部213は、補正用データ決定処理を実行して補正用データを決定する(ステップS11)。補正用データ決定処理については後述するが、補正用データ決定部213は、決定した補正用データを、画像処理部215のシェーディング補正部252に出力する。シェーディング補正部252は、シェーディング補正に用いるための補正用データに、補正用データ決定部213から入力された補正用データを設定する。シェーディング補正部252では、次に補正用データが設定されるまで、設定された補正用データを用いてシェーディング補正を実行する。   When the correction data determination unit 213 receives document data for one document, the correction data determination unit 213 detects gradation characteristics for the document (step S10). Then, the correction data determination unit 213 executes correction data determination processing to determine correction data (step S11). Although the correction data determination process will be described later, the correction data determination unit 213 outputs the determined correction data to the shading correction unit 252 of the image processing unit 215. The shading correction unit 252 sets the correction data input from the correction data determination unit 213 as correction data used for shading correction. The shading correction unit 252 executes shading correction using the set correction data until the next correction data is set.

CPU210は、原稿搬送制御部225から次に搬送するべき原稿が存在するか否かを受信しており、次に搬送するべき原稿が存在するか否かを判断する(ステップS12)。CPU210は、次に搬送するべき原稿が存在すれば処理をステップS08に戻し、存在しなければ処理をステップS13に進める。ステップS13では、CPU210は、光源制御部217に光源159を消灯させる。   The CPU 210 receives whether or not there is a document to be transported next from the document transport control unit 225, and determines whether or not there is a document to be transported next (step S12). If there is a document to be conveyed next, CPU 210 returns the process to step S08, and if not, the process proceeds to step S13. In step S13, the CPU 210 causes the light source control unit 217 to turn off the light source 159.

図7は、図6のステップS10で実行される階調特性検出処理の流れの一例を示す図である。図7を参照して、補正用データ決定部213は、読取部219から原稿データが入力されるごとに、その原稿データのうち明度の最大値を検出する(ステップS51)。そして、補正用データ決定部213は、原稿1枚分の原稿データの入力が終了したか否かを判断する(ステップS52)。補正用データ決定部213は、原稿1枚分の原稿データの入力が終了していなければ処理をステップS51に戻し、終了していれば処理を読取処理に戻す。ステップS51では、補正用データ決定部213は、後に入力された原稿データから検出した明度の最大値が、それまでに検出した明度の最大値よりも大きければ、最大値を後に入力された原稿データから検出した最大値に更新する。これにより、原稿1枚分の原稿データのうち明度の最大値が階調特性として検出される。このように、補正用データ決定部213は、原稿1枚分の原稿データが入力された後に、その原稿に対応した階調特性を検出する。   FIG. 7 is a diagram showing an example of the flow of the gradation characteristic detection process executed in step S10 of FIG. Referring to FIG. 7, every time document data is input from reading unit 219, correction data determination unit 213 detects the maximum value of lightness in the document data (step S51). Then, the correction data determination unit 213 determines whether or not input of document data for one document has been completed (step S52). The correction data determination unit 213 returns the process to step S51 if the input of the original data for one original is not completed, and returns the process to the reading process if completed. In step S51, if the maximum value of brightness detected from the document data input later is larger than the maximum value of brightness detected so far, the maximum value of the document data input later is determined. Update to the maximum value detected from. As a result, the maximum value of lightness is detected as the gradation characteristic of the original data for one original. As described above, the correction data determination unit 213 detects gradation characteristics corresponding to a document after the document data for one document is input.

図8は、図6のステップS11で実行される補正用データ決定処理の流れの一例を示す図である。図8を参照して、補正用データ決定部213は、図6のステップS10で検出した階調特性が、1枚目の原稿に対応するか否かを判断する(ステップS21)。補正用データ決定部213は、階調特性が1枚目の原稿に対応すれば処理をステップS22に進め、そうでなければ処理をステップS23に進める。ステップS22では、補正用データ決定部213は、変数Data1に図6のステップS10で検出した階調特性を設定する。ステップS23では、補正用データ決定部213は、変数Data2に図6のステップS10で検出した階調特性を設定する。すなわち、変数Data1には、読取部219で1枚目に読み込んだ原稿から検出された階調特性が設定され、変数Data2には、読取部219で最後に読み込んだ原稿から検出された階調特性が設定される。   FIG. 8 is a diagram illustrating an example of the flow of correction data determination processing executed in step S11 of FIG. Referring to FIG. 8, correction data determination unit 213 determines whether or not the gradation characteristic detected in step S10 in FIG. 6 corresponds to the first original (step S21). The correction data determination unit 213 advances the process to step S22 if the gradation characteristic corresponds to the first original, and advances the process to step S23 if not. In step S22, the correction data determination unit 213 sets the gradation characteristic detected in step S10 of FIG. 6 to the variable Data1. In step S23, the correction data determination unit 213 sets the gradation characteristic detected in step S10 of FIG. 6 to the variable Data2. That is, the gradation characteristic detected from the original read first by the reading unit 219 is set in the variable Data1, and the gradation characteristic detected from the original read last by the reading unit 219 is set in the variable Data2. Is set.

補正用データ決定部213は、ステップS23の後、処理をステップS24に進める。補正用データ決定部213は、次式(1)を用いて、比Selを算出する(ステップS24)。
Sel=Data1/Data2 … (1)
さらに、補正用データ決定部213は、関数F(Sel)を用いてレベルLevelを求める(ステップS25)。補正用データ決定部213は、RAM212に記憶されている補正用データ(N)のうちから、ステップS25で求めたレベルLevelの補正用データ(Level)を選択し(ステップS26)、画像処理部215のシェーディング補正部252に補正用データ(Level)を出力する(ステップS27)。これにより、シェーディング補正部252は、シェーディング補正に用いるための補正用データに、入力された補正用データ(Level)を設定し、その後に入力される原稿データに、この設定された補正用データ(Level)を用いてシェーディング補正処理を実行する。
The correction data determination unit 213 advances the process to step S24 after step S23. The correction data determination unit 213 calculates the ratio Sel using the following equation (1) (step S24).
Sel = Data1 / Data2 (1)
Further, the correction data determination unit 213 obtains the level Level using the function F (Sel) (step S25). The correction data determination unit 213 selects the level level correction data (Level) obtained in step S25 from the correction data (N) stored in the RAM 212 (step S26), and the image processing unit 215. The correction data (Level) is output to the shading correction unit 252 (step S27). Thus, the shading correction unit 252 sets the input correction data (Level) as correction data for use in shading correction, and sets the correction data ( Level) is used to execute shading correction processing.

補正用データ決定部213は、2枚目以降の原稿データに対応する階調特性が検出されると、補正用データのレベルを決定し、決定したレベルをシェーディング補正部252に出力する。このため、シェーディング補正部252は、1枚目および2枚目の原稿を読み取って得られる原稿データを、補正用データ(0)を用いてシェーディング補正し、3枚目以降の原稿を読みとって得られる原稿データを、補正用データ決定部213で決定されたレベルLevelの補正用データ(Level)を用いてシェーディング補正する。   When the gradation characteristic corresponding to the second and subsequent original data is detected, the correction data determination unit 213 determines the level of the correction data and outputs the determined level to the shading correction unit 252. Therefore, the shading correction unit 252 performs shading correction on the original data obtained by reading the first and second originals using the correction data (0), and obtains the third and subsequent originals. The original document data is subjected to shading correction using the correction data (Level) at the level Level determined by the correction data determination unit 213.

<階調特性検出処理の第1の変形例>
補正用データ決定部213は、階調特性を原稿1枚分の原稿データのうち明度の最大値をその原稿の階調特性とするものであった。第1の変形例における階調特性検出処理では、原稿中に予め定められた検出領域の明度の最大値を階調特性とするものである。原稿中に予め定められた検出領域は、たとえば原稿の余白部分である。原稿の余白部分は、原稿の端から数ミリの範囲の領域とすればよい。原稿の4つの辺に沿って所定の幅の領域が存在することになる。
<First Modification of Tone Characteristic Detection Processing>
The correction data determination unit 213 uses the maximum brightness value of the original data for one original as the gradation characteristic of the original. In the gradation characteristic detection process in the first modification, the maximum value of the brightness of a detection area predetermined in the document is used as the gradation characteristic. The predetermined detection area in the document is, for example, a margin portion of the document. The margin of the document may be an area within a few millimeters from the edge of the document. There are regions of a predetermined width along the four sides of the document.

図9は、第1の変形例における階調特性検出処理の流れの一例を示す図である。第1の変形例における階調特性検出処理は、図6のステップS10で、補正用データ決定部213により実行される処理である。図9を参照して、補正用データ決定部213は、読取部219からA/D変換部251を介して原稿データが入力されるごとに、その原稿データが検出領域に含まれるか否かを判断する(ステップS61)。補正用データ決定部213は、原稿データの少なくとも一部が検出領域に含まれれば、原稿データが検出領域に含まれると判断する。この場合、補正用データ決定部213は、原稿データから検出領域に含まれる部分を抽出する。補正用データ決定部213は、原稿データが検出領域に含まれるなら処理をステップS62に進め、そうでなければ処理をステップS63に進める。   FIG. 9 is a diagram illustrating an example of the flow of the gradation characteristic detection process in the first modification. The gradation characteristic detection process in the first modification is a process executed by the correction data determination unit 213 in step S10 of FIG. Referring to FIG. 9, every time document data is input from reading unit 219 via A / D conversion unit 251, correction data determination unit 213 determines whether or not the document data is included in the detection area. Judgment is made (step S61). The correction data determination unit 213 determines that the document data is included in the detection area if at least part of the document data is included in the detection area. In this case, the correction data determination unit 213 extracts a portion included in the detection area from the document data. The correction data determination unit 213 advances the process to step S62 if the document data is included in the detection area, and advances the process to step S63 if not.

補正用データ決定部213は、検出領域に含まれる原稿データのうち明度の最大値を検出する(ステップS62)。そして、補正用データ決定部213は、原稿1枚分の原稿データの入力が終了したか否かを判断する(ステップS63)。補正用データ決定部213は、原稿1枚分の原稿データの入力が終了していなければ処理をステップS61に戻し、終了していれば処理を読取処理に戻す。ステップS62では、補正用データ決定部213は、後に入力された原稿データから検出した最大値が、それまでに検出した最大値よりも大きければ、最大値を後に入力された原稿データから検出した最大値に更新する。これにより、原稿中の検出領域に含まれる原稿データのうち明度の最大値が階調特性として検出される。このように、補正用データ決定部213は、原稿1枚分の原稿データが入力された後に、その原稿に対応した階調特性を検出する。   The correction data determination unit 213 detects the maximum value of brightness among the document data included in the detection area (step S62). Then, the correction data determination unit 213 determines whether or not input of document data for one document has been completed (step S63). The correction data determination unit 213 returns the process to step S61 if the input of the original data for one original has not been completed, and returns the process to the reading process if completed. In step S62, if the maximum value detected from the document data inputted later is larger than the maximum value detected so far, the maximum value detected from the document data inputted later is detected. Update to value. As a result, the maximum value of lightness is detected as the gradation characteristic among the document data included in the detection area of the document. As described above, the correction data determination unit 213 detects gradation characteristics corresponding to a document after the document data for one document is input.

第1の変形例における階調特性検出処理によれば、原稿の余白部分の明度の最大値を階調特性とする。このため、原稿の下地領域から階調特性を検出することができ、階調特性の検出精度を向上させることができる。   According to the gradation characteristic detection processing in the first modified example, the maximum value of the brightness of the margin portion of the document is set as the gradation characteristic. For this reason, the gradation characteristics can be detected from the background area of the document, and the detection accuracy of the gradation characteristics can be improved.

なお、検出領域の明度の最大値を階調特性としたが、原稿の予め定められた部分に所定のマークを付すようにして、読取部219がそのマークを読み取って出力する原稿データから階調特性を検出するようにしてもよい。   Although the maximum brightness value of the detection area is the gradation characteristic, the gradation is determined from the document data output by the reading unit 219 reading the mark so that a predetermined mark is attached to a predetermined portion of the document. The characteristic may be detected.

<階調特性検出処理の第2の変形例>
第2の変形例における階調特性検出処理では、原稿中の彩度が所定値以下の領域における明度の最大値を階調特性とするものである。彩度が所定値以下の領域は無彩色の領域である。通常、ビジネスには、原稿の下地が白の用紙が用いられることが多いので、彩度が所定値以下の領域の明度の最大値を階調特性とすることにより、異なる原稿から白色の領域で階調特性を検出することができる。
<Second Modification of Tone Characteristic Detection Processing>
In the gradation characteristic detection process in the second modification, the maximum value of brightness in the area where the saturation in the document is equal to or less than a predetermined value is used as the gradation characteristic. An area where the saturation is equal to or less than a predetermined value is an achromatic area. Normally, papers with white backgrounds are often used in business. Therefore, by setting the maximum value of lightness in areas where saturation is equal to or less than a predetermined value as a gradation characteristic, The gradation characteristics can be detected.

第2の変形例における階調特性検出処理では、Rデータ、GデータおよびBデータの3つの原稿データから彩度を求めるため、補正用データ決定部213には、ライン間補正された原稿データが入力される必要がある。このため、図4に示したライン間補正部253は、A/D変換部251とシェーディング補正部252との間に配置され、ライン間補正部253で同期した原稿データが、シェーディング補正部252および補正用データ決定部213に入力される。また、処理対象とする領域を検出するため、補正用データ決定部213は、ラインバッファを備える。ここでは、領域のサイズを縦横それぞれ5画素の領域とする。このためラインバッファは5ライン分の記憶容量を備える。   In the gradation characteristic detection process in the second modification, the saturation data is obtained from the three original data of R data, G data, and B data. Therefore, the correction data determination unit 213 receives the original data corrected between lines. Must be entered. Therefore, the interline correction unit 253 shown in FIG. 4 is arranged between the A / D conversion unit 251 and the shading correction unit 252, and the document data synchronized by the interline correction unit 253 is converted into the shading correction unit 252 and the shading correction unit 252. The data is input to the correction data determination unit 213. In addition, the correction data determination unit 213 includes a line buffer in order to detect a region to be processed. Here, the size of the area is assumed to be an area of 5 pixels vertically and horizontally. For this reason, the line buffer has a storage capacity for five lines.

図10は、第2の変形例における階調特性検出処理の流れの一例を示す図である。第2の変形例における階調特性検出処理は、図6のステップS10で、補正用データ決定部213により実行される処理である。図10を参照して、補正用データ決定部213は、読取部219からA/D変換部251およびライン間補正部253を介して原稿データが入力されると、ラインバッファに順に記憶する。そして、主走査方向に領域を順に選択して、選択した領域に含まれる全ての画素の彩度を検出する(ステップS71)。彩度は、画素が有するRデータ、GデータおよびBデータの最大値と最小値との差である。領域には25画素が含まれるので彩度も25個検出されるが、ここでは、最大値を領域の彩度とする。   FIG. 10 is a diagram illustrating an example of the flow of gradation characteristic detection processing in the second modification. The gradation characteristic detection process in the second modification is a process executed by the correction data determination unit 213 in step S10 of FIG. Referring to FIG. 10, when document data is input from reading unit 219 via A / D conversion unit 251 and interline correction unit 253, correction data determination unit 213 stores the data sequentially in a line buffer. Then, regions are sequentially selected in the main scanning direction, and the saturation of all the pixels included in the selected region is detected (step S71). Saturation is the difference between the maximum and minimum values of R data, G data, and B data that a pixel has. Since 25 pixels are included in the region, 25 saturations are also detected. Here, the maximum value is the saturation of the region.

そして、補正用データ決定部213は、領域の彩度が、しきい値Ref1より小さいか否かを判断する(ステップS72)。補正用データ決定部213は、彩度がしきい値Ref1より小さい領域については処理をステップS73に進め、そうでない領域については処理をステップS74に進める。ステップS73では、補正用データ決定部213は、彩度がしきい値Ref1より小さい領域に含まれる画素の明度の最大値を領域の明度として検出する。明度の最大値は、Rデータ、GデータおよびBデータそれぞれで検出される。補正用データ決定部213は、しきい値Ref1より小さい彩度の領域が複数あれば、複数の領域の明度のうちの最大値を検出する。   Then, the correction data determination unit 213 determines whether or not the saturation of the region is smaller than the threshold value Ref1 (step S72). The correction data determination unit 213 advances the process to step S73 for the area where the saturation is smaller than the threshold value Ref1, and advances the process to step S74 for the other area. In step S73, the correction data determination unit 213 detects the maximum value of the brightness of the pixels included in the area where the saturation is smaller than the threshold value Ref1, as the brightness of the area. The maximum value of brightness is detected for each of R data, G data, and B data. The correction data determination unit 213 detects the maximum value of the lightness of the plurality of regions if there are a plurality of regions with saturation smaller than the threshold value Ref1.

そして、補正用データ決定部213は、原稿1枚分の原稿データの入力が終了したか否かを判断する(ステップS74)。補正用データ決定部213は、原稿1枚分の原稿データの入力が終了していなければ処理をステップS71に戻し、終了していれば処理を読取処理に戻す。ステップS73では、補正用データ決定部213は、後に入力された原稿データから検出した明度の最大値が、それまでに検出した明度の最大値よりも大きければ、明度の最大値を後に入力された原稿データから検出した明度の最大値に更新する。これにより、原稿中の彩度が所定値以下の領域で、Rデータ、GデータおよびBデータそれぞれで明度の最大値が階調特性として検出される。このように、補正用データ決定部213は、原稿1枚分の原稿データが入力された後に、その原稿に対応した階調特性をRデータ、GデータおよびBデータごとに検出する。   Then, the correction data determination unit 213 determines whether or not input of document data for one document has been completed (step S74). The correction data determination unit 213 returns the process to step S71 if the input of the original data for one original has not been completed, and returns the process to the reading process if completed. In step S73, if the maximum brightness value detected from the document data input later is greater than the maximum brightness value detected so far, the correction data determination unit 213 inputs the maximum brightness value later. Update to the maximum value of brightness detected from document data. As a result, the maximum brightness value is detected as the gradation characteristic in each of the R data, the G data, and the B data in an area where the saturation in the document is equal to or less than a predetermined value. As described above, the correction data determination unit 213 detects the gradation characteristics corresponding to the original for each of the R data, the G data, and the B data after the original data for one original is input.

<階調特性検出処理の第3の変形例>
第3の変形例における階調特性検出処理では、原稿中の彩度が所定値以下で、かつ明度が所定値以上の領域の明度の平均値を階調特性とするものである。彩度が所定値以下の領域は無彩色の領域であり、無彩色の領域で明度が所定値以上の領域は白に近い領域である。したがって、原稿中の彩度が所定値以下で、かつ明度が所定値以上の領域は、原稿の白色の下地領域に相当する。
<Third Modification of Tone Characteristic Detection Processing>
In the gradation characteristic detection process in the third modified example, the average value of the lightness in the area where the saturation in the document is not more than a predetermined value and the lightness is not less than the predetermined value is used as the gradation characteristic. A region where the saturation is not more than a predetermined value is an achromatic region, and a region where the lightness is not less than the predetermined value in the achromatic region is a region close to white. Therefore, an area in which the saturation in the document is equal to or less than a predetermined value and the lightness is equal to or greater than a predetermined value corresponds to a white background area of the document.

第3の変形例における階調特性検出処理では、Rデータ、GデータおよびBデータの3つの原稿データから彩度を求めるため、補正用データ決定部213には、ライン間補正された原稿データが入力される必要がある。このため、図4に示したライン間補正部253は、A/D変換部251とシェーディング補正部252との間に配置され、ライン間補正部253で補正された原稿データが、シェーディング補正部252および補正用データ決定部213に入力される。また、処理対象とする領域を検出するため、補正用データ決定部213は、ラインバッファを備える。ここでは、領域のサイズを縦横それぞれ5画素の領域とする。このためラインバッファは5ライン分の記憶容量を備える。   In the gradation characteristic detection process in the third modification, the saturation is determined from the three original data of R data, G data, and B data. Therefore, the correction data determination unit 213 receives the original data corrected between lines. Must be entered. For this reason, the interline correction unit 253 shown in FIG. 4 is arranged between the A / D conversion unit 251 and the shading correction unit 252, and the document data corrected by the interline correction unit 253 is the shading correction unit 252. And input to the correction data determination unit 213. In addition, the correction data determination unit 213 includes a line buffer in order to detect a region to be processed. Here, the size of the area is assumed to be an area of 5 pixels vertically and horizontally. For this reason, the line buffer has a storage capacity for five lines.

図11は、第3の変形例における階調特性検出処理の流れの一例を示す図である。第3の変形例における階調特性検出処理は、図6のステップS10で、補正用データ決定部213により実行される処理である。図11を参照して、補正用データ決定部213は、読取部219からA/D変換部251およびライン間補正部253を介して原稿データが入力されると、ラインバッファに順に記憶する。そして、主走査方向に領域を順に選択して、選択した領域に含まれる全ての画素の彩度を検出する(ステップS81)。領域には25画素が含まれるので彩度も25個検出されるが、ここでは、最大値を領域の彩度とする。   FIG. 11 is a diagram illustrating an example of the flow of gradation characteristic detection processing in the third modification. The gradation characteristic detection process in the third modification is a process executed by the correction data determination unit 213 in step S10 in FIG. Referring to FIG. 11, when document data is input from reading unit 219 via A / D conversion unit 251 and interline correction unit 253, correction data determination unit 213 stores the data sequentially in a line buffer. Then, regions are sequentially selected in the main scanning direction, and the saturation of all the pixels included in the selected region is detected (step S81). Since 25 pixels are included in the region, 25 saturations are also detected. Here, the maximum value is the saturation of the region.

そして、補正用データ決定部213は、領域の彩度がしきい値Ref1より小さく、かつ、明度がしきい値Ref2より大きいか否かを判断する(ステップS82)。明度は、画素が有するRデータ、Gデータ、Bデータの平均値である。領域には25画素が含まれるので明度も25個検出されるが、ここでは、平均値を領域の明度とする。補正用データ決定部213は、彩度がしきい値Ref1より小さく、かつ、明度がしきい値Ref2より大きい領域については処理をステップS83に進め、そうでない領域については処理をステップS84に進める。ステップS83では、補正用データ決定部213は、彩度がしきい値Ref1より小さく、かつ、明度がしきい値Ref2より大きい領域に含まれる画素の明度をRデータ、GデータおよびBデータごとに加算してRデータ、GデータおよびBデータごとに累計を求める。この際、補正用データ決定部213は、明度を加算した画素の数をカウントする。補正用データ決定部213は、彩度がしきい値Ref1より小さく、かつ、明度がしきい値Ref2より大きい領域が複数あれば、複数の領域の全ての画素の明度を加算する。   Then, the correction data determination unit 213 determines whether the saturation of the region is smaller than the threshold value Ref1 and whether the brightness is larger than the threshold value Ref2 (step S82). The brightness is an average value of R data, G data, and B data of a pixel. Since 25 pixels are included in the area, 25 brightnesses are detected. Here, the average value is used as the brightness of the area. The correction data determination unit 213 advances the process to step S83 for areas where the saturation is smaller than the threshold value Ref1 and the lightness is greater than the threshold value Ref2, and advances the process to step S84 for the other areas. In step S83, the correction data determination unit 213 determines the brightness of the pixels included in the region where the saturation is less than the threshold value Ref1 and the brightness is greater than the threshold value Ref2, for each of the R data, the G data, and the B data. Addition is performed for each R data, G data, and B data. At this time, the correction data determination unit 213 counts the number of pixels to which the brightness is added. If there are a plurality of areas where the saturation is smaller than the threshold value Ref1 and the lightness is larger than the threshold value Ref2, the correction data determination unit 213 adds the brightness of all the pixels in the plurality of areas.

そして、補正用データ決定部213は、原稿1枚分の原稿データの入力が終了したか否かを判断する(ステップS84)。補正用データ決定部213は、原稿1枚分の原稿データの入力が終了していなければ処理をステップS81に戻し、終了していれば処理をステップS85に進める。   Then, the correction data determination unit 213 determines whether or not the input of the document data for one document has been completed (step S84). Correction data determination unit 213 returns the process to step S81 if the input of the original data for one original has not been completed, and advances the process to step S85 if the input has been completed.

ステップS85では、補正用データ決定部213は、ステップS83で明度を加算して求めた累計と、カウントした画素数とからRデータ、GデータおよびBデータごとに明度の平均値を算出する。これにより、原稿中の彩度がしきい値Ref1より小さく、かつ、明度がしきい値Ref2より大きい領域に含まれる画素のRデータ、GデータおよびBデータごとの明度の平均値が階調特性として検出される。このように、補正用データ決定部213は、原稿1枚分の原稿データが入力された後に、その原稿に対応した階調特性をRデータ、GデータおよびBデータごとに検出する。   In step S85, the correction data determination unit 213 calculates an average value of brightness for each of the R data, the G data, and the B data from the total obtained by adding the brightness in step S83 and the counted number of pixels. Thereby, the average value of the brightness for each of the R data, G data, and B data of the pixels included in the region where the saturation in the document is smaller than the threshold value Ref1 and the brightness is larger than the threshold value Ref2 is a gradation characteristic. Detected as As described above, the correction data determination unit 213 detects gradation characteristics corresponding to the original for each of the R data, the G data, and the B data after the original data for one original is input.

第3の変形例における階調特性検出処理では、原稿データのうち彩度がしきい値Ref1より小さく、かつ、明度がしきい値Ref2より大きい領域の画素の明度の平均値を階調特性とするので、光源159、レンズ163、読取部219を含む読取系の変動の影響を軽減した階調特性を検出することができる。   In the gradation characteristic detection processing in the third modification, the average value of the brightness of pixels in the document data in which the saturation is smaller than the threshold value Ref1 and the lightness is larger than the threshold value Ref2 is used as the gradation characteristic. Therefore, it is possible to detect gradation characteristics in which the influence of fluctuations in the reading system including the light source 159, the lens 163, and the reading unit 219 is reduced.

<階調特性検出処理の第4の変形例>
第4の変形例における階調特性検出処理では、原稿中で彩度が所定値以下で、かつ明度の変化が所定値以下の領域の明度の平均値を階調特性とするものである。彩度が所定値以下の領域は無彩色の領域であり、無彩色の領域で明度の変化が所定値以下の領域は白の下地である可能性の高い領域である。したがって、原稿中の彩度が所定値以下で、かつ明度の変化が所定値以下の領域は、原稿の白色の下地領域に相当する。
<Fourth Modification of Tone Characteristic Detection Processing>
In the gradation characteristic detection process in the fourth modified example, the average value of lightness in an area where the saturation is not more than a predetermined value and the change in lightness is not more than a predetermined value in the document is used as the gradation characteristic. A region where the saturation is equal to or less than a predetermined value is an achromatic region, and a region where the change in lightness is equal to or less than a predetermined value in the achromatic region is a region that is likely to be a white background. Therefore, an area in which the saturation in the document is equal to or less than a predetermined value and the change in brightness is equal to or less than the predetermined value corresponds to a white background area of the document.

第4の変形例における階調特性検出処理では、Rデータ、GデータおよびBデータの3つの原稿データから彩度を求めるため、補正用データ決定部213には、ライン間補正された原稿データが入力される必要がある。このため、図4に示したライン間補正部253は、A/D変換部251とシェーディング補正部252との間に配置され、ライン間補正部253で補正された原稿データが、シェーディング補正部252および補正用データ決定部213に入力される。また、処理対象とする領域を検出するため、補正用データ決定部213は、ラインバッファを備える。ここでは、領域のサイズを縦横それぞれ5画素の領域とする。このためラインバッファは5ライン分の記憶容量を備える。   In the gradation characteristic detection process in the fourth modification, since the saturation is obtained from the three original data of R data, G data, and B data, the correction data determination unit 213 receives the original data corrected between lines. Must be entered. For this reason, the interline correction unit 253 shown in FIG. 4 is arranged between the A / D conversion unit 251 and the shading correction unit 252, and the document data corrected by the interline correction unit 253 is the shading correction unit 252. And input to the correction data determination unit 213. In addition, the correction data determination unit 213 includes a line buffer in order to detect a region to be processed. Here, the size of the area is assumed to be an area of 5 pixels vertically and horizontally. For this reason, the line buffer has a storage capacity for five lines.

図12は、第4の変形例における階調特性検出処理の流れの一例を示す図である。第4の変形例における階調特性検出処理は、図6のステップS10で、補正用データ決定部213により実行される処理である。図12を参照して、補正用データ決定部213は、読取部219から原稿データが入力されると、ラインバッファに順に記憶する。そして、主走査方向に領域を順に選択して、選択した領域に含まれる全ての画素の彩度を検出する(ステップS91)。領域には25画素が含まれるので彩度も25個検出されるが、ここでは、最大値を領域の彩度とする。   FIG. 12 is a diagram illustrating an example of the flow of gradation characteristic detection processing in the fourth modification. The gradation characteristic detection process in the fourth modification is a process executed by the correction data determination unit 213 in step S10 of FIG. Referring to FIG. 12, when document data is input from reading unit 219, correction data determination unit 213 stores the data in order in a line buffer. Then, regions are sequentially selected in the main scanning direction, and the saturation of all the pixels included in the selected region is detected (step S91). Since 25 pixels are included in the region, 25 saturations are also detected. Here, the maximum value is the saturation of the region.

次に、補正用データ決定部213は、領域に含まれる画素の明度の最大値と最小値との差分であるダイナミックレンジDRを算出する(ステップS92)。明度は、Rデータ、GデータおよびGデータの平均値である。そして、補正用データ決定部213は、ステップS91で検出した彩度がしきい値Ref1より小さく、かつ、ダイナミックレンジDRがしきい値Ref3より小さいか否かを判断する(ステップS93)。補正用データ決定部213は、彩度がしきい値Ref1より小さく、かつ、ダイナミックレンジDRがしきい値Ref3より小さければ処理をステップS94に進め、そうでなければ処理をステップS95に進める。ステップS94では、補正用データ決定部213は、ステップS91で検出した彩度がしきい値Ref1より小さく、かつ、ダイナミックレンジDRがしきい値Ref3より小さい領域に含まれる画素の明度をRデータ、GデータおよびBデータごとに加算してRデータ、GデータおよびBデータごとに累計を求める。この際、補正用データ決定部213は、明度を加算した画素の数をカウントする。ステップS91からステップS95までの処理は、ラインバッファに記憶された原稿データから選択された領域の全てに対して実行される。   Next, the correction data determination unit 213 calculates a dynamic range DR that is a difference between the maximum value and the minimum value of the brightness of the pixels included in the region (step S92). The brightness is an average value of R data, G data, and G data. Then, the correction data determination unit 213 determines whether or not the saturation detected in step S91 is smaller than the threshold value Ref1 and the dynamic range DR is smaller than the threshold value Ref3 (step S93). If the saturation is smaller than threshold value Ref1 and dynamic range DR is smaller than threshold value Ref3, correction data determination unit 213 proceeds to step S94, and otherwise proceeds to step S95. In step S94, the correction data determination unit 213 determines the brightness of the pixels included in the region in which the saturation detected in step S91 is smaller than the threshold value Ref1 and the dynamic range DR is smaller than the threshold value Ref3 as R data, Addition is performed for each G data and B data, and a total is obtained for each of R data, G data, and B data. At this time, the correction data determination unit 213 counts the number of pixels to which the brightness is added. The processing from step S91 to step S95 is executed for all the areas selected from the document data stored in the line buffer.

そして、補正用データ決定部213は、原稿1枚分の原稿データの入力が終了したか否かを判断する(ステップS95)。補正用データ決定部213は、原稿1枚分の原稿データの入力が終了していなければ処理をステップS91に戻し、終了していれば処理をステップS96に進める。処理をステップS91に戻す場合、補正用データ決定部213は、次の5ラインがラインバッファに記憶されたのち、上述した処理を実行する。   Then, the correction data determination unit 213 determines whether or not the input of document data for one document has been completed (step S95). The correction data determination unit 213 returns the process to step S91 if the input of the original data for one original has not been completed, and advances the process to step S96 if completed. When returning the processing to step S91, the correction data determination unit 213 executes the above-described processing after the next five lines are stored in the line buffer.

ステップS96では、補正用データ決定部213は、ステップS94で明度をRデータ、GデータおよびBデータごとに加算して求めたRデータ、GデータおよびBデータごとの累計と、カウントした画素数とからRデータ、GデータおよびBデータごとに明度の平均値を算出する。これにより、原稿中で、彩度が所定値以下で、かつ明度の変化が所定値以下の領域のRデータ、GデータおよびBデータごとの明度の平均値が階調特性として検出される。このように、補正用データ決定部213は、原稿1枚分の原稿データが入力された後に、その原稿に対応したRデータ、GデータおよびBデータごとの階調特性を検出する。   In step S96, the correction data determination unit 213 adds the brightness for each of the R data, G data, and B data obtained in step S94, and accumulates the R data, G data, and B data, and the counted number of pixels. The average value of brightness is calculated for each of R data, G data, and B data. As a result, an average value of brightness for each of the R data, G data, and B data in a region where the saturation is not more than a predetermined value and the change in brightness is not more than a predetermined value in the document is detected as the gradation characteristic. As described above, the correction data determination unit 213 detects gradation characteristics for each of R data, G data, and B data corresponding to a document after the document data for one document is input.

第4の変形例における階調特性検出処理では、原稿データのうち彩度が所定値以下で、かつ明度の変化が所定値以下の領域の明度の平均値を階調特性とするので、光源159、レンズ163、読取部219を含む読取系の変動の影響を軽減した階調特性を検出することができる。   In the gradation characteristic detection process according to the fourth modification, the light source 159 has the lightness 159 because the average value of the lightness in the area of the document data in which the saturation is not more than a predetermined value and the change in lightness is not more than the predetermined value is used. In addition, it is possible to detect gradation characteristics in which the influence of fluctuations in the reading system including the lens 163 and the reading unit 219 is reduced.

以上説明したように第1の実施の形態におけるMFP100は、複数の補正用データを予め記憶するROM211と、読取部219が反射率の予め定められたシェーディング板156で反射した光を受光して出力するシェーディング板データに基づいて、複数の補正用データのうちから基準補正用データおよび12レベルの変動補正用データを選択する補正用データ選択部231と、読取部219が原稿で反射した光を受光して出力する原稿データに基づいて、基準補正用データおよび12レベルの変動補正用データからいずれか1つを選択して実行補正データに設定する階調特性比較部233およびセレクタ232と、読取部219が原稿で反射した光を受光して出力する原稿データを、設定された実行補正用データを用いて補正するシェーディング補正部252とを備える。このため、読取部219がシェーディング板156で反射した光を受光して出力するシェーディング板データに基づいて、基準補正用データおよび12レベルの変動補正用データが選択され、読取部219が原稿で反射した光を受光して出力する原稿データに基づいて、選択された基準補正用データおよび12レベルの変動補正用データのうちからいずれか1つが選択されて実行補正データに設定される。このため、光源159の照射する光の強度が時間の経過に伴って変化しても、光源159の照射する光の強度に応じた実行補正用データが、複数の補正用データのうちから選択され、その実行補正用データを用いて、読取部219が原稿で反射した光を受光して出力する原稿データが補正される。その結果、原稿で反射した光を受光して得られるデータから原稿に照射される光の強度の変化による影響を除去することができる。   As described above, the MFP 100 according to the first embodiment receives and outputs the light reflected by the ROM 211 that stores a plurality of correction data in advance and the shading plate 156 having a predetermined reflectance by the reading unit 219. A correction data selection unit 231 for selecting reference correction data and 12-level fluctuation correction data from a plurality of correction data based on the shading plate data to be received, and light reflected by the document by the reading unit 219 A gradation characteristic comparison unit 233 and a selector 232 for selecting any one of the reference correction data and the 12-level fluctuation correction data and setting the execution correction data based on the original data to be output, and the reading unit The document data that the 219 receives and reflects the light reflected from the document is corrected using the set execution correction data. And a loading correction unit 252. For this reason, the reference correction data and the 12-level fluctuation correction data are selected based on the shading plate data that the reading unit 219 receives and outputs the light reflected by the shading plate 156, and the reading unit 219 reflects the original. One of the selected reference correction data and 12-level fluctuation correction data is selected and set as execution correction data based on the original data output by receiving the received light. Therefore, even if the intensity of light emitted from the light source 159 changes with time, execution correction data corresponding to the intensity of light emitted from the light source 159 is selected from the plurality of correction data. Using the execution correction data, the document data output by the reading unit 219 receiving and reflecting the light reflected by the document is corrected. As a result, it is possible to remove the influence due to the change in the intensity of the light applied to the original from the data obtained by receiving the light reflected by the original.

また、MFP100は、シェーディング板データに基づいて決定された基準補正用データ(補正用データ(0))が、原稿データに基づいて変更される。このため、光源159の照射する光の強度が時間の経過に伴って変化しても、光源159の照射する光の強度に応じた変動補正用データを用いて、原稿データが補正される。その結果、原稿で反射した光を受光して得られる原稿データから原稿に照射される光の強度の変化による影響を正確に除去することができる。   In MFP 100, the reference correction data (correction data (0)) determined based on the shading board data is changed based on the document data. For this reason, even if the intensity of the light emitted from the light source 159 changes with time, the document data is corrected using the fluctuation correction data corresponding to the intensity of the light emitted from the light source 159. As a result, it is possible to accurately remove the influence due to the change in the intensity of the light applied to the original from the original data obtained by receiving the light reflected by the original.

また、MFP100は、シェーディング板データと予め定められた目標値とから基準補正用データを生成し、基準補正用データと予め定められた係数とから12レベルの変動補正用データを生成する補正用データ選択部231とを含む。このため、補正用データを容易に生成することができる。   Further, MFP 100 generates reference correction data from shading plate data and a predetermined target value, and correction data that generates 12-level fluctuation correction data from the reference correction data and a predetermined coefficient. And a selection unit 231. For this reason, the correction data can be easily generated.

<第2の実施の形態>
次に第2の実施の形態におけるMFPについて説明する。第2の実施の形態におけるMFPは、第1の実施の形態におけるMFP100の補正用データ決定部213に変更を加えたものである。その他の構成は第1の実施の形態におけるMFP100と同様なので、ここでは説明を繰り返さない。
<Second Embodiment>
Next, an MFP according to the second embodiment will be described. The MFP in the second embodiment is obtained by changing the correction data determination unit 213 of the MFP 100 in the first embodiment. Since other configurations are similar to those of MFP 100 in the first embodiment, description thereof will not be repeated here.

図13は、第2の実施の形態におけるMFPの補正用データ決定部の機能の概要を示す機能ブロック図である。図13を参照して、補正用データ決定部213Aは、図5に示した第1の実施の形態における補正用データ決定部213と異なる点は、タイマ235および制限部236が追加された点と、セレクタ232Aが変更された点である。   FIG. 13 is a functional block diagram showing an outline of functions of the correction data determination unit of the MFP according to the second embodiment. Referring to FIG. 13, correction data determination unit 213A is different from correction data determination unit 213 in the first embodiment shown in FIG. 5 in that timer 235 and restriction unit 236 are added. The selector 232A is changed.

タイマ235は、光源159が点灯してからの経過時間を計時する。制限部236は、タイマ235で計時された時間が入力され、入力される時間に応じて、セレクタ232Aで選択可能な補正用データを制限する。ここでは、最初のT分までは、レベルが−2〜+2の補正用データの選択を可能とし、T分から2T分までは、レベルが−2〜+4までの補正用データの選択を可能とし、2T分経過後は全てのレベルの補正用データの選択を可能とする。光源159の照射する光の強度の変化は、時間の経過とともに減少し、所定時間経過すると所定の値で安定することが知られている。したがって、経過時間により光源159の照射する光の強度の変化する幅がおおよそ予測できる。時間の経過とともに選択可能な補正用データを制限することで、階調特性が誤検出されて補正用データが誤って選択されるのを防止することができる。   The timer 235 measures the elapsed time since the light source 159 is turned on. The restriction unit 236 receives the time counted by the timer 235, and restricts correction data that can be selected by the selector 232A according to the inputted time. Here, it is possible to select correction data with a level of −2 to +2 until the first T minutes, and it is possible to select correction data with a level of −2 to +4 from T minutes to 2T, After 2T, all levels of correction data can be selected. It is known that the change in intensity of light emitted from the light source 159 decreases with time and stabilizes at a predetermined value when a predetermined time elapses. Therefore, the width of change in the intensity of light emitted from the light source 159 can be roughly predicted according to the elapsed time. By restricting the correction data that can be selected with the passage of time, it is possible to prevent erroneous detection of gradation characteristics due to erroneous detection of gradation characteristics.

セレクタ232Aは、階調特性比較部233からレベルが入力されるが、制限部236から入力されるレベルの選択制限を優先して、選択する補正用データを決定する。たとえば、制限部236によりレベルが−2〜+4の範囲に制限されていれば、階調特性比較部233からレベルLevel5が入力されたとしても、制限されたレベルの最大のレベル+4を選択し、補正用データ(4)を選択することになる。   The selector 232 </ b> A receives the level from the gradation characteristic comparison unit 233, but determines the correction data to be selected with priority given to the level selection restriction input from the restriction unit 236. For example, if the level is limited to a range of −2 to +4 by the limiting unit 236, even if the level Level5 is input from the gradation characteristic comparison unit 233, the maximum level +4 of the limited level is selected. The correction data (4) is selected.

図14は、第2の実施の形態におけるMFPで実行される読取処理の流れの一例を示すフローチャートである。図6に示した第1の実施の形態におけるMFPで実行される読取処理と異なる点は、ステップS03とステップS04との間にステップS03Aが追加された点と、ステップS11Aが変更された点である。その他のステップで実行される処理は同じなのでここでは説明を繰り返さない。ステップS03Aでは、補正用データ決定部213Aは、タイマ235をスタートさせて、タイマ235に計時を開始させる。ここでは、タイマ235が計時した時間をタイマ値tという。   FIG. 14 is a flowchart illustrating an example of the flow of reading processing executed by the MFP according to the second embodiment. The difference from the reading process executed by the MFP in the first embodiment shown in FIG. 6 is that step S03A is added between step S03 and step S04, and step S11A is changed. is there. Since the processes executed in other steps are the same, the description will not be repeated here. In step S03A, correction data determination unit 213A starts timer 235 and causes timer 235 to start measuring time. Here, the time counted by the timer 235 is referred to as a timer value t.

図15は、図14のステップS11Aで実行される補正用データ決定処理の流れの一例を示すフローチャートである。図15を参照して、図8に示した補正用データ決定処理と異なる点は、ステップS25とステップS26との間に、ステップS31〜ステップS35が追加された点である。その他のステップで実行される処理は同じなのでここでは説明を繰り返さない。   FIG. 15 is a flowchart showing an exemplary flow of the correction data determination process executed in step S11A of FIG. Referring to FIG. 15, the difference from the correction data determination process shown in FIG. 8 is that steps S31 to S35 are added between steps S25 and S26. Since the processes executed in other steps are the same, the description will not be repeated here.

補正用データ決定部213Aは、ステップS31で、タイマ値tをしきい値Tおよびしきい値2Tと比較する。補正用データ決定部213Aは、タイマ値tがしきい値Tより小さければ処理をステップS32に進め、タイマ値tがしきい値T以上かつ2Tより小さければ処理をステップS34に進め、タイマ値tがしきい値2T以上であれば処理をステップS26に進める。   Correction data determination unit 213A compares timer value t with threshold value T and threshold value 2T in step S31. The correction data determination unit 213A advances the process to step S32 if the timer value t is smaller than the threshold value T, and advances the process to step S34 if the timer value t is greater than or equal to the threshold value T and smaller than 2T. If the threshold value is 2T or more, the process proceeds to step S26.

補正用データ決定部213Aは、ステップS32では、ステップS25で求めたレベルLevelが+2を超えるか否かを判断し、超えるならば処理をステップS33に進め、超えなければ処理をステップS26に進める。補正用データ決定部213Aは、ステップS33では、レベルLevelを+2に設定して、処理をステップS26に進める。   In step S32, the correction data determination unit 213A determines whether or not the level Level obtained in step S25 exceeds +2. If so, the process proceeds to step S33, and if not, the process proceeds to step S26. In step S33, the correction data determination unit 213A sets the level Level to +2, and advances the process to step S26.

補正用データ決定部213Aは、ステップS34では、ステップS25で求めたレベルLevelが+4を超えるか否かを判断し、超えるならば処理をステップS35に進め、超えなければ処理をステップS26に進める。補正用データ決定部213Aは、ステップS35では、レベルLevelを+4に設定して、処理をステップS26に進める。   In step S34, the correction data determination unit 213A determines whether or not the level Level obtained in step S25 exceeds +4. If so, the process proceeds to step S35, and if not, the process proceeds to step S26. In step S35, the correction data determination unit 213A sets the level Level to +4 and advances the process to step S26.

このため、補正用データ決定部213Aは、タイマ値tがしきい値Tより小さければ選択可能な補正用データのレベルを−2〜+2に制限し、タイマ値tがしきい値T以上かつ2Tより小さければ選択可能な補正用データのレベルを−2〜+4に制限し、タイマ値tがしきい値2T以上であれば全てのレベルの補正用データの選択を可能とする。   Therefore, the correction data determining unit 213A limits the selectable correction data level to −2 to +2 if the timer value t is smaller than the threshold value T, and the timer value t is equal to or greater than the threshold value T and 2T. If it is smaller, the level of selectable correction data is limited to -2 to +4. If the timer value t is equal to or greater than the threshold value 2T, correction data of all levels can be selected.

以上説明したように第2の実施の形態におけるMFP100は、光源159が光を照射してからの経過時間を計時するタイマ235を備え、光源159が光を照射してからの経過時間に基づいて、選択可能な変動補正用データを制限される。このため、読取部219が原稿で反射した光を受光して出力する原稿データに基づいて変更される変動補正用データが、誤った値に変更されるのを防止することができる。   As described above, MFP 100 according to the second embodiment includes timer 235 that measures the elapsed time since light source 159 has emitted light, and based on the elapsed time since light source 159 has emitted light. The selectable variation correction data is limited. For this reason, it is possible to prevent the fluctuation correction data that is changed based on the document data output by receiving the light reflected by the document from the reading unit 219 from being changed to an incorrect value.

<第3の実施の形態>
次に第3の実施の形態におけるMFPについて説明する。第3の実施の形態におけるMFPは、第1の実施の形態におけるMFP100の補正用データ決定部213に変更を加えたものである。その他の構成は第1の実施の形態におけるMFP100と同様なので、ここでは説明を繰り返さない。
<Third Embodiment>
Next, an MFP according to the third embodiment will be described. The MFP according to the third embodiment is obtained by changing the correction data determination unit 213 of the MFP 100 according to the first embodiment. Since other configurations are similar to those of MFP 100 in the first embodiment, description thereof will not be repeated here.

図16は、第3の実施の形態におけるMFPの補正用データ決定部の機能の概要を示す機能ブロック図である。図16を参照して、補正用データ決定部213Bは、図5に示した第1の実施の形態における補正用データ決定部213と異なる点は、背景板階調特性検出部237および比較部238が追加された点と、セレクタ232Bが変更された点である。   FIG. 16 is a functional block diagram illustrating an outline of functions of the correction data determination unit of the MFP according to the third embodiment. Referring to FIG. 16, correction data determination unit 213B is different from correction data determination unit 213 in the first embodiment shown in FIG. 5 in that background plate gradation characteristic detection unit 237 and comparison unit 238. Are added and the selector 232B is changed.

背景板階調特性検出部237は、A/D変換部251が出力するデータのうち、読取部219が背景板154で反射した光を受光し出力するデータ(以下「背景板データ」という)が入力される。背景板階調特性検出部237は、背景板データから階調特性を検出し、検出した階調特性を比較部238に出力する。背景板階調特性検出部237は、階調特性検出部234が原稿データから階調特性を検出したのと同じ処理で、背景板データから階調特性を検出するようにすればよい。なお、階調特性は、背景板データの平均値としてもよい。ADF111は、原稿を連続して搬送する場合、先の原稿と後の原稿との間に所定の間隔を空けて搬送する。この所定の間隔が存在するので、原稿読取位置Lを先の原稿が通過してから後の原稿が原稿読取位置Lに到達するまでの間に、読取部219は、背景板154で反射した光を受光する。したがって、背景板階調特性検出部237は、原稿が原稿読取位置Lを通過する直前に背景板データが入力される。背景板階調特性検出部237は、原稿が原稿読取位置Lを通過する直前に背景板データが入力されるので、原稿それぞれに対応して階調特性を検出する。   Of the data output from the A / D conversion unit 251, the background plate gradation characteristic detection unit 237 receives data output by receiving light reflected by the background plate 154 (hereinafter referred to as “background plate data”). Entered. The background plate gradation characteristic detection unit 237 detects the gradation characteristic from the background plate data and outputs the detected gradation characteristic to the comparison unit 238. The background plate gradation characteristic detection unit 237 may detect the gradation characteristic from the background plate data by the same process as the gradation characteristic detection unit 234 detects the gradation characteristic from the document data. The gradation characteristic may be an average value of the background plate data. When the ADF 111 continuously conveys the document, the ADF 111 conveys the document with a predetermined interval between the previous document and the subsequent document. Since the predetermined interval exists, the reading unit 219 reflects the light reflected by the background plate 154 between the time when the previous document passes through the document reading position L and the time when the subsequent document reaches the document reading position L. Receive light. Therefore, background plate data is input to the background plate gradation characteristic detection unit 237 immediately before the document passes the document reading position L. Since the background plate data is input immediately before the document passes the document reading position L, the background plate gradation property detection unit 237 detects the gradation property corresponding to each document.

比較部238は、背景板階調特性検出部237で検出された階調特性を、基準値Refとの比Vを算出する。比較部238は、算出した比Vに応じて、セレクタ232Bで選択可能な補正用データを制限する。ここでは、比Vがしきい値Th1より大きければレベルが−2〜+2の補正用データの選択を可能とし、比Vがしきい値Th1以下かつしきい値Th2より大きければレベルが−2〜+4までの補正用データの選択を可能とし、比Vがしきい値Th2以下ならば全てのレベルの補正用データの選択を可能とする。光源159の照射する光の強度の変化は、時間の経過とともに減少し、所定時間経過すると所定の値で安定することが知られている。このため、背景板データから検出される階調特性Data0は次第に小さな値となる。   The comparison unit 238 calculates the ratio V of the gradation characteristic detected by the background plate gradation characteristic detection unit 237 and the reference value Ref. The comparison unit 238 limits correction data that can be selected by the selector 232B according to the calculated ratio V. Here, if the ratio V is greater than the threshold value Th1, it is possible to select correction data having a level of −2 to +2. Correction data up to +4 can be selected, and correction data for all levels can be selected if the ratio V is equal to or less than the threshold value Th2. It is known that the change in intensity of light emitted from the light source 159 decreases with time and stabilizes at a predetermined value when a predetermined time elapses. For this reason, the gradation characteristic Data0 detected from the background plate data gradually becomes a small value.

セレクタ232Bは、階調特性比較部233からレベルが入力されるが、比較部238から入力されるレベルの選択制限を優先して、選択する補正用データを決定する。たとえば、比較部238によりレベルが−2〜+4までの範囲に制限されていれば、階調特性比較部233からレベルLevel5が入力されたとしても、制限されたレベルの最大のレベル+4を選択し、補正用データ(4)を選択することになる。   The selector 232B receives the level from the gradation characteristic comparison unit 233, and determines the correction data to be selected with priority given to the level selection restriction input from the comparison unit 238. For example, if the level is limited to the range of −2 to +4 by the comparison unit 238, even if the level Level5 is input from the gradation characteristic comparison unit 233, the maximum level +4 of the limited level is selected. The correction data (4) is selected.

図17は、第3の実施の形態におけるMFPの補正用データ決定部で実行される補正用データ決定処理の流れの一例を示すフローチャートである。この補正用データ決定処理は、図6のステップS11で実行される。図17を参照して、図8に示した補正用データ決定処理と異なる点は、ステップS21の前にステップS41〜ステップS43が追加された点、ステップS25とステップS26との間に、ステップS45〜ステップS49が追加された点である。その他のステップで実行される処理は同じなのでここでは説明を繰り返さない。   FIG. 17 is a flowchart illustrating an example of the flow of correction data determination processing executed by the correction data determination unit of the MFP in the third embodiment. This correction data determination process is executed in step S11 of FIG. Referring to FIG. 17, the difference from the correction data determination process shown in FIG. 8 is that step S41 to step S43 are added before step S21, and step S45 is between step S25 and step S26. Step S49 is added. Since the processes executed in other steps are the same, the description will not be repeated here.

補正用データ決定部213Bは、ステップS41で、背景板データから階調特性を検出する。そして、補正用データ決定部213Bは、検出した階調特性を変数Data0に設定する(ステップS42)。さらに、補正用データ決定部213Bは、階調特性Data0と基準値Refとの比Vを算出する(ステップS43)。   In step S41, the correction data determination unit 213B detects gradation characteristics from the background plate data. Then, the correction data determination unit 213B sets the detected gradation characteristic to the variable Data0 (step S42). Further, the correction data determination unit 213B calculates a ratio V between the gradation characteristic Data0 and the reference value Ref (step S43).

ステップS45において、補正用データ決定部213Bは、比Vをしきい値Th1およびしきい値Th2と比較する。補正用データ決定部213Bは、比Vがしきい値Th1より大きければ処理をステップS46に進め、比Vがしきい値Th2より大きくかつしきい値Th1以下であれば処理をステップS48に進め、比Vがしきい値Th2以下であれば処理をステップS26に進める。   In step S45, the correction data determination unit 213B compares the ratio V with the threshold value Th1 and the threshold value Th2. The correction data determination unit 213B proceeds to step S46 if the ratio V is greater than the threshold value Th1, and proceeds to step S48 if the ratio V is greater than the threshold value Th2 and less than or equal to the threshold value Th1. If the ratio V is equal to or less than the threshold value Th2, the process proceeds to step S26.

補正用データ決定部213Bは、ステップS46では、ステップS25で求めたレベルLevelが+2を超えるか否かを判断し、超えるならば処理をステップS47に進め、超えなければ処理をステップS26に進める。補正用データ決定部213Bは、ステップS47では、レベルLevelを+2に設定して、処理をステップS26に進める。   In step S46, the correction data determination unit 213B determines whether or not the level Level obtained in step S25 exceeds +2. If so, the process proceeds to step S47, and if not, the process proceeds to step S26. In step S47, the correction data determination unit 213B sets the level Level to +2, and advances the process to step S26.

補正用データ決定部213Bは、ステップS48では、ステップS25で求めたレベルLevelが+4を超えるか否かを判断し、超えるならば処理をステップS49に進め、超えなければ処理をステップS26に進める。補正用データ決定部213Bは、ステップS49では、レベルLevelを+4に設定して、処理をステップS26に進める。   In step S48, the correction data determination unit 213B determines whether or not the level Level obtained in step S25 exceeds +4. If so, the process proceeds to step S49. If not, the process proceeds to step S26. In step S49, the correction data determination unit 213B sets the level Level to +4 and advances the process to step S26.

このため、補正用データ決定部213Bは、比Vがしきい値Th1より大きければ選択可能な補正用データのレベルを−2〜+2に制限し、比Vがしきい値Th2より大きくかつしきい値Th1以下であれば選択可能な補正用データのレベルを−2〜+4に制限し、比Vがしきい値Th2以下であれば全てのレベルの補正用データの選択を可能とする。   Therefore, the correction data determination unit 213B limits the level of selectable correction data to −2 to +2 if the ratio V is greater than the threshold value Th1, and the ratio V is greater than the threshold value Th2 and the threshold value. If the value is equal to or less than Th1, the level of selectable correction data is limited to -2 to +4. If the ratio V is equal to or less than the threshold value Th2, correction data for all levels can be selected.

以上説明したように第3の実施の形態におけるMFP100は、原稿を原稿読取位置Lに搬送するADF111と、光源159に対向する位置に固定して設けられた背景板154とを備え、原稿が原稿読取位置Lを通過する前に読取部219が背景板154で反射した光を受光して出力する背景板データに基づいて、変更可能な補正用データの範囲を制限する比較部238とを備える。背景板の反射率は予め定まっているので、光源159が照射する光の強度と背景板データとは比例する。原稿が原稿読取位置Lを通過する前の背景板データに基づいて選択可能な変動補正用データを制限するので、原稿データに基づいて変更される変動補正用データが、誤った値に変更されるのを防止することができる。   As described above, MFP 100 according to the third embodiment includes ADF 111 that transports a document to document reading position L and background plate 154 that is fixedly provided at a position facing light source 159, and the document is a document. A comparison unit 238 is provided that limits the range of correction data that can be changed based on background plate data that is received by the reading unit 219 and received by the reading unit 219 before passing the reading position L. Since the reflectance of the background plate is determined in advance, the intensity of light emitted from the light source 159 is proportional to the background plate data. Since the variation correction data that can be selected based on the background plate data before the document passes the document reading position L is limited, the variation correction data that is changed based on the document data is changed to an incorrect value. Can be prevented.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

<付記>
(1) 前記照射手段が光を照射してからの経過時間を計時する計時手段をさらに備え、
前記選択手段は、前記計時手段により計時された経過時間に基づいて、前記複数の補正用データのうちから選択可能な基準補正用データおよび少なくとも1つの変動補正用データを制限する制限手段を含む、請求項7に記載の画像読取装置。
(2) 原稿を予め定められた読取位置に搬送する原稿搬送手段と、
前記照射手段に対向する位置に固定して設けられた反射板とをさらに備え、
前記選択手段は、原稿が前記読取位置を通過する前に前記光電変換手段が前記反射板で反射した光を受光して出力するデータに基づいて、前記複数の補正用データのうちから選択可能な基準補正用データおよび少なくとも1つの変動補正用データを制限する制限手段とを含む、請求項7に記載の画像読取装置。
(3) 前記設定手段は、前記光電変換手段が出力する第1のデータと、前記光電変換手段が出力する第2のデータとを比較する原稿データ比較手段を含み、前記原稿データ比較手段による比較結果に基づいて、前記選択手段により選択された基準補正用データおよび少なくとも1つの変動補正用データのうちから1つを選択する、請求項7に記載の画像読取装置。
(4) 前記光電変換手段は、分光感度が互いに異なるフィルタを有する複数のラインセンサを含み、
前記選択手段は、前記複数のラインセンサそれぞれが前記基準板で反射した光を受光して出力するデータに基づいて、前記複数の補正用データのうちから基準補正用データおよび少なくとも1つの変動補正用データを前記複数のラインセンサごとに選択し、
前記設定手段は、前記複数のラインセンサそれぞれが原稿で反射した光を受光して出力するデータに基づいて、前記複数のラインセンサごとに前記基準補正用データおよび前記少なくとも1つの変動補正用データからいずれか1つを選択して実行補正データに設定し、
前記補正手段は、前記複数のラインセンサそれぞれが原稿で反射した光を受光して出力するデータを、前記複数のラインセンサごとに設定された実行補正用データを用いて補正する、請求項7に記載の画像読取装置。
<Appendix>
(1) It further comprises time measuring means for measuring an elapsed time since the irradiation means irradiates light,
The selection means includes restriction means for restricting reference correction data and at least one variation correction data that can be selected from the plurality of correction data based on the elapsed time measured by the time measurement means. The image reading apparatus according to claim 7.
(2) Document conveying means for conveying the document to a predetermined reading position;
A reflection plate fixedly provided at a position facing the irradiation means;
The selection means can select from among the plurality of correction data based on data output by the photoelectric conversion means receiving and reflecting the light reflected by the reflecting plate before the document passes through the reading position. The image reading apparatus according to claim 7, further comprising a restriction unit that restricts the reference correction data and the at least one variation correction data.
(3) The setting unit includes a document data comparison unit that compares the first data output from the photoelectric conversion unit and the second data output from the photoelectric conversion unit, and the comparison by the document data comparison unit is performed. The image reading apparatus according to claim 7, wherein one of the reference correction data and the at least one variation correction data selected by the selection unit is selected based on the result.
(4) The photoelectric conversion means includes a plurality of line sensors having filters having different spectral sensitivities,
The selection means is configured to receive reference correction data and at least one variation correction data out of the plurality of correction data, based on data output by receiving light reflected by the reference plate by each of the plurality of line sensors. Select data for each of the plurality of line sensors,
The setting means is configured to calculate the reference correction data and the at least one variation correction data for each of the plurality of line sensors based on data output by receiving light reflected from the document by each of the plurality of line sensors. Select one of them and set it as execution correction data.
The correction means corrects data output by receiving and reflecting light reflected from the original by each of the plurality of line sensors using execution correction data set for each of the plurality of line sensors. The image reading apparatus described.

本発明の第1の実施の形態における画像読取装置を備えたMFPの斜視図である。1 is a perspective view of an MFP including an image reading apparatus according to a first embodiment of the present invention. 画像読取装置の内部構成の概略を示す図である。2 is a diagram illustrating an outline of an internal configuration of an image reading apparatus. FIG. MFPの回路構成の一例を示すブロック図である。2 is a block diagram illustrating an example of a circuit configuration of an MFP. FIG. 画像処理部の機能の概要を示す機能ブロック図である。It is a functional block diagram which shows the outline | summary of the function of an image process part. 補正用データ決定部の機能の概要を示す機能ブロック図である。It is a functional block diagram which shows the outline | summary of the function of the correction data determination part. 第1の実施の形態におけるMFPで実行される読取処理の流れの一例を示すフローチャートである。6 is a flowchart illustrating an example of a flow of a reading process executed by the MFP according to the first embodiment. 図6のステップS10で実行される階調特性検出処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the gradation characteristic detection process performed by step S10 of FIG. 図6のステップS11で実行される補正用データ決定処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the data determination process for correction | amendment performed by step S11 of FIG. 第1の変形例における階調特性検出処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the gradation characteristic detection process in a 1st modification. 第2の変形例における階調特性検出処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the gradation characteristic detection process in a 2nd modification. 第3の変形例における階調特性検出処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the gradation characteristic detection process in a 3rd modification. 第4の変形例における階調特性検出処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the gradation characteristic detection process in a 4th modification. 第2の実施の形態におけるMFPの補正用データ決定部の機能の概要を示す機能ブロック図である。FIG. 10 is a functional block diagram illustrating an outline of functions of a correction data determination unit of an MFP according to a second embodiment. 第2の実施の形態におけるMFPで実行される読取処理の流れの一例を示すフローチャートである。10 is a flowchart illustrating an example of a flow of a reading process executed by the MFP according to the second embodiment. 図14のステップS11Aで実行される補正用データ決定処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the data determination process for correction | amendment performed by FIG.14 S11A. 第3の実施の形態におけるMFPの補正用データ決定部の機能の概要を示す機能ブロック図である。FIG. 10 is a functional block diagram illustrating an outline of functions of a correction data determination unit of an MFP according to a third embodiment. 第3の実施の形態におけるMFPの補正用データ決定部で実行される補正用データ決定処理の流れの一例を示すフローチャートである。14 is a flowchart illustrating an example of a flow of correction data determination processing executed by a correction data determination unit of an MFP according to a third embodiment.

符号の説明Explanation of symbols

100 MFP、110 画像読取装置、120 本体部、121 画像形成装置、150 原稿、154 背景板、155 原稿台、156 シェーディング板、157 通紙ガイド、158 スライダ、159 光源、160 反射部材、161,162 反射ミラー、162 レンズ、163 レンズ、201 タイミングローラ対、202 ローラ対、203 上部規制板、205 原稿台、213,213A,213B 補正用データ決定部、215 画像処理部、217 光源制御部、219 読取部、221 画像形成部、223 スライダ制御部、224 モータ、225 原稿搬送制御部、227 操作部、229 バス、231 補正用データ選択部、232,232A,232B セレクタ、233 階調特性比較部、234 階調特性検出部、235 タイマ、236 制限部、237 背景板階調特性検出部、238 比較部、251 A/D変換部、252 シェーディング補正部、253 ライン間補正部、254 色収差補正部、255 ノイズ検出処理部、256 プリンタインタフェース。   DESCRIPTION OF SYMBOLS 100 MFP, 110 Image reading apparatus, 120 Main body part, 121 Image forming apparatus, 150 Document, 154 Background plate, 155 Document base, 156 Shading plate, 157 Paper feed guide, 158 Slider, 159 Light source, 160 Reflective member, 161, 162 Reflection mirror, 162 lens, 163 lens, 201 timing roller pair, 202 roller pair, 203 upper restriction plate, 205 document table, 213, 213A, 213B correction data determination unit, 215 image processing unit, 217 light source control unit, 219 reading , 221 image forming unit, 223 slider control unit, 224 motor, 225 document conveyance control unit, 227 operation unit, 229 bus, 231 correction data selection unit, 232, 232A, 232B selector, 233 gradation characteristic comparison unit, 234 Gradation characteristic detection 235 timer, 236 limiting unit, 237 background plate tone characteristic detection unit, 238 comparison unit, 251 A / D conversion unit, 252 shading correction unit, 253 interline correction unit, 254 chromatic aberration correction unit, 255 noise detection processing unit, 256 Printer interface.

Claims (7)

読取対象に光を照射する照射手段と、
前記読取対象で反射した光を受光し、データを出力する光電変換手段と、
前記光電変換手段が反射率の予め定められた基準板で反射した光を受光して出力するデータに基づいて、補正用データを決定する補正用データ決定手段と、
前記光電変換手段が原稿で反射した光を受光して出力するデータを、前記補正用データを用いて補正する補正手段と、
前記光電変換手段が原稿で反射した光を受光して出力するデータに基づいて、前記補正手段で補正に用いる補正用データを変更する変更手段とを備えた、画像読取装置。
Irradiating means for irradiating the reading object with light;
Photoelectric conversion means for receiving light reflected by the reading object and outputting data;
Correction data determining means for determining correction data based on data received by the photoelectric conversion means reflected by a reference plate having a predetermined reflectance and output;
Correction means for receiving and outputting the light reflected by the original by the photoelectric conversion means using the correction data; and
An image reading apparatus comprising: a changing unit configured to change correction data used for correction by the correction unit based on data output by the photoelectric conversion unit receiving light reflected from the document.
前記照射手段が光を照射してからの経過時間を計時する計時手段をさらに備え、
前記変更手段は、前記計時手段により計時された経過時間に基づいて、変更可能な前記補正用データの範囲を制限する制限手段を含む、請求項1に記載の画像読取装置。
Further comprising a time measuring means for measuring an elapsed time since the irradiation means irradiates light,
The image reading apparatus according to claim 1, wherein the changing unit includes a limiting unit that limits a range of the correction data that can be changed based on an elapsed time counted by the timing unit.
原稿を予め定められた読取位置に搬送する原稿搬送手段と、
前記照射手段に対向する位置に固定して設けられた反射板とをさらに備え、
前記変更手段は、原稿が前記読取位置を通過する前に前記光電変換手段が前記反射板で反射した光を受光して出力するデータに基づいて、変更可能な前記補正用データの範囲を制限する制限手段とを含む、請求項1に記載の画像読取装置。
A document conveying means for conveying the document to a predetermined reading position;
A reflection plate fixedly provided at a position facing the irradiation means;
The changing unit limits the range of the correction data that can be changed based on data output by the photoelectric conversion unit receiving and reflecting the light reflected by the reflecting plate before the document passes through the reading position. The image reading apparatus according to claim 1, further comprising a limiting unit.
前記補正用データ決定手段は、前記光電変換手段が前記基準板で反射した光を受光して出力するデータと、予め定められた目標値とから基準補正用データを生成する基準補正用データ生成手段と、
前記基準補正用データと予め定められた係数とから少なくとも1つの変動補正用データを生成する変動補正用データ生成手段とを含む、請求項1に記載の画像読取装置。
The correction data determination means is a reference correction data generation means for generating reference correction data from data output by receiving light reflected from the reference plate by the photoelectric conversion means and a predetermined target value. When,
The image reading apparatus according to claim 1, further comprising a fluctuation correction data generation unit that generates at least one fluctuation correction data from the reference correction data and a predetermined coefficient.
前記変更手段は、前記光電変換手段が出力する第1のデータと、前記光電変換手段が出力する第2のデータとを比較する原稿データ比較手段を含み、前記原稿データ比較手段による比較結果に基づいて、前記補正手段で用いる補正用データを変更する、請求項1に記載の画像読取装置。   The changing unit includes a document data comparison unit that compares the first data output from the photoelectric conversion unit and the second data output from the photoelectric conversion unit, and is based on a comparison result by the document data comparison unit. The image reading apparatus according to claim 1, wherein correction data used by the correction unit is changed. 前記光電変換手段は、分光感度が互いに異なるフィルタを有する複数のラインセンサを含み、
前記補正用データ決定手段は、前記複数のラインセンサそれぞれが前記基準板で反射した光を受光して出力するデータに基づいて、前記複数のラインセンサそれぞれに対応した補正用データを決定し、
前記補正手段は、前記複数のラインセンサそれぞれが原稿で反射した光を受光して出力するデータを、前記複数のラインセンサそれぞれに対応する前記補正用データを用いて補正し、
前記変更手段は、前記複数のラインセンサそれぞれが原稿で反射した光を受光して出力するデータに基づいて、前記補正手段で補正に用いる補正用データを変更する、請求項1に記載の画像読取装置。
The photoelectric conversion means includes a plurality of line sensors having filters having different spectral sensitivities,
The correction data determining means determines correction data corresponding to each of the plurality of line sensors based on data output by receiving and outputting light reflected by the reference plate.
The correction unit corrects data output by receiving light reflected from the original by each of the plurality of line sensors using the correction data corresponding to each of the plurality of line sensors,
2. The image reading according to claim 1, wherein the changing unit changes correction data used for correction by the correction unit based on data output by receiving and reflecting light reflected by the document by each of the plurality of line sensors. apparatus.
読取対象に光を照射する照射手段と、
前記読取対象で反射した光を受光し、データを出力する光電変換手段と、
複数の補正用データを予め記憶する記憶手段と、
前記光電変換手段が反射率の予め定められた基準板で反射した光を受光して出力するデータに基づいて、前記複数の補正用データのうちから基準補正用データおよび少なくとも1つの変動補正用データを選択する選択手段と、
前記光電変換手段が原稿で反射した光を受光して出力するデータに基づいて、前記選択手段により選択された前記基準補正用データおよび前記少なくとも1つの変動補正用データのうちからいずれか1つを選択して実行補正データに設定する設定手段と、
前記光電変換手段が原稿で反射した光を受光して出力するデータを、前記設定された実行補正用データを用いて補正する補正手段とを備えた、画像読取装置。
Irradiating means for irradiating the reading object with light;
Photoelectric conversion means for receiving light reflected by the reading object and outputting data;
Storage means for storing a plurality of correction data in advance;
Based on data output by the photoelectric conversion means receiving and reflecting light reflected by a reference plate having a predetermined reflectance, reference correction data and at least one variation correction data are selected from the plurality of correction data. A selection means for selecting
One of the reference correction data and the at least one variation correction data selected by the selection means based on data output by the photoelectric conversion means receiving light reflected from the document. Setting means for selecting and setting execution correction data;
An image reading apparatus comprising: correction means for correcting data output by receiving light reflected from the original by the photoelectric conversion means using the set execution correction data.
JP2005317819A 2005-10-31 2005-10-31 Image reading apparatus Withdrawn JP2007129278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005317819A JP2007129278A (en) 2005-10-31 2005-10-31 Image reading apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005317819A JP2007129278A (en) 2005-10-31 2005-10-31 Image reading apparatus

Publications (1)

Publication Number Publication Date
JP2007129278A true JP2007129278A (en) 2007-05-24

Family

ID=38151603

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005317819A Withdrawn JP2007129278A (en) 2005-10-31 2005-10-31 Image reading apparatus

Country Status (1)

Country Link
JP (1) JP2007129278A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111474175A (en) * 2020-05-22 2020-07-31 北京工业大学 Illumination intensity self-adaptive image frost measuring sensor and identification method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111474175A (en) * 2020-05-22 2020-07-31 北京工业大学 Illumination intensity self-adaptive image frost measuring sensor and identification method
CN111474175B (en) * 2020-05-22 2024-06-04 北京工业大学 Image frost measuring sensor with self-adaptive illumination intensity and identification method

Similar Documents

Publication Publication Date Title
US8917406B2 (en) Image reading apparatus for determining whether a document contains a distinguishing pattern
EP0868072B1 (en) Shading correction for an image scanner
EP1962490B1 (en) Image sensor
JP7117866B2 (en) Image reading device and image reading device control method
US20050029352A1 (en) System and method for automatic correction of illumination noise caused by ambient light
JP2001268324A (en) Light source device and device and method for reading original
JP2008271386A (en) Color image reading apparatus
JP2011061768A (en) Led emission wavelength estimating method, image reader, and multi-function printer device
JP6354328B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2007129278A (en) Image reading apparatus
JP4049031B2 (en) Image reading device
US6611360B1 (en) Image reading apparatus
JP2006229645A (en) Image processing apparatus
JP4024737B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, and program
JP6919460B2 (en) Image reader, image forming device and image reading method
JP2017199998A (en) Scanner and production method for scanning image
JPH09238237A (en) Image reader and image reproducing device
JP2013030971A (en) Image reading apparatus, image forming apparatus, light amount adjusting method, and program
JP4864029B2 (en) Document reader
JP4835140B2 (en) Document reader
KR100671548B1 (en) Multi-function product capable of setting adaptive contrast and method thereof
JP2023140489A (en) Image reading device and correction data creation method
JP4936076B2 (en) Image reading apparatus and image reading method
JP2009188750A (en) Document reading apparatus
JP2010283437A (en) Image reading apparatus and image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080624

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090603