JP2715935B2 - Image sensor shading correction method and correction device - Google Patents
Image sensor shading correction method and correction deviceInfo
- Publication number
- JP2715935B2 JP2715935B2 JP6254457A JP25445794A JP2715935B2 JP 2715935 B2 JP2715935 B2 JP 2715935B2 JP 6254457 A JP6254457 A JP 6254457A JP 25445794 A JP25445794 A JP 25445794A JP 2715935 B2 JP2715935 B2 JP 2715935B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- image sensor
- correction
- difference
- value
- 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.)
- Expired - Fee Related
Links
Landscapes
- Image Input (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は画像情報が記録されてい
る原稿を光学的に読取って電気信号データを得るイメー
ジセンサに関し、特に得られたデータのばらつき等のシ
ェーディング特性を補正するためのシェーディング補正
方法及び補正装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image sensor for optically reading an original on which image information is recorded to obtain electric signal data, and more particularly to shading for correcting shading characteristics such as variations in the obtained data. The present invention relates to a correction method and a correction device.
【0002】[0002]
【従来の技術】従来、ファクシミリ送信機等において、
レンズ系を介してイメージセンサに原稿を読取らせる場
合、このレンズ系による収束差や、イメージセンサを構
成する複数の画素(光電変換素子)の感度のばらつき、
あるいは原稿を照明する光源の照度のばらつき等のため
に、全面同一濃度の原稿をイメージセンサで読取ったと
きでもその出力レベルにばらつきが生じることがある。
また、レンズ系を介さない完全密着イメージセンサで原
稿を読取る場合でも、前記したような種々のばらつきに
よってイメージセンサの出力レベルにばらつきが生じ
る。これらのばらつきは白基準面を読ませたときの出力
レベル(明出力レベル)のばらつきと、原稿を照明する
光源を消灯したときの出力レベル(暗出力レベル)のば
らつきとからなる。2. Description of the Related Art Conventionally, in a facsimile transmitter or the like,
When an image sensor is caused to read a document via a lens system, a convergence difference due to the lens system, a variation in sensitivity of a plurality of pixels (photoelectric conversion elements) constituting the image sensor,
Alternatively, due to variations in the illuminance of the light source that illuminates the original, the output level of the original may vary even when the original has the same density and is read by the image sensor.
Further, even when a document is read by a perfect contact image sensor that does not pass through a lens system, the output level of the image sensor varies due to the various variations described above. These variations include variations in the output level (bright output level) when reading the white reference surface and variations in the output level (dark output level) when the light source that illuminates the document is turned off.
【0003】このようなイメージセンサの各ビットの出
力レベルのばらつきを電気的に補正するために、各種の
方式が検討されており、その一つとして次の方式があ
る。即ち、先ず、原稿を照明する光源を消灯した状態で
イメージセンサにより原稿を読取り、次に光源を点灯し
た状態でイメージセンサにより白基準面を読取る。この
とき得られるイメージセンサの各画素の出力レベルは本
来は同一値であるべきであり、したがってこれら出力レ
ベルの差を得ることで、これを補正係数として求めるこ
とができる。そして、実際に原稿を読取った際のイメー
ジセンサの各画素の出力レベルを前記した補正係数によ
り補正する方式である。In order to electrically correct such a variation in the output level of each bit of the image sensor, various methods have been studied, one of which is as follows. That is, first, the document is read by the image sensor with the light source for illuminating the document turned off, and then the white reference surface is read by the image sensor with the light source turned on. The output level of each pixel of the image sensor obtained at this time should originally be the same value. Therefore, by obtaining a difference between these output levels, this can be obtained as a correction coefficient. In this method, the output level of each pixel of the image sensor when an original is actually read is corrected using the above-described correction coefficient.
【0004】しかしながら、この方式では、原稿読取領
域の全領域にわたってイメージセンサの各画素にそれぞ
れ対応した補正係数を求め、この補正係数を個々に記憶
させる必要があるために、この補正係数を記憶するメモ
リ容量が大きくなり、大容量のメモリが必要とされるこ
とによりイメージセンサが高価になるという問題が生じ
る。However, in this method, it is necessary to obtain a correction coefficient corresponding to each pixel of the image sensor over the whole area of the original reading area and store the correction coefficient individually. Therefore, the correction coefficient is stored. There is a problem that the memory capacity is increased and the image sensor becomes expensive due to the need for a large-capacity memory.
【0005】このような問題に対し、特開平3−136
466号公報に記載の第1のシェーディング補正方法
は、先頭画素に対応する補正データについては原データ
を記憶しておくとともに、先頭画素に続く画素に対応す
る補正データについては1画素前の補正データとの差分
値を記憶しておくようにし、シェーディング補正を行う
にあたり、先頭画素の補正データとこれに続く画素の差
分データからシェーディング補正データを復元してシェ
ーディング補正演算処理を行っている。To solve such a problem, Japanese Patent Laid-Open Publication No. 3-136
In the first shading correction method described in Japanese Patent Application Publication No. 466, the original data is stored for the correction data corresponding to the first pixel, and the correction data one pixel before is stored for the correction data corresponding to the pixel following the first pixel. In performing the shading correction, the shading correction calculation processing is performed by restoring the shading correction data from the correction data of the first pixel and the difference data of the pixels subsequent thereto.
【0006】また、特開昭60−218982号公報に
記載の第2のシェーディング補正回路は、m×nの区画
から構成される2次元画面の波形誤差の補正に係わり、
各水平方向の基準値を基準値メモリに記憶し、各水平方
向のシェーディング補正値を開始点の区画では前記基準
値との差分値とし、かつ残りの区画では1つ先行する区
画のシェーディング補正値との差分値として差分値メモ
リに記憶し、これらの基準値と差分値とでシェーディン
グ補正を行うように構成されている。A second shading correction circuit described in Japanese Patent Application Laid-Open No. 60-218982 relates to correction of a waveform error of a two-dimensional screen composed of m × n sections.
Each horizontal reference value is stored in a reference value memory, and each horizontal shading correction value is set to a difference value from the reference value in the section at the start point, and the shading correction value of the preceding section is used in the remaining sections. Is stored in a difference value memory as a difference value between the reference value and the reference value, and the shading correction is performed using the reference value and the difference value.
【0007】一方、差分を用いてデータ圧縮する方式と
してデジタル符号化された音声信号における差分PCM
と、準瞬時圧伸方式の併用がある。特開昭62−190
930号公報記載のデジタル音声送出装置を例に説明す
る。図9はそのデジタル音声送出装置のブロック図であ
り、音声信号はA/D変換器101でまず直線量子化さ
れ、次に差分器102で隣接データ間の差分データが得
られる。スケール検出器103では入力される差分デー
タを所定数のデータ毎にブロックとして区切り、このブ
ロック内の差分データ中の最大絶対値に応じたスケール
値を取り出す。一方、音声信号の標本データは1ブロッ
ク分の遅延器104を通され、可変精度差分器105に
おいて隣合うデータの差がとられ、その上で圧縮器10
6においてスケール値に対応した位置のビットが取り出
される。On the other hand, as a method of compressing data using a difference, a difference PCM in a digitally encoded audio signal is used.
And the quasi-instantaneous companding method. JP-A-62-190
The digital audio transmission device described in Japanese Patent Publication No. 930 will be described as an example. FIG. 9 is a block diagram of the digital audio transmitting apparatus. The audio signal is first linearly quantized by the A / D converter 101, and then the difference data between adjacent data is obtained by the differentiator 102. The scale detector 103 divides the input difference data into blocks each of a predetermined number of data, and extracts a scale value corresponding to the maximum absolute value in the difference data in this block. On the other hand, the sample data of the audio signal is passed through the delay unit 104 for one block, and the difference between adjacent data is obtained in the variable-precision difference unit 105.
At 6, the bit at the position corresponding to the scale value is extracted.
【0008】この方式では、A/D変換器101が14
ビット型であるとすると、差分器102の出力の差分デ
ータは15ビット必要になる。これを8ビットに圧縮す
れば、スケール値は8種類必要であり、それぞれのスケ
ール値に対応して差分データから取り出される8ビット
の位置を図16に示す。すなわち、遅延器104から出
力された標本データは、可変精度差分器105において
隣合うデータの差をとる際に、スケール値に応じて所定
数の下位ビットがあらかじめ切捨てられる。例えば、ス
ケール値(1)では最下位の1ビット、スケール(2)
では最下位から2ビットというふうに切捨てられる。こ
のようにスケール値に応じた精度で隣合うデータの差を
とられ、可変精度差分データが得られる。最後に圧縮器
105でスケール値に応じた位置のビットが取り出さ
れ、圧縮差分データとしてスケール値とともに送出され
る。In this system, the A / D converter 101 has 14
If it is a bit type, the difference data of the output of the differentiator 102 needs 15 bits. If this is compressed to 8 bits, eight types of scale values are required, and the position of the 8 bits extracted from the difference data corresponding to each scale value is shown in FIG. That is, in the sample data output from the delay unit 104, a predetermined number of lower bits are truncated in advance according to the scale value when taking the difference between adjacent data in the variable precision difference unit 105. For example, in the scale value (1), the least significant one bit, the scale (2)
Is truncated to 2 bits from the least significant bit. As described above, the difference between adjacent data is obtained with an accuracy corresponding to the scale value, and variable-precision difference data is obtained. Finally, the bit at the position corresponding to the scale value is taken out by the compressor 105 and sent out together with the scale value as compressed difference data.
【0009】[0009]
【発明が解決しようとする課題】上述した従来の第1及
び第2のシェーディング補正回路は、差分データの絶対
値が小さい範囲の発生頻度が大きく、差分データの絶対
値が大きい範囲の発生頻度が小さいにもかかわらず、差
分データの絶対値が大きいデータによって補正データ容
量が大きくなり、補正データを記憶するメモリ容量を小
さくすることに制限を受け、メモリ容量の低減効果に十
分なものが得られないという問題がある。In the above-described first and second shading correction circuits, the frequency of occurrence of the range where the absolute value of the difference data is small is high, and the frequency of occurrence of the range where the absolute value of the difference data is large is high. Although the difference data is small, the data having a large absolute value of the difference data increases the correction data capacity, and is limited in reducing the memory capacity for storing the correction data, so that a sufficient memory capacity reduction effect is obtained. There is no problem.
【0010】また、最後に述べたデジタル符号化された
音声信号における差分PCMと準瞬時圧伸方式では、こ
れをシェーディング補正回路に応用して発生頻度が小さ
い差分データの絶対値が大きいデータを低精度でコード
化を行なうようにすれば、コードのデータ容量は削減さ
れるものの、これでは差分の絶対値が大きいデータに対
応する画素の画質が劣化してしまい、本発明が対象とす
るようなイメージセンサのシェーディング補正に実際に
適用することは困難である。Also, in the last-mentioned differential PCM and quasi-instantaneous companding method in the digitally encoded audio signal, this is applied to a shading correction circuit to reduce differential data having a small occurrence frequency and having a large absolute value. If coding is performed with high accuracy, the data capacity of the code is reduced, but this deteriorates the image quality of pixels corresponding to data having a large absolute value of the difference. It is difficult to actually apply it to shading correction of an image sensor.
【0011】[0011]
【発明の目的】本発明の目的は、シェーディング補正に
必要とされる補正データ容量を小さくし、これにより補
正データを記憶するメモリ容量を小さくすることを可能
にしたイメージセンサのシェーディング補正方法と補正
装置を提供することにある。また、本発明の他の目的
は、かつ差分データの絶対値が大きいデータに対応する
画素の画質の劣化を防止したイメージセンサのシェーデ
ィング補正方法と補正装置を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a shading correction method and a correction method for an image sensor which can reduce the amount of correction data required for shading correction and thereby reduce the memory capacity for storing correction data. It is to provide a device. It is another object of the present invention to provide a shading correction method and a correction device for an image sensor, which prevent deterioration in image quality of pixels corresponding to data having a large absolute value of difference data.
【0012】[0012]
【課題を解決するための手段】本発明の第1のシェーデ
ィング補正方法は、イメージセンサが濃度基準を走査し
たとき、あるいは入射光量を特定条件にして濃度基準を
走査したときのイメージセンサ出力に対し、先頭画素に
続くセンサ出力については1画素前の画素データとの差
分を演算し、この差分データ値があらかじめ定めた基準
値以下のときは高い精度で、また差分データ値が前記基
準値よりも大きいときは低い精度でそれぞれコード化し
て記憶し、このコード化データに基づいて前記イメージ
センサが濃度基準を走査したときのイメージセンサ出力
のシェーディング補正後の値がほぼ一定になるよう前記
イメージセンサ出力のシェーディング補正を行うことを
特徴とする。According to a first shading correction method of the present invention, the output of the image sensor when the image sensor scans the density reference or when the incident light quantity is scanned under the specific conditions is scanned. The difference between the sensor output following the first pixel and the pixel data of the immediately preceding pixel is calculated, and the difference data value is set to a predetermined reference value.
With high precision when the values below and the difference data value the group
If the value is larger than the reference value , each is coded and stored with low precision, and the image is stored based on the coded data.
Image sensor output when the sensor scans the density reference
Wherein the shading correction of the output of the image sensor is performed so that the value after the shading correction becomes substantially constant .
【0013】また、本発明の第2のシェーディング補正
方法は、イメージセンサが濃度基準を走査したとき、あ
るいは入射光量を特定条件にして濃度基準を走査したと
きのイメージセンサ出力に対応するセンサ出力補正デー
タを算出し、この補正データの先頭画素に続く補正デー
タについては1画素前の補正データとの差分を演算し、
この差分データ値があらかじめ定めた基準値以下のとき
は高い精度で、前記差分データ値が前記基準値よりも大
きいときは低い精度でそれぞれコード化して記憶し、こ
のコード化データに基づいて前記イメージセンサが濃度
基準を走査したときのイメージセンサ出力のシェーディ
ング補正後の値がほぼ一定になるよう前記イメージセン
サ出力のシェーディング補正を行うことを特徴とする。A second shading correction method according to the present invention is characterized in that a sensor output correction corresponding to an image sensor output when the image sensor scans the density reference or when the incident light quantity is scanned under the specific condition is performed. Data is calculated, and a difference between the correction data following the first pixel of the correction data and the correction data one pixel before is calculated,
When this difference data value is less than or equal to a predetermined reference value
Is coded with high accuracy and, when the difference data value is larger than the reference value, is coded and stored with low accuracy, respectively. Based on the coded data, the image sensor
Shade of image sensor output when scanning reference
The shading correction of the output of the image sensor is performed so that the value after the shading correction becomes substantially constant .
【0014】本発明のシェーディング補正装置は、イメ
ージセンサと、このイメージセンサが濃度基準を走査し
たとき、あるいは入射光量を特定条件にして濃度基準を
走査したときのイメージセンサ出力に対応するセンサ出
力補正データを算出する補正演算器と、前記補正データ
の先頭画素を記憶する第1のメモリと、前記先頭画素に
続く補正データについては1画素前の補正データとの差
分を演算する減算器と、前記差分データ値があらかじめ
定めた基準値以下のときは高い精度で、前記差分データ
値が前記基準値よりも大きいときは低い精度でコード化
するコーダーと、前記コード化データを記憶する第2の
メモリとを備えている。A shading correction apparatus according to the present invention comprises: an image sensor; and a sensor output correction unit for correcting an image sensor output corresponding to an image sensor output when the image sensor scans the density reference or when the incident light quantity is scanned under a specific condition. A correction calculator that calculates data, a first memory that stores a head pixel of the correction data, and a subtractor that calculates a difference between correction data one pixel before the correction data following the head pixel; the difference data value is in advance
A coder for coding with high accuracy when the difference data value is equal to or less than a predetermined reference value, and with low accuracy when the difference data value is larger than the reference value; and a second memory for storing the coded data. .
【0015】[0015]
【作用】本発明においては、図2に差分コード化の説明
図を示すように、差分データの絶対値が小さいときは高
い精度で、差分データの絶対値が大きいときは低い精度
でコード化している。これにより差分データでは6ビッ
トのところをコード化することにより5ビットに削減し
ており、メモリ容量を低減できる。また、差分データの
絶対値が大きい場合でも同じ精度でのコード化を行うた
めに、画素の画質が低下されることはない。In the present invention, as shown in FIG. 2, the difference encoding is performed with high accuracy when the absolute value of the difference data is small, and with low accuracy when the absolute value of the difference data is large. I have. Thus, the difference data is reduced to 5 bits by coding the 6-bit portion, and the memory capacity can be reduced. Further, even when the absolute value of the difference data is large, encoding is performed with the same accuracy, so that the image quality of the pixel is not reduced.
【0016】[0016]
【実施例】次に、本発明の実施例を図面を参照して説明
する。図1は本発明の第1実施例にかかるシェーディン
グ補正装置のブロック回路図であり、この補正装置は補
正演算器である明補正値検出回路10と、第1のメモリ
である基準値メモリ21と、第2のメモリである明補正
値メモリ22を含む明補正メモリ20と、1画素前の補
正データとの差分を演算する減算器11を含む明補正回
路30から構成される。各回路及びメモリの構成につい
ては、その作用と共に後述する。Next, an embodiment of the present invention will be described with reference to the drawings. Figure 1 is a block circuit diagram of a shading correction apparatus according to a first embodiment of the present invention, the correction device accessory
A light correction value detection circuit 10 as a positive operation unit, and a first memory
, And a second memory, bright correction.
Bright correction memory 20 containing the value memory 22, one pixel before the complement
The light correction circuit 30 includes a subtractor 11 for calculating a difference from the positive data . The configuration of each circuit and memory will be described later together with its operation.
【0017】図3(a)において、イメージセンサが白
基準を走査したときのイメージセンサ出力をA/D変換
した値が白基準データWnであり、ここでnはイメージ
センサの画素を示すアドレスである。差分データΔWn
は現画素の白基準データと1画素前の加算データF(W
n-1)の差分、すなわち、 ΔWn=Wn−F(Wn-1) である。まるめ差分データf(ΔWn)は図2に示した
通りである。図2においては、差分データΔWnの絶対
値が「3」以下のときは高い精度でコード化し、「3」
よりも大きいときは低い精度でコード化する。さらに、
ここでは絶対値が「7」よりも大きく、「11」以下の
ときはより低い精度でコード化している。 In FIG. 3A, a value obtained by A / D conversion of an image sensor output when the image sensor scans the white reference is white reference data Wn, where n is an address indicating a pixel of the image sensor. is there. Difference data ΔWn
Is the white reference data of the current pixel and the addition data F (W
n −1 ), that is, ΔWn = Wn−F (Wn −1 ). The rounding difference data f (ΔWn) is as shown in FIG. In FIG. 2, the absolute value of the difference data ΔWn
If the value is less than or equal to "3", it is coded with high precision and "3"
If it is larger than this, it is coded with lower precision. further,
Here, the absolute value is larger than “7” and equal to or smaller than “11”.
Sometimes they are coded with lower precision.
【0018】加算データF(Wn)は上記まるめ差分デ
ータf(ΔWn)から白基準データを復元した値であ
り、すなわち F(Wn)=F(Wn-1)+f(ΔWn) である。精度はまるめ差分データの1つ大きい値と小さ
い値が各々±いくつかを示している。The addition data F (Wn) is a value obtained by restoring the white reference data from the rounded difference data f (ΔWn), that is, F (Wn) = F (Wn −1 ) + f (ΔWn). The accuracy indicates one plus and minus one of the rounded difference data.
【0019】図3(b)は信号データが白基準データの
50%のとき、図3(a)で復元した加算データF(W
n)からシェーディング補正した補正画信号Aと本来の
補正画信号を比較した図である。本来の補正画信号はイ
メージセンサの最大値を255としているので、255
/Wnであり、信号データが白基準データの50%のと
きであるから正規化すると128になる。一方、加算デ
ータF(Wn)からシェーディング補正した補正画信号
Aは255/F(Wn)である。FIG. 3B shows that when the signal data is 50% of the white reference data, the added data F (W) restored in FIG.
FIG. 11 is a diagram comparing a corrected image signal A subjected to shading correction from n) with an original corrected image signal. Since the original correction image signal has a maximum value of 255 for the image sensor, it is 255
/ Wn, which is when the signal data is 50% of the white reference data, and is thus normalized to 128. On the other hand, the corrected image signal A obtained by performing shading correction from the addition data F (Wn) is 255 / F (Wn).
【0020】ここで、信号データxn をシェーディング
補正した補正画信号Xnと1画素前の有意差判定後補正
画信号Xn-1の差分Xn−Xn-1が精度以上であれば補
正画信号Aを有意差判定後補正画信号とし、Xn−Xn
-1が精度未満であれば1画素前の有意差判定後補正画信
号Xn-1を有意差判定後補正画信号とする。図3(b)
においては、アドレス3,6の有意差判定後補正画信号
は1画素前の有意差判定後補正画信号Xn-1になってい
る。[0020] Here, the signal data x n shading correction correction image signal Xn and one pixel before the significance determination corrected image signal Xn -1 difference Xn-Xn -1 correction if more precision image signal A Xn-Xn
-1 is a significant difference determining the corrected image signal one pixel significance determined corrected image signal Xn -1 before is less than accurate. FIG. 3 (b)
In, the corrected image signal after the significant difference determination of the addresses 3 and 6 is the corrected image signal Xn -1 after the significant difference determination of one pixel before.
【0021】図3(b)の補正画信号を中間調記録した
ときの例を図3(c)に示す。ここでアドレスは図3
(b)のアドレスに対応している。このように、各アド
レスの濃度は一定濃度とされる。これは図3(b)の有
意差判定後補正画信号からも明らかである。ただし、ア
ドレス7の有意差判定後補正画信号は本来の画信号に比
べて+1になっているが、実際に適用したときには視覚
的には目立ちにくい。FIG. 3C shows an example in which the corrected image signal shown in FIG. 3B is recorded in halftone. Here the address is
It corresponds to the address of (b). Thus, the density of each address is set to a constant density. This is also apparent from the corrected image signal after the significant difference determination in FIG. However, although the corrected image signal after the significant difference determination at the address 7 is +1 compared to the original image signal, it is hardly noticeable when actually applied.
【0022】次に、図1のシェーディング補正装置の構
成と動作について詳細に説明する。先ず、イメージセン
サが白基準を走査し、明補正値を検出する動作を説明す
る。イメージセンサが白基準を走査し、そのときのイメ
ージセンサ出力をA/D変換した値である白基準データ
Wnの先頭画素データW0 を基準値メモリ21に格納す
る。また、後述する差分データまるめ12から出力され
るまるめ差分データf(ΔW0 )を0にリセットしてお
く。Next, the configuration and operation of the shading correction device of FIG. 1 will be described in detail. First, an operation in which the image sensor scans the white reference and detects a light correction value will be described. The image sensor scans the white reference, and the first pixel data W 0 of the white reference data Wn, which is a value obtained by A / D converting the image sensor output at that time, is stored in the reference value memory 21. Also, rounding difference data f (ΔW 0 ) output from a difference data rounding unit 12 described later is reset to 0.
【0023】しかる上で、先頭画素データW0 の1画素
後の白基準データW1 が減算器11に入力されるタイミ
ングで、差分データまるめ12から0にリセットされた
差分データf(ΔW0 )が遅延回路14において1タイ
ミング遅延されて出力され、加算器16においてセレク
タ17の出力と加算される。セレクタ17は基準値メモ
リ21からの出力である先頭画素の白基準データW0 を
選択して出力する。したがって、加算器16の出力であ
る加算データ(まるめ画素データ)F(W0 )は、 F(W0 )=W0 +f(ΔW0 )=W0 となる。Then, at the timing when the white reference data W 1 one pixel after the head pixel data W 0 is input to the subtractor 11, the difference data f (ΔW 0 ) is reset from the difference data round 12 to 0. Is output after being delayed by one timing in the delay circuit 14, and is added to the output of the selector 17 in the adder 16. The selector 17 selects and outputs the white reference data W 0 of the first pixel, which is the output from the reference value memory 21. Therefore, the addition data (rounded pixel data) F (W 0 ) output from the adder 16 is F (W 0 ) = W 0 + f (ΔW 0 ) = W 0 .
【0024】したがって、減算器11において、白基準
データW1 と加算データF(W0 )の差分ΔW1 は、 ΔW1 =W−F(W0 )=W1 −W0 となり、差分ΔW1 は差分データまるめ12に入力さ
れ、差分データまるめ12の出力はf(ΔW1 )とな
る。差分データのまるめ演算は図2に従って実行され
る。演算されたまるめ差分データf(ΔW1 )はコーダ
ー13で図2のようにコード化され、明補正値メモリ2
2に格納される。Therefore, in the subtracter 11, the difference ΔW 1 between the white reference data W 1 and the added data F (W 0 ) is ΔW 1 = WF (W 0 ) = W 1 −W 0 , and the difference ΔW 1 Is input to the difference data rounding 12, and the output of the difference data rounding 12 is f (ΔW 1 ). The rounding operation of the difference data is executed according to FIG. The calculated rounded difference data f (ΔW 1 ) is coded by the coder 13 as shown in FIG.
2 is stored.
【0025】先頭画素データW0 の2画素後の白基準デ
ータW2 が減算器11に入力されるタイミングで、差分
データまるめ12からまるめ差分データf(ΔW1 )が
遅延回路14にて1タイミング遅延して出力され、加算
器16においてセレクタ17の出力と加算される。この
時セレクタ17は遅延回路15において1タイミング遅
延した加算データ(まるめ画素データ)F(W0 )を選
択して出力する。したがって、加算器16の出力である
加算データ(まるめ画素データ)F(W1 )は、 F(W1 )=F(W0 )+F(ΔW1 )=ΔW0 +f(ΔW1 ) となる。したがって、減算器11において、白基準デー
タW2 と上記加算データF(W1 )の差分ΔW2 の演算
を以下のように行う。 ΔW2 =W2 −F(W1 )When the white reference data W 2 two pixels after the head pixel data W 0 is input to the subtractor 11, the difference
The rounded difference data f (ΔW 1 ) is output from the data rounder 12 with a delay of one timing by the delay circuit 14, and is added to the output of the selector 17 by the adder 16. At this time, the selector 17 selects and outputs the added data (rounded pixel data) F (W 0 ) delayed by one timing in the delay circuit 15. Therefore, the added data (rounded pixel data) F (W 1 ) output from the adder 16 is as follows: F (W 1 ) = F (W 0 ) + F (ΔW 1 ) = ΔW 0 + f (ΔW 1 ). Therefore, the subtractor 11 calculates the difference ΔW 2 between the white reference data W 2 and the addition data F (W 1 ) as follows. ΔW 2 = W 2 −F (W 1 )
【0026】差分データΔW2 は差分データまるめ12
に入力され、差分データまるめ12の出力はf(Δ
W2 )となる。差分データのまるめ演算は図2に従って
実行される。演算されたまるめ差分データf(ΔW2 )
はコーダー13で図2のようにコード化され、明補正値
メモリ22に格納される。The difference data ΔW 2 is the difference data round 12
And the output of the difference data rounder 12 is f (Δ
W 2 ). The rounding operation of the difference data is executed according to FIG. Calculated rounding difference data f (ΔW 2 )
Are coded by the coder 13 as shown in FIG.
【0027】以下、同様にして、1ライン分の白基準デ
ータWnのまるめ差分データf(ΔWn)がコード化さ
れて、明補正値メモリ22に格納される。このように、
イメージセンサで白基準を走査したときのイメージセン
サ出力をA/D変換した値である白基準データWnを先
頭画素データW0 およびまるめ差分データf(ΔWn)
として検出する。In the same manner, the round difference data f (ΔWn) of the white reference data Wn for one line is coded and stored in the brightness correction value memory 22. in this way,
White reference data Wn, which is a value obtained by A / D conversion of an image sensor output when the image sensor scans the white reference, is used as the first pixel data W 0 and the rounded difference data f (ΔWn).
Detected as
【0028】次に、基準値メモリ21に格納された先頭
画素データW0 、明補正値メモリ22に格納されたまる
め差分データf(ΔWn)のコードデータからイメージ
センサで原稿を走査したときの信号データxn の1ライ
ンの明補正演算について説明する。1ラインの信号デー
タxn の先頭画素x0 が補正演算器39に入力されるタ
イミングで、基準値メモリ21を選択したセレクタ32
から白基準データの先頭画素データW0 が出力され、加
算器34に入力される。このときデコーダ31の出力は
0にリセットされているため、加算器34においてデコ
ーダ出力31の出力とセレクタ32の出力の加算を行
い、演算結果の加算データF(W0 )はW 0 となる。補
正演算器39には信号データx0 と上記加算器34の出
力である加算データF(W0 )が入力され、正規化演算
(x0 /F(W0 ))×255を実効し、補正画信号X
O を得る。セレクタ35は補正画信号XO を選択し、有
意差判定後画信号には補正画信号X0 が出力される。Next, the top value stored in the reference value memory 21 is stored.
Pixel data W0, Stored in the bright correction value memory 22
Image from code data of difference data f (ΔWn)
Signal data x when scanning the original with the sensornOne lie
A description will now be given of the brightness correction operation of the camera. One line of signal data
Ta xnThe first pixel x of0Is input to the correction calculator 39.
The selector 32 that has selected the reference value memory 21 by the timing
From the first pixel data W of the white reference data0Is output and
It is input to the calculator 34. At this time, the output of the decoder 31 is
Since it has been reset to 0, the adder 34
Adder output and the output of selector 32 are added.
The addition data F (W0) Is W 0Becomes Supplement
The signal data x0And the output of the adder 34
Addition data F (W0) Is input and the normalization operation
(X0/ F (W0)) × 255 and the corrected image signal X
OGet. The selector 35 outputs the corrected image signal XOSelect and
The corrected image signal X is included in the image signal after the difference determination.0Is output.
【0029】先頭画素x0 の1画素後の信号データx1
が補正演算器39に入力されるタイミングで、加算器3
4の加算データF(W0 )を遅延回路33で1タイミン
グ遅延させた出力を選択したセレクタ32の出力と明補
正値メモリ22のまるめ差分データf(ΔW1 )のコー
ドデータをデコーダ31でデコードしたデコードデータ
f(ΔW1 )の加算演算を実行し、加算データF
(W1 )を得る。補正演算器39には信号データx1 と
上記加算器34の出力である加算データF(W1 )が入
力され、正規化演算(x1 /F(W1 ))×255を実
行し、補正画信号X1を得る。遅延回路36で1タイミ
ング遅延させた補正画信号X0 と前記補正画信号X1 と
の差分演算を減算器37で実行し、演算結果X1 −X0
とデコーダ31のデコードデータf(ΔW1 )を有意差
判定回路38に入力し、この演算結果X1 −X0 に有意
差があるかどうかを判定し、有意さがあればセレクタ3
5で補正画信号X1 を、有意差がなければ遅延回路36
で1タイミング遅延させた補正画信号X0 を選択する。
有意差はデコードデータf(ΔW1 )から決まる。この
実施例では前記演算結果X1 ,−X0 が図3(a)の精
度未満の場合、有意差無しとした。こうしてセレクタ3
5から信号データx1 の有意差判定後補正信号が出力さ
れる。以下、同様にして、1ライン分の信号データxn
の明補正演算を実行し、有意差判定後補正画信号が得ら
れる。The signal data x 1 one pixel after the head pixel x 0
Is input to the correction calculator 39, the adder 3
The decoder 31 decodes the output of the selector 32, which has selected the output obtained by delaying the added data F (W 0 ) by one timing by the delay circuit 33, and the round difference data f (ΔW 1 ) of the bright correction value memory 22. Addition operation of the decoded data f (ΔW 1 ) is performed, and the addition data F
(W 1 ) is obtained. The signal data x 1 and the added data F (W 1 ) output from the adder 34 are input to the correction calculator 39, and a normalization operation (x 1 / F (W 1 )) × 255 is executed to perform correction. get the Eshingo X 1. The subtractor 37 executes a difference operation between the corrected image signal X 0 delayed by one timing by the delay circuit 36 and the corrected image signal X 1, and the operation result X 1 −X 0
And the decoded data f (ΔW 1 ) of the decoder 31 are input to the significant difference determination circuit 38, and it is determined whether there is a significant difference in the operation result X 1 −X 0.
A correction image signal X 1 at 5, if there is no significant difference delay circuit 36
In selecting the correct image signal X 0 which is 1 timing delay.
The significant difference is determined from the decoded data f (ΔW 1 ). In this embodiment, when the calculation results X 1 and −X 0 are less than the accuracy shown in FIG. Thus, selector 3
5 significance determined after correction signal of the signal data x 1 is output from. Hereinafter, similarly, signal data x n for one line
Is performed, and a corrected image signal after significant difference determination is obtained.
【0030】なお、前記説明では明補正についてのみで
あるが、暗補正についても全く同様に行なうことができ
る。In the above description, only the bright correction is performed, but the dark correction can be performed in the same manner.
【0031】図4は本発明の第2の実施例の説明図であ
る。図4(a)において、第1実施例と同様に、イメー
ジセンサが白基準を走査したときのイメージセンサ出力
をA/D変換した値が白基準データWnであり、ここで
nはイメージセンサの画素を示すアドレスである。但
し、ここでは差分データΔWnは現画素の白基準データ
と1画素前の白基準データの差分、すなわち、 ΔWn=Wn−Wn-1 である。まるめ差分データf(ΔWn)は図2に示した
通りである。加算データF(Wn)は上記まるめ差分デ
ータf(ΔWn)から白基準データを復元した値であ
り、すなわち、 F(Wn)=F(Wn-1)+f(ΔWn) である。精度はまるめ差分データの1つ大きい値と小さ
い値が各々±いくつかを示している。FIG. 4 is an explanatory diagram of a second embodiment of the present invention. In FIG. 4A, as in the first embodiment, a value obtained by A / D conversion of the image sensor output when the image sensor scans the white reference is white reference data Wn, where n is the image sensor output. This is an address indicating a pixel. However, here, the difference data ΔWn is a difference between the white reference data of the current pixel and the white reference data of one pixel before, that is, ΔWn = Wn−Wn −1 . The rounding difference data f (ΔWn) is as shown in FIG. The addition data F (Wn) is a value obtained by restoring the white reference data from the rounded difference data f (ΔWn), that is, F (Wn) = F (Wn −1 ) + f (ΔWn). The accuracy indicates one plus and minus one of the rounded difference data.
【0032】図4(b)は信号データが白基準データの
50%のとき、図4(a)で復元した加算データF(W
n)からシェーディング補正した補正画信号Aと本来の
補正画信号を比較した図である。本来の補正画信号はイ
メージセンサの最大値を255としているので、255
/Wnであり、信号データが白基準データの50%のと
きであるから正規化すると128になる。一方、加算デ
ータF(Wn)からシェーディング補正した補正画信号
Aは255/F(Wn)であり、図4(a)の加算デー
タF(Wn)から求めた値である。FIG. 4B shows the sum data F (W) restored in FIG. 4A when the signal data is 50% of the white reference data.
FIG. 11 is a diagram comparing a corrected image signal A subjected to shading correction from n) with an original corrected image signal. Since the original correction image signal has a maximum value of 255 for the image sensor, it is 255
/ Wn, which is when the signal data is 50% of the white reference data, and is thus normalized to 128. On the other hand, the corrected image signal A obtained by performing shading correction from the addition data F (Wn) is 255 / F (Wn), which is a value obtained from the addition data F (Wn) in FIG.
【0033】ただし、この方法においては、まるめ差分
データと復元した加算データは以下のようになる。 F(Wn)=F(Wn-1)+f(ΔWn)=F(W
n-2)+f(ΔWn-1)+f(ΔWn)=F(Wn-3)
+f(ΔWn-2)+f(ΔWn-1)+f(ΔWn)=・
・・ このように、差分データΔWnは現在画素の白基準デー
タと1画素前の白基準データの差分のため、まるめ差分
データから復元する白基準データである加算データには
まるめ誤差が累積することがある。However, in this method, the rounded difference data and the restored added data are as follows. F (Wn) = F (Wn −1 ) + f (ΔWn) = F (W
n −2 ) + f (ΔWn −1 ) + f (ΔWn) = F (Wn −3 )
+ F (ΔWn −2 ) + f (ΔWn −1 ) + f (ΔWn) = ·
In this manner, since the difference data ΔWn is a difference between the white reference data of the current pixel and the white reference data of one pixel before, the rounding error is accumulated in the added data which is the white reference data restored from the rounding difference data. There is.
【0034】また、図4(b)に示したように信号デー
タが同一濃度で一定のときに、加算データF(Wn)か
らシェーディング補正した補正画信号Aと本来の補正画
信号に誤差が生じた場合、誤差の生じた境界で濃度差が
目立ちやすい。特に、信号データが数ラインにわたって
同一中間濃度で、イメージセンサの同一画素で誤差が生
じると、誤差の生じた境界線で視覚的に濃度差が目立つ
ことがある。図4(b)の補正画信号を中間調記録した
ときの例を図4(c)に示す。ここでアドレスは図4
(b)のアドレスに対応している。アドレス3,4,5
の補正画信号はまわりのアドレスの補正画信号に比べて
−2になっているため、まわりより濃度が若干黒くな
り、境界が明確な場合は視覚的に目立つことがある。Further, as shown in FIG. 4B, when the signal data is constant at the same density, an error occurs between the corrected image signal A subjected to shading correction from the added data F (Wn) and the original corrected image signal. In such a case, the density difference tends to be conspicuous at the boundary where the error occurs. In particular, if the signal data has the same intermediate density over several lines and an error occurs in the same pixel of the image sensor, the density difference may be visually conspicuous at the boundary where the error has occurred. FIG. 4C shows an example when the corrected image signal of FIG. 4B is recorded in halftone. Here the address is
It corresponds to the address of (b). Address 3, 4, 5
Is -2 compared to the corrected image signal of the surrounding address, the density becomes slightly blacker than the surrounding, and it may be visually conspicuous when the boundary is clear.
【0035】図5(a)は本発明の第3実施例の説明
図、図5(b)はそのグラフである。差分データの絶対
値が小さいときは高精度で、差分データの絶対値が大き
いときは低精度でコード化することにより、本来6ビッ
トのデータを4ビットに圧縮している。図5(a)の差
分コードに従い、かつ図1のシェーディング補正装置に
よりイメージセンサが白基準を走査したイメージセンサ
出力をA/D変換した白基準データWn、差分データΔ
Wn、まるめ差分データf(ΔWn)、加算データF
(Wn)及びまるめの精度を図6(a)に示す。これは
第1実施例の図3(a)に相当する。また、図6(b)
は第1実施例の図3(b)に相当し、信号データが白基
準データの50%のとき、図6(a)で復元した加算デ
ータF(Wn)からシェーディング補正した補正画信号
Aと本来の補正画信号を比較した図である。FIG. 5A is an explanatory view of a third embodiment of the present invention, and FIG. 5B is a graph thereof. When the absolute value of the difference data is small, the encoding is performed with high accuracy, and when the absolute value of the difference data is large, the encoding is performed with low accuracy, so that the 6-bit data is compressed into 4 bits. In accordance with the difference code of FIG. 5A, the image sensor output obtained by scanning the image sensor with the white reference by the shading correction device of FIG.
Wn, rounding difference data f (ΔWn), addition data F
FIG. 6A shows (Wn) and the rounding accuracy. This corresponds to FIG. 3A of the first embodiment. FIG. 6 (b)
Corresponds to FIG. 3B of the first embodiment. When the signal data is 50% of the white reference data, the corrected image signal A obtained by shading correction from the added data F (Wn) restored in FIG. FIG. 9 is a diagram comparing original corrected image signals.
【0036】図7は、本発明の第4実施例のブロック図
である。このイメージセンサは、直流再生回路を含む密
着イメージセンサ50と、この密着イメージセンサ50
で読み取ったデータに対し黒、白の各レベルに対する補
正を行う暗補正値検出/補正回路51と明補正値検出/
補正回路52とを備えている。また、これらの回路に
は、後述する明暗の各補正値を記憶する明暗補正メモリ
53と、この明暗補正メモリ53のアドレスを指定する
アドレスカウンタ54と、密着イメージセンサ50やそ
の他の制御回路にタイミング信号を与えるタイミング回
路55とが接続される。前記明補正値検出/補正回路5
2は図1の第1実施例に示した明補正値検出/補正回路
と同じ構成を含んでいる。また、暗補正値検出/補正回
路51も取り扱う信号が異なるものの同じ構成を含んで
いる。FIG. 7 is a block diagram of a fourth embodiment of the present invention. This image sensor includes a contact image sensor 50 including a DC regeneration circuit and a contact image sensor 50.
A dark correction value detection / correction circuit 51 for correcting the data read by the black and white levels and a light correction value detection /
And a correction circuit 52. Further, these circuits include a light-dark correction memory 53 for storing light-dark correction values to be described later, an address counter 54 for designating an address of the light-dark correction memory 53, and a timing control unit for the contact image sensor 50 and other control circuits. A timing circuit 55 for supplying a signal is connected. The bright correction value detection / correction circuit 5
2 includes the same configuration as the bright correction value detection / correction circuit shown in the first embodiment of FIG. Further, the dark correction value detection / correction circuit 51 includes the same configuration although the signals handled are different.
【0037】また、補正後の信号処理系として、本実施
例では、追従比較方式アナログ・デジタル変換器で構成
し、原稿読取り中の背面白濃度の白レベルピーク電圧V
peakを検出するピーク検出回路56と、白レベルピーク
電圧の履歴からピーク値を制御するABCゲイン制御回
路57と、前記ABCゲイン制御回路57で検出した原
稿読取り中の背面白濃度をDA変換するピークホールド
58と、明,暗補正後のアナログ入力信号を最終的に、
アナログ・デジタル変換するための7ビットの画信号A
DC59と、画信号ADCの明暗基準電圧としてピーク
ホールド45の出力と暗レベル出力のクランクレベルV
CLP からの相対電圧を生成するための2ビットDAC6
0,61とを備えている。In the present embodiment, the corrected signal processing system is constituted by a tracking comparison type analog-to-digital converter.
a peak detector circuit 56 for detecting the peak, and ABC gain control circuit 57 for controlling the peak value from the history of the white level peak voltage, the ABC gain peak DA converting the back white density in document reading detected by the control circuit 57 Hold 58 and finally the analog input signal after the light / dark correction
7-bit image signal A for analog-to-digital conversion
DC59, the output of the peak hold 45 as the light / dark reference voltage of the image signal ADC, and the crank level V of the dark level output
2-bit DAC 6 for generating relative voltage from CLP
0, 61.
【0038】次に、図7のイメージセンサの動作を説明
する。図には示していない原稿照明用光源を消灯し、こ
のときの密着イメージセンサ50の出力を暗補正値検出
/補正回路51の6ビットの追従比較方式アナログ・デ
ジタル変換器でAD変換し、センサ素子毎の暗補正値を
求め、明暗補正メモリ53に格納する。Next, the operation of the image sensor shown in FIG. 7 will be described. A light source for document illumination (not shown) is turned off, and the output of the contact image sensor 50 at this time is AD-converted by a 6-bit tracking / comparison analog-to-digital converter of a dark correction value detection / correction circuit 51. A dark correction value for each element is obtained and stored in the light / dark correction memory 53.
【0039】次に原稿照明用光源を点灯し、図には示し
ていない原稿送りローラを白基準として読取り、前記明
暗補正メモリ53から暗補正値を読み出し、このときの
密着イメージセンサ50の出力からセンサ画素毎に暗補
正値を暗補正値検出/補正回路51にてアナログ減算す
る。この減算結果をピーク検出回路56に入力し、白レ
ベルピーク電圧Vpeakを検出する。そして、この白レベ
ルピーク電圧Vpeakを100%とし、密着イメージセン
サ50の直流再生回路で直流再生したクランプレベルV
CLP を0%とし、0%〜100%の範囲をフルスケール
として、センサ画素毎に白基準値を明補正値検出/補正
回路52にて検出する。この詳細動作は図1の明補正値
検出回路10の動作と同様である。このとき白レベルピ
ーク電圧Vpeakはピークホールド58にて保持される。
検出された白基準値は明暗補正メモリ53に格納され
る。Next, the light source for document illumination is turned on, a document feed roller (not shown) is read on the basis of white, a dark correction value is read from the light / dark correction memory 53, and the output of the contact image sensor 50 at this time is read. The dark correction value is analog-subtracted by the dark correction value detection / correction circuit 51 for each sensor pixel. The result of the subtraction is input to the peak detection circuit 56, and the white level peak voltage Vpeak is detected. Then, the white level peak voltage V peak is set to 100%, and the clamp level V reproduced by the direct current reproduction circuit of the contact image sensor 50 is reproduced.
The CLP is set to 0%, and the white reference value is detected by the bright correction value detection / correction circuit 52 for each sensor pixel, with the range of 0% to 100% being the full scale. This detailed operation is the same as the operation of the light correction value detection circuit 10 in FIG. At this time, the white level peak voltage V peak is held by the peak hold 58.
The detected white reference value is stored in the brightness correction memory 53.
【0040】実際の原稿を読取る場合は、密着イメージ
センサ50の出力からセンサ画素毎に暗補正値を暗補正
値検出/補正回路51にてアナログ減算し、さらに明補
正値検出/補正回路52にて、白基準値の正規化を行う
補正値をゲインデータとして前記減算結果を増幅する。
この詳細動作は図1の明補正回路30と同様である。こ
のときの暗補正値および明補正値は明暗補正メモリ53
より読み出される。原稿読取り中はライン毎にピーク検
出回路56にて白ピークを検出し、前記白ピーク検出結
果の履歴から白レベルピーク電圧Vpeakの制御をするの
がABCゲイン制御回路57であり、求められた白レベ
ルピーク電圧Vpeakをピークホールド58が保持する。When an actual document is read, the dark correction value is analog-subtracted from the output of the close contact image sensor 50 for each sensor pixel by the dark correction value detection / correction circuit 51, and the dark correction value is detected by the light correction value detection / correction circuit 52. Then, the subtraction result is amplified using the correction value for normalizing the white reference value as gain data.
This detailed operation is the same as that of the light correction circuit 30 in FIG. The dark correction value and the light correction value at this time are stored in the light / dark correction memory 53.
Is read out. During the reading of the document, the white peak is detected by the peak detection circuit 56 for each line, and the ABC level control circuit 57 controls the white level peak voltage Vpeak from the history of the white peak detection result. The peak hold 58 holds the white level peak voltage V peak .
【0041】明暗補正されたアナログ画信号は7ビット
の画信号ADC59にてアナログ・デジタル変換され
る。画信号ADC59の明暗基準電圧は図8に示すよう
に白レベルピーク電圧Vpeakと暗レベル出力のクランプ
レベルVCLP からの相対電圧生成するための2ビットD
AC60,61から決まる。すなわち、明基準電圧V
DAC2は、 VDAC2=VCLP +β×(Vpeak−VCLP ) 暗基準電圧VDAC1は、 VDAC1=VCLP +α×(Vpeak−VCLP ) ここで、α=0,0.08,0.17,0.25 β=1,0.92,0.83,0.75 である。The analog image signal corrected for brightness is converted from analog to digital by a 7-bit image signal ADC59. As shown in FIG. 8, the light-dark reference voltage of the image signal ADC 59 is a 2-bit D for generating a relative voltage from the white level peak voltage V peak and the dark level output clamp level V CLP.
Determined from AC60 and AC61. That is, the bright reference voltage V
DAC2 is, V DAC2 = V CLP + β × (V peak -V CLP) dark reference voltage V DAC1 is, V DAC1 = V CLP + α × (V peak -V CLP) where, α = 0,0.08,0 .17, 0.25 β = 1, 0.92, 0.83, 0.75.
【0042】一般には明基準電圧VDAC2を白レベルピー
ク電圧Vpeakより低く、暗基準電圧を暗レベル出力のク
ランプレベルVCLP より高く設定することにより、画信
号ADC59にてAD変換した画信号のコントラストを
強調する。Generally, by setting the light reference voltage V DAC2 lower than the white level peak voltage V peak and setting the dark reference voltage higher than the clamp level V CLP of the dark level output, the image signal ADC 59 is subjected to A / D conversion. Enhances contrast.
【0043】以上の説明では図2の補正の考え方を明補
正値検出/補正回路に適用した例を示しているが、暗補
正値検出/補正回路にも同様に適用できることは言うま
でもない。In the above description, an example in which the concept of the correction shown in FIG. 2 is applied to a bright correction value detection / correction circuit is shown. However, it is needless to say that the correction concept can be similarly applied to a dark correction value detection / correction circuit.
【0044】[0044]
【発明の効果】以上説明したように本発明の第1のシェ
ーディング補正方法は、イメージセンサ出力の先頭画素
に続くセンサ出力については1画素前の画素データとの
差分を演算し、この差分データ値があらかじめ設定した
基準値以下のときは高い精度で、また差分データ値が前
記基準値よりも大きいときは低い精度でそれぞれコード
化して記憶し、このコード化データに基づいて前記イメ
ージセンサが濃度基準を走査したときのイメージセンサ
出力のシェーディング補正後の値がほぼ一定になるよう
イメージセンサ出力のシェーディング補正を行うので、
補正データ容量を小さくでき、補正データを記憶するメ
モリ容量を小さくすることができる。また、コード化に
際しての精度は等しくしているため、差分データの絶対
値が前記基準値以下の発生頻度は大きく、差分データの
絶対値が前記基準値よりも大きい範囲の発生頻度は小さ
いため、全体として見ると、補正データ容量の削減効果
が大きい割に、画質の劣化を抑制することができる。As described above, the first shading correction method of the present invention calculates the difference between the sensor output following the first pixel of the image sensor output and the pixel data of one pixel before, and calculates the difference data value. Is preset
With high precision when the reference value or less, also the difference data values before
When greater than serial reference value stored in each coded with a low accuracy, on the basis of the code data Ime
Sensor when the image sensor scans the density reference
Since the shading correction of the image sensor output is performed so that the value after the shading correction of the output becomes almost constant ,
The correction data capacity can be reduced, and the memory capacity for storing the correction data can be reduced. In addition, since the accuracy at the time of encoding is made equal, the occurrence frequency of the absolute value of the difference data equal to or less than the reference value is high, and the occurrence frequency of the range where the absolute value of the difference data is larger than the reference value is small, As a whole, it is possible to suppress the deterioration of the image quality in spite of the great effect of reducing the correction data capacity.
【0045】また、本発明の第2のシェーディング補正
方法は、イメージセンサ出力に対応するセンサ出力補正
データを算出し、この補正データの先頭画素に続く補正
データについては1画素前の補正データとの差分を演算
し、この差分データ値があらかじめ設定した基準値以下
のときは高い精度で、前記差分データ値が前記基準値よ
りも大きいときは低い精度でそれぞれコード化して記憶
し、このコード化データに基づいて前記イメージセンサ
が濃度基準を走査したときのイメージセンサ出力のシェ
ーディング補正後の値がほぼ一定になるようイメージセ
ンサ出力のシェーディング補正を行うので、補正データ
のメモリ容量を小さくするとともに、コード化すること
により発生するまるめ誤差の累積を防止することがで
き、更に差分データの絶対値が大きいデータに対応する
画素の画質の劣化を視覚的にも改善することができる。According to the second shading correction method of the present invention, sensor output correction data corresponding to the image sensor output is calculated, and correction data following the first pixel of the correction data is calculated with correction data one pixel before. Calculate the difference and make this difference data value less than the preset reference value
Is a high degree of accuracy, the difference data value is the reference value when the
When the image sensor is larger than the image sensor, it is coded and stored with low precision, and based on the coded data,
Of the image sensor output when scanning the density reference
Since the shading correction of the image sensor output is performed so that the value after the coding correction becomes almost constant, the memory capacity of the correction data can be reduced, and the accumulation of rounding errors caused by coding can be prevented. The deterioration of the image quality of the pixel corresponding to the data having a large absolute value of the difference data can be visually improved.
【0046】本発明のシェーディング補正装置は、イメ
ージセンサと、このイメージセンサが濃度基準を走査し
たとき、あるいは入射光量を特定条件にして濃度基準を
走査したときのイメージセンサ出力に対応するセンサ出
力補正データを算出する補正演算器と、前記補正データ
の先頭画素を記憶する第1のメモリと、前記先頭画素に
続く補正データについては1画素前の補正データとの差
分を演算する減算器と、前記差分データ値があらかじめ
設定した基準値以下のときは高い精度で、前記差分デー
タ値が前記基準値よりも大きいときは低い精度でコード
化するコーダーと、前記コード化データを記憶する第2
のメモリとを備えているので、特に本発明の第2のシェ
ーディング補正方法を好適に実施することができる。A shading correction device according to the present invention comprises an image sensor and a sensor output correction unit which corrects the output of the image sensor when the image sensor scans the density reference or when the incident light quantity is scanned under the specific conditions. A correction calculator that calculates data, a first memory that stores a head pixel of the correction data, and a subtractor that calculates a difference between correction data one pixel before the correction data following the head pixel; the difference data value is in advance
A coder for coding with high accuracy when the difference data value is equal to or less than the set reference value , and with low accuracy when the difference data value is larger than the reference value; and a second coder for storing the coded data.
, The second shading correction method of the present invention can be particularly suitably implemented.
【図1】本発明の第1実施例の構成を示すブロック図で
ある。FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.
【図2】本発明における差分コード化の基本的な考え方
を説明するための図である。FIG. 2 is a diagram for explaining a basic concept of differential coding in the present invention.
【図3】本発明の第1実施例の作用を説明するための図
である。FIG. 3 is a diagram for explaining the operation of the first embodiment of the present invention.
【図4】本発明の第2実施例の作用を説明するための図
である。FIG. 4 is a diagram for explaining the operation of a second embodiment of the present invention.
【図5】本発明の第3実施例の差分コードを説明するた
めの図である。FIG. 5 is a diagram illustrating a difference code according to a third embodiment of the present invention.
【図6】本発明の第3実施例の作用を説明するための図
である。FIG. 6 is a diagram for explaining the operation of a third embodiment of the present invention.
【図7】本発明の第4実施例の構成を示すブロック図で
ある。FIG. 7 is a block diagram showing a configuration of a fourth embodiment of the present invention.
【図8】本発明の第4実施例における作用を説明するた
めの図である。FIG. 8 is a diagram for explaining an operation in a fourth embodiment of the present invention.
【図9】従来技術におけるデータ圧縮技術を説明するた
めのブロック図である。FIG. 9 is a block diagram for explaining a data compression technique in the related art.
【図10】図9の構成における作用を説明するための図
である。FIG. 10 is a diagram for explaining an operation in the configuration of FIG. 9;
10 明補正値検出回路 20 明補正メモリ 30 明補正回路 12 差分データまるめ 13 コーダ 16 加算器 17 セレクタ 21 基準値メモリ 22 明補正値メモリ 31 デコーダ 32 セレクタ 38 有意差判定回路 39 補正演算器 DESCRIPTION OF SYMBOLS 10 Bright correction value detection circuit 20 Bright correction memory 30 Bright correction circuit 12 Difference data rounding 13 Coder 16 Adder 17 Selector 21 Reference value memory 22 Bright correction value memory 31 Decoder 32 Selector 38 Significant difference judgment circuit 39 Correction calculator
Claims (6)
き、あるいは入射光量を特定条件にして濃度基準を走査
したときのイメージセンサ出力に対し、先頭画素に続く
センサ出力については1画素前の画素データとの差分を
演算し、この差分データ値があらかじめ定めた基準値以
下のときは高い精度で、また差分データ値が前記基準値
よりも大きいときは低い精度でそれぞれコード化して記
憶し、このコード化データに基づいて前記イメージセン
サが濃度基準を走査したときのイメージセンサ出力のシ
ェーディング補正後の値がほぼ一定になるよう前記イメ
ージセンサ出力のシェーディング補正を行うことを特徴
とするイメージセンサのシェーディング補正方法。1. An image sensor output when the image sensor scans the density reference or when the density reference is scanned with the incident light amount being a specific condition. Is calculated, and the difference data value is equal to or smaller than a predetermined reference value.
When the value is below, the accuracy is high, and the difference data value is the reference value.
When it is larger than the above , each is coded and stored with low precision, and based on the coded data, the image sensor is stored.
Of the image sensor output when the sensor scans the density reference.
A shading correction method for an image sensor, wherein the shading correction of the output of the image sensor is performed so that the value after the shading correction becomes substantially constant .
き、あるいは入射光量を特定条件にして濃度基準を走査
したときのイメージセンサ出力に対応するセンサ出力補
正データを算出し、この補正データの先頭画素に続く補
正データについては1画素前の補正データとの差分を演
算し、この差分データ値があらかじめ定めた基準値以下
のときは高い精度で、前記差分データ値が前記基準値よ
りも大きいときは低い精度でそれぞれコード化して記憶
し、このコード化データに基づいて前記イメージセンサ
が濃度基準を走査したときのイメージセンサ出力のシェ
ーディング補正後の値がほぼ一定になるよう前記イメー
ジセンサ出力のシェーディング補正を行うことを特徴と
するイメージセンサのシェーディング補正方法。2. A sensor output correction data corresponding to an output of the image sensor when the image sensor scans the density reference or when the density reference is scanned with the incident light amount being a specific condition, and the first pixel of the correction data is calculated. The difference between the correction data following 1 and the correction data one pixel before is calculated, and the difference data value is equal to or less than a predetermined reference value.
When the difference data value is higher than the reference value with high accuracy .
When the image sensor is larger than the image sensor, it is coded and stored with low precision, and based on the coded data,
Of the image sensor output when scanning the density reference
A shading correction method for an image sensor, wherein the shading correction of the output of the image sensor is performed so that a value after the shading correction becomes substantially constant .
が濃度基準を走査したとき、あるいは入射光量を特定条
件にして濃度基準を走査したときのイメージセンサ出力
に対応するセンサ出力補正データを算出する補正演算器
と、前記補正データの先頭画素を記憶する第1のメモリ
と、前記先頭画素に続く補正データについては1画素前
の補正データとの差分を演算する減算器と、前記差分デ
ータ値があらかじめ定めた基準値以下のときは高い精度
で、前記差分データ値が前記基準値よりも大きいときは
低い精度でコード化するコーダーと、前記コード化デー
タを記憶する第2のメモリとを具備することを特徴とす
るイメージセンサのシェーディング補正装置。3. An image sensor, and a correction operation for calculating sensor output correction data corresponding to an image sensor output when the image sensor scans a density reference or scans a density reference with an incident light amount as a specific condition. A first memory for storing a head pixel of the correction data, a subtractor for calculating a difference between the correction data following the head pixel and the correction data one pixel before, and a difference data value which is predetermined. A coder for encoding with high accuracy when the difference data value is equal to or less than the reference value , and with low accuracy when the difference data value is greater than the reference value, and a second memory for storing the encoded data. Characteristic image sensor shading correction device.
分データと1画素後の補正データとの加算をする加算器
と、前記加算データと1画素後の補正データとの差分を
前記差分データとし、前記コーダーでコード化し、前記
第2のメモリに記憶することを特徴とする請求項3記載
のイメージセンサのシェーディング補正装置。4. An adder for adding the rounded difference data corresponding to the coded data and the correction data after one pixel, and a difference between the addition data and the correction data after one pixel as the difference data; 4. The image sensor shading correction apparatus according to claim 3, wherein the code is coded by the coder and stored in the second memory.
データをデコードするデコーダーと、前記第1のメモリ
から読出したイメージセンサの補正データの先頭画素と
1画素前の加算データの一方を選択するセレクタと、前
記デコードデータと前記セレクタ出力を加算する加算器
と、前記イメージセンサが原稿を走査したときの画信号
と前記加算データから補正画信号を演算する補正演算器
とを備える請求項3または4のイメージセンサのシェー
ディング補正装置。5. A decoder for decoding coded data read from the second memory, and one of a head pixel of the correction data of the image sensor read from the first memory and one of added data one pixel before the selected data. 4. The image processing apparatus according to claim 3, further comprising a selector, an adder that adds the decoded data and the selector output, and a correction calculator that calculates a corrected image signal from an image signal obtained when the image sensor scans a document and the added data. 4 is a shading correction device for an image sensor.
の差分を演算する減算器と、前記減算結果を判定する有
意差判定回路と、前記有意差判定結果によって前記補正
画信号と1画素前の補正画信号の一方を選択するセレク
タとを備える請求項5のイメージセンサのシェーディン
グ補正装置。6. A subtractor for calculating a difference between the corrected image signal and the corrected image signal one pixel before, a significant difference determination circuit for determining the result of the subtraction, and a difference between the corrected image signal and 1 based on the significant difference determination result. 6. The shading correction device for an image sensor according to claim 5, further comprising: a selector for selecting one of the correction image signals before the pixel.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6254457A JP2715935B2 (en) | 1994-09-24 | 1994-09-24 | Image sensor shading correction method and correction device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6254457A JP2715935B2 (en) | 1994-09-24 | 1994-09-24 | Image sensor shading correction method and correction device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0898021A JPH0898021A (en) | 1996-04-12 |
| JP2715935B2 true JP2715935B2 (en) | 1998-02-18 |
Family
ID=17265292
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6254457A Expired - Fee Related JP2715935B2 (en) | 1994-09-24 | 1994-09-24 | Image sensor shading correction method and correction device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2715935B2 (en) |
-
1994
- 1994-09-24 JP JP6254457A patent/JP2715935B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0898021A (en) | 1996-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20070196023A1 (en) | Image processing device | |
| JP2715935B2 (en) | Image sensor shading correction method and correction device | |
| JP3752805B2 (en) | Image processing device | |
| JPH06284291A (en) | Image processing device | |
| JP2677208B2 (en) | Image sensor output level correction device | |
| KR960012550B1 (en) | Shading Correction Processing Unit | |
| JPH0670162A (en) | Image correction device | |
| JP2982232B2 (en) | Digital image signal recording / reproducing apparatus and recording / reproducing method | |
| JP3051144B2 (en) | Halftone image processing device | |
| JP2904258B2 (en) | Shading correction method | |
| JP3215146B2 (en) | Image processing device | |
| KR940000930B1 (en) | Picture signal processing device for fax | |
| JP2667860B2 (en) | Image processing method and apparatus | |
| JP2618655B2 (en) | Image reading device | |
| JPH02166582A (en) | Shading correcting circuit | |
| JP3512488B2 (en) | Image processing device | |
| JP3226534B2 (en) | Document reading device | |
| JPH07115664A (en) | High efficiency coding / decoding device | |
| JP3197909B2 (en) | Electronic still camera gradation improvement circuit | |
| JPS63296557A (en) | Picture read circuit | |
| JPH0556227A (en) | Automatic level correction device | |
| JP2002044454A (en) | Image reading method, image reading apparatus, control method of image reading apparatus, and image processing apparatus | |
| JPS60165871A (en) | Image processing device | |
| JPH04127776A (en) | Read signal processor | |
| JPH06303427A (en) | Image reader |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071107 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081107 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |