JPH08107479A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH08107479A
JPH08107479A JP7080568A JP8056895A JPH08107479A JP H08107479 A JPH08107479 A JP H08107479A JP 7080568 A JP7080568 A JP 7080568A JP 8056895 A JP8056895 A JP 8056895A JP H08107479 A JPH08107479 A JP H08107479A
Authority
JP
Japan
Prior art keywords
image
scanning
pixel
image data
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP7080568A
Other languages
Japanese (ja)
Other versions
JP3602884B2 (en
Inventor
Akio Kojima
章夫 小嶋
Kazuyuki Murata
和行 村田
康浩 ▲くわ▼原
Yasuhiro Kuwahara
直樹 ▲たか▼橋
Naoki Takahashi
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 JP08056895A priority Critical patent/JP3602884B2/en
Publication of JPH08107479A publication Critical patent/JPH08107479A/en
Application granted granted Critical
Publication of JP3602884B2 publication Critical patent/JP3602884B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To generate a joint image without high quality without deviation in connection by correcting a position deviation even when an error is included in a detected scanning position and preventing the occurrence of a map missing region caused by the correction of the position deviation. CONSTITUTION: A position deviation detection circuit 7 detects a position deviation based on image data 400 in a scanning region in which a line image sensor 1 reads data in duplicate and image information of data stored in an image memory 6. Then the position deviation detection circuit 7 corrects a scanning position coordinate 300 to cancel the position deviation and provides the output of a corrected coordinate 710 to a mapping circuit 5. The mapping circuit 5 stores the image data 400 according to the corrected coordinate 710 to the image memory 6.

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 apparatus for storing image data read by scanning an original image in an image memory based on a scanning position corresponding to the image data.

【0002】[0002]

【従来の技術】従来、手動によって原稿上を自由走査し
て原稿画像を読み取るハンドスキャナにおいては、読み
取りセンサの原稿上の走査位置を逐次検出し、検出され
た走査位置に基づいて画像データを画像メモリに格納し
ていた。
2. Description of the Related Art Conventionally, in a hand scanner that scans a document manually to read a document image, a scanning position of a reading sensor on the document is sequentially detected, and image data is imaged based on the detected scanning position. Was stored in memory.

【0003】読み取りセンサの原稿上の走査位置を検出
する方法としては、補助装置として基準格子が印刷され
たシートを用い、原稿上に置かれたシートの上を、基準
格子を検出する読み取りセンサと一体になった光感知素
子によって走査することにより、光感知素子の出力から
基準格子に対する画像データの位置を算出する方法があ
る(例えば、米国特許第4、260、979号)。
As a method for detecting the scanning position of the reading sensor on the original, a sheet on which a reference grid is printed is used as an auxiliary device, and a reading sensor for detecting the reference grid on the sheet placed on the original is used. There is a method of calculating the position of the image data with respect to the reference grating from the output of the photosensitive element by scanning with the integrated photosensitive element (for example, US Pat. No. 4,260,979).

【0004】また、補助装置としてタブレットを用い、
タブレット上に載置された原稿の上を、読み取りセンサ
と一体になった検出コイルによって走査することによ
り、検出コイルの出力からタブレット上の座標位置を検
出し、検出された座標位置に基づいて画像データの位置
を算出する方法がある(例えば、米国特許第4、58
1、761号) また、読み取りセンサと一体に移動する車輪に取り付け
られ、車輪の回転に伴ってパルスを発生するエンコーダ
の出力から読み取りセンサの位置を検出し、検出された
位置に基づいて画像データの位置を算出する方法がある
(例えば、特開昭62−15964号公報)。
Further, a tablet is used as an auxiliary device,
By scanning the document placed on the tablet with the detection coil that is integrated with the reading sensor, the coordinate position on the tablet is detected from the output of the detection coil, and the image is displayed based on the detected coordinate position. There are methods of calculating the location of the data (eg, US Pat. No. 4,58).
No. 1, 761) Also, the position of the reading sensor is detected from the output of the encoder that is attached to the wheel that moves integrally with the reading sensor and that generates a pulse in accordance with the rotation of the wheel, and the image data is based on the detected position. There is a method for calculating the position of (for example, Japanese Patent Laid-Open No. 62-15964).

【0005】これら従来の検出方法によって検出された
走査位置に基づいて画像データの座標上の位置を算出
し、画像メモリの所定のアドレスに格納する画像処理装
置を用いれば、手動走査による手ぶれや蛇行の影響を排
除することができるので、画像メモリ上の格納データに
画像歪みが生じることはない。
If an image processing apparatus that calculates the coordinate position of image data based on the scanning position detected by these conventional detection methods and stores it in a predetermined address of the image memory is used, a camera shake or meandering caused by manual scanning is used. Since it is possible to eliminate the influence of, the image distortion does not occur in the data stored in the image memory.

【0006】[0006]

【発明が解決しようとする課題】しかし、上記した従来
の構成では、以下のような問題がある。基準格子が印刷
されたシートやタブレットなどの補助装置を用いる場
合、走査位置の検出精度を高め、絶対位置誤差を小さく
するには、精密な加工と高価な補正回路が必要となり、
通常、コストが高くなる。また、精度の低い補助装置を
用いると、検出する走査位置に大きな絶対位置誤差が生
じる。
However, the above-mentioned conventional structure has the following problems. When using an auxiliary device such as a sheet or tablet on which the reference grid is printed, precise processing and an expensive correction circuit are required to improve the scanning position detection accuracy and reduce the absolute position error.
Usually the cost is high. In addition, if an auxiliary device with low accuracy is used, a large absolute position error occurs in the detected scanning position.

【0007】一方、読み取りセンサと一体に移動する車
輪に取り付けられ、車輪の回転に伴ってパルスを発生す
るエンコーダを用いる場合には、走査開始位置を基準点
として逐次検出されるエンコーダのパルスをカウントし
て走査位置を算出するので、機械精度、車輪の滑りなど
によって大きな累積位置誤差が生じる。
On the other hand, when an encoder mounted on a wheel that moves integrally with the reading sensor and generating a pulse as the wheel rotates is used, the pulses of the encoder that are sequentially detected are counted with the scanning start position as a reference point. Since the scanning position is calculated in this manner, a large cumulative position error occurs due to mechanical accuracy, wheel slippage, and the like.

【0008】検出される走査位置の絶対位置誤差、ある
いは累積位置誤差が大きくなると、読み取りセンサが実
際に走査している原稿上の正規の走査位置との間で大き
な位置誤差が生じる(以下、この位置誤差を「位置ず
れ」という。)。
When the absolute position error or the cumulative position error of the detected scanning position becomes large, a large position error occurs between the scanning sensor and the regular scanning position on the original which is actually scanned by the reading sensor (hereinafter referred to as this Positional error is called "positional shift".)

【0009】この位置ずれした走査位置に基づいて画像
データの座標上の位置を算出し、画像メモリの所定のア
ドレスに格納すると、画像メモリ上で再現された平面画
像に大きな画像歪みが生じるといった問題がある。この
位置ずれによる平面画像の画像歪みについて、図19
(b)〜(d)を用いて説明する。
When the coordinate position of the image data is calculated based on the misaligned scanning position and stored in a predetermined address of the image memory, a large image distortion occurs in the plane image reproduced on the image memory. There is. FIG. 19 shows the image distortion of the plane image due to this positional deviation.
An explanation will be given using (b) to (d).

【0010】図19(b)に示すように、ハンドスキャ
ナ1004によって原稿1000の上を自由に走査する
場合について説明する。図19(c)に示すように、一
方向のみを読み取る小型のハンドスキャナでは、原稿1
000の上の大画面を読み取ることはできない。しか
し、一方向に対してセンサの読み取り範囲だけ画像メモ
リ上に画像データが格納されるので、接続ずれは発生し
ない。図19(d)に示すように、一筆書きの往復走査
によって原稿1000の上の大画面を読み取るハンドス
キャナでは、位置ずれした走査位置に基づいて画像デー
タを画像メモリに格納すると、画像の接続部が位置ずれ
を起こし、画像が歪んでしまう。特に、累積位置誤差を
発生させるスキャナでは、走査する範囲が広くなればな
るほど位置ずれがひどくなり、画像自体を判読すること
ができなくなる。
A case where the hand scanner 1004 freely scans the original 1000 as shown in FIG. 19B will be described. As shown in FIG. 19C, in the case of a small hand scanner that reads in only one direction, the original 1
It is not possible to read the large screen above 000. However, since the image data is stored in the image memory in the reading range of the sensor in one direction, the connection shift does not occur. As shown in FIG. 19D, in a hand scanner that reads a large screen on the original 1000 by reciprocal scanning with a single stroke, when image data is stored in an image memory based on a scanning position that is displaced, an image connecting portion is connected. The image is distorted due to misalignment. In particular, in a scanner that generates a cumulative position error, the wider the scanning range, the more the position shift becomes, and the image itself cannot be read.

【0011】次に、画像メモリに画像データを格納する
場合の問題点について説明する。図22に示すように、
画像メモリ2001内に画像データが格納される箇所
(画像データ格納画素)2002と、画像データが格納
されない箇所(以下「写像抜け領域」という。)200
3があると、黒ベタ領域ではかなりよく目立つ白筋とな
り、画質品位が著しく劣化する。また、図23に示すよ
うに、この写像抜け領域が文字領域で発生した場合に
は、文字に白筋が入るなど、文字の品質が著しく劣化す
る。
Next, problems in storing image data in the image memory will be described. As shown in FIG. 22,
A location 2002 where image data is stored in the image memory 2001 (image data storage pixel) and a location where image data is not stored (hereinafter referred to as “mapping area”) 200.
If there is 3, white streaks are noticeable in a solid black area, and image quality is significantly deteriorated. Further, as shown in FIG. 23, when the mapping missing area occurs in the character area, the quality of the character is remarkably deteriorated such as white streaks in the character.

【0012】本発明は、従来技術における前記課題を解
決するため、検出される走査位置に誤差が含まれていて
も、位置ずれを補正し、かつ、位置ずれの補正によって
起こる写像抜け領域の発生を防止することにより、接続
ずれのない高品位な接続画像を生成することのできる画
像処理装置を提供することを目的とする。
In order to solve the above-mentioned problems in the prior art, the present invention corrects the positional deviation even if the detected scanning position includes an error, and the occurrence of a mapping missing area caused by the positional deviation correction. It is an object of the present invention to provide an image processing apparatus capable of generating a high-quality connection image without connection deviation by preventing the above.

【0013】[0013]

【課題を解決するための手段】前記目的を達成するた
め、本発明に係る画像処理装置の構成は、原稿画像を走
査して読み取られた画像データと、前記画像データに対
応する走査位置とを順次入力し、走査位置に基づいて前
記画像データを画像メモリに格納する画像処理装置であ
って、重複して走査する重なり走査領域内の、前記画像
データと前記画像メモリに格納された格納データとから
前記走査位置の位置ずれを検出し、前記位置ずれを補正
する補正値を出力する位置ずれ検出手段と、前記補正値
に基づいて前記走査位置を補正する補正手段と、補正さ
れた走査位置に基づいて前記画像データを前記画像メモ
リに格納する写像手段とを少なくとも備えたことを特徴
とする。
In order to achieve the above object, the structure of an image processing apparatus according to the present invention includes an image data read by scanning an original image and a scanning position corresponding to the image data. An image processing apparatus for sequentially inputting and storing the image data in an image memory based on a scanning position, wherein the image data and the storage data stored in the image memory in an overlapping scanning area to be scanned in duplicate. Position deviation detecting means for detecting the position deviation of the scanning position from the output and outputting a correction value for correcting the position deviation, correction means for correcting the scanning position based on the correction value, and the corrected scanning position. And a mapping means for storing the image data in the image memory based on the image data.

【0014】前記本発明装置の構成においては、補正値
を所定の割合で可変する補正制御手段がさらに備わり、
補正手段は、所定の割合で可変された前記補正値に基づ
いて走査位置を補正するのが好ましい。また、この場合
には、補正制御手段は、位置ずれ検出手段からの補正値
を分割した値を可変制御量とし、走査位置が異なるごと
に段階的に前記補正値を所定の割合で可変するのが好ま
しい。
In the configuration of the device of the present invention, correction control means for varying the correction value at a predetermined ratio is further provided.
It is preferable that the correction unit corrects the scanning position based on the correction value that is changed at a predetermined ratio. Further, in this case, the correction control means uses the value obtained by dividing the correction value from the positional deviation detection means as the variable control amount, and changes the correction value stepwise at a predetermined rate for each different scanning position. Is preferred.

【0015】また、前記本発明装置の構成においては、
補正された走査位置と、対応する画像データとを遅延さ
せる遅延手段がさらに備わり、写像手段は、遅延した走
査位置に基づいて対応する画像データを画像メモリに格
納することにより、前記走査位置の位置ずれを検出する
位置と画像データを前記画像メモリに格納する格納位置
とを異ならせるのが好ましい。
Further, in the configuration of the device of the present invention,
Delay means for delaying the corrected scanning position and the corresponding image data is further provided, and the mapping means stores the corresponding image data in the image memory on the basis of the delayed scanning position, thereby the position of the scanning position. It is preferable that the position for detecting the deviation and the storage position for storing the image data in the image memory are different.

【0016】また、前記本発明装置の構成においては、
位置ずれ検出手段は、画像メモリに入力される画像デー
タの走査確認情報を走査確認情報メモリに順次記憶する
走査領域保持手段と、前記走査確認情報メモリの走査確
認情報を検出することにより、重複して走査される重な
り走査領域を検出する重なり領域検出手段とを備えるの
が好ましい。また、この場合には、画像メモリに格納す
る画像データのアドレスと、走査確認情報メモリに格納
する走査確認情報のアドレスとを共用にするのが好まし
い。また、この場合には、重なり領域検出手段が行う走
査領域の判定に従って画像メモリへの画像データの格納
を制御するメモリ制御手段がさらに備わり、前記メモリ
制御手段は、重複して走査される重なり走査領域である
と判定した場合に前記画像メモリへの画像データの格納
を禁止するのが好ましい。
Further, in the configuration of the device of the present invention,
The misregistration detection unit detects the scanning confirmation information of the scanning confirmation information memory and the scanning region holding unit that sequentially stores the scanning confirmation information of the image data input to the image memory in the scanning confirmation information memory, thereby overlapping the scanning confirmation information. It is preferable to include an overlap area detection unit that detects an overlap scan area that is scanned. Further, in this case, it is preferable to share the address of the image data stored in the image memory and the address of the scanning confirmation information stored in the scanning confirmation information memory. Further, in this case, there is further provided memory control means for controlling the storage of the image data in the image memory according to the determination of the scanning area performed by the overlapping area detection means, and the memory control means is configured to perform overlapping scanning in which overlapping scanning is performed. It is preferable to prohibit the storage of the image data in the image memory when it is determined that the area is the area.

【0017】また、前記本発明装置の構成においては、
位置ずれ検出手段は、走査位置に基づいて算出される画
像データ中の各画素の原稿上における座標値に対応する
画像メモリの格納アドレスを着目画素位置とし、前記着
目画素位置を含むその周辺画素位置に対して、それぞれ
前記画像データと前記画像メモリに格納されている格納
データとの相関値を検出する画像相関手段と、複数の前
記相関値から予め設定される補正値を生成する補正量算
出手段とを備えるのが好ましい。また、この場合には、
位置ずれ検出手段は、相関対象となる画素位置におい
て、着目画素位置を含むその周辺画素位置がすべて重な
り走査領域である場合にのみ、複数の相関値を生成する
のが好ましい。
Further, in the structure of the device of the present invention,
The misregistration detection means sets the storage address of the image memory corresponding to the coordinate value on the document of each pixel in the image data calculated based on the scanning position as a pixel position of interest, and its peripheral pixel positions including the pixel position of interest. On the other hand, an image correlation unit that detects a correlation value between the image data and the storage data stored in the image memory, and a correction amount calculation unit that generates a preset correction value from a plurality of the correlation values. And preferably. Also, in this case,
It is preferable that the misregistration detection unit generates a plurality of correlation values only in the case where the pixel positions to be correlated are all peripheral pixel positions including the pixel position of interest in the overlapping scanning region.

【0018】また、前記本発明装置の構成においては、
補正手段は、位置ずれ検出手段から出力される補正値を
累積した累積補正値を生成する保持手段を備え、前記累
積補正値によって走査位置を補正するのが好ましい。
Further, in the structure of the device of the present invention,
It is preferable that the correction unit includes a holding unit that generates a cumulative correction value by accumulating the correction values output from the positional deviation detection unit, and corrects the scanning position by the cumulative correction value.

【0019】また、前記本発明装置の構成においては、
写像手段は、走査位置に基づいて、画像データ中の各画
素の原稿上における座標値に対応する画像メモリの格納
アドレスを生成するアドレス生成手段と、前記画像デー
タ中の各画素を前記画像メモリの前記格納アドレスに格
納するデータ格納手段とを備えるのが好ましい。また、
この場合には、写像手段は、隣接する画素から補間によ
って画像データを高密度化する画素密度変換手段と、走
査位置に基づいて、高密度化した前記画像データ中の各
画素の原稿上における実数座標値を、前記所定の画素密
度を単位として算出する手段と、前記原稿上における実
数座標値を、前記所定の画素密度を単位とする整数座標
値に変換する整数化手段と、前記座標値の整数化の際に
生じる座標誤差値を算出する手段と、前記整数座標値を
画像メモリのアドレスに変換する手段と、前記座標誤差
値の大きさと予め決められた所定の値とを比較する手段
とを備え、前記座標誤差値の大きさが前記所定の値以下
である画素のみを前記画像メモリのアドレスに格納する
のが好ましい。この場合には、さらに、画素密度変換手
段は、被処理画素とその周辺の隣接画素を用いて補間画
素を生成する手段を備え、当該手段によって画像データ
を2倍の画素密度に変換するのが好ましく、さらには、
被処理画素Pi,j (但し、画像データ中、iライン目の
画像データのj番目の画素データを示す。)とその周辺
の隣接画素Pi,j+1 、Pi-1,j 、Pi- 1,j+1 を用いて、
上記(数1)より補間画素Qi,j 、Ri,j 、Si,j を算
出するのが好ましい。また、この場合には、さらに、所
定の値は、所定の画素密度を単位として0.3〜0.3
5であるのが好ましい。
Further, in the configuration of the device of the present invention,
The mapping means includes an address generating means for generating a storage address of an image memory corresponding to a coordinate value of each pixel in the image data on the document based on the scanning position, and each pixel in the image data of the image memory. It is preferable to include a data storage means for storing at the storage address. Also,
In this case, the mapping means includes a pixel density conversion means for densifying the image data from adjacent pixels by interpolation, and a real number on the original of each pixel in the densified image data based on the scanning position. A unit for calculating coordinate values in units of the predetermined pixel density; an integer unit for converting real number coordinate values on the original document into integer coordinate values in units of the predetermined pixel density; A means for calculating a coordinate error value generated at the time of conversion into an integer, a means for converting the integer coordinate value into an address of an image memory, and a means for comparing the magnitude of the coordinate error value with a predetermined value. It is preferable that only the pixels whose magnitude of the coordinate error value is equal to or smaller than the predetermined value are stored in the address of the image memory. In this case, the pixel density conversion means further includes means for generating an interpolated pixel by using the pixel to be processed and the adjacent pixels around the pixel to be processed, and the image data is converted to a double pixel density by the means. Preferably, further,
The pixel to be processed P i, j (however, in the image data, the j-th pixel data of the image data of the i-th line is shown) and its neighboring pixels P i, j + 1 , P i-1, j , Using P i- 1, j + 1 ,
It is preferable to calculate the interpolated pixels Q i, j , R i, j and S i, j from the above (Equation 1). Further, in this case, the predetermined value is 0.3 to 0.3 in units of the predetermined pixel density.
It is preferably 5.

【0020】また、前記本発明装置の構成においては、
画像データと走査位置は、画像を読み取るイメージセン
サと、前記イメージセンサの読み取り位置を2つの検出
手段によって検出する位置検出手段とを備えた入力装置
から入力されるのが好ましい。また、この場合には、イ
メージセンサはラインセンサであるのが好ましい。ま
た、この場合には、入力装置はハンドスキャナであるの
が好ましい。また、この場合には、検出手段は、原稿面
に接触して回転する車輪と、前記車輪の回転に対応して
パルスを出力するエンコーダとにより構成されるのが好
ましい。この場合には、さらに、エンコーダは、位相の
異なる2系統のパルスを出力するのが好ましい。また、
この場合には、入力装置は、携帯型情報機器の本体に着
脱自在に取り付けられているのが好ましい。この場合に
は、さらに、入力装置に設けたロックピンを携帯型情報
機器の本体に設けたピン挿入穴に差し込むことにより、
前記入力装置を前記携帯型情報機器の本体に取り付ける
のが好ましい。
Further, in the configuration of the device of the present invention,
The image data and the scanning position are preferably input from an input device equipped with an image sensor for reading an image and position detecting means for detecting the reading position of the image sensor by two detecting means. Further, in this case, the image sensor is preferably a line sensor. Further, in this case, the input device is preferably a hand scanner. Further, in this case, it is preferable that the detecting means is composed of a wheel that comes into contact with the document surface and rotates, and an encoder that outputs a pulse corresponding to the rotation of the wheel. In this case, further, it is preferable that the encoder outputs two types of pulses having different phases. Also,
In this case, it is preferable that the input device is detachably attached to the main body of the portable information device. In this case, further, by inserting the lock pin provided in the input device into the pin insertion hole provided in the body of the portable information device,
The input device is preferably attached to the main body of the portable information device.

【0021】また、前記本発明装置の構成においては、
走査位置を、所定の座標を中心として複数の所定の角度
で回転させる座標回転変換手段がさらに備わり、位置ず
れ検出手段は、複数の所定の角度に対応する走査位置の
座標に基づいて、それぞれ画像データ中の各画素の原稿
上における座標値を算出し、前記座標値に対応する画像
メモリの格納アドレスを着目画素位置とし、前記着目画
素位置を含むその周辺画素位置に対して、それぞれ前記
画像データと前記画像メモリに格納されている格納デー
タとの相関値を検出する画像相関手段と、前記所定の角
度に対し、それぞれ得られる複数の前記相関値から予め
設定される所定の角度補正量と所定の位置補正量を含む
補正値を生成する補正量算出手段とを備えるのが好まし
い。また、この場合には、位置ずれ検出手段は、相関対
象となる画素位置において、各回転角度に対して得られ
る着目画素位置を含むその周辺画素位置がすべて重なり
走査領域である場合にのみ、複数の相関値を生成するの
が好ましい。また、この場合には、画像相関手段は、各
回転角度に対してそれぞれ得られる複数の相関値を生成
するのが好ましい。また、この場合には、画像データと
走査位置は、画像を読み取るラインイメージセンサと、
前記ラインイメージセンサの読み取り位置を2つの検出
手段によって検出する位置検出手段とを備えた入力装置
から入力され、座標回転変換手段は、前記ラインイメー
ジセンサ両端の走査位置座標を座標上で複数方向に走査
ライン単位で回転変換するのが好ましい。また、この場
合には、画像データと走査位置は、画像を読み取るライ
ンイメージセンサと、前記ラインイメージセンサの読み
取り位置を2つの検出手段によって検出する位置検出手
段とを備えた入力装置から入力され、画像相関手段は、
各走査ライン単位の回転角度に対してそれぞれ得られる
複数の相関値を生成するのが好ましい。
In addition, in the configuration of the device of the present invention,
Coordinate rotation conversion means for rotating the scanning position at a plurality of predetermined angles about a predetermined coordinate is further provided, and the position shift detection means is configured to detect the image based on the coordinates of the scanning position corresponding to the plurality of predetermined angles. The coordinate value of each pixel in the data on the original is calculated, the storage address of the image memory corresponding to the coordinate value is set as the pixel position of interest, and the image data of each peripheral pixel position including the pixel position of interest is set. And an image correlation means for detecting a correlation value between the stored data stored in the image memory and a predetermined angle correction amount and a predetermined angle correction amount preset from the plurality of correlation values obtained for the predetermined angle. It is preferable to include a correction amount calculation means for generating a correction value including the position correction amount of. Further, in this case, the positional deviation detection means makes a plurality of pixels only when all the peripheral pixel positions including the target pixel position obtained for each rotation angle are overlapping scanning regions at the pixel position to be correlated. It is preferable to generate a correlation value of Further, in this case, it is preferable that the image correlation means generate a plurality of correlation values obtained for each rotation angle. Further, in this case, the image data and the scanning position are the line image sensor for reading the image,
Inputting is performed from an input device having position detecting means for detecting the reading position of the line image sensor by two detecting means, and the coordinate rotation converting means converts the scanning position coordinates of both ends of the line image sensor into plural directions on the coordinate. Rotation conversion is preferably performed in scan line units. Further, in this case, the image data and the scanning position are input from an input device equipped with a line image sensor for reading an image and a position detecting means for detecting the reading position of the line image sensor by two detecting means, The image correlation means
It is preferable to generate a plurality of correlation values obtained for each rotation angle of each scan line.

