JP3400838B2 - Background correction circuit of the document reading device - Google Patents

Background correction circuit of the document reading device

Info

Publication number
JP3400838B2
JP3400838B2 JP35013793A JP35013793A JP3400838B2 JP 3400838 B2 JP3400838 B2 JP 3400838B2 JP 35013793 A JP35013793 A JP 35013793A JP 35013793 A JP35013793 A JP 35013793A JP 3400838 B2 JP3400838 B2 JP 3400838B2
Authority
JP
Japan
Prior art keywords
circuit
correction
background
divider
image signal
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
Application number
JP35013793A
Other languages
Japanese (ja)
Other versions
JPH07203206A (en
Inventor
浩二 荻野
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.)
Nisca Corp
Original Assignee
Nisca Corp
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 Nisca Corp filed Critical Nisca Corp
Priority to JP35013793A priority Critical patent/JP3400838B2/en
Publication of JPH07203206A publication Critical patent/JPH07203206A/en
Application granted granted Critical
Publication of JP3400838B2 publication Critical patent/JP3400838B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Processing Or Creating Images (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、イメージスキャナやフ
ァクシミリ装置等の原稿読み取り装置における地肌補正
回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a background correction circuit in a document reading device such as an image scanner or a facsimile device.

【0002】[0002]

【従来の技術】イメージスキャナやファクシミリ装置等
の原稿読み取り装置において、地肌補正は、新聞のよう
に地肌が暗い原稿を2値化する際に、原稿の地肌が黒く
ならないようにするために行われる。
2. Description of the Related Art In a document reading device such as an image scanner or a facsimile device, background correction is performed in order to prevent the background of the original from becoming black when binarizing a document with a dark background such as a newspaper. .

【0003】そのための補正方法として、画像の状態に
よって地肌補正の補正の程度を追従させる補正形式を使
用する場合、次のどちらかが行われる。
As a correction method therefor, when using a correction format in which the degree of correction of the background correction is made to follow depending on the state of the image, either of the following is performed.

【0004】2値化閾値を固定として、画像信号が8
ビットの場合、地肌の画像信号をffHになるように画
像信号を規格化する。
When the binarization threshold value is fixed, the image signal is 8
In the case of bits, the image signal is standardized so that the background image signal becomes ffH.

【0005】画像信号の変換は行わず2値化閾値を地
肌の濃度に合わせて変化させる。
The image signal is not converted and the binarization threshold value is changed according to the density of the background.

【0006】まず上記を説明する。First, the above will be described.

【0007】通常、文字原稿の地肌は文字より明るいの
で、原稿の明るさの最大値は原稿の地肌と考えられる。
8ビット画像信号を例にすると、地肌の明るさが“25
5”になるように明るさを変換すると、2値化したとき
に地肌は白くなる。また、文字の明るさは通常充分暗い
ので明るさを変換しても2値化閾値を越えることはない
ので、文字は黒く2値化され、地肌補正がなされる。
Usually, the background of a text original is brighter than the text, so the maximum value of the brightness of the original is considered to be the background of the original.
Taking an 8-bit image signal as an example, the brightness of the background is "25".
When the brightness is converted to 5 ", the background becomes white when binarized. Also, the brightness of the characters is usually sufficiently dark that the brightness does not exceed the binarization threshold even if the brightness is converted. Therefore, the character is blackened and binarized, and the background correction is performed.

【0008】このとき、主走査線毎に最大値を検出して
次のような補正演算を行う。
At this time, the maximum value is detected for each main scanning line and the following correction calculation is performed.

【0009】(補正後の画像信号)=(画像信号)×2
55/(最大値)…(1) 単純に原稿の最大値を使って(1)式を計算すると、原
稿のゴミ等のノイズの影響を受け易くなるために移動平
均で平滑処理したのちの最大値を使う。
(Corrected image signal) = (image signal) × 2
55 / (maximum value) (1) If formula (1) is calculated simply by using the maximum value of the original, it becomes easy to be affected by noise such as dust on the original, so the maximum after smoothing processing by moving average Use value.

【0010】次に上記を説明する。Next, the above will be described.

【0011】上記の場合は原稿の地肌の明るさと文字
の明るさの間に2値化閾値を設定するように補正する。
地肌が白い通常の原稿を2値化する時に次のように閾値
Thを決定する。
In the above case, correction is performed so that a binarization threshold value is set between the brightness of the background of the document and the brightness of the characters.
When binarizing a normal original with a white background, the threshold Th is determined as follows.

【0012】 (閾値Th)=255/C …(2) Cは定数。[0012]         (Threshold Th) = 255 / C (2) C is a constant.

【0013】上記の場合と同じように、原稿の明るさ
の最大値は地肌の明るさと考えられるので、主走査線毎
に最大値を検出すれば地肌の明るさを知ることができ
る。
As in the above case, since the maximum value of the brightness of the original is considered to be the brightness of the background, the brightness of the background can be known by detecting the maximum value for each main scanning line.

【0014】したがって、(2)式で算出された値を
(3)式に示すように補正すれば地肌補正ができる。
Therefore, the background correction can be performed by correcting the value calculated by the equation (2) as shown in the equation (3).

【0015】(補正された閾値Th’)=Th/(最大
値)×255 …(3) 上記の場合と同じように、単純に原稿の最大値を使用
すると、ノイズの影響を受け易いので移動平均で平滑処
理したのちの最大値を使用する。
(Corrected threshold value Th ') = Th / (maximum value) × 255 (3) As in the above case, if the maximum value of the original is simply used, it is easily affected by noise, and therefore the movement is made. The maximum value after smoothing with the average is used.

【0016】[0016]

【発明が解決しようとする課題】しかしながら、上記
、の補正式(1)、(3)にはかけ算と割算が含ま
れており、地肌補正を実現するために回路規模が大きく
なってしまう。仮に、上記(1)、(3)式の255倍
を近似的に256倍として位取りでかけ算をしたとして
も、割算が残ってしまう。通常、掛け算器より割算器の
ほうが回路規模が数倍大きくなるので、コストアップは
いずれにしろ避けられない。
However, the above correction equations (1) and (3) include multiplication and division, and the circuit scale becomes large in order to realize the background correction. Even if the 255 times of the above equations (1) and (3) are approximated to 256 times and the multiplication is performed by the scale, the division remains. Usually, the circuit scale of the divider is several times larger than that of the multiplier, so the cost increase is inevitable in any case.

【0017】そこで、本発明の目的は、上記課題を解決
し、回路規模の増大を抑え低コスト化を図ることができ
る原稿読み取り装置の地肌補正回路を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above problems and to provide a background correction circuit for a document reading apparatus which can suppress an increase in circuit size and reduce costs.

【0018】[0018]

【課題を解決するための手段】上記目的を達成するた
め、本発明の地肌補正回路は、デジタル画像信号(V
d)に割算器(45)で演算を施すシェーディング補正
回路(4)と、該シェーディング補正後の画像信号(V
d’)に掛け算器(62)で演算を施す拡大縮小回路
(6)とを有する原稿読み取り装置において、シェーデ
ィング補正された画像信号から地肌信号を検出する回路
(5)と、上記割算器(45)に前置され、ラインセン
サのダミービットを読み出す期間に、上記割算器に上記
地肌信号を入力して、地肌補正の補正パラメータ(C
E)を割算器(45)に算出させる切替器(44)と、
上記掛け算器(62)に前置され、有効画素を読み出す
期間に、上記シェーディング補正回路から補正された画
像信号(Vd’)及び地肌補正の補正パラメータ(C
E)を入力して上記掛け算器(62)に両者の掛け算を
行わせる切替器(63)とを設けた構成のものである
(請求項1)。
In order to achieve the above object, the background correction circuit of the present invention uses a digital image signal (V
a shading correction circuit (4) for performing a calculation on a d) by a divider (45), and an image signal (V) after the shading correction.
In a document reading device having a scaling circuit (6) for performing a calculation by a multiplier (62) on d ′), a circuit (5) for detecting a background signal from a shading-corrected image signal, and the divider (6) 45), the background signal is input to the divider during the period for reading the dummy bit of the line sensor, and the correction parameter (C
A switch (44) for causing the divider (45) to calculate E),
The image signal (Vd ′) corrected by the shading correction circuit and the correction parameter (C) of the background correction are provided in the multiplier (62) before the effective pixel is read out.
A switch (63) for inputting E) and causing the multiplier (62) to multiply the two is provided (Claim 1).

【0019】本発明においては、上記割算器(45)が
画像信号(Vd)と黒基準信号(Vb)の差(Vd−V
b)を白基準信号Vw’で除する割算器(45)である
ことができ(請求項2)、また上記掛け算器が補間器
(62)であることができる(請求項3)。
In the present invention, the divider (45) causes the difference (Vd-V) between the image signal (Vd) and the black reference signal (Vb).
It can be a divider (45) that divides b) by the white reference signal Vw '(claim 2), and the multiplier can be an interpolator (62) (claim 3).

【0020】更に、本発明の別の形態の地肌補正回路
は、デジタル画像信号(Vd)に割算器(45)で演算
を施すシェーディング補正回路(4)と、該シェーディ
ング補正後の画像信号(Vd’)を閾値(Th)と比較
して2値化する回路(7a)とを有する原稿読み取り装
置において、シェーディング補正された画像信号から地
肌信号を検出する回路(5)と、上記割算器(45)に
前置され、ラインセンサのダミービットを読み出す期間
に、上記割算器に上記地肌信号を入力して地肌補正の閾
値(Th)の補正を割算器(45)に演算させる切替器
(44)と、上記割算器(45)で得られた補正された
閾値(Th’)を1主走査線の期間保持して上記2値化
回路(7a)へ与える回路手段(48)とを設けた構成
のものである(請求項4)。
Further, a background correction circuit according to another embodiment of the present invention is a shading correction circuit (4) for performing an arithmetic operation on a digital image signal (Vd) by a divider (45), and an image signal after the shading correction ( In a document reading device having a circuit (7a) for comparing Vd ') with a threshold value (Th) and binarizing the circuit, a circuit (5) for detecting a background signal from a shading-corrected image signal, and the divider. Switched to input the background signal to the divider to cause the divider (45) to calculate the correction of the background correction threshold (Th) in the period before reading the dummy bit of the line sensor, which is preceded by (45). (44) and circuit means (48) for holding the corrected threshold value (Th ') obtained by the divider (45) for one main scanning line period and giving it to the binarization circuit (7a). And is provided (claim ).

【0021】上記2値化回路(7a)は比較器(72)
及びこれに前置した切替器(71)を有し、地肌補正を
行うときには上記補正された閾値(Th’)を上記切替
器が通して上記2値化回路(7a)へ与える構成とする
ことができる(請求項5)。
The binarization circuit (7a) is a comparator (72).
And a switching device (71) disposed in front of the switching device (71), and when the background correction is performed, the corrected threshold value (Th ′) is passed through the switching device and given to the binarization circuit (7a). (Claim 5).

【0022】[0022]

【作用】請求項1の発明は、上記補正形式 に属するも
のである。この場合、ラインセンサのダミービットを読
み出す期間においては、地肌検出回路(5)の地肌信号
が、切替器(44)を通ってシェーディング補正回路
(4)の割算器(45)に入力され、該割算器(45)
により地肌補正の補正パラメータ(CE)が算出され
る。そして続く、有効画素を読み出す期間においては、
シェーディング補正回路からの補正された画像信号(V
d’)と上記地肌補正の補正パラメータ(CE)とが、
切替器(63)を通して、拡大縮小回路(6)の掛け算
器(62)に入力され、該掛け算器(62)により両者
の掛け算が行われる。
The invention according to claim 1 belongs to the above-mentioned correction form. In this case, during the period of reading the dummy bit of the line sensor, the background signal of the background detection circuit (5) is input to the divider (45) of the shading correction circuit (4) through the switch (44), The divider (45)
Thus, the correction parameter (CE) for the background correction is calculated. Then, in the subsequent period for reading out effective pixels,
The corrected image signal (V
d ') and the correction parameter (CE) of the background correction are
It is input to the multiplier (62) of the enlargement / reduction circuit (6) through the switch (63), and the multiplier (62) multiplies both.

【0023】例えば、上記(1)式は、割り算部と掛け
算部との積の形に分けられ、前者の演算がシェーディン
グ補正回路(4)の割算器(45)により、また後者の
掛け算部が拡大縮小回路(6)の掛け算器(62)によ
り演算される。
For example, the above equation (1) is divided into the form of the product of the division unit and the multiplication unit, and the former operation is performed by the divider (45) of the shading correction circuit (4) and the latter multiplication unit. Is calculated by the multiplier (62) of the scaling circuit (6).

【0024】このように、請求項1は、ラインセンサの
有効画素を読み出す期間に使用される画処理用の演算回
路(割算器,掛け算器)を、ラインセンサの有効画素で
ない画素を読み出す期間においては、別の画処理(地肌
補正)のための演算に使用するものであるため、演算回
路が共有化されて、回路規模の増加が抑えられる。
As described above, according to the first aspect, the arithmetic circuit (divider, multiplier) for image processing used in the period for reading out the effective pixels of the line sensor is used for the period for reading out the pixels which are not the effective pixels of the line sensor. In this case, since it is used for calculation for another image processing (background correction), the calculation circuit is shared and an increase in circuit scale can be suppressed.

【0025】請求項2,3においては、上記割算器(4
5)を画像信号(Vd)と黒基準信号(Vb)の差(V
d−Vb)を白基準信号Vw’で除する割算器(45)
とし、あるいは又上記掛け算器を補間器(62)とする
ものであるので、より簡易な構成が得られる。
In the second and third aspects, the divider (4
5) is the difference (V) between the image signal (Vd) and the black reference signal (Vb).
Divider (45) that divides d-Vb) by the white reference signal Vw '
Alternatively, since the multiplier is an interpolator (62), a simpler configuration can be obtained.

【0026】請求項4の発明は、上記補正形式 に属す
るものである。この地肌補正回路の場合、ラインセンサ
のダミービットを読み出す期間においては、切替器(4
4)を通して、地肌検出回路(5)の上記地肌信号が上
記シェーディング補正回路(4)の割算器(45)に入
力され、該割算器(45)にて地肌補正の閾値(Th)
の補正が演算される。この割算器(45)で補正された
閾値(Th’)は回路手段(48)により1主走査線の
期間保持されて2値化回路(7a)へ与えられる。2値
化回路(7a)は、シェーディング補正後の画像信号
(Vd’)をこの閾値(Th)と比較して2値化する。
従って、この請求項4の形態においても、演算回路の共
用が可能になり、回路規模の増加を抑える事ができる。
The invention of claim 4 belongs to the above correction format. In the case of this background correction circuit, the switching device (4
The background signal of the background detection circuit (5) is input to the divider (45) of the shading correction circuit (4) through 4), and the threshold (Th) of the background correction is performed by the divider (45).
Is calculated. The threshold value (Th ') corrected by the divider (45) is held by the circuit means (48) for the period of one main scanning line and given to the binarization circuit (7a). The binarization circuit (7a) compares the image signal (Vd ') after shading correction with this threshold value (Th) and binarizes it.
Therefore, also in the fourth aspect, the arithmetic circuit can be shared, and the increase in circuit scale can be suppressed.

【0027】請求項5においては、2値化回路(7a)
の比較器(72)に切替器(71)を前置し、地肌補正
を行うときには、上記補正された閾値(Th’)を該切
替器を通して上記2値化回路(7a)へ与える構成とし
ているので、より実際的かつ簡易な構成が得られる。
In claim 5, the binarization circuit (7a)
The comparator (72) is preceded by the switch (71), and when the background correction is performed, the corrected threshold value (Th ') is given to the binarization circuit (7a) through the switch. Therefore, a more practical and simple configuration can be obtained.

【0028】[0028]

【実施例】以下、本発明を図示の実施例に基づいて説明
する。
The present invention will be described below with reference to the illustrated embodiments.

【0029】図1は原稿読み取り装置の概略構成を示し
たものであり、1はラインセンサ、2はラインセンサの
出力を増幅するためのアンプ、3はアナログ信号をデジ
タル信号に変換するA/D変換器、4はシェーディング
補正回路、5は地肌検出回路、6は拡大縮小回路、7a
は2値化回路、7bは16値化回路、8は2値・16値
・多値の画像信号の中から所望するデータ長の画像信号
を選択するためのセレクタである。10は原稿読み取り
装置の各種動作パラメータを保持するためのレジスタ
で、パソコン12から書き込まれる。11はパソコンと
通信するためのインターフェースである。
FIG. 1 shows a schematic structure of a document reading apparatus, in which 1 is a line sensor, 2 is an amplifier for amplifying the output of the line sensor, and 3 is an A / D for converting an analog signal into a digital signal. Converter 4, shading correction circuit, 5 background detection circuit, 6 scaling circuit, 7a
Is a binarization circuit, 7b is a 16-valued circuit, and 8 is a selector for selecting an image signal of a desired data length from among binary, 16-valued and multi-valued image signals. Reference numeral 10 is a register for holding various operation parameters of the document reading apparatus, which is written from the personal computer 12. Reference numeral 11 is an interface for communicating with a personal computer.

【0030】100は原稿読み取り装置本体で、ライン
センサ1の出力をアンプ2で適宜増幅して、A/D変換
器3で画像信号をデジタル信号に変換する。デジタル値
に変換された画像信号は、シェーディング補正回路4で
シェーディング補正を施し、拡大縮小回路6にて所望す
る倍率で画像の大きさを変換する。その後、画像信号は
2値化回路7aで2値化され、また16値化回路7bで
16値化され、2値・16値・多値の中から所望する出
力形態のデータがセレクタ8で選択され、インターフェ
ース11よりホストのパソコン12に転送される。レジ
スタ10には、画処理のパラメータがパソコン12より
設定される。また、メモリ(RAM)9は、シェーディ
ング補正の基準データが格納され、また拡大縮小に必要
なワークエリアとして使用される。
Reference numeral 100 denotes an original reading apparatus main body, which appropriately amplifies the output of the line sensor 1 by an amplifier 2 and converts an image signal into a digital signal by an A / D converter 3. The image signal converted into the digital value is subjected to shading correction by the shading correction circuit 4, and the size of the image is converted by the enlargement / reduction circuit 6 at a desired magnification. After that, the image signal is binarized by the binarization circuit 7a and 16-valued by the 16-value binarization circuit 7b, and the data of the desired output form is selected by the selector 8 from the binary, 16-value, and multi-value. Then, it is transferred from the interface 11 to the host personal computer 12. The image processing parameters are set in the register 10 by the personal computer 12. The memory (RAM) 9 stores reference data for shading correction and is used as a work area required for enlargement / reduction.

【0031】図2に、シェーディング補正回路4、地肌
検出回路5及び拡大縮小回路6の部分の回路構成を示
す。図3、図4はそのタイミングチャートである。なお
拡大縮小回路6の構成は、図4のタイミングチャートを
簡略化するために、縮小動作のみ可能な構成としている
が、これに限定されるものではない。
FIG. 2 shows a circuit configuration of the shading correction circuit 4, the background detection circuit 5, and the enlargement / reduction circuit 6. 3 and 4 are timing charts thereof. Note that the scaling circuit 6 is configured so that only the scaling operation is possible in order to simplify the timing chart of FIG. 4, but the configuration is not limited to this.

【0032】シェーディング補正回路4は、画像信号と
黒基準信号の差(Vd−Vb)を作成する減算器(A−
B)43と、この差(Vd−Vb)を白基準信号Vw’
で除する割算器(A/B)45と、シェーディング補正
の演算結果がオーバーフローまたはアンダーフローした
場合に所定の値に画像信号を固定するクリップ回路46
とを有する。割算器45の前には、切替器44が前置さ
れており、該切替器44は、ラインセンサ1のダミービ
ットを読み出す期間には、上記割算器45に地肌検出回
路5で検出された地肌信号を入力するように切り替わ
り、地肌補正の補正パラメータ(CE)を割算器45に
算出させる。
The shading correction circuit 4 produces a difference (Vd-Vb) between the image signal and the black reference signal by a subtractor (A-
B) 43 and this difference (Vd-Vb) as the white reference signal Vw '.
A divider (A / B) 45 that divides by and a clip circuit 46 that fixes the image signal to a predetermined value when the calculation result of shading correction overflows or underflows.
Have and. A switch 44 is placed in front of the divider 45, and the switch 44 is detected by the background detector 5 by the divider 45 during a period in which the dummy bit of the line sensor 1 is read. The background color signal is switched to the input, and the correction parameter (CE) for background correction is calculated by the divider 45.

【0033】拡大縮小回路6は、線形補間によって内挿
する位置を決定し、同時にサンプリングの可否を制御す
る信号を出力するサンプリングカウンタ61と、線形補
間[(1−P)Xn+PXn+1]にもとずく補間値を出力
する補間器62とを有する。補間器62の「P」は補間
係数で0≦P<1の範囲の値を持ち、補間係数Pによっ
て2点XnとXn+1の間を補間する。この補間器62の前
には切替器63が前置されており、有効画素を読み出す
期間においては、切替器63を通して上記シェーディン
グ補正回路4からの補正された画像信号Vd’及び地肌
補正の補正パラメータ(CE)が入力される。そして、
有効画素を読み出す期間においては補間器62が掛け算
器として用いられ、該掛け算器(62)により両者の掛
け算が行われる。
The enlarging / reducing circuit 6 determines a position to be interpolated by linear interpolation and simultaneously outputs a signal for controlling sampling availability and linear interpolation [(1-P) Xn + PXn + 1]. And an interpolator 62 that outputs an interpolation value. “P” of the interpolator 62 is an interpolation coefficient having a value in the range of 0 ≦ P <1, and the interpolation coefficient P interpolates between two points Xn and Xn + 1. A switch 63 is placed in front of the interpolator 62, and during the period for reading out the effective pixels, the corrected image signal Vd ′ from the shading correction circuit 4 and the correction parameter for the background correction are passed through the switch 63. (CE) is input. And
The interpolator 62 is used as a multiplier in the period for reading out the effective pixels, and the multiplier (62) multiplies both.

【0034】以下、説明の便宜上、切替器44及び切替
器63を付加する前の機能から説明する。
For convenience of explanation, the function before adding the switch 44 and the switch 63 will be described below.

【0035】(1)シェーディング補正機能 シェーディング補正は、白の基準原稿を読んだときに得
られる画像信号をVw、照明を消したときに得られる画
像信号をVbとすると、次式のように行われ、8ビット
のデジタル画像信号VdがVd’に補正される。
(1) Shading correction function Shading correction is performed by the following equation, where Vw is an image signal obtained when a white reference document is read and Vb is an image signal obtained when the illumination is turned off. The 8-bit digital image signal Vd is corrected to Vd '.

【0036】[0036]

【数1】 図5にシェーディング補正回路4の基本回路を、図6に
そのタイミングチャートを示す。なお、図6中、nは当
該信号がある主走査線中の何番目の画素に対応する信号
かを示す。
[Equation 1] FIG. 5 shows a basic circuit of the shading correction circuit 4, and FIG. 6 shows a timing chart thereof. In FIG. 6, n indicates the number of the pixel in the main scanning line corresponding to the signal.

【0037】図5において、VdはA/D変換器3が出
力するデジタル画像信号、Dはメモリ9のデータバスで
ある。PCLKは画像信号に同期していて、その立ち上
がりエッジで画像信号を転送するクロック(制御信
号)、WCLKはシェーディング補正のうち白成分の補
正を制御するためのクロックで、割算を制御するために
使用される。Vbはシェーディング補正に使用する黒基
準信号、Vw’はシェーディング補正に使用する白基準
信号で、あらかじめVb成分は差し引かれている。V
d’はシェーディング補正された画像信号である。
In FIG. 5, Vd is a digital image signal output from the A / D converter 3, and D is a data bus of the memory 9. PCLK is a clock (control signal) that transfers the image signal at the rising edge thereof in synchronism with the image signal, and WCLK is a clock for controlling the white component correction of the shading correction, and for controlling the division. used. Vb is a black reference signal used for shading correction, Vw 'is a white reference signal used for shading correction, and the Vb component is subtracted in advance. V
d'is an image signal that has been subjected to shading correction.

【0038】メモリ9より読み出したデータを、画像信
号転送クロックPCLKの立ち上がりエッジでフリップ
フロップ41にロードし、黒基準信号Vbとする。ま
た、メモリ9より読み出したデータを、白成分補正制御
用のクロックWCLKの立ち上がりエッジでフリップフ
ロップ42にロードし、白基準信号Vw’とする。な
お、白基準信号Vw’はパソコン12側でVw’=Vw
−Vbの計算をして、メモリに書き込んであるものとす
る。画像信号Vdと黒基準信号Vbの差(Vd−Vb)
が減算器43で算出され、クロックWCLKの立ち上が
りエッジに同期して出力される。差Vd−Vbと白基準
信号Vw’との間の割り算が、割算器45で計算され、
クロックWCLKの立ち上がりで出力される。このとき
出力信号の位取りによって256倍され上記(4)式の
計算がなされる。その結果に対して上記(5)式に示さ
れるように、“0以下”ならば“0”に、“256以
上”ならば“255”になるような処理を施して、シェ
ーディング補正は終了する。
The data read from the memory 9 is loaded into the flip-flop 41 at the rising edge of the image signal transfer clock PCLK and used as the black reference signal Vb. Further, the data read from the memory 9 is loaded into the flip-flop 42 at the rising edge of the clock WCLK for white component correction control and used as the white reference signal Vw '. The white reference signal Vw 'is Vw' = Vw on the personal computer 12 side.
It is assumed that -Vb is calculated and written in the memory. Difference between image signal Vd and black reference signal Vb (Vd-Vb)
Is calculated by the subtractor 43 and is output in synchronization with the rising edge of the clock WCLK. The division between the difference Vd−Vb and the white reference signal Vw ′ is calculated in the divider 45,
It is output at the rising edge of the clock WCLK. At this time, the output signal is scaled by 256, and the above equation (4) is calculated. With respect to the result, as shown in the above equation (5), if "0 or less", "0" is applied, and if "256 or more", "255" is applied, and the shading correction ends. .

【0039】(2)拡大縮小機能 次に、拡大縮小回路6の基本機能について説明する。こ
こでは分り易くするために、主走査方向だけを拡大縮小
する場合を例にして、まず原理的な線形補間による拡大
縮小を説明する。
(2) Enlarging / Reducing Function Next, the basic function of the enlarging / reducing circuit 6 will be described. Here, in order to make it easy to understand, a case of enlarging / reducing only in the main scanning direction will be described as an example, and enlarging / reducing by theoretical linear interpolation will be described first.

【0040】線形補間を利用した拡大縮小は、センサか
ら出力された画像信号を線形補間により内挿してデータ
数を増やすものである。図7に示す例では、○印で示さ
れたセンサの出力データから×印で示されたデータが作
られており、データ数は4倍に増やされている。拡大ま
たは縮小するために、次の(6)式に従うデータ間隔
で、線形補間によって増加したデータをサンプリングす
る。
The scaling using linear interpolation is to increase the number of data by interpolating the image signal output from the sensor by linear interpolation. In the example shown in FIG. 7, the data indicated by X is generated from the output data of the sensor indicated by O, and the number of data is increased four times. In order to enlarge or reduce, the data increased by the linear interpolation is sampled at the data interval according to the following equation (6).

【0041】(サンプリング間隔St)=a×100/
(倍率[%]) …(6) (6)式のaは線形補間によってデータを何倍に増やす
かを示す定数である。
(Sampling interval St) = a × 100 /
(Magnification [%]) (6) a in the equation (6) is a constant indicating how many times the data is increased by linear interpolation.

【0042】80%に縮小する場合は、図7の例ではa
=4なので、上記(6)式よりサンプリング間隔は
“5”となる。サンプリング間隔“5”でデータをサン
プリングすると、図7の矢印で示されたデータが選択さ
れ、80%に縮小される。またサンプリング間隔Stを
a(図7の場合はa=4)とすると、等倍の画像が得ら
れる。上記(6)式の定数aは、拡大縮小率の精度、画
質および回路規模を考慮して決定される。
When reducing to 80%, in the example of FIG.
= 4, the sampling interval is "5" from the above equation (6). When the data is sampled at the sampling interval “5”, the data indicated by the arrow in FIG. 7 is selected and reduced to 80%. Further, if the sampling interval St is a (a = 4 in the case of FIG. 7), an image of the same size can be obtained. The constant a in the above equation (6) is determined in consideration of the accuracy of the enlargement / reduction ratio, the image quality, and the circuit scale.

【0043】図8に切替器63系統を省いた拡大縮小回
路6の回路を示す。図中、Pはサンプリングカウンタ6
1が出力する線形補間によって内挿する位置(補間係
数)を示す信号、Fは補間器が出力したデータが有効/
無効を示す信号、Vs’は拡大または縮小された画像信
号である。またPCLK2はPCLKの倍の周波数の信
号であり、PCLK2の立ち上がりはPCLKの立ち上
がりに同期している。
FIG. 8 shows a circuit of the enlargement / reduction circuit 6 in which the switch 63 system is omitted. In the figure, P is a sampling counter 6
1 is a signal indicating a position (interpolation coefficient) to be interpolated by linear interpolation, and F is valid data output by the interpolator.
A signal indicating invalidity, Vs', is an enlarged or reduced image signal. PCLK2 is a signal having a frequency twice that of PCLK, and the rising edge of PCLK2 is synchronized with the rising edge of PCLK.

【0044】サンプリングカウンタ61は、線形補間に
よって内挿する位置(以後、補間係数と称す)Pを決定
するカウンタで、200%まで拡大可能とすると、1画
素毎1回ないし2回、次の(7)(8)式のように出力
する。また同時に、サンプリングの可否のフラグFを下
記(9)(10)式のように出力する。1画素中の1回
目の出力でサンプリングが可能な場合はもう1回Pn、
Fnは状態変化するが、1回目でサンプリングできない
場合、次の画素までPn、Fnは同じ状態を維持する。
フラグFは0のときにサンプリングすることを示す。
The sampling counter 61 is a counter for determining a position (hereinafter referred to as an interpolation coefficient) P to be interpolated by linear interpolation, and if it can be expanded to 200%, once or twice for each pixel, the following ( 7) Output as in equation (8). At the same time, the flag F indicating whether or not sampling is possible is output as in the following equations (9) and (10). If sampling is possible with the first output in one pixel, then Pn
Although the state of Fn changes, if sampling cannot be performed for the first time, Pn and Fn maintain the same state until the next pixel.
The flag F indicates that sampling is performed when it is zero.

【0045】[0045]

【数2】 添え字のnは画素の番号を示し、演算子%は割算の余り
を示す。
[Equation 2] The subscript n indicates the pixel number, and the operator% indicates the remainder of division.

【0046】補間係数Pによって次のように直線補間し
て拡大縮小後の画像信号Vsを算出する。
The interpolated coefficient P is used to perform linear interpolation as follows to calculate the scaled image signal Vs.

【0047】Vs=(1−Pn/a)× Vd’n +
Pn/a × Vd’n+1…(11) タイミングチャートを図9に示す。図9において、Fn
はn番目の画素の有効/無効を示す。
Vs = (1-Pn / a) × Vd'n +
Pn / a × Vd′n + 1 (11) A timing chart is shown in FIG. In FIG. 9, Fn
Indicates the validity / invalidity of the nth pixel.

【0048】シェーディング補正された画像信号Vd’
は、PCLKの立ち上がりエッジでフリップフロップ6
0にロードされ、1画素分ずれた二つの画像信号が補間
器63に入力Xn,Xn+1される。また、サンプリング
カウンタ61はPCLKの倍の周波数の信号PCLK2
の立ち上がりエッジで次の状態に遷移し、その出力の補
間係数はやはり補間器62に入力され、補間器62で直
線補間の計算が行われ、その結果がPCLK2の立ち上
がりでフリップフロップ67にロードされる。また、サ
ンプリングフラグがPCLK2の立ち上がりでフリップ
フロップ68にロードされ、フリップフロップ67にロ
ードされたデータが有効であるか否かを示す。上記(1
1)式でサンプリング位置Pnを定数aで割ったものを
補間係数としているが、定数aに2のべき乗の値を設定
すれば補間器62の出力の位取りで割算が行われ、回路
規模の増大を抑えることができる。
Shading-corrected image signal Vd '
Flip-flop 6 at the rising edge of PCLK
Two image signals loaded with 0 and shifted by one pixel are input to the interpolator 63 as Xn and Xn + 1. In addition, the sampling counter 61 outputs a signal PCLK2 having a frequency twice that of PCLK.
Transition to the next state at the rising edge of, the output interpolation coefficient is also input to the interpolator 62, linear interpolation is calculated in the interpolator 62, and the result is loaded into the flip-flop 67 at the rising edge of PCLK2. It Further, the sampling flag is loaded into the flip-flop 68 at the rising edge of PCLK2 and indicates whether or not the data loaded into the flip-flop 67 is valid. Above (1
The interpolation coefficient is obtained by dividing the sampling position Pn by the constant a in the equation (1). However, if the constant a is set to a power of 2, division is performed by the scale of the output of the interpolator 62. The increase can be suppressed.

【0049】(3)地肌補正機能 上記のような構成の原稿読み取り装置に、地肌補正機能
を、回路規模を大きくすることなく実現する方法を以下
に示す。
(3) Background Correction Function A method for realizing the background correction function in the document reading apparatus having the above-described configuration without increasing the circuit scale will be described below.

【0050】図2に戻り、上記補正式(1)(3)に
は、割算が含まれる。デジタル演算によるシェーディン
グ補正には、割算器45が使用されるが、通常割算は他
の四則演算に比べて多くの計算時間を必要とするため、
有効な画像信号を読み出している期間は、時分割で複数
の用途に使用することは、特に高速性が要求される原稿
読み取り装置では困難である。
Returning to FIG. 2, the correction equations (1) and (3) include division. The divider 45 is used for shading correction by digital operation, but normally, since division requires more calculation time than other four arithmetic operations,
When a valid image signal is being read, it is difficult to use it for a plurality of purposes in a time-division manner, especially in a document reading apparatus that requires high speed.

【0051】しかし、原稿読み取り装置には通常ライン
センサが使用され、ラインセンサには読み取り開始側と
終了側に信号レベルが保証されないダミービットが付加
されている。
However, a line sensor is usually used in the document reading apparatus, and the line sensor is provided with dummy bits whose signal level is not guaranteed on the reading start side and the reading side.

【0052】そこで、ダミービットを読み出す期間は、
画像読み取りを行わないことに着目し、この期間にシェ
ーディング補正で使用する演算回路を、地肌補正のため
に使用することによって、回路規模の増大を抑える。
Therefore, the period for reading the dummy bit is
Paying attention to not performing image reading, the arithmetic circuit used for shading correction during this period is used for background correction to suppress an increase in circuit scale.

【0053】まず補正式(1)にもとづいた地肌補正の
実施例を示す。
First, an example of background correction based on the correction formula (1) will be described.

【0054】上述の補正式(1)の計算を次のように2
段階に分ける。
The calculation of the correction formula (1) described above is performed as follows.
Divide into stages.

【0055】 (補正係数CE)=255/(最大値) …(12) (補正後の画像信号)=(画像信号)×(補正係数CE) …(13) ダミービットを読み出す期間に上記(12)式の計算を
シェーディング補正に使用する割算器45を用いて行
い、有効画素を読み出す期間に上記(13)の計算を時
分割で拡大縮小の補間器62を用いて行う。割算器45
と補間器62では入力のビット数が同じならば、通常補
間器62の方が3倍以上高速であり、有効画素読み出し
中に時分割動作が可能である。
(Correction coefficient CE) = 255 / (maximum value) (12) (corrected image signal) = (image signal) × (correction coefficient CE) (13) During the period for reading the dummy bit, (12) ) Is calculated using the divider 45 used for shading correction, and the calculation of (13) above is performed using the time-division scaling interpolator 62 during the period in which effective pixels are read. Divider 45
In the interpolator 62, if the number of input bits is the same, the normal interpolator 62 is three times or more faster, and the time division operation is possible during the effective pixel reading.

【0056】補間器62の動作は (出力)=(1−P)Xn + PXn+1 …(14) ただし0≦P<1 であるので、補間器の入力端子Xnに“0”を設定する
と掛け算器となることから、入力端子Pに補正係数CE
を、入力端Xn+1に画像信号を入力すると、補間器62
で通常のかけ算が計算できるので、補正後の画像信号が
出力として得られる。
The operation of the interpolator 62 is (output) = (1−P) Xn + PXn + 1 (14) However, since 0 ≦ P <1, it is set to “0” at the input terminal Xn of the interpolator. Since it is a multiplier, the correction coefficient CE is applied to the input terminal P.
When an image signal is input to the input terminal Xn + 1,
Since the normal multiplication can be calculated with, the corrected image signal is obtained as an output.

【0057】図2では、上記(12)(13)式の計算
を行わせるため、切替器44及び切替器63が設けられ
ている。なおブロック6の構成は、図4のタイミングチ
ャートを簡略化するために、縮小動作のみ可能な構成と
している。
In FIG. 2, a switch 44 and a switch 63 are provided in order to perform the calculations of the equations (12) and (13). The block 6 is configured so that only the reduction operation is possible in order to simplify the timing chart of FIG.

【0058】制御信号PXは、Hレベルのときにライン
センサの読みだし有効な画素を読み出していることを示
す。PXがHレベルのとき、シェーディング補正回路4
はシェーディング補正を実行する。
When the control signal PX is at the H level, it indicates that the read-out effective pixel of the line sensor is being read out. Shading correction circuit 4 when PX is at H level
Performs shading correction.

【0059】メモリ9より読み出したデータDをクロッ
クPCLKの立ち上がりエッジでフリップフロップ41
にロードし、黒基準信号Vbとする。また、クロックW
CLKの立ち上がりエッジで、メモリより読み出したデ
ータをフリップフロップ42にロードし、白基準信号V
w’とする。なお、パソコン12側でVw’=Vw−V
bの計算をして、メモリ9に書き込んであるものとす
る。画像信号Vdと黒基準信号Vbの差が減算器43で
算出され、WCLKの立ち上がりエッジに同期して出力
される。
The data D read from the memory 9 is flip-flop 41 at the rising edge of the clock PCLK.
To the black reference signal Vb. Also, the clock W
At the rising edge of CLK, the data read from the memory is loaded into the flip-flop 42, and the white reference signal V
w '. In addition, Vw '= Vw-V on the personal computer 12 side
It is assumed that b is calculated and written in the memory 9. The subtractor 43 calculates the difference between the image signal Vd and the black reference signal Vb, and outputs the difference in synchronization with the rising edge of WCLK.

【0060】切替器44は、入力端子SがHレベルなら
ばA側の入力信号を出力端子C0,C1に出力し、入力端
子SがLレベルならばB側の入力信号を出力端子C0,
C1に出力する。
The switch 44 outputs the input signal on the A side to the output terminals C0 and C1 when the input terminal S is at the H level, and outputs the input signal on the B side when the input terminal S is at the L level.
Output to C1.

【0061】制御信号PXがHレベルなので、A側にお
ける画像信号と黒基準信号の差信号(Vd−Vb)と、
白基準信号Vw’とを、切替器44は出力する。差Vd
−Vbと白基準信号Vw’との間の割り算が割算器45
で実行され、WCLKの立ち上がりで出力される。この
とき出力信号の位取りによって256倍され上記(4)
式の計算がなされる。その結果が上記(5)式に示され
るように、“0以下”ならば“0”に“256以上”な
らば“255”になるような処理を施して、シェーディ
ング補正済みの画像信号Vd’がPCLKの立ち上がり
エッジでフリップフロップ47にロードされ、1画素の
シェーディング補正は終了する。
Since the control signal PX is at the H level, the difference signal (Vd-Vb) between the image signal on the A side and the black reference signal,
The switch 44 outputs the white reference signal Vw ′. Difference Vd
The division between −Vb and the white reference signal Vw ′ is the divider 45.
And is output at the rising edge of WCLK. At this time, it is multiplied by 256 depending on the scale of the output signal,
The formula is calculated. As shown in the above equation (5), if the value is "0 or less", the value "0" is processed, and if the value is "256 or more", the value is changed to "255". Is loaded into the flip-flop 47 at the rising edge of PCLK, and the shading correction for one pixel is completed.

【0062】PXがLレベルのとき、切替器44はB側
の入力信号が出力される。B側には、“255”の固定
値と地肌検出回路5が出力する地肌に相当する画像信号
が入力され、割算器45は上記(12)式の補正係数C
Eを出力する。図3に示すように、補正係数CEは、ライ
ンセンサ1から読み出す信号が有効になるタイミング、
すなわちPXがHレベルになる立ち上がりエッジで、フ
リップフロップ48にロードされ、1主走査線の期間保
持される。
When PX is at L level, the switch 44 outputs the input signal on the B side. A fixed value of "255" and an image signal corresponding to the background output from the background detection circuit 5 are input to the B side, and the divider 45 outputs the correction coefficient C of the above equation (12).
Output E. As shown in FIG. 3, the correction coefficient CE is the timing at which the signal read from the line sensor 1 becomes effective,
That is, at the rising edge where PX becomes H level, it is loaded into the flip-flop 48 and held for one main scanning line period.

【0063】次に、縮小回路6では、上記シェーディン
グ補正された画像信号Vd’と地肌補正の補正係数CE
とを基に、まず上記(13)式に従った地肌補正を行
い、その後縮小を行う。1つの補間器62を地肌補正と
縮小の2つの計算に使用するために、切替器63にて切
り替えて補間器62を時分割で使用する。
Next, in the reduction circuit 6, the shading-corrected image signal Vd 'and the correction coefficient CE for the background correction.
Based on the above, the background correction is first performed according to the above equation (13), and then the reduction is performed. In order to use one interpolator 62 for two calculations of the background correction and the reduction, the interpolator 62 is switched by the switching unit 63 and used in a time division manner.

【0064】縮小回路のタイミングチャートを図4に示
す。
A timing chart of the reduction circuit is shown in FIG.

【0065】補間器62の入力を切り替える切替器63
は6入力3出力の構成であり、入力端子SがLレベルな
らばA側が、入力端子SがHレベルならばB側の入力が
出力される。入力端子SにクロックPCLKラインを接
続し、PCLKがHレベルの期間に補間器62は地肌補
正の計算を行い、PCLKがLレベルの期間に拡大縮小
の計算を行う。
A switch 63 for switching the input of the interpolator 62
Has a structure of 6 inputs and 3 outputs. If the input terminal S is at L level, the A side is output, and if the input terminal S is at H level, the B side input is output. The clock PCLK line is connected to the input terminal S, the interpolator 62 performs background correction calculation while PCLK is at the H level, and the scaling calculation is performed while PCLK is at the L level.

【0066】地肌補正の計算結果Yは、PCLKの立ち
下がりエッジでフリップフロップ64にロードされ、そ
の出力はPCLKの立ち上がりエッジでフリップフロッ
プ65にロードされる。フリップフロップ65はPCL
Kに同期した地肌補正済みの画像データVaを保持し、
フリップフロップ66は線形補間演算のために1画素分
遅延した信号を保持する。
The background correction calculation result Y is loaded into the flip-flop 64 at the falling edge of PCLK, and its output is loaded into the flip-flop 65 at the rising edge of PCLK. The flip-flop 65 is PCL
The background-corrected image data Va synchronized with K is held,
The flip-flop 66 holds the signal delayed by one pixel for the linear interpolation calculation.

【0067】クロックPCLKがLの期間に補間器62
で計算された拡大縮小済み画像信号Vsは、クロックP
CLKの立ち上がりエッジでフリップフロップ67にロ
ードされる。またサンプリングカウンタ61が出力する
サンプリングフラグFnを、PCLKの立ち上がりエッ
ジでフリップフロップ68にロードし、フリップフロッ
プ67が保持する画像信号が有効か否かを示す。
During the period in which the clock PCLK is L, the interpolator 62
The scaled image signal Vs calculated by
It is loaded into flip-flop 67 on the rising edge of CLK. The sampling flag Fn output from the sampling counter 61 is loaded into the flip-flop 68 at the rising edge of PCLK to indicate whether the image signal held by the flip-flop 67 is valid.

【0068】上記実施例によれば、割算器45および掛
け算器62を有する原稿読み取り装置において、ライン
センサのダミービットを読み出す期間に、地肌補正の補
正パラメータを計算するように構成したので、地肌補正
の演算回路として、シェーディング補正及び拡大縮小の
演算回路を共用することが可能になり、回路規模の増加
を抑える事ができる。
According to the above-described embodiment, the original reading apparatus having the divider 45 and the multiplier 62 is configured to calculate the correction parameter for the background correction during the period for reading the dummy bit of the line sensor. As the correction calculation circuit, the shading correction and scaling calculation circuit can be shared, and an increase in the circuit scale can be suppressed.

【0069】(4) 他の実施例 上述の補正式(2)にもとづいた地肌補正の実施例を示
す。
(4) Other Embodiments An embodiment of background correction based on the correction equation (2) described above will be shown.

【0070】上記(2)式を近似して (補正された閾値Th’)=Th/(最大値)×256 …(15) とする。By approximating the above equation (2),       (Corrected threshold Th ′) = Th / (maximum value) × 256 (15) And

【0071】ラインセンサ1のダミービットを読み出す
期間に、シェーディング補正の割算器45をもちいて上
記(15)式の計算を行い、有効画素を読み出した後
は、(15)式の結果を閾値として画像信号を2値化す
る。
While the dummy bit of the line sensor 1 is being read, the above equation (15) is calculated using the shading correction divider 45, and after reading the effective pixel, the result of equation (15) is set to the threshold value. The image signal is binarized as.

【0072】地肌補正して2値化する場合の構成を図1
0に示す。また、ダミービットを読み出す期間に2値化
の閾値の補正計算を行うためのタイミングチャートを図
11に示す。
FIG. 1 shows a configuration in which the background is corrected and binarized.
It shows in 0. Further, FIG. 11 shows a timing chart for performing the correction calculation of the binarization threshold during the period of reading the dummy bit.

【0073】シェーディング補正回路4は、ラインセン
サ1のダミービットを読み出す期間は上記(15)式に
示すような2値化の閾値の補正を行う。
The shading correction circuit 4 corrects the binarization threshold value as shown in the above expression (15) during the period for reading the dummy bit of the line sensor 1.

【0074】制御信号PXがHレベルのとき、シェーデ
ィング補正回路4はシェーディング補正を実行する。
When the control signal PX is at H level, the shading correction circuit 4 executes shading correction.

【0075】制御信号PXがLレベルのとき、切替器4
4はB側の入力信号を出力する。切替器44のB側入力
には、図2の場合と異なり、2値化の閾値Thと地肌検
出回路5が出力する地肌信号とが入力されており、割算
器45は上記(15)式の割り算を演算し、補正された
2値化の閾値Th’を出力する。補正された2値化閾値
Th’は、ラインセンサ1から読み出す信号が有効にな
るタイミングで、すなわち制御信号PXがHレベルにな
る立ち上がりエッジで保持手段たるフリップフロップ4
8にロードされ、1主走査線の期間保持される。この保
持手段たるフリップフロップ48からの補正された2値
化閾値Th’は、2値化回路7aに入力される。
When the control signal PX is at L level, the switch 4
4 outputs the input signal on the B side. Unlike the case of FIG. 2, the threshold value Th for binarization and the background signal output by the background detection circuit 5 are input to the B side input of the switch 44, and the divider 45 uses the equation (15) above. Is calculated, and the corrected threshold value Th ′ for binarization is output. The corrected binarization threshold Th ′ is a flip-flop 4 as a holding means at the timing when the signal read from the line sensor 1 becomes effective, that is, at the rising edge when the control signal PX becomes H level.
8 and is held for one main scan line period. The corrected binarization threshold Th ′ from the flip-flop 48 serving as the holding unit is input to the binarization circuit 7a.

【0076】一方、制御信号PXがHレベルの期間、シ
ェーディング補正された画像信号Vd’は拡大縮小回路
6で所望の画像サイズに変換された画像信号Vsにな
り、2値化回路7aに入力される。
On the other hand, while the control signal PX is at the H level, the shading-corrected image signal Vd 'becomes the image signal Vs converted into a desired image size by the enlarging / reducing circuit 6, and is input to the binarizing circuit 7a. It

【0077】2値化回路7aは、閾値ThとTh’を選
択するための切替器71と、2値化を行う比較器72と
から構成されている。切替器71は、入力端子SがHレ
ベルならばB側入力を出力し、入力端子SがLレベルな
らばA側入力を出力する構成を有する。そして、この入
力端子Sには、地肌補正を行うときはHレベルとなる制
御信号ABGが入力されている。
The binarization circuit 7a comprises a switch 71 for selecting the threshold values Th and Th ', and a comparator 72 for binarization. The switch 71 has a configuration that outputs the B-side input when the input terminal S is at the H level and outputs the A-side input when the input terminal S is at the L level. Then, to the input terminal S, the control signal ABG that is at the H level when the background correction is performed is input.

【0078】地肌補正を行うときは制御信号ABGはH
レベルなので、切替器71は、B側の補正された閾値T
h’を出力する。比較器72は補正された閾値Th’と
拡大縮小済み画像信号Vsを比較して、画像信号Vsが
閾値Th’以上だったらHレベルの信号(2値化信号)
Vbinを出力する。同時に拡大縮小回路6は2値化信号
Vbinが有効か否かを示す信号Fを出力する。
When the background correction is performed, the control signal ABG is H
Since it is a level, the switching unit 71 has the corrected threshold value T on the B side.
Output h '. The comparator 72 compares the corrected threshold value Th ′ with the scaled image signal Vs, and if the image signal Vs is greater than or equal to the threshold value Th ′, an H level signal (binarized signal).
Output Vbin. At the same time, the enlarging / reducing circuit 6 outputs a signal F indicating whether or not the binarized signal Vbin is valid.

【0079】[0079]

【発明の効果】以上要するに本発明によれば、次のよう
な優れた効果が得られる。
In summary, according to the present invention, the following excellent effects can be obtained.

【0080】(1)請求項1によれば、割算器および掛
け算器を有する原稿読み取り装置において、ラインセン
サのダミービットを読み出す期間に、地肌補正の補正パ
ラメータを計算するように構成したので、地肌補正の演
算回路として、シェーディング補正及び拡大縮小の演算
回路を共用することが可能になり、回路規模の増加を抑
えることができる。
(1) According to the first aspect, in the document reading apparatus having the divider and the multiplier, the correction parameter of the background correction is calculated during the period of reading the dummy bit of the line sensor. A shading correction and scaling operation circuit can be shared as a background correction operation circuit, and an increase in circuit scale can be suppressed.

【0081】(2)請求項2,3によれば、具体的かつ
簡易な構成が得られる。
(2) According to claims 2 and 3, a concrete and simple structure can be obtained.

【0082】(3)請求項4によれば、ラインセンサの
ダミービットを読み出す期間に、地肌補正の補正パラメ
ータである閾値を計算するように構成したので、地肌補
正の演算回路として、シェーディング補正の演算回路を
共用することが可能になり、回路規模の増加を抑えるこ
とができる。
(3) According to the fourth aspect, since the threshold value which is the correction parameter of the background correction is calculated during the period of reading the dummy bit of the line sensor, the arithmetic circuit for the background correction performs the shading correction. It is possible to share the arithmetic circuit, and it is possible to suppress an increase in circuit scale.

【0083】(4)請求項5によれば、より実際的かつ
簡易な構成が得られる。
(4) According to claim 5, a more practical and simple structure can be obtained.

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

【図1】本発明の一実施例における原稿読み取り装置の
構成図である。
FIG. 1 is a configuration diagram of a document reading apparatus according to an embodiment of the present invention.

【図2】本発明の一実施例の地肌補正回路を示す構成図
である。
FIG. 2 is a configuration diagram showing a background correction circuit according to an embodiment of the present invention.

【図3】地肌補正の補正係数をシェーディング補正回路
で算出する際のタイミングチャートである。
FIG. 3 is a timing chart when a shading correction circuit calculates a correction coefficient for background correction.

【図4】拡大縮小用の回路で地肌補正する際のタイミン
グチャートである。
FIG. 4 is a timing chart when the background correction is performed by the scaling circuit.

【図5】デジタル演算によるシェーディング補正回路の
ブロック図である。
FIG. 5 is a block diagram of a shading correction circuit by digital calculation.

【図6】デジタル演算によるシェーディング補正回路の
タイミングチャートである。
FIG. 6 is a timing chart of a shading correction circuit by digital calculation.

【図7】線形補間による拡大縮小の原理図である。FIG. 7 is a principle diagram of scaling by linear interpolation.

【図8】拡大縮小回路のブロック図である。FIG. 8 is a block diagram of a scaling circuit.

【図9】拡大縮小回路のタイミングチャートである。FIG. 9 is a timing chart of the scaling circuit.

【図10】本発明の他の実施例の地肌補正回路を示す構
成図である。
FIG. 10 is a configuration diagram showing a background correction circuit according to another embodiment of the present invention.

【図11】地肌補正によって2値化閾値を補正する場合
に、補正した2値化閾値をシェーディング回路で算出す
る際のタイミングチャートである。
FIG. 11 is a timing chart when the corrected binarization threshold is calculated by a shading circuit when the binarization threshold is corrected by background correction.

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

1 ラインセンサ 2 アンプ 3 A/D変換器 4 シェーディング補正回路 5 地肌検出回路 6 拡大縮小回路 7a 2値化回路 7b 16値化回路 8 セレクタ(切替器) 9 メモリ(RAM) 10 レジスタ 11 インターフェース 12 パソコン 41 フリップフロップ 42 フリップフロップ 43 減算器 44 切替器 45 割算器 46 クリップ回路 47 フリップフロップ 48 フリップフロップ 60 フリップフロップ 61 サンプリングカウンタ 62 補間器(掛け算器) 63 切替器 64 フリップフロップ 65 フリップフロップ 66 フリップフロップ 67 フリップフロップ 68 フリップフロップ 71 切替器 72 比較器 100 原稿読み取り装置本体 a 線形補間によってデータを何倍に増やすかを示す定
数 ABG 地肌補正を行うときの制御信号 C 定数 CE 補正係数 D メモリのデータバス F 補間器出力データの有効/無効を示す信号 P 補間係数(0≦P<1) Pn サンプリング位置 PCLK 画像信号転送クロック PCLK2 PCLKの倍の周波数の信号 PX 制御信号(有効画素の読出中) St サンプリング間隔 Th 2値化の閾値 Th’ 補正された閾値 WCLK 白成分補正制御用のクロック Va 地肌補正済みの画像データ Vbin 2値化信号 Vb 黒基準信号 Vd デジタル画像信号 Vd’ シェーディング補正後の画像信号 Vs 拡大縮小済み画像信号 Vw 白の基準原稿を読んだときに得られる画像信号 Vw’ 白基準信号 Y 地肌補正の計算結果
1 line sensor 2 amplifier 3 A / D converter 4 shading correction circuit 5 background detection circuit 6 enlargement / reduction circuit 7a binarization circuit 7b 16 digitization circuit 8 selector (switch) 9 memory (RAM) 10 register 11 interface 12 personal computer 41 flip-flop 42 flip-flop 43 subtractor 44 switcher 45 divider 46 clip circuit 47 flip-flop 48 flip-flop 60 flip-flop 61 sampling counter 62 interpolator (multiplier) 63 switcher 64 flip-flop 65 flip-flop 66 flip-flop 67 Flip-flop 68 Flip-flop 71 Switching device 72 Comparator 100 Document reading device main body a Constant ABG indicating how many times the data is increased by linear interpolation ABG Control signal C for performing background correction C Constant C Correction coefficient D Data bus F of memory F Signal P indicating valid / invalid of interpolator output data P Interpolation coefficient (0 ≦ P <1) Pn Sampling position PCLK Image signal transfer clock PCLK2 Signal PX having a frequency twice that of PCLK Control signal (valid Pixel reading) St Sampling interval Th Threshold for binarization Th 'Corrected threshold WCLK Clock for white component correction control Va Image data Vbin binarized signal Vb bin reference signal Vd Black reference signal Vd Digital image signal Vd' Image signal after shading correction Vs Enlarged / reduced image signal Vw Image signal Vw ′ obtained when a white reference document is read White reference signal Y Calculation result of background correction

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】デジタル画像信号(Vd)に割算器(4
5)で演算を施すシェーディング補正回路(4)と、該
シェーディング補正後の画像信号(Vd’)に掛け算器
(62)で演算を施す拡大縮小回路(6)とを有する原
稿読み取り装置において、 シェーディング補正された画像信号から地肌信号を検出
する回路(5)と、 上記割算器(45)に前置され、ラインセンサのダミー
ビットを読み出す期間に、上記割算器に上記地肌信号を
入力して、地肌補正の補正パラメータ(CE)を割算器
(45)に算出させる切替器(44)と、 上記掛け算器(62)に前置され、有効画素を読み出す
期間に、上記シェーディング補正回路から補正された画
像信号(Vd’)及び地肌補正の補正パラメータ(C
E)を入力して上記掛け算器(62)に両者の掛け算を
行わせる切替器(63)とを設けたことを特徴とする地
肌補正回路。
1. A divider (4) for the digital image signal (Vd).
In a document reading apparatus having a shading correction circuit (4) for performing an operation in 5) and an enlargement / reduction circuit (6) for performing an operation in a multiplier (62) on the image signal (Vd ′) after the shading correction, shading A circuit (5) for detecting a background signal from the corrected image signal and the divider (45) before the background signal are input to the divider while the dummy bit of the line sensor is read out. Then, the shading correction circuit is placed in front of the switch (44) for causing the divider (45) to calculate the correction parameter (CE) of the background correction and the multiplier (62) and for reading the effective pixel. The corrected image signal (Vd ') and the correction parameter (C
A background correction circuit comprising a switch (63) for inputting E) and causing the multiplier (62) to perform a multiplication of both.
【請求項2】上記割算器(45)が画像信号(Vd)と
黒基準信号(Vb)の差(Vd−Vb)を白基準信号V
w’で除する割算器(45)であることを特徴とする請
求項1記載の地肌補正回路。
2. A divider (45) calculates a difference (Vd-Vb) between an image signal (Vd) and a black reference signal (Vb) as a white reference signal V.
The background correction circuit according to claim 1, wherein the background correction circuit is a divider (45) that divides by w '.
【請求項3】上記掛け算器が補間器(62)であること
を特徴とする請求項1記載の地肌補正回路。
3. The background correction circuit according to claim 1, wherein the multiplier is an interpolator (62).
【請求項4】デジタル画像信号(Vd)に割算器(4
5)で演算を施すシェーディング補正回路(4)と、該
シェーディング補正後の画像信号(Vd’)を閾値(T
h)と比較して2値化する回路(7a)とを有する原稿
読み取り装置において、 シェーディング補正された画像信号から地肌信号を検出
する回路(5)と、 上記割算器(45)に前置され、ラインセンサのダミー
ビットを読み出す期間に、上記割算器に上記地肌信号を
入力して地肌補正の閾値(Th)の補正を割算器(4
5)に演算させる切替器(44)と、 上記割算器(45)で得られた補正された閾値(T
h’)を1主走査線の期間保持して上記2値化回路(7
a)へ与える回路手段(48)と、 を設けたことを特徴とする地肌補正回路。
4. A divider (4) for the digital image signal (Vd).
The shading correction circuit (4) that performs the calculation in 5) and the image signal (Vd ′) after the shading correction are set to the threshold value (T).
In a document reading device having a circuit (7a) for binarizing the image signal in comparison with (h), a circuit (5) for detecting a background signal from a shading-corrected image signal, and a front side of the divider (45). During the period in which the dummy bit of the line sensor is read, the background signal is input to the divider to correct the background correction threshold (Th) by the divider (4
5) the switch (44) to be operated and the corrected threshold value (T) obtained by the divider (45).
h ') is held for one main scanning line, and the binarization circuit (7
and a circuit means (48) for giving to (a);
【請求項5】上記2値化回路(7a)は比較器(72)
及びこれに前置した切替器(71)を有し、該切替器は
地肌補正を行うときには上記補正された閾値(Th’)
を通して上記2値化回路(7a)へ与えることを特徴と
する請求項4記載の地肌補正回路。
5. The binarization circuit (7a) is a comparator (72).
And a switching device (71) placed in front of the switching device (71), the switching device performing the background correction, the corrected threshold value (Th ′).
5. The background correction circuit according to claim 4, wherein the background correction circuit is applied to the binarization circuit (7a) through
JP35013793A 1993-12-29 1993-12-29 Background correction circuit of the document reading device Expired - Fee Related JP3400838B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35013793A JP3400838B2 (en) 1993-12-29 1993-12-29 Background correction circuit of the document reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35013793A JP3400838B2 (en) 1993-12-29 1993-12-29 Background correction circuit of the document reading device

Publications (2)

Publication Number Publication Date
JPH07203206A JPH07203206A (en) 1995-08-04
JP3400838B2 true JP3400838B2 (en) 2003-04-28

Family

ID=18408481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35013793A Expired - Fee Related JP3400838B2 (en) 1993-12-29 1993-12-29 Background correction circuit of the document reading device

Country Status (1)

Country Link
JP (1) JP3400838B2 (en)

Also Published As

Publication number Publication date
JPH07203206A (en) 1995-08-04

Similar Documents

Publication Publication Date Title
EP0389164B1 (en) Pixel density converting apparatus
US5237432A (en) Image scaling apparatus
KR930022822A (en) Image magnification conversion method and apparatus
JP2001008037A (en) Pixel interpolation method and circuit
JP3400838B2 (en) Background correction circuit of the document reading device
JP2845376B2 (en) Pixel density converter
US5432621A (en) Image processing system for enlarging an reducing and image
JPH05136995A (en) Simple binary-coding and false halftone mixture processing method and device for image data
KR100374581B1 (en) Reducing method of digital image and device thereof
JP2887840B2 (en) Image reading device
JP3032914B2 (en) Image reading processing device
JP2777189B2 (en) Stereoscopic shadow processing device
JP2744292B2 (en) Image processing device
JP3788566B2 (en) Density converter
JPS61105973A (en) Picture signal processing method
JP2000222567A (en) Image processor
JPH08111774A (en) Image reading device
JP3586097B2 (en) Image processing apparatus and computer-readable storage medium
JP2853160B2 (en) High-resolution image reading circuit
JPH05227414A (en) Picture processor
JP2705580B2 (en) Printer image data resolution doubling circuit
JPS6346872A (en) Image processing device
JPH08331364A (en) Image data processing unit
JPH05108814A (en) Picture reader
JP2007074516A (en) Resolution converting apparatus and method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090221

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100221

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees