JP2018121330A - Photoelectric conversion device, method for determining defective pixel, and image forming apparatus - Google Patents

Photoelectric conversion device, method for determining defective pixel, and image forming apparatus Download PDF

Info

Publication number
JP2018121330A
JP2018121330A JP2018002010A JP2018002010A JP2018121330A JP 2018121330 A JP2018121330 A JP 2018121330A JP 2018002010 A JP2018002010 A JP 2018002010A JP 2018002010 A JP2018002010 A JP 2018002010A JP 2018121330 A JP2018121330 A JP 2018121330A
Authority
JP
Japan
Prior art keywords
pixel
photoelectric conversion
time
defective
conversion element
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
JP2018002010A
Other languages
Japanese (ja)
Other versions
JP6992521B2 (en
Inventor
卓平 横山
Takuhei Yokoyama
卓平 横山
寛貴 白土
Hirotaka Shirato
寛貴 白土
政元 中澤
Masamoto Nakazawa
政元 中澤
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 US15/878,467 priority Critical patent/US10542184B2/en
Publication of JP2018121330A publication Critical patent/JP2018121330A/en
Application granted granted Critical
Publication of JP6992521B2 publication Critical patent/JP6992521B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)
  • Color Television Image Signal Generators (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the accuracy of a photoelectric conversion element in detecting a defective pixel.SOLUTION: A photoelectric conversion device acquires dark time pixel values that are pixel values obtained while light is not made incident on a photoelectric conversion element that creates an image signal according to the quantity of received light, at least respectively in a first time and a second time longer than the first time, takes the difference between dark time pixel values acquired in the second time and dark time pixel values acquired in the first time to detect the amount of noise during the dark time. The photoelectric conversion device then determines a pixel having an amount of noise equal to or larger than a predetermined first threshold as a defective pixel.SELECTED DRAWING: Figure 12

Description

本発明は、光電変換装置、欠陥画素の判定方法及び画像形成装置に関する。   The present invention relates to a photoelectric conversion device, a defective pixel determination method, and an image forming apparatus.

CCD(Charge Coupled Device)又はCMOS(Complementary Metal Oxide Semiconductor)等で形成されたリニアイメージセンサには、フォトダイオード(PD)の飽和電荷量異常又は暗電流異常等を生ずる欠陥画素が含まれていることが知られている。欠陥画素は、正常画素と比べて画素値が高く又は画素値が低くなるため、画質の低下を招く。このため、欠陥画素を検出して画素値を補正することが必要となる。   A linear image sensor formed by a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor) or the like includes a defective pixel that causes a saturation charge amount abnormality or dark current abnormality of a photodiode (PD). It has been known. A defective pixel has a higher pixel value or a lower pixel value than a normal pixel, which causes a reduction in image quality. For this reason, it is necessary to detect a defective pixel and correct the pixel value.

特許文献1(特開2014−110622号公報)には、2つの異なる露光時間で得た対象画素の画素値の時間に対する線形性の有無を判定し、露光時間と画素値に線形性の無い画素を欠陥画素として検出する画像処理装置が開示されている。   Patent Document 1 (Japanese Patent Application Laid-Open No. 2014-110622) determines whether or not there is linearity with respect to the time of the pixel value of the target pixel obtained at two different exposure times, and the pixel having no linearity in the exposure time and the pixel value. An image processing apparatus that detects a pixel as a defective pixel is disclosed.

しかし、特許文献1に開示されている画像処理装置は、欠陥画素の検出に、露光時の画像を使用する。光による画素値の変化は、暗電流による画素値の変化に比べて大きくなるため、暗電流に異常のある欠陥画素の検出が困難となる問題がある。   However, the image processing apparatus disclosed in Patent Document 1 uses an image at the time of exposure for detecting defective pixels. Since the change in the pixel value due to light is larger than the change in the pixel value due to the dark current, there is a problem that it is difficult to detect defective pixels having an abnormality in the dark current.

また、画素値には、回路のオフセット成分が含まれている。回路のオフセット成分は、暗電流に対して無視できない大きさである。このため、線形性を判定条件にして欠陥画素の検出を行う特許文献1の画像処理装置は、暗電流に異常のある欠陥画素を精度よく検出困難な問題がある。   The pixel value includes an offset component of the circuit. The offset component of the circuit is a non-negligible magnitude for dark current. For this reason, the image processing apparatus of Patent Document 1 that detects a defective pixel using linearity as a determination condition has a problem that it is difficult to accurately detect a defective pixel having an abnormality in dark current.

本発明は、上述の課題に鑑みてなされたものであり、イメージセンサの欠陥画素を精度よく検出可能な光電変換装置、欠陥画素の判定方法及び画像形成装置の提供を目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a photoelectric conversion device, a defective pixel determination method, and an image forming apparatus that can accurately detect defective pixels of an image sensor.

上述した課題を解決し、目的を達成するために、本発明は、受光光量に応じた画像信号を生成する光電変換素子と、光電変換素子に光が入射していない状態で得られる画素値である暗時の画素値を、少なくとも第1の時間、及び、第1の時間より長い第2の時間で取得し、第1の時間に取得した暗時の各画素値と第2の時間で取得した暗時の各画素値の差分を取ることで、暗時におけるノイズ量を検出するノイズ検出部と、所定の第1の閾値以上のノイズ量を有する画素を欠陥画素として判定する判定部とを有する。   In order to solve the above-described problems and achieve the object, the present invention provides a photoelectric conversion element that generates an image signal corresponding to the amount of received light, and a pixel value obtained in a state where no light is incident on the photoelectric conversion element. A certain dark pixel value is acquired at least at a first time and a second time longer than the first time, and is acquired at each dark pixel value acquired at the first time and the second time. A noise detection unit that detects a noise amount in the dark time by taking a difference between the pixel values in the dark time, and a determination unit that determines a pixel having a noise amount equal to or greater than a predetermined first threshold as a defective pixel Have.

本発明によれば、イメージセンサの欠陥画素を精度よく検出できるという効果を奏する。   According to the present invention, it is possible to accurately detect defective pixels of an image sensor.

図1は、実施の形態のMFPの横断面図である。FIG. 1 is a cross-sectional view of the MFP according to the embodiment. 図2は、実施の形態のMFPに設けられている読み取り装置の横断面図である。FIG. 2 is a cross-sectional view of a reading device provided in the MFP according to the embodiment. 図3は、実施の形態のMFPのハードウェア構成図である。FIG. 3 is a hardware configuration diagram of the MFP according to the embodiment. 図4は、実施の形態のMFPに設けられている光電変換素子のブロック図である。FIG. 4 is a block diagram of a photoelectric conversion element provided in the MFP according to the embodiment. 図5は、実施の形態のMFPに設けられている光電変換素子の回路図である。FIG. 5 is a circuit diagram of a photoelectric conversion element provided in the MFP according to the embodiment. 図6は、欠陥画素により読み取り画像に生ずる画像ノイズを説明するための図である。FIG. 6 is a diagram for explaining image noise generated in a read image due to defective pixels. 図7は、リニアセンサに欠陥画素が生じている場合において、読み取り画像に生ずる画像ノイズを示す図である。FIG. 7 is a diagram illustrating image noise generated in a read image when defective pixels are generated in the linear sensor. 図8は、参考例となる欠陥画素の検出手法を説明するための図である。FIG. 8 is a diagram for explaining a defective pixel detection method as a reference example. 図9は、参考例となる欠陥画素の検出手法の問題点を説明するための図である。FIG. 9 is a diagram for explaining a problem of a defective pixel detection method as a reference example. 図10は、実施の形態のMFPに設けられている画像読み取り部のブロック図である。FIG. 10 is a block diagram of an image reading unit provided in the MFP according to the embodiment. 図11は、画像読み取り部に設けられているノイズ検出部のブロック図である。FIG. 11 is a block diagram of a noise detection unit provided in the image reading unit. 図12は、実施の形態のMFPに設けられているノイズ検出部により、回路オフセット成分が除去された画素値を示す図である。FIG. 12 is a diagram illustrating pixel values from which circuit offset components have been removed by the noise detection unit provided in the MFP according to the embodiment. 図13は、実施の形態のMFPにおいて、黒シェーディング補正部が設けられている場合の画像読み取り部のブロック図である。FIG. 13 is a block diagram of the image reading unit when the black shading correction unit is provided in the MFP according to the embodiment. 図14は、実施の形態のMFPに設けられているノイズ検出部及び判定部で検出された欠陥画素の一例を示す図である。FIG. 14 is a diagram illustrating an example of defective pixels detected by a noise detection unit and a determination unit provided in the MFP according to the embodiment. 図15は、実施の形態のMFPにおいて、ノイズ検出部及び判定部で検出された欠陥画素を所定の優先順位に基づいて記憶する動作を説明するための図である。FIG. 15 is a diagram for explaining an operation of storing defective pixels detected by the noise detection unit and the determination unit based on a predetermined priority in the MFP according to the embodiment. 図16は、実施の形態のMFPの起動時における欠陥画素の検出タイミングを説明するためのフローチャートである。FIG. 16 is a flowchart for explaining the detection timing of a defective pixel when the MFP according to the embodiment is activated. 図17は、実施の形態のMFPにおける圧板を用いた原稿の読み取り時における欠陥画素の検出タイミングを説明するためのフローチャートである。FIG. 17 is a flowchart for explaining detection timing of a defective pixel at the time of reading a document using a pressure plate in the MFP according to the embodiment. 図18は、実施の形態のMFPにおけるADFを用いた原稿の読み取り時における欠陥画素の検出タイミングを説明するためのフローチャートである。FIG. 18 is a flowchart for explaining detection timing of a defective pixel at the time of reading a document using an ADF in the MFP according to the embodiment. 図19は、実施の形態のMFPに設けられている欠陥画素補正部のブロック図である。FIG. 19 is a block diagram of a defective pixel correction unit provided in the MFP according to the embodiment. 図20は、実施の形態のMFPの欠陥画素補正処理を説明するための図である。FIG. 20 is a diagram for explaining defective pixel correction processing of the MFP according to the embodiment. 図21は、実施の形態のMFPの欠陥画素補正処理の流れを示すフローチャートである。FIG. 21 is a flowchart illustrating a flow of defective pixel correction processing of the MFP according to the embodiment.

まず、最初に適用分野の説明をする。光電変換装置及び欠陥画素の判定方法は、画像の読み取りを行う機器の他、光の有無を感知して所定の情報処理を行う機器に適用可能である。具体的には、光電変換装置及び光電変換方法は、複合機(MFP:Multifunction Peripheral)のリニアセンサ、カメラ装置又はビデオカメラ装置のオートフォーカス用のラインセンサ、インタラクティブ・ホワイトボード装置(電子黒板)上に書き込まれたれた文字、記号又は図形の読み取りを行うラインセンサ等に適用することができる。以下、一例として、光電変換装置及び光電変換方法を適用したMFPの説明をする。   First, the field of application will be described. The photoelectric conversion device and the defective pixel determination method can be applied not only to a device that reads an image, but also to a device that senses the presence or absence of light and performs predetermined information processing. Specifically, a photoelectric conversion device and a photoelectric conversion method are provided on a multifunction peripheral (MFP) linear sensor, an autofocus line sensor of a camera device or a video camera device, and an interactive whiteboard device (electronic blackboard). The present invention can be applied to a line sensor or the like that reads characters, symbols, or figures written on the. Hereinafter, as an example, an MFP to which a photoelectric conversion device and a photoelectric conversion method are applied will be described.

(MFPの構成)
まず、図1に、実施の形態のMFPを横から見た状態の図を示す。この図1は、MFPの本体を透視した状態の図となっている。この図1に示すように、MFPは、読み取り装置1及び本体2を有している。読み取り装置1は、自動原稿給送機構(ADF:Auto Document Feeder)3、及び、スキャナ機構4を有している。
(MFP configuration)
First, FIG. 1 shows a view of the MFP according to the embodiment as viewed from the side. FIG. 1 shows a state in which the main body of the MFP is seen through. As shown in FIG. 1, the MFP includes a reading device 1 and a main body 2. The reading device 1 includes an automatic document feeder (ADF) 3 and a scanner mechanism 4.

本体2内には、タンデム方式の作像部5、作像部5に給紙部13から搬送路6を介して記録紙を供給するレジストローラ7、光書き込み装置8、定着搬送部9、及び、両面トレイ10を有している。作像部5には、イエロー(Y)、マゼンタ(M)、シアン(C)、ブラック(K)の4色に対応する4本の感光体ドラム11が並設されている。各感光体ドラム11の周囲には、帯電器、現像器12、転写器、クリーナ、及び、除電器を含む作像要素が配置されている。また、転写器と感光体ドラム11との間には、両者のニップに挟持された状態で駆動ローラと従動ローラとの間に張架された中間転写ベルト14が設けられている。   In the main body 2, a tandem type image forming unit 5, a registration roller 7 that supplies recording paper from the paper supply unit 13 to the image forming unit 5 through a conveyance path 6, an optical writing device 8, a fixing conveyance unit 9, and The double-sided tray 10 is provided. The image forming unit 5 includes four photosensitive drums 11 corresponding to four colors of yellow (Y), magenta (M), cyan (C), and black (K). Around each photosensitive drum 11, image forming elements including a charger, a developing device 12, a transfer device, a cleaner, and a static eliminator are arranged. Further, an intermediate transfer belt 14 is provided between the transfer unit and the photosensitive drum 11 so as to be stretched between the driving roller and the driven roller while being sandwiched between the nips thereof.

このように構成されたタンデム方式の画像形成装置では、YMCKの各色に対応する感光体ドラム11に光書き込みを行い、現像器12で各色のトナー毎に現像し、例えばY,M,C,Kの順で中間転写ベルト14上に1次転写する。そして、1次転写により4色が重畳したフルカラーの画像を記録紙に2次転写した後、定着して排紙する。これにより、フルカラーの画像を記録紙上に形成する。   In the tandem-type image forming apparatus configured as described above, optical writing is performed on the photosensitive drum 11 corresponding to each color of YMCK, and development is performed for each color toner by the developing unit 12, for example, Y, M, C, K. In this order, primary transfer is performed on the intermediate transfer belt 14. Then, a full-color image in which four colors are superimposed by primary transfer is secondarily transferred onto a recording sheet, and then fixed and discharged. Thereby, a full-color image is formed on the recording paper.

(ADF及びスキャナ機構の構成)
図2は、ADF3及びスキャナ機構4の横断面図である。スキャナ機構4は、上面に原稿を載置するコンタクトガラス15を備えている。また、スキャナ機構4は、原稿露光用の光源16及び第1反射ミラー17を備えた第1キャリッジ18と、第2反射ミラー19及び第3反射ミラー20を備えた第2キャリッジ24とを備えている。また、スキャナ機構4は、第3反射ミラー20で反射された光を、光電変換素子21の受光領域上に結像させるためのレンズユニット22を備えている。また、スキャナ機構4は、読み取り光学系等による各種の歪み補正用の基準白板23、及び、シートスルー読取用スリット24を備えている。スキャナ機構4は、光源16からの照射光で照明した原稿からの反射光を、光電変換素子21で受光して電気信号(画像データ)に変換して出力する。
(Configuration of ADF and scanner mechanism)
FIG. 2 is a cross-sectional view of the ADF 3 and the scanner mechanism 4. The scanner mechanism 4 includes a contact glass 15 on which an original is placed. The scanner mechanism 4 includes a first carriage 18 having a light source 16 for document exposure and a first reflection mirror 17, and a second carriage 24 having a second reflection mirror 19 and a third reflection mirror 20. Yes. Further, the scanner mechanism 4 includes a lens unit 22 for forming an image of the light reflected by the third reflecting mirror 20 on the light receiving region of the photoelectric conversion element 21. The scanner mechanism 4 includes a reference white plate 23 for correcting various distortions by a reading optical system and the like, and a sheet-through reading slit 24. The scanner mechanism 4 receives reflected light from the original illuminated by the light emitted from the light source 16 by the photoelectric conversion element 21, converts it into an electrical signal (image data), and outputs it.

ADF3は、コンタクトガラス15に対して開閉可能となるように、図示しないヒンジ部材等を介して本体2に接続されている。ADF3は、複数枚の原稿からなる原稿束27を載置可能な原稿トレイ28を備えている。また、このADF3は、原稿トレイ28に載置された原稿束27から原稿を1枚ずつ分離して、シートスルー読取用スリット25へ向けて自動給送する給送ローラ29を含む分離給送部も備えている。   The ADF 3 is connected to the main body 2 via a hinge member (not shown) so that the ADF 3 can be opened and closed with respect to the contact glass 15. The ADF 3 includes a document tray 28 on which a document bundle 27 composed of a plurality of documents can be placed. The ADF 3 also includes a separation feeding unit including a feeding roller 29 that separates documents one by one from the document bundle 27 placed on the document tray 28 and automatically feeds them toward the sheet-through reading slit 25. It also has.

(原稿の読み取り動作)
このような読み取り装置1は、コンタクトガラス15上に載置した原稿の読み取りを行うスキャンモード、及び、ADF3により自動給送される原稿の読み取りを行うシートスルーモードを有している。なお、スキャンモード又はシートスルーモードによる画像読み取り前に、点灯された光源16によって基準白板23を照明し、反射光による画像を光電変換素子21で読み取る。そして、その1ライン分の画像データの各画素のレベルが均一なレベルになるように、シェーディング補正用データを生成して記憶する。記憶されシェーディング補正用データは、以下に説明するスキャンモード又はシートスルーモードで読み取られた画像データのシェーディング補正に用いられる。
(Original scanning operation)
Such a reading apparatus 1 has a scan mode for reading a document placed on the contact glass 15 and a sheet-through mode for reading a document automatically fed by the ADF 3. Before reading the image in the scan mode or the sheet through mode, the reference white plate 23 is illuminated by the light source 16 that is turned on, and the image by the reflected light is read by the photoelectric conversion element 21. Then, shading correction data is generated and stored so that each pixel of the image data for one line has a uniform level. The stored shading correction data is used for shading correction of image data read in a scan mode or a sheet through mode described below.

スキャンモード時には、第1キャリッジ18及び第2キャリッジ24が、図示しないステッピングモータによって、矢印A方向(副走査方向)に移動して原稿を走査する。このとき、コンタクトガラス15から光電変換素子21の受光領域までの光路長を一定に維持するために、第2キャリッジ24は、第1キャリッジ18の1/2の速度で移動する。   In the scan mode, the first carriage 18 and the second carriage 24 are moved in the arrow A direction (sub-scanning direction) by a stepping motor (not shown) to scan the document. At this time, the second carriage 24 moves at half the speed of the first carriage 18 in order to keep the optical path length from the contact glass 15 to the light receiving region of the photoelectric conversion element 21 constant.

同時に、コンタクトガラス15上に載置された原稿の下面である画像面が、第1キャリッジ18の光源16によって照明(露光)される。すると、その画像面からの反射光が、第1キャリッジ18の第1反射ミラー17、第2キャリッジ24の第2反射ミラー19及び第3反射ミラー20によって順次反射される。そして、第3反射ミラー20による反射光束が、レンズユニット22によって集束され、光電変換素子21の受光領域上に結像される。光電変換素子21は、1ライン毎に受光した光を光電変換して画像データを生成する。画像データは、デジタル化され、ゲイン調整が施されて出力される。画像の読み取りが完了した原稿は、図示しない排出口に排出される。   At the same time, the image surface, which is the lower surface of the document placed on the contact glass 15, is illuminated (exposed) by the light source 16 of the first carriage 18. Then, the reflected light from the image plane is sequentially reflected by the first reflecting mirror 17 of the first carriage 18, the second reflecting mirror 19 of the second carriage 24, and the third reflecting mirror 20. Then, the reflected light beam from the third reflecting mirror 20 is focused by the lens unit 22 and imaged on the light receiving region of the photoelectric conversion element 21. The photoelectric conversion element 21 generates image data by photoelectrically converting the light received for each line. The image data is digitized, gain-adjusted, and output. The document whose image has been read is discharged to a discharge port (not shown).

シートスルーモードの時には、第1キャリッジ18及び第2キャリッジ24が、シートスルー読取用スリット25の下側へ移動して停止する。その後、ADF3の原稿トレイ28上に載置された原稿束27の最下位の原稿から順次、給送ローラ29によって矢印B方向(副走査方向)へ自動給送され、シートスルー読取用スリット25の位置を原稿が通過する際に、その原稿の走査が行われる。   In the sheet through mode, the first carriage 18 and the second carriage 24 move to the lower side of the sheet through reading slit 25 and stop. Thereafter, the lowermost originals of the original bundle 27 placed on the original tray 28 of the ADF 3 are sequentially automatically fed in the arrow B direction (sub-scanning direction) by the feeding roller 29, and the sheet through reading slit 25 When the document passes through the position, the document is scanned.

この際、自動給送される原稿の下面(画像面)が第1キャリッジ18の光源16によって照明される。すると、その画像面からの反射光が、第1キャリッジ18の第1反射ミラー17、第2キャリッジ24の第2反射ミラー19及び第3反射ミラー20によって順次反射される。そして、第3反射ミラー20による反射光束が、レンズユニット22によって集束され、光電変換素子21の受光領域上に結像される。光電変換素子21は、1ライン毎に受光した光を光電変換して画像データを生成する。画像データは、デジタル化され、ゲイン調整が施されて出力される。画像の読み取りが完了した原稿は、図示しない排紙口に排紙される。   At this time, the lower surface (image surface) of the automatically fed document is illuminated by the light source 16 of the first carriage 18. Then, the reflected light from the image plane is sequentially reflected by the first reflecting mirror 17 of the first carriage 18, the second reflecting mirror 19 of the second carriage 24, and the third reflecting mirror 20. Then, the reflected light beam from the third reflecting mirror 20 is focused by the lens unit 22 and imaged on the light receiving region of the photoelectric conversion element 21. The photoelectric conversion element 21 generates image data by photoelectrically converting the light received for each line. The image data is digitized, gain-adjusted, and output. The document whose image has been read is discharged to a discharge port (not shown).

(MFPのハードウェア構成)
次に、図3に、MFPのハードウェア構成を示す。この図3に示すように、MFPは、CPU41、ROM42、RAM43、HDD(ハードディスクドライブ)44、及びフラッシュメモリ45を備える。また、MFPは、FAXモデム46、操作パネル47、エンジン48、ADF49(図1及び図2に示すADF3に相当)、接続インタフェース(接続I/F)50、画像読み取り部52、及びインターネット等のネットワーク40を介して有線通信又は無線通信を行う通信I/F51を有している。CPU41〜画像読み取り部52は、図3に示すシステムバス18を介して相互に接続されている。
(Hardware configuration of MFP)
Next, FIG. 3 shows a hardware configuration of the MFP. As shown in FIG. 3, the MFP includes a CPU 41, ROM 42, RAM 43, HDD (hard disk drive) 44, and flash memory 45. The MFP includes a FAX modem 46, an operation panel 47, an engine 48, an ADF 49 (corresponding to ADF 3 shown in FIGS. 1 and 2), a connection interface (connection I / F) 50, an image reading unit 52, and a network such as the Internet. A communication I / F 51 that performs wired communication or wireless communication via the communication interface 40 is provided. The CPU 41 to the image reading unit 52 are connected to each other via the system bus 18 shown in FIG.

CPU41は、MFPの動作を統括的に制御する。CPU41は、RAM43をワークエリア(作業領域)としてROM42又はHDD44等に格納されたプログラムを実行することで、MFP全体の動作を制御し、コピー機能、スキャナ機能、ファクシミリ機能、プリンタ機能等の各種機能を実現する。   The CPU 41 controls the overall operation of the MFP. The CPU 41 uses the RAM 43 as a work area (work area) to execute programs stored in the ROM 42 or the HDD 44, thereby controlling the operation of the entire MFP, and various functions such as a copy function, a scanner function, a facsimile function, and a printer function. Is realized.

エンジン48は、コピー機能、スキャナ機能、及びプリンタ機能等を実現させるための、汎用的な情報処理及び通信以外の処理を行うハードウェアである。エンジン48は、例えば原稿又は名刺等の文字及び画像をスキャンして読み取るスキャナ、用紙等のシート材への印刷を行うプロッタ等を備えている。FAXモデム46は、ファクシミリ通信を行うファクシミリ通信機能を備えている。   The engine 48 is hardware that performs processing other than general-purpose information processing and communication for realizing a copy function, a scanner function, a printer function, and the like. The engine 48 includes a scanner that scans and reads characters and images such as a document or a business card, and a plotter that prints on a sheet material such as paper. The FAX modem 46 has a facsimile communication function for performing facsimile communication.

(光電変換素子の構成)
図5は、光電変換素子21の詳細なブロック図である。一例ではあるが、この図5に示すように光電変換素子21は、主走査方向に沿って1次元的に画素を並べたリニアセンサとなっている。なお、画素が一次元的に並べられている方向が主走査方向であり、この主走査方向に2次元的に直交する方向が副走査方向である。
(Configuration of photoelectric conversion element)
FIG. 5 is a detailed block diagram of the photoelectric conversion element 21. As an example, as shown in FIG. 5, the photoelectric conversion element 21 is a linear sensor in which pixels are arranged one-dimensionally along the main scanning direction. The direction in which the pixels are arranged one-dimensionally is the main scanning direction, and the direction two-dimensionally orthogonal to the main scanning direction is the sub-scanning direction.

すなわち、光電変換素子21は、タイミング信号生成部60と共に、画素を一次元的に並べて形成した画素信号生成回路61、各画像信号を所定の利得で増幅する増幅器(PGA:プログラマブル・ゲイン・アンプ)62、及び、各PGAからの画像信号をデジタル化するアナログ−デジタルコンバータ(ADC)63を有している。   That is, the photoelectric conversion element 21, together with the timing signal generation unit 60, a pixel signal generation circuit 61 formed by arranging pixels one-dimensionally, and an amplifier (PGA: programmable gain amplifier) that amplifies each image signal with a predetermined gain 62, and an analog-digital converter (ADC) 63 for digitizing the image signal from each PGA.

また、光電変換素子21は、ADC63からパラレルに供給される画像信号を、シリアルな画像信号に変換して後段処理部に供給するパラレル/シリアル変換部64を有している。画素信号生成回路61〜パラレル/シリアル変換部64の出力タイミングは、タイミング信号生成部60からのクロック信号に基づいて制御される。   Further, the photoelectric conversion element 21 includes a parallel / serial conversion unit 64 that converts an image signal supplied in parallel from the ADC 63 into a serial image signal and supplies the serial image signal to a subsequent processing unit. Output timings of the pixel signal generation circuit 61 to the parallel / serial conversion unit 64 are controlled based on a clock signal from the timing signal generation unit 60.

なお、光電変換素子21がカラー対応の光電変換素子である場合、画素信号生成回路61は、例えば赤、緑、青(RGB)又はイエロー、マゼンタ、シアン(YMC)等の各色のチャンネル分設けられる。また、PGA62、及び、ADC63も、それぞれ各色のチャンネル分、設けられる。   When the photoelectric conversion element 21 is a color-compatible photoelectric conversion element, the pixel signal generation circuit 61 is provided for each color channel such as red, green, blue (RGB) or yellow, magenta, cyan (YMC), for example. . The PGA 62 and the ADC 63 are also provided for each color channel.

(画素信号生成回路の回路構成)
図5に、画素信号生成回路61の各画素に相当する部分の回路図を示す。この図5に示すように、画素信号生成回路61の各画素は、受光素子であるフォトダイオードPD、受光光量に対応して蓄積した電荷を電圧に変換するフローティングディフュージョンFDを有している。また、各画素は、フォトダイオードPDに蓄積された電荷を、フローティングディフュージョンFDに転送する電荷転送スイッチTXと、フローティングディフュージョンFDの電位を、リセット電位AVDD_RTにリセットするリセットスイッチRTを有している。また、各画素は、ソースフォロアSFの電源電圧AVDD_PIX及び電流源DRGとの間に挿入接続されたソースフォロアSFと、電圧変換された画像信号(Pix_out)を後段のPGA62に転送するためのスイッチSLを有している。
(Circuit configuration of pixel signal generation circuit)
FIG. 5 shows a circuit diagram of a portion corresponding to each pixel of the pixel signal generation circuit 61. As shown in FIG. 5, each pixel of the pixel signal generation circuit 61 has a photodiode PD which is a light receiving element, and a floating diffusion FD which converts charges accumulated corresponding to the amount of received light into a voltage. Each pixel has a charge transfer switch TX for transferring the charge accumulated in the photodiode PD to the floating diffusion FD, and a reset switch RT for resetting the potential of the floating diffusion FD to the reset potential AVDD_RT. Each pixel has a source follower SF inserted and connected between the power supply voltage AVDD_PIX of the source follower SF and the current source DRG, and a switch SL for transferring the voltage-converted image signal (Pix_out) to the PGA 62 in the subsequent stage. have.

ソースフォロアSFのトランジスタの閾値電圧にはバラつきがあるため、出力信号に入射光量に依存しない回路オフセットが生じる。回路オフセットは、画像にFPN(Fixed pattern noise:固定パターンノイズ) を発生させ、画質低下を招く。   Since the threshold voltage of the source follower SF transistor varies, a circuit offset that does not depend on the amount of incident light occurs in the output signal. The circuit offset generates FPN (Fixed pattern noise) in the image and causes a reduction in image quality.

また、光電変換素子21の製造上、重金属汚染や結晶欠陥により一定確率でフォトダイオードPDの暗電流が異常に大きい又は小さい画素が生じる。フォトダイオードPDの暗電流が異常に大きい画素を「白キズ画素」と呼ぶ。また、フォトダイオードPDの容量が小さく、飽和電荷量が小さい画素が生じる。このような画素を「黒キズ画素」と呼ぶ。白キズ画素及び黒キズ画素は、正常な画素とは画素値の異なる点の画像ノイズとなって画像上に現れるため、画質低下を招く。また、フォトダイオードPDの暗電流ノイズ成分は、時間に比例して大きくなる。また、フォトダイオードPDの暗電流ノイズ成分は温度依存性があり、一例ではあるが、10℃の温度上昇で2倍となる。   In addition, in the manufacture of the photoelectric conversion element 21, pixels with an abnormally large or small dark current of the photodiode PD are generated with a certain probability due to heavy metal contamination or crystal defects. A pixel in which the dark current of the photodiode PD is abnormally large is referred to as a “white scratch pixel”. In addition, a pixel having a small capacitance of the photodiode PD and a small saturation charge amount is generated. Such a pixel is called a “black scratch pixel”. The white scratch pixel and the black scratch pixel appear on the image as image noise at a point having a pixel value different from that of a normal pixel. Further, the dark current noise component of the photodiode PD increases in proportion to time. In addition, the dark current noise component of the photodiode PD is temperature-dependent, and as an example, the dark current noise component doubles when the temperature rises by 10 ° C.

(欠陥画素によって生じる画像ノイズ)
図6は、白キズ画素301、黒キズ画素302を含む9画素のエリアセンサで、入射光強度及び蓄積時間が異なる条件下で画像の読み取りを行った場合における画像ノイズの発生状態を示している。この図6の横軸はフォトダイオードPDの光の蓄積時間であり、縦軸は、フォトダイオードPDに対する光の入射強度である。
(Image noise caused by defective pixels)
FIG. 6 shows the state of occurrence of image noise when an image is read under a condition where the incident light intensity and the accumulation time are different in a nine-pixel area sensor including white defect pixels 301 and black defect pixels 302. . The horizontal axis in FIG. 6 is the light accumulation time of the photodiode PD, and the vertical axis is the incident intensity of light with respect to the photodiode PD.

白キズ画素301は、図6(a)又は図6(b)に示すように、入射光量が多いときは、光による信号成分が大きくなり、暗電流の影響が目立たなくなるため画像ノイズにはならない。しかし、図6(c)又は図6(d)に示すように、入射光量が少ないときは、正常画素と比べて画素値が高くなるため、周囲より明るい点の画像ノイズとなって現れる。また、図6(d)に示すように、蓄積時間が長い場合、より目立つ画像ノイズとなって現れる。   As shown in FIG. 6A or FIG. 6B, the white flaw pixel 301 does not become image noise because the signal component due to light becomes large and the influence of dark current becomes inconspicuous when the amount of incident light is large. . However, as shown in FIG. 6C or FIG. 6D, when the amount of incident light is small, the pixel value is higher than that of a normal pixel, so that it appears as image noise at a point brighter than the surroundings. Further, as shown in FIG. 6D, when the accumulation time is long, it appears as more conspicuous image noise.

黒キズ画素302は、図6(a)又は図6(b)に示すように、入射光量が多いときは、正常画素に比べて画素値が低くなるため、暗い点の画像ノイズとなって現れる。また、図6(b)に示すように、蓄積時間が長い場合、より目立つ画像ノイズとなって現れる。なお、黒キズ画素302は、図6(c)又は図6(d)に示すように、入射光量が少ないときは、フォトダイオードPDが飽和しないため、画像ノイズにはならない。   As shown in FIG. 6A or FIG. 6B, the black scratched pixel 302 appears as dark-point image noise because the pixel value is lower than the normal pixel when the amount of incident light is large. . Further, as shown in FIG. 6B, when the accumulation time is long, it appears as more conspicuous image noise. Note that, as shown in FIG. 6C or FIG. 6D, the black scratched pixel 302 does not cause image noise because the photodiode PD is not saturated when the amount of incident light is small.

このように、白キズ画素301は、暗時の画像で画質低下を招き、黒キズ画素302は、明時の画像で画質低下を招く。これらの画質低下を防ぐため、欠陥画素を検出して補正する必要がある。黒キズ画素301は、例えば長時間露光したときの画像データを取得すれば、正常画素は飽和状態で真っ白な画像になる中で暗い点となって現れるため、検出は容易である。   As described above, the white scratch pixel 301 causes a deterioration in image quality in a dark image, and the black scratch pixel 302 causes a decrease in image quality in a bright image. In order to prevent these image quality degradations, it is necessary to detect and correct defective pixels. For example, if the black scratch pixel 301 acquires image data when exposed for a long time, the normal pixel appears as a dark point in a saturated white image, and thus detection is easy.

(リニアセンサの欠陥画素によって生じる画像ノイズ)
図7(a)は、リニアセンサ上の白キズ画素の位置を示す図であり、斜線で示す画素が白キズ画素となっている。図7(b)は、白キズ画素が含まれているリニアセンサで取得した暗時画像(リニアセンサを露光していない状態で取得した画像)を示す図である。白キズ画素の画素値は、正常画素より高い画素値となる。このため、リニアセンサ上に白キズが含まれていると、図7(b)に示すように、全体の画像のうち、白キズ画素に相当する位置の画像(画素)が周囲の画像よりも明るくなる縦スジ画像ノイズが現れる。
(Image noise caused by defective pixels of linear sensor)
FIG. 7A is a diagram showing the position of white flaw pixels on the linear sensor, and the pixels indicated by diagonal lines are white flaw pixels. FIG. 7B is a diagram illustrating a dark image (an image acquired in a state where the linear sensor is not exposed) acquired by a linear sensor including white scratch pixels. The pixel value of the white flaw pixel is higher than that of the normal pixel. For this reason, if white scratches are included on the linear sensor, as shown in FIG. 7B, the image (pixel) at the position corresponding to the white scratch pixel in the entire image is more than the surrounding image. Bright vertical stripe image noise appears.

また、リニアセンサに黒キズ画素が含まれている場合、上述の白キズ画素が含まれている場合に対して反対の結果となる。すなわち、黒キズ画素の画素値は、正常画素より低い画素値となる。このため、リニアセンサに黒キズ画素が含まれていると、全体の画像のうち、黒キズ画素に相当する位置の画像(画素)が周囲の画像よりも暗くなる縦スジ画像ノイズが現れる。   In addition, when the black sensor pixel is included in the linear sensor, the opposite result is obtained when the white sensor pixel is included. That is, the pixel value of the black flaw pixel is lower than that of the normal pixel. For this reason, if the linear sensor includes black flaw pixels, vertical streak image noise in which an image (pixel) at a position corresponding to the black flaw pixel in the entire image becomes darker than the surrounding image appears.

このように、リニアセンサの場合、欠陥画素による悪影響が縦スジ画像ノイズとして現れるため、欠陥画素による悪影響が点の画像ノイズとして現れるエリアセンサよりも、欠陥画素による悪影響が大きくなる。欠陥画素による悪影響は、複数の欠陥画素が隣接して存在する場合、より顕著となる。   In this way, in the case of a linear sensor, an adverse effect due to a defective pixel appears as vertical streak image noise. Therefore, an adverse effect due to a defective pixel is greater than an area sensor where the adverse effect due to the defective pixel appears as a point image noise. The adverse effect of defective pixels becomes more prominent when a plurality of defective pixels are adjacent to each other.

(欠陥画素検出手法の参考例)
次に、欠陥画素検出手法の参考例を説明する。図8(a)、(b)は、異なる露光時間t1、t2(t2>t1)で同一被写体を撮像したときの画素値を示す図である。このうち、図8(a)は、正常画素で被写体を撮像した場合の画素値である。また、図8(b)は、黒キズ画素で被写体を撮像した場合の画素値である。
(Reference example of defective pixel detection method)
Next, a reference example of the defective pixel detection method will be described. FIGS. 8A and 8B are diagrams illustrating pixel values when the same subject is imaged at different exposure times t1 and t2 (t2> t1). Among these, FIG. 8A shows pixel values when a subject is imaged with normal pixels. FIG. 8B shows pixel values when a subject is imaged with black flaw pixels.

露光時間t=0のとき、画素値S=0で、かつ、画素値Sは時間に線形変化すると仮定し、露光時間t1における画素値S1から時間に対する変化率S1/t1を算出した後、露光時間t2における理想的な画素値S2を算出する。このような画素値S2の演算式を、以下の数1式に示す。   When the exposure time t = 0, it is assumed that the pixel value S = 0 and the pixel value S linearly changes with time, and after calculating the rate of change S1 / t1 with respect to time from the pixel value S1 at the exposure time t1, exposure is performed. An ideal pixel value S2 at time t2 is calculated. An arithmetic expression of such a pixel value S2 is shown in the following formula 1.

S2=(S1/t1)×t2・・・・(数1式)   S2 = (S1 / t1) × t2 (Expression 1)

実際には、画素値に対して電気的なノイズが含まれる。このため、露光時間t2における画素値S3は、画素値S2に対して±αの誤差(固定値)を持つと考え、画素値S3が画素値S2±αの範囲内であるか否かを判定することで、欠陥画素であるか否かの判定を行う。なお、暗電流ノイズ成分は信号成分と同様に時間に比例して増加する。また、回路オフセット成分は、光電変換素子の各画素が個別に持つ固定値である。しかし、暗電流ノイズ成分及び回路オフセット成分は、信号成分に対して小さな値となるため、欠陥画素の判定に影響を及ぼすことはない。   In practice, electrical noise is included in the pixel value. Therefore, the pixel value S3 at the exposure time t2 is considered to have an error (fixed value) of ± α with respect to the pixel value S2, and it is determined whether or not the pixel value S3 is within the range of the pixel value S2 ± α. Thus, it is determined whether or not the pixel is a defective pixel. Note that the dark current noise component increases in proportion to time in the same manner as the signal component. The circuit offset component is a fixed value that each pixel of the photoelectric conversion element has individually. However, since the dark current noise component and the circuit offset component are small values with respect to the signal component, there is no influence on the determination of the defective pixel.

正常画素の場合、図8(a)に示すように信号成分が露光時間に対し線形変化する。このため、画素値S3が画素値S2±αの範囲内となるため、正常画素と判定する。これに対して、黒キズ画素の場合、飽和電荷量が小さいため、図8(b)に示すように露光時間t2において、低い画素値で蓄積する電荷が飽和する。このため、画素値S3の値は、正常画素の画素値S2よりも小さな値となる。従って、画素値S3が画素値S2±αの範囲内とならないため、欠陥画素と判定する。   In the case of a normal pixel, the signal component changes linearly with respect to the exposure time as shown in FIG. For this reason, since the pixel value S3 falls within the range of the pixel value S2 ± α, it is determined as a normal pixel. On the other hand, in the case of a black flaw pixel, since the saturation charge amount is small, as shown in FIG. 8B, the charge accumulated at a low pixel value is saturated at the exposure time t2. For this reason, the value of the pixel value S3 is smaller than the pixel value S2 of the normal pixel. Therefore, since the pixel value S3 does not fall within the range of the pixel value S2 ± α, it is determined as a defective pixel.

(参考例の欠陥画素検出手法の問題点)
図8(a)及び図8(b)が黒キズ画素の例であったのに対し、図9(a)及び図9(b)は、異なる露光時間t1、t2(t2>t1)で同一被写体を撮像したときの白キズ画素の画素値を示す図である。このうち、図9(a)は、白キズ画素に対して光を照射した場合に得られる画素値を示し、図9(b)は、白キズ画素に対して光を照射しない場合(暗時)に得られる画素値を示している。
(Problems of the defective pixel detection method in the reference example)
8A and 8B are examples of black scratched pixels, whereas FIGS. 9A and 9B are the same at different exposure times t1 and t2 (t2> t1). It is a figure which shows the pixel value of a white flaw pixel when a to-be-photographed object is imaged. Among these, FIG. 9A shows pixel values obtained when light is applied to white flaw pixels, and FIG. 9B shows a case where light is not applied to white flaw pixels (when dark). ) Shows the pixel values obtained.

図9(a)に示すように、白キズ画素の場合、暗電流ノイズ成分は露光時間に応じて大きくなる。しかし、暗電流ノイズ成分は、入射光による信号成分に対しては小さいため、白キズ画素の画素値S3は、画素値S2±αの範囲内となる。このため、白キズ画素が、正常画素と誤って判定される不都合を生ずる。   As shown in FIG. 9A, in the case of a white flaw pixel, the dark current noise component increases according to the exposure time. However, since the dark current noise component is smaller than the signal component due to the incident light, the pixel value S3 of the white scratch pixel is within the range of the pixel value S2 ± α. For this reason, there is a problem that the white defect pixel is erroneously determined as a normal pixel.

また、暗時における白キズ画素の画素値は、図9(b)に示すように、回路オフセット成分が暗電流ノイズ成分に対して大きい。このため、露光時間t=0のとき画素値S=0で、かつ、画素値Sは時間に線形変化すると仮定して画素値S2に基づく欠陥画素の判定を行うと、正常画素であっても、画素値S3が画素値S2±αの範囲内とはならず、正常画素が誤って欠陥画素と判定される不都合を生ずる。従って、参考例における欠陥画素検出手法では、黒キズ画素は検出できても、白キズ画素は検出困難な問題がある。   Further, as shown in FIG. 9B, the pixel value of the white flaw pixel in the dark has a circuit offset component larger than the dark current noise component. For this reason, if the defective pixel is determined based on the pixel value S2 on the assumption that the pixel value S = 0 when the exposure time t = 0 and the pixel value S linearly changes with time, even if the pixel is a normal pixel, The pixel value S3 does not fall within the range of the pixel value S2 ± α, which causes a problem that a normal pixel is erroneously determined as a defective pixel. Therefore, the defective pixel detection method in the reference example has a problem that it is difficult to detect white flaw pixels even though black flaw pixels can be detected.

(実施の形態のMFPの要部の構成及び動作)
実施の形態のMFPは、このような欠陥画素を正確に検出するために、画像読み取り部52が、図10に示す構成を有する。すなわち、実施の形態のMFPにおいて、画像読み取り部52は、光電変換素子21に光が入射しないように遮光する遮光部71、欠陥画素の検出を行うノイズ検出部72と判定部83、及び、ノイズ検出部72と判定部83で検出された欠陥画素を補正する欠陥画素補正部73を有する。
(Configuration and operation of main part of MFP of embodiment)
In the MFP of the embodiment, in order to accurately detect such defective pixels, the image reading unit 52 has a configuration shown in FIG. That is, in the MFP according to the embodiment, the image reading unit 52 includes a light shielding unit 71 that shields light from entering the photoelectric conversion element 21, a noise detection unit 72 and a determination unit 83 that detect defective pixels, and noise. A defective pixel correction unit 73 that corrects the defective pixels detected by the detection unit 72 and the determination unit 83 is provided.

一例ではあるが、遮光部71は、光電変換素子21に光が入射されないように、光電変換素子21の受光面を、光を透過させない遮光部材で被覆する遮光機構となっている。なお、ADF3、圧板又は基準白板23を光電変換素子21の遮光に用いてもよい。   As an example, the light shielding unit 71 is a light shielding mechanism that covers the light receiving surface of the photoelectric conversion element 21 with a light shielding member that does not transmit light so that light does not enter the photoelectric conversion element 21. Note that the ADF 3, the pressure plate, or the reference white plate 23 may be used for shielding the photoelectric conversion element 21.

CPU41は、欠陥画素の補正時となると、遮光部材で光電変換素子21が被覆されるように遮光部71を制御する。光電変換素子21は、遮光部材で光電変換素子21が被覆されている時間(光電変換素子21に光が入射していない時間)である「暗時」において、上述の蓄積時間t1、t2(t2>t1)の画素データを取得する。   When the defective pixel is corrected, the CPU 41 controls the light shielding portion 71 so that the photoelectric conversion element 21 is covered with the light shielding member. The photoelectric conversion element 21 has the above-described accumulation times t1 and t2 (t2) in “dark time”, which is a time during which the photoelectric conversion element 21 is covered with a light shielding member (a time during which light is not incident on the photoelectric conversion element 21). Pixel data of> t1) is acquired.

ノイズ検出部72と判定部83は、光電変換素子21から取得した画素データに基づいて欠陥画素を検出する。欠陥画素補正部73は、ノイズ検出部72と判定部83で検出された欠陥画素の検出結果に基づいて、光電変換素子21から供給される画素データのうち、欠陥画素の画素データに対して所定の補正処理を施して、例えばモニタ装置又は記憶装置等の外部機器に供給する。   The noise detection unit 72 and the determination unit 83 detect defective pixels based on the pixel data acquired from the photoelectric conversion element 21. Based on the detection result of the defective pixel detected by the noise detection unit 72 and the determination unit 83, the defective pixel correction unit 73 performs predetermined processing on the pixel data of the defective pixel among the pixel data supplied from the photoelectric conversion element 21. Is supplied to an external device such as a monitor device or a storage device.

なお、ノイズ検出部72と判定部83及び欠陥画素補正部73は、ハードウェアで実現することとして説明を進めるが、いずれか一方又は全部をソフトウェアで実現してもよい。この場合、例えば図3に示すHDD44又はフラッシュメモリ45等に記憶されている欠陥画素補正プログラムをCPU41が読み出して、RAM43にノイズ検出部72と判定部83及び欠陥画素補正部73をソフトウェアに展開する。そして、CPU41は、以下に説明するように、欠陥画素の検出処理及び欠陥画素の補正処理を実行する。   The noise detection unit 72, the determination unit 83, and the defective pixel correction unit 73 will be described as being realized by hardware, but any one or all of them may be realized by software. In this case, for example, the CPU 41 reads out the defective pixel correction program stored in the HDD 44 or the flash memory 45 shown in FIG. 3 and develops the noise detection unit 72, the determination unit 83, and the defective pixel correction unit 73 in the RAM 43 in software. . Then, the CPU 41 executes a defective pixel detection process and a defective pixel correction process as described below.

(ノイズ検出部と判定部の構成及び動作)
図11に、ノイズ検出部72のブロック図を示す。この図11に示すように、ノイズ検出部72は、ノイズの検出時に、暗時における電荷の蓄積時間t1の画素値St1xを記憶するメモリ81と、メモリ81に記憶された画素値St1xと、暗時における蓄積時間t2(t2>t1)の画素値St2xとの差分を検出する減算器82とを有している。なお、画素値St1xと、画素値St2xの差分を検出する構成は減算器に限らない。例えば、画素値St1xを負の値に反転させる乗算器と、その乗算結果と画素値St2xを加算する加算器の構成でも同様の結果が得られる。また、メモリ81は、ノイズ検出部72外に設けられた例えば図3に示すRAM43又はフラッシュメモリ45等を用いてもよい。
(Configuration and operation of noise detection unit and determination unit)
FIG. 11 shows a block diagram of the noise detection unit 72. As shown in FIG. 11, when detecting noise, the noise detecting unit 72 stores a pixel value St1x of the charge accumulation time t1 in the dark, a pixel value St1x stored in the memory 81, and a dark value. And a subtractor 82 for detecting a difference between the accumulation time t2 (t2> t1) and the pixel value St2x. Note that the configuration for detecting the difference between the pixel value St1x and the pixel value St2x is not limited to the subtractor. For example, the same result can be obtained by a configuration of a multiplier that inverts the pixel value St1x to a negative value and an adder that adds the multiplication result and the pixel value St2x. The memory 81 may use, for example, the RAM 43 or the flash memory 45 shown in FIG. 3 provided outside the noise detection unit 72.

一例ではあるが、実施の形態のMFPの場合、RGB又はYMC等のように各色用の光電変換素子21が設けられている。このため、ノイズ検出部72には、各色用の光電変換素子21からのRGBの各画素データ(画素値)が供給される。ノイズ検出部72は、ノイズ検出を行う暗時において、蓄積時間t1で取得した各色用の光電変換素子21の全画素分の画素値St1xをメモリ81に記憶する。   For example, in the MFP according to the embodiment, photoelectric conversion elements 21 for each color are provided such as RGB or YMC. For this reason, each pixel data (pixel value) of RGB from the photoelectric conversion element 21 for each color is supplied to the noise detection unit 72. The noise detection unit 72 stores, in the memory 81, pixel values St1x for all the pixels of the photoelectric conversion elements 21 for each color acquired at the accumulation time t1 in the dark when noise detection is performed.

なお、この例では、蓄積時間t1の画素値St1xをメモリ81に記憶することとしたが、蓄積時間t1より長い蓄積時間t2で取得した各色用の画素値St2xをメモリ81に記憶してもよい。   In this example, the pixel value St1x of the accumulation time t1 is stored in the memory 81. However, the pixel value St2x for each color acquired at the accumulation time t2 longer than the accumulation time t1 may be stored in the memory 81. .

CPU41は、欠陥画素の検出を行う暗時において、蓄積時間t1よりも長い蓄積時間t2で取得した各色用の画素値St2xが減算器82に供給されると、各画素値St2xの画素位置と同じ画素位置の画素値St1xをメモリ81から読み出し、減算器82に供給する。減算器82は、色毎の差分値St2x−St1xを算出する。   When the pixel value St2x acquired for each color at the accumulation time t2 longer than the accumulation time t1 is supplied to the subtractor 82 in the dark when the defective pixel is detected, the CPU 41 is the same as the pixel position of each pixel value St2x. The pixel value St1x at the pixel position is read from the memory 81 and supplied to the subtractor 82. The subtractor 82 calculates a difference value St2x−St1x for each color.

判定部83は、各画素位置の差分値St2x−St1xと所定の閾値Dthとを比較し、差分値St2x−St1xが閾値Dth以上となる画素値の画素を欠陥画素として判定する。また、判定部83は、同じ画素位置の各色の画素値のうち、一つでも閾値Dth以上の画素値が存在する場合、同じ画素位置の全ての色の画素を欠陥画素として判定する(第1の判定処理)。なお、閾値Dthは固定値でもよいし、使用者等が任意の値に設定可能としてもよい。   The determination unit 83 compares the difference value St2x−St1x at each pixel position with a predetermined threshold value Dth, and determines a pixel having a pixel value at which the difference value St2x−St1x is equal to or greater than the threshold value Dth as a defective pixel. Further, when at least one pixel value equal to or greater than the threshold value Dth exists among the pixel values of the respective colors at the same pixel position, the determination unit 83 determines all the color pixels at the same pixel position as defective pixels (first pixel). Judgment processing). The threshold value Dth may be a fixed value or may be set to an arbitrary value by the user.

このような欠陥画素の判定動作を、具体的に説明する。図12(a)に示す蓄積時間t1R、t1G、t1Bの各画素値は、蓄積時間t1における各色の正常画素の画素値を示し、蓄積時間t2R、t2G、t2Bの各画素値は、蓄積時間t2における各色の正常画素の画素値を示している。蓄積時間t2R、t2G、t2Bの各画素値から蓄積時間t1R、t1G、t1Bの各画素値を減算処理すると、時間経過にかかわらず略々固定の値となる回路オフセット成分が除去され、暗電流ノイズ成分の値とされた各画素値が生成される。正常画素の場合、各画素の暗電流ノイズ成分の値を示す各画素値は、図12(c)に示すように閾値Dth未満となる。この場合、判定部83は、各色の画素を正常画素として判定する。   The defective pixel determination operation will be specifically described. The pixel values of the accumulation times t1R, t1G, and t1B shown in FIG. 12A indicate the pixel values of the normal pixels of each color at the accumulation time t1, and the pixel values of the accumulation times t2R, t2G, and t2B are the accumulation time t2. The pixel value of the normal pixel of each color is shown. Subtracting the pixel values of the accumulation times t1R, t1G, and t1B from the pixel values of the accumulation times t2R, t2G, and t2B removes the circuit offset component that becomes a substantially fixed value regardless of the passage of time, and dark current noise Each pixel value that is a component value is generated. In the case of a normal pixel, each pixel value indicating the value of the dark current noise component of each pixel is less than the threshold value Dth as shown in FIG. In this case, the determination unit 83 determines each color pixel as a normal pixel.

これに対して、図12(b)に示す蓄積時間t1R、t1G、t1Bの各画素値は、蓄積時間t1における各色の正常画素の画素値を示し、蓄積時間t2R、t2G、t2Bの各画素値は、蓄積時間t2における各色の欠陥画素の画素値を示している。上述のように、蓄積時間t2R、t2G、t2Bの各画素値から蓄積時間t1R、t1G、t1Bの各画素値を減算処理すると、時間経過にかかわらず略々固定の値となる回路オフセット成分が除去され、暗電流ノイズ成分の値とされた各画素値が生成される。   In contrast, the pixel values of the accumulation times t1R, t1G, and t1B shown in FIG. 12B indicate the pixel values of the normal pixels of the respective colors at the accumulation time t1, and the pixel values of the accumulation times t2R, t2G, and t2B. Indicates pixel values of defective pixels of each color at the accumulation time t2. As described above, when the pixel values of the accumulation times t1R, t1G, and t1B are subtracted from the pixel values of the accumulation times t2R, t2G, and t2B, the circuit offset component that becomes a substantially fixed value regardless of the passage of time is removed. Then, each pixel value that is the value of the dark current noise component is generated.

しかし、白キズ画素の場合、図12(b)の蓄積時間t2Gの画素値のように、光が入射されていない暗時であるにもかかわらず、高い値の暗電流ノイズ成分が現れる。図12(b)の例は、G用の画素が白キズ画素である場合の例である。このため、蓄積時間t2R、t2G、t2Bの各画素値から蓄積時間t1R、t1G、t1Bの各画素値を減算処理して生成された各色の画素の暗電流ノイズ成分のうち、図12(c)に示すように閾値Dth以上となる暗電流ノイズ成分を有する画素が検出される。   However, in the case of a white flaw pixel, a dark current noise component having a high value appears in spite of the dark time when no light is incident, like the pixel value of the accumulation time t2G in FIG. The example in FIG. 12B is an example in which the G pixel is a white scratch pixel. Therefore, among the dark current noise components of the pixels of the respective colors generated by subtracting the pixel values of the accumulation times t1R, t1G, and t1B from the pixel values of the accumulation times t2R, t2G, and t2B, FIG. As shown in FIG. 5, a pixel having a dark current noise component that is equal to or greater than the threshold value Dth is detected.

この場合、判定部83は、閾値Dth以上となる暗電流ノイズ成分を有する色の画素を欠陥画素として判定すると共に、同じ画素位置の他の色の画素も欠陥画素として判定する。換言すれば、判定部83は、一つでも欠陥画素として判定した場合、同じ画素位置の全ての色の画素を欠陥画素として判定する。   In this case, the determination unit 83 determines a pixel having a dark current noise component that is equal to or greater than the threshold value Dth as a defective pixel, and also determines a pixel of another color at the same pixel position as a defective pixel. In other words, when at least one determination unit 83 determines that the pixel is a defective pixel, the determination unit 83 determines all color pixels at the same pixel position as the defective pixel.

光電変換素子21は、駆動による発熱で温度が上昇する。よって、駆動開始から長時間経過するほど温度が高くなる。暗電流ノイズ成分は温度が高くなるほど大きくなるため、蓄積時間の長い蓄積時間t2の画素値St2xと、蓄積時間t1の短い画素値St1xとの差分St2x−St1xに基づいて、白キズ画素の判定を行うことで、精度よく白キズ画素を検出できる。   The temperature of the photoelectric conversion element 21 rises due to heat generated by driving. Therefore, the temperature increases as a longer time elapses from the start of driving. Since the dark current noise component increases as the temperature increases, white scratch pixel determination is performed based on the difference St2x−St1x between the pixel value St2x of the accumulation time t2 having a long accumulation time and the pixel value St1x having a short accumulation time t1. By doing so, white scratch pixels can be detected with high accuracy.

(第2の判定処理)
また、上述のように判定部83は、同じ画素位置の各色の全ての画素値が閾値Dth未満であった場合、正常画素として判定するが、さらに、以下に説明する第2の判定処理を行ってもよい。
(Second determination process)
Further, as described above, the determination unit 83 determines that the pixel is a normal pixel when all the pixel values of the respective colors at the same pixel position are less than the threshold value Dth, but further performs a second determination process described below. May be.

すなわち、判定部83は、同じ画素位置の各色の全ての画素値が閾値Dth未満であった場合、正常画素として判定する前に、同じ画素位置の各色の全ての画素値を積算処理し、この積算値が、所定の閾値Dth2以上であるか否かを判別する。そして、各色の画素値の積算値が、所定の閾値Dth2以上であった場合、同じ画素位置の全ての色の画素を欠陥画素として判定する(第2の判定処理)。   That is, when all the pixel values of each color at the same pixel position are less than the threshold value Dth, the determination unit 83 integrates all the pixel values of each color at the same pixel position before determining as a normal pixel. It is determined whether or not the integrated value is greater than or equal to a predetermined threshold value Dth2. When the integrated value of the pixel values of each color is equal to or greater than the predetermined threshold value Dth2, all color pixels at the same pixel position are determined as defective pixels (second determination process).

判定部83は、第1の判定処理のみを行い、欠陥画素の判定を行ってもよいが、第1の判定処理と共に第2の判定処理を行うことにより、欠陥画素の判定精度を向上させることができる。   Although the determination unit 83 may perform only the first determination process and determine the defective pixel, the determination accuracy of the defective pixel is improved by performing the second determination process together with the first determination process. Can do.

(黒シェーディング補正処理)
ここで、画像読み取り部52に対しては、図13に示すように黒シェーディング補正部88を設けてもよい。この場合、黒シェーディング補正部88は、光電変換素子21とノイズ検出部72との間に設けられる。なお、図13の例は、黒シェーディング補正部88をハードウェアとして設けた例である。しかし、CPU41が、例えば黒シェーディング補正プログラムを実行することで、以下に説明する黒シェーディング補正部88をソフトウェアで実現してもよい。
(Black shading correction process)
Here, a black shading correction unit 88 may be provided for the image reading unit 52 as shown in FIG. In this case, the black shading correction unit 88 is provided between the photoelectric conversion element 21 and the noise detection unit 72. The example in FIG. 13 is an example in which the black shading correction unit 88 is provided as hardware. However, the CPU 41 may implement a black shading correction unit 88 described below by software, for example, by executing a black shading correction program.

黒シェーディング補正部88は、暗時において、光電変換素子21から取得した全画素の画素値を取得する。黒シェーディング補正部88は、黒シェーディング補正部88内又は黒シェーディング補正部88外に設けられた記憶部に、取得した暗時の各画素値を記憶する。そして、黒シェーディング補正部88は、光電変換素子21に光を入射して原稿等の読み取りを行う読み取り時に得られた画像データである明時の各画素値から、記憶部に記憶された暗時の各画素値をそれぞれ減算処理する。   The black shading correction unit 88 acquires the pixel values of all the pixels acquired from the photoelectric conversion element 21 in the dark. The black shading correction unit 88 stores each acquired pixel value in the dark in a storage unit provided inside the black shading correction unit 88 or outside the black shading correction unit 88. Then, the black shading correction unit 88 enters the light into the photoelectric conversion element 21 to read a document or the like, and from each pixel value at the time of light that is image data obtained at the time of reading, the dark time stored in the storage unit Each pixel value is subtracted.

これにより、撮像データから固定パターンノイズ(FPN:Fixed Pattern Noise)である回路オフセット成分を除去することができ、撮像データのS/N比(Signal to Noise Ratio)の向上を図ることができる。   As a result, a circuit offset component, which is fixed pattern noise (FPN), can be removed from the imaging data, and the S / N ratio (Signal to Noise Ratio) of the imaging data can be improved.

また、黒シェーディング補正用に記憶部に記憶した暗時の各画素値は、後段のノイズ検出部72で、上述の白キズ画素の判定処理に用いることができる。このため、画像読み取り部52に黒シェーディング補正部88が設けられている場合、ノイズ検出用のメモリ81を省略することができる。換言すると、黒シェーディング補正用の記憶部と、ノイズ検出用の記憶部とを併用でき、部品点数の削減及び構成の簡略化等を図ることができる。   In addition, each dark pixel value stored in the storage unit for black shading correction can be used for the above-described white defect pixel determination process by the noise detection unit 72 in the subsequent stage. Therefore, when the black shading correction unit 88 is provided in the image reading unit 52, the noise detection memory 81 can be omitted. In other words, the storage unit for black shading correction and the storage unit for noise detection can be used together, and the number of parts can be reduced and the configuration can be simplified.

(判定結果の記憶動作)
次に、判定部83からの判定結果の記憶動作を説明する。図14(a)、図14(b)は、例えばリニアセンサとなっているRGBの各色用の光電変換素子21の画素数が、それぞれ20画素である場合における欠陥画素の判定結果となるヒストグラムである。このうち、図14(a)は、N−1回目の判定結果となるヒストグラムであり、図14(b)はN回目の判定結果となるヒストグラムである。「N」は、2以上の自然数である。また、図14(a)中及び図14(b)中において、斜線模様のヒストグラムはRの画素のヒストグラムであり、点線模様のヒストグラムはGの画素のヒストグラムであり、白抜きのヒストグラムはBの画素のヒストグラムである。
(Judgment result storage operation)
Next, the operation of storing the determination result from the determination unit 83 will be described. FIGS. 14A and 14B are histograms that are the determination results of defective pixels when the number of pixels of the RGB color photoelectric conversion elements 21 that are, for example, linear sensors is 20 pixels. is there. Among these, FIG. 14A is a histogram that is the N-1th determination result, and FIG. 14B is a histogram that is the Nth determination result. “N” is a natural number of 2 or more. In FIG. 14A and FIG. 14B, the hatched pattern histogram is the R pixel histogram, the dotted line pattern histogram is the G pixel histogram, and the white histogram is the B pixel histogram. It is a histogram of a pixel.

この図14(a)及び図14(b)の例の場合、例えば第1の閾値Dth=8以上の画素値を有する画素を欠陥画素と判定している。すなわち、1画素目のRの画素は、上述の「蓄積時間t2の画素値St2x−蓄積時間t1の画素値St1x」の値が、第1の閾値Dth以上の画素値となっている。この場合、判定部83は、1画素目のRGBの各画素を欠陥画素として判定する。RGBのうち、一つでも欠陥画素と判定した場合、RGBの3つの画素を欠陥画素として判定することで、精度よく欠陥画素補正処理が可能となる。同様に、4画素目のGの画素は、上述の「蓄積時間t2の画素値St2x−蓄積時間t1の画素値St1x」の値が、第1の閾値Dth以上の画素値となっている。このため、判定部83は、4画素目のRGBの各画素を欠陥画素として判定する。   In the example of FIGS. 14A and 14B, for example, a pixel having a pixel value equal to or greater than the first threshold Dth = 8 is determined as a defective pixel. In other words, the R pixel of the first pixel has a pixel value equal to or greater than the first threshold value Dth, which is the above-mentioned “pixel value St2x of accumulation time t2−pixel value St1x of accumulation time t1”. In this case, the determination unit 83 determines each RGB pixel of the first pixel as a defective pixel. If at least one of RGB is determined to be a defective pixel, the defective pixel correction process can be performed with high accuracy by determining three pixels of RGB as defective pixels. Similarly, in the fourth pixel G, the value of “pixel value St2x of accumulation time t2−pixel value St1x of accumulation time t1” described above is a pixel value equal to or greater than the first threshold value Dth. For this reason, the determination unit 83 determines each of the fourth RGB pixels as a defective pixel.

判定部83は、このような各画素の判定結果を示す判定情報のうち、例えば6画素分の判定情報を、図3に示すRAM43、HDD44又は図11に示すメモリ81等の記憶部に記憶する。図15(a)〜図15(d)は、記憶部に記憶された判定情報の模式図である。このうち、図15(a)は、N−1回目の判定結果となる判定情報の模式図、図15(b)〜図15(d)は、それぞれN回目の判定結果となる判定情報の模式図である。Nは、「2」以上の自然数である。   The determination unit 83 stores, for example, determination information for six pixels among the determination information indicating the determination result of each pixel in the storage unit such as the RAM 43 illustrated in FIG. 3, the HDD 44, or the memory 81 illustrated in FIG. 11. . FIG. 15A to FIG. 15D are schematic diagrams of determination information stored in the storage unit. Among these, FIG. 15A is a schematic diagram of determination information that is an N-1th determination result, and FIGS. 15B to 15D are schematic diagrams of determination information that is an Nth determination result. FIG. N is a natural number of “2” or more.

判定部83は、図15(a)に示すように、ランク(優先順位)、画素位置、RGBの各画素のノイズ量、及び、RGBの各画素のノイズ量の最大値と、判定情報として記憶部に記憶する。図15(a)の例は、ノイズ量が多い順に、各画素の判定情報を記憶した例である。具体的には、図15(a)の例の場合、13、7、19、4、17、11の画素位置の各画素が、順に、ノイズ量が多いと判定されている。ランクが「1」の13の画素位置の画素は、RGBの各ノイズ量が7、13、7である。このうち、「13」のノイズ量が、最大のノイズ量となる。同様に、ランクが「3」の19の画素位置の画素は、RGBの各ノイズ量が11、6、6である。このうち、「11」のノイズ量が、最大のノイズ量となる。   As shown in FIG. 15A, the determination unit 83 stores rank (priority order), pixel position, noise amount of each RGB pixel, and maximum value of noise amount of each RGB pixel, and determination information. Store in the department. The example of FIG. 15A is an example in which the determination information of each pixel is stored in descending order of the noise amount. Specifically, in the case of the example of FIG. 15A, it is determined that each pixel at pixel positions 13, 7, 19, 4, 17, and 11 has a larger noise amount in order. The pixels at the 13 pixel positions with the rank “1” have RGB noise amounts of 7, 13, and 7, respectively. Among these, the noise amount “13” is the maximum noise amount. Similarly, the pixels at 19 pixel positions with a rank of “3” have RGB noise amounts of 11, 6, and 6, respectively. Among these, the noise amount “11” is the maximum noise amount.

図15(b)は、ノイズ量が多い順に、各画素の判定情報を記憶する例における、N回目の判定結果となる判定情報を示している。すなわち、図15(b)の判定情報は、図15(a)に示す判定情報が得られた後に、判定部83が再度判定を行うことにより得られた判定情報である。判定部83は、一例として最大6個の判定情報を記憶部に記憶する。そして、後から得られた判定情報に応じて、記憶部に記憶している判定情報の書き換え処理を行う。   FIG. 15B shows determination information that is an Nth determination result in an example in which the determination information of each pixel is stored in descending order of the noise amount. That is, the determination information in FIG. 15B is determination information obtained by the determination unit 83 performing determination again after the determination information illustrated in FIG. 15A is obtained. The determination unit 83 stores a maximum of six pieces of determination information as an example in the storage unit. Then, the determination information stored in the storage unit is rewritten according to the determination information obtained later.

具体的には、図15(b)に示すノイズ量優先の例の場合、図15(a)と比べてわかるように、ランク「6」に相当する判定情報として、10の画素位置で、RGBの各ノイズ量が8、8、9の新たな判定情報が得られた場合、この10の画素位置の判定情報に、ランク「6」の判定情報を書き換え処理する。   Specifically, in the case of the noise amount priority example shown in FIG. 15B, as can be seen from the comparison with FIG. 15A, the determination information corresponding to the rank “6” is RGB at 10 pixel positions. When new determination information with each noise amount of 8, 8, and 9 is obtained, the determination information of rank “6” is rewritten to the determination information of the ten pixel positions.

なお、図15(a)に示すランク「6」のRGBの各ノイズ量は8、8、9であるのに対し、図15(b)に示すように新たにランク「6」の判定情報として書き換える10の画素位置の判定情報のRGBの各ノイズ量は、11の画素位置の判定情報と同じ8、8、9である。   Note that the RGB noise amounts of rank “6” shown in FIG. 15A are 8, 8, and 9, whereas the determination information of rank “6” is newly added as shown in FIG. Each of the RGB noise amounts of the determination information of the ten pixel positions to be rewritten is 8, 8, and 9 which is the same as the determination information of the eleven pixel positions.

ここで、MFPの使用者は、原稿等の撮像対象を原稿載置台の中央に配置することが多い。このため、判定部83は、ノイズ量が同じである場合、光電変換素子21の中央の画素に近い方の画素位置の判定情報を選択して記憶部に記憶(書き換え)する。これにより、より実効的な判定情報を記憶部に記憶して欠陥画素の補正処理に用いることができる。   Here, the user of the MFP often places an imaging target such as a document at the center of the document table. For this reason, when the noise amount is the same, the determination unit 83 selects the determination information of the pixel position closer to the center pixel of the photoelectric conversion element 21 and stores (rewrites) the determination information in the storage unit. Accordingly, more effective determination information can be stored in the storage unit and used for the defective pixel correction process.

また、上述の例は、ノイズ量優先の場合の判定情報の記憶例であった。しかし、図14(b)に示す1の画素位置及び2の画素位置の各画素のように隣接する画素が共に欠陥画素である場合、画質に対する影響が大きい。このため、図15(c)に示すように、判定部83は、隣接する欠陥画素の判定情報をランク付けして記憶部に記憶してもよい。図15(c)の例は、それぞれ隣接する10の画素位置及び11の画素位置の判定情報、それぞれ隣接する2の画素位置及び1の画素位置の判定情報が、それぞれ優先的に記憶された例である。   Further, the above-described example is a storage example of determination information in the case of noise amount priority. However, when the adjacent pixels are both defective pixels, such as the pixels at the pixel positions 1 and 2 shown in FIG. 14B, the influence on the image quality is great. For this reason, as shown in FIG.15 (c), the determination part 83 may rank and memorize | store the determination information of an adjacent defective pixel in a memory | storage part. The example of FIG. 15C is an example in which the determination information of 10 adjacent pixel positions and 11 pixel positions, and the determination information of 2 adjacent pixel positions and 1 pixel position are preferentially stored. It is.

また、ノイズレベルが同等以下であっても、複数の色チャンネルが欠陥画素の場合、画質に対する影響が大きい。このため、図15(d)に示すように、判定部83は、複数の色チャンネルが欠陥画素の判定情報をランク付けして記憶部に記憶してもよい。図15(d)の例は、15、13、7、19、4、17の各画素位置の画素の判定情報が、複数の欠陥画素が多い色チャンネルの画素として、優先的に記憶された例である。   Even if the noise level is equal to or less than that, if the plurality of color channels are defective pixels, the influence on the image quality is large. Therefore, as shown in FIG. 15D, the determination unit 83 may rank the determination information of defective pixels in a plurality of color channels and store them in the storage unit. The example of FIG. 15D is an example in which the determination information of the pixels at the respective pixel positions 15, 13, 7, 19, 4, and 17 is preferentially stored as pixels of a color channel having a plurality of defective pixels. It is.

なお、上述のノイズ量が多い欠陥画素、隣接する欠陥画素、及び、複数の色チャンネルの欠陥画素を総合的に考慮して、ランク付けを行ってもよい。   The ranking may be performed by comprehensively considering the above-described defective pixels having a large amount of noise, adjacent defective pixels, and defective pixels of a plurality of color channels.

(起動時における欠陥画素の検出処理動作)
次に、実施の形態のMFPは、当該MFPの起動時に、このような欠陥画素の検出を行うようになっている。図16のフローチャートは、起動時に欠陥画素の検出を行う動作の流れを示している。まず、MFPのメイン電源が投入されると、図3に示すCPU41は、ウォームアップのため、光電変換素子21に対して駆動電圧を印加(ON)する(ステップS1)。
(Detection processing operation of defective pixels at startup)
Next, the MFP according to the embodiment detects such defective pixels when the MFP is activated. The flowchart of FIG. 16 shows a flow of operations for detecting defective pixels at the time of activation. First, when the main power of the MFP is turned on, the CPU 41 shown in FIG. 3 applies a drive voltage (ON) to the photoelectric conversion element 21 for warm-up (step S1).

図2に示したMFPの第1キャリッジ18及び第2キャリッジ24には、例えば原稿搬送読取時の位置である待機位置が設定されている。このため、CPU41は、光電変換素子21に対して駆動電圧を印加した後、第1キャリッジ18及び第2キャリッジ24を待機位置まで移動させるホーミング制御を行う(ステップS2)。待機位置に、第1キャリッジ18及び第2キャリッジ24が待機している状態が読み取り待機時の一例となる。   In the first carriage 18 and the second carriage 24 of the MFP shown in FIG. 2, for example, a standby position that is a position at the time of document conveyance reading is set. For this reason, the CPU 41 performs homing control to move the first carriage 18 and the second carriage 24 to the standby position after applying the driving voltage to the photoelectric conversion element 21 (step S2). A state where the first carriage 18 and the second carriage 24 are waiting at the standby position is an example of reading standby.

次に、CPU41は、調整のため第1キャリッジ18を基準白板23の下に移動制御する(ステップS3)。MFP外に光が漏れないようにするため、CPU41は、第1キャリッジ18を基準色板23の下に移動させた後で、光源16を点灯駆動する(ステップS4)。光源16を点灯駆動し、基準色板23を用いて、例えば光源16の光量調整、図4に示すPGA62のゲイン調整等の各部の調整動作を行った後(ステップS5)、光源16を消灯制御する(ステップS6)。   Next, the CPU 41 controls the movement of the first carriage 18 below the reference white plate 23 for adjustment (step S3). In order to prevent light from leaking outside the MFP, the CPU 41 moves the first carriage 18 below the reference color plate 23 and then drives the light source 16 to turn on (step S4). The light source 16 is driven to turn on, and the reference color plate 23 is used to perform adjustment operations of each part such as light amount adjustment of the light source 16 and gain adjustment of the PGA 62 shown in FIG. 4 (step S5), and then the light source 16 is turned off. (Step S6).

次に、CPU41は、光源16を消灯後、黒レベルに異常がないか確認し(ステップS7)、黒レベル確認後に、上述の欠陥画素検出処理を行う(ステップS8)。   Next, after turning off the light source 16, the CPU 41 checks whether there is any abnormality in the black level (step S7), and after checking the black level, performs the above-described defective pixel detection process (step S8).

最後に、CPU41は、上述のホーミング制御を行い(ステップS9)、図16のフローチャートの起動処理が終了する。   Finally, the CPU 41 performs the above-described homing control (step S9), and the activation process of the flowchart of FIG. 16 ends.

欠陥画素は、温度依存性があり光電変換素子21の温度が高いほど検出精度が高くなる。このため、図16のフローチャートに示すMFPの起動処理の最後に欠陥画素検出処理を行うことで、高い検出精度で欠陥画素の検出を行うことができる。また、ステップS8において、欠陥画素検出のために取得する蓄積時間の異なる2つの暗時の画素値のうち、蓄積時間の長いほうの画素値取得を後にすることで画素間のノイズ量の差異が大きくなるため、精度よく欠陥画素を検出できる。   The defective pixel has temperature dependency, and the detection accuracy increases as the temperature of the photoelectric conversion element 21 increases. Therefore, the defective pixel can be detected with high detection accuracy by performing the defective pixel detection process at the end of the MFP activation process shown in the flowchart of FIG. Further, in step S8, the difference in the amount of noise between pixels can be reduced by acquiring the pixel value with the longer accumulation time among the two dark pixel values with different accumulation times acquired for detecting defective pixels. Since it becomes large, a defective pixel can be detected with high accuracy.

また、第1キャリッジ18が基準白板23の下に位置するか、又は、圧板(もしくはADF)が閉じた状態で、かつ、光源16が消灯状態でなければ暗時のデータは得られない。このため、第1キャリッジ18を基準白板23の下に移動させる制御を行うMFPの起動処理時に欠陥画素検出を行う。これにより、圧板(若しくはADF)の開閉状態にかかわらず、欠陥画素の検出処理を行うことができる。また、第1のキャリッジ18を移動させるホーミング制御を、欠陥画素の検出処理毎に行うこととなる不都合を防止でき、原稿の読み取りが可能となるまでのユーザの待ち時間を短縮化できる。   Further, if the first carriage 18 is positioned below the reference white plate 23 or the pressure plate (or ADF) is closed and the light source 16 is not turned off, data at the dark time cannot be obtained. For this reason, defective pixel detection is performed during the start-up process of the MFP that controls to move the first carriage 18 below the reference white plate 23. Thereby, the detection process of a defective pixel can be performed irrespective of the open / closed state of the pressure plate (or ADF). Further, the homing control for moving the first carriage 18 can be prevented every time defective pixel detection processing is performed, and the waiting time of the user until the document can be read can be shortened.

また、光源16を消灯駆動及び点灯駆動した際、光源16が安定するまでに時間を要する。このため、光源16を消灯駆動及び点灯駆動の回数は少ないことが望ましい。このため、欠陥画素検出処理(ステップS8)は、MFPの起動処理中において、光源16の消灯時の黒レベル確認処理(ステップS7)と共に行う。これにより、欠陥画素検出処理のために、光源16を消灯駆動及び点灯駆動の回数が増える不都合を防止できる。   Further, when the light source 16 is driven to be turned off and turned on, it takes time until the light source 16 is stabilized. For this reason, it is desirable that the number of times the light source 16 is turned off and turned on is small. Therefore, the defective pixel detection process (step S8) is performed together with the black level confirmation process (step S7) when the light source 16 is turned off during the MFP activation process. As a result, it is possible to prevent the disadvantage that the number of times the light source 16 is turned off and turned on due to the defective pixel detection process increases.

なお、図13に示したように、画像読み取り部52がシェーディング補正部88を有する場合、ノイズ検出部72は、上述のステップS8の処理を実行する際に、黒シェーディング補正処理に用いられる上述の暗時の画素値を取得する。   As illustrated in FIG. 13, when the image reading unit 52 includes the shading correction unit 88, the noise detection unit 72 performs the above-described step S <b> 8 and uses the above-described black shading correction processing. Get the pixel value in the dark.

(圧板を用いた原稿読み取り時における欠陥画素の検出処理動作)
図17は、圧板を用いた原稿読み取り時における欠陥画素の検出処理動作を説明するためのフローチャートである。この場合、欠陥画素の検出は、原稿の画像データを取得し終わって、光源16を消灯した後で行う。
(Detection operation for defective pixels when reading a document using a pressure plate)
FIG. 17 is a flowchart for explaining the defective pixel detection processing operation at the time of document reading using the pressure plate. In this case, the defective pixel is detected after the image data of the document is acquired and the light source 16 is turned off.

圧板を用いて原稿を読み取った後には、圧板又は基準白板23による遮光によって光電変換素子21に光が入射しないタイミングがあり、個別に光電変換素子21に光が入射しない状態を作る必要がない。また、図16のフローチャートを用いて説明した起動処理時よりも、画像データ取得後の方が、光電変換素子21が長時間駆動されることで、光電変換素子21の温度が高くなっており、高精度の欠陥画素の検出処理が可能となる。   After the original is read using the pressure plate, there is a timing at which light does not enter the photoelectric conversion element 21 due to light shielding by the pressure plate or the reference white plate 23, and it is not necessary to individually create a state in which light does not enter the photoelectric conversion element 21. Further, the temperature of the photoelectric conversion element 21 is higher because the photoelectric conversion element 21 is driven for a longer time after the image data acquisition than in the start-up process described using the flowchart of FIG. A highly accurate defective pixel detection process can be performed.

すなわち、図17のフローチャートにおいて、圧板を用いて原稿の読み取りを開始すると、CPU41は、ウォームアップのため、光電変換素子21に対して駆動電圧を印加(ON)すると共に(ステップS11)、光源16を点灯駆動する(ステップS12)。   That is, in the flowchart of FIG. 17, when reading of a document is started using a pressure plate, the CPU 41 applies a drive voltage (ON) to the photoelectric conversion element 21 for warm-up (step S11), and the light source 16 Is driven to light (step S12).

次に、CPU41は、第1キャリッジ18を図2に示すA方向に移動させて、原稿の画像データを取得して(ステップS13、ステップS14)、光源16を消灯制御する(ステップS15)。次に、CPU41は、圧板が閉じられているか否かを判別する(ステップS16)。   Next, the CPU 41 moves the first carriage 18 in the direction A shown in FIG. 2 to acquire document image data (step S13, step S14), and controls the light source 16 to be turned off (step S15). Next, the CPU 41 determines whether or not the pressure plate is closed (step S16).

圧板が閉じられている場合(ステップS16:Yes)、CPU41は、上述の欠陥画素の検出処理を行い(ステップS17)、ステップS14で検出した画像データの欠陥画素の補正処理を行う(ステップS18)。欠陥画素の補正処理の具体例は後述する。そして、CPU41は、ステップS19で上述のホーミング制御を行い、図17のフローチャートの処理を終了する。   When the pressure plate is closed (step S16: Yes), the CPU 41 performs the above-described defective pixel detection process (step S17), and performs the defective pixel correction process of the image data detected in step S14 (step S18). . A specific example of the defective pixel correction process will be described later. And CPU41 performs the above-mentioned homing control by step S19, and complete | finishes the process of the flowchart of FIG.

一方、圧板が閉じられていない場合(ステップS16:No)、CPU41は、ステップS20で上述のホーミング制御を行う。CPU41は、ステップS21において、上述のホーミング制御により、第1キャリッジ18が基準白板23の下に位置したか否かを判別する。   On the other hand, when the pressure plate is not closed (step S16: No), the CPU 41 performs the above-described homing control in step S20. In step S <b> 21, the CPU 41 determines whether or not the first carriage 18 is positioned below the reference white plate 23 by the homing control described above.

第1キャリッジ18が基準白板23の下に位置したと判別した場合(ステップS21:Yes)、CPU41は、ステップS22で上述の欠陥画素の検出処理を行う。そして、ステップS14で検出した画像データの欠陥画素の補正処理を行い(ステップS23)、図17のフローチャートの処理を終了する。   When it is determined that the first carriage 18 is positioned below the reference white plate 23 (step S21: Yes), the CPU 41 performs the above-described defective pixel detection process in step S22. Then, the defective pixel of the image data detected in step S14 is corrected (step S23), and the process of the flowchart in FIG.

圧板が閉じている場合、光電変換素子21は遮光状態にあるため、光源16を消灯制御した直後から欠陥画素の検出が可能となる。このとき、欠陥画素検出のために取得する蓄積時間の異なる2つの暗時の画像データのうち、蓄積時間の長いほうを通常より長くすることで画素間のノイズ量の差異が大きくなるため、精度よく欠陥画素を検出できることは、上述のとおりである。   When the pressure plate is closed, the photoelectric conversion element 21 is in a light-shielding state, so that defective pixels can be detected immediately after the light source 16 is controlled to be turned off. At this time, the difference in the amount of noise between pixels is increased by making the longer accumulation time longer than normal out of two dark image data with different accumulation times acquired for defective pixel detection. As described above, defective pixels can be detected well.

また、欠陥画素の補正処理(ステップS18、ステップS23)は、欠陥画素の最新の判定情報を用いて行うことが好ましい。このため、欠陥画素の補正処理(ステップS18、ステップS23)は、欠陥画素の検出処理(ステップS17、ステップS22)の後に実行する。なお、ホーミング制御(ステップS20)を行った直後に、欠陥画素の補正処理を行ってもよい。   Further, it is preferable that the defective pixel correction process (step S18, step S23) is performed using the latest determination information of the defective pixel. Therefore, the defective pixel correction process (step S18, step S23) is executed after the defective pixel detection process (step S17, step S22). In addition, immediately after performing homing control (step S20), you may perform the correction process of a defective pixel.

(ADFを用いた原稿読み取り時における欠陥画素の検出処理動作)
図18は、ADF3を用いた原稿読み取り時における欠陥画素の検出処理動作を説明するためのフローチャートである。この図18のフローチャートにおいて、ADF3を用いた原稿の読み取りを開始すると、CPU41は、ウォームアップのため、光電変換素子21に対して駆動電圧を印加(ON)すると共に(ステップS31)、光源16を点灯駆動する(ステップS32)。
(Detection processing operation of defective pixels at the time of document reading using ADF)
FIG. 18 is a flowchart for explaining the defective pixel detection processing operation at the time of document reading using ADF3. In the flowchart of FIG. 18, when reading of a document using the ADF 3 is started, the CPU 41 applies a drive voltage (ON) to the photoelectric conversion element 21 for warm-up (step S31) and turns on the light source 16. The lighting is driven (step S32).

次に、CPU41は、ADF3にセットされた原稿の搬送制御を開始し(ステップS33)、原稿の画像データを取得する(ステップS34)。そして、CPU41は、図16のフローチャートを用いて説明したMFPの起動時、又は、図17のフローチャートを用いて説明した圧板を用いた原稿の読み取り時に検出した欠陥画素の判定情報を用いて、ステップS34の取得した画像データの欠陥画素の補正処理を行う(ステップS35)。   Next, the CPU 41 starts conveyance control of the document set on the ADF 3 (step S33), and acquires image data of the document (step S34). Then, the CPU 41 uses the defective pixel determination information detected when the MFP described with reference to the flowchart of FIG. 16 is activated or when reading the document using the pressure plate described with reference to the flowchart of FIG. Correction processing of defective pixels of the acquired image data in S34 is performed (step S35).

次に、CPU41は、ステップS36において、ADF3にセットされた全ての原稿の読み取りが完了したか否かを判別する。全ての原稿の読み取りが完了したと判別した場合(ステップS36:Yes)、CPU41は、光源16を消灯制御し(ステップS37)、上述の欠陥画素の検出処理を行い(ステップS38)、図18のフローチャートの処理を終了する。   Next, in step S36, the CPU 41 determines whether or not reading of all the originals set on the ADF 3 has been completed. When it is determined that all the originals have been read (step S36: Yes), the CPU 41 controls the light source 16 to be turned off (step S37), performs the above-described defective pixel detection process (step S38), and FIG. The process of the flowchart ends.

これに対して、全ての原稿の読み取りが完了していないと判別した場合(ステップS36:No)、CPU41は、光源16を消灯制御し(ステップS39)、上述の欠陥画素の検出処理を行う(ステップS40)。すなわち、CPU41は、ADF3を用いて連続的に原稿の読み取りを行う場合、原稿と次の原稿の読み取りを行う間に、欠陥画素の検出処理を行う。これにより、リアルタイムに欠陥画素の判定情報を更新でき、より状態に則した欠陥画素の補正処理を行うことができる。CPU41は、欠陥画素の検出処理が完了すると、光源16をオン制御し、ステップS34に処理を戻す。   On the other hand, when it is determined that reading of all originals has not been completed (step S36: No), the CPU 41 controls the light source 16 to be turned off (step S39), and performs the above-described defective pixel detection process (step S39). Step S40). That is, when the CPU 41 continuously reads a document using the ADF 3, the CPU 41 performs a defective pixel detection process while reading the document and the next document. Thereby, the determination information of the defective pixel can be updated in real time, and the defective pixel correction process can be performed in accordance with the state. When the defective pixel detection process is completed, the CPU 41 turns on the light source 16 and returns the process to step S34.

ステップS40の欠陥画素の検出処理は、光源16を点灯制御した後に、光量が安定するまでに時間を要し、トータルの読取時間が延びる可能性があるため、毎回ではなく、所定の原稿の枚数毎に行ってもよい。   The defective pixel detection process in step S40 takes time until the light quantity is stabilized after the light source 16 is turned on, and the total reading time may be increased. It may be done every time.

また、ADF3を用いて原稿の読み取りを行う場合、読み取り終了時には、ADF3が閉じられているはずである。このため、ステップS37において、圧板を用いた原稿の読み取り時と同様に、欠陥画素検出のために取得する蓄積時間の異なる2つの暗時の画素値のうち、蓄積時間の長いほうを通常より長くして取得してもよい。   When reading an original using the ADF 3, the ADF 3 should be closed at the end of reading. For this reason, in step S37, as in reading a document using a pressure plate, of the two dark pixel values having different accumulation times acquired for detecting defective pixels, the longer accumulation time is set longer than usual. You may get it.

(欠陥画素の補正処理動作)
次に、上述のように取得した判定情報を用いて行われる欠陥画素の補正処理動作を説明する。図19は、MFP1の欠陥画素補正部73の詳細なブロック図である。この図19に示すように、欠陥画素補正部73は、メモリ100と共に、相関度算出部101及び置換処理部102を有している。
(Defect pixel correction processing operation)
Next, a defective pixel correction processing operation performed using the determination information acquired as described above will be described. FIG. 19 is a detailed block diagram of the defective pixel correction unit 73 of the MFP 1. As shown in FIG. 19, the defective pixel correction unit 73 includes a correlation degree calculation unit 101 and a replacement processing unit 102 together with the memory 100.

欠陥画素補正部73は、一例として図20に示すように、判定部83により補間対象と判定された欠陥画素の前後16画素及び前後3ラインを、探索領域(対象パターン)として補間候補となる画素を探索する。また、欠陥画素補正部73は、欠陥画素、欠陥画素の前後2画素及びこの前後2画素の上下の2画素で形成される3ライン分の領域をテンプレートとして設定する。そして、欠陥画素補正部73は、図20に示すように、テンプレートを1画素ずつ移動しながら上述の対象パターン(欠陥画素の前後16画素及び前後3ラインの画像データ)と比較し、対象パターンの各部とテンプレートの相関度を算出する。   As an example, as illustrated in FIG. 20, the defective pixel correction unit 73 uses 16 pixels before and after the defective pixel determined by the determination unit 83 and 3 lines before and after as pixels to be interpolation candidates as a search area (target pattern). Explore. Further, the defective pixel correction unit 73 sets a region corresponding to three lines formed by the defective pixel, two pixels before and after the defective pixel, and two pixels above and below the two pixels before and after the defective pixel as a template. Then, as shown in FIG. 20, the defective pixel correction unit 73 compares the target pattern (image data of 16 pixels before and after the defective pixel and 3 lines before and after) while moving the template pixel by pixel. The degree of correlation between each part and the template is calculated.

相関度としては、一例としてSAD(Sum of Absolute Difference)値を用いる。例えば、図20に示す例の場合、欠陥画素補正部73は、以下の数式(例としてSAD値S1〜S24を求める場合)に基づいて、24個分のSAD値を算出する。そして、欠陥画素補正部73は、一番小さいSAD値(=最大の相関度)を算出した対象パターンの部分の中心画素を置換画素として、欠陥画素と置き換え処理する。   For example, a SAD (Sum of Absolute Difference) value is used as the degree of correlation. For example, in the case of the example illustrated in FIG. 20, the defective pixel correction unit 73 calculates 24 SAD values based on the following mathematical formula (for example, when SAD values S1 to S24 are obtained). The defective pixel correction unit 73 then replaces the defective pixel with the central pixel of the portion of the target pattern for which the smallest SAD value (= maximum correlation) is calculated as a replacement pixel.

なお、以下の数式及び図20において、「S」はSAD値を意味する。「S1」は、1つ目のSAD値、S24は、24個目のSAD値を示す。「P」は、対象パターンの画素を意味する。「P11」は、対象パターンの第1ライン目の第1番目の画素を、「P321」は、対象パターンの第1ライン目の第32番目の画素を意味する。同様に、「P13」は、対象パターンの第3ライン目の第1番目の画素を、「P323」は、対象パターンの第3ライン目の第32番目の画素を意味する。また、「T」は、テンプレートの画素を意味する。「T11」は、テンプレートの第1ライン目の第1番目の画素を、「T41」は、テンプレートの第1ライン目の第4番目の画素を意味する。同様に、「P13」は、対象パターンの第3ライン目の第1番目の画素を、「P43」は、対象パターンの第3ライン目の第4番目の画素を意味する。   In the following formula and FIG. 20, “S” means an SAD value. “S1” indicates the first SAD value, and S24 indicates the 24th SAD value. “P” means a pixel of the target pattern. “P11” means the first pixel of the first line of the target pattern, and “P321” means the 32nd pixel of the first line of the target pattern. Similarly, “P13” means the first pixel on the third line of the target pattern, and “P323” means the 32nd pixel on the third line of the target pattern. “T” means a pixel of the template. “T11” means the first pixel on the first line of the template, and “T41” means the fourth pixel on the first line of the template. Similarly, “P13” means the first pixel on the third line of the target pattern, and “P43” means the fourth pixel on the third line of the target pattern.

S1=(P11−T11)+(P12−T12)+(P13−T13)+(P21−T21)+(P22−T22)+(P23−T23)+(P31−T31)+(P32−T32)+(P33−T33)・・・S24=(P281−T11)+(P282−T12)+(P283−T13)+(P291−T21)+(P292−T22)+(P293−T23)+(P301−T31)+(P302−T32)+(P303−T33)   S1 = (P11−T11) + (P12−T12) + (P13−T13) + (P21−T21) + (P22−T22) + (P23−T23) + (P31−T31) + (P32−T32) + (P33−T33)... S24 = (P281−T11) + (P282−T12) + (P283−T13) + (P291−T21) + (P292−T22) + (P293−T23) + (P301−T31) ) + (P302-T32) + (P303-T33)

欠陥画素補正部73は、このような数式に基づく演算処理を行うことで、SAD値S1〜S24を算出する。そして、例えばSAD値S22の値が最小値の場合、この最小値を算出した対象パターンの部分の中心画素であるP282の画素を置換画素として、欠陥画素と置き換え処理する。   The defective pixel correction unit 73 calculates SAD values S <b> 1 to S <b> 24 by performing arithmetic processing based on such a mathematical expression. For example, when the value of the SAD value S22 is the minimum value, the pixel of P282 that is the central pixel of the portion of the target pattern for which the minimum value is calculated is used as a replacement pixel and replaced with a defective pixel.

図21は、このような補間処理動作の流れを示すフローチャートである。ステップS51では、図19に示す相関度算出部101が、SAD値の演算回数として「1」を、カウンタに設定する(n=1:nは演算回数)。すなわち、図20に示す例の場合、相関度算出部101は、計24個のSAD値を算出する。このため、相関度算出部101は、ステップS51において、最初に、1回目のSAD値の演算動作であることを示す「1」をカウンタに設定する。なお、相関度算出部101は、一つのSAD値の算出を完了する毎に、「1」→「2」→「3」・・・「24」等のように、カウンタの値を一つずつインクリメントする。インクリメントのタイミングは、対象パターンに対してテンプレートを1画素移動するタイミングである。   FIG. 21 is a flowchart showing the flow of such an interpolation processing operation. In step S51, the correlation calculation unit 101 shown in FIG. 19 sets “1” as the SAD value calculation count in the counter (n = 1: n is the calculation count). That is, in the case of the example shown in FIG. 20, the correlation degree calculation unit 101 calculates a total of 24 SAD values. For this reason, in step S51, the correlation degree calculation unit 101 first sets “1” in the counter, which indicates the first calculation operation of the SAD value. Each time the degree of correlation calculation unit 101 completes calculation of one SAD value, the value of the counter is incremented by one, such as “1” → “2” → “3”. Increment. The increment timing is a timing at which the template is moved by one pixel with respect to the target pattern.

次に、ステップS52では、相関度算出部101が、上述の数式に基づいて、SAD値(Sn:SはSAD値の意、nは、算出されるSAD値の1〜24の番号)を算出する。ステップS53では、相関度算出部101が、演算回数が24回(n=24:nは演算回数)となったか否かを判別する。上述のように、相関度算出部101は、対象パターンに対してテンプレートを一つずつ移動しながら上述の演算を行う。このため、演算回数が24回に満たない場合(ステップS53:No)、ステップS55に処理を進め、演算回数を一つインクリメントして(n=n+1)、ステップS52に処理を戻す。そして、ステップS52において、再度、SAD値を算出する。   Next, in step S52, the correlation degree calculation unit 101 calculates an SAD value (Sn: S is an SAD value, and n is a number from 1 to 24 of the calculated SAD value) based on the above formula. To do. In step S <b> 53, the correlation degree calculation unit 101 determines whether or not the number of calculations is 24 (n = 24: n is the number of calculations). As described above, the correlation degree calculation unit 101 performs the above calculation while moving the template one by one with respect to the target pattern. For this reason, when the number of calculations is less than 24 (step S53: No), the process proceeds to step S55, the number of calculations is incremented by one (n = n + 1), and the process returns to step S52. In step S52, the SAD value is calculated again.

このようにして24個のSAD値を算出すると(ステップS53:Yes)、ステップS54に処理が進み、図19に示す置換処理部102が、24個数のSAD値のうち、最小値を算出した対象パターンの部分の中心画素を置換画素として、欠陥画素と置き換え処理(補間処理)して、図21のフローチャートの処理を終了する。   When 24 SAD values are calculated in this way (step S53: Yes), the process proceeds to step S54, and the replacement processing unit 102 shown in FIG. 19 calculates the minimum value among the 24 SAD values. The central pixel of the pattern portion is used as a replacement pixel and replaced with a defective pixel (interpolation processing), and the processing of the flowchart in FIG.

最後に、上述の実施の形態は、一例として提示したものであり、本発明の範囲を限定することは意図していない。この新規な実施の形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことも可能である。また、実施の形態及び実施の形態の変形は、発明の範囲や要旨に含まれると共に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   Finally, the above-described embodiment has been presented as an example, and is not intended to limit the scope of the present invention. The novel embodiment can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. Further, the embodiments and modifications of the embodiments 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 複合機(MFP)の読み取り装置
2 MFPの本体
3 自動原稿給送機構(ADF)
4 スキャナ機構
21 光電変換素子
41 CPU
60 タイミング信号生成部
61 画素信号生成回路
62 増幅器(PGA)
63 アナログ−デジタルコンバータ(ADC)
64 パラレル/シリアル変換部64
71 遮光部
72 ノイズ検出部
73 欠陥画素補正部
81 メモリ
82 減算器
83 判定部
88 黒シェーディング補正部
1 MFP (MFP) reader 2 MFP body 3 Automatic document feeder (ADF)
4 Scanner mechanism 21 Photoelectric conversion element 41 CPU
60 Timing Signal Generation Unit 61 Pixel Signal Generation Circuit 62 Amplifier (PGA)
63 Analog-to-digital converter (ADC)
64 Parallel / serial converter 64
71 Shading unit 72 Noise detection unit 73 Defective pixel correction unit 81 Memory 82 Subtractor 83 Determination unit 88 Black shading correction unit

特開2014−110622号公報JP, 2014-110622, A

Claims (17)

受光光量に応じた画像信号を生成する光電変換素子と、
前記光電変換素子に光が入射していない状態で得られる画素値である暗時の画素値を、少なくとも第1の時間、及び、前記第1の時間より長い第2の時間で取得し、前記第1の時間に取得した暗時の各画素値と前記第2の時間で取得した暗時の各画素値の差分を取ることで、前記暗時におけるノイズ量を検出するノイズ検出部と、
所定の第1の閾値以上の前記ノイズ量を有する画素を欠陥画素として判定する判定部と
を有する光電変換装置。
A photoelectric conversion element that generates an image signal corresponding to the amount of received light;
Obtaining a pixel value in the dark which is a pixel value obtained in a state where light is not incident on the photoelectric conversion element at least in a first time and a second time longer than the first time; A noise detection unit that detects a noise amount in the dark time by taking a difference between each pixel value in the dark time acquired in the first time and each pixel value in the dark time acquired in the second time;
And a determination unit that determines a pixel having the noise amount equal to or greater than a predetermined first threshold as a defective pixel.
前記光電変換素子の各画素の画素値のうち、前記欠陥画素として判定された画素の画素値を、正常画素の画素値に補正処理して出力する補正部を、さらに備えること
を特徴とする請求項1に記載の光電変換装置。
The image processing apparatus further includes a correction unit that corrects a pixel value of a pixel determined as the defective pixel among pixel values of each pixel of the photoelectric conversion element to a pixel value of a normal pixel and outputs the corrected pixel value. Item 2. The photoelectric conversion device according to Item 1.
前記光電変換素子に対して光が入射しないように遮光する遮光部を有すること
を特徴とする請求項1又は請求項2に記載の光電変換装置。
The photoelectric conversion device according to claim 1, further comprising: a light shielding portion that shields light from entering the photoelectric conversion element.
前記光電変換素子として、所定の複数の色用の光電変換素子を備え、
前記判定部は、前記各色用の光電変換素子の画素のうち、少なくとも一つの色用の光電変換素子の画素を欠陥画素として判定した場合、当該欠陥画素として判定した画素と同じ画素位置に相当する他の色用の光電変換素子の画素も、欠陥画素として判定すること
を特徴とする請求項1から請求項3のうち、いずれか一項に記載の光電変換装置。
As the photoelectric conversion element, a photoelectric conversion element for a predetermined plurality of colors,
When the determination unit determines at least one pixel of the photoelectric conversion element for each color as a defective pixel, the determination unit corresponds to the same pixel position as the pixel determined as the defective pixel. The photoelectric conversion device according to any one of claims 1 to 3, wherein pixels of photoelectric conversion elements for other colors are also determined as defective pixels.
前記判定部は、同じ画素位置に相当する前記各色用の光電変換素子の画素が、それぞれ前記第1の閾値未満であった場合、同じ画素位置に相当する前記各色用の光電変換素子の画素の画素値の積算値を算出し、前記積算値が所定の第2の閾値以上であった場合に、前記同じ画素位置に相当する前記各色用の光電変換素子の画素をそれぞれ欠陥画素として判定すること
を特徴とする請求項4に記載の光電変換装置。
When the pixels of the photoelectric conversion elements for the respective colors corresponding to the same pixel position are each less than the first threshold value, the determination unit determines the pixel of the photoelectric conversion element for the respective colors corresponding to the same pixel position. An integrated value of pixel values is calculated, and when the integrated value is equal to or greater than a predetermined second threshold, the pixels of the photoelectric conversion elements for the respective colors corresponding to the same pixel position are determined as defective pixels, respectively. The photoelectric conversion device according to claim 4.
前記光電変換素子に光を入射して得られた撮像時の各画素値から、記憶部に記憶された前記暗時の各画素値を減算処理することで、撮像時の各画素値のシェーディング補正処理を行う黒シェーディング補正部を、さらに備え、
前記ノイズ検出部は、前記記憶部に記憶された前記暗時の各画素値を、前記第2の時間又は前記第1の時間に取得した前記暗時の各画素値として用いてノイズ量の検出を行うこと
を特徴とする請求項1から請求項5のうち、いずれか一項に記載の光電変換装置。
By subtracting each dark pixel value stored in the storage unit from each pixel value at the time of imaging obtained by making light incident on the photoelectric conversion element, shading correction of each pixel value at the time of imaging is performed. A black shading correction unit that performs processing;
The noise detection unit detects the amount of noise using each dark pixel value stored in the storage unit as each dark pixel value acquired at the second time or the first time. The photoelectric conversion device according to any one of claims 1 to 5, wherein the photoelectric conversion device is performed.
前記判定部は、前記欠陥画素として判定した画素に関する判定情報を、所定の優先順位に従って記憶部に記憶すると共に、記憶した各判定情報を、前記優先順位に従って書き換えること
を特徴とする請求項1から請求項6のうち、いずれか一項に記載の光電変換装置。
The determination unit stores determination information regarding the pixel determined as the defective pixel in a storage unit according to a predetermined priority, and rewrites each stored determination information according to the priority. The photoelectric conversion apparatus as described in any one of Claims 6.
前記判定部は、ノイズ量の多い順に前記欠陥画素の判定情報を、前記記憶部に記憶すること
を特徴とする請求項7に記載の光電変換装置。
The photoelectric conversion apparatus according to claim 7, wherein the determination unit stores the determination information of the defective pixels in the storage unit in descending order of noise amount.
前記判定部は、隣接している欠陥画素の前記判定情報を、所定の高い順位で前記記憶部に記憶すること
を特徴とする請求項7又は請求項8に記載の光電変換装置。
The photoelectric conversion device according to claim 7 or 8, wherein the determination unit stores the determination information of adjacent defective pixels in the storage unit in a predetermined high order.
前記光電変換素子として、所定の複数の色用の光電変換素子を備え、
前記判定部は、前記各色用の所定数の画素を一纏めとした各色チャンネルのうち、欠陥画素が多い色チャンネルの前記判定情報を、所定の高い順位で前記記憶部に記憶すること
を特徴とする請求項8又は請求項9に記載の光電変換装置。
As the photoelectric conversion element, a photoelectric conversion element for a predetermined plurality of colors,
The determination unit stores, in the storage unit, the determination information of a color channel having a large number of defective pixels among the color channels in which a predetermined number of pixels for each color are collected. The photoelectric conversion device according to claim 8 or 9.
前記判定部は、当該光電変換装置が適用される機器の起動処理後、又は、前記光電変換素子の読み取り動作が完了して前記暗時とされた際のうち、一方又は両方で前記欠陥画素の判定を行うこと
を特徴とする請求項1から請求項10のうち、いずれか一項に記載の光電変換装置。
The determination unit is configured to detect the defective pixel in one or both of after a start process of a device to which the photoelectric conversion device is applied or when the photoelectric conversion element is read and the dark state is set. The photoelectric conversion device according to any one of claims 1 to 10, wherein determination is performed.
前記判定部は、前記光電変換素子の1回の読み取り完了毎、又は、複数回の読み取り完了毎に、前記欠陥画素の判定を行うこと
を特徴とする請求項1から請求項11のうち、いずれか一項に記載の光電変換装置。
12. The determination unit according to claim 1, wherein the determination unit determines the defective pixel every time reading of the photoelectric conversion element is completed once or every time reading of a plurality of times is completed. A photoelectric conversion device according to claim 1.
前記ノイズ検出部は、ノイズ量を検出するための暗時の画素値取得の順番を、前記第1の時間にて取得するより後で前記第2の時間にて取得すること
を特徴とする請求項1から請求項12のうち、いずれか一項に記載の光電変換装置。
The noise detection unit acquires an order of pixel value acquisition in the dark for detecting the amount of noise at the second time after acquiring at the first time. The photoelectric conversion device according to any one of Items 1 to 12.
前記補正部は、前記光電変換素子の読み取り待機時に前記補正処理を実行すること
を特徴とする請求項2から請求項13のうち、いずれか一項に記載の光電変換装置。
The photoelectric conversion apparatus according to any one of claims 2 to 13, wherein the correction unit executes the correction processing when the photoelectric conversion element is on standby for reading.
前記補正部は、前記欠陥画素を含む画素列と、前後の一列又は複数の画素列からなる対象パターン上で、前記対象パターンの部分的な大きさのテンプレートを、前記対象パターンの端部から列方向に沿って、少なくとも1画素ずつ移動させながら、対象パターンとテンプレートとの相関度を算出し、最大の相関度を算出した前記対象パターンの部分の中心画素を置換画素として用いて、前記欠陥画素を補間処理すること
を特徴とする請求項2から請求項14のうち、いずれか一項に記載の光電変換装置。
The correction unit arranges a template having a partial size of the target pattern from an end portion of the target pattern on a target pattern including a pixel column including the defective pixel and one or a plurality of pixel columns before and after. The degree of correlation between the target pattern and the template is calculated while moving at least one pixel along the direction, and the defective pixel is obtained by using the central pixel of the part of the target pattern for which the maximum degree of correlation is calculated as a replacement pixel. The photoelectric conversion device according to any one of claims 2 to 14, wherein the photoelectric conversion device is subjected to an interpolation process.
前記ノイズ検出部が、受光光量に応じた画像信号を生成する光電変換素子に光が入射していない状態で得られる画素値である暗時の画素値を、少なくとも第1の時間、及び、前記第1の時間より長い第2の時間でそれぞれ取得する取得ステップと、
前記第2の時間に取得した前記暗時の各画素値と、前記第1の時間に取得した前記暗時の各画素値の差分を取ることで、前記暗時におけるノイズ量を検出するノイズ検出ステップと、
判定部が、所定の第1の閾値以上の前記ノイズ量を有する画素を欠陥画素として判定する判定ステップと
を有する欠陥画素の判定方法。
The noise detection unit has a pixel value in the dark which is a pixel value obtained in a state where light is not incident on a photoelectric conversion element that generates an image signal corresponding to the amount of received light, at least for the first time, and An acquisition step of acquiring each in a second time longer than the first time;
Noise detection for detecting the amount of noise in the dark time by taking the difference between the pixel values in the dark time acquired in the second time and the pixel values in the dark time acquired in the first time Steps,
A determination step of determining a pixel having the noise amount equal to or greater than a predetermined first threshold as a defective pixel.
載置台に載置された原稿に光を照射し、反射光を光電変換素子で受光して、原稿の読み取りを行う画像形成装置であって、
前記光電変換素子に光が入射していない状態で得られる画素値である暗時の画素値を、少なくとも第1の時間、及び、前記第1の時間より長い第2の時間でそれぞれ取得し、
前記第2の時間に取得した前記暗時の各画素値と、前記第1の時間に取得した前記暗時の各画素値の差分を取ることで、前記暗時におけるノイズ量を検出するノイズ検出部と、
所定の第1の閾値以上の前記ノイズ量を有する画素を欠陥画素として判定する判定部と、
前記光電変換素子の各画素の画素値のうち、前記欠陥画素として判定された画素の画素値を、正常画素の画素値に補正処理して出力する補正部とを有すること
を特徴とする画像形成装置。
An image forming apparatus that irradiates light on a document placed on a placement table, receives reflected light with a photoelectric conversion element, and reads the document,
Obtaining at least a first time and a second time longer than the first time, a pixel value in the dark which is a pixel value obtained in a state where light is not incident on the photoelectric conversion element;
Noise detection for detecting the amount of noise in the dark time by taking the difference between the pixel values in the dark time acquired in the second time and the pixel values in the dark time acquired in the first time And
A determination unit that determines a pixel having the noise amount equal to or greater than a predetermined first threshold as a defective pixel;
An image forming apparatus comprising: a correction unit that corrects a pixel value of a pixel determined as the defective pixel among pixel values of each pixel of the photoelectric conversion element to a pixel value of a normal pixel and outputs the corrected pixel value. apparatus.
JP2018002010A 2017-01-25 2018-01-10 Photoelectric conversion device, defect pixel determination method and image forming device Active JP6992521B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/878,467 US10542184B2 (en) 2017-01-25 2018-01-24 Photoelectric conversion device, defective pixel determining method, image forming apparatus, and recording medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017011256 2017-01-25
JP2017011256 2017-01-25

Publications (2)

Publication Number Publication Date
JP2018121330A true JP2018121330A (en) 2018-08-02
JP6992521B2 JP6992521B2 (en) 2022-01-13

Family

ID=63044014

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018002010A Active JP6992521B2 (en) 2017-01-25 2018-01-10 Photoelectric conversion device, defect pixel determination method and image forming device

Country Status (1)

Country Link
JP (1) JP6992521B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10308901A (en) * 1997-05-09 1998-11-17 Sony Corp Defect detection circuit for solid-state image pickup element and defect detection correction circuit using it
JP2002247349A (en) * 2001-02-14 2002-08-30 Ricoh Co Ltd Image processing apparatus
JP2005223398A (en) * 2004-02-03 2005-08-18 Matsushita Electric Ind Co Ltd Imaging apparatus
JP2008148129A (en) * 2006-12-12 2008-06-26 Canon Inc Imaging apparatus, control method thereof, and program
JP2016015536A (en) * 2014-06-30 2016-01-28 キヤノン株式会社 Image processing device and image processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10308901A (en) * 1997-05-09 1998-11-17 Sony Corp Defect detection circuit for solid-state image pickup element and defect detection correction circuit using it
JP2002247349A (en) * 2001-02-14 2002-08-30 Ricoh Co Ltd Image processing apparatus
JP2005223398A (en) * 2004-02-03 2005-08-18 Matsushita Electric Ind Co Ltd Imaging apparatus
JP2008148129A (en) * 2006-12-12 2008-06-26 Canon Inc Imaging apparatus, control method thereof, and program
JP2016015536A (en) * 2014-06-30 2016-01-28 キヤノン株式会社 Image processing device and image processing method

Also Published As

Publication number Publication date
JP6992521B2 (en) 2022-01-13

Similar Documents

Publication Publication Date Title
US10542184B2 (en) Photoelectric conversion device, defective pixel determining method, image forming apparatus, and recording medium
JP6880709B2 (en) Photoelectric conversion device, photoelectric conversion method and image forming device
US20170302821A1 (en) Signal processing device, image scanning device, image forming apparatus, and method of controlling the same
JP6822096B2 (en) Photoelectric conversion device, photoelectric conversion method and image forming device
JP6383143B2 (en) Imaging device, image reading apparatus, image forming apparatus, and imaging method
US11546535B2 (en) Abnormal-pixel detecting device, image forming apparatus, and method of detecting abnormal pixel
US10230854B2 (en) Image reading apparatus, image forming apparatus, and image forming system with interpolation of correction data
JP2019129509A (en) Image reading device, image reading method, image forming apparatus, and program
JP2008113170A (en) Image reading apparatus, image forming apparatus, image reading method, and image forming method
JP6303504B2 (en) Photoelectric conversion element, image reading apparatus, and image forming apparatus
JP6992521B2 (en) Photoelectric conversion device, defect pixel determination method and image forming device
US11228685B2 (en) Image processing circuit board, reading device, image forming apparatus, image processing method and image processing device replacing invalid area output from image sensor after black correction
JP2021093717A (en) Image data processing apparatus, image reading device, image forming apparatus, and image data processing method
JP6477283B2 (en) Photoelectric conversion element, image reading apparatus, image forming apparatus, and photoelectric conversion element control method
JP2004248304A (en) Imaging device
JP5298928B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP6880936B2 (en) Image reader, image forming device, and control method
JP6737365B2 (en) Image sensor, image reading device, image forming device, and image reading method
JP6493500B2 (en) Image sensor, image reading apparatus, image forming apparatus, and image reading method
JP5697544B2 (en) Image processing apparatus and image processing method
JP6295529B2 (en) Imaging apparatus, image reading apparatus, and image forming apparatus
JP6264875B2 (en) Image reading apparatus and image forming apparatus
JP5790100B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2010246125A (en) Image reading apparatus, image processing apparatus and control method thereof
JP2005333333A (en) Image reading apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201023

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210208

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210803

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210930

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: 20211109

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211122

R151 Written notification of patent or utility model registration

Ref document number: 6992521

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151