JP2002199218A - Image reader and image processing method, and storage medium - Google Patents

Image reader and image processing method, and storage medium

Info

Publication number
JP2002199218A
JP2002199218A JP2000394956A JP2000394956A JP2002199218A JP 2002199218 A JP2002199218 A JP 2002199218A JP 2000394956 A JP2000394956 A JP 2000394956A JP 2000394956 A JP2000394956 A JP 2000394956A JP 2002199218 A JP2002199218 A JP 2002199218A
Authority
JP
Japan
Prior art keywords
value
data
pixel
image
difference
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.)
Withdrawn
Application number
JP2000394956A
Other languages
Japanese (ja)
Inventor
Satoshi Shimizu
智 清水
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2000394956A priority Critical patent/JP2002199218A/en
Publication of JP2002199218A publication Critical patent/JP2002199218A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image reader that can correct shading with high accuracy even when no dust or dirt exists at a position of a reference white board equivalent to a position of a target pixel. SOLUTION: The image reader has a maximum value detection circuit 19 that calculates a maximum value among a data value of a target pixel of an image sensor (CCD) 15 and data values of surrounding pixels of the target pixel among image data by one line obtained by the image sensor 15 that reads a white board read, a differential circuit 20 that calculates a difference between the maximum value and the data value of the target pixel, a comparator circuit 22 that compares the difference with a prescribed value, and a shading correction circuit 24 that uses the maximum value for a reference white level of the target pixel when the difference is greater than a specified value on the basis of the comparison result by the comparator circuit 22 or uses the data value of the target pixel as it is for the reference white level of the target pixel when the difference is the specified value or below and uses the reference white level to conduct shading correction.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、CCD等のリニア
イメージセンサで原稿面を走査し、原稿画像を読み取る
画像読取装置及び画像処理方法並びに記憶媒体に関する
ものである。
[0001] 1. Field of the Invention [0002] The present invention relates to an image reading apparatus, an image processing method, and a storage medium for scanning a document surface with a linear image sensor such as a CCD and reading a document image.

【0002】[0002]

【従来の技術】従来、CCD等の複数の画素をライン状
に配列したリニアイメージセンサで原稿面を走査し原稿
画像を読み取る画像読取装置では、リニアイメージセン
サの画素感度のばらつきや、光源、光学系の特性による
明暗のばらつきを補正するために、基準白色板を読み取
って得た白色データをもとにシェーディング補正が行わ
れている。
2. Description of the Related Art Conventionally, in an image reading apparatus that scans a document surface and reads a document image using a linear image sensor in which a plurality of pixels such as CCDs are arranged in a line, variations in pixel sensitivity of the linear image sensor, light sources, and optical Shading correction is performed based on white data obtained by reading a reference white plate in order to correct variations in brightness due to the characteristics of the system.

【0003】図6に示すように、基準白色板にごみや汚
れが無く基準白データが読み取れる場合には、正常にシ
ェーディング補正が行えるが、図8に示すように、イメ
ージセンサのn画素目に相当する位置にごみがあった場
合には、図7に示すように、該当画素の信号レベル(デ
ータ値)がごみの影響で落ち込み、この信号レベルを基
準白データとしてシェーディング補正を行うと、該当画
素で読み取った部分が読み取って得られた原稿画像に縦
すじとなって生じ、画像劣化を招いてしまう。
As shown in FIG. 6, when reference white data can be read without dust or dirt on the reference white plate, shading correction can be performed normally. However, as shown in FIG. If there is dust at the corresponding position, as shown in FIG. 7, the signal level (data value) of the corresponding pixel drops due to the influence of dust, and when this signal level is used as reference white data to perform shading correction, A portion read by the pixel is formed as a vertical streak on a document image obtained by reading, thereby causing image deterioration.

【0004】この画像劣化を引き起こすごみや汚れの影
響をなくすために、任意の注目画素の白色データ(基準
白色板を読み取って得られた注目画素のデータ値)とそ
の近傍の画素の白色データとの平均値や最大値を算出
し、この値を注目画素の基準白(基準白色値)としてシ
ェーディング補正を行う方法が提案されている。
[0004] In order to eliminate the influence of dust or dirt which causes the image deterioration, the white data of an arbitrary target pixel (the data value of the target pixel obtained by reading the reference white plate) and the white data of the pixels in the vicinity thereof are compared with the white data of the target pixel. There has been proposed a method of calculating an average value or a maximum value of, and using this value as a reference white (reference white value) of a target pixel to perform shading correction.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記の
ように注目画素の白色データとその近傍の画素の白色デ
ータとの最大値を算出する方法では、基準白色板の注目
画素相当位置にごみや汚れが無く、読み取った白データ
が白基準として理想的なものであっても、近傍画素の白
色データとの最大値で置き換えられてしまうため、逆に
補正精度が悪くなり、画像劣化を引き起こすことがある
という問題点があった。
However, as described above, in the method of calculating the maximum value of the white data of the target pixel and the white data of the pixels in the vicinity of the target pixel, dust or dirt is present at the position of the reference white plate corresponding to the target pixel. And even if the read white data is ideal as a white reference, it will be replaced with the maximum value of the white data of the neighboring pixels, and conversely, the correction accuracy will deteriorate and image deterioration may occur. There was a problem.

【0006】本発明は、上記のような問題点を解決する
ためになされたものであり、基準白色板の注目画素相当
位置にごみや汚れが無い場合でも、精度良くシェーディ
ング補正を行うことができる画像読取装置及び画像処理
方法並びに記憶媒体を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and it is possible to accurately perform shading correction even when there is no dust or dirt at a position corresponding to a target pixel on a reference white plate. It is an object to provide an image reading device, an image processing method, and a storage medium.

【0007】[0007]

【課題を解決するための手段】本発明の画像読取装置及
び画像処理方法並びに記憶媒体は次のように構成したも
のである。
An image reading apparatus, an image processing method, and a storage medium according to the present invention are configured as follows.

【0008】(1)画像読取装置において、複数の画素
をライン状に配列したイメージセンサと、白色板と、前
記イメージセンサにより前記白色板を読み取って得られ
た1ライン分の画像データうちの該イメージセンサの任
意の注目画素のデータ値とこの周辺の画素のデータ値う
ちの最大値を検出する検出手段と、該最大値と前記注目
画素のデータ値の差を算出する算出手段と、この差分値
と所定値を比較する比較手段と、前記イメージセンサに
より読み取った原稿画像データにシェーディング補正を
施すシェーディング補正手段とを有し、前記比較手段に
よる比較結果により、前記差分値が前記所定値以上の場
合には前記最大値を前記注目画素の基準白色値とし、前
記差分値が前記所定値よりも小さい場合には前記注目画
素のデータ値をそのままこの注目画素の基準白色値と
し、前記シェーディング補正手段はこの基準白色値を用
いてシェーディング補正を行うようにした。
(1) In an image reading apparatus, an image sensor in which a plurality of pixels are arranged in a line, a white plate, and the image data of one line obtained by reading the white plate by the image sensor. Detecting means for detecting a data value of an arbitrary pixel of interest of the image sensor and a maximum value among data values of pixels in the vicinity thereof; calculating means for calculating a difference between the maximum value and a data value of the pixel of interest; And a shading correction unit for performing shading correction on the document image data read by the image sensor, wherein the comparison result indicates that the difference value is equal to or greater than the predetermined value. The maximum value is used as the reference white value of the pixel of interest, and when the difference value is smaller than the predetermined value, the data value of the pixel of interest is A reference white value of Mamakono target pixel, the shading correction means is to perform the shading correction using the reference white value.

【0009】(2)上記(1)の画像読取装置におい
て、最大値の検出に用いる周辺の画素の範囲は可変可能
とした。
(2) In the image reading device of the above (1), the range of peripheral pixels used for detecting the maximum value can be changed.

【0010】(3)上記(1)または(2)の画像読取
装置において、差分値と比較する所定値は複数から選択
可能とした。
(3) In the image reading apparatus of (1) or (2), a plurality of predetermined values to be compared with the difference value can be selected.

【0011】(4)画像処理方法において、複数の画素
をライン状に配列したイメージセンサにより前記白色板
を読み取って得られた1ライン分の画像データうちの該
イメージセンサの任意の注目画素のデータ値とこの周辺
の画素のデータ値のうちの最大値を検出し、該最大値と
前記注目画素のデータ値の差を算出し、この差分値と所
定値を比較し、この比較結果により、前記差分値が前記
所定値以上の場合には前記最大値を前記注目画素の基準
白色値とし、前記差分値が前記所定値よりも小さい場合
には前記注目画素のデータ値をそのままこの注目画素の
基準白色値とし、この基準白色値を用いて前記イメージ
センサにより読み取った原稿画像データにシェーディン
グ補正を行うようにした。
(4) In the image processing method, data of an arbitrary pixel of interest of the image sensor out of one line of image data obtained by reading the white plate by an image sensor in which a plurality of pixels are arranged in a line. The value and the maximum value of the data values of the peripheral pixels are detected, the difference between the maximum value and the data value of the pixel of interest is calculated, and the difference value is compared with a predetermined value. If the difference value is equal to or larger than the predetermined value, the maximum value is set as a reference white value of the target pixel. If the difference value is smaller than the predetermined value, the data value of the target pixel is used as a reference for the target pixel. A white value is set, and shading correction is performed on the document image data read by the image sensor using the reference white value.

【0012】(5)複数の画素をライン状に配列したイ
メージセンサにより前記白色板を読み取って得られた1
ライン分の画像データうちの該イメージセンサの任意の
注目画素のデータ値とこの周辺の画素のデータ値のうち
の最大値を検出し、該最大値と前記注目画素のデータ値
の差を算出し、この差分値と所定値を比較し、この比較
結果により、前記差分値が前記所定値以上の場合には前
記最大値を前記注目画素の基準白色値とし、前記差分値
が前記所定値よりも小さい場合には前記注目画素のデー
タ値をそのままこの注目画素の基準白色値とし、この基
準白色値を用いて前記イメージセンサにより読み取った
原稿画像データにシェーディング補正を行うことを実現
させるためのプログラムを記憶媒体に格納した。
(5) 1 is obtained by reading the white plate with an image sensor in which a plurality of pixels are arranged in a line.
Detect the maximum value of the data value of an arbitrary pixel of interest of the image sensor of the image data for the line and the data value of the pixels around this, and calculate the difference between the maximum value and the data value of the pixel of interest. Comparing the difference value with a predetermined value, and as a result of the comparison, when the difference value is equal to or more than the predetermined value, the maximum value is set as a reference white value of the pixel of interest, and the difference value is larger than the predetermined value. If the value is smaller, the data value of the target pixel is used as it is as the reference white value of the target pixel, and a program for realizing shading correction on the document image data read by the image sensor using the reference white value is executed. Stored in a storage medium.

【0013】[0013]

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

【0014】(第1の実施例)図4は本発明に係る画像
読取装置の概略構造を示す断面図、図5は図4の光学キ
ャリッジ1の内部構造を示す断面図であり、図4、図5
を用いて本発明に係る画像読取装置の概略構造を説明す
る。
(First Embodiment) FIG. 4 is a sectional view showing a schematic structure of an image reading apparatus according to the present invention, and FIG. 5 is a sectional view showing an internal structure of the optical carriage 1 of FIG. FIG.
The schematic structure of the image reading apparatus according to the present invention will be described with reference to FIG.

【0015】図4、図5において、1は光学キャリッジ
(以下、単にキャリッジという)1であり、光学系が一
体的に構成されている。7は原稿面を照射する光源、8
は原稿面の照度をアップさせるための反射板であり、光
源7からの照射光と反射板8で反射された反射光により
原稿台4上に載置された原稿5の原稿面を照射する。原
稿5からの反射光はミラー9〜13でそれぞれ反射さ
れ、レンズ14により複数の画素をライン状に配列した
イメージセンサ(CCD)15上に結像され、1ライン
の画像情報(画像データ)が得られる。
In FIGS. 4 and 5, reference numeral 1 denotes an optical carriage (hereinafter, simply referred to as a carriage) 1, which has an integrated optical system. 7 is a light source for irradiating the original surface, 8
Reference numeral denotes a reflector for increasing the illuminance of the document surface, and irradiates the document surface of the document 5 placed on the document table 4 with the irradiation light from the light source 7 and the reflected light reflected by the reflection plate 8. Light reflected from the original 5 is reflected by mirrors 9 to 13 respectively, and is imaged by a lens 14 on an image sensor (CCD) 15 in which a plurality of pixels are arranged in a line. can get.

【0016】キャリッジ1はレール6上を左右に移動可
能に取り付けられており、不図示のモータにより駆動さ
れ、図1の矢印方向に移動しながら、順次原稿面上のラ
イン画像情報を読み取り、原稿面の2次元画像情報を得
る。
The carriage 1 is mounted on a rail 6 so as to be movable left and right, and is driven by a motor (not shown) to sequentially read line image information on the original surface while moving in the direction of the arrow in FIG. Obtain two-dimensional image information of the surface.

【0017】次に、概略の動作について説明する。Next, the general operation will be described.

【0018】まず、読み取り開始指示を受け付けると、
キャリッジ1をホームポジションに移動させる。次に、
光源7を点灯させ、光量が安定するまでキャリッジ1を
ホームポジションで待機させる。
First, when a reading start instruction is received,
The carriage 1 is moved to the home position. next,
The light source 7 is turned on, and the carriage 1 waits at the home position until the light amount becomes stable.

【0019】その後、原稿台4のホームポジション位置
に取り付けられた基準白色板2を読み取り、後述するシ
ェーディング補正用の基準白色データ(基準白色値)W
(n)を作成する。ここで、nは正の整数であり、主走
査方向の画素ナンバーを表しており、主走査方向有効画
素が7000の場合、nは7000までとなる。
Thereafter, the reference white plate 2 attached to the home position of the document table 4 is read, and reference white data (reference white value) W for shading correction described later is used.
(N) is created. Here, n is a positive integer and represents a pixel number in the main scanning direction. When the number of effective pixels in the main scanning direction is 7,000, n is up to 7,000.

【0020】該基準白色データW(n)を作成した後、
キャリッジ1を移動させながら各ラインの原稿画像情報
(原稿画像データ)Di(n)を読み取り、次式の計算
を行ってシェーディング補正された原稿画像データDo
(n)を得る。
After creating the reference white data W (n),
While moving the carriage 1, the document image information (document image data) Di (n) of each line is read, and the following formula is calculated to perform shading correction of the document image data Do.
(N) is obtained.

【0021】 Do(n)=Di(n)×Wref/W(n) ここで、Wrefは白レベルの固定の基準値であり、8
ビットで量子化する場合には、FFhとなる。
Do (n) = Di (n) × Wref / W (n) Here, Wref is a fixed reference value of the white level, and 8
When quantizing with bits, it becomes FFh.

【0022】図1は第1の実施例の構成を示すブロック
図であり、図1を用いて上記基準白色データの作成方法
について説明する。
FIG. 1 is a block diagram showing the configuration of the first embodiment, and a method of creating the above-described reference white data will be described with reference to FIG.

【0023】同図において、16は前処理回路であり、
CCD15で読み取られた基準白色板2のアナログの画
像データ(画像信号)を適当なレベルにクランプした
後、画素ごとにクランプし、増幅する。この増幅された
アナログの画像データはA/Dコンバータ17に入力さ
れてデジタルの画像信号に変換される。A/Dコンバー
タ17でデジタル化された画像データは遅延回路18に
入力される。
In FIG. 1, reference numeral 16 denotes a preprocessing circuit.
After the analog image data (image signal) of the reference white plate 2 read by the CCD 15 is clamped to an appropriate level, it is clamped for each pixel and amplified. The amplified analog image data is input to the A / D converter 17 and is converted into a digital image signal. Image data digitized by the A / D converter 17 is input to the delay circuit 18.

【0024】以下、最大値検出を施す範囲を図9に示す
ように、注目画素とその前後1画素の計3画素として説
明する。
In the following, the range in which the maximum value is detected is described as a target pixel and one pixel before and after the target pixel as shown in FIG.

【0025】図10は遅延回路の構成を示す回路図であ
る。同図において、181,182はフィリップフロッ
プであり、入力された画像データはフィリップフロップ
181,182で2段階に遅延し、注目画素nのデータ
Di(n)、注目画素の直前の画素(n−1)のデータ
値Di(n−1)、注目画素の直後の画素(n+1)の
データ値Di(n+1)の計3画素のデータ値を最大値
検出回路19とセレクタ21、シェーディング補正回路
24に出力する。
FIG. 10 is a circuit diagram showing the configuration of the delay circuit. In the figure, 181 and 182 are flip-flops, and input image data is delayed in two stages by the flip-flops 181 and 182, and data Di (n) of a target pixel n and a pixel (n− The data value of a total of three pixels, i.e., the data value Di (n-1) of 1) and the data value Di (n + 1) of the pixel (n + 1) immediately after the target pixel, are sent to the maximum value detection circuit 19, the selector 21, and the shading correction circuit 24. Output.

【0026】最大値検出回路19では、データDi(n
−1)、Di(n)、Di(n+1)の最大値Dmax
(n)を算出し、後段の差分回路20とセレクタ21に
出力する。
In the maximum value detection circuit 19, the data Di (n
-1), maximum value Dmax of Di (n), Di (n + 1)
(N) is calculated and output to the difference circuit 20 and the selector 21 at the subsequent stage.

【0027】差分回路20では、最大値Dmax(n)
とn番目の画素のデータ値Di(n)の差 Diff(n)=Dmax(n)−Di(n) が算出される。
In the difference circuit 20, the maximum value Dmax (n)
Difference (Diff (n) = Dmax (n) −Di (n)) between the data value Di (n) and the data value Di (n) of the nth pixel is calculated.

【0028】比較回路22では、差分回路20からの出
力Diff(n)と規定値(所定値)Cを比較し、比較
結果をセレクタ21のS端子に出力する。
The comparison circuit 22 compares the output Diff (n) from the difference circuit 20 with a specified value (predetermined value) C, and outputs the comparison result to the S terminal of the selector 21.

【0029】この比較結果が、 Diff(n)≦C の場合にはセレクタ21はA端子の入力、つまり注目画
素のデータ値Di(n)を選びシェーディング補正用の
基準白記憶用のメモリ23にY端子から出力し、メモリ
23にn画素目の基準白色データ値W(n)として記憶
される。
If the comparison result is Diff (n) ≦ C, the selector 21 selects the input of the A terminal, that is, the data value Di (n) of the pixel of interest and stores the data value Di (n) in the reference white storage memory 23 for shading correction. The data is output from the Y terminal and stored in the memory 23 as the reference white data value W (n) of the n-th pixel.

【0030】また、Diff(n)>C の場合にはセレクタ21はB端子の入力、つまり最大値
Dmax(n)を選びメモリ23にY端子から出力し、
メモリ23にn画素目の基準白色データ値W(n)とし
て記憶される。
When Diff (n)> C, the selector 21 selects the input of the terminal B, that is, selects the maximum value Dmax (n) and outputs it to the memory 23 from the terminal Y.
The reference white data value W (n) of the n-th pixel is stored in the memory 23.

【0031】図11は、図8に示すようにn画素目(注
目画素)に相当する位置にごみがあった場合に上述した
本実施例の処理を施したときの基準白色データ(基準白
色値)を示す図、図12は、上記同様図8に示すように
n画素目(注目画素)に相当する位置にごみがあった場
合に最大値検出処理のみを施したときの基準白色データ
(基準色値)を示す図である。図11、図12ではC=
10としている。
FIG. 11 shows reference white data (reference white value) when the above-described processing of this embodiment is performed when dust is present at a position corresponding to the nth pixel (pixel of interest) as shown in FIG. FIG. 12 shows reference white data (reference data) when only the maximum value detection processing is performed when dust is present at the position corresponding to the n-th pixel (pixel of interest) as shown in FIG. FIG. 11 and 12, C =
It is assumed to be 10.

【0032】図12ではごみの影響のあるn画素目の基
準白色データはごみの無い場合のデータに近いレベルに
補正されているが、ごみの影響の無い(n−3)画素目
の基準白色データと(n+3)画素目の基準白色データ
が最大値検出処理の副作用で誤差を生じてしまっている
が、図11では上述した処理を行うことにより、このよ
うな誤差を生じることなく、ごみの影響のみを補正した
基準白色データを得ることができる。
In FIG. 12, the reference white data of the n-th pixel affected by dust is corrected to a level close to the data when there is no dust, but the reference white data of the (n-3) -th pixel not affected by dust is corrected. Although the data and the reference white data of the (n + 3) th pixel have an error due to a side effect of the maximum value detection processing, the processing described above is performed in FIG. Reference white data in which only the influence is corrected can be obtained.

【0033】原稿画像の読み取り時は、CCD15で読
み取ったアナログ画像データが前述の処理と同様にし
て、前処理部16で処理された後、A/Dコンバータ1
7でデジタル値のデータDi(n)に変換され、遅延回
路18を経てシェーディング補正回路(シェーディング
補正手段)24に入力される。
At the time of reading the original image, the analog image data read by the CCD 15 is processed by the pre-processing unit 16 in the same manner as described above, and then the A / D converter 1
At 7, the data is converted into digital value data Di (n), and is input to a shading correction circuit (shading correction means) 24 via a delay circuit 18.

【0034】また、先にメモリ23に記憶しておいた基
準白色データW(n)が読み出されて、シェーディング
補正回路24に入力され、前述の演算 Do(n)=Di(n)×Wref/W(n) が施され、シェーディング補正後の原稿画像データDo
(n)が出力される。
Further, the reference white data W (n) previously stored in the memory 23 is read out and input to the shading correction circuit 24, and the above-mentioned calculation Do (n) = Di (n) × Wref / W (n), and the original image data Do after shading correction
(N) is output.

【0035】なお、上記図1の構成において、最大値検
出回路19はCCD15により前記白色板2を読み取っ
て得られた1ライン分の画像データうちCCD15の注
目画素のデータ値Di(n)とこの前後の1画素のデー
タ値Di(n−1),Di(n+1)との最大値Dma
x(n)を検出する検出手段、差分回路20は最大値D
max(n)と注目画素のデータ値Di(n)の差を算
出する算出手段、比較回路22はこの差分値Diff
(n)と規定値Cを比較する比較手段をそれぞれ構成し
ている。
In the configuration shown in FIG. 1, the maximum value detection circuit 19 determines the data value Di (n) of the target pixel of the CCD 15 and the data value Di (n) of one line of image data obtained by reading the white plate 2 by the CCD 15. Maximum value Dma of data values Di (n-1) and Di (n + 1) of one pixel before and after
x (n) is detected by the difference circuit 20.
The comparing circuit 22 calculates the difference between the data value Max (n) and the data value Di (n) of the target pixel, and the comparison circuit 22 calculates the difference value Diff.
Comparing means for comparing (n) with the specified value C is provided.

【0036】このように第1の実施例では、差分値Di
ff(n)が規定値Cより大きい場合には最大値Dma
x(n)を注目画素の基準白色値とし、差分値Diff
(n)が規定値C以下の場合には注目画素のデータ値を
そのままこの注目画素の基準白色値とし、シェーディン
グ補正回路24はこの基準白色値を用いてシェーディン
グ補正を行うようにしたため、基準白色板2に汚れやご
みがあった場合には、これらの影響を除去し、基準白色
板2の注目画素相当位置にごみや汚れが無い場合でも、
精度良くシェーディング補正を行うことができ、画質の
優れた画像読取装置を提供することができる。
As described above, in the first embodiment, the difference value Di
When ff (n) is larger than the specified value C, the maximum value Dma
x (n) is set as a reference white value of the pixel of interest, and a difference value Diff
When (n) is equal to or smaller than the specified value C, the data value of the target pixel is used as it is as the reference white value of the target pixel, and the shading correction circuit 24 performs shading correction using this reference white value. If there is dirt or dust on the plate 2, these effects are removed, and even if there is no dust or dirt at the position corresponding to the target pixel of the reference white plate 2,
A shading correction can be performed with high accuracy, and an image reading apparatus with excellent image quality can be provided.

【0037】(第2の実施例)図2は第2の実施例の構
成を示すブロック図であり、図1と同様の構成要素につ
いては同一の符号を付して説明する。
(Second Embodiment) FIG. 2 is a block diagram showing a configuration of a second embodiment. The same components as those in FIG. 1 are denoted by the same reference numerals and described.

【0038】同図において、16は前処理回路であり、
CCD15で読み取られた基準白色板2のアナログの画
像データ(画像信号)を適当なレベルにクランプした
後、画素ごとにクランプし、増幅する。この増幅された
アナログの画像データはA/Dコンバータ17に入力さ
れてデジタルの画像信号に変換される。
In the figure, reference numeral 16 denotes a preprocessing circuit.
After the analog image data (image signal) of the reference white plate 2 read by the CCD 15 is clamped to an appropriate level, it is clamped for each pixel and amplified. The amplified analog image data is input to the A / D converter 17 and is converted into a digital image signal.

【0039】A/Dコンバータ17でデジタル化された
データ値Di(n)は、シェーディング補正用の基準白
記憶用のメモリ23に入力され、記憶される。
The data value Di (n) digitized by the A / D converter 17 is input to and stored in a memory 23 for storing a reference white for shading correction.

【0040】1ライン分のデータが記憶された後、CP
U(検出手段、算出手段、比較手段)25により注目画
素nのデータ値Di(n)とその直前の画素(n−1)
のデータ値Di(n−1)と、直後の画素(n+1)の
データ値Di(n+1)の計3画素のデータ値の最大値
Dmax(n)を算出する。
After one line of data is stored, the CP
U (detection means, calculation means, comparison means) 25 calculates the data value Di (n) of the pixel of interest n and the pixel (n-1) immediately before it.
, And the maximum value Dmax (n) of the data values of a total of three pixels, that is, the data value Di (n−1) of the immediately following pixel (n + 1) and the data value Di (n + 1) of the immediately succeeding pixel (n + 1).

【0041】さらに、上記算出した最大値Dmax
(n)とn画素目のデータ値Di(n)の差 Diff(n)=Dmax(n)−Di(n) を算出する。
Further, the calculated maximum value Dmax
The difference Diff (n) = Dmax (n) −Di (n) between (n) and the data value Di (n) of the n-th pixel is calculated.

【0042】該算出したDiff(n)と規定値Cを比
較し、 Diff(n)>C の場合にはDmax(n)をn番目の基準白色データW
(n)として、メモリ23のデータ値Di(n)のアド
レスに上書きする。
The calculated Diff (n) is compared with a specified value C. If Diff (n)> C, Dmax (n) is replaced with the n-th reference white data W
As (n), the address of the data value Di (n) in the memory 23 is overwritten.

【0043】このようにして、1ライン分処理を行う。Thus, processing for one line is performed.

【0044】原稿画像の読み取り時は、CCD15で読
み取ったアナログ画像データが前述の処理と同様にし
て、前処理部16で処理された後、A/Dコンバータ1
7でデジタル値のデータDi(n)に変換され、シェー
ディング補正回路(シェーディング補正手段)24に入
力される。
At the time of reading the original image, the analog image data read by the CCD 15 is processed by the pre-processing unit 16 in the same manner as described above, and then the A / D converter 1
At 7, the data is converted into digital value data Di (n) and input to a shading correction circuit (shading correction means) 24.

【0045】また、先にメモリ23に記憶しておいた基
準白色データW(n)が読み出されて、シェーディング
補正回路24に入力され、前述の演算 Do(n)=Di(n)×Wref/W(n) が施され、シェーディング補正後の原稿画像データDo
(n)が出力される。
The reference white data W (n) previously stored in the memory 23 is read out and input to the shading correction circuit 24, and the above-mentioned calculation Do (n) = Di (n) × Wref / W (n), and the original image data Do after shading correction.
(N) is output.

【0046】図3は一実施例の基準白色データ作成処理
動作を示すフローチャートであり、図3を用いて上述し
た処理動作を説明する。なお、本動作はCPU25の指
示により不図示のROMに格納されたプログラムに基づ
いて実行される。
FIG. 3 is a flowchart showing the operation of the reference white data creating process according to one embodiment. The above-described process will be described with reference to FIG. This operation is executed based on a program stored in a ROM (not shown) in accordance with an instruction from the CPU 25.

【0047】まず、CCD15により白色板2を読み取
り(ステップS101)、得られた1ライン分の画像デ
ータうちの注目画素のデータ値Di(n)とこの前後の
画素のデータ値Di(n−1),Di(n+1)との最
大値Dmax(n)を検出し(ステップS102)す
る。次に、最大値Dmax(n)と注目画素のデータ値
Di(n)の差を算出し(ステップS103)し、この
差分値Diff(n)と規定値Cを比較する(ステップ
S104)。
First, the white plate 2 is read by the CCD 15 (step S101), and the data value Di (n) of the pixel of interest and the data values Di (n-1) of the pixels before and after this pixel in the obtained one line of image data. ) And Di (n + 1) are detected (step S102). Next, the difference between the maximum value Dmax (n) and the data value Di (n) of the pixel of interest is calculated (step S103), and the difference value Diff (n) is compared with the specified value C (step S104).

【0048】この比較結果により、差分値Diff
(n)が規定値Cより大きい場合には最大値Dmax
(n)を注目画素の基準白色値(基準白色データ)とし
てメモリ23に記憶させる(ステップS105)。ま
た、差分値Diff(n)が規定値C以下の場合には注
目画素のデータ値Di(n)をそのままこの注目画素の
基準白色値としてメモリ23に記憶させる(ステップS
106)。
Based on the result of this comparison, the difference value Diff
When (n) is larger than the specified value C, the maximum value Dmax
(N) is stored in the memory 23 as the reference white value (reference white data) of the target pixel (step S105). When the difference value Diff (n) is equal to or less than the specified value C, the data value Di (n) of the target pixel is stored in the memory 23 as the reference white value of the target pixel as it is (step S).
106).

【0049】このように第2の実施例では、上記第1の
実施例で説明した最大値検出回路19、差分回路20、
セレクタ21、比較回路22の処理をCPU25により
行うようにしたので簡単な回路構成で、上記第1の実施
例と同様の効果を得ることができる。
As described above, in the second embodiment, the maximum value detection circuit 19, the difference circuit 20,
Since the processing of the selector 21 and the comparison circuit 22 is performed by the CPU 25, the same effect as that of the first embodiment can be obtained with a simple circuit configuration.

【0050】なお、上記第1,第2の実施例では最大値
検出処理する範囲を3画素として説明したが、この範囲
を広げることにより、より大きなごみの影響を除去する
ことができる。
In the first and second embodiments, the range in which the maximum value is detected is described as three pixels. However, by expanding this range, it is possible to remove the influence of larger dust.

【0051】また、写真、文字等の読み取る画像の種類
によって、規定値Cを変更し、ごみ検出感度を切り替え
ることもできる。
Further, it is also possible to change the specified value C and switch the dust detection sensitivity according to the type of image to be read, such as a photograph or a character.

【0052】また、上述した処理(画像処理)を実現さ
せるためのプログラムを格納した記憶媒体としても実施
可能である。
The present invention can also be implemented as a storage medium storing a program for realizing the above-described processing (image processing).

【0053】[0053]

【発明の効果】以上説明したように、本発明によれば、
基準白色板の注目画素相当位置にごみや汚れが無い場合
でも、精度良くシェーディング補正を行うことができる
ようになるため、画質の向上を図ることができるという
効果がある。
As described above, according to the present invention,
Even when there is no dust or dirt at the position corresponding to the target pixel on the reference white plate, the shading correction can be performed with high accuracy, so that there is an effect that the image quality can be improved.

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

【図1】 第1の実施例の構成を示すブロック図FIG. 1 is a block diagram showing a configuration of a first embodiment.

【図2】 第2の実施例の構成を示すブロック図FIG. 2 is a block diagram showing a configuration of a second embodiment.

【図3】 一実施例の基準白色データ作成処理動作を示
すフローチャート
FIG. 3 is a flowchart illustrating a reference white data creation processing operation according to an embodiment;

【図4】 本発明に係る画像読取装置の概略構造を示す
断面図
FIG. 4 is a sectional view showing a schematic structure of an image reading apparatus according to the present invention.

【図5】 図4の光学キャリッジの内部構造を示す断面
FIG. 5 is a sectional view showing the internal structure of the optical carriage shown in FIG. 4;

【図6】 ごみのない基準白色板を読み取ったときのイ
メージセンサの出力信号を示す波形図
FIG. 6 is a waveform diagram showing an output signal of the image sensor when a reference white plate without dust is read.

【図7】 ごみが有る基準白色板を読み取ったときのイ
メージセンサの出力信号を示す波形図
FIG. 7 is a waveform diagram showing an output signal of an image sensor when a reference white plate having dust is read.

【図8】 ごみとイメージセンサの画素との関係を示す
FIG. 8 is a diagram showing a relationship between dust and pixels of an image sensor.

【図9】 一実施例の最大値検出範囲を示す図FIG. 9 is a diagram showing a maximum value detection range according to one embodiment;

【図10】 図1の遅延回路の構成を示す回路図FIG. 10 is a circuit diagram showing the configuration of the delay circuit shown in FIG. 1;

【図11】 一実施例の基準白色データを示す図FIG. 11 is a diagram showing reference white data of one embodiment.

【図12】 最大値検出処理のみを施した一実施例の基
準白色データを示す図
FIG. 12 is a diagram showing reference white data of one embodiment in which only a maximum value detection process is performed.

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

2 基準白色板 15 イメージセンサ(CCD) 18 遅延回路 19 最大値検出回路(検出手段) 20 差分回路(算出手段) 21 セレクタ 22 比較回路(比較手段) 23 メモリ 24 シェーディング補正回路(シェーディング補正手
段) 25 CPU(検出手段,算出手段,比較手段)
2 reference white plate 15 image sensor (CCD) 18 delay circuit 19 maximum value detection circuit (detection means) 20 difference circuit (calculation means) 21 selector 22 comparison circuit (comparison means) 23 memory 24 shading correction circuit (shading correction means) 25 CPU (detection means, calculation means, comparison means)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数の画素をライン状に配列したイメー
ジセンサと、白色板と、前記イメージセンサにより前記
白色板を読み取って得られた1ライン分の画像データう
ちの該イメージセンサの任意の注目画素のデータ値とこ
の周辺の画素のデータ値うちの最大値を検出する検出手
段と、該最大値と前記注目画素のデータ値の差を算出す
る算出手段と、この差分値と所定値を比較する比較手段
と、前記イメージセンサにより読み取った原稿画像デー
タにシェーディング補正を施すシェーディング補正手段
とを有し、前記比較手段による比較結果により、前記差
分値が前記所定値以上の場合には前記最大値を前記注目
画素の基準白色値とし、前記差分値が前記所定値よりも
小さい場合には前記注目画素のデータ値をそのままこの
注目画素の基準白色値とし、前記シェーディング補正手
段はこの基準白色値を用いてシェーディング補正を行う
ことを特徴とする画像読取装置。
1. An image sensor in which a plurality of pixels are arranged in a line, a white plate, and arbitrary attention of the image sensor in one line of image data obtained by reading the white plate by the image sensor. Detecting means for detecting the data value of the pixel and the maximum value of the data values of the peripheral pixels; calculating means for calculating the difference between the maximum value and the data value of the pixel of interest; and comparing the difference value with a predetermined value Comparing means, and shading correction means for performing shading correction on the document image data read by the image sensor, wherein the comparison result by the comparing means indicates that the maximum value is set when the difference value is equal to or greater than the predetermined value. When the difference value is smaller than the predetermined value, the data value of the target pixel is used as the reference white value of the target pixel. An image reading device, wherein the shading correction means performs shading correction using the reference white value.
【請求項2】 最大値の検出に用いる周辺の画素の範囲
は可変可能としたことを特徴とする請求項1記載の画像
読取装置。
2. The image reading apparatus according to claim 1, wherein a range of peripheral pixels used for detecting the maximum value is variable.
【請求項3】 差分値と比較する所定値は複数から選択
可能としたことを特徴とする請求項1または2記載の画
像読取装置。
3. The image reading apparatus according to claim 1, wherein a predetermined value to be compared with the difference value can be selected from a plurality of values.
【請求項4】 複数の画素をライン状に配列したイメー
ジセンサにより前記白色板を読み取って得られた1ライ
ン分の画像データうちの該イメージセンサの任意の注目
画素のデータ値とこの周辺の画素のデータ値のうちの最
大値を検出し、該最大値と前記注目画素のデータ値の差
を算出し、この差分値と所定値を比較し、この比較結果
により、前記差分値が前記所定値以上の場合には前記最
大値を前記注目画素の基準白色値とし、前記差分値が前
記所定値よりも小さい場合には前記注目画素のデータ値
をそのままこの注目画素の基準白色値とし、この基準白
色値を用いて前記イメージセンサにより読み取った原稿
画像データにシェーディング補正を行うことを特徴とす
る画像処理方法。
4. A data value of an arbitrary pixel of interest of the image sensor in one line of image data obtained by reading the white plate by an image sensor in which a plurality of pixels are arranged in a line and pixels in the vicinity thereof. Of the data value of the target pixel is calculated, the difference between the maximum value and the data value of the pixel of interest is calculated, and the difference value is compared with a predetermined value. In the above case, the maximum value is used as the reference white value of the pixel of interest, and when the difference value is smaller than the predetermined value, the data value of the pixel of interest is used as the reference white value of the pixel of interest, An image processing method, wherein shading correction is performed on document image data read by the image sensor using a white value.
【請求項5】 複数の画素をライン状に配列したイメー
ジセンサにより前記白色板を読み取って得られた1ライ
ン分の画像データうちの該イメージセンサの任意の注目
画素のデータ値とこの周辺の画素のデータ値のうちの最
大値を検出し、該最大値と前記注目画素のデータ値の差
を算出し、この差分値と所定値を比較し、この比較結果
により、前記差分値が前記所定値以上の場合には前記最
大値を前記注目画素の基準白色値とし、前記差分値が前
記所定値よりも小さい場合には前記注目画素のデータ値
をそのままこの注目画素の基準白色値とし、この基準白
色値を用いて前記イメージセンサにより読み取った原稿
画像データにシェーディング補正を行うことを実現させ
るためのプログラムを格納したことを特徴とする記憶媒
体。
5. A data value of an arbitrary pixel of interest of an image sensor of one line of image data obtained by reading the white plate by an image sensor in which a plurality of pixels are arranged in a line, and pixels in the vicinity thereof. Of the data value of the target pixel is calculated, the difference between the maximum value and the data value of the pixel of interest is calculated, and the difference value is compared with a predetermined value. In the above case, the maximum value is used as the reference white value of the pixel of interest, and when the difference value is smaller than the predetermined value, the data value of the pixel of interest is used as the reference white value of the pixel of interest, A storage medium storing a program for implementing shading correction on document image data read by the image sensor using a white value.
JP2000394956A 2000-12-26 2000-12-26 Image reader and image processing method, and storage medium Withdrawn JP2002199218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000394956A JP2002199218A (en) 2000-12-26 2000-12-26 Image reader and image processing method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000394956A JP2002199218A (en) 2000-12-26 2000-12-26 Image reader and image processing method, and storage medium

Publications (1)

Publication Number Publication Date
JP2002199218A true JP2002199218A (en) 2002-07-12

Family

ID=18860503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000394956A Withdrawn JP2002199218A (en) 2000-12-26 2000-12-26 Image reader and image processing method, and storage medium

Country Status (1)

Country Link
JP (1) JP2002199218A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1542446A1 (en) * 2003-12-09 2005-06-15 Ricoh Co., Ltd. An image reading device and method, and an image forming apparatus and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1542446A1 (en) * 2003-12-09 2005-06-15 Ricoh Co., Ltd. An image reading device and method, and an image forming apparatus and method
CN100403763C (en) * 2003-12-09 2008-07-16 株式会社理光 Image reading device and method, and an image forming apparatus and method
US7755803B2 (en) 2003-12-09 2010-07-13 Ricoh Company, Ltd. Image reading device and method, and an image forming apparatus and method

Similar Documents

Publication Publication Date Title
JPH04363967A (en) Original reader
JP4513622B2 (en) Image reading device
US7251064B2 (en) Calibration of an image scanning system
JP4150316B2 (en) Image reading apparatus and shading correction method for the same
JP2002199218A (en) Image reader and image processing method, and storage medium
JP2002344737A (en) Image reader
JP2002190929A (en) Image reader, image processing method and storage medium
JP2002262083A (en) Image processor
US6028966A (en) Image reading apparatus and method including pre-scanning
JP2006245739A (en) Image reading apparatus and image reading method
JP2003198809A (en) Original size detection apparatus, original size detection method, and image forming apparatus
JPH0380668A (en) High quality of image scanner
JPH08289144A (en) Video scanner device
JP2002300392A (en) Shading correction data generator, white shading correction device, image reader, image forming device, shading correction data generating method, program and storage medium
JP2003032452A (en) Image reader
JP2006107382A (en) Image processing controller and image processing control method
JPS62115973A (en) Picture processing method and its device
JP2003032490A (en) Image processing apparatus
JPH078005B2 (en) Image processing device
JPS6318776A (en) Picture processor
JP2002165092A (en) Image processor and image processing method
JPH0865506A (en) Picture reader
JP2003018374A (en) Method for identifying defective position of shading correction plate and for eliminating influence thereof in image reader
JP2010103874A (en) Image processing apparatus, program and storage medium
JPH07264401A (en) Image reader

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080304