JPH08256263A - Image reader - Google Patents

Image reader

Info

Publication number
JPH08256263A
JPH08256263A JP7059220A JP5922095A JPH08256263A JP H08256263 A JPH08256263 A JP H08256263A JP 7059220 A JP7059220 A JP 7059220A JP 5922095 A JP5922095 A JP 5922095A JP H08256263 A JPH08256263 A JP H08256263A
Authority
JP
Japan
Prior art keywords
pixel
image data
white reference
data
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7059220A
Other languages
Japanese (ja)
Inventor
賢 ▲かじ▼川
Masaru Kajikawa
Atsushi Takahashi
篤 高橋
Yasuo Komatsu
康男 小松
Hajime Sakashita
哉 坂下
Koji Yorimoto
浩二 寄本
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP7059220A priority Critical patent/JPH08256263A/en
Publication of JPH08256263A publication Critical patent/JPH08256263A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To attain quick and proper shading correction even when dust is depositted onto a white reference board. CONSTITUTION: Picture elements are interleaved and the interleaved picture elements are interpolated based on a sampling pulse with an interval of 8 clocks whose timing is shifted in the unit of two clocks in response to 1st to 4th lines on a white reference board 10, the resulting picture elements are compared with picture elements stored in a correction memory 15d and the larger picture elements are stored in the correction memory 15d. The processing above is repeated to generate white reference image data and image data obtained by reading an original 11 are corrected based on the white reference image data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、イメージセンサによる
画像の読取走査に先だって該イメージセンサにより白基
準面を読取り、該イメージセンサにより読取った画像デ
ータに基づいて形成した白基準画像データを記憶手段に
記憶するとともに、該記憶手段に記憶した白基準画像デ
ータに基づき前記イメージセンサにより読取った画像の
読取データを補正するシェーディング補正手段を有する
画像読取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage means for storing white reference image data formed on the basis of image data read by the image sensor, by reading the white reference surface by the image sensor prior to reading and scanning the image by the image sensor. And an image reading device having shading correction means for correcting read data of an image read by the image sensor based on white reference image data stored in the storage means.

【0002】[0002]

【従来の技術】デジタル複写機やファクシミリ装置など
が光学的なイメージセンサを用いて原稿を読み取る場合
には、光学系の歪、原稿を照射する光源の照度のばらつ
き、イメージセンサの画素ごとの感度ムラ等のシェーデ
ィング歪が各画素の画素値を不均質にするため、かかる
シェーディング歪を電気的に是正する各種シェーディン
グ補正技術が知られている。
2. Description of the Related Art When a digital copying machine, a facsimile machine, or the like reads an original using an optical image sensor, distortion of an optical system, variation in illuminance of a light source for illuminating the original, and sensitivity of each pixel of the image sensor Since shading distortion such as unevenness makes the pixel value of each pixel inhomogeneous, various shading correction techniques for electrically correcting such shading distortion are known.

【0003】このシェーディング補正技術の代表的なも
のとして、原稿として読取るべき画像をイメージセンサ
で読取走査する前に、予め白色の基準面(以下、「白基
準面」という。)を読取り、この読取画像データに基づ
いてシェーディング補正に用いる補正用データ(以下、
「白基準画像データ」という。)を作成し、該白基準画
像データに基づいてイメージセンサで原稿画像を読み取
った画像の読取データの白レベルをシェーディング補正
する技術がある。
As a typical example of this shading correction technique, a white reference plane (hereinafter referred to as "white reference plane") is read in advance before the image sensor reads and scans an image to be read as an original. Correction data used for shading correction based on image data (hereinafter,
It is called "white reference image data". ) Is created and shading correction is performed on the white level of the read data of the image obtained by reading the original image with the image sensor based on the white reference image data.

【0004】ところが、かかる従来技術では、シェーデ
ィング補正に用いる白基準画像データは、上記イメージ
センサの光学的特性を正確に反映している必要があり、
白基準面に付着したゴミや汚れ等の影響を受けている
と、誤差が大きな補正を行うこととなり、かえって画質
の劣化を招く原因となる。
However, in such a conventional technique, the white reference image data used for shading correction must accurately reflect the optical characteristics of the image sensor.
If it is affected by dust or dirt adhering to the white reference surface, correction will be performed with a large error, which will cause deterioration of image quality.

【0005】そこで、かかる白基準面に付着したゴミ等
の影響を最小限に抑えるために、特開平2−20277
2号公報には、アナログ画信号の各ビットに対する補正
係数がとり得る範囲を規定し、この範囲外の補正係数を
指定するビットレベルが入力された画信号は、隣接また
は近傍の補正された画信号に基づいて補間する画信号補
正方式が開示されている。
Therefore, in order to minimize the influence of dust and the like adhering to the white reference surface, Japanese Unexamined Patent Publication No. 2-20277.
In Japanese Patent Laid-Open No. 2-9, a range in which a correction coefficient for each bit of an analog image signal can be taken is defined, and an image signal to which a bit level that specifies a correction coefficient outside this range is input is corrected in an adjacent or adjacent image. An image signal correction method that interpolates based on a signal is disclosed.

【0006】しかしながら、この従来技術では、隣接ま
たは近傍に位置する画信号に基づいた局所的な補間を行
っているにすぎないため、白基準面に付着した1画素〜
数画素程度のゴミにしか対処することができない。
However, according to this prior art, since only local interpolation is performed based on image signals located adjacent to or in the vicinity, one pixel attached to the white reference plane
It can only deal with dust of a few pixels.

【0007】また、特開平4−68868号公報には、
1ライン分の画像データをメモリに取り込み、注目画素
の前後複数画素の画素値の平均値を1ラインの右側と左
側の両側からそれぞれ求めて注目画素の画素値とする包
絡線回路が開示されている。
Further, in Japanese Patent Laid-Open No. 4-68868,
An envelope circuit is disclosed in which one line of image data is loaded into a memory, and the average value of the pixel values of a plurality of pixels before and after the pixel of interest is obtained from both the right side and the left side of the line and used as the pixel value of the pixel of interest. There is.

【0008】しかしながら、この従来技術では、前後複
数画素の平均値を注目画素ごとに順次求めるものである
ため、シェーディング補正に用いる白基準画像データを
作成するまでに時間を要し、シェーディング補正処理が
遅延する。
However, in this conventional technique, the average value of a plurality of pixels before and after is sequentially obtained for each pixel of interest, so that it takes time until the white reference image data used for shading correction is created, and the shading correction process is performed. Be delayed.

【0009】さらに、実開平2−55769号公報に
は、プレスキャン時に白基準面を読み取った読取データ
と、該読取データについて間引き及び欠損部の補間を行
った低周波成分の補正データとに基づいて、白基準画像
データを再生する画像読取装置が開示されている。
Further, in Japanese Utility Model Laid-Open No. 2-55769, it is based on read data obtained by reading a white reference plane during prescan and correction data of low frequency components obtained by thinning out the read data and interpolating a defective portion. Thus, an image reading device for reproducing white reference image data is disclosed.

【0010】しかしながら、この従来技術では、白基準
面の読取データを間引いた部分を補間する際に、間引か
ずに残したデータに基づいて演算処理を行っているた
め、間引かずに残したデータ自身が白基準面に付着した
ゴミの影響を受けていると、かえって誤った低周波成分
用の補正用データを用いることになり、ゴミの影響が拡
大する。
However, in this prior art, when interpolating the thinned-out portion of the read data of the white reference plane, the arithmetic processing is performed based on the data left without being thinned out, so that it is left without being thinned out. If the data itself is affected by dust adhering to the white reference surface, incorrect correction data for the low frequency component will be used instead, and the influence of dust will expand.

【0011】[0011]

【発明が解決しようとする課題】上述したように、特開
平2−202772号公報に開示される画信号補正方式
では、白基準面に付着した数画素程度のゴミにしか対応
できず、特開平4−68868号公報に開示される包絡
線回路では、平均化処理に伴う処理遅延が累増し、特開
平2−55769号公報に開示される画像読取装置で
は、かえって画質の劣化を招くおそれがあるという問題
があった。
As described above, the image signal correction method disclosed in Japanese Patent Application Laid-Open No. 2-202772 can deal with only a few pixels of dust attached to the white reference surface, and In the envelope circuit disclosed in Japanese Unexamined Patent Publication No. 4-68868, the processing delay associated with the averaging process increases, and in the image reading apparatus disclosed in Japanese Unexamined Patent Publication No. 2-55769, the image quality may deteriorate. There was a problem.

【0012】そこで、本発明では、上記問題点を解決
し、白基準面にゴミが付着した場合であっても、迅速か
つ適正なシェーディング補正を行うことができる画像読
取装置を提供することを目的とする。
Therefore, it is an object of the present invention to solve the above-mentioned problems and to provide an image reading apparatus capable of performing a quick and appropriate shading correction even when dust adheres to the white reference surface. And

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、第1の発明は、イメージセンサによる画像の読取走
査に先だって該イメージセンサにより白基準面を読取
り、該イメージセンサにより読取った画像データに基づ
いて形成した白基準画像データを記憶手段に記憶すると
ともに、該記憶手段に記憶した白基準画像データに基づ
き前記イメージセンサにより読取った画像の読取データ
を補正するシェーディング補正手段を有する画像読取装
置において、前記イメージセンサにより前記白基準面を
複数ライン分読取る読取手段と、前記読取手段により読
取った各ラインの画像データをそれぞれ異なる複数の画
素位置で間欠的にサンプリングするサンプリング手段
と、前記サンプリング手段でサンプリングした画像デー
タに基づき該ラインの他の画素の画像データを算出して
補間するデータ補間手段と、前記データ補間手段で補間
した各ラインの画像データを同一画素に関して比較する
ことにより各画素ごとに前記白基準画像データを求め、
該白基準画像データを前記記憶手段に記憶する白基準画
像データ記憶制御手段とを具備したことを特徴とする。
In order to achieve the above object, a first aspect of the invention is to read a white reference plane by the image sensor prior to reading and scanning of an image by the image sensor, and convert the image data read by the image sensor. An image reading apparatus having white shading correction means for storing white reference image data formed on the basis of the storage means and correcting read data of an image read by the image sensor based on the white reference image data stored in the storage means. A reading means for reading the white reference surface for a plurality of lines by the image sensor; a sampling means for intermittently sampling the image data of each line read by the reading means at a plurality of different pixel positions; and the sampling means. Other than the line based on the sampled image data A data interpolating means for interpolating and calculating the image data of the pixel, determined the white reference image data for each pixel by comparing the image data of each line which is interpolated by the data interpolating means with respect to the same pixel,
And a white reference image data storage control means for storing the white reference image data in the storage means.

【0014】また、第2の発明は、前記白基準画像デー
タ記憶制御手段は、前記データ補間手段で補間した各ラ
インの画像データを同一画素に関して比較し、各画素の
最大画像データを前記白基準画像データとして前記記憶
手段に記憶することを特徴とする。
According to a second aspect of the present invention, the white reference image data storage control means compares the image data of each line interpolated by the data interpolating means with respect to the same pixel, and the maximum image data of each pixel is the white reference image data. The image data is stored in the storage means.

【0015】また、第3の発明は、前記白基準画像デー
タ記憶制御手段は、前記データ補間手段で補間した各ラ
インの画像データの同一画素に関する最大値および/ま
たは最小値を除くとともに、残りの画像データの平均値
を各画素毎に求め、該平均値を前記白基準画像データと
して前記記憶手段に記憶することを特徴とする。
According to a third aspect of the invention, the white reference image data storage control means removes the maximum value and / or the minimum value for the same pixel of the image data of each line interpolated by the data interpolating means, and the remaining An average value of image data is obtained for each pixel, and the average value is stored in the storage means as the white reference image data.

【0016】[0016]

【作用】第1の発明によれば、前記読取手段により画像
の読取走査に先だって白基準面が複数ライン分読取られ
ると、前記サンプリング手段が各ラインの画像データを
それぞれ異なる複数の画素位置で間欠的にサンプリング
し、前記データ補間手段がサンプリングした画像データ
に基づいて該ラインの他の画素の画像データを算出す
る。そして、白基準画像データ記憶制御手段が、補間さ
れた各ラインの画像データを同一画素に関して比較する
ことにより各画素ごとに白基準画像データを求めて前記
記憶手段に記憶し、前記シェーディング補正手段が、該
記憶手段に記憶した白基準画像データに基づいて前記イ
メージセンサにより読取った画像の読取データを補正す
る。
According to the first aspect of the invention, when a plurality of lines of the white reference surface are read by the reading means prior to the reading and scanning of the image, the sampling means intermittently reads the image data of each line at a plurality of different pixel positions. Image data of other pixels in the line is calculated based on the image data sampled by the data interpolation means. Then, the white reference image data storage control means obtains white reference image data for each pixel by comparing the interpolated image data of each line with respect to the same pixel, and stores the white reference image data in the storage means. The read data of the image read by the image sensor is corrected based on the white reference image data stored in the storage means.

【0017】また、第2の発明によれば、前記白基準画
像データ記憶制御手段が、前記データ補間手段が補間し
た各ラインの画像データを同一画素に関して比較し、各
画素の最大画像データを前記白基準画像データとして前
記記憶手段に記憶する。
According to the second aspect of the invention, the white reference image data storage control means compares the image data of each line interpolated by the data interpolating means with respect to the same pixel, and the maximum image data of each pixel is obtained. The white reference image data is stored in the storage means.

【0018】また、第3の発明によれば、前記白基準画
像データ記憶制御手段が、前記データ補間手段で補間し
た各ラインの画像データの同一画素に関する最大値およ
び/または最小値を除くとともに、残りの画像データの
平均値を各画素毎に求め、該平均値を前記白基準画像デ
ータとして前記記憶手段に記憶する。
According to the third invention, the white reference image data storage control means removes the maximum value and / or the minimum value of the same pixel of the image data of each line interpolated by the data interpolating means, and An average value of the remaining image data is obtained for each pixel, and the average value is stored in the storage means as the white reference image data.

【0019】[0019]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0020】図2は、本発明に係る画像読取装置の外観
構成を示す図である。
FIG. 2 is a view showing the external arrangement of the image reading apparatus according to the present invention.

【0021】図2(a)に示すように、この画像読取装
置は、プラテンガラス21を上面に有する画像読取装置
筐体22に、白色の原稿押さえ23を有する原稿押さえ
カバー24を開閉式に装着したものであり、原稿合わせ
マーク25の位置を合わせて原稿をプラテンガラス21
上に載せ、原稿押さえカバー24を閉じた後に所定の操
作を行うことにより、原稿の読取りが行われる。
As shown in FIG. 2A, in this image reading apparatus, an original pressing cover 24 having a white original pressing 23 is openably mounted on an image reading apparatus housing 22 having a platen glass 21 on the upper surface. The original alignment mark 25 is aligned and the original is placed on the platen glass 21.
The document is read by performing a predetermined operation after placing it on the document cover 24 and closing the document pressing cover 24.

【0022】すなわち、図2(b)に示すように、原稿
26の左辺及び下辺を原稿ガイド25に沿わせるととも
に、読取面をプラテンガラス21側にして置き、原稿押
さえカバー24を閉じることになる。
That is, as shown in FIG. 2B, the left side and the lower side of the original 26 are placed along the original guide 25, the reading surface is placed on the platen glass 21 side, and the original pressing cover 24 is closed. .

【0023】なお、本実施例では、シェーディング補正
に用いる白基準面25aを原稿ガイド25内に設け、こ
の白基準面25aを読み取って白基準画像データを作成
した後に原稿26を読取り、原稿26の読取データを白
基準画像データに基づいてラインごとに補正している。
In this embodiment, the white reference surface 25a used for shading correction is provided in the document guide 25, and the white reference surface 25a is read to create white reference image data, and then the document 26 is read to read the document 26. The read data is corrected line by line based on the white reference image data.

【0024】図3は、上記画像読取装置の内部構造を示
す図であり、原稿26をプラテンガラス21上に載せて
所定の操作がなされると、ステッピングモータ22bに
より副走査方向に移動する光源22cから上方に向けて
光が照射され、この光が白基準面25a又は原稿26で
反射した反射光がミラー22d及びレンズ22eを介し
てイメージセンサ制御基盤22f上のイメージセンサ2
2gに結像する。
FIG. 3 is a diagram showing the internal structure of the image reading apparatus. When a document 26 is placed on the platen glass 21 and a predetermined operation is performed, a stepping motor 22b moves a light source 22c in the sub-scanning direction. From the image sensor 2 on the image sensor control board 22f via the mirror 22d and the lens 22e.
Image to 2g.

【0025】そして、イメージセンサ22gがこの結像
を画像データに光電変換した後、制御ユニット22a内
に設けられたA/D変換器が該画像データを量子化する
ことで、例えば各画素が8ビットからなる256諧調の
デジタル画像データが得られる。
Then, after the image sensor 22g photoelectrically converts this image formation into image data, the A / D converter provided in the control unit 22a quantizes the image data, so that, for example, each pixel has 8 pixels. 256-tone digital image data consisting of bits is obtained.

【0026】なお、この画像読取装置では、読取ライン
を移動させながら白基準面25aを複数回読取り、それ
ぞれの読取データに間引き及び補間処理を行なうことに
より、白基準面25aに付着したゴミ及び汚れの影響を
低減するよう構成している。
In this image reading apparatus, the white reference surface 25a is read a plurality of times while moving the reading line, and the read data is thinned out and interpolated to remove dust and dirt adhering to the white reference surface 25a. It is configured to reduce the effect of.

【0027】次に、この画像読取装置の制御ユニット2
2a内に設けられるシェーディング補正回路について説
明する。
Next, the control unit 2 of this image reading apparatus
The shading correction circuit provided in 2a will be described.

【0028】図1は、本発明に係わるシェーディング補
正回路の第1の実施例の細部構成を示す図である。
FIG. 1 is a diagram showing a detailed configuration of a first embodiment of a shading correction circuit according to the present invention.

【0029】図1に示すように、このシェーディング補
正回路15は、補間回路15aと、パルス発生回路15
bと、比較回路15cと、補正メモリ15dと、補正演
算回路15eとから構成され、原稿11を読み取る前
に、白基準面10を4ライン分読み取って白基準画像デ
ータを作成することとする。
As shown in FIG. 1, the shading correction circuit 15 includes an interpolation circuit 15a and a pulse generation circuit 15.
b, a comparison circuit 15c, a correction memory 15d, and a correction calculation circuit 15e, the white reference plane 10 is read by four lines before the original 11 is read, and white reference image data is created.

【0030】補間回路15aは、白基準面10で反射
し、レンズ12、イメージセンサ13及びA/D変換器
14を介して入力された画素列の中から画素の間引きを
行うとともに、間引いた画素の画素値を補間して比較回
路15cに出力する処理部である。
The interpolation circuit 15a thins out pixels from the pixel row reflected by the white reference surface 10 and input through the lens 12, the image sensor 13 and the A / D converter 14, and the thinned pixels. Is a processing unit for interpolating the pixel values of and outputting to the comparison circuit 15c.

【0031】具体的には、パルス発生回路15bから得
られるサンプリングパルスに基づいて、入力された画素
列のうち一定間隔で位置する画素をラッチすることによ
り、ラッチした画素以外の画素を間引くとともに、ラッ
チした画素の画素値に基づいて欠損部の画素値を補間す
る。
Specifically, based on the sampling pulse obtained from the pulse generation circuit 15b, the pixels located at a constant interval in the input pixel row are latched to thin out pixels other than the latched pixel, and The pixel value of the defective portion is interpolated based on the pixel value of the latched pixel.

【0032】すなわち、この実施例では、各画素が白基
準面10に付着したゴミの影響を受けた場合を考慮し
て、白基準面10から1ライン分の画素列を読み込む
と、8画素づつ離隔した画素の画素値をラッチして、結
果的にラッチした画素以外の画素を画素列から間引くと
ともに、間引いた画素の画素値をラッチした画素の画素
値に基づいて算定することにより、かかる欠損部の補間
を行っている。
That is, in this embodiment, when a pixel row for one line is read from the white reference surface 10 in consideration of the case where each pixel is affected by dust adhering to the white reference surface 10, it is divided into eight pixels. By latching the pixel values of the separated pixels, thinning out the pixels other than the latched pixels from the pixel row, and calculating the pixel values of the thinned pixels based on the pixel values of the latched pixels Interpolation of parts is performed.

【0033】ところが、ラッチした画素の画素値自体が
白基準面10に付着したゴミの影響を受けていると、か
かる間引き及び補間により却ってゴミの影響を拡大する
結果となる。
However, if the pixel value itself of the latched pixel is affected by the dust adhering to the white reference surface 10, such thinning and interpolation will rather expand the influence of the dust.

【0034】このため、第1の実施例では、白基準面1
0の異なるラインを4回読み込み、各ラインごとに間引
く画素の位置を変えながら欠損部の補間を行なうこと
で、白基準面10に付着したゴミの影響を低減してい
る。
Therefore, in the first embodiment, the white reference plane 1
The influence of dust adhering to the white reference plane 10 is reduced by reading lines of 0 different four times and interpolating the defective portion while changing the positions of pixels to be thinned out for each line.

【0035】パルス発生回路15bは、上記補間回路1
5aが行うラッチのタイミングをサンプリングパルスと
して提供するパルス発生回路である。
The pulse generation circuit 15b is the interpolation circuit 1 described above.
5a is a pulse generation circuit that provides the timing of the latch performed by 5a as a sampling pulse.

【0036】比較回路15cは、補正メモリ15dに記
憶した補正データと、補間回路15aが間引き及び補間
を行った補間データとを画素ごとに比較して、比較結果
を補正メモリ15dに格納する回路である。
The comparison circuit 15c is a circuit for comparing the correction data stored in the correction memory 15d with the interpolation data thinned and interpolated by the interpolation circuit 15a for each pixel and storing the comparison result in the correction memory 15d. is there.

【0037】補正メモリ15dは、比較回路15cによ
る比較結果を記憶するラインメモリであり、少なくとも
上記画素列の各画素値を記憶できる記憶容量を有してい
る。
The correction memory 15d is a line memory for storing the comparison result of the comparison circuit 15c, and has a storage capacity capable of storing at least each pixel value of the pixel column.

【0038】なお、白基準面10の4つのラインについ
て処理を行った時点で、この補正メモリ15d内には、
シェーディング補正用の白基準画像データが格納され
る。
At the time when the four lines on the white reference plane 10 are processed, the correction memory 15d stores
White reference image data for shading correction is stored.

【0039】補正演算回路15eは、レンズ12及びイ
メージセンサ13の光学系と、A/D変換器14とを介
して原稿11を読み取った画像データを、補正メモリ1
5dの画素値に基づいてラインごとにシェーディング補
正する演算回路であり、演算結果を画像処理部16に出
力する。
The correction arithmetic circuit 15e converts the image data obtained by reading the original 11 through the optical system of the lens 12 and the image sensor 13 and the A / D converter 14 into the correction memory 1.
This is an arithmetic circuit that performs shading correction for each line based on the pixel value of 5d, and outputs the arithmetic result to the image processing unit 16.

【0040】上記構成を有するシェーディング補正回路
15を用いて、白基準面10の異なるラインを読み取る
都度、画素の間引き及びその補間を行い、補正メモリ1
5cの内容と画素ごとに比較して、より大きな画素値を
補正メモリ15cに格納することにより、白基準面10
に付着したゴミの影響を低減した白基準画像データを作
成している。
Each time the different lines on the white reference plane 10 are read by using the shading correction circuit 15 having the above configuration, pixels are thinned out and their interpolation is performed, and the correction memory 1
By comparing the contents of 5c with each pixel and storing a larger pixel value in the correction memory 15c, the white reference plane 10
White reference image data is created in which the effect of dust adhering to is reduced.

【0041】次に、上記パルス発生回路15bの細部構
成と、該パルス発生回路15bから出力されるサンプリ
ングパルスの発生タイミングについて説明する。
Next, the detailed configuration of the pulse generating circuit 15b and the generation timing of the sampling pulse output from the pulse generating circuit 15b will be described.

【0042】図4は、図1に示すパルス発生回路15b
の細部構成を示す図である。
FIG. 4 shows a pulse generation circuit 15b shown in FIG.
It is a figure which shows the detailed structure of.

【0043】図4に示すように、このパルス発生回路1
5bは、8クロックの間隔でサンプリングパルスを発生
するサンプリング画素アドレスカウンタ41と、ライン
ごとに第1パルスの発生時期をシフトするためのシフト
量(第1の実施例では2クロックとする。)をサンプリ
ング画素アドレスカウンタ41に出力するシフト量カウ
ンタ42とからなり、サンプリング画素アドレスカウン
タ41は、ビデオクロック(CK)と、ライン同期信号
(LD)と、ライン同期信号に基づいて動作するシフト
量カウンタ42から出力されるシフト量とを受け取る
と、ラインごとにパルスの発生タイミングを2クロック
シフトしたサンプリングパルスを出力する。
As shown in FIG. 4, this pulse generating circuit 1
5b is a sampling pixel address counter 41 for generating sampling pulses at intervals of 8 clocks, and a shift amount for shifting the generation timing of the first pulse for each line (2 clocks in the first embodiment). The sampling pixel address counter 41 includes a shift amount counter 42 that outputs the sampling pixel address counter 41. The sampling pixel address counter 41 operates based on the video clock (CK), the line synchronization signal (LD), and the line synchronization signal. When receiving the shift amount output from, the sampling pulse is output by shifting the pulse generation timing by 2 clocks for each line.

【0044】図5は、このパルス発生回路15bが出力
するサンプリングパルスの発生タイミングを示すタイミ
ングチャートである。
FIG. 5 is a timing chart showing the generation timing of the sampling pulse output from the pulse generation circuit 15b.

【0045】図5に示すように、第1ラインの場合に
は、ビデオクロックの第1クロックを起点としてパルス
5aを発生するとともに、次のパルス5bをパルス5a
から8クロック遅れた第9クロックで発生し、同様にパ
ルス5c及びパルス5dを発生する。
As shown in FIG. 5, in the case of the first line, the pulse 5a is generated starting from the first clock of the video clock, and the next pulse 5b is pulse 5a.
It is generated at the 9th clock, which is delayed by 8 clocks from the above, and similarly, the pulses 5c and 5d are generated.

【0046】次に、第2ラインの場合には、最初のパル
ス発生時期を第1ラインの場合よりも2クロックずら
し、第3クロックを起点としてパルス5eを発生し、そ
の後8クロックごとに順次パルスを発生する。
Next, in the case of the second line, the first pulse generation timing is shifted by 2 clocks as compared with the case of the first line, the pulse 5e is generated from the third clock as a starting point, and then the pulse is sequentially pulsed every 8 clocks. To occur.

【0047】また、第3ラインの場合には、最初のパル
ス発生時期を第2ラインの場合よりもさらに2クロック
ずらし、第5クロックを起点としてパルス5fを発生
し、その後8クロックごとに順次パルスを発生する。
Further, in the case of the third line, the first pulse generation timing is further shifted by 2 clocks as compared with the case of the second line, the pulse 5f is generated starting from the fifth clock, and thereafter the pulse is sequentially generated every 8 clocks. To occur.

【0048】さらに、第4ラインの場合には、最初のパ
ルス発生時期を第3ラインの場合よりもさらに2クロッ
クずらし、第7クロックを起点としてパルス5gを発生
し、その後8クロックごとに順次パルスを発生する。
Further, in the case of the fourth line, the first pulse generation timing is further shifted by 2 clocks as compared with the case of the third line, a pulse 5g is generated from the seventh clock as a starting point, and thereafter, a pulse is sequentially generated every eight clocks. To occur.

【0049】このように、パルス発生回路15bは、シ
フト量カウンタ42に格納されたクロック数だけライン
ごとにパルスの発生時期をずらしながら、8クロックの
パルス間隔でサンプリングパルスを発生する。
As described above, the pulse generation circuit 15b generates sampling pulses at a pulse interval of 8 clocks while shifting the pulse generation timing for each line by the number of clocks stored in the shift amount counter 42.

【0050】したがって、補間回路15aでは、8クロ
ック(8画素)のパルス間隔からなり、ラインごとに2
クロック(2画素)シフトされたサンプリングパルスに
基づいて、画素値のラッチを行っており、結果的に、パ
ルス発生回路15bのサンプリングパルスに基づいてラ
ッチした画素間に位置する7画素を間引きしている。
Therefore, the interpolation circuit 15a has a pulse interval of 8 clocks (8 pixels), and 2 lines for each line.
The pixel value is latched based on the sampling pulse shifted by the clock (2 pixels). As a result, 7 pixels located between the latched pixels are thinned out based on the sampling pulse of the pulse generation circuit 15b. There is.

【0051】なお、本実施例では、間引き間隔を8画素
とし、ラインごとのシフト量を2画素とする場合につい
て説明するが、この間引き間隔及びシフト量は任意に設
定することができる。
Although the thinning interval is 8 pixels and the shift amount for each line is 2 pixels in the present embodiment, the thinning interval and the shift amount can be set arbitrarily.

【0052】次に、補間回路15aの内部構成と、補間
回路15aが行う補間処理とを詳細に説明する。
Next, the internal structure of the interpolation circuit 15a and the interpolation processing performed by the interpolation circuit 15a will be described in detail.

【0053】図6は、図1に示す補間回路15aの細部
構成を示すブロック図である。
FIG. 6 is a block diagram showing a detailed structure of the interpolation circuit 15a shown in FIG.

【0054】図6に示すように、この補間回路15a
は、ラッチ回路61と、レジスタ62と、補間係数算出
回路63と、乗算器64及び65と、加算器66とから
構成される。
As shown in FIG. 6, this interpolation circuit 15a
Is composed of a latch circuit 61, a register 62, an interpolation coefficient calculation circuit 63, multipliers 64 and 65, and an adder 66.

【0055】ラッチ回路61は、パルス発生回路15b
が出力するサンプリングパルスに基づいて、白基準面1
0を読み込んだ各画素列から8画素ごとに画素値をラッ
チする回路である。
The latch circuit 61 includes a pulse generation circuit 15b.
White reference plane 1 based on the sampling pulse output by
It is a circuit that latches pixel values for every 8 pixels from each pixel column in which 0 is read.

【0056】なお、このラッチ回路61がラッチした画
素値は、次の画素値をラッチするまでラッチ回路61内
部に保持され、次の画素値をラッチした時点でレジスタ
62に出力する。
The pixel value latched by the latch circuit 61 is held inside the latch circuit 61 until the next pixel value is latched, and is output to the register 62 when the next pixel value is latched.

【0057】レジスタ62は、ラッチ回路61から受け
取った画素値を保持するレジスタであり、ラッチ回路6
1が画素値を乗算器64に出力する際に、レジスタ内部
に保持した画素値が乗算器65に出力される。
The register 62 is a register for holding the pixel value received from the latch circuit 61, and the latch circuit 6
When 1 outputs the pixel value to the multiplier 64, the pixel value held in the register is output to the multiplier 65.

【0058】すなわち、レジスタ62及びラッチ回路6
1には、入力された画素列から連続してラッチされる8
画素離れた2つの画素の画素値がそれぞれ格納されるこ
とになる。
That is, the register 62 and the latch circuit 6
1 is continuously latched from the input pixel row 8
Pixel values of two pixels separated from each other are stored.

【0059】例えば、図5に示すサンプリングパルスの
場合には、ラッチ回路61は、まず最初にパルス5aに
基づいてラッチした第1画素の画素値を内部に保持し、
該ラッチ回路61が、次のパルス5bに基づいて第9画
素の画素値をラッチした時点で、第1画素の画素値をレ
ジスタ62に出力し、第9画素の画素値を内部に保持す
る。したがって、この時点で、レジスタ62には第1画
素の画素値が保持され、ラッチ回路61には第9画素の
画素値が保持される。
For example, in the case of the sampling pulse shown in FIG. 5, the latch circuit 61 first internally holds the pixel value of the first pixel latched based on the pulse 5a,
When the latch circuit 61 latches the pixel value of the ninth pixel based on the next pulse 5b, it outputs the pixel value of the first pixel to the register 62 and holds the pixel value of the ninth pixel inside. Therefore, at this point, the register 62 holds the pixel value of the first pixel, and the latch circuit 61 holds the pixel value of the ninth pixel.

【0060】そして、レジスタ62及びラッチ回路61
がそれぞれ保持する画素値が乗算部64及び65に出力
され、必要な補正係数との積を取った後に加算されるこ
とにより、第2画素〜第8画素までの画素値が補間され
る。
Then, the register 62 and the latch circuit 61
The pixel values respectively held by are output to the multiplication units 64 and 65, and after being multiplied by necessary correction coefficients and added, the pixel values of the second pixel to the eighth pixel are interpolated.

【0061】次に、ラッチ回路61が次のパルス5cに
基づいて第17画素の画素値をラッチしたならば、ラッ
チ回路61内部に保持した第9画素の画素値がレジスタ
62に出力され、同様の処理が行われる。
Next, when the latch circuit 61 latches the pixel value of the 17th pixel based on the next pulse 5c, the pixel value of the 9th pixel held in the latch circuit 61 is output to the register 62, and the same. Is processed.

【0062】このように、上記ラッチ回路61及びレジ
スタ62に保持した画素値に基づいて間引いた画素の画
素値を補間する。
In this way, the pixel values of the pixels thinned out based on the pixel values held in the latch circuit 61 and the register 62 are interpolated.

【0063】次に、上記構成を有する補間回路15aが
行う補間処理について具体的に説明する。
Next, the interpolation processing performed by the interpolation circuit 15a having the above configuration will be specifically described.

【0064】図7は、上記補間回路15aが行う補間処
理の具体例を示す図である。
FIG. 7 is a diagram showing a specific example of the interpolation processing performed by the interpolation circuit 15a.

【0065】図7に示すように、ここでは、パルス7a
に基づいてラッチされ、レジスタ62内に保持された第
n画素と、パルス7bに基づいてラッチされ、ラッチ回
路61内に保持された第n+8画素との間に位置する第
n+1画素〜第n+7画素の画素値を、第n画素の画素
値及び第n+8画素の画素値を比例配分して補間する場
合について説明する。
As shown in FIG. 7, here, the pulse 7a is used.
Nth pixel to (n + 7) th pixel located between the nth pixel latched on the basis of the above and held in the register 62 and the n + 8th pixel latched on the basis of the pulse 7b and held in the latch circuit 61. A case will be described in which the pixel value of is interpolated by proportionally distributing the pixel value of the nth pixel and the pixel value of the n + 8th pixel.

【0066】第n画素の画素値を’a’とし、第n+8
画素の画素値を’b’とすると、第n+i画素(i=1
〜7)の画素値ciは、 ci = {(8−i)/8}×n + (i/8)×(n+8) と推定することができる。
Let the pixel value of the nth pixel be'a ', and let the nth + 8th pixel.
If the pixel value of the pixel is'b ', then the n + i-th pixel (i = 1
The pixel value ci of 7 to 7) can be estimated as ci = {(8-i) / 8} × n + (i / 8) × (n + 8).

【0067】このため、各画素値は、 c1 = 7/8×n+(1/8)×(n+8) c2 = 6/8×n+(2/8)×(n+8) c3 = 5/8×n+(3/8)×(n+8) c4 = 4/8×n+(4/8)×(n+8) c5 = 3/8×n+(5/8)×(n+8) c6 = 2/8×n+(6/8)×(n+8) c7 = 1/8×n+(7/8)×(n+8) と算定できる。Therefore, each pixel value is as follows: c1 = 7/8 × n + (1/8) × (n + 8) c2 = 6/8 × n + (2/8) × (n + 8) c3 = 5/8 × n + (3/8) × (n + 8) c4 = 4/8 × n + (4/8) × (n + 8) c5 = 3/8 × n + (5/8) × (n + 8) c6 = 2/8 × n + (6 / 8) × (n + 8) c7 = 1/8 × n + (7/8) × (n + 8).

【0068】したがって、レジスタ62に保持された第
n画素の画素値aと、ラッチ回路61に保持された第n
+8画素の画素値bとを用いて、第n+i画素の画素値
ciを補間する場合には、補正係数算出回路63は、乗
算器65に対しては(8−i)/8を出力し、乗算器6
4に対しては(i/8)を出力する。
Therefore, the pixel value a of the nth pixel held in the register 62 and the nth pixel held in the latch circuit 61.
In the case of interpolating the pixel value ci of the (n + i) th pixel using the pixel value b of +8 pixels, the correction coefficient calculation circuit 63 outputs (8-i) / 8 to the multiplier 65, Multiplier 6
For (4), (i / 8) is output.

【0069】そして、補間回路15aは、上記補間手順
により補間された画素列を比較回路15cに出力し、比
較回路15は、該画素列の各画素値を補正メモリ15d
内に保持する画素列の画素値と画素ごとに比較して、よ
り大きな画素値を補正メモリ15d内に格納する。
Then, the interpolation circuit 15a outputs the pixel row interpolated by the above-mentioned interpolation procedure to the comparison circuit 15c, and the comparison circuit 15 outputs each pixel value of the pixel row to the correction memory 15d.
The larger pixel value is stored in the correction memory 15d by comparing with the pixel value of the pixel column held in each pixel.

【0070】例えば、補間回路15aが白基準面10の
第2ラインの処理を行った時点では、第1ラインの処理
結果が補正メモリ15d内に格納されているため、第1
ラインについて間引き及び補間処理を行った画素列と、
第2ラインについて間引き及び補間処理を行った画素列
とを画素ごとに比較して、画素値が大きな方を補正メモ
リ15d内に格納することとなる。
For example, at the time when the interpolation circuit 15a processes the second line of the white reference surface 10, the processing result of the first line is stored in the correction memory 15d.
A pixel column that has undergone thinning and interpolation processing for the line,
The pixel row subjected to the thinning and interpolation processing on the second line is compared for each pixel, and the one having the larger pixel value is stored in the correction memory 15d.

【0071】なお、補間回路15aが第1ラインの処理
を行なう場合には、補正メモリ15aは初期状態にある
ので、第1ラインを補間処理した結果がそのまま補正メ
モリ15d内に格納される。
When the interpolation circuit 15a processes the first line, since the correction memory 15a is in the initial state, the result of the interpolation processing of the first line is stored in the correction memory 15d as it is.

【0072】上記一連の処理を白基準面10の第1ライ
ン〜第4ラインについてそれぞれ行うことにより、白基
準面10に付着したゴミの影響を低減した白基準画像デ
ータを補正メモリ15d内に保持することができる。
By performing the above-described series of processing for each of the first to fourth lines of the white reference surface 10, the white reference image data in which the influence of dust adhering to the white reference surface 10 is reduced is held in the correction memory 15d. can do.

【0073】そして、原稿11を読み取った画像データ
がラインごとに入力されると、補正演算回路15eで
は、補正メモリ15内の白基準画像データに基づいてシ
ェーディング補正を行い、画像処理部16に出力する。
When the image data obtained by reading the original 11 is input line by line, the correction arithmetic circuit 15e performs shading correction based on the white reference image data in the correction memory 15 and outputs it to the image processing section 16. To do.

【0074】なお、この画像処理部16では、シェーデ
ィング歪の補正を行った画像データに対して、フィルタ
処理、拡大縮小処理、2値化処理等の予設定された画像
処理を行っている。
The image processing unit 16 performs preset image processing such as filter processing, enlargement / reduction processing, and binarization processing on the image data for which the shading distortion has been corrected.

【0075】次に、上記シェーディング補正回路15が
行う白基準画像データの作成手順について説明する。
Next, the procedure for creating white reference image data performed by the shading correction circuit 15 will be described.

【0076】図8は、シェーディング補正回路15が行
う白基準画像データの作成手順を示すフローチャートで
ある。なお、ここでは、補間回路15aで補間したデー
タをラインメモリに一時的に保持するとともに、該ライ
ンメモリに記憶したデータを補正メモリ15dに記憶し
たデータと比較して、より大きなデータを補正メモリ1
5dに保持することとする。
FIG. 8 is a flow chart showing the procedure for creating white reference image data performed by the shading correction circuit 15. Note that, here, the data interpolated by the interpolation circuit 15a is temporarily held in the line memory, and the data stored in the line memory is compared with the data stored in the correction memory 15d, so that larger data is obtained.
It will be held at 5d.

【0077】まず、白基準面10の最初のラインを読取
る前に、読取開始画素(A)、サンプリング間隔
(S)、シフト量(X)、取り込みライン数(L)及び
有効画素数(E)を初期値データとして読込み(ステッ
プ801)、パルス発生回路15bのサンプリング画素
アドレスカウンタ41にサンプリング間隔(S)を設定
し、シフト量カウンタ42にシフト量(X)を設定す
る。
First, before reading the first line of the white reference surface 10, the reading start pixel (A), the sampling interval (S), the shift amount (X), the number of captured lines (L) and the number of effective pixels (E). Is read as initial value data (step 801), the sampling interval (S) is set in the sampling pixel address counter 41 of the pulse generation circuit 15b, and the shift amount (X) is set in the shift amount counter 42.

【0078】そして、初期値の画像読取処理が開始され
ると、まず最初に白基準画像データを格納する補正メモ
リ15dと、補間データを一時記憶するラインメモリの
内容をクリアするとともに(ステップ802)、サンプ
リング回数を示す変数Mと、取り込み中の画素位置を示
す変数kとに初期値を設定する(ステップ803〜80
4)。
When the image reading process of the initial value is started, the contents of the correction memory 15d for storing the white reference image data and the line memory for temporarily storing the interpolation data are cleared (step 802). , Initial values are set in a variable M indicating the number of times of sampling and a variable k indicating a pixel position during capturing (steps 803 to 80).
4).

【0079】そして、光学的に読み取られた白基準面1
0の第Mラインの画素列がシェーディング補正回路15
に入力されると、補正回路15a内のラッチ回路61が
パルス発生回路15bから出力されるサンプリングパル
スに基づいて、k画素目のデータをラッチして(ステッ
プ805)、該データをラッチ回路61内部に保持す
る。
Then, the optically read white reference surface 1
The pixel column of the 0th M-th line is the shading correction circuit 15
Is input to the latch circuit 61 in the correction circuit 15a, the data of the kth pixel is latched based on the sampling pulse output from the pulse generation circuit 15b (step 805), and the data is stored in the latch circuit 61. Hold on.

【0080】次に、ラッチ回路61内部に保持したk画
素目のデータと、レジスタ62内部に保持したk−S画
素目のデータに基づいてk−1画素〜k−S+1画素の
補間データを順次作成して(ステップ806)、ライン
メモリに書き込む(ステップ807)。
Next, based on the data of the kth pixel held in the latch circuit 61 and the data of the kth Sth pixel held in the register 62, interpolation data of k−1th pixel to k−S + 1th pixel are sequentially obtained. It is created (step 806) and written in the line memory (step 807).

【0081】具体的には、ラッチ回路61が保持するk
画素目のデータを乗算器64に、レジスタ62が保持す
るk−S画素目のデータを乗算器65にそれぞれ出力
し、乗算器64及び65がかかるデータに補間係数算出
回路63から出力された補間係数を掛け、加算器66に
よりその和をとることによって、k画素目及びk−S画
素目の間に位置するk−1画素目〜k−S+1画素目の
データを算出する。
Specifically, k held by the latch circuit 61
The data of the pixel is output to the multiplier 64, the data of the k−S pixel held by the register 62 is output to the multiplier 65, and the data output by the multipliers 64 and 65 are interpolated from the interpolation coefficient calculation circuit 63. By multiplying by the coefficient and taking the sum by the adder 66, the data of the (k−1) th pixel to the (k−S + 1) th pixel located between the kth pixel and the k−Sth pixel are calculated.

【0082】ただし、k−Sが負の場合、すなわち最初
の画素をラッチした時点では、レジスタ62内部に保持
するデータが存在しないため、ステップ806〜807
に示す処理は行わない。
However, when k−S is negative, that is, when the first pixel is latched, there is no data to be held in the register 62, so steps 806 to 807 are performed.
The process shown in is not performed.

【0083】その後、ラッチ回路61に保持したデータ
をレジスタ62へ転送し(ステップ808)、取り込み
中の画素位置を示す変数kの値を次のサンプリング位置
までずらし(ステップ809)、変数kの値が有効画素
数Eを超えているか否かを調べ(ステップ810)、超
えていなければステップ805に移行する。
After that, the data held in the latch circuit 61 is transferred to the register 62 (step 808), the value of the variable k indicating the pixel position being fetched is shifted to the next sampling position (step 809), and the value of the variable k is changed. Is checked to see if it exceeds the number E of effective pixels (step 810). If not, the process proceeds to step 805.

【0084】これに対して、変数kの値が有効画素数E
を超えている場合には、補正メモリ15d及びラインメ
モリにそれぞれ記憶したデータを比較して、大きな方の
画素データを補正メモリ15dの該当箇所に書き込み
(ステップ811)、補正メモリ15dの内容を更新す
る。
On the other hand, the value of the variable k is the number E of effective pixels.
If it exceeds, the data stored in the correction memory 15d and the data stored in the line memory are compared with each other, and the larger pixel data is written in the corresponding portion of the correction memory 15d (step 811), and the content of the correction memory 15d is updated. To do.

【0085】そして、サンプリング回数を示す変数Mを
インクリメントした後(ステップ812)、該変数Mの
値が取り込みライン数の上限値に達しているか否かを確
認し(ステップ813)、上限値に達していなければ読
取開始画素Aにシフト量を加えて読取開始画素をシフト
した後(ステップ814)ステップ804に移行し、上
限値に達していれば白基準画像データの作成処理を終了
する。
Then, after incrementing the variable M indicating the number of times of sampling (step 812), it is confirmed whether or not the value of the variable M has reached the upper limit value of the number of fetched lines (step 813), and the upper limit value has been reached. If not, a shift amount is added to the reading start pixel A to shift the reading start pixel (step 814) and the process proceeds to step 804. If the upper limit value is reached, the white reference image data creation process is ended.

【0086】上記一連の処理を行うことにより、白基準
面10に付着したゴミの影響を低減したシェーディング
補正用の白基準画像データを補正メモリ15d内に保持
することが可能となる。
By performing the above-described series of processing, it becomes possible to hold the white reference image data for shading correction in which the influence of dust adhering to the white reference surface 10 is reduced in the correction memory 15d.

【0087】次に、上記一連の処理を行った場合の処理
結果を具体的に示す。
Next, the processing results when the above-described series of processing are performed will be concretely shown.

【0088】図9は、最終的に補正メモリ15dに保持
される白基準画像データの画素列の画素値の波形等を示
す図である。
FIG. 9 is a diagram showing waveforms of pixel values of the pixel row of the white reference image data finally held in the correction memory 15d.

【0089】図9(a)は、シェーディング補正前の画
素列の画素値の波形を示しており、白基準面10に付着
したゴミの影響を受けて、画素9a〜画素9bの間で画
素値が落ち込む様子を示している。
FIG. 9A shows a waveform of the pixel value of the pixel row before the shading correction. Under the influence of dust adhering to the white reference surface 10, the pixel value between the pixels 9a and 9b is changed. Is showing a drop.

【0090】図9(b)は、パルス発生回路15bが発
生するサンプリングパルスを示しており、このパルスが
補間回路15aに出力され、補間回路15aが行う間引
き処理に利用される。
FIG. 9B shows a sampling pulse generated by the pulse generation circuit 15b. This pulse is output to the interpolation circuit 15a and used for the thinning process performed by the interpolation circuit 15a.

【0091】また、第1の実施例では、サンプリング間
隔を8画素としているので、各パルスを8クロック離間
するとともに、シフト量を2画素としているので、各ラ
インに発生するパルスが2画素づつずれている。
Further, in the first embodiment, since the sampling interval is 8 pixels, the pulses are separated by 8 clocks and the shift amount is 2 pixels. Therefore, the pulses generated in each line are shifted by 2 pixels. ing.

【0092】図9(c)は、白基準面を読み取った各ラ
インごとに間引き及び補間を行った処理結果を示してお
り、第1ラインは、ラッチした画素9c自体がゴミの影
響を受け、ゴミの影響を拡大した結果となっているが、
第2ライン〜第4ラインについては、ゴミの影響を受け
た画素を間引いた補間が行なわれ、画素値の落ち込みは
見られない。
FIG. 9C shows the processing result of thinning and interpolation for each line that has read the white reference plane. In the first line, the latched pixel 9c itself is affected by dust, It is the result of expanding the influence of garbage,
For the second line to the fourth line, interpolation is performed by thinning out pixels affected by dust, and no drop in pixel value is seen.

【0093】図9(d)は、最終的に補正メモリ15d
に保持される白基準画像データの画素列の画素値の波形
を示しており、図9(a)のものと較べて白基準面10
に付着したゴミの影響が改善された様子を示している。
FIG. 9D finally shows the correction memory 15d.
9 shows the waveform of the pixel value of the pixel row of the white reference image data held in FIG.
It shows that the effect of dust adhering to is improved.

【0094】すなわち、本実施例では、結果的に図9
(c)に示す各ラインごとに処理した画素列を各画素ご
とに比較して、最も大きな画素値を持つものを白基準画
像データの構成画素として採用するため、上記画素9c
近傍における画素値の落ち込みが改善されている。
That is, in this embodiment, as a result, as shown in FIG.
The pixel row processed for each line shown in (c) is compared for each pixel, and the one having the largest pixel value is adopted as the constituent pixel of the white reference image data.
The drop in pixel value in the vicinity is improved.

【0095】上述したように、第1の実施例では、白基
準面10の第1ライン〜第4ラインに応じて2クロック
単位でタイミングがシフトされた8クロック間隔のサン
プリングパルスに基づいて、画素の間引きと、間引いた
画素の画素値の補間とを行うとともに、該画素値を補正
メモリ15dに保持した画素値と比較して大きなほうを
補正メモリ15dに格納する処理を繰り返して白基準画
像データを作成し、該白基準画像データに基づいて原稿
11を読み取った画像データを補正するよう構成したの
で、白基準面11にゴミが付着した場合であっても、迅
速かつ適正なシェーディング補正を行うことができる。
As described above, in the first embodiment, the pixel is determined based on the sampling pulse at the 8-clock intervals whose timing is shifted in the unit of 2 clocks in accordance with the first line to the fourth line of the white reference plane 10. The thinning-out and the interpolation of the pixel values of the thinned-out pixels are performed, the pixel value is compared with the pixel value held in the correction memory 15d, and the larger value is stored in the correction memory 15d to repeat the white reference image data. Since the image data obtained by reading the original 11 is corrected based on the white reference image data, quick and appropriate shading correction is performed even if dust adheres to the white reference surface 11. be able to.

【0096】ところで、上記第1の実施例では、シェー
ディング補正回路15内の比較回路15cにおいて、間
引き及び補間を行った画素の画素値と、補正メモリ15
d内の画素の画素値とを大小比較し、大きな画素を補正
メモリ15d内に保持するよう構成しているので、4つ
のラインを補間した画素列のうち、常に画素値が最大の
ものが白基準画像データとして利用されることになる。
In the first embodiment, by the comparison circuit 15c in the shading correction circuit 15, the pixel values of pixels subjected to thinning and interpolation and the correction memory 15 are stored.
The pixel values of the pixels in d are compared with each other, and the large pixels are held in the correction memory 15d. Therefore, among the pixel lines in which four lines are interpolated, the one having the largest pixel value is always white. It will be used as reference image data.

【0097】すなわち、白基準面にゴミが付着した場合
には、一般的には当該部分の反射率が低下するため、第
1の実施例ではその最大値を白基準画像データとして採
用している。
That is, when dust adheres to the white reference surface, the reflectance of that portion generally decreases, so the maximum value is adopted as the white reference image data in the first embodiment. .

【0098】しかしながら、常に最大値をとることとす
ると、白基準画像データの各画素値が全体に高くなる傾
向が生じ、また、白基準面よりも反射率が高いゴミが付
着した場合には、白基準面に付着したゴミの影響を拡大
することになる。
However, if the maximum value is always taken, each pixel value of the white reference image data tends to be high as a whole, and if dust having a higher reflectance than the white reference surface adheres, The effect of dust adhering to the white reference surface will be magnified.

【0099】そこで、以下では、かかる不具合を是正す
るシェーディング補正回路の第2の実施例について説明
する。なお、説明の便宜上、上記第1の実施例と同様の
部分については同一の符号を付することとしてその詳細
な説明を省略する。
Therefore, a second embodiment of the shading correction circuit for correcting such a defect will be described below. For convenience of explanation, the same parts as those in the first embodiment are designated by the same reference numerals, and detailed description thereof will be omitted.

【0100】図10は、本発明に係わるシェーディング
補正回路の第2の実施例の細部構成を示す図である。
FIG. 10 is a diagram showing the detailed construction of the second embodiment of the shading correction circuit according to the present invention.

【0101】図10に示すように、このシェーディング
補正回路100は、図1に示す補間回路15a、パルス
発生回路15b、補正メモリ15d及び補正演算回路1
5eに、ラインメモリ101a〜101dと、演算回路
102を付加した構成となる。
As shown in FIG. 10, this shading correction circuit 100 includes an interpolation circuit 15a, a pulse generation circuit 15b, a correction memory 15d and a correction calculation circuit 1 shown in FIG.
5e has line memories 101a to 101d and an arithmetic circuit 102 added thereto.

【0102】図1に示すシェーディング補正回路15と
同様に、補間回路15aは、入力された画素列の中から
8画素ごとに画素値をラッチするとともに、ラッチした
画素間に位置する画素の画素値を補間する処理部であ
り、パルス発生回路15bは、上記補間回路15aが行
うラッチのタイミングをサンプリングパルスとして提供
するパルス発生回路である。
Similar to the shading correction circuit 15 shown in FIG. 1, the interpolation circuit 15a latches the pixel value for every 8 pixels from the input pixel row, and the pixel value of the pixel located between the latched pixels. The pulse generation circuit 15b is a pulse generation circuit that provides the timing of the latch performed by the interpolation circuit 15a as a sampling pulse.

【0103】また、補正メモリ15dは、演算回路10
2の演算結果を記憶する記憶部であり、補正演算回路1
5eは、原稿11をラインごとに読み取った画像データ
を、補正メモリ15dの画素値に基づいてシェーディン
グ補正する演算回路である。
Further, the correction memory 15d is used in the arithmetic circuit 10.
2 is a storage unit that stores the calculation result of the correction calculation circuit 1
Reference numeral 5e is an arithmetic circuit that performs shading correction on the image data obtained by reading the original 11 line by line based on the pixel values of the correction memory 15d.

【0104】ラインメモリ101a〜101dは、補間
回路15aが間引き及び補間した画素列を白基準面の読
取ラインごとに記憶する記憶部である。なお、この第2
の実施例においても、上記第1の実施例の場合と同様
に、白基準面の読取ライン数を4ラインとして、読取ラ
イン数に対応する4つのラインメモリを設けている。
The line memories 101a to 101d are storage units for storing the pixel rows thinned out and interpolated by the interpolation circuit 15a for each reading line of the white reference plane. In addition, this second
Also in this embodiment, as in the case of the first embodiment, the number of read lines on the white reference surface is four, and four line memories corresponding to the number of read lines are provided.

【0105】演算回路102は、上記4つのラインメモ
リ101a〜101dに保持した画素列の対応する位置
に存在する各画素値から、それぞれ最大値及び最小値の
ものを除いた2つの画素値の平均値をとる演算を行う演
算回路である。
The arithmetic circuit 102 averages two pixel values excluding the maximum and minimum values from the pixel values existing at corresponding positions of the pixel rows held in the four line memories 101a to 101d. It is an arithmetic circuit that performs an operation that takes a value.

【0106】ここで、最大値を除く理由は、白基準面に
反射率の高いゴミが付着し、本来の白基準画像データよ
りも高い画素値が出現した場合を考慮したためであり、
最小値を除く理由は、白基準面に反射率の低いゴミが付
着し、画素値が落ち込んだ場合を考慮したためである。
The reason for excluding the maximum value is to consider the case where dust with high reflectance adheres to the white reference surface and a pixel value higher than the original white reference image data appears.
The reason for excluding the minimum value is to consider the case where dust with low reflectance adheres to the white reference surface and the pixel value drops.

【0107】上記構成を有するシェーディング補正回路
100を用いることにより、反射率が異なる各種のゴミ
が白基準面に付着した場合であっても、かかるゴミの影
響を除去したシェーディング補正を行うことができる。
By using the shading correction circuit 100 having the above structure, even when various dusts having different reflectances are attached to the white reference surface, the shading correction can be performed while removing the influence of the dusts. .

【0108】次に、上記演算回路102の細部構成につ
いて具体的に説明する。
Next, the detailed configuration of the arithmetic circuit 102 will be specifically described.

【0109】図11は、上記演算回路102の細部構成
を示す図である。
FIG. 11 is a diagram showing a detailed configuration of the arithmetic circuit 102.

【0110】図11に示すように、この演算回路102
は、最大値除去部102aと、最小値除去部102b
と、平均値算出部102cとから構成される。
As shown in FIG. 11, this arithmetic circuit 102
Is a maximum value removing unit 102a and a minimum value removing unit 102b.
And an average value calculation unit 102c.

【0111】最大値除去部102aは、ラインメモリ1
01a〜101dに格納された各画素列のうち、対応す
る位置に保持された4つの画素の画素値を同時に受け付
け、かかる4つの画素値の最大値を算出し、該最大値を
除去した3つの画素の画素値をそれぞれ最小値除去部1
02bに出力する処理部である。
The maximum value removing unit 102a is connected to the line memory 1
Of the pixel columns stored in 01a to 101d, the pixel values of the four pixels held at the corresponding positions are simultaneously accepted, the maximum value of the four pixel values is calculated, and the three maximum values are removed. The pixel value of each pixel has a minimum value removing unit
This is a processing unit for outputting to 02b.

【0112】最小値除去部102bは、最大値除去部1
02aから受け取った3つの画素値から最小値を算出
し、該最小値を除いた2つの画素値を平均値算出部10
2cに出力する処理部である。
The minimum value removing unit 102b is the maximum value removing unit 1
The minimum value is calculated from the three pixel values received from 02a, and the average value calculation unit 10 calculates the two pixel values excluding the minimum value.
2c is a processing unit for outputting.

【0113】平均値算出部102cは、最小値除去部1
02bから受け取った2つの画素値の平均値を算出する
処理部である。
The average value calculating unit 102c has a minimum value removing unit 1.
This is a processing unit that calculates an average value of two pixel values received from 02b.

【0114】上記演算回路102を用いることにより、
ラインメモリ101a〜101d内に保持する各画素の
対応する位置に保持された4つの画素値のうち、最大値
及び最小値を除去した2つの画素値の平均が、補正メモ
リ15dに格納され、該補正メモリ15d内に保持され
た画素値が、補正演算回路15eがシェーディング補正
を行う際の白基準画像データとして使用される。
By using the arithmetic circuit 102,
Of the four pixel values held at the corresponding positions of each pixel held in the line memories 101a to 101d, the average of two pixel values from which the maximum value and the minimum value are removed is stored in the correction memory 15d. The pixel value held in the correction memory 15d is used as white reference image data when the correction calculation circuit 15e performs shading correction.

【0115】次に、上記シェーディング補正回路100
が白基準画像データを作成するまでの処理手順について
説明する。
Next, the shading correction circuit 100 described above.
The processing procedure until the white reference image data is created will be described.

【0116】図12は、シェーディング補正回路100
が行う白基準画像データの作成手順を示すフローチャー
トである。
FIG. 12 shows the shading correction circuit 100.
8 is a flowchart showing a procedure for creating white reference image data performed by the above.

【0117】まず、白基準面10の最初のラインを読取
る前に、読取開始画素(A)、サンプリング間隔
(S)、シフト量(X)、取り込みライン数(L)及び
有効画素数(E)を初期値データとして読込み(ステッ
プ1201)、パルス発生回路15bのサンプリング画
素アドレスカウンタ41にサンプリング間隔(S)を設
定し、シフト量カウンタ42にシフト量(X)を設定す
る。
First, before reading the first line of the white reference surface 10, the reading start pixel (A), the sampling interval (S), the shift amount (X), the number of captured lines (L) and the number of effective pixels (E). Is read as initial value data (step 1201), the sampling interval (S) is set in the sampling pixel address counter 41 of the pulse generation circuit 15 b, and the shift amount (X) is set in the shift amount counter 42.

【0118】そして、初期値の画像読取処理が開始され
ると、まず最初に白基準画像データを格納する補正メモ
リ15dと、取り込みライン1〜Lにそれぞれ対応する
補間データを一時記憶するラインメモリ1〜Nの内容を
クリアするとともに(ステップ1202)、サンプリン
グ回数を示す変数Mと、取り込み中の画素位置を示す変
数kとに初期値を設定する(ステップ1203〜120
4)。
When the image reading process of the initial value is started, first, the correction memory 15d for storing the white reference image data and the line memory 1 for temporarily storing the interpolation data respectively corresponding to the fetched lines 1 to L are read. To N are cleared (step 1202), initial values are set to a variable M indicating the number of times of sampling and a variable k indicating a pixel position during capturing (steps 1203 to 120).
4).

【0119】そして、光学的に読み取られた白基準面1
0の第Mラインの画素列がシェーディング補正回路15
に入力されると、補正回路15a内のラッチ回路61が
パルス発生回路15bから出力されるサンプリングパル
スに基づいて、k画素目のデータをラッチして(ステッ
プ1205)、該データをラッチ回路61内部に保持す
る。
Then, the optically read white reference surface 1
The pixel column of the 0th M-th line is the shading correction circuit 15
Is input to the latch circuit 61 in the correction circuit 15a, the data of the kth pixel is latched based on the sampling pulse output from the pulse generation circuit 15b (step 1205), and the data is latched in the latch circuit 61. Hold on.

【0120】次に、ラッチ回路61内部に保持したk画
素目のデータと、レジスタ62内部に保持したk−S画
素目のデータに基づいてk−1画素〜k−S+1画素の
補間データを順次作成して(ステップ1206)、ライ
ンメモリMに書き込む(ステップ1207)。
Next, based on the data of the k-th pixel held in the latch circuit 61 and the data of the k-Sth pixel held in the register 62, the interpolation data of the k-1th pixel to the k-S + 1th pixel are sequentially It is created (step 1206) and written in the line memory M (step 1207).

【0121】具体的には、ラッチ回路61が保持するk
画素目のデータを乗算器64に、レジスタ62が保持す
るk−S画素目のデータを乗算器65にそれぞれ出力
し、乗算器64及び65がかかるデータに補間係数算出
回路63から出力された補間係数を掛け、加算器66に
よりその和をとることによって、k画素目及びk−S画
素目の間に位置するk−1画素目〜k−S+1画素目の
データを算出する。
Specifically, k held by the latch circuit 61
The data of the pixel is output to the multiplier 64, the data of the k−S pixel held by the register 62 is output to the multiplier 65, and the data output by the multipliers 64 and 65 is interpolated from the interpolation coefficient calculation circuit 63. By multiplying by the coefficient and taking the sum by the adder 66, the data of the (k−1) th pixel to the (k−S + 1) th pixel located between the kth pixel and the k−Sth pixel are calculated.

【0122】ただし、k−Sが負の場合、すなわち最初
の画素をラッチした時点では、レジスタ62内部に保持
するデータが存在しないため、ステップ806〜807
に示す処理は行わない。
However, when k-S is negative, that is, when the first pixel is latched, there is no data to be held in the register 62, and therefore steps 806 to 807 are performed.
The process shown in is not performed.

【0123】その後、ラッチ回路61に保持したデータ
をレジスタ62へ転送し(ステップ1208)、取り込
み中の画素位置を示す変数kの値を次のサンプリング位
置までずらし(ステップ1209)、変数kの値が有効
画素数Eを超えているか否かを調べ(ステップ121
0)、超えていなければステップ1205に移行する。
Thereafter, the data held in the latch circuit 61 is transferred to the register 62 (step 1208), the value of the variable k indicating the pixel position being fetched is shifted to the next sampling position (step 1209), and the value of the variable k is changed. Check whether the number exceeds the effective pixel number E (step 121).
0), if not exceeded, the process moves to step 1205.

【0124】これに対して、変数kの値が有効画素数E
を超えている場合には、サンプリング回数を示す変数M
をインクリメントした後(ステップ1211)、該変数
Mの値が取り込みライン数の上限値に達しているか否か
を確認し(ステップ1212)、上限値に達していなけ
れば読取開始画素Aにシフト量を加えて読取開始画素を
シフトした後(ステップ1213)ステップ1204に
移行する。
On the other hand, the value of the variable k is the effective pixel number E.
If it exceeds, the variable M indicating the number of samplings
Is incremented (step 1211), it is confirmed whether or not the value of the variable M has reached the upper limit value of the number of fetched lines (step 1212), and if it has not reached the upper limit value, the shift amount is set to the reading start pixel A. In addition, after the reading start pixel is shifted (step 1213), the process proceeds to step 1204.

【0125】一方、上限値に達している場合には、ライ
ンメモリ1〜Nに記憶した各データを対応する画素ごと
に比較して、最大値及び最小値を除いた平均値を算出し
て(ステップ1214)、補正メモリ15dに書き込み
(ステップ1215)、白基準画像データの作成処理を
終了する。
On the other hand, when the upper limit value is reached, each data stored in the line memories 1 to N is compared for each corresponding pixel, and the average value excluding the maximum value and the minimum value is calculated ( In step 1214), the correction memory 15d is written (step 1215), and the white reference image data creation process ends.

【0126】上記一連の処理を行うことにより、白基準
面10に反射率の高いゴミが付着した場合であっても、
かかるゴミの影響を低減したシェーディング補正用の白
基準画像データを補正メモリ15d内に保持することが
可能となる。
By performing the above-described series of processing, even if dust with high reflectance adheres to the white reference surface 10,
It is possible to hold the white reference image data for shading correction in which the influence of such dust is reduced in the correction memory 15d.

【0127】次に、上記一連の処理を行った場合の処理
結果を具体的に示す。
Next, the processing results when the above series of processing are performed will be concretely shown.

【0128】図13は、最終的に補正メモリ15dに保
持される白基準画像データの画素列の画素値の波形等を
示す図である。
FIG. 13 is a diagram showing waveforms of pixel values of the pixel row of the white reference image data finally held in the correction memory 15d.

【0129】図13(a)は、シェーディング補正前の
画素列の画素値の波形を示しており、白基準面10に付
着した反射率の高いゴミの影響を受けて、画素13a〜
画素13bの間で画素値が上がり、白基準面10に付着
した反射率の低いゴミの影響を受けて、画素13c〜1
3dの間で画素値が落ち込む様子を示している。
FIG. 13A shows a waveform of the pixel value of the pixel row before shading correction, which is affected by dust having a high reflectance adhered to the white reference surface 10 to cause the pixels 13a ...
The pixel value increases between the pixels 13b, and the pixels 13c-1 to 13c-1 are affected by the dust with low reflectance attached to the white reference surface 10.
It shows how the pixel value falls during 3d.

【0130】図13(b)は、パルス発生回路15bが
発生するサンプリングパルスを示しており、このパルス
が補間回路15aに出力され、補間回路15aが行う間
引き処理に利用される。
FIG. 13B shows a sampling pulse generated by the pulse generation circuit 15b. This pulse is output to the interpolation circuit 15a and used for the thinning process performed by the interpolation circuit 15a.

【0131】また、この実施例では、第1の実施例の場
合と同様に、サンプリング間隔を8画素としているの
で、各パルスが8クロック離間するとともに、シフト量
を2画素としているので、各ラインに発生するパルスが
2画素づつずれている。
Further, in this embodiment, as in the case of the first embodiment, the sampling interval is 8 pixels, so that each pulse is separated by 8 clocks and the shift amount is 2 pixels, so that each line is The pulses generated in 1 are shifted by 2 pixels.

【0132】図13(c)は、白基準面を読み取った各
ラインごとに間引き及び補間を行った処理結果を示して
おり、第1ラインでは、ラッチした画素13e自体が反
射率の高いゴミの影響を受けているため該反射率の高い
ゴミの影響を拡大した結果となっている。
FIG. 13C shows the processing result of thinning and interpolation for each line that has read the white reference plane. In the first line, the latched pixel 13e itself is a dust of high reflectance. As a result, the influence of dust having a high reflectance is expanded.

【0133】また、第2ライン及び第3ラインについて
は、ゴミの影響を受けた画素を間引いて補間を行ってい
るため、画素値の落ち込みは見られない。
Further, regarding the second line and the third line, since the pixels affected by dust are thinned out and interpolation is performed, no drop in pixel value is seen.

【0134】さらに、第4ラインでは、ラッチした画素
13f自体が反射率の低いゴミの影響を受けているた
め、該反射率の低いゴミの影響を拡大した結果となって
いる。
Further, in the fourth line, since the latched pixel 13f itself is affected by dust having a low reflectance, the result is that the influence of dust having a low reflectance is enlarged.

【0135】そして、上記第1ライン〜第4ラインの各
画素値が、それぞれラインメモリ101a〜101dに
格納される。
Then, the pixel values of the first line to the fourth line are stored in the line memories 101a to 101d, respectively.

【0136】図13(d)は、最終的に補正メモリ15
dに保持される白基準画像データの画素列の画素値の波
形を示しており、具体的にはある画素についての最大値
13g及び最小値13hを除去して、画素13i及び画
素13jの平均値を取った結果となる。
FIG. 13D finally shows the correction memory 15
7 shows a waveform of the pixel value of the pixel row of the white reference image data held in d. Specifically, the maximum value 13g and the minimum value 13h of a certain pixel are removed, and the average value of the pixels 13i and 13j. Will be the result of taking.

【0137】この波形を図13(a)のものと較べる
と、白基準面10に付着したゴミの反射率の如何を問わ
ずにゴミの影響を改善できたことが分かる。
Comparison of this waveform with that of FIG. 13A shows that the influence of dust can be improved regardless of the reflectance of dust adhering to the white reference surface 10.

【0138】上述したように、第2の実施例では、白基
準面10の第1ライン〜第4ラインに応じて2クロック
単位でタイミングがシフトされた8クロック間隔のサン
プリングパルスに基づいて、画素の間引きと、間引いた
画素の画素値の補間とを行って各ラインメモリ101a
〜101dに格納し、対応する画素の画素値のうちの最
大値及び最小値を除去した2つの画素の平均値を補正メ
モリ15dに格納して白基準画像データを作成し、該白
基準画像データに基づいて原稿11を読み取った画像デ
ータを補正するよう構成したので、白基準面11に反射
率の高いゴミが付着した場合であっても、迅速かつ適正
なシェーディング補正を行うことができる。
As described above, in the second embodiment, the pixel is based on the sampling pulse at the 8-clock interval whose timing is shifted in the unit of 2 clocks in accordance with the first line to the fourth line of the white reference plane 10. Each line memory 101a is subjected to thinning and interpolation of pixel values of thinned pixels.
Stored in the correction memory 15d, the white reference image data is created by storing the average value of the two pixels stored in the correction memory 15d, the maximum value and the minimum value of the corresponding pixel values being removed. Since the image data obtained by reading the original 11 is corrected based on the above, even when dust having a high reflectance is attached to the white reference surface 11, it is possible to quickly and appropriately perform the shading correction.

【0139】[0139]

【発明の効果】以上詳細に説明したように、第1の発明
は、画像の読取走査に先だって白基準面が複数ライン分
読取られると、各ラインの画像データをそれぞれ異なる
複数の画素位置で間欠的にサンプリングし、サンプリン
グした画像データに基づいて該ラインの他の画素の画像
データを算出し、補間された各ラインの画像データを同
一画素に関して比較することにより各画素ごとに白基準
画像データを求めて前記記憶手段に記憶し、該記憶手段
に記憶した白基準画像データに基づいて前記イメージセ
ンサにより読取った画像の読取データを補正するよう構
成したので、白基準面にゴミが付着した場合であって
も、迅速かつ適正なシェーディング補正を行うことが可
能となる。
As described in detail above, according to the first aspect of the present invention, when the white reference plane is read by a plurality of lines prior to the scanning of the image, the image data of each line is intermittently read at a plurality of different pixel positions. Image data of other pixels in the line based on the sampled image data, and the white reference image data is calculated for each pixel by comparing the interpolated image data of each line with respect to the same pixel. Since the read data of the image read by the image sensor is corrected on the basis of the white reference image data stored in the storage means obtained and stored in the storage means, when dust adheres to the white reference surface, Even if there is, shading correction can be performed quickly and appropriately.

【0140】また、第2の発明は、補間した各ラインの
画像データを同一画素に関して比較し、各画素の最大画
像データを前記白基準画像データとして前記記憶手段に
記憶するよう構成したので、白基準面にゴミが付着した
場合であっても、簡易な構成で迅速かつ適正なシェーデ
ィング補正を行うことが可能となる。
In the second aspect of the invention, the interpolated image data of each line is compared with respect to the same pixel, and the maximum image data of each pixel is stored as the white reference image data in the storage means. Even if dust adheres to the reference surface, it is possible to perform quick and appropriate shading correction with a simple configuration.

【0141】また、第3の発明は、前記データ補間手段
で補間した各ラインの画像データの同一画素に関する最
大値および/または最小値を除くとともに、残りの画像
データの平均値を各画素毎に求め、該平均値を前記白基
準画像データとして前記記憶手段に記憶するよう構成し
たので、白基準面付着したゴミの反射率を問わずに、か
かるゴミの影響を排除しつつ迅速かつ適正なシェーディ
ング補正を行うことが可能となる。
According to a third aspect of the invention, the maximum value and / or the minimum value relating to the same pixel of the image data of each line interpolated by the data interpolating means are excluded, and the average value of the remaining image data is removed for each pixel. Since the average value is obtained and stored in the storage means as the white reference image data, regardless of the reflectance of the dust adhering to the white reference surface, the shading is performed quickly and appropriately while eliminating the influence of the dust. It becomes possible to make a correction.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係わるシェーディング補正回路の第1
の実施例の構成を示すブロック図。
FIG. 1 is a first shading correction circuit according to the present invention.
FIG. 3 is a block diagram showing the configuration of the embodiment of FIG.

【図2】本発明に係る画像読取装置の外観構成を示す
図。
FIG. 2 is a diagram showing an external configuration of an image reading apparatus according to the present invention.

【図3】図2に示す画像読取装置の内部構造を示す図。FIG. 3 is a diagram showing an internal structure of the image reading apparatus shown in FIG.

【図4】図1に示すパルス発生回路の細部構成を示すブ
ロック図。
FIG. 4 is a block diagram showing a detailed configuration of a pulse generation circuit shown in FIG.

【図5】図1に示すパルス発生回路が出力するサンプリ
ングパルスの発生タイミングを示すタイミングチャー
ト。
5 is a timing chart showing generation timing of sampling pulses output from the pulse generation circuit shown in FIG.

【図6】図1に示す補間回路の細部構成を示すブロック
図。
6 is a block diagram showing a detailed configuration of an interpolation circuit shown in FIG.

【図7】図1に示す補間回路が行う補間処理の具体例を
示す図。
7 is a diagram showing a specific example of an interpolation process performed by the interpolation circuit shown in FIG.

【図8】図1に示すシェーディング補正回路が行う白基
準画像データの作成手順を示すフローチャート。
8 is a flowchart showing a procedure for creating white reference image data performed by the shading correction circuit shown in FIG.

【図9】図1に示すシェーディング補正回路の補正メモ
リに保持する白基準画像データの画素列の画素値の波形
等を示す図。
9 is a diagram showing waveforms of pixel values of a pixel row of white reference image data held in a correction memory of the shading correction circuit shown in FIG.

【図10】本発明に係わるシェーディング補正回路の第
2の実施例の構成を示すブロック図。
FIG. 10 is a block diagram showing the configuration of a second embodiment of a shading correction circuit according to the present invention.

【図11】図10に示す演算回路の細部構成を示すブロ
ック図。
11 is a block diagram showing a detailed configuration of the arithmetic circuit shown in FIG.

【図12】図10に示すシェーディング補正回路が行う
白基準画像データの作成手順を示すフローチャート。
12 is a flowchart showing a procedure for creating white reference image data performed by the shading correction circuit shown in FIG.

【図13】図10に示すシェーディング補正回路の補正
メモリに保持する白基準画像データの画素列の画素値の
波形等を示す図。
13 is a diagram showing waveforms of pixel values of a pixel row of white reference image data held in a correction memory of the shading correction circuit shown in FIG.

【符号の説明】[Explanation of symbols]

10,25a 白基準面、 11,26 原稿、12,
22e レンズ、 13 イメージセンサ、14 A/
D変換器、 15,100 シェーディング補正回路、
15a 補間回路、 15b パルス発生回路、 15
c 比較回路、15d 補正メモリ、 15e 補正演
算回路、 16 画像処理部、21 プラテンガラス、
22 読取装置筐体、22a 制御ユニット、 22
b ステッピングモータ、22c 光源、 22d ミ
ラー、22f イメージセンサ制御基盤、 22g イ
メージセンサ、23 原稿押さえ、 24 原稿押さえ
カバー、25 原稿合わせマーク、 41 サンプリン
グ画素アドレスカウンタ、42 シフト量カウンタ、
61 ラッチ回路、 62 レジスタ、63 補正係数
算出回路、 64,65 乗算器、 66 加算器、1
01a,101b,101c,101d ラインメモ
リ、102 演算回路、 102a 最大値除去部、1
02b 最小値除去部、 102c 平均値算出部
10, 25a White reference surface, 11, 26 Original, 12,
22e lens, 13 image sensor, 14 A /
D converter, 15,100 shading correction circuit,
15a interpolation circuit, 15b pulse generation circuit, 15
c comparison circuit, 15d correction memory, 15e correction calculation circuit, 16 image processing unit, 21 platen glass,
22 reader housing, 22a control unit, 22
b stepping motor, 22c light source, 22d mirror, 22f image sensor control board, 22g image sensor, 23 document retainer, 24 document retainer cover, 25 document alignment mark, 41 sampling pixel address counter, 42 shift amount counter,
61 latch circuit, 62 register, 63 correction coefficient calculation circuit, 64, 65 multiplier, 66 adder, 1
01a, 101b, 101c, 101d line memory, 102 arithmetic circuit, 102a maximum value removing unit, 1
02b minimum value removal unit, 102c average value calculation unit

フロントページの続き (72)発明者 坂下 哉 埼玉県岩槻市府内3丁目7番1号 富士ゼ ロックス株式会社岩槻事業所内 (72)発明者 寄本 浩二 埼玉県岩槻市府内3丁目7番1号 富士ゼ ロックス株式会社岩槻事業所内Front page continuation (72) Inventor Kaya Sakashita 3-7-1, Fuchu, Iwatsuki City, Saitama Prefecture Fuji Xerox Co., Ltd. Iwatsuki Plant (72) Inventor, Koji Yorimoto 3-7-1, Iwatsuki City, Saitama Prefecture Fuji X-Locks Co., Ltd. Iwatsuki Office

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 イメージセンサによる画像の読取走査に
先だって該イメージセンサにより白基準面を読取り、該
イメージセンサにより読取った画像データに基づいて形
成した白基準画像データを記憶手段に記憶するととも
に、該記憶手段に記憶した白基準画像データに基づき前
記イメージセンサにより読取った画像の読取データを補
正するシェーディング補正手段を有する画像読取装置に
おいて、 前記イメージセンサにより前記白基準面を複数ライン分
読取る読取手段と、 前記読取手段により読取った各ラインの画像データをそ
れぞれ異なる複数の画素位置で間欠的にサンプリングす
るサンプリング手段と、 前記サンプリング手段でサンプリングした画像データに
基づき該ラインの他の画素の画像データを算出して補間
するデータ補間手段と、 前記データ補間手段で補間した各ラインの画像データを
同一画素に関して比較することにより各画素ごとに前記
白基準画像データを求め、該白基準画像データを前記記
憶手段に記憶する白基準画像データ記憶制御手段とを具
備したことを特徴とする画像読取装置。
1. A white reference plane is read by the image sensor prior to scanning of an image by the image sensor, white reference image data formed based on the image data read by the image sensor is stored in a storage means, and An image reading apparatus having shading correction means for correcting read data of an image read by the image sensor based on white reference image data stored in a storage means, wherein the image sensor reads the white reference surface for a plurality of lines. Sampling means for intermittently sampling the image data of each line read by the reading means at a plurality of different pixel positions, and calculating image data of other pixels of the line based on the image data sampled by the sampling means Data interpolating means White reference image data storage for obtaining the white reference image data for each pixel by comparing the image data of each line interpolated by the data interpolation means with respect to the same pixel, and storing the white reference image data in the storage means An image reading apparatus comprising: a control unit.
【請求項2】 前記白基準画像データ記憶制御手段は、 前記データ補間手段で補間した各ラインの画像データを
同一画素に関して比較し、各画素の最大画像データを前
記白基準画像データとして前記記憶手段に記憶すること
を特徴とする請求項1記載の画像読取装置。
2. The white reference image data storage control means compares the image data of each line interpolated by the data interpolation means with respect to the same pixel, and the maximum image data of each pixel is stored as the white reference image data in the storage means. The image reading device according to claim 1, wherein the image reading device stores the image in the image reading device.
【請求項3】 前記白基準画像データ記憶制御手段は、 前記データ補間手段で補間した各ラインの画像データの
同一画素に関する最大値および/または最小値を除くと
ともに、残りの画像データの平均値を各画素毎に求め、
該平均値を前記白基準画像データとして前記記憶手段に
記憶することを特徴とする請求項1記載の画像読取装
置。
3. The white reference image data storage control means removes a maximum value and / or a minimum value for the same pixel of the image data of each line interpolated by the data interpolating means, and calculates an average value of the remaining image data. Obtained for each pixel,
The image reading apparatus according to claim 1, wherein the average value is stored in the storage unit as the white reference image data.
JP7059220A 1995-03-17 1995-03-17 Image reader Pending JPH08256263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7059220A JPH08256263A (en) 1995-03-17 1995-03-17 Image reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7059220A JPH08256263A (en) 1995-03-17 1995-03-17 Image reader

Publications (1)

Publication Number Publication Date
JPH08256263A true JPH08256263A (en) 1996-10-01

Family

ID=13107086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7059220A Pending JPH08256263A (en) 1995-03-17 1995-03-17 Image reader

Country Status (1)

Country Link
JP (1) JPH08256263A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005317011A (en) * 2004-04-28 2005-11-10 Seiko Epson Corp Method for generating high resolution image, and digital image editing tool and medium
US8174737B2 (en) 2007-12-28 2012-05-08 Brother Kogyo Kabushiki Kaisha Image reading apparatus
US8284463B2 (en) 2007-12-28 2012-10-09 Brother Kogyo Kabushiki Kaisha Image reading apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005317011A (en) * 2004-04-28 2005-11-10 Seiko Epson Corp Method for generating high resolution image, and digital image editing tool and medium
US8174737B2 (en) 2007-12-28 2012-05-08 Brother Kogyo Kabushiki Kaisha Image reading apparatus
US8284463B2 (en) 2007-12-28 2012-10-09 Brother Kogyo Kabushiki Kaisha Image reading apparatus

Similar Documents

Publication Publication Date Title
US4288821A (en) Multi-resolution image signal processing apparatus and method
US5585926A (en) Document reading apparatus capable of rectifying a picked up image data of documents
EP0371055B1 (en) Apparatus for enhancing and thresholding scanned microfilm images and methods for use therein
US5881162A (en) Image reading apparatus capable of eliminating moire on images
US5299029A (en) Image processing apparatus capable of preventing deterioration in image quality
US4855943A (en) Method and apparatus for deaveraging a stream of averaged data
US4853795A (en) Forward look ahead techniques for tracking background and noise levels in scanned video images
US4903141A (en) Apparatus for electronically duplicating film images while maintaining a high degree of image quality
US6201613B1 (en) Automatic image enhancement of halftone and continuous tone images
JP3031994B2 (en) Image processing device
JPH06261238A (en) Image pickup device
EP0547881B1 (en) Method and apparatus for implementing two-dimensional digital filters
JPH08256263A (en) Image reader
JP3633021B2 (en) Image reading device
JP2002344737A (en) Image reader
US5251272A (en) Image signal processing method and apparatus with correction for a secondary light source effect
JPH10233900A (en) Image reader
JPH08271980A (en) Image reader
JPH05122542A (en) Image processor
JP3692160B2 (en) Image scaling device
JP2002190929A (en) Image reader, image processing method and storage medium
JPS61105973A (en) Picture signal processing method
JPH06245065A (en) Picture reader
JPH03219978A (en) Image processing device
JPH11177836A (en) Image processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040316