JPH099055A - Image processing circuit - Google Patents

Image processing circuit

Info

Publication number
JPH099055A
JPH099055A JP7158994A JP15899495A JPH099055A JP H099055 A JPH099055 A JP H099055A JP 7158994 A JP7158994 A JP 7158994A JP 15899495 A JP15899495 A JP 15899495A JP H099055 A JPH099055 A JP H099055A
Authority
JP
Japan
Prior art keywords
data
white
image
memory
white data
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
JP7158994A
Other languages
Japanese (ja)
Inventor
Satohiko Mise
聰彦 三瀬
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP7158994A priority Critical patent/JPH099055A/en
Publication of JPH099055A publication Critical patent/JPH099055A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To prevent the increase of the capacity and the number of memories by dividing the memory reading a white reference board and acquiring/storing white data into plural banks. CONSTITUTION: White data are sequentially written into the bank 0 of the memory 19 for respective picture elements in a main scanning direction and white data of the whole read picture elements for one line are stored. When the acquirement of white data for one line is terminated, CPU 20 accesses to the memory 19. When the acquirement of white data is the first line, CPU 20 copies white data acquired to the bank 0 on a corresponding bank 1. When CPU 20 terminates the writing of white data for one line into the bank 1 of the memory 19, the read position of the white reference board 15 is changed, and white data is newly acquired. When the acquirement of white data for one line is terminated, CPU 20 accesses to the memory 19, reads white data stored in the first addresses of the banks 0 and 1 and writes data of a larger value into the first address of the bank 1. A similar processing is executed by updating the address by one.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、イメージセンサを用い
て原稿画像を読み取る画像読み取り装置に組み込まれる
画像処理回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing circuit incorporated in an image reading device which reads an original image using an image sensor.

【0002】[0002]

【従来の技術】イメージセンサを用いて画像を読み取る
画像読み取り装置としては、イメージスキャナやファク
シミリ装置など多くの製品が開発されている。このよう
な画像読み取り装置において使用されるイメージセンサ
は、CCDラインセンサあるいは密着型イメージセンサ
に大別される。CCDラインセンサは原稿画像を光学的
に縮小してセンサ上に結像させ、画像を読み取るタイプ
のイメージセンサである。一方、密着型イメージセンサ
は原稿画像を1対1でセンサ上に結像させて画像を読み
取るタイプのイメージセンサである。これらのイメージ
センサが、原稿画像の濃淡を電気的信号のレベルに変換
し、アナログの画像データとして出力する。イメージセ
ンサからのアナログの画像データはアナログデジタル変
換(以下、A/D変換と称す。)、シェーディング補
正、MTF補正などを行う画像処理回路を経て、デジタ
ルの画像データに変換される。
2. Description of the Related Art As an image reading device for reading an image using an image sensor, many products such as an image scanner and a facsimile device have been developed. The image sensor used in such an image reading apparatus is roughly classified into a CCD line sensor or a contact type image sensor. The CCD line sensor is an image sensor of a type in which a document image is optically reduced to form an image on the sensor and the image is read. On the other hand, the contact image sensor is an image sensor of a type in which an original image is formed on the sensor one by one and the image is read. These image sensors convert the light and shade of the original image into the level of an electric signal and output it as analog image data. The analog image data from the image sensor is converted into digital image data through an image processing circuit that performs analog-digital conversion (hereinafter referred to as A / D conversion), shading correction, MTF correction, and the like.

【0003】図4は、従来の画像処理回路における画像
処理の流れを簡単に表したブロック図である。図4にお
いて、1はイメージセンサである。2は、イメージセン
サ1の出力であるアナログの画像データを増幅したりク
ランプしたりするアナログ信号処理部であり、つまり画
像データをアナログ的に加工する部分である。3は、ア
ナログ信号をデジタル信号に変換するアナログデジタル
変換部である。アナログデジタル変換部3により、イメ
ージセンサ1で読み取ったアナログレベルの画像データ
がデジタルの画像データに変換される。
FIG. 4 is a block diagram simply showing the flow of image processing in a conventional image processing circuit. In FIG. 4, 1 is an image sensor. An analog signal processing unit 2 amplifies or clamps analog image data output from the image sensor 1, that is, a unit that processes the image data in an analog manner. Reference numeral 3 is an analog-digital conversion unit that converts an analog signal into a digital signal. The analog-to-digital converter 3 converts the analog-level image data read by the image sensor 1 into digital image data.

【0004】4はシェーディング補正部である。シェー
ディング補正部4における処理内容については後で詳細
に説明する。5はMTF補正、γ補正、2値化処理など
の画像処理を行う部分であり、本発明の説明に直接関係
しないので、詳しい説明は省略する。なお、簡単に説明
すると、MTF補正は、画像読み取り装置においてレン
ズなどの光学系やイメージセンサの空間周波数特性によ
りMTF(Modulation Transfer Function)が低
下することで、読み取った画像がボケてしまうのを補正
し、画像を鮮明化するための処理である。γ補正は、読
み取った画像データを出力する装置(プリンタ、モニタ
ー等)のγ特性に応じて画像データを補正する処理であ
る。2値化処理は、読み取った画像データをプリンタに
出力させる場合等、多値の画像データを2値の画像デー
タに変換する処理である。
Reference numeral 4 is a shading correction unit. The processing content of the shading correction unit 4 will be described in detail later. Reference numeral 5 is a portion that performs image processing such as MTF correction, γ correction, and binarization processing, and is not directly related to the description of the present invention, and thus detailed description thereof is omitted. In brief, the MTF correction corrects blurring of a read image due to a decrease in MTF (Modulation Transfer Function) due to a spatial frequency characteristic of an optical system such as a lens or an image sensor in an image reading apparatus. However, this is a process for sharpening the image. The γ correction is a process of correcting the image data according to the γ characteristic of the device (printer, monitor, etc.) that outputs the read image data. The binarization process is a process of converting multi-valued image data into binary image data, such as when outputting read image data to a printer.

【0005】ここで、シェーディング補正部4において
行われるシェーディング補正に関して説明を行う。シェ
ーディング補正とは、主に光源の光量分布特性やイメー
ジセンサの各画素間での感度バラツキなどの影響で、一
定濃度の原稿画像を読み込んだ場合でもイメージセンサ
の各画素における出力がバラツキ、読み取り画像に濃度
ムラが発生するといった現象を抑えるための処理であ
る。原稿画像を読み取る前に、通常シェーディング補正
が行われる。その処理を行う部分をシェーディング補正
部4として図4に示した。
The shading correction performed by the shading correction section 4 will be described below. Shading correction is mainly due to the influence of the light amount distribution characteristics of the light source and the sensitivity variation between each pixel of the image sensor, and the output at each pixel of the image sensor varies even when the original image of a certain density is read, and the read image This is a process for suppressing a phenomenon such as uneven density. Shading correction is usually performed before reading the original image. The portion that performs the processing is shown in FIG. 4 as the shading correction unit 4.

【0006】シェーディング補正に関して図5を参照し
ながら説明する。図5は従来の画像読み取り装置の読み
取り部の構成図であり、イメージセンサとしてCCDラ
インセンサを使用した構成例である。図5において、6
は原稿載置部材であり、板ガラスなどが使用される。原
稿載置部材6の上に原稿7を置き、画像を読み取る。8
はキャリッジであり、原稿7の画像を読み取るための光
学ユニットである。キャリッジ8内にはイメージセンサ
9、光源10、複数の反射板11〜13およびレンズ1
4が装備されている。光源10を点灯し、光が原稿7の
像面に反射してキャリッジ8に返ってくると、反射板1
1〜13によって偏光され、レンズ14を通ってイメー
ジセンサ9上の画素(受光素子)に結像する。原稿画像
の濃淡に応じてイメージセンサ9上の画素(受光素子)
に結像する光量が変化し、イメージセンサ9にて光量を
電気的信号に変換して画像の濃淡を検出し、画像を読み
取る。キャリッジ8は図示しない駆動源により矢印dの
方向に移動し、画像を読み取る。ここで、本明細書の説
明においては、矢印dの方向を読み取りの副走査方向と
する。一方、これと直交する、図4における紙面垂直方
向を読み取りの主走査方向とする。
Shading correction will be described with reference to FIG. FIG. 5 is a configuration diagram of a reading unit of a conventional image reading apparatus, which is an example configuration using a CCD line sensor as an image sensor. In FIG. 5, 6
Is a document placing member, and plate glass or the like is used. The original 7 is placed on the original placing member 6 and the image is read. 8
Is a carriage, which is an optical unit for reading the image of the original 7. An image sensor 9, a light source 10, a plurality of reflectors 11 to 13 and a lens 1 are provided in the carriage 8.
4 are equipped. When the light source 10 is turned on and the light is reflected on the image surface of the original 7 and returned to the carriage 8, the reflector 1
It is polarized by 1 to 13 and passes through the lens 14 to form an image on a pixel (light receiving element) on the image sensor 9. Pixels (light receiving elements) on the image sensor 9 according to the contrast of the original image
The amount of light focused on the image changes, and the image sensor 9 converts the amount of light into an electrical signal to detect the density of the image and reads the image. The carriage 8 moves in the direction of arrow d by a drive source (not shown) to read an image. Here, in the description of the present specification, the direction of arrow d is the reading sub-scanning direction. On the other hand, the direction perpendicular to this and perpendicular to the paper surface of FIG. 4 is the main scanning direction for reading.

【0007】図6は従来の画像読み取り装置における読
み取り領域とイメージセンサ9の画素の対応図である。
主走査方向にイメージセンサ9の画素(受光素子)が一
列に配置される。便宜上、イメージセンサ9の1画素と
読み取る画像の1画素を1対1に対応させて記載してい
るが、イメージセンサ10が図5のようにCCDライン
センサの場合、CCDラインセンサの1画素は読み取る
画像の1画素に比べて非常に小さく、読み取る画像の1
画素を光学的に縮小してCCDラインセンサの1画素に
結像させる。主走査方向の読み取り幅は、イメージセン
サ9の画素数に依存し、副走査方向の読み取り幅は、キ
ャリッジ8の移動量に依存する。15は白基準板であ
り、シェーディング補正時の白データ(Dw)取得に際
して使用する。
FIG. 6 is a correspondence diagram between the reading area and the pixels of the image sensor 9 in the conventional image reading apparatus.
The pixels (light receiving elements) of the image sensor 9 are arranged in a line in the main scanning direction. For convenience, one pixel of the image sensor 9 and one pixel of the image to be read are described in a one-to-one correspondence, but when the image sensor 10 is a CCD line sensor as shown in FIG. 5, one pixel of the CCD line sensor is It is very small compared to 1 pixel of the image to read,
The pixel is optically reduced to form an image on one pixel of the CCD line sensor. The reading width in the main scanning direction depends on the number of pixels of the image sensor 9, and the reading width in the sub scanning direction depends on the movement amount of the carriage 8. Reference numeral 15 is a white reference plate, which is used when acquiring white data (Dw) during shading correction.

【0008】さて、シェーディング補正を行うには、画
像の濃度レベルを決定する上で基準となる白データ(D
w)と黒データ(Dk)を取得する必要がある。白デー
タとは、白基準板15を読み取ったときのイメージセン
サ9の各画素の出力レベルである。黒データとは、例え
ば光源10を消灯した状態でのイメージセンサ9の各画
素の出力レベルである。従って、白データおよび黒デー
タの取得は図5のように、白基準板15を読み取れる位
置にキャリッジ8を移動した状態で行える。
Now, in order to perform shading correction, white data (D
It is necessary to obtain w) and black data (Dk). The white data is the output level of each pixel of the image sensor 9 when the white reference plate 15 is read. The black data is, for example, the output level of each pixel of the image sensor 9 when the light source 10 is turned off. Therefore, the white data and the black data can be obtained with the carriage 8 moved to a position where the white reference plate 15 can be read, as shown in FIG.