【0022】[0022]

【作用】前記本発明装置の構成によれば、原稿画像を走
査して読み取られた画像データと、前記画像データに対
応する走査位置とを順次入力し、走査位置に基づいて前
記画像データを画像メモリに格納する画像処理装置であ
って、重複して走査する重なり走査領域内の、前記画像
データと前記画像メモリに格納された格納データとから
前記走査位置の位置ずれを検出し、前記位置ずれを補正
する補正値を出力する位置ずれ検出手段と、前記補正値
に基づいて前記走査位置を補正する補正手段と、補正さ
れた走査位置に基づいて前記画像データを前記画像メモ
リに格納する写像手段とを少なくとも備えていることに
より、入力した走査位置に位置誤差が含まれていても、
重複して走査する重なり走査領域内の画像データと格納
データとの画像情報から走査位置の位置ずれを検出し
て、位置ずれを補正することができる。そして、この補
正した走査位置に基づいて画像データを画像メモリに格
納することにより、走査位置の位置誤差によって生じる
画像の接続ずれを防止し、画像メモリ内で接続された平
面画像の画像歪みを低減することができる。
According to the configuration of the apparatus of the present invention, the image data read by scanning the original image and the scanning position corresponding to the image data are sequentially input, and the image data is imaged based on the scanning position. An image processing device for storing in a memory, wherein a positional deviation of the scanning position is detected from the image data and the stored data stored in the image memory in an overlapping scanning area for overlapping scanning, and the positional deviation is detected. Displacement detecting means for outputting a correction value for correcting the scanning position, correction means for correcting the scanning position based on the correction value, and mapping means for storing the image data in the image memory based on the corrected scanning position. By including at least, even if the input scanning position includes a position error,
The positional deviation of the scanning position can be detected from the image information of the image data and the stored data in the overlapping scanning area in which the scanning is performed redundantly, and the positional deviation can be corrected. Then, by storing the image data in the image memory based on the corrected scanning position, the image connection deviation caused by the position error of the scanning position is prevented, and the image distortion of the planar image connected in the image memory is reduced. can do.

【0023】前記本発明装置の構成において、補正値を
所定の割合で可変する補正制御手段がさらに備わり、補
正手段は、所定の割合で可変された前記補正値に基づい
て走査位置を補正するという好ましい例によれば、位置
ずれを補正する補正値を所定の割合で可変制御し、補正
された走査位置に基づいて画像データを画像メモリに格
納することができるので、走査位置の補正によって生じ
る画像メモリ内の画像データが格納されない領域の発生
が抑制される。また、走査位置が急激に補正されないこ
とから、画像データと格納データとの画像情報から位置
ずれを検出する場合の相関値の検出範囲を小さくするこ
とができるので、回路の小型化が図られる。さらには、
画像メモリ内の画像データが格納されない領域の発生
(写像抜け)が防止されることから、重複した走査領域
内の画像データと格納データとの画像情報から位置ずれ
を検出する際の相関値の誤差を小さくすることができる
ので、位置ずれ検出の精度が向上する。
The configuration of the apparatus of the present invention further comprises a correction control means for changing the correction value at a predetermined ratio, and the correction means corrects the scanning position based on the correction value changed at the predetermined ratio. According to the preferable example, the correction value for correcting the positional deviation is variably controlled at a predetermined ratio, and the image data can be stored in the image memory based on the corrected scanning position. Occurrence of an area where image data is not stored in the memory is suppressed. In addition, since the scanning position is not rapidly corrected, the detection range of the correlation value when detecting the positional deviation from the image information of the image data and the stored data can be reduced, so that the circuit can be downsized. Furthermore,
Since the occurrence of a region (image missing) in the image memory where the image data is not stored is prevented, the error of the correlation value when detecting the positional deviation from the image information of the image data and the stored data in the overlapping scanning region Can be made smaller, so that the accuracy of positional deviation detection is improved.

【0024】また、前記本発明装置の構成において、補
正された走査位置と、対応する画像データとを遅延させ
る遅延手段がさらに備わり、写像手段は、遅延した走査
位置に基づいて対応する画像データを画像メモリに格納
することにより、前記走査位置の位置ずれを検出する位
置と画像データを前記画像メモリに格納する格納位置と
を異ならせるという好ましい例によれば、位置ずれの検
出位置をイメージセンサの移動方向に対して先行させる
ことにより、リアルタイム処理で位置ずれの補正精度を
向上させることができる。ところで、リアルタイム処理
においては、画像データの画像メモリへの格納(写像処
理)と位置ずれ検出とを平行して行った場合に、着目画
素周辺に新規に写像して格納される画素が頻繁に発生す
るので、相関値が新規写像画素の影響を受ける。また、
手動走査時の手ぶれなどによって検出位置が前後する
と、さらに新規写像画素の影響が大きくなり、位置ずれ
の検出精度が低下する。しかし、上記のように画像デー
タを画像メモリに格納する格納位置(写像位置)と位置
ずれの検出位置とを異ならせ、位置ずれの検出位置をイ
メージセンサの移動方向に対して先行させることによ
り、新規写像画素の影響を抑えて位置ずれの検出精度を
向上させることができる。
Further, in the configuration of the apparatus of the present invention, a delay means for delaying the corrected scanning position and the corresponding image data is further provided, and the mapping means generates the corresponding image data based on the delayed scanning position. According to a preferred example in which the position where the positional deviation of the scanning position is detected and the storage position where the image data is stored in the image memory are made different by storing in the image memory, the position where the positional deviation is detected is determined by the image sensor. By making the movement direction precede, it is possible to improve the positional deviation correction accuracy in real time processing. By the way, in the real-time processing, when the image data is stored in the image memory (mapping processing) and the displacement detection is performed in parallel, pixels newly mapped and stored around the pixel of interest frequently occur. Therefore, the correlation value is affected by the new mapped pixel. Also,
If the detection position moves back and forth due to camera shake during manual scanning, the influence of the new mapped pixel becomes greater, and the detection accuracy of the positional deviation decreases. However, as described above, the storage position (mapping position) for storing the image data in the image memory is made different from the position where the positional deviation is detected, and the position where the positional deviation is detected precedes the moving direction of the image sensor. It is possible to suppress the influence of the new mapped pixel and improve the detection accuracy of the positional deviation.

【0025】また、前記本発明装置の構成において、位
置ずれ検出手段は、画像メモリに入力される画像データ
の走査確認情報を走査確認情報メモリに順次記憶する走
査領域保持手段と、前記走査確認情報メモリの走査確認
情報を検出することにより、重複して走査される重なり
走査領域を検出する重なり領域検出手段とを備えるとい
う好ましい例によれば、重複して読み取られる重なり走
査領域を特定することができるので、重なり走査領域内
の画像データと格納データとからのみ位置ずれを検出す
ることができる。また、この場合、画像メモリに格納す
る画像データのアドレスと、走査確認情報メモリに格納
する走査確認情報のアドレスとを共用にするという好ま
しい例によれば、アドレスの生成機構及びメモリ制御部
を簡素化することができ、さらには、同時にアクセスす
ることも可能となるので、アクセス速度の高速化が図ら
れる。また、この場合、重なり領域検出手段が行う走査
領域の判定に従って画像メモリへの画像データの格納を
制御するメモリ制御手段がさらに備わり、前記メモリ制
御手段は、重複して走査される重なり走査領域であると
判定した場合に前記画像メモリへの画像データの格納を
禁止するという好ましい例によれば、メモリ制御手段
は、新規に走査される領域のみの画像データを画像メモ
リへ格納することにより、走査位置誤差の小さい画像デ
ータを優先して画像メモリへ順次重ねて格納することが
できるので、合成画像の歪みが小さくなる。そして、こ
の格納済みの画像情報に基づいて位置ずれ検出を行え
ば、検出精度が向上する。
Further, in the structure of the apparatus of the present invention, the positional deviation detecting means includes a scanning area holding means for sequentially storing the scanning confirmation information of the image data input to the image memory in the scanning confirmation information memory, and the scanning confirmation information. According to the preferable example of including the overlapping area detection unit that detects the overlapping scanning areas that are redundantly scanned by detecting the scanning confirmation information of the memory, it is possible to specify the overlapping scanning areas that are redundantly read. Therefore, the positional deviation can be detected only from the image data and the stored data in the overlap scanning area. Further, in this case, according to a preferable example in which the address of the image data stored in the image memory and the address of the scanning confirmation information stored in the scanning confirmation information memory are shared, the address generation mechanism and the memory control unit are simplified. Further, the access speed can be increased because access can be made simultaneously and access can be made simultaneously. Further, in this case, there is further provided memory control means for controlling the storage of the image data in the image memory according to the determination of the scanning area performed by the overlapping area detection means, and the memory control means is provided for the overlapping scanning areas to be scanned in duplicate. According to a preferable example of prohibiting the storage of the image data in the image memory when it is determined that the image data is stored, the memory control unit stores the image data of only the newly scanned area in the image memory to perform scanning. Since image data having a small position error can be preferentially stored in the image memory in an overlapping manner, distortion of the composite image is reduced. If the positional deviation is detected based on the stored image information, the detection accuracy is improved.

【0026】また、前記本発明装置の構成において、位
置ずれ検出手段は、走査位置に基づいて算出される画像
データ中の各画素の原稿上における座標値に対応する画
像メモリの格納アドレスを着目画素位置とし、前記着目
画素位置を含むその周辺画素位置に対して、それぞれ前
記画像データと前記画像メモリに格納されている格納デ
ータとの相関値を検出する画像相関手段と、複数の前記
相関値から予め設定される補正値を生成する補正量算出
手段とを備えるという好ましい例によれば、位置ずれ検
出手段は、複数の相関値を用いることによって複数方向
に対して位置ずれを検出することができる。また、この
場合、位置ずれ検出手段は、相関対象となる画素位置に
おいて、着目画素位置を含むその周辺画素位置がすべて
重なり走査領域である場合にのみ、複数の相関値を生成
するという好ましい例によれば、相関値をすべて同一条
件で検出することができるので、複数の相関値を用いた
位置ずれの検出精度が向上する。
Further, in the configuration of the apparatus of the present invention, the positional deviation detecting means determines the storage address of the image memory corresponding to the coordinate value on the original of each pixel in the image data calculated based on the scanning position as the pixel of interest. A position and an image correlating means for detecting a correlation value between the image data and the stored data stored in the image memory with respect to the peripheral pixel positions including the target pixel position, and a plurality of the correlation values. According to a preferable example including a correction amount calculation unit that generates a preset correction value, the positional deviation detection unit can detect positional deviation in a plurality of directions by using a plurality of correlation values. . Further, in this case, the positional deviation detection means generates a plurality of correlation values only in the case where the pixel positions to be correlated are all the surrounding pixel positions including the pixel position of interest in the overlapping scanning region. According to this, since all the correlation values can be detected under the same condition, the positional deviation detection accuracy using a plurality of correlation values is improved.

【0027】また、前記本発明装置の構成において、補
正手段は、位置ずれ検出手段から出力される補正値を累
積した累積補正値を生成する保持手段を備え、前記累積
補正値によって走査位置を補正するという好ましい例に
よれば、位置ずれを無くす補正値を累積させることによ
り、累積誤差を含む走査位置の補正処理を小さい回路で
実現することができる。なぜなら、累積された補正位置
を中心に位置ずれを検出するために、位置ずれの検出範
囲を小さくすることができるからである。
Further, in the structure of the apparatus of the present invention, the correction means includes a holding means for generating a cumulative correction value by accumulating the correction values output from the positional deviation detection means, and the scanning position is corrected by the cumulative correction value. According to the preferable example described above, by accumulating the correction values for eliminating the positional deviation, it is possible to realize the correction processing of the scanning position including the accumulated error with a small circuit. This is because the misregistration detection range can be reduced because the misregistration is detected around the accumulated correction position.

【0028】また、前記本発明装置の構成において、写
像手段は、走査位置に基づいて、画像データ中の各画素
の原稿上における座標値に対応する画像メモリの格納ア
ドレスを生成するアドレス生成手段と、前記画像データ
中の各画素を前記画像メモリの前記格納アドレスに格納
するデータ格納手段とを備えるという好ましい例によれ
ば、アドレス生成手段は、走査位置の原稿上における座
標に基づいて格納アドレスを生成するので、対応する画
像データを画像メモリの所定の位置に格納することがで
きる。また、この場合、写像手段は、隣接する画素から
補間によって画像データを高密度化する画素密度変換手
段と、走査位置に基づいて、高密度化した前記画像デー
タ中の各画素の原稿上における実数座標値を、前記所定
の画素密度を単位として算出する手段と、前記原稿上に
おける実数座標値を、前記所定の画素密度を単位とする
整数座標値に変換する整数化手段と、前記座標値の整数
化の際に生じる座標誤差値を算出する手段と、前記整数
座標値を画像メモリのアドレスに変換する手段と、前記
座標誤差値の大きさと予め決められた所定の値とを比較
する手段とを備え、前記座標誤差値の大きさが前記所定
の値以下である画素のみを前記画像メモリのアドレスに
格納するという好ましい例によれば、格納アドレスに対
して誤差の小さい画素データを選択して画像メモリに格
納することができるので、格納した画像の再現品位が向
上する。この格納データを位置ずれ検出に用いれば、歪
みの小さい接続合成画像が得られ、平面画像の品位が向
上する。この場合さらに、画素密度変換手段は、被処理
画素とその周辺の隣接画素を用いて補間画素を生成する
手段を備え、当該手段によって画像データを2倍の画素
密度に変換するという好ましい例によれば、画素密度を
上げることにより、画像の再現品位が向上する。さらに
は、補間処理を2のべき乗(2n )で実現することがで
きることから、回路をビットシフトで構成することがで
きるので、回路の簡素化が図られる。そして、この場
合、被処理画素Pi,j (但し、画像データ中、iライン
目の画像データのj番目の画素データを示す。)とその
周辺の隣接画素Pi,j+1 、Pi-1,j 、Pi-1,j+1 を用い
て、上記(数1)より補間画素Qi,j、Ri,j 、Si,j
を算出するという好ましい例によれば、所定の補間画素
を容易に生成することができる。また、この場合さら
に、所定の値は、所定の画素密度を単位として0.3〜
0.35であるという好ましい例によれば、写像抜け画
素を無くすことができる。
Further, in the configuration of the apparatus of the present invention, the mapping means includes an address generating means for generating a storage address of the image memory corresponding to the coordinate value of each pixel in the image data on the document based on the scanning position. According to a preferred example of comprising a data storage unit for storing each pixel in the image data at the storage address of the image memory, the address generation unit determines the storage address based on the coordinates of the scanning position on the document. Since it is generated, the corresponding image data can be stored at a predetermined position in the image memory. Further, in this case, the mapping means is a pixel density conversion means for densifying the image data from adjacent pixels by interpolation, and a real number on the original of each pixel in the densified image data based on the scanning position. A unit for calculating coordinate values in units of the predetermined pixel density; an integer unit for converting real number coordinate values on the original document into integer coordinate values in units of the predetermined pixel density; A means for calculating a coordinate error value generated at the time of conversion into an integer, a means for converting the integer coordinate value into an address of an image memory, and a means for comparing the magnitude of the coordinate error value with a predetermined value. According to a preferred example in which only the pixels whose magnitude of the coordinate error value is equal to or smaller than the predetermined value are stored in the address of the image memory, the pixel data having a small error with respect to the storage address is stored. It is possible to store and select the data in the image memory, thereby improving the reproducibility quality image stored. If this stored data is used for detecting the displacement, a connected composite image with small distortion can be obtained, and the quality of the planar image is improved. In this case, the pixel density conversion means further includes means for generating an interpolated pixel by using the pixel to be processed and adjacent pixels around the pixel to be processed, and the means converts the image data to double the pixel density. For example, by increasing the pixel density, the quality of image reproduction is improved. Furthermore, since the interpolation process can be realized by a power of 2 (2 n ), the circuit can be configured by bit shift, so that the circuit can be simplified. Then, in this case, the pixel to be processed P i, j (however, in the image data, the j-th pixel data of the image data on the i-th line is shown) and its neighboring pixels P i, j + 1 , P i. -1, j , P i-1, j + 1 , the interpolation pixels Q i, j , R i, j , S i, j are calculated from the above (Equation 1).
According to the preferable example of calculating, the predetermined interpolation pixel can be easily generated. Further, in this case, the predetermined value is 0.3 to 0.3 with the predetermined pixel density as a unit.
According to the preferable example of 0.35, it is possible to eliminate mapping missing pixels.

【0029】また、前記本発明装置の構成において、画
像データと走査位置は、画像を読み取るイメージセンサ
と、前記イメージセンサの読み取り位置を2つの検出手
段によって検出する位置検出手段とを備えた入力装置か
ら入力されるという好ましい例によれば、2つの検出手
段によってイメージセンサの走査位置を特定することが
できるので、往復した一筆書きの走査によって大きな原
稿を読み取ることができる。また、この場合、イメージ
センサはラインセンサであるという好ましい例によれ
ば、ライン単位で原稿を走査することができることか
ら、容易に小型化が図られる。また、この場合、入力装
置はハンドスキャナであるという好ましい例によれば、
原稿上の所望の位置と領域を自由に入力することができ
るので、操作性が向上する。また、この場合、検出手段
は、原稿面に接触して回転する車輪と、前記車輪の回転
に対応してパルスを出力するエンコーダとにより構成さ
れるという好ましい例によれば、タブレット若しくは基
準格子が印刷されたシートを補助装置として用いるハン
ドスキャナに比較して、高価な補助装置を必要としない
ので、小型で、携帯性、操作性に優れたも画像処理装置
を実現することができる。この場合さらに、エンコーダ
は、位相の異なる2系統のパルスを出力するという好ま
しい例によれば、位相の異なる2系統のパルスをカウン
トすることにより、車輪の回転方向と移動距離を検出す
ることができるので、所定の位置を基準とした車輪の移
動後の位置を検出することができる。また、この場合、
入力装置は、携帯型情報機器の本体に着脱自在に取り付
けられているという好ましい例によれば、小型で、操作
性に優れた入力装置が実現される。
Further, in the configuration of the device of the present invention, the image data and the scanning position include an image sensor for reading an image, and an input device provided with position detecting means for detecting the reading position of the image sensor by two detecting means. According to the preferable example of inputting from, the scanning position of the image sensor can be specified by the two detecting means, so that a large original can be read by reciprocating one-stroke writing. Further, in this case, according to a preferable example in which the image sensor is a line sensor, since the document can be scanned line by line, the size can be easily reduced. Further, in this case, according to a preferable example in which the input device is a hand scanner,
Since the desired position and area on the original can be freely input, operability is improved. Further, in this case, according to a preferable example in which the detection unit is configured by a wheel that rotates in contact with the document surface and an encoder that outputs a pulse corresponding to the rotation of the wheel, the tablet or the reference grid is Compared to a hand scanner that uses a printed sheet as an auxiliary device, an expensive auxiliary device is not required, so that it is possible to realize an image processing device that is small in size and excellent in portability and operability. In this case, further, according to the preferable example in which the encoder outputs pulses of two systems having different phases, the encoder can detect the rotation direction and the moving distance of the wheel by counting the pulses of two systems having different phases. Therefore, it is possible to detect the position of the wheel after the movement based on the predetermined position. Also in this case,
According to a preferable example in which the input device is detachably attached to the main body of the portable information device, a small-sized input device excellent in operability is realized.

【0030】また、前記本発明装置の構成において、走
査位置を、所定の座標を中心として複数の所定の角度で
回転させる座標回転変換手段がさらに備わり、位置ずれ
検出手段は、複数の所定の角度に対応する走査位置の座
標に基づいて、それぞれ画像データ中の各画素の原稿上
における座標値を算出し、前記座標値に対応する画像メ
モリの格納アドレスを着目画素位置とし、前記着目画素
位置を含むその周辺画素位置に対して、それぞれ前記画
像データと前記画像メモリに格納されている格納データ
との相関値を検出する画像相関手段と、前記所定の角度
に対し、それぞれ得られる複数の前記相関値から予め設
定される所定の角度補正量と所定の位置補正量を含む補
正値を生成する補正量算出手段とを備えるという好まし
い例によれば、座標変換手段によって回転変換された走
査位置座標に基づいて位置ずれを検出することができる
ので、イメージセンサの回転方向の位置ずれを検出する
ことができる。その結果、画像メモリ内に接続された平
面画像の画像品位が向上する。また、この場合、位置ず
れ検出手段は、相関対象となる画素位置において、各回
転角度に対して得られる着目画素位置を含むその周辺画
素位置がすべて重なり走査領域である場合にのみ、複数
の相関値を生成するという好ましい例によれば、相関値
をすべて同一条件で検出するができるので、複数の相関
値を用いた位置ずれの検出精度が向上する。また、この
場合、画像相関手段は、各回転角度に対してそれぞれ得
られる複数の相関値を生成するという好ましい例によれ
ば、各回転角度ごとに相関値を生成することにより、回
転方向のずれを検出するための相関値を得ることができ
る。また、この場合、画像データと走査位置は、画像を
読み取るラインイメージセンサと、前記ラインイメージ
センサの読み取り位置を2つの検出手段によって検出す
る位置検出手段とを備えた入力装置から入力され、座標
回転変換手段は、前記ラインイメージセンサ両端の走査
位置座標を座標上で複数方向に走査ライン単位で回転変
換するという好ましい例によれば、座標上におけるライ
ンイメージセンサの両端位置を回転変換することによ
り、回転方向の位置ずれを走査ライン単位で検出するこ
とができるので、簡単な回路によって回転方向の位置ず
れを検出することができる。また、この場合、画像デー
タと走査位置は、画像を読み取るラインイメージセンサ
と、前記ラインイメージセンサの読み取り位置を2つの
検出手段によって検出する位置検出手段とを備えた入力
装置から入力され、画像相関手段は、各走査ライン単位
の回転角度に対してそれぞれ得られる複数の相関値を生
成するという好ましい例によれば、回転方向の位置ずれ
を走査ライン単位で検出することにより、座標上におけ
るラインイメージセンサの両端位置を簡単な回路によっ
て精度良く補正することができる。その結果、小型化及
び高解像度化が可能なラインイメージセンサを入力装置
に用いることができる。
Further, in the structure of the device of the present invention, there is further provided coordinate rotation conversion means for rotating the scanning position at a plurality of predetermined angles about predetermined coordinates, and the position deviation detection means is provided at a plurality of predetermined angles. The coordinate value of each pixel in the image data on the original is calculated based on the coordinates of the scanning position corresponding to the pixel position, and the storage address of the image memory corresponding to the coordinate value is set as the pixel position of interest. Image correlating means for detecting a correlation value between the image data and the stored data stored in the image memory for each of its peripheral pixel positions, and a plurality of the correlations obtained for the predetermined angle, respectively. According to a preferable example in which a predetermined angle correction amount preset from the value and a correction amount calculation means for generating a correction value including a predetermined position correction amount are provided, It is possible to detect the positional deviation based on the rotation converted scan position coordinate by the conversion means, it is possible to detect the positional deviation in the rotational direction of the image sensor. As a result, the image quality of the flat image connected in the image memory is improved. Further, in this case, the positional deviation detecting means, at the pixel position to be correlated, only if the surrounding pixel positions including the target pixel position obtained for each rotation angle are overlapping scanning regions, a plurality of correlations are detected. According to the preferable example of generating the value, all the correlation values can be detected under the same condition, so that the positional deviation detection accuracy using a plurality of correlation values is improved. Further, in this case, according to a preferable example in which the image correlation unit generates a plurality of correlation values obtained for each rotation angle, the rotation direction shift is generated by generating the correlation value for each rotation angle. It is possible to obtain a correlation value for detecting Further, in this case, the image data and the scanning position are input from an input device equipped with a line image sensor for reading an image and a position detecting means for detecting the reading position of the line image sensor by means of a coordinate rotation. According to a preferred example in which the conversion unit rotationally converts the scanning position coordinates of both ends of the line image sensor in a plurality of directions on the coordinate, by rotationally converting both end positions of the line image sensor on the coordinate, Since the positional deviation in the rotational direction can be detected for each scanning line, the positional deviation in the rotational direction can be detected by a simple circuit. Further, in this case, the image data and the scanning position are inputted from an input device equipped with a line image sensor for reading an image and a position detecting means for detecting the reading position of the line image sensor, and the image correlation is obtained. According to a preferred example in which the means generates a plurality of correlation values obtained for each rotation angle of each scanning line, by detecting the positional deviation in the rotation direction for each scanning line, the line image on the coordinate is detected. Both ends of the sensor can be accurately corrected with a simple circuit. As a result, it is possible to use a line image sensor capable of miniaturization and high resolution as an input device.

【0031】[0031]

【実施例】以下、実施例を用いて本発明をさらに具体的
に説明する。 <第1の実施例>まず、本発明の第1の実施例の画像処
理装置について、図面を参照しながら説明する。図1は
本発明の第1の実施例における画像処理装置及び原稿画
像を読み取り走査する画像読み取り部を示すブロック図
である。図1中、Aは画像処理装置を示し、Bは画像読
み取り部を示す。
EXAMPLES The present invention will be described in more detail below with reference to examples. <First Embodiment> First, an image processing apparatus according to a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an image processing apparatus and an image reading unit for reading and scanning an original image according to a first embodiment of the present invention. In FIG. 1, A indicates an image processing apparatus and B indicates an image reading unit.

【0032】図1に示すように、原稿9の上を手動によ
って走査し、原稿画像を読み取ることにより、ラインイ
メージセンサ1が画像データを生成する。そして、生成
された画像データは、画像バッファ4に出力される。
As shown in FIG. 1, the line image sensor 1 generates image data by manually scanning the original 9 and reading the original image. Then, the generated image data is output to the image buffer 4.

【0033】図16に示すように、原稿画像を読み取り
走査する画像読み取り部Bは、ラインイメージセンサ1
が取り付けられたハンドスキャナ本体の匡体104と、
ラインイメージセンサ1の両端位置に装備された2個の
車輪31、32と、各車輪31、32にそれぞれ取り付
けられ、車輪31、32の回転を検出するエンコーダ2
a、2bとを備えている。各エンコーダ2a、2bは、
車輪31、32の回転角度に応じて90度だけ位相の異
なる2相のA相パルスとB相パルスを発生させる。そし
て、このA相パルスとB相パルスを用いて、車輪31、
32の回転方向が検出される。A相パルスとB相パルス
は90度だけ位相が異なるため、B相パルスの立ち上が
りによって検出されるA相パルスのレベルは、車輪3
1、32の回転方向によって「H」レベルと「L」レベ
ルとに識別される。識別された信号341、361の
「L」レベルを車輪31、32の前進方向(UP方向)
とすれば、「H」レベルは車輪31、32の後進方向
(DOWN方向)となる。位置カウンタ33、35は、
信号341、361が「L」レベルの場合に、B相パル
ス数に従ってカウント値を増加させ、信号341、36
1が「H」レベルの場合に、B相パルス数に従ってカウ
ント値を減少させる。位置座標検出回路37は、位置カ
ウンタ33、35からのカウント値331、351を入
力し、車輪31、32の回転方向を考慮した各車輪3
1、32の移動距離を検出する。
As shown in FIG. 16, the image reading section B for reading and scanning the original image is the line image sensor 1
And the case 104 of the hand scanner body to which is attached,
Two wheels 31, 32 provided at both ends of the line image sensor 1 and an encoder 2 attached to each wheel 31, 32 for detecting the rotation of the wheels 31, 32
a and 2b. Each encoder 2a, 2b
Two-phase A-phase pulse and B-phase pulse having different phases by 90 degrees are generated according to the rotation angles of the wheels 31 and 32. Then, using the A-phase pulse and the B-phase pulse, the wheels 31,
The rotation direction of 32 is detected. Since the A-phase pulse and the B-phase pulse have a phase difference of 90 degrees, the level of the A-phase pulse detected by the rising edge of the B-phase pulse is
The “H” level and the “L” level are identified according to the rotation directions of 1, 32. The "L" level of the identified signals 341 and 361 is set to the forward direction of the wheels 31 and 32 (UP direction).
Then, the "H" level is in the reverse direction (DOWN direction) of the wheels 31, 32. The position counters 33 and 35 are
When the signals 341 and 361 are at “L” level, the count value is increased according to the number of B-phase pulses, and the signals 341 and 36 are increased.
When 1 is "H" level, the count value is decreased according to the number of B-phase pulses. The position coordinate detection circuit 37 inputs the count values 331 and 351 from the position counters 33 and 35, and considers the rotation directions of the wheels 31 and 32.
The moving distances of 1 and 32 are detected.

【0034】次に、図1に示すように、走査位置検出回
路3は、車輪31、32の移動距離に基づいて各車輪3
1、32の原稿9上における座標を算出する。さらに、
走査位置検出回路3は、各車輪31、32の座標をライ
ンイメージセンサ1の両端の各読み取り画素の座標に変
換し、走査位置座標300として位置ずれ検出回路7に
出力する。図16に示すように、走査位置検出回路3
は、位置座標検出回路37、位置カウンタ33、35、
により構成されるが、その動作の詳細については後述す
る。
Next, as shown in FIG. 1, the scanning position detecting circuit 3 determines each wheel 3 based on the moving distance of the wheels 31, 32.
The coordinates of 1 and 32 on the original 9 are calculated. further,
The scanning position detection circuit 3 converts the coordinates of the wheels 31 and 32 into the coordinates of the read pixels at both ends of the line image sensor 1 and outputs the coordinates as scanning position coordinates 300 to the misregistration detection circuit 7. As shown in FIG. 16, the scanning position detection circuit 3
Is a position coordinate detection circuit 37, position counters 33, 35,
However, details of the operation will be described later.

【0035】写像回路5は、画像バッファ4から出力さ
れる画像データ400を画素密度変換し、高密度化画像
データ500を出力する。位置ずれ検出回路7は、写像
回路5から出力される高密度化画像データ500と、画
像メモリ6に格納された格納データの相関値を算出す
る。さらに、位置ずれ検出回路7は、この相関値に基づ
いて算出される位置補正量を用いて走査位置座標300
を補正し、補正位置座標710として写像回路5に出力
する。さらに、写像回路5は、位置ずれ検出回路7から
出力される補正位置座標710を用いて、画像メモリ6
のアドレスを生成する。そして、写像回路5は、高密度
化画像データ500の各画素データを、バス600を介
して画像メモリ6に格納する。写像回路5及び位置ずれ
検出回路7の動作の詳細については後述する。
The mapping circuit 5 performs pixel density conversion on the image data 400 output from the image buffer 4 and outputs densified image data 500. The positional shift detection circuit 7 calculates a correlation value between the high-density image data 500 output from the mapping circuit 5 and the stored data stored in the image memory 6. Further, the position shift detection circuit 7 uses the position correction amount calculated based on this correlation value to scan position coordinate 300.
Is corrected and output to the mapping circuit 5 as corrected position coordinates 710. Further, the mapping circuit 5 uses the corrected position coordinates 710 output from the position shift detection circuit 7 to generate the image memory 6
Generates the address of. Then, the mapping circuit 5 stores each pixel data of the densified image data 500 in the image memory 6 via the bus 600. Details of the operations of the mapping circuit 5 and the positional deviation detection circuit 7 will be described later.

【0036】次に、走査位置検出回路3の動作につい
て、さらに詳細に説明する。図2は走査位置検出回路の
動作説明図である。図2において、太線は2個の車輪3
1、32の移動軌跡を示している。ラインイメージセン
サ1(図1)がiライン目の画素データを読み取ったと
きの2個の車輪31、32の位置を示す座標を、それぞ
れP0i (X0i ,Y0i )、P1i (X1i ,Y
i )とする。今、P0i-1 、P1i-1 の座標が既知で
あるとすれば、P0i 及びP1i の座標は、下記(数
2)を用いて近似的に算出される。
Next, the operation of the scanning position detecting circuit 3 will be described in more detail. FIG. 2 is an operation explanatory diagram of the scanning position detection circuit. In FIG. 2, the thick line indicates two wheels 3
The movement loci of 1 and 32 are shown. The coordinates indicating the positions of the two wheels 31, 32 when the line image sensor 1 (FIG. 1) reads the pixel data of the i-th line are P0 i (X0 i , Y0 i ) and P1 i (X1 i , respectively). , Y
1 i ). Now, assuming that the coordinates of P0 i-1 and P1 i-1 are known, the coordinates of P0 i and P1 i are approximately calculated using the following (Equation 2).

【0037】[0037]

【数2】 [Equation 2]

【0038】ここで、・は乗算を行う演算であり、/は
除算を行う演算である。以後、・は乗算を示す演算子、
/は除算を示す演算子として用いる。L0i-1 は、読み
取り開始時から(i−1)ライン目の読み取りを行った
時までに車輪31、32が移動した距離である。△L0
i は、(i−1)ライン目の読み取り開始時からiライ
ン目の読み取を行った時までに車輪31、32が移動し
た距離である。移動距離は、車輪31、32の回転方向
を考慮するので、マイナスの値にもなり得る。また、車
輪31、32の原稿9上における移動距離は、図16に
示すエンコーダ2a、2bのパルス数Nと1パルス当た
りの分解能P(インチ/1パルス)を用い、P×Nを計
算することによって得られる。位置座標検出回路37
は、位置カウンタ33、35のカウント値331、35
1をラインイメージセンサ1の読み取り周期に同期して
読み取り、iライン目と(i−1)ライン目で検出した
カウント値の差分から、車輪31、32の回転方向を含
む原稿9上における移動距離△L0i を検出する。D
は、車輪31と車輪32との間の距離である。上記(数
1)は、△θ=|θi −θi-1 |=|△L0i −△L1
i |/Dを0とした近似計算である。△θは、ラインイ
メージセンサ1の1ライン走査時間の間におけるライン
イメージセンサ1の変化角度である。上記(数1)を用
いることにより、読み取り開始時における2つの車輪3
1、32の座標を決めておけば、2つの車輪31、32
の移動距離からそれらの座標を算出することができる。
Here, · is an operation for multiplication and / is an operation for division. Hereafter, * is an operator indicating multiplication,
/ Is used as an operator indicating division. L0 i-1 is the distance traveled by the wheels 31 and 32 from the start of reading to the time of reading the (i-1) th line. △ L0
i is the distance traveled by the wheels 31 and 32 from the start of reading the (i-1) th line to the time of reading the i-th line. The moving distance can be a negative value because the rotation direction of the wheels 31 and 32 is taken into account. Further, the moving distance of the wheels 31 and 32 on the original 9 should be calculated as P × N by using the pulse number N of the encoders 2a and 2b and the resolution P (inch / 1 pulse) per pulse shown in FIG. Obtained by Position coordinate detection circuit 37
Indicates the count values 331, 35 of the position counters 33, 35.
1 in synchronism with the reading cycle of the line image sensor 1, and based on the difference between the count values detected on the i-th line and the (i-1) -th line, the moving distance on the document 9 including the rotation directions of the wheels 31 and 32. ΔL0 i is detected. D
Is the distance between the wheel 31 and the wheel 32. In the above (Equation 1), Δθ = | θ i −θ i−1 | = | ΔL0 i −ΔL1
This is an approximate calculation with i | / D set to 0. Δθ is a change angle of the line image sensor 1 during one line scanning time of the line image sensor 1. By using the above (Equation 1), the two wheels 3 at the start of reading
If the coordinates of 1 and 32 are decided, the two wheels 31 and 32
The coordinates can be calculated from the moving distance of the.

【0039】図3はラインイメージセンサの両端部の読
み取り画素の座標を算出する場合の説明図である。車輪
31の座標をP0(X0,Y0)、車輪32の座標をP
1(X1,Y1)とする。ラインイメージセンサ1の両
端部の画素の座標Ps(Xs,Ys)及びPe(Xe,
Ye)は、下記(数3)によって算出される。
FIG. 3 is an explanatory diagram in the case of calculating the coordinates of the read pixels at both ends of the line image sensor. The coordinates of the wheel 31 are P0 (X0, Y0), and the coordinates of the wheel 32 are P
1 (X1, Y1). The coordinates Ps (Xs, Ys) and Pe (Xe,
Ye) is calculated by the following (Equation 3).

【0040】[0040]

【数3】 (Equation 3)

【0041】ここで、Dは車輪31と車輪32との間の
距離、d1は車輪31から読み取り画素Psまでの距
離、d2は車輪31から読み取り画素Peまでの距離で
ある。走査位置検出回路3は、エンコーダ2a、2bが
発生させる2相パルスから得られる車輪31、32の移
動距離を用いて、上記(数2)及び(数3)の演算を行
い、ラインイメージセンサ1の両端部の読み取り画素の
座標Ps(Xs,Ys)、Pe(Xe,Ye)を、走査
位置座標300として位置ずれ検出回路7に出力する。
Here, D is the distance between the wheel 31 and the wheel 32, d1 is the distance from the wheel 31 to the read pixel Ps, and d2 is the distance from the wheel 31 to the read pixel Pe. The scanning position detection circuit 3 uses the moving distances of the wheels 31 and 32 obtained from the two-phase pulses generated by the encoders 2a and 2b to perform the calculations of (Formula 2) and (Formula 3), and the line image sensor 1 The coordinates Ps (Xs, Ys) and Pe (Xe, Ye) of the read pixels at both ends of are output to the misregistration detection circuit 7 as scanning position coordinates 300.

【0042】図4はラインイメージセンサの走査領域の
説明図である。図4を用いて、原稿9の読み取り領域幅
がラインイメージセンサ1の長さよりも大きい場合の、
ラインイメージセンサ1の手動走査による動きについて
説明する。原稿9を読み取るために、操作者は、ハンド
スキャナ本体を原稿9に接触させ、原稿9の上を往復運
動させながら手動走査する。このとき、ハンドスキャナ
本体に取り付けられた2個の車輪31、32が回転し、
エンコーダ2a、2bから2相パルスが出力される。図
4は、ラインイメージセンサ1によって読み取られる原
稿9上の読み取り領域を示している。
FIG. 4 is an explanatory diagram of the scanning area of the line image sensor. Referring to FIG. 4, when the reading area width of the original 9 is larger than the length of the line image sensor 1,
The movement of the line image sensor 1 by manual scanning will be described. In order to read the original 9, the operator brings the hand scanner body into contact with the original 9 and performs manual scanning while reciprocating on the original 9. At this time, the two wheels 31, 32 attached to the hand scanner body rotate,
Two-phase pulses are output from the encoders 2a and 2b. FIG. 4 shows a reading area on the original 9 read by the line image sensor 1.

【0043】ラインイメージセンサ1は原稿9の全幅を
走査することができないため、画像読み取り部B(図
1)は、ラインイメージセンサ1の往復運動によって原
稿9の全体を読み取る。図4には、ラインイメージセン
サ1の両端画素のみの位置が記載されているが、ライン
イメージセンサ1は両端画素を結ぶライン上の画像を読
み取る。例えば、ラインイメージセンサ1の両端画素が
それぞれA点とB点である場合、ラインイメージセンサ
1はA点とB点を結ぶライン上を読み取っている(以
後、これを「読み取り位置A−B」と記す。)。
Since the line image sensor 1 cannot scan the entire width of the original 9, the image reading section B (FIG. 1) reads the entire original 9 by the reciprocating motion of the line image sensor 1. Although the positions of only the pixels at both ends of the line image sensor 1 are shown in FIG. 4, the line image sensor 1 reads an image on a line connecting the pixels at both ends. For example, when the pixels at both ends of the line image sensor 1 are points A and B, respectively, the line image sensor 1 reads on the line connecting the points A and B (hereinafter, this is referred to as "reading position AB"). It is written.).

【0044】図4において、ラインイメージセンサ1
は、読み取り位置A−Bを走査開始位置として、読み取
り位置C−Dまで走査する。A点、B点、D点、C点に
よって囲まれる領域ABDCを読み取った画像データ中
の各画素は、走査位置検出回路3(図1)から出力され
る走査位置座標300に基づき、写像回路5(図1)に
よって画像メモリ6に新規に格納される。以後、このよ
うな領域を「新規走査領域」と称する。
In FIG. 4, the line image sensor 1
Scans to the reading position CD with the reading position AB as the scanning start position. Each pixel in the image data obtained by reading the area ABCD surrounded by the points A, B, D, and C is based on the scanning position coordinate 300 output from the scanning position detection circuit 3 (FIG. 1), and the mapping circuit 5 It is newly stored in the image memory 6 by (FIG. 1). Hereinafter, such a region will be referred to as a "new scan region".

【0045】次に、ラインイメージセンサ1は、戻り方
向に移動し、読み取り位置C−Dから読み取り位置E−
Fまで走査する。C点、D点、G点、E点によって囲ま
れる領域CDGEは、重複して画像が読み取られる領域
である。以後、この重複して読み取られる領域を「重な
り走査領域」と称する。D点、G点、F点によって囲ま
れる領域DGFは、新規走査領域である。このように、
重なり走査領域CDGE、新規走査領域ABGEC及び
新規走査領域DFGの3つの走査領域が存在する。
Next, the line image sensor 1 moves in the returning direction and moves from the reading position CD to the reading position E-.
Scan to F. An area CDGE surrounded by points C, D, G, and E is an area where an image is read in an overlapping manner. Hereinafter, the area that is read redundantly is referred to as an “overlapping scanning area”. An area DGF surrounded by points D, G, and F is a new scanning area. in this way,
There are three scanning areas: an overlapping scanning area CDGE, a new scanning area ABGEC, and a new scanning area DFG.

【0046】走査位置座標300に位置誤差がなけれ
ば、この走査位置座標300に基づいて、読み取り画像
データ中の各画素を画像メモリ6に写像して格納するこ
とができる。すなわち、重なり走査領域CDGEの読み
取り画像データが画像メモリ6にオーバーライトされて
も、新規走査領域ABGECと重なり走査領域CDGE
の継ぎ目部分において、画像メモリ6中の読み取り画像
にずれが生じることはない。しかし、ハンドスキャナの
機構設計精度、車輪31、32と原稿9との間のスリッ
プ、車輪31、32の原稿9への沈み込み、曲線手動走
査時における車輪31と車輪32との間の幅の影響など
によって、走査位置座標300には位置誤差が含まれ
る。また、走査位置検出回路3は、エンコーダ2a、2
bから出力される2相パルスをカウントしてエンコーダ
2a、2bの移動距離を得るので、前記位置誤差が累積
される。このため、走査位置座標300を用いて画像デ
ータ400を画像メモリ6に写像すると、前記継ぎ目部
分に画像のずれが生じてしまう。ここで、「写像」と
は、読み取り画像データを画像メモリ6の所定のアドレ
スに格納する動作のことである。
If there is no position error in the scanning position coordinate 300, each pixel in the read image data can be mapped and stored in the image memory 6 based on the scanning position coordinate 300. That is, even if the read image data of the overlapping scanning area CDGE is overwritten in the image memory 6, the new scanning area ABGEC and the overlapping scanning area CDGE
At the seam portion, the read image in the image memory 6 is not displaced. However, the mechanism design accuracy of the hand scanner, the slip between the wheels 31 and 32 and the original document 9, the sinking of the wheels 31 and 32 into the original document 9 and the width between the wheels 31 and 32 during the manual scanning of the curve. Due to the influence and the like, the scanning position coordinate 300 includes a position error. Further, the scanning position detection circuit 3 includes encoders 2a, 2
Since the two-phase pulse output from b is counted to obtain the moving distance of the encoders 2a and 2b, the position error is accumulated. Therefore, when the image data 400 is mapped to the image memory 6 using the scanning position coordinate 300, the image shift occurs at the joint portion. Here, “mapping” refers to the operation of storing the read image data at a predetermined address of the image memory 6.

【0047】この画像のずれを無くすため、位置ずれ検
出回路7は、重なり走査領域CDGEの画像メモリ6に
格納された画像データと高密度化画像データ500とを
用いて、それらの相関度合いを示す相関値を算出する。
さらに、位置ずれ検出回路7は、この相関値に基づい
て、走査位置座標300を補正するための位置補正量を
算出する。位置ずれ検出回路7は、この位置補正量に従
って走査位置座標300を補正し、補正位置座標710
として写像回路5に出力する。写像回路5は、補正位置
座標710に従って、高密度化画像データ500中の各
画素を画像メモリ6に写像するためのアドレスを生成
し、これを画像メモリ6に格納する。尚、重なり走査領
域CDGEの抽出については後述する。
In order to eliminate this image shift, the position shift detection circuit 7 uses the image data stored in the image memory 6 of the overlap scanning area CDGE and the high density image data 500 to show the degree of correlation between them. Calculate the correlation value.
Further, the position shift detection circuit 7 calculates a position correction amount for correcting the scanning position coordinates 300 based on the correlation value. The position shift detection circuit 7 corrects the scanning position coordinate 300 according to the position correction amount, and the corrected position coordinate 710
Is output to the mapping circuit 5. The mapping circuit 5 generates an address for mapping each pixel in the densified image data 500 in the image memory 6 according to the corrected position coordinate 710, and stores the address in the image memory 6. The extraction of the overlap scanning area CDGE will be described later.

【0048】図7は画像メモリの説明図である。画像メ
モリ6の各画素のビットは、走査確認情報を保持する書
き込みフラグの記憶ビット(ビット7)と、画像データ
の記憶ビット(ビット0〜6)とにより構成されてい
る。ここで、画像データの記憶ビット数は特定されるも
のではなく、必要な階調数に応じて設計することができ
る。本実施例では128階調の画像を扱うものとし、0
から127の値を有する濃淡データを格納するために、
1画素当たり7ビットが画像メモリ6に確保される。ビ
ット7の書き込みフラグは、画像データが画像メモリ6
に書き込まれていない場合(すなわち、未格納状態の場
合)に「0」であり、画像データがすでに書き込まれて
いる場合(すなわち、格納状態の場合)には「1」とな
る。このように画像データを格納するメモリと走査確認
情報を格納するメモリとを共用すれば、アドレスの生成
及びメモリ制御部を簡素化することができ、さらには、
同時にアクセスすることも可能となるので、アクセス速
度の高速化が図られる。尚、画像データを格納するメモ
リと走査確認情報を格納するメモリを個別に構成するこ
ともでき、また、走査確認情報を画素単位ではなく、ブ
ロック単位で格納するようにしてもよい。画像データの
格納位置を特定できる走査確認情報を記憶させることが
できればよい。
FIG. 7 is an explanatory diagram of the image memory. The bit of each pixel of the image memory 6 is composed of a storage bit (bit 7) of a write flag that holds scanning confirmation information and a storage bit (bits 0 to 6) of image data. Here, the number of storage bits of the image data is not specified and can be designed according to the required number of gradations. In this embodiment, an image with 128 gradations is handled, and 0
To store grayscale data having values from 1 to 127,
7 bits per pixel are secured in the image memory 6. The write flag of bit 7 indicates that the image data is the image memory 6
If the image data has not been written to (i.e., in the unstored state), it is "0", and if the image data has already been written (i.e., in the stored state), it is "1". By thus sharing the memory for storing the image data and the memory for storing the scanning confirmation information, the address generation and the memory control unit can be simplified, and further,
Since it is possible to access at the same time, the access speed can be increased. It should be noted that the memory for storing the image data and the memory for storing the scanning confirmation information may be separately configured, and the scanning confirmation information may be stored in block units instead of pixel units. It is only necessary to be able to store the scanning confirmation information that can specify the storage position of the image data.

【0049】次に、位置ずれ検出回路7について、その
動作を説明する。図5は位置ずれ検出回路を示すブロッ
ク図である。ラインイメージセンサ1の読み取り走査が
開始される前に、画像メモリ6の全てのデータ、補正量
算出回路73の位置補正量703及び画像相関回路72
内の相関テーブルは、「0」に初期化される。この初期
化の後、ラインイメージセンサ1のラインの読み取り走
査ごとに、走査位置座標300が位置補正回路74によ
って補正され、補正位置座標710として写像回路5に
出力される。ラインイメージセンサ1の読み取り走査が
開始された時点においては、位置補正量703は「0」
であるため、走査位置座標300と補正位置座標710
は同じ座標値になる。
Next, the operation of the displacement detection circuit 7 will be described. FIG. 5 is a block diagram showing a position shift detection circuit. Before the reading scanning of the line image sensor 1 is started, all the data in the image memory 6, the position correction amount 703 of the correction amount calculation circuit 73, and the image correlation circuit 72.
The correlation table in is initialized to "0". After this initialization, the scanning position coordinates 300 are corrected by the position correction circuit 74 every time a line is scanned by the line image sensor 1 and output to the mapping circuit 5 as corrected position coordinates 710. At the time when the reading scan of the line image sensor 1 is started, the position correction amount 703 is “0”.
Therefore, the scanning position coordinate 300 and the correction position coordinate 710
Have the same coordinate values.

【0050】写像回路5は、画素密度変換処理によって
画像データ400を高密度化し、高密度化画像データ5
00を生成する。さらに、写像回路5は、入力される補
正位置座標710を用いて、高密度化画像データ500
の各画素データPnの画像メモリ6への格納アドレスA
DRnを算出する。写像回路5は、アドレスADRnに
従って、バス600を経由して画像メモリ6のアドレス
ADRnに格納されている画素データPnを読み出し、
この画素データPnをバス600を介して重なり領域検
出回路71に出力する。尚、写像回路5の動作の詳細に
ついては後述する。
The mapping circuit 5 densifies the image data 400 by a pixel density conversion process, and densifies the image data 400.
00 is generated. Further, the mapping circuit 5 uses the input corrected position coordinates 710 to densify the image data 500.
Storage address A of each pixel data Pn of
Calculate DRn. The mapping circuit 5 reads the pixel data Pn stored in the address ADRn of the image memory 6 via the bus 600 according to the address ADRn,
This pixel data Pn is output to the overlap area detection circuit 71 via the bus 600. The details of the operation of the mapping circuit 5 will be described later.

【0051】重なり領域検出回路71は、画素データP
nの書き込みフラグ(ビット7)をチェックし、この画
素データPnのアドレスADRnに画像データが格納済
みかどうかを判定する。画素データPnの書き込みフラ
グ(ビット7)が1の場合には、ラインイメージセンサ
1の読み取り走査によって画像データがすでにアドレス
ADRnに格納されていることを示しているので、画素
データPnは重なり走査領域に含まれていると判定され
る。また、画素データPnの書き込みフラグ(ビット
7)が0の場合には、画素データPnは新規走査領域に
含まれていると判定される。重なり領域検出回路71
は、判定信号701を画像相関回路72と写像回路5に
出力する。ここで、判定信号701は、画素データPn
が新規走査領域に含まれる場合に「0」、重なり走査領
域に含まれる場合に「1」となる信号である。
The overlap area detecting circuit 71 is arranged to detect the pixel data P.
The write flag (bit 7) of n is checked to determine whether the image data has been stored at the address ADRn of this pixel data Pn. When the write flag (bit 7) of the pixel data Pn is 1, it indicates that the image data has already been stored in the address ADRn by the reading scan of the line image sensor 1, so that the pixel data Pn overlaps the scan region. Is determined to be included in. When the write flag (bit 7) of the pixel data Pn is 0, it is determined that the pixel data Pn is included in the new scanning area. Overlapping area detection circuit 71
Outputs the determination signal 701 to the image correlation circuit 72 and the mapping circuit 5. Here, the determination signal 701 is the pixel data Pn
Is "0" when included in the new scanning area, and "1" when included in the overlapping scanning area.

【0052】画像相関回路72は、判定信号701が
「1」の場合に画素データPnについての相関値算出処
理を行い、判定信号701が「0」の場合には画素デー
タPnについての相関値算出処理を行わない。写像回路
5は、判定信号701が「0」の場合に高密度化画素デ
ータPnを画像メモリ6に格納し、判定信号701が
「1」の場合には高密度化画素データPnを画像メモリ
6に格納しない。この1画素単位の一連の処理動作を、
高密度化画像データ500の1ラインの全ての画素デー
タについて行う。
The image correlation circuit 72 performs a correlation value calculation process for the pixel data Pn when the determination signal 701 is "1", and a correlation value calculation for the pixel data Pn when the determination signal 701 is "0". Do not process. The mapping circuit 5 stores the densified pixel data Pn in the image memory 6 when the determination signal 701 is “0”, and stores the densified pixel data Pn when the determination signal 701 is “1”. Do not store in. This series of processing operations for each pixel is
This is performed for all pixel data of one line of the densified image data 500.

【0053】1ライン分の高密度化画像データ500の
上記処理が終了した時点で、画像相関回路72は、重な
り走査領域に含まれる画素についてのみ相関値計算処理
を行うことによって作成した相関テーブルを用いて、走
査位置座標300の位置ずれ方向を検出する。さらに、
画像相関回路72は、位置ずれをキャンセルするための
オフセット値702を補正量算出回路73に出力する。
1ライン全ての高密度化画素が新規走査領域に含まれる
場合には、画像相関回路72の相関テーブルは初期値
「0」のままである。この場合、オフセット値702は
「0」(位置ずれ無し)となる。
At the time when the above processing of the high density image data 500 for one line is completed, the image correlation circuit 72 creates a correlation table created by performing the correlation value calculation processing only for the pixels included in the overlap scanning area. The position shift direction of the scanning position coordinate 300 is detected by using this. further,
The image correlation circuit 72 outputs an offset value 702 for canceling the positional deviation to the correction amount calculation circuit 73.
When the densified pixels of all one line are included in the new scanning area, the correlation table of the image correlation circuit 72 remains the initial value "0". In this case, the offset value 702 is “0” (no positional deviation).

【0054】補正量算出回路73は、オフセット値70
2を、内部に保持している補正量の累積値に加算し、位
置補正量703として位置補正回路74に出力する。位
置補正回路74は、次に処理する1ラインの画像データ
の走査位置座標300と位置補正量703とを加算し、
補正位置座標710として写像回路5に出力する。以
後、上述した一連の処理を順次ラインごとに繰り返し行
う。
The correction amount calculation circuit 73 uses the offset value 70
2 is added to the accumulated value of the correction amount held therein, and the resultant value is output to the position correction circuit 74 as the position correction amount 703. The position correction circuit 74 adds the scanning position coordinates 300 of the image data of one line to be processed next and the position correction amount 703,
The correction position coordinates 710 are output to the mapping circuit 5. Thereafter, the above-described series of processing is sequentially repeated for each line.

【0055】次に、写像回路5の動作について、図6、
図7、図9を用いて説明する。図6は写像回路を示すブ
ロック図、図7は画像メモリの説明図、図9は画素密度
変換の説明図である。
Next, regarding the operation of the mapping circuit 5, FIG.
This will be described with reference to FIGS. 6 is a block diagram showing a mapping circuit, FIG. 7 is an explanatory diagram of an image memory, and FIG. 9 is an explanatory diagram of pixel density conversion.

【0056】図6に示すように、画素密度変換回路51
は、画像データ400中の1画素データにつき3つの補
間画素を生成し、2倍に高密度化された高密度化画像デ
ータ500を出力する。
As shown in FIG. 6, the pixel density conversion circuit 51.
Generates three interpolated pixels for each pixel data in the image data 400, and outputs the densified image data 500 that has been doubled in density.

【0057】まず、補間画素の生成方法について、図9
を用いて説明する。図9中、Pi,jは、画像データ40
0におけるiライン目の画像データのj番目の画素デー
タを示す。黒ドットは各画素データの座標点である。図
9(a)は画像データ400中の隣接する4つの画素を
示している。図9(b)において、Qi,j 、Ri,j 及び
i,j は、画像データ400中の画素データPi,j に対
する補間画素データである。各補間画素データQi,j
i,j 、Si,j は、上記(数1)によって算出される。
First, FIG. 9 shows a method of generating an interpolation pixel.
Will be explained. In FIG. 9, P i, j is the image data 40
The j-th pixel data of the image data of the i-th line at 0 is shown. Black dots are coordinate points of each pixel data. FIG. 9A shows four adjacent pixels in the image data 400. In FIG. 9B, Q i, j , R i, j and S i, j are interpolation pixel data for the pixel data P i, j in the image data 400. Each interpolated pixel data Q i, j ,
R i, j and S i, j are calculated by the above (Equation 1).

【0058】次に、座標値算出回路52について説明す
る。図6に示すように、座標値算出回路52には、ライ
ンイメージセンサ1の両端画素の補正後の座標値である
補正位置座標710が入力される。座標値算出回路52
は、入力された補正位置座標710を用いて高密度化画
像データ500の各画素の座標値520を計算する。図
7に示すようにラインイメージセンサ1の両端画素Ps
i 、Pei の座標(補正位置座標710)がそれぞれ
(Xsi ,Ysi )、(Xei ,Yei )である場合
の、座標値算出回路52の動作について説明する。サフ
ィックスiは、画像データ400のiライン目の補正位
置座標であることを示す。ここで、ラインイメージセン
サ1の読み取り画素密度を8画素/mm、画像メモリ6
に格納する画像の画素密度を8画素/mmとする。Xs
i 、Ysi 、Xei 及びYei は、1/8mmを単位と
する実数値である。
Next, the coordinate value calculation circuit 52 will be described. As shown in FIG. 6, the coordinate value calculation circuit 52 receives the corrected position coordinates 710 which are the coordinate values after the correction of the pixels at both ends of the line image sensor 1. Coordinate value calculation circuit 52
Calculates the coordinate value 520 of each pixel of the densified image data 500 using the input corrected position coordinates 710. As shown in FIG. 7, both end pixels Ps of the line image sensor 1
The operation of the coordinate value calculation circuit 52 when the coordinates of i and Pe i (correction position coordinates 710) are (Xs i , Ys i ) and (Xe i , Ye i ) respectively will be described. The suffix i indicates that it is the corrected position coordinate of the i-th line of the image data 400. Here, the read pixel density of the line image sensor 1 is 8 pixels / mm, and the image memory 6
The pixel density of the image stored in is set to 8 pixels / mm. Xs
i , Ys i , Xe i, and Ye i are real values in units of 1/8 mm.

【0059】ラインイメージセンサ1の1ラインの読み
取り画素数をNd、1ライン中の画素番号をjとした場
合、画素データPi,j の座標(XPi,j ,YPi,j
は、下記(数4)を用いて算出される。
When the number of read pixels in one line of the line image sensor 1 is Nd and the pixel number in one line is j , the coordinates (XP i, j , YP i, j ) of the pixel data P i, j
Is calculated using the following (Equation 4).

【0060】[0060]

【数4】 [Equation 4]

【0061】画素データPi,j に対応する3つの補間画
素データQi,j 、Ri,j 及びSi,jの座標(XQi,j
YQi,j )、(XRi,j ,YRi,j )及び(XSi,j
YS i,j )は、下記(数5)を用いて算出される。
Pixel data Pi, jInterpolated images corresponding to
Raw data Qi, j, Ri, jAnd Si, jCoordinates (XQi, j,
YQi, j), (XRi, j, YRi, j) And (XSi, j,
YS i, j) Is calculated using the following (Equation 5).

【0062】[0062]

【数5】 (Equation 5)

【0063】座標値算出回路52は、上記(数4)及び
(数5)に示す演算処理を行うことにより、高密度化画
像データ500中の各画素の座標値520を算出する。
整数化回路53は、実数値である座標値520を整数化
し、整数化座標値530を出力する。実数の座標値52
0を(Xreal,Yreal)、整数化座標値530を(X
int ,Yint )とすれば、整数化座標値は、下記(数
6)を用いて算出される。
The coordinate value calculation circuit 52 calculates the coordinate value 520 of each pixel in the densified image data 500 by performing the arithmetic processing shown in (Equation 4) and (Equation 5).
The integer conversion circuit 53 converts the real-valued coordinate value 520 into an integer and outputs an integer-converted coordinate value 530. Real number coordinate value 52
0 for (X real , Y real ), and the integer coordinate value 530 for (X real
int , Y int ), the integer coordinate value is calculated using the following (Equation 6).

【0064】[0064]

【数6】 (Equation 6)

【0065】(数6)において、[ ]は、小数点以下
を四捨五入する演算を示す。0.5を加算した後に小数
部切り捨て処理を行うことは、四捨五入することと等価
である。
In [Equation 6], [] indicates an operation of rounding off the decimal point. Performing the fractional part truncation process after adding 0.5 is equivalent to rounding off.

【0066】アドレス生成回路54は、整数化回路53
から出力された整数化座標値530を画像メモリ6のア
ドレス540に変換する。図10に、画像メモリのアド
レス配置を示す。画像メモリ6は、X方向にM画素、Y
方向にN画素のページメモリである。画像メモリ6の左
上の画素のアドレスは0、右上の画素のアドレスは(M
−1)、右下の画素のアドレスは(MN−1)である。
整数化座標値530を(Xint ,Yint )とすれば、画
像メモリ6のアドレスADRは、下記(数7)によって
算出される。
The address generation circuit 54 is an integer circuit 53.
The converted integer coordinate value 530 is converted into the address 540 of the image memory 6. FIG. 10 shows the address arrangement of the image memory. The image memory 6 has M pixels in the X direction and Y pixels.
The page memory has N pixels in the direction. The address of the upper left pixel of the image memory 6 is 0, and the address of the upper right pixel is (M
-1), the address of the lower right pixel is (MN-1).
If the integer coordinate value 530 is (X int , Y int ), the address ADR of the image memory 6 is calculated by the following (Equation 7).

【0067】[0067]

【数7】 (Equation 7)

【0068】誤差算出回路55には、実数の座標値52
0と整数化座標値530が入力され、実数の座標値52
0が整数化されたために生じる座標誤差550を比較回
路56に出力する。X方向の座標誤差をEx、Y方向の
座標誤差をEyとすれば、座標誤差(Ex,Ey)は、
下記(数8)によって算出される。
The error calculation circuit 55 has a real coordinate value 52.
0 and the integer coordinate value 530 are input, and the real coordinate value 52
The coordinate error 550 caused by converting 0 into an integer is output to the comparison circuit 56. If the coordinate error in the X direction is Ex and the coordinate error in the Y direction is Ey, the coordinate error (Ex, Ey) is
It is calculated by the following (Equation 8).

【0069】[0069]

【数8】 (Equation 8)

【0070】ここで、| |は絶対値をとる演算を示
す。以後、| |を、絶対値をとる演算子として用い
る。Ex及びEyは、0〜0.5の値をとる。比較回路
56は、座標誤差Ex、Eyと予め決められた所定の値
とを比較する。比較回路56は、座標誤差Ex及びEy
が共に前記所定の値よりも小さい場合に「1」となる信
号560をアクセス回路57に出力する。
Here, || indicates an operation that takes an absolute value. Hereinafter, || is used as an operator that takes an absolute value. Ex and Ey take values of 0 to 0.5. The comparison circuit 56 compares the coordinate errors Ex and Ey with a predetermined value. The comparison circuit 56 calculates the coordinate errors Ex and Ey
When both are smaller than the predetermined value, a signal 560 of “1” is output to the access circuit 57.

【0071】アクセス回路57は、バス600を介して
画像メモリ6(図5)をアクセスする。画像メモリ6の
アドレスは、アドレス生成回路54からアクセス回路5
7に出力されるアドレス540によって指定される。ア
クセス回路57による高密度化画像データ500の画像
メモリ6への格納は、判定信号701が「0」でかつ信
号560が「1」である場合にのみ行われる。すなわ
ち、高密度化画像データ500内の任意の画素の画像メ
モリ6への写像は、その画素が新規走査領域に含まれる
画素でかつ座標誤差Ex及びEyが共に前記所定の値よ
りも小さいという条件を満たす場合にのみ行われる。こ
の条件を満たさない画素は、画像メモリ6へ写像されな
い。この画像メモリ6上の格納済み領域に新規な画像デ
ータを格納しないメモリ制御を行うことにより、累積位
置誤差を含む走査位置が入力されても、手動で往復した
一筆書き走査によって順次重ねて読み取る際に、累積位
置誤差の小さい状態の画像データが優先して画像メモリ
6に格納されるので、画像メモリ6上には常に走査位置
誤差の小さい画像が格納される。この格納データを位置
ずれ検出に用いれば、歪みの小さい接続合成画像が得ら
れ、平面画像の品位が向上する。
The access circuit 57 accesses the image memory 6 (FIG. 5) via the bus 600. The address of the image memory 6 is transferred from the address generation circuit 54 to the access circuit 5
7 is designated by the address 540 output to No. 7. The access circuit 57 stores the high-density image data 500 in the image memory 6 only when the determination signal 701 is “0” and the signal 560 is “1”. That is, the mapping of an arbitrary pixel in the high-density image data 500 onto the image memory 6 is a condition that the pixel is a pixel included in the new scanning area and the coordinate errors Ex and Ey are both smaller than the predetermined value. It is performed only when the condition is met. Pixels that do not satisfy this condition are not mapped to the image memory 6. By performing memory control so that new image data is not stored in the stored area on the image memory 6, even if a scanning position including a cumulative position error is input, when the scanning is repeated by manual reciprocating one-stroke writing In addition, since the image data having a small cumulative position error is preferentially stored in the image memory 6, the image memory 6 always stores an image having a small scanning position error. If this stored data is used for detecting the displacement, a connected composite image with small distortion can be obtained, and the quality of the planar image is improved.

【0072】図11は高密度化画像データの画像メモリ
への写像動作の説明図である。図11(a)は、高密度
化画像データ500を示す。図11(a)において、黒
ドットは各画素P、Q、R、Sの座標値である。高密度
化画像データ500の画素密度は、最小で16画素/m
mである。図11(b)は、画像メモリ6の画素を示
す。図11(b)において、黒ドットは画素Wの座標値
である。距離Uは、写像回路5の比較回路56において
用いられる所定の値を示している。画像メモリ6は、画
素密度が8画素/mmの画像データを格納する。図11
(c)は、高密度化画像データ500(図11(a))
と画像メモリ6の画素(図11(b))を同一の座標系
で重ねた場合の例である。図11(c)の場合、高密度
画像データ500の各画素P、Q、R、Sの各座標値
は、領域Tの外側にあるため、画素P、Q、R、Sのい
ずれも画像メモリ6の画素Wには写像されない。すなわ
ち、画像メモリ6の中に、原稿読み取り領域であるにも
関わらず写像されない画素(写像抜け画素)が存在する
ことになる。写像抜け画素は、領域Tを広げることによ
って無くすことができる。しかし、領域Tを広げると写
像時の座標誤差が大きくなるので、画像メモリ6に写像
された画像の歪みが大きくなる。画像の歪みの点からす
ると、領域Tは狭いほど良い。
FIG. 11 is an explanatory view of the mapping operation of the high density image data onto the image memory. FIG. 11A shows high-density image data 500. In FIG. 11A, the black dots are the coordinate values of the pixels P, Q, R, and S. The pixel density of the high-density image data 500 is a minimum of 16 pixels / m
m. FIG. 11B shows pixels of the image memory 6. In FIG. 11B, the black dot is the coordinate value of the pixel W. The distance U indicates a predetermined value used in the comparison circuit 56 of the mapping circuit 5. The image memory 6 stores image data having a pixel density of 8 pixels / mm. Figure 11
(C) is the high-density image data 500 (FIG. 11A).
And pixels of the image memory 6 (FIG. 11B) are overlapped in the same coordinate system. In the case of FIG. 11C, since the coordinate values of each pixel P, Q, R, and S of the high-density image data 500 are outside the area T, all the pixels P, Q, R, and S are in the image memory. It is not mapped to pixel W of 6. That is, in the image memory 6, there are pixels that are not imaged even though they are the original reading area (pixels that are missing images). The mapping missing pixels can be eliminated by expanding the region T. However, when the area T is widened, the coordinate error at the time of mapping becomes large, so that the distortion of the image mapped in the image memory 6 becomes large. From the viewpoint of image distortion, the smaller the area T, the better.

【0073】写像抜け画素を無くすための距離Uの上限
値Umax は、画像メモリ6の画素ピッチを単位として下
記(数9)によって表される。
The upper limit value U max of the distance U for eliminating mapping missing pixels is expressed by the following (Equation 9) with the pixel pitch of the image memory 6 as a unit.

【0074】[0074]

【数9】 [Equation 9]

【0075】本実施例の場合、画像メモリ6の画素密度
は8画素/mmであるので、単位は1/8mmとなる。
距離Uを0.35とすることにより、写像抜け画素を無
くすことができる。ある程度の写像抜け画素の発生を許
容して、画像ひずみを低減することに重点を置く場合に
は、距離Uは0.3〜0.35の範囲に設定すればよ
い。距離Uを0.3以下にすると、写像抜け画素が多発
し、再現画像の画質が著しく低下する。
In the case of this embodiment, since the pixel density of the image memory 6 is 8 pixels / mm, the unit is 1/8 mm.
By setting the distance U to 0.35, it is possible to eliminate mapping missing pixels. In the case where the occurrence of a certain number of missing pixels is allowed and emphasis is placed on reducing image distortion, the distance U may be set in the range of 0.3 to 0.35. When the distance U is set to 0.3 or less, image-missing pixels occur frequently, and the image quality of a reproduced image significantly deteriorates.

【0076】図5に示す位置ずれ検出回路7の動作説明
に戻る。図8は相関テーブルの説明図である。画像相関
回路72について、主に図8を用いて説明する。図8
(a)は相関処理の対象となる相関位置の説明図、図8
(b)は相関テーブルの説明図である。位置補正回路7
4に入力されるiライン目の走査位置座標300をP1
0(X1,Y1)、P20(X2,Y2)とし、位置補
正量703を△Xoffset i 、△Yoffseti とする。位置
補正回路74は、走査位置座標300及び位置補正量7
03を用い、下記(数10)によって補正位置座標71
0のP11(X3,Y3)、P21(X4,Y4)を算
出する。
Description of the operation of the positional deviation detection circuit 7 shown in FIG.
Return to FIG. 8 is an explanatory diagram of the correlation table. Image correlation
The circuit 72 will be described mainly with reference to FIG. Figure 8
8A is an explanatory diagram of a correlation position that is a target of correlation processing, and FIG.
(B) is an explanatory view of a correlation table. Position correction circuit 7
The scanning position coordinate 300 of the i-th line input in 4 is set to P1.
0 (X1, Y1), P20 (X2, Y2)
Positive amount 703 is △ Xoffset i, △ YoffsetiAnd position
The correction circuit 74 uses the scanning position coordinate 300 and the position correction amount 7
03, using the following (Equation 10), the corrected position coordinate 71
Calculate P11 (X3, Y3) and P21 (X4, Y4) of 0
Put out.

【0077】[0077]

【数10】 [Equation 10]

【0078】画像相関回路72は、重なり領域検出回路
71からの判定信号701が「1」の場合(すなわち、
被処理画素が重なり走査領域に含まれている場合)にの
み、被処理画素について相関値を算出し、相関テーブル
の更新を行う。被処理画素の座標に対応する画像メモリ
6中の画素Pnを着目画素とする。相関値の算出は、被
処理画素の座標を微小値だけ増減した座標に対応する画
像メモリ6中の画素データと被処理画素の画素データと
の差分値を算出することによって行われる。
The image correlation circuit 72 operates when the determination signal 701 from the overlap area detection circuit 71 is "1" (that is,
Only when the processed pixel is included in the overlapping scanning area), the correlation value is calculated for the processed pixel, and the correlation table is updated. The pixel Pn in the image memory 6 corresponding to the coordinates of the pixel to be processed is the pixel of interest. The correlation value is calculated by calculating the difference value between the pixel data in the image memory 6 and the pixel data of the pixel to be processed, which corresponds to the coordinate obtained by increasing or decreasing the coordinate of the pixel to be processed by a minute value.

【0079】着目画素Pnの座標を(Xn,Yn)、微
小座標値を△hx、△hyとした場合、被処理画素の相
関値算出の対象となる画素データPhの座標(Xhmn
Yh mn)は、下記(数11)によって算出される。
The coordinates of the pixel of interest Pn are (Xn, Yn)
If the small coordinate values are Δhx and Δhy, the phase of the pixel to be processed
Coordinates (Xhmn,
Yh mn) Is calculated by the following (Equation 11).

【0080】[0080]

【数11】 [Equation 11]

【0081】ここで、m、nは、それぞれ−1、0、1
の値をとる。また、[ ]は、小数点以下を四捨五入す
る演算を示す。図8(a)において、P12→P22
は、m=1、n=1の場合の相関値を算出する1ライン
の位置を示している。この相関値算出の対象座標に対応
する相関テーブルの値をh(m,n)とすると、図8
(b)に示す相関テーブルが作成される。
Here, m and n are -1, 0 and 1 respectively.
Takes the value of. In addition, [] indicates an operation of rounding off after the decimal point. In FIG. 8A, P12 → P22
Indicates the position of one line for calculating the correlation value when m = 1 and n = 1. Assuming that the value of the correlation table corresponding to the target coordinates for calculating the correlation value is h (m, n), FIG.
A correlation table shown in (b) is created.

【0082】高密度化画像データ500の1ライン中の
画素番号をj、データ値をDnj 、画像メモリ6中の相
関値算出の対象となる画素データをDhjmn とすれば、
各相関テーブルの値h(m,n)は、下記(数12)に
よって算出される。
If the pixel number in one line of the high-density image data 500 is j, the data value is Dn j , and the pixel data for which the correlation value is to be calculated in the image memory 6 is Dh jmn ,
The value h (m, n) of each correlation table is calculated by the following (Equation 12).

【0083】[0083]

【数12】 (Equation 12)

【0084】ここで、ho(m,n)は、画素番号(j
−1)までの相関値計算によって生成された相関値テー
ブルの値である。1ラインの相関値計算を開始する前
に、相関テーブルの値は全て「0」に初期化される。
Here, ho (m, n) is the pixel number (j
It is a value of the correlation value table generated by the correlation value calculation up to -1). Before starting the correlation value calculation for one line, all the values in the correlation table are initialized to "0".

【0085】画像相関回路72は、上記の相関値計算
を、高密度化画像データ500中の1ラインの全ての画
素について行うことにより、相関テーブルを完成させ
る。また、相関値算出の対象座標は、上記(数10)に
よって算出される補正位置座標710である。
The image correlation circuit 72 completes the correlation table by performing the above correlation value calculation for all the pixels of one line in the densified image data 500. The target coordinates for calculating the correlation value are the corrected position coordinates 710 calculated by the above (Equation 10).

【0086】画像相関回路72は、1ラインの相関値の
計算が終了した時点で、h(m,n)の最小値を保持す
る(mmin ,nmin )を検索し、オフセット値702と
して補正量算出回路73に出力する。相関テーブル中に
複数の最小値が存在し、その最小値に(mmin
min )=(0,0)が含まれる場合には、(0,0)
の最小値が優先して用いられる。相関テーブル中の相関
値h(mmin ,nmin )が最も小さいということは、
(△hx×mmin ,△hy×nmin )の微小値を各画素
の座標に加算して写像した場合に、画像メモリ6中の画
像とこれから写像しようとするラインの画像とが最もよ
く一致することを示している。また、複数の最小値が存
在し、その最小値に相関窓の中心が含まれる場合には、
オフセット値702は「0」とする。例えば、3×3の
相関窓を設定すれば、h(0,0)が相関窓の中心とな
る。ここで、m、nは、それぞれ−1、0、1の値をと
るものとする。
The image correlation circuit 72 retrieves (m min , n min ) holding the minimum value of h (m, n) at the time when the calculation of the correlation value of one line is completed, and corrects it as the offset value 702. It is output to the amount calculation circuit 73. There are a plurality of minimum values in the correlation table, and the minimum value is (m min ,
n min ) = (0,0) is included, (0,0)
The minimum value of is used preferentially. The fact that the correlation value h (m min , nmin ) in the correlation table is the smallest means that
When a minute value of (Δhx × m min , Δhy × n min ) is added to the coordinates of each pixel for mapping, the image in the image memory 6 and the image of the line to be mapped best match. It shows that you do. Also, when there are multiple minimum values and the minimum value includes the center of the correlation window,
The offset value 702 is “0”. For example, if a 3 × 3 correlation window is set, h (0,0) becomes the center of the correlation window. Here, m and n take values of −1, 0, and 1, respectively.

【0087】補正量算出回路73は、オフセット値70
2(mmin ,nmin )を用いて下記(数13)に示す演
算を行う。ここで、オフセット値702を、△X=△h
x×mmin 、△Y=△hy×nmin とする。
The correction amount calculation circuit 73 uses the offset value 70
The calculation shown in the following (Equation 13) is performed using 2 (m min , nmin ). Here, the offset value 702 is defined as △ X = △ h
Let x × m min and ΔY = Δhy × n min .

【0088】[0088]

【数13】 (Equation 13)

【0089】上記(数13)において、サフィックスi
は、高密度化画像データ500のiライン目の相関テー
ブル完成時における位置補正量703を表わす。位置補
正回路74は、走査位置座標300に(△Xoffseti
△Yoffseti )を加算することによって走査位置座標3
00の補正を行い、補正位置座標710として出力す
る。
In the above (Equation 13), the suffix i
Represents the position correction amount 703 when the correlation table of the i-th line of the high-density image data 500 is completed. The position correction circuit 74 displays (ΔXoffset i ,
Scan position coordinate 3 by adding ΔY offset i ).
00 is corrected and output as corrected position coordinates 710.

【0090】以上のように、本実施例の画像処理装置の
構成によれば、入力した走査位置に位置誤差が含まれて
いても、重複して走査する重なり走査領域内の画像デー
タと格納データとの画像情報から走査位置の位置ずれを
検出して、位置ずれを補正することができる。そして、
この補正した走査位置に基づいて画像データを画像メモ
リ6に格納することにより、走査位置の位置誤差によっ
て生じる画像の接続ずれを防止し、画像メモリ6内で接
続された平面画像の画像歪みを低減することができる。
As described above, according to the configuration of the image processing apparatus of the present embodiment, even if the input scanning position includes a positional error, the image data and the stored data in the overlapping scanning area that are scanned in duplicate are stored. The positional deviation of the scanning position can be detected from the image information of and to correct the positional deviation. And
By storing the image data in the image memory 6 based on the corrected scanning position, connection deviation of images caused by a positional error of the scanning position is prevented, and image distortion of the planar image connected in the image memory 6 is reduced. can do.

【0091】尚、本実施例においては、相関対象画素位
置を9箇所としているが、必ずしも9箇所に限定される
ものではない。位置ずれ量が大きい場合には、相関対象
画素位置をより多くして、相関範囲を広げてもよい。ま
た、相関テーブルの作成をN(N>1)走査ライン間隔
で行い、N(N>1)走査ライン間隔で位置ずれの補正
を行ってもよい。例えば、N=8としてもよい。
In the present embodiment, the correlation target pixel positions are nine, but the positions are not necessarily limited to nine. When the amount of displacement is large, the number of correlation target pixel positions may be increased to widen the correlation range. Alternatively, the correlation table may be created at N (N> 1) scanning line intervals and the positional deviation may be corrected at N (N> 1) scanning line intervals. For example, N = 8 may be set.

【0092】<第2の実施例>次に、本発明の第2の実
施例として、画像相関回路72(図5)で検出される位
置ずれに対応したオフセット値702が大きい場合の処
理について説明する。
<Second Embodiment> Next, as a second embodiment of the present invention, a description will be given of the processing when the offset value 702 corresponding to the positional deviation detected by the image correlation circuit 72 (FIG. 5) is large. To do.

【0093】画像相関回路72で検出される位置ずれに
対応したオフセット値702が大きい場合、位置補正量
703はオフセット値702が加算される位置で大きく
変化し、その結果、補正位置座標710は補正される位
置で大きく変化する。
When the offset value 702 corresponding to the positional deviation detected by the image correlation circuit 72 is large, the position correction amount 703 greatly changes at the position where the offset value 702 is added, and as a result, the corrected position coordinate 710 is corrected. The position changes greatly.

【0094】補正位置座標710が大きく変化したとき
の画像メモリ6におけるデータの格納状態を、図15を
用いて説明する。図15は画像メモリにおけるデータの
格納状態を示す説明図である。図15では、(i−1)
ライン目を画像相関検出を行うラインとし、iライン目
を位置補正を行うラインとする。また、(i−1)ライ
ン目の両端画素をPsi-1 、Pei-1 、iライン目の両
端画素をPsi 、Pe i として記載している。
When the corrected position coordinate 710 changes significantly
15 shows the data storage state in the image memory 6 of FIG.
It demonstrates using. FIG. 15 shows the data in the image memory.
It is explanatory drawing which shows a storage state. In FIG. 15, (i-1)
The i-th line is used as the line for image correlation detection
Is the line for position correction. In addition, (i-1)
Ps for both end pixelsi-1, Pei-1, I-th line both
Edge pixel is Psi, Pe iIt has been described as.

【0095】図15に示すように、補正される量が大き
く変化する位置における補正位置座標710に従って、
写像回路5が画像メモリ6に画像データを格納すると、
(i−1)ライン目とiライン目のライン間にはデータ
が格納されない領域(位置補正による写像抜け領域)が
発生する。
As shown in FIG. 15, according to the correction position coordinate 710 at the position where the amount to be corrected greatly changes,
When the mapping circuit 5 stores image data in the image memory 6,
An area in which no data is stored (a mapping missing area due to position correction) occurs between the (i-1) th line and the i-th line.

【0096】このデータが格納されない領域の発生を抑
える方法について、図12、図13、図14を用いて説
明する。図12は分割制御回路を含む位置ずれ検出回路
のブロック図、図13は分割制御回路のタイミングチャ
ート図、図14は位置補正量と分割位置補正量との違い
を説明するための図である。
A method of suppressing the generation of the area in which the data is not stored will be described with reference to FIGS. 12, 13 and 14. FIG. 12 is a block diagram of a positional deviation detection circuit including a division control circuit, FIG. 13 is a timing chart of the division control circuit, and FIG. 14 is a diagram for explaining the difference between the position correction amount and the division position correction amount.

【0097】図12において、図5の位置ずれ検出回路
7のブロック図と異なる点は、画像相関回路72のオフ
セット値702が補正量算出回路73に直接入力されて
いない点である。オフセット値702は、分割制御回路
75によってデータが格納されない領域(位置補正によ
る写像抜け領域)の発生を抑える分割オフセット値70
4に変換された後、補正量算出回路73に入力される。
12 is different from the block diagram of the positional deviation detection circuit 7 in FIG. 5 in that the offset value 702 of the image correlation circuit 72 is not directly input to the correction amount calculation circuit 73. The offset value 702 is a division offset value 70 that suppresses the occurrence of an area (image missing area due to position correction) in which data is not stored by the division control circuit 75.
After being converted into 4, it is input to the correction amount calculation circuit 73.

【0098】位置補正による写像抜け領域の発生を抑え
るために、レジスタ754にはオフセット値702を分
割するパラメータNBが保持されている。オフセット値
702は、レジスタ754に保持されている分割パラメ
ータNBによって除算器751で除算され、スイッチ7
52はスイッチ制御753の制御出力によって除算器7
51の出力をON/OFFする。「ON」の場合は、除
算器751から分割オフセット値704が出力され、
「OFF」の場合には、分割オフセット値704は出力
されない(オフセット値無し)。分割パラメータNBが
n であれば、除算器751はnビットシフトで構成す
ることができる。尚、分割パラメータNBは特定される
ものではなく、オフセット値702のとり得る最大値に
応じて任意に設定することができる。
A parameter NB for dividing the offset value 702 is held in the register 754 in order to suppress the occurrence of the mapping missing area due to the position correction. The offset value 702 is divided by the divider 751 by the division parameter NB held in the register 754, and the switch 7
52 is a divider 7 depending on the control output of the switch control 753.
Turn ON / OFF the output of 51. When “ON”, the division offset value 704 is output from the divider 751.
In the case of “OFF”, the division offset value 704 is not output (no offset value). If the division parameter NB is 2 n , the divider 751 can be configured by n-bit shift. The division parameter NB is not specified and can be arbitrarily set according to the maximum value that the offset value 702 can take.

【0099】図13を用いて、分割制御回路75の動作
をタイミングチャートに従って説明する。ここでは、分
割パラメータNBを4として説明する。また、画像相関
を最初に行うライン位置をi番目とし、8走査ライン間
隔で画像相関検出を行うものとする。図13において
は、iライン目を0(ライン位置)、(i+8)ライン
目を8(ライン位置)というように、数のみが記載され
ている。
The operation of the division control circuit 75 will be described with reference to FIG. 13 according to a timing chart. Here, the division parameter NB will be described as 4. Further, it is assumed that the line position where the image correlation is first performed is i-th and the image correlation detection is performed at intervals of 8 scanning lines. In FIG. 13, only the number is described such that the i-th line is 0 (line position) and the (i + 8) -th line is 8 (line position).

【0100】写像回路5は、ラインセンサ1が読み取っ
た1ラインの画像信号をすべて写像した時点で、1ライ
ンのライン同期信号をバス600を経由して分割制御回
路75、画像相関回路72に出力する。
The mapping circuit 5 outputs the line synchronization signal of one line to the division control circuit 75 and the image correlation circuit 72 via the bus 600 when all the image signals of one line read by the line sensor 1 are mapped. To do.

【0101】画像相関回路72は、走査が開始される最
初のライン位置を初期化ライン位置(i=0のライン位
置)とし、初期化ライン位置からライン同期信号をカウ
ントする。そして、カウント数iを8で割った余りが0
の場合に、画像相関検出を行い(i=0の初期化ライン
位置は除く。)、次のライン位置の読み取りが開始され
る前に、オフセット値702をライン同期信号に同期し
て更新する。画像相関検出が終了すると、画像相関回路
72は、相関終了信号をバス600を経由して分割制御
回路75のスイッチ制御753に出力する。スイッチ制
御753は、画像相関回路72の相関終了信号を受信し
た次のライン位置を、カウント値で1とし、次のライン
位置からライン同期信号のカウントを開始する。レジス
タ754に保持されている分割パラメータNBに対応し
て、スイッチ制御753は、「1≦カウント値≦4」の
場合にスイッチ752をONにし、「カウント値>4」
の場合にスイッチ752をOFFにする。
The image correlation circuit 72 sets the first line position where the scanning is started to the initialization line position (i = 0 line position), and counts the line synchronization signal from the initialization line position. Then, the remainder obtained by dividing the count number i by 8 is 0.
In this case, the image correlation detection is performed (excluding the initialization line position of i = 0), and the offset value 702 is updated in synchronization with the line synchronization signal before the reading of the next line position is started. When the image correlation detection ends, the image correlation circuit 72 outputs the correlation end signal to the switch control 753 of the division control circuit 75 via the bus 600. The switch control 753 sets the count value of the next line position at which the correlation end signal of the image correlation circuit 72 is received, and starts counting the line synchronization signal from the next line position. In response to the division parameter NB held in the register 754, the switch control 753 turns ON the switch 752 when “1 ≦ count value ≦ 4” and “count value> 4”.
In the case of, the switch 752 is turned off.

【0102】補正量算出回路73は、分割した分割オフ
セット値704を入力し、1ライン前の位置補正量70
5を格納したレジスタ731の累積値と分割オフセット
値704を加算器732で加算し、分割制御された位置
補正量(以下「分割位置補正量」という。)705とし
て位置補正回路74に出力する。
The correction amount calculation circuit 73 inputs the divided division offset value 704, and receives the position correction amount 70 for one line before.
The accumulated value of the register 731 storing 5 and the division offset value 704 are added by the adder 732, and output to the position correction circuit 74 as a position correction amount 705 (hereinafter referred to as “division position correction amount”) controlled by division.

【0103】次に、補正量算出回路73において、オフ
セット値702を入力して生成する位置補正量703
(分割制御なし、図5)と、分割オフセット値704を
入力して生成する分割位置補正量705(分割制御あ
り)との違いについて、図14を用いて説明する。
Next, in the correction amount calculation circuit 73, the position correction amount 703 generated by inputting the offset value 702 is input.
The difference between (without division control, FIG. 5) and division position correction amount 705 (with division control) generated by inputting the division offset value 704 will be described with reference to FIG.

【0104】図13と同様に、画像相関を最初に行うラ
イン位置をi番目とし、8走査ライン間隔で画像相関検
出を行うものとする。図14においては、iライン目を
0(ライン位置)、(i+8)ライン目を8(ライン位
置)というように、数のみが記載されている。また、位
置ずれのキャンセルを行うオフセット値702は、X方
向、Y方向ともに同じ処理であるため、X方向の一方だ
けが記載されている。また、i番目のライン位置では、
補正量算出回路73のレジスタ731の累積値は
「0」、分割制御回路75のレジスタ754の分割数は
4として説明する。尚、3×3の相関窓を設定した場合
には、このように分割数は4で十分であり、5×5の相
関窓を設定した場合には、分割数は8で十分である。本
発明の特許請求の範囲の請求項3に記載した「可変制御
量」とは、分割オフセット値704のことである。
Similar to FIG. 13, it is assumed that the line position where the image correlation is first performed is i-th and the image correlation is detected at the intervals of 8 scanning lines. In FIG. 14, only the numbers are described such that the i-th line is 0 (line position) and the (i + 8) -th line is 8 (line position). Further, since the offset value 702 for canceling the positional deviation is the same processing in both the X direction and the Y direction, only one of the X directions is described. Also, at the i-th line position,
It is assumed that the cumulative value of the register 731 of the correction amount calculation circuit 73 is “0” and the number of divisions of the register 754 of the division control circuit 75 is 4. Incidentally, when the correlation window of 3 × 3 is set, the number of divisions is 4 as described above, and when the correlation window of 5 × 5 is set, the number of divisions of 8 is sufficient. The “variable control amount” described in claim 3 of the present invention is the division offset value 704.

【0105】図14において、iライン目と(i+8)
ライン目で画像相関検出を行うことから、画像相関回路
72からのオフセット値702は、(i+1)ライン目
(オフセット値=△hx×m)と(i+9)ライン目
(オフセット値=−△hx×m)で出力される。
In FIG. 14, the i-th line and (i + 8)
Since the image correlation detection is performed on the line, the offset value 702 from the image correlation circuit 72 is the (i + 1) th line (offset value = Δhx × m) and the (i + 9) th line (offset value = −Δhx ×). It is output in m).

【0106】分割制御を行わない場合(図5)、補正量
算出回路73は、オフセット値702を入力し、次の
(i+1)ライン目において、レジスタ731の累積値
(累積値=0)とオフセット値の△hx×mを加算した
位置補正量703を得る。また同様に、補正量算出回路
73は、(i+9)ライン目において、レジスタ731
の累積値(累積値=△hx×m)とオフセット値の−△
hx×mを加算した位置補正量703を得る。
When the division control is not performed (FIG. 5), the correction amount calculation circuit 73 inputs the offset value 702, and in the next (i + 1) line, the accumulated value (cumulative value = 0) of the register 731 and the offset The position correction amount 703 is obtained by adding the value Δhx × m. Similarly, the correction amount calculation circuit 73 causes the register 731 to operate on the (i + 9) th line.
Cumulative value (cumulative value = Δhx × m) and offset value −Δ
A position correction amount 703 obtained by adding hx × m is obtained.

【0107】分割制御を行う場合、補正量算出回路73
は、分割オフセット値704を入力し、次の(i+1)
ライン目において、レジスタ731の累積値(累積値=
0)とオフセット値の△hx×(m/4)を加算した分
割位置補正量705を得る。また、補正量算出回路73
は、(i+2)ライン目において、レジスタ731の累
積値(累積値=△hx×(m/4))とオフセット値の
△hx×(m/4)を加算した分割位置補正量705を
得る。以降、(i+4)ライン目まで、順次△hx×
(m/4)だけ増加する分割位置補正量705を得る。
(i+4)ライン目から(i+8)ライン目までは、分
割オフセット値704が0となるために変化しない。ま
た、補正量算出回路73は、(i+9)ライン目におい
て、レジスタ731の累積値(累積値=△hx×m)と
オフセット値の−△hx×(m/4)を加算した分割位
置補正量705を得る。以降、(i+9)ライン目から
(i+12)ライン目まで、順次−△hx×(m/4)
だけ減少する分割位置補正量705を得る。(i+1
3)ライン目からは、分割オフセット値704が0とな
るために変化しない。
When performing division control, the correction amount calculation circuit 73
Inputs the division offset value 704, and the next (i + 1)
In the line, the cumulative value of the register 731 (cumulative value =
0) and the offset value Δhx × (m / 4) are added to obtain a division position correction amount 705. In addition, the correction amount calculation circuit 73
At the (i + 2) th line, the division position correction amount 705 is obtained by adding the cumulative value (cumulative value = Δhx × (m / 4)) of the register 731 and the offset value Δhx × (m / 4). After that, up to the (i + 4) th line, Δhx ×
A division position correction amount 705 that increases by (m / 4) is obtained.
From the (i + 4) th line to the (i + 8) th line, since the division offset value 704 is 0, there is no change. In addition, the correction amount calculation circuit 73 adds the accumulated value (cumulative value = Δhx × m) of the register 731 and the offset value −Δhx × (m / 4) at the (i + 9) th line, the division position correction amount. To obtain 705. After that, from the (i + 9) th line to the (i + 12) th line, −Δhx × (m / 4)
A division position correction amount 705 that is reduced by just (I + 1
3) Since the division offset value 704 becomes 0 from the line 3, it does not change.

【0108】分割制御を行わない場合、大きなオフセッ
ト値702が検出されると、そのまま画像相関検出を行
う(i−1)ライン目と次のiライン目で、位置補正量
703が大きく増加又は減少する。このため、図15に
示すように、(i−1)ライン目とiライン目のライン
間には、データが格納されない領域(補正による写像抜
け領域)が発生する。
If the large offset value 702 is detected without the division control, the position correction amount 703 is greatly increased or decreased between the (i-1) th line and the next i-th line where the image correlation detection is performed as it is. To do. For this reason, as shown in FIG. 15, an area in which no data is stored (a mapping missing area due to correction) occurs between the (i-1) th line and the i-th line.

【0109】一方、分割制御を行う場合には、大きなオ
フセット値702が検出されても、分割制御回路75が
オフセット値702をラインごとに分割するので、画像
相関検出を行う(i−1)ライン目と次のiライン目
で、分割位置補正量705は徐々に増加又は減少する。
このため、図16に示すように、(i−1)ライン目と
「分割制御なし」の場合のiライン目との間に、分割制
御によって設定されるhiライン目が設定され、(i−
1)ライン目とiライン目のライン間におけるデータが
格納されない領域(補正による写像抜け領域)の発生が
抑えられる。ここで、hiライン目は両端画素をP
hi、Pehiとして記載されている。
On the other hand, when division control is performed, even if a large offset value 702 is detected, the division control circuit 75 divides the offset value 702 line by line, so that image correlation detection is performed on (i-1) line. The division position correction amount 705 gradually increases or decreases between the eye and the next i-th line.
For this reason, as shown in FIG. 16, the hi-th line set by the division control is set between the (i-1) -th line and the i-th line in the case of "no division control", and (i-
1) It is possible to suppress the occurrence of a region (a mapping missing region due to correction) in which data is not stored between the line of the 1st line and the line of the i-th line. Here, in the hi line, both end pixels are set to P
It is described as s hi and Pe hi .

【0110】また、相関対象範囲を広げた場合には、大
きなオフセット値によって走査位置が補正されることと
なるので、データが格納されない領域(補正による写像
抜け領域)が多発する。この場合、分割制御を行うこと
により、画像メモリ6にデータが格納されない領域(補
正による写像抜け領域)の発生が抑えられ、画像相関検
出を行う場合の位置ずれ検出精度が向上する。その結
果、画像メモリ6上に再現される画像品位が向上する。
Further, when the correlation target range is widened, the scanning position is corrected by a large offset value, so that there are many areas where data is not stored (map missing areas due to correction). In this case, by performing the division control, it is possible to suppress the generation of a region where the data is not stored in the image memory 6 (a mapping missing region due to the correction), and improve the positional deviation detection accuracy when performing the image correlation detection. As a result, the quality of the image reproduced on the image memory 6 is improved.

【0111】また、入力画像データを高密度化すること
により画素数を増大させた上で、写像時の座標誤差の少
ない画素のみを画像メモリへ写像し、かつ、分割制御を
行うことにより、画像メモリ6中の写像されない画素が
大幅に減少する。さらに、写像時の座標変換誤差に起因
する読み取り再現画像の歪みが大幅に低減する。加え
て、ラインイメージセンサ1の画素数を増やしたり、最
大手動走査速度を小さくする必要もないので、画像メモ
リ6上における画像品位がさらに向上する。
Further, the number of pixels is increased by densifying the input image data, and then only the pixels having a small coordinate error at the time of mapping are mapped to the image memory, and the division control is performed. The number of unmapped pixels in memory 6 is greatly reduced. Further, the distortion of the read reproduction image caused by the coordinate conversion error at the time of mapping is significantly reduced. In addition, since it is not necessary to increase the number of pixels of the line image sensor 1 or decrease the maximum manual scanning speed, the image quality on the image memory 6 is further improved.

【0112】以上のように、本実施例の画像処理装置の
構成によれば、位置ずれを補正する補正値を所定の割合
で可変制御し、段階的に可変された補正値に基づいて走
査位置を補正し、補正された走査位置のデータに基づい
て画像データを画像メモリ6に格納することができるの
で、走査位置の補正によって生じる画像メモリ6内の画
像データが格納されない領域の発生が抑制される。ま
た、走査位置が急激に補正されないことから、画像デー
タと格納データとの画像情報から位置ずれを検出する場
合の相関値の検出範囲を小さくすることができるので、
回路の小型化が図られる。さらには、画像メモリ6内の
画像データが格納されない領域の発生(写像抜け)が防
止されることから、重複した走査領域内の画像データと
格納データとの画像情報から位置ずれを検出する際の相
関値の誤差を小さくすることができるので、位置ずれ検
出の精度が向上する。その結果、画像メモリ6内で再現
される画像品位が向上する。また、本発明の画像処理装
置をハードウェア構成すれば、1ラインごとに順次処理
することができるので、回路の小型化が図られ、さらに
リアルタイムで処理することが可能となる。
As described above, according to the configuration of the image processing apparatus of this embodiment, the correction value for correcting the positional deviation is variably controlled at a predetermined rate, and the scanning position is changed based on the stepwise changed correction value. Can be corrected and the image data can be stored in the image memory 6 based on the corrected scanning position data. Therefore, it is possible to suppress the occurrence of a region in the image memory 6 in which the image data is not stored, which is caused by the correction of the scanning position. It Further, since the scanning position is not rapidly corrected, it is possible to reduce the detection range of the correlation value when detecting the positional deviation from the image information between the image data and the stored data,
The circuit can be downsized. Further, since it is possible to prevent an area (image missing) in the image memory 6 where the image data is not stored, it is possible to detect a position shift from the image information between the image data and the stored data in the overlapping scanning areas. Since the error of the correlation value can be reduced, the accuracy of positional deviation detection is improved. As a result, the quality of the image reproduced in the image memory 6 is improved. Further, if the image processing apparatus of the present invention is configured by hardware, it is possible to perform processing sequentially for each line, so that the circuit can be downsized and further processing can be performed in real time.

【0113】尚、本実施例においては、入力画像データ
400を高密度化した高密度化画像データ500を用
い、画素数を増大させた上で、写像時の座標誤差の少な
い画素のみを画像メモリ6へ写像しているが、高密度化
しない画像データ400を用いてもよい。この場合に
は、分割制御を行うことにより、写像されない領域の発
生が抑えられる。また、写像時の座標誤差の判定を0.
5にする場合(すなわち、写像時の座標誤差を四捨五入
する場合)、入力画像データ400(Pi,j )と高密度
化画像データ500のうち、走査ライン間に生成される
i,j を常時格納するようにして(図9参照)、画像メ
モリ6へ写像してもよい。これにより、走査ラインに許
容以上の間隔が生じた場合にも、画像データが格納され
ない領域(写像抜け領域)の発生が抑えられる。
In this embodiment, the high density image data 500 obtained by densifying the input image data 400 is used to increase the number of pixels, and only the pixels having a small coordinate error during mapping are stored in the image memory. However, the image data 400 that is not densified may be used. In this case, by performing the division control, it is possible to suppress the generation of the non-mapped area. In addition, the determination of the coordinate error at the time of mapping is 0.
In the case of setting 5 (that is, when the coordinate error at the time of mapping is rounded off), R i, j generated between scanning lines in the input image data 400 (P i, j ) and the densified image data 500 is It may be stored at all times (see FIG. 9) and mapped to the image memory 6. As a result, even if a scan line has an unacceptable interval, it is possible to suppress the generation of an area (image missing area) in which image data is not stored.

【0114】<第3の実施例>以上、第1及び第2の実
施例においては、走査位置のX方向、Y方向に対する位
置ずれ検出について説明したが、本実施例においては、
走査位置の回転方向に対する位置ずれ検出をさらに追加
した場合について、図16、図17、図18を用いて説
明する。
<Third Embodiment> As described above, in the first and second embodiments, the positional deviation detection of the scanning position in the X and Y directions has been described.
A case in which misregistration detection of the scanning position in the rotation direction is further added will be described with reference to FIGS. 16, 17, and 18.

【0115】図3に示す構成において、位置誤差が生じ
る要因として、車輪31、32の原稿上での滑り、車輪
31の径と車輪32の径の精度誤差、車輪31、32間
の距離Dの精度誤差、車輪31、32の原稿への沈み込
み、手動走査によって回転する際に回転中心が車輪3
1、32間の幅に影響されること、などを挙げることが
できる。従って、回転方向に対する位置誤差を補正の対
象に加えることにより、位置ずれを精度良く補正するこ
とができる。
In the structure shown in FIG. 3, the factors that cause the position error include slippage of the wheels 31 and 32 on the document, accuracy error between the diameters of the wheels 31 and 32, and the distance D between the wheels 31 and 32. Accuracy error, sinking of the wheels 31, 32 into the original, and the center of rotation when rotating by manual scanning is the wheel 3
It can be mentioned that it is affected by the width between 1 and 32. Therefore, by adding the position error with respect to the rotation direction to the correction target, it is possible to accurately correct the position shift.

【0116】図16に示す画像読み取り部Bは、第1の
実施例と同様のものである。図16において、第1の実
施例と異なる点は、回転方向に対する位置ずれ検出を行
うために座標回転変換回路8が追加されている点と、位
置ずれ検出の精度を向上させるために遅延回路9が追加
されている点である。尚、この遅延回路9は、第1及び
第2の実施例においても、位置ずれの補正精度を向上さ
せる効果を有する。この効果については後述する。
The image reading section B shown in FIG. 16 is the same as that in the first embodiment. 16 is different from the first embodiment in that a coordinate rotation conversion circuit 8 is added to detect a positional deviation in the rotation direction, and a delay circuit 9 is provided to improve the accuracy of positional deviation detection. Is added. The delay circuit 9 also has an effect of improving the positional deviation correction accuracy in the first and second embodiments. This effect will be described later.

【0117】図16に示す画像処理装置は、ライン単位
で得られる走査位置座標300と、走査位置に対応する
画像データ400とを画像読み取り部Bから順次入力す
る。ラインイメージセンサ1のアナログ出力はアンプ1
02で増幅され、A/D変換器103でデジタル画像デ
ータに変換される。デジタル画像データは、画像バッフ
ァ4に一時記憶される。画像バッファ4は、走査位置座
標300と同期して対応する画像データ400を出力す
る。
The image processing apparatus shown in FIG. 16 sequentially inputs the scanning position coordinates 300 obtained on a line-by-line basis and the image data 400 corresponding to the scanning position from the image reading section B. The analog output of the line image sensor 1 is the amplifier 1
Amplified by 02 and converted into digital image data by the A / D converter 103. The digital image data is temporarily stored in the image buffer 4. The image buffer 4 outputs the corresponding image data 400 in synchronization with the scanning position coordinate 300.

【0118】補正量算出回路73は、画像相関回路72
から出力されるオフセット値702を累積して保持す
る。位置補正回路74は、位置誤差を累積して保持して
いる補正量算出回路73から出力される位置補正量70
3によって走査位置座標300の位置ずれを補正し、補
正走査位置座標710として出力する。
The correction amount calculation circuit 73 is the image correlation circuit 72.
The offset value 702 output from is accumulated and held. The position correction circuit 74 outputs the position correction amount 70 output from the correction amount calculation circuit 73 that accumulates and holds the position error.
The positional deviation of the scanning position coordinate 300 is corrected by 3 and output as the corrected scanning position coordinate 710.

【0119】遅延回路9は、走査ライン単位で、補正走
査位置座標710と補正走査位置座標710に対応する
走査ラインの画像データ400とを遅延させる。写像回
路5は、遅延された補正走査位置座標710の座標デー
タ92から、1走査ラインの各画素データ61(Pn)
のメモリアドレス62(ADRn)を生成し、画像メモ
リ6の平面画像データの格納領域(メモリ65)に、遅
延された画像データ91のうち写像対象となる画素デー
タ61(Pn)を格納する。
The delay circuit 9 delays the corrected scanning position coordinates 710 and the image data 400 of the scanning line corresponding to the corrected scanning position coordinates 710 in units of scanning lines. The mapping circuit 5 calculates the pixel data 61 (Pn) of one scanning line from the delayed coordinate data 92 of the corrected scanning position coordinates 710.
Of the delayed image data 91 is stored in the plane image data storage area (memory 65) of the image memory 6, and the pixel data 61 (Pn) to be mapped is stored.

【0120】ここで、第1の実施例と同様に、画像メモ
リ6を図7に示すような構成にすると、画像データの走
査確認情報を保持する書き込みフラグの記憶ビット(ビ
ット7)がメモリ66に相当し、画像データの記憶ビッ
ト(ビット0〜6)がメモリ65に相当する。従って、
重なり領域検出回路71は、メモリ66のメモリアドレ
ス62(ADRn)に格納されている走査確認情報か
ら、重複して走査する重なり領域を判定し、重なり走査
領域の判定信号701を出力する。
Similar to the first embodiment, if the image memory 6 is constructed as shown in FIG. 7, the storage bit (bit 7) of the write flag for holding the scanning confirmation information of the image data is the memory 66. The storage bits (bits 0 to 6) of the image data correspond to the memory 65. Therefore,
The overlap area detection circuit 71 determines an overlap area to be redundantly scanned from the scan confirmation information stored in the memory address 62 (ADRn) of the memory 66, and outputs the overlap scan area determination signal 701.

【0121】判定信号701は、画素Pnの書き込みフ
ラグ(ビット7)をチェックし、この画素データ61
(Pn)のアドレス62(ADRn)に画像データが格
納済みかどうかを判定する。画素データ61(Pn)の
ビット7が1の場合には、ラインイメージセンサ1の読
み取り走査によって画像データがすでにメモリアドレス
62(ADRn)に格納されていることを示しているの
で、画素データ61(Pn)は重なり走査領域に含まれ
ると判定される。また、画素データ61(Pn)のビッ
ト7が0の場合には、画素データ61(Pn)は新規走
査領域に含まれると判定される。重なり領域検出回路7
1は、判定信号701を画像相関回路72と写像回路5
に出力する。ここで、判定信号701は、画素データ6
1(Pn)が新規走査領域に含まれる場合に「0」とな
り、重なり走査領域に含まれる場合に「1」となる信号
である。
The judgment signal 701 checks the write flag (bit 7) of the pixel Pn, and the pixel data 61
It is determined whether the image data has been stored in the address 62 (ADRn) of (Pn). When the bit 7 of the pixel data 61 (Pn) is 1, it indicates that the image data has already been stored in the memory address 62 (ADRn) by the reading scan of the line image sensor 1. Pn) is determined to be included in the overlap scanning area. When bit 7 of the pixel data 61 (Pn) is 0, it is determined that the pixel data 61 (Pn) is included in the new scanning area. Overlap area detection circuit 7
1 outputs the determination signal 701 to the image correlation circuit 72 and the mapping circuit 5
Output to. Here, the determination signal 701 is the pixel data 6
The signal is “0” when 1 (Pn) is included in the new scanning area, and is “1” when included in the overlapping scanning area.

【0122】写像回路5は、判定信号701が「0」の
場合に、画素データ61(Pn)をメモリ65に格納す
る。また、写像回路5は、判定信号701が「1」の場
合には画素データ61(Pn)をメモリ65に格納しな
い。この1画素単位の一連の処理動作を、1走査ライン
の画像データ91の全画素について行う。
The mapping circuit 5 stores the pixel data 61 (Pn) in the memory 65 when the determination signal 701 is "0". Further, the mapping circuit 5 does not store the pixel data 61 (Pn) in the memory 65 when the determination signal 701 is “1”. This series of processing operations for each pixel is performed for all pixels of the image data 91 of one scanning line.

【0123】座標回転変換回路8は、補正走査位置座標
710[Ps−Pe]に対して微小角△φを振った傾き
方向の相関座標800を、画像相関回路72に1走査ラ
イン単位で出力する。
The coordinate rotation conversion circuit 8 outputs the correlation coordinate 800 in the tilt direction in which the small angle Δφ is swung to the corrected scanning position coordinate 710 [Ps-Pe] to the image correlation circuit 72 in units of one scanning line. .

【0124】画像相関回路72は、相関座標800の座
標データから、1走査ラインの各相関検出の対象画素P
nの相関検出アドレス63を生成し、画像メモリ6の平
面画像データの格納領域(メモリ65)から格納済みデ
ータ64を読み出し、同時に、格納済みデータ64に対
応する走査確認情報をメモリ66から読み出し、重なり
領域検出回路71に出力する。
The image correlation circuit 72 uses the coordinate data of the correlation coordinates 800 to determine the target pixel P for each correlation detection of one scanning line.
The correlation detection address 63 of n is generated, the stored data 64 is read from the storage area (memory 65) of the plane image data of the image memory 6, and at the same time, the scanning confirmation information corresponding to the stored data 64 is read from the memory 66. It is output to the overlap area detection circuit 71.

【0125】重なり領域検出回路71は、メモリ66の
走査確認情報から、重複して走査する重なり領域を判定
し、重なり走査領域の判定信号701を出力する。画像
相関回路72は、判定信号701が「1」の場合に画素
Pnについての相関値算出処理を行い、判定信号701
が「0」の場合には画素Pnについての相関値算出処理
を行わない。
The overlap area detection circuit 71 determines an overlap area to be scanned redundantly from the scanning confirmation information of the memory 66, and outputs an overlap scanning area determination signal 701. The image correlation circuit 72 performs the correlation value calculation process for the pixel Pn when the determination signal 701 is “1”, and the determination signal 701 is output.
Is 0, the correlation value calculation process for the pixel Pn is not performed.

【0126】図17に示すように、画像相関回路72に
おいて、走査位置座標300[Ps−Pe]に対して微
小角△φを振った傾き方向の相関座標[Ps−Pe(±
△φ)]又は相関座標[Ps(±△φ)−Pe]の相関
検出処理を加えて行うことにより、回転方向の位置ずれ
が検出され、さらに精度の高い位置ずれ補正が実現され
る。この場合、上記第1の実施例の相関テーブル値h
(m,n)と組み合わせれば、相関テーブル値はh
(l,m,n)となる。ここで、lは、−1、0、1の
値をとるものとする。角度方向(回転方向)に3通り、
位置方向(X、Y方向)に9通りの計27通りの相関テ
ーブルが作成される。相関テーブルの最小値がh(l,
m,n)の場合、角度の補正量△φoffseti はl・△φ
という計算を行うことによって生成される。ここで、△
φは、例えば0.2度である。尚、l、m、nの値は特
定されるものではなく、要求される位置ずれの補正精度
によって設定される値である。l、m、nの値を大きく
すれば、相関を行う領域が広くなり、補正精度が向上す
る。
As shown in FIG. 17, in the image correlation circuit 72, correlation coordinates [Ps-Pe (±
[Delta] [phi])] or correlation coordinates [Ps (± [Delta] [phi])-Pe] is added to perform the correlation detection processing, whereby the positional deviation in the rotational direction is detected, and more accurate positional deviation correction is realized. In this case, the correlation table value h of the first embodiment
When combined with (m, n), the correlation table value is h
(L, m, n). Here, l has a value of -1, 0, 1. 3 ways in the angular direction (rotational direction),
A total of 27 types of correlation tables are created in the position direction (X and Y directions). The minimum value in the correlation table is h (l,
m, n), the angle correction amount Δφoffset i is 1 · Δφ
It is generated by performing the calculation. Where △
φ is 0.2 degrees, for example. It should be noted that the values of l, m, and n are not specified and are set according to the required positional deviation correction accuracy. If the values of l, m, and n are increased, the area where the correlation is performed becomes wider, and the correction accuracy is improved.

【0127】図16に示すように、位置ずれの回転方向
を検出するために、補正走査位置座標710の座標を座
標上で座標回転変換回路8により回転変換し、走査位置
座標300[Ps−Pe]に対して微小角△φを振った
傾き方向の相関座標800[Ps−Pe(±△φ)]又
は相関座標800[Ps(±△φ)−Pe]を出力す
る。
As shown in FIG. 16, in order to detect the rotational direction of the positional deviation, the coordinate of the corrected scanning position coordinate 710 is rotationally converted on the coordinate by the coordinate rotation conversion circuit 8, and the scanning position coordinate 300 [Ps-Pe]. ], The correlation coordinate 800 [Ps-Pe (± Δφ)] or the correlation coordinate 800 [Ps (± Δφ) -Pe] in the tilt direction is output.

【0128】画像相関回路72は、回転変換によって微
小角△φを振った傾き方向のそれぞれの相関座標800
に従って、上記(数10)〜(数12)の演算を繰り返
すことにより、27通りの相関テーブル67を作成す
る。ここで、l、m、nは、それぞれ−1、0、1の値
をとるものとする。
The image correlation circuit 72 determines the correlation coordinates 800 in the tilt direction in which the minute angle Δφ is swung by rotation conversion.
According to the above, the above-described calculations of (Equation 10) to (Equation 12) are repeated to create 27 correlation tables 67. Here, l, m, and n take the values of -1, 0, and 1, respectively.

【0129】この相関テーブル67から、位置ずれを補
正するオフセット値702が検出される。画像相関回路
72は、1走査ラインの各角度に対して相関値の計算が
終了した時点で、h(l,m,n)の最小値を保持する
(lmin ,mmin ,nmin )を検索し、オフセット値7
02として補正量算出回路73に出力する。相関テーブ
ル67中に複数の最小値が存在し、その最小値に(l
min ,mmin ,nmin )=(0,0,0)が含まれる場
合には、(0,0,0)の最小値が優先して用いられ
る。相関テーブル67中の相関値h(lmin ,mmin
min )が最も小さいということは、(△φ×lmin
△hx×mmin ,△hy×nmin )の微小値を各画素の
座標に加算して写像した場合に、画像メモリ6中の格納
データとこれから写像しようとするラインの画像データ
との画像情報が最もよく一致することを示している。ま
た、複数の最小値が存在し、その最小値に相関窓の中心
が含まれる場合には、オフセット値702のX方向、Y
方向は0とする。例えば、3×3の相関窓を設定すれ
ば、h(l,0,0)が相関窓の中心となる。
From this correlation table 67, an offset value 702 for correcting the positional deviation is detected. The image correlation circuit 72 holds (l min , m min , n min ) the minimum value of h (l, m, n) when the calculation of the correlation value for each angle of one scanning line is completed. Search and offset value 7
02 to the correction amount calculation circuit 73. There are a plurality of minimum values in the correlation table 67, and the minimum value is (l
When min , mmin , nmin ) = (0,0,0) is included, the minimum value of (0,0,0) is preferentially used. Correlation values h (l min , mmin ,
The smallest n min ) means that (Δφ × l min ,
Image information of the stored data in the image memory 6 and the image data of the line to be mapped from now on when a small value of (Δhx × m min , Δhy × n min ) is added to the coordinates of each pixel for mapping. Indicates the best match. Further, when there are a plurality of minimum values and the minimum value includes the center of the correlation window, the offset value 702 in the X direction and Y direction.
The direction is 0. For example, if a 3 × 3 correlation window is set, h (l, 0,0) becomes the center of the correlation window.

【0130】補正量算出回路73は、オフセット値70
2(lmin ,mmin ,nmin )を用いて下記(数14)
に示す演算を行う。ここで、オフセット値702を、△
X=△hx×mmin 、△Y=hy×nmin 、△Ψ=△φ
×lmin とする。
The correction amount calculation circuit 73 uses the offset value 70
2 (l min , m min , n min ) is used to calculate the following (Equation 14)
The calculation shown in is performed. Here, the offset value 702 is
X = Δhx × m min , ΔY = hy × n min , ΔΨ = Δφ
Xl min .

【0131】[0131]

【数14】 [Equation 14]

【0132】上記(数14)において、サフィックスi
は、画像データ400のiライン目の相関テーブル完成
時における位置補正量703を表わす。位置補正回路7
4は、走査位置座標300に(△Xoffseti ,△Yoffs
eti ,△φoffseti )を加算することにより、走査位置
座標300の補正を行い、補正走査位置座標710とし
て出力する。
In the above (Equation 14), the suffix i
Represents a position correction amount 703 when the correlation table of the i-th line of the image data 400 is completed. Position correction circuit 7
4 is the scanning position coordinate 300 ((ΔXoffset i , ΔYoffs
The scanning position coordinate 300 is corrected by adding et i , Δφoffset i ) and output as the corrected scanning position coordinate 710.

【0133】位置補正回路74に入力されるiライン目
の走査位置座標300をPs(Xs,Ys)、Pe(X
e,Ye)とし、位置補正量703を△Xoffseti 、△
Yoffseti 、△φoffseti とする。位置補正回路74
は、走査位置座標300を用い、下記(数15)によっ
て補正走査位置座標710のPsh(Xsh,Ys
h)、Peh(Xeh,Yeh)を算出する。
The scanning position coordinate 300 of the i-th line input to the position correction circuit 74 is set to Ps (Xs, Ys), Pe (X
e, Ye), and the position correction amount 703 is ΔX offset i , Δ
Yoffset i, and △ φoffset i. Position correction circuit 74
Using the scanning position coordinate 300, Psh (Xsh, Ys of the corrected scanning position coordinate 710 is calculated by the following (Equation 15).
h) and Peh (Xeh, Yeh) are calculated.

【0134】[0134]

【数15】 (Equation 15)

【0135】ここで、座標上の回転中心を常に座標Ps
とする。また、arcsin[ ]は、アークサインの
演算を行う関数である。また、Ndは、ラインイメージ
センサ1の1ラインの読み取り画素数である。尚、座標
上の回転中心を座標Peとしてもよい。また、座標上の
回転中心を座標Psとする回転変換と、座標上の回転中
心を座標Peとする回転変換との両方を行ってもよい。
両方を行うことにより、両車輪31、32に対応した位
置ずれを検出することができる。
Here, the center of rotation on the coordinate is always the coordinate Ps.
And Also, arcsin [] is a function for calculating the arc sine. Nd is the number of read pixels of one line of the line image sensor 1. The center of rotation on the coordinates may be the coordinates Pe. Further, both the rotation conversion with the coordinate rotation center as the coordinate Ps and the rotation conversion with the coordinate rotation center as the coordinate Pe may be performed.
By performing both, it is possible to detect the positional deviation corresponding to both wheels 31, 32.

【0136】次に、遅延回路9によって位置ずれの補正
精度を向上させる方法について、図14、図16、図1
8を用いて説明する。図18は図16に示す遅延回路の
動作説明図である。
Next, a method of improving the positional deviation correction accuracy by the delay circuit 9 will be described with reference to FIGS.
This will be described using 8. FIG. 18 is an operation explanatory diagram of the delay circuit shown in FIG.

【0137】図14に示す分割位置補正量(分割制御あ
り)705は、位置補正量(分割制御なし)703と異
なり、オフセット値702に相当する補正値が段階的に
変化するため、画像相関の検出位置から可変制御される
間の走査ライン数に相当する走査領域において必要な補
正量が不足してしまう。そして、このように補正量が不
足すると、位置誤差をキャンセルするための補正値が不
足するため、位置ずれ検出位置で接続ずれが残ってしま
う。
The division position correction amount (with division control) 705 shown in FIG. 14 is different from the position correction amount (without division control) 703, and since the correction value corresponding to the offset value 702 changes stepwise, the image correlation The necessary correction amount becomes insufficient in the scanning area corresponding to the number of scanning lines during the variable control from the detection position. When the correction amount is insufficient in this way, the correction value for canceling the position error is insufficient, so that connection deviation remains at the position deviation detection position.

【0138】このような補正量が不足する状態を回避す
るために、遅延回路9において、補正走査位置座標71
0と画像データ400を、分割位置補正量705が可変
制御される間の走査ライン数に相当する分だけ遅延さ
せ、写像回路5において、写像位置と画像相関回路72
で検出される位置ずれの検出位置とを異ならせる。
In order to avoid such a shortage of the correction amount, the correction scanning position coordinate 71 in the delay circuit 9 is used.
0 and the image data 400 are delayed by an amount corresponding to the number of scanning lines while the division position correction amount 705 is variably controlled, and the mapping circuit 5 and the image correlation circuit 72 are delayed by the mapping circuit 5.
The detection position of the positional deviation detected by is different.

【0139】図14においては、位置ずれの検出位置
と、分割位置補正量705が位置補正量703と同じに
なる位置とが4ラインずれているので、遅延回路9は補
正走査位置座標710と画像データ400を4ライン分
だけ遅延させる。この遅延によって、写像回路5におけ
る写像位置では、位置補正量703と同じ分割位置補正
量705が得られる。これにより、位置誤差をキャンセ
ルするための補正値が確保され、位置ずれの補正精度が
さらに向上する。
In FIG. 14, since the position where the positional deviation is detected and the position where the division position correction amount 705 is the same as the position correction amount 703 are shifted by four lines, the delay circuit 9 causes the correction scanning position coordinate 710 and the image. The data 400 is delayed by four lines. Due to this delay, at the mapping position in the mapping circuit 5, the same division position correction amount 705 as the position correction amount 703 is obtained. As a result, a correction value for canceling the position error is secured, and the positional deviation correction accuracy is further improved.

【0140】また、図18に示すように、ラインイメー
ジセンサ1の読み取り領域には、手動走査される位置に
おいて、領域a、領域b、領域aと領域bとの混在とい
う3つの状態が発生する。新規走査領域では常に領域b
の状態であり、重なり走査領域と新規走査領域とが混在
する領域では領域aと領域bとが混在し、重なり走査領
域だけでは領域aのみとなる。
Further, as shown in FIG. 18, in the reading area of the line image sensor 1, three states of area a, area b, and a mixture of area a and area b occur at the position of manual scanning. . In the new scan area, it is always area b
In the area where the overlapping scanning area and the new scanning area are mixed, the area a and the area b are mixed, and only the overlapping scanning area is the area a.

【0141】ここで、領域aでは、位置ずれ検出を行う
場合の相関検出ウインド内の位置で、メモリ65(図1
6)の平面画像データの格納状態は状態1となる。この
状態1においては、着目画素位置の周辺にすべて格納デ
ータが存在することから、位置ずれ検出を行うための相
関値を検出することができる。
Here, in the area a, the memory 65 (see FIG. 1) is used at the position in the correlation detection window when the positional deviation is detected.
The storage state of the planar image data of 6) is the state 1. In this state 1, since the stored data is all around the pixel position of interest, it is possible to detect the correlation value for detecting the displacement.

【0142】一方、領域bでは、位置ずれ検出を行う場
合の相関検出ウインド内の位置で、メモリ65の平面画
像データの格納状態は状態2となる。この状態2におい
ては、着目画素位置の周辺に格納データが存在する位置
と存在しない位置とが混在している。このため、この相
関検出ウインド内で位置ずれ検出を行った場合には、相
関値に偏りが発生してしまう。なぜなら、格納データが
存在する位置では、平面画像データと格納データの画像
情報から相関値を生成することができるが、格納データ
が存在しない位置では、格納データがないために、初期
化されているデータと平面画像データとから相関値を生
成することとなるからである。この異なるデータに基づ
いて生成された相関値から位置ずれを検出すると、検出
誤差が生じてしまう。
On the other hand, in the area b, the storage state of the plane image data of the memory 65 is the state 2 at the position in the correlation detection window when the displacement detection is performed. In this state 2, a position where the stored data exists and a position where the stored data does not exist around the pixel position of interest. Therefore, when the positional deviation is detected in the correlation detection window, the correlation values are biased. Because at the position where the stored data exists, the correlation value can be generated from the plane image data and the image information of the stored data, but at the position where the stored data does not exist, there is no stored data, so it is initialized. This is because the correlation value is generated from the data and the plane image data. If the positional deviation is detected from the correlation values generated based on the different data, a detection error will occur.

【0143】検出誤差をなくすために、メモリ66の走
査確認情報を用いる。走査確認情報によって相関検出ウ
インド内の位置で1箇所でも未格納画素があると判定さ
れた場合(すなわち、状態2である場合)には、相関値
を生成しない。未格納画素があるかどうかの判定は、重
なり領域検出回路71で検出される判定信号701を用
いて行われる。これにより、相関値の偏りをなくすこと
ができるので、位置ずれ検出の精度が向上する。
The scan confirmation information in the memory 66 is used to eliminate the detection error. When it is determined by the scan confirmation information that there is an unstored pixel at any one position in the correlation detection window (that is, in the state 2), the correlation value is not generated. The determination as to whether or not there are unstored pixels is performed using the determination signal 701 detected by the overlapping area detection circuit 71. As a result, the deviation of the correlation value can be eliminated, and the accuracy of the positional deviation detection is improved.

【0144】図16に示す遅延回路9を用いて、写像位
置と位置ずれの検出位置とを異ならせ、位置ずれの検出
位置をラインイメージセンサ1の移動方向に対して先行
させることにより、リアルタイム処理で位置ずれの補正
精度を向上させることができる。
By using the delay circuit 9 shown in FIG. 16, the mapping position and the displacement detection position are made different, and the displacement detection position is preceded with respect to the moving direction of the line image sensor 1. Thus, it is possible to improve the accuracy of positional deviation correction.

【0145】ところで、リアルタイム処理においては、
写像処理と位置ずれ検出とを平行して行った場合に、着
目画素周辺に新規に写像して格納される画素が頻繁に発
生するので、相関値が新規写像画素の影響を受ける。ま
た、手動走査時の手ぶれなどによって検出位置が前後す
ると、さらに新規写像画素の影響が大きくなり、位置ず
れの検出精度が低下する。このため、写像位置と位置ず
れの検出位置とを異ならせ、位置ずれの検出位置をライ
ンイメージセンサ1の移動方向に対して先行させること
により、新規写像画素の影響を抑えて位置ずれの検出精
度を向上させることができる。
By the way, in real time processing,
When the mapping process and the misregistration detection are performed in parallel, pixels newly mapped and stored around the pixel of interest frequently occur, so the correlation value is affected by the new mapped pixel. Further, if the detection position moves back and forth due to camera shake during manual scanning, the influence of the new mapped pixel becomes greater, and the detection accuracy of the positional deviation is reduced. Therefore, by making the mapping position different from the misregistration detection position and allowing the misregistration detection position to precede the moving direction of the line image sensor 1, it is possible to suppress the influence of the new mapping pixel and to detect the misregistration accuracy. Can be improved.

【0146】以上のように、本実施例の画像処理装置の
構成によれば、車輪の滑り、車輪間の径の精度誤差、車
輪間の距離の精度誤差、車輪の原稿への沈み込みなどの
要因によって起こる回転方向に対する位置ずれの補正を
加えることにより、走査位置座標300の位置誤差が精
度良く補正される。
As described above, according to the configuration of the image processing apparatus of the present embodiment, there are such problems as wheel slip, wheel diameter accuracy error, wheel distance accuracy error, and wheel sinking into a document. By adding the correction of the positional deviation with respect to the rotation direction caused by the factor, the position error of the scanning position coordinate 300 is accurately corrected.

【0147】さらに、遅延回路9によって補正走査位置
座標710と画像データ400を遅延させ、写像位置と
位置ずれの検出位置とを異ならせることにより、写像位
置で位置誤差をキャンセルするための補正値が確保され
るので、位置ずれの補正精度がさらに向上する。また、
直前に写像したラインのデータが相関値に影響するのを
防ぐことができるので、位置ずれの補正精度が向上す
る。
Further, the delay circuit 9 delays the corrected scanning position coordinates 710 and the image data 400 to make the mapping position different from the position shift detection position, so that a correction value for canceling the position error at the mapping position is obtained. Since this is ensured, the positional deviation correction accuracy is further improved. Also,
Since it is possible to prevent the data of the line mapped immediately before from affecting the correlation value, the positional deviation correction accuracy is improved.

【0148】尚、上記第1〜第3の実施例においては、
入力画像データ及び走査位置座標を、ラインイメージセ
ンサ1の両端位置に装備された2個の車輪31、32の
回転に伴ってパルスを発生させる2つのエンコーダ2
a、2bを用いるハンドスキャナから入力することとし
ているが、必ずしもこの構成に限定されるものではな
い。例えば、タブレット若しくは基準格子が印刷された
シートを補助装置として用い、ラインイメージセンサ1
の両端位置を検出することによって走査位置座標と画像
データとを得るハンドスキャナから入力する構成として
もよい(例えば、米国特許第4、260、979号、米
国特許第4,581,761号)。
Incidentally, in the above-mentioned first to third embodiments,
Two encoders 2 for generating a pulse with input image data and scanning position coordinates in accordance with the rotation of two wheels 31, 32 mounted at both ends of the line image sensor 1.
Although the input is made from the hand scanner using a and 2b, the input is not necessarily limited to this configuration. For example, using a tablet or a sheet on which a reference grid is printed as an auxiliary device, the line image sensor 1
Alternatively, the scanning position coordinates and the image data may be input from a hand scanner by detecting the positions of both ends of the scanner (for example, US Pat. No. 4,260,979, US Pat. No. 4,581,761).

【0149】また、上記第1〜第3の実施例において
は、ラインイメージセンサ1を用いたハンドスキャナか
ら入力される画像信号を処理する画像処理装置を例に挙
げて説明しているが、画像入力装置としては必ずしもハ
ンドスキャナに限定されるものではない。例えば、エリ
アイメージセンサを用いた画像入力装置からの画像信号
を処理するものであってもよい。
In the first to third embodiments, the image processing device for processing the image signal input from the hand scanner using the line image sensor 1 is described as an example. The input device is not necessarily limited to the hand scanner. For example, an image signal from an image input device using an area image sensor may be processed.

【0150】また、上記第1〜第3の実施例と同様の処
理を、パーソナルコンピュータ、MPU(マイクロプロ
セッサユニット)やDSP(ディジタルシグナルプロセ
ッサ)を用い、ソフトウエアによって実現してもよい。
The same processing as in the first to third embodiments may be realized by software using a personal computer, MPU (microprocessor unit) or DSP (digital signal processor).

【0151】また、図19(a)に示すように、本発明
の画像処理装置は、読み取り範囲の限定された小型の入
力装置1004によって画像を入力し、原稿1000上
の部分画像を接続合成して大画面の平面画像を作成す
る。従って、本発明の画像処理装置を携帯型情報機器の
本体1001に搭載すれば、小型の入力装置1004を
有する携帯型情報機器であっても大きな原稿の画像入力
を行うことが可能となる。例えば、携帯FAX、携帯情
報端末、携帯スキャナなどに最適である。尚、図19
中、1002は表示装置であり、液晶パネル、CRTな
どによって構成される。そして、入力装置1004によ
って読み取られた画像データは、内部の画像メモリ6に
格納され、画像メモリ6上で接続合成された画像を表示
する。また、図20に示すように、入力装置1004を
小型化できることから、携帯端末の本体1001と一体
にして使用することもできる。また、図20に示す入力
装置1004は、図22に示すように、携帯端末の本体
1001から自由に着脱可能な構成としてもよい。入力
装置1004には、標準的なI/F(インタフェース)
仕様を満足するICカード1003が備えられており、
本体1001のICカードスロット1007に挿入する
ことにより、データの転送、制御が可能となる。さら
に、入力装置1004にはロックピン1008a、10
08bが設けられており、このロックピン1008a、
1008bを本体1001のピン挿入穴1009a、1
009bにそれぞれ差し込むことにより、入力装置10
04が携帯端末の本体1001に固定される。ここで、
入力装置1004には、図16に示したラインイメージ
センサ1と車輪31、32が装着されている。これによ
り、タブレットなどの補助装置が不要となり、小型で、
操作性に優れた入力装置が実現される。また、携帯端末
の本体1001の代わりにパーソナルコンピュータを用
いれば、小型で、操作性に優れ、しかも大画面の入力が
可能な入力装置が実現される。
Further, as shown in FIG. 19A, the image processing apparatus of the present invention inputs an image by a small input device 1004 having a limited reading range, and connects and combines partial images on the original 1000. Create a large screen flat image. Therefore, if the image processing apparatus of the present invention is mounted on the main body 1001 of a portable information device, even a portable information device having a small input device 1004 can input an image of a large original. For example, it is most suitable for a mobile FAX, a mobile information terminal, a mobile scanner and the like. Note that FIG.
A display device 1002 includes a liquid crystal panel, a CRT, and the like. Then, the image data read by the input device 1004 is stored in the internal image memory 6, and the image which is connected and combined is displayed on the image memory 6. Further, as shown in FIG. 20, since the input device 1004 can be miniaturized, the input device 1004 can be used integrally with the main body 1001 of the mobile terminal. Further, the input device 1004 shown in FIG. 20 may be configured to be freely attachable / detachable to / from the main body 1001 of the mobile terminal as shown in FIG. The input device 1004 includes a standard I / F (interface)
An IC card 1003 satisfying the specifications is provided,
Data can be transferred and controlled by inserting it into the IC card slot 1007 of the main body 1001. Further, the input device 1004 includes lock pins 1008a, 10
08b is provided, and the lock pin 1008a,
1008b to the pin insertion holes 1009a, 1100 of the main body 1001
The input device 10
04 is fixed to the main body 1001 of the mobile terminal. here,
The input device 1004 is equipped with the line image sensor 1 and wheels 31, 32 shown in FIG. This eliminates the need for auxiliary devices such as tablets, reduces the size,
An input device with excellent operability is realized. If a personal computer is used instead of the main body 1001 of the mobile terminal, a small-sized input device having excellent operability and capable of inputting a large screen can be realized.

【0152】また、図19(e)に示すように、本発明
の画像処理装置は、検出した走査位置座標の位置ずれを
累積しながら補正を行うものであるため、累積位置誤差
の大きい入力装置1004を用いても、位置ずれを補正
して接続ずれのない画像を生成することができる。従っ
て、上記第1〜第3の実施例で用いたように、ラインイ
メージセンサ1の両端位置に装備された2個の車輪3
1、32の回転に伴ってパルスを発生させる2つのエン
コーダ2a、2bを用いるハンドスキャナに搭載すれ
ば、一層大きな効果が得られる。タブレット若しくは基
準格子が印刷されたシートを補助装置として用いるハン
ドスキャナに比較して、高価な補助装置を必要としない
ので、小型で、携帯性、操作性などに優れた画像処理装
置を実現することができる。さらには、厚い書籍を読み
取ることもできる。ここで、入力装置1004は、例え
ば、図16に示す画像読取り部Bを有するスキャナであ
る。
Further, as shown in FIG. 19 (e), the image processing apparatus of the present invention performs correction while accumulating the positional deviation of the detected scanning position coordinates, and therefore the input apparatus having a large cumulative position error. Even if 1004 is used, it is possible to correct the positional deviation and generate an image with no connection deviation. Therefore, as used in the first to third embodiments, the two wheels 3 mounted at both ends of the line image sensor 1 are used.
If it is mounted on a hand scanner that uses two encoders 2a and 2b that generate pulses in accordance with rotations of 1 and 32, a greater effect can be obtained. Compared to a hand scanner that uses a tablet or a sheet on which a reference grid is printed as an auxiliary device, it does not require an expensive auxiliary device, so it is possible to realize an image processing device that is compact and has excellent portability and operability. You can Furthermore, it can read thick books. Here, the input device 1004 is, for example, a scanner having the image reading unit B shown in FIG.

【0153】[0153]

【発明の効果】以上説明したように、本発明に係る画像
処理装置によれば、入力した走査位置に位置誤差が含ま
れていても、重複して走査する重なり走査領域内の画像
データと格納データとの画像情報から走査位置の位置ず
れを検出して、位置ずれを補正することができる。そし
て、この補正した走査位置に基づいて画像データを画像
メモリに格納することにより、走査位置の位置誤差によ
って生じる画像の接続ずれを防止し、画像メモリ内で接
続された平面画像の画像歪みを低減することができる。
As described above, according to the image processing apparatus of the present invention, even if the input scanning position includes a position error, the image data and the image data in the overlapping scanning area for overlapping scanning are stored. The positional deviation of the scanning position can be detected from the image information with the data, and the positional deviation can be corrected. Then, by storing the image data in the image memory based on the corrected scanning position, the image connection deviation caused by the position error of the scanning position is prevented, and the image distortion of the planar image connected in the image memory is reduced. can do.

【0154】また、前記本発明装置の構成において、補
正値を所定の割合で可変する補正制御手段がさらに備わ
り、補正手段は、所定の割合で可変された前記補正値に
基づいて走査位置を補正するという好ましい例によれ
ば、位置ずれを補正する補正値を所定の割合で可変制御
し、補正された走査位置に基づいて画像データを画像メ
モリに格納することができるので、走査位置の補正によ
って生じる画像メモリ内の画像データが格納されない領
域の発生が抑制される。また、走査位置が急激に補正さ
れないことから、画像データと格納データとの画像情報
から位置ずれを検出する場合の相関値の検出範囲を小さ
くすることができるので、回路の小型化が図られる。さ
らには、画像メモリ内の画像データが格納されない領域
の発生(写像抜け)が防止されることから、重複した走
査領域内の画像データと格納データとの画像情報から位
置ずれを検出する際の相関値の誤差を小さくすることが
できるので、位置ずれ検出の精度が向上する。
Further, in the configuration of the apparatus of the present invention, correction control means for changing the correction value at a predetermined rate is further provided, and the correction means corrects the scanning position based on the correction value changed at the predetermined rate. According to a preferred example of the above, the correction value for correcting the positional deviation can be variably controlled at a predetermined ratio, and the image data can be stored in the image memory based on the corrected scanning position. Occurrence of a region in the image memory where the image data is not stored is suppressed. In addition, since the scanning position is not rapidly corrected, the detection range of the correlation value when detecting the positional deviation from the image information of the image data and the stored data can be reduced, so that the circuit can be downsized. Furthermore, since the occurrence of an area (image missing) in the image memory where the image data is not stored is prevented, the correlation when detecting the positional deviation from the image information of the image data and the stored data in the overlapping scanning area is prevented. Since the error in the value can be reduced, the accuracy of the positional deviation detection is improved.

【0155】また、前記本発明装置の構成において、走
査位置を、所定の座標を中心として複数の所定の角度で
回転させる座標回転変換手段がさらに備わり、位置ずれ
検出手段は、複数の所定の角度に対応する走査位置の座
標に基づいて、それぞれ画像データ中の各画素の原稿上
における座標値を算出し、前記座標値に対応する画像メ
モリの格納アドレスを着目画素位置とし、前記着目画素
位置を含むその周辺画素位置に対して、それぞれ前記画
像データと前記画像メモリに格納されている格納データ
との相関値を検出する画像相関手段と、前記所定の角度
に対し、それぞれ得られる複数の前記相関値から予め設
定される所定の角度補正量と所定の位置補正量を含む補
正値を生成する補正量算出手段とを備えるという好まし
い例によれば、座標変換手段によって回転変換された走
査位置座標に基づいて位置ずれを検出することができる
ので、イメージセンサの回転方向の位置ずれを検出する
ことができる。その結果、画像メモリ内に接続された平
面画像の画像品位が向上する。
Further, in the structure of the apparatus of the present invention, coordinate rotation conversion means for rotating the scanning position at a plurality of predetermined angles about predetermined coordinates is further provided, and the position shift detection means is provided at a plurality of predetermined angles. The coordinate value of each pixel in the image data on the original is calculated based on the coordinates of the scanning position corresponding to the pixel position, and the storage address of the image memory corresponding to the coordinate value is set as the pixel position of interest. Image correlating means for detecting a correlation value between the image data and the stored data stored in the image memory with respect to the peripheral pixel position thereof, and a plurality of the correlations obtained respectively for the predetermined angle. According to a preferable example in which a predetermined angle correction amount preset from the value and a correction amount calculation means for generating a correction value including a predetermined position correction amount are provided, It is possible to detect the positional deviation based on the rotation converted scan position coordinate by the conversion means, it is possible to detect the positional deviation in the rotational direction of the image sensor. As a result, the image quality of the flat image connected in the image memory is improved.

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

【図1】本発明の第1の実施例における画像処理装置及
び原稿画像を読み取り走査する画像読み取り部を示すブ
ロック図である。
FIG. 1 is a block diagram showing an image processing apparatus and an image reading unit for reading and scanning a document image according to a first embodiment of the present invention.

【図2】本発明の第1の実施例における位置検出回路の
動作説明図である。
FIG. 2 is an operation explanatory diagram of the position detection circuit according to the first embodiment of the present invention.

【図3】本発明の第1の実施例におけるラインイメージ
センサの両端部読み取り画素の座標算出を示す説明図で
ある。
FIG. 3 is an explanatory diagram showing calculation of coordinates of pixels read at both ends of the line image sensor according to the first embodiment of the present invention.

【図4】本発明の第1の実施例におけるラインイメージ
センサの走査領域の説明図である。
FIG. 4 is an explanatory diagram of a scanning area of the line image sensor according to the first embodiment of the present invention.

【図5】本発明の第1の実施例における位置ずれ検出回
路を示すブロック図である。
FIG. 5 is a block diagram showing a positional deviation detection circuit according to the first embodiment of the present invention.

【図6】本発明の第1の実施例における写像回路を示す
ブロック図である。
FIG. 6 is a block diagram showing a mapping circuit according to the first embodiment of the present invention.

【図7】本発明の第1の実施例における画像メモリの説
明図である。
FIG. 7 is an explanatory diagram of an image memory according to the first embodiment of the present invention.

【図8】本発明の第1の実施例における相関テーブルの
説明図である。
FIG. 8 is an explanatory diagram of a correlation table according to the first embodiment of this invention.

【図9】本発明の第1の実施例における画素密度変換の
説明図である。
FIG. 9 is an explanatory diagram of pixel density conversion according to the first embodiment of this invention.

【図10】本発明の第1の実施例における画像メモリの
アドレス配置図である。
FIG. 10 is an address layout diagram of the image memory according to the first embodiment of the present invention.

【図11】本発明の第1の実施例における高密度化画像
データの画像メモリへの写像動作の説明図である。
FIG. 11 is an explanatory diagram of a mapping operation of high density image data onto an image memory according to the first embodiment of the present invention.

【図12】本発明の第2の実施例における分割制御回路
を含む位置ずれ検出回路のブロック図である。
FIG. 12 is a block diagram of a positional deviation detection circuit including a division control circuit according to a second embodiment of the present invention.

【図13】本発明の第2の実施例における分割制御回路
のタイミングチャート図である。
FIG. 13 is a timing chart of the division control circuit according to the second embodiment of the present invention.

【図14】本発明の第2の実施例における位置補正量と
分割位置補正量との違いを示す説明図である。
FIG. 14 is an explanatory diagram showing a difference between a position correction amount and a division position correction amount according to the second embodiment of the present invention.

【図15】本発明の第2の実施例における画像メモリの
データの格納状態の説明図である。
FIG. 15 is an explanatory diagram of a data storage state of the image memory according to the second embodiment of the present invention.

【図16】本発明の第3の実施例における画像処理装置
及び原稿画像を読み取り走査する画像読み取り部を示す
ブロック図である。
FIG. 16 is a block diagram showing an image processing apparatus and an image reading unit for reading and scanning an original image according to a third embodiment of the present invention.

【図17】本発明の第3の実施例における角度補正の説
明図である。
FIG. 17 is an explanatory diagram of angle correction according to the third embodiment of the present invention.

【図18】本発明の第3の実施例における遅延回路の動
作説明図である。
FIG. 18 is an operation explanatory diagram of the delay circuit according to the third embodiment of the present invention.

【図19】走査位置の位置ずれによる読み取り画像の接
続ずれの説明図である。
FIG. 19 is an explanatory diagram of connection deviation of read images due to positional deviation of scanning positions.

【図20】本発明の第3の実施例における携帯端末機器
の一実施例を示す斜視図である。
FIG. 20 is a perspective view showing an example of a mobile terminal device according to a third example of the present invention.

【図21】本発明の第3の実施例における携帯端末機器
の他の実施例を示す分解斜視図である。
FIG. 21 is an exploded perspective view showing another embodiment of the mobile terminal device according to the third embodiment of the present invention.

【図22】従来技術における写像抜け状態の一例を示す
説明図である。
FIG. 22 is an explanatory diagram showing an example of a mapping missing state in the related art.

【図23】従来技術における写像抜け状態の他の例を示
す説明図である。
FIG. 23 is an explanatory diagram showing another example of a mapping missing state in the related art.

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

1 ラインイメージセンサ 2a、2b エンコーダ 3 走査位置検出回路 4 画像バッファ 5 写像回路 6 画像メモリ 7 位置ずれ検出回路 8 座標回転変換回路 9 遅延回路 31、32 車輪 33、35 位置カウンタ 37 位置座標検出回路 51 画素密度変換回路 52 座標値算出回路 53 整数化回路 54 アドレス生成回路 55 誤差算出回路 65、66 メモリ 67 相関テーブル 71 重なり領域検出回路 72 画像相関回路 73 補正量算出回路 74 位置補正回路 75 分割制御回路 1001 携帯端末の本体 1004 入力装置 1007 ICカードスロット 1008a、1008b ロックピン 1009a、1009b ピン挿入穴 1 Line Image Sensor 2a, 2b Encoder 3 Scanning Position Detection Circuit 4 Image Buffer 5 Mapping Circuit 6 Image Memory 7 Position Deviation Detection Circuit 8 Coordinate Rotation Conversion Circuit 9 Delay Circuit 31, 32 Wheels 33, 35 Position Counter 37 Position Coordinate Detection Circuit 51 Pixel density conversion circuit 52 Coordinate value calculation circuit 53 Integer conversion circuit 54 Address generation circuit 55 Error calculation circuit 65, 66 Memory 67 Correlation table 71 Overlap area detection circuit 72 Image correlation circuit 73 Correction amount calculation circuit 74 Position correction circuit 75 Division control circuit 1001 Mobile terminal body 1004 Input device 1007 IC card slot 1008a, 1008b Lock pin 1009a, 1009b Pin insertion hole

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/66 470 K (72)発明者 ▲たか▼橋 直樹 大阪府門真市大字門真1006番地 松下電器 産業株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical indication location G06F 15/66 470 K (72) Inventor ▲ Taka ▼ Hashi Naoki Osaka Prefecture Kadoma 1006 Kadoma 1006 Matsushita Denki Sangyo Co., Ltd.

Claims (27)

【特許請求の範囲】[Claims] 【請求項1】 原稿画像を走査して読み取られた画像デ
ータと、前記画像データに対応する走査位置とを順次入
力し、走査位置に基づいて前記画像データを画像メモリ
に格納する画像処理装置であって、重複して走査する重
なり走査領域内の、前記画像データと前記画像メモリに
格納された格納データとから前記走査位置の位置ずれを
検出し、前記位置ずれを補正する補正値を出力する位置
ずれ検出手段と、前記補正値に基づいて前記走査位置を
補正する補正手段と、補正された走査位置に基づいて前
記画像データを前記画像メモリに格納する写像手段とを
少なくとも備えたことを特徴とする画像処理装置。
1. An image processing apparatus for sequentially inputting image data read by scanning an original image and a scanning position corresponding to the image data, and storing the image data in an image memory based on the scanning position. Therefore, the positional deviation of the scanning position is detected from the image data and the storage data stored in the image memory in the overlapping scanning area for overlapping scanning, and a correction value for correcting the positional deviation is output. At least a position deviation detecting means, a correcting means for correcting the scanning position based on the correction value, and a mapping means for storing the image data in the image memory based on the corrected scanning position are provided. Image processing device.
【請求項2】 補正値を所定の割合で可変する補正制御
手段がさらに備わり、補正手段は、所定の割合で可変さ
れた前記補正値に基づいて走査位置を補正する請求項1
に記載の画像処理装置。
2. The correction control means for changing the correction value at a predetermined rate is further provided, and the correction means corrects the scanning position based on the correction value changed at the predetermined rate.
The image processing device according to item 1.
【請求項3】 補正制御手段は、位置ずれ検出手段から
の補正値を分割した値を可変制御量とし、走査位置が異
なるごとに段階的に前記補正値を所定の割合で可変する
請求項2に記載の画像処理装置。
3. The correction control means uses a value obtained by dividing the correction value from the positional deviation detection means as a variable control amount, and changes the correction value stepwise at a predetermined rate for each different scanning position. The image processing device according to item 1.
【請求項4】 補正された走査位置と、対応する画像デ
ータとを遅延させる遅延手段がさらに備わり、写像手段
は、遅延した走査位置に基づいて対応する画像データを
画像メモリに格納することにより、前記走査位置の位置
ずれを検出する位置と画像データを前記画像メモリに格
納する格納位置とを異ならせる請求項1に記載の画像処
理装置。
4. The delay means for delaying the corrected scanning position and the corresponding image data is further provided, and the mapping means stores the corresponding image data in the image memory based on the delayed scanning position, The image processing apparatus according to claim 1, wherein a position where the positional deviation of the scanning position is detected is different from a storage position where the image data is stored in the image memory.
【請求項5】 位置ずれ検出手段は、画像メモリに入力
される画像データの走査確認情報を走査確認情報メモリ
に順次記憶する走査領域保持手段と、前記走査確認情報
メモリの走査確認情報を検出することにより、重複して
走査される重なり走査領域を検出する重なり領域検出手
段とを備える請求項1に記載の画像処理装置。
5. The misregistration detection means detects the scanning confirmation information of the scanning confirmation information memory and the scanning area holding means for sequentially storing the scanning confirmation information of the image data input to the image memory in the scanning confirmation information memory. The image processing apparatus according to claim 1, further comprising: an overlapping area detecting unit that detects an overlapping scanning area that is overlapped and scanned.
【請求項6】 画像メモリに格納する画像データのアド
レスと、走査確認情報メモリに格納する走査確認情報の
アドレスとを共用にする請求項5に記載の画像処理装
置。
6. The image processing apparatus according to claim 5, wherein the address of the image data stored in the image memory and the address of the scanning confirmation information stored in the scanning confirmation information memory are shared.
【請求項7】 重なり領域検出手段が行う走査領域の判
定に従って画像メモリへの画像データの格納を制御する
メモリ制御手段がさらに備わり、前記メモリ制御手段
は、重複して走査される重なり走査領域であると判定し
た場合に前記画像メモリへの画像データの格納を禁止す
る請求項5に記載の画像処理装置。
7. A memory control means is further provided for controlling the storage of the image data in the image memory according to the determination of the scanning area performed by the overlapping area detection means, wherein the memory control means is an overlapping scanning area that is scanned in an overlapping manner. The image processing apparatus according to claim 5, wherein storage of image data in the image memory is prohibited when it is determined that the image data exists.
【請求項8】 位置ずれ検出手段は、走査位置に基づい
て算出される画像データ中の各画素の原稿上における座
標値に対応する画像メモリの格納アドレスを着目画素位
置とし、前記着目画素位置を含むその周辺画素位置に対
して、それぞれ前記画像データと前記画像メモリに格納
されている格納データとの相関値を検出する画像相関手
段と、複数の前記相関値から予め設定される補正値を生
成する補正量算出手段とを備える請求項1に記載の画像
処理装置。
8. The misregistration detection means sets a storage address of an image memory corresponding to a coordinate value on the original of each pixel in the image data calculated based on the scanning position as a pixel position of interest, and sets the pixel position of interest. An image correlation unit that detects a correlation value between the image data and the stored data stored in the image memory for each of the peripheral pixel positions that include the correction value and a correction value that is set in advance from the plurality of correlation values. The image processing apparatus according to claim 1, further comprising:
【請求項9】 位置ずれ検出手段は、相関対象となる画
素位置において、着目画素位置を含むその周辺画素位置
がすべて重なり走査領域である場合にのみ、複数の相関
値を生成する請求項8に記載の画像処理装置。
9. The position shift detecting means generates a plurality of correlation values only when all of the peripheral pixel positions including the pixel position of interest in the pixel positions to be correlated are overlapping scanning regions. The image processing device described.
【請求項10】 補正手段は、位置ずれ検出手段から出
力される補正値を累積した累積補正値を生成する保持手
段を備え、前記累積補正値によって走査位置を補正する
請求項1に記載の画像処理装置。
10. The image according to claim 1, wherein the correction unit includes a holding unit that generates a cumulative correction value by accumulating the correction values output from the positional deviation detection unit, and corrects the scanning position by the cumulative correction value. Processing equipment.
【請求項11】 写像手段は、走査位置に基づいて、画
像データ中の各画素の原稿上における座標値に対応する
画像メモリの格納アドレスを生成するアドレス生成手段
と、前記画像データ中の各画素を前記画像メモリの前記
格納アドレスに格納するデータ格納手段とを備える請求
項1に記載の画像処理装置。
11. The mapping means includes an address generating means for generating a storage address of an image memory corresponding to a coordinate value of each pixel in the image data on the document based on the scanning position, and each pixel in the image data. The image processing apparatus according to claim 1, further comprising a data storage unit that stores the data at the storage address of the image memory.
【請求項12】 画像データと走査位置は、画像を読み
取るイメージセンサと、前記イメージセンサの読み取り
位置を2つの検出手段によって検出する位置検出手段と
を備えた入力装置から入力される請求項1に記載の画像
処理装置。
12. The image data and the scanning position are input from an input device including an image sensor for reading an image and a position detecting means for detecting the reading position of the image sensor by two detecting means. The image processing device described.
【請求項13】 イメージセンサはラインセンサである
請求項12に記載の画像処理装置。
13. The image processing apparatus according to claim 12, wherein the image sensor is a line sensor.
【請求項14】 入力装置はハンドスキャナである請求
項12に記載の画像処理装置。
14. The image processing apparatus according to claim 12, wherein the input device is a hand scanner.
【請求項15】 検出手段は、原稿面に接触して回転す
る車輪と、前記車輪の回転に対応してパルスを出力する
エンコーダとにより構成される請求項12に記載の画像
処理装置。
15. The image processing apparatus according to claim 12, wherein the detection means includes a wheel that rotates in contact with the document surface and an encoder that outputs a pulse corresponding to the rotation of the wheel.
【請求項16】 エンコーダは、位相の異なる2系統の
パルスを出力する請求項15に記載の画像処理装置。
16. The image processing apparatus according to claim 15, wherein the encoder outputs pulses of two systems having different phases.
【請求項17】 入力装置は、携帯型情報機器の本体に
着脱自在に取り付けられている請求項12に記載の画像
処理装置。
17. The image processing apparatus according to claim 12, wherein the input device is detachably attached to the main body of the portable information device.
【請求項18】 入力装置に設けたロックピンを携帯型
情報機器の本体に設けたピン挿入穴に差し込むことによ
り、前記入力装置を前記携帯型情報機器の本体に取り付
けた請求項17に記載の画像処理装置。
18. The input device according to claim 17, wherein the input device is attached to the body of the portable information device by inserting a lock pin provided in the input device into a pin insertion hole provided in the body of the portable information device. Image processing device.
【請求項19】 写像手段は、隣接する画素から補間に
よって画像データを高密度化する画素密度変換手段と、
走査位置に基づいて、高密度化した前記画像データ中の
各画素の原稿上における実数座標値を、前記所定の画素
密度を単位として算出する手段と、前記原稿上における
実数座標値を、前記所定の画素密度を単位とする整数座
標値に変換する整数化手段と、前記座標値の整数化の際
に生じる座標誤差値を算出する手段と、前記整数座標値
を画像メモリのアドレスに変換する手段と、前記座標誤
差値の大きさと予め決められた所定の値とを比較する手
段とを備え、前記座標誤差値の大きさが前記所定の値以
下である画素のみを前記画像メモリのアドレスに格納す
る請求項11に記載の画像処理装置。
19. The mapping means comprises pixel density conversion means for densifying image data from adjacent pixels by interpolation,
Means for calculating the real number coordinate value on the original of each pixel in the high-density image data based on the scanning position in units of the predetermined pixel density, and the real number coordinate value on the original for the predetermined number. Integer conversion means for converting the pixel density of each unit into an integer coordinate value, means for calculating a coordinate error value generated when the coordinate values are converted into integers, and means for converting the integer coordinate values into an address of an image memory. And a means for comparing the magnitude of the coordinate error value with a predetermined value determined in advance, and only the pixels having the magnitude of the coordinate error value equal to or less than the predetermined value are stored in the address of the image memory. The image processing device according to claim 11.
【請求項20】 画素密度変換手段は、被処理画素とそ
の周辺の隣接画素を用いて補間画素を生成する手段を備
え、当該手段によって画像データを2倍の画素密度に変
換する請求項19に記載の画像処理装置。
20. The pixel density conversion means comprises means for generating an interpolated pixel by using a pixel to be processed and adjacent pixels around the pixel to be processed, and the image data is converted to a double pixel density by the means. The image processing device described.
【請求項21】 被処理画素Pi,j (但し、画像データ
中、iライン目の画像データのj番目の画素データを示
す。)とその周辺の隣接画素Pi,j+1 、Pi-1, j 、P
i-1,j+1 を用いて、下記(数1)より補間画素Qi,j
i,j 、Si,j を算出する請求項20に記載の画像処理
装置。 【数1】
21. A pixel to be processed P i, j (however, this represents the j-th pixel data of the image data of the i-th line in the image data) and its neighboring pixels P i, j + 1 , P i. -1, j , P
Using i-1, j + 1 , interpolation pixel Q i, j
The image processing apparatus according to claim 20, wherein R i, j and S i, j are calculated. [Equation 1]
【請求項22】 所定の値は、所定の画素密度を単位と
して0.3〜0.35である請求項19に記載の画像処
理装置。
22. The image processing apparatus according to claim 19, wherein the predetermined value is 0.3 to 0.35 with a predetermined pixel density as a unit.
【請求項23】 走査位置を、所定の座標を中心として
複数の所定の角度で回転させる座標回転変換手段がさら
に備わり、位置ずれ検出手段は、複数の所定の角度に対
応する走査位置の座標に基づいて、それぞれ画像データ
中の各画素の原稿上における座標値を算出し、前記座標
値に対応する画像メモリの格納アドレスを着目画素位置
とし、前記着目画素位置を含むその周辺画素位置に対し
て、それぞれ前記画像データと前記画像メモリに格納さ
れている格納データとの相関値を検出する画像相関手段
と、前記所定の角度に対し、それぞれ得られる複数の前
記相関値から予め設定される所定の角度補正量と所定の
位置補正量を含む補正値を生成する補正量算出手段とを
備える請求項1に記載の画像処理装置。
23. Coordinate rotation conversion means for rotating the scanning position at a plurality of predetermined angles about a predetermined coordinate is further provided, and the position shift detecting means is adapted to coordinate the scanning position corresponding to the plurality of predetermined angles. Based on this, the coordinate value of each pixel in the image data on the original is calculated, and the storage address of the image memory corresponding to the coordinate value is set as the target pixel position, and the surrounding pixel positions including the target pixel position are calculated. Image correlation means for detecting a correlation value between each of the image data and the stored data stored in the image memory, and a predetermined value preset from a plurality of the correlation values obtained for the predetermined angle. The image processing apparatus according to claim 1, further comprising a correction amount calculation unit that generates a correction value including an angle correction amount and a predetermined position correction amount.
【請求項24】 位置ずれ検出手段は、相関対象となる
画素位置において、各回転角度に対して得られる着目画
素位置を含むその周辺画素位置がすべて重なり走査領域
である場合にのみ、複数の相関値を生成する請求項23
に記載の画像処理装置。
24. The misalignment detection means is configured to perform a plurality of correlations only when all the peripheral pixel positions including a pixel position of interest obtained for each rotation angle are overlapping scanning regions at a pixel position to be correlated. 24. Generating a value
The image processing device according to item 1.
【請求項25】 画像相関手段は、各回転角度に対して
それぞれ得られる複数の相関値を生成する請求項23に
記載の画像処理装置。
25. The image processing apparatus according to claim 23, wherein the image correlation unit generates a plurality of correlation values obtained for each rotation angle.
【請求項26】 画像データと走査位置は、画像を読み
取るラインイメージセンサと、前記ラインイメージセン
サの読み取り位置を2つの検出手段によって検出する位
置検出手段とを備えた入力装置から入力され、座標回転
変換手段は、前記ラインイメージセンサ両端の走査位置
座標を座標上で複数方向に走査ライン単位で回転変換す
る請求項23に記載の画像処理装置。
26. The image data and the scanning position are input from an input device equipped with a line image sensor for reading an image and a position detecting means for detecting the reading position of the line image sensor by means of a coordinate rotation. 24. The image processing apparatus according to claim 23, wherein the conversion unit rotationally converts the scanning position coordinates of both ends of the line image sensor in a plurality of directions on the coordinates in units of scanning lines.
【請求項27】 画像データと走査位置は、画像を読み
取るラインイメージセンサと、前記ラインイメージセン
サの読み取り位置を2つの検出手段によって検出する位
置検出手段とを備えた入力装置から入力され、画像相関
手段は、各走査ライン単位の回転角度に対してそれぞれ
得られる複数の相関値を生成する請求項23に記載の画
像処理装置。
27. The image data and the scanning position are input from an input device equipped with a line image sensor for reading an image and a position detecting means for detecting the reading position of the line image sensor by means of an image correlation. The image processing apparatus according to claim 23, wherein the means generates a plurality of correlation values obtained for each rotation angle of each scanning line.
JP08056895A 1994-04-14 1995-04-05 Image processing device Expired - Fee Related JP3602884B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08056895A JP3602884B2 (en) 1994-04-14 1995-04-05 Image processing device

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP7585894 1994-04-14
JP6-75858 1994-08-09
JP6-187482 1994-08-09
JP18748294 1994-08-09
JP08056895A JP3602884B2 (en) 1994-04-14 1995-04-05 Image processing device

Publications (2)

Publication Number Publication Date
JPH08107479A true JPH08107479A (en) 1996-04-23
JP3602884B2 JP3602884B2 (en) 2004-12-15

Family

ID=27301966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08056895A Expired - Fee Related JP3602884B2 (en) 1994-04-14 1995-04-05 Image processing device

Country Status (1)

Country Link
JP (1) JP3602884B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233066B1 (en) 1997-08-06 2001-05-15 Matsushita Electric Industrial Co., Ltd. Image processing apparatus, method for image processing, and image reader apparatus
US6270013B1 (en) 1996-07-22 2001-08-07 Wizcom Technologies, Ltd. Hand-holdable optical scanner particularly useful as electronic translator
US7865043B2 (en) 2003-12-16 2011-01-04 Anoto Ab Method, apparatus, computer program and storage medium for recording a movement of a user unit
CN113592956A (en) * 2021-07-30 2021-11-02 武汉精测电子集团股份有限公司 Multi-lens combined calibration method and device based on microscopic detection machine
JP2022538238A (en) * 2020-03-17 2022-09-01 安徽寒武紀信息科技有限公司 Computing apparatus, methods, printed circuit boards, and computer-readable recording media

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6270013B1 (en) 1996-07-22 2001-08-07 Wizcom Technologies, Ltd. Hand-holdable optical scanner particularly useful as electronic translator
US6233066B1 (en) 1997-08-06 2001-05-15 Matsushita Electric Industrial Co., Ltd. Image processing apparatus, method for image processing, and image reader apparatus
US7865043B2 (en) 2003-12-16 2011-01-04 Anoto Ab Method, apparatus, computer program and storage medium for recording a movement of a user unit
JP2022538238A (en) * 2020-03-17 2022-09-01 安徽寒武紀信息科技有限公司 Computing apparatus, methods, printed circuit boards, and computer-readable recording media
CN113592956A (en) * 2021-07-30 2021-11-02 武汉精测电子集团股份有限公司 Multi-lens combined calibration method and device based on microscopic detection machine
CN113592956B (en) * 2021-07-30 2023-12-19 武汉精测电子集团股份有限公司 Multi-lens combined calibration method and device based on microscopic detection machine

Also Published As

Publication number Publication date
JP3602884B2 (en) 2004-12-15

Similar Documents

Publication Publication Date Title
US5930411A (en) Image processing apparatus for adjusting scanning position
US5949921A (en) Image processing apparatus for reading an image by hand scanning
US7098914B1 (en) Image synthesis method, image synthesis apparatus, and storage medium
KR101798010B1 (en) Raster output of rotated interpolated pixels optimized for digital image stabilization
US6304313B1 (en) Digital camera and document processing system using the digital camera
KR100525425B1 (en) Image warping method and apparatus
EP0706154B1 (en) Apparatus and method for image interpolation
JP2002527953A (en) Method and apparatus for preventing keystone distortion
US20060126083A1 (en) Automatic image correction circuit
JP2019120749A (en) Display controller, image projection system, control method and program
JP3602884B2 (en) Image processing device
US20080025625A1 (en) Image processing apparatus, computer readable medium storing program, image processing method, and computer data signal
EP1091319A2 (en) Skew correcting device and method
JPH08214130A (en) Image processing unit
JP4270035B2 (en) Image processing device
JPH0851526A (en) Image processing unit
JP2006203710A (en) Image processing unit
JPH09116710A (en) Edit area setting device and image reader
JP2005086598A (en) Device, method, program, and circuit for processing image
EP0268359B1 (en) Method and apparatus for processing video image signals
JPS5935270A (en) Picture element density converter
USH84H (en) Real-time polar controlled video processor
JPH0851532A (en) Image processing unit and image processing method
JPH0851531A (en) Image processing unit
JP3184478B2 (en) Image processing device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040915

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040927

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20081001

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091001

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees