JPH1169154A - Method and device for correcting shading - Google Patents

Method and device for correcting shading

Info

Publication number
JPH1169154A
JPH1169154A JP9236449A JP23644997A JPH1169154A JP H1169154 A JPH1169154 A JP H1169154A JP 9236449 A JP9236449 A JP 9236449A JP 23644997 A JP23644997 A JP 23644997A JP H1169154 A JPH1169154 A JP H1169154A
Authority
JP
Japan
Prior art keywords
shading
data
shading correction
image
sub
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
JP9236449A
Other languages
Japanese (ja)
Inventor
Noriyoshi Osozawa
憲良 遅沢
Takashi Sugiura
崇 杉浦
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 JP9236449A priority Critical patent/JPH1169154A/en
Publication of JPH1169154A publication Critical patent/JPH1169154A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To speedily and precisely correct shading with a simple configuration by performing shading compensation by using a histogram mode detected by a histogram mode detecting means for every pixel. SOLUTION: Black shading compensation data and white shading compensation data are fetched before reading an original image. Next, the original image is read. Read original image data is supplied to a shading compensating circuit 106, a subtracter 109 performs black shading compensation and a multiplier 110 performs white shading compensation receptively with an the shading compensation data that is fetched before reading. In such cases, shading compensation is performed by using a histogram mode that is detected by a histogram mode detection circuit 102 and in each pixel.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、複写機等
のCCD(撮像素子)ラインセンサ等の固体撮像素子を
用いた画像読取装置に適用され、固体撮像素子の感度ば
らつき補正や、露光用の光源体の配光補正として行われ
る、或いは、読み取ったデータに生じる機械及び光学系
によるシェーディングを、白色補正板から読み取ったシ
ェーディングデータによって補正するシェーディング補
正方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is applied to an image reading apparatus using a solid-state image pickup device such as a CCD (image pickup device) line sensor such as a copying machine. The present invention relates to a shading correction method and apparatus for correcting shading by a machine and an optical system performed as light distribution correction of a light source body or generated in read data by shading data read from a white correction plate.

【0002】[0002]

【従来の技術】従来のシェーディング補正装置の構成を
図10に示す。同図において、n画素のCCDラインセ
ンサ(以下、CCDと記述する)1001の出力は、サ
ンプルホールド回路(以下、SH回路と記述する)10
02、ゲインコントロールアンプ(以下、GCAと記述
する)1003、クランプ回路(以下、CP回路と記述
する)1004で所定レベルに変換された後、A/D変
換器1005でデジタルデータに変換され、シェーディ
ング補正回路1006に供給される。
2. Description of the Related Art The configuration of a conventional shading correction device is shown in FIG. In the figure, the output of an n-pixel CCD line sensor (hereinafter referred to as CCD) 1001 is a sample-and-hold circuit (hereinafter referred to as SH circuit) 10.
02, a gain control amplifier (hereinafter, referred to as GCA) 1003, a clamp circuit (hereinafter, referred to as a CP circuit) 1004, which is converted to a predetermined level by an A / D converter 1005, and is converted to digital data and shaded. It is supplied to the correction circuit 1006.

【0003】シェーディング補正回路1006は、黒シ
ェーディング補正部1011と白シェーディング補正部
1026とからなる。
The shading correction circuit 1006 includes a black shading correction unit 1011 and a white shading correction unit 1026.

【0004】黒シェーディング補正部1011は、n×
13ビット構成の黒メモリ1007、黒メモリ1007
の出力データと入力データとを加算する加算器100
8、黒メモリ1007の出力データを画素ごとに平均化
する平均化回路1099、入力データと平均化回路10
99の出力データの減算処理を行う減算器1010から
なり、次の動作により黒シェーディング補正処理を行
う。
The black shading correction unit 1011 has nx
13-bit black memory 1007, black memory 1007
Adder 100 for adding output data and input data of
8. an averaging circuit 1099 for averaging the output data of the black memory 1007 for each pixel;
It comprises a subtractor 1010 for performing a subtraction process on the output data of 99, and performs a black shading correction process by the following operation.

【0005】入力データを所定ライン数分だけ加算し、
黒メモリ1007へ取り込む。一般に黒信号はA/D変
換器1005の量子化サイズ8ビット、256階調に対
して、32階調あれば十分に表現することができるた
め、13ビット構成の黒メモリ1007を用いた場合、
256ラインまでの加算処理が可能である。
The input data is added by a predetermined number of lines,
It is taken into the black memory 1007. In general, a black signal can be sufficiently expressed by using 32 gradations with respect to a quantization size of 8 bits and 256 gradations of the A / D converter 1005. Therefore, when a 13-bit black memory 1007 is used,
Addition processing up to 256 lines is possible.

【0006】黒メモリ1007に取り込まれたデータ
は、黒シェーディング補正データとなる。この黒シェー
ディング補正データは、平均化回路1099で平均化さ
れ、減算器1010で入力データの対応画素との減算が
行われ、黒シェーディング補正が完了する。黒シェーデ
ィング補正後の信号データは、(00)hになる。
The data fetched into the black memory 1007 becomes black shading correction data. The black shading correction data is averaged by the averaging circuit 1099, the subtraction of the input data from the corresponding pixel is performed by the subtractor 1010, and the black shading correction is completed. The signal data after the black shading correction is (00) h.

【0007】白シェーディング補正部1026は、n×
13ビット構成の白メモリ1020、白メモリ1020
の出力データと入力データとを加算する加算器102
1、白メモリ1020の出力データを画素ごとに平均化
する平均化回路1022、図示しないシステムコントロ
ーラから設定される白紙ターゲット1024に対する補
正係数を求める補正係数演算回路1023、入力データ
と補正係数演算回路1023の出力データの乗算処理を
行う乗算器1025からなり、次の動作により白シェー
ディング補正処理を行う黒処理と同様に入力データを所
定ライン数分だけ加算し、白メモリ1020へ取り込
む。白信号の表現には8ビット、256階調が必要なた
め、13ビット構成の白メモリ1020を用いた場合、
32ラインまでの加算処理が可能である。
The white shading correction unit 1026 has n ×
13-bit white memory 1020, white memory 1020
Adder 102 for adding the output data and input data of
1. An averaging circuit 1022 for averaging the output data of the white memory 1020 for each pixel, a correction coefficient operation circuit 1023 for obtaining a correction coefficient for a blank target 1024 set by a system controller (not shown), and an input data and correction coefficient operation circuit 1023. The input data is added by a predetermined number of lines in the same manner as in the black processing for performing white shading correction processing by the following operation, and is taken into the white memory 1020. Since the expression of a white signal requires 8 bits and 256 gradations, when a 13-bit white memory 1020 is used,
Addition processing for up to 32 lines is possible.

【0008】白メモリ1020に取り込まれたデータ
は、白シェーディング補正データとなる。この白シェー
ディング補正データは、平均化回路1022で平均化さ
れ、補正係数演算回路1023の出力データと入力デー
タの対応画素との乗算処理が行われ、白シェーディング
補正が完了する。白シェーディング補正後の信号データ
は、白ターゲット1024により設定が可能であるが、
一般には(FF)hに設定される。
The data fetched into the white memory 1020 becomes white shading correction data. The white shading correction data is averaged by the averaging circuit 1022, and the output data of the correction coefficient calculation circuit 1023 is multiplied by the corresponding pixel of the input data to complete the white shading correction. The signal data after the white shading correction can be set by the white target 1024.
Generally, it is set to (FF) h.

【0009】原稿読取装置において、シェーディング補
正は原稿の白、黒レベルを画像処理上の白、黒レベルに
画素ごとに正規化するものであり、一般に正規化する基
準として標準白色板が装備されている。正規化するため
の標準白色板のターゲットレベルが白ターゲット102
4に設定されるデータになる。
In a document reading apparatus, shading correction is to normalize the white and black levels of a document to white and black levels in image processing for each pixel. Generally, a standard white plate is provided as a standard for normalization. I have. The target level of the standard white plate for normalization is white target 102
4 is set as the data.

【0010】原稿読取装置において、シェーディング補
正は次の手順により行われる。
In the document reading apparatus, shading correction is performed according to the following procedure.

【0011】(1)露光用ランプがオフ状態での黒信号
の取り込み 黒シェーディング補正用のデータの取り込みを行う。こ
の従来例においては、最大256ラインまでの平均演算
を行うことができる。平均演算回数はSNをふまえて適
宜設定される。
(1) Capture of black signal when exposure lamp is off The data for black shading correction is captured. In this conventional example, an averaging operation for a maximum of 256 lines can be performed. The average number of calculations is appropriately set based on the SN.

【0012】(2)標準白色板の白信号取り込み 露光用ランプを所定電圧で点灯させ、標準白色板のデー
タの取り込みを行う。この従来例においては、最大32
ラインまでの平均演算を行うことができる。標準白色板
は、濃度の経時変化の少ないものや、バーコード等によ
る濃度管理が行われる。
(2) Capture of white signal from standard white plate The exposure lamp is turned on at a predetermined voltage to capture data from the standard white plate. In this conventional example, a maximum of 32
Average calculation up to the line can be performed. The standard white plate is one in which the density does not change much with time, or the density is controlled by a bar code or the like.

【0013】(3)原稿画像の読み取り 上記(1)、(2)の動作により黒メモリ1007、白
メモリ1024にシェーディング補正用データが格納さ
れる。その後、原稿画像の読み取りが行われ、減算器1
010、乗算器1025では読み取り信号のアドレスと
黒メモリ1007、白メモリ1020のアドレスとを同
期させ、所定の演算を行っていく。
(3) Reading of Original Image The shading correction data is stored in the black memory 1007 and the white memory 1024 by the operations (1) and (2) described above. Thereafter, the original image is read, and the subtractor 1
010 and the multiplier 1025 synchronize the address of the read signal with the addresses of the black memory 1007 and the white memory 1020 and perform a predetermined operation.

【0014】図11はシェーディング補正を図式化して
示す図であり、横軸はCCDラインセンサ1001への
入射光量を、縦軸は出力レベルをそれぞれ示す。
FIG. 11 is a diagram schematically showing shading correction. The horizontal axis indicates the amount of light incident on the CCD line sensor 1001, and the vertical axis indicates the output level.

【0015】図11において、aは標準白色板、bは所
定原稿、b’はシェーディング補正後の原稿の出力特性
を示し、シェーディング補正によって所定原稿bの白、
黒レベルが正規化されることが分かる。
In FIG. 11, a is a standard white plate, b is a predetermined document, and b 'is an output characteristic of the document after shading correction.
It can be seen that the black level is normalized.

【0016】また、図12は、従来の画像読取装置の構
成を示す図であり、同図(a)は標準白色板の読み取り
時を、同図(b)は原稿画像の読み取り時をそれぞれ示
す。図12において1201は標準白色板、1202は
原稿、1203は原稿台ガラス、1204は露光用ラン
プ、1205,1206,1207はミラー、1208
はレンズ、1209はCCDラインセンサである。
FIGS. 12A and 12B show the configuration of a conventional image reading apparatus. FIG. 12A shows the time of reading a standard white plate, and FIG. 12B shows the time of reading a document image. . 12, reference numeral 1201 denotes a standard white plate; 1202, an original; 1203, an original platen glass; 1204, an exposure lamp; 1205, 1206, 1207, mirrors;
Denotes a lens and 1209 denotes a CCD line sensor.

【0017】標準白色板1201には反射濃度データを
表わす図示しないバーコードデータが貼り付けられてい
る。
Bar code data (not shown) representing reflection density data is attached to the standard white plate 1201.

【0018】そして、標準白色板1201に記載された
反射濃度データを表わすバーコードデータを読み取る場
合は図12(a)に示す状態で、また、原稿台ガラス1
203上に載置された原稿1202の画像を読み取る場
合は図12(b)に示す状態となる。そして、露光用ラ
ンプ1204から発せられた照明光は、標準白色板12
01面上で、或いは原稿1202面上で反射し、ミラー
1205,1206,1207を介してレンズ1208
によりCCDラインセンサ1209上に結像される。C
CDラインセンサ1209では、結像された画像が後段
の図示しない画像処理部に入力されて、所定の画像処理
が施されて、図示しないプリンタへ送出されて複写画像
として紙に出力される。
When reading bar code data representing the reflection density data written on the standard white plate 1201, the state shown in FIG.
When reading the image of the document 1202 placed on the document 203, the state shown in FIG. The illumination light emitted from the exposure lamp 1204 is
The lens 1208 is reflected on the surface 01 or on the surface of the original 1202 and passes through mirrors 1205, 1206 and 1207.
To form an image on the CCD line sensor 1209. C
In the CD line sensor 1209, the formed image is input to an image processing unit (not shown) at the subsequent stage, subjected to predetermined image processing, sent to a printer (not shown), and output as a copy image on paper.

【0019】このような従来の画像読取装置におけるシ
ェーディング補正方法は、シェーディングデータを標準
白色板のある固定位置にて数回読み取り、その平均値を
シェーディング補正データとして使用していた。その補
正データとシェーディング目標値との比から図13に示
すようなシェーディング補正係数を算出し、そのシェー
ディング補正係数を図14に示すように画像データの対
応する画素のデータに掛け合わせることでシェーディン
グ補正を行っていた。
In the shading correction method in such a conventional image reading apparatus, shading data is read several times at a fixed position of a standard white plate, and the average value is used as shading correction data. A shading correction coefficient as shown in FIG. 13 is calculated from the ratio between the correction data and the shading target value, and the shading correction coefficient is multiplied by the data of the corresponding pixel of the image data as shown in FIG. Had gone.

【0020】なお、図13中、1301はシェーディン
グ目標値、1302はシェーディングデータである。ま
た、図14中、1401は補正前の画像データ、140
2は補正後の画像データである。
In FIG. 13, reference numeral 1301 denotes a shading target value, and 1302 denotes shading data. In FIG. 14, reference numeral 1401 denotes image data before correction;
Reference numeral 2 denotes image data after correction.

【0021】[0021]

【発明が解決しようとする課題】しかしながら、上述し
た従来装置にあっては、白シェーディング補正を行う際
に図15に示すような問題点があった。
However, the above-mentioned conventional apparatus has a problem as shown in FIG. 15 when performing white shading correction.

【0022】即ち、図15は従来装置における白シェー
ディング補正を行う際の問題点を表わす図であり、同図
(a)は白シェーディング補正データ取り込み時の標準
白色板の出力データのヒストグラムの一例を示し、裾の
広がりが左側に極端に大きい。この場合、平均値は図示
のようにピーク値よりも小さな値となり、正規化を行っ
た場合、図15(b)に示すように、平均値の出力特性
cよりもピーク値の出力特性dの傾きが大きく、e点で
飽和している。従って、画像はe点以降では白が飛び気
味の画像になってしまう。また、ヒストグラムの分布に
よっては黒くつぶれ気味の画像等も発生し得る。更に、
複数の出力を有するCCDに対しては出力ごとのリニア
リティの不整合による画質の劣化を引き起こす恐れがあ
る。
FIG. 15 is a diagram showing a problem in performing white shading correction in a conventional apparatus. FIG. 15A shows an example of a histogram of output data of a standard white plate when white shading correction data is captured. The spread of the skirt is extremely large on the left. In this case, the average value becomes smaller than the peak value as shown in the drawing, and when the normalization is performed, as shown in FIG. 15B, the output characteristic d of the peak value is more than the output characteristic c of the average value. The slope is large and saturated at point e. Therefore, the image becomes an image in which white tends to fly after point e. In addition, depending on the distribution of the histogram, an image or the like that tends to be blackened may occur. Furthermore,
For a CCD having a plurality of outputs, the image quality may be degraded due to a mismatch in linearity of each output.

【0023】このように、画像データのヒストグラムの
非対称分布によって従来の平均値を用いたシェーディン
グ補正では画質の劣化を禁じ得ない。近年のデジタル機
器の高速化に伴い、このような問題が大きくなると予想
される。
As described above, the conventional shading correction using the average value due to the asymmetric distribution of the histogram of the image data cannot prevent the deterioration of the image quality. Such problems are expected to increase with the speeding up of digital devices in recent years.

【0024】また、上述した固定位置でシェーディング
データを読み取る従来例にあっては、シェーディングデ
ータを標準白色板の読み取る場所に、ごみ、埃等が存在
した場合、原稿画像を読み取ったデータに必要なシェー
ディング補正データが得られず、図16に示すように出
力画像に影響を及ぼすという問題点があった。
In the conventional example of reading the shading data at the fixed position described above, if there is dust, dirt, or the like in the place where the shading data is read on the standard white plate, the data necessary for reading the original image is required. There is a problem in that shading correction data cannot be obtained and the output image is affected as shown in FIG.

【0025】図16(a)中、1601はシェーディン
グ目標値、1602はシェーディングデータである。ま
た、図16(b)中、1603は補正前の画像データ、
1604は補正後の画像データである。
In FIG. 16A, reference numeral 1601 denotes a shading target value, and 1602 denotes shading data. In FIG. 16B, reference numeral 1603 denotes image data before correction;
Reference numeral 1604 denotes image data after correction.

【0026】本発明は上述した従来の技術の有するこの
ような問題点に鑑みてなされたものであり、その第1の
目的とするところは、簡単な構成で、より高速で高精度
なシェーディング補正を行うことができるシェーディン
グ補正方法及び装置を提供しようとするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems of the prior art, and a first object of the present invention is to provide a simple configuration, a high-speed and high-precision shading correction. It is an object of the present invention to provide a shading correction method and apparatus capable of performing the following.

【0027】また、本発明の第2の目的とするところ
は、標準白色板に、ごみ、埃等があっても画像データへ
の影響を低減することができると共に、装置の生産コス
トを下げることができるシェーディング補正方法及び装
置を提供しようとするものである。
A second object of the present invention is to reduce the influence on the image data even if the standard white plate has dust or dirt, and to reduce the production cost of the apparatus. It is an object of the present invention to provide a shading correction method and a shading correction method.

【0028】[0028]

【課題を解決するための手段】上記第1の目的を達成す
るために請求項1記載のシェーディング補正方法は、画
像読取装置における固体撮像素子の各画素ごとにヒスト
グラムの最頻値を計算するヒストグラム最頻値計算工程
と、前記ヒストグラム最頻値計算工程により算出された
ヒストグラムの最頻値を用いてシェーディング補正を行
うシェーディング補正工程とを有することを特徴とす
る。
According to a first aspect of the present invention, there is provided a shading correction method for calculating a mode of a histogram for each pixel of a solid-state imaging device in an image reading apparatus. A mode calculation step; and a shading correction step of performing shading correction using the mode of the histogram calculated in the histogram mode calculation step.

【0029】また、上記第1の目的を達成するために請
求項2記載のシェーディング補正装置は、画像読取装置
における固体撮像素子の各画素ごとにヒストグラムの最
頻値を計算するヒストグラム最頻値計算手段と、前記ヒ
ストグラム最頻値計算手段により算出されたヒストグラ
ムの最頻値を用いてシェーディング補正を行うシェーデ
ィング補正手段とを有することを特徴とする。
According to another aspect of the present invention, there is provided a shading correction apparatus for calculating a mode of a histogram for each pixel of a solid-state image sensor in an image reading apparatus. Means, and shading correction means for performing shading correction using the mode of the histogram calculated by the histogram mode calculation means.

【0030】また、上記第1の目的を達成するために請
求項3記載のシェーディング補正装置は、請求項2記載
のシェーディング補正装置において、前記ヒストグラム
最頻値計算手段は、少なくともn画素×mライン分のペ
ージメモリ手段と、複数の階調を比較する比較手段と、
前記比較手段の各階調の度数を計測する計測手段と、前
記計測手段の計測結果より前記比較手段の各階調に対し
て最も頻度の高い階調を判断する判断手段とを有するこ
とを特徴とする。
According to a third aspect of the present invention, there is provided a shading correction device according to the second aspect, wherein the histogram mode calculating means includes at least n pixels × m lines. Page memory means, a comparing means for comparing a plurality of gradations,
Measuring means for measuring the frequency of each tone of the comparing means, and judging means for judging the most frequent tone for each tone of the comparing means from the measurement result of the measuring means. .

【0031】また、上記第1の目的を達成するために請
求項4記載のシェーディング補正装置は、請求項3記載
のシェーディング補正装置において、前記ヒストグラム
最頻値計算手段は、前記比較手段と前記計測手段と前記
判断手段とによる一連の作業が前記ページメモリ手段の
各画素に対して行われることを特徴とする。
In order to achieve the first object, a shading correction device according to a fourth aspect of the present invention is the shading correction device according to the third aspect, wherein the histogram mode calculation means includes the comparison means and the measurement means. A series of operations by the means and the determination means are performed for each pixel of the page memory means.

【0032】また、上記第2の目的を達成するために請
求項5記載のシェーディング補正方法は、白色補正板を
撮像素子により主方向及び副方向に走査して読み取った
シェーディングデータを用いて、対象画像を撮像素子に
より主方向及び副方向に走査して読み取った画像データ
のシェーディングを補正する画像読取装置のシェーディ
ング補正方法であって、前記シェーディングデータの副
方向の複数のデータから平均値をシェーディングデータ
とし、そのデータと所定値との比から算出されるシェー
ディング補正係数を用いて、読み取った画像データをシ
ェーディングを補正することを特徴とする。
According to a fifth aspect of the present invention, there is provided a shading correction method according to the fifth aspect, wherein a white correction plate is scanned by an image sensor in a main direction and a sub direction to read the shading data. A shading correction method for an image reading apparatus for correcting shading of image data read by scanning an image in a main direction and a sub-direction by an image sensor, wherein an average value of the shading data is calculated from a plurality of data in the sub-direction of the shading data. And shading correction of the read image data using a shading correction coefficient calculated from a ratio of the data to a predetermined value.

【0033】また、上記第2の目的を達成するために請
求項6記載のシェーディング補正方法は、請求項5記載
のシェーディング補正方法において、前記シェーディン
グデータの副方向の複数のデータの中の最大値と最小値
とを除いた値から平均値を求めることを特徴とする。
According to a sixth aspect of the present invention, there is provided a shading correction method according to the fifth aspect, wherein the maximum value among a plurality of data in the sub-direction of the shading data is provided. The average value is obtained from the value excluding the minimum value and the minimum value.

【0034】また、上記第2の目的を達成するために請
求項7記載のシェーディング補正方法は、請求項5記載
のシェーディング補正方法において、前記シェーディン
グデータを副方向に複数の場所で読み取り且つ各場所で
複数回読み取ることを特徴とする。
According to a seventh aspect of the present invention, there is provided a shading correction method according to the fifth aspect, wherein the shading data is read at a plurality of locations in a sub-direction and is provided at each location. Is read a plurality of times.

【0035】また、上記第2の目的を達成するために請
求項8記載のシェーディング補正装置は、白色補正板を
撮像素子により主方向及び副方向に走査して読み取った
シェーディングデータを用いて、対象画像を撮像素子に
より主方向及び副方向に走査して読み取った画像データ
のシェーディングを補正する画像読取装置のシェーディ
ング補正装置であって、前記シェーディングデータの副
方向の複数のデータから平均値を求める平均値算出手段
と、前記平均値算出手段により算出された平均値をシェ
ーディングデータとし且つそのシェーディングデータと
所定値との比からシェーディング補正係数を算出するシ
ェーディング補正係数算出手段と、前記シェーディング
補正係数算出手段により算出されたシェーディング補正
係数を用いて読み取った画像データのシェーディングを
補正するシェーディング補正手段とを有することを特徴
とする。
According to another aspect of the present invention, there is provided a shading correction device for scanning a white color correction plate by using an image sensor in a main direction and a sub direction to read a shading data. What is claimed is: 1. A shading correction device for an image reading device, which scans an image in an image sensor in a main direction and a sub direction to correct shading of read image data, wherein an averaging device calculates an average value from a plurality of data in the sub direction of the shading data. Value calculation means, shading correction coefficient calculation means for using the average value calculated by the average value calculation means as shading data, and calculating a shading correction coefficient from a ratio of the shading data to a predetermined value; and the shading correction coefficient calculation means Using the shading correction coefficient calculated by And having a shading correction means for correcting the shading of the image data Tsu.

【0036】また、上記第2の目的を達成するために請
求項9記載のシェーディング補正装置は、請求項8記載
のシェーディング補正装置において、前記平均値算出手
段は、前記シェーディングデータの副方向の複数のデー
タの中の最大値と最小値とを除いた値から平均値を求め
ることを特徴とする。
In order to achieve the second object, a shading correction device according to a ninth aspect of the present invention is the shading correction device according to the eighth aspect, wherein the average value calculating means includes a plurality of shading data sub-directions. The average value is obtained from the value obtained by excluding the maximum value and the minimum value from the data.

【0037】また、上記第2の目的を達成するために請
求項10記載のシェーディング補正装置は、請求項8記
載のシェーディング補正装置において、前記シェーディ
ングデータを副方向に複数の場所で読み取り且つ各場所
で複数回読み取る読取手段を有することを特徴とする。
According to a tenth aspect of the present invention, there is provided a shading correction apparatus according to the tenth aspect, wherein the shading data is read at a plurality of locations in a sub-direction. And a reading means for reading a plurality of times.

【0038】[0038]

【発明の実施の形態】以下、本発明の各実施の形態を図
1〜図9に基づき説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to FIGS.

【0039】(第1の実施の形態)まず、本発明の第1
の実施の形態を図1〜図4に基づき説明する。図1は、
本発明の第1の実施の形態に係るシェーディング補正装
置の構成を示すブロック図であり、同図において、上述
した従来例の図10と同一部分には同一符号が付してあ
る。
(First Embodiment) First, the first embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS. FIG.
FIG. 1 is a block diagram illustrating a configuration of a shading correction device according to a first embodiment of the present invention, in which the same parts as those in FIG. 10 of the above-described conventional example are denoted by the same reference numerals.

【0040】図1において図10と異なる点は、図10
の構成にページメモリ回路101及びヒストグラム最頻
値検出回路102を付加すると共に、シェーデイング補
正回路1006とは異なる構成のシェーデイング補正回
路106を設けたことである。
FIG. 1 differs from FIG. 10 in that FIG.
And a shading correction circuit 106 having a configuration different from that of the shading correction circuit 1006.

【0041】ヒストグラム最頻値検出回路102は、コ
ンパレータ103、カウンタ群104及び最大値検出回
路105を有している。また、シェーデイング補正回路
106は、黒メモリ107、白メモリ108、減算器1
09、乗算器110、補正係数演算回路1023及び白
ターゲット1024を有している。
The histogram mode detection circuit 102 includes a comparator 103, a group of counters 104, and a maximum value detection circuit 105. The shading correction circuit 106 includes a black memory 107, a white memory 108, and a subtractor 1.
09, a multiplier 110, a correction coefficient operation circuit 1023, and a white target 1024.

【0042】図1において、n画素のCCDラインセン
サ1001の出力は、SH回路1002、GCA100
3、CP回路1004で所定レベルに変換された後、8
ビットのA/D変換器1005でデジタルデータに変換
される。
In FIG. 1, the output of a CCD line sensor 1001 of n pixels is output from an SH circuit 1002 and a GCA 100.
3. After being converted to a predetermined level by the CP circuit 1004, 8
The data is converted into digital data by a bit A / D converter 1005.

【0043】原稿画像の読み取りに先立ち、黒シェーデ
ィング補正データの取り込み及び白シェーディング補正
データの取り込みが次のように行われる。
Prior to reading the original image, the loading of the black shading correction data and the loading of the white shading correction data are performed as follows.

【0044】(黒シェーディング補正データの取り込
み)図示しない露光用ランプはオフされCCDラインセ
ンサ1001に外光の入射が遮断された状態で、CCD
ラインセンサ1001からの信号読み取りが行われる。
A/D変換器1005で変換されたデジタルデータは、
ページメモリ回路101に記憶される。このページメモ
リ回路101は、n×m×8ビット構成を持ち、n画素
のCCDラインセンサ1001の出力をmライン分記憶
することができ、ここではm=256とする。
(Retrieval of black shading correction data) The exposure lamp (not shown) is turned off, and the CCD
Signal reading from the line sensor 1001 is performed.
The digital data converted by the A / D converter 1005 is
It is stored in the page memory circuit 101. This page memory circuit 101 has a configuration of n × m × 8 bits, and can store the output of the n-pixel CCD line sensor 1001 for m lines. Here, m = 256.

【0045】ページメモリ回路101に記憶されたデー
タは、ヒストグラム最頻値検出回路102によって読み
出しアドレスの制御が行われ、蓄積データを順次ヒスト
グラム最頻値検出回路102に転送する。読み出し制御
は、図2に示すように第1画素、mライン分のデータを
1つのデータ系列として順次第n画素目までを転送す
る。ヒストグラム最頻値検出回路102は、まず、ペー
ジメモリ回路101の第1画素データ、256個(25
6ライン分のデータ)を指定し、順次読み出す。読み出
されたデータは、256階調のコンパレータ103でデ
ータ値判別が行われ、8ビットのカウンタ群104の対
応するカウンタのクロックに供給され、カウント値が1
上がる。256個のデータがコンパレータ103、カウ
ンタ群104で全て処理された後、最大値検出回路10
5によって最頻値が決定される。
The data stored in the page memory circuit 101 is read address controlled by the histogram mode detection circuit 102, and the stored data is sequentially transferred to the histogram mode detection circuit 102. In the read control, as shown in FIG. 2, data for the first pixel and m lines are sequentially transferred to the n-th pixel as one data series. First, the histogram mode detection circuit 102 determines whether the first pixel data of the page memory circuit 101 has 256 pixels (25 pixels).
6 lines of data) and read them out sequentially. The read data is subjected to data value discrimination by a 256-gradation comparator 103, and is supplied to a clock of a corresponding counter of an 8-bit counter group 104 so that the count value is 1
Go up. After 256 data are all processed by the comparator 103 and the counter group 104, the maximum value detection circuit 10
5, the mode is determined.

【0046】図3はヒストグラム最頻値検出回路102
の前記動作を図式化したもので、横軸はコンパレータ1
03で判別される256階調を、縦軸はカウンタ群10
4のカウンタ値をそれぞれ示す。この場合、最大値は
“4”となる。最大値検出回路105の出力は、シェー
デイング補正回路106の黒メモリ107の第1画素に
相当するアドレスに格納される。次に第2画素〜第n画
素までのデータが同様に処理される。
FIG. 3 shows a histogram mode detection circuit 102.
The above operation is schematically illustrated, and the horizontal axis is the comparator 1
And the vertical axis indicates the counter group 10
4 respectively. In this case, the maximum value is “4”. The output of the maximum value detection circuit 105 is stored at an address corresponding to the first pixel of the black memory 107 of the shading correction circuit 106. Next, data of the second pixel to the n-th pixel is processed in the same manner.

【0047】(白シェーディング補正データの取り込
み)図示しない露光用ランプをオンし、図示しない標準
白色板の256ライン分のデータをページメモリ回路1
01に取り込む。黒シェーディング補正データの取り込
みと同様に、各画素について最頻値が求められる。求め
られた最頻値は、白ターゲット1024に対する補正係
数演算回路1023で補正が行われた後、白メモリ10
8の対応アドレスに格納される。次に原稿画像の読み取
りが行われる。
(Retrieval of White Shading Correction Data) A not-shown exposure lamp is turned on, and data for 256 lines of a standard white plate (not shown) is stored in the page memory circuit 1.
01. As in the case of the black shading correction data, the mode value is obtained for each pixel. The obtained mode is corrected by the correction coefficient calculation circuit 1023 for the white target 1024, and then the white memory 10
8 is stored at the corresponding address. Next, a document image is read.

【0048】読み込まれた原稿画像データは、シェーデ
イング補正回路106に供給され、読み取り前に取り込
まれたシェーデイング補正データによって、減算器10
9による黒シェーデイング補正、乗算器110による白
シェーデイング補正がそれぞれ行われる。シェーデイン
グ補正後のデータは、後段の図示しない画像処理回路へ
供給される。
The read original image data is supplied to a shading correction circuit 106, and the subtracter 10 uses the shading correction data taken in before reading.
9 and the white shading correction by the multiplier 110 are performed. The data after the shading correction is supplied to a subsequent image processing circuit (not shown).

【0049】図4は1ラインの蓄積時間を100μse
cとした場合の原稿画像読み取りのタイミングを示すタ
イミングチャートである。
FIG. 4 shows that the accumulation time of one line is 100 μsec.
9 is a timing chart showing the timing of reading a document image when the setting is c.

【0050】図4(a)は本実施の形態におけるタイミ
ングを示す。図4(a)に示すように、まず、黒シェー
ディング補正データの取り込みに256ライン×100
μsec=25.6msec必要とし、また、黒データ
の演算にかかる時間が黒シェーディング補正データの取
り込みと同様に256×n画素のデータを扱うので、2
56×100μsec=25.6msec必要とし、更
に、白データの取り込み及び演算も同様に25.6ms
ec必要とするので、スタートから102.4msec
後に原稿画像の読み取りが行われる。
FIG. 4A shows the timing in the present embodiment. As shown in FIG. 4A, first, 256 lines × 100
μsec = 25.6 msec, and the time required for the calculation of the black data is 256 × n pixels as in the case of the input of the black shading correction data.
56 × 100 μsec = 25.6 msec is required, and the acquisition and calculation of white data are similarly performed for 25.6 ms.
ec required, 102.4msec from start
The reading of the document image is performed later.

【0051】図4(b)はページメモリ回路101を用
いずにヒストグラム最頻値検出を行った場合の原稿画像
読み取りのタイミングを示すタイミングチャートであ
る。図4(b)に示すように、第1画素の演算を行うの
に256ラインの取り込みを行い、各画素について同様
に256ラインの取り込みを必要とする場合である。こ
の場合、スタートから原稿画像読み取り開始までは2
5.6msec×n画素分の時間を必要とし、n=50
00とすると、実に256秒、約4分の時間を必要とす
る。また、この時間の半分は、白シェーディング補正デ
ータの取り込みのため、露光用ランプがオン状態となる
ため、電力、熱及び安全性の面で望ましいものではな
い。従って、本実施の形態において、ページメモリ回路
101は最低限必要なものである。
FIG. 4B is a timing chart showing the timing of reading the original image when the histogram mode value is detected without using the page memory circuit 101. As shown in FIG. 4B, this is a case where 256 lines are taken in to perform the operation of the first pixel, and 256 lines need to be taken in the same manner for each pixel. In this case, from the start to the start of reading the original image, 2
It takes 5.6 msec × n pixels, and n = 50
Assuming that the time is 00, it takes 256 seconds and about 4 minutes. Also, half of this time is not desirable in terms of power, heat, and safety because the exposure lamp is turned on to capture the white shading correction data. Therefore, in this embodiment, the page memory circuit 101 is a minimum required.

【0052】以上詳述したように、本実施の形態に係る
シェーディング補正装置によれば、画素ごとのヒストグ
ラム最頻値検出回路102を設け、このヒストグラム最
頻値検出回路102により検出したヒストグラム最頻値
を用いてシェーディング補正を行うものである。更に言
及すれば、ページメモリ回路101に取り込んだデータ
から各画素のごとのヒストグラム最頻値をヒストグラム
最頻値検出回路102により求めることによって、簡単
な構成で且つより高速で高精度なシェーディング補正を
行うことができる。
As described in detail above, according to the shading correction apparatus according to the present embodiment, the histogram mode detection circuit 102 for each pixel is provided, and the histogram mode detection circuit 102 detects the histogram mode. The shading correction is performed using the values. More specifically, by obtaining the histogram mode value for each pixel from the data fetched into the page memory circuit 101 by the histogram mode detection circuit 102, the shading correction with a simple configuration and at higher speed and with higher accuracy can be performed. It can be carried out.

【0053】(第2の実施の形態)次に、本発明の第2
の実施の形態を図5〜図8に基づき説明する。図5は本
発明の第2の実施の形態に係るシェーディング補正装置
の構成を示すブロック図である。同図中、501はCC
Dリニアセンサ、502はA/D変換器で、CCDリニ
アセンサ501の出力をデジタル値に変換するものであ
る。503はラインメモリ回路で、取り込んだ画像デー
タを格納するものである。504はセレクタ、505は
最大値/最小値検出回路で、図示しない標準白色板から
シェーディングデータを取り込み、その主方向は同一場
所で副方向に異なるデータの中から最大値と最小値を取
り除くものである。506は平均化回路で、最大値/最
小値検出回路505により最大値と最小値を取り除いた
データの平均値を求めるものである。507はシェーデ
ィングメモリ回路で、主方向の各位置の平均値を格納す
るものである。508はシェーディング補正回路で、原
稿画像を取り込んで得られる画像データの主方向に対応
するシェーディングメモリ回路507内の平均値から算
出するシェーディング補正係数を掛け合わせて出力する
ものである。
(Second Embodiment) Next, a second embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS. FIG. 5 is a block diagram showing a configuration of a shading correction device according to the second embodiment of the present invention. In the figure, 501 is CC
A D linear sensor 502 is an A / D converter, which converts the output of the CCD linear sensor 501 into a digital value. A line memory circuit 503 stores the captured image data. Reference numeral 504 denotes a selector, and reference numeral 505 denotes a maximum / minimum value detection circuit which takes in shading data from a standard white plate (not shown) and removes the maximum value and the minimum value from data different in the main direction in the same direction in the sub-direction. is there. Reference numeral 506 denotes an averaging circuit for obtaining an average value of data from which the maximum value and the minimum value have been removed by the maximum value / minimum value detection circuit 505. A shading memory circuit 507 stores an average value of each position in the main direction. A shading correction circuit 508 multiplies a shading correction coefficient calculated from an average value in the shading memory circuit 507 corresponding to the main direction of image data obtained by fetching a document image and outputs the result.

【0054】セレクタ504は、前記標準白色板からシ
ェーディングデータを取り込む場合は、最大値/最小値
検出回路505側に接続され、また、画像データを取り
込む場合は、シェーディング補正回路508側に接続さ
れる。
The selector 504 is connected to the maximum value / minimum value detection circuit 505 when taking in shading data from the standard white plate, and is connected to the shading correction circuit 508 in taking in image data. .

【0055】次に上記構成になる本実施の形態に係るシ
ェーディング補正装置の動作を説明する。
Next, the operation of the shading correction apparatus according to the present embodiment having the above configuration will be described.

【0056】図示しない標準白色板からシェーディング
データを取り込む場合、セレクタ504を最大値/最小
値検出回路505側に接続する。この最大値/最小値検
出回路505では、最大値と最小値を検出し、その和を
別に出力する。平均化回路506では、主方向は同一場
所で副方向に異なるデータを加算し、最大値/最小値検
出回路505で得られた値を加算値から引いて、所定値
(副方向の総データ取り込み数がfの場合、「f−2」
で除算する)で除算して平均値を求める。シェーディン
グメモリ回路507では、前記平均値を格納する。
To load shading data from a standard white plate (not shown), the selector 504 is connected to the maximum / minimum value detection circuit 505 side. The maximum / minimum value detection circuit 505 detects the maximum value and the minimum value and outputs the sum separately. The averaging circuit 506 adds different data in the sub-direction at the same location in the main direction, subtracts the value obtained by the maximum / minimum value detection circuit 505 from the added value, and obtains a predetermined value (total data acquisition in the sub-direction). If the number is f, "f-2"
Divide by) to obtain the average value. The shading memory circuit 507 stores the average value.

【0057】次に画像データを取り込む場合は、セレク
タ504をシェーディング補正回路508側に接続す
る。ラインメモリ回路503から出力された画像データ
はシェーディング補正回路508に入力され、シェーデ
ィングメモリ回路507内に格納されたシェーディング
データ及びシェーディング目標値から算出されたシェー
ディング補正係数を算出し、入力された画像データに掛
け合わせて出力される。
Next, when fetching image data, the selector 504 is connected to the shading correction circuit 508 side. The image data output from the line memory circuit 503 is input to a shading correction circuit 508, and a shading correction coefficient calculated from the shading data stored in the shading memory circuit 507 and the shading target value is calculated. Is output.

【0058】図6は前記標準白色板上のシェーディング
データの取り込み位置を示す図である。同図において、
主方向にnポイントのデータを取り込み、副方向に1ポ
イントのデータを取り込む。また、副方向の各ポイント
でj回データを取り込む。つまり、各画素でj×1回の
データを取り込む。
FIG. 6 is a diagram showing the position where the shading data is taken in on the standard white plate. In the figure,
Data of n points is taken in the main direction, and data of one point is taken in the sub direction. Data is taken in j times at each point in the sub-direction. That is, each pixel takes in data of j × 1 time.

【0059】図7に前記標準白色板上でのシェーディン
グデータとその効果を示す。図7(a)に前記標準白色
板上での読み取り位置を示す。主方向にE1〜Em、副
方向にL1〜Lnとし、座標(Eh,Li)、(Ej,
Lk)に埃があったとすると、シェーディングデータは
図7(b)〜図7(d)のような波形になる。これらの
副方向のデータの平均値をとると、図7(e)の点線部
のように平均的な波形に近くなるが、埃のあった場所は
少なからず影響を受けてしまう。
FIG. 7 shows shading data on the standard white plate and its effect. FIG. 7A shows a reading position on the standard white plate. E1 to Em in the main direction and L1 to Ln in the sub direction, the coordinates (Eh, Li), (Ej,
If dust is present at Lk), the shading data has waveforms as shown in FIGS. 7B to 7D. Taking the average value of the data in these sub-directions approximates an average waveform as shown by the dotted line in FIG. 7 (e), but the location where dust is present is affected to some extent.

【0060】また、露光用ランプの出力が変動している
場合、図7(b)〜図7(d)の縦向きの矢印のように
シェーディングデータも変動してしまう。この影響を無
くすためには、同一場所で複数回シェーディングデータ
をとる必要がある。
When the output of the exposure lamp fluctuates, the shading data also fluctuates as shown by the vertical arrows in FIGS. 7B to 7D. In order to eliminate this effect, it is necessary to take shading data a plurality of times at the same place.

【0061】図8に実際の画像読み取りのシーケンスを
示す。図8において、画像読み取り動作が命令されると
シェーディング動作に入り、ステップS801で画像読
み取り位置を標準白色板に移動する。次にステップS8
02でシェーディングサンプル動作が終了したか否かを
判断する。そして、シェーディングサンプル動作が終了
しない場合は、副方向に同一場所でシェーディングデー
タの取り込みを繰り返して実行する。次にステップS8
03で同一場所でのシェーディングデータの取り込みが
完了したか否かを判断する。そして、同一場所でのシェ
ーディングデータの取り込みが完了した場合は、ステッ
プS805で画像読み取り位置を同じ標準白色板上の異
なる場所に移動してシェーディングデータの取り込みを
繰り返した後、前記ステップS802へ戻ってシェーデ
ィングサンプル動作が終了したか否かを判断する。
FIG. 8 shows an actual image reading sequence. In FIG. 8, when an image reading operation is commanded, a shading operation starts, and in step S801, the image reading position is moved to a standard white plate. Next, step S8
At 02, it is determined whether or not the shading sample operation has been completed. If the shading sample operation does not end, the acquisition of the shading data is repeatedly executed at the same location in the sub direction. Next, step S8
At 03, it is determined whether or not the capture of the shading data at the same location is completed. If the capturing of the shading data at the same location is completed, the image reading position is moved to a different location on the same standard white plate in step S805 to repeat the capturing of the shading data, and then the process returns to step S802. It is determined whether the shading sample operation has been completed.

【0062】また、前記ステップS803において同一
場所でのシェーディングデータの取り込みが完了しない
場合は、ステップS804でシェーディングデータの取
り込みを行った後、前記ステップS803へ戻って同一
場所でのシェーディングデータの取り込みが完了したか
否かを判断する。
If the loading of the shading data at the same location is not completed in step S803, the loading of the shading data is performed at step S804, and the process returns to step S803 to capture the shading data at the same location. It is determined whether the process is completed.

【0063】一方、前記ステップS802においてシェ
ーディングサンプル動作が終了した場合は、ステップS
806でシェーディングデータ処理を行い、画像取り込
み動作に入る。ここでのシェーディングデータ処理と
は、図5の最大値/最小値検出回路505の最大値と最
小値の検出、総データの加算、最大値と最小値を引いた
値で平均化回路506で平均値を算出、その算出値をシ
ェーディングメモリ回路507へ格納することである。
On the other hand, if the shading sample operation has been completed in step S802, the process proceeds to step S802.
At 806, shading data processing is performed, and an image capturing operation is started. The shading data processing here means detection of the maximum value and the minimum value of the maximum value / minimum value detection circuit 505 in FIG. 5, addition of the total data, and averaging by the value obtained by subtracting the maximum value and the minimum value by the averaging circuit 506. Calculating the value and storing the calculated value in the shading memory circuit 507.

【0064】画像取り込み動作に入ると、まず、ステッ
プS807で画像読み取り位置を画像取り込み位置に移
動する。次にステップS808で画像取り込みが終了し
たか否かを判断する。そして、画像取り込みが終了した
場合は、何も処理せずにそのまま本処理動作を終了す
る。また、前記ステップS808において画像取り込み
が終了していない場合は、ステップS809で画像取り
込みを行い、次のステップS810でシェーディングメ
モリ回路507内のデータによりシェーディング補正を
行う。次にステップS811でデータをプリンタ等の出
力装置に出力し、次のステップS812で画像取り込み
位置を移動させた後、前記ステップS808へ戻り、画
像取り込みが終了したか否かを判断する。画像取り込み
が終了するまで、これらの一連の動作を繰り返す。
Upon entering the image capturing operation, first, in step S807, the image reading position is moved to the image capturing position. Next, in step S808, it is determined whether or not image capturing has been completed. Then, when the image capturing is completed, this processing operation ends without performing any processing. If image capture has not been completed in step S808, image capture is performed in step S809, and shading correction is performed using data in the shading memory circuit 507 in the next step S810. Next, in step S811, the data is output to an output device such as a printer. After moving the image capturing position in the next step S812, the process returns to step S808 to determine whether the image capturing is completed. These series of operations are repeated until image capturing is completed.

【0065】ここでのシェーディング補正とは、シェー
ディングメモリ回路507内のデータ、シェーディング
目標値との比から画像取り込みデータを補正することで
ある。
The shading correction here is to correct the image fetched data based on the ratio between the data in the shading memory circuit 507 and the shading target value.

【0066】以上詳述したように、本実施の形態に係る
シェーディング補正装置によれば、シェーディングデー
タの副方向の複数のデータから平均化回路506により
平均値を算出し、その算出した平均値をシェーディング
データとし、そのデータと所定値との比からシェーディ
ング補正係数演算回路1023により算出されるシェー
ディング補正係数を用いて、読み取った画像データをシ
ェーディングするので、露光用ランプの変動、例えば標
準白色板上のごみや埃による画像データへの影響が低減
される。
As described in detail above, according to the shading correction apparatus according to the present embodiment, an average value is calculated by the averaging circuit 506 from a plurality of pieces of data in the sub-direction of the shading data, and the calculated average value is calculated. Since the read image data is shaded using the shading correction coefficient calculated by the shading correction coefficient calculation circuit 1023 from the ratio of the data to a predetermined value as the shading data, the fluctuation of the exposure lamp, for example, on the standard white plate The influence of dust and dust on the image data is reduced.

【0067】(第3の実施の形態)次に、本発明の第3
の実施の形態を図9に基づき説明する。図9は本発明の
第3の実施の形態に係るシェーディング補正装置の構成
を示すブロック図である。同図中、901はCCDリニ
アセンサ、902はA/D変換器で、CCDリニアセン
サ901の出力をデジタル値に変換するものである。9
03はラインメモリ回路で、取り込んだ画像データを格
納するものである。904はセレクタ、905は最大値
/最小値検出回路で、図示しない標準白色板からシェー
ディングデータを取り込み、その主方向は同一場所で副
方向に異なるデータの中から最大値と最小値を取り除く
ものである。906は加算回路で、主方向は同一場所で
副方向に異なるデータを加算するものである。907は
除算係数、908はシェーディングメモリ回路で、シェ
ーディング補正係数を格納するものである。
(Third Embodiment) Next, a third embodiment of the present invention will be described.
The embodiment will be described with reference to FIG. FIG. 9 is a block diagram showing a configuration of a shading correction device according to the third embodiment of the present invention. In the figure, reference numeral 901 denotes a CCD linear sensor; and 902, an A / D converter for converting the output of the CCD linear sensor 901 into a digital value. 9
A line memory circuit 03 stores the captured image data. Reference numeral 904 denotes a selector, and reference numeral 905 denotes a maximum / minimum value detection circuit which takes in shading data from a standard white plate (not shown) and removes the maximum value and the minimum value from data different in the main direction in the sub-direction at the same location. is there. An addition circuit 906 adds different data in the sub-direction at the same location in the main direction. 907 is a division coefficient, and 908 is a shading memory circuit for storing shading correction coefficients.

【0068】セレクタ904は、前記標準白色板からシ
ェーディングデータを取り込む場合は、最大値/最小値
検出回路905側に接続され、また、画像データを取り
込む場合は、出力側に接続される。
The selector 904 is connected to the maximum / minimum value detection circuit 905 when taking in shading data from the standard white plate, and connected to the output side when taking in image data.

【0069】次に上記構成になる本実施の形態に係るシ
ェーディング補正装置の動作を説明する。
Next, the operation of the shading correction device according to the present embodiment having the above configuration will be described.

【0070】図示しない標準白色板からシェーディング
データを取り込む場合、セレクタ904を最大値/最小
値検出回路905側に接続する。この最大値/最小値検
出回路905では、最大値と最小値を検出する。加算回
路906では、主方向は同一場所で副方向に異なるデー
タを加算する。その加算結果から、最大値/最小値検出
回路905で得られた最大値と最小値値を除いて、除算
係数907で除算した値をシェーディングメモリ回路9
08に格納する。
When fetching shading data from a standard white plate (not shown), the selector 904 is connected to the maximum / minimum value detection circuit 905 side. The maximum / minimum value detection circuit 905 detects a maximum value and a minimum value. The addition circuit 906 adds different data in the sub-direction at the same location in the main direction. The shading memory circuit 9 subtracts the maximum value and the minimum value obtained by the maximum / minimum value detection circuit 905 from the addition result and divides the value by the division coefficient 907.
08.

【0071】次に画像データを取り込む場合は、セレク
タ904を出力側に接続する。ラインメモリ回路903
から出力された画像データはシェーディングメモリ回路
908内に格納されたシェーディング補正係数と掛け合
わせて出力される。
Next, when fetching image data, the selector 904 is connected to the output side. Line memory circuit 903
Is output after being multiplied by the shading correction coefficient stored in the shading memory circuit 908.

【0072】[0072]

【発明の効果】以上詳述したように本発明の請求項1記
載のシェーディング補正方法及び請求項2〜4記載のシ
ェーディング補正装置によれば、画素ごとのヒストグラ
ム最頻値検出手段により検出したヒストグラム最頻値を
用いてシェーディング補正を行うので、簡単な構成で且
つより高速で高精度なシェーディング補正を行うことが
できるという効果を奏する。
As described above in detail, according to the shading correction method according to the first aspect of the present invention and the shading correction apparatus according to the second to fourth aspects, the histogram detected by the histogram mode detection means for each pixel. Since the shading correction is performed using the mode value, there is an effect that the shading correction can be performed with higher speed and higher accuracy with a simple configuration.

【0073】また、本発明の請求項5〜7記載のシェー
ディング補正方法及び請求項8〜10記載のシェーディ
ング補正装置によれば、シェーディングデータの副方向
の複数のデータから平均値を算出し、その算出した平均
値をシェーディングデータとし、そのデータと所定値と
の比から算出されるシェーディング補正係数を用いて、
読み取った画像データをシェーディングするので、露光
用ランプの変動、例えば標準白色板上のごみや埃による
画像データへの影響が低減されるという効果を奏する。
According to the shading correction method according to claims 5 to 7 and the shading correction apparatus according to claims 8 to 10 of the present invention, an average value is calculated from a plurality of pieces of data in the sub-direction of shading data. Using the calculated average value as shading data, using a shading correction coefficient calculated from a ratio of the data to a predetermined value,
Since the read image data is shaded, there is an effect that fluctuation of the exposure lamp, for example, influence of dust or dust on the standard white plate on the image data is reduced.

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

【図1】本発明の第1の実施の形態に係るシェーディン
グ補正装置の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a shading correction device according to a first embodiment of the present invention.

【図2】本発明の第1の実施の形態に係るシェーディン
グ補正装置におけるページメモリ構成を示すブロック図
である。
FIG. 2 is a block diagram illustrating a page memory configuration in the shading correction device according to the first embodiment of the present invention.

【図3】本発明の第1の実施の形態に係るシェーディン
グ補正装置におけるヒストグラム最頻値検出を表わす図
である。
FIG. 3 is a diagram illustrating detection of a histogram mode value in the shading correction device according to the first embodiment of the present invention.

【図4】本発明の第1の実施の形態に係るシェーディン
グ補正装置における画像読み取りのタイミングを示すタ
イミングチャートである。
FIG. 4 is a timing chart showing image reading timings in the shading correction device according to the first embodiment of the present invention.

【図5】本発明の第2の実施の形態に係るシェーディン
グ補正装置の構成を示すブロック図である。
FIG. 5 is a block diagram illustrating a configuration of a shading correction device according to a second embodiment of the present invention.

【図6】本発明の第2の実施の形態に係るシェーディン
グ補正装置におけるシェーディングデータ取り込み位置
を示す図である。
FIG. 6 is a diagram illustrating a shading data capturing position in a shading correction device according to a second embodiment of the present invention.

【図7】本発明の第2の実施の形態に係るシェーディン
グ補正装置における各位置のシェーディングデータとそ
の効果を示す図である。
FIG. 7 is a diagram showing shading data at each position in a shading correction device according to a second embodiment of the present invention and the effect thereof.

【図8】本発明の第2の実施の形態に係るシェーディン
グ補正装置の画像取り込みシーケンスを示すフローチャ
ートである。
FIG. 8 is a flowchart illustrating an image capturing sequence of the shading correction device according to the second embodiment of the present invention.

【図9】本発明の第3の実施の形態に係るシェーディン
グ補正装置の構成を示すブロック図である。
FIG. 9 is a block diagram illustrating a configuration of a shading correction device according to a third embodiment of the present invention.

【図10】従来のシェーディング補正装置の構成を示す
ブロック図である。
FIG. 10 is a block diagram illustrating a configuration of a conventional shading correction device.

【図11】従来のシェーディング補正装置におけるシェ
ーディング補正を表わす図である。
FIG. 11 is a diagram illustrating shading correction in a conventional shading correction device.

【図12】従来のシェーディング補正装置の構成を示す
側面図である。
FIG. 12 is a side view showing a configuration of a conventional shading correction device.

【図13】従来のシェーディング補正装置におけるシェ
ーディング補正係数を示す図である。
FIG. 13 is a diagram showing shading correction coefficients in a conventional shading correction device.

【図14】従来のシェーディング補正装置における画像
データを示す図である。
FIG. 14 is a diagram showing image data in a conventional shading correction device.

【図15】従来のシェーディング補正装置における平均
値シェーディングの問題を表わす図である。
FIG. 15 is a diagram illustrating a problem of average value shading in a conventional shading correction device.

【図16】従来のシェーディング補正装置における問題
点を説明するための図である。
FIG. 16 is a diagram for explaining a problem in a conventional shading correction device.

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

101 ページメモリ回路 102 ヒストグラム最頻値検出回路 103 コンパレータ 104 カウンタ群 105 最大値検出回路 106 シェーディング補正回路 107 黒メモリ 108 白メモリ 109 減算器 110 乗算器 501 CCDラインセンサ 502 A/D変換器 503 ラインメモリ回路 504 セレクタ 505 最大値/最小値検出回路 506 平均化回路 507 シェーディングメモリ回路 508 シェーディング補正回路 901 CCDリニアセンサ 902 A/D変換器 903 ラインメモリ回路 904 セレクタ 905 最大値/最小値検出回路 906 加算回路 907 除算係数 908 シェーディングメモリ回路 1001 CCDラインセンサ 1002 サンプルホールド回路(SH回路) 1003 ゲインコントロールアンプ(GCA) 1004 クランプ回路(CP回路) 1005 A/D変換器 101 Page memory circuit 102 Histogram mode detection circuit 103 Comparator 104 Counter group 105 Maximum value detection circuit 106 Shading correction circuit 107 Black memory 108 White memory 109 Subtractor 110 Multiplier 501 CCD line sensor 502 A / D converter 503 Line memory Circuit 504 Selector 505 Maximum / minimum value detection circuit 506 Averaging circuit 507 Shading memory circuit 508 Shading correction circuit 901 CCD linear sensor 902 A / D converter 903 Line memory circuit 904 Selector 905 Maximum / minimum value detection circuit 906 Addition circuit 907 Division coefficient 908 Shading memory circuit 1001 CCD line sensor 1002 Sample hold circuit (SH circuit) 1003 Gain control amplifier (GCA) 1004 clamp circuit (CP circuit) 1005 A / D converter

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画像読取装置における固体撮像素子の各
画素ごとにヒストグラムの最頻値を計算するヒストグラ
ム最頻値計算工程と、前記ヒストグラム最頻値計算工程
により算出されたヒストグラムの最頻値を用いてシェー
ディング補正を行うシェーディング補正工程とを有する
ことを特徴とするシェーディング補正方法。
1. A histogram mode calculating step of calculating a mode of a histogram for each pixel of a solid-state imaging device in an image reading device, and a mode of a histogram calculated by the histogram mode calculating step is calculated. A shading correction step of performing shading correction by using the shading correction method.
【請求項2】 画像読取装置における固体撮像素子の各
画素ごとにヒストグラムの最頻値を計算するヒストグラ
ム最頻値計算手段と、前記ヒストグラム最頻値計算手段
により算出されたヒストグラムの最頻値を用いてシェー
ディング補正を行うシェーディング補正手段とを有する
ことを特徴とするシェーディング補正装置。
2. A histogram mode calculating means for calculating a mode of a histogram for each pixel of a solid-state imaging device in an image reading device; and a mode of a histogram calculated by the mode calculating means. A shading correction device for performing shading correction using the shading correction device.
【請求項3】 前記ヒストグラム最頻値計算手段は、少
なくともn画素×mライン分のページメモリ手段と、複
数の階調を比較する比較手段と、前記比較手段の各階調
の度数を計測する計測手段と、前記計測手段の計測結果
より前記比較手段の各階調に対して最も頻度の高い階調
を判断する判断手段とを有することを特徴とする請求項
2記載のシェーディング補正装置。
3. The histogram mode calculation means includes a page memory means for at least n pixels × m lines, a comparison means for comparing a plurality of gradations, and a measurement for measuring the frequency of each gradation of the comparison means. 3. A shading correction apparatus according to claim 2, further comprising: means for judging the most frequent gradation for each gradation of said comparing means from the measurement result of said measuring means.
【請求項4】 前記ヒストグラム最頻値計算手段は、前
記比較手段と前記計測手段と前記判断手段とによる一連
の作業が前記ページメモリ手段の各画素に対して行われ
ることを特徴とする請求項3記載のシェーディング補正
装置。
4. The histogram mode calculating means, wherein a series of operations by the comparing means, the measuring means, and the determining means are performed for each pixel of the page memory means. 3. The shading correction device according to 3.
【請求項5】 白色補正板を撮像素子により主方向及び
副方向に走査して読み取ったシェーディングデータを用
いて、対象画像を撮像素子により主方向及び副方向に走
査して読み取った画像データのシェーディングを補正す
る画像読取装置のシェーディング補正方法であって、前
記シェーディングデータの副方向の複数のデータから平
均値をシェーディングデータとし、そのデータと所定値
との比から算出されるシェーディング補正係数を用い
て、読み取った画像データをシェーディングを補正する
ことを特徴とするシェーディング補正方法。
5. Shading of image data read by scanning a target image in a main direction and a sub-direction by an image sensor using a shading data read by scanning a white correction plate with an image sensor in a main direction and a sub-direction. A shading correction method for an image reading apparatus, wherein an average value is used as shading data from a plurality of data in the sub-direction of the shading data, and a shading correction coefficient calculated from a ratio of the data to a predetermined value is used. A shading correction method for correcting shading of read image data.
【請求項6】 前記シェーディングデータの副方向の複
数のデータの中の最大値と最小値とを除いた値から平均
値を求めることを特徴とする請求項5記載のシェーディ
ング補正方法。
6. The shading correction method according to claim 5, wherein an average value is obtained from a value obtained by removing a maximum value and a minimum value from a plurality of pieces of data in the sub-direction of the shading data.
【請求項7】 前記シェーディングデータを副方向に複
数の場所で読み取り且つ各場所で複数回読み取ることを
特徴とする請求項5記載のシェーディング補正方法。
7. The shading correction method according to claim 5, wherein the shading data is read at a plurality of locations in the sub-direction and is read a plurality of times at each location.
【請求項8】 白色補正板を撮像素子により主方向及び
副方向に走査して読み取ったシェーディングデータを用
いて、対象画像を撮像素子により主方向及び副方向に走
査して読み取った画像データのシェーディングを補正す
る画像読取装置のシェーディング補正装置であって、前
記シェーディングデータの副方向の複数のデータから平
均値を求める平均値算出手段と、前記平均値算出手段に
より算出された平均値をシェーディングデータとし且つ
そのシェーディングデータと所定値との比からシェーデ
ィング補正係数を算出するシェーディング補正係数算出
手段と、前記シェーディング補正係数算出手段により算
出されたシェーディング補正係数を用いて読み取った画
像データのシェーディングを補正するシェーディング補
正手段とを有することを特徴とするシェーディング補正
装置。
8. Shading of image data read by scanning a target image in the main and sub directions by using an image sensor by using shading data read by scanning a white correction plate in a main direction and a sub direction by an image sensor. A shading correction device of an image reading device for correcting an average value from a plurality of data in the sub-direction of the shading data, an average value calculating means, and the average value calculated by the average value calculating means as shading data A shading correction coefficient calculating means for calculating a shading correction coefficient from a ratio of the shading data to a predetermined value; and shading for correcting shading of the read image data using the shading correction coefficient calculated by the shading correction coefficient calculating means. Correction means And a shading correction device.
【請求項9】 前記平均値算出手段は、前記シェーディ
ングデータの副方向の複数のデータの中の最大値と最小
値とを除いた値から平均値を求めることを特徴とする請
求項8記載のシェーディング補正装置。
9. The average value calculating unit according to claim 8, wherein the average value calculating means obtains an average value from a value excluding a maximum value and a minimum value among a plurality of data in the sub-direction of the shading data. Shading correction device.
【請求項10】 前記シェーディングデータを副方向に
複数の場所で読み取り且つ各場所で複数回読み取る読取
手段を有することを特徴とする請求項8記載のシェーデ
ィング補正装置。
10. The shading correction device according to claim 8, further comprising reading means for reading the shading data at a plurality of locations in the sub-direction and reading the shading data a plurality of times at each location.
JP9236449A 1997-08-19 1997-08-19 Method and device for correcting shading Pending JPH1169154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9236449A JPH1169154A (en) 1997-08-19 1997-08-19 Method and device for correcting shading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9236449A JPH1169154A (en) 1997-08-19 1997-08-19 Method and device for correcting shading

Publications (1)

Publication Number Publication Date
JPH1169154A true JPH1169154A (en) 1999-03-09

Family

ID=17000921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9236449A Pending JPH1169154A (en) 1997-08-19 1997-08-19 Method and device for correcting shading

Country Status (1)

Country Link
JP (1) JPH1169154A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008023806A1 (en) 2006-08-25 2008-02-28 Kyocera Corporation Sensitivity correction method and imaging device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008023806A1 (en) 2006-08-25 2008-02-28 Kyocera Corporation Sensitivity correction method and imaging device
US8049796B2 (en) 2006-08-25 2011-11-01 Kyocera Corporation Method of correcting sensitivity and imaging apparatus

Similar Documents

Publication Publication Date Title
JPH05500444A (en) Method and apparatus for compensating for sensitivity variations in the output of a solid-state image sensor
JPH11164147A (en) Image reader
US20070070461A1 (en) Method for adjusting image data
JPH0799850B2 (en) Image reading device for image recording device
US7251064B2 (en) Calibration of an image scanning system
JP3954258B2 (en) Image reading apparatus and copying machine
JP2002344737A (en) Image reader
JP2005094214A (en) Image scanner, and shading correction method thereof
JP2001086333A (en) Image reader and image processor provided with the image reader
JP3494462B2 (en) Signal processing device
JPH1169154A (en) Method and device for correcting shading
KR100250360B1 (en) The preprocessor of an image input apparatus and image distortion correcting method
JPH0865506A (en) Picture reader
JP2003209689A (en) Image processor
KR100248751B1 (en) The preprocessor of an image input apparatus and image distortion correcting method
JPH09224156A (en) Image processor
JPH099056A (en) Picture reader
JPH02177669A (en) Picture reader
JP2001223895A (en) Picture reader
JPH01177278A (en) Picture reader
JPS59219069A (en) Reader of original
JPH02141065A (en) Original reader
JPH09284557A (en) Image forming device
JPH04301968A (en) Image signal processor
JP2003032452A (en) Image reader