【0009】図7は従来の画像読み取り装置における白
データおよび黒データの概念図である。画像を読み込ん
だ時のイメージセンサ出力(画像データ)は、基本的に
図6のように白データと黒データの間で原稿画像の濃淡
に応じて変化する。読み込んだ画像データのレベルを白
データと黒データ間に占める割合で表すことで、上述し
た一定濃度の原稿画像を読み込んだ場合のイメージセン
サ9の各画素間における出力のバラツキを補正し、画像
データを均一なレベルに補正することができる。画像デ
ータ(D)を8ビットのデータ量で扱う場合、一般に式
(1)のような補正式によりシェーディング補正を行
う。
FIG. 7 is a conceptual diagram of white data and black data in a conventional image reading apparatus. The image sensor output (image data) when the image is read basically changes between white data and black data according to the lightness and darkness of the original image as shown in FIG. By representing the level of the read image data by the ratio of the white data and the black data, the variation in the output between the pixels of the image sensor 9 when the document image having the constant density is read is corrected, and the image data is read. Can be corrected to a uniform level. When the image data (D) is handled with an 8-bit data amount, shading correction is generally performed by a correction formula such as formula (1).

【0010】 Ds=(D−Dk)÷(Dw−Dk)×255 …式(1) 式(1)により画像データ(D)が8ビットで正規化さ
れたことになり、正規化された画像データ(Ds)が真
の画像データである。白データは主走査方向の読み取り
画素1ライン分(イメージセンサの読み取り画素数分)
取得することが望ましい。前記した光源の光量分布特性
などの影響で、白レベルがイメージセンサの各画素間で
大きくバラつく。白データはハイライト基準であり、イ
メージセンサ出力の最大レベルと考えるので、それだけ
画素間でのレベルのバラツキ幅が大きく、画像に与える
影響が強いからである。一方、黒データはダーク基準で
あり、イメージセンサ9に光が入らない状態での出力レ
ベルなので、前記したような影響が小さい。従って、黒
データ取得は、例えば光源を消灯した状態である画素の
レベルをサンプリングしてデータを保持することで行わ
れる。このことから、シェーディング補正に関しては、
白データの取得用に少なくとも主走査方向の読み取り画
素1ライン分(イメージセンサの読み取り画素数分)の
データを格納できるメモリが必要となる。
Ds = (D−Dk) ÷ (Dw−Dk) × 255 Equation (1) The image data (D) is normalized by 8 bits by the equation (1), and the normalized image is obtained. The data (Ds) is the true image data. White data is for one line of read pixels in the main scanning direction (for the number of read pixels of the image sensor)
Desirable to get. Due to the influence of the light amount distribution characteristic of the light source, etc., the white level greatly varies among the pixels of the image sensor. This is because the white data is a highlight standard and is considered to be the maximum level of the image sensor output, and thus the level variation between pixels is large and the influence on the image is strong. On the other hand, the black data is a dark reference and is an output level in a state where light does not enter the image sensor 9, so that the influence as described above is small. Therefore, black data is acquired by, for example, sampling the level of a pixel in a state where the light source is turned off and holding the data. From this, regarding shading correction,
A memory that can store at least one line of read pixels in the main scanning direction (the number of read pixels of the image sensor) is required for acquiring white data.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、従来の
画像処理回路においては、次のような課題があった。シ
ェーディング補正において、例えば白基準板15の読み
取り位置にたまたまゴミやよごれが付着していたとする
と、白データの取得に際して、ゴミやよごれが付着して
いた部分に対応するイメージセンサの画素の出力レベル
が極端に低下し、その影響で読み取り画像にスジが出る
などの不具合が発生する。このような不具合の発生を抑
えるために、白基準板15の読み取り位置を変えながら
白データの取得を複数ラインにわたって行う方法がとら
れる。その場合、例えばイメージセンサの各画素におい
て、複数ラインにわたって取得したデータの最大値をも
って白データとし、最終的に1ライン分の白データを形
成するといった処理を行う。しかし、このような方法を
とることにより、読み取るライン数に応じて白データ格
納用のメモリ容量が増加し、さらに読み取り解像度の高
解像度化や読み取り幅の増大に伴い1ライン分の画素数
が増加すると、1つのメモリでは対応できないため複数
のメモリが必要になるなど、コストアップを招くという
問題点があった。
However, the conventional image processing circuit has the following problems. In the shading correction, if dust or dirt happens to be attached to the reading position of the white reference plate 15, for example, when acquiring white data, the output level of the pixel of the image sensor corresponding to the portion where the dust or dirt is attached is The deterioration is extremely low, which causes defects such as streaks in the read image. In order to suppress the occurrence of such a defect, a method is adopted in which white data is acquired over a plurality of lines while changing the reading position of the white reference plate 15. In that case, for example, in each pixel of the image sensor, the maximum value of the data acquired over a plurality of lines is set as white data, and finally the white data for one line is formed. However, by adopting such a method, the memory capacity for storing white data increases according to the number of lines to be read, and the number of pixels for one line increases with the increase in the reading resolution and the reading width. Then, there is a problem in that a single memory cannot be used and a plurality of memories are required, resulting in an increase in cost.

【0012】そこで本発明は、メモリの容量や数量が増
加しないような画像処理回路を提供することを目的とす
る。
Therefore, an object of the present invention is to provide an image processing circuit which does not increase the capacity or the number of memories.

【0013】[0013]

【課題を解決するための手段】本発明では、白基準板を
読んだときの白データを取得、格納するメモリを複数の
バンクに分けて構成する。
According to the present invention, a memory for acquiring and storing white data when a white reference plate is read is divided into a plurality of banks.

【0014】[0014]

【作用】上記構成により、複数のバンクの各々に白基準
板の読み取り位置が互いに異なる条件での白データが取
得され、例えば各読み取り画素において、複数のバンク
に取得された白データの最大値が所定のバンクに格納さ
れる。
With the above configuration, white data is acquired in each of the plurality of banks under the condition that the reading positions of the white reference plate are different from each other. For example, in each read pixel, the maximum value of the white data acquired in the plurality of banks is It is stored in a predetermined bank.

【0015】[0015]

【実施例】次に図面を参照しながら本発明の実施例につ
いて説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0016】図1は、本発明の一実施例における画像処
理回路の構成図である。図1において、16は、図示し
ないイメージセンサから出力され、図示しないアナログ
信号処理部で増幅等の信号処理が施されたアナログレベ
ルの画像データをデジタルの画像データに変換するAD
コンバータである。ADコンバータ16の分解能によっ
て、画像データ(D)のデータ量が決まる。本実施例で
はADコンバータ16の分解能を8ビットとし、これに
より画像データのデータ量は最大256レベルである。
FIG. 1 is a block diagram of an image processing circuit according to an embodiment of the present invention. In FIG. 1, reference numeral 16 denotes an AD for converting analog image data output from an image sensor (not shown) and subjected to signal processing such as amplification by an analog signal processing unit (not shown) into digital image data.
It is a converter. The resolution of the AD converter 16 determines the data amount of the image data (D). In this embodiment, the resolution of the AD converter 16 is set to 8 bits, so that the maximum amount of image data is 256 levels.

【0017】17は、シェーディング補正に必要な黒デ
ータ(Dk)の値を保持する黒メモリである。通常、レ
ジスタラッチが使用される。18は、式(1)の演算を
行うシェーディング演算部である。シェーディング演算
部18には、式(1)の演算に必要なデータ(D、D
k、Dw)が入力され、演算結果がDsとして出力され
る。19のメモリは、シェーディング補正時に白データ
(Dw)を取得、格納するメモリである。メモリ19に
示すABはアドレスバスを示し、DBはデータバスを示
している。メモリ19の構成については後で説明する。
Reference numeral 17 is a black memory for holding the value of black data (Dk) necessary for shading correction. Usually register latches are used. Reference numeral 18 denotes a shading calculation unit that calculates the formula (1). The shading calculation unit 18 includes data (D, D) necessary for the calculation of Expression (1).
k, Dw) is input and the calculation result is output as Ds. The memory 19 is a memory that acquires and stores white data (Dw) during shading correction. AB in the memory 19 indicates an address bus, and DB indicates a data bus. The configuration of the memory 19 will be described later.

【0018】20は、画像読み取り装置の制御を司るC
PUである。CPU20は、キャリッジの制御(位置制
御、速度制御等)や画像読み取りタイミングの制御等、
画像読み取り装置の様々な制御を行う。CPU20に示
すABはアドレスバスを示し、DBはデータバスを示し
ている。本実施例ではCPU20は8ビットのマイクロ
コンピュータとし、データバスのビット長は8ビットで
ある。
Reference numeral 20 denotes C which controls the image reading apparatus.
It is PU. The CPU 20 controls the carriage (position control, speed control, etc.), controls the image reading timing, etc.
Performs various controls of the image reading device. AB in the CPU 20 indicates an address bus, and DB indicates a data bus. In this embodiment, the CPU 20 is an 8-bit microcomputer and the data bus has a bit length of 8 bits.

【0019】21は、メモリ19に対してアドレス信号
を発生するアドレス生成部であり、通常カウンタなどで
構成される。22は、メモリ19のアドレスを、CPU
20とアドレス生成部21のどちらから与えるかを選択
するセレクタである。
Reference numeral 21 is an address generator for generating an address signal to the memory 19, which is usually composed of a counter or the like. 22 designates the address of the memory 19 as the CPU
20 is a selector for selecting which of 20 and address generator 21 to give.

【0020】ここでは、入力する選択信号の論理がハイ
のときはCPU20のアドレス信号を選択し、ローのと
きはアドレス生成部21のアドレス信号を選択してメモ
リ19に与えるものとする。選択信号は、図示しないア
ドレスデコード回路において、アドレス空間の割り付け
に従い、CPU20のアドレス信号をデコード(CPU
20のアドレス信号がメモリ19に割り当てられたアド
レスであるか否かの判定)することで得られる。
Here, when the logic of the input selection signal is high, the address signal of the CPU 20 is selected, and when it is low, the address signal of the address generator 21 is selected and given to the memory 19. As the selection signal, an address decoding circuit (not shown) decodes the address signal of the CPU 20 according to the allocation of the address space (CPU
It is obtained by determining whether the address signal of 20 is the address assigned to the memory 19).

【0021】CPU20がメモリ19に割り当てられた
アドレス空間に対応するアドレス信号を発すると選択信
号はハイとなり、CPU20がメモリ19に対してアク
セス可能となる。それ以外のとき、選択信号は常にロー
である。
When the CPU 20 issues an address signal corresponding to the address space assigned to the memory 19, the selection signal becomes high, and the CPU 20 can access the memory 19. Otherwise, the select signal is always low.

【0022】23は信号線の接続、非接続を制御する単
方向バスコントローラである。信号Aの論理によって、
入力出力間の接続、非接続を制御する。信号Aは、例え
ばCPU20のI/Oポートから出力される。ここでは
信号Aがローのとき、単方向バスコントローラ23の入
出力間が接続するものとする。単方向バスコントローラ
23は、ADコンバータ16の出力とメモリ19のデー
タバス間の接続を制御する。シェーディング補正時、白
基準板を読んで白データをメモリ19に取得する(書き
込む)時のみ信号Aをローにする。また、信号Aはメモ
リ19のアドレスの最上位ビットを兼用しており、CP
U20がメモリ19をアクセスする場合を除き、メモリ
19のアドレスはアドレス生成部21からのアドレス信
号と信号Aで構成される。
A unidirectional bus controller 23 controls connection / disconnection of signal lines. By the logic of signal A,
Controls connection / disconnection between input and output. The signal A is output from, for example, the I / O port of the CPU 20. Here, when the signal A is low, the input and output of the unidirectional bus controller 23 are connected. The unidirectional bus controller 23 controls the connection between the output of the AD converter 16 and the data bus of the memory 19. During shading correction, the signal A is set to low only when the white reference plate is read and white data is acquired (written) in the memory 19. The signal A also serves as the most significant bit of the address of the memory 19, and CP
The address of the memory 19 is composed of the address signal from the address generator 21 and the signal A except when the U 20 accesses the memory 19.

【0023】24は信号線の接続、非接続を制御する双
方向バスコントローラである。イネーブル信号の論理に
よって、双方向バスコントローラ24の入出力間の接
続、非接続が制御され、さらに入出力制御信号の論理に
応じて入出力が決定される。ここではイネーブル信号が
ハイのときにJK間が接続し、JK間が接続した状態で
入出力制御信号がローのときはJが入力、Kが出力とな
り、逆にJK間が接続した状態で入出力制御信号がハイ
のときはJが出力、Kが入力となる。イネーブル信号お
よび入出力制御信号は、図示しないアドレスデコード回
路において、アドレス空間の割り付けに従い、CPU2
0のアドレス信号とリードライト信号(CPU20が外
部I/Oに対してリード動作を行うかライト動作を行う
かを示す信号(図示せず))とをデコード(CPU20
のアドレス信号がメモリ19に割り当てられたアドレス
であるか否かと、CPU20のアクセスモード(リード
/ライト)の判定)することで得られる。
Reference numeral 24 is a bidirectional bus controller for controlling connection / disconnection of signal lines. The logic of the enable signal controls the connection / non-connection between the inputs and outputs of the bidirectional bus controller 24, and further the input / output is determined according to the logic of the input / output control signal. Here, when the enable signal is high, JK is connected, and when JK is connected, when the input / output control signal is low, J is input and K is output. Conversely, when JK is connected, it is input. When the output control signal is high, J is output and K is input. The enable signal and the input / output control signal are supplied to the CPU 2 according to the address space allocation in an address decoding circuit (not shown).
The address signal of 0 and the read / write signal (a signal (not shown) indicating whether the CPU 20 performs a read operation or a write operation with respect to the external I / O) are decoded (CPU 20
Is determined by whether or not the address signal of is the address assigned to the memory 19 and the access mode (read / write) of the CPU 20.

【0024】CPU20がメモリ19のアドレス空間に
対応するアドレス信号を発すると、イネーブル信号はハ
イとなってCPU20がメモリ19に対してアクセス可
能となり、リードライト信号の論理によって入出力制御
信号の状態が決まる。
When the CPU 20 issues an address signal corresponding to the address space of the memory 19, the enable signal becomes high and the CPU 20 can access the memory 19, and the logic of the read / write signal changes the state of the input / output control signal. Decided.

【0025】さて、メモリ19の構成について図2を用
いて説明する。説明を簡潔にするため、本実施例におい
て、メモリ19は8192×8ビットの構成で、すなわ
ち容量が8KB(キロバイト)メモリとする。メモリ1
9のアドレスは16進数記述で、0000h〜1FFF
hである。従って、メモリ19のアドレスは13ビット
であり、その最上位ビットの論理(0…ロー、1…ハ
イ)によって、2つのバンク(バンク0、バンク1)に
分けて構成し、使用する。バンク0、バンク1の容量は
ともに4KBである。図1において、CPU20による
メモリ19のアクセス時以外は、メモリ19のアドレス
(13ビット)は最上位ビットが信号A、下位12ビッ
トがアドレス生成部21からのアドレス信号で構成され
ることから、信号Aの論理によってバンクが選択される
ことになる。
Now, the structure of the memory 19 will be described with reference to FIG. In order to simplify the explanation, in this embodiment, the memory 19 has a configuration of 8192 × 8 bits, that is, a memory having a capacity of 8 KB (kilobytes). Memory 1
Address 9 is a hexadecimal number description, 0000h-1FFF
h. Therefore, the address of the memory 19 is 13 bits, and it is divided into two banks (bank 0, bank 1) by the logic (0 ... Low, 1 ... High) of the most significant bit and used. The capacities of bank 0 and bank 1 are both 4 KB. In FIG. 1, except when the memory 19 is accessed by the CPU 20, the most significant bit of the address (13 bits) of the memory 19 is the signal A, and the lower 12 bits are the address signal from the address generator 21. The bank is selected by the logic of A.

【0026】以上のように構成された画像処理回路にお
いて、シェーディング補正時の白データの取得について
説明を行う。説明に際し、図3のフローチャートを参照
しながら説明を行う。まずCPU20によって、キャリ
ッジ8を白基準板15の読み取り位置に移動する(ステ
ップ1、図5参照)。
Acquisition of white data at the time of shading correction in the image processing circuit configured as described above will be described. At the time of explanation, the explanation will be given with reference to the flowchart of FIG. First, the CPU 20 moves the carriage 8 to the reading position of the white reference plate 15 (step 1, see FIG. 5).

【0027】白基準板15を読み取ったデータ(白デー
タ)の取得は、単方向バスコントローラ23を介してデ
ータをメモリ19のバンク0に書き込むことである。よ
って、信号Aをローとし、ADコンバータ16の出力と
メモリ19のデータバス間を接続するとともに、CPU
20によるメモリ19のアクセスを禁止することで選択
信号はローであり、セレクタ22を介して信号Aとアド
レス生成部21からのアドレス信号によりメモリ19の
アドレスが構成される。白データは、主走査方向の各画
素毎に次々とメモリ19のバンク0(アドレス0000
h〜0FFFh)に書き込まれ、メモリ19に主走査方
向1ライン分の全読み取り画素における白データが格納
される(ステップ3)。なお、読み取りラインの先頭読
み取り画素の白データはアドレス0000hに書き込ま
れ、以下画素毎に順次0001h、0002hと更新さ
れたアドレスに書き込まれる。
The acquisition of the data (white data) obtained by reading the white reference plate 15 is to write the data into the bank 0 of the memory 19 via the unidirectional bus controller 23. Therefore, the signal A is set to low, the output of the AD converter 16 and the data bus of the memory 19 are connected, and the CPU
By prohibiting the access of the memory 19 by the memory 20, the selection signal is low, and the address of the memory 19 is configured by the signal A through the selector 22 and the address signal from the address generator 21. White data is stored in the bank 0 (address 0000) of the memory 19 one after another for each pixel in the main scanning direction.
h to 0FFFh), and the white data in all the read pixels for one line in the main scanning direction is stored in the memory 19 (step 3). The white data of the first read pixel of the read line is written at the address 0000h, and thereafter, for each pixel, is sequentially written at the updated address of 0001h and 0002h.

【0028】メモリ19への主走査方向1ライン分の白
データの取得が終わると、今度はCPU20がメモリ1
9をアクセスする。CPU20のアクセス中は選択信号
がハイとなり、メモリ19のアドレスはCPU20のア
ドレスバス(AB)から与えられる。また、CPU20
がメモリ19のアクセスを正常に行えるように、メモリ
19とADコンバータ16の接続を解除しなければなら
ない。よって、信号Aをハイに切り換える(ステップ
4)。
When the acquisition of the white data for one line in the main scanning direction to the memory 19 is completed, the CPU 20 next makes the memory 1
Access 9 During the access of the CPU 20, the selection signal becomes high, and the address of the memory 19 is given from the address bus (AB) of the CPU 20. The CPU 20
The memory 19 and the AD converter 16 must be disconnected so that the memory 19 can normally access the memory 19. Therefore, the signal A is switched to high (step 4).

【0029】白データの取得が1ライン目である時(ス
テップ5)、CPU20はメモリ19のバンク0に取得
された白データを読み出しては、対応するバンク1のア
ドレスに書き込む(バンク0のデータをバンク1にコピ
ーする)処理を、主走査方向1ライン分の全読み取り画
素にわたって行う(ステップ6)。
When the white data is acquired in the first line (step 5), the CPU 20 reads the white data acquired in the bank 0 of the memory 19 and writes the read white data in the corresponding bank 1 address (the data of the bank 0). Processing is performed on all the read pixels for one line in the main scanning direction (step 6).

【0030】バンク0とバンク1のアドレス対応は、ア
ドレスの下位12ビットの一致である。例えば、バンク
0のアドレス0000hはバンク1のアドレス1000
hに対応する。
The address correspondence between bank 0 and bank 1 is a match of the lower 12 bits of the address. For example, the address 0000h of bank 0 is the address 1000 of bank 1.
Corresponds to h.

【0031】このようにして、CPU20が主走査方向
1ライン分の全読み取り画素における白データをメモリ
19のバンク1に書き込み終わると、白基準板15の読
み取り位置を変え、新たに主走査方向1ライン分の白デ
ータの取得に入る。CPU20によってキャリッジ8の
位置を変え、白基準板15の読み取り位置を変える(ス
テップ1)。上述したように、白データの取得において
は、信号Aはローであり、CPU20によるメモリ19
のアクセスを禁止するので、選択信号はローである(ス
テップ2)。そして、新たに主走査方向1ライン分の白
データをメモリ19のバンク0に取得する(ステップ
3)。この時点で、メモリ19のバンク1には、最初に
取得した主走査方向1ライン分の白データ(1ライン目
の白データ)が格納されたままの状態である。
In this way, when the CPU 20 finishes writing the white data of all the read pixels for one line in the main scanning direction into the bank 1 of the memory 19, the reading position of the white reference plate 15 is changed to newly add the main scanning direction 1. Start acquiring white data for the line. The position of the carriage 8 is changed by the CPU 20 and the reading position of the white reference plate 15 is changed (step 1). As described above, in the acquisition of white data, the signal A is low, and the CPU 19 causes the memory 19
Access is prohibited, the selection signal is low (step 2). Then, new white data for one line in the main scanning direction is newly acquired in bank 0 of the memory 19 (step 3). At this point, the first acquired white data for one line in the main scanning direction (white data for the first line) is still stored in the bank 1 of the memory 19.

【0032】メモリ19への主走査方向1ライン分の白
データの取得が終わると、CPU20がメモリ19をア
クセスする(アクセス中は選択信号はハイ、また信号A
もハイ。)。CPU20は、メモリ19のアドレス00
00h、1000hに格納されている白データ(白基準
板15を読み取った時の各ラインにおける先頭読み取り
画素のデータ)を読み込み、それら2つの白データのう
ち、大きい値の白データをメモリ19のアドレス100
0hに書き込む。同様の処理を、アドレスを1番地ずつ
更新しながら主走査方向1ライン分の全読み取り画素に
ついて行う。その結果、読み取り位置を変えて白基準板
15を2ライン分読んだ中で、各読み取り画素における
データの大きい方の値が白データとしてバンク1に格納
される(ステップ7)。
When the acquisition of the white data for one line in the main scanning direction to the memory 19 is completed, the CPU 20 accesses the memory 19 (during access, the selection signal is high, and the signal A
Is also high. ). The CPU 20 uses the address 00 of the memory 19
The white data stored in 00h and 1000h (the data of the first read pixel in each line when the white reference plate 15 is read) is read, and the white data having the larger value of the two white data is stored in the address of the memory 19. 100
Write to 0h. The same process is performed for all read pixels for one line in the main scanning direction while updating the address one by one. As a result, while the reading position is changed and the white reference plate 15 is read for two lines, the larger value of the data in each read pixel is stored in the bank 1 as white data (step 7).

【0033】さらに白データの取得を継続する場合は
(ステップ8)、これまでの説明と同様に、キャリッジ
8を移動して白基準板15の読み取り位置を変え、メモ
リ19のバンク0にデータを取得し、バンク1に格納さ
れている白データと値を比較し、大きい方の値をバンク
1に書き込むことで、最終的にメモリ19のバンク1に
は各読み取り画素における白データの最大値が格納され
る。以上の処理により、白データの取得が完了する。
When the acquisition of the white data is further continued (step 8), the carriage 8 is moved to change the reading position of the white reference plate 15 and the data is stored in the bank 0 of the memory 19, as described above. The maximum value of the white data in each read pixel is finally stored in the bank 1 of the memory 19 by acquiring and comparing the value with the white data stored in the bank 1 and writing the larger value in the bank 1. Is stored. With the above processing, the acquisition of white data is completed.

【0034】この後、実際の画像読み取り動作に移行す
る。画像読み取り時は、信号Aを常にハイとし、読み取
った画像データはシェーディング演算部18にのみ入力
する。この画像データに同期して、対応する画素の白デ
ータがメモリ19のバンク1から順次シェーディング演
算部18に送られ、黒メモリ17に保持されている黒デ
ータ(Dk)とあわせて式(1)の演算をリアルタイム
に処理しながら、次段の画像処理部へデータ(Ds)が
送出される。また、画像読み取り中はCPU20がメモ
リ19にアクセスすることを禁止し、双方向バスコント
ローラ24のイネーブル信号が常にローとなる。よっ
て、メモリ19はシェーディング演算部18に対しての
みデータバスが接続している。
Thereafter, the actual image reading operation is started. At the time of image reading, the signal A is always high, and the read image data is input only to the shading calculation unit 18. In synchronism with this image data, the white data of the corresponding pixel is sequentially sent from the bank 1 of the memory 19 to the shading calculation unit 18, and together with the black data (Dk) held in the black memory 17, the expression (1) is obtained. The data (Ds) is sent to the image processing unit of the next stage while processing the calculation of 1 in real time. Further, the CPU 20 is prohibited from accessing the memory 19 during image reading, and the enable signal of the bidirectional bus controller 24 is always low. Therefore, in the memory 19, the data bus is connected only to the shading calculation unit 18.

【0035】このように、メモリ19を2つのバンクに
分けて構成し、バンク0を白データの取得エリア、バン
ク1を各読み取り画素における白データの最大値格納エ
リアとすることで、白データを複数ラインにわたって取
得することが可能となり、白基準板の読み取り位置での
ゴミやよごれの付着等による白データの低下、それによ
る読み取り画像への影響(スジの発生等)を防ぐことが
できる。
As described above, the memory 19 is divided into two banks, and the bank 0 is the white data acquisition area and the bank 1 is the maximum white data storage area in each read pixel. It is possible to acquire over a plurality of lines, and it is possible to prevent a decrease in white data due to adhesion of dust or dirt at the reading position of the white reference plate and an influence (a streak or the like) on a read image due to the decrease.

【0036】なお、本実施例では、バンク1には取得し
た白データの最大値を格納する方法を取ったが、取得し
た白データの平均値を白データとする等、種々変更する
ことができる。
In this embodiment, the maximum value of the acquired white data is stored in the bank 1. However, the average value of the acquired white data may be changed to white data, and various changes may be made. .

【0037】また、メモリを2つのバンクに分けた構成
を例にとり説明を行ったが、もちろん2つ以上の複数に
分けて構成しても良い。バンク数を増やすことで、バン
ク数に応じたライン数分の白レベルを取得後、CPU2
0が各読み取り画素における最大値を所定のバンクに格
納すればよいので、CPU20の処理軽減と、白データ
取得処理時間の短縮につながる。バンク数は、読み取り
解像度と読み取り幅から決まる主走査方向の読み取り画
素数とメモリ容量から最適化すればよい。
Although the memory is divided into two banks in the above description, the memory may be divided into two or more banks. After the white level for the number of lines corresponding to the number of banks is acquired by increasing the number of banks, the CPU 2
Since 0 may store the maximum value of each read pixel in a predetermined bank, the processing of the CPU 20 is reduced and the white data acquisition processing time is shortened. The number of banks may be optimized from the number of read pixels in the main scanning direction determined by the reading resolution and the reading width and the memory capacity.

【0038】[0038]

【発明の効果】本発明の画像処理回路は、白データを取
得、格納するメモリを複数のバンクに分けて構成するこ
とで、複数ラインにわたって白データの取得を行うこと
が可能となり、白基準板の読み取り位置でのゴミやよご
れの付着等による白データ値の低下、それによる読み取
り画像への影響(スジの発生等)を防ぐとともに、白デ
ータ取得用メモリの容量増大や数量増加を防ぎ、コスト
削減に有効である。
According to the image processing circuit of the present invention, the memory for acquiring and storing white data is divided into a plurality of banks so that the white data can be acquired over a plurality of lines, and the white reference plate is obtained. The white data value is prevented from lowering due to dust or dirt adhering to the reading position of the paper, and the resulting influence on the read image (such as streaks) is prevented, and the increase in the amount of white data acquisition memory and the increase in the number are prevented. It is effective for reduction.

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

【図1】本発明の一実施例における画像処理回路の構成
FIG. 1 is a configuration diagram of an image processing circuit according to an embodiment of the present invention.

【図2】本発明の一実施例における白データ取得用メモ
リの構成図
FIG. 2 is a configuration diagram of a white data acquisition memory according to an embodiment of the present invention.

【図3】本発明の一実施例におけるシェーディング補正
時の白データの取得処理を表すフローチャート
FIG. 3 is a flowchart showing a white data acquisition process at the time of shading correction according to an embodiment of the present invention.

【図4】従来の画像処理回路における画像処理の流れを
簡単に表したブロック図
FIG. 4 is a block diagram simply showing a flow of image processing in a conventional image processing circuit.

【図5】従来の画像読み取り装置の読み取り部の構成図FIG. 5 is a configuration diagram of a reading unit of a conventional image reading device.

【図6】従来の画像読み取り装置における読み取り領域
とイメージセンサ9の画素の対応図
FIG. 6 is a correspondence diagram of a reading area and pixels of the image sensor 9 in a conventional image reading apparatus.

【図7】従来の画像読み取り装置における白データおよ
び黒データの概念図
FIG. 7 is a conceptual diagram of white data and black data in a conventional image reading device.

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

16 ADコンバータ 17 黒メモリ 18 シェーディング演算部 19 メモリ 20 CPU 21 アドレス生成部 22 セレクタ 23 単方向バスコントローラ 24 双方向バスコントローラ 16 AD Converter 17 Black Memory 18 Shading Calculation Unit 19 Memory 20 CPU 21 Address Generation Unit 22 Selector 23 Unidirectional Bus Controller 24 Bidirectional Bus Controller

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】イメージセンサを用いて原稿画像を読み取
る画像読み取り装置に組み込まれ、前記イメージセンサ
で読み取った画像データに対してアナログデジタル変換
処理、シェーディング補正処理、MTF補正処理など行
う画像処理回路であって、前記シェーディング補正処理
において、白基準板を読んだときの白データを取得、格
納するメモリを備え、前記メモリを複数のバンクに分け
て構成したことを特徴とする画像処理回路。
1. An image processing circuit incorporated in an image reading apparatus for reading an original image using an image sensor, and performing analog-digital conversion processing, shading correction processing, MTF correction processing, etc. on image data read by the image sensor. An image processing circuit comprising a memory for acquiring and storing white data when a white reference plate is read in the shading correction process, wherein the memory is divided into a plurality of banks.
【請求項2】白基準板の読み取り位置を変えて複数ライ
ンにわたって白データを取得する際、所定のバンクを除
く前記複数のバンクの各々には白基準板の読み取り位置
が互いに異なる白データが取得されることを特徴とする
請求項1記載の画像処理回路。
2. When white data is acquired over a plurality of lines by changing the reading position of the white reference plate, white data having different reading positions of the white reference plate is acquired in each of the plurality of banks except a predetermined bank. The image processing circuit according to claim 1, wherein:
【請求項3】白基準板の読み取り位置を変えて複数ライ
ンにわたって白データを取得する際、所定のバンクを除
く前記複数のバンクの各々には白基準板の読み取り位置
が互いに異なる白データが取得され、前記所定のバンク
には他のバンクに取得された白データから算出されるデ
ータが格納されることを特徴とする請求項1記載の画像
処理回路。
3. When white data is acquired over a plurality of lines by changing the reading position of the white reference plate, white data having different reading positions of the white reference plate is acquired in each of the plurality of banks except a predetermined bank. The image processing circuit according to claim 1, wherein the predetermined bank stores data calculated from white data acquired by another bank.
【請求項4】白基準板の読み取り位置を変えて複数ライ
ンにわたって白データを取得する際、前記複数のバンク
の各々には白基準板の読み取り位置が互いに異なる白デ
ータが取得されることを特徴とする請求項1記載の画像
処理回路。
4. When white data is acquired over a plurality of lines by changing the reading position of the white reference plate, white data having different reading positions of the white reference plate are acquired in each of the plurality of banks. The image processing circuit according to claim 1.
【請求項5】白基準板の読み取り位置を変えて複数ライ
ンにわたって白データを取得する際、前記複数のバンク
の各々には白基準板の読み取り位置が互いに異なる白デ
ータが取得され、その結果、前記複数のバンクの中の所
定のバンクに、複数ラインにわたって取得した白データ
から算出されるデータが格納されることを特徴とする請
求項1記載の画像処理回路。
5. When white data is acquired over a plurality of lines by changing the reading position of the white reference plate, white data having different reading positions of the white reference plate are acquired in each of the plurality of banks, and as a result, The image processing circuit according to claim 1, wherein data calculated from white data acquired over a plurality of lines is stored in a predetermined bank of the plurality of banks.
JP7158994A 1995-06-26 1995-06-26 Image processing circuit Pending JPH099055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7158994A JPH099055A (en) 1995-06-26 1995-06-26 Image processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7158994A JPH099055A (en) 1995-06-26 1995-06-26 Image processing circuit

Publications (1)

Publication Number Publication Date
JPH099055A true JPH099055A (en) 1997-01-10

Family

ID=15683908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7158994A Pending JPH099055A (en) 1995-06-26 1995-06-26 Image processing circuit

Country Status (1)

Country Link
JP (1) JPH099055A (en)

Similar Documents

Publication Publication Date Title
US5500745A (en) Image reading device capable of performing shading correction
US7251064B2 (en) Calibration of an image scanning system
US6633975B1 (en) Data processing system having plurality of processors and executing series of processings in prescribed order
USRE42618E1 (en) Multiple-field sensor for scanning system
JPS60230767A (en) Binarizing system of picture signal
JP2014045415A (en) Image processing apparatus, image forming apparatus, and image processing method
JPH0759011A (en) Automatic detection device and automatic correction device for defective pixels of solid-state image sensor
JPH08340445A (en) Image processing circuit
JP4194210B2 (en) Image reading apparatus and method for controlling image reading apparatus
JPH1013672A (en) Image input method and apparatus
US5369506A (en) Circuit arrangement for selecting an image data correction scheme, writing the correction scheme to a correction table and correcting image data gradation
JP3848010B2 (en) Image reading device
JPH09121280A (en) Image processing circuit
JP2726053B2 (en) Image reading device
JPH0354510B2 (en)
JP2737915B2 (en) Image input device
JPH0377474A (en) image input device
JP2671802B2 (en) Shading correction method
JPH1131106A (en) Storage data confirmation device
JPH1188692A (en) Image reading device
JPH02177669A (en) Picture reader
JP2002314805A (en) Image reading device and computer software
US20030081224A1 (en) Image forming apparatus
JP2000196880A (en) White reference data detector
JPH099020A (en) Image processing apparatus and control method thereof