JP2011109381A - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
JP2011109381A
JP2011109381A JP2009261880A JP2009261880A JP2011109381A JP 2011109381 A JP2011109381 A JP 2011109381A JP 2009261880 A JP2009261880 A JP 2009261880A JP 2009261880 A JP2009261880 A JP 2009261880A JP 2011109381 A JP2011109381 A JP 2011109381A
Authority
JP
Japan
Prior art keywords
image
unit
pixel
white reference
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009261880A
Other languages
Japanese (ja)
Inventor
Akira Shimatani
朗 嶋谷
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita Corp
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 Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2009261880A priority Critical patent/JP2011109381A/en
Publication of JP2011109381A publication Critical patent/JP2011109381A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain an image that reduces an influence of a foreign substance on image quality and an influence of light distribution characteristics of an image reading part and sensitivity difference for each reading sensor pixel, for preventing or reducing an increase in time required for a series of shading correction. <P>SOLUTION: Image data of a document to be generated by abnormal pixels is estimated using image data generated by normal pixels adjacent to the abnormal pixels and having been subjected to shading correction, to generate shading-corrected image data (the image data obtained by reducing a bad influence on the image quality by the foreign substance) which is estimated to be generated by the abnormal pixels by a reading operation for acquiring an document image if there is no foreign substance, and to determine white reference data for the abnormal pixels by inversely calculating image data to which the shading correction has not been applied, using an operational expression to be used for the shading correction. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、複写機や複合機等の画像処理装置の技術分野に属し、特に、シェーディング補正処理を行う際に必要となる白色基準値等の取得に用いる白色基準部材に異物が付着した場合に、該異物による画質の低下を防止又は低減する技術に関する。   The present invention belongs to the technical field of image processing apparatuses such as copiers and multi-function machines, and in particular, when foreign matter adheres to a white reference member used for obtaining a white reference value or the like necessary for performing shading correction processing. The present invention relates to a technique for preventing or reducing deterioration in image quality due to the foreign matter.

一般に、複写機等に備えられる画像読取装置においては、スキャナ(画像読取部)の配光特性や読取りセンサの画素毎の感度差に起因する画像データの誤差を補正するためにシェーディング補正が行われる。このシェーディング補正では、画像読取装置に設けられている白色基準部材(白色基準板や白基準ローラ)をスキャナで読み取り、該白色基準部材の読取りデータ(白色基準値)に基づいて、実際の原稿を当該スキャナで読み取った場合に得られる原稿読取データを補正する。   In general, in an image reading apparatus provided in a copying machine or the like, shading correction is performed to correct an error in image data caused by a light distribution characteristic of a scanner (image reading unit) and a sensitivity difference for each pixel of a reading sensor. . In this shading correction, a white reference member (white reference plate or white reference roller) provided in the image reading device is read by a scanner, and an actual original is read based on reading data (white reference value) of the white reference member. Document reading data obtained when scanned by the scanner is corrected.

この種の画像読取装置においては、白色基準部材のスキャナ読取対象面や、白色基準部材とセンサとの間の光路上に汚れやゴミなどの異物が存在すると、該異物の画像読取位置の画素(異常部分)の画素値が前記異物の影響を受けて誤差が生じ、白色基準値が一様性の無いものとなる。   In this type of image reading apparatus, if a foreign matter such as dirt or dust is present on the scanner reading target surface of the white reference member or the optical path between the white reference member and the sensor, the pixel ( An error occurs in the pixel value of the abnormal portion) due to the influence of the foreign matter, and the white reference value is not uniform.

このような白色基準値を用いてシェーディング補正が行われた画像には、異常部分の画像に縦筋が発生したり、画質が悪化したりするため、正確な原稿読取画像データを得ることができない。このような事態を回避するための対策として、異常部分に対してユーザによる清掃や自動清掃を行うようにすることが考えられるが、ユーザに手間暇をかけることとなる。   In such an image subjected to the shading correction using the white reference value, vertical stripes are generated in the image of the abnormal part or the image quality is deteriorated, so that it is not possible to obtain accurate original read image data. . As a measure for avoiding such a situation, it is conceivable to perform cleaning or automatic cleaning by the user for the abnormal part, but it takes time and effort for the user.

近年、このようなユーザによる清掃や自動清掃を行うことなく、前記異物による画像品質の低下を画像処理によって防止又は低減する技術が提案されている(例えば下記特許文献1,2)。   In recent years, there has been proposed a technique for preventing or reducing deterioration in image quality due to the foreign matter by image processing without performing such cleaning by the user or automatic cleaning (for example, Patent Documents 1 and 2 below).

下記特許文献1には、原稿が読取位置に到達していない間に、読取ローラの周面上を所定幅(Lライン分)に相当する対象領域を読み取ってLライン平均値を算出すると共に、読取ローラの全周分を読み取って全周平均値を算出し、前記Lライン平均値と全周平均値とを比較することで前記Lライン平均値をシェーディングデータとして採用できるか否かを判断し、採用できない場合には、全周平均値をシェーディングデータとして採用するとともに次回のLライン平均値を取得するための読取対象領域を移動する点が提案されている。   In Patent Document 1 below, while the original does not reach the reading position, the target area corresponding to a predetermined width (for L lines) is read on the peripheral surface of the reading roller to calculate the L line average value, The entire circumference of the reading roller is read to calculate the entire circumference average value, and the L line average value is compared with the entire circumference average value to determine whether the L line average value can be adopted as shading data. In the case where it cannot be adopted, it has been proposed that the average value of the entire circumference is adopted as the shading data and the reading target area for acquiring the next L line average value is moved.

また、下記特許文献2には、白色基準板に対する読取動作により得られた画像データの中に、前記異物の影響を受けた異常な画素が複数連続して存在している場合、その異常画素列の範囲外の2つの正常画素を探索し、前記異常画素列を2等分して、片方の半分を一方の前記正常画素に置換し、他方の半分を他方の前記正常画素に置換する技術が提案されている。   Further, in Patent Document 2 below, when there are a plurality of abnormal pixels continuously affected by the foreign matter in the image data obtained by the reading operation on the white reference plate, the abnormal pixel array A technique of searching for two normal pixels outside the range, dividing the abnormal pixel column into two equal parts, replacing one half with one normal pixel, and replacing the other half with the other normal pixel. Proposed.

特開2002−290671号公報JP 2002-290671 A 特開2002−359742号公報JP 2002-359742 A

しかしながら、前記特許文献1の記載の技術のように、前記Lライン平均値をシェーディングデータとして採用できない場合に、全周平均値をシェーディングデータとして採用すると、ゴミや汚れなどの異物の画像を含んだデータをシェーディングデータとして使用することとなり、適切なシェーディング補正ができないとともに、全周平均値を取得した上でシェーディング補正を行うため、シェーディング補正処理後の画像データが得られるまでに要する時間が長くなる。   However, when the L-line average value cannot be used as shading data as in the technique described in Patent Document 1, if the entire circumference average value is used as shading data, an image of foreign matters such as dust and dirt is included. Data will be used as shading data, and appropriate shading correction will not be possible, and since shading correction will be performed after obtaining the average value for the entire circumference, it will take a long time to obtain image data after shading correction processing. .

また、前記Lライン平均値をシェーディングデータとして採用できない場合に、次回のLライン平均値を取得するための読取対象領域を移動するため、画像読取装置の読取動作に要する時間の長期化を招来する虞がある。   Further, when the L line average value cannot be used as the shading data, the reading target area for acquiring the next L line average value is moved, so that the time required for the reading operation of the image reading apparatus is increased. There is a fear.

前記特許文献2に記載の技術にあっては、シェーディング補正が、前記白色基準板や原稿を照明する照明手段の配光ムラの補正や前記読取動作を行うセンサの感度の補正を画素単位で行うものである事が好ましい点を考慮すると、前記のように単純に正常画素に置換する方法は、配光ムラが不規則に変化していたりセンサの各画素に感度差があったりする場合に、適切なシェーディング補正が行われるとは言い難い。   In the technique described in Patent Document 2, shading correction is performed on a pixel-by-pixel basis to correct light distribution unevenness of the illumination means for illuminating the white reference plate and the original and to correct the sensitivity of the sensor that performs the reading operation. Considering that it is preferable to be a thing, the method of simply replacing with normal pixels as described above is when the unevenness of light distribution changes irregularly or there is a sensitivity difference in each pixel of the sensor. It is hard to say that appropriate shading correction is performed.

本発明は、前記課題を解決するためになされたものであり、一連のシェーディング補正処理に要する時間の増大を防止又は低減しつつ、異物が画質に与える影響と、スキャナ(画像読取部)の配光特性や読取りセンサ画素毎の感度差による影響とを低減した画像を得ることのできる技術を提案することを目的とする。   The present invention has been made to solve the above-described problems. The effect of foreign matter on image quality and the arrangement of a scanner (image reading unit) are prevented while preventing or reducing an increase in the time required for a series of shading correction processes. It is an object of the present invention to propose a technique capable of obtaining an image in which the optical characteristics and the influence due to the sensitivity difference for each reading sensor pixel are reduced.

請求項1に記載の発明は、画像の読取動作を行う画像読取部と、白色の基準となる白色基準部材と、前記白色基準部材に対する画像の読取動作を前記画像読取部に行わせる第1読取制御部と、前記第1読取制御部の指示に基づく読取動作で得られた画像データを、白色の基準値を示す第1白色基準データとして記憶する第1白色基準データ記憶部と、前記第1読取制御部の指示に基づく読取動作で得られた各画素の画像データから前記白色基準部材を含む光路上の異物に起因する異常画像データを検出し、前記画像読取部の各画素のうち前記異常画像データを生成した画素を異常画素として検出する異常画素検出部と、原稿に対する画像の読取動作を画像読取部に行わせる第2読取制御部と、前記第2読取制御部の指示に基づく読取動作で得られた画像データのうち前記原稿の所定領域の画像データに対し、前記第1白色基準データ記憶部に記憶された前記第1白色基準データを用いてシェーディング補正処理を行う第1シェーディング補正処理部と、前記第1シェーディング補正処理部によるシェーディング補正処理後の画像データのうち前記異常画素検出部により検出された前記異常画素を除く所定の画素で生成された画像データを用いて、仮に前記異物が存在しなかった場合に、前記第2読取制御部の指示に基づく読取動作により前記異常画素で生成されたものと推定される画像データであって前記第1シェーディング補正処理後の画像データを、該異常画素についての推定データとして生成する推定データ生成部と、前記推定データ生成部により生成された推定データを用いて、仮に前記異物が存在しなかった場合に、前記第1読取制御部の指示に基づく読取動作により前記異常画素で生成されたものと推定される画像データを、該異常画素についての第2白色基準データとして生成する第2白色基準データ生成部と、前記第2読取制御部の指示に基づく読取動作により前記異常画素で生成された画像データに対し、前記第2白色基準データ生成部により生成された当該異常画素についての第2白色基準データを用いてシェーディング補正処理を行うとともに、前記第2読取制御部の指示に基づく読取動作により前記異常画素以外の画素で生成された画像データに対し、前記第1白色基準データ生成部により生成された当該画素についての第1白色基準データを用いてシェーディング補正処理を行う第2シェーディング補正処理部とを備える画像処理装置である。   According to the first aspect of the present invention, an image reading unit that performs an image reading operation, a white reference member that serves as a white reference, and a first reading that causes the image reading unit to perform an image reading operation on the white reference member. A control unit, a first white reference data storage unit that stores image data obtained by a reading operation based on an instruction from the first reading control unit as first white reference data indicating a white reference value, and the first Abnormal image data caused by a foreign matter on the optical path including the white reference member is detected from image data of each pixel obtained by a reading operation based on an instruction from the reading control unit, and the abnormality among the pixels of the image reading unit is detected. An abnormal pixel detection unit that detects a pixel that has generated image data as an abnormal pixel, a second reading control unit that causes the image reading unit to read an image on a document, and a reading operation based on an instruction from the second reading control unit Gain in A first shading correction processing unit that performs shading correction processing on image data of a predetermined area of the original document using the first white reference data stored in the first white reference data storage unit; The foreign object exists temporarily using image data generated by predetermined pixels excluding the abnormal pixels detected by the abnormal pixel detection unit in the image data after the shading correction processing by the first shading correction processing unit. If not, the image data presumed to be generated by the abnormal pixel by the reading operation based on the instruction of the second reading control unit, and the image data after the first shading correction processing is converted into the abnormal data. An estimation data generation unit that generates the estimation data for the pixel and the estimation data generated by the estimation data generation unit are used. Then, if the foreign matter does not exist, the image data estimated to be generated by the abnormal pixel by the reading operation based on the instruction of the first reading control unit is used as the second white color for the abnormal pixel. A second white reference data generation unit that generates second white reference data as reference data and image data generated by the abnormal pixel by a reading operation based on an instruction from the second reading control unit. The shading correction processing is performed using the second white reference data for the abnormal pixel, and the image data generated by the pixels other than the abnormal pixel by the reading operation based on the instruction of the second reading control unit, A second shady for performing shading correction processing using the first white reference data for the pixel generated by the first white reference data generation unit And an image processing apparatus.

この発明によれば、異常画素における白色の基準データについては、異常画素以外の画素(正常画素)で生成された原稿の画像データに対して前記第1シェーディング補正処理部によるシェーディング補正処理を行った後の画像データを用いて推定することにより前記異物による画質上の悪影響を低減した画像データを生成した上でこの画像データからシェーディング補正処理の逆算により求めるようにしたので、異物が画質に与える影響と、画像読取部の配光ムラや画素毎の感度差による影響とを低減した画像を得ることができる。   According to the present invention, for the white reference data in the abnormal pixel, the shading correction processing by the first shading correction processing unit is performed on the image data of the document generated by the pixel other than the abnormal pixel (normal pixel). Since image data with reduced adverse effects on image quality due to the foreign matter is generated by estimation using subsequent image data, and the image data is obtained by back calculation of shading correction processing, the influence of the foreign matter on the image quality Thus, it is possible to obtain an image in which the light distribution unevenness of the image reading unit and the influence of the sensitivity difference for each pixel are reduced.

そして、請求項1に記載の画像処理装置においては、請求項2に記載の発明のように、前記画像読取部は、n個(n>1)の画素が列を成して構成されているものであり、前記第1読取制御部は、更に、前記画像読取部に備えられる照明部の前記白色基準部材に対する照明動作をオフにした状態で該白色基準部材に対する画像の読取動作を前記画像読取部に行わせ、この第1読取制御部の指示に基づく読取動作で得られた画像データを、黒色の基準値を示す黒色基準データとして生成する黒色基準データ記憶部を更に備え、前記第2読取制御部の指示により得られた画像データのうち前記原稿の所定領域に属する画素に対して前記画素列方向に番号を付したとき、画素k(=1,2,・・・,n−1,n)について、前記黒色基準データ生成部により生成された黒色基準データをB(k)、前記第1白色基準データ記憶部により記憶された第1白色基準データをW(k)、前記第2読取制御部の指示により前記画素で生成された画像データをI(k)とし、画像データの階調数をLとしたとき、前記第1シェーディング補正処理部は、{(I(k)−B(k))/(W(k)−B(k))}×Lを前記画素kについての前記シェーディング補正処理後の画像データIsh(k)とするものであり、前記推定データ生成部は、前記第1シェーディング補正処理部によるシェーディング補正処理後の画像データIsh(k)のうち、前記異常画素i又は複数の異常画素iからなる異常画素群に隣接する画素を含む画素領域内の画素jにより生成された画像データIsh(j)を用いて、仮に前記異物が存在しなかった場合に、前記第2読取制御部の指示に基づく読取動作により前記異常画素iで生成されたと推定される画像であって前記第1シェーディング補正処理部によるシェーディング補正処理後の画像データIsh’(i)を推定データとして生成するものであり、前記第2白色基準データ生成部は、{L(I(i)−B(i))/Ish’(i)}+B(i)を、前記異常画素iについての前記第2白色基準データとして生成するものとするとよい。   In the image processing apparatus according to claim 1, as in the invention according to claim 2, the image reading unit includes n (n> 1) pixels arranged in a row. The first reading control unit further performs an image reading operation with respect to the white reference member in a state where an illumination operation with respect to the white reference member of an illumination unit provided in the image reading unit is turned off. And a black reference data storage unit for generating image data obtained by a reading operation based on an instruction from the first reading control unit as black reference data indicating a black reference value. When numbers in the pixel column direction are assigned to the pixels belonging to the predetermined area of the document in the image data obtained by the instruction of the control unit, the pixel k (= 1, 2,..., N−1, For n), the black reference data generation The black reference data generated in step B is B (k), the first white reference data stored in the first white reference data storage unit is W (k), and is generated in the pixel according to an instruction from the second reading control unit. When the image data is I (k) and the number of gradations of the image data is L, the first shading correction processing unit {(I (k) −B (k)) / (W (k) − B (k))} × L is the image data Ish (k) after the shading correction processing for the pixel k, and the estimated data generation unit performs the shading correction processing by the first shading correction processing unit. Of the subsequent image data Ish (k), the image data Ish (j) generated by the pixel j in the pixel region including the pixel adjacent to the abnormal pixel i or the abnormal pixel group including the abnormal pixels i is used. Temporary When the foreign matter is not present in the image, the image is estimated to be generated at the abnormal pixel i by the reading operation based on the instruction of the second reading control unit, and the shading correction processing by the first shading correction processing unit The subsequent image data Ish ′ (i) is generated as estimated data, and the second white reference data generation unit {L (I (i) −B (i)) / Ish ′ (i)} + B (I) may be generated as the second white reference data for the abnormal pixel i.

請求項3に記載の発明は、請求項1又は2に記載の画像処理装置において、前記原稿の所定領域として、所定の幅を有する原稿の先頭領域としたものである。   According to a third aspect of the present invention, in the image processing apparatus according to the first or second aspect, the predetermined area of the original is a leading area of the original having a predetermined width.

この発明によれば、前記原稿の先頭領域は、画像が形成されていない無地の領域であることが多いことから、前記第1白色基準データや第2白色基準データを取得するための領域として好適である。そして、前記原稿の先頭領域の画像データから前記第1白色基準データや第2白色基準データを取得するようにしたので、原稿の画像データに対するシェーディング補正処理を行うために必要な前記第1白色基準データや第2白色基準データを、原稿全体の画像データを用いて算出する場合に比して、その算出に要する時間を短縮することができ、一連のシェーディング補正処理に要する時間の増大を防止又は低減することができる。   According to the present invention, the leading area of the document is often a plain area where no image is formed, and thus is suitable as an area for acquiring the first white reference data and the second white reference data. It is. Since the first white reference data and the second white reference data are obtained from the image data of the head region of the document, the first white reference necessary for performing shading correction processing on the image data of the document. Compared with the case where the data and the second white reference data are calculated using the image data of the entire document, the time required for the calculation can be shortened, and an increase in the time required for a series of shading correction processes can be prevented. Can be reduced.

請求項4に記載の発明は、請求項1乃至3の何れか一項に記載の画像処理装置において、前記画像読取部を、CCD及びCISのうち少なくとも一方としたものである。   According to a fourth aspect of the present invention, in the image processing apparatus according to any one of the first to third aspects, the image reading unit is at least one of a CCD and a CIS.

この発明によれば、CCD及びCISのうち少なくとも一方で得られる画像について、異物が画質に与える影響と、スキャナ(画像読取部)の配光特性や読取りセンサ画素毎の感度差による影響とを低減した画像を得ることができる。特にCISは、配光ムラや各画素の感度差が大きいため、特に有効なものとなる。   According to the present invention, for an image obtained by at least one of CCD and CIS, the influence of foreign matter on the image quality and the influence of the light distribution characteristics of the scanner (image reading unit) and the sensitivity difference for each reading sensor pixel are reduced. Images can be obtained. In particular, CIS is particularly effective because of uneven light distribution and large sensitivity differences among pixels.

本発明によれば、一連のシェーディング補正処理に要する時間の増大を防止又は低減しつつ、異物が画質に与える影響と、スキャナ(画像読取部)の配光特性や読取りセンサ画素毎の感度差による影響とを低減した画像を得ることができる。   According to the present invention, an increase in time required for a series of shading correction processes is prevented or reduced, and the influence of foreign matter on image quality, light distribution characteristics of a scanner (image reading unit), and sensitivity difference for each reading sensor pixel. An image with reduced influence can be obtained.

本発明に係る画像処理装置の一実施形態である複合機1の内部構成を模式的に示した縦断面図である。1 is a longitudinal sectional view schematically showing an internal configuration of a multifunction machine 1 which is an embodiment of an image processing apparatus according to the present invention. 原稿給紙部及びスキャナ部の内部拡大図である。FIG. 3 is an enlarged view of the inside of a document feeding unit and a scanner unit. 複合機の電気的な構成を示すブロック図である。FIG. 3 is a block diagram illustrating an electrical configuration of the multifunction machine. 異物に起因して生じる筋状の画像を示す図である。It is a figure which shows the streak-like image resulting from a foreign material. シェーディング補正部の詳細な構成を示すブロック図である。It is a block diagram which shows the detailed structure of a shading correction | amendment part. 白基準メモリ及び黒基準メモリに格納されるテーブルを示す図である。It is a figure which shows the table stored in a white reference memory and a black reference memory. 異常画素候補検出部による異常画素候補の検出対象となる原稿の所定の先頭領域の説明図である。FIG. 6 is an explanatory diagram of a predetermined leading area of a document that is a detection target of abnormal pixel candidates by an abnormal pixel candidate detection unit. 推測値演算部の演算で用いる画像データを生成する正常画素の説明図である。It is explanatory drawing of the normal pixel which produces | generates the image data used by the calculation of an estimated value calculating part. 推測値演算部による推測データの演算方法の説明図である。It is explanatory drawing of the calculation method of the estimated data by an estimated value calculating part. 第1及び第2読取制御部とシェーディング補正部とによる一連のシェーディング補正処理を示すフローチャートである。It is a flowchart which shows a series of shading correction processes by the 1st and 2nd reading control part and a shading correction part. 黒色基準データB(k)、白色基準データW(k)、原稿の画像データI(k)及び第1シェーディング補正後の原稿の画像データIsh(k)のグラフを示す図である。FIG. 6 is a graph showing black reference data B (k), white reference data W (k), document image data I (k), and document image data Ish (k) after the first shading correction.

以下、本発明に係る画像処理装置の実施形態について図面を参照して説明する。尚、以下の実施形態では、本発明に係る画像処理装置の一実施形態として、カラーコピー、スキャナ、ファクシミリ、プリンタ等の機能を備えた複合機に集約した形態を例に説明する。   Embodiments of an image processing apparatus according to the present invention will be described below with reference to the drawings. In the following embodiments, as an embodiment of an image processing apparatus according to the present invention, an embodiment in which functions are integrated in a multifunction machine having functions such as a color copy, a scanner, a facsimile, and a printer will be described as an example.

図1は、本実施形態に係る複合機1の内部構成を模式的に示した縦断面図である。図1に示す複合機1は、大きく分けると画像読取部2と装置本体3とからなる。画像読取部2は、原稿給紙部21とスキャナ部22を備えて構成される。原稿給紙部21は、ADFを実現するものであり、原稿トレイ241、給紙ローラ232、搬送ドラム233、排紙ローラ対234及び排紙トレイ235を有する。   FIG. 1 is a vertical cross-sectional view schematically showing the internal configuration of the multifunction machine 1 according to the present embodiment. 1 is roughly composed of an image reading unit 2 and an apparatus body 3. The image reading unit 2 includes a document feeding unit 21 and a scanner unit 22. The document feeder 21 realizes ADF, and includes a document tray 241, a paper feed roller 232, a transport drum 233, a paper discharge roller pair 234, and a paper discharge tray 235.

原稿トレイ241は、原稿が載置される場所であり、原稿トレイ241に載置された原稿は1枚ずつ給紙ローラ232によって取り込まれて搬送ドラム233へ搬送される。搬送ドラム233を経由した原稿は排紙ローラ234によって排紙トレイ235へ排出される。   The document tray 241 is a place where the document is placed. The documents placed on the document tray 241 are taken one by one by the paper feed roller 232 and conveyed to the conveyance drum 233. The document that has passed through the transport drum 233 is discharged to a discharge tray 235 by a discharge roller 234.

スキャナ部22は、原稿の画像を光学的に読み取って画像データを生成するものであり、装置本体3に設けられている。スキャナ部22は、コンタクトガラス221、光源222、第1ミラー223、第2ミラー224、第3ミラー225、第1キャリッジ226、第2キャリッジ227、結像レンズ228、ラインセンサであるCCD(Charge Coupled Device)229を備える。   The scanner unit 22 optically reads an image of a document and generates image data, and is provided in the apparatus main body 3. The scanner unit 22 includes a contact glass 221, a light source 222, a first mirror 223, a second mirror 224, a third mirror 225, a first carriage 226, a second carriage 227, an imaging lens 228, and a CCD (Charge Coupled). Device) 229.

スキャナ部22は、光源222として冷陰極蛍光管等の白色蛍光ランプが用いられ、前記第1ミラー223、第2ミラー224、第3ミラー225、第1キャリッジ226、第2キャリッジ227及び結像レンズ228により、原稿からの光をCCD229に導くものである。スキャナ部22は、光源222として冷陰極蛍光管等の白色蛍光ランプを用いていることから、光源として3色LED等が用いられる後述のCIS231よりも色再現性に優れる。   In the scanner unit 22, a white fluorescent lamp such as a cold cathode fluorescent tube is used as the light source 222, and the first mirror 223, the second mirror 224, the third mirror 225, the first carriage 226, the second carriage 227, and the imaging lens. 228 guides light from the document to the CCD 229. Since the scanner unit 22 uses a white fluorescent lamp such as a cold cathode fluorescent tube as the light source 222, it is superior in color reproducibility to the CIS 231 described later in which a three-color LED or the like is used as the light source.

CIS231は、ラインセンサであり、原稿搬送路においてスキャナ部22による読取位置よりも原稿搬送方向下流側に設けられている。CIS231は、原稿搬送路において、スキャナ部22によって読み取られる原稿面とは反対側の面を読み取る位置に設けられている。   The CIS 231 is a line sensor and is provided on the downstream side of the document conveyance direction with respect to the reading position of the scanner unit 22 in the document conveyance path. The CIS 231 is provided at a position for reading a surface opposite to the document surface read by the scanner unit 22 in the document conveyance path.

コンタクトガラス221は、原稿を載置する面を構成するものであり、光源222及び第1ミラー223は、第1キャリッジ226によって支持されており、第2ミラー224及び第3ミラー225は、第2キャリッジ227によって支持されている。   The contact glass 221 constitutes a surface on which an original is placed, the light source 222 and the first mirror 223 are supported by the first carriage 226, and the second mirror 224 and the third mirror 225 are the second It is supported by a carriage 227.

画像読取部2の原稿読取方法としては、コンタクトガラス221上に載置された原稿をスキャナ部22が読み取るフラットベッド読取モードと、原稿をADFによって取り込み、その搬送途中で原稿を読み取るADF読取モードがある。   As a document reading method of the image reading unit 2, there are a flatbed reading mode in which the scanner unit 22 reads a document placed on the contact glass 221 and an ADF reading mode in which the document is read by the ADF and the document is read during the conveyance. is there.

フラットベッド読取モードでは、光源222がコンタクトガラス221上に載置された原稿を照射し、一次元のイメージセンサであるCCD229の各画素が並ぶ主走査方向1ライン分の反射光が第1ミラー223、第2ミラー224、第3ミラー225の順に反射して、結像レンズ228に入射する。結像レンズ228に入射した光はCCD229の受光面で結像される。このような動作が、主走査方向と直交する方向(副走査方向、矢印Y方向)への第1キャリッジ226及び第2キャリッジ227の移動と並行して1ラインずつ実施される。CCD229は、1ライン分の原稿の画像データを同時に処理し、画像データを1ライン単位でA/D変換部216(図3参照)に出力する。   In the flat bed reading mode, the light source 222 irradiates the document placed on the contact glass 221, and the reflected light for one line in the main scanning direction in which the pixels of the CCD 229 that is a one-dimensional image sensor are arranged is the first mirror 223. The second mirror 224 and the third mirror 225 are reflected in this order and enter the imaging lens 228. The light incident on the imaging lens 228 is imaged on the light receiving surface of the CCD 229. Such an operation is performed line by line in parallel with the movement of the first carriage 226 and the second carriage 227 in the direction orthogonal to the main scanning direction (sub-scanning direction, arrow Y direction). The CCD 229 simultaneously processes the image data of the original for one line, and outputs the image data to the A / D converter 216 (see FIG. 3) in units of one line.

ADF読取モードでは、原稿トレイ241に載置された原稿が給紙ローラ232によって原稿搬送経路に1枚ずつ取り込まれ、搬送ドラム233から排紙トレイ235への搬送経路に設けられた画像読取位置230上を原稿が通過するとき、光源222が原稿を照射し、主走査1ライン分の反射光が第1ミラー223、第2ミラー224、第3ミラー225の順に反射して、結像レンズ228に入射する。結像レンズ228に入射した光はCCD229の受光面で結像される。このような動作が、搬送ドラム233による原稿の搬送と並行して1ラインずつ実施される。CCD229は、1ライン分の原稿の画像データを同時に処理し、画像データを1ライン単位でA/D変換部216(図3参照)に出力する。尚、以下の説明において、特に記載のないものについては、ADF読取モードによって原稿を自動給紙し、画像の読み取りを行うことを前提に説明を行う。   In the ADF reading mode, the originals placed on the original tray 241 are taken into the original conveying path one by one by the paper feed roller 232, and the image reading position 230 provided in the conveying path from the conveying drum 233 to the discharge tray 235. When the document passes above, the light source 222 irradiates the document, and the reflected light for one main scanning line is reflected in the order of the first mirror 223, the second mirror 224, and the third mirror 225 to the imaging lens 228. Incident. The light incident on the imaging lens 228 is imaged on the light receiving surface of the CCD 229. Such an operation is performed line by line in parallel with the conveyance of the document by the conveyance drum 233. The CCD 229 simultaneously processes the image data of the original for one line, and outputs the image data to the A / D converter 216 (see FIG. 3) in units of one line. In the following description, those not specifically described will be described on the assumption that an original is automatically fed in the ADF reading mode and an image is read.

更に、原稿給紙部21は切換ガイド236、反転ローラ対237及び反転搬送路238からなる原稿反転機構を有する。1回目のADF読み取りによって表面(原稿の一方の面)が読み取られた原稿を、原稿反転機構を用いて反転させて再搬送することによって、再度CCD229によって裏面(原稿の他方の面)の読み取りが行わせることができる。この原稿反転機構は、両面読み取り時にのみ動作し、片面読み取り時は動作しない。片面読み取り時及び両面読み取り時において裏面の読み取り後、切換ガイド236は上側に切り替えられ、搬送ドラム233を経た原稿は排紙ローラ対234によって排紙トレイ235に排紙される。両面読み取り時における表面読み取り後、切換ガイド236は下側に切り替えられ、搬送ドラム233を経た原稿は反転ローラ対237のニップ部へ搬送される。その後、切換ガイド236は上側へ切り替わって反転ローラ対237が逆回転することにより、原稿は反転搬送路238を介して搬送ドラム233へ再搬送される。以下、原稿反転機構を用いて原稿の両面を読み取らせるモードを両面反転読取モード又は高画質モードと表記する。   Further, the document feeder 21 has a document reversing mechanism including a switching guide 236, a reversing roller pair 237, and a reversing conveyance path 238. The original whose surface (one side of the original) is read by the first ADF reading is reversed using the original reversing mechanism and re-conveyed, so that the CCD 229 can read the back side (the other side of the original) again. Can be done. This document reversing mechanism operates only when reading both sides, and does not operate when reading one side. After reading the back side during single-sided reading and double-sided reading, the switching guide 236 is switched to the upper side, and the document that has passed through the transport drum 233 is discharged to the discharge tray 235 by the discharge roller pair 234. After the front side reading at the time of double-sided reading, the switching guide 236 is switched to the lower side, and the document that has passed through the conveying drum 233 is conveyed to the nip portion of the reverse roller pair 237. Thereafter, the switching guide 236 is switched to the upper side and the reverse roller pair 237 rotates in the reverse direction, whereby the original is re-conveyed to the conveyance drum 233 via the reverse conveyance path 238. Hereinafter, a mode in which both sides of a document are read using the document reversing mechanism is referred to as a double-sided reversal reading mode or a high image quality mode.

更に、本実施の形態の画像読取部2は、ADF読取モード時において、前記で説明したように原稿の搬送途中でCCD229によって原稿の表面の読み取りを行わせると同時に、CIS231によって原稿の裏面の読み取りを行わせることが可能である。つまり、原稿トレイ241から給紙された原稿は画像読取位置230上を通過するときにCCD229によって表面が読み取られ、更にCIS231を通過する際に裏面が読み取られる。このようにCCD229とCIS231を用いることで、ワンパスで原稿の両面の読み取りが可能となる。   Further, in the ADF reading mode, the image reading unit 2 according to the present embodiment causes the CCD 229 to read the front surface of the document while the document is being conveyed as described above, and at the same time reads the back side of the document by the CIS 231. Can be performed. That is, the front side of the original fed from the original tray 241 is read by the CCD 229 when passing over the image reading position 230, and the back side is read when passing through the CIS 231. By using the CCD 229 and the CIS 231 in this way, it is possible to read both sides of a document with one pass.

複合機1は、装置本体3と、装置本体3の左方に配設されたスタックトレイ6とを有している。装置本体3は、複数の給紙カセット461と、給紙カセット461から用紙(記録媒体)を1枚ずつ繰り出して記録部(画像形成部)40へ搬送する給紙ローラ462と、給紙カセット461から搬送されてきた用紙に画像を形成する記録部40とを備える。更に手差しトレイ471を備え、この手差しトレイ471には何れの給紙カセットにも収納されていないサイズの用紙や、既に一方の面に画像形成がなされている用紙(裏紙)、OHPシートのような任意の記録媒体が載置可能であり、給紙ローラ472によって1枚ずつ装置本体3内に給紙される。   The multifunction device 1 includes an apparatus main body 3 and a stack tray 6 disposed on the left side of the apparatus main body 3. The apparatus main body 3 includes a plurality of paper feed cassettes 461, a paper feed roller 462 that feeds sheets (recording media) one by one from the paper feed cassette 461 and conveys them to the recording unit (image forming unit) 40, and a paper feed cassette 461. And a recording unit 40 that forms an image on the sheet conveyed from the printer. Further, a manual feed tray 471 is provided. The manual feed tray 471 has a size that is not stored in any paper feed cassette, a paper on which an image is already formed on one side (back paper), or an OHP sheet. An arbitrary recording medium can be placed, and is fed into the apparatus main body 3 one by one by a paper feed roller 472.

記録部40は、感光体ドラム43の表面から残留電荷を除電する除電装置421と、除電後の感光体ドラム43の表面を帯電させる帯電装置422と、スキャナ部22で取得された画像データに基づいてレーザ光を出力して感光体ドラム43表面を露光し、感光体ドラム43の表面に静電潜像を形成する露光装置423と、前記静電潜像に基づいて感光体ドラム43上に、シアン(C)、マゼンタ(M)、イエロー(Y)及びブラック(K)の各色のトナー像を形成する現像装置44C、44M、44Y、44Kと、感光体ドラム43に形成された各色のトナー画像が転写されて重ね合わせされる転写ドラム49と、転写ドラム49上のトナー像を用紙に転写させる転写装置41と、トナー像が転写された用紙を加熱してトナー像を用紙に定着させる定着装置45とを備えている。なお、シアン、マゼンタ、イエロー及びブラックの各色に対するトナーの供給は、不図示のトナー供給容器(トナーカートリッジ)から行われる。また、記録部40を通過した用紙をスタックトレイ6又は排出トレイ48まで搬送する搬送ローラ対463及び464等が設けられている。   The recording unit 40 is based on a charge eliminating device 421 that removes residual charges from the surface of the photosensitive drum 43, a charging device 422 that charges the surface of the photosensitive drum 43 after charge removal, and image data acquired by the scanner unit 22. The laser beam is output to expose the surface of the photosensitive drum 43, and an exposure device 423 that forms an electrostatic latent image on the surface of the photosensitive drum 43, and on the photosensitive drum 43 based on the electrostatic latent image, Developing devices 44C, 44M, 44Y, and 44K that form toner images of each color of cyan (C), magenta (M), yellow (Y), and black (K), and toner images of each color that are formed on the photosensitive drum 43 A transfer drum 49 on which toner images are transferred, a transfer device 41 that transfers the toner image on the transfer drum 49 to a sheet, and a sheet on which the toner image has been transferred is heated to set the toner image on the sheet. And a fixing device 45 for. Note that toner is supplied to each color of cyan, magenta, yellow, and black from a toner supply container (toner cartridge) (not shown). Further, conveyance roller pairs 463 and 464 that convey the sheet that has passed through the recording unit 40 to the stack tray 6 or the discharge tray 48 are provided.

用紙の両面に画像を形成する場合は、記録部40によって用紙の一方の面に画像の形成が施された後、この用紙を排出トレイ48側の搬送ローラ対463にニップされた状態にする。この状態で搬送ローラ対463を逆回転させて用紙をスイッチバックさせ、用紙を用紙搬送路Lに送って記録部40の上流域に再度搬送し、記録部40によって他方の面に画像の形成が施された後、用紙をスタックトレイ6又は排出トレイ48に排出する。   When forming images on both sides of the paper, after the image is formed on one side of the paper by the recording unit 40, the paper is nipped between the pair of transport rollers 463 on the discharge tray 48 side. In this state, the transport roller pair 463 is rotated in the reverse direction to switch back the paper, and the paper is sent to the paper transport path L to be transported again to the upstream area of the recording unit 40. The recording unit 40 forms an image on the other surface. After being applied, the paper is discharged to the stack tray 6 or the discharge tray 48.

また、装置本体3の前方には、操作画面や各種メッセージ等の表示画面を表示する、例えばタッチパネルを備えた表示部51と、種々の操作命令を入力するための操作ボタン(数字キー群53、スタートボタン55等)とを有する操作部5が備えられている。表示部51は、LCD(Liquid Crystal Display)やELD(Electronic Luminescent Display)等によって構成され、紙サイズ選択、倍率選択、濃度選択等の選択画面が表示される。   Further, in front of the apparatus main body 3, an operation screen and a display screen such as various messages are displayed. For example, a display unit 51 having a touch panel and operation buttons for inputting various operation commands (numeral key group 53, And an operation unit 5 having a start button 55 and the like. The display unit 51 is configured by an LCD (Liquid Crystal Display), an ELD (Electronic Luminescent Display), or the like, and displays selection screens such as paper size selection, magnification selection, and density selection.

図2は、原稿給紙部21及びスキャナ部22の内部拡大図である。   FIG. 2 is an enlarged view of the inside of the document feeder 21 and the scanner unit 22.

図2に示すように、画像読取位置230から外れた位置であって、スキャナ部22による画像読取が可能な位置には、白色基準部材の一例である白色基準板10が設けられている。白色基準板10は、主走査方向(図2において紙面に直交する方向)に延びるように、コンタクトガラス221に取り付けられた白色の帯板状部材である。   As shown in FIG. 2, the white reference plate 10, which is an example of a white reference member, is provided at a position deviated from the image reading position 230 and capable of image reading by the scanner unit 22. The white reference plate 10 is a white belt-like member attached to the contact glass 221 so as to extend in the main scanning direction (direction orthogonal to the paper surface in FIG. 2).

また、CIS231に対向する位置であって、CIS231による画像読取が可能な位置には、白色基準部材の他の一例であるシェーディングローラ11が設けられている。シェーディングローラ11は、その回転軸が主走査方向に延び、周面が白色とされたローラ部材である。シェーディングローラ11は、図略の駆動源から供給される動力で回転されることにより、CIS231の画像読取位置に搬送されてくる用紙を排紙ローラ対234に向けて搬送する。   Further, a shading roller 11 as another example of the white reference member is provided at a position facing the CIS 231 and capable of reading an image by the CIS 231. The shading roller 11 is a roller member whose rotating shaft extends in the main scanning direction and whose peripheral surface is white. The shading roller 11 is rotated by power supplied from a driving source (not shown), thereby conveying the sheet conveyed to the image reading position of the CIS 231 toward the paper discharge roller pair 234.

次に、複合機1の電気的な構成を説明する。図3は、複合機1の電気的な構成を示すブロック図である。   Next, the electrical configuration of the multifunction machine 1 will be described. FIG. 3 is a block diagram illustrating an electrical configuration of the multifunction machine 1.

図3に示すように、複合機1は、CPU211と、RAM212と、ROM213と、第1読取制御部214と、第2読取制御部215と、A/D変換部216と、シェーディング補正部217と、画像処理部218とを備え、これらの各部211〜218は、データバスBUSによって互いに通信可能に接続されている。   As shown in FIG. 3, the multifunction device 1 includes a CPU 211, a RAM 212, a ROM 213, a first reading control unit 214, a second reading control unit 215, an A / D conversion unit 216, and a shading correction unit 217. The image processing unit 218 is connected to each other so as to be communicable with each other via a data bus BUS.

CPU211は、複合機1の全体的な動作制御を司るものであり、ROM212や図略のHDDに記憶されているプログラムに従って複合機1における各部の動作を制御する。RAM212は、CPU211による前記プログラムに従った複合機1の各部の制御を行う時の作業領域として用いられるものである。ROM213は、前記プログラムを記憶するものである。   The CPU 211 controls the overall operation of the multifunction device 1 and controls the operation of each unit in the multifunction device 1 according to a program stored in the ROM 212 or an unillustrated HDD. The RAM 212 is used as a work area when the CPU 211 controls each part of the multifunction machine 1 according to the program. The ROM 213 stores the program.

ところで、通常、スキャナ部22の光源222やCIS231の光源231aによる照明の配光ムラや、CCD229及びCIS231の各画素間に感度差がある。このような配光ムラや画素の感度差があると、同一の色に対する各画素の画素値に誤差が生じる。   By the way, normally, there is uneven light distribution of illumination by the light source 222 of the scanner unit 22 and the light source 231a of the CIS 231 and there is a sensitivity difference between the pixels of the CCD 229 and the CIS 231. If there is such light distribution unevenness or pixel sensitivity difference, an error occurs in the pixel value of each pixel for the same color.

一方、本実施形態に係る複合機1においては、白色基準板10の表面やシェーディングローラ11の周面、或いは白色基準板10とスキャナ部22との間の光路上や、シェーディングローラ11とCIS231との間の光路上に、汚れやゴミなどの異物が進入する場合がある。このような異物が存在している場合、スキャナ部22及びCIS231の各画素のうち、前記異物を捉えた画素で生成される画像データが、該異物が存在しない場合に得られる画像データと異なるものとなって誤差が生じる。   On the other hand, in the multifunction machine 1 according to the present embodiment, the surface of the white reference plate 10, the peripheral surface of the shading roller 11, or the optical path between the white reference plate 10 and the scanner unit 22, the shading roller 11 and the CIS 231 Foreign matter such as dirt and dust may enter the optical path between the two. When such foreign matter is present, among the pixels of the scanner unit 22 and the CIS 231, the image data generated by the pixel capturing the foreign matter is different from the image data obtained when the foreign matter is not present An error occurs.

このような誤差が生じると、得られる画像データが、該異物が存在しない場合のシェーディング補正処理後の画像データと異なることとなる。その結果、前記異物を捉えた画素の画素位置に対応する、用紙の主走査方向の位置に、副走査方向に延びる筋状の画像(図4参照)が形成されたり、画像全体の画質が低下したりする。   When such an error occurs, the obtained image data is different from the image data after the shading correction process when the foreign matter is not present. As a result, a streak-like image (see FIG. 4) extending in the sub-scanning direction is formed at a position in the main scanning direction of the paper corresponding to the pixel position of the pixel capturing the foreign matter, or the image quality of the entire image is degraded. To do.

本実施形態では、このような光源222,231aによる照明の配光ムラやCCD229及びCIS231の各画素の感度差に起因する画質への影響と、前記異物に起因する画質への影響とを解消するための処理を行う。前者の影響を解消するための処理として、後述するシェーディング補正処理が行われる。   In the present embodiment, the influence on the image quality due to the uneven light distribution of the illumination by the light sources 222 and 231a and the sensitivity difference between the pixels of the CCD 229 and the CIS 231 and the influence on the image quality due to the foreign matter are eliminated. Process. As a process for eliminating the influence of the former, a shading correction process described later is performed.

ここで、前者の影響と後者の影響との両方の悪影響を受けた画素については、各影響に起因する誤差をそれぞれ含むこととなるが、一方の影響に起因する誤差と他方の影響に起因する誤差との比率を当該画素の画像データから知ることはできない。   Here, regarding the pixels that are affected by both the influence of the former and the influence of the latter, an error caused by each influence is included, but the error caused by one influence and the influence caused by the other influence are included. The ratio with the error cannot be known from the image data of the pixel.

そこで、本実施形態に係る複合機1においては、このような不具合を解消するため、次のような処理を行うようにしている。なお、以下の説明においては、スキャナ部22及びCIS231を総称して画像読取部といい、また、白色基準板10及びシェーディングローラ11を総称して白色基準部材というものとする。   Therefore, in the multifunction machine 1 according to the present embodiment, the following processing is performed in order to eliminate such a problem. In the following description, the scanner unit 22 and the CIS 231 are collectively referred to as an image reading unit, and the white reference plate 10 and the shading roller 11 are collectively referred to as a white reference member.

第1読取制御部214は、画像読取部(スキャナ部22及びCIS231)の読取動作を制御するものである。画像読取部の読取動作とは、具体的には、スキャナ部22の光源222やCIS231の光源231aによる照明動作、スキャナ部22の第1及び第2キャリッジ226,227の移動動作、スキャナ部22のCCD229やCIS231による受光動作である。   The first reading control unit 214 controls the reading operation of the image reading unit (the scanner unit 22 and the CIS 231). Specifically, the reading operation of the image reading unit includes an illumination operation by the light source 222 of the scanner unit 22 and the light source 231a of the CIS 231, an operation of moving the first and second carriages 226 and 227 of the scanner unit 22, and the operation of the scanner unit 22. This is a light receiving operation by the CCD 229 or the CIS 231.

第1読取制御部214は、スタートボタン55により画像読取指示(画像形成指示を含む)が入力されると、スキャナ部22及びCIS231のうち、その画像読取指示に基づいて画像読取動作を実施すべき画像読取部を認識し、その画像読取部によって原稿に対する画像の読取動作を行う前に、該画像読取部に対応する白色基準部材に対する画像の読取動作を該画像読取部に行わせる。   When an image reading instruction (including an image forming instruction) is input from the start button 55, the first reading control unit 214 should perform an image reading operation based on the image reading instruction of the scanner unit 22 and the CIS 231. Before the image reading unit is recognized and the image reading unit performs an image reading operation on the document, the image reading unit is caused to perform an image reading operation on the white reference member corresponding to the image reading unit.

すなわち、画像読取動作を実施すべき画像読取部がスキャナ部22の場合、第1読取制御部214は、前記副走査方向において白色基準板10の位置まで第1キャリッジ226及び第2キャリッジ227を移動させる。そして、この状態で、第1読取制御部214は、スキャナ部22の光源222により白色基準板10の白色面を照射しながら該白色面に対する画像の読取動作を副走査方向に複数ライン分だけスキャナ部22に行わせる。これにより、白色基準板10についてのシェーディング補正用の白色基準値を示す画像データがスキャナ部22により生成され、該画像データが前記スキャナ部22から白色基準データとして出力される。   That is, when the image reading unit to perform the image reading operation is the scanner unit 22, the first reading control unit 214 moves the first carriage 226 and the second carriage 227 to the position of the white reference plate 10 in the sub-scanning direction. Let In this state, the first reading control unit 214 scans the white surface of the white reference plate 10 by irradiating the white surface of the white reference plate 10 with the light source 222 of the scanner unit 22 for a plurality of lines in the sub-scanning direction. Let the unit 22 perform it. As a result, image data indicating a white reference value for shading correction for the white reference plate 10 is generated by the scanner unit 22, and the image data is output from the scanner unit 22 as white reference data.

また、第1読取制御部214は、前記光源222を消灯して白色基準板10の白色面に対する光の照射を行わないで該白色面に対する画像の読取動作を副走査方向に複数ライン分だけスキャナ部22に行わせる。これにより、白色基準板10についてのシェーディング補正用の黒色基準値を示す画像データがスキャナ部22により生成され、該画像データが前記スキャナ部22から黒色基準データとして出力される。   Further, the first reading control unit 214 turns off the light source 222 and does not irradiate the white surface of the white reference plate 10 with light, and scans the white surface for a plurality of lines in the sub-scanning direction. Let the unit 22 perform it. As a result, image data indicating the black reference value for shading correction for the white reference plate 10 is generated by the scanner unit 22, and the image data is output from the scanner unit 22 as black reference data.

一方、画像読取動作を実施すべき画像読取部がCIS231の場合、第1読取制御部214は、CIS231の光源231aによりシェーディングローラ11の周面を照射しながら該周面に対する画像の読取動作を副走査方向に複数ライン分前記CIS231に行わせる。これにより、シェーディングローラ11についてのシェーディング補正用の白色基準値を示す画像データがCIS231により生成され、該画像データが前記CIS231から白色基準データとして出力される。   On the other hand, when the image reading unit to be subjected to the image reading operation is the CIS 231, the first reading control unit 214 performs the image reading operation on the peripheral surface while irradiating the peripheral surface of the shading roller 11 with the light source 231a of the CIS 231. The CIS 231 is caused to perform a plurality of lines in the scanning direction. As a result, image data indicating a white reference value for shading correction for the shading roller 11 is generated by the CIS 231, and the image data is output from the CIS 231 as white reference data.

また、第1読取制御部214は、前記光源231aを消灯してシェーディングローラ11の周面に対する光の照射を行わないで該周面に対する画像の読取動作を副走査方向に複数ライン分だけCIS231に行わせる。これにより、シェーディングローラ11についてのシェーディング補正用の黒色基準値を示す画像データがCIS231により生成され、該画像データが前記CIS231から黒色基準データとして出力される。   Further, the first reading control unit 214 turns off the light source 231a and does not irradiate the circumferential surface of the shading roller 11 with light, and performs the image reading operation on the circumferential surface to the CIS 231 for a plurality of lines in the sub-scanning direction. Let it be done. As a result, image data indicating the black reference value for shading correction for the shading roller 11 is generated by the CIS 231, and the image data is output from the CIS 231 as black reference data.

本実施形態においては、前記読取動作は、複数ライン分実施され、主走査方向に並ぶ各画素の位置ごとに、前記白色基準板10についての白色基準データ、前記白色基準板10についての黒色基準データ、前記シェーディングローラ11についての白色基準データ及びシェーディングローラ11についての黒色基準データがそれぞれ前記複数ラインずつ前記スキャナ部22及びCIS231から出力される。   In the present embodiment, the reading operation is performed for a plurality of lines, and for each pixel position aligned in the main scanning direction, white reference data for the white reference plate 10 and black reference data for the white reference plate 10. The white reference data for the shading roller 11 and the black reference data for the shading roller 11 are output from the scanner unit 22 and the CIS 231 for each of the plurality of lines.

これらのデータは、それぞれ、図略の平均化処理部により、主走査方向に並ぶ画素ごとに平均化され、この平均化された各白色基準データ及び各黒色基準データが後述する白基準メモリ250及び黒基準メモリ251に出力される。   These data are averaged for each pixel arranged in the main scanning direction by an unillustrated averaging processing unit, and the averaged white reference data and black reference data are stored in a white reference memory 250 and It is output to the black reference memory 251.

したがって、前記白色基準板10についての白色基準データ及び黒色基準データは、CCD229の画素毎に1つずつ算出され、また、前記シェーディングローラ11についての白色基準データ及び黒色基準データは、CIS231の画素毎に1つずつ算出されることとなる。   Accordingly, white reference data and black reference data for the white reference plate 10 are calculated for each pixel of the CCD 229, and white reference data and black reference data for the shading roller 11 are calculated for each pixel of the CIS 231. One at a time.

例えば、スキャナ部22の主走査方向に並ぶ各画素の数(1ラインにおける画素数)をそれぞれn(個)とし、一方の端部から順に番号1,2,・・・,n−1,nを付した場合、スキャナ部22の画素1については白色基準データW(1)と黒色基準データB(1)が、画素2については白色基準データW(2)と黒色基準データB(2)が、画素nについては白色基準データW(n)と黒色基準データB(n)が算出される。   For example, the number of pixels arranged in the main scanning direction of the scanner unit 22 (the number of pixels in one line) is n (number), and numbers 1, 2,..., N−1, n are sequentially arranged from one end. , White reference data W (1) and black reference data B (1) are provided for pixel 1 of the scanner unit 22, and white reference data W (2) and black reference data B (2) are provided for pixel 2. For the pixel n, white reference data W (n) and black reference data B (n) are calculated.

なお、前記読取動作を1ライン分だけ実施し、該読取動作で得られた白色基準データ及び黒色基準データをそのまま白基準メモリ250及び黒基準メモリ251に出力するようにしてもよい。   The reading operation may be performed for one line, and the white reference data and the black reference data obtained by the reading operation may be output to the white reference memory 250 and the black reference memory 251 as they are.

第2読取制御部215は、第1読取制御部214の指示に基づく読取動作の終了後に、原稿に対する画像の読取動作をスキャナ部22及びCIS231に行わせるものである。   The second reading control unit 215 causes the scanner unit 22 and the CIS 231 to perform an image reading operation on an original after the reading operation based on an instruction from the first reading control unit 214 is completed.

以下の説明においては、前記のような白色基準データ及び黒色基準データを得るための、前記第1読取制御部214の指示に基づく画像読取部の読取動作を基準値取得用読取動作というものとし、原稿の画像を得るための、前記第2読取制御部214の指示に基づく画像読取部の読取動作を原稿画像取得用読取動作というものとする。   In the following description, the reading operation of the image reading unit based on the instruction of the first reading control unit 214 for obtaining the white reference data and the black reference data as described above is referred to as a reference value acquisition reading operation. The reading operation of the image reading unit based on the instruction of the second reading control unit 214 for obtaining the document image is referred to as a document image acquisition reading operation.

A/D変換部216は、スキャナ部22のCCD229やCIS231から送出されてくるアナログの電気信号からなる読取画像データ(前記白色基準データ及び黒色基準データと原稿の画像データ)を、所定ビット数からなるデジタルの読取画像データに変換するA/D変換処理を行うものである。A/D変換部216は、A/D変換後の読取画像データをシェーディング補正部217や第1及び第2読取制御部214,215等に出力する。   The A / D conversion unit 216 reads the read image data (the white reference data, the black reference data, and the original image data) including analog electrical signals sent from the CCD 229 and the CIS 231 of the scanner unit 22 from a predetermined number of bits. A / D conversion processing for converting into digital read image data is performed. The A / D conversion unit 216 outputs the read image data after A / D conversion to the shading correction unit 217, the first and second reading control units 214 and 215, and the like.

シェーディング補正部217は、前記基準値取得用読取動作で得られた前記白色基準データ及び黒色基準データを用いて、前記原稿画像取得用読取動作で得られた原稿の画像データに対するシェーディング補正を行うものである。図5は、シェーディング補正部217の詳細な構成を示すブロック図である。   The shading correction unit 217 performs shading correction on the document image data obtained by the document image acquisition reading operation using the white reference data and black reference data obtained by the reference value acquisition reading operation. It is. FIG. 5 is a block diagram showing a detailed configuration of the shading correction unit 217.

図5に示すように、シェーディング補正部217は、白基準メモリ250と、黒基準メモリ251と、異常画素候補検出部252と、異常画素候補記憶部253と、シェーディング補正処理部254と、白地判定部255と、異常画素カウント部256と、推測値演算部257と、白基準補正値演算部258と、白基準補正値メモリ259と、切替部260とを備える。   As shown in FIG. 5, the shading correction unit 217 includes a white reference memory 250, a black reference memory 251, an abnormal pixel candidate detection unit 252, an abnormal pixel candidate storage unit 253, a shading correction processing unit 254, and a white background determination. Unit 255, abnormal pixel counting unit 256, estimated value calculation unit 257, white reference correction value calculation unit 258, white reference correction value memory 259, and switching unit 260.

以下の説明においては、スキャナ部22の画素数とCIS231の画素数とは同数nであるものとし、説明の便宜上、スキャナ部22の画素k(k=1,2,・・・,n−1,n)についての白色基準データも、CIS231の画素k(k=1,2,・・・,n−1,n)についての白色基準データも、「W(k)(k=1,2,・・・,n−1,n)」と同一の表現形態で表現し、また、スキャナ部22の画素k(k=1,2,・・・,n−1,n)についての黒色基準データも、CIS231の画素k(k=1,2,・・・,n−1,n)についての黒色基準データも、「B(k)(k=1,2,・・・,n−1,n)」と同一の表現形態で表現するものとする。   In the following description, it is assumed that the number of pixels of the scanner unit 22 and the number of pixels of the CIS 231 are the same number n. For convenience of description, the pixel k of the scanner unit 22 (k = 1, 2,..., N−1). , N) and white reference data for CIS 231 pixels k (k = 1, 2,..., N−1, n) are both “W (k) (k = 1, 2, .., N−1, n) ”and the black reference data for the pixel k (k = 1, 2,..., N−1, n) of the scanner unit 22. Also, the black reference data for the pixel k (k = 1, 2,..., N−1, n) of the CIS 231 is also “B (k) (k = 1, 2,..., N−1, n) "in the same expression form.

白基準メモリ250は、図6に示すように、前記基準値取得用読取動作で得られた前記画像読取部の各画素k(k=1,2,・・・,n−1,n)についての白色基準データW(k)(k=1,2,・・・,n−1,n)をテーブル形式で記憶するものであり、黒基準メモリ251は、前記基準値取得用読取動作で得られた前記画像読取部の各画素k(k=1,2,・・・,n−1,n)についての黒色基準データB(k)(k=1,2,・・・,n−1,n)を記憶するものである。   As shown in FIG. 6, the white reference memory 250 is provided for each pixel k (k = 1, 2,..., N−1, n) of the image reading unit obtained by the reference value acquisition reading operation. White reference data W (k) (k = 1, 2,..., N−1, n) are stored in a table format, and the black reference memory 251 is obtained by the reference value acquisition reading operation. Black reference data B (k) (k = 1, 2,..., N−1) for each pixel k (k = 1, 2,..., N−1, n) of the obtained image reading unit. , N).

