JP2015195523A - Image reading device and image reading program - Google Patents

Image reading device and image reading program Download PDF

Info

Publication number
JP2015195523A
JP2015195523A JP2014072977A JP2014072977A JP2015195523A JP 2015195523 A JP2015195523 A JP 2015195523A JP 2014072977 A JP2014072977 A JP 2014072977A JP 2014072977 A JP2014072977 A JP 2014072977A JP 2015195523 A JP2015195523 A JP 2015195523A
Authority
JP
Japan
Prior art keywords
input
pixels
reading
unit
resolution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014072977A
Other languages
Japanese (ja)
Other versions
JP6156230B2 (en
Inventor
慎也 佐原
Shinya Sahara
慎也 佐原
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2014072977A priority Critical patent/JP6156230B2/en
Publication of JP2015195523A publication Critical patent/JP2015195523A/en
Application granted granted Critical
Publication of JP6156230B2 publication Critical patent/JP6156230B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image reading device and an image reading program, capable of suppressing deterioration of image quality while suppressing generation of an abnormal image caused by rubbish and such.SOLUTION: Before performing thinning processing for thinning pixels from second input data, compensation in accordance with the number of thinning pixels is applied to the number of input pixels in accordance with input resolution so as to be capable of obtaining predetermined output resolution. Thereby, since the number of input pixels sufficient for obtaining image quality of predetermined output resolution is secured, deterioration of image quality caused by thinning may be suppressed while suppressing generation of an abnormal image caused by rubbish and such.

Description

本発明は、画像読取装置および画像読取プログラムに関する。   The present invention relates to an image reading apparatus and an image reading program.

オート・ドキュメント・フィーダー(以下「ADF」と称す)を搭載し、ADFを用いて原稿を搬送させながら、所定の読取位置に固定された読取部を用いて当該原稿の読み取りを行うスキャナがある。かかるスキャナには、原稿の読み取りを行う読取部とADFにより搬送される原稿との間に、透明な原稿台が設けられている。よって、読取部は、原稿台を介して原稿の読み取りを行う。原稿台にゴミが付着している場合、読取部は、ADFにより搬送される原稿を読み取る間、原稿台上のゴミを連続して読み取ることになる。そのため、出力画像には、原稿の搬送方向に筋状に延びる黒筋が生じる。   There is a scanner equipped with an auto document feeder (hereinafter referred to as “ADF”) that reads an original using a reading unit fixed at a predetermined reading position while conveying the original using the ADF. In such a scanner, a transparent document table is provided between a reading unit for reading a document and a document conveyed by the ADF. Therefore, the reading unit reads the document via the document table. When dust adheres to the document table, the reading unit continuously reads the dust on the document table while reading the document conveyed by the ADF. Therefore, black streaks extending in a streak shape in the document transport direction are generated in the output image.

特許文献1には、読取部に付着したゴミの影響を低減する技術として、ゴミのある位置に応じて間引きクロックを設定することにより、ゴミを検出する画素の画素データを削除する技術が記載されている。   Patent Document 1 describes a technique for deleting pixel data of pixels from which dust is detected by setting a thinning clock according to a position where dust is present, as a technique for reducing the influence of dust attached to a reading unit. ing.

特開2003−163804号公報JP 2003-163804 A

しかしながら、特許文献1に記載される技術は、ゴミの位置を周期的に間引くものであるので、ゴミの位置によっては間引く周期が短くなるため、要求される出力画素数を確保できず、画質が著しく劣化する虞がある。   However, since the technique described in Patent Literature 1 periodically thins out the dust position, the thinning cycle is shortened depending on the dust position, so that the required number of output pixels cannot be ensured and the image quality is low. There is a risk of significant deterioration.

本発明は、上述した事情を鑑みてなされたものであり、ゴミなどによる異常画像の発生を抑制しつつ、画質の劣化を抑制できる画像読取装置および画像読取プログラムを提供することを目的とする。   The present invention has been made in view of the above-described circumstances, and an object thereof is to provide an image reading apparatus and an image reading program that can suppress deterioration of image quality while suppressing generation of abnormal images due to dust or the like.

この目的を達成するために、本発明の画像読取装置は、原稿を搬送する原稿搬送部と、原稿台と、主走査方向に並ぶ読取素子を用いて、前記原稿搬送部により搬送される原稿を原稿台を介して読み取る読取部と、制御部と、を備え、前記制御部は、原稿の読み取りを開始する指示を受け付ける指示受付手段と、前記指示受付手段により前記指示を受け付けた場合、前記読取部により基準板を読み取り、この読み取りにより得られた第1入力データに異常があるかを検出する検出手段と、予め準備されている複数の入力解像度のうち、予め設定された出力解像度以上である1の入力解像度を設定する入力設定手段と、前記検出手段により前記読み取りにより得られた第1入力データに異常があると検出された場合、当該第1入力データを構成する入力画素のうち、前記異常があると検出された第1入力データの位置に相当する画素の数である間引画素数を設定する間引数設定手段と、前記入力設定手段により設定された入力解像度に応じた入力画素数に対し、前記間引数設定手段により設定された間引画素数に応じた補正を施す補正手段と、前記検出手段による検出後に、前記原稿搬送部により搬送される原稿を、前記読取部により、前記補正手段による補正後の入力画素数に応じた読取素子を用いて読み取り、当該読取素子分の入力画素から構成される第2入力データを得る原稿読取手段と、前記原稿読取手段により得られた第2入力データを構成する入力画素から、前記検出手段により異常があると検出された第1入力データの位置に相当する画素を間引く間引処理を実行し、前記予め設定された出力解像度の出力データを得る画像処理手段と、を備えている。   In order to achieve this object, an image reading apparatus according to the present invention uses a document transport unit that transports a document, a document table, and a reading element arranged in the main scanning direction to scan a document transported by the document transport unit. A reading unit that reads through the document table; and a control unit. The control unit receives an instruction to start reading the document, and the reading unit receives the instruction when the instruction receiving unit receives the instruction. The reference plate is read by the unit, and detection means for detecting whether there is an abnormality in the first input data obtained by the reading, and a predetermined output resolution or higher among a plurality of input resolutions prepared in advance If the input setting means for setting the input resolution of 1 and the detection means detects that the first input data obtained by the reading is abnormal, the first input data is configured. Among the input pixels, the argument setting means for setting the number of thinned pixels, which is the number of pixels corresponding to the position of the first input data detected as having an abnormality, and the input resolution set by the input setting means A correction unit that corrects the number of input pixels corresponding to the number of thinned pixels set by the interval parameter setting unit, and a document that is conveyed by the document conveyance unit after being detected by the detection unit, A document reading unit that reads by the reading unit using a reading element corresponding to the number of input pixels corrected by the correcting unit and obtains second input data composed of input pixels corresponding to the reading element, and the document reading Thinning out a pixel corresponding to the position of the first input data detected by the detection means from the input pixels constituting the second input data obtained by the means, It comprises an image processing means for obtaining output data of the preset output resolution, a.

なお、本発明は、画像読取装置を制御する制御装置、画像読取システム、画像読取方法、画像読取プログラム、画像読取プログラムを記録する記録媒体等の種々の態様で構成できる。   The present invention can be configured in various modes such as a control device that controls the image reading device, an image reading system, an image reading method, an image reading program, and a recording medium that records the image reading program.

請求項1記載の画像読取装置によれば、読み取りにより得られた第1入力データに異常があると検出された場合、当該第1入力データを構成する入力画素のうち、異常があると検出された第1入力データの位置に相当する画素の数である間引画素数が設定される。設定された入力解像度に応じた入力画素数に対し、前記設定された間引画素数に応じた補正が施される。そして、補正後の入力画素数に応じた読取素子を用いて読み取り、当該読取素子分の入力画素から構成される第2入力データを得る。その後、当該第2入力データを構成する入力画素から、異常があると検出された第1入力データの位置に相当する画素を間引く間引処理を行い、それにより、予め設定された出力解像度の出力データを得る。   According to the image reading apparatus of the first aspect, when it is detected that the first input data obtained by reading is abnormal, it is detected that there is an abnormality among the input pixels constituting the first input data. Further, the number of thinned pixels, which is the number of pixels corresponding to the position of the first input data, is set. The number of input pixels corresponding to the set input resolution is corrected according to the set number of thinned pixels. And it reads using the reading element according to the number of input pixels after correction | amendment, The 2nd input data comprised from the input pixel for the said reading element is obtained. Thereafter, a thinning process is performed to thin out pixels corresponding to the position of the first input data detected as abnormal from the input pixels constituting the second input data, thereby outputting an output with a preset output resolution. Get the data.

このように、第2入力データから画素を間引く間引処理を行う前に、予め設定された出力解像度が得られるように、入力解像度に応じた入力画素数に対し、間引画素数に応じた補正が施される。よって、予め設定された出力解像度の画質を得るに十分な入力画素数を確保できるので、ゴミなどによる異常画像の発生を抑制しつつ、間引きによる画質の劣化を抑制できる。   Thus, before performing the thinning process for thinning out pixels from the second input data, the number of input pixels corresponding to the input resolution corresponds to the number of thinned pixels so that a preset output resolution can be obtained. Correction is applied. Therefore, a sufficient number of input pixels can be ensured to obtain an image quality with a preset output resolution, so that deterioration of image quality due to thinning can be suppressed while suppressing occurrence of abnormal images due to dust or the like.

請求項2記載の画像読取装置によれば、請求項1が奏する効果に加え、次の効果を奏する。入力解像度に応じた入力画素数に対して施す補正は、設定された入力解像度に応じた入力画素数に、設定された間引画素数に応じた数の画素を加えることによって行われる。よって、間引かれる分の画素を入力画素数に加えておくことにより、入力解像度に応じた入力画素数を確保することができるので、間引きによる画質の劣化を抑制できる。   According to the image reading apparatus of claim 2, in addition to the effect of claim 1, the following effect is obtained. The correction applied to the number of input pixels corresponding to the input resolution is performed by adding the number of pixels corresponding to the set number of thinned pixels to the number of input pixels corresponding to the set input resolution. Therefore, by adding the number of pixels to be thinned out to the number of input pixels, the number of input pixels according to the input resolution can be secured, so that deterioration in image quality due to thinning can be suppressed.

請求項3記載の画像読取装置によれば、請求項2が奏する効果に加え、次の効果を奏する。設定された入力解像度に応じた入力画素数に、設定された間引画素数に応じた数の画素を加えた画素数が、読取部が読み取り可能な最大の入力画素の数以下であることを条件として、設定された入力解像度に応じた入力画素数に対する補正が行われる。よって、設定された入力解像度に応じた入力画素数に対応できる範囲で、間引かれる分の画素を入力画素数に加える補正を行うことができる。   According to the image reading apparatus of claim 3, in addition to the effect of claim 2, the following effect is obtained. The number of pixels obtained by adding the number of pixels corresponding to the set number of thinned pixels to the number of input pixels corresponding to the set input resolution is equal to or less than the maximum number of input pixels that can be read by the reading unit. As a condition, correction for the number of input pixels according to the set input resolution is performed. Therefore, it is possible to perform correction by adding the thinned-out pixels to the number of input pixels within a range that can correspond to the number of input pixels according to the set input resolution.

請求項4記載の画像読取装置によれば、請求項1から3のいずれかが奏する効果に加え、次の効果を奏する。第1入力データに異常があると検出された場合、間引処理後の画素を予め設定された出力解像度となるように拡大するための拡大処理における拡大率に対し、設定された間引画素数に応じた補正を施す。そして、第1入力データに異常があると検出された場合、第2入力データに対し、補正後の拡大率での拡大処理が行われる。よって、画素の間引きによりゴミなどによる異常画像の発生を抑制しつつ、予め設定された出力解像度の画像を出力できる。   According to the image reading apparatus of the fourth aspect, in addition to the effect produced by any one of the first to third aspects, the following effect is produced. When it is detected that there is an abnormality in the first input data, the number of thinned pixels set with respect to the enlargement ratio in the enlargement process for enlarging the pixels after the thinning process to have a preset output resolution Make corrections according to. When it is detected that the first input data is abnormal, the second input data is subjected to enlargement processing at the corrected enlargement ratio. Therefore, it is possible to output an image having a preset output resolution while suppressing the occurrence of an abnormal image due to dust or the like by thinning out pixels.

請求項5記載の画像読取装置によれば、請求項4が奏する効果に加え、次の効果を奏する。拡大率に対する補正は、(予め設定された出力解像度/設定された入力解像度)から算出される基準の拡大率を、設定された間引画素数に応じて、当該基準の拡大率より大きな値の拡大率にする補正である。よって、画素の間引きによりゴミなどによる異常画像の発生を抑制しつつ、予め設定された出力解像度の画像を出力できる。   According to the image reading apparatus of claim 5, in addition to the effect of claim 4, the following effect is obtained. The correction for the enlargement ratio is performed by changing the reference enlargement ratio calculated from (preset output resolution / set input resolution) to a value larger than the reference enlargement ratio in accordance with the set number of thinned pixels. This is the correction to enlarge. Therefore, it is possible to output an image having a preset output resolution while suppressing the occurrence of an abnormal image due to dust or the like by thinning out pixels.

請求項6記載の画像読取装置によれば、請求項5が奏する効果に加え、次の効果を奏する。設定された入力解像度に応じた入力画素数に、設定された間引画素数に応じた数の画素を加えた画素数が、読取部が読み取り可能な最大の入力画素の数を超えることを条件として、基準の拡大率に対する補正が行われる。よって、間引かれる分の画素を入力画素数に加える補正で対応できない場合には、拡大率を補正することにより、画素の間引きによりゴミなどによる異常画像の発生を抑制しつつ、予め設定された出力解像度の画像を出力できる。   According to the image reading apparatus of the sixth aspect, in addition to the effect produced by the fifth aspect, the following effect is produced. The number of pixels obtained by adding the number of pixels corresponding to the set number of thinned pixels to the number of input pixels corresponding to the set input resolution exceeds the maximum number of input pixels that can be read by the reading unit. As shown in FIG. Therefore, when correction by adding the pixels to be thinned out to the number of input pixels is not possible, the enlargement rate is corrected, and the occurrence of abnormal images due to dust or the like is suppressed by thinning out pixels. Output resolution image can be output.

請求項7記載の画像読取装置によれば、請求項1から6のいずれかが奏する効果に加え、次の効果を奏する。第1入力データに異常がある場合、予め準備されている複数の入力解像度のうち、予め設定された出力解像度以上であり、かつ、異常があると検出された第1入力データの範囲に応じた1の入力解像度が設定される。よって、予め設定された出力解像度を得ることができる入力解像度を、異常な第1入力データの範囲に応じた値に設定できる。   According to the image reading apparatus of the seventh aspect, in addition to the effect produced by any one of the first to sixth aspects, the following effect is obtained. When there is an abnormality in the first input data, it corresponds to the range of the first input data that is detected to be more than a preset output resolution among a plurality of input resolutions prepared in advance. An input resolution of 1 is set. Therefore, the input resolution capable of obtaining a preset output resolution can be set to a value corresponding to the range of the abnormal first input data.

請求項8記載の画像読取装置によれば、請求項7が奏する効果に加え、次の効果を奏する。第1入力データに異常がある場合、予め準備されている複数の入力解像度のうち、予め設定された出力解像度以上であり、かつ、異常があると検出された第1入力データの範囲を最も少ない画素で読み取る1の入力解像度が設定される。よって、間引く画素の数を最小限に抑制することができ、画質の劣化を抑制することができる。   According to the image reading apparatus of claim 8, in addition to the effect of claim 7, the following effect is obtained. When there is an abnormality in the first input data, the range of the first input data that is equal to or higher than a preset output resolution among a plurality of input resolutions prepared in advance and is detected as having an abnormality is the smallest. An input resolution of 1 read by the pixel is set. Therefore, the number of pixels to be thinned out can be minimized, and deterioration in image quality can be suppressed.

請求項9記載の画像読取装置によれば、請求項1から8のいずれかが奏する効果に加え、周期的に画素を間引く間引処理に対応できる。   According to the image reading apparatus of the ninth aspect, in addition to the effect produced by any one of the first to eighth aspects, it is possible to cope with a thinning process for periodically thinning out pixels.

請求項10記載の画像読取装置によれば、請求項9が奏する効果に加え、次の効果を奏する。異常があると検出された第1入力データの位置が、当該第1入力データの先頭画素から所定距離以上離れていることを条件として、間引処理が実行されるので、間引く周期が短くなることによる画質の劣化を抑制できる。   The image reading apparatus according to the tenth aspect has the following effect in addition to the effect of the ninth aspect. Since the thinning process is executed on the condition that the position of the first input data detected as abnormal is away from the first pixel of the first input data by a predetermined distance or more, the thinning cycle is shortened. Degradation of image quality caused by

請求項11記載の画像読取装置によれば、請求項10が奏する効果に加え、前記条件の閾値となる距離は、設定された入力解像度が大きいほど大きい値に設定されるので、設定された入力解像度に応じて適切な補正を行うことができる。   According to the image reading device of the eleventh aspect, in addition to the effect of the tenth aspect, the distance serving as the threshold value of the condition is set to a larger value as the set input resolution is larger. Appropriate correction can be performed according to the resolution.

請求項12記載の画像読取装置によれば、請求項9から11のいずれかが奏する効果に加え、次の効果を奏する。異常があると検出された第1入力データの範囲を最も少ない画素で読み取る1の入力解像度が、予め設定された出力解像度以上であることを条件として、間引処理が実行される。よって、予め設定された出力解像度の出力データを得ることができる。   According to the image reading device of the twelfth aspect, in addition to the effect produced by any one of the ninth to eleventh aspects, the following effect is obtained. The thinning-out process is executed on condition that the input resolution of 1 for reading the range of the first input data detected as having an abnormality with the smallest number of pixels is equal to or higher than a preset output resolution. Therefore, output data having a preset output resolution can be obtained.

請求項13記載の画像読取プログラムによれば、請求項1の画像読取装置と同様の効果を奏する。   According to the image reading program of the thirteenth aspect, the same effect as the image reading apparatus of the first aspect can be obtained.

スキャナの電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of a scanner. スキャナの一部を簡略化して示す模式図である。It is a schematic diagram which simplifies and shows a part of scanner. (a)および(b)は、それぞれ、ADF読取処理およびゴミ検知処理を示すフローチャートである。(A) And (b) is a flowchart which shows an ADF reading process and a dust detection process, respectively. (a)および(b)は、それぞれ、入力解像度設定処理および補正処理を示すフローチャートである。(A) And (b) is a flowchart which respectively shows an input resolution setting process and a correction process. (a)および(b)は、それぞれ、第2実施形態の入力解像度設定処理および補正処理を示すフローチャートである。(A) And (b) is a flowchart which respectively shows the input resolution setting process and correction | amendment process of 2nd Embodiment.

以下、本発明の好ましい実施形態について、添付図面を参照して説明する。まず、図1から図4を参照して、本発明の第1実施形態について説明する。図1は、本発明の画像読取装置の一実施形態であるスキャナ10の電気的構成を示すブロック図である。詳細は後述するが、本実施形態のスキャナ10は、ゴミなどによる異常画像の発生、例えば、出力画像における副走査方向に延びる黒筋の発生を抑制しつつ、画質の劣化を抑制できるよう構成される。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. First, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing an electrical configuration of a scanner 10 which is an embodiment of an image reading apparatus of the present invention. Although details will be described later, the scanner 10 of the present embodiment is configured to suppress deterioration of image quality while suppressing generation of abnormal images due to dust or the like, for example, generation of black streaks extending in the sub-scanning direction in the output image. The

スキャナ10には、CPU11、ROM12、RAM13、EEPROM14、操作部15、LCD16、CIS17、読取駆動部18、ADF19、USBインターフェイス(USB_I/F)22、ネットワークインターフェイス(ネットワークI/F)23が主に設けられる。これらの各部11〜19,22,23は、バスライン24を介して互いに接続される。   The scanner 10 is mainly provided with a CPU 11, ROM 12, RAM 13, EEPROM 14, operation unit 15, LCD 16, CIS 17, reading drive unit 18, ADF 19, USB interface (USB_I / F) 22, and network interface (network I / F) 23. It is done. These units 11 to 19, 22 and 23 are connected to each other via a bus line 24.

CPU11は、ROM12に記憶される固定値やプログラム、RAM13に記憶されているデータに従って、スキャナ10の各部を制御する。ROM12は、読み出し専用のメモリである。   The CPU 11 controls each unit of the scanner 10 according to fixed values and programs stored in the ROM 12 and data stored in the RAM 13. The ROM 12 is a read-only memory.

ROM12には、スキャナ10の動作を制御する制御プログラム12aや、制御プログラム12aを実行する際に参照する定数やテーブルなどが格納される。後述する図3から図5のフローチャートに示す各処理は、CPU11が制御プログラム12aに従い実行する処理である。   The ROM 12 stores a control program 12a that controls the operation of the scanner 10, constants and tables that are referred to when the control program 12a is executed. Each process shown in the flowcharts of FIGS. 3 to 5 described later is a process executed by the CPU 11 in accordance with the control program 12a.

RAM13は、CPU11の処理に必要な情報を一時的に記憶する書換可能な揮発性のメモリである。EEPROM14は、書換可能であるとともに、電源遮断後も内容を保持可能な不揮発性のメモリである。   The RAM 13 is a rewritable volatile memory that temporarily stores information necessary for the processing of the CPU 11. The EEPROM 14 is a non-volatile memory that can be rewritten and can retain its contents even after the power is turned off.

操作部15は、スキャナに設定値や指示など入力するためのものである。操作部15としては、LCD16に重ねて設けられるタッチパネルや、メカニカルキーなどが例示される。LCD16は、各種画面を表示する液晶表示装置である。   The operation unit 15 is used to input setting values and instructions to the scanner. Examples of the operation unit 15 include a touch panel provided on the LCD 16 and a mechanical key. The LCD 16 is a liquid crystal display device that displays various screens.

CIS17は、コンタクトイメージセンサ(Contact Image Sensor)方式で原稿を読み取る読取部である。CIS17は、主走査方向に直線状に配列された複数の受光素子を有するリニアイメージセンサ、RGB3色の発光ダイオードを有する光源、原稿で反射された反射光をイメージセンサの各受光素子に結像させるロッドレンズアレイなどを有する。   The CIS 17 is a reading unit that reads a document using a contact image sensor (Contact Image Sensor) method. The CIS 17 forms a linear image sensor having a plurality of light receiving elements arranged linearly in the main scanning direction, a light source having light emitting diodes of RGB three colors, and reflected light reflected by the original on each light receiving element of the image sensor. It has a rod lens array.

主走査方向とは、プラテンガラス44,45(図2参照)の面に平行な方向であり、かつ、読取駆動部18によるCIS17の移動方向に直交する方向である。主走査方向は、ADF19によりプラテンガラス44,45上を搬送される原稿の搬送方向に直交する向きでもある。   The main scanning direction is a direction parallel to the surfaces of the platen glasses 44 and 45 (see FIG. 2) and is a direction orthogonal to the moving direction of the CIS 17 by the reading drive unit 18. The main scanning direction is also a direction orthogonal to the conveyance direction of the document conveyed on the platen glasses 44 and 45 by the ADF 19.

読取駆動部18は、CIS17を副走査方向に移動させるためのものである。読取駆動部18は、ステッピングモータであるモータ、当該モータをステップ駆動するための駆動信号を生成するモータ駆動部などを含む。副走査方向とは、ADF19によりプラテンガラス44,45上を搬送される原稿の搬送方向に沿った方向であり、矢印A方向または矢印B方向(図2参照)である。   The reading drive unit 18 is for moving the CIS 17 in the sub-scanning direction. The reading drive unit 18 includes a motor that is a stepping motor, a motor drive unit that generates a drive signal for step driving the motor, and the like. The sub-scanning direction is a direction along the conveyance direction of the document conveyed on the platen glass 44, 45 by the ADF 19, and is an arrow A direction or an arrow B direction (see FIG. 2).

ADF19は、原稿トレイ58(図2参照)にセットされた原稿を、搬送経路57(図2参照)に沿ってCIS17による読取位置まで搬送させるとともに、CIS17による読み取り後の原稿を排紙トレイ59まで搬送させる。   The ADF 19 conveys the original set on the original tray 58 (see FIG. 2) to the reading position by the CIS 17 along the conveyance path 57 (see FIG. 2), and the original after reading by the CIS 17 to the discharge tray 59. Transport.

USB_I/F23は、USBプラグを介して、例えば、USBメモリなどの記憶媒体や、パーソナルコンピュータやハードディスクなどの他の装置を通信可能に接続するための装置であり、周知の装置で構成される。ネットワーク_I/F24は、スキャナ10を、LANやインターネットなどのネットワーク(図示せず)に接続するためのインターフェイスである。   The USB_I / F 23 is a device for communicatively connecting a storage medium such as a USB memory or other devices such as a personal computer or a hard disk via a USB plug, and is configured by a known device. The network_I / F 24 is an interface for connecting the scanner 10 to a network (not shown) such as a LAN or the Internet.

図2は、スキャナ10の一部を簡略化して示す模式図である。スキャナ10の筐体43は、概ね箱型に形成されており、上部に第1プラテンガラス44と、第2プラテンガラス45とが並設されている。   FIG. 2 is a schematic diagram showing a part of the scanner 10 in a simplified manner. The housing 43 of the scanner 10 is generally box-shaped, and a first platen glass 44 and a second platen glass 45 are juxtaposed at the top.

原稿カバー46は、各プラテンガラス44,45を覆う閉姿勢と、各プラテンガラス44,45を開放する開姿勢とに回動可能に筐体43に連結されている。原稿カバー46には、ADF19、原稿トレイ58、排紙トレイ59などが設けられている。   The document cover 46 is connected to the housing 43 so as to be rotatable between a closed posture that covers the platen glasses 44 and 45 and an open posture that opens the platen glasses 44 and 45. The document cover 46 is provided with an ADF 19, a document tray 58, a paper discharge tray 59, and the like.

ADF19の内部には、分離ローラ50、分離ローラ50を軸支する軸に基端側を軸支されたアーム51の先端部に回転自在に設けられている吸入ローラ52、複数の搬送ローラ53,54、排紙ローラ55、これらに圧接する複数の従動ローラ56が設けられている。原稿はこれらのローラに搬送されて搬送経路57を搬送され、CIS17によって読み取られる位置を通過して、排紙トレイ59に排紙される。   Inside the ADF 19, there are a separation roller 50, a suction roller 52 that is rotatably provided at a distal end portion of an arm 51 that is pivotally supported by a shaft that pivotally supports the separation roller 50, a plurality of transport rollers 53, 54, a paper discharge roller 55, and a plurality of driven rollers 56 in pressure contact therewith. The document is transported to these rollers, transported along a transport path 57, passes through a position where it is read by the CIS 17, and is discharged onto a discharge tray 59.

CIS17は、スキャナ10の筐体43の内部に収容されている。CIS17は、ADF19により搬送される原稿を読み取る場合、第2プラテンガラス45の直下にて停止し、その位置を読取位置として、光源の色を順次切り替えながら、第2プラテンガラス45を介して原稿を読み取る。一方、CIS17は、第1プラテンガラス44上に載置される原稿を読み取る場合、読取駆動部18を用いて、CIS17を副走査方向(矢印A方向または矢印B方向)に一定速度で移動させつつ、光源の色を順次切り替えながら原稿を読み取る。   The CIS 17 is accommodated in the housing 43 of the scanner 10. When reading the document conveyed by the ADF 19, the CIS 17 stops immediately below the second platen glass 45, sets the position as the reading position, and sequentially switches the color of the light source while scanning the document through the second platen glass 45. read. On the other hand, when the CIS 17 reads a document placed on the first platen glass 44, the CIS 17 is moved at a constant speed in the sub-scanning direction (arrow A direction or arrow B direction) using the reading drive unit 18. The original is read while sequentially switching the color of the light source.

第2プラテンガラス45を介してCIS17に対向する側には、CIS17が第2プラテンガラス45を介して読み取ることのできる白色の基準板60が設けられている。本実施形態では、原稿の読み取りに先立って、CIS17が基準板60を読み取ることにより、第2プラテンガラス45上にゴミがあるなど、異常画像を発生させる可能性の検出を行う。   A white reference plate 60 that can be read by the CIS 17 via the second platen glass 45 is provided on the side facing the CIS 17 via the second platen glass 45. In the present embodiment, prior to reading the original, the CIS 17 reads the reference plate 60 to detect the possibility of generating an abnormal image such as dust on the second platen glass 45.

図3(a)は、CPU11が制御プログラム12aに従って実行するADF読取処理を示すフローチャートである。本処理は、ADF19を用いて原稿を搬送しながら、当該原稿を読み取る処理である。CPU11は、ADF19を用いた原稿の読取指示の受け付けを待機する(S301:No)。   FIG. 3A is a flowchart showing ADF reading processing executed by the CPU 11 according to the control program 12a. This process is a process of reading the original while conveying the original using the ADF 19. The CPU 11 waits for reception of a document reading instruction using the ADF 19 (S301: No).

ADF19を用いた原稿の読取指示を、CPU11が受け付けた場合(S301:Yes)、CPU11は、光量の調整やシェーディング補正などの準備処理を実行する(S302)。CPU11は、読取駆動部18を用いて、CIS17を、副走査方向に移動させ、第2プラテンガラス45の直下における所定の読取位置に配置する(S303)。   When the CPU 11 receives an instruction to read a document using the ADF 19 (S301: Yes), the CPU 11 executes preparation processing such as light amount adjustment and shading correction (S302). The CPU 11 uses the reading drive unit 18 to move the CIS 17 in the sub-scanning direction and arrange it at a predetermined reading position directly below the second platen glass 45 (S303).

CPU11は、ゴミ検知処理を実行する(S304)。詳細は図3(b)を参照して後述するが、ゴミ検知処理(S304)は、第2プラテンガラス45上にゴミなどの異物があるなど、異常画像を発生させる可能性の有無を検出する処理である。以下「異常画像を発生させる可能性」のことを「ゴミ」と称す。   The CPU 11 executes dust detection processing (S304). Although details will be described later with reference to FIG. 3B, the dust detection process (S304) detects whether or not there is a possibility of generating an abnormal image such as foreign matter such as dust on the second platen glass 45. It is processing. Hereinafter, “possibility of generating an abnormal image” is referred to as “dust”.

CPU11は、入力解像度設定処理を実行する(S305)。詳細は図4(a)を参照して後述するが、入力解像度設定処理(S305)は、ユーザが予め設定した出力解像度と、ゴミ検知手段(S304)による検知結果とに応じた入力解像度を設定する処理である。   The CPU 11 executes input resolution setting processing (S305). Although details will be described later with reference to FIG. 4A, the input resolution setting process (S305) sets the input resolution according to the output resolution preset by the user and the detection result by the dust detection means (S304). It is processing to do.

CPU11は、ゴミ検知フラグに1が設定されているかを判断する(S306)。「ゴミ検知フラグ」は、第2プラテンガラス45上にゴミがあるなど、ゴミが検出されたか否かを特定するフラグであり、RAM13に設けられる。ゴミ検知フラグに1が設定されている場合、ゴミが検出されたことを示す。一方、ゴミ検知フラグに0が設定されている場合、ゴミが検出されていないことを示す。   The CPU 11 determines whether 1 is set in the dust detection flag (S306). The “dust detection flag” is a flag for specifying whether dust is detected on the second platen glass 45 or the like, and is provided in the RAM 13. When the dust detection flag is set to 1, it indicates that dust is detected. On the other hand, when the dust detection flag is set to 0, it indicates that no dust is detected.

ゴミ検知フラグの値が1でないと、CPU11が判断した場合(S306:No)、CPU11は、処理をS308に移行する。一方、ゴミ検知フラグの値が1であると、CPU11が判断した場合(S306:Yes)、CPU11は、補正処理を実行し(S307)、処理をS308に移行する。詳細は図4(b)を参照して後述するが、補正処理(S307)は、入力解像度に応じた入力画素数を、ゴミのある位置を間引くための間引処理にて間引く画素数に応じて補正する処理である。   When the CPU 11 determines that the value of the dust detection flag is not 1 (S306: No), the CPU 11 proceeds to S308. On the other hand, when the CPU 11 determines that the value of the dust detection flag is 1 (S306: Yes), the CPU 11 executes a correction process (S307), and the process proceeds to S308. Although details will be described later with reference to FIG. 4B, the correction process (S307) corresponds to the number of input pixels corresponding to the input resolution in accordance with the number of pixels to be thinned out in the thinning-out process for thinning out dusty positions. Correction processing.

S308において、cpu11は、ADF19により原稿を搬送させながら、当該原稿をCIS17により読み取る読取処理を実行する(S308)。CPU11は、読み取りにより得られた画像データ(以下「読取画像データ」と称す)に対する画像処理を実行し(S309)、本処理を終了する。画像処理(S309)では、読取画像データから画素の間引きを行う間引処理と、読取画像データを、入力画素数と出力画素数に応じた拡大率で拡大する拡大処理とが行われる。   In S308, the cpu 11 performs a reading process of reading the original document with the CIS 17 while conveying the original document with the ADF 19 (S308). The CPU 11 performs image processing on the image data obtained by reading (hereinafter referred to as “read image data”) (S309), and ends this processing. In the image processing (S309), thinning processing for thinning out pixels from the read image data and enlargement processing for enlarging the read image data at an enlargement ratio corresponding to the number of input pixels and the number of output pixels are performed.

本実施形態では、間引処理として、入力画素から任意の画素を間引く方式の間引き処理を採用する。本実施形態の間引処理では、ゴミを検出した画素を間引く。より詳細には、後述するS327にて記憶された、ゴミを検出した主走査位置に対応する画素を間引処理により間引く。   In the present embodiment, a thinning process that thins an arbitrary pixel from an input pixel is adopted as the thinning process. In the thinning process according to the present embodiment, pixels that detect dust are thinned out. More specifically, the pixel corresponding to the main scanning position where dust is detected, which is stored in S327 described later, is thinned out by thinning processing.

図3(b)は、上述したゴミ検知処理(S304)を示すフローチャートである。CPU11は、ゴミ検知フラグに0を設定するとともに、間引画素数を0に設定する(S321)。CPU11は、スキャナ10にて設定可能な入力解像度のうち、最大の入力解像度に設定する(S322)。本実施形態のスキャナ10は、入力解像度として、300dpiと、600dpiと、1200dpiとの3種類が準備されているものとする。よって、本実施形態では、S322において、CPU11は、入力解像度として1200dpiを設定する。   FIG. 3B is a flowchart showing the above-described dust detection process (S304). The CPU 11 sets the dust detection flag to 0 and sets the number of thinned pixels to 0 (S321). The CPU 11 sets the maximum input resolution among the input resolutions that can be set by the scanner 10 (S322). The scanner 10 according to the present embodiment is prepared with three types of input resolutions of 300 dpi, 600 dpi, and 1200 dpi. Therefore, in this embodiment, in S322, the CPU 11 sets 1200 dpi as the input resolution.

CPU11は、CIS17に、現在の読取位置で、第2プラテンガラス45を介してCIS17に対向する位置に設けられている白色の基準板60を1ライン分読み取らせる(S323)。なお、基準板60は、白色の基準板に限らず、灰色の基準板などであってもよい。CPU11は、S323の読み取りによって得られた読取画像データにおける先頭の画素を対象画素に設定する(S324)。   The CPU 11 causes the CIS 17 to read one line of the white reference plate 60 provided at a position facing the CIS 17 through the second platen glass 45 at the current reading position (S323). The reference plate 60 is not limited to a white reference plate but may be a gray reference plate. The CPU 11 sets the first pixel in the read image data obtained by reading in S323 as a target pixel (S324).

CPU11は、対象画素の画素値が閾値を超えるかを判断する(S325)。対象画素の画素値が閾値を超えないと、CPU11が判断した場合(S325:No)、CPU11は、基準板60を読み取った画像データに異常がある、すなわち、ゴミが検出されたとして、ゴミ検知フラグに1を設定し(S326)、対象画素である画素Gの主走査方向の位置(以下「主走査位置」と称す)をRAM13に記憶する(S327)。CPU11は、間引画素数に1を加算し(S328)、処理をS329に移行する。一方、対象画素の画素値が閾値を超えると、CPU11が判断した場合(S325:Yes)、CPU11は、S326〜S328の処理をスキップして、処理をS329に移行する。   The CPU 11 determines whether the pixel value of the target pixel exceeds a threshold value (S325). When the CPU 11 determines that the pixel value of the target pixel does not exceed the threshold value (S325: No), the CPU 11 detects that there is an abnormality in the image data read from the reference plate 60, that is, dust is detected. The flag is set to 1 (S326), and the position in the main scanning direction of the pixel G that is the target pixel (hereinafter referred to as “main scanning position”) is stored in the RAM 13 (S327). The CPU 11 adds 1 to the number of thinned pixels (S328), and the process proceeds to S329. On the other hand, when the CPU 11 determines that the pixel value of the target pixel exceeds the threshold value (S325: Yes), the CPU 11 skips the processes of S326 to S328 and shifts the process to S329.

S329において、CPU11は、S323の読み取りによって得られた画像データを構成する全画素についてS325の判断を行ったかを判断する(S329)。CPU11がS329の判断を否定した場合(S329:No)、CPU11は、対象画素を次の画素に移動し(S332)、処理をS325に移行する。   In S329, the CPU 11 determines whether or not the determination in S325 has been made for all the pixels constituting the image data obtained by the reading in S323 (S329). When the CPU 11 denies the determination in S329 (S329: No), the CPU 11 moves the target pixel to the next pixel (S332), and shifts the processing to S325.

CPU11がS329の判断を肯定した場合(S329:Yes)、CPU11は、ゴミ検知フラグに1が設定されているかを判断する(S330)。ゴミ検知フラグに1が設定されていないと、CPU11が判断した場合(S330:No)、CPU11は、本処理を終了する。   If the CPU 11 affirms the determination in S329 (S329: Yes), the CPU 11 determines whether 1 is set in the dust detection flag (S330). If the CPU 11 determines that 1 is not set in the dust detection flag (S330: No), the CPU 11 ends this process.

一方、ゴミ検知フラグに1が設定されていると、CPU11が判断した場合(S330:Yes)、CPU11は、検出されたゴミの大きさを求め(S331)、本処理を終了する。本実施形態では、ゴミの大きさを、(1/1200)dpi、(1/600)dpi、または(1/300)dpiのいずれかで表す。   On the other hand, when the CPU 11 determines that 1 is set in the dust detection flag (S330: Yes), the CPU 11 obtains the size of the detected dust (S331), and ends this process. In the present embodiment, the size of dust is represented by one of (1/1200) dpi, (1/600) dpi, or (1/300) dpi.

(1/1200)dpiは、1200dpiの解像度における1画素で検出されるゴミの大きさであることを示す。(1/600)dpiは、600dpiの解像度における1画素で検出されるゴミの大きさであることを示す。(1/300)dpiは、300dpiの解像度における1画素で検出されるゴミの大きさであることを示す。よって、ゴミの大きさは、(1/1200)dpi<(1/600)dpi<(1/300)dpiである。   (1/1200) dpi indicates the size of dust detected by one pixel at a resolution of 1200 dpi. (1/600) dpi indicates the size of dust detected by one pixel at a resolution of 600 dpi. (1/300) dpi indicates the size of dust detected by one pixel at a resolution of 300 dpi. Therefore, the size of the dust is (1/1200) dpi <(1/600) dpi <(1/300) dpi.

つまり、S331において、ゴミが検出された主走査位置に基づき、CPU11は、検出されたゴミが、解像度1200dpiにおける1画素分の大きさであるか、解像度600dpiにおける1画素分の大きさであるか、解像度300dpiにおける1画素分の大きさであるかを決定する。なお、最大の入力解像度で読み取った場合に主走査方向に連続する画素で検出された各ゴミは1つのゴミとみなす。つまり連続するゴミを検出した画素の数がゴミの大きさとして決定される。検出されたゴミが複数ある場合には、最も大きいゴミの大きさとする。   That is, in S331, based on the main scanning position where dust is detected, the CPU 11 determines whether the detected dust is the size of one pixel at a resolution of 1200 dpi or the size of one pixel at a resolution of 600 dpi. Then, it is determined whether the size is one pixel at a resolution of 300 dpi. Note that each dust detected by pixels continuous in the main scanning direction when read at the maximum input resolution is regarded as one dust. That is, the number of pixels in which continuous dust is detected is determined as the size of dust. When there are a plurality of detected dusts, the size of the largest dust is taken.

図4(a)は、上述した入力解像度設定処理(S305)を示すフローチャートである。CPU11は、ユーザが予め設定した出力解像度から、入力解像度を決定する(S401)。具体的に、CPU11は、予め準備されている入力解像度のうち、出力解像度より大きく、かつ、当該出力解像度に最も近い入力解像度を選択する。   FIG. 4A is a flowchart showing the above-described input resolution setting process (S305). The CPU 11 determines the input resolution from the output resolution preset by the user (S401). Specifically, the CPU 11 selects an input resolution that is larger than the output resolution and is closest to the output resolution from among the input resolutions prepared in advance.

本実施形態のスキャナ10は、入力解像度として、300dpiと、600dpiと、1200dpiとの3種類が準備されている。よって、例えば、出力解像度として400dpiが設定されている場合には、CPU11は、入力解像度として600dpiを選択する。   The scanner 10 of this embodiment is prepared with three types of input resolutions of 300 dpi, 600 dpi, and 1200 dpi. Therefore, for example, when 400 dpi is set as the output resolution, the CPU 11 selects 600 dpi as the input resolution.

CPU11は、ゴミ検知フラグが1であるかを判断する(S402)。ゴミ検知フラグが1でないとCPU11が判断した場合(S402:No)、CPU11は、本処理を終了する。よって、ゴミが検出されていない場合には、入力解像度は、S401にて決定された値となる。   The CPU 11 determines whether the dust detection flag is 1 (S402). When the CPU 11 determines that the dust detection flag is not 1 (S402: No), the CPU 11 ends this process. Therefore, when no dust is detected, the input resolution is the value determined in S401.

ゴミ検知フラグが1であるとCPU11が判断した場合(S402:Yes)CPU11は、ゴミの大きさを判断する(S403)。ゴミの大きさが(1/1200)dpiであると、CPU11が判断した場合(S403:(1/1200)dpi)、CPU11は、入力解像度を1200dpiに設定し(S404)、本処理を終了する。   When the CPU 11 determines that the dust detection flag is 1 (S402: Yes), the CPU 11 determines the size of the dust (S403). When the CPU 11 determines that the size of the dust is (1/1200) dpi (S403: (1/1200) dpi), the CPU 11 sets the input resolution to 1200 dpi (S404), and ends this processing. .

一方、ゴミの大きさが(1/600)dpiであると、CPU11が判断した場合(S403:(1/600)dpi)、CPU11は、設定されている出力解像度が600dpi以下であるかを判断する(S405)。設定されている出力解像度が600dpi以下であると、CPU11が判断した場合(S405:Yes)、CPU11は、入力解像度を600dpiに設定し(S406)、本処理を終了する。S405において、設定されている出力解像度が600dpiよりも大きい場合(S405:No)、CPU11は、本処理を終了する。   On the other hand, when the CPU 11 determines that the size of the dust is (1/600) dpi (S403: (1/600) dpi), the CPU 11 determines whether the set output resolution is 600 dpi or less. (S405). When the CPU 11 determines that the set output resolution is 600 dpi or less (S405: Yes), the CPU 11 sets the input resolution to 600 dpi (S406), and ends this process. In S405, when the set output resolution is larger than 600 dpi (S405: No), the CPU 11 ends this process.

ゴミの大きさが(1/300)dpi以上であると、CPU11が判断した場合(S403:(1/300)dpi以上)、CPU11は、設定されている出力解像度が300dpi以下であるかを判断する(S407)。設定されている出力解像度が300dpi以下であると、CPU11が判断した場合(S407:Yes)、CPU11は、入力解像度を300dpiに設定し(S408)、本処理を終了する。S406において、設定されている出力解像度が300dpiよりも大きい場合(S407:No)、CPU11は、本処理を終了する。   When the CPU 11 determines that the size of the dust is (1/300) dpi or more (S403: (1/300) dpi or more), the CPU 11 determines whether the set output resolution is 300 dpi or less. (S407). When the CPU 11 determines that the set output resolution is 300 dpi or less (S407: Yes), the CPU 11 sets the input resolution to 300 dpi (S408), and ends this process. In S406, when the set output resolution is larger than 300 dpi (S407: No), the CPU 11 ends this process.

よって、入力解像度設定処理(S305)によれば、設定された出力解像度だけでなく、ゴミの大きさに応じた入力解像度が設定される。具体的に、ゴミを最小限の画素(つまり、1画素)で読み取ることのできる入力解像度が設定される。よって、間引く画素の数を最小限に抑制することができるので、画質の劣化を抑制することができる。   Therefore, according to the input resolution setting process (S305), not only the set output resolution but also the input resolution corresponding to the size of dust is set. Specifically, an input resolution capable of reading dust with a minimum number of pixels (that is, one pixel) is set. Therefore, the number of pixels to be thinned out can be suppressed to a minimum, so that deterioration in image quality can be suppressed.

しかしながら、間引く画素の数を最小限に抑制できるとはいえ、ゴミを1画素で読み取ることのできる入力解像度が、ユーザにより設定されている出力解像度より低い場合には、ユーザが要求する出力解像度の画像を出力することができない。よって、かかる場合には、S401にて決定された入力解像度を採用することにより、ユーザの意図に応じた画質の画像を出力できる。   However, although the number of pixels to be thinned out can be minimized, if the input resolution at which dust can be read with one pixel is lower than the output resolution set by the user, the output resolution requested by the user The image cannot be output. Therefore, in such a case, by adopting the input resolution determined in S401, an image with an image quality according to the user's intention can be output.

図4(b)は、上述した補正処理(S307)を示すフローチャートである。CPU11は、入力解像度設定処理(S305)にて設定された入力解像度に応じた間引画素数を取得する(S420)。ゴミ検知処理(S304)にて計数された間引画素数は、スキャナ10が設定可能な最大の入力解像度で読み取った画像データに基づく値である。よって、ゴミ検知処理(S304)にて計数された間引画素数を、入力解像度設定処理(S305)にて設定された入力解像度に応じて補正する必要がある。S420において、CPU11は、当該間引画素数の補正を実行する。   FIG. 4B is a flowchart showing the above-described correction process (S307). The CPU 11 acquires the number of thinned pixels according to the input resolution set in the input resolution setting process (S305) (S420). The number of thinned pixels counted in the dust detection process (S304) is a value based on image data read at the maximum input resolution that can be set by the scanner 10. Therefore, it is necessary to correct the number of thinned pixels counted in the dust detection process (S304) according to the input resolution set in the input resolution setting process (S305). In S420, the CPU 11 corrects the number of thinned pixels.

CPU11は、(入力画素数+間引画素数)をXの値とする(S421)。S421での入力画素数は、入力解像度設定処理(S305)にて設定された入力解像度に応じた画素数である。一方、間引画素数は、S420にて取得した値である。   The CPU 11 sets (input pixel number + decimated pixel number) to a value of X (S421). The number of input pixels in S421 is the number of pixels corresponding to the input resolution set in the input resolution setting process (S305). On the other hand, the number of thinned pixels is the value acquired in S420.

CPU11は、S421にて算出したXの値が、最大入力画素数を超えるかを判断する(S422)。最大入力画素数は、CIS17が読み取り可能な最大の画素数である。最大入力画素数は、CIS17の型に依存する。   The CPU 11 determines whether the value of X calculated in S421 exceeds the maximum number of input pixels (S422). The maximum number of input pixels is the maximum number of pixels that can be read by the CIS 17. The maximum number of input pixels depends on the type of CIS 17.

Xの値が最大入力画素数以下であると、CPU11が判断した場合(S422:No)、CPU11は、間引処理にて間引く間引画素数として、S420にて取得した間引画素数を設定する(S425)。CPU11は、入力画素数を、S421にて算出したXの値、すなわち、設定された入力解像度に応じた入力画素数に、間引画素数を加えた値とする(S426)。   If the CPU 11 determines that the value of X is equal to or less than the maximum number of input pixels (S422: No), the CPU 11 sets the number of thinned pixels acquired in S420 as the number of thinned pixels in the thinning process. (S425). The CPU 11 sets the number of input pixels to the value of X calculated in S421, that is, a value obtained by adding the number of thinned pixels to the number of input pixels corresponding to the set input resolution (S426).

CPU11は、拡大処理にて用いる拡大率を設定し(S427)、本処理を終了する。S427にてCPU11が設定する拡大率は、(予め設定された出力解像度/入力解像度設定処理(S305)にて設定された入力解像度)である。   The CPU 11 sets the enlargement ratio used in the enlargement process (S427), and ends this process. The enlargement ratio set by the CPU 11 in S427 is (the preset output resolution / input resolution set in the input resolution setting process (S305)).

一方、Xの値が最大入力画素数を超えると、CPU11が判断した場合(S422:Yes)、CPU11は、間引処理にて間引く間引画素数として、S420にて取得した間引画素数を設定する(S423)。CPU11は、拡大処理にて用いる拡大率を設定し(S424)、本処理を終了する。   On the other hand, when the CPU 11 determines that the value of X exceeds the maximum number of input pixels (S422: Yes), the CPU 11 uses the number of thinned pixels acquired in S420 as the number of thinned pixels to be thinned in the thinning process. Setting is made (S423). The CPU 11 sets the enlargement ratio used in the enlargement process (S424), and ends this process.

S424にてCPU11が設定する拡大率は、(予め設定された出力解像度/入力解像度設定処理(S305)にて設定された入力解像度)に、{最大入力画素数/(入力画素数−間引画素数)}を乗算したものである。つまり、基準となる拡大率である、設定された入力解像度に対する出力解像度の大きさに、入力画素数から間引かれる間引画素数(すなわち、S420にて取得した間引画素数)に応じた補正を施す。具体的に、間引画素数が間引かれる分、基準となる拡大率より大きな値となるような補正を施す。   The enlargement ratio set by the CPU 11 in S424 is (maximum input pixel number / (input pixel number−thinned pixel) in (preset output resolution / input resolution set in input resolution setting process (S305)). Number)}. That is, in accordance with the number of pixels to be thinned out from the number of input pixels (that is, the number of pixels to be thinned acquired in S420), the size of the output resolution with respect to the set input resolution, which is a reference enlargement ratio Make corrections. Specifically, correction is performed so that the number of pixels to be thinned out is larger than the reference enlargement ratio.

上記第1実施形態によれば、原稿の読取画像データから、ゴミが検出された位置の画素を間引くことによって、出力画像に黒筋などの異常画像が含まれることを抑制できる。このとき、読取画像データから画素を間引く間引処理を行う前に、ユーザにより予め設定された出力解像度が得られるように、入力解像度に応じた入力画素数に対し、間引画素数に応じた補正が施される。具体的には、読み取り時の画素数(すなわち、入力画素数)が、入力解像度に応じた入力画素数に、間引画素数を加えた数とする。これにより、間引きが行われた後も、入力解像度に応じた入力画素数を確保できるので、ゴミが検出された位置を間引くことによる画質の劣化を抑制できる。   According to the first embodiment, the output image can be prevented from including abnormal images such as black streaks by thinning out pixels at positions where dust is detected from the read image data of the document. At this time, before performing the thinning process for thinning out pixels from the read image data, the number of input pixels according to the input resolution is set according to the number of thinned pixels so that an output resolution preset by the user can be obtained. Correction is applied. Specifically, the number of pixels at the time of reading (that is, the number of input pixels) is a number obtained by adding the number of thinned pixels to the number of input pixels corresponding to the input resolution. As a result, the number of input pixels corresponding to the input resolution can be secured even after thinning is performed, so that deterioration of image quality due to thinning of the position where dust is detected can be suppressed.

また、入力解像度に応じた入力画素数に間引画素数を加えた数が、CIS17が読み取り可能な最大の画素数(すなわち、最大入力画素数)を超える場合、加算後の入力画素数を得ることは物理的に不可能であるので、間引画素数を加える補正を行う意味がない。これに対し、本実施形態では、間引画素数を加える補正は、間引画素数の加算後の画素数が最大入力画素数以下であることを条件として行われる。つまり、間引画素数を加える補正は、CIS17が対応できる範囲で行われる。   In addition, when the number of thinned pixels added to the number of input pixels corresponding to the input resolution exceeds the maximum number of pixels that can be read by the CIS 17 (that is, the maximum number of input pixels), the number of input pixels after addition is obtained. Since this is physically impossible, there is no point in performing correction to add the number of thinned pixels. On the other hand, in the present embodiment, the correction for adding the number of thinned pixels is performed on condition that the number of pixels after the addition of the number of thinned pixels is equal to or less than the maximum number of input pixels. That is, the correction for adding the number of thinned pixels is performed in a range that can be handled by the CIS 17.

その一方で、間引画素数の加算後の画素数が最大入力画素数を超える場合には、間引き後の画像データを設定された出力解像度となるよう拡大する拡大処理において、当該拡大処理における拡大率を補正する。具体的に、基準となる拡大率である、設定された入力解像度に対する出力解像度の大きさに、入力画素数から間引かれる間引画素数に応じた補正を施す。具体的に、間引画素数が間引かれる分、基準となる拡大率より大きな値となるような補正を施す。これにより、画素の間引きによりゴミなどによる異常画像の発生を抑制しつつ、ユーザにより設定された出力解像度の画像を出力できる。   On the other hand, when the number of pixels after the addition of the number of thinned pixels exceeds the maximum number of input pixels, in the enlargement process for enlarging the image data after the thinning to the set output resolution, the enlargement in the enlargement process Correct the rate. Specifically, a correction corresponding to the number of pixels to be thinned out from the number of input pixels is performed on the size of the output resolution with respect to the set input resolution, which is a reference enlargement ratio. Specifically, correction is performed so that the number of pixels to be thinned out is larger than the reference enlargement ratio. Accordingly, it is possible to output an image with an output resolution set by the user while suppressing the occurrence of an abnormal image due to dust or the like by thinning out pixels.

次に、図5を参照して、第2実施形態について説明する。第1実施形態では、間引処理として、入力画素から任意の画素を間引く方式の間引き処理を採用した。これに対し、第2実施形態では、間引処理として、入力画素を所定の間引き率で周期的に間引く方式の間引き処理を採用する。   Next, a second embodiment will be described with reference to FIG. In the first embodiment, a thinning process that thins an arbitrary pixel from an input pixel is adopted as the thinning process. On the other hand, in the second embodiment, as the thinning process, a thinning process in which the input pixels are periodically thinned at a predetermined thinning rate is employed.

第2実施形態において、上述した第1実施形態と同一の部分については、同一の符号を付し、その説明は省略する。なお、以下の図5および図6の各フローチャートに示す各処理は、第2実施形態の制御プログラム12aに従いCPU11により実行される。   In the second embodiment, the same parts as those in the first embodiment described above are denoted by the same reference numerals, and the description thereof is omitted. Each process shown in the flowcharts of FIGS. 5 and 6 below is executed by the CPU 11 according to the control program 12a of the second embodiment.

図5(a)は、第2実施形態の入力解像度設定処理(S305)を示すフローチャートである。第1実施形態の入力解像度設定処理(図4(a))との相違点を中心に説明する。ゴミの大きさが(1/600)dpiであり、かつ、設定されている出力解像度が600dpiよりも大きいと、CPU11が判断した場合(S403:(1/600)dpi,S405:No)、CPU11は、ゴミ検知フラグに0を設定し(S501)、本処理を終了する。   FIG. 5A is a flowchart showing the input resolution setting process (S305) of the second embodiment. A description will be given centering on differences from the input resolution setting processing (FIG. 4A) of the first embodiment. When the CPU 11 determines that the dust size is (1/600) dpi and the set output resolution is larger than 600 dpi (S403: (1/600) dpi, S405: No), the CPU 11 Sets the dust detection flag to 0 (S501), and ends this processing.

また、ゴミの大きさが(1/300)dpi以上であり、かつ、設定されている出力解像度が300dpiよりも大きいと、CPU11が判断した場合(S403:(1/300)dpi,S407:No)、CPU11は、処理をS501に移行する。   When the CPU 11 determines that the size of the dust is (1/300) dpi or more and the set output resolution is larger than 300 dpi (S403: (1/300) dpi, S407: No. ), The CPU 11 shifts the process to S501.

ゴミを1画素で読み取ることのできる入力解像度が、ユーザにより設定されている出力解像度より低い入力解像度である場合、その入力解像度で読み取りを行い、かつ、周期的な間引きを行うとなると、画質の著しい劣化が生じる。これに対し、本実施形態の入力解像度設定処理によれば、そのような場合には、検出されたゴミの存在そのものを無視するので、画質の著しい劣化を抑制できる。   If the input resolution at which dust can be read by one pixel is lower than the output resolution set by the user, reading at that input resolution and periodic decimation will result in Significant degradation occurs. On the other hand, according to the input resolution setting process of the present embodiment, in such a case, the presence of the detected dust itself is ignored, so that significant deterioration in image quality can be suppressed.

図5(b)は、第2実施形態の補正処理(S307)を示すフローチャートである。第1実施形態の補正処理(図4(b))との相違点を中心に説明する。CPU11は、ゴミを検出した画素である画素Gの主走査位置が、閾値N未満であるかを判断する(S521)。閾値Nは、先頭画素(すなわち、0番目の画素)から主走査方向にN番目の画素が間引き制限画素位置であることを示す値である。   FIG. 5B is a flowchart showing the correction process (S307) of the second embodiment. Differences from the correction processing of the first embodiment (FIG. 4B) will be mainly described. The CPU 11 determines whether or not the main scanning position of the pixel G that is a pixel in which dust is detected is less than the threshold value N (S521). The threshold value N is a value indicating that the Nth pixel in the main scanning direction from the first pixel (that is, the 0th pixel) is the thinning-out limited pixel position.

ゴミの位置が先頭画素に近いほど、間引きの周期が短くなる(すなわち、間引き率が大きくなる)ので、その分間引かれる画素数が増え、画質劣化の原因となる。よって、本実施形態では、間引き制限画素位置を設け、画素Gが、当該間引き制限画素位置より先頭側に近い場合には、間引処理を実行しないようにする。閾値Nは、設定されている入力解像度に応じて異なり、入力解像度が大きいほど、閾値Nの値は大きくなる。例えば、入力解像度が300dpi、600dpi、および1200dpiに対する閾値Nの値は、それぞれ、100、200、および400とする。   As the dust position is closer to the first pixel, the thinning cycle becomes shorter (that is, the thinning rate becomes larger), so that the number of pixels drawn for that minute increases, causing deterioration in image quality. Therefore, in this embodiment, a thinning-out limited pixel position is provided, and the thinning-out process is not executed when the pixel G is closer to the head than the thinning-out limited pixel position. The threshold value N varies depending on the set input resolution, and the value of the threshold value N increases as the input resolution increases. For example, the values of the threshold N for input resolutions of 300 dpi, 600 dpi, and 1200 dpi are 100, 200, and 400, respectively.

S521において、画素Gの主走査位置が閾値Nより小さいとCPU11が判断した場合、すなわち、画素Gが間引き制限画素位置より先頭側に位置する場合(S521:Yes)、CPU11は、本処理を終了する。つまり、かかる場合、ゴミが検出されたことに応じた間引処理および拡大処理は行われない。   If the CPU 11 determines in S521 that the main scanning position of the pixel G is smaller than the threshold value N, that is, if the pixel G is positioned on the head side from the thinning-out limited pixel position (S521: Yes), the CPU 11 ends this processing. To do. That is, in such a case, the thinning process and the enlargement process corresponding to the detection of dust are not performed.

一方、S521において、画素Gの主走査位置が閾値N以上であるとCPU11が判断した場合(S521:No)、CPU11は、ゴミが検出されたことに応じた間引処理および拡大処理を行うため、S421以降の処理を実行する。   On the other hand, when the CPU 11 determines in S521 that the main scanning position of the pixel G is greater than or equal to the threshold value N (S521: No), the CPU 11 performs thinning processing and enlargement processing in response to the detection of dust. , S421 and subsequent processes are executed.

本実施形態では、第1実施形態と異なり、入力画素を所定の間引き率で周期的に間引く方式の間引き処理を採用する。よって、CPU11は、第1実施形態のS423およびS425の処理に代えて、間引処理用いる、画素Gが間引かれるような周期(つまり、間引き率)を設定する処理(S522,S523)を実行する。   In the present embodiment, unlike the first embodiment, thinning-out processing is employed that periodically thins out input pixels at a predetermined thinning rate. Therefore, the CPU 11 executes a process (S522, S523) for setting a cycle (that is, a thinning rate) in which the pixels G are thinned, which is used in the thinning process, instead of the processes of S423 and S425 of the first embodiment. To do.

具体的に、CPU11は、例えば、最も大きいゴミを検出した画素Gを含むような周期を設定する。あるいは、CPU11は、複数のゴミが検出された場合に、それら複数のゴミを検出した画素Gのうち、できる限り多くの画素Gが間引かれるような周期を設定する。CPU11は、画像処理(S309)において、S522またはS523にて設定された周期での間引処理を行う。よって、ゴミを検出した画素を間引くことができる。   Specifically, the CPU 11 sets a cycle that includes, for example, the pixel G that has detected the largest dust. Alternatively, the CPU 11 sets a cycle in which as many pixels G as possible are thinned out of the pixels G from which the plurality of dusts are detected when a plurality of dusts are detected. In the image processing (S309), the CPU 11 performs a thinning process with the period set in S522 or S523. Therefore, pixels where dust is detected can be thinned out.

上記第2実施形態によれば、入力画素を所定の間引率で周期的に間引く方式の間引き処理を採用した場合も、上記第1実施形態と同様、出力画像に黒筋などの異常画像が含まれることを抑制できる。周期的に画素を間引く場合、ゴミを検出した画素Gの主走査位置が間引き制限画素位置より先頭側に近い場合には、間引処理を実行しないので、間引き周期が短く間引き数過多になることによる画質劣化を抑制できる。間引き制限画素位置とする閾値Nの値は、入力解像度が大きいほど大きい値とされるので、画像Gの主走査位置に対し、入力解像度に応じて適切に間引処理を実行するか否かを決定できる。   According to the second embodiment, even when the thinning-out method that periodically thins the input pixels at a predetermined thinning rate is adopted, the output image includes abnormal images such as black streaks as in the first embodiment. Can be suppressed. When thinning out pixels periodically, if the main scanning position of the pixel G where dust is detected is closer to the head than the thinning-out restricted pixel position, the thinning-out process is not executed, and therefore the thinning-out cycle is short and the number of thinning-outs is excessive. It is possible to suppress image quality deterioration due to. Since the value of the threshold value N as the thinning-out restricted pixel position is set to a larger value as the input resolution is larger, it is determined whether or not the thinning process is appropriately executed according to the input resolution for the main scanning position of the image G. Can be determined.

上記実施形態において、スキャナ10が、画像読取装置の一例である。制御プログラム12aが、画像読取プログラムの一例である。CPU11が、制御部の一例である。ADF19が、原稿搬送部の一例である。第2プラテンガラス45が、原稿台の一例である。CIS17が、読取部の一例である。基準板60が、基準板の一例である。S323の処理により得られる画像データが、第1入力データの一例である。S308の処理により得られる画像データが、第2入力データの一例である。   In the above embodiment, the scanner 10 is an example of an image reading apparatus. The control program 12a is an example of an image reading program. The CPU 11 is an example of a control unit. The ADF 19 is an example of a document conveying unit. The second platen glass 45 is an example of a document table. The CIS 17 is an example of a reading unit. The reference plate 60 is an example of a reference plate. The image data obtained by the process of S323 is an example of the first input data. The image data obtained by the process of S308 is an example of second input data.

S301の処理を実行するCPU11が、指示受付手段の一例である。S305の処理を実行するCPU11が、入力設定手段の一例である。S328の処理を実行するCPU11が、間引数設定手段の一例である。S307の処理を実行するCPU11が、補正手段の一例である。S308の処理を実行するCPU11が、原稿読取手段の一例である。S309の処理を実行するCPU11が、画像処理手段の一例である。S331の処理を実行するCPU11が、第2検出手段の一例である。S522,S523の処理を実行するCPU11が、周期設定手段の一例である。   The CPU 11 that executes the process of S301 is an example of an instruction receiving unit. CPU11 which performs the process of S305 is an example of an input setting means. The CPU 11 that executes the process of S328 is an example of an interval argument setting unit. The CPU 11 that executes the process of S307 is an example of a correction unit. The CPU 11 that executes the process of S308 is an example of a document reading unit. The CPU 11 that executes the process of S309 is an example of an image processing unit. CPU11 which performs the process of S331 is an example of a 2nd detection means. CPU11 which performs the process of S522 and S523 is an example of a period setting means.

以上、実施形態に基づき本発明を説明したが、本発明は上述した実施形態に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の改良変更が可能であることは容易に推察できるものである。   Although the present invention has been described based on the embodiments, the present invention is not limited to the above-described embodiments, and various improvements and modifications can be easily made without departing from the spirit of the present invention. Can be inferred.

例えば、上記実施形態にて例示した数値は一例であり、他の数値も採用できる。例えば、スキャナ10に準備されている入力解像度として、2400dpiなど他の入力解像度も採用できる。   For example, the numerical values exemplified in the above embodiment are merely examples, and other numerical values can be adopted. For example, other input resolutions such as 2400 dpi can be adopted as the input resolution prepared for the scanner 10.

上記実施形態では、ゴミの大きさとして、(1/1200)dpi、(1/600)dpi、または(1/300)dpiを例示したが、この大きさに限らない。例えば、出力解像度として(1/2400)dpiも設定可能なスキャナであれば、S403でのゴミの大きさの判断は、(1/2400)dpi、(1/1200)dpi、(1/600)dpi、または(1/300)dpiであるかを判断すればよい。つまり、ゴミの大きさが、(1/スキャナが出力可能な各解像度)dpiであるか判断するとよい。   In the embodiment described above, (1/1200) dpi, (1/600) dpi, or (1/300) dpi is exemplified as the size of dust, but the size is not limited to this. For example, if the scanner can set (1/2400) dpi as the output resolution, the determination of the size of dust in S403 is (1/2400) dpi, (1/1200) dpi, (1/600). It may be determined whether it is dpi or (1/300) dpi. That is, it is preferable to determine whether the size of the dust is (1 / resolution at which the scanner can output) dpi.

上記実施形態では、ゴミの大きさの単位として、dpiを用いたが、これに限られることはなく、例えば、インチやミリメートルなど種々の単位を採用してもよい。具体的に、上記実施形態では、S403において、ゴミの大きさが(1/1200)dpi、(1/600)dpi、または(1/300)dpiであるかを判断したが、(1/1200)inch、(1/600)inch、または(1/300)inchであるかを判断してもよい。   In the above embodiment, the dpi is used as the unit of the size of the dust. However, the present invention is not limited to this, and various units such as inches and millimeters may be employed. Specifically, in the above embodiment, it is determined in S403 whether the size of the dust is (1/1200) dpi, (1/600) dpi, or (1/300) dpi. ) Inch, (1/600) inch, or (1/300) inch may be determined.

上記実施形態では、S421にて算出したXの値が、スキャナ10の最大入力画素数以下であると、CPU11が判断した場合、S427において拡大率を設定したが、予め設定された出力解像度と入力解像度設定処理(S305)にて設定された入力解像度とが同じである場合には、S427の処理をスキップしてもよい。   In the above embodiment, when the CPU 11 determines that the value of X calculated in S421 is equal to or less than the maximum number of input pixels of the scanner 10, the enlargement ratio is set in S427, but the preset output resolution and input If the input resolution set in the resolution setting process (S305) is the same, the process of S427 may be skipped.

上記実施形態では、本発明の画像読取装置として、スキャナ10を例示したが、ADFを用いた原稿の読み取りを実行可能な装置であれば、多機能周辺装置など種々の装置を採用できる。   In the above-described embodiment, the scanner 10 is exemplified as the image reading apparatus of the present invention. However, various apparatuses such as a multi-functional peripheral apparatus can be adopted as long as the apparatus can execute reading of a document using the ADF.

上記実施形態では、CPU11が、図3〜図5に記載される各処理を実行する構成として説明したが、これら各図に記載される各処理を、複数のCPUが協同的に実行する構成としてもよい。また、ASICなどのICが、単独で、または、複数によって協働的に、上記各図に記載される各処理を実行する構成してもよい。また、CPU11とASICなどのICとが協同して、上記各図に記載される各処理を実行する構成してもよい。   In the above-described embodiment, the CPU 11 has been described as a configuration for executing each process described in FIGS. 3 to 5. However, each of the processes described in each of these drawings is configured to be executed cooperatively by a plurality of CPUs. Also good. Further, an IC such as an ASIC may be configured to execute each process described in each of the above drawings independently or in cooperation with a plurality of ICs. Further, the CPU 11 and an IC such as an ASIC may cooperate to execute each process described in the above drawings.

図3〜図5に示す各処理のうち、一部の処理を、特許請求の範囲における独立請求項から逸脱しない範囲で、省略または変更してもよい。また、上記実施形態により説明した各特徴や、上述した各変形例を適宜組み合わせて実施する構成としてもよい。   Among the processes shown in FIGS. 3 to 5, some of the processes may be omitted or changed without departing from the independent claims. Moreover, it is good also as a structure implemented combining each characteristic demonstrated by the said embodiment and each modification mentioned above suitably.

10:スキャナ,12a:制御プログラム
10: Scanner, 12a: Control program

Claims (13)

原稿を搬送する原稿搬送部と、
原稿台と、
主走査方向に並ぶ読取素子を用いて、前記原稿搬送部により搬送される原稿を原稿台を介して読み取る読取部と、
制御部と、を備え、
前記制御部は、
原稿の読み取りを開始する指示を受け付ける指示受付手段と、
前記指示受付手段により前記指示を受け付けた場合、前記読取部により基準板を読み取り、この読み取りにより得られた第1入力データに異常があるかを検出する検出手段と、
予め準備されている複数の入力解像度のうち、予め設定された出力解像度以上である1の入力解像度を設定する入力設定手段と、
前記検出手段により前記読み取りにより得られた第1入力データに異常があると検出された場合、当該第1入力データを構成する入力画素のうち、前記異常があると検出された第1入力データの位置に相当する画素の数である間引画素数を設定する間引数設定手段と、
前記入力設定手段により設定された入力解像度に応じた入力画素数に対し、前記間引数設定手段により設定された間引画素数に応じた補正を施す補正手段と、
前記検出手段による検出後に、前記原稿搬送部により搬送される原稿を、前記読取部により、前記補正手段による補正後の入力画素数に応じた読取素子を用いて読み取り、当該読取素子分の入力画素から構成される第2入力データを得る原稿読取手段と、
前記原稿読取手段により得られた第2入力データを構成する入力画素から、前記検出手段により異常があると検出された第1入力データの位置に相当する画素を間引く間引処理を実行し、前記予め設定された出力解像度の出力データを得る画像処理手段と、
を備えていることを特徴とする画像読取装置。
A document transport section for transporting a document;
The document table,
A reading unit that reads a document conveyed by the document conveying unit through a document table using reading elements arranged in a main scanning direction;
A control unit,
The controller is
An instruction receiving means for receiving an instruction to start reading a document;
When the instruction is received by the instruction receiving unit, the reference unit is read by the reading unit, and detecting unit that detects whether the first input data obtained by the reading is abnormal,
An input setting means for setting one input resolution that is equal to or higher than a preset output resolution among a plurality of input resolutions prepared in advance;
When it is detected by the detection means that the first input data obtained by the reading is abnormal, among the input pixels constituting the first input data, the first input data detected as having the abnormality Argument setting means for setting the number of thinned pixels that is the number of pixels corresponding to the position;
Correction means for correcting the number of input pixels according to the input resolution set by the input setting means according to the number of thinned pixels set by the interval argument setting means;
After the detection by the detection unit, the document conveyed by the document conveyance unit is read by the reading unit using a reading element corresponding to the number of input pixels corrected by the correction unit, and input pixels corresponding to the reading element are read. Document reading means for obtaining second input data comprising:
Thinning out pixels corresponding to the position of the first input data detected as abnormal by the detection means from the input pixels constituting the second input data obtained by the document reading means; Image processing means for obtaining output data of a preset output resolution;
An image reading apparatus comprising:
前記補正手段は、前記入力設定手段により設定された入力解像度に応じた入力画素数に、前記間引数設定手段により設定された間引画素数に応じた数の画素を加え、
前記原稿読取手段は、
前記検出手段により前記読み取りにより得られた第1入力データに異常がないと検出された場合には、前記原稿を、前記読取部により、前記入力設定手段により設定された入力画素数に応じた読取素子を用いて読み取る一方で、
前記検出手段により前記読み取りにより得られた第1入力データに異常があると検出された場合には、前記補正手段による補正後の入力画素数に応じた読取素子を用いて読み取ることを特徴とする請求項1記載の画像読取装置。
The correction means adds the number of pixels according to the number of thinned pixels set by the interval argument setting means to the number of input pixels according to the input resolution set by the input setting means,
The document reading means includes:
When it is detected by the detection means that the first input data obtained by the reading is normal, the original is read by the reading unit according to the number of input pixels set by the input setting means. While reading with the element,
When it is detected by the detection means that the first input data obtained by the reading is abnormal, reading is performed using a reading element corresponding to the number of input pixels corrected by the correction means. The image reading apparatus according to claim 1.
前記補正手段は、前記入力設定手段により設定された入力解像度に応じた入力画素数に、前記間引数設定手段により設定された間引画素数に応じた数の画素を加えた画素数が、前記読取部が読み取り可能な最大の入力画素の数以下であることを条件として、前記補正を実行することを特徴とする請求項2記載の画像読取装置。   The correction means has a number of pixels obtained by adding a number of pixels corresponding to the number of thinned pixels set by the interval argument setting means to the number of input pixels corresponding to the input resolution set by the input setting means. The image reading apparatus according to claim 2, wherein the correction is performed on condition that the number is less than a maximum number of input pixels that can be read by the reading unit. 前記補正手段は、前記検出手段により前記読み取りにより得られた第1入力データに異常があると検出された場合、前記間引処理後の画素を、前記予め設定された出力解像度となるように拡大するための拡大処理における拡大率に対し、前記間引数設定手段により設定された間引画素数に応じた補正を施し、
前記画像処理手段は、前記検出手段により前記読み取りにより得られた第1入力データに異常があると検出された場合、前記原稿読取手段により得られた第2入力データに対し、前記補正手段による補正後の拡大率で前記拡大処理を実行することを特徴とする請求項1から3のいずれかに記載の画像読取装置。
The correction means enlarges the pixel after the thinning process to the preset output resolution when the detection means detects that the first input data obtained by the reading is abnormal. For the enlargement ratio in the enlargement process for performing the correction according to the number of thinned pixels set by the interval argument setting means,
When the detection means detects that the first input data obtained by the reading is abnormal, the image processing means corrects the second input data obtained by the document reading means by the correction means. The image reading apparatus according to claim 1, wherein the enlargement process is executed at a later enlargement ratio.
前記補正手段は、(前記予め設定された出力解像度/前記入力設定手段により設定された入力解像度)から算出される基準の拡大率を、前記間引数設定手段により設定された間引画素数に応じて、当該基準の拡大率より大きな値の拡大率に補正することを特徴とする請求項4に記載の画像読取装置。   The correction unit determines a reference enlargement ratio calculated from (the preset output resolution / the input resolution set by the input setting unit) according to the number of thinned pixels set by the interval argument setting unit. The image reading apparatus according to claim 4, wherein the image enlargement ratio is corrected to a value larger than the reference enlargement ratio. 前記補正手段は、前記入力設定手段により設定された入力解像度に応じた入力画素数に、前記間引数設定手段により設定された間引画素数に応じた数の画素を加えた画素数が、前記読取部が読み取り可能な最大の入力画素の数を超えることを条件として、前記補正を実行することを特徴とする請求項5記載の画像読取装置。   The correction means has a number of pixels obtained by adding a number of pixels corresponding to the number of thinned pixels set by the interval argument setting means to the number of input pixels corresponding to the input resolution set by the input setting means. The image reading apparatus according to claim 5, wherein the correction is performed on condition that the number of input pixels that can be read by the reading unit exceeds a maximum number. 前記制御部は、
前記読み取りにより得られた第1入力データに異常があると検出された場合、当該異常があると検出された第1入力データの範囲を検出する第2検出手段を備え、
前記入力設定手段は、前記読み取りにより得られた第1入力データに異常があると検出された場合、予め準備されている複数の入力解像度のうち、前記予め設定された出力解像度以上であり、かつ、前記第2検出手段により検出された前記第1入力データの範囲に応じた1の入力解像度を設定することを特徴とする請求項1から6のいずれかに記載の画像読取装置。
The controller is
When it is detected that there is an abnormality in the first input data obtained by the reading, a second detection unit that detects a range of the first input data detected as having the abnormality,
The input setting means, when it is detected that the first input data obtained by the reading is abnormal, is more than the preset output resolution among the plurality of input resolutions prepared in advance, and 7. The image reading apparatus according to claim 1, wherein one input resolution corresponding to a range of the first input data detected by the second detection unit is set.
前記入力設定手段は、前記読み取りにより得られた第1入力データに異常があると検出された場合、予め準備されている複数の入力解像度のうち、前記予め設定された出力解像度以上であり、かつ、前記第2検出手段により検出された前記第1入力データの範囲を最も少ない画素で読み取る1の入力解像度を設定することを特徴とする請求項7記載の画像読取装置。   The input setting means, when it is detected that the first input data obtained by the reading is abnormal, is more than the preset output resolution among the plurality of input resolutions prepared in advance, and 8. The image reading apparatus according to claim 7, wherein one input resolution for reading the range of the first input data detected by the second detection means with the smallest number of pixels is set. 前記間引処理は、画素を周期的に間引く処理であり、
前記制御部は、
前記間引処理により間引かれる画素として前記異常があると検出された第1入力データの位置を含むように、当該間引処理にて画素を間引く周期を設定する周期設定手段を備えていることを特徴とする請求項1から8のいずれかに記載の画像読取装置。
The thinning process is a process of periodically thinning out pixels.
The controller is
A period setting unit configured to set a period for thinning out the pixels in the thinning process so as to include the position of the first input data detected as having the abnormality as the pixels to be thinned out by the thinning process; An image reading apparatus according to claim 1, wherein:
前記間引き処理は、前記異常があると検出された第1入力データの位置が、当該第1入力データの先頭画素から所定距離以上離れていることを条件として実行されることを特徴とする請求項9記載の画像読取装置。   The thinning-out process is executed on condition that the position of the first input data detected as having the abnormality is a predetermined distance or more away from the first pixel of the first input data. The image reading apparatus according to 9. 前記所定距離は、前記入力設定手段により設定された入力解像度が大きいほど大きい値に設定されることを特徴とする請求項10記載の画像読取装置。   The image reading apparatus according to claim 10, wherein the predetermined distance is set to a larger value as the input resolution set by the input setting unit is larger. 前記間引き処理は、前記第2検出手段により検出された前記第1入力データの範囲を最も少ない画素で読み取る1の入力解像度が、前記予め設定された出力解像度以上であることを条件として実行されることを特徴とする請求項9から11のいずれかに記載の画像読取装置。   The thinning-out process is executed on condition that one input resolution for reading the range of the first input data detected by the second detection means with the smallest number of pixels is equal to or higher than the preset output resolution. The image reading apparatus according to claim 9, wherein the image reading apparatus is an image reading apparatus. 原稿を搬送する原稿搬送部と、
原稿台と、
主走査方向に並ぶ読取素子を用いて、前記原稿搬送部により搬送される原稿を原稿台を介して読み取る読取部と、
制御部と、を備えた画像読取装置の、前記制御部が実行可能な画像読取プログラムであって、
原稿の読み取りを開始する指示を受け付ける指示受付手段と、
前記指示受付手段により前記指示を受け付けた場合、前記読取部により基準板を読み取り、この読み取りにより得られた第1入力データに異常があるかを検出する検出手段と、
予め準備されている複数の入力解像度のうち、予め設定された出力解像度以上である1の入力解像度を設定する入力設定手段と、
前記検出手段により前記読み取りにより得られた第1入力データに異常があると検出された場合、当該第1入力データを構成する入力画素のうち、前記異常があると検出された第1入力データの位置に相当する画素の数である間引画素数を設定する間引数設定手段と、
前記入力設定手段により設定された入力解像度に応じた入力画素数に対し、前記間引数設定手段により設定された間引画素数に応じた補正を施す補正手段と、
前記検出手段による検出後に、前記原稿搬送部により搬送される原稿を、前記読取部により、前記補正手段による補正後の入力画素数に応じた読取素子を用いて読み取り、当該読取素子分の入力画素から構成される第2入力データを得る原稿読取手段と、
前記原稿読取手段により得られた第2入力データを構成する入力画素から、前記検出手段により異常があると検出された第1入力データの位置に相当する画素を間引く間引処理を実行し、前記予め設定された出力解像度の出力データを得る画像処理手段として、
前記制御部を機能させることを特徴とする画像読取プログラム。

A document transport section for transporting a document;
The document table,
A reading unit that reads a document conveyed by the document conveying unit through a document table using reading elements arranged in a main scanning direction;
An image reading program executable by the control unit of an image reading apparatus comprising:
An instruction receiving means for receiving an instruction to start reading a document;
When the instruction is received by the instruction receiving unit, the reference unit is read by the reading unit, and detecting unit that detects whether the first input data obtained by the reading is abnormal,
An input setting means for setting one input resolution that is equal to or higher than a preset output resolution among a plurality of input resolutions prepared in advance;
When it is detected by the detection means that the first input data obtained by the reading is abnormal, among the input pixels constituting the first input data, the first input data detected as having the abnormality Argument setting means for setting the number of thinned pixels that is the number of pixels corresponding to the position;
Correction means for correcting the number of input pixels according to the input resolution set by the input setting means according to the number of thinned pixels set by the interval argument setting means;
After the detection by the detection unit, the document conveyed by the document conveyance unit is read by the reading unit using a reading element corresponding to the number of input pixels corrected by the correction unit, and input pixels corresponding to the reading element are read. Document reading means for obtaining second input data comprising:
Thinning out pixels corresponding to the position of the first input data detected as abnormal by the detection means from the input pixels constituting the second input data obtained by the document reading means; As an image processing means for obtaining output data of a preset output resolution,
An image reading program for causing the control unit to function.

JP2014072977A 2014-03-31 2014-03-31 Image reading apparatus and image reading program Active JP6156230B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014072977A JP6156230B2 (en) 2014-03-31 2014-03-31 Image reading apparatus and image reading program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014072977A JP6156230B2 (en) 2014-03-31 2014-03-31 Image reading apparatus and image reading program

Publications (2)

Publication Number Publication Date
JP2015195523A true JP2015195523A (en) 2015-11-05
JP6156230B2 JP6156230B2 (en) 2017-07-05

Family

ID=54434201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014072977A Active JP6156230B2 (en) 2014-03-31 2014-03-31 Image reading apparatus and image reading program

Country Status (1)

Country Link
JP (1) JP6156230B2 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03241968A (en) * 1990-02-20 1991-10-29 Canon Inc Picture reader
JPH03285476A (en) * 1990-03-31 1991-12-16 Canon Inc Picture reader
JPH10233925A (en) * 1997-02-17 1998-09-02 Ricoh Co Ltd Image reader
JP2000050082A (en) * 1998-07-31 2000-02-18 Minolta Co Ltd Image input device
JP2002232645A (en) * 2001-01-31 2002-08-16 Canon Inc Image reader
JP2003101737A (en) * 2001-03-05 2003-04-04 Ricoh Co Ltd Image-processing apparatus and image-reading apparatus
JP2003163804A (en) * 2001-11-27 2003-06-06 Ricoh Co Ltd Image reading apparatus
JP2007144885A (en) * 2005-11-29 2007-06-14 Seiko Epson Corp Method for judgment of presence or absence of reading of density of foreign object and method for calculation of representative value of density of test pattern
JP2009206539A (en) * 2008-02-26 2009-09-10 Kyocera Mita Corp Image reader and image forming apparatus including the same
JP2014033439A (en) * 2012-07-12 2014-02-20 Sharp Corp Image processing apparatus, image forming apparatus, program, and recording medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03241968A (en) * 1990-02-20 1991-10-29 Canon Inc Picture reader
JPH03285476A (en) * 1990-03-31 1991-12-16 Canon Inc Picture reader
JPH10233925A (en) * 1997-02-17 1998-09-02 Ricoh Co Ltd Image reader
JP2000050082A (en) * 1998-07-31 2000-02-18 Minolta Co Ltd Image input device
JP2002232645A (en) * 2001-01-31 2002-08-16 Canon Inc Image reader
JP2003101737A (en) * 2001-03-05 2003-04-04 Ricoh Co Ltd Image-processing apparatus and image-reading apparatus
JP2003163804A (en) * 2001-11-27 2003-06-06 Ricoh Co Ltd Image reading apparatus
JP2007144885A (en) * 2005-11-29 2007-06-14 Seiko Epson Corp Method for judgment of presence or absence of reading of density of foreign object and method for calculation of representative value of density of test pattern
JP2009206539A (en) * 2008-02-26 2009-09-10 Kyocera Mita Corp Image reader and image forming apparatus including the same
JP2014033439A (en) * 2012-07-12 2014-02-20 Sharp Corp Image processing apparatus, image forming apparatus, program, and recording medium

Also Published As

Publication number Publication date
JP6156230B2 (en) 2017-07-05

Similar Documents

Publication Publication Date Title
US8749850B2 (en) Image reading apparatus and method of controlling the apparatus
JP2007143014A (en) Image reading apparatus and image reading method
JP5987016B2 (en) Image reading apparatus and image forming apparatus
JP2015198389A (en) Image reader and control method
JP6179443B2 (en) Image reading apparatus and image reading program
KR20080039159A (en) Scanning device and shading correction method
JP2007300448A (en) Image reading apparatus
JP2010074288A (en) Image reader and image reading method
JP6156230B2 (en) Image reading apparatus and image reading program
JP6390251B2 (en) Image reading apparatus, image forming apparatus, and program
US10484558B2 (en) Reading apparatus, control method and storage medium storing program thereof
JP6064390B2 (en) Image reading apparatus, image reading system, image reading program, and portable terminal program
EP2575345B1 (en) Image reading apparatus and document reading method
US20080158623A1 (en) Scanner Capable of Selecting Scanning Positions and Scanning Method for the Scanner
JP2006135631A (en) Image reading device
JP6361796B2 (en) Image reading apparatus and image reading program
KR20130143454A (en) Image forming apparatus and method of controlling the same
JP2012054687A (en) Image reading apparatus, image forming apparatus and image reading method
JP2023115486A (en) Image reading apparatus, image reading system and control method of image reading apparatus
JP5901560B2 (en) Image processing device
JP6288514B2 (en) Image reading device
JP6264638B2 (en) Image reading apparatus and image reading system
JP2017118193A (en) Image reader and image forming apparatus
JP5807545B2 (en) Image reading device
JP2015088934A (en) Image reading device, image forming apparatus, image reading method, and image reading program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160318

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170314

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170419

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170509

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170522

R150 Certificate of patent or registration of utility model

Ref document number: 6156230

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150