JPH11284848A - Original image reader - Google Patents

Original image reader

Info

Publication number
JPH11284848A
JPH11284848A JP10081037A JP8103798A JPH11284848A JP H11284848 A JPH11284848 A JP H11284848A JP 10081037 A JP10081037 A JP 10081037A JP 8103798 A JP8103798 A JP 8103798A JP H11284848 A JPH11284848 A JP H11284848A
Authority
JP
Japan
Prior art keywords
data
shading
shading data
reading
original image
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
JP10081037A
Other languages
Japanese (ja)
Inventor
Wataru Nara
亙 奈良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP10081037A priority Critical patent/JPH11284848A/en
Publication of JPH11284848A publication Critical patent/JPH11284848A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To conduct proper shading correction even when shading data are a prescribed value or below without increasing a capacity of a ROM required for shading arithmetic operation. SOLUTION: Even under a limited condition where only shading data requiring a capacity of a ROM more than 128/255 are objects for shading arithmetic operation, when actual shading data Dsh1 are 127/255 or below, not only the shading data Dsh1 but also original image data Dg of a corresponding pixel are multiplied by a multiple of α, and a ROM 5 is used as shading data of 128/255 or over substantially by using the shading data Dsh2 and original image data Dg1 that are results of multiple of α. As a result, proper shading correction conducted even to the shading data Dsh1 of 127/255 or below.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル複写機、
デジタルスキャナ等の原稿画像をCCDラインセンサ等
の光電変換素子を用いてデジタルデータとして読取って
複写等の後処理に供する原稿画像読取装置に関する。
The present invention relates to a digital copying machine,
The present invention relates to a document image reading apparatus that reads a document image such as a digital scanner as digital data using a photoelectric conversion element such as a CCD line sensor and performs post-processing such as copying.

【0002】[0002]

【従来の技術】一般に、この種の原稿画像読取装置で
は、光源のバラツキ、光電変換素子の各画素毎の感度の
バラツキ等を考慮し、原稿画像データに関してシェーデ
ィング補正を施すことは広く知られている。この場合、
最も一般的には原稿画像の読取りに先立って原稿読取範
囲外に配設された基準白板を結像光学系を介してCCD
ラインセンサ等により読取りA/D変換器を通してデジ
タル変換した各画素毎のシェーディングデータを取得し
てRAMに予め格納しておく。そして、実際の原稿画像
の読取り時にはCCDラインセンサ等により読取りA/
D変換器を通してデジタル変換した各画素毎の原稿画像
データをROMを利用して補正する。ここに、ROMに
は予め各シェーディングデータと各原稿画像データとを
アドレスとしてその原稿画像データを補正するためのシ
ェーディング補正済みデータ(シェーディング補正に必
要な計算結果)が格納されている。具体的には、扱うデ
ータを8ビットデータとすると、基準白板を読み取った
場合、全ての画素についての最終的な出力値を255と
させるためのシェーディング補正済みデータであり、原
稿画像データをDG 、シェーディングデータをDSHとす
ると、最終的な画像データGDは、 GD=(DG /DSH)×255 なるシェーディング補正を受ける。
2. Description of the Related Art In general, it is widely known that in this type of original image reading apparatus, shading correction is applied to original image data in consideration of variations in light sources, variations in sensitivity of each pixel of a photoelectric conversion element, and the like. I have. in this case,
Most commonly, a reference white plate disposed outside the original reading range is read by a CCD through an imaging optical system prior to reading the original image.
The shading data for each pixel, which has been digitally converted through a read A / D converter by a line sensor or the like, is acquired and stored in the RAM in advance. At the time of actual reading of the original image, the reading A /
Original image data for each pixel, which has been digitally converted through the D converter, is corrected using the ROM. Here, the ROM stores shading corrected data (calculation results necessary for shading correction) for correcting the document image data by using the respective shading data and the respective document image data as addresses. Specifically, assuming that the data to be handled is 8-bit data, when the reference white board is read, the data is shading-corrected data for making the final output values of all pixels 255, and the original image data is D G. If the shading data is D SH , the final image data GD undergoes the shading correction of GD = (D G / D SH ) × 255.

【0003】このようなシェーディング補正に関して
は、従来より種々の改良等が施されている。例えば、実
開平1−38875号公報(実用新案登録第25277
90号掲載公報)によれば、ROM内に記憶されるシェ
ーディング補正済みデータが膨大な量になり、ROMと
して大容量のものを用いなければならない点を改良し、
ROM内にはA/D変換器のデジタル変換における最大
デジタル出力信号の1/2を超える(8ビットデータの
場合、128/255以上)シェーディングデータに対
応するシェーディング補正済みデータのみを格納してお
くことにより、必要とするROM容量を1/2で済ませ
ることで、低コスト化を図っている。これは、一般的
に、元々シェーディングデータの最大値はA/D変換器
の最大デジタル出力信号の近傍の値とにるように設定さ
れ、かつ、このように設定されている場合、A/D変換
器の最大デジタル出力信号の1/2を下回るシェーディ
ングデータはあまり存在しないものと考えられるためで
ある。そして、仮に得られたシェーディングデータが最
大デジタル出力信号の1/2以下であった場合には、そ
のままではROM内のデータを利用できないので、原稿
画像データを単純に2倍して疑似的にシェーディング補
正を行うことで、ROMの低容量化を維持できるように
している。
With respect to such shading correction, various improvements have been made conventionally. For example, Japanese Utility Model Laid-Open Publication No. 1-387575 (Utility Model Registration No. 25277)
According to the publication No. 90, the shading-corrected data stored in the ROM becomes enormous, and the large-capacity ROM must be used.
The ROM stores only shading-corrected data corresponding to shading data that exceeds 1/2 of the maximum digital output signal in the digital conversion of the A / D converter (128/255 or more in the case of 8-bit data). As a result, the required ROM capacity can be reduced to half, thereby achieving cost reduction. This generally means that the maximum value of the shading data is originally set so as to be a value near the maximum digital output signal of the A / D converter. This is because it is considered that there is not much shading data below 1/2 of the maximum digital output signal of the converter. If the obtained shading data is less than 1/2 of the maximum digital output signal, the data in the ROM cannot be used as it is, so that the original image data is simply doubled and the pseudo shading is performed. By performing the correction, it is possible to maintain the low capacity of the ROM.