なお、図6では図示を省略しているが、白基準メモリ250及び黒基準メモリ251は、スキャナ部22及びCIS231に対応する白色基準データW(k)のテーブルと、黒色基準データB(k)のテーブルとをそれぞれ記憶している。   Although not shown in FIG. 6, the white reference memory 250 and the black reference memory 251 include a table of white reference data W (k) corresponding to the scanner unit 22 and the CIS 231, and black reference data B (k). Are stored in the table.

異常画素候補検出部252は、前記基準値取得用読取動作で得られた前記画像読取部の各画素k(k=1,2,・・・,n−1,n)についての前記白色基準データW(k)(k=1,2,・・・,n−1,n)と、原稿の画像が存在しない無地と想定される、原稿の余白部分に相当する所定の先頭領域(図7参照)に対する前記原稿画像取得用読取動作で各画素k(k=1,2,・・・,n−1,n)から得られた原稿の画像データI(k)(k=1,2,・・・,n−1,n)とにつき、同一画素に係るもの同士をそれぞれ比較し、白色基準部材に異物が付着しているなどに起因して白色基準データの輝度が低くなることにより原稿の画像データが前記白色基準データよりも相対的に高い輝度を示すものとなっている画素を異常画素の候補として検出する。   The abnormal pixel candidate detection unit 252 includes the white reference data for each pixel k (k = 1, 2,..., N−1, n) of the image reading unit obtained by the reference value acquisition reading operation. W (k) (k = 1, 2,..., N−1, n) and a predetermined head region corresponding to a blank portion of the document, which is assumed to be a solid color where no document image exists (see FIG. 7). ) On the original image data I (k) (k = 1, 2,...) Obtained from each pixel k (k = 1, 2,..., N−1, n) in the original image acquisition reading operation. .., N-1, n) are compared with respect to the same pixel, and the brightness of the white reference data is reduced due to foreign matter adhering to the white reference member. Pixels whose image data shows a relatively higher luminance than the white reference data are marked as abnormal pixels. It is detected as.

なお、前記所定の先頭領域は、副走査方向に並ぶ予め定められた複数ラインを持つ領域(図7の幅Aで示される領域)である。したがって、前記原稿の画像データは、各画素k(k=1,2,・・・,n−1,n)により前記所定の先頭領域におけるライン数だけそれぞれ生成されるが、図略の平均化処理部により、主走査方向に並ぶ画素ごとに平均化されて、この平均化された画像データが、各画素k(k=1,2,・・・,n−1,n)から得られた原稿の画像データI(k)(k=1,2,・・・,n−1,n)として設定され、各画像データI(k)と前記白色基準データW(k)とが比較される。   The predetermined head area is an area having a plurality of predetermined lines arranged in the sub-scanning direction (an area indicated by a width A in FIG. 7). Therefore, the image data of the original is generated by the number of lines in the predetermined head area by each pixel k (k = 1, 2,..., N−1, n), but the average of the illustration is omitted. The processing unit averages the pixels arranged in the main scanning direction, and the averaged image data is obtained from each pixel k (k = 1, 2,..., N−1, n). Original image data I (k) (k = 1, 2,..., N−1, n) is set, and each image data I (k) is compared with the white reference data W (k). .

異常画素候補記憶部253は、前記異常画素候補検出部252により検出された異常画素の候補を記憶するものである。   The abnormal pixel candidate storage unit 253 stores abnormal pixel candidates detected by the abnormal pixel candidate detection unit 252.

シェーディング補正処理部254は、原稿の前記先頭領域に対する前記原稿画像取得用読取動作により前記各画素k(k=1,2,・・・,n−1,n)から得られた画像データを画像読取部の画素ごとに平均化し、その平均化処理後の画像データIave(k)(k=1,2,・・・,n−1,n)に対し、前記白基準メモリ250に記憶されている同一画素kについての白色基準データW(k)(k=1,2,・・・,n−1,n)と、黒色基準メモリ251に記憶されている同一画素kについての黒色基準データB(k)(k=1,2,・・・,n−1,n)とを用いて、下記式(1)に基づくシェーディング補正処理(以下、第1シェーディング補正処理という)を行うものである。   The shading correction processing unit 254 converts the image data obtained from each pixel k (k = 1, 2,..., N−1, n) by the reading operation for document image acquisition with respect to the head region of the document into an image. Averaging is performed for each pixel of the reading unit, and the averaged image data Iave (k) (k = 1, 2,..., N−1, n) is stored in the white reference memory 250. White reference data W (k) (k = 1, 2,..., N−1, n) for the same pixel k and black reference data B for the same pixel k stored in the black reference memory 251. (K) (k = 1, 2,..., N−1, n) is used to perform a shading correction process (hereinafter referred to as a first shading correction process) based on the following formula (1). .

Ish(k)={(Iave(k)−B(k))/(W(k)−B(k))}
×L ・・・(1)
前記Ish(k)は、前記各画素k(k=1,2,・・・,n−1,n)から得られた前記先頭領域についての画像データであって前記第1シェーディング補正処理後の各画素kの画像データであり、「L」は、画像データの階調数である。図11に、黒色基準データB(k)、白色基準データW(k)、原稿の画像データIave(k)及び第1シェーディング補正後の原稿の画像データIsh(k)のグラフの一例を示す。
Ish (k) = {(Iave (k) −B (k)) / (W (k) −B (k))}
× L (1)
The Ish (k) is image data for the head region obtained from each pixel k (k = 1, 2,..., N−1, n), and after the first shading correction processing. The image data of each pixel k, and “L” is the number of gradations of the image data. FIG. 11 shows an example of a graph of black reference data B (k), white reference data W (k), original image data Iave (k), and original image data Ish (k) after the first shading correction.

白地判定部255は、前記原稿の前記先頭領域が白地であるか否かを判定するものである。白地判定部255による白地判定処理は次のような処理が採用可能である。すなわち、白地判定部255は、前記各画素k(1,2,・・・,n−1,n)から得られた原稿の前記先頭領域についての画像データの前記シェーディング補正処理部254による前記第1シェーディング補正処理後の画像データIsh(1),Ish(2),・・・,Ish(n−1),Ish(n)の平均値AVE(Ish)を算出する。すなわち、白地判定部255は、
AVE(Ish)={Ish(1)+Ish(2)+・・・
+Ish(n−1)+Ish(n)}/n
を算出する。
The white background determination unit 255 determines whether or not the leading area of the document is white. The following process can be adopted as the white background determination process by the white background determination unit 255. That is, the white background determination unit 255 performs the first processing by the shading correction processing unit 254 of the image data regarding the head region of the document obtained from each pixel k (1, 2,..., N−1, n). An average value AVE (Ish) of the image data Ish (1), Ish (2),..., Ish (n−1), Ish (n) after one shading correction processing is calculated. That is, the white background determination unit 255
AVE (Ish) = {Ish (1) + Ish (2) +...
+ Ish (n-1) + Ish (n)} / n
Is calculated.

また、白地判定部255は、前記画像データIsh(1),Ish(2),・・・,Ish(n−1),Ish(n)の中で最小の画像データを画像データMIN(Ish)として抽出する。   Further, the white background determination unit 255 determines the smallest image data among the image data Ish (1), Ish (2),..., Ish (n−1), Ish (n) as image data MIN (Ish). Extract as

そして、白地判定部255は、前記平均値AVE(Ish)が予め定められた白平均基準値Lより小さく、且つ、前記最小値MIN(Ish)が予め定められた白地最低基準値Mより大きい場合、すなわち、下記式(2),(3)を同時に満たすとき、前記先頭領域が白地であると判定し、それ以外の場合には、前記先頭領域が白地では無いと判定する。   When the average value AVE (Ish) is smaller than the predetermined white average reference value L and the minimum value MIN (Ish) is larger than the predetermined minimum white background reference value M, the white background determination unit 255 That is, when the following expressions (2) and (3) are satisfied at the same time, it is determined that the leading area is white, and otherwise, it is determined that the leading area is not white.

平均値AVE(Ish)<白平均基準値L ・・・・(2)
最小値MIN(Ish)>白地最低基準値M ・・・(3)
前記式(2)を満たさないときとは、前記基準値取得用読取動作の読取対象とした前記先頭領域が想定以上の白さになっている場合であり、前記式(3)を満たさないときとは、前記先頭領域内に画像が存在する場合である。したがって、白地判定部255は、前記先頭領域が想定以上の白さとはなっておらず、且つ、前記先頭領域内に画像が存在していない場合に、該先頭領域が白地であると判定する。
Average value AVE (Ish) <white average reference value L (2)
Minimum value MIN (Ish)> White background minimum reference value M (3)
The case where the expression (2) is not satisfied is a case where the head area which is the reading target of the reference value acquisition reading operation is whiter than expected, and the expression (3) is not satisfied. Is a case where an image exists in the head area. Accordingly, the white background determination unit 255 determines that the head area is white when the head area is not white as expected and no image exists in the head area.

なお、白平均基準値Lは、予め定められた白色の平均輝度を示す白基準値であり、画像データが例えば256階調で表される場合、例えば220である。また、白地最低基準値Mは、予め定められた白色の最低輝度を示す白地最低基準値であり、画像データが例えば256階調で表される場合、例えば128である。白平均基準値L及び白地最低基準値Mは、ROM213に予め記憶されている。白地判定部255は、この判定結果を白基準補正値演算部258に出力する。   The white average reference value L is a white reference value indicating a predetermined white average luminance, and is 220, for example, when the image data is represented by 256 gradations. The white background minimum reference value M is a white background minimum reference value indicating a predetermined minimum white brightness, and is 128 when the image data is expressed in, for example, 256 gradations. The white average reference value L and the white background minimum reference value M are stored in the ROM 213 in advance. The white background determination unit 255 outputs this determination result to the white reference correction value calculation unit 258.

また、ここでは、画像データ(画素値)の値が大きいほど、白い(輝度が高い)ものとする。画像データの値が大きいほど黒い(輝度が低い)ように設定されている場合には前記式(2),(3)の大小関係は逆になる。   Here, it is assumed that the larger the value of the image data (pixel value), the whiter (the luminance is higher). When the image data is set so as to be black (the luminance is low) as the value of the image data is large, the magnitude relations of the expressions (2) and (3) are reversed.

異常画素カウント部256は、白地判定部255により前記先頭領域が白地であると判定された場合に、異常画素候補記憶部253に記憶された異常画素候補の個数をカウントするものである。   The abnormal pixel counting unit 256 counts the number of abnormal pixel candidates stored in the abnormal pixel candidate storage unit 253 when the white background determination unit 255 determines that the head region is white.

推測値演算部257は、前記各画素k(k=1,2,・・・,n−1,n)から得られた前記先頭領域についての画像データIave(k)(k=1,2,・・・,n−1,n)の前記第1シェーディング補正処理後の画像データIsh(k)(k=1,2,・・・,n−1,n)のうち、前記異常画素候補記憶部253に記憶されている前記異常画素以外の画素(以下、正常画素という)であって予め定められた正常画素の画像データを用いて、仮に前記異物が存在しなかった場合に、前記原稿画像取得用読取動作により前記異常画素で生成されたと推定される前記第1シェーディング補正処理後の画像データ、すなわち、異常画素のシェーディング補正処理後の本来の正しい画像データの推測値を推定データとして生成するものである。   The estimated value calculation unit 257 outputs image data Iave (k) (k = 1, 2, n) about the head region obtained from each pixel k (k = 1, 2,..., N−1, n). .., N−1, n), the abnormal pixel candidate storage among the image data Ish (k) (k = 1, 2,..., N−1, n) after the first shading correction processing. If the foreign object does not exist using image data of predetermined normal pixels that are pixels other than the abnormal pixels (hereinafter referred to as normal pixels) stored in the unit 253, the original image Image data after the first shading correction process estimated to have been generated at the abnormal pixel by the reading operation for acquisition, that is, an estimated value of original correct image data after the shading correction process of the abnormal pixel is generated as estimated data. Is.

例えば、推測値演算部257は、図8に示すように、前記異常画素が画素i〜(i+m)(1<i<n,1≦i+m<n)であったとすると、前記予め定められた正常画素として前記異常画素群に隣接する正常画素(i−1)と正常画素(i+m+1)とを選択し、正常画素(i−1)の画像データIave(i−1)と正常画素(i+m+1)の画像データIave(i+m+1)とを用いた線形補間により、仮に前記異物の付着が無かった場合に、前記原稿画像取得用読取動作により前記異常画素i〜(i+m)で生成されたと推定される画像データであって前記第1シェーディング補正処理後の画像データを推定データIsh’(i)〜Ish’(i+m)として生成する。   For example, as shown in FIG. 8, the estimated value calculation unit 257 assumes that the abnormal pixels are pixels i to (i + m) (1 <i <n, 1 ≦ i + m <n). A normal pixel (i-1) and a normal pixel (i + m + 1) adjacent to the abnormal pixel group are selected as pixels, and the image data Iave (i-1) and normal pixel (i + m + 1) of the normal pixel (i-1) are selected. Image data presumed to have been generated at the abnormal pixels i to (i + m) by the reading operation for document image acquisition by the linear interpolation using the image data Iave (i + m + 1) if the foreign matter is not attached. The image data after the first shading correction processing is generated as estimated data Ish ′ (i) to Ish ′ (i + m).

すなわち、m=10とした場合、図9に示すように、主走査方向における画素の配列を横軸、画像データを縦軸とする2次元座標系に、各画素で生成された原稿の画像データをプロットした場合に、推測値演算部257は、正常画素(i−1)に対応する点P(i−1)と、正常画素(i+11)に対応する点P(i+11)とを通る直線Xを算出し、該直線X上の各異常画素i〜(i+10)に対応する点P(i)〜点P(i+10)に対応する画像データIave(i)〜Iave(i+10)を、仮に前記異物の付着が無かった場合に、前記原稿画像取得用読取動作により前記異常画素i〜(i+10)で生成されたと推定される画像データであって前記第1シェーディング補正処理後の画像データを前記推定データとして生成する。   That is, when m = 10, as shown in FIG. 9, the image data of the document generated by each pixel in a two-dimensional coordinate system in which the pixel arrangement in the main scanning direction is the horizontal axis and the image data is the vertical axis. , The estimated value calculation unit 257 causes the straight line X passing through the point P (i−1) corresponding to the normal pixel (i−1) and the point P (i + 11) corresponding to the normal pixel (i + 11). And the image data Iave (i) to Iave (i + 10) corresponding to the points P (i) to P (i + 10) corresponding to the abnormal pixels i to (i + 10) on the straight line X are temporarily Image data that is estimated to have been generated by the abnormal pixels i to (i + 10) by the document image acquisition reading operation and the image data after the first shading correction processing is the estimated data. Generate as

ここで、第1シェーディング補正処理後の画像データIshは、配光ムラや各画素間の感度差による影響が排除されているので、単純な線形補間等で異常画素iについての正しい推定データIsh’(i)を推定することができる。   Here, since the image data Ish after the first shading correction processing is free from the influence of uneven light distribution and sensitivity difference between the pixels, the correct estimation data Ish ′ for the abnormal pixel i is obtained by simple linear interpolation or the like. (I) can be estimated.

なお、第1シェーディング補正処理前の画像データIave(i)には、配光ムラや各画素間の感度差による影響が含まれているので、仮にこの第1シェーディング補正処理前の画像データIave(i)を用いた単純な線形補間等で異常画素iについての前記推定データIsh’(i)を推定しようとすると、配光ムラや各画素間の感度差による影響が異常画素iについて算出される後述の補正白色基準データW’(i)に正しく反映されなくなり、この補正白色基準データW’で異常画素iから出力される原稿の画像データに対してシェーディング補正処理を行うと、該画像データから配光ムラや各画素間の感度差による影響を排除することはできない。   Note that the image data Iave (i) before the first shading correction processing includes the influence due to uneven light distribution and sensitivity differences between the pixels, so that the image data Iave ( When the estimation data Ish ′ (i) for the abnormal pixel i is to be estimated by simple linear interpolation using i), the influence due to uneven light distribution and sensitivity difference between the pixels is calculated for the abnormal pixel i. When the correction white reference data W ′ (i), which will be described later, is not correctly reflected, and shading correction processing is performed on the image data of the document output from the abnormal pixel i with the correction white reference data W ′, the image data It is not possible to eliminate the effects of uneven light distribution and sensitivity differences between pixels.

白基準補正値演算部258は、前記推測値演算部257により生成された推定データIsh’(i)〜Ish’(i+m)を用いて、仮に前記異物の付着が無かった場合に、前記原稿画像取得用読取動作により前記各異常画素i〜(i+m)でそれぞれ生成されたと推定される画像データであって前記シェーディング補正処理部254による前記第1シェーディング補正処理前の画像データを、前記各異常画素i〜(i+m)についての新たな白色基準データ(以下、補正白色基準データという)W’(i)〜W’(i+m)として生成するものである。   The white reference correction value calculation unit 258 uses the estimated data Ish ′ (i) to Ish ′ (i + m) generated by the estimated value calculation unit 257, and if the foreign matter is not attached, Image data that is estimated to be generated by each of the abnormal pixels i to (i + m) by the reading operation for acquisition, and is the image data before the first shading correction processing by the shading correction processing unit 254, is used as each abnormal pixel. New white reference data (hereinafter referred to as corrected white reference data) W ′ (i) to W ′ (i + m) for i to (i + m) are generated.

すなわち、前記白基準補正値演算部258は、例えば或る異常画素iについての補正白色基準データW’(i)を
W’(i)={L(Iave(i)−B(i))/Ish’(i)}+B(i)・・・(4)
により算出する。
That is, the white reference correction value calculation unit 258 generates corrected white reference data W ′ (i) for a certain abnormal pixel i, for example, W ′ (i) = {L (Iave (i) −B (i)) / Ish ′ (i)} + B (i) (4)
Calculated by

ここで、異常画素iについての推定データIsh’(i)は、画像読取部の配光ムラや画素毎の感度差が排除された状態で推定されたものであり、シェーディング補正処理に用いる前記演算式(1)の逆算式である前記式(4)によって、この異常画素iについてのIsh’(i)と前記配光ムラや画素毎の感度差の情報を含んだIave(i),W(i)とから異常画素iについての補正白色基準データW’(i)を演算することで、配光ムラや画素毎の感度差を適切に補正可能な異常画素iについての補正白色基準データW’(i)を算出することができる。   Here, the estimated data Ish ′ (i) for the abnormal pixel i is estimated in a state in which unevenness of light distribution of the image reading unit and sensitivity difference for each pixel are eliminated, and the calculation used for the shading correction process According to the equation (4), which is a reverse calculation equation of the equation (1), Ish ′ (i) for the abnormal pixel i and Iave (i), W () including information on the light distribution unevenness and the sensitivity difference for each pixel. The corrected white reference data W ′ (i) for the abnormal pixel i can be appropriately corrected by calculating the corrected white reference data W ′ (i) for the abnormal pixel i from i). (I) can be calculated.

したがって、原稿の画像領域に対して画像読取部が読取動作を行った場合に前記異常画素iから得られる画像データに対し、この補正白色基準データW’(i)を用いてシェーディング補正を行うことで、前記配光ムラや画素毎の感度差による影響を排除又は低減することができる。   Therefore, the shading correction is performed on the image data obtained from the abnormal pixel i when the image reading unit performs the reading operation on the image area of the document using the corrected white reference data W ′ (i). Therefore, it is possible to eliminate or reduce the influence due to the light distribution unevenness and the sensitivity difference for each pixel.

白基準補正演算部258は、前記原稿の前記先頭領域が白地である旨の通知を白地判定部255から受けると、算出した前記異常画素i〜(i+m)についての補正白色基準データW’(i)〜W’(i+m)を白基準補正値メモリ259に格納するとともに、前記異常画素以外の正常画素1〜(i−1),(i+m+1)〜nの白色基準データW(1)〜W(i−1),W(i+m+1)〜W(n)を白基準メモリ250から白基準補正値メモリ259に移転する。   When the white reference correction calculation unit 258 receives a notification from the white background determination unit 255 that the leading area of the document is white, the corrected white reference data W ′ (i) for the calculated abnormal pixels i to (i + m). ) To W ′ (i + m) are stored in the white reference correction value memory 259, and white reference data W (1) to W (1) of normal pixels 1 to (i−1) and (i + m + 1) to n other than the abnormal pixels are stored. i−1), W (i + m + 1) to W (n) are transferred from the white reference memory 250 to the white reference correction value memory 259.

一方、白基準補正演算部258は、前記原稿の前記先頭領域が白地では無い旨の通知を白地判定部255から受けると、算出した補正白色基準データW’(i)〜W’(i+m)を白基準補正値メモリ259に格納しないで破棄する。   On the other hand, when the white reference correction calculation unit 258 receives a notification from the white background determination unit 255 that the leading area of the document is not white, the calculated white reference data W ′ (i) to W ′ (i + m) are calculated. Discard without storing in the white reference correction value memory 259.

シェーディング補正処理部254は、白基準補正値メモリ259に前記異常画素i〜(i+m)についての補正白色基準データW’(i)〜W’(i+m)と、前記異常画素以外の正常画素1〜(i−1),(i+m+1)〜nの白色基準データW(1)〜W(i−1),W(i+m+1)〜W(n)とが格納された場合には、これらの白色基準データを用いて、前記原稿画像取得用読取動作で得られた原稿の前記先頭領域以外の領域(画像領域)における画像データに対しシェーディング補正処理(第2シェーディング補正処理)を行う。   The shading correction processing unit 254 stores corrected white reference data W ′ (i) to W ′ (i + m) for the abnormal pixels i to (i + m) in the white reference correction value memory 259 and normal pixels 1 to 1 other than the abnormal pixels. When white reference data W (1) to W (i-1) and W (i + m + 1) to W (n) of (i-1), (i + m + 1) to n are stored, these white reference data are stored. Is used to perform shading correction processing (second shading correction processing) on image data in a region (image region) other than the top region of the document obtained by the document image acquisition reading operation.

一方、シェーディング補正処理部254は、前記白色基準データが白基準補正値メモリ259に格納されなかった場合には、白基準メモリ250に格納されている白基準データW(k)(k=1,2,・・・,n−1,n)を用いて、前記原稿画像取得用読取動作で得られた原稿の前記先頭領域以外の領域(画像領域)における画像データに対しシェーディング補正処理(第2シェーディング補正処理)を行う。   On the other hand, when the white reference data is not stored in the white reference correction value memory 259, the shading correction processing unit 254 determines the white reference data W (k) (k = 1, 2,..., N−1, n) is used to perform shading correction processing on the image data in the region (image region) other than the top region of the document obtained by the document image acquisition reading operation (second). Shading correction processing).

切替部260は、シェーディング補正処理部254と通信可能に接続する対象を、白基準メモリ250と白基準補正値メモリ259との間で切り替えるものである。すなわち、切替部260は、前記第1シェーディング補正処理を行う際には、白基準メモリ250とシェーディング補正処理部254とを通信可能に接続し、白基準メモリ250に格納された白色基準データW(k)(k=1,2,・・・,n−1,n)がシェーディング補正処理部254に取り込まれるようにする。   The switching unit 260 switches an object to be communicably connected to the shading correction processing unit 254 between the white reference memory 250 and the white reference correction value memory 259. That is, when performing the first shading correction process, the switching unit 260 connects the white reference memory 250 and the shading correction processing unit 254 so that they can communicate with each other, and the white reference data W ( k) (k = 1, 2,..., n−1, n) is taken into the shading correction processing unit 254.

また、切替部260は、前記第2シェーディング補正処理を行う前に、白基準補正値メモリ259に前記白色基準データが格納されなかった場合には、白基準メモリ250とシェーディング補正処理部254とを通信可能に接続して、白基準メモリ250に格納された白色基準データW(k)(k=1,2,・・・,n−1,n)がシェーディング補正処理部254に取り込まれるようにし、前記第2シェーディング補正処理を行う前に、白基準補正値メモリ259に前記白色基準データが格納された場合には、白基準補正値メモリ259とシェーディング補正処理部254とを通信可能に接続して、白基準補正値メモリ259に格納された補正白色基準データW’(i)〜W’(i+m)及び白色基準データW(1)〜W(i−1),W(i+m+1)〜W(n)がシェーディング補正処理部254に取り込まれるようにする。   If the white reference data is not stored in the white reference correction value memory 259 before the second shading correction process, the switching unit 260 switches between the white reference memory 250 and the shading correction processing unit 254. The white reference data W (k) (k = 1, 2,..., N−1, n) stored in the white reference memory 250 is connected to be communicable so that the shading correction processing unit 254 takes in the white reference data. If the white reference data is stored in the white reference correction value memory 259 before performing the second shading correction process, the white reference correction value memory 259 and the shading correction processing unit 254 are connected to be communicable. The corrected white reference data W ′ (i) to W ′ (i + m) and the white reference data W (1) to W (i−1), W ( + M + 1) ~W (n) is to be incorporated into the shading correction processing unit 254.

画像処理部218は、第2シェーディング補正処理部254から送出されてくる第2シェーディング補正処理後の画像データに関する各種画像処理を行うものである。例えば、画像処理部218は、当該画像データに対して、レベル補正、ガンマ補正等の補正処理、画像データの圧縮又は伸長処理、拡大又は縮小処理などの画像加工処理を行う。   The image processing unit 218 performs various image processing related to the image data after the second shading correction processing sent from the second shading correction processing unit 254. For example, the image processing unit 218 performs correction processing such as level correction and gamma correction, image processing processing such as image data compression or expansion processing, enlargement or reduction processing on the image data.

図10は、第1及び第2読取制御部214,215とシェーディング補正部217とによる一連のシェーディング補正処理を示すフローチャートである。なお、ここでは、白色基準板10上、若しくは白色基準板10とスキャナ部22との間の光路上に異物が存在し、スキャナ部22で原稿の画像を読み取る必要が生じたものとする。ただし、シェーディングローラ11の周面上、若しくはシェーディングローラ11とCIS231との間の光路上に異物が存在し、CIS231で原稿の画像を読み取る必要が生じた場合も同様の処理である。   FIG. 10 is a flowchart showing a series of shading correction processes by the first and second reading control units 214 and 215 and the shading correction unit 217. Here, it is assumed that there is a foreign object on the white reference plate 10 or on the optical path between the white reference plate 10 and the scanner unit 22, and the scanner unit 22 needs to read the image of the document. However, the same processing is performed when a foreign object exists on the peripheral surface of the shading roller 11 or on the optical path between the shading roller 11 and the CIS 231 and it is necessary to read the image of the document with the CIS 231.

図10に示すように、操作者によって操作部5のスタートボタン55が押下され、画像読取指示が操作部5に受け付けられると(ステップ♯1でYES)、第1読取制御部214が光源222を消灯させた状態として画像読取部を動作させて白色基準板10を読み取らせる(ステップ♯2)。これにより、前記画像読取部から黒色基準データB(k)(k=1,2,・・・,n−1,n)が出力され、この黒色基準データB(k)(k=1,2,・・・,n−1,n)は、黒基準メモリ251に記憶される(ステップ♯3)。   As shown in FIG. 10, when the start button 55 of the operation unit 5 is pressed by the operator and an image reading instruction is accepted by the operation unit 5 (YES in step # 1), the first reading control unit 214 turns on the light source 222. In a state where the light is extinguished, the image reading unit is operated to read the white reference plate 10 (step # 2). As a result, black reference data B (k) (k = 1, 2,..., N−1, n) is output from the image reading unit, and this black reference data B (k) (k = 1, 2). ,..., N−1, n) are stored in the black reference memory 251 (step # 3).

なお、このとき、第1読取制御部214がスキャナ部22に1ラインのみの画像読取を行わせ、1ライン分の画素の画素値を前記黒色基準データB(k)としてもよいし、或いは、第1読取制御部214がスキャナ部22に複数ライン分の画像読取を行わせ、該複数ライン分の画素の画素値の平均値を前記黒色基準データB(k)としてもよい。   At this time, the first reading control unit 214 may cause the scanner unit 22 to read an image of only one line, and the pixel value of one line of pixels may be used as the black reference data B (k). The first reading control unit 214 may cause the scanner unit 22 to read an image for a plurality of lines, and an average value of pixel values of the pixels for the plurality of lines may be used as the black reference data B (k).

続いて、第1読取制御部214が光源222を点灯させた状態としてスキャナ部22を動作させて白色基準板10を読み取らせる(ステップ♯4)。これにより、前記画像読取部から白色基準データW(k)(k=1,2,・・・,n−1,n)が出力され、この白色基準データW(k)(k=1,2,・・・,n−1,n)は、白基準メモリ250に記憶される(ステップ♯5)。   Subsequently, the first reading control unit 214 operates the scanner unit 22 with the light source 222 turned on to read the white reference plate 10 (step # 4). As a result, white reference data W (k) (k = 1, 2,..., N−1, n) is output from the image reading unit, and the white reference data W (k) (k = 1, 2). ,..., N−1, n) are stored in the white reference memory 250 (step # 5).

なお、このとき、第1読取制御部214がスキャナ部22に1ラインのみの画像読取を行わせ、1ライン分の画素の画素値を前記白色基準データW(k)(k=1,2,・・・,n−1,n)としてもよいし、或いは、第1読取制御部214がスキャナ部22に複数ライン分の画像読取を行わせ、該複数ライン分の画素の画素値の平均値を前記白色基準データW(k)(k=1,2,・・・,n−1,n)としてもよい。   At this time, the first reading control unit 214 causes the scanner unit 22 to read an image of only one line, and the pixel values of pixels for one line are set to the white reference data W (k) (k = 1, 2, .., N−1, n), or the first reading control unit 214 causes the scanner unit 22 to perform image reading for a plurality of lines, and the average value of the pixel values of the pixels for the plurality of lines. May be the white reference data W (k) (k = 1, 2,..., N−1, n).

そして、第1読取制御部214は、原稿給紙部21に原稿トレイ241上の原稿を、スキャナ部22による画像読取位置230まで搬送させ、当該画像読取位置230においてスキャナ部22に原稿画像を読み取らせる(ステップ♯6)。   Then, the first reading control unit 214 conveys the document on the document tray 241 to the document feeding unit 21 to the image reading position 230 by the scanner unit 22, and reads the document image by the scanner unit 22 at the image reading position 230. (Step # 6).

そして、異常画素候補検出部252は、原稿の先端領域の画像データIave(k)(k=1,2,・・・,n−1,n)を取得すると(ステップ♯7)、前記白色基準データW(n)と、画像読取部によって読み取られた原稿の画像データIave(k)(k=1,2,・・・,n−1,n)とを比較し、当該原稿画像をなす各画素の内、これに対応する画素位置(原稿画像をなす各画素と同一の画素位置)における白色基準データW(k)の画素値よりも高い輝度を示す画素を異常画素候補として検出する(ステップ♯8)。   When the abnormal pixel candidate detection unit 252 acquires the image data Iave (k) (k = 1, 2,..., N−1, n) of the leading edge region of the document (step # 7), the white reference The data W (n) and the image data Iave (k) (k = 1, 2,..., N−1, n) of the original read by the image reading unit are compared, and each original image is formed. Among the pixels, a pixel having a luminance higher than the pixel value of the white reference data W (k) at the corresponding pixel position (the same pixel position as each pixel forming the original image) is detected as an abnormal pixel candidate (step # 8).

例えば、異常画素候補検出部252は、ステップ♯6の読取動作で得られた原稿画像のうち、原稿搬送方向において原稿先端部から一定範囲内の余白領域(例えば原稿先端部から150mmまでの領域等)を当該比較に用いる原稿画像として用い、白色基準データW(k)<画像データIave(k)を満たすかを判断し、白色基準データW(k)<画像データIave(k)となる画素が存在する場合、異常画素候補検出部252は、当該条件に該当する画素についての主走査方向における画素位置を、異常画素候補記憶部253に記憶させる。たとえば、図11を参照して説明すると、白色基準データW(k)<画像データIave(k)となる主走査方向の画素位置を記憶させる。   For example, the abnormal pixel candidate detection unit 252 includes, in the document image obtained by the reading operation in step # 6, a blank area within a certain range from the document front end in the document transport direction (for example, a region from the document front end to 150 mm). ) As a document image used for the comparison, it is determined whether white reference data W (k) <image data Iave (k) is satisfied, and pixels satisfying white reference data W (k) <image data Iave (k) are determined. If present, the abnormal pixel candidate detection unit 252 causes the abnormal pixel candidate storage unit 253 to store the pixel position in the main scanning direction for the pixel corresponding to the condition. For example, referring to FIG. 11, the pixel position in the main scanning direction where white reference data W (k) <image data Iave (k) is stored.

次に、シェーディング補正部217のシェーディング補正処理部254は、白基準メモリ250に記憶されている白色基準データW(k)及び黒基準メモリ251に記憶されている黒色基準データB(k)を用いて、ステップ♯6で読み取られた原稿画像の先頭領域に対して前記第1シェーディング補正を行う(ステップ♯9)。   Next, the shading correction processing unit 254 of the shading correction unit 217 uses the white reference data W (k) stored in the white reference memory 250 and the black reference data B (k) stored in the black reference memory 251. Thus, the first shading correction is performed on the leading area of the document image read in step # 6 (step # 9).

続いて、白地判定部255は、前記第1シェーディング補正後の原稿画像の先頭領域を構成する各画素の画素値の平均値AVE(Ish)及び最小値MIN(Ish)と、ROM213に記憶されている白平均基準値L及び白地最低基準値Mを用いて、前記式(2),(3)で示される条件を満たしているかの白地判定処理を行い(ステップ♯10)、また、異常画素カウント部256は、異常画素候補記憶部253に記憶された異常画素候補の個数をカウントする(ステップ♯11)。   Subsequently, the white background determination unit 255 stores the average value AVE (Ish) and the minimum value MIN (Ish) of the pixel values of each pixel constituting the head region of the original image after the first shading correction, and is stored in the ROM 213. Using the average white reference value L and the minimum white background reference value M, a white background determination process is performed to determine whether the conditions expressed by the equations (2) and (3) are satisfied (step # 10), and the abnormal pixel count The unit 256 counts the number of abnormal pixel candidates stored in the abnormal pixel candidate storage unit 253 (step # 11).

次に、推測値演算部257は、前記各画素k(k=1,2,・・・,n−1,n)から得られた前記先頭領域についての画像データの前記第1シェーディング補正処理後の画像データIsh(k)(k=1,2,・・・,n−1,n)のうち、前記異常画素候補記憶部253に記憶されている前記異常画素i〜(i+m)以外の正常画素、例えば前記異常画素群に隣接する正常画素(i−1)と正常画素(i+m+1)の画像データを用いた補間演算により、仮に前記異物の付着が無かったものとした場合に、前記原稿画像取得用読取動作により前記異常画素i〜(i+m)で生成されたと推定される前記第1シェーディング補正処理後の画像データを推定データIsh’(i)〜Ish’(i+m)として生成する(ステップ♯12)。   Next, the estimated value calculation unit 257 performs the first shading correction processing on the image data for the head region obtained from each pixel k (k = 1, 2,..., N−1, n). Normal image data other than the abnormal pixels i to (i + m) stored in the abnormal pixel candidate storage unit 253 among the image data Ish (k) (k = 1, 2,..., N−1, n). The original image when the foreign object is not attached by an interpolation operation using image data of normal pixels (i−1) and normal pixels (i + m + 1) adjacent to the abnormal pixel group, for example. Image data after the first shading correction process estimated to have been generated at the abnormal pixels i to (i + m) by the reading operation for acquisition is generated as estimated data Ish ′ (i) to Ish ′ (i + m) (step #) 12).

さらに、白基準補正値演算部258は、前記推測値演算部257により生成された推定データIsh’(i)〜Ish’(i+m)を用いて、仮に前記異物の付着が無かった場合に、前記基準値取得用読取動作により前記各異常画素i〜(i+m)でそれぞれ生成されたと推定される、前記シェーディング補正処理部254による前記第1シェーディング補正処理前の画像データを、前記各異常画素i〜(i+m)についての補正白色基準データW’(i)〜W’(i+m)として生成する(ステップ♯13)。   Further, the white reference correction value calculation unit 258 uses the estimation data Ish ′ (i) to Ish ′ (i + m) generated by the estimated value calculation unit 257, and if the foreign matter is not attached, Image data before the first shading correction processing by the shading correction processing unit 254, which is estimated to have been generated by the respective abnormal pixels i to (i + m) by the reference value acquisition reading operation, is used as the abnormal pixels i to The corrected white reference data W ′ (i) to W ′ (i + m) for (i + m) is generated (step # 13).

そして、シェーディング補正処理部254は、前記異常画素i〜(i+m)についての補正白色基準データW’(i)〜W’(i+m)と、前記異常画素以外の正常画素1〜(i−1),(i+m+1)〜nの白色基準データW(1)〜W(i−1),W(i+m+1)〜W(n)とを用いて、前記原稿画像取得用読取動作で得られた原稿の前記先頭領域以外の領域(画像領域)における画像データに対しシェーディング補正処理(第2シェーディング補正処理)を行い(ステップ♯14)、前記第2シェーディング補正処理後の画像データを画像処理部218に出力する(ステップ♯15)。   The shading correction processing unit 254 then corrects white reference data W ′ (i) to W ′ (i + m) for the abnormal pixels i to (i + m) and normal pixels 1 to (i−1) other than the abnormal pixels. , (I + m + 1) to n white reference data W (1) to W (i-1) and W (i + m + 1) to W (n), the original of the original obtained by the original image acquisition reading operation is used. Shading correction processing (second shading correction processing) is performed on the image data in the region (image region) other than the head region (step # 14), and the image data after the second shading correction processing is output to the image processing unit 218. (Step # 15).

以上のように、本実施形態では、異常画素についての白色基準データにあっては、異常画素以外の画素(正常画素)で生成された画像データであって前記シェーディング補正処理部254によるシェーディング補正処理(第1シェーディング補正処理)を行った後の画像データを用いて、仮に前記異物の付着が無かった場合に、前記原稿画像取得用読取動作により前記異常画素で生成されたと推定される画像データ(前記異物による画質上の悪影響を低減した画像データ)であって前記第1シェーディング補正処理後の画像データを生成した上で、この画像データから、仮に前記異物の付着が無かった場合に、前記基準値取得用読取動作により前記異常画素で生成されたと推定される画像データ、すなわち異常画素についての正しい白色基準データを、シェーディング補正処理に用いる演算式を逆算的に利用して算出することにより求めるようにしたので、異物が画質に与える影響と、画像読取部の配光ムラや画素毎の感度差による影響とを低減した画像を得ることができる。   As described above, in the present embodiment, the white reference data for abnormal pixels is image data generated by pixels other than abnormal pixels (normal pixels), and shading correction processing by the shading correction processing unit 254 is performed. Using the image data after performing (first shading correction processing), if there is no adhesion of the foreign matter, the image data estimated to have been generated by the abnormal pixels by the document image acquisition reading operation ( Image data with reduced adverse effects on image quality due to the foreign matter) and image data after the first shading correction processing is generated, and if the foreign matter is not attached from the image data, the reference Image data presumed to have been generated at the abnormal pixel by the value acquisition reading operation, that is, the correct white reference for the abnormal pixel Data is obtained by calculating inversely using an arithmetic expression used for shading correction processing, so that the influence of foreign matter on image quality, light distribution unevenness of the image reading unit, and sensitivity difference for each pixel An image with reduced influence can be obtained.

また、前記原稿の先頭領域の画像データから前記第1白色基準データIsh(k)や第2白色基準データIsh’(k)を取得するようにしたので、原稿の画像データに対するシェーディング補正処理を行うために必要な前記第1白色基準データIsh(k)や第2白色基準データIsh’(k)を、原稿全体の画像データを用いて算出する場合に比して、その算出に要する時間を短縮することができ、一連のシェーディング補正処理に要する時間の増大を防止又は低減することができる。   In addition, since the first white reference data Ish (k) and the second white reference data Ish ′ (k) are obtained from the image data of the leading area of the document, shading correction processing is performed on the image data of the document. Compared to the case where the first white reference data Ish (k) and the second white reference data Ish ′ (k) necessary for the calculation are calculated using the image data of the entire document, the time required for the calculation is shortened. It is possible to prevent or reduce an increase in the time required for a series of shading correction processes.

本件は、前記実施形態に代えて、或いは前記実施形態に加えて、次のような変形形態も採用可能である。   In this case, the following modifications may be employed instead of or in addition to the embodiment.

(1)前記第1の実施形態においては、異常画素候補検出部252は、前記基準値取得用読取動作で得られた前記画像読取部の各画素k(k=1,2,・・・,n−1,n)についての前記白色基準データW(k)(k=1,2,・・・,n−1,n)と、原稿の画像が存在しない無地と想定される、原稿の余白領域に相当する所定の先頭領域に対する前記原稿画像取得用読取動作で各画素k(k=1,2,・・・,n−1,n)から得られた原稿の画像データIave(k)(k=1,2,・・・,n−1,n)との大小を比較したが、これに限らず、前記画像データIave(k)に所定値Qを加えたものと、前記白色基準データW(k)との大小を比較するようにしてもよい。   (1) In the first embodiment, the abnormal pixel candidate detection unit 252 includes each pixel k (k = 1, 2,...) Of the image reading unit obtained by the reference value acquisition reading operation. The white reference data W (k) (k = 1, 2,..., n−1, n) for n−1, n) and the margin of the document that is assumed to be a solid color where no document image exists. Document image data Iave (k) (obtained from each pixel k (k = 1, 2,..., N−1, n) in the document image acquisition reading operation for a predetermined head region corresponding to the region. k = 1, 2,..., n−1, n), but the present invention is not limited thereto, and the image data Iave (k) plus a predetermined value Q and the white reference data You may make it compare the magnitude with W (k).

これにより、図11に示すように、前記第1の実施形態では、原稿の画像データが前記白色基準データより大きくなる画素の存在範囲は、Z1であるが、前記のように、原稿の画像データIave(k)に所定値Qを加えたものが前記白色基準データW(k)より大きくなる画素の存在範囲は、前記範囲Z1より広いZ2となり、異常画素の有無を確実に検出することが可能となる。   Accordingly, as shown in FIG. 11, in the first embodiment, the existence range of pixels in which the document image data is larger than the white reference data is Z1, but as described above, the document image data The existence range of pixels in which Iave (k) plus a predetermined value Q is larger than the white reference data W (k) is Z2, which is wider than the range Z1, and the presence or absence of abnormal pixels can be reliably detected. It becomes.

(2)前記第1の実施形態においては、推測値演算部257は、前記異常画素i〜(i+m)の画素群に隣接する画素(i−1)の画像データIave(i−1)と画素(i+m+1)の画像データIave(i+m+1)とを用いた線形補間により、仮に前記異物の付着が無かった場合に、前記原稿画像取得用読取動作により前記異常画素i〜(i+m)で生成されたと推定される画像データを推定データIsh’(i)〜Ish’(i+m)として生成するようにしたが、これに限らず、例えば、前記推定データIsh’(i)〜Ish’(i+m)を、一律に、前記異常画素i〜(i+m)の画素群に隣接する画素(i−1)の画像データIave(i−1)としたり、一律に、画素(i+m+1)の画像データIave(i+m+1)としたりしてもよい。   (2) In the first embodiment, the estimated value calculation unit 257 includes the image data Iave (i−1) and the pixel of the pixel (i−1) adjacent to the pixel group of the abnormal pixels i to (i + m). By linear interpolation using the image data Iave (i + m + 1) of (i + m + 1), it is estimated that the abnormal pixels i to (i + m) are generated by the original image acquisition reading operation if the foreign matter is not attached. The generated image data is generated as estimated data Ish ′ (i) to Ish ′ (i + m). However, the present invention is not limited to this. For example, the estimated data Ish ′ (i) to Ish ′ (i + m) In addition, the image data Iave (i-1) of the pixel (i-1) adjacent to the pixel group of the abnormal pixels i to (i + m), or the image data Iave (i + m + 1) of the pixel (i + m + 1) is uniform. It may be or with.

或いは、前記異常画素i〜(i+m)の画素群に隣接する、画素(i−1)を含む複数の画素からなる画素群の各画像データの平均値を前記推定データIsh’(i)〜Ish’(i+m)としてもよい。例えば、前記推定データIsh’(i)〜Ish’(i+m)を、すべて、画素(i−1)の画像データIave(i−1)と画素(i−2)の画像データIave(i−2)と画素(i−3)の画像データIave(i−3)と画素(i−4)の画像データIave(i−4)との平均値としてもよい。   Alternatively, an average value of each image data of a pixel group including a plurality of pixels including the pixel (i−1) adjacent to the pixel group of the abnormal pixels i to (i + m) is calculated as the estimated data Ish ′ (i) to Ish. It is good also as' (i + m). For example, the estimated data Ish ′ (i) to Ish ′ (i + m) are all converted into the image data Iave (i−1) of the pixel (i−1) and the image data Iave (i−2) of the pixel (i-2). ), Image data Iave (i-3) of the pixel (i-3), and image data Iave (i-4) of the pixel (i-4).

或いは、前記異常画素i〜(i+m)の画素群に隣接する、画素(i−1)を含む複数の画素からなる画素群の各画像データと、画素(i+m+1)を含む複数の画素からなる画素群の各画像データとの平均値を前記推定データIsh’(i)〜Ish’(i+m)としてもよい。   Alternatively, each image data of a pixel group including a plurality of pixels including the pixel (i−1) and a pixel including a plurality of pixels including the pixel (i + m + 1) adjacent to the pixel group of the abnormal pixels i to (i + m). The average value of each group of image data may be the estimated data Ish ′ (i) to Ish ′ (i + m).

例えば、前記推定データIsh’(i)〜Ish’(i+m)を、すべて、画素(i−1)の画像データIave(i−1)と画素(i−2)の画像データIave(i−2)と画素(i−3)の画像データIave(i−3)と画素(i+m+1)の画像データIave(i+m+1)と画素(i+m+2)の画像データIave(i+m+2)と画素(i+m+3)の画像データIave(i+m+3)との平均値としてもよい。   For example, the estimated data Ish ′ (i) to Ish ′ (i + m) are all converted into the image data Iave (i−1) of the pixel (i−1) and the image data Iave (i−2) of the pixel (i-2). ), Image data Iave (i-3) of the pixel (i-3), image data Iave (i + m + 1) of the pixel (i + m + 1), image data Iave (i + m + 2) of the pixel (i + m + 2), and image data Iave of the pixel (i + m + 3) It is good also as an average value with (i + m + 3).

(3)前記第1の実施形態に係る複合機1は、画像読取部として、スキャナ部22及びCIS231の両方を備えているが、スキャナ部22又はCIS231のいずれか一方のみを備えている構成において、その画像読取部について前記第1の実施形態に係る一連のシェーディング補正処理を行うようにしても構わない。   (3) The MFP 1 according to the first embodiment includes both the scanner unit 22 and the CIS 231 as the image reading unit, but includes only one of the scanner unit 22 and the CIS 231. The series of shading correction processes according to the first embodiment may be performed on the image reading unit.

(4)本発明は、前記実施の形態の構成に限られず種々の変形が可能である。例えば、前記第1乃至第3実施形態では、本発明に係る画像形成装置の例として複合機1を示しているが、本発明に係る画像形成装置は複合機1に限定されるものではなく、コピー機、ファクシミリ装置等であっても構わない。   (4) The present invention is not limited to the configuration of the above embodiment, and various modifications can be made. For example, in the first to third embodiments, the MFP 1 is shown as an example of the image forming apparatus according to the present invention. However, the image forming apparatus according to the present invention is not limited to the MFP 1, It may be a copier, a facsimile machine or the like.

1 複合機
2 画像読取部
22 スキャナ部
222 光源
229 CCD
231 CIS
231a 光源
10 白色基準板
11 シェーディングローラ
214 第1読取制御部
215 第2読取制御部
217 シェーディング補正部
218 画像処理部
250 白基準メモリ
251 黒基準メモリ
252 異常画素候補検出部
253 異常画素候補記憶部
254 シェーディング補正処理部
255 白地判定部
256 異常画素カウント部
257 推測値演算部
258 白基準補正値演算部
259 白基準補正値メモリ
260 切替部
DESCRIPTION OF SYMBOLS 1 Multifunction machine 2 Image reading part 22 Scanner part 222 Light source 229 CCD
231 CIS
231a Light source 10 White reference plate 11 Shading roller 214 First reading control unit 215 Second reading control unit 217 Shading correction unit 218 Image processing unit 250 White reference memory 251 Black reference memory 252 Abnormal pixel candidate detection unit 253 Abnormal pixel candidate storage unit 254 Shading correction processing unit 255 White background determination unit 256 Abnormal pixel count unit 257 Estimated value calculation unit 258 White reference correction value calculation unit 259 White reference correction value memory 260 switching unit

Claims (4)

画像の読取動作を行う画像読取部と、
白色の基準となる白色基準部材と、
前記白色基準部材に対する画像の読取動作を前記画像読取部に行わせる第1読取制御部と、
前記第1読取制御部の指示に基づく読取動作で得られた画像データを、白色の基準値を示す第1白色基準データとして記憶する第1白色基準データ記憶部と、
前記第1読取制御部の指示に基づく読取動作で得られた各画素の画像データから前記白色基準部材を含む光路上の異物に起因する異常画像データを検出し、前記画像読取部の各画素のうち前記異常画像データを生成した画素を異常画素として検出する異常画素検出部と、
原稿に対する画像の読取動作を画像読取部に行わせる第2読取制御部と、
前記第2読取制御部の指示に基づく読取動作で得られた画像データのうち前記原稿の所定領域の画像データに対し、前記第1白色基準データ記憶部に記憶された前記第1白色基準データを用いてシェーディング補正処理を行う第1シェーディング補正処理部と、
前記第1シェーディング補正処理部によるシェーディング補正処理後の画像データのうち前記異常画素検出部により検出された前記異常画素を除く所定の画素で生成された画像データを用いて、仮に前記異物が存在しなかった場合に、前記第2読取制御部の指示に基づく読取動作により前記異常画素で生成されたものと推定される画像データであって前記第1シェーディング補正処理後の画像データを、該異常画素についての推定データとして生成する推定データ生成部と、
前記推定データ生成部により生成された推定データを用いて、仮に前記異物が存在しなかった場合に、前記第1読取制御部の指示に基づく読取動作により前記異常画素で生成されたものと推定される画像データを、該異常画素についての第2白色基準データとして生成する第2白色基準データ生成部と、
前記第2読取制御部の指示に基づく読取動作により前記異常画素で生成された画像データに対し、前記第2白色基準データ生成部により生成された当該異常画素についての第2白色基準データを用いてシェーディング補正処理を行うとともに、前記第2読取制御部の指示に基づく読取動作により前記異常画素以外の画素で生成された画像データに対し、前記第1白色基準データ生成部により生成された当該画素についての第1白色基準データを用いてシェーディング補正処理を行う第2シェーディング補正処理部と
を備える画像処理装置。
An image reading unit for performing an image reading operation;
A white reference member which is a white reference;
A first reading control unit that causes the image reading unit to perform an image reading operation on the white reference member;
A first white reference data storage unit that stores image data obtained by a reading operation based on an instruction from the first reading control unit as first white reference data indicating a white reference value;
Abnormal image data caused by foreign matter on the optical path including the white reference member is detected from the image data of each pixel obtained by the reading operation based on the instruction of the first reading control unit, and each pixel of the image reading unit is detected. Among them, an abnormal pixel detector that detects the pixel that generated the abnormal image data as an abnormal pixel,
A second reading control unit for causing the image reading unit to perform an image reading operation on a document;
The first white reference data stored in the first white reference data storage unit is used for image data of a predetermined area of the document among image data obtained by a reading operation based on an instruction from the second reading control unit. A first shading correction processing unit that uses the shading correction process,
Using the image data generated by predetermined pixels excluding the abnormal pixels detected by the abnormal pixel detection unit among the image data after the shading correction processing by the first shading correction processing unit, the foreign matter is temporarily present. If there is no image data that is estimated to have been generated by the abnormal pixel by a reading operation based on an instruction from the second reading control unit, the image data after the first shading correction processing is converted into the abnormal pixel. An estimated data generation unit that generates as estimated data for
Using the estimated data generated by the estimated data generating unit, if the foreign matter does not exist, it is estimated that the abnormal pixel is generated by the reading operation based on the instruction of the first reading control unit. Second white reference data generating unit for generating image data as second white reference data for the abnormal pixel;
The second white reference data for the abnormal pixel generated by the second white reference data generation unit is used for the image data generated by the abnormal pixel by the reading operation based on the instruction of the second reading control unit. For the pixel generated by the first white reference data generation unit with respect to image data generated by a pixel other than the abnormal pixel by a reading operation based on an instruction of the second reading control unit while performing a shading correction process And a second shading correction processing unit that performs a shading correction process using the first white reference data.
前記画像読取部は、n個(n>1)の画素が列を成して構成されているものであり、
前記第1読取制御部は、更に、前記画像読取部に備えられる照明部の前記白色基準部材に対する照明動作をオフにした状態で該白色基準部材に対する画像の読取動作を前記画像読取部に行わせ、
この第1読取制御部の指示に基づく読取動作で得られた画像データを、黒色の基準値を示す黒色基準データとして生成する黒色基準データ記憶部を更に備え、
前記第2読取制御部の指示により得られた画像データのうち前記原稿の所定領域に属する画素に対して前記画素列方向に番号を付したとき、画素k(=1,2,・・・,n−1,n)について、前記黒色基準データ生成部により生成された黒色基準データをB(k)、前記第1白色基準データ記憶部により記憶された第1白色基準データをW(k)、前記第2読取制御部の指示により前記画素で生成された画像データをI(k)とし、画像データの階調数をLとしたとき、前記第1シェーディング補正処理部は、
{(I(k)−B(k))/(W(k)−B(k))}×L
を前記画素kについての前記シェーディング補正処理後の画像データIsh(k)とするものであり、
前記推定データ生成部は、前記第1シェーディング補正処理部によるシェーディング補正処理後の画像データIsh(k)のうち、前記異常画素i又は複数の異常画素iからなる異常画素群に隣接する画素を含む画素領域内の画素jにより生成された画像データIsh(j)を用いて、仮に前記異物が存在しなかった場合に、前記第2読取制御部の指示に基づく読取動作により前記異常画素iで生成されたと推定される画像であって前記第1シェーディング補正処理部によるシェーディング補正処理後の画像データIsh’(i)を推定データとして生成するものであり、
前記第2白色基準データ生成部は、
{L(I(i)−B(i))/Ish’(i)}+B(i)
を、前記異常画素iについての前記第2白色基準データとして生成するものである請求項1に記載の画像処理装置。
The image reading unit includes n (n> 1) pixels arranged in a row,
The first reading control unit further causes the image reading unit to perform an image reading operation with respect to the white reference member in a state where an illumination operation with respect to the white reference member of an illumination unit provided in the image reading unit is turned off. ,
A black reference data storage unit that generates image data obtained by a reading operation based on an instruction from the first reading control unit as black reference data indicating a black reference value;
Of the image data obtained by the instruction of the second reading control unit, when the pixels belonging to the predetermined area of the document are numbered in the pixel column direction, the pixel k (= 1, 2,... n-1, n), the black reference data generated by the black reference data generation unit is B (k), the first white reference data stored by the first white reference data storage unit is W (k), When the image data generated by the pixel according to the instruction of the second reading control unit is I (k) and the number of gradations of the image data is L, the first shading correction processing unit is
{(I (k) −B (k)) / (W (k) −B (k))} × L
Is the image data Ish (k) after the shading correction processing for the pixel k,
The estimated data generation unit includes pixels adjacent to the abnormal pixel group including the abnormal pixel i or the plurality of abnormal pixels i in the image data Ish (k) after the shading correction processing by the first shading correction processing unit. Using the image data Ish (j) generated by the pixel j in the pixel area, if the foreign matter does not exist, the image data Ish (j) is generated at the abnormal pixel i by a reading operation based on an instruction from the second reading control unit. An image presumed to be generated and image data Ish ′ (i) after the shading correction processing by the first shading correction processing unit is generated as estimation data,
The second white reference data generation unit
{L (I (i) −B (i)) / Ish ′ (i)} + B (i)
The image processing apparatus according to claim 1, wherein the second white reference data for the abnormal pixel i is generated.
前記原稿の所定領域は、所定の幅を有する原稿の先頭領域である請求項1又は2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the predetermined area of the document is a leading area of the document having a predetermined width. 前記画像読取部は、CCD及びCISのうち少なくとも一方である請求項1乃至3の何れか一項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the image reading unit is at least one of a CCD and a CIS.
JP2009261880A 2009-11-17 2009-11-17 Image processor Pending JP2011109381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009261880A JP2011109381A (en) 2009-11-17 2009-11-17 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009261880A JP2011109381A (en) 2009-11-17 2009-11-17 Image processor

Publications (1)

Publication Number Publication Date
JP2011109381A true JP2011109381A (en) 2011-06-02

Family

ID=44232394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009261880A Pending JP2011109381A (en) 2009-11-17 2009-11-17 Image processor

Country Status (1)

Country Link
JP (1) JP2011109381A (en)

Similar Documents

Publication Publication Date Title
JP5265479B2 (en) Image reading apparatus and image forming apparatus
JP7293927B2 (en) ABNORMAL PIXEL DETECTION DEVICE, IMAGE FORMING APPARATUS AND ABNORMAL PIXEL DETECTION METHOD
JP5079609B2 (en) Image reading apparatus and image forming apparatus
JP5481436B2 (en) Image reading apparatus and image forming apparatus
JP2006094515A (en) Image reading apparatus
JP5481435B2 (en) Image reading apparatus and image forming apparatus
JP2011234129A (en) Original image reading apparatus and image forming apparatus
JP2010028682A (en) Image reading apparatus and image forming apparatus
JP4849144B2 (en) Image reading apparatus and streak noise correction method
JP5027839B2 (en) Image reading apparatus and image forming apparatus
JP2011109381A (en) Image processor
JP2007019854A (en) Image processing apparatus and image processing method
JP4988679B2 (en) Image reading apparatus and image forming apparatus
JP5027831B2 (en) Image reading apparatus, image forming apparatus, and noise contamination factor detection method
JP4843598B2 (en) Image reading apparatus and image forming apparatus
JP2011259430A (en) Image reader and image reading abnormality detecting method
JP5069705B2 (en) Image reading apparatus and image forming apparatus
JP5033566B2 (en) Image reading apparatus and image forming apparatus
JP2010252043A (en) Image reader and image forming apparatus
JP5162205B2 (en) Image reading apparatus and image forming apparatus
JP2011045073A (en) Image reading apparatus and image reading method
JP6287630B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2012019521A (en) Image reading device and image reading method
JP5851371B2 (en) Image forming apparatus and image reading method
JP2010206324A (en) Image reading device and image forming apparatus