JPH1051628A - Image reader - Google Patents

Image reader

Info

Publication number
JPH1051628A
JPH1051628A JP8203866A JP20386696A JPH1051628A JP H1051628 A JPH1051628 A JP H1051628A JP 8203866 A JP8203866 A JP 8203866A JP 20386696 A JP20386696 A JP 20386696A JP H1051628 A JPH1051628 A JP H1051628A
Authority
JP
Japan
Prior art keywords
window
image
center
pixel
gravity
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
JP8203866A
Other languages
Japanese (ja)
Inventor
Takefumi Adachi
猛文 足立
Masaki Narita
昌樹 成田
Shinichiro Wada
真一郎 和田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP8203866A priority Critical patent/JPH1051628A/en
Publication of JPH1051628A publication Critical patent/JPH1051628A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the generation of abnormal image at a low cost by precisely measuring the positional error of the pixel of an image reader reading an original by a bit map form to be simple arithmetic processing to correct based on the measuring result. SOLUTION: The image reader provided with an automatic document feeder(ADF) and a scanner and line sequentially reading the original fed by ADF at fixed time intervals set in advance prints a hatched line pattern constituted by previously arranging lines with a fixed inclination with respect to a scanning direction at equal pitches on the original to read. At this time, this hatched line pattern is optically read by the photoelectric conversion part 101 of the scanner to convert to an electric signal, a hatched line pattern discriminating part 104 sets a window to image data of the hatched line pattern converted into the electric signal to calculate the centroid of image data within the window and a positional error measuring part 105 moves the window according to the value of the calculated centroid to measure the positional error of the pixel.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、読み取ったビット
マップ形式の画像データの位置誤差を測定して画像デー
タの画素の位置誤差を補正する画像読取装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image reading apparatus for measuring a position error of read bitmap image data and correcting a position error of a pixel of the image data.

【0002】[0002]

【従来の技術】この種の画像読取装置として例えば日本
機械学会第71期通常総会講演会講演論文集(IV)で
発表された「高精細画像入力装置の開発」(従来例1)
が知られている。ここでは、副走査方向に並べて配置さ
れた等ピッチラインのテストチャートを読み取った画
像、すなわち、副走査方向のライン間隔で離散化された
画像データに対して補間演算を行い、演算された結果か
ら、等ピッチラインの黒線、白線の中心位置を求め、テ
ストチャートの基準ピッチとの差を読み取ることで、装
置の振動などに起因する画像データの読み取り位置誤差
を検出するようになっている。
2. Description of the Related Art As an image reading apparatus of this kind, for example, "Development of a high-definition image input apparatus" (conventional example 1) announced at the 71st Ordinary General Meeting of the Japan Society of Mechanical Engineers (IV)
It has been known. Here, an interpolation operation is performed on an image obtained by reading a test chart of equi-pitch lines arranged in the sub-scanning direction, that is, image data discretized at line intervals in the sub-scanning direction. By obtaining the center position of the black line and the white line of the equal pitch line, and reading the difference from the reference pitch of the test chart, the reading position error of the image data due to the vibration of the apparatus or the like is detected.

【0003】他の従来例として特開平6−297758
号公報「走査線ピッチ計測方法」(従来例2)がある。
この公知例は、等ピッチパターンのデータを書き込んだ
ハードコピーのパターンを読み取ってハードコピー装置
の書き込みの走査線のピッチむらを計測するようになっ
ている。
Another conventional example is disclosed in Japanese Patent Laid-Open No. 6-297758.
Japanese Patent Application Laid-Open Publication No. 2000-214, “Scanning Line Pitch Measurement Method” (Conventional Example 2).
In this known example, a hard copy pattern in which data of an equal pitch pattern is written is read, and pitch unevenness of a writing scan line of a hard copy device is measured.

【0004】光学的リニアスケールとして、例えばオー
ム社から出版された「サーボセンサの基礎と応用」(大
島康次郎、秋山勇治共著)〔昭和63年2月20日発
行〕(従来例3)も知られている。この従来例ではリニ
アスケールの一例としてポジションスケールを例に挙げ
ている。例に挙げられたリニアスケールは、全く等しい
ピッチの明暗の格子をもった2枚1組のメインスケール
とインデックススケールとからなるガラススケールと、
そのスケールを照明するLEDからなる光源と、スケー
ルを透過した光を検知するフォトダイオードから構成さ
れる。通常はインデックスケールが固定され、メインス
ケールが移動するが、その移動に連れてフォトダイオー
ドの出力が変化する。出力は2枚のガラスの透過部が一
致したとき、最大となり、透過部とクロム蒸着された不
透明部が重なったときには、出力は理想状態では0とな
る。したがって、その出力波形は理想的には三角波とな
るが、実際には明暗の格子ピッチが8μmと小さいた
め、光の回折の影響やクロム烝着面での反射の影響があ
り、近似正弦波の形で出力される。この出力波形の山の
間隔がスケールのピッチに相当するので、山の数を数え
ることにより移動量を知ることができる。
[0004] As an optical linear scale, for example, "Basic and Application of Servo Sensors" published by Ohmsha (Kojiro Oshima and Yuji Akiyama) [published February 20, 1988] (conventional example 3) is also known. ing. In this conventional example, a position scale is taken as an example of a linear scale. The linear scales mentioned in the examples are a glass scale composed of a pair of main scales and index scales each having a light and dark grid of exactly the same pitch,
It is composed of a light source composed of an LED that illuminates the scale and a photodiode that detects light transmitted through the scale. Usually, the index scale is fixed and the main scale moves, but the output of the photodiode changes with the movement. The output is maximum when the transmission portions of the two glasses coincide, and when the transmission portion and the opaque portion on which chrome is deposited overlap, the output is 0 in an ideal state. Therefore, the output waveform is ideally a triangular wave. However, since the light and dark grating pitch is actually as small as 8 μm, there is an effect of light diffraction and an effect of reflection on the chromium deposition surface. Output in form. Since the interval between the peaks of this output waveform corresponds to the pitch of the scale, the amount of movement can be known by counting the number of peaks.

【0005】[0005]

【発明が解決しようとする課題】ところで、上記従来例
1では、等ピッチラインのパターンのエッジと読み取り
のサンプリングのタイミングとの位置関係との相違によ
り同じ形状のパターンを読み取って得られるデータがそ
れぞれ異なってしまうモアレという現象がある。読み取
ったデータはこのモアレによって必ずしもパターンのエ
ッジの位置と対応しないので、位置誤差の測定精度を劣
化させる。モアレの影響は、等ピッチラインパターンを
精細にして読み取り装置の分解能に近づけると非常に顕
著になり、条件によっては位置誤差の測定ができなくな
るほどになる。したがってこの方式では、読み取り装置
の分解能に近い、あるいはそれ以下の位置誤差を高精度
で測定することはできない。
By the way, in the above-mentioned conventional example 1, data obtained by reading a pattern having the same shape due to the difference in the positional relationship between the edge of the pattern of the equal pitch line and the timing of sampling for reading is obtained. There is a phenomenon called moiré that is different. The read data does not necessarily correspond to the position of the edge of the pattern due to the moiré, so that the measurement accuracy of the position error is deteriorated. The effect of moiré becomes very noticeable when the pitch of the equi-pitch line pattern is refined and approaches the resolution of the reader, and it becomes impossible to measure the position error depending on the conditions. Therefore, in this method, a position error close to or lower than the resolution of the reading device cannot be measured with high accuracy.

【0006】また、等ピッチラインのパターンを使うの
で、モアレの影響を無視しても、高い周波数成分の位置
誤差を測定するためにパターンのピッチを精細にする
と、結像光学系のMTF(Modulation Tr
ansfer Ratio)の限界によって得られた画
像の濃淡の信号の差が小さくなり、測定精度が劣化せざ
るを得ない。
Further, since a pattern of equal pitch lines is used, even if the effect of moiré is ignored, if the pitch of the pattern is refined in order to measure the position error of a high frequency component, the MTF (Modulation) of the imaging optical system will be reduced. Tr
The difference in the density signal of the obtained image is reduced due to the limit of the transfer ratio, and the measurement accuracy must be degraded.

【0007】さらに、パターンの精細化では、測定の周
波数帯域を高い方向に広げ、精度を上げることができな
いのでサンプリングしたデータを補間する処理を行って
いる。より良い補間を行うには、より多くの周辺データ
を使ったり、複雑な演算処理が必要になり、処理時間が
長くなる。さらに補間はあくまでも補間であり、真のデ
ータとのずれが生じることは避けられず、測定精度を劣
化させる要因になる。また、光電変換装置の中の特定の
1つの受光素子が副走査方向に走査することによって得
られる画像データを使用しているので、受光素子そのも
のが持つノイズが測定そのものの精度に影響を与えて、
精度を劣化させる。
[0007] Further, in pattern refinement, the frequency band of measurement is widened in a higher direction, and the accuracy cannot be increased. Therefore, a process of interpolating sampled data is performed. In order to perform better interpolation, more peripheral data is used or complicated arithmetic processing is required, and the processing time becomes longer. Further, the interpolation is an interpolation to the last, and it is inevitable that a deviation from true data occurs, which is a factor of deteriorating the measurement accuracy. In addition, since one specific light receiving element in the photoelectric conversion device uses image data obtained by scanning in the sub-scanning direction, noise of the light receiving element itself affects the accuracy of the measurement itself. ,
Degrades accuracy.

【0008】従来例2では、計測時には光電変換装置で
パターンを読み込んだデータを使うので、計測に当たっ
てはハードコピーの読み取り時の走査むらはないという
条件で読み取ってハードコピーのピッチむらを計測して
いる。その他、特に説明しないが、前述の従来例1と同
様のモアレの問題を有する。
In the conventional example 2, since data obtained by reading a pattern by the photoelectric conversion device is used at the time of measurement, reading is performed under the condition that there is no scanning unevenness at the time of reading a hard copy, and pitch unevenness of the hard copy is measured. I have. Although not particularly described, there is a problem of moire similar to that of the above-described conventional example 1.

【0009】従来例3では、上述のようなリニアスケー
ルにおいては、光源(LED)の発する光をコリメート
レンズで平行光線にしてメインスケールとインデックス
スケールの重なりを通過してくる光を受光素子で検出す
るようにしているので、微細かつ高精度のメインスケー
ル、インデックススケール、および精密なコリメートが
必要になる。その結果、当然コストも高くなってしま
う。
In the conventional example 3, in the above-described linear scale, the light emitted from the light source (LED) is converted into parallel rays by a collimating lens, and the light passing through the overlap of the main scale and the index scale is detected by the light receiving element. Therefore, a fine and accurate main scale, index scale, and precise collimation are required. As a result, the cost naturally increases.

【0010】一方、一般に、例えばR、G、Bの複数の
イメージセンサが副走査方向に離間し、且つ平行に配列
されたライン走査型画像読取装置では、各センサにより
読み取られる原稿の同一位置の画像データには時間的な
ずれがあり、したがって、原稿の同一位置の画像データ
が各センサから得られるように補正を行わないとカラー
画像の読み取りにおいては色ずれが発生し、色を正しく
読み取ることができない。このずれは各センサの間隔と
読み取り走査速度に応じて決定され、また、走査速度に
むらがあると色ずれの原因となる。
On the other hand, in a line scanning image reading apparatus in which a plurality of R, G, and B image sensors are spaced apart in the sub-scanning direction and arranged in parallel, generally, the same position of a document read by each sensor is detected. There is a time lag in the image data, so if you do not make corrections so that the image data at the same position on the document can be obtained from each sensor, a color shift will occur when reading a color image, and it will be necessary to read the color correctly. Can not. This shift is determined according to the interval between the sensors and the scanning speed, and if the scanning speed is uneven, it causes color shift.

【0011】上記不具合を避けるために、例えば特開平
6−22159号公報には読み取りキャリッジを駆動す
るモータの回転に伴って発生するパルスの間隔の期間
中、マイクロプロセッサが内部クロックを計数すること
によりモータの駆動速度を求めて実際の走査速度とし、
この走査速度に基づいて複数のセンサ間の位置ずれを補
正する方法が提案されている。この方法では、副走査方
向の下流のセンサに対して上流のセンサのデータが合わ
せられ、センサ間の位置ずれが補正される。
In order to avoid the above problem, for example, Japanese Patent Laid-Open Publication No. Hei 6-22159 discloses that a microprocessor counts an internal clock during a period of a pulse generated with rotation of a motor for driving a reading carriage. Find the driving speed of the motor and use it as the actual scanning speed,
There has been proposed a method for correcting a displacement between a plurality of sensors based on the scanning speed. In this method, data of the upstream sensor is matched with that of the downstream sensor in the sub-scanning direction, and the displacement between the sensors is corrected.

【0012】補正の内容は、複数のセンサ間の位置ずれ
の補正を目的とし、上流のセンサのデータの遅延量と、
1ラインに満たない遅延に対してはその前後のデータの
重み付け平均を取っている。ここで行われている補正
は、最も下流のセンサに対して上流のセンサのデータを
合わせるという補正で、センサ間のずれによる色ズレを
防止するようにしている。
The purpose of the correction is to correct the positional deviation between the plurality of sensors, and the amount of delay of the data of the upstream sensor is calculated.
For a delay less than one line, a weighted average of the data before and after the delay is taken. The correction performed here is a correction of matching data of the upstream sensor with the sensor of the most downstream, so as to prevent a color shift due to a shift between the sensors.

【0013】この従来技術においては、副走査方向の走
査速度の検出を駆動モータの回転から検出しているが、
平面の上に置かれた原稿を走査して読み取る形式の読取
装置では、モータの回転運動を直線運動に変換する機構
が必要であり、それゆえ当該機構に起因する速度むらの
発生を完全に除去することはできない。また、モータの
回転むらとキャリッジの移動速度むらは必ずしも一致す
るものではないので、走査速度を正確に検出することが
できず、その結果、前記従来技術における速度データは
ライン間の位置ズレを補正するデータとして必ずしもふ
さわしくない場合もある。
In this prior art, the detection of the scanning speed in the sub-scanning direction is detected from the rotation of the drive motor.
A scanning device that scans and reads a document placed on a flat surface requires a mechanism that converts the rotational motion of the motor into a linear motion, and thus completely eliminates the occurrence of uneven speed caused by the mechanism. I can't. Further, since the unevenness of the rotation of the motor and the unevenness of the moving speed of the carriage do not always coincide with each other, the scanning speed cannot be accurately detected. As a result, the speed data in the prior art corrects the positional deviation between the lines. In some cases, the data may not always be appropriate.

【0014】さらに、上記従来の読取装置では、下流の
センサに対して上流のセンサのデータを合わせるので、
勿論、最下流のセンサから得られるデータに対して補正
する必要はない。ここで、補正を行わない最下流のセン
サから得られるデータに着目すると、読み取り走査速度
が変動した場合には一定速度で走査して読み取る場合に
比べると原稿上の読み取り位置がずれることになり、結
果として速度変動に伴う画像の伸び縮みが起きるという
問題点がある。
Further, in the above-mentioned conventional reading apparatus, data of an upstream sensor is matched with that of a downstream sensor.
Of course, there is no need to correct the data obtained from the most downstream sensor. Here, paying attention to the data obtained from the most downstream sensor that does not perform correction, the reading position on the document is shifted when the reading scanning speed fluctuates as compared with the case of scanning and reading at a constant speed, As a result, there is a problem that the image expands and contracts due to the speed fluctuation.

【0015】すなわち、上記従来の読取装置では、この
伸び縮みが生じるデータに対して上流のセンサのデータ
を補正しているので、結果として色ずれは防止できてい
ることになるが、カラー画像全体としては走査速度の変
動に伴う画像の伸び縮みを防止することができず、本来
の画素との位置ずれは残ることになる。また、この従来
の読取装置では、複数のラインセンサの間隔が変化しな
いものとして補正基準としているので、1つのセンサの
みを有する読取装置には適用することができない。
That is, in the above-described conventional reading apparatus, since the data of the upstream sensor is corrected with respect to the data in which the expansion and contraction occurs, the color shift can be prevented as a result. However, it is impossible to prevent the expansion and contraction of the image due to the fluctuation of the scanning speed, and the positional deviation from the original pixel remains. Further, in this conventional reading device, since the interval between a plurality of line sensors does not change and is used as a correction reference, it cannot be applied to a reading device having only one sensor.

【0016】一方、昨今のように高画質化が進むにつ
れ、読取装置も600DPI程度の高密度なものが一般
化してきている。このような高画質化に伴って、ジター
や画素ズレのような画像異常がすぐに問題になるので、
読取装置の機構は、ますます高精度化が要求され、読取
装置自体も高価なものとなっている。
On the other hand, as image quality has advanced as recently, a reading device having a high density of about 600 DPI has become common. With such high image quality, image abnormalities such as jitter and pixel shift immediately become a problem.
The reading device mechanism is required to be more and more precise, and the reading device itself is also expensive.

【0017】本発明はこのような従来技術の実情に鑑み
てなされたもので、その第1の目的は、原稿をビットマ
ップ形式で読み取る画像読取装置の画素の位置誤差を簡
単な演算処理で高精度に測定し、その測定結果に基づい
て補正することによって、低コストで異常画像の発生を
防止することができる画像読取装置を提供することにあ
る。
The present invention has been made in view of such a situation of the prior art, and a first object of the present invention is to provide a simple arithmetic processing method which can reduce positional errors of pixels of an image reading apparatus which reads an original in a bitmap format. It is an object of the present invention to provide an image reading apparatus capable of preventing occurrence of an abnormal image at low cost by measuring with high accuracy and correcting based on the measurement result.

【0018】第2の目的は、斜線パターンを装置側で用
意する必要のない、低コストの画像読取装置を提供する
ことにある。
A second object of the present invention is to provide a low-cost image reading apparatus which does not need to prepare an oblique line pattern on the apparatus side.

【0019】第3の目的は、画像処理実施に補正が容易
に行える画像読取装置を提供することにある。
It is a third object of the present invention to provide an image reading apparatus which can easily correct image processing.

【0020】[0020]

【課題を解決するための手段】上記目的を達成するため
に、第1の手段は、原稿を自動的にコンタクトガラス上
に給送する原稿給送手段と、給送された原稿をあらかじ
め設定された一定の時間間隔で線順次に走査して原稿画
像を読み取る読取手段とを有する画像読取装置におい
て、読取原稿には、あらかじめ走査方向に対して一定の
傾きを有する線を等ピッチで並べて構成した斜線パター
ンを印字しておき、前記読取手段には、前記原稿給送手
段によって給送された原稿に印字された前記斜線パター
ンを光学的に読み取って電気信号に変換する手段と、こ
の変換する手段によって電気信号に変換された前記斜線
パターンの画像データにウィンドウを設定して、ウィン
ドウ内の画像データの重心を計算する手段と、この重心
を計算する手段に計算された重心の値に応じてウィンド
ウを移動させる手段と、前記重心を計算する手段によっ
て計算された重心の値から画素の位置誤差を測定する手
段とを設けたことを特徴としている。
In order to achieve the above object, a first means comprises a document feeding means for automatically feeding a document onto a contact glass, and a means for setting a fed document in advance. And a reading means for reading a document image by scanning line-sequentially at a constant time interval, wherein a line having a certain inclination with respect to the scanning direction is arranged in advance on the read document at an equal pitch. Means for printing a diagonal pattern in advance, and means for reading the diagonal pattern printed on the original fed by the original feeding means and converting the optical pattern into an electric signal; A window is set in the image data of the diagonal pattern converted into an electric signal by the above, and a means for calculating the center of gravity of the image data in the window and a means for calculating the center of gravity are calculated. Depending on the value of the center of gravity is a means for moving the window, characterized in that a means for measuring a position error of the pixel from the calculated center of gravity values by means for calculating the center of gravity.

【0021】第2の手段は、第1の手段における読取原
稿に印字された等ピッチの斜線パターンは、インチ単位
を基準とするピッチに設定されていることを特徴として
いる。
The second means is characterized in that the uniform pitch oblique line pattern printed on the read original in the first means is set at a pitch based on inches.

【0022】第3の手段は、第1および第2の手段にお
いて、前記斜線パターンは用紙の外縁から1インチの範
囲内に印字されていることを特徴としている。
According to a third means, in the first and second means, the diagonal line pattern is printed within a range of one inch from the outer edge of the sheet.

【0023】[0023]

【発明の実施の形態】以下、図面を参照し、本発明の実
施の形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0024】1.画像読取装置の概略構成 図2に本発明の実施形態に係るADFを備えた画像読取
装置の概略構成を示す。同図において、コンタクトガラ
ス1は筐体2により支持され、ブック原稿などの原稿を
固定して読み取る場合には、原稿を読取面を下にしてコ
ンタクトガラス上に載置される。コンタクトガラス上の
原稿は照明ランプ18とリフレクタ19の反射光によっ
て照明され、読取面の反射光が第1ミラー3、一体に構
成された第2および第3ミラー20,21で順次反射さ
れ、次いで、レンズ22によって光電変換装置上のライ
ン状に並べられた光電変換素子(CCD)23の受光面
に結像され、光学的に読み取った画像を電気信号に変換
する。第1ミラー3、照明ランプ18、第2ミラー20
および第3ミラー21は、図示しない走行体駆動モータ
を駆動源として図示A方向に移動するように構成されて
いる。
1. Schematic Configuration of Image Reading Apparatus FIG. 2 shows a schematic configuration of an image reading apparatus including an ADF according to an embodiment of the present invention. In FIG. 1, a contact glass 1 is supported by a housing 2, and when an original such as a book original is fixedly read, the original is placed on the contact glass with the reading surface down. The original on the contact glass is illuminated by the reflected light of the illumination lamp 18 and the reflector 19, and the reflected light of the reading surface is sequentially reflected by the first mirror 3, the second and third mirrors 20 and 21 integrally formed, and then. An image is formed on a light receiving surface of a photoelectric conversion element (CCD) 23 arranged in a line on the photoelectric conversion device by a lens 22, and the optically read image is converted into an electric signal. First mirror 3, illumination lamp 18, second mirror 20
The third mirror 21 is configured to move in the illustrated A direction using a traveling body drive motor (not illustrated) as a drive source.

【0025】自動給紙される原稿を読み取る場合には、
原稿トレイ12に載置された原稿Pは、通常の読み取り
動作では、ピックアップローラ13、レジストローラ対
31,32、搬送ドラム15、および搬送ローラ4によ
って読み取り位置Bを経て、排紙ローラ対25に送り込
まれ、排紙トレイ26上に排出される。原稿は読み取り
位置Bを通過する際に、読み取り位置B近傍に移動して
いる照明ランプ18とリフレクタ19の反射光によって
照明され、原稿に照射された照明光の反射光が第1ミラ
ー3、第2ミラー20および第3ミラー21で走査され
る。その後、反射光はレンズ22によって集光されて光
電変換素子(CCD)23に照射され、当該光電変換素
子23によって光電変換される。
When reading an automatically fed document,
In a normal reading operation, the document P placed on the document tray 12 passes through a reading position B by a pickup roller 13, a pair of registration rollers 31, 32, a transport drum 15, and a transport roller 4, and then to a discharge roller pair 25. The paper is sent and discharged onto the paper discharge tray 26. When the document passes the reading position B, the document is illuminated by the reflected light of the illumination lamp 18 and the reflector 19 which are moving near the reading position B, and the reflected light of the illumination light applied to the document is reflected by the first mirror 3, Scanning is performed by the second mirror 20 and the third mirror 21. After that, the reflected light is condensed by the lens 22 and irradiated to the photoelectric conversion element (CCD) 23, where the reflected light is photoelectrically converted.

【0026】なお、図2においては、コンタクトガラス
1、筐体2、照明ランプ18、リフレクタ19、第1ミ
ラー3、第2ミラー20、第3ミラー21、レンズ2
2、光電変換素子(CCD)23および走行体駆動モー
タによってスキャナ(画像読取装置本体)100が構成
され、原稿トレイ12、ピックアップローラ13、レジ
ストローラ対31,32、搬送ドラム15、排紙ローラ
対25および排紙トレイ26によって自動原稿給送装置
(ADF)200が構成されている。
In FIG. 2, the contact glass 1, the housing 2, the illumination lamp 18, the reflector 19, the first mirror 3, the second mirror 20, the third mirror 21, and the lens 2 are shown.
2. A scanner (image reading apparatus main body) 100 is configured by a photoelectric conversion element (CCD) 23 and a traveling body drive motor, and includes a document tray 12, a pickup roller 13, pairs of registration rollers 31, 32, a transport drum 15, and a pair of discharge rollers. An automatic document feeder (ADF) 200 is constituted by the paper feed tray 25 and the paper discharge tray 26.

【0027】また、図3に前記自動原稿給送装置(AD
F)200によって給送され、スキャナ100によって
読みとられる原稿300のフォーマットを示す。このフ
ォーマットから分かるように、原稿300の外縁301
から1インチの範囲内に、図4の拡大図に示すような例
えば45゜の斜線パターン10が等間隔で印字されてい
る。なお、各斜線10aはインチを基準としたピッチL
で形成されている。なお、原稿300の外周すべてに斜
線パターン10が印字されていれば、読み取り方向は紙
の送り方向に対して縦送りでも横送りでも良いことにな
る。
FIG. 3 shows the automatic document feeder (AD
F) shows the format of the document 300 fed by the scanner 200 and read by the scanner 100. As can be seen from this format, the outer edge 301 of the original 300
For example, a 45 ° oblique line pattern 10 as shown in the enlarged view of FIG. Each oblique line 10a represents a pitch L based on inches.
It is formed with. If the oblique line pattern 10 is printed on the entire outer periphery of the document 300, the reading direction may be vertical or horizontal with respect to the paper feeding direction.

【0028】この斜線パターン10は0.5インチピッ
チの場合、300DPI読み込みでは、斜線間のDPI
は150ドットの読み込みとなる。1インチなら300
ドットとなり、画像の伸びや縮みを補正する目安とな
る。また、他のDPIの場合でも同様の考えで読み込み
ドット数が設定できる。
When the oblique line pattern 10 has a pitch of 0.5 inch, when reading 300 DPI, the DPI between the oblique lines
Means reading 150 dots. 300 for 1 inch
It becomes a dot, and serves as a standard for correcting expansion and contraction of an image. The read dot number can be set for other DPIs in the same way.

【0029】なお、図2では、所定の方向に平行に斜線
パターン10を形成しているが、図3のように交差する
ように形成しておけば、ユーザによって斜線10aのみ
の場合よりも違和感が軽減される。その他、斜線パター
ン10としては種々のパターンが利用でき、位置誤差の
測定のためには、どのようなパターンであれ、読み取る
ことができる斜線のパターンが設けられていればよい。
また、原稿300としての画像領域302は、前記斜線
パターン10を形成した領域の内側、言い換えれば前記
原稿300の外縁301から1インチ以上原稿の内側に
入った領域となる。
In FIG. 2, the oblique line pattern 10 is formed in parallel to a predetermined direction. However, if the oblique line pattern 10 is formed so as to intersect as shown in FIG. 3, the user feels more uncomfortable than when only the oblique line 10a is used. Is reduced. In addition, various patterns can be used as the oblique line pattern 10, and any pattern can be used as long as a readable oblique line pattern is provided for measuring the position error.
The image area 302 as the original 300 is an area inside the area where the oblique line pattern 10 is formed, in other words, an area that is one inch or more inside the original from the outer edge 301 of the original 300.

【0030】2.システム構成 図1に本発明の実施形態に係る画像読取装置に組み込ま
れる位置誤差測定装置のシステム構成を示す。なお、こ
の位置誤差測定装置は画像読取装置への付加機能として
組み込まれ、リアルタイムで画素の位置誤差を測定する
ものである。
2. 1. System Configuration FIG. 1 shows a system configuration of a position error measuring device incorporated in an image reading device according to an embodiment of the present invention. The position error measuring device is incorporated as an additional function to the image reading device, and measures a position error of a pixel in real time.

【0031】すなわち、位置画素測定装置は、光電変換
部101と、A/D変換部102と、シェーディング補
正部103と、斜線判別部104と、位置誤差測定部1
05と、位置誤差測定部106と、制御部107とから
構成されている。光電変換部101は、この実施形態で
はラインCCDからなり、読み取った画像が電気信号に
変換される。電気信号に変換された画像はA/D変換部
102でデジタルの多値の画像データに変換される。変
換されたデータは照明の不均一さ、レンズの周辺光量の
低下、光電変換部101の画素間の感度の違いなどをシ
ェーディング補正部103で補正され、補正されたデー
タは斜線判別部104に入力される。斜線判別部104
では、画像データの斜線パターン部分を判別し、その判
別結果を制御部107に出力する。また、画像データは
位置誤差測定部105に入力され、測定結果の誤差信号
を位置誤差補正部106に出力する。位置誤差補正部1
06では、画像データと位置誤差データである誤差信号
から位置誤差を補正した画像データを生成し、ビデオ信
号として出力する。なお、各部(101〜106)は制
御部107によってそれぞれタイミングの制御、動作条
件の設定などがなされ、相互に関連して動作するように
なっている。
That is, the position pixel measuring device includes a photoelectric conversion unit 101, an A / D conversion unit 102, a shading correction unit 103, a diagonal line discrimination unit 104, and a position error measurement unit 1.
05, a position error measuring unit 106, and a control unit 107. In this embodiment, the photoelectric conversion unit 101 includes a line CCD, and converts a read image into an electric signal. The image converted into the electric signal is converted by the A / D converter 102 into digital multi-valued image data. The converted data is corrected by the shading correction unit 103 for unevenness of illumination, a decrease in the amount of light around the lens, a difference in sensitivity between pixels of the photoelectric conversion unit 101, and the corrected data is input to the oblique line determination unit 104. Is done. Oblique line determination unit 104
Then, the oblique line pattern portion of the image data is determined, and the determination result is output to the control unit 107. Further, the image data is input to the position error measurement unit 105, and an error signal of the measurement result is output to the position error correction unit 106. Position error correction unit 1
In step 06, image data in which a position error has been corrected is generated from the image data and an error signal which is position error data, and is output as a video signal. The respective units (101 to 106) are controlled by the control unit 107 to control timing, set operating conditions, and the like, and operate in association with each other.

【0032】3.測定原理 引き続き、位置誤差測定部における読取誤差の測定原理
について説明する。
3. Measurement Principle Next, the measurement principle of the reading error in the position error measurement unit will be described.

【0033】まず、位置誤差を測定する処理は以下のよ
うになる。図5の矢印で示す主走査方向は、ラインCC
D7が線順次で同時に読み取る1ラインの画素の並び
と、この並列データを直列データに変換したときの時間
軸上の順序を示している。また、矢印で示す副走査方向
は、主走査方向の1ラインを読み取る範囲を順次移動さ
せながら読み取る方向を示している。なお、移動手段と
しては図2に示すようにADF100で送られた原稿を
コンタクトガラス1の所定位置に固定して走査光学系を
移動させる形式の他に、走査光学系を固定して原稿を移
動させる形式がある。
First, the processing for measuring the position error is as follows. The main scanning direction indicated by the arrow in FIG.
D7 indicates an arrangement of pixels of one line to be read simultaneously in a line-sequential manner, and an order on the time axis when the parallel data is converted to serial data. The sub-scanning direction indicated by an arrow indicates a reading direction while sequentially moving the reading range of one line in the main scanning direction. As a moving means, as shown in FIG. 2, in addition to a method in which the original sent by the ADF 100 is fixed at a predetermined position on the contact glass 1 and the scanning optical system is moved, the original is moved while the scanning optical system is fixed. There is a format to make it.

【0034】図5において主走査方向と副走査方向の各
平行な線により囲まれた4角形領域を画素とすると、こ
の画素により構成される平面は、原稿の画像を電気信号
に変換した場合に原稿画像の写像がそのまま並んでいる
という形で捉えることができる。なお、これはビットマ
ップということもある。このデータはラインCCD7か
らリアルタイムで出力される時には主走査方向、副走査
方向が時間的な順序を有するが、メモリに取り込んだ状
態ではそれぞれの画素を任意にアクセスすることができ
るので、主走査方向、副走査方向、時間の順序にとらわ
れないで扱うことができる。
In FIG. 5, if a rectangular area surrounded by parallel lines in the main scanning direction and the sub-scanning direction is defined as a pixel, a plane formed by the pixel is used when an original image is converted into an electric signal. It can be understood that the mappings of the original images are arranged as they are. This may be called a bitmap. When this data is output from the line CCD 7 in real time, the main scanning direction and the sub-scanning direction have a chronological order, but each pixel can be arbitrarily accessed in the state of being stored in the memory. , Sub-scanning direction, and time.

【0035】図5はまた、主走査方向、副走査方向の画
素サイズが等しい場合において、副走査方向の走査速度
が変動しないときの45°の斜線LNの読み取りデータ
aと、走査速度が変動するときの読み取りデータbをビ
ットマップに対応させて示している。すなわち、読み取
りデータaは副走査方向の読み取りタイミングを制御す
るクロックに対応する所定の一定速度で走査したときを
示し、ビットマップとしても45°の斜線像である。
FIG. 5 also shows that, when the pixel size in the main scanning direction and the sub-scanning direction is the same, the read data a of the 45 ° oblique line LN when the scanning speed in the sub-scanning direction does not change, and the scanning speed changes. The read data b at the time is shown in correspondence with the bit map. That is, the read data a indicates a time when scanning is performed at a predetermined constant speed corresponding to a clock for controlling the read timing in the sub-scanning direction, and is a 45 ° oblique line image as a bit map.

【0036】これに対し、読み取りデータbは走査速度
の変動に応じて傾きが異なる。副走査方向の区間A−B
は走査速度が「0」のときを示し、この場合には副走査
方向の読み取りタイミングを制御するクロックによりビ
ットマップのアドレスが進んでも読み取り位置が変わら
ないので、副走査方向に平行な線となる。また、区間B
−Cは走査速度が所定速度の1/2のときを示し、この
場合にはビットマップのアドレスが進んでもその半分し
か進まない位置の画像を読み取るのでその読み取り画像
の角度は約26.57°(tan θ=0.5)である。区
間C−Dは所定速度で走査しているときを示し、45°
の角度が得られる。D以降の区間は走査速度が所定速度
の1.5倍の場合を示し、その角度は約56.31°で
ある。
On the other hand, the inclination of the read data b varies depending on the fluctuation of the scanning speed. Section AB in the sub-scanning direction
Indicates that the scanning speed is "0". In this case, since the reading position does not change even if the address of the bitmap advances by the clock for controlling the reading timing in the sub-scanning direction, the line becomes a line parallel to the sub-scanning direction. . Section B
-C indicates the case where the scanning speed is 1/2 of the predetermined speed. In this case, even if the address of the bit map advances, an image at a position where only half of the address advances is read, so that the angle of the read image is about 26.57 °. (Tan θ = 0.5). Section CD shows when scanning at a predetermined speed, and is 45 °.
Is obtained. The section after D shows the case where the scanning speed is 1.5 times the predetermined speed, and the angle is about 56.31 °.

【0037】したがって、走査速度が変動すると像の傾
きが異なることを測定原理として、言い換えれば斜線の
主走査方向への移動量が副走査方向に移動速度に対応す
ることを測定原理として、副走査方向の走査速度のむら
と、ミラー3〜5、レンズ6、光電変換部(CCD)7
の振動などに起因するビットマップ画像の画素の位置誤
差を測定することができる。
Therefore, the sub-scanning principle is based on the principle that the inclination of the image changes when the scanning speed fluctuates. Scanning speed unevenness, mirrors 3 to 5, lens 6, photoelectric conversion unit (CCD) 7
It is possible to measure the position error of the pixel of the bitmap image caused by the vibration of the image.

【0038】なお、図5では正方形の画素を示したが、
画素が正方形ではなく、例えば主走査方向の分解能が4
00dpi、副走査方向の分解能が600dpiのよう
な画素にも適用することができる。また、45°以外の
斜線を用いても同様に、斜線画像の主走査方向への移動
量が副走査方向の読み取り速度に依存するという関係が
成立するので、画素の位置誤差を計測することができ
る。
Although FIG. 5 shows a square pixel,
The pixels are not square, for example, the resolution in the main scanning direction is 4
The present invention can be applied to a pixel having a resolution of 00 dpi and a resolution of 600 dpi in the sub-scanning direction. Similarly, even if a diagonal line other than 45 ° is used, the relationship that the amount of movement of the diagonal line image in the main scanning direction depends on the reading speed in the sub-scanning direction is established. it can.

【0039】4.斜線パターン判別処理 次に、斜線判別部における斜線パターン判別処理につい
て説明する。図6は図5と同様にビットマップに斜線が
有る場合を示し、図7はその場合の8ビット(0〜25
5)の読み取り値を示している。なお、0=白、255
=黒であり、主走査方向の座標をXn、副走査方向の座
標をYmとしている。また、図8は主走査方向3画素×
副走査方向3画素の斜線パターン検知用ウィンドウを示
し、図8(a)〜(e)はそれぞれ主走査方向に1画素
ずつシフトしたウィンドウを示している。
4. Oblique Line Pattern Determination Process Next, the oblique line pattern determination process in the oblique line determination unit will be described. FIG. 6 shows a case where the bit map has diagonal lines as in FIG. 5, and FIG.
5) shows the read value. Note that 0 = white, 255
= Black, coordinates in the main scanning direction are Xn, and coordinates in the sub-scanning direction are Ym. FIG. 8 shows three pixels in the main scanning direction.
8 (a) to 8 (e) show windows shifted one pixel at a time in the main scanning direction.

【0040】ここで、図8(a)に示すウィンドウ(X
2〜X4、Y1〜3)内の中心画素の挟む対角方向、す
なわち中心画素を含む左上斜め方向の3つの画素値の和
Paと右下斜め方向の3つの画素値の和Qaを計算する
と、 Pa=(X2,Y1)+(X3,Y1)+(X2,Y2) =3+1+1=5 Qa=(X4,Y2)+(X3,Y3)+(X4,Y3) =3+4+8=15 となる。
Here, the window (X) shown in FIG.
2 to X4, Y1 to 3), the sum Pa of the three pixel values in the diagonal direction sandwiching the center pixel in the diagonal direction, that is, the upper left diagonal direction including the center pixel, and the sum Qa of the three pixel values in the lower right diagonal direction are calculated. Pa = (X2, Y1) + (X3, Y1) + (X2, Y2) = 3 + 1 + 1 = 5 Qa = (X4, Y2) + (X3, Y3) + (X4, Y3) = 3 + 4 + 8 = 15

【0041】同様に、図8(b)〜(e)について求め
ると、 Pb=(X3,Y1)+(X4,Y1)+(X3,Y2) =1+4+2=7 Qb=(X5,Y2)+(X4,Y3)+(X5,Y3) =13+8+201=222 Pc=(X4,Y1)+(X5,Y1)+(X4,Y2) =4+2+3=9 Qc=(X6,Y2)+(X5,Y3)+(X6,Y3) =216+201+250=667 Pd=(X5,Y1)+(X6,Y1)+(X5,Y2) =2+18+13=33 Qd=(X7,Y2)+(X6,Y3)+(X7,Y3) =248+250+252=750 Pe=(X6,Y1)+(X7,Y1)+(X6,Y2) =18+220+216=454 Qe=(X8,Y2)+(X7,Y3)+(X8,Y3) =250+252+249=751 となる。
Similarly, with respect to FIGS. 8B to 8E, Pb = (X3, Y1) + (X4, Y1) + (X3, Y2) = 1 + 4 + 2 = 7 Qb = (X5, Y2) + (X4, Y3) + (X5, Y3) = 13 + 8 + 201 = 222 Pc = (X4, Y1) + (X5, Y1) + (X4, Y2) = 4 + 2 + 3 = 9 Qc = (X6, Y2) + (X5, Y3) ) + (X6, Y3) = 216 + 201 + 250 = 667 Pd = (X5, Y1) + (X6, Y1) + (X5, Y2) = 2 + 18 + 13 = 33 Qd = (X7, Y2) + (X6, Y3) + (X7) , Y3) = 248 + 250 + 252 = 750 Pe = (X6, Y1) + (X7, Y1) + (X6, Y2) = 18 + 220 + 216 = 454 Qe = (X8, Y2) + (X7, Y3) + (X8, Y3) = 250+ 252 + 249 = 751.

【0042】次に、中心画素と右下斜め方向の3画素
(中心画素を含む)の差Rを求めると、 Ra=15−5=10 Rb=222−7=215 Rc=667−9=658 Rd=750−33=717 Re=751−454=297 となる。
Next, when the difference R between the center pixel and the three pixels (including the center pixel) in the lower right diagonal direction is calculated, Ra = 15-5 = 10 Rb = 222-7 = 215 Rc = 667-9 = 658 Rd = 750-33 = 717 Re = 751-454 = 297

【0043】この差Rの値が大きい場合に3×3画素の
ウィンドウ内に斜線パターンが有ることを示す。したが
って、例えばRの値が500以上の場合に斜線パターン
が有ると判断すれば図8(c),(d)に示すウィンド
ウ内に斜線パターンが有ると判断することができる。
When the value of the difference R is large, it indicates that there is an oblique line pattern in the window of 3 × 3 pixels. Therefore, for example, when it is determined that the oblique line pattern exists when the value of R is 500 or more, it can be determined that the oblique line pattern exists in the windows shown in FIGS. 8C and 8D.

【0044】次に、図9を参照して他の斜線パターン判
別処理を説明する。図9(a)〜(e)はそれぞれ図9
(a)〜(e)に示すウィンドウ内の各値を閾値=12
8で2値化した場合を示し、同様に各ウィンドウ内の中
心画素を含む左上斜め方向の3つの画素値の和Pa〜P
eと右下斜め方向の3つの画素値の和Qa〜Qeを計算
すると、 Pa=(X2,Y1)+(X3,Y1)+(X2,Y2) =0+0+0=0 Qa=(X4,Y2)+(X3,Y3)+(X4,Y3) =0+0+0=0 Pb=(X3,Y1)+(X4,Y1)+(X3,Y2) =0+0+0=0 Qb=(X5,Y2)+(X4,Y3)+(X5,Y3) =0+0+1=1 Pc=(X4,Y1)+(X5,Y1)+(X4,Y2) =0+0+0=0 Qc=(X6,Y2)+(X5,Y3)+(X6,Y3) =1+1+1=3 Pd=(X5,Y1)+(X6,Y1)+(X5,Y2) =0+0+0=0 Qd=(X7,Y2)+(X6,Y3)+(X7,Y3) =1+1+1=3 Pe=(X6,Y1)+(X7,Y1)+(X6,Y2) =0+1+1=2 Qe=(X8,Y2)+(X7,Y3)+(X8,Y3) =1+1+1=3 となる。
Next, another oblique line pattern discriminating process will be described with reference to FIG. 9 (a) to 9 (e) respectively show FIG.
Each value in the windows shown in FIGS.
8 shows a case where binarization is performed, and similarly, sums Pa to P of three pixel values in the upper left diagonal direction including the center pixel in each window.
Calculating the sum Qa to Qe of e and three pixel values in the lower right diagonal direction, Pa = (X2, Y1) + (X3, Y1) + (X2, Y2) = 0 + 0 + 0 = 0 Qa = (X4, Y2) + (X3, Y3) + (X4, Y3) = 0 + 0 + 0 = 0 Pb = (X3, Y1) + (X4, Y1) + (X3, Y2) = 0 + 0 + 0 = 0 Qb = (X5, Y2) + (X4 Y3) + (X5, Y3) = 0 + 0 + 1 = 1 Pc = (X4, Y1) + (X5, Y1) + (X4, Y2) = 0 + 0 + 0 = 0 Qc = (X6, Y2) + (X5, Y3) + ( X6, Y3) = 1 + 1 + 1 = 3 Pd = (X5, Y1) + (X6, Y1) + (X5, Y2) = 0 + 0 + 0 = 0 Qd = (X7, Y2) + (X6, Y3) + (X7, Y3) = 1 + 1 + 1 = 3 Pe = (X6, Y1) + (X7, Y1) + (X6, Y2) 0 + 1 + 1 = 2 Qe = (X8, Y2) + (X7, Y3) + (X8, Y3) = 1 + 1 + 1 = 3.

【0045】次に、中心画素と右下斜め方向3画素(中
心画素を含む)の差Ra〜Reを求めると、 Ra=0−0=0 Rb=1−0=1 Rc=3−0=3 Rd=3−0=3 Re=3−2=1 となる。
Next, the differences Ra to Re between the center pixel and the three pixels in the lower right diagonal direction (including the center pixel) are obtained. Ra = 0-0 = 0 Rb = 1-0 = 1 Rc = 3-0 = 3 Rd = 3-0 = 3 Re = 3-2 = 1

【0046】したがって、この場合にも同様にこの差R
の値が大きい場合に3×3画素のウィンドウ内に斜線パ
ターンが有ることを示し、例えばRa〜Reの値が2以
上の場合に斜線パターンが有ると判断すれば図9
(c), (d)に示すウィンドウ内に斜線パターンが有
ると判断することができる。また、このように画素値を
2値化することにより、加算演算を簡単にすることがで
きる。
Therefore, also in this case, the difference R
Is large in the window of 3 × 3 pixels. For example, when it is determined that the value of Ra to Re is 2 or more, it is determined that there is a diagonal pattern.
It can be determined that there is an oblique line pattern in the windows shown in (c) and (d). Further, by binarizing the pixel value in this way, the addition operation can be simplified.

【0047】図10(a)〜(d)は斜線パターン検出
用のマッチングパターンを示し、図中の白領域は
「0」、黒領域は「1」を表している。先ず、画像デー
タを図9に示すように2値化し、その2値化データと図
10(a)〜(d)に示すマッチングパターンを比較
し、合致した場合に斜線パターンがあると判断する。こ
の例では、図9(c)と図10(b)、及び図9(d)
と図10(a)が合致しており、このウィンドウ内に斜
線パターンがあると判断される。
FIGS. 10A to 10D show matching patterns for oblique line pattern detection, in which white areas represent "0" and black areas represent "1". First, the image data is binarized as shown in FIG. 9, and the binarized data is compared with the matching patterns shown in FIGS. 10 (a) to 10 (d). In this example, FIG. 9 (c), FIG. 10 (b), and FIG. 9 (d)
And FIG. 10A, and it is determined that there is an oblique line pattern in this window.

【0048】なお、上記実施形態では、ウィンドウの大
きさを3×3としたが、もちろんウィンドウサイズが異
なる場合にも同様な判断方法により斜線パターンを検知
することができる。但し、一般にウィンドウサイズが大
きい程、判別制度は上がるが、その分処理時間が長くな
り、また回路規模も大きくなる。
In the above embodiment, the size of the window is set to 3 × 3. Obviously, even when the window size is different, a diagonal pattern can be detected by a similar determination method. In general, the larger the window size, the higher the discrimination system, but the longer the processing time and the larger the circuit scale.

【0049】5.位置誤差の測定処理 次に、位置誤差測定部における位置誤差の測定処理につ
いて説明する。図11は図5に示すビットマップにおけ
る複数個の斜線(図では3本の斜線K1 〜K3)を示
し、また、この複数個の斜線を用いて位置誤差を測定す
るための10×3のサイズのウィンドウWを示してい
る。先ず、ウィンドウW内のデータ位置を求めるために
主走査方向の重心を演算し、以下、斜線K2に対するW
1 →W2 →W3 のようにウィンドウWを斜め左下45°
の方向に1画素ずつシフトする。そして、斜線K2の最
後のウィンドウWn に到達すると、ウィンドウWを主走
査方向のみに移動させて次の斜線K3のウィンドウWn+
1 に移動させる。
5. Position Error Measurement Processing Next, position error measurement processing in the position error measurement unit will be described. FIG. 11 shows a plurality of oblique lines (three oblique lines K1 to K3 in the figure) in the bit map shown in FIG. 5, and a size of 10.times.3 for measuring a position error using the plurality of oblique lines. Is shown in FIG. First, the center of gravity in the main scanning direction is calculated to obtain the data position in the window W.
Window W 45 ° diagonally lower left like 1 → W2 → W3
Is shifted one pixel at a time. When the last window Wn of the oblique line K2 is reached, the window W is moved only in the main scanning direction, and the window Wn + of the next oblique line K3 is moved.
Move to 1.

【0050】ここで、重心の主走査方向の位置は、45
°の斜線の場合、画素の位置が何らかの誤差要因により
移動することがなければ、図のようにウィンドウWをシ
フトさせると主走査方向に1画素ずつ移動する筈であ
る。また、画素の移動量が1画素分でない場合には、何
らかの原因により画素の位置が変動したことになり、し
たがって、位置誤差を求めることができる。位置誤差の
主要な要因が副走査方向の走査速度のむらによることが
分かっている場合には、位置誤差のデータから速度むら
にデータを変換することは容易である。
Here, the position of the center of gravity in the main scanning direction is 45
In the case of the oblique line of °, if the position of the pixel does not move due to some error factor, if the window W is shifted as shown in the figure, it should move one pixel at a time in the main scanning direction. If the movement amount of the pixel is not one pixel, the position of the pixel fluctuates for some reason, and therefore, a position error can be obtained. If it is known that the main factor of the position error is caused by the unevenness of the scanning speed in the sub-scanning direction, it is easy to convert the data of the position error to the uneven speed.

【0051】ここで、CCD固有のノイズを始めとして
様々なノイズが画像データに含まれているが、重心を求
めるために周辺の画素のデータを含む多数の画素のデー
タを用いているので、重心を求める過程でノイズの影響
を軽減してS/N比が高い測定が可能となる。この場
合、通常、ウィンドウの画素の数が多い程、S/N比が
高くなる。ウィンドウの形状は、主走査方向の重心を求
めるので主走査方向に大きいほうが望ましく、副走査方
向のサイズは1ラインでも測定可能である。
Here, various noises including noise unique to the CCD are included in the image data. However, since the data of a large number of pixels including the data of the peripheral pixels is used to obtain the center of gravity, the center of gravity is used. In the process of obtaining the value of, the effect of noise is reduced, and measurement with a high S / N ratio becomes possible. In this case, the S / N ratio generally increases as the number of pixels in the window increases. The shape of the window is desirably large in the main scanning direction because the center of gravity in the main scanning direction is obtained, and the size in the sub-scanning direction can be measured even for one line.

【0052】6.重心の測定処理 次に、重心の測定処理は、図12のフローチャートに示
す手順で行われる。
6. Center-of-gravity measurement process Next, the center-of-gravity measurement process is performed according to the procedure shown in the flowchart of FIG.

【0053】この処理は、原稿の走査開始と同時にスタ
ートし、先ず、主走査方向、副走査方向の各座標値X、
Yがイニシャライズ(X=0,Y=0)される(ステッ
プS1)。この座標値X、Yは斜線判別用の例えば3×
3のウィンドウ内のある画素位置例えば中心画素の座標
となる。次に、1本の斜線に対する測定回数を示す変数
iがイニシャライズ(i=0)される(ステップS
2)。
This processing is started at the same time as the start of the scanning of the original. First, each coordinate value X, X in the main scanning direction and the sub scanning direction is set.
Y is initialized (X = 0, Y = 0) (step S1). These coordinate values X and Y are, for example, 3 ×
The coordinates of a certain pixel position, for example, the center pixel in the window No. 3. Next, a variable i indicating the number of measurements for one oblique line is initialized (i = 0) (step S).
2).

【0054】次に位置誤差測定部105により斜線判別
用の3×3のウィンドウ内に斜線パターンが存在するか
否かが判断され(ステップS3)、無い場合にはその3
×3のウィンドウを主走査方向に1画素分シフト(X=
X+1)する(ステップS4)。なお、このシフト量は
ウィンドウの大きさ、斜線の太さに応じて決められ、1
画素以上でもよい。ステップS3において斜線パターン
が存在する場合には、重心測定用の例えば10×3のウ
ィンドウW1 を設定し、そのウィンドウW1 内の重心を
求める(ステップS5)。このとき、ウィンドウW1 の
大きさ、斜線の太さに応じて、斜線と判別された画素の
位置から主走査方向に整数画素分だけシフトし、斜線の
部分がウィンドウW1 の中心付近になるようにウィンド
ウW1 を設定してもよい。
Next, the position error measuring section 105 determines whether or not a diagonal line pattern exists in the 3 × 3 window for diagonal line determination (step S3).
The x3 window is shifted by one pixel in the main scanning direction (X =
X + 1) (step S4). Note that this shift amount is determined according to the size of the window and the thickness of the oblique line, and
Pixels or more may be used. If there is a diagonal pattern in step S3, a window W1 of, for example, 10.times.3 for measuring the center of gravity is set, and the center of gravity in the window W1 is obtained (step S5). At this time, in accordance with the size of the window W1 and the thickness of the diagonal line, the position of the pixel determined to be diagonal is shifted by an integer number of pixels in the main scanning direction so that the diagonal line is near the center of the window W1. Window W1 may be set.

【0055】重心の測定を終了すると、重心のズレを計
算し(ステップS6)、次いで主走査方向に−1画素
分、副走査方向に+1画素分シフトしたウィンドウW2
を設定し、また、測定回数用のカウント値iを1つイン
クリメントする(ステップS7)。なお、この実施形態
では、ウィンドウWを1画素ずつ移動させているが、画
素の位置誤差を起こす原因となる振動などの周波数帯域
が低い場合には、2画素以上ずつ移動させてもよく、こ
の方法により測定に要する時間を短縮することができ
る。
When the measurement of the center of gravity is completed, the displacement of the center of gravity is calculated (step S6), and then the window W2 shifted by -1 pixel in the main scanning direction and +1 pixel in the sub scanning direction.
Is set, and the count value i for the number of measurements is incremented by one (step S7). In this embodiment, the window W is moved one pixel at a time. However, if the frequency band such as vibration that causes a position error of the pixel is low, the window W may be moved two or more pixels. The time required for the measurement can be reduced by the method.

【0056】次いで、予め設定された同一ラインの測定
回数nに対してi=nとならない場合にはステップS8
からステップS5に戻り、他方、i=nとなった場合す
なわちウィンドウWn に達した場合には次の斜線のウィ
ンドウWn+1 に移動させる(ステップS8→S9)。そ
の方法としては、斜線の主走査方向の間隔に相当する画
素分より整数画素mだけ、ウィンドウ座標を主走査方向
にシフトした後、測定カウント値iをクリアし(ステッ
プS2)、斜線判別処理(ステップS3)に戻る。以下
同様に、1本の斜線に対してウィンドウWn+1 、Wn+2
、Wn+3 〜のように移動させて位置誤差を測定する。
Next, if i = n does not hold for the preset number of measurements n of the same line, step S8
Then, the process returns to step S5, and when i = n, that is, when the window Wn is reached, the window is moved to the next hatched window Wn + 1 (step S8 → S9). As the method, the window coordinate is shifted in the main scanning direction by an integer pixel m from the pixel corresponding to the interval of the diagonal lines in the main scanning direction, the measurement count value i is cleared (step S2), and the diagonal line discrimination processing ( It returns to step S3). Similarly, the window Wn + 1, Wn + 2 for one oblique line
, Wn + 3 to measure the position error.

【0057】このように複数の斜線を用いて位置誤差を
測定することにより、読取装置の読み取り範囲が縦長で
あっても、副走査領域の全域に渡って位置誤差を測定す
ることができる。更に、主走査方向の狭い幅だけ測定す
るので、主走査方向の中央部、手前、奥側のように分け
て測定することもできる。また、高い分解能で位置誤差
を測定する場合にも、斜線のパターンを細くする必要は
全くなく、システムのMTFの制約を受けずに幅が広い
パターンを用いることができる。
By measuring the position error using a plurality of oblique lines as described above, the position error can be measured over the entire sub-scanning area even if the reading range of the reading device is vertically long. Further, since the measurement is performed only in the narrow width in the main scanning direction, the measurement can be performed separately at the center, the front side, and the back side in the main scanning direction. Also, when measuring the position error with a high resolution, it is not necessary to make the hatched pattern thin, and a wide pattern can be used without being restricted by the MTF of the system.

【0058】更に、幅が広いパターンを用いた場合、幅
に応じてウィンドウも大きくなるので結果として測定精
度を向上させることができる。したがって、斜線の幅は
処理速度、リアルタイム処理を行う場合にはバッファの
サイズ、回路規模の経済性などとのバランスを考慮して
設定すればよい。また、幅が広いパターンを用いてその
片側のエッジを検出することにより位置誤差を測定する
ことができる。更に、例えば副走査方向の読み取りタイ
ミングに関係なく白黒パターンを副走査方向に配列する
とモアレの発生が問題となるが、本実施形態では副走査
方向の読み取りタイミングと斜線の関係は常に同じであ
るのでモアレの発生が問題とならず、その結果、高精度
で位置誤差を測定することができる。
Further, when a pattern having a wide width is used, the window becomes larger in accordance with the width, so that the measurement accuracy can be improved as a result. Therefore, the width of the diagonal line may be set in consideration of the balance between the processing speed, the size of the buffer when performing real-time processing, the economics of the circuit scale, and the like. Further, a position error can be measured by detecting an edge on one side using a wide pattern. Furthermore, for example, moiré is a problem when a black and white pattern is arranged in the sub-scanning direction regardless of the reading timing in the sub-scanning direction. The occurrence of moire is not a problem, and as a result, the position error can be measured with high accuracy.

【0059】7.ウィンドウデータと重心の計算 次に、ウィンドウのデータと重心の計算について詳細に
説明する。
7. Calculation of Window Data and Centroid Next, calculation of window data and centroid will be described in detail.

【0060】図13はウィンドウデータと斜線パターン
の各画素の読み取り値の関係を示し、読み取り値は8ビ
ットであって10進(0〜255)で示されている。主
走査方向の重心を求めるには、副走査方向の各列(3ラ
イン分)の和を求め、図に示すようにこれを左側からX
0〜X9として、それぞれ18、50、202、42
7、590、562、345、150、37、14が求
まる。そして、各画素の主走査方向の中心座標を左から
順に0〜9とし、主走査方向の重心位置をRmとする
と、重心位置Rmの回りのモーメントは0になるので、 X0(Rm−0)+X1(Rm−1)・・・+X9(R
m−9)=0 が成り立ち、数値を代入して計算するとRm=4.36
2が得られる。
FIG. 13 shows the relationship between the window data and the read value of each pixel of the oblique line pattern. The read value is 8 bits and is represented by a decimal number (0 to 255). In order to obtain the center of gravity in the main scanning direction, the sum of each column (for three lines) in the sub-scanning direction is obtained, and as shown in FIG.
18, 50, 202, 42 as 0 to X9, respectively
7, 590, 562, 345, 150, 37, and 14 are obtained. If the center coordinates of each pixel in the main scanning direction are 0 to 9 in order from the left, and the center of gravity in the main scanning direction is Rm, the moment around the center of gravity Rm is 0, so X0 (Rm-0) + X1 (Rm-1) ... + X9 (R
m-9) = 0, and Rm = 4.36 is obtained by substituting numerical values.
2 is obtained.

【0061】重心を求める理由は、補間などの前処理を
必要とせず、演算を簡素化、高速化することができるか
らである。また、画像位置を求める場合、各列毎のデー
タの和の並びから補間により所定の分解能のデータ列を
得て、そのデータからピーク値が存在する位置を求める
方法を用いることができる。
The reason for finding the center of gravity is that the calculation can be simplified and the speed can be increased without the need for preprocessing such as interpolation. Further, when obtaining the image position, a method of obtaining a data string of a predetermined resolution by interpolation from the arrangement of the sum of the data of each column and obtaining the position where the peak value exists from the data can be used.

【0062】8.チャートの重心の計算 次に、複数本の斜線から成るチャートの重心を計算する
場合について説明する。図11に示すように複数本から
成る斜線の重心を計算する場合、同一線上の線では問題
とならないが、違う線にウィンドウが移動したときには
移動前と移動後では斜線の主走査方向の間隔が丁度、整
数画素数でない限り重心の値が異なるので、補正しなけ
ればならない。一例として図11に示す斜線K2のウィ
ンドウWn の重心の値Rn が4.65となり、次の斜線
K3に移動した場合のウィンドウWn+1 の重心の値Rn+
1 が4.38、ウィンドウWn+2 の重心の値Rn+2 が
4.40、ウィンドウWn+3 の重心の値Rn+3 が4.4
1となった場合、ウィンドウが移動したラインにおける
重心の差ΔRを計算すると、 ΔR=Rn −Rn+1 =4.65−4.38=0.27 となる。
8. Calculation of Center of Gravity of Chart Next, a case of calculating the center of gravity of a chart composed of a plurality of oblique lines will be described. When calculating the barycenter of a plurality of diagonal lines as shown in FIG. 11, there is no problem with lines on the same line, but when the window moves to a different line, the distance between the diagonal lines in the main scanning direction before and after the movement is different. Since the value of the center of gravity is different unless the number of pixels is exactly an integer, it must be corrected. As an example, the value of the center of gravity Rn of the window Wn of the hatched line K2 shown in FIG. 11 is 4.65, and the value of the center of gravity Rn + of the window Wn + 1 when the window is moved to the next hatched line K3.
1 is 4.38, the value of the center of gravity Rn + 2 of the window Wn + 2 is 4.40, and the value of the center of gravity Rn + 3 of the window Wn + 3 is 4.4.
When it becomes 1, the difference ΔR of the center of gravity in the line where the window has moved is calculated as follows: ΔR = Rn−Rn + 1 = 4.65−4.38 = 0.27

【0063】この値ΔRを斜線K3の重心の値に加算
し、この加算結果を重心の値として位置誤差を求める。
この場合、ウィンドウWn+2 の重心の値Rn+2 、ウィン
ドウWn+3 の重心の値Rn+3 は、 Rn+2 =Rn+2 +ΔR=4.40+0.27=4.67 Rn+3 =Rn+3 +ΔR=4.41+0.27=4.68 となる。したがって、このように複数本の斜線からなる
チャートを使用しても、連続して高精度で位置誤差を測
定することができる。ただし、斜線K2のウィンドウW
n から斜線K3のウィンドウWn+1 に移動する場合、斜
線K2、K3は主走査方向に同時に存在しなければなら
ない。
This value ΔR is added to the value of the center of gravity of the oblique line K3, and the result of this addition is used as the value of the center of gravity to obtain a position error.
In this case, the value of the center of gravity Rn + 2 of the window Wn + 2 and the value of the center of gravity Rn + 3 of the window Wn + 3 are as follows: Rn + 2 = Rn + 2 + ΔR = 4.40 + 0.27 = 4.67 Rn + 3 = Rn + 3 + ΔR = 4.41 + 0.27 = 4.68 Therefore, even if a chart composed of a plurality of oblique lines is used, the position error can be continuously measured with high accuracy. However, the window W of the oblique line K2
When moving from n to the window Wn + 1 of the oblique line K3, the oblique lines K2 and K3 must exist simultaneously in the main scanning direction.

【0064】図14は斜線の配置関係を示し、長さL1
の複数の斜線が主走査方向に対して角度θで配置され、
主走査方向の斜線の始点と終点の位置が同一の場合、主
走査方向の斜線間隔をL2 とすると、 L2 <L1 ×cos θ ・・・(1) の関係が成り立つように斜線を配置すれば、斜線は主走
査方向には重なるので、ウィンドウを主走査方向に移動
して次の斜線の重心を連続して測定することができる。
ここで、斜線の長さL1 と斜線の始点、終点の主走査方
向の位置は式(1)の大小関係が大きいほど精度を必要
としなくなる。
FIG. 14 shows an arrangement relationship of oblique lines, and the length L1
Are arranged at an angle θ with respect to the main scanning direction,
If the start point and the end point of the oblique line in the main scanning direction are the same, assuming that the oblique line interval in the main scanning direction is L2, the oblique lines can be arranged such that the following relationship holds: L2 <L1 × cos θ (1) Since the diagonal lines overlap in the main scanning direction, the window can be moved in the main scanning direction to continuously measure the center of gravity of the next diagonal line.
Here, as the length L1 of the oblique line and the positions of the start point and the end point of the oblique line in the main scanning direction become smaller, the greater the magnitude relation of the equation (1), the less precision is required.

【0065】9.位置誤差補正処理 位置誤差補正部における読み取りデータの補正は次のよ
うにして行われる。
9. Position Error Correction Processing The correction of the read data in the position error correction unit is performed as follows.

【0066】すなわち、この実施形態では3次関数コン
ボリューションを利用して補正を行う。図15に3次関
数コンボリューションを利用した補正のモデル図を、図
16に補正の処理手順を示すフローチャートを示す。図
から分かるように速度ムラがない場合の副走査方向の画
素位置は、画素列Pで示すように等間隔となる。しか
し、速度ムラがある場合には、画素列Qで示すようにそ
の間隔はバラツキ、正しい位置から外れてくる。図は本
来Pn の位置になければならない画素が実際には画素Q
n の位置にあることを示している。
That is, in this embodiment, correction is performed using cubic function convolution. FIG. 15 is a model diagram of the correction using the cubic function convolution, and FIG. 16 is a flowchart showing the processing procedure of the correction. As can be seen from the figure, the pixel positions in the sub-scanning direction when there is no speed unevenness are equally spaced as shown by the pixel row P. However, when there is unevenness in the speed, as shown by the pixel column Q, the interval varies and deviates from a correct position. The figure shows that the pixel that should originally be at the position of Pn is actually the pixel Q
Indicates that it is at position n.

【0067】ここで、nライン目のある走査方向のデー
タPn の画像データ(濃度データ)を画素列Qの画像デ
ータと位置データとから重み関数である3次関数コンボ
リューションを使用して作成する例について説明する。
Here, the image data (density data) of the data Pn in the certain scanning direction on the nth line is created from the image data of the pixel array Q and the position data by using a cubic function convolution which is a weighting function. An example will be described.

【0068】3次関数コンボリューションを利用する場
合、理想的なnライン目(Pn )の位置から2画素分以
内(r0 )のデータを位置誤差データから検出する(ス
テップ171,172)。この場合は、Qn 、Qn+1 、
Qn+2 、Qn+3 、Qn+4 のデータが対象となる。ここで
2画素分以内としているのは、r0 以上のデータは補正
係数を0として取り扱うのでそれ以上のデータは必要が
ないためである。そして、各データのPn からの距離r
によって各データQにおける補間関数h(r )を求め
る。これが補正係数となる(ステップ173)。ここ
で、補間関数h(r)はsinx/xの区分的3次多項
式近似で中心からの距離rによって以下の式、すなわ
ち、 h(r )=1−2|r|2 +|r|3 ・・・(2) ただし、0≦|r|<1 h(r )=4−8|r|+5|r|2 −|r|3 ・・・(3) ただし、1≦|r|<2 h(r )=0 ・・・(4) ただし、2≦|r| で表わされる。そして、この補間関数h(r )のもと
で、補正係数を対応するQのデータに掛けて、Pn を求
める。また、濃度ムラを補正するために各補正係数の合
計が1になるように分母に補正係数の合計をとる。すな
わち、 Pn ={Qn ・h(r1)+Qn+1 ・h(r2)+Qn+2 ・h(r3) +Qn+3 ・h(r4)+Qn+4 ・h(r5)}/{h(r1) +h(r2)+h(r3)+h(r4)+h(r5)} ・・・(5) となる(ステップ174)。
When the cubic function convolution is used, data within two pixels (r0) from the ideal n-th line (Pn) is detected from the position error data (steps 171 and 172). In this case, Qn, Qn + 1,
The data of Qn + 2, Qn + 3, and Qn + 4 are targeted. Here, the reason why the number of pixels is within two pixels is that data of r0 or more is treated as having a correction coefficient of 0, so that no more data is necessary. Then, the distance r of each data from Pn
To find the interpolation function h (r) for each data Q. This becomes the correction coefficient (step 173). Here, the interpolation function h (r) is a piecewise cubic polynomial approximation of sinx / x, and the following equation is given by the distance r from the center: h (r) = 1-2 | r | 2+ | r | 3 (2) where 0 ≦ | r | <1 h (r) = 4−8 | r | +5 | r | 2− | r | 3 (3) where 1 ≦ | r | < 2 h (r) = 0 (4) where 2 ≦ r | Then, under the interpolation function h (r), the correction coefficient is multiplied by the corresponding Q data to obtain Pn. Further, in order to correct the density unevenness, the sum of the correction coefficients is set to the denominator so that the sum of the correction coefficients becomes 1. That is, Pn = {Qn.h (r1) + Qn + 1.h (r2) + Qn + 2.h (r3) + Qn + 3.h (r4) + Qn + 4.h (r5)} / {h (r1) + H (r2) + h (r3) + h (r4) + h (r5)} (5) (step 174).

【0069】この制御をnライン目の各主走査方向のデ
ータにおいて終了したら、n+1ライン目へのラインを
シフトしていき、最終ラインまで繰り返し行う(ステッ
プ175)。このとき式(5)において補間係数h(r
)と分母の補間係数の和の計算とその逆数の計算は、
対応する主走査方向の画像データの補正の前に1回実行
すればよい。このように制御することによって前述のよ
うにして測定した位置誤差データに基づいて、読み取っ
た画像データから正しい位置で読み取った場合の画像デ
ータを作成することができ、これによって位置誤差を補
正することが可能になる。
When this control is completed for the data in the main scanning direction of the n-th line, the line to the (n + 1) -th line is shifted and repeated until the last line (step 175). At this time, the interpolation coefficient h (r
) And the sum of the denominator interpolation coefficients and their reciprocal are
It may be executed once before the correction of the image data in the corresponding main scanning direction. By performing such control, it is possible to create image data when the image is read at the correct position from the read image data based on the position error data measured as described above, thereby correcting the position error. Becomes possible.

【0070】このようにして補正した前後の状態を図1
7に示す。通常の読取装置はキャリッジが走査を開始し
てから一定速度になった後に画像の読み取りを開始する
が、図17(a)では位置誤差を大きく見せるためにキ
ャリッジが走査を開始した直後から画像の読み取りを始
めたものを図示している。このとき、45度の斜線も同
時に読み込んでおり、この斜線パターン部分の画像から
前述の方式で位置誤差を求め、その位置誤差データと読
み取った画像データとから位置誤差を補正した画像が図
17(b)に示すものである。このようにして補正する
ことによってたとえ位置誤差を非常に大きく読み取って
しまったとしても、原稿に忠実な画像を再現できること
がわかる。
The state before and after the correction as described above is shown in FIG.
FIG. An ordinary reading device starts reading an image after a certain speed has been reached after the carriage has started scanning. However, in FIG. 17A, the image reading is started immediately after the carriage starts scanning in order to show a large positional error. The figure which started reading has been illustrated. At this time, a 45-degree oblique line is also read at the same time, a position error is obtained from the image of the oblique line pattern portion by the above-described method, and an image obtained by correcting the position error from the position error data and the read image data is shown in FIG. This is shown in b). It can be seen that by performing the correction in this manner, an image faithful to the original can be reproduced even if the position error is read very large.

【0071】[0071]

【発明の効果】以上説明したように請求項1記載の発明
によれば、ハード的に余分な構成を付加することなく、
ソフト的に、言い替えればプログラムされた簡単な演算
処理で原稿をビットマップ形式で読み取る装置の画素の
位置誤差を測定することが可能となり、これによって異
常画像の発生は画像のずれをなくすことができる。
As described above, according to the first aspect of the present invention, without adding an extra hardware-
By software, in other words, it is possible to measure the positional error of the pixel of the device that reads the original in a bitmap format by a simple arithmetic processing programmed, thereby eliminating the occurrence of an abnormal image and the displacement of the image. .

【0072】また、請求項1記載の発明によれば、あら
かじめ斜線パターンを印刷した原稿を使用することによ
って、読取装置本体に斜線パターンを設けることなく高
精度の画像の読み取りが可能となる。
According to the first aspect of the present invention, by using an original on which a diagonal pattern is printed in advance, it is possible to read a high-precision image without providing a diagonal pattern in the main body of the reading apparatus.

【0073】さらに、請求項2および3記載の発明によ
れば、斜線パターンをインチを基準に形成したので、こ
の種の画像読取装置に使用されている画像密度、いわゆ
る、dot/inch(DPI)にマッチし、演算に際
して画像の伸び、縮みをインチを基準に検出することが
でき、補正のための演算が容易になる。
Further, according to the second and third aspects of the present invention, since the oblique line pattern is formed on the basis of inches, the image density used in this type of image reading apparatus, so-called dot / inch (DPI). , And the expansion and contraction of the image can be detected on the basis of inches during the calculation, and the calculation for correction becomes easier.

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

【図1】本発明に係る画像読取装置の一実施形態を示す
ブロック図である。
FIG. 1 is a block diagram illustrating an embodiment of an image reading apparatus according to the present invention.

【図2】本発明の実施形態に係るADFを備えた画像読
取装置を示す断面図である。
FIG. 2 is a cross-sectional view illustrating an image reading apparatus including an ADF according to an embodiment of the present invention.

【図3】斜線パターンを印字した原稿の全体的な構成を
示す平面図である。
FIG. 3 is a plan view showing the overall configuration of a document on which a diagonal pattern is printed.

【図4】他の斜線パターンを印字した原稿の要部を拡大
して示す平面図である。
FIG. 4 is an enlarged plan view showing a main part of a document on which another oblique line pattern is printed.

【図5】走査速度の変動に応じた斜線パターンの読み取
りデータを示す説明図である。
FIG. 5 is an explanatory diagram showing read data of a hatched pattern according to a change in a scanning speed.

【図6】斜線パターンを拡大して示す説明図である。FIG. 6 is an explanatory diagram showing an oblique line pattern in an enlarged manner.

【図7】図6の斜線パターンの読み取り値を示す説明図
である。
FIG. 7 is an explanatory diagram showing read values of a hatched pattern in FIG. 6;

【図8】斜線判定用ウィンドウを示す説明図である。FIG. 8 is an explanatory diagram showing a diagonal line determination window.

【図9】他の斜線判定用ウィンドウを示す説明図であ
る。
FIG. 9 is an explanatory diagram showing another oblique line determination window.

【図10】斜線判定用マッチングパターンを示す説明図
である。
FIG. 10 is an explanatory diagram illustrating a matching pattern for oblique line determination.

【図11】重心測定用ウィンドウを示す説明図である。FIG. 11 is an explanatory diagram showing a window for measuring the center of gravity.

【図12】画像読取装置における重心の測定処理を説明
するためのフローチャートである。
FIG. 12 is a flowchart illustrating a process of measuring the center of gravity in the image reading apparatus.

【図13】重心測定用ウィンドウにおける読み取り値及
び重心測定方法を示す説明図である。
FIG. 13 is an explanatory diagram showing a read value and a method of measuring the center of gravity in the window for measuring the center of gravity.

【図14】パターンの長さ及び角度を示す説明図であ
る。
FIG. 14 is an explanatory diagram showing the length and angle of a pattern.

【図15】3次関数コンボリューションによる補正処理
を説明するための図である。
FIG. 15 is a diagram for describing correction processing by cubic function convolution.

【図16】3次関数コンボリューションによる補正処理
の処理手順を示すフローチャートである。
FIG. 16 is a flowchart illustrating a processing procedure of a correction process based on a cubic function convolution.

【図17】3次関数コンボリューションによる補正処理
における補正前と補正後の画像の状態を示す図である。
FIG. 17 is a diagram illustrating states of an image before and after correction in a correction process using cubic function convolution.

【符号の説明】 1 コンタクトガラス 2 筐体 18 光源 3,20,21 ミラー 10 斜線パターン 10a 斜線 22 レンズ 23 光電変換素子(ラインCCD) 100 ADF 101 光電変換部 102 A/D変換部 103 シェーディング補正部 104 斜線判別部 105 位置誤差測定部 106 位置誤差補正部 107 制御部 200 スキャナ 300 原稿 301 原稿の外縁[Description of Signs] 1 contact glass 2 housing 18 light source 3, 20, 21 mirror 10 oblique line pattern 10a oblique line 22 lens 23 photoelectric conversion element (line CCD) 100 ADF 101 photoelectric conversion unit 102 A / D conversion unit 103 shading correction unit 104 Oblique line determination unit 105 Position error measurement unit 106 Position error correction unit 107 Control unit 200 Scanner 300 Document 301 Outer edge of document

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 原稿を自動的にコンタクトガラス上に給
送する原稿給送手段と、給送された原稿をあらかじめ設
定された一定の時間間隔で線順次に走査して原稿画像を
読み取る読取手段とを有する画像読取装置において、 読取原稿には、あらかじめ走査方向に対して一定の傾き
を有する線を等ピッチで並べて構成した斜線パターンを
印字しておき、 前記読取手段には、前記原稿給送手段によって給送され
た原稿に印字された前記斜線パターンを光学的に読み取
って電気信号に変換する手段と、 この変換する手段によって電気信号に変換された前記斜
線パターンの画像データにウィンドウを設定して、ウィ
ンドウ内の画像データの重心を計算する手段と、 この重心を計算する手段に計算された重心の値に応じて
ウィンドウを移動させる手段と、 前記重心を計算する手段によって計算された重心の値か
ら画素の位置誤差を測定する手段と、を設けたことを特
徴とする画像読取装置。
1. A document feeding means for automatically feeding a document onto a contact glass, and a reading means for scanning a fed document line-sequentially at predetermined time intervals to read a document image. An oblique line pattern formed by arranging lines having a constant inclination with respect to the scanning direction at equal pitches is printed on a read original in advance. Means for optically reading the diagonal pattern printed on the original fed by the means and converting the pattern into an electric signal; and setting a window in the image data of the diagonal pattern converted to the electric signal by the converting means. Means for calculating the center of gravity of the image data in the window, and means for moving the window according to the value of the center of gravity calculated by the means for calculating the center of gravity. Image reading apparatus is characterized by providing a means for measuring a position error of the pixel from the calculated center of gravity values by means for calculating the center of gravity.
【請求項2】 前記読取原稿に印字された等ピッチの斜
線パターンは、インチ単位を基準とするピッチに設定さ
れていることを特徴とする請求項1記載の画像読取装
置。
2. The image reading apparatus according to claim 1, wherein the uniform pitch oblique line pattern printed on the read document is set at a pitch based on an inch unit.
【請求項3】 前記斜線パターンは用紙の外縁から1イ
ンチの範囲内に印字されていることを特徴とする請求項
1または2記載の画像読取装置。
3. The image reading apparatus according to claim 1, wherein the oblique line pattern is printed within a range of one inch from an outer edge of the sheet.
JP8203866A 1996-08-01 1996-08-01 Image reader Pending JPH1051628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8203866A JPH1051628A (en) 1996-08-01 1996-08-01 Image reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8203866A JPH1051628A (en) 1996-08-01 1996-08-01 Image reader

Publications (1)

Publication Number Publication Date
JPH1051628A true JPH1051628A (en) 1998-02-20

Family

ID=16481008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8203866A Pending JPH1051628A (en) 1996-08-01 1996-08-01 Image reader

Country Status (1)

Country Link
JP (1) JPH1051628A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949922A (en) * 1996-10-14 1999-09-07 Ricoh Company, Ltd. Image reading apparatus
JP2008199255A (en) * 2007-02-13 2008-08-28 Seiko Epson Corp Image reader, and image correction method and image correction program
JP2010058484A (en) * 2008-09-08 2010-03-18 Dainippon Screen Mfg Co Ltd Printer and inspection method for printing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949922A (en) * 1996-10-14 1999-09-07 Ricoh Company, Ltd. Image reading apparatus
JP2008199255A (en) * 2007-02-13 2008-08-28 Seiko Epson Corp Image reader, and image correction method and image correction program
JP2010058484A (en) * 2008-09-08 2010-03-18 Dainippon Screen Mfg Co Ltd Printer and inspection method for printing

Similar Documents

Publication Publication Date Title
US6023537A (en) Image reading apparatus using an image reading position error measuring device
US6608705B1 (en) Image reading device and focus adjustment method thereof
JP3683375B2 (en) Rotary encoder
US6175429B1 (en) Document reader and method for adjusting its focus
JPH1051628A (en) Image reader
JPH1079836A (en) Image reader
JPH1075331A (en) Image reader
JPH118734A (en) Image reader
EP0940973A2 (en) Registration apparatus and method for imaging at variable resolutions
JPH10248013A (en) Image forming device and image read system
JP3647982B2 (en) Pixel position error measuring device and image reading device
JP3556076B2 (en) Image position error measuring device
JP3517764B2 (en) Linear scale
JP3647992B2 (en) Image reading device
JP3647981B2 (en) Image reading device
JP3464737B2 (en) Image reading device
JP3655383B2 (en) Pixel position measuring method, pixel position measuring apparatus and image reading apparatus
JPH09163081A (en) Image reader
JP3534920B2 (en) Image reading device
JPH1031734A (en) Picture reader
JP3464736B2 (en) Pixel position error measuring device
JPH1032685A (en) Image reader
JPH05199375A (en) Speed controller for optical system for copying machine
JPH1042109A (en) Image reader
JP3614271B2 (en) Image reading device