【0004】ちなみに、シェーディングデータの大きさ
が128/255以上となるようにすることは、例え
ば、光源の配向分布を調整することで行われている。
[0004] Incidentally, the size of the shading data is made to be 128/255 or more, for example, by adjusting the orientation distribution of the light source.

【0005】また、特開平9−224156号公報によ
れば、地肌除去機能の地肌濃度検出時にノイズ分の影響
をなくすように、シェーディングデータからノイズ分に
相当する値を減算してシェーディング補正するようにし
ている。即ち、基準白板を読取ってシェーディングデー
タを取得するときも原稿地肌濃度検出時にも、読取手段
で読取りA/D変換器の入力とするとともに、このA/
D変換器のリファレンス入力にはピーク検出手段で読取
られたデータピーク値を与えることでデジタル値を得る
基本的な構成の下、実際の原稿画像データにはノイズ分
N が含まれているため、地肌除去機能の動作時だけは
ノイズ分VN を抑制するような出力補正値DOFF だけシ
ェーディングデータを小さくすることでノイズ分VN
データとして現われないようにしている。
According to Japanese Patent Application Laid-Open No. 9-224156, shading correction is performed by subtracting a value corresponding to the noise from the shading data so as to eliminate the influence of the noise when the background density is detected by the background removal function. I have to. That is, when the shading data is obtained by reading the reference white plate and when the background density of the document is detected, the reading means inputs the data to the reading A / D converter and the A / D converter.
Under basic configuration to obtain a digital value by giving read data peak value in the peak detecting means to the reference input of the D converters, because they contain noise component V N in the actual original image data the noise component V N only during operation by reducing only the shading data output correction value D OFF so as to suppress the noise component V N of background removal function is prevented appear as data.

【0006】図3はそのためのシェーディング補正回路
1の構成例を示すもので、シェーディングデータ作成期
間にあっては入力される原稿画像データDg に基づき平
均値回路2で主走査方向の1画素毎に平均値を算出し、
その平均値を各画素毎のシェーディングデータDshとし
て全画素分全てをメモリ3に格納する。このメモリ3は
FIFO(First-In First-Out)よりなる。その
後、メモリ3から読み出されるシェーディングデータD
shから出力補正値Doff 分を減算器4により減算するこ
とで補正されたシェーディングデータDsh1 を得る。こ
こに、出力補正値Doff 分だけシェーディングデータD
shを小さくすることでノイズ分VN がデータに現われな
いようにする。その後、読取られた原稿画像データDg
と対応する画素の減算器4から得られるシェーディング
データDsh1 との対をアドレスとしてROM5内を検索
することで、このROM5に予め格納されている計算結
果をシェーディング後データなる最終的な画像データG
Dとして出力させることで、シェーディング補正を行っ
ている。ここに、CPU等から与えられる出力補正値D
off は一般的な値として、地肌除去時のみ“5”程度の
値とされ、その他の場合は“0”なる値がセットされ
る。
[0006] Figure 3 shows a configuration example of a shading correction circuit 1 for the mean value circuit 2 in each pixel in the main scanning direction based on the original image data D g of In the shading data generated period is input Calculate the average value,
The average value is stored in the memory 3 for all pixels as shading data Dsh for each pixel. This memory 3 is composed of a FIFO (First-In First-Out). Thereafter, the shading data D read from the memory 3
The subtractor 4 subtracts the output correction value D off from sh to obtain corrected shading data D sh1 . Here, the shading data D for the output correction value D off
noise component V N is prevented appear in the data by reducing the sh. Thereafter, the read original image data D g
And the shading data Dsh1 obtained from the subtractor 4 of the corresponding pixel are searched in the ROM 5 as an address, and the calculation result stored in the ROM 5 is converted into the final image data G as the post-shading data.
D is output to perform shading correction. Here, the output correction value D given from the CPU or the like
“off” is a general value that is set to a value of about “5” only when the background is removed, and is set to “0” in other cases.

【0007】ちなみに、特開平9−224156号公報
例によれば、地肌除去機能オン時のノイズ除去機能とし
てシェーディングデータの補正や原稿画像データの補正
を行うようにしているが、さらに、画像処理部のγ補正
機能では不可能なダイナミックレンジの変更が可能とな
るため、地肌除去機能のオン/オフによらず、シェーデ
ィングデータを変更する機能を利用することで、よりユ
ーザの求める画像を再現できる。
According to Japanese Patent Application Laid-Open No. 9-224156, correction of shading data and correction of original image data are performed as a noise removal function when the background removal function is turned on. Since the dynamic range change that cannot be performed by the γ correction function can be performed, an image desired by the user can be reproduced more by using the function of changing shading data regardless of whether the background removal function is on or off.

【0008】[0008]

【発明が解決しようとする課題】よりユーザの求める画
像を再現できるようにするため、シェーディング演算を
切換える上で、演算用ROMを切換えることで実現する
方法によるとROMを多く持つ必要があり、コストがか
かるが、上記の特開平9−224156号公報例のよう
にシェーディングデータから出力補正値Doff なる固定
値を減算する方法によれば、演算切換えだけで低コスト
で実現できる。ところが、シェーディングデータから或
る固定値を減算するため、シェーディングデータがデジ
タル変換における最大デジタル出力信号の1/2以下
(8ビットデータの場合、127/255以下)のデー
タとなってしまう場合がある。この場合、光源の配向分
布を調整しても、減算後のシェーディングデータが12
7/255以下にならないようにすることは困難であ
る。この結果、演算用ROMの容量を1/2に低減させ
る条件を満たさず、シェーディング演算に必要なROM
容量が倍になってしまう。
According to a method realized by switching a calculation ROM in order to switch a shading calculation so that an image desired by a user can be reproduced more, it is necessary to have a large number of ROMs. However, according to the method of subtracting the fixed value of the output correction value D off from the shading data as in the example of Japanese Patent Application Laid-Open No. 9-224156, it is possible to realize the method at low cost only by switching the operation. However, since a certain fixed value is subtracted from the shading data, the shading data may become data of 1/2 or less of the maximum digital output signal in digital conversion (127/255 or less in the case of 8-bit data). . In this case, even if the orientation distribution of the light source is adjusted, the shading data after subtraction is 12
It is difficult to keep it below 7/255. As a result, the condition for reducing the capacity of the operation ROM by half is not satisfied, and the ROM required for shading operation is not satisfied.
The capacity is doubled.

【0009】この点、前述の実開平1−38875号公
報(実用新案登録第2527790号掲載公報)の方法
を利用し、シェーディングデータがデジタル変換におけ
る最大デジタル出力信号の1/2以下になった場合に
は、原稿画像データを2倍した値をシェーディング補正
後のデータとして用いるようにすれば、シェーディング
補正に必要な計算結果を格納しておくROM容量を1/
2に維持することができる。しかし、この方法は元々疑
似的にシェーディング補正を行うとはしているものの、
原稿画像データを単純に2倍しているだけであり、実際
のシェーディング補正とはかけ離れてしまうことがあ
り、適正な対応策とはいい難い。
[0009] In this respect, when the shading data is reduced to half or less of the maximum digital output signal in the digital conversion using the method described in Japanese Utility Model Application Laid-Open No. 1-387575 (Japanese Utility Model Registration No. 2527790). If the value obtained by doubling the original image data is used as the data after the shading correction, the ROM capacity for storing the calculation result required for the shading correction can be reduced by 1 /.
2 can be maintained. However, although this method originally performs shading correction in a pseudo manner,
This is simply doubling the original image data, which may be far from the actual shading correction, and is not a proper countermeasure.

【0010】そこで、本発明は、シェーディング演算に
必要なROM容量を増やすことなく、シェーディングデ
ータが所定値以下の場合にも適正なシェーディング補正
を行い得る原稿画像読取装置を提供することを目的とす
る。
An object of the present invention is to provide a document image reading apparatus capable of performing appropriate shading correction even when shading data is equal to or less than a predetermined value without increasing a ROM capacity required for shading calculation. .

【0011】また、上記目的を簡単な構成で実現できる
原稿画像読取装置を提供することを目的とする。
Another object of the present invention is to provide a document image reading apparatus capable of realizing the above object with a simple configuration.

【0012】[0012]

【課題を解決するための手段】請求項1記載の発明は、
原稿画像の読取りに先立って原稿読取範囲外に配設され
た基準白板を読取手段により読取りデジタル変換した各
画素毎のシェーディングデータを取得してメモリに格納
し、原稿画像の読取り時には読取手段により読取りデジ
タル変換した各画素毎の原稿画像データを対応するシェ
ーディングデータに応じて補正するようにした原稿画像
読取装置において、シェーディングデータが所定値以下
の場合にはそのシェーディングデータ及び対応する原稿
画像データをともに所定倍したデータを用いてシェーデ
ィング補正するようにした。
According to the first aspect of the present invention,
Prior to reading the document image, the reference white plate disposed outside the document reading range is read by the reading means, and digitally converted shading data for each pixel is obtained and stored in the memory. When reading the document image, the reading means reads the document. In a document image reading apparatus that corrects digitally converted document image data for each pixel according to corresponding shading data, when the shading data is equal to or less than a predetermined value, both the shading data and the corresponding document image data are used. Shading correction is performed using data multiplied by a predetermined number.

【0013】従って、シェーディング演算に必要なRO
M容量が所定値を超えるシェーディングデータのみを対
象とすることで限られた条件下であっても、実際のシェ
ーディングデータが所定値以下の場合にはそのシェーデ
ィングデータだけでなく対応する画素の原稿画像データ
も同時に所定倍し、所定倍されたシェーディングデータ
及び原稿画像データを用いることで実質的に所定値以上
のシェーディングデータとしてROMを用いることがで
きるようにし、結果として、所定値以下のシェーディン
グデータについても適正なシェーディング補正を行うこ
とができる。
Therefore, RO required for shading calculation
Even under limited conditions by targeting only shading data whose M capacity exceeds a predetermined value, if the actual shading data is less than a predetermined value, not only the shading data but also the original image of the corresponding pixel The data is also multiplied by a predetermined amount at the same time, and by using the multiplied shading data and the original image data, the ROM can be used as the shading data substantially equal to or more than the predetermined value. Can also perform proper shading correction.

【0014】請求項2記載の発明は、原稿画像の読取り
に先立って原稿読取範囲外に配設された基準白板を読取
手段により読取りデジタル変換した各画素毎のシェーデ
ィングデータを取得してメモリに格納し、原稿画像の読
取り時には読取手段により読取りデジタル変換した各画
素毎の原稿画像データを対応するシェーディングデータ
に応じて補正するようにした原稿画像読取装置におい
て、基準白板を読取り取得された各画素毎のシェーディ
ングデータを格納するメモリと、このメモリに格納され
たシェーディングデータ及び原稿画像を読取り得られる
原稿画像データをともに所定倍する乗算器と、各画素毎
のシェーディングデータがデジタル変換における最大デ
ジタル出力信号の1/2以下であるか否かを判断する比
較器と、この比較器の判断結果が1/2以下の場合には
乗算器により所定倍されたシェーディングデータ及び原
稿画像データを選択し1/2以下でない場合にはメモリ
に格納されたシェーディングデータ及び原稿画像を読取
って得られた原稿画像データを選択する選択器と、デジ
タル変換における最大デジタル出力信号の1/2を超え
る値の各シェーディングデータに対応したシェーディン
グ補正済みデータが格納されて選択器により選択出力さ
れるシェーディングデータ及び原稿画像データをアドレ
スとして格納されたシェーディング補正済みデータが読
み出されるROMとを備えた。
According to a second aspect of the present invention, prior to reading a document image, a reference white plate disposed outside the document reading range is read by a reading means, and digitally converted shading data for each pixel is acquired and stored in a memory. When reading a document image, in a document image reading apparatus which corrects the document image data of each pixel read and converted by the reading means in accordance with the corresponding shading data, a reference white board is read and obtained for each pixel. And a multiplier for multiplying both the shading data stored in the memory and the original image data obtained by reading the original image by a predetermined number, and the maximum digital output signal in the digital conversion when the shading data for each pixel is converted into a digital signal. And a comparator for determining whether it is equal to or less than 1/2 of When the judgment result is less than 1/2, the shading data and the original image data multiplied by a predetermined number by the multiplier are selected, and when the judgment result is not less than 1/2, the shading data and the original image stored in the memory are read and obtained. A selector for selecting the original document image data, shading data in which shading corrected data corresponding to each shading data having a value exceeding 1/2 of the maximum digital output signal in the digital conversion are stored and selectively output by the selector. A ROM from which shading-corrected data stored with the document image data as an address is read.

【0015】従って、各画素毎のシェーディングデータ
がデジタル変換における最大デジタル出力信号の1/2
以下であるか否かを比較器により判断し、その判断結果
によりシェーディングデータ及び原稿画像データに関し
て乗算器を通して所定倍したデータか、又は、乗算器を
通さず所定倍してないデータかを選択器で選択してRO
Mからのシェーディング補正済みデータの読み出しを行
わせるだけの簡単な構成で、最大デジタル出力信号の1
/2以下のシェーディングデータに関しても適正なシェ
ーディング補正を実現できる。
Therefore, the shading data for each pixel is 1 / of the maximum digital output signal in digital conversion.
A comparator determines whether or not the following is true. Based on the result of the determination, a selector is used to determine whether the shading data and the original image data have been multiplied by a predetermined number through a multiplier or data that has not been multiplied by a predetermined number without passing through the multiplier. Select with RO
With a simple configuration that only reads out the shading-corrected data from M, one of the maximum digital output signals
Appropriate shading correction can be realized for shading data of / 2 or less.

【0016】請求項3記載の発明は、請求項2記載の原
稿画像読取装置における比較器は、シェーディングデー
タの最上位ビットデータが“0”の場合にそのシェーデ
ィングデータが最大デジタル出力信号の1/2以下であ
ると判断する。
According to a third aspect of the present invention, in the document image reading apparatus according to the second aspect, when the most significant bit data of the shading data is "0", the shading data is 1 / the maximum digital output signal. It is determined that it is 2 or less.

【0017】従って、シェーディングデータの最上位の
1ビットのデータのみをチェックすればよいので、比較
器を簡単に構成できる。
Therefore, it is only necessary to check the most significant 1-bit data of the shading data, so that the comparator can be easily constructed.

【0018】[0018]

【発明の実施の形態】本発明の一実施の形態を図1及び
図2に基づいて説明する。図3で示した部分と同一部分
は同一符号を用いて示し、説明も省略する。なお、本実
施の形態では、最大デジタル出力信号を“255”(=
11111111)とする。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described with reference to FIGS. The same parts as those shown in FIG. 3 are denoted by the same reference numerals, and description thereof will be omitted. In this embodiment, the maximum digital output signal is “255” (=
11111111).

【0019】まず、図1は本実施の形態における原稿画
像読取装置の機構的な構成例を示し、読取対象となる原
稿11を載置するコンタクトガラス12が設けられてい
る。このコンタクトガラス12の端部はA4,B4等の
位置決め用のスケール13を含む本体カバー14により
覆われているとともに、基準位置には基準白板15が組
込まれている。このようなコンタクトガラス12の下方
には読取光学系が配設されている。この読取光学系は、
原稿11面や基準白板15面をスリット露光する光源1
6と、原稿11面や基準白板15面からの反射光を順次
受ける第1〜3ミラー17,18,19と、その反射光
を受光する1次元アレイ状のCCD20と、反射光をこ
のCCD20へ集光結像させる結像レンズ21とにより
構成されている。ここに、光源16及び第1ミラー17
が第1走行体、第2,3ミラー18,19が第2走行体
として、同一方向に2:1の速度比で副走査するように
設定されている。
First, FIG. 1 shows an example of a mechanical configuration of a document image reading apparatus according to the present embodiment, in which a contact glass 12 on which a document 11 to be read is placed is provided. The end of the contact glass 12 is covered with a main body cover 14 including a scale 13 for positioning such as A4 and B4, and a reference white plate 15 is incorporated at a reference position. A reading optical system is provided below the contact glass 12. This reading optical system
Light source 1 for slit exposure of 11 originals and 15 reference white plates
6, first to third mirrors 17, 18, and 19 that sequentially receive the reflected light from the original 11 surface and the reference white plate 15, a one-dimensional array-shaped CCD 20 that receives the reflected light, and the reflected light to the CCD 20. And an imaging lens 21 for converging and forming an image. Here, the light source 16 and the first mirror 17
Are set so as to perform sub-scanning at the speed ratio of 2: 1 in the same direction as the first traveling body and the second and third mirrors 18 and 19 as the second traveling body.

【0020】図2はシェーディング補正回路31を含む
信号処理系の概略構成を示す。まず、1次元アレイ状の
CCD20により読取られた読取データは波形整形、サ
ンプルホールド、増幅等の信号処理回路32による信号
処理を経て、A/D変換器33によりデジタルデータに
変換されてシェーディング補正回路31に入力される。
ここに、CCD20、信号処理回路32及びA/D変換
器33により読取手段34が構成されている。
FIG. 2 shows a schematic configuration of a signal processing system including the shading correction circuit 31. First, the read data read by the one-dimensional array CCD 20 is converted into digital data by an A / D converter 33 through signal processing by a signal processing circuit 32 such as waveform shaping, sample hold, amplification, etc., and is converted into a shading correction circuit. 31 is input.
Here, the CCD 20, the signal processing circuit 32, and the A / D converter 33 constitute a reading unit 34.

【0021】一方、シェーディング補正回路31中に
は、図3の場合と同様に、平均値回路2、メモリ3、減
算器4及びROM5が設けられている他、減算器4から
得られる減算後の各画素毎のシェーディングデータD
sh1 及びA/D変換器33から得られる各画素毎のデー
タDg に対して所定倍(α倍)する乗算器35が設けら
れている。ここでは、α=2に設定されており、バイナ
リデータに関しては1ビットシフトさせるだけの簡単な
構成、処理で済む。また、減算器4から得られる減算後
の各画素毎のシェーディングデータDsh1 の値が所定値
以下であるか否かを判断するコンパレータ(比較器)3
6が設けられている。具体的には、シェーディングデー
タDsh1 の値が127/255以下であるか否かを判断
するものであり、シェーディングデータDsh1 の最上位
ビット(MSB)の値が“0”であれば127/255
以下であると判断し、“1”であれば128/255以
上であると判断する。さらに、減算器4から得られる減
算後の各画素毎のシェーディングデータDsh1 、A/D
変換器33から得られる各画素毎のデータDg 、乗算器
35より得られる所定倍されたシェーディングデータD
sh2 、及び、原稿画像データDg1を入力とするセレクタ
(選択器)37が設けられている。このセレクタ37に
おいて、何れのデータをシェーディングデータDsh3
原稿画像データDg2として出力するかはコンパレータ3
6の出力COMPにより選択される。ここに、セレクタ37
は、コンパレータ36の出力COMPが128/255以上
である旨の場合にはシェーディングデータDsh3 =D
sh1 、原稿画像データDg2=Dg なる選択を行い、コン
パレータ36の出力COMPが127/255以下である旨
の場合にはシェーディングデータDsh3 =Dsh2 、原稿
画像データDg2=Dg1なる選択を行うように設定されて
いる。
On the other hand, as in the case of FIG. 3, the shading correction circuit 31 includes an average value circuit 2, a memory 3, a subtractor 4, and a ROM 5, and also performs subtraction obtained from the subtractor 4. Shading data D for each pixel
predetermined multiple (alpha times) multipliers 35 are provided to the data D g for each pixel obtained from sh1 and A / D converter 33. Here, α is set to 2, and binary data can be simply processed and shifted by one bit. Further, a comparator (comparator) 3 for determining whether or not the value of the shading data D sh1 for each pixel after the subtraction obtained from the subtractor 4 is equal to or smaller than a predetermined value.
6 are provided. More specifically, if the value of the shading data D sh1 determines whether a 127/255 or less, if the value of the most significant bit (MSB) of the shading data D sh1 is "0" 127 / 255
It is determined that it is below, and if it is “1”, it is determined that it is 128/255 or more. Further, the shading data D sh1 , A / D for each pixel after subtraction obtained from the subtractor 4
Data D g for each pixel obtained from the converter 33 and shading data D multiplied by a predetermined value obtained from the multiplier 35
A selector (selector) 37 for inputting sh2 and document image data Dg1 is provided. In this selector 37, any data is used as the shading data D sh3 ,
The comparator 3 determines whether to output the original image data D g2.
6 is selected by the output COMP. Here, the selector 37
If the output COMP of the comparator 36 is 128/255 or more, the shading data D sh3 = D
sh1, make a selection consisting original image data D g2 = D g, in the case of that the output COMP from the comparator 36 is 127/255 or less shading data D sh3 = D sh2, comprising the document image data D g2 = D g1 selected Is set to do.

【0022】また、ROM5には、A/D変換器33に
よるデジタル変換における最大デジタル出力信号“25
5”(=11111111)の1/2を超える値(12
8/255以上)の各シェーディングデータDsh3 に対
応したシェーディング補正済みデータが格納されてお
り、セレクタ37により選択出力されるシェーディング
データDsh3 及び原稿画像データDg2をアドレスとして
格納されたシェーディング補正済みデータが読み出され
るように構成されている。従って、ROM5中には12
7/255以下のシェーディングデータに対応するデー
タは格納されていない。
The maximum digital output signal “25” in the digital conversion by the A / D converter 33 is stored in the ROM 5.
5 ”(= 111111111)
8/255 or higher) shading corrected data corresponding to the shading data D sh3 of is stored, the selector 37 by the stored shading corrected shading data D sh3 and the document image data D g2 which is selectively outputted as an address It is configured to read data. Therefore, 12
Data corresponding to 7/255 or less shading data is not stored.

【0023】このような構成において、原稿11の画像
の読取りに先立って基準白板15を読取手段34により
読取りデジタル変換した各画素毎のシェーディングデー
タDshを取得してメモリ3に格納し、実際の原稿画像の
読取り時には読取手段34により読取りデジタル変換し
た各画素毎の原稿画像データDg を対応するシェーディ
ングデータDshに応じて補正するという基本動作は従来
と同様である。また、地肌除去時にはCPU38から適
宜与えられる出力補正値Doff を用いて減算器4でシェ
ーディングデータDshに減算処理を施したシェーディン
グデータDsh1を用いることでノイズ分の影響を除去す
る処理も特開平9−224156号公報の場合と同様に
行われる。この結果、現実には、前述したように減算後
のシェーディングデータDsh1 としては127/255
以下となってしまうことがある。
In such a configuration, the shading data Dsh for each pixel, which is obtained by reading the reference white plate 15 by the reading means 34 and digitized before acquiring the image of the document 11, is stored in the memory 3, and is stored in the memory 3. basic operation that correcting the original image data D g for each pixel and read digital conversion by the reading means 34 when reading of the document image to the corresponding shading data D sh is conventional. The processing to remove the influence of noise component by using the shading data D sh1 that during background elimination subjected to subtraction processing in the shading data D sh subtracter 4 by using the output correction value D off given appropriately from CPU38 also JP This is performed in the same manner as in the case of Japanese Unexamined Patent Publication No. 9-224156. As a result, in reality, as described above, the shading data D sh1 after the subtraction is 127/255.
The following may occur.

【0024】そこで、本実施の形態では、上述したよう
なシェーディング補正回路31の構成によって、減算後
のシェーディングデータDsh1 が127/255以下の
場合にも適正なシェーディング補正を行うものである。
Therefore, in the present embodiment, proper shading correction is performed by the configuration of the shading correction circuit 31 as described above even when the shading data D sh1 after the subtraction is 127/255 or less.

【0025】即ち、シェーディングデータDsh1 が12
7/255以下の場合のシェーディング演算としては、 GD=INT[(Dg ×α)/(Dsh1 ×α)×255] INT[ ]:最大255の整数値を表示する関数 GD :シェーディング後データ Dg :原稿画像データ Dsh1 :(減算後の)シェーディングデータ α :任意の所定倍数 という計算を行い、シェーディングデータが128/2
55以上の値になるところで行うようにすればROM5
をそのまま用いることができる。上記の演算は、書換え
ると、 GD=INT[(Dg1/Dsh2 )×255] で表すことができ、乗算器35を通したデータを用いる
だけで容易に実現できる。よって、127/255以下
のシェーディングデータの場合でも128/255以上
のシェーディングデータによるROM5を用いて適正に
シェーディング補正を行うことができる。逆に、通常通
り、減算後のシェーディングデータDsh1が128/2
55以上であれば、 GD=INT[(Dg /Dsh1 )×255] という従来通りの処理を行わせればよい。
That is, when the shading data D sh1 is 12
The shading calculation in the case of 7/255 or less, GD = INT [(D g × α) / (D sh1 × α) × 255] INT []: Function displays an integer value of the maximum 255 GD: shading after data D g : Original image data D sh1 : Shading data (after subtraction) α: Arbitrary predetermined multiple, and the shading data is 128/2
ROM5 can be used where the value is 55 or more.
Can be used as it is. The above calculation can be rewritten as GD = INT [(D g1 / D sh2 ) × 255], and can be easily realized only by using the data passed through the multiplier 35. Therefore, even in the case of the shading data of 127/255 or less, the shading correction can be appropriately performed using the ROM 5 based on the shading data of 128/255 or more. Conversely, as usual, the shading data D sh1 after the subtraction is 128/2.
If it is 55 or more, the conventional processing of GD = INT [(D g / D sh1 ) × 255] may be performed.

【0026】このように、本実施の形態によれば、メモ
リ3に蓄積されたシェーディングデータDshに関して、
出力補正値Doff 分を減算したシェーディングデータD
sh1の値をコンパレータ36で127/255以下であ
るか否かを判断し、127/255以下の場合であれ
ば、 GD=INT[(Dg1/Dsh2 )×255] 128/255以上であれば、 GD=INT[(Dg /Dsh1 )×255] となるように、このコンパレータ36の出力COMPによ
り、セレクタ37で乗算器35を通した出力か、通す前
の出力かの何れかをROM5に入力させる切換えを行わ
せればよく、極めて簡単な構成で済む。
As described above, according to the present embodiment, with respect to the shading data D sh stored in the memory 3,
Shading data D obtained by subtracting the output correction value D off
the value of the sh1 determines whether a 127/255 or less in the comparator 36, in the case of 127/255, there in GD = INT [(D g1 / D sh2) × 255] 128/255 or For example, the output COMP of the comparator 36 determines whether the output through the multiplier 35 or the output before the output is passed by the selector 37 so that GD = INT [(D g / D sh1 ) × 255]. It is only necessary to perform switching for inputting data to the ROM 5, and an extremely simple configuration is sufficient.

【0027】なお、本実施の形態では、メモリ5に格納
されたシェーディングデータDshから出力補正値Doff
分を減算したシェーディングデータDsh1 の値が127
/255以下であるか否かをコンパレータ36で判断す
る構成としたが、減算前のシェーディングデータDsh
用いて所定値以下であるか否かを判断するようにしても
よい。即ち、出力補正値Doff 分を見込んだ値を用いて
大小を判断するようにすればよい。この場合、光源16
の配向分布の制約条件を緩和させることができる。
In this embodiment, the output correction value D off is obtained from the shading data D sh stored in the memory 5.
The value of the shading data D sh1 obtained by subtracting the minute is 127
/ 255 Although the whether the following was configured to determine the comparator 36, the shading data D sh before subtraction may be equal to or less than a predetermined value using. That is, the magnitude may be determined using a value that allows for the output correction value D off . In this case, the light source 16
Can be relaxed.

【0028】[0028]

【発明の効果】請求項1記載の発明によれば、シェーデ
ィングデータが所定値以下の場合にはそのシェーディン
グデータ及び対応する原稿画像データをともに所定倍し
たデータを用いてシェーディング補正するようにしたの
で、シェーディング演算に必要なROM容量が所定値を
超えるシェーディングデータのみを対象とすることで限
られた条件下であっても、実際のシェーディングデータ
が所定値以下の場合にはそのシェーディングデータだけ
でなく対応する画素の原稿画像データも同時に所定倍
し、所定倍されたシェーディングデータ及び原稿画像デ
ータを用いることで実質的に所定値以上のシェーディン
グデータとしてROMを用いることができ、結果とし
て、所定値以下のシェーディングデータについても適正
なシェーディング補正を行うことができる。
According to the first aspect of the present invention, when the shading data is equal to or less than a predetermined value, shading correction is performed using data obtained by multiplying both the shading data and the corresponding original image data by a predetermined value. Even under limited conditions, only the shading data for which the ROM capacity required for shading calculation exceeds a predetermined value is used. The original image data of the corresponding pixel is also multiplied by a predetermined value at the same time, and by using the multiplied shading data and the document image data, the ROM can be used as the shading data substantially equal to or more than the predetermined value. Appropriate shading correction for all shading data It can be carried out.

【0029】請求項2記載の発明によれば、基準白板を
読取り取得された各画素毎のシェーディングデータを格
納するメモリと、このメモリに格納されたシェーディン
グデータ及び原稿画像を読取り得られる原稿画像データ
をともに所定倍する乗算器と、各画素毎のシェーディン
グデータがデジタル変換における最大デジタル出力信号
の1/2以下であるか否かを判断する比較器と、この比
較器の判断結果が1/2以下の場合には乗算器により所
定倍されたシェーディングデータ及び原稿画像データを
選択し1/2以下でない場合にはメモリに格納されたシ
ェーディングデータ及び原稿画像を読取って得られた原
稿画像データを選択する選択器と、デジタル変換におけ
る最大デジタル出力信号の1/2を超える値の各シェー
ディングデータに対応したシェーディング補正済みデー
タが格納されて選択器により選択出力されるシェーディ
ングデータ及び原稿画像データをアドレスとして格納さ
れたシェーディング補正済みデータが読み出されるRO
Mとを備えたので、各画素毎のシェーディングデータが
デジタル変換における最大デジタル出力信号の1/2以
下であるか否かを比較器により判断し、その判断結果に
よりシェーディングデータ及び原稿画像データに関して
乗算器を通して所定倍したデータか、又は、乗算器を通
さず所定倍してないデータかを選択器で選択してROM
からのシェーディング補正済みデータの読み出しを行わ
せるだけの簡単な構成で、最大デジタル出力信号の1/
2以下のシェーディングデータに関しても適正なシェー
ディング補正を実現することができる。
According to the second aspect of the present invention, there is provided a memory for storing shading data for each pixel obtained by reading a reference white plate, and shading data stored in the memory and original image data obtained by reading an original image. , And a comparator for determining whether or not the shading data for each pixel is equal to or less than の of the maximum digital output signal in digital conversion. In the following cases, the shading data and the original image data multiplied by a predetermined value are selected by the multiplier, and if not less than 1/2, the shading data stored in the memory and the original image data obtained by reading the original image are selected. And the shading data having a value exceeding 1/2 of the maximum digital output signal in the digital conversion. RO shading corrected data stored in the shading data and original image data as an address response to shading corrected data is selectively outputted by the selector stored is read
M, the comparator determines whether or not the shading data for each pixel is equal to or less than 1/2 of the maximum digital output signal in the digital conversion, and multiplies the shading data and the original image data based on the determination result. Select the data that has been multiplied by a predetermined amount through a multiplier or the data that has not been multiplied by a predetermined number without passing through a multiplier,
With a simple configuration that only reads the shading corrected data from the
Appropriate shading correction can be realized for shading data of 2 or less.

【0030】請求項3記載の発明によれば、請求項2記
載の原稿画像読取装置における比較器は、シェーディン
グデータの最上位ビットデータが“0”の場合にそのシ
ェーディングデータが最大デジタル出力信号の1/2以
下であると判断するようにしたので、シェーディングデ
ータの最上位の1ビットのデータのみをチェックすれば
よく、比較器を簡単に構成することができる。
According to the third aspect of the present invention, in the document image reading apparatus according to the second aspect, when the most significant bit data of the shading data is "0", the comparator outputs the shading data of the maximum digital output signal. Since it is determined that it is 1/2 or less, it is sufficient to check only the most significant 1-bit data of the shading data, and the comparator can be easily configured.

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

【図1】本発明の一実施の形態の原稿画像読取装置の機
構的構成例を示す正面図である。
FIG. 1 is a front view illustrating a mechanical configuration example of a document image reading apparatus according to an embodiment of the present invention.

【図2】シェーディング補正回路を主体に示すブロック
図である。
FIG. 2 is a block diagram mainly showing a shading correction circuit;

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

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

3 メモリ 5 ROM 11 原稿 15 基準白板 34 読取手段 35 乗算器 36 比較器 37 選択器 3 Memory 5 ROM 11 Original 15 Reference white plate 34 Reading means 35 Multiplier 36 Comparator 37 Selector

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 原稿画像の読取りに先立って原稿読取範
囲外に配設された基準白板を読取手段により読取りデジ
タル変換した各画素毎のシェーディングデータを取得し
てメモリに格納し、原稿画像の読取り時には前記読取手
段により読取りデジタル変換した各画素毎の原稿画像デ
ータを対応する前記シェーディングデータに応じて補正
するようにした原稿画像読取装置において、前記シェー
ディングデータが所定値以下の場合にはそのシェーディ
ングデータ及び対応する原稿画像データをともに所定倍
したデータを用いてシェーディング補正するようにした
ことを特徴とする原稿画像読取装置。
1. Prior to reading a document image, a reference white plate disposed outside a document reading range is read by a reading means, and digitally converted shading data for each pixel is acquired and stored in a memory. In a document image reading apparatus which is configured to correct the document image data of each pixel read and converted by the reading means in accordance with the corresponding shading data, when the shading data is equal to or less than a predetermined value, the shading data is corrected. A document image reading apparatus wherein shading correction is performed using data obtained by multiplying the corresponding document image data by a predetermined number.
【請求項2】 原稿画像の読取りに先立って原稿読取範
囲外に配設された基準白板を読取手段により読取りデジ
タル変換した各画素毎のシェーディングデータを取得し
てメモリに格納し、原稿画像の読取り時には前記読取手
段により読取りデジタル変換した各画素毎の原稿画像デ
ータを対応する前記シェーディングデータに応じて補正
するようにした原稿画像読取装置において、 前記基準白板を読取り取得された各画素毎のシェーディ
ングデータを格納するメモリと、 このメモリに格納されたシェーディングデータ及び原稿
画像を読取り得られる原稿画像データをともに所定倍す
る乗算器と、 各画素毎のシェーディングデータがデジタル変換におけ
る最大デジタル出力信号の1/2以下であるか否かを判
断する比較器と、 この比較器の判断結果が1/2以下の場合には前記乗算
器により所定倍されたシェーディングデータ及び原稿画
像データを選択し1/2以下でない場合には前記メモリ
に格納されたシェーディングデータ及び原稿画像を読取
って得られた原稿画像データを選択する選択器と、 デジタル変換における最大デジタル出力信号の1/2を
超える値の各シェーディングデータに対応したシェーデ
ィング補正済みデータが格納されて前記選択器により選
択出力されるシェーディングデータ及び原稿画像データ
をアドレスとして格納されたシェーディング補正済みデ
ータが読み出されるROMと、を備えたことを特徴とす
る原稿画像読取装置。
2. Prior to reading a document image, a reference white plate disposed outside the document reading range is read by a reading means, and digitally converted shading data for each pixel is obtained and stored in a memory, and the document image is read. In a document image reading apparatus which sometimes corrects document image data of each pixel read and converted by the reading means in accordance with the corresponding shading data, shading data of each pixel which is obtained by reading the reference white plate A multiplier that multiplies both the shading data stored in the memory and the original image data obtained by reading the original image by a predetermined number; and a shading data for each pixel that is 1 / the maximum digital output signal in the digital conversion. A comparator for determining whether the number is 2 or less; When the result is less than 1/2, the shading data and the original image data multiplied by the multiplier by a predetermined number are selected. When the result is not less than 1/2, the shading data and the original image stored in the memory are read and obtained. A selector for selecting the selected original image data, and shading in which shading corrected data corresponding to each shading data having a value exceeding 1/2 of the maximum digital output signal in the digital conversion is stored and selectively output by the selector. A ROM from which shading corrected data in which data and document image data are stored as addresses is read.
【請求項3】 比較器は、シェーディングデータの最上
位ビットデータが“0”の場合にそのシェーディングデ
ータが最大デジタル出力信号の1/2以下であると判断
することを特徴とする請求項2記載の原稿画像読取装
置。
3. The comparator according to claim 2, wherein when the most significant bit data of the shading data is “0”, the comparator determines that the shading data is equal to or less than の of the maximum digital output signal. Original image reading device.
JP10081037A 1998-03-27 1998-03-27 Original image reader Pending JPH11284848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10081037A JPH11284848A (en) 1998-03-27 1998-03-27 Original image reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10081037A JPH11284848A (en) 1998-03-27 1998-03-27 Original image reader

Publications (1)

Publication Number Publication Date
JPH11284848A true JPH11284848A (en) 1999-10-15

Family

ID=13735264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10081037A Pending JPH11284848A (en) 1998-03-27 1998-03-27 Original image reader

Country Status (1)

Country Link
JP (1) JPH11284848A (en)

Similar Documents

Publication Publication Date Title
US5086343A (en) Method and apparatus for compensating for sensitivity variations in the output of a solid state image sensor
US7196725B1 (en) Image reading apparatus and computer readable storage medium
JP3130593B2 (en) Document reader
JP2000115533A (en) Picture reader
JP4150316B2 (en) Image reading apparatus and shading correction method for the same
US5748800A (en) Image reading device that selectively performs edge contrast adjustment
JPH11284848A (en) Original image reader
JP4340503B2 (en) Document reader
JPH09212642A (en) Image processor
JPH10164363A (en) Image reader
JP2667288B2 (en) Image signal judgment device
JP3751422B2 (en) Image reading device
JPH05167845A (en) Shading correction device
JP2001326822A (en) Image processing unit
JP3178077B2 (en) Binarization processing method
JPH01177278A (en) Picture reader
JPH0548894A (en) Picture processor
JPH05300365A (en) Binarizing processing method
JPH099056A (en) Picture reader
JP2005080016A (en) Original reader
JPH0937074A (en) Binary picture processor
JPH10117278A (en) Image reader
JPH04324757A (en) Semiconductor integrated circuit device
JPH07264401A (en) Image reader
JP2002281300A (en) Image reader