JP2016036076A - Shading correction device and image processing device - Google Patents

Shading correction device and image processing device Download PDF

Info

Publication number
JP2016036076A
JP2016036076A JP2014158021A JP2014158021A JP2016036076A JP 2016036076 A JP2016036076 A JP 2016036076A JP 2014158021 A JP2014158021 A JP 2014158021A JP 2014158021 A JP2014158021 A JP 2014158021A JP 2016036076 A JP2016036076 A JP 2016036076A
Authority
JP
Japan
Prior art keywords
data
correction
component
shading
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014158021A
Other languages
Japanese (ja)
Other versions
JP6340983B2 (en
Inventor
智彦 小野
Tomohiko Ono
智彦 小野
尚宏 倉形
Naohiro Kurakata
尚宏 倉形
大祐 二角
Daisuke Nikado
大祐 二角
礼子 池田
Reiko Ikeda
礼子 池田
敦史 川田
Atsushi Kawada
敦史 川田
康宏 岡田
Yasuhiro Okada
康宏 岡田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2014158021A priority Critical patent/JP6340983B2/en
Publication of JP2016036076A publication Critical patent/JP2016036076A/en
Application granted granted Critical
Publication of JP6340983B2 publication Critical patent/JP6340983B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a shading correction device and an image processing device that can perform accurate shading correction.SOLUTION: When shading data under stained manuscript reading which are achieved before the manuscript is read are replaced by initial shading data of an unstained initial manuscript, the initial shading data are corrected so that the ripple unevenness and amplitude of the shading data under manuscript reading are matched. The shading correction is performed by the corrected initial shading data, whereby occurrence of a periodical streak caused by the difference in amplitude of AC components of the shading data can be prevented, and accurate shading correction can be performed.SELECTED DRAWING: Figure 8

Description

本発明は、シェーディング補正装置、および画像処理装置に関する。   The present invention relates to a shading correction apparatus and an image processing apparatus.

画像読取装置において、読み取り光学系の主走査位置毎の光量分布のばらつき、およびセンサチップ画素毎の感度のばらつきを補正するために、シェーディング補正が行われる。具体的には、例えば白色の濃度基準部材の読み取り結果(シェーディングデータ)を用いて、入力データのシェーディング補正を行う。   In the image reading apparatus, shading correction is performed in order to correct the variation in the light amount distribution for each main scanning position of the reading optical system and the variation in the sensitivity for each sensor chip pixel. Specifically, shading correction of input data is performed using, for example, a reading result (shading data) of a white density reference member.

特許文献1(特開2010−011297号公報)には、初期のシェーディングデータと、原稿を読み取る直前に取得したシェーディングデータとの光量が異なることで、ロッドレンズ周期ムラの振幅の変化を低減した画像処理装置が開示されている。この画像処理装置は、汚れの無い初期のシェーディングデータに光量比(初期のシェーディングデータと原稿を読み取る直前に取得したシェーディングデータの主走査全域、または主走査の特定エリア平均値の比)を補正して置き換えて補間する。これにより、上述の光量の違いから生ずるロッドレンズ周期ムラの振幅の変化を低減できる。   Japanese Patent Application Laid-Open No. 2010-011297 discloses an image in which the initial shading data and the shading data acquired immediately before reading a document are different in light quantity, thereby reducing the change in the amplitude of rod lens cycle unevenness. A processing device is disclosed. This image processing apparatus corrects the light amount ratio (the ratio of the initial shading data to the entire main scanning area of the shading data acquired immediately before reading the document or the average value of the specific area of the main scanning) to the initial shading data without any dirt. To replace and interpolate. Thereby, the change of the amplitude of the rod lens period nonuniformity resulting from the above-mentioned difference in the amount of light can be reduced.

しかし、特許文献1に開示されている画像処理装置を含む従来の技術においては、汚れを検知して初期のシェーディングデータに置き換えた箇所に、縦スジが発生する不都合を生じていた。すなわち、原稿を読み取る直前に取得したシェーディングデータと初期のシェーディングデータとの間において、リップルムラによる振幅差がロッドレンズの間隔で発生する。これにより、縦スジが発生する。このため、従来は、正確なシェーディング補正が行われているとは言い難い問題があった。   However, in the conventional technique including the image processing apparatus disclosed in Patent Document 1, there is a problem in that vertical stripes are generated at a place where dirt is detected and replaced with initial shading data. That is, an amplitude difference due to ripple unevenness occurs between the rod lenses between the shading data acquired immediately before reading the original and the initial shading data. As a result, vertical stripes are generated. For this reason, there has conventionally been a problem that it cannot be said that accurate shading correction is performed.

本発明は、上述の課題に鑑みてなされたものであり、正確なシェーディング補正が可能なシェーディング補正装置、および画像処理装置の提供を目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a shading correction apparatus and an image processing apparatus capable of performing accurate shading correction.

上述した課題を解決し、目的を達成するために、本発明は、濃度基準部材から読み取った基準となるシェーディングデータである初期データから第1の直流成分データを抽出する第1の直流成分抽出部と、抽出された第1の直流成分データと初期データとの差分となる第1の交流成分データを抽出する第1の交流成分抽出部と、初期データよりも時間的に後から濃度基準部材から読み取ったシェーディングデータである現在データから第2の直流成分データを抽出する第2の直流成分抽出部と、抽出された第2の直流成分データと初期データとの差分となる第2の交流成分データを抽出する第2の交流成分抽出部と、第1の交流成分データの絶対値の最大値である第1の最大値を検出する第1のピーク検出部と、第2の交流成分データの絶対値の最大値である第2の最大値を検出する第2のピーク検出部と、第2の最大値を第1の最大値で除算処理することで、シェーディングデータの交流補正倍率を算出する補正倍率計算部と、交流補正倍率を乗算処理した第1の交流成分データに第1の直流成分データを加算処理することで、補正したシェーディングデータを生成する補正データ生成部と、補正したシェーディングデータを用いて、入力データにシェーディング補正処理を施して出力するシェーディング補正部を有する。   In order to solve the above-described problems and achieve the object, the present invention provides a first DC component extraction unit that extracts first DC component data from initial data that is shading data serving as a reference read from a density reference member. A first AC component extraction unit that extracts first AC component data that is a difference between the extracted first DC component data and initial data; and a concentration reference member that is later in time than the initial data. A second DC component extraction unit that extracts second DC component data from the current data that is the read shading data, and second AC component data that is the difference between the extracted second DC component data and the initial data A second AC component extraction unit for extracting the first AC component data, a first peak detection unit for detecting a first maximum value that is the maximum absolute value of the first AC component data, and an absolute value of the second AC component data A second peak detection unit that detects a second maximum value that is a maximum value of the correction value, and a correction magnification that calculates an AC correction magnification of the shading data by dividing the second maximum value by the first maximum value A calculation unit, a correction data generation unit that generates corrected shading data by adding the first DC component data to the first AC component data multiplied by the AC correction magnification, and the corrected shading data are used. A shading correction unit that performs a shading correction process on the input data and outputs the result.

本発明によれば、正確なシェーディング補正を行うことができるという効果を奏する。   According to the present invention, there is an effect that accurate shading correction can be performed.

図1は、読み取りモジュール(CIS)の模式図である。FIG. 1 is a schematic diagram of a reading module (CIS). 図2は、主走査光量分布のリップルの振幅が変動する理由を説明するための図である。FIG. 2 is a diagram for explaining the reason why the amplitude of the ripple in the main scanning light quantity distribution varies. 図3は、リップルの振幅差により、出力原稿または出力データに発生する縦スジを説明するための図である。FIG. 3 is a diagram for explaining vertical stripes generated in an output document or output data due to a ripple amplitude difference. 図4は、本発明の第1の実施の形態となる複合機(MFP)の断面図である。FIG. 4 is a sectional view of a multifunction peripheral (MFP) according to the first embodiment of the present invention. 図5は、第1の実施の形態のMFPに設けられている自動原稿搬送機構の断面図である。FIG. 5 is a cross-sectional view of an automatic document conveyance mechanism provided in the MFP according to the first embodiment. 図6は、第1の実施の形態のMFPに設けられている自動原稿搬送機構を制御するコントローラ、および、コントローラの周辺回路のブロック図である。FIG. 6 is a block diagram of a controller that controls the automatic document conveyance mechanism provided in the MFP according to the first embodiment and peripheral circuits of the controller. 図7は、第1の実施の形態のMFPに設けられている第2読取部のブロック図である。FIG. 7 is a block diagram of a second reading unit provided in the MFP according to the first embodiment. 図8は、第1の実施の形態のMFPの白補正部のブロック図である。FIG. 8 is a block diagram of the white correction unit of the MFP according to the first embodiment. 図9は、第1の実施の形態のMFPの白補正部における、原稿読取時シェーディングデータの交流成分の抽出動作を説明するための図である。FIG. 9 is a diagram for explaining an operation for extracting an AC component of shading data at the time of document reading in the white correction unit of the MFP according to the first embodiment. 図10は、第1の実施の形態のMFPの白補正部における、補正したシェーディングデータの生成動作を説明するための図である。FIG. 10 is a diagram for explaining the operation of generating corrected shading data in the white correction unit of the MFP according to the first embodiment. 図11は、第1の実施の形態のMFPの白補正部における、初期シェーディングデータと原稿読取時シェーディングデータとの間の振幅差を是正するシェーディングデータの生成動作を説明するための図である。FIG. 11 is a diagram for explaining the generation operation of shading data for correcting the amplitude difference between the initial shading data and the original reading shading data in the white correction unit of the MFP according to the first embodiment. 図12は、濃度基準部材に付着していた汚れの影響で、原稿読取時シェーディングデータに特異的なレベル変動が生じている様子を示す図である。FIG. 12 is a diagram illustrating a state in which specific level fluctuations occur in the shading data during document reading due to the influence of dirt adhering to the density reference member. 図13は、第2の実施の形態のMFPの白補正部のブロック図である。FIG. 13 is a block diagram of the white correction unit of the MFP according to the second embodiment. 図14は、第2の実施の形態のMFPの白補正部における、補正したシェーディングデータの生成動作を説明するための図である。FIG. 14 is a diagram for explaining the operation of generating corrected shading data in the white correction unit of the MFP according to the second embodiment. 図15は、第3の実施の形態のMFPの白補正部のブロック図である。FIG. 15 is a block diagram of the white correction unit of the MFP according to the third embodiment. 図16は、第3の実施の形態のMFPの白補正部における、補正したシェーディングデータの生成動作を説明するための図である。FIG. 16 is a diagram for explaining the operation of generating corrected shading data in the white correction unit of the MFP according to the third embodiment. 図17は、シェーディング補正でデータに特異的なレベル変動が生じた際の不都合を説明するための図である。FIG. 17 is a diagram for explaining an inconvenience when a specific level fluctuation occurs in data by shading correction. 図18は、第4の実施の形態のMFPの白補正部のブロック図である。FIG. 18 is a block diagram of the white correction unit of the MFP according to the fourth embodiment. 図19は、第4の実施の形態のMFPの白補正部における、補正したシェーディングデータの生成動作を説明するための図である。FIG. 19 is a diagram for explaining the operation of generating corrected shading data in the white correction unit of the MFP according to the fourth embodiment. 図20は、第5の実施の形態のMFPの白補正部のブロック図である。FIG. 20 is a block diagram of the white correction unit of the MFP according to the fifth embodiment. 図21は、第5の実施の形態のMFPの白補正部における、補正したシェーディングデータの生成動作を説明するための図である。FIG. 21 is a diagram for explaining the operation of generating corrected shading data in the white correction unit of the MFP according to the fifth embodiment.

以下、一例として、本発明を適用した実施の形態の複合機(MFP:Multifunction Peripheral)を、図面を参照しながら詳細に説明する。なお、MFPは、例えば印刷機能、複写機能、スキャナ機能、およびファクシミリ機能のうち、1つまたは2つ以上の機能を有する電子機器である。   Hereinafter, as an example, an MFP (Multifunction Peripheral) according to an embodiment to which the present invention is applied will be described in detail with reference to the drawings. Note that the MFP is an electronic device having one or more of a printing function, a copying function, a scanner function, and a facsimile function, for example.

(概要)
MFP等の画像の読み取りを行う電子機器において、読み取り光学系の主走査位置毎の光量分布のばらつき、およびセンサチップ画素毎の感度のばらつきを補正するために、シェーディング補正が行われる。具体的には、所定の白色を有する濃度基準部材の読み取り結果(シェーディングデータ)を「SD」、入力データを「Din」とし、以下の数1式の演算を行うことで、入力データに対してシェーディング補正を施した結果である「Dout」を得るようになっている。
(Overview)
In an electronic apparatus such as an MFP that reads an image, shading correction is performed to correct variation in light amount distribution for each main scanning position of the reading optical system and variation in sensitivity for each sensor chip pixel. Specifically, the reading result (shading data) of the density reference member having a predetermined white color is set to “SD”, the input data is set to “Din”, and the calculation of the following equation (1) is performed on the input data. “Dout”, which is the result of the shading correction, is obtained.

Dout=Din/SD・・・(数1式)   Dout = Din / SD (Expression 1)

ここで、シェーディング補正に用いるシェーディングデータの生成時に、濃度基準部材に汚れが付着していると、汚れが付着している箇所のシェーディングデータの値は、正確なシェーディング補正が困難な値となる。これは、例えばライン状のイメージセンサ等の読み取り光学系の主走査方向(画素が並べられている方向)に沿って、濃度基準部材に付着している汚れが付着している箇所に対応する画素の画素データが正確にシェーディング補正されないことを意味している。このため、主走査方向に対して2次元方向に直交する副走査方向に読み取り光学系を走査して生成される1枚の画像上に、濃度基準部材に汚れが付着していた箇所に対応するスジ状のノイズが現れる不都合を生ずる。   Here, when the shading data used for the shading correction is generated, if dirt is attached to the density reference member, the value of the shading data at the place where the dirt is attached becomes a value for which accurate shading correction is difficult. This is because, for example, pixels corresponding to locations where dirt attached to the density reference member is attached along the main scanning direction (direction in which the pixels are arranged) of a reading optical system such as a line-shaped image sensor. This means that the pixel data is not accurately subjected to shading correction. For this reason, it corresponds to a location where the density reference member is contaminated on one image generated by scanning the reading optical system in the sub-scanning direction orthogonal to the two-dimensional direction with respect to the main scanning direction. This causes inconvenience in which streaky noise appears.

具体的には、濃度基準部材に黒い汚れが付着していた場合、黒い汚れにより、読み取り光が吸収され、また、乱反射することで、黒い汚れの付着箇所に対応する画素に対する入射光が、他の箇所よりも少なくなり、生成されるシェーディングデータの値に落ち込みが生ずる。この落ち込みが生じたシェーディングデータをシェーディング補正に用いると、上述の数1式の分母の値が小さくなるため、シェーディング補正結果が大きな値となり、白スジが発生する(シェーディング補正不足)。同様に、濃度基準部材に白い汚れが付着していた場合、白い汚れにより、読み取り光の反射量が多くなる。このため、白い汚れの付着箇所に対応する画素に対する入射光が、他の箇所よりも多くなり、生成されるシェーディングデータの値が大きな値となる。この大きな値となったシェーディングデータをシェーディング補正に用いると、上述の数1式の分母の値が大きくなるため、シェーディング補正結果が小さな値となり、黒スジが発生する(シェーディング補正過多)。   Specifically, when black stains are attached to the density reference member, the reading light is absorbed by the black stains, and the reflected light is diffusely reflected, so that incident light to the pixel corresponding to the black stain attachment portion is not detected. This causes a drop in the value of the generated shading data. When shading data having such a drop is used for shading correction, the value of the denominator of the above equation 1 becomes small, resulting in a large shading correction result and white streaks (insufficient shading correction). Similarly, when white dirt adheres to the density reference member, the amount of reflection of the reading light increases due to the white dirt. For this reason, the incident light with respect to the pixel corresponding to the spot where the white dirt is attached becomes larger than the other spots, and the value of the generated shading data becomes a large value. When this large value of shading data is used for shading correction, the value of the denominator of the above equation 1 becomes large, resulting in a small shading correction result and black streaks (excessive shading correction).

このようなスジ状のノイズの発生を防止するために、シェーディングデータの生成時に、画像読取部のイメージセンサと濃度基準部材との相対的な位置を、可動機構で変更することで、濃度基準部材の汚れおよびキズ等の影響を低減することが考えられる。すなわち、副走査方向にイメージセンサを移動させながら濃度基準部材の複数箇所の読み取りを行う。そして、読み取りを行った複数個所に対応する各シェーディングデータを平均化する。これにより、汚れおよびキズ等の影響を低減したシェーディングデータを生成できる。または、回転ローラで形成した濃度基準部材を回転させながら複数箇所の読み取りを行う。これにより、汚れおよびキズ等の影響を低減したシェーディングデータを生成できる。   In order to prevent the generation of such streaky noise, the density reference member is changed by changing the relative position of the image sensor of the image reading unit and the density reference member with a movable mechanism when generating shading data. It is conceivable to reduce the influence of dirt, scratches, and the like. That is, reading of a plurality of locations on the density reference member is performed while moving the image sensor in the sub-scanning direction. Then, each shading data corresponding to a plurality of locations where the reading has been performed is averaged. As a result, it is possible to generate shading data in which the influence of dirt and scratches is reduced. Alternatively, a plurality of locations are read while rotating the density reference member formed by the rotating roller. As a result, it is possible to generate shading data in which the influence of dirt and scratches is reduced.

しかし、原稿の裏面を読み取るための密着型イメージセンサ(CIS:Compact Image Sensor)等の読み取りモジュールは、ADF(Auto Document Feeder)装置内の小スペースに固定して設けられることが多い。このため、濃度基準部材および可動機構をADF装置内に設けると、ADF装置の複雑化、大型化およびコスト高を招く。   However, in many cases, a reading module such as a contact image sensor (CIS: Compact Image Sensor) for reading the back side of a document is fixed in a small space in an ADF (Auto Document Feeder) apparatus. For this reason, when the concentration reference member and the movable mechanism are provided in the ADF apparatus, the ADF apparatus becomes complicated, large, and expensive.

ここで、以下の手法により、可動機構を設けなくても濃度基準部材の汚れやキズの影響を低減できる。すなわち、不揮発性のメモリに、予め清浄な濃度基準部材で取得した初期のシェーディングデータを格納しておく。初期のシェーディングデータと、原稿を読み取る直前に取得したシェーディングデータとを対比する。対比結果が所定以上の画素位置のデータを、汚れまたはキズ等の影響を受けたデータとして判定する。そして、汚れの影響を受けたデータを、汚れの無い初期のシェーディングデータに光量比を補正して置き換えて補間する。なお、光量比は、初期のシェーディングデータと原稿を読み取る直前に取得したシェーディングデータとの主走査全域、または主走査の特定エリア平均値の比である。これにより、可動機構を設けなくても濃度基準部材の汚れやキズの影響を低減できる。   Here, the following method can reduce the influence of dirt and scratches on the density reference member without providing a movable mechanism. That is, the initial shading data acquired in advance with a clean concentration reference member is stored in a nonvolatile memory. The initial shading data is compared with the shading data acquired immediately before reading the document. Data at pixel positions whose comparison results are greater than or equal to a predetermined value is determined as data affected by dirt or scratches. Then, the data affected by the contamination is interpolated by replacing the initial shading data without the contamination with the light amount ratio corrected. The light amount ratio is the ratio of the entire area of the main scan or the average value of the specific area of the main scan between the initial shading data and the shading data acquired immediately before reading the document. Thereby, it is possible to reduce the influence of dirt and scratches on the density reference member without providing a movable mechanism.

しかし、このような手法においても、汚れを検知して初期のシェーディングデータに置き換えた箇所において、原稿を読み取る直前に取得したシェーディングデータと初期のシェーディングデータのロッドレンズ間隔で発生するリップルムラの振幅差に起因する縦スジが発生する。   However, even in such a method, at the place where the dirt is detected and replaced with the initial shading data, the amplitude difference of the ripple unevenness that occurs at the rod lens interval between the shading data acquired immediately before reading the original and the initial shading data is detected. The resulting vertical streak occurs.

以下、具体的に説明する。図1に読み取りモジュール(CIS)の模式図を示す。図1の(a)の符号を付した図は、読み取りモジュールの要部の分解斜視図である。図1の(b)の符号を付した図は、読み取りモジュールの、要部の拡大図である。図1の(c)の符号を付した図は、読み取りモジュールの各ロッドレンズに対応する出力波形を示す図である。   This will be specifically described below. FIG. 1 shows a schematic diagram of a reading module (CIS). The figure which attached | subjected the code | symbol of (a) of FIG. 1 is an exploded perspective view of the principal part of a reading module. The figure which attached | subjected the code | symbol of (b) of FIG. 1 is an enlarged view of the principal part of a reading module. The figure which attached | subjected the code | symbol of (c) of FIG. 1 is a figure which shows the output waveform corresponding to each rod lens of a reading module.

図1の(a)の符号を付した図に示すように、読み取りモジュールは、棒状の導光体1と、導光体1の両端部にそれぞれ設けられたLED等の光源部2とを有している。LEDは、「Light Emitting Diode」の略記である。導光体1は、光源部2からの光を、濃度基準部材および原稿等に照射する。また、読み取りモジュールは、濃度基準部材および原稿等に照射した光の反射光を読み取り信号に変換するラインセンサ3を有している。ラインセンサ3は、図1の(b)の符号を付した拡大図からわかるように、複数の読み取りセンサ(以下、画素という)3aが、主走査方向に沿ってライン状に配置されて形成されている。また、読み取りモジュールは、濃度基準部材および原稿等に照射された光の反射光をラインセンサ3に集光するロッドレンズアレイ4を有している。ロッドレンズアレイ4は、図1の(b)の符号を付した拡大図からわかるように、複数のロッドレンズ4aを、主走査方向に沿ってライン状に配置されて形成されている。   As shown in FIG. 1A, the reading module has a rod-shaped light guide 1 and light sources 2 such as LEDs provided at both ends of the light guide 1, respectively. doing. LED is an abbreviation for “Light Emitting Diode”. The light guide 1 irradiates light from the light source unit 2 to the density reference member and the original. Further, the reading module has a line sensor 3 that converts reflected light of light irradiated on the density reference member and the document into a reading signal. The line sensor 3 is formed by arranging a plurality of reading sensors (hereinafter referred to as pixels) 3a in a line along the main scanning direction, as can be seen from the enlarged view with the reference numeral (b) in FIG. ing. Further, the reading module has a rod lens array 4 that condenses the reflected light of the light applied to the density reference member and the original on the line sensor 3. The rod lens array 4 is formed by arranging a plurality of rod lenses 4a in a line along the main scanning direction, as can be seen from the enlarged view with the reference numeral (b) in FIG.

このような読み取りモジュールは、ロッドレンズ4を用いて反射光をラインセンサ3に集光している。このため、図1の(c)の符号を付した図から分かるように、反射光が集光されるロッドレンズ4aの中心付近では、ラインセンサ3の出力(読み取り信号のレベル)が高くなり、ロッドレンズ4aの端部においては、ラインセンサ3の出力が低くなる。このため、ロッドレンズ4a周期で、出力の高い位置と低い位置とが周期的に発生する。   Such a reading module condenses the reflected light on the line sensor 3 using the rod lens 4. For this reason, as can be seen from the figure labeled (c) in FIG. 1, the output of the line sensor 3 (the level of the read signal) increases near the center of the rod lens 4a where the reflected light is collected, The output of the line sensor 3 is low at the end of the rod lens 4a. For this reason, a position where the output is high and a position where the output is low occur periodically in the period of the rod lens 4a.

ここで、原稿読み取り時の光源部2の連続点灯による発熱、および、環境温度等により、光量の低下が発生すると共に、主走査光量分布のリップルの振幅が変動する。図2は、主走査光量分布のリップルの振幅が変動する理由を説明するための図である。また、図2の(a)の符号を付した図は、ロッドレンズ4aに熱膨張が生じていないときの、画素3aの出力を示す図である。図2の(b)の符号を付した図は、ロッドレンズ4aが熱膨張した後の、画素3aの出力を示す図である。   Here, due to heat generation due to continuous lighting of the light source unit 2 at the time of document reading, environmental light temperature, and the like, the light amount is reduced and the ripple amplitude of the main scanning light amount distribution varies. FIG. 2 is a diagram for explaining the reason why the amplitude of the ripple in the main scanning light quantity distribution varies. 2 is a diagram showing the output of the pixel 3a when the rod lens 4a is not thermally expanded. 2B is a diagram showing the output of the pixel 3a after the rod lens 4a has been thermally expanded.

図2の(a)および(b)の符号を付した図を、それぞれ見比べて分かるように、ロッドレンズ4aが熱膨張して径の大きさが変化すると、ロッドレンズ4aと画素3aの相対的な位置関係が副走査方向に経時でずれる。副走査方向は、主走査方向に対して、2次元的に直交する方向である。また、ラインセンサ3の基板も、熱膨張により副走査方向に伸びる。ラインセンサ3の基板が副走査方向に伸びると、ロッドレンズ4aと画素3aの相対的な位置関係が、副走査方向に経時でずれる。ロッドレンズ4aとラインセンサ3の基板の熱膨張率が等しければ、副走査光量分布のシフトは発生しない。しかし、ロッドレンズ4aとラインセンサ3の基板の熱膨張率は、それぞれ異なる。このため、ラインセンサ3で受光される反射光の受光量が減少する。   As can be seen by comparing the figures labeled (a) and (b) in FIG. 2, when the diameter of the rod lens 4a changes due to thermal expansion, the relative relationship between the rod lens 4a and the pixel 3a. The positional relationship shifts with time in the sub-scanning direction. The sub-scanning direction is a direction that is two-dimensionally orthogonal to the main scanning direction. The substrate of the line sensor 3 also extends in the sub-scanning direction due to thermal expansion. When the substrate of the line sensor 3 extends in the sub-scanning direction, the relative positional relationship between the rod lens 4a and the pixel 3a shifts with time in the sub-scanning direction. If the thermal expansion coefficients of the rod lens 4a and the substrate of the line sensor 3 are equal, the sub-scanning light quantity distribution does not shift. However, the thermal expansion coefficients of the rod lens 4a and the substrate of the line sensor 3 are different from each other. For this reason, the amount of reflected light received by the line sensor 3 is reduced.

図3は、リップルの振幅差により、出力原稿または出力データに発生する縦スジを説明するための図である。図3の(a)の符号を付した図において、点線の波形は、工場出荷時等の初期の段階で生成された初期シェーディングデータである。図3の(a)の符号を付した図において、実線の波形は、原稿読み取り時に生成された原稿読取時シェーディングデータである。図3の(b)の符号を付した図において、点線の波形は、工場出荷時等の初期の段階で生成された初期シェーディングデータである。図3の(b)の符号を付した図において、細線の波形は、原稿読み取り時に生成された原稿読取時シェーディングデータである。図3の(b)の符号を付した図において、太線の波形は、初期シェーディングデータで補正された原稿読取時シェーディングデータ(補正シェーディングデータ)である。   FIG. 3 is a diagram for explaining vertical stripes generated in an output document or output data due to a ripple amplitude difference. In FIG. 3A, the dotted waveform is initial shading data generated at an initial stage such as at the time of factory shipment. In the figure attached with the reference numeral (a) in FIG. 3, the solid line waveform is the original reading shading data generated when the original is read. In FIG. 3B, the dotted waveform is initial shading data generated at an initial stage such as at the time of factory shipment. In FIG. 3B, the thin line waveform is shading data at the time of document reading generated at the time of document reading. In the drawing with the symbol (b) in FIG. 3, the thick line waveform is the original reading shading data (corrected shading data) corrected by the initial shading data.

シェーディング補正を行う場合、通常、光量比を補正することで、汚れの影響を受けた原稿読取時シェーディングデータを、汚れの無い初期シェーディングデータに置き換える。光量比は、初期シェーディングデータと原稿読取時シェーディングデータの主走査全域、または、主走査の特定エリアの平均値の比である。初期シェーディングデータに置き換える時、光量比を補正した補正シェーディングデータにおいても、原稿読取時シェーディングデータのリップルを正確に再現困難となり、両者間に差が生じる場合がある。この場合、本来よりも明るい、または、本来よりも暗い補正シェーディングデータが生成される。このため、このような本来とは異なる補正シェーディングデータでシェーディング補正された箇所に、図3の(c)の符号を付した図に示すように、明るいスジ、または、暗いスジが発生する。   When performing the shading correction, the original reading shading data affected by the contamination is replaced with the initial shading data without the contamination by correcting the light amount ratio. The light quantity ratio is the ratio of the average value of the initial shading data and the original scanning whole shading data or the specific area of the main scanning. When replacing with the initial shading data, even in the corrected shading data in which the light quantity ratio is corrected, it is difficult to accurately reproduce the ripple of the shading data at the time of document reading, and there may be a difference between the two. In this case, corrected shading data that is brighter than the original or darker than the original is generated. For this reason, a bright streak or a dark streak is generated as shown in a diagram in which the reference numeral (c) in FIG.

(第1の実施の形態)
実施の形態のMFPは、以下に説明するように、原稿を読み取る直前に取得した汚れのついている原稿読取時シェーディングデータを、汚れのない初期シェーディングデータに置き換える際に、初期シェーディングデータを、原稿読取時シェーディングデータのリップルムラと振幅が合うように補正する。これにより、出力原稿または出力データに明るいスジ、または、暗いスジが発生する不都合を防止し、正確なシェーディング補正を可能とすることができる。
(First embodiment)
As will be described below, the MFP according to the embodiment replaces the original shading data at the time of reading, which is acquired immediately before reading the original, with the original shading data without the original, and replaces the initial shading data with the original reading. Correction is made so that the ripple unevenness and amplitude of the shading data match. As a result, it is possible to prevent inconvenience that a bright streak or a dark streak occurs in the output document or output data, and to enable accurate shading correction.

図4に、実施の形態のMFPの断面図を示す。この図4に示すように、実施の形態のMFPは、自動原稿搬送機構(ADF:Auto Document Feeder)10と、給紙部20と、画像形成部30とを備えている。給紙部20は、用紙サイズの異なる記録紙を収納する給紙カセット21,22を有している。また、給紙部20は、給紙カセット21,22に収納された記録紙を画像形成部30の画像形成位置まで搬送する各種ローラを備えた給紙機構23を有している。   FIG. 4 is a sectional view of the MFP according to the embodiment. As shown in FIG. 4, the MFP according to the embodiment includes an automatic document feeder (ADF) 10, a paper feeding unit 20, and an image forming unit 30. The paper feed unit 20 includes paper feed cassettes 21 and 22 that store recording papers having different paper sizes. In addition, the paper feed unit 20 includes a paper feed mechanism 23 including various rollers that transport the recording paper stored in the paper feed cassettes 21 and 22 to the image forming position of the image forming unit 30.

画像形成部30は、露光装置31と、感光体ドラム32と、現像装置33と、転写ベルト34と、定着装置35とを備えている。画像形成部30は、ADF10内部の画像読取部で読み取られた原稿の画像データに基づいて、露光装置31により感光体ドラム32を露光して感光体ドラム32に潜像を形成する。また、画像形成部30は、現像装置33により、感光体ドラム32に異なる色のトナーを供給して現像する。そして、画像形成部30は、転写ベルト34により、感光体ドラム32に現像された像を給紙部20から供給された記録紙に転写した後、定着装置35により記録紙に転写されたトナー画像のトナーを溶融して、記録紙にカラー画像を定着させる。   The image forming unit 30 includes an exposure device 31, a photosensitive drum 32, a developing device 33, a transfer belt 34, and a fixing device 35. The image forming unit 30 exposes the photosensitive drum 32 by the exposure device 31 based on the image data of the original read by the image reading unit in the ADF 10, and forms a latent image on the photosensitive drum 32. Further, the image forming unit 30 develops the developing device 33 by supplying toner of different colors to the photosensitive drum 32. Then, the image forming unit 30 transfers the image developed on the photosensitive drum 32 to the recording paper supplied from the paper feeding unit 20 by the transfer belt 34 and then the toner image transferred to the recording paper by the fixing device 35. The toner is melted to fix the color image on the recording paper.

図5は、ADF10の断面の拡大図である。また、図6は、ADF10を制御するコントローラ11、および、コントローラ11の周辺回路のブロック図である。ADF10は、固定された読取装置部に読取原稿を搬送し、所定の速度で搬送しながら画像の読み取りを行う。ADF10は、原稿セット部A、分離給送部B、レジスト部C、ターン部D、第1読取搬送部E、第2読取搬送部F、排紙部G、および、スタック部Hを有する。原稿セット部Aは、読取原稿束をセットする。分離給送部Bは、セットされた原稿束から一枚毎に原稿を分離して給送する。レジスト部Cは、給送された原稿を一次突当整合する働きと、整合後の原稿を引き出し搬送する働きを有する。ターン部Dは、搬送される原稿をターンさせて、原稿面を読取り側(下方)に向けて搬送する。第1読取搬送部Eは、原稿の表面画像を、コンタクトガラスの下方より読取を行わせる。第2読取搬送部Fは、読取後の原稿の裏面画像を読み取る。排紙部Gは、表裏の読取が完了した原稿を機外に排出する。スタック部Hは、読取完了後の原稿を積載保持する。   FIG. 5 is an enlarged view of a cross section of the ADF 10. FIG. 6 is a block diagram of the controller 11 that controls the ADF 10 and peripheral circuits of the controller 11. The ADF 10 conveys the read original to a fixed reading unit, and reads an image while conveying the original at a predetermined speed. The ADF 10 includes a document setting unit A, a separation feeding unit B, a registration unit C, a turn unit D, a first reading conveyance unit E, a second reading conveyance unit F, a paper discharge unit G, and a stack unit H. The document setting unit A sets a read document bundle. The separation feeding unit B separates and feeds the originals one by one from the set original bundle. The registration unit C has a function of primarily abutting and aligning the fed document and a function of pulling out and transporting the aligned document. The turn part D turns the document to be conveyed and conveys the document surface toward the reading side (downward). The first reading conveyance unit E reads the surface image of the document from below the contact glass. The second reading conveyance unit F reads the back image of the original after reading. The paper discharge unit G discharges the original whose front and back have been read out of the apparatus. The stack unit H stacks and holds documents after reading.

読み取りを行う原稿束130は、可動原稿テーブル131を含む原稿テーブル132上に、原稿面を上向きの状態としてセットする。さらに、原稿束130の幅方向を、図示しないサイドガイドによって、搬送方向と直行する方向に位置決めする。原稿のセットは、セットフィラー133、原稿セットセンサ100により検知され、I/F114により本体制御部122に送信される。   The original bundle 130 to be read is set on the original table 132 including the movable original table 131 with the original surface facing upward. Further, the width direction of the document bundle 130 is positioned in a direction perpendicular to the conveyance direction by a side guide (not shown). The document set is detected by the set filler 133 and the document set sensor 100 and transmitted to the main body control unit 122 by the I / F 114.

さらに、原稿テーブル面に設けられた原稿長さ検知センサ134または135(反射型センサ、または、原稿1枚も検知可能なアクチュエータータイプのセンサが用いられる)により、原稿の搬送方向長さの概略が判定される。   Further, the document length detection sensor 134 or 135 provided on the document table surface (a reflective sensor or an actuator type sensor capable of detecting even one document) is used to approximate the length of the document in the conveyance direction. Determined.

可動原稿テーブル131は、底板上昇モータ112により、図5中矢印で示すa方向およびb方向に動作可能(上下動可能)な構成となっている。可動原稿テーブル131は、原稿のセットを、セットフィラー133および原稿セットセンサ100で検知すると、底板上昇モータ112を正転させて原稿束130の最上面がピックアップローラ148と接触するように可動原稿テーブル131を上昇させる。ピックアップローラ148は、ピックアップモータ108を駆動源とするカム機構により、図5中矢印で示すc方向およびd方向に動作する。また、ピックアップローラ148は、可動原稿テーブル131が上昇し、可動原稿テーブル131上の原稿上面により押されてc方向に上がり、給紙適正位置センサ102により上限を検知可能となっている。   The movable document table 131 is configured to be movable (movable up and down) in the directions a and b indicated by arrows in FIG. When the set of documents is detected by the set filler 133 and the document set sensor 100, the movable document table 131 moves the bottom plate raising motor 112 in the normal direction so that the uppermost surface of the document bundle 130 contacts the pickup roller 148. 131 is raised. The pickup roller 148 operates in the c direction and the d direction indicated by arrows in FIG. 5 by a cam mechanism using the pickup motor 108 as a drive source. The pick-up roller 148 is raised by the movable original table 131 and is pushed by the upper surface of the original on the movable original table 131 to rise in the c direction.

操作部121よりプリントキーが押下され、本体制御部122からI/F114を介してコントローラ11に原稿給紙信号が送信されると、ピックアップローラ148が、給紙モータ109の正転により回転駆動され、原稿テーブル132上の数枚(理想的には1枚)の原稿をピックアップする。回転方向は、最上位の原稿を給紙口に搬送する方向である。   When the print key is pressed from the operation unit 121 and a document feed signal is transmitted from the main body control unit 122 to the controller 11 via the I / F 114, the pickup roller 148 is driven to rotate by the normal rotation of the feed motor 109. Then, several (ideally one) documents on the document table 132 are picked up. The rotation direction is a direction in which the uppermost document is conveyed to the sheet feeding port.

給紙ベルト136は、給紙モータ109の正転により給紙方向に駆動される。リバースローラ137は、給紙モータ109の正転により、給紙方向と逆方向に回転駆動され、最上位の原稿とその下の原稿を分離して、最上位の原稿のみを給紙する構成となっている。さらに詳しく説明すると、リバースローラ137は、給紙ベルト136と所定圧で接する。リバースローラ137は、給紙ベルト136と直接接している際、または原稿1枚を介して接している状態では、給紙ベルト136の回転につられて反時計回り方向に回転する。また、リバースローラ137は、給紙ベルト136とリバースローラ137との間に、2枚以上の原稿が侵入した時は、連れ回り力がトルクリミッターのトルクよりも低くなるように設定されている。この場合、リバースローラ137は、本来の駆動方向である時計回り方向に回転し、余分な原稿を押し戻す働きをする。これにより、原稿の重送を防止できる。   The paper feed belt 136 is driven in the paper feed direction by the normal rotation of the paper feed motor 109. The reverse roller 137 is rotationally driven in the direction opposite to the paper feeding direction by the forward rotation of the paper feeding motor 109, separates the uppermost document and the original document thereunder, and feeds only the uppermost document. It has become. More specifically, the reverse roller 137 contacts the paper feeding belt 136 with a predetermined pressure. The reverse roller 137 rotates counterclockwise in response to the rotation of the paper feed belt 136 when it is in direct contact with the paper feed belt 136 or in a state of being in contact with one original. The reverse roller 137 is set so that the follower force is lower than the torque of the torque limiter when two or more originals enter between the paper feed belt 136 and the reverse roller 137. In this case, the reverse roller 137 rotates in the clockwise direction, which is the original driving direction, and functions to push back the excess original. Thereby, it is possible to prevent double feeding of documents.

給紙ベルト136とリバースローラ137との作用により、1枚に分離された原稿は、給紙ベルト136によって更に送られ、突き当てセンサ105によって先端が検知され更に進んで停止しているプルアウトローラ138に突き当たる。その後、原稿は、突き当てセンサ105の検知から所定量定められた距離分、搬送され、プルアウトローラ138に所定量撓みを持って押し当てられる。この状態で、給紙モータ109が停止され、給紙ベルト136の駆動が停止する。この時、ピックアップモータ108を回転させ、ピックアップローラ148を原稿上面から退避させ、原稿を給紙ベルト136の搬送力のみで送る。これにより、原稿の先端部は、プルアウトローラ138の上下ローラ対のニップに進入し、先端部の整合(スキュー補正)が行われる。   The document separated into one sheet by the action of the paper feed belt 136 and the reverse roller 137 is further fed by the paper feed belt 136, the leading edge is detected by the abutting sensor 105, and the pull-out roller 138 is further advanced and stopped. I hit it. Thereafter, the original is conveyed by a predetermined distance from the detection of the abutting sensor 105 and pressed against the pull-out roller 138 with a predetermined amount of deflection. In this state, the paper feed motor 109 is stopped and the drive of the paper feed belt 136 is stopped. At this time, the pickup motor 108 is rotated, the pickup roller 148 is retracted from the upper surface of the document, and the document is fed only by the conveying force of the paper feed belt 136. As a result, the leading edge of the document enters the nip between the pair of upper and lower rollers of the pull-out roller 138, and alignment (skew correction) of the leading edge is performed.

プルアウトローラ138は、スキュー補正機能を有する。また、プルアウトローラ138は、分離後にスキュー補正された原稿を中間ローラ139まで搬送するためのローラで、給紙モータ109の逆転により駆動される。またこの時(給紙モータ109逆転時)、プルアウトローラ138と中間ローラ139は駆動されるが、ピックアップローラ148と給紙ベルト136は駆動されない。   The pull-out roller 138 has a skew correction function. The pull-out roller 138 is a roller for conveying the skew-corrected document after separation to the intermediate roller 139 and is driven by the reverse rotation of the paper feed motor 109. At this time (when the paper feed motor 109 rotates in reverse), the pull-out roller 138 and the intermediate roller 139 are driven, but the pickup roller 148 and the paper feed belt 136 are not driven.

原稿幅センサ104は、奥行き方向に複数個並べられ、プルアウトローラ138により搬送された原稿の搬送方向に直行する幅方向のサイズを検知する。また、原稿の搬送方向の長さは、原稿の先端および後端を突き当てセンサ105で読み取ることで生成されるモータパルスを用いて検知される。   A plurality of document width sensors 104 are arranged in the depth direction and detect the size in the width direction perpendicular to the transport direction of the document transported by the pull-out roller 138. Further, the length of the document in the conveyance direction is detected by using a motor pulse generated by reading the leading edge and the trailing edge of the document with the butting sensor 105.

プルアウトローラ138および中間ローラ139の駆動により、レジスト部Cからターン部Dに原稿が搬送される際には、レジスト部Cでの搬送速度が、第1読取搬送部Eでの搬送速度よりも高速に設定される。これにより、原稿を読み取り部へ送り込む処理時間の短縮化が図られている。原稿の先端が読取入口センサ103により検出されると、読取入口ローラ140の上下ローラ対のニップに原稿先端が進入する前に、原稿搬送速度を、読取搬送速度と同速にするために減速を開始する。これと同時に、読取モータ110を正転駆動し、読取入口ローラ140、読取出口ローラ141、およびCIS出口ローラ142を駆動する。レジストセンサ107で原稿の先端が検知されると、所定の搬送距離をかけて減速し、読取位置143の手前で一時停止すると共に、本体制御部122にI/F114を介してレジスト停止信号を送信する。   When the document is conveyed from the registration unit C to the turn unit D by driving the pull-out roller 138 and the intermediate roller 139, the conveyance speed at the registration unit C is higher than the conveyance speed at the first reading conveyance unit E. Set to As a result, the processing time for sending the document to the reading unit is shortened. When the leading edge of the document is detected by the reading entrance sensor 103, before the leading edge of the document enters the nip between the upper and lower rollers of the reading entrance roller 140, the document feeding speed is reduced to be the same as the reading feeding speed. Start. At the same time, the reading motor 110 is driven to rotate forward, and the reading inlet roller 140, the reading outlet roller 141, and the CIS outlet roller 142 are driven. When the registration sensor 107 detects the leading edge of the document, the document is decelerated over a predetermined conveyance distance, temporarily stops before the reading position 143, and transmits a registration stop signal to the main body control unit 122 via the I / F 114. To do.

続いて、本体制御部122より読取り開始信号を受信すると、レジスト停止していた原稿は、読取位置に原稿先端が到達するまでに所定の搬送速度に立ち上がるように増速されて搬送される。読取モータ110のパルスカウントにより検出された原稿先端が読取部に到達するタイミングで、本体制御部122に対して第1面の副走査方向の有効画像領域を示すゲート信号が、第1読取部を原稿後端が抜けるまで送信される。   Subsequently, when a reading start signal is received from the main body control unit 122, the document whose registration has been stopped is transported at an increased speed so as to rise to a predetermined transport speed before the leading end of the document reaches the reading position. When the leading edge of the document detected by the pulse count of the reading motor 110 reaches the reading unit, a gate signal indicating an effective image area in the sub-scanning direction of the first surface is sent to the main body control unit 122 from the first reading unit. Sent until the trailing edge of the document is removed.

片面原稿読取りの場合には、第1読取搬送部Eを通過した原稿は第2読取り部を経て排紙部Gへ搬送される。この際、排紙センサ106により原稿の先端が検知されると、排紙モータ111が正転駆動され、排紙ローラ144が、反時計回り方向に回転する。また、排紙センサ106による原稿の先端検知からの排紙モータパルスカウントにより、原稿後端が排紙ローラ144の上下ローラ対のニップから抜ける直前に、排紙モータ駆動速度が減速される。これにより、排紙トレイ145上に排出される原稿が、排紙トレイ145から飛び出る不都合を防止している。   In the case of single-sided document reading, the document that has passed through the first reading conveyance unit E is conveyed to the paper discharge unit G through the second reading unit. At this time, when the leading edge of the document is detected by the paper discharge sensor 106, the paper discharge motor 111 is driven to rotate forward, and the paper discharge roller 144 rotates counterclockwise. Further, the discharge motor drive speed is reduced immediately before the trailing edge of the document comes out of the nip between the upper and lower roller pairs of the discharge roller 144 by the discharge motor pulse count from the detection of the leading edge of the document by the discharge sensor 106. As a result, it is possible to prevent inconvenience that the document discharged onto the discharge tray 145 jumps out of the discharge tray 145.

両面原稿読取りの場合には、排紙センサ106にて原稿先端を検知してから読取りモータのパルスカウントにより第2読取部113に原稿先端が到達するタイミングで、第2読取部113に対してコントローラ11から副走査方向の有効画像領域を示すゲート信号が読取り部を原稿後端が抜けるまで送信される。第2読取ローラ146は、第2読取り部における原稿の浮きを抑える。また、第2読取ローラ146は、第2読取部113でシェーディングデータを取得するための基準白部(濃度基準部材)を兼ねている。   In the case of double-sided document reading, the controller for the second reading unit 113 is detected at the timing when the document leading edge reaches the second reading unit 113 by the pulse count of the reading motor after the discharge sensor 106 detects the document leading end. A gate signal indicating an effective image area in the sub-scanning direction is transmitted from 11 until the trailing edge of the original passes through the reading unit. The second reading roller 146 suppresses the floating of the document in the second reading unit. The second reading roller 146 also serves as a reference white portion (density reference member) for acquiring shading data by the second reading unit 113.

図7は、第2読取部113の電気回路の要部のブロック図である。図7に示すように、第2読取部113は、LED、蛍光灯、又は冷陰極管などからなる光源部2を有する。なお、光源部2は、図示しない導光体などと共に光を主走査方向に照射する照射部を構成する。   FIG. 7 is a block diagram of the main part of the electric circuit of the second reading unit 113. As shown in FIG. 7, the second reading unit 113 includes the light source unit 2 including an LED, a fluorescent lamp, a cold cathode tube, or the like. The light source unit 2 constitutes an irradiation unit that irradiates light in the main scanning direction together with a light guide (not shown).

また、第2読取部113は、主走査方向(原稿幅方向に対応する方向)に並ぶ複数の画素(光電変換素子)3a、各画素3aにそれぞれ接続された複数のアンプ回路202、各アンプ回路202にそれぞれ接続された複数のA/D変換部203も有している。A/D変換部203の出力信号には、信号成分以外に黒レベルオフセット成分が含まれている。第2読取部113は、黒レベルオフセット成分を除去する黒補正部204を有している。   The second reading unit 113 includes a plurality of pixels (photoelectric conversion elements) 3a arranged in the main scanning direction (a direction corresponding to the document width direction), a plurality of amplifier circuits 202 connected to each pixel 3a, and each amplifier circuit. A plurality of A / D converters 203 connected to 202 are also provided. The output signal of the A / D conversion unit 203 includes a black level offset component in addition to the signal component. The second reading unit 113 includes a black correction unit 204 that removes a black level offset component.

白補正部205は、黒補正部204の出力信号に対して白補正処理を施すことで、光源部2のムラおよび各画素3aの不均一な感度による画像データへの悪影響を除去する。また、詳しくは後述するが、白補正部205は、原稿を読み取る直前に濃度基準部材を読み取ることで取得した、汚れのついている原稿読取時シェーディングデータを、汚れのない初期シェーディングデータに置き換える際に、初期シェーディングデータを、原稿読取時シェーディングデータのリップルムラと振幅が合うように補正する。これにより、出力原稿または出力データに明るいスジ、または、暗いスジが発生する不都合を防止している。   The white correction unit 205 performs white correction processing on the output signal of the black correction unit 204, thereby removing adverse effects on the image data due to unevenness of the light source unit 2 and uneven sensitivity of each pixel 3a. As will be described in detail later, the white correction unit 205 replaces the dirty original reading shading data acquired by reading the density reference member immediately before reading the original with the original initial shading data without dirt. The initial shading data is corrected so that the ripple unevenness and the amplitude of the shading data at the time of document reading match. This prevents the inconvenience that bright or dark streaks occur in the output document or output data.

また、第2読取部113は、画像処理部206、フレームメモリ207、出力制御回路208、I/F回路209等も有している。   The second reading unit 113 also includes an image processing unit 206, a frame memory 207, an output control circuit 208, an I / F circuit 209, and the like.

このような第2読取部113で読み取りが行われる読取位置に対する原稿の搬送に先立って、コントローラ11から光源部2に点灯をON制御するための点灯信号が供給される。これにより、光源部2が点灯し、図示しない原稿に光が照射され、反射光が発生する。この原稿からの反射光は、ロッドレンズ4aにより各画素3aに集光され受光される。各画素3aは、受光した反射光に対応する電気信号である読み取り信号を生成する。読み取り信号は、アンプ回路202で増幅された後、A/D変換部203によって、読み取りデータにデジタル化される。例えば、読み取りデータが8bitの場合、黒レベルが「0」となり、白レベルが「255」となる。   Prior to the conveyance of the document to the reading position where reading is performed by the second reading unit 113, a lighting signal for ON control of lighting is supplied from the controller 11 to the light source unit 2. As a result, the light source unit 2 is turned on, light is irradiated onto a document (not shown), and reflected light is generated. The reflected light from the original is condensed and received by each pixel 3a by the rod lens 4a. Each pixel 3a generates a read signal that is an electrical signal corresponding to the received reflected light. The read signal is amplified by the amplifier circuit 202 and then digitized into read data by the A / D converter 203. For example, when the read data is 8 bits, the black level is “0” and the white level is “255”.

読み取りデータには、黒補正部204によりオフセット成分の除去処理が施され、白補正部205により、後述するシェーディング補正が施される。また、読み取りデータは、画像処理部206によりライン間補正処理等が施された後、フレームメモリ207に一時記憶される。その後、読み取りデータは、出力制御回路208によって本体制御部122でデータ処理可能なデータ形式に変換された後、I/F回路209を介して、本体制御部122に供給される。なお、コントローラ11から第2読取部113に対しては、上述の光源部2の点灯信号の他、原稿の先端が第2読取部113による読取位置に到達するタイミング(そのタイミング以降の画像データが有効データとして扱われる)を知らせるためのタイミング信号、および、電源等が供給される。   The read data is subjected to offset component removal processing by the black correction unit 204, and shading correction described later is performed by the white correction unit 205. Further, the read data is temporarily stored in the frame memory 207 after being subjected to an inter-line correction process or the like by the image processing unit 206. Thereafter, the read data is converted into a data format that can be processed by the main body control unit 122 by the output control circuit 208 and then supplied to the main body control unit 122 via the I / F circuit 209. In addition to the lighting signal of the light source unit 2 described above, the controller 11 sends the second reading unit 113 a timing at which the leading edge of the document reaches the reading position by the second reading unit 113 (image data after that timing is stored). A timing signal for notifying that the data is treated as valid data, a power source, and the like are supplied.

次に、白補正部205におけるシェーディング補正動作を説明する。図8は、白補正部205の機能ブロック図である。この図8に示すように、白補正部205は、第1記憶部301、第2記憶部302、平滑化部303、交流成分抽出部304、ピーク検出部305、および平滑化部306を有している。また、白補正部205は、交流成分抽出部307、ピーク検出部308、交流補正倍率計算部309、補正データ生成部310、およびシェーディング補正部311を有している。   Next, the shading correction operation in the white correction unit 205 will be described. FIG. 8 is a functional block diagram of the white correction unit 205. As shown in FIG. 8, the white correction unit 205 includes a first storage unit 301, a second storage unit 302, a smoothing unit 303, an AC component extraction unit 304, a peak detection unit 305, and a smoothing unit 306. ing. The white correction unit 205 includes an AC component extraction unit 307, a peak detection unit 308, an AC correction magnification calculation unit 309, a correction data generation unit 310, and a shading correction unit 311.

平滑化部303は、第1の直流成分抽出部の一例である。交流成分抽出部304は、第1の交流成分抽出部の一例である。平滑化部306は、第2の直流成分抽出部の一例である。交流成分抽出部307は、第2の交流成分抽出部の一例である。ピーク検出部305は、第1のピーク検出部の一例である。ピーク検出部308は、第2のピーク検出部の一例である。交流補正倍率計算部309は、補正倍率計算部の一例である。   The smoothing unit 303 is an example of a first DC component extraction unit. The AC component extraction unit 304 is an example of a first AC component extraction unit. The smoothing unit 306 is an example of a second DC component extraction unit. The AC component extraction unit 307 is an example of a second AC component extraction unit. The peak detection unit 305 is an example of a first peak detection unit. The peak detection unit 308 is an example of a second peak detection unit. The AC correction magnification calculator 309 is an example of a correction magnification calculator.

平滑化部303〜シェーディング補正部311は、コントローラ11が、図6に示すように、例えばハードディスクドライブ装置、ROMまたはRAM等の記憶部101に記憶されているシェーディング補正プログラムを実行することで、ソフトウェア的に実現する機能となっている。ROMは、「Read Only Memory」の略記である。RAMは、「Random Access Memory」の略記である。なお、この例では、白補正部205の平滑化部303〜シェーディング補正部311は、ソフトウェア的に実現することとして説明を進めるが、平滑化部303〜シェーディング補正部311のうち、一部または全部をハードウェアで実現してもよい。   As shown in FIG. 6, the smoothing unit 303 to the shading correction unit 311 are configured such that the controller 11 executes a shading correction program stored in the storage unit 101 such as a hard disk drive device, a ROM, or a RAM. It is a function that can be realized. ROM is an abbreviation for “Read Only Memory”. RAM is an abbreviation for “Random Access Memory”. In this example, the smoothing unit 303 to the shading correction unit 311 of the white correction unit 205 will be described as being realized by software, but a part or all of the smoothing unit 303 to the shading correction unit 311 is performed. May be realized by hardware.

また、シェーディング補正プログラムは、インストール可能な形式または実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)などのコンピュータ装置で読み取り可能な記録媒体に記録して提供してもよい。また、CD−R、DVD、ブルーレイディスク(登録商標)、半導体メモリなどのコンピュータ装置で読み取り可能な記録媒体に記録して提供してもよい。DVDは、「Digital Versatile Disk」の略記である。また、シェーディング補正プログラムは、インターネットなどのネットワーク経由でインストールするかたちで提供してもよい。また、シェーディング補正プログラムは、機器内のROM等に予め組み込んで提供してもよい。   Further, the shading correction program may be provided as a file in an installable format or an executable format recorded on a recording medium readable by a computer device such as a CD-ROM or a flexible disk (FD). Further, the program may be provided by being recorded on a computer-readable recording medium such as a CD-R, a DVD, a Blu-ray disc (registered trademark), or a semiconductor memory. DVD is an abbreviation for “Digital Versatile Disk”. Further, the shading correction program may be provided by being installed via a network such as the Internet. The shading correction program may be provided by being incorporated in advance in a ROM or the like in the device.

このような白補正部205において、実施の形態のMPFの工場出荷時等の初期時に、汚れていない濃度基準部材(この例の場合、上述の第2読取ローラ146)を読取った入力データを、初期シェーディングデータとして第1記憶部301に格納する。そして、第1記憶部301に格納した初期シェーディングデータを、不揮発性メモリなどで構成される第2記憶部302に転送して格納する。   In such a white correction unit 205, input data obtained by reading a non-dirty density reference member (in this example, the above-described second reading roller 146) at the initial stage such as when the MPF according to the embodiment is shipped from the factory, The initial shading data is stored in the first storage unit 301. Then, the initial shading data stored in the first storage unit 301 is transferred to and stored in the second storage unit 302 composed of a nonvolatile memory or the like.

次に、原稿読み取り時において、原稿の読み取りを行う直前に濃度基準部材を読み取り、これを原稿読取時シェーディングデータとして第1記憶部301に格納する。図9の(a)の符号を付した図は、原稿読取時シェーディングデータの一例を示す図である。この図9の(a)の符号を付した図からわかるように、原稿読取時シェーディングデータは、ロッドレンズ4aのレンズピッチに対応した周期的な変動成分が重畳した波形となっている。   Next, at the time of document reading, the density reference member is read just before reading the document, and this is stored in the first storage unit 301 as shading data at the time of document reading. FIG. 9A is a diagram showing an example of shading data at the time of document reading. As can be seen from FIG. 9A, the original reading shading data has a waveform in which a periodic fluctuation component corresponding to the lens pitch of the rod lens 4a is superimposed.

平滑化部306は、第1記憶部301から読み出された原稿読取時シェーディングデータから、ロッドレンズ4aのレンズピッチに対応した周期的な変動成分等を除去することで、原稿読取時シェーディングデータの直流成分を生成する。図9の(b)の符号を付した図が、原稿読取時シェーディングデータから生成された直流成分の波形図である。   The smoothing unit 306 removes the periodic fluctuation component corresponding to the lens pitch of the rod lens 4a from the original reading shading data read from the first storage unit 301, thereby obtaining the original reading shading data. A direct current component is generated. FIG. 9B is a waveform diagram of a DC component generated from shading data at the time of document reading.

交流成分抽出部307は、平滑化部306で生成された原稿読取時シェーディングデータの直流成分と、第1記憶部301から読み出された原稿読取時シェーディングデータとの差分となる交流成分を抽出する。図9の(c)の符号を付した図は、交流成分抽出部307により抽出された交流成分の波形を示している。   The AC component extraction unit 307 extracts an AC component that is a difference between the DC component of the original reading shading data generated by the smoothing unit 306 and the original reading shading data read from the first storage unit 301. . The figure which attached | subjected the code | symbol of (c) of FIG. 9 has shown the waveform of the alternating current component extracted by the alternating current component extraction part 307. FIG.

一方、平滑化部303および交流成分抽出部304も上述と同様に、第2記憶部302に格納された初期シェーディングデータから直流成分を抽出し、初期シェーディングデータから直流成分と初期シェーディングデータとの差分となる交流成分を抽出する。   On the other hand, the smoothing unit 303 and the AC component extraction unit 304 also extract the DC component from the initial shading data stored in the second storage unit 302 in the same manner as described above, and the difference between the DC component and the initial shading data from the initial shading data. To extract the AC component.

次に、主走査軸上でx画素目の初期シェーディングデータの交流成分の値を「Ainit(x)」とし、直流成分の値を「Dinit(x)」とする。また、原稿読取時シェーディングデータに関しても同様に、主走査軸上でx画素目の原稿読取時シェーディングデータの交流成分の値を「Apre(x)」とし、直流成分の値を「Dpre(x)」とする。そして、一定の画素数で構成されるブロックを主走査方向に複数設定し、以下に説明する処理をブロック単位で行う。   Next, the value of the AC component of the initial shading data of the x-th pixel on the main scanning axis is “Ainit (x)”, and the value of the DC component is “Dinit (x)”. Similarly for the original reading shading data, the AC component value of the x pixel original reading shading data on the main scanning axis is “Apre (x)” and the direct current component value is “Dpre (x)”. " A plurality of blocks each having a certain number of pixels are set in the main scanning direction, and the processing described below is performed in units of blocks.

ピーク検出部308は、上述のブロック内における原稿読取時シェーディングデータの交流成分Apre(x)の絶対値の最大値である「Apre_amp[]」を検出する。なお、Apre_amp[]のように、括弧([])がついた変数は配列であり、括弧内にはブロック番号が入ることとする。以下の説明においても同様である。また、ピーク検出部305は、上述のブロック内における初期シェーディングデータの交流成分Ainit(x)の絶対値の最大値である「Ainit_amp[]」を検出する。   The peak detector 308 detects “Apre_amp []”, which is the maximum absolute value of the AC component Pre (x) of the shading data at the time of document reading in the block. A variable with parentheses ([]), such as Apre_amp [], is an array, and a block number is placed in the parentheses. The same applies to the following description. Further, the peak detection unit 305 detects “Ainit_amp []”, which is the maximum absolute value of the AC component Ainit (x) of the initial shading data in the above-described block.

具体的には、図10の(a)の符号を付した図において、初期シェーディングデータの交流成分Ainit(x)、および、原稿読取時シェーディングデータの交流成分Apre(x)の各波形の一例を示す。図10の(a)の符号を付した図において、点線の波形が、初期シェーディングデータの交流成分Ainit(x)である。また、図10の(a)の符号を付した図において、実線の波形が、原稿読取時シェーディングデータの交流成分Apre(x)の波形である。この図10の(a)の符号を付した図に示すように、ピーク検出部308は、原稿読取時シェーディングデータの交流成分Apre(x)の絶対値の最大値Apre_amp[]、および、初期シェーディングデータの交流成分Ainit(x)の絶対値の最大値Ainit_amp[]を、ブロック毎に検出する。   Specifically, in the figure attached with the reference numeral (a) in FIG. 10, an example of each waveform of the alternating current component Ainit (x) of the initial shading data and the alternating current component Apre (x) of the shading data at the time of document reading. Show. In the diagram with the reference numeral (a) in FIG. 10, the dotted waveform is the AC component Ainit (x) of the initial shading data. In FIG. 10A, the solid line waveform is the waveform of the AC component Apre (x) of the shading data at the time of document reading. As shown in FIG. 10A, the peak detection unit 308 includes a maximum value Apre_amp [] of the absolute value of the AC component Apre (x) of the original reading shading data and the initial shading. The absolute maximum value Ainit_amp [] of the AC component Ainit (x) of the data is detected for each block.

次に、交流補正倍率計算部309は、図10の(b)の符号を付した図に示すように、以下の次の数2式を用いて、交流補正倍率α[]をブロック毎に算出する。   Next, the AC correction magnification calculator 309 calculates the AC correction magnification α [] for each block using the following equation 2 as shown in the figure with the symbol (b) in FIG. To do.

α[]=(Apre_amp[])/(Ainit_amp[])・・・(数2式)   α [] = (Apre_amp []) / (Ainit_amp []) (Expression 2)

なお、この数2式において、Ainit_amp[]=0の場合、α[]=0である。   In Equation 2, when Ainit_amp [] = 0, α [] = 0.

次に、補正データ生成部310は、第1の手順として、以下の数3式の演算を行う。これにより、補正データ生成部310は、各ブロックの初期シェーディングデータの交流成分Ainit(x)に対して、それぞれ対応する交流補正倍率α[]を乗算処理した補正交流成分Acor(x)を算出する。   Next, the correction data generation unit 310 performs the following equation 3 as a first procedure. Thereby, the correction data generation unit 310 calculates the corrected AC component Acor (x) obtained by multiplying the AC component Ainit (x) of the initial shading data of each block by the corresponding AC correction magnification α []. .

Acor(x)=Ainit(x)×α[]・・・(数3式)   Acor (x) = Ainit (x) × α [] (Expression 3)

図10の(c)の符号を付した図において、点線の波形は、補正倍率α[]の乗算処理前(補正前)における各ブロックの初期シェーディングデータの交流成分Ainit(x)の波形である。これに対して、図10の(c)の符号を付した図において、実線の波形は、補正倍率α[]の乗算処理後(補正後)における各ブロックの初期シェーディングデータの交流成分Ainit(x)の波形である。この図10(c)の符号を付した図からわかるように、初期シェーディングデータの交流成分Ainit(x)の値は、原稿読取時シェーディングデータの交流成分Apre(x)との間の振幅差に応じて補正される。   In FIG. 10C, the dotted waveform is the waveform of the AC component Ainit (x) of the initial shading data of each block before multiplication processing (before correction) with the correction magnification α []. . On the other hand, in the diagram with the reference numeral (c) in FIG. 10, the solid line waveform indicates the AC component Ainit (x) of the initial shading data of each block after the multiplication processing (after correction) with the correction magnification α []. ). As can be seen from FIG. 10C, the value of the AC component Ainit (x) of the initial shading data is the difference in amplitude from the AC component Apre (x) of the shading data during document reading. It is corrected accordingly.

次に、補正データ生成部310は、第2の手順として、以下の数4式の演算を行う。これにより、補正データ生成部310は、補正交流成分Acor(x)と、初期シェーディングデータの直流成分Dinit(x)とを加算処理した、主走査軸上におけるx画素目のシェーディングデータSD(x)を算出する。   Next, the correction data generation unit 310 performs the following equation 4 as a second procedure. As a result, the correction data generation unit 310 adds the corrected AC component Acor (x) and the DC component Dinit (x) of the initial shading data and performs shading data SD (x) for the x pixel on the main scanning axis. Is calculated.

SD(x)=Acor(x)+Dinit(x)・・・(数4式)   SD (x) = Acor (x) + Dinit (x) (Expression 4)

補正データ生成部310は、このような数3式および数4式の演算を、全画素に対して行うことで、全画素のシェーディングデータSD(x)を生成し、これをシェーディング補正部311に供給する。   The correction data generation unit 310 generates the shading data SD (x) for all the pixels by performing the operations of Equation 3 and Equation 4 for all the pixels, and supplies the shading correction unit 311 with the shading data SD (x). Supply.

図11は、シェーディングデータSD(x)の生成工程を模式的に示した図である。図11の(a)の符号を付した図は、交流補正倍率計算部309からの補正倍率α[]により補正された補正交流成分Acor(x)の波形図である。図11の(b)の符号を付した図は、平滑化部303により生成された初期シェーディングデータの直流成分Dinit(x)の波形である。図11の(c)の符号を付した図は、補正データ生成部310で生成されたシェーディングデータの波形図である。すなわち、図11の(a)の符号を付した図に示す補正交流成分Acor(x)と、図11の(b)の符号を付した図に示す初期シェーディングデータの直流成分Dinit(x)とを加算処理する(上述の数4式)。これにより、図11の(c)の符号を付した図に示すように、初期シェーディングデータの交流成分Ainit(x)と、原稿読取時シェーディングデータの交流成分Apre(x)との間の振幅差を是正するシェーディングデータSD(x)を生成することができる。   FIG. 11 is a diagram schematically illustrating a generation process of the shading data SD (x). 11A is a waveform diagram of the corrected AC component Acor (x) corrected by the correction magnification α [] from the AC correction magnification calculator 309. FIG. 11B is a waveform of the direct current component Dinit (x) of the initial shading data generated by the smoothing unit 303. 11 is a waveform diagram of shading data generated by the correction data generation unit 310. That is, the corrected AC component Acor (x) shown in the diagram with the symbol (a) in FIG. 11 and the DC component Dinit (x) of the initial shading data shown in the diagram with the symbol (b) in FIG. Are added (formula 4 described above). As a result, as shown in FIG. 11C, the amplitude difference between the AC component Ainit (x) of the initial shading data and the AC component Apre (x) of the shading data at the time of document reading. It is possible to generate shading data SD (x) for correcting the above.

次に、シェーディング補正部311は、補正データ生成部310により補正されたシェーディングデータSD(x)を用いて、黒補正部204からの読み取りデータ(入力データ)にシェーディング補正処理を施す。図12の実線の波形は、汚れ等が付着した濃度基準部材を読み取ることで、汚れ等の付着箇所に対応するタイミングで特異的な変動が発生している原稿読取時シェーディングデータの波形を示している。また、図12の点線の波形は、初期シェーディングデータの交流成分Ainit(x)と、原稿読取時シェーディングデータの交流成分Apre(x)との間の振幅差を是正するシェーディングデータSD(x)の波形を示している。   Next, the shading correction unit 311 performs a shading correction process on the read data (input data) from the black correction unit 204 using the shading data SD (x) corrected by the correction data generation unit 310. The waveform of the solid line in FIG. 12 shows the waveform of the shading data at the time of document reading in which specific fluctuations occur at the timing corresponding to the location where dirt or the like is attached by reading the density reference member to which dirt or the like is attached. Yes. Further, the dotted waveform in FIG. 12 indicates the shading data SD (x) for correcting the amplitude difference between the alternating current component Ainit (x) of the initial shading data and the alternating current component Apre (x) of the original shading data. The waveform is shown.

濃度基準部材に付着した汚れ等が原因で、原稿読取時シェーディングデータに特異的な変動が発生した場合でも、濃度基準部材に汚れの付着していない状態で取得された初期シェーディングデータに置換してシェーディング補正を行うため、濃度基準部材の汚れ等が原因で画像に縦スジが発生する不都合を防止できる。   Even if there is a specific fluctuation in the shading data during document reading due to dirt attached to the density reference member, it is replaced with the initial shading data acquired when the density reference member is not dirty. Since shading correction is performed, it is possible to prevent inconvenience that vertical stripes occur in an image due to contamination of the density reference member.

また、原稿読取時シェーディングデータを、初期シェーディングデータに置換する際に、初期シェーディングデータの交流成分Ainit(x)と、原稿読取時シェーディングデータの交流成分Apre(x)との間の振幅を合わせるように初期シェーディングデータを補正している。このため、正確なシェーディング補正を行うことができ、シェーディングデータの交流成分の振幅の差から生ずる周期的なスジの発生を防止した印刷画像または画像データを提供することができる。   Further, when the original reading shading data is replaced with the initial shading data, the amplitude between the AC component Ainit (x) of the initial shading data and the AC component Apre (x) of the original reading shading data is matched. The initial shading data is corrected. For this reason, it is possible to perform accurate shading correction, and it is possible to provide a print image or image data in which the occurrence of periodic streaks caused by the difference in the amplitude of the AC component of the shading data is prevented.

以上の説明から明らかなように、第1の実施の形態のMFPは、原稿を読取る直前に取得した汚れが付着した原稿読取時シェーディングデータを、汚れのない初期シェーディングデータに置き換える際に、原稿読取時シェーディングデータのリップルムラと振幅が合うように初期シェーディングデータを補正する。そして、補正した初期シェーディングデータを用いて、シェーディング補正を行う。これにより、シェーディングデータの交流成分の振幅の差から生ずる周期的なスジの発生を防止する、正確なシェーディング補正を行うことができる。   As can be seen from the above description, the MFP according to the first embodiment reads the original reading shading data, which is obtained immediately before the original is read, when the original reading shading data with the dirt is replaced with the initial shading data without the dirt. The initial shading data is corrected so that the ripple unevenness and the amplitude of the hourly shading data match. Then, shading correction is performed using the corrected initial shading data. Accordingly, it is possible to perform accurate shading correction that prevents the occurrence of periodic streaks caused by the difference in the amplitude of the AC component of the shading data.

(第2の実施の形態)
次に、本発明の第2の実施の形態となるMFPの説明をする。上述の第1の実施の形態のMFPでは、初期シェーディングデータの交流成分Ainit(x)、および、原稿読取時シェーディングデータの交流成分Apre(x)の各振幅の絶対値の最大値を用いて、初期シェーディングデータの補正倍率を決定した。これに対して、第2の実施の形態のMFPでは、初期シェーディングデータの交流成分Ainit(x)、および、原稿読取時シェーディングデータの交流成分Apre(x)の正側および負側の補正倍率を別個に決定するようにしたものである。以下、第1の実施の形態と第2の実施の形態の差異の説明のみ行い、重複説明は省略する。
(Second Embodiment)
Next, an MFP according to the second embodiment of the present invention will be described. In the MFP of the first embodiment described above, the maximum absolute value of each amplitude of the AC component Ainit (x) of the initial shading data and the AC component Apre (x) of the shading data during document reading is used. The correction magnification of the initial shading data was determined. In contrast, in the MFP according to the second embodiment, the correction factors on the positive side and the negative side of the AC component Ainit (x) of the initial shading data and the AC component Apre (x) of the shading data at the time of document reading are set. It is determined separately. Hereinafter, only the difference between the first embodiment and the second embodiment will be described, and a duplicate description will be omitted.

図13は、第2の実施の形態のMFPに設けられている白補正部205の機能ブロック図である。この図13に示す各機能ブロックのうち、ピーク検出部321、ピーク検出部322、交流補正倍率計算部323、および補正データ生成部324の各機能ブロックが、上述の第1の実施の形態との差異となっている。   FIG. 13 is a functional block diagram of the white correction unit 205 provided in the MFP according to the second embodiment. Of the functional blocks shown in FIG. 13, the functional blocks of the peak detector 321, peak detector 322, AC correction magnification calculator 323, and correction data generator 324 are the same as those in the first embodiment. It is a difference.

ピーク検出部321は、図14の(a)の符号を付した図に示すように、上述の各ブロック毎に、初期シェーディングデータの交流成分Ainit(x)の最大値Ainit_max[]、および、最小値Ainit_min[]を検出する。また、ピーク検出部322は、図14の(a)の符号を付した図に示すように、上述の各ブロック毎に、原稿読取時シェーディングデータの交流成分Apre(x)の最大値Apre_max[]、および、最小値Apre_min[]を検出する。なお、図14の(a)の符号を付した図において、例えばAinit_max[N]は、Nブロック目の初期シェーディングデータの交流成分Ainit(x)の最大値を示す。   As shown in the diagram with the symbol (a) in FIG. 14, the peak detection unit 321 includes the maximum value Ainit_max [] of the AC component Ainit (x) of the initial shading data and the minimum for each block described above. The value Ainit_min [] is detected. Further, as shown in the diagram with the symbol (a) in FIG. 14, the peak detection unit 322 has a maximum value Apre_max [] of the AC component Apre (x) of the document reading shading data for each of the blocks described above. , And the minimum value Apre_min [] is detected. In FIG. 14A, for example, Ainit_max [N] indicates the maximum value of the AC component Ainit (x) of the initial shading data of the Nth block.

交流補正倍率計算部323は、以下の数5式に示す演算を行うことで、図14の(b)の符号を付した図に示すように正側の補正倍率α_p[]をブロック毎に算出する。また、交流補正倍率計算部323は、以下の数6式に示す演算を行うことで、図14の(b)の符号を付した図に示すように負側の補正倍率α_n[]をブロック毎に算出する。   The AC correction magnification calculator 323 calculates the correction magnification α_p [] on the positive side for each block as shown in the drawing with the symbol (b) in FIG. To do. Further, the AC correction magnification calculator 323 calculates the negative correction magnification α_n [] for each block as shown in the diagram with the symbol (b) in FIG. To calculate.

正側の補正倍率α_p[]=(Apre_max[])/(Ainit_max[])・・・(数5式)   Positive side correction magnification α_p [] = (Apre_max []) / (Ainit_max []) (Expression 5)

なお、数5式において、Ainit_max[]=0の場合、α_p[]=0となる。   In Equation 5, when Ainit_max [] = 0, α_p [] = 0.

負側の補正倍率α_n[]=(Apre_min[])/(Ainit_min[])・・・(数6式)   Negative correction magnification α_n [] = (Apre_min []) / (Ainit_min []) (Expression 6)

なお、数6式において、Ainit_min[]=0の場合、α_n[]=0となる。   In Equation 6, when Ainit_min [] = 0, α_n [] = 0.

次に、補正データ生成部324は、Ainit(x)≧0の場合、以下の数7式による演算を行うことで、ブロック毎の正側の波形に対応する初期シェーディングデータの交流成分Ainit(x)に補正倍率α_p[]を乗算処理する。なお、「Ainit(x)≧0の場合」とは、初期シェーディングデータの交流成分Ainit(x)の値が正の値の場合を示している。これにより、補正データ生成部324は、図14の(c)の符号を付した図に示すように、正側を補正した初期シェーディングデータの交流成分Acor(x)を生成する。   Next, when Ainit (x) ≧ 0, the correction data generation unit 324 performs an arithmetic operation according to the following equation (7), whereby the AC component Ainit (x) of the initial shading data corresponding to the positive waveform for each block is calculated. ) Is multiplied by the correction magnification α_p []. Note that “when Ainit (x) ≧ 0” indicates a case where the value of the AC component Ainit (x) of the initial shading data is a positive value. As a result, the correction data generation unit 324 generates the AC component Acor (x) of the initial shading data with the positive side corrected, as shown in the drawing with the reference numeral (c) in FIG.

Acor(x)=Ainit(x)×α_p[]・・・(数7式)   Acor (x) = Ainit (x) × α_p [] (Expression 7)

同様に、補正データ生成部324は、Ainit(x)<0の場合、以下の数8式による演算を行うことで、ブロック毎の負側の波形に対応する初期シェーディングデータの交流成分Ainit(x)に補正倍率α_n[]を乗算処理する。なお、「Ainit(x) <0の場合」とは、初期シェーディングデータの交流成分Ainit(x)の値が負の値の場合を示している。これにより、補正データ生成部324は、図14の(c)の符号を付した図に示すように、負側を補正した初期シェーディングデータの交流成分Acor(x)を生成する。   Similarly, when Ainit (x) <0, the correction data generation unit 324 performs an arithmetic operation according to the following equation (8), so that the AC component Ainit (x) of the initial shading data corresponding to the negative waveform for each block is calculated. ) Is multiplied by the correction magnification α_n []. Note that “when Ainit (x) <0” indicates that the value of the AC component Ainit (x) of the initial shading data is a negative value. As a result, the correction data generation unit 324 generates the AC component Acor (x) of the initial shading data with the negative side corrected, as shown in the diagram with the sign (c) in FIG.

Acor(x)=Ainit(x)×α_n[]・・・(数8式)   Acor (x) = Ainit (x) × α_n [] (Expression 8)

次に、補正データ生成部324は、以下の数9式の演算を行い、正側および負側の両方を補正した初期シェーディングデータの交流成分Acor(x)と、初期シェーディングデータの直流成分Dinit(x)を加算する。この演算により、補正データ生成部324は、上述の正側および負側の両方の補正に対応するシェーディングデータSD(x)を生成する。   Next, the correction data generation unit 324 performs the calculation of Equation 9 below, and corrects both the positive and negative sides of the initial shading data AC component Acor (x) and the initial shading data DC component Dinit ( x) is added. By this calculation, the correction data generation unit 324 generates shading data SD (x) corresponding to both the positive side correction and the negative side correction described above.

SD(x)=Acor(x)+Dinit(x)・・・(数9式)   SD (x) = Acor (x) + Dinit (x) (Expression 9)

シェーディング補正部311は、補正データ生成部324で生成された、上述の正側および負側の両方の補正に対応するシェーディングデータSD(x)を用いて、黒補正部204からの読み取りデータ(入力データ)にシェーディング補正処理を施す。   The shading correction unit 311 uses the shading data SD (x) generated by the correction data generation unit 324 and corresponding to the above-described correction on both the positive side and the negative side, and reads data (input) from the black correction unit 204. Data) is subjected to shading correction processing.

以上の説明から明らかなように、第2の実施の形態のMFPは、正側および負側の補正倍率を個別に設定する。これにより、初期シェーディングデータの交流成分Ainit(x)の波形が、正側および負側で非対称な波形であっても、初期シェーディングデータの交流成分Ainit(x)の値を、原稿読取時シェーディングデータの交流成分Apre(x)の値に合わせることができる。このため、シェーディングデータの交流成分の振幅の差から生ずる周期的なスジの発生を、より強力に防止できる他、上述の第1の実施の形態のMFPと同様の効果を得ることができる。   As is apparent from the above description, the MFP according to the second embodiment individually sets the positive and negative correction magnifications. As a result, even if the waveform of the AC component Ainit (x) of the initial shading data is an asymmetric waveform on the positive side and the negative side, the value of the AC component Ainit (x) of the initial shading data is changed to the shading data at the time of document reading. Can be adjusted to the value of the AC component Apre (x). For this reason, the occurrence of periodic streaks caused by the difference in the amplitude of the AC component of the shading data can be prevented more strongly, and the same effect as that of the MFP of the first embodiment can be obtained.

(第3の実施の形態)
次に、本発明の第3の実施の形態となるMFPの説明をする。上述の各実施の形態のMFPでは、初期シェーディングデータの交流成分Ainit(x)、および、原稿読取時シェーディングデータの交流成分Apre(x)の各振幅の最大値、または、最小値を用いて、ブロック毎の初期シェーディングデータの補正倍率を決定した。これに対して、第3の実施の形態のMFPでは、初期シェーディングデータの交流成分Ainit(x)の値の平均値、および、原稿読取時シェーディングデータの交流成分Apre(x)の値の平均値で、ブロック毎の初期シェーディングデータの交流成分Ainit(x)の補正倍率を決定するようにしたものである。以下、上述の各実施の形態と第3の実施の形態の差異の説明のみ行い、重複説明は省略する。
(Third embodiment)
Next, an MFP according to the third embodiment of the present invention will be described. In the MFP of each of the embodiments described above, the maximum value or the minimum value of each amplitude of the AC component Ainit (x) of the initial shading data and the AC component Apre (x) of the shading data at the time of document reading is used. The correction factor of the initial shading data for each block was determined. On the other hand, in the MFP according to the third embodiment, the average value of the AC component Ainit (x) of the initial shading data and the average value of the AC component Apre (x) of the shading data at the time of document reading. Thus, the correction magnification of the AC component Ainit (x) of the initial shading data for each block is determined. Hereinafter, only the difference between each of the above-described embodiments and the third embodiment will be described, and redundant description will be omitted.

図15は、第3の実施の形態のMFPに設けられている白補正部205の機能ブロック図である。この図15の機能ブロックにおいて、ピーク検出部305,308,321,322が不要である点、および、交流補正倍率計算部331が、上述の平均値で、ブロック毎の初期シェーディングデータの交流成分Ainit(x)の補正倍率を決定する点が、上述の各実施の形態との差異となっている。   FIG. 15 is a functional block diagram of the white correction unit 205 provided in the MFP according to the third embodiment. In the functional block of FIG. 15, the peak detection units 305, 308, 321, and 322 are not necessary, and the AC correction magnification calculation unit 331 uses the above average value to determine the AC component Ainit of the initial shading data for each block. The point of determining the correction magnification of (x) is a difference from the above-described embodiments.

すなわち、第3の実施の形態のMFPの場合、図15に示す交流補正倍率計算部331は、図16の(a)の符号を付した図に示すように、初期シェーディングデータの交流成分Ainit(x)の値に応じて、上述のブロック毎に、下記の演算を行う。すなわち、Ainit(x)>0の場合、交流補正倍率計算部331は、以下の数10式の演算を行うことで、初期シェーディングデータの交流成分Ainit(x)と原稿読取時シェーディングデータの交流成分Apre(x)との比である「R_p(x)」を算出する。   That is, in the case of the MFP according to the third embodiment, the AC correction magnification calculator 331 shown in FIG. 15 has the AC component Ainit () of the initial shading data as shown in FIG. Depending on the value of x), the following calculation is performed for each block described above. That is, when Ainit (x)> 0, the AC correction magnification calculation unit 331 performs the calculation of the following equation (10), so that the AC component Ainit (x) of the initial shading data and the AC component of the shading data during document reading “R_p (x)”, which is a ratio to Apre (x), is calculated.

R_p(x)=(Apre(x))/(Ainit(x))・・・(数10式)   R_p (x) = (Apre (x)) / (Ainit (x)) (Expression 10)

なお、交流補正倍率計算部331は、この数10式の演算を行った場合、ブロック内でAinit(x)>0となる画素数を示す変数Num_p[]の値を1つインクリメントする。換言すると、交流補正倍率計算部331は、図16の(a)の符号を付した図に示すように、上述の比である「R_p(x)」を算出する演算を、各ブロック内において所定時間毎に行う。   Note that the AC correction magnification calculation unit 331 increments the value of the variable Num_p [] indicating the number of pixels satisfying Ainit (x)> 0 in the block when the calculation of Equation 10 is performed. In other words, the AC correction magnification calculator 331 performs an operation for calculating “R_p (x)”, which is the above-mentioned ratio, in each block, as shown in the diagram with the symbol (a) in FIG. Perform every hour.

また、Ainit(x)<0の場合、交流補正倍率計算部331は、以下の数11式の演算を行うことで、初期シェーディングデータの交流成分Ainit(x)と原稿読取時シェーディングデータの交流成分Apre(x)との比である「R_n(x)」を算出する。   When Ainit (x) <0, the AC correction magnification calculation unit 331 performs the calculation of Equation 11 below, so that the AC component Ainit (x) of the initial shading data and the AC component of the shading data at the time of document reading are calculated. “R_n (x)”, which is a ratio to Apre (x), is calculated.

R_n(x)=(Apre(x))/(Ainit(x))・・・(数11式)   R_n (x) = (Apre (x)) / (Ainit (x)) (Expression 11)

なお、交流補正倍率計算部331は、この数11式の演算を行った場合、ブロック内でAinit(x)<0となる画素数を示す変数Num_n[]の値を1つインクリメントする。換言すると、交流補正倍率計算部331は、図16の(a)の符号を付した図に示すように、上述の比である「R_n(x)」を算出する演算を、各ブロック内において所定時間毎に行う。また、交流補正倍率計算部331は、Ainit(x)=0の場合は、演算は行わない。   Note that the AC correction magnification calculator 331 increments the value of the variable Num_n [] indicating the number of pixels that satisfy Ainit (x) <0 in the block when the calculation of Equation 11 is performed. In other words, the AC correction magnification calculator 331 performs an operation for calculating “R_n (x)”, which is the above-mentioned ratio, in each block, as shown in the diagram with the symbol (a) in FIG. Perform every hour. In addition, the AC correction magnification calculator 331 does not perform calculation when Ainit (x) = 0.

次に、交流補正倍率計算部331は、以下の数12式の演算をブロック毎に行うことで、正側の補正倍率α_p[]を算出する。また、交流補正倍率計算部331は、以下の数13式の演算をブロック毎に行うことで、負側の補正倍率α_n[]を算出する。正側の補正倍率α_p[]は、各ブロック内における複数のR_p(x)の平均値である。同様に、負側の補正倍率α_n[]も、各ブロック内における複数のR_n(x)の平均値である。なお、以下の数12式および数13式において、「ΣR_p(x)」および「ΣR_n(x)」は、それぞれ各ブロック内でのR_p(x)の総和、R_n(x)の総和を示している。   Next, the AC correction magnification calculator 331 calculates the correction magnification α_p [] on the positive side by performing the following equation 12 for each block. Further, the AC correction magnification calculator 331 calculates the negative correction magnification α_n [] by performing the following equation 13 for each block. The positive correction magnification α_p [] is an average value of a plurality of R_p (x) in each block. Similarly, the negative correction magnification α_n [] is also an average value of a plurality of R_n (x) in each block. In the following equations (12) and (13), “ΣR_p (x)” and “ΣR_n (x)” indicate the sum of R_p (x) and the sum of R_n (x) in each block, respectively. Yes.

α_p[]=(ΣR_p(x))/(Num_p[])・・・(数12式)   α_p [] = (ΣR_p (x)) / (Num_p []) (Expression 12)

α_n[]=(ΣR_n(x))/(Num_n[])・・・(数13式)   α_n [] = (ΣR_n (x)) / (Num_n []) (Expression 13)

補正データ生成部324は、図16の(b)の符号を付した図に示すように、正側の平均値である補正倍率α_p[]を用いて、初期シェーディングデータの交流成分Ainit(x)をブロック毎に補正する。また、補正データ生成部324は、図16の(b)の符号を付した図に示すように、負側の平均値である補正倍率α_n[]を用いて、初期シェーディングデータの交流成分Ainit(x)の値をブロック毎に補正する。   The correction data generation unit 324 uses the correction magnification α_p [], which is an average value on the positive side, as shown in the diagram with the symbol (b) in FIG. 16, and the AC component Ainit (x) of the initial shading data. Is corrected for each block. Further, as shown in the drawing with the sign (b) in FIG. 16, the correction data generation unit 324 uses the correction magnification α_n [] that is the negative average value to use the alternating current component Ainit ( The value of x) is corrected for each block.

ここで、図17は、濃度基準部材に付着した汚れ等が原因で、原稿読取時シェーディングデータの交流成分Apre(x)の最大値または最小値が特異的に変化した場合、補正に用いる初期シェーディングデータの交流成分Ainit(x)の値が不適当な値となる様子を示している。すなわち、図17の(a)の符号を付した図は、原稿読取時シェーディングデータの交流成分Apre(x)に、いわゆるスパイクノイズ状の異常値が現れた様子を示している。   Here, FIG. 17 shows initial shading used for correction when the maximum value or minimum value of the AC component Apre (x) of the shading data at the time of document reading changes due to dirt or the like adhering to the density reference member. It shows how the value of the AC component Ainit (x) of the data becomes an inappropriate value. That is, the diagram with the symbol (a) in FIG. 17 shows a state in which a so-called spike noise-like abnormal value appears in the AC component Apre (x) of the shading data during document reading.

図17の(a)の符号を付した図において、Nブロック目の原稿読取時シェーディングデータの交流成分Apre(x)に現れた2つの異常値は、最大値以下、または、最小値未満である。このため、図17の(b)の符号を付した図に示すように、上述の正側および負側の補正倍率の演算(上述の数5式および数6式を参照)を行うことで、図17の(c)の符号を付した図に示すように、Nブロック目の初期シェーディングデータの交流成分Ainit(x)は、正確な補正倍率で、シェーディング補正に適した値に補正される。   In FIG. 17A, the two abnormal values appearing in the AC component Apre (x) of the N-block original reading shading data are equal to or less than the maximum value or less than the minimum value. . For this reason, as shown in the figure with the symbol (b) in FIG. 17, by calculating the positive and negative correction magnifications described above (see the above formulas 5 and 6), As shown in FIG. 17C, the AC component Ainit (x) of the initial shading data of the Nth block is corrected to a value suitable for shading correction with an accurate correction magnification.

これに対して、図17の(a)の符号を付した図において、N+1ブロック目の原稿読取時シェーディングデータの交流成分Apre(x)に現れた2つの異常値は、最大値または最小値を超えた値である。この場合、図17の(b)の符号を付した図に示す、上述の正側および負側の補正倍率の演算(上述の数5式および数6式を参照)を行うと、図17の(c)の符号を付した図に示すように、N+1ブロック目の初期シェーディングデータの交流成分Ainit(x)は、上述の異常値による不正確な補正倍率で補正され、シェーディング補正には適さない値となる恐れがある。   On the other hand, in the figure attached with the reference numeral (a) in FIG. 17, the two abnormal values appearing in the AC component Apre (x) of the shading data at the time of reading of the (N + 1) th document are the maximum or minimum values. The value is over. In this case, when the above-described correction magnifications on the positive side and the negative side (see the above formulas 5 and 6) shown in FIG. As shown in the figure with the reference numeral (c), the AC component Ainit (x) of the initial shading data of the (N + 1) th block is corrected with an inaccurate correction magnification due to the abnormal value described above, and is not suitable for shading correction. There is a risk of value.

しかし、第3の実施の形態のMFPの場合、図16を用いて説明したように、正側における初期シェーディングデータの交流成分Ainit(x)と原稿読取時シェーディングデータの交流成分Apre(x)との比である複数のR_p(x)の平均値を補正倍率α_p[]として用いて、初期シェーディングデータの交流成分Ainit(x)をブロック毎に補正する。また、第3の実施の形態のMFPの場合、負側における初期シェーディングデータの交流成分Ainit(x)と原稿読取時シェーディングデータの交流成分Apre(x)との比である複数のR_n(x)の平均値を補正倍率α_n[]として用いて、初期シェーディングデータの交流成分Ainit(x)をブロック毎に補正する。   However, in the case of the MFP according to the third embodiment, as described with reference to FIG. 16, the AC component Ainit (x) of the initial shading data on the positive side and the AC component Apre (x) of the shading data at the time of document reading The AC component Ainit (x) of the initial shading data is corrected for each block using an average value of a plurality of R_p (x) as a correction magnification α_p []. In the case of the MFP of the third embodiment, a plurality of R_n (x), which is the ratio of the AC component Ainit (x) of the initial shading data on the negative side to the AC component Apre (x) of the shading data at the time of document reading. Is used as the correction magnification α_n [] to correct the AC component Ainit (x) of the initial shading data for each block.

これにより、図17の(a)の符号を付した図に示したように、ブロック内に特異な値の最大値または最小値が現れた場合でも、上述の平均化により、正常に近い値の補正倍率を生成し、正確なシェーディング補正を実行可能とすることができる。このため、濃度基準部材に濃度変化の大きな汚れが付着した場合等の、濃度基準部材の汚れに対する耐性を高くすることができる。従って、シェーディングデータの交流成分の振幅の差から生ずる周期的なスジの発生を、さらに強力に防止できる他、上述の各実施の形態のMFPと同様の効果を得ることができる。   Thus, as shown in the diagram with the symbol (a) in FIG. 17, even when a singular maximum or minimum value appears in the block, the above-mentioned averaging results in a value close to normal. A correction magnification can be generated to enable accurate shading correction. For this reason, it is possible to increase the resistance of the density reference member to dirt, such as when dirt having a large density change adheres to the density reference member. Therefore, the occurrence of periodic streaks caused by the difference in the amplitude of the AC component of the shading data can be prevented more strongly, and the same effects as those of the MFPs of the above-described embodiments can be obtained.

(第4の実施の形態)
次に、本発明の第4の実施の形態となるMFPの説明をする。第4の実施の形態のMFPは、特異的に値が変動した画素が多い異常ブロックの補正倍率を、異常ブロックの前後の正常ブロックの補正倍率から推定する。そして、推定した補正倍率で初期シェーディングデータの交流成分Ainit(x)を補正してシェーディング補正に用いることで、正確なシェーディング補正を可能としたものである。以下、上述の各実施の形態と第4の実施の形態の差異の説明のみ行い、重複説明は省略する。
(Fourth embodiment)
Next, an MFP according to the fourth embodiment of the present invention will be described. The MFP according to the fourth embodiment estimates the correction magnification of an abnormal block having a large number of pixels whose values vary specifically from the correction magnification of normal blocks before and after the abnormal block. Then, the AC component Ainit (x) of the initial shading data is corrected with the estimated correction magnification and used for shading correction, thereby enabling accurate shading correction. Hereinafter, only the difference between each of the above-described embodiments and the fourth embodiment will be described, and redundant description will be omitted.

図18は、第4の実施の形態のMFPに設けられている白補正部205の機能ブロック図である。この図18の機能ブロックにおいて、異常検出部341、交流補正倍率計算部342、および出力選択部343が、上述の各実施の形態との差異となっている。   FIG. 18 is a functional block diagram of the white correction unit 205 provided in the MFP according to the fourth embodiment. In the functional block of FIG. 18, the abnormality detection unit 341, the AC correction magnification calculation unit 342, and the output selection unit 343 are different from the above-described embodiments.

すなわち、第4の実施の形態のMFPの場合、図18に示す異常検出部341に、第1記憶部301に格納された原稿読取時シェーディングデータ、および、第2記憶部302に格納された初期シェーディングデータが供給される。異常検出部341は、各シェーディングデータを比較することで、濃度基準部材の汚れ等が原因で原稿読取時シェーディングデータに特異的な変動が発生した画素を検出する。このような異常検出部341としては、例えば特開2010−011297号公報等で開示されている技術を用いることができる。   That is, in the case of the MFP according to the fourth embodiment, the abnormality detection unit 341 shown in FIG. 18 includes the original reading shading data stored in the first storage unit 301 and the initial storage stored in the second storage unit 302. Shading data is supplied. The anomaly detection unit 341 compares the shading data to detect a pixel in which a specific variation occurs in the shading data at the time of document reading due to contamination of the density reference member. As such an abnormality detection unit 341, for example, a technique disclosed in JP 2010-011297 A or the like can be used.

なお、特異的な変動が発生している画素を「異常画素」という。また、異常画素を含むブロックを「異常ブロック」という。これに対して、異常画素ではない画素を「正常画素」という。また、正常画素のみで構成されるブロックを「正常ブロック」という。   A pixel in which a specific variation occurs is referred to as “abnormal pixel”. A block including abnormal pixels is referred to as an “abnormal block”. In contrast, a pixel that is not an abnormal pixel is referred to as a “normal pixel”. A block composed of only normal pixels is referred to as a “normal block”.

図19の(a)の符号を付した図の例は、Nブロックが異常ブロック、Nブロックの前のブロックに相当するN−1ブロック、および、Nブロックの後のブロックに相当するN+1ブロックが、それぞれ正常ブロックである例である。また、図19の(a)の符号を付した図において、点線の波形は、初期シェーディングデータの交流成分Ainit(x)の波形の例である。また、図19の(a)の符号を付した図において、実線の波形は、原稿読取時シェーディングデータの交流成分Apre(x)の波形の例である。交流補正倍率計算部342は、まず、図19の(a)の符号を付した図に例示したような、全ての正常ブロックおよび異常ブロックに対して、第2または第3の実施の形態で説明したいずれかの手法で正側の補正倍率α_p[]および負側の補正倍率α_n[]を算出する。   In the example shown in FIG. 19A, the N block is an abnormal block, the N−1 block corresponding to the block before the N block, and the N + 1 block corresponding to the block after the N block. Are examples of normal blocks. In FIG. 19A, the dotted waveform is an example of the waveform of the AC component Ainit (x) of the initial shading data. In FIG. 19A, the solid line waveform is an example of the waveform of the AC component Apre (x) of the original reading shading data. First, the AC correction magnification calculator 342 will be described in the second or third embodiment with respect to all normal blocks and abnormal blocks as illustrated in the diagram with the symbol (a) in FIG. The positive correction magnification α_p [] and the negative correction magnification α_n [] are calculated by any of the methods described above.

次に、交流補正倍率計算部342は、異常ブロック(または複数の異常ブロックで構成されるブロック群)を挟む二つ一組の正常ブロックの補正倍率に用いて線形補間を行うことで、異常ブロックの補正倍率を再算出する。すなわち、図19の(b)の符号を付した図の例の場合、交流補正倍率計算部342は、異常ブロックとなっているNブロックに近接する正常ブロックの補正倍率を用いて線形補間を行うことで近似値を算出し、この近似値を、異常ブロックであるNブロックの補正倍率とする。図19の(b)の符号を付した図の例の場合、交流補正倍率計算部342は、異常ブロックとなっているNブロックの前後の正常ブロックであるN−1ブロックおよびN+1ブロックの補正倍率を用いて線形補間を行うことで近似値を算出し、この近似値を、異常ブロックであるNブロックの補正倍率とする。   Next, the AC correction magnification calculator 342 performs linear interpolation using the correction magnifications of a pair of normal blocks sandwiching an abnormal block (or a block group composed of a plurality of abnormal blocks), thereby performing an abnormal block. Recalculate the correction magnification. That is, in the case of the example shown in FIG. 19B, the AC correction magnification calculator 342 performs linear interpolation using the correction magnification of the normal block close to the N block that is an abnormal block. Thus, an approximate value is calculated, and this approximate value is used as the correction magnification of the N block that is an abnormal block. In the example shown in FIG. 19B, the AC correction magnification calculator 342 corrects the N-1 and N + 1 blocks, which are normal blocks before and after the N block that is an abnormal block. An approximate value is calculated by performing linear interpolation using, and this approximate value is used as the correction magnification of the N block that is an abnormal block.

具体的には、交流補正倍率計算部342は、この例の異常ブロックであるNブロックの正側の補正倍率α_p[N]を、以下の数14式に示す線形補間の演算式を用いて再算出し、負側の補正倍率α_n[N]を、以下の数15式に示す線形補間の演算式を用いて再算出する。   Specifically, the AC correction magnification calculator 342 recalculates the correction magnification α_p [N] on the positive side of the N block, which is an abnormal block in this example, by using the linear interpolation equation shown below. The negative correction magnification α_n [N] is calculated and recalculated using the linear interpolation formula shown in the following equation (15).

α_p[N]=α_p[N−1]+((α_p[N+1]−α_p[N−1])×{N−(N−1)})/{(N+1)−(N−1)}・・・(数14式)   α_p [N] = α_p [N−1] + ((α_p [N + 1] −α_p [N−1]) × {N− (N−1)}) / {(N + 1) − (N−1)}.・ ・ (Formula 14)

α_n[N]=α_n[N−1]+((α_n[N+1]−α_n[N−1])×{N−(N−1)})/{(N+1)−(N−1)}・・・(数15式)   α_n [N] = α_n [N−1] + ((α_n [N + 1] −α_n [N−1]) × {N− (N−1)}) / {(N + 1) − (N−1)}. .. (Formula 15)

なお、この例においては、異常ブロックの前後の正常ブロックを用いて、異常ブロックの補正倍率を線形補間により推定(再算出)した。しかし、例えば異常ブロックの前または後のうち、いずれか一方の複数の正常ブロックを用いて上述の推定を行ってもよい。また、例えば異常ブロックの二つ前の正常ブロック、異常ブロックの一つ前の正常ブロック、異常ブロックの一つ後の正常ブロック、異常ブロックの二つ後の正常ブロックを用いて上述の推定を行う等のように、二つ以上の正常ブロックを用いて上述の推定を行ってもよい。   In this example, the abnormal block correction magnification is estimated (recalculated) by linear interpolation using normal blocks before and after the abnormal block. However, for example, the above estimation may be performed using any one of the plurality of normal blocks before or after the abnormal block. Further, for example, the above estimation is performed using a normal block two blocks before the abnormal block, a normal block one block before the abnormal block, a normal block one block after the abnormal block, and a normal block two blocks after the abnormal block. As described above, the above estimation may be performed using two or more normal blocks.

次に、補正データ生成部324は、交流成分抽出304からの初期シェーディングデータの交流成分Ainit(x)に、交流補正倍率計算部342により算出された正側の補正倍率α_p[N]および負側の補正倍率α_n[N]を乗算する。これにより、図19の(c)の符号を付した図に示すように、正常ブロックであるN−1ブロックおよびN+1ブロックの初期シェーディングデータの交流成分Ainit(x)が、さらに最適な値のシェーディングデータに補正される。また、異常ブロックであるNブロックの初期シェーディングデータの交流成分Ainit(x)も、前後の正常ブロックから推定された最適な値のシェーディングデータに補正される。   Next, the correction data generation unit 324 adds the correction factor α_p [N] on the positive side calculated by the AC correction magnification calculation unit 342 and the negative side to the AC component Ainit (x) of the initial shading data from the AC component extraction 304. Is multiplied by the correction magnification α_n [N]. As a result, as shown in the diagram with the reference numeral (c) in FIG. 19, the AC component Ainit (x) of the initial shading data of the N−1 block and the N + 1 block, which are normal blocks, is further optimized in shading. Corrected to data. Further, the AC component Ainit (x) of the initial shading data of the N block that is an abnormal block is also corrected to the optimum value of the shading data estimated from the preceding and succeeding normal blocks.

次に、補正データ生成部324は、補正倍率を乗算処理することで補正した初期シェーディングデータの交流成分Ainit(x)と、平滑化部303から供給される初期シェーディングデータの直流成分Dinit(x)とを加算処理することで、シェーディング補正用のシェーディングデータを生成する。   Next, the correction data generation unit 324 multiplies the correction magnification by the AC component Ainit (x) of the initial shading data corrected and the DC component Dinit (x) of the initial shading data supplied from the smoothing unit 303. Are added to generate shading data for shading correction.

次に、出力選択部343には、第1記憶部301から読み出された原稿読取時シェーディングデータ、および、補正データ生成部324により補正された初期シェーディングデータが供給されている。また、出力選択部343には、異常検出部341からのブロック判別信号が供給されている。このブロック判別信号は、シェーディング補正部311でシェーディング補正を行おうとしているブロックが、正常ブロックまたは異常ブロックであることを示す信号である。   Next, the output selection unit 343 is supplied with the original reading shading data read from the first storage unit 301 and the initial shading data corrected by the correction data generation unit 324. Further, the block selection signal from the abnormality detection unit 341 is supplied to the output selection unit 343. This block discrimination signal is a signal indicating that the block for which shading correction is to be performed by the shading correction unit 311 is a normal block or an abnormal block.

出力選択部343は、異常検出部341から供給されたブロック判別信号が、正常ブロックであることを示す場合、第1記憶部301から読み出された原稿読取時シェーディングデータを選択して、シェーディング補正部311に供給する。すなわち、シェーディング補正部311でシェーディング補正を行おうとしているブロックが、正常ブロックである場合、第1記憶部301から読み出された原稿読取時シェーディングデータがシェーディング補正部311に供給される。   When the block determination signal supplied from the abnormality detection unit 341 indicates a normal block, the output selection unit 343 selects the original reading shading data read from the first storage unit 301 and performs shading correction. To the unit 311. That is, when the block on which shading correction is to be performed by the shading correction unit 311 is a normal block, the original reading shading data read from the first storage unit 301 is supplied to the shading correction unit 311.

これに対して、出力選択部343は、異常検出部341から供給されたブロック判別信号が、異常ブロックであることを示す場合、補正データ生成部324により補正された初期シェーディングデータを選択して、シェーディング補正部311に供給する。すなわち、シェーディング補正部311でシェーディング補正を行おうとしているブロックが、異常ブロックである場合、上述の線形補間により推定された近似値(補正された初期シェーディングデータ)が、シェーディング補正部311に供給される。   In contrast, when the block determination signal supplied from the abnormality detection unit 341 indicates that the block is an abnormal block, the output selection unit 343 selects the initial shading data corrected by the correction data generation unit 324, and This is supplied to the shading correction unit 311. That is, when the block on which shading correction is to be performed by the shading correction unit 311 is an abnormal block, the approximate value (corrected initial shading data) estimated by the above-described linear interpolation is supplied to the shading correction unit 311. The

シェーディング補正部311は、原稿読取時シェーディングデータを用いて、正常ブロックのシェーディング補正を行う。また、シェーディング補正部311は、上述の線形補間により推定された近似値(補正された初期シェーディングデータ)を用いて、異常ブロックのシェーディング補正を行う。   The shading correction unit 311 performs shading correction of normal blocks using the original reading shading data. In addition, the shading correction unit 311 performs shading correction of the abnormal block using the approximate value (corrected initial shading data) estimated by the above-described linear interpolation.

濃度基準部材の広範囲に汚れが付着した場合、特異的な値となった異常画素群の値が支配的となって補正倍率の演算が行われ、正確な補正倍率を算出することが困難となる。しかし、第4の実施の形態のMFPの場合、異常画素を含む異常ブロックの補正倍率を、異常ブロックの周囲の正常ブロックの値を用いて推定することで、適した値のシェーディング補正データを用いて、さらに正確なシェーディング補正を行うことができる他、上述の各実施の形態と同様の効果を得ることができる。   When dirt adheres to a wide range of the density reference member, the value of the abnormal pixel group having a specific value is dominant, and the correction magnification is calculated, which makes it difficult to calculate an accurate correction magnification. . However, in the case of the MFP according to the fourth embodiment, the shading correction data having an appropriate value is used by estimating the correction magnification of the abnormal block including the abnormal pixel using the values of the normal blocks around the abnormal block. In addition to performing more accurate shading correction, the same effects as those of the above-described embodiments can be obtained.

(第5の実施の形態)
次に、本発明の第5の実施の形態となるMFPの説明をする。上述の各実施の形態のMFPは、初期シェーディングデータの交流成分Ainit(x)を補正するものであった。これに対して、第5の実施の形態のMFPは、初期シェーディングデータの交流成分Ainit(x)と共に、直流成分Dinit(x)も補正するようにしたものである。以下、上述の各実施の形態と第5の実施の形態の差異の説明のみ行い、重複説明は省略する。
(Fifth embodiment)
Next, an MFP according to a fifth embodiment of the invention will be described. The MFP of each of the embodiments described above corrects the AC component Ainit (x) of the initial shading data. On the other hand, the MFP of the fifth embodiment corrects the DC component Dinit (x) as well as the AC component Ainit (x) of the initial shading data. Hereinafter, only the differences between the above-described embodiments and the fifth embodiment will be described, and redundant description will be omitted.

図20は、第5の実施の形態のMFPに設けられている白補正部205の機能ブロック図である。この図20の機能ブロックにおいて、異常検出部341、直流補正倍率計算部351、直流成分補正部352、交流成分補正部353、および、出力選択部354が、上述の各実施の形態との差異となっている。異常検出部341は、異常画素検出部も兼ねている。   FIG. 20 is a functional block diagram of the white correction unit 205 provided in the MFP according to the fifth embodiment. In the functional block of FIG. 20, the abnormality detection unit 341, the DC correction magnification calculation unit 351, the DC component correction unit 352, the AC component correction unit 353, and the output selection unit 354 are different from the above-described embodiments. It has become. The abnormality detection unit 341 also serves as an abnormal pixel detection unit.

すなわち、図21の(a),(b),(c)の符号を付した各図において、二次曲線状の波形は、原稿読取時シェーディングデータの直流成分Dpre(x)の波形を示しており、緩やかな曲線状の波形(略々直線状の波形)は、初期シェーディングデータの直流成分Dinit(x)の波形を示している。第5の実施の形態のMFPの場合、図21の(a),(b),(c)の符号を付した各図に示したような、初期シェーディングデータの直流成分Dinit(x)、および、原稿読取時シェーディングデータの直流成分Dpre(x)が、平滑化部303および平滑化部306から直流補正倍率計算部351にそれぞれ供給される。   That is, in each figure attached with the reference numerals (a), (b), and (c) in FIG. 21, the waveform of the quadratic curve indicates the waveform of the DC component Dpre (x) of the shading data at the time of document reading. A gentle curved waveform (substantially linear waveform) indicates the waveform of the direct current component Dinit (x) of the initial shading data. In the case of the MFP of the fifth embodiment, the direct current component Dinit (x) of the initial shading data, as shown in the respective drawings with reference numerals (a), (b), and (c) in FIG. The DC component Dpre (x) of the original reading shading data is supplied from the smoothing unit 303 and the smoothing unit 306 to the DC correction magnification calculation unit 351, respectively.

第5の実施の形態のMFPの場合、異常検出部341は、原稿読取時シェーディングデータの直流成分、および、初期シェーディングデータの直流成分を比較することで、濃度基準部材の汚れ等が原因で特異的な変動が発生している画素を検出する。具体的には、異常検出部341は、図21の(a)の符号を付した図に例示する原稿読取時シェーディングデータの直流成分Dpre(x)、および、初期シェーディングデータの直流成分Dinit(x)を比較する。これにより、異常検出部341は、T番目の画素Dpre(T)およびU番目の画素Dpre(U)を異常画素として検出することとなる。この異常画素の検出出力(異常画素検出信号)は、直流補正倍率計算部351および出力選択部354に供給される。   In the case of the MFP according to the fifth embodiment, the abnormality detection unit 341 compares the DC component of the original reading shading data with the DC component of the initial shading data, so that it is unique due to contamination of the density reference member. A pixel in which a general fluctuation occurs is detected. Specifically, the abnormality detection unit 341 includes the direct current component Dpre (x) of the original reading shading data and the direct current component Dinit (x) of the initial shading data illustrated in FIG. ). Thereby, the abnormality detection unit 341 detects the Tth pixel Dpre (T) and the Uth pixel Dpre (U) as abnormal pixels. This abnormal pixel detection output (abnormal pixel detection signal) is supplied to the DC correction magnification calculator 351 and the output selector 354.

直流補正倍率計算部351は、以下の数16式の演算を行うことで、主走査軸上の位置xにおける直流成分の補正倍率β(x)を算出する。直流補正倍率計算部351は、主走査軸上の全ての画素に対する直流成分の補正倍率β(x)を算出する。   The DC correction magnification calculator 351 calculates the DC component correction magnification β (x) at the position x on the main scanning axis by performing the following equation (16). The DC correction magnification calculator 351 calculates a DC component correction magnification β (x) for all pixels on the main scanning axis.

β(x)=Dpre(x)/Dinit(x)・・・(数16式)   β (x) = Dpre (x) / Dinit (x) (Expression 16)

次に、直流補正倍率計算部351は、異常検出部341で検出された異常画素を挟む二つの正常画素の補正倍率β(x)を用い、線形補間による近似値を算出し、この近似値を異常画素の補正倍率β(x)とする。すなわち、直流補正倍率計算部351は、異常画素の補正倍率β(x)だけ、前後の正常画素を用いて再計算する。   Next, the DC correction magnification calculation unit 351 calculates an approximate value by linear interpolation using the correction magnification β (x) of two normal pixels sandwiching the abnormal pixel detected by the abnormality detection unit 341, and calculates this approximate value. It is assumed that the abnormal pixel correction magnification β (x). That is, the DC correction magnification calculator 351 recalculates using the normal pixels before and after the abnormal pixel correction magnification β (x).

具体的には、図21の(a)の符号を付した図において、原稿読取時シェーディングデータの直流成分Dpre(x)の出力レベルに大きな落ち込みが生じている箇所が存在する。この出力レベルの落ち込みの開始点となるS番目の画素Dpre(S)は正常画素である。また、出力レベルの落ち込みの終端点となるV番目の画素Dpre(V)は正常画素である。これに対して、原稿読取時シェーディングデータの直流成分Dpre(x)のS番目の画素Dpre(S)およびV番目の画素Dpre(V)の間に存在するT番目の画素Dpre(T)およびU番目の画素Dpre(U)は、それぞれ異常画素である。すなわち、T番目の画素Dpre(T)およびU番目の画素Dpre(U)は、原稿読取時シェーディングデータの直流成分Dpre(x)の出力レベルの落ち込みを生じさせている異常画素である。   Specifically, in the figure attached with the reference numeral (a) in FIG. 21, there is a portion where a large drop has occurred in the output level of the DC component Dpre (x) of the shading data at the time of document reading. The S-th pixel Dpre (S) that is the starting point of the drop in the output level is a normal pixel. Further, the Vth pixel Dpre (V) serving as the end point of the drop in the output level is a normal pixel. In contrast, T-th pixel Dpre (T) and U-th pixel Dpre (S) and V-th pixel Dpre (V) of DC component Dpre (x) of the shading data at the time of document reading are present. The second pixel Dpre (U) is an abnormal pixel. That is, the Tth pixel Dpre (T) and the Uth pixel Dpre (U) are abnormal pixels that cause a drop in the output level of the DC component Dpre (x) of the shading data at the time of document reading.

直流補正倍率計算部351は、S番目およびV番目の各正常画素の直流成分の補正倍率β(S)、β(V)を用い、以下の数17式および数18式に示す線形補間による近似値の演算を行う。この演算により、直流補正倍率計算部351は、この例において異常画素となっているT番目およびU番目の各異常画素に対応する直流成分の補正倍率β(T)、β(U)を再算出(推定)する。   The DC correction magnification calculator 351 uses the DC component correction magnifications β (S) and β (V) of the S-th and V-th normal pixels, and approximates by linear interpolation shown in the following equations 17 and 18. Calculate the value. By this calculation, the DC correction magnification calculator 351 recalculates the DC component correction magnifications β (T) and β (U) corresponding to the T-th and U-th abnormal pixels which are abnormal pixels in this example. (presume.

β(T)=β(S)+({β(V)−β(S)}×(T−S))/(V−S)・・・(数17式)   β (T) = β (S) + ({β (V) −β (S)} × (TS)) / (V−S) (Expression 17)

β(U)=β(S)+({β(V)−β(S)}×(U−S))/(V−S)・・・(数18式)   β (U) = β (S) + ({β (V) −β (S)} × (U−S)) / (V−S) (Expression 18)

次に、直流成分補正部352は、直流補正倍率計算部351で算出した補正倍率β(x)と、平滑化部303から供給された初期シェーディングデータの直流成分Dinit(x)とを乗算処理し、乗算処理結果を補正後の直流成分とする。すなわち、直流成分補正部352は、以下の数19式の演算を行うことで、補正後の直流成分Dcor(x)を算出する。   Next, the DC component correction unit 352 multiplies the correction magnification β (x) calculated by the DC correction magnification calculation unit 351 and the DC component Dinit (x) of the initial shading data supplied from the smoothing unit 303. The multiplication processing result is taken as the corrected DC component. That is, the DC component correction unit 352 calculates the corrected DC component Dcor (x) by performing the calculation of the following equation (19).

Dcor(x)=β(x)×Dinit(x)・・・(数19式)   Dcor (x) = β (x) × Dinit (x) (Equation 19)

これにより、図21の(b)の符号を付した図に示すように、初期シェーディングデータの直流成分Dinit(x)に出力レベルの落ち込みが生じている場合でも、図21の(c)の符号を付した図に示すように、出力レベルの落ち込みを補正した直流成分Dinit(x)を生成することができる。すなわち、図21の(b)の符号を付した図に示すように、正常画素の補正倍率から再算出(推定)したT番目の異常画素用の補正倍率β(T)およびU番目の異常画素用の補正倍率β(U)で、T番目およびU番目の各異常画素に対応する直流成分Dpre(T)および直流成分Dpre(U)を補正する。これにより、図21の(c)の符号を付した図に示すように、T番目およびU番目の各異常画素に対応する直流成分Dpre(T)および直流成分Dpre(U)の出力レベルの落ち込みを補正することができる。   As a result, as shown in the diagram with the reference numeral (b) in FIG. 21, even when the output level drops in the direct current component Dinit (x) of the initial shading data, the reference numeral (c) in FIG. As shown in the figure attached, the DC component Dinit (x) in which the drop in the output level is corrected can be generated. That is, as shown in FIG. 21B, the correction magnification β (T) for the Tth abnormal pixel recalculated (estimated) from the correction magnification of the normal pixel and the Uth abnormal pixel. The DC component Dpre (T) and the DC component Dpre (U) corresponding to the Tth and Uth abnormal pixels are corrected with the correction magnification β (U). As a result, as shown in FIG. 21C, a drop in the output level of the DC component Dpre (T) and the DC component Dpre (U) corresponding to the Tth and Uth abnormal pixels. Can be corrected.

一方、交流成分補正部353は、上述の補正データ生成部324と同様に、初期シェーディングデータの補正した交流成分Acor(x)を生成する。すなわち、交流成分補正部353は、Ainit(x)≧0の場合、以下の数20式に示す演算を行う。これにより、初期シェーディングデータの交流成分Ainit(x)に対して、交流補正倍率計算342で算出した交流用の正側の補正倍率α_p[]を乗算処理して補正した交流成分Acor(x)を生成する。   On the other hand, the AC component correction unit 353 generates the AC component Acor (x) obtained by correcting the initial shading data in the same manner as the correction data generation unit 324 described above. That is, the AC component correction unit 353 performs the calculation shown in the following equation 20 when Ainit (x) ≧ 0. As a result, the AC component Acor (x) corrected by multiplying the AC component Ainit (x) of the initial shading data by the AC positive correction factor α_p [] calculated by the AC correction factor calculation 342 is obtained. Generate.

Acor(x)=Ainit(x)×α_p[]・・・(数20式)   Acor (x) = Ainit (x) × α_p [] (Expression 20)

交流成分補正部353は、Ainit(x)<0の場合、以下の数21式に示す演算を行う。これにより、初期シェーディングデータの交流成分Ainit(x)に対して、交流補正倍率計算342で算出した交流用の負側の補正倍率α_n[]を乗算処理して補正した交流成分Acor(x)を生成する。   The AC component correction unit 353 performs the calculation shown in the following Equation 21 when Ainit (x) <0. As a result, the AC component Acor (x) corrected by multiplying the AC negative component correction factor α_n [] calculated by the AC correction magnification calculation 342 with the AC component Ainit (x) of the initial shading data is corrected. Generate.

Acor(x)=Ainit(x)×α_n[]・・・(数21式)   Acor (x) = Ainit (x) × α_n [] (Expression 21)

次に、出力選択部354には、異常検出部341で直流成分が異常値となっている異常画素が検出されている間、異常画素検出信号が供給される。出力選択部354は、異常画素検出信号が供給されていないときには、以下の数22式で示すように、原稿読取時シェーディングデータのそのままの直流成分Dpre(x)、および、そのままの交流成分Apre(x)を加算処理したシェーディングデータSD(x)を生成する。すなわち、この場合のシェーディングデータSD(x)は、原稿読取時シェーディングデータをそのまま用いることを意味している。出力選択部354は、異常画素検出信号が供給されていないときには、この原稿読取時シェーディングデータを、シェーディングデータSD(x)としてシェーディング補正部311に供給する。   Next, an abnormal pixel detection signal is supplied to the output selection unit 354 while an abnormal pixel whose DC component has an abnormal value is detected by the abnormality detection unit 341. When the abnormal pixel detection signal is not supplied, the output selection unit 354, as shown in the following formula 22, the direct current component Dpre (x) of the original reading shading data and the direct current component Pre ( Shading data SD (x) is generated by adding x). That is, in this case, the shading data SD (x) means that the original reading shading data is used as it is. When the abnormal pixel detection signal is not supplied, the output selection unit 354 supplies the original reading shading data to the shading correction unit 311 as shading data SD (x).

SD(x)=Apre(x)+Dpre(x)・・・(数22式)   SD (x) = Apre (x) + Dpre (x) (Expression 22)

これに対して、出力選択部354は、異常検出部341から異常画素検出信号が供給された場合、以下の数23式に示すように、補正された交流成分Acor(x)と、補正された直流成分Dcor(x)とを加算処理し、この加算出力を、異常画素用のシェーディングデータSD(x)として選択し、シェーディング補正部311に供給する。   On the other hand, when an abnormal pixel detection signal is supplied from the abnormality detection unit 341, the output selection unit 354 is corrected with the corrected AC component Acor (x) as shown in Equation 23 below. The DC component Dcor (x) is added, and the added output is selected as shading data SD (x) for abnormal pixels and supplied to the shading correction unit 311.

SD(x)=Acor(x)+Dcor(x)・・・(数23式)   SD (x) = Acor (x) + Dcor (x) (Expression 23)

シェーディング補正部311は、原稿読取時シェーディングデータを用いて、正常画素のシェーディング補正を行う。また、シェーディング補正部311は、上述の線形補間により近似値に補正された直流成分が補正されたシェーディングデータを用いて、異常画素のシェーディング補正を行う。   The shading correction unit 311 performs shading correction of normal pixels using the document reading shading data. In addition, the shading correction unit 311 performs shading correction of abnormal pixels using the shading data in which the DC component corrected to the approximate value by the linear interpolation described above is corrected.

以上の説明から明らかなように、第5の実施の形態のMFPは、異常画素の直流成分の補正倍率を、周囲の正常画素の直流成分の補正倍率から線形補間によって近似する。そして、異常画素の直流成分を、直流成分の補正倍率と初期シェーディングデータの直流成分の積で上書き(再算出)する。これにより、原稿読取時シェーディングデータと初期シェーディングデータとの間で直流成分が変化した場合でも、異常画素の直流成分の値を、シェーディング補正に適した値に補正して用いることができる。このため、より正確なシェーディング補正を行うことができる他、上述の各実施の形態と同様の効果を得ることができる。   As is clear from the above description, the MFP of the fifth embodiment approximates the correction magnification of the DC component of the abnormal pixel by linear interpolation from the correction magnification of the DC component of the surrounding normal pixels. Then, the DC component of the abnormal pixel is overwritten (recalculated) by the product of the DC component correction magnification and the DC component of the initial shading data. Thereby, even when the DC component changes between the original reading shading data and the initial shading data, the DC component value of the abnormal pixel can be corrected to a value suitable for shading correction. For this reason, more accurate shading correction can be performed, and the same effects as those of the above-described embodiments can be obtained.

上述の各実施の形態は、例として説明したものであり、本発明の範囲を限定することは意図していない。これら新規な各実施の形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことも可能である。各実施の形態および各実施の形態の変形は、発明の範囲や要旨に含まれると共に、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Each of the above-described embodiments has been described by way of example, and is not intended to limit the scope of the present invention. Each of these novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. Each embodiment and modifications of each embodiment are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

1 導光体
2 光源部
3 ラインセンサ
3a 画素
4 ロッドレンズアレイ
4a ロッドレンズ
11 コントローラ
146 第2読取ローラ(濃度基準部材)
205 白補正部
301 第1記憶部
302 第2記憶部
303 平滑化部
304 交流成分抽出部
305 ピーク検出部
306 平滑化部
307 交流成分抽出部
308 ピーク検出部
309 交流補正倍率計算部
310 補正データ生成部
311 シェーディング補正部
321 ピーク検出部
322 ピーク検出部
323 交流補正倍率計算部
324 補正データ生成部
331 交流補正倍率計算部
341 異常検出部
342 交流補正倍率計算部
343 出力選択部
351 直流補正倍率計算部
352 直流成分補正部
353 交流成分補正部
354 出力選択部
DESCRIPTION OF SYMBOLS 1 Light guide 2 Light source part 3 Line sensor 3a Pixel 4 Rod lens array 4a Rod lens 11 Controller 146 2nd reading roller (density reference member)
205 white correction unit 301 first storage unit 302 second storage unit 303 smoothing unit 304 AC component extraction unit 305 peak detection unit 306 smoothing unit 307 AC component extraction unit 308 peak detection unit 309 AC correction magnification calculation unit 310 correction data generation 311 Shading correction unit 321 Peak detection unit 322 Peak detection unit 323 AC correction magnification calculation unit 324 Correction data generation unit 331 AC correction magnification calculation unit 341 Abnormality detection unit 342 AC correction magnification calculation unit 343 Output selection unit 351 DC correction magnification calculation unit 352 DC component correction unit 353 AC component correction unit 354 Output selection unit

特開2010−011297号公報JP 2010-011297 A

Claims (10)

濃度基準部材から読み取った基準となるシェーディングデータである初期データから第1の直流成分データを抽出する第1の直流成分抽出部と、
抽出された前記第1の直流成分データと前記初期データとの差分となる第1の交流成分データを抽出する第1の交流成分抽出部と、
前記初期データよりも時間的に後から前記濃度基準部材から読み取ったシェーディングデータである現在データから第2の直流成分データを抽出する第2の直流成分抽出部と、
抽出された前記第2の直流成分データと前記初期データとの差分となる第2の交流成分データを抽出する第2の交流成分抽出部と、
前記第1の交流成分データの絶対値の最大値である第1の最大値を検出する第1のピーク検出部と、
前記第2の交流成分データの絶対値の最大値である第2の最大値を検出する第2のピーク検出部と、
前記第2の最大値を前記第1の最大値で除算処理することで、シェーディングデータの交流補正倍率を算出する補正倍率計算部と、
前記交流補正倍率を乗算処理した前記第1の交流成分データに前記第1の直流成分データを加算処理することで、補正したシェーディングデータを生成する補正データ生成部と、
補正した前記シェーディングデータを用いて、入力データにシェーディング補正処理を施して出力するシェーディング補正部と
を有するシェーディング補正装置。
A first DC component extraction unit that extracts first DC component data from initial data that is shading data serving as a reference read from the density reference member;
A first AC component extraction unit that extracts first AC component data that is a difference between the extracted first DC component data and the initial data;
A second DC component extraction unit that extracts second DC component data from current data that is shading data read from the density reference member later in time than the initial data;
A second AC component extraction unit that extracts second AC component data that is a difference between the extracted second DC component data and the initial data;
A first peak detector that detects a first maximum value that is a maximum absolute value of the first AC component data;
A second peak detector that detects a second maximum value that is a maximum absolute value of the second AC component data;
A correction magnification calculator that calculates an AC correction magnification of shading data by dividing the second maximum value by the first maximum value;
A correction data generation unit that generates corrected shading data by adding the first DC component data to the first AC component data multiplied by the AC correction magnification;
A shading correction device, comprising: a shading correction unit that performs a shading correction process on input data using the corrected shading data.
前記第1のピーク検出部は、前記第1の交流成分データの正側の最大値を前記第1の最大値として検出し、
前記第2のピーク検出部は、前記第2の交流成分データの正側の最大値を前記第2の最大値として検出すること
を特徴とする請求項1に記載のシェーディング補正装置。
The first peak detection unit detects the maximum value on the positive side of the first AC component data as the first maximum value,
The shading correction apparatus according to claim 1, wherein the second peak detection unit detects a maximum value on the positive side of the second AC component data as the second maximum value.
前記第1のピーク検出部は、前記第1の交流成分データの正側の最大値および負側の最小値を検出し、
前記第2のピーク検出部は、前記第2の交流成分データの正側の最大値および負側の最小値を検出し、
前記補正倍率計算部は、前記第2のピーク検出部で検出された前記正側の最大値を、前記第1のピーク検出部で検出された前記正側の最大値で除算処理することで、正側のシェーディングデータの交流補正倍率を算出すると共に、前記第2のピーク検出部で検出された前記負側の最小値を、前記第1のピーク検出部で検出された前記負側の最小値で除算処理することで、負側のシェーディングデータの交流補正倍率を算出し、
前記補正データ生成部は、前記正側の交流補正倍率および前記負側の交流補正倍率をそれぞれ乗算処理した前記第1の交流成分データに前記第1の直流成分データを加算処理することで、補正したシェーディングデータを生成すること
を特徴とする請求項1または請求項2に記載のシェーディング補正装置。
The first peak detector detects a positive maximum value and a negative minimum value of the first AC component data;
The second peak detector detects a maximum value on the positive side and a minimum value on the negative side of the second AC component data;
The correction magnification calculation unit divides the maximum value on the positive side detected by the second peak detection unit by the maximum value on the positive side detected by the first peak detection unit, While calculating the AC correction magnification of the positive-side shading data, the negative-side minimum value detected by the second peak detection unit is used as the negative-side minimum value detected by the first peak detection unit. To calculate the AC correction magnification of the negative-side shading data.
The correction data generation unit performs correction by adding the first DC component data to the first AC component data obtained by multiplying the positive AC correction magnification and the negative AC correction magnification, respectively. The shading correction apparatus according to claim 1, wherein the shading data is generated.
前記第1のピーク検出部、前記第2のピーク検出部、前記補正倍率計算部、および前記補正データ生成部は、前記濃度基準部材の読み取りを行う読み取りモジュールの所定数の画素に対応するブロック単位で、前記最大値の検出、前記最小値の検出、前記交流補正倍率の算出、または、前記補正したシェーディングデータの生成を行うこと
を特徴とする請求項1から請求項3のうち、いずれか一項に記載のシェーディング補正装置。
The first peak detection unit, the second peak detection unit, the correction magnification calculation unit, and the correction data generation unit are block units corresponding to a predetermined number of pixels of a reading module that reads the density reference member The detection of the maximum value, the detection of the minimum value, the calculation of the AC correction magnification, or the generation of the corrected shading data is performed in any one of claims 1 to 3. The shading correction device according to item.
濃度基準部材から読み取った基準となるシェーディングデータである初期データから第1の直流成分データを抽出する第1の直流成分抽出部と、
抽出された前記第1の直流成分データと前記初期データとの差分となる第1の交流成分データを抽出する第1の交流成分抽出部と、
前記初期データよりも時間的に後から前記濃度基準部材から読み取ったシェーディングデータである現在データから第2の直流成分データを抽出する第2の直流成分抽出部と、
抽出された前記第2の直流成分データと前記初期データとの差分となる第2の交流成分データを抽出する第2の交流成分抽出部と、
所定時間毎に、前記第1の交流成分データおよび前記第2の交流成分データの比を算出すると共に、複数の前記比の平均値を、シェーディングデータの交流補正倍率として算出する補正倍率計算部と、
前記交流補正倍率を乗算処理した前記第1の交流成分データに前記第1の直流成分データを加算処理することで、補正したシェーディングデータを生成する補正データ生成部と、
補正した前記シェーディングデータを用いて、入力データにシェーディング補正処理を施して出力するシェーディング補正部と
を有するシェーディング補正装置。
A first DC component extraction unit that extracts first DC component data from initial data that is shading data serving as a reference read from the density reference member;
A first AC component extraction unit that extracts first AC component data that is a difference between the extracted first DC component data and the initial data;
A second DC component extraction unit that extracts second DC component data from current data that is shading data read from the density reference member later in time than the initial data;
A second AC component extraction unit that extracts second AC component data that is a difference between the extracted second DC component data and the initial data;
A correction magnification calculation unit that calculates a ratio between the first AC component data and the second AC component data every predetermined time and calculates an average value of the plurality of ratios as an AC correction magnification of shading data; ,
A correction data generation unit that generates corrected shading data by adding the first DC component data to the first AC component data multiplied by the AC correction magnification;
A shading correction device, comprising: a shading correction unit that performs a shading correction process on input data using the corrected shading data.
前記補正倍率計算部は、前記第1の交流成分データおよび前記第2の交流成分データを、正側および負側に分けて、それぞれ前記比、および、前記比の平均値である交流補正倍率の算出を行い、
前記補正データ生成部は、正側の前記第1の交流成分データに前記正側の交流補正倍率を乗算処理し、負側の前記第1の交流成分データに前記負側の交流補正倍率を乗算処理すること
を特徴とする請求項5に記載のシェーディング補正装置。
The correction magnification calculation unit divides the first AC component data and the second AC component data into a positive side and a negative side, and the ratio and an AC correction magnification that is an average value of the ratio, respectively. Perform the calculation
The correction data generation unit multiplies the positive first AC component data by the positive AC correction magnification, and multiplies the negative first AC component data by the negative AC correction magnification. The shading correction apparatus according to claim 5, wherein the shading correction apparatus performs processing.
前記補正倍率計算部、および、前記補正データ生成部は、
前記濃度基準部材の読み取りを行う読み取りモジュールの所定数の画素に対応するブロック単位で、前記比の算出、前記交流補正倍率の算出、および、前記補正したシェーディングデータの生成を行うこと
を特徴とする請求項5または請求項6に記載のシェーディング補正装置。
The correction magnification calculator and the correction data generator are
The ratio is calculated, the AC correction magnification is calculated, and the corrected shading data is generated in units of blocks corresponding to a predetermined number of pixels of a reading module that reads the density reference member. The shading correction apparatus according to claim 5 or 6.
前記初期データおよび前記現在データを比較することで、異常値を示す前記現在データを検出する異常検出部と、
前記現在データおよび前記補正データ生成部からの補正されたシェーディングデータのうち、いずれか一方を選択して前記シェーディング補正部に供給する出力選択部とを有し、
前記補正倍率計算部は、異常値を示す前記現在データが検出された場合、異常値を示す前記現在データに近接する正常値の前記現在データに対応する、前記第1の交流成分データの交流補正倍率を用いて、近似値となる交流補正倍率を算出し、算出した近似値の交流補正倍率を、前記異常値を示す前記現在データに対応する前記第1の交流成分データの交流補正倍率として出力し、
前記補正データ生成部は、前記近似値として算出された交流補正倍率で、異常値を示す前記現在データに対応する前記第1の交流成分データを補正し、
前記出力選択部は、前記異常検出部において、異常値を示す前記現在データが検出されている間は、前記補正データ生成部からの補正されたシェーディングデータを選択し、前記異常検出部で異常値を示す前記現在データが検出されていないときには、前記現在データを選択すること
を特徴とする請求項1〜請求項7のうち、いずれか一項に記載のシェーディング補正装置。
By comparing the initial data and the current data, an abnormality detection unit that detects the current data indicating an abnormal value;
An output selection unit that selects one of the current data and the corrected shading data from the correction data generation unit and supplies the selected shading data to the shading correction unit;
The correction magnification calculator, when the current data indicating an abnormal value is detected, AC correction of the first AC component data corresponding to the current data of a normal value close to the current data indicating an abnormal value Using the magnification, an AC correction magnification that is an approximate value is calculated, and the AC correction magnification of the calculated approximate value is output as an AC correction magnification of the first AC component data corresponding to the current data indicating the abnormal value. And
The correction data generation unit corrects the first AC component data corresponding to the current data indicating an abnormal value with the AC correction magnification calculated as the approximate value,
The output selection unit selects the corrected shading data from the correction data generation unit while the current data indicating an abnormal value is detected by the abnormality detection unit, and the abnormality detection unit selects an abnormal value. The shading correction apparatus according to any one of claims 1 to 7, wherein the current data is selected when the current data indicating is not detected.
前記初期データの直流成分および前記現在データの直流成分を比較することで、濃度基準部材の読み取りを行う読み取りモジュールの各画素のうち、直流成分の異常値を示す異常画素を検出する異常画素検出部と、
前記第1の直流成分データで前記第2の直流成分データを除算処理することで、直流成分データの直流補正倍率を算出すると共に、前記異常画素に近接する正常値の直流成分の正常画素に対応する前記直流補正倍率を用いて、近似値となる直流補正倍率を算出し、算出した近似値の直流補正倍率を、前記異常画素に対応する直流補正倍率として出力する直流補正倍率計算部と、
前記直流補正倍率を乗算処理して、前記第1の直流成分データのレベル補正を行う直流成分補正部とを有し、
前記出力選択部は、前記第1の交流成分データに、レベル補正された前記第1の直流成分データを加算処理することで、補正したシェーディングデータを生成すると共に、前記異常画素検出部で前記異常画素が検出されている間、前記補正したシェーディングデータを前記シェーディング補正部に供給し、前記異常画素検出部で前記異常画素が検出されない間は、前記現在データを前記シェーディング補正部に供給すること
を特徴とする請求項8に記載のシェーディング補正装置。
An abnormal pixel detection unit that detects an abnormal pixel indicating an abnormal value of the DC component among the pixels of the reading module that reads the density reference member by comparing the DC component of the initial data and the DC component of the current data. When,
By dividing the second DC component data by the first DC component data, the DC correction magnification of the DC component data is calculated, and the normal pixel of the normal value DC component close to the abnormal pixel is supported. A DC correction magnification calculator that calculates a DC correction magnification that is an approximate value using the DC correction magnification that is output, and outputs the calculated DC correction magnification of the approximate value as a DC correction magnification corresponding to the abnormal pixel;
A DC component correction unit that multiplies the DC correction magnification and performs level correction of the first DC component data,
The output selecting unit generates the corrected shading data by adding the level-corrected first DC component data to the first AC component data, and the abnormal pixel detecting unit generates the abnormal The corrected shading data is supplied to the shading correction unit while a pixel is detected, and the current data is supplied to the shading correction unit while the abnormal pixel is not detected by the abnormal pixel detection unit. 9. The shading correction apparatus according to claim 8, wherein
請求項1〜請求項9のうち、いずれか一項に記載のシェーディング補正装置を備えたこと
を特徴とする画像処理装置。
An image processing apparatus comprising the shading correction apparatus according to any one of claims 1 to 9.
JP2014158021A 2014-08-01 2014-08-01 Shading correction apparatus and image processing apparatus Expired - Fee Related JP6340983B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014158021A JP6340983B2 (en) 2014-08-01 2014-08-01 Shading correction apparatus and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014158021A JP6340983B2 (en) 2014-08-01 2014-08-01 Shading correction apparatus and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2016036076A true JP2016036076A (en) 2016-03-17
JP6340983B2 JP6340983B2 (en) 2018-06-13

Family

ID=55523713

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014158021A Expired - Fee Related JP6340983B2 (en) 2014-08-01 2014-08-01 Shading correction apparatus and image processing apparatus

Country Status (1)

Country Link
JP (1) JP6340983B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018067879A (en) * 2016-10-21 2018-04-26 コニカミノルタ株式会社 Image reading device and image reading method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008125006A (en) * 2006-11-15 2008-05-29 Fuji Xerox Co Ltd Image reader, image forming apparatus and image correction program
JP2008187529A (en) * 2007-01-30 2008-08-14 Kyocera Mita Corp Image reader and image forming apparatus
JP2008187531A (en) * 2007-01-30 2008-08-14 Kyocera Mita Corp Image reader and image forming apparatus
JP2012103291A (en) * 2010-11-05 2012-05-31 Fuji Xerox Co Ltd Image reading device and image forming apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008125006A (en) * 2006-11-15 2008-05-29 Fuji Xerox Co Ltd Image reader, image forming apparatus and image correction program
JP2008187529A (en) * 2007-01-30 2008-08-14 Kyocera Mita Corp Image reader and image forming apparatus
JP2008187531A (en) * 2007-01-30 2008-08-14 Kyocera Mita Corp Image reader and image forming apparatus
JP2012103291A (en) * 2010-11-05 2012-05-31 Fuji Xerox Co Ltd Image reading device and image forming apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018067879A (en) * 2016-10-21 2018-04-26 コニカミノルタ株式会社 Image reading device and image reading method

Also Published As

Publication number Publication date
JP6340983B2 (en) 2018-06-13

Similar Documents

Publication Publication Date Title
US8699104B2 (en) Image scanner, image forming apparatus and dew-condensation determination method
US10447890B2 (en) Image reading apparatus with shading correction
JP2010136164A (en) Image reading apparatus
JP2013141080A (en) Image reader, automatic document feeder, and image forming device
JP6409254B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2012103291A (en) Image reading device and image forming apparatus
JP6838348B2 (en) Image reader and image reading method
JP6340983B2 (en) Shading correction apparatus and image processing apparatus
JP5862293B2 (en) Image reading apparatus, automatic document feeder, and image forming apparatus
JP6497235B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP6131637B2 (en) Image reading apparatus and image forming apparatus provided with image reading apparatus
JP6354436B2 (en) Shading correction apparatus and image processing apparatus
JP2011097528A (en) Image reader, and image formation device
JP6303504B2 (en) Photoelectric conversion element, image reading apparatus, and image forming apparatus
JP6680110B2 (en) Image reading apparatus and image forming apparatus
JP6885078B2 (en) Image reader, image forming device, image processing device, and image processing method
US11343407B2 (en) Shading correction device, reading device, image forming apparatus, shading correction method, and non-transitory recording medium
JP2011259430A (en) Image reader and image reading abnormality detecting method
JP2011254356A (en) Image reading apparatus, image formation apparatus, and image reading method
JP6241094B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2010220115A (en) Image reader, image forming apparatus, image reading method for image reading apparatus, and image reading program
JP6707865B2 (en) Image reading apparatus, image forming apparatus, image reading method, and program
JP6155582B2 (en) Image reading apparatus, image reading method and program
JP2012104890A (en) Image reading device and image forming apparatus
JP6149432B2 (en) Image reading apparatus, image forming apparatus, image reading apparatus control method, and image reading apparatus control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170721

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180220

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180405

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180417

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180430

R151 Written notification of patent or utility model registration

Ref document number: 6340983

